/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --blush: #F4E8E1;
    --blush-dark: #E8D5CA;
    --sage: #8BA888;
    --sage-dark: #6E8E6B;
    --text: #2D2926;
    --text-light: #6B5E57;
    --white: #FFFAF8;
    --card-bg: #FFFFFF;
    --error: #D4564E;
    --radius: 12px;
    --radius-sm: 8px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px;
}

/* === Hero === */
.hero {
    background: linear-gradient(160deg, #F9F1EC 0%, #EDE3DC 50%, #E2D8D0 100%);
    padding: 48px 0 56px;
    text-align: center;
}

.logo {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--sage-dark);
    margin-bottom: 32px;
    text-transform: uppercase;
}

.hero h1 {
    font-size: clamp(28px, 5vw, 40px);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--text);
}

.subtitle {
    font-size: 17px;
    color: var(--text-light);
    max-width: 540px;
    margin: 0 auto 24px;
    line-height: 1.6;
}

.badge {
    display: inline-block;
    background: var(--sage);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 24px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s;
}

.badge:hover {
    background: var(--sage-dark);
}

/* === Features === */
.features {
    padding: 56px 0;
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid #F0E8E3;
    border-radius: var(--radius);
    padding: 24px;
    transition: box-shadow 0.2s;
}

.feature-card:hover {
    box-shadow: 0 4px 20px rgba(45, 41, 38, 0.06);
}

.feature-icon {
    font-size: 28px;
    margin-bottom: 12px;
}

.feature-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.5;
}

/* === Example Protocol === */
.example {
    padding: 56px 0;
    background: #F2EBE5;
}

.example-label {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--sage-dark);
    margin-bottom: 10px;
}

.example h2 {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.example-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 15px;
    margin-bottom: 32px;
}

.protocol-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 32px rgba(45, 41, 38, 0.09);
    overflow: hidden;
}

/* Header */
.protocol-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    background: linear-gradient(135deg, #EAF2E9 0%, #F4EDE8 100%);
    border-bottom: 1px solid #EDE5DF;
}

.protocol-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--sage);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.protocol-name {
    font-size: 15px;
    font-weight: 600;
}

.protocol-meta {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 2px;
}

.protocol-date {
    margin-left: auto;
    font-size: 12px;
    color: var(--text-light);
    white-space: nowrap;
    flex-shrink: 0;
}

/* Lab summary */
.lab-summary {
    padding: 20px 24px;
    border-bottom: 1px solid #F0E8E3;
}

.section-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* keep old lab-title as alias */
.lab-title { font-size: 13px; font-weight: 600; color: var(--text-light); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.5px; }

/* === State section === */
.state-section {
    padding: 20px 24px;
    border-bottom: 1px solid #F0E8E3;
}
.state-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}
.state-item { display: flex; flex-direction: column; gap: 5px; }
.state-label { font-size: 12px; font-weight: 500; color: var(--text-light); }
.state-bar { height: 6px; background: #EDE5DF; border-radius: 3px; overflow: hidden; }
.state-fill { height: 100%; border-radius: 3px; transition: width 0.6s ease; }
.state-val { font-size: 12px; font-weight: 600; color: var(--text); }
.state-trend {
    font-size: 13px;
    color: var(--sage-dark);
    background: #EAF2E9;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 500;
}

.lab-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.lab-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
}

.lab-marker {
    font-size: 11px;
    flex-shrink: 0;
    margin-top: 1px;
}

.lab-low  { background: #FEF2F2; }
.lab-low .lab-marker { color: #E53E3E; }
.lab-ok   { background: #F0FFF4; }
.lab-ok .lab-marker { color: #38A169; }
.lab-border { background: #FFFBEB; }
.lab-border .lab-marker { color: #D69E2E; }

.lab-left { flex: 1; }
.lab-name { font-weight: 600; font-size: 13px; }
.lab-val  { font-size: 12px; color: var(--text-light); margin-top: 2px; }
.lab-norm { font-size: 11px; display: block; }
.lab-impact { font-size: 11px; color: var(--text-light); text-align: right; align-self: center; flex-shrink: 0; max-width: 110px; line-height: 1.3; }
.lab-badge { font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 10px; text-transform: uppercase; letter-spacing: 0.3px; display: inline-block; margin-bottom: 4px; }
.lab-badge-low    { background: #FED7D7; color: #9B2C2C; }
.lab-badge-border { background: #FEFCBF; color: #7B6000; }
.lab-badge-ok     { background: #C6F6D5; color: #1C5E3A; }
.lab-note { font-size: 12px; color: var(--text-light); margin-top: 12px; padding: 8px 12px; background: #F7F3F0; border-radius: 8px; }

/* Daily protocol */
.daily-protocol {
    padding: 20px 24px;
    border-bottom: 1px solid #F0E8E3;
}

.day-section {
    margin-bottom: 20px;
}
.day-section:last-child { margin-bottom: 0; }

.day-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.supp-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.supp-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #FAFAF9;
    border-radius: 8px;
    border: 1px solid #F0E8E3;
}

.supp-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.supp-dot-orange { background: #ED8936; }
.supp-dot-yellow { background: #ECC94B; }
.supp-dot-green  { background: var(--sage); }
.supp-dot-purple { background: #9F7AEA; }
.supp-dot-blue   { background: #63B3ED; }

.supp-info { flex: 1; min-width: 0; }
.supp-name { font-size: 14px; font-weight: 500; }
.supp-dose { font-size: 12px; color: var(--text-light); margin-top: 1px; }

.supp-why {
    font-size: 11px;
    background: #EDF2F7;
    color: #4A5568;
    padding: 3px 8px;
    border-radius: 10px;
    white-space: nowrap;
    flex-shrink: 0;
}
.supp-tag {
    font-size: 11px;
    background: #EDF2F7;
    color: #4A5568;
    padding: 3px 8px;
    border-radius: 10px;
    white-space: nowrap;
    flex-shrink: 0;
}
.supp-dot-teal  { background: #38B2AC; }
.supp-dot-pink  { background: #ED64A6; }
.compat-note {
    font-size: 12px;
    color: #92400E;
    background: #FFFBEB;
    border: 1px solid #FDE68A;
    padding: 8px 12px;
    border-radius: 8px;
    margin-top: 14px;
}

/* Insight */
.protocol-insight {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 24px;
    background: linear-gradient(135deg, #EAF2E9, #F4EDE8);
}
.insight-icon { font-size: 20px; flex-shrink: 0; }
.insight-text { font-size: 14px; color: var(--text); line-height: 1.5; }

/* Weekly insights */
.insights-section {
    padding: 20px 24px;
    border-bottom: 1px solid #F0E8E3;
}
.insight-list { display: flex; flex-direction: column; gap: 10px; }
.insight-item {
    display: flex;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    align-items: flex-start;
}
.insight-pattern { background: #EBF4FF; border: 1px solid #BEE3F8; }
.insight-positive { background: #F0FFF4; border: 1px solid #9AE6B4; }
.insight-warning  { background: #FFFBEB; border: 1px solid #FDE68A; }
.insight-icon-sm { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.insight-title { font-size: 13px; font-weight: 600; margin-bottom: 3px; }
.insight-desc { font-size: 13px; color: var(--text-light); line-height: 1.5; }

/* Next steps */
.next-steps {
    padding: 20px 24px;
    background: linear-gradient(135deg, #EAF2E9 0%, #F4EDE8 100%);
}
.steps-list { display: flex; flex-direction: column; gap: 10px; }
.step-item { display: flex; align-items: flex-start; gap: 12px; }
.step-num {
    width: 24px; height: 24px; border-radius: 50%;
    background: var(--sage); color: #fff;
    font-size: 12px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; margin-top: 1px;
}
.step-text { font-size: 14px; color: var(--text); line-height: 1.5; }

/* Responsive */
@media (max-width: 600px) {
    .lab-grid { grid-template-columns: 1fr; }
    .state-grid { grid-template-columns: 1fr 1fr; }
    .protocol-date { display: none; }
    .supp-why, .supp-tag, .lab-impact { display: none; }
    .protocol-header, .lab-summary, .daily-protocol,
    .state-section, .insights-section, .next-steps { padding: 16px; }
}

/* === Waitlist Form === */
.waitlist {
    padding: 56px 0 64px;
    background: linear-gradient(180deg, var(--white) 0%, #F6F0EC 100%);
}

.waitlist h2 {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.form-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 32px;
    font-size: 15px;
}

form {
    max-width: 480px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text);
}

.required { color: var(--error); }

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    font-family: inherit;
    border: 1.5px solid #DDD5CF;
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--text);
    transition: border-color 0.2s;
    outline: none;
}

input:focus, textarea:focus {
    border-color: var(--sage);
    box-shadow: 0 0 0 3px rgba(139, 168, 136, 0.15);
}

textarea {
    resize: vertical;
    min-height: 60px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.hint {
    font-size: 13px;
    color: var(--text-light);
    margin-top: -12px;
    margin-bottom: 20px;
}

/* === Chips === */
.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.chip {
    font-family: inherit;
    font-size: 13px;
    padding: 7px 14px;
    border: 1.5px solid #DDD5CF;
    border-radius: 20px;
    background: #fff;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.15s;
}

.chip:hover {
    border-color: var(--sage);
    color: var(--text);
}

.chip.active {
    background: var(--sage);
    border-color: var(--sage);
    color: #fff;
}

/* === Submit === */
.btn-submit {
    width: 100%;
    padding: 14px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--sage);
    color: #fff;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 8px;
}

.btn-submit:hover { background: var(--sage-dark); }
.btn-submit:disabled { opacity: 0.7; cursor: not-allowed; }

.form-error {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: var(--error);
    font-size: 14px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
}

/* === Success === */
.success-message {
    text-align: center;
    padding: 32px 0;
}

.success-icon {
    width: 56px;
    height: 56px;
    line-height: 56px;
    border-radius: 50%;
    background: var(--sage);
    color: #fff;
    font-size: 24px;
    margin: 0 auto 16px;
}

.success-message h3 {
    font-size: 22px;
    margin-bottom: 8px;
}

.success-message p {
    color: var(--text-light);
    font-size: 15px;
}

/* === Footer === */
.footer {
    padding: 32px 0;
    text-align: center;
    background: #EDE3DC;
}

.logo-small {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--sage-dark);
    margin-bottom: 4px;
    text-transform: uppercase;
}

.footer p {
    font-size: 13px;
    color: var(--text-light);
}

/* === Responsive === */
@media (max-width: 600px) {
    .hero { padding: 36px 0 44px; }
    .features-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .features, .waitlist { padding: 40px 0; }
}
