/* =========================================================================
   Feji — light design system
   Canvas is warm paper, surfaces are white, brand green does the pointing.
   ========================================================================= */

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

:root {
    /* Surfaces */
    --canvas: #faf8f4;
    --canvas-deep: #f3efe6;
    --surface: #ffffff;
    --surface-sunk: #f7f5f0;

    /* Ink. --faint is the lightest text tone that still clears WCAG AA
       (4.6:1) on the canvas, so nothing readable is lighter than this. */
    --ink: #14231b;
    --ink-2: #2c3b33;
    --muted: #5c6b62;
    --faint: #66736a;

    /* Lines */
    --line: #e7e2d7;
    --line-soft: #f0ece3;

    /* Brand */
    --green: #2f7d57;
    --green-bright: #3e9b6c;
    --green-deep: #1c5239;
    --green-wash: #eaf3ed;

    /* Accents. The plain tone is for icon glyphs and fills, which only need 3:1.
       The -ink tone is the darker one small text uses on its own wash, so a
       label like the Pro pill still clears 4.5:1. */
    --amber: #b8761a;
    --amber-ink: #8a5a12;
    --amber-wash: #fbf1de;
    --coral: #c4502f;
    --coral-ink: #a94327;
    --coral-wash: #fbeae4;
    --indigo: #3f5bbf;
    --indigo-wash: #ebeefb;

    --radius: 24px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --maxw: 1160px;

    --shadow-sm: 0 1px 2px rgba(24, 44, 33, 0.05), 0 4px 14px -8px rgba(24, 44, 33, 0.16);
    --shadow-md: 0 2px 6px rgba(24, 44, 33, 0.05), 0 18px 40px -22px rgba(24, 44, 33, 0.32);
    --shadow-lg: 0 40px 90px -40px rgba(20, 45, 32, 0.45), 0 8px 20px -12px rgba(20, 45, 32, 0.18);
}

html { scroll-behavior: smooth; color-scheme: light; }

body {
    background: var(--canvas);
    color: var(--ink);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a { color: var(--green); text-decoration: none; }
img { max-width: 100%; }
h1, h2, h3, h4 { letter-spacing: -0.025em; line-height: 1.15; font-weight: 700; }

:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 6px; }

.skip-link {
    position: absolute; left: 0.75rem; top: -3.5rem; z-index: 2000;
    background: var(--green); color: #fff; font-weight: 650;
    padding: 0.65rem 1.1rem; border-radius: var(--radius-sm);
    transition: top .15s;
}
.skip-link:focus { top: 0.75rem; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}

.wrap { max-width: var(--maxw); margin: 0 auto; }

/* ---------- Navbar ---------- */
.navbar {
    position: fixed; inset: 0.9rem 0 auto; z-index: 1000;
    width: min(var(--maxw), calc(100% - 2rem)); margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 0.6rem 0.7rem 0.6rem 0.95rem;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: var(--shadow-sm);
}
.logo, .footer-logo {
    display: inline-flex; align-items: center; gap: 0.55rem;
    color: var(--ink); font-size: 1.2rem; font-weight: 800; letter-spacing: -0.03em;
}
.logo img { height: 34px; width: 34px; border-radius: 10px; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links a { color: var(--muted); font-size: 0.92rem; font-weight: 550; transition: color .15s; }
.nav-links a:hover { color: var(--ink); }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
    font-weight: 650; font-size: 0.95rem; border-radius: 999px;
    padding: 0.72rem 1.35rem; cursor: pointer; border: 1px solid transparent;
    white-space: nowrap; transition: transform .16s, box-shadow .16s, background .16s, border-color .16s, color .16s;
}
.btn-primary {
    background: var(--green); color: #fff;
    box-shadow: 0 10px 24px -12px rgba(47, 125, 87, 0.85);
}
.btn-primary:hover { background: var(--green-deep); transform: translateY(-1px); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--green); color: var(--green-deep); transform: translateY(-1px); }
.nav-cta { padding: 0.6rem 1.15rem; font-size: 0.9rem; }

/* ---------- App Store button ---------- */
.app-store-btn {
    display: inline-flex; align-items: center; gap: 0.7rem;
    background: var(--ink); color: #fff;
    border-radius: 999px; font-size: 1rem; font-weight: 650;
    min-height: 54px; padding: 0.85rem 1.7rem;
    box-shadow: 0 16px 34px -18px rgba(20, 35, 27, 0.9);
    transition: transform .18s, background .18s;
}
.app-store-btn:hover { background: #0b1710; transform: translateY(-2px); }
.app-store-btn svg { width: 20px; height: 24px; flex: none; }
.app-store-btn .store-copy { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.app-store-btn .store-copy small { font-size: 0.66rem; font-weight: 500; opacity: 0.75; letter-spacing: 0.02em; }

/* ---------- Shared section furniture ---------- */
.eyebrow {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-size: 0.78rem; font-weight: 650; letter-spacing: 0.01em;
    color: var(--green-deep); background: var(--green-wash);
    border: 1px solid rgba(47, 125, 87, 0.18);
    padding: 0.38rem 0.85rem; border-radius: 999px;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); flex: none; }

.section { padding: 6rem clamp(1.1rem, 4vw, 2.5rem); }
.section-head { max-width: 640px; margin: 0 auto 3.25rem; text-align: center; }
.section-head .eyebrow { margin-bottom: 1.1rem; }
.section-title { font-size: clamp(2rem, 4.3vw, 2.9rem); margin-bottom: 0.9rem; }
.section-sub { color: var(--muted); font-size: 1.05rem; line-height: 1.65; }
.accent {
    background: linear-gradient(105deg, var(--green-bright), var(--green-deep));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden;
    padding: 9.5rem clamp(1.1rem, 4vw, 2.5rem) 5.5rem;
    background:
        radial-gradient(880px 520px at 82% -6%, rgba(62, 155, 108, 0.16), transparent 62%),
        radial-gradient(720px 480px at 4% 24%, rgba(184, 118, 26, 0.09), transparent 58%),
        var(--canvas);
}
.hero-inner {
    max-width: var(--maxw); margin: 0 auto;
    display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 3.5rem; align-items: center;
}
.hero h1 {
    font-size: clamp(2.6rem, 5.4vw, 4.2rem); font-weight: 800;
    line-height: 1.02; letter-spacing: -0.04em;
    margin: 1.5rem 0 1.25rem;
}
.hero-sub { color: var(--muted); font-size: 1.16rem; line-height: 1.6; max-width: 500px; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.85rem; }
.hero-meta {
    margin-top: 1.75rem; color: var(--faint); font-size: 0.88rem;
    display: flex; align-items: center; gap: 0.65rem; flex-wrap: wrap;
}
.hero-meta .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--line); }

/* ---------- Phone mockup ---------- */
.mock-wrap { display: flex; justify-content: center; }
.phone {
    width: 296px; height: 600px; border-radius: 46px; padding: 11px;
    background: linear-gradient(160deg, #ffffff, #e9e5db);
    border: 1px solid #ded8cc;
    box-shadow: var(--shadow-lg);
    position: relative;
}
.phone::before {
    content: ""; position: absolute; top: 22px; left: 50%; transform: translateX(-50%);
    width: 92px; height: 26px; background: #10201a; border-radius: 999px; z-index: 3;
}
/* A screen recording already has a status bar and a Dynamic Island in it, so the
   drawn one would sit on top of the real one. */
.phone.has-video::before { display: none; }
.screen-video {
    width: 100%; height: 100%; object-fit: cover; display: block;
    background: #f1f1f4;
}
.screen {
    width: 100%; height: 100%; border-radius: 36px; overflow: hidden;
    background: #f6f5f1; display: flex; flex-direction: column;
    border: 1px solid rgba(20, 35, 27, 0.06);
}
.screen-top { background: var(--green-deep); color: #fff; padding: 3.1rem 1.15rem 1.05rem; }
.screen-top .kicker { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.12em; opacity: 0.75; font-weight: 600; }
.screen-top h4 { font-size: 1.18rem; font-weight: 750; margin-top: 3px; }
.screen-budget { display: flex; justify-content: space-between; font-size: 0.68rem; opacity: 0.85; margin-top: 0.85rem; font-weight: 550; }
.screen-top .progress { margin-top: 0.35rem; height: 6px; border-radius: 999px; background: rgba(255,255,255,0.25); overflow: hidden; }
.screen-top .progress span { display: block; height: 100%; width: 64%; background: #fff; border-radius: 999px; }
.screen-body { flex: 1; padding: 0.85rem 0.95rem; overflow: hidden; }
.aisle { font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em; color: var(--green); margin: 0.75rem 0 0.4rem; }
.aisle:first-child { margin-top: 0; }
.mock-item {
    display: flex; align-items: center; gap: 0.6rem;
    padding: 0.52rem 0.6rem; border-radius: 12px; background: #fff;
    margin-bottom: 0.4rem; box-shadow: 0 1px 2px rgba(20, 40, 25, 0.06);
}
.mock-item .check { width: 18px; height: 18px; border-radius: 6px; border: 1.6px solid #d3dbd4; flex: none; }
.mock-item.done .check { background: var(--green); border-color: var(--green); position: relative; }
.mock-item.done .check::after { content: "✓"; color: #fff; font-size: 11px; position: absolute; inset: 0; display: grid; place-items: center; }
.mock-item .label { font-size: 0.79rem; color: #1c241e; font-weight: 550; }
/* Struck through and lighter, but still readable: done is de-emphasized, not hidden. */
.mock-item.done .label { color: #6a776e; text-decoration: line-through; }
.mock-item .qty { margin-left: auto; font-size: 0.68rem; color: #6a776e; font-weight: 600; }
.mock-item .avatar {
    margin-left: auto; width: 19px; height: 19px; border-radius: 50%;
    background: var(--amber-wash); color: var(--amber-ink);
    font-size: 0.56rem; font-weight: 800; display: grid; place-items: center;
}
.screen-tabs { display: flex; justify-content: space-around; padding: 0.65rem 0 1.1rem; background: #fff; border-top: 1px solid #ecefe9; }
.screen-tabs i { width: 20px; height: 20px; border-radius: 7px; background: #dfe5df; }
.screen-tabs i.on { background: var(--green); }

/* ---------- Showcase rows ---------- */
/* Hero and showcase share the canvas, so a hairline keeps them from merging. */
.showcase { background: var(--canvas); border-top: 1px solid var(--line); }
.showcase-row {
    max-width: var(--maxw); margin: 0 auto;
    display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
    padding: 4.5rem 0;
    border-top: 1px solid var(--line);
}
.showcase-row:first-of-type { border-top: 0; padding-top: 1rem; }
.showcase-row.flip .showcase-text { order: 2; }
.showcase-tag {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-size: 0.76rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
    padding: 0.35rem 0.8rem; border-radius: 999px; margin-bottom: 1.1rem;
}
.showcase-tag.green { color: var(--green-deep); background: var(--green-wash); }
.showcase-tag.amber { color: var(--amber-ink); background: var(--amber-wash); }
.showcase-tag.coral { color: var(--coral-ink); background: var(--coral-wash); }
.showcase-tag.indigo { color: var(--indigo); background: var(--indigo-wash); }
.showcase-text h3 { font-size: clamp(1.6rem, 3.1vw, 2.15rem); margin-bottom: 0.9rem; }
.showcase-text > p { color: var(--muted); font-size: 1.03rem; line-height: 1.7; margin-bottom: 1.4rem; }
.showcase-list { list-style: none; display: grid; gap: 0.75rem; }
/* Marker is absolute rather than a grid column so trailing inline content (the
   Pro pill) stays on the same line as the sentence it belongs to. */
.showcase-list li {
    position: relative; padding-left: 2.05rem;
    color: var(--ink-2); font-size: 0.96rem; line-height: 1.55;
}
.showcase-list li::before {
    content: ""; position: absolute; left: 0; top: 2px;
    width: 22px; height: 22px; border-radius: 50%;
    background: var(--green-wash) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f7d57' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.pro-pill {
    display: inline-block; font-size: 0.68rem; font-weight: 750; letter-spacing: 0.06em;
    text-transform: uppercase; color: var(--amber-ink); background: var(--amber-wash);
    padding: 0.15rem 0.5rem; border-radius: 6px; margin-left: 0.35rem;
    vertical-align: 2px;
}

/* Mock panel shared shell */
.panel {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 1.4rem;
    box-shadow: var(--shadow-md);
}
.panel-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 0.75rem; margin-bottom: 1.1rem;
}
.panel-head h4 { font-size: 0.98rem; }
.panel-head .meta { font-size: 0.76rem; color: var(--faint); font-weight: 550; }

/* Recipe cards mock */
.recipe-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.recipe-card {
    border: 1px solid var(--line); border-radius: var(--radius-md);
    overflow: hidden; background: var(--surface-sunk);
}
.recipe-thumb { height: 74px; display: grid; place-items: center; font-size: 1.6rem; }
.recipe-thumb.t1 { background: linear-gradient(140deg, #f6dfc4, #eec79a); }
.recipe-thumb.t2 { background: linear-gradient(140deg, #dbecdc, #b9dcc2); }
.recipe-thumb.t3 { background: linear-gradient(140deg, #f8dcd6, #efbfb4); }
.recipe-thumb.t4 { background: linear-gradient(140deg, #e0e6f8, #c3cef0); }
.recipe-card .name { font-size: 0.79rem; font-weight: 650; padding: 0.55rem 0.65rem 0.15rem; }
.recipe-card .sub { font-size: 0.69rem; color: var(--faint); padding: 0 0.65rem 0.6rem; }
.import-bar {
    display: flex; align-items: center; gap: 0.6rem; margin-top: 0.9rem;
    padding: 0.7rem 0.85rem; border-radius: var(--radius-sm);
    background: var(--green-wash); border: 1px solid rgba(47, 125, 87, 0.2);
    font-size: 0.8rem; color: var(--green-deep); font-weight: 600;
}
.import-bar svg { width: 16px; height: 16px; flex: none; }

/* Split mock */
.split-row {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.7rem 0; border-bottom: 1px solid var(--line-soft);
}
.split-row:last-of-type { border-bottom: 0; }
.split-av {
    width: 32px; height: 32px; border-radius: 50%; flex: none;
    display: grid; place-items: center; font-size: 0.76rem; font-weight: 750;
}
.split-av.a { background: var(--green-wash); color: var(--green-deep); }
.split-av.b { background: var(--amber-wash); color: var(--amber-ink); }
.split-av.c { background: var(--indigo-wash); color: var(--indigo); }
.split-name { font-size: 0.88rem; font-weight: 600; }
.split-note { font-size: 0.73rem; color: var(--faint); }
.split-amt { margin-left: auto; font-size: 0.9rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.split-amt.owed { color: var(--green); }
.split-amt.owes { color: var(--coral); }
.split-actions { display: flex; gap: 0.5rem; margin-top: 1rem; }
.mini-chip {
    flex: 1; text-align: center; font-size: 0.76rem; font-weight: 650;
    padding: 0.5rem 0.6rem; border-radius: 999px;
    border: 1px solid var(--line); color: var(--ink-2); background: var(--surface-sunk);
}

/* Reminder mock: notifications as iOS shows them, with the buttons under the
   first. The action pills reuse the split mock's .mini-chip. */
.notif {
    display: flex; gap: 0.7rem; align-items: flex-start;
    padding: 0.8rem 0.85rem; border-radius: var(--radius-md);
    background: var(--surface-sunk); border: 1px solid var(--line-soft);
}
.split-actions + .notif { margin-top: 1.1rem; }
.notif .split-actions { margin-top: 0.6rem; }
.notif-icon { width: 34px; height: 34px; border-radius: 9px; flex: none; }
.notif-body { flex: 1; min-width: 0; }
.notif-top {
    display: flex; align-items: baseline; gap: 0.5rem;
    font-size: 0.7rem; font-weight: 650; color: var(--faint);
    text-transform: uppercase; letter-spacing: 0.04em;
}
.notif-top span { margin-left: auto; text-transform: none; letter-spacing: 0; font-weight: 550; }
.notif-title { margin-top: 0.15rem; font-size: 0.86rem; font-weight: 650; color: var(--ink); line-height: 1.35; }
.notif-text { margin-top: 0.1rem; font-size: 0.8rem; color: var(--muted); line-height: 1.45; }

/* Insights mock */
.bar-chart { display: flex; align-items: flex-end; gap: 0.55rem; height: 132px; margin-bottom: 0.9rem; }
.bar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 0.4rem; height: 100%; }
.bar span { display: block; border-radius: 8px 8px 4px 4px; background: var(--green-wash); }
.bar.hot span { background: linear-gradient(180deg, var(--green-bright), var(--green)); }
.bar small { text-align: center; font-size: 0.63rem; color: var(--faint); font-weight: 600; }
.trend-row {
    display: flex; align-items: center; gap: 0.6rem;
    padding: 0.55rem 0; border-top: 1px solid var(--line-soft); font-size: 0.83rem;
}
.trend-row .tname { font-weight: 600; }
.trend-row .tval { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; }
.trend-row .tval.up { color: var(--coral); }
.trend-row .tval.down { color: var(--green); }

/* ---------- Feature grid ---------- */
.features { background: var(--surface); border-block: 1px solid var(--line); }
.feature-grid {
    max-width: var(--maxw); margin: 0 auto;
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem;
}
.feature-card {
    background: var(--canvas); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 1.6rem; min-width: 0;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(47, 125, 87, 0.35); }
.feature-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 14px; margin-bottom: 1.05rem;
    color: var(--green); background: var(--green-wash);
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-card:nth-child(4n + 2) .feature-icon { color: var(--amber); background: var(--amber-wash); }
.feature-card:nth-child(4n + 3) .feature-icon { color: var(--coral); background: var(--coral-wash); }
.feature-card:nth-child(4n) .feature-icon { color: var(--indigo); background: var(--indigo-wash); }
.feature-card h3 { font-size: 1.05rem; margin-bottom: 0.45rem; }
.feature-card p { color: var(--muted); font-size: 0.92rem; line-height: 1.6; }

/* ---------- Plans ---------- */
.plans { background: var(--canvas-deep); }
.plan-grid {
    max-width: 720px; margin: 0 auto;
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem;
}
.plan {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 1.75rem; display: flex; flex-direction: column;
}
.plan.featured { border-color: var(--green); box-shadow: var(--shadow-md); position: relative; }
.plan.featured::after {
    content: "Everything included"; position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
    background: var(--green); color: #fff; font-size: 0.68rem; font-weight: 750;
    letter-spacing: 0.05em; text-transform: uppercase; padding: 0.25rem 0.75rem; border-radius: 999px;
    white-space: nowrap;
}
.plan h3 { font-size: 1.2rem; margin-bottom: 0.3rem; }
.plan .plan-note { color: var(--faint); font-size: 0.85rem; margin-bottom: 1.25rem; }
.plan ul { list-style: none; display: grid; gap: 0.6rem; }
.plan li { position: relative; padding-left: 1.7rem; font-size: 0.9rem; color: var(--ink-2); line-height: 1.5; }
.plan li::before {
    content: ""; position: absolute; left: 0; top: 3px;
    width: 18px; height: 18px; border-radius: 50%;
    background: var(--green-wash) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f7d57' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.plan li.off { color: var(--faint); }
.plan li.off::before {
    background: var(--surface-sunk) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2366736a' stroke-width='3.4' stroke-linecap='round'%3E%3Cpath d='M6 12h12'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.plans-footnote {
    max-width: 640px; margin: 2rem auto 0; text-align: center;
    color: var(--muted); font-size: 0.9rem; line-height: 1.65;
}

/* ---------- Privacy strip ---------- */
.privacy { background: var(--surface); border-block: 1px solid var(--line); }
.privacy-grid {
    max-width: var(--maxw); margin: 0 auto;
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem;
}
.privacy-item { text-align: left; }
.privacy-item .p-icon {
    display: inline-flex; width: 38px; height: 38px; border-radius: 12px; margin-bottom: 0.85rem;
    align-items: center; justify-content: center; color: var(--green); background: var(--green-wash);
}
.privacy-item .p-icon svg { width: 19px; height: 19px; }
.privacy-item h4 { font-size: 0.98rem; margin-bottom: 0.35rem; }
.privacy-item p { color: var(--muted); font-size: 0.88rem; line-height: 1.55; }

/* ---------- CTA ---------- */
.cta {
    text-align: center; padding: 6rem clamp(1.1rem, 4vw, 2.5rem);
    background:
        radial-gradient(760px 340px at 50% 0%, rgba(62, 155, 108, 0.16), transparent 68%),
        var(--canvas);
}
.cta h2 { font-size: clamp(2rem, 4.4vw, 3rem); margin-bottom: 1rem; }
.cta p { color: var(--muted); line-height: 1.65; margin: 0 auto 2rem; max-width: 540px; font-size: 1.05rem; }
.cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.85rem; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #d7e0d9; padding: 3.5rem clamp(1.1rem, 4vw, 2.5rem) 2rem; }
.footer-inner {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 2.5rem;
    margin: 0 auto 2.5rem; max-width: var(--maxw); flex-wrap: wrap;
}
.footer-logo { color: #fff; }
.footer-logo img { height: 30px; width: 30px; border-radius: 9px; }
.footer-tagline { color: #9aa89f; font-size: 0.9rem; margin-top: 0.7rem; max-width: 260px; line-height: 1.55; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 2.5rem; }
.footer-col { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col strong { color: #fff; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 650; margin-bottom: 0.2rem; }
.footer-nav a { color: #9aa89f; font-size: 0.9rem; transition: color .15s; }
.footer-nav a:hover { color: #fff; }
.footer-copy {
    border-top: 1px solid rgba(255, 255, 255, 0.1); color: #7d8b83; font-size: 0.82rem;
    margin: 0 auto; max-width: var(--maxw); padding-top: 1.5rem;
    display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}

/* ---------- Legal pages ---------- */
.legal-page {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    margin: 7rem auto 4rem; max-width: 860px;
    padding: 3rem clamp(1.25rem, 5vw, 3.5rem);
    box-shadow: var(--shadow-sm);
}
.legal-page h1 { font-size: clamp(1.9rem, 4.6vw, 2.7rem); margin-bottom: 0.6rem; }
.legal-page .last-updated { color: var(--faint); margin-bottom: 2rem; font-size: 0.9rem; }
.legal-page h2 {
    color: var(--ink); font-size: 1.22rem; margin: 2.5rem 0 0.8rem;
    padding-top: 1.5rem; border-top: 1px solid var(--line-soft);
}
.legal-page h2:first-of-type { border-top: 0; padding-top: 0; }
.legal-page h3 { font-size: 1.02rem; margin: 1.5rem 0 0.5rem; color: var(--green-deep); }
.legal-page p, .legal-page li { color: var(--ink-2); line-height: 1.75; margin-bottom: 0.85rem; font-size: 0.98rem; }
.legal-page ul { margin: 0 0 1rem 1.35rem; }
.legal-page a { color: var(--green); text-decoration: underline; text-underline-offset: 2px; }
.legal-toc {
    background: var(--canvas); border: 1px solid var(--line); border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem; margin-bottom: 2.5rem;
}
.legal-toc strong { display: block; font-size: 0.78rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--faint); margin-bottom: 0.75rem; }
.legal-toc ol { margin: 0; padding-left: 1.15rem; columns: 2; column-gap: 2rem; }
.legal-toc li { margin-bottom: 0.35rem; font-size: 0.9rem; break-inside: avoid; }
.legal-page .callout {
    background: var(--green-wash); border: 1px solid rgba(47, 125, 87, 0.2);
    border-radius: var(--radius-md); padding: 1.1rem 1.3rem; margin: 1.25rem 0 1.5rem;
}
.legal-page .callout p:last-child { margin-bottom: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
    .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 2.75rem; }
    .hero-sub { margin-left: auto; margin-right: auto; }
    .hero-actions, .hero-meta { justify-content: center; }
    .hero .eyebrow { margin-inline: auto; }
    /* Headline first on narrow screens. The mock is 535px tall, so leading with
       it would push the entire pitch below the fold on a phone. */
    .showcase-row { grid-template-columns: 1fr; gap: 2rem; padding: 3.5rem 0; }
    .showcase-row.flip .showcase-text { order: 0; }
    .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .privacy-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Two cards stay side by side further down than three could. */
@media (max-width: 700px) {
    .plan-grid { grid-template-columns: 1fr; max-width: 460px; }
}
@media (max-width: 640px) {
    .navbar { padding: 0.5rem 0.55rem 0.5rem 0.8rem; }
    .nav-links { gap: 0.95rem; }
    .nav-links a { font-size: 0.85rem; }
    .logo { font-size: 1.05rem; }
    .cta-actions { flex-direction: column; align-items: stretch; }
    .cta-actions .btn, .cta-actions .app-store-btn { justify-content: center; }
    .logo img { height: 30px; width: 30px; }
    .hero { padding-top: 8.5rem; }
    .section { padding: 4.5rem 1.1rem; }
    .feature-grid { grid-template-columns: 1fr; }
    .privacy-grid { grid-template-columns: 1fr; }
    .recipe-grid { grid-template-columns: 1fr 1fr; }
    .phone { width: 262px; height: 535px; }
    .footer-inner { flex-direction: column; gap: 2rem; }
    .footer-nav { gap: 1.75rem; }
    .legal-toc ol { columns: 1; }
    .legal-page { margin-top: 6rem; }
}
/* Below this the pill can't hold logo + links + CTA on one line. The links drop
   to their own row rather than disappearing: a hidden nav is a nav nobody finds. */
@media (max-width: 560px) {
    .navbar {
        flex-wrap: wrap; row-gap: 0.45rem;
        border-radius: 22px; padding: 0.55rem 0.6rem 0.5rem 0.85rem;
    }
    .nav-links {
        order: 3; width: 100%; justify-content: space-between;
        gap: 0.5rem; padding: 0.5rem 0.25rem 0;
        border-top: 1px solid var(--line-soft);
    }
    .nav-links a { font-size: 0.82rem; }
    .hero { padding-top: 10rem; }
    .legal-page { margin-top: 8rem; }
}
