*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --green: #2cb67d;
    --green-light: #5dd9a8;
    --blue: #4e8ef7;
    --blue-light: #7db3ff;
    --gradient: linear-gradient(135deg, var(--green), var(--blue));
    --gradient-soft: linear-gradient(135deg, #e8faf1, #e8f0fe);
    --text: #1a1a2e;
    --text-light: #555;
    --text-muted: #888;
    --bg: #ffffff;
    --bg-soft: #f8fafb;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.1);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

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

/* ---- NAV ---- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.nav-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text);
}

.nav-brand img {
    width: 36px;
    height: 36px;
}

.nav-brand span {
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color var(--transition);
}

.nav-links a:hover {
    color: var(--green);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all var(--transition);
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 4px 16px rgba(44, 182, 125, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(44, 182, 125, 0.4);
}

.btn-secondary {
    background: var(--bg);
    color: var(--text);
    border: 1.5px solid #e0e0e0;
}

.btn-secondary:hover {
    border-color: var(--green);
    color: var(--green);
}

.btn-nav {
    padding: 8px 20px;
    font-size: 0.85rem;
}

.nav-links a.btn-primary,
.nav-links a.btn-primary:hover {
    color: #fff;
}

.btn-appstore {
    background: #000;
    color: #fff;
    gap: 10px;
}

.btn-appstore:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}

.btn-appstore .appstore-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.1;
}

.btn-appstore .appstore-text small {
    font-size: 0.62rem;
    font-weight: 400;
    opacity: 0.85;
}

/* ---- HERO ---- */
.hero {
    padding: 150px 24px 70px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 0%, rgba(44, 182, 125, 0.10) 0%, transparent 45%),
        radial-gradient(circle at 85% 30%, rgba(78, 142, 247, 0.10) 0%, transparent 45%);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--gradient-soft);
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--green);
    margin-bottom: 28px;
}

.hero-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--green);
    border-radius: 50%;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 14px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.accent-blue {
    color: var(--blue);
}

.hero-tagline {
    font-size: clamp(1.3rem, 3vw, 1.9rem);
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
    margin-bottom: 26px;
}

.hero p.hero-lead {
    font-size: 1.12rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 36px;
    line-height: 1.75;
}

.hero-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ---- PHONE MOCKUPS ---- */
.phone-showcase {
    padding: 40px 24px 90px;
    position: relative;
}

.phone-row {
    display: flex;
    justify-content: center;
    gap: 24px;
    max-width: 1120px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.phone-frame {
    width: 190px;
    flex-shrink: 0;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 6px solid #1a1a2e;
    background: #1a1a2e;
    transition: transform var(--transition);
}

.phone-frame:hover {
    transform: translateY(-8px);
}

.phone-frame img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 1 / 1.9;
    object-fit: cover;
    object-position: top center;
}

/* ---- SECTIONS ---- */
.section {
    padding: 100px 24px;
}

.section-alt {
    background: var(--bg-soft);
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 60px;
}

.section-header .overline {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--green);
    margin-bottom: 12px;
}

.section-header h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.7;
}

/* ---- FEATURES ---- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    max-width: 1120px;
    margin: 0 auto;
}

.features-grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.feature-card {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 36px 32px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all var(--transition);
}

.section-alt .feature-card {
    background: var(--bg);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.feature-icon-green {
    background: linear-gradient(135deg, #e8faf1, #d0f5e3);
}

.feature-icon-blue {
    background: linear-gradient(135deg, #e8f0fe, #d0e0fd);
}

.feature-icon-orange {
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
}

.feature-icon-purple {
    background: linear-gradient(135deg, #f3e8ff, #e0cffc);
}

.feature-icon-pink {
    background: linear-gradient(135deg, #fce4ec, #f8bbd0);
}

.feature-icon-teal {
    background: linear-gradient(135deg, #e0f7fa, #b2ebf2);
}

.feature-icon-indigo {
    background: linear-gradient(135deg, #e8eaff, #d2d6fb);
}

.feature-icon-amber {
    background: linear-gradient(135deg, #fff8e1, #ffecb3);
}

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.92rem;
    line-height: 1.65;
}

/* ---- DETAIL SECTION (image + text) ---- */
.detail-row {
    display: flex;
    align-items: center;
    gap: 80px;
    max-width: 1040px;
    margin: 0 auto;
}

.detail-row + .detail-row {
    margin-top: 120px;
}

.detail-row.reverse {
    flex-direction: row-reverse;
}

.detail-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

.detail-visual .phone-frame {
    width: 230px;
}

.detail-content {
    flex: 1;
}

.detail-content .overline {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--green);
    margin-bottom: 12px;
}

.detail-content h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.detail-content p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 24px;
}

.detail-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--text-light);
}

.detail-list li::before {
    content: '';
    width: 22px;
    height: 22px;
    min-width: 22px;
    border-radius: 50%;
    background: var(--gradient-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%232cb67d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

/* ---- NUTRIENT CHIPS ---- */
.nutrient-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
}

.chip b {
    font-weight: 800;
}

.chip-green {
    background: #e8faf1;
    color: #1c9c66;
}

.chip-blue {
    background: #e8f0fe;
    color: #2f6fe0;
}

.chip-teal {
    background: #e0f7fa;
    color: #0a7f95;
}

.chip-purple {
    background: #f3e8ff;
    color: #7c3aed;
}

/* ---- ANSES BADGE ---- */
.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    background: var(--gradient-soft);
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 20px;
}

.trust-badge svg {
    color: var(--green);
}

/* ---- STATS ---- */
.stats-row {
    display: flex;
    justify-content: center;
    gap: 64px;
    max-width: 900px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-value {
    font-size: 2.8rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.03em;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ---- PRICING ---- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
    max-width: 840px;
    margin: 0 auto;
    align-items: stretch;
}

.pricing-card {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 40px 36px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    transition: all var(--transition);
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.pricing-card-featured {
    position: relative;
    border: 2px solid transparent;
    background:
        linear-gradient(var(--bg), var(--bg)) padding-box,
        var(--gradient) border-box;
    box-shadow: var(--shadow-lg);
}

.pricing-badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 6px 16px;
    border-radius: 50px;
    white-space: nowrap;
}

.pricing-name {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 14px;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.pricing-price .amount {
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.pricing-card-featured .pricing-price .amount {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pricing-price .period {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
}

.pricing-note {
    font-size: 0.85rem;
    color: var(--green);
    font-weight: 600;
    margin-top: 8px;
}

.pricing-desc {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-top: 16px;
    margin-bottom: 24px;
}

.pricing-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
    flex: 1;
}

.pricing-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.92rem;
    color: var(--text-light);
}

.pricing-list li::before {
    content: '';
    width: 20px;
    height: 20px;
    min-width: 20px;
    border-radius: 50%;
    background: var(--gradient-soft);
    margin-top: 2px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='%232cb67d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

.pricing-btn {
    width: 100%;
    justify-content: center;
}

.pricing-credits {
    max-width: 720px;
    margin: 44px auto 0;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: var(--bg);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: var(--shadow);
    padding: 22px 26px;
    border-radius: var(--radius);
    font-size: 0.92rem;
    color: var(--text-light);
    line-height: 1.7;
}

.pricing-credits .credits-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f3e8ff, #e0cffc);
}

/* ---- CTA SECTION ---- */
.cta-section {
    padding: 100px 24px;
    text-align: center;
}

.cta-card {
    max-width: 760px;
    margin: 0 auto;
    background: var(--gradient);
    border-radius: 24px;
    padding: 64px 48px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.cta-card::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -20%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.cta-card h2 {
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    font-weight: 700;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.cta-card p {
    font-size: 1.05rem;
    opacity: 0.92;
    margin-bottom: 32px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.btn-white {
    background: #fff;
    color: var(--green);
    font-weight: 600;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition);
    position: relative;
    z-index: 1;
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
}

/* ---- FOOTER ---- */
.footer {
    padding: 48px 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.footer-inner {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-brand img {
    width: 28px;
    height: 28px;
}

.footer-brand span {
    font-weight: 600;
    font-size: 0.9rem;
}

.footer-text {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* ---- ANIMATIONS ---- */
.fade-up {
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.reveal-ready {
    opacity: 0;
    transform: translateY(24px);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- MOBILE NAV ---- */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    margin: 5px 0;
    border-radius: 2px;
    transition: var(--transition);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
    .detail-row,
    .detail-row.reverse {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .detail-row + .detail-row {
        margin-top: 80px;
    }

    .detail-list {
        align-items: center;
        text-align: left;
    }

    .nutrient-chips {
        justify-content: center;
    }

    .stats-row {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-enhanced .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(16px);
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .nav-enhanced .nav-links.open {
        display: flex;
    }

    .nav-enhanced .nav-toggle {
        display: block;
    }

    .phone-row {
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 16px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        margin: 0 -24px;
        padding: 6px 24px 18px;
    }

    .phone-row::-webkit-scrollbar {
        display: none;
    }

    .phone-frame {
        width: clamp(155px, 52vw, 200px);
        border-radius: 24px;
        border-width: 5px;
        scroll-snap-align: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .cta-card {
        padding: 48px 28px;
    }

    .hero {
        padding: 130px 24px 50px;
    }
}

/* Shared accessibility and practitioner entry point. */
[hidden] { display: none !important; }
[id] { scroll-margin-top: 90px; }
:focus-visible { outline: 3px solid #2467c9; outline-offset: 5px; }
.skip-link {
    position: fixed;
    top: 8px;
    left: 16px;
    z-index: 200;
    padding: 12px 20px;
    background: white;
    color: #163b34;
    border: 2px solid currentColor;
    border-radius: 8px;
    transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }
.footer-link { color: #245e52; font-size: .88rem; text-underline-offset: 4px; }
.practitioner-intro { background: #ecf5f1; }
.practitioner-intro-inner {
    max-width: 1120px;
    margin: auto;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    align-items: center;
    gap: 72px;
}
.practitioner-intro .overline { color: #246e58; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.practitioner-intro h2 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.18; letter-spacing: -.04em; margin: 16px 0 20px; }
.practitioner-intro p { color: #45645b; }
.practitioner-intro .btn { margin-top: 28px; }
.practitioner-intro-list { list-style: none; }
.practitioner-intro-list li { display: flex; gap: 20px; padding: 24px 0; border-bottom: 1px solid #ceded6; }
.practitioner-intro-list li:last-child { border-bottom: 0; }
.practitioner-intro-list li > span { color: #246e58; font-size: .8rem; font-weight: 700; padding-top: 4px; }
.practitioner-intro-list h3 { font-size: 1.06rem; margin-bottom: 5px; }
@media (max-width: 900px) {
    .nav-links { gap: 20px; }
    .practitioner-intro-inner { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 768px) {
    html:not(.nav-enhanced) .nav { position: relative; }
    html:not(.nav-enhanced) .nav-inner { height: auto; padding-top: 16px; padding-bottom: 16px; flex-wrap: wrap; gap: 16px; }
    html:not(.nav-enhanced) .nav-links { flex-wrap: wrap; gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .fade-up.reveal-ready { opacity: 1; transform: none; }
}

@media (max-width: 500px) {
    .phone-row {
        gap: 12px;
        margin: 0 -18px;
        padding: 6px 18px 16px;
    }

    .phone-frame {
        width: clamp(150px, 48vw, 185px);
        border-width: 4px;
    }
}
