:root {
    /* Matches the app's DesignSystem.Palette */
    --sand: #F5EFE1;       /* page background */
    --surface: #FFFCF6;    /* card surface */
    --mint: #7FA37A;       /* primary accent / CTA */
    --mint-deep: #5E8559;  /* pressed / emphasis */
    --forest: #2D3B2E;     /* primary text */
    --dusk: #7A766A;       /* secondary text */
    --hairline: #E0D7C2;   /* dividers */
    --amber: #C8A05A;      /* sparing accent */
    --clay: #B08068;       /* "pass" counterpart to mint on the swipe deck */

    --bg: var(--sand);
    --ink: var(--forest);
    --muted: var(--dusk);
    --card: var(--surface);
    --line: var(--hairline);
    --accent: var(--mint);
    --accent-deep: var(--mint-deep);

    --serif: "New York", "Iowan Old Style", ui-serif, Georgia, "Times New Roman", serif;
    --max: 880px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden; /* swipe-out cards translate beyond the viewport edge */
}

a { color: var(--accent-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Header */
header.site {
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    background: rgba(245, 239, 225, 0.85);
    backdrop-filter: saturate(180%) blur(14px);
    z-index: 10;
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; }
.brand { font-family: var(--serif); font-weight: 700; font-size: 23px; letter-spacing: -0.01em; color: var(--ink); }
.brand span { color: var(--accent); }
nav a { margin-left: 22px; color: var(--muted); font-weight: 600; font-size: 15px; }
nav a:hover { color: var(--ink); text-decoration: none; }

/* Hero */
.hero { text-align: center; padding: 88px 0 64px; }
.hero .eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 13px;
    font-weight: 600;
    color: var(--amber);
    margin-bottom: 18px;
}
.hero h1 {
    font-family: var(--serif);
    font-size: clamp(36px, 6vw, 58px);
    line-height: 1.06;
    letter-spacing: -0.01em;
    font-weight: 700;
    margin-bottom: 20px;
}
.hero h1 .accent { color: var(--accent); }
.hero p.sub {
    font-size: clamp(17px, 2.4vw, 21px);
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto 32px;
}
.cta {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    font-size: 17px;
    padding: 15px 30px;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(127, 163, 122, 0.34);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cta:hover { transform: translateY(-2px); text-decoration: none; box-shadow: 0 12px 30px rgba(94, 133, 89, 0.42); }
.hero .note { display: block; margin-top: 14px; color: var(--muted); font-size: 14px; }

/* Waitlist form */
.waitlist { display: flex; gap: 10px; justify-content: center; align-items: stretch; max-width: 480px; margin: 0 auto; flex-wrap: wrap; }
.waitlist .hp { position: absolute; left: -9999px; }
.wl-email {
    flex: 1 1 240px;
    min-width: 200px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    font-size: 16px;
    font-family: inherit;
    background: var(--surface);
    color: var(--ink);
}
.wl-email:focus { outline: none; border-color: var(--mint); box-shadow: 0 0 0 3px rgba(127, 163, 122, 0.28); }
.waitlist .cta { flex: 0 0 auto; border: none; cursor: pointer; font-family: inherit; -webkit-appearance: none; appearance: none; }

/* Sections */
section { padding: 56px 0; }
section h2 {
    font-family: var(--serif);
    font-size: clamp(27px, 4vw, 36px);
    letter-spacing: -0.01em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
}
section .lede { text-align: center; color: var(--muted); max-width: 620px; margin: 0 auto 40px; font-size: 18px; }

/* Swipe demo deck */
.demo { padding: 8px 0 56px; }
.household { text-align: center; margin-bottom: 26px; }
.household-avatars { display: inline-flex; }
.hh {
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; font-size: 15px;
    border: 2px solid var(--sand);
    margin-left: -9px;
    transition: opacity 0.45s ease, transform 0.45s cubic-bezier(.2, .8, .3, 1.4);
}
.hh.pending { opacity: 0.25; transform: scale(0.82); }
.hh svg { width: 20px; height: 20px; }
.hh:first-child { margin-left: 0; }
.household-label { transition: opacity 0.2s ease; }
.hh:nth-child(1) { background: var(--mint); }
.hh:nth-child(2) { background: var(--amber); }
.hh:nth-child(3) { background: var(--clay); }
.hh:nth-child(4) { background: var(--mint-deep); }
.hh:nth-child(5) { background: var(--forest); }
.household-label { margin-top: 11px; color: var(--muted); font-size: 14px; }
.deck { position: relative; width: 300px; height: 380px; margin: 0 auto; }
.swipe-card {
    position: absolute;
    inset: 0;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: 0 18px 40px rgba(45, 59, 46, 0.14);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px;
    transition: transform 0.45s cubic-bezier(.2, .7, .3, 1), opacity 0.45s ease;
    will-change: transform;
}
.card-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 11px;
    border-radius: 999px;
    margin-bottom: 16px;
}
.card-tag.out { background: #EAF1E8; color: var(--mint-deep); }
.card-tag.cook { background: #F3E9D6; color: #9c7b3f; }
.swipe-card .emoji { font-size: 84px; line-height: 1; margin-bottom: 16px; }
.card-meta { text-align: center; }
.card-name { font-family: var(--serif); font-size: 24px; font-weight: 700; color: var(--forest); }
.card-sub { color: var(--muted); font-size: 14px; margin-top: 4px; }
.stamp {
    position: absolute;
    top: 22px;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    opacity: 0;
    transition: opacity 0.2s ease;
    box-shadow: 0 5px 14px rgba(45, 59, 46, 0.22);
}
.stamp svg { width: 28px; height: 28px; }
.stamp.yes { left: 20px; background: var(--mint); transform: rotate(-10deg); }
.stamp.no  { right: 20px; background: var(--clay); transform: rotate(10deg); }
.swipe-card.go-right .stamp.yes { opacity: 1; }
.swipe-card.go-left  .stamp.no  { opacity: 1; }
/* Winner reveal card */
.winner-card {
    position: absolute;
    inset: 0;
    background: linear-gradient(165deg, #EAF1E8 0%, var(--surface) 60%);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: 0 20px 46px rgba(45, 59, 46, 0.20);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px;
    text-align: center;
    opacity: 0;
    transform: scale(0.9);
    pointer-events: none;
    z-index: 50;
    transition: opacity 0.35s ease, transform 0.45s cubic-bezier(.2, .8, .3, 1.25);
}
.winner-card.show { opacity: 1; transform: scale(1); }
.winner-emoji { font-size: 76px; line-height: 1; margin-bottom: 8px; }
.winner-kicker { font-family: var(--serif); font-size: 18px; color: var(--mint-deep); }
.winner-title { font-family: var(--serif); font-size: 30px; font-weight: 700; color: var(--forest); line-height: 1.05; }
.winner-name { color: var(--muted); font-size: 15px; margin-top: 6px; }
.winner-votes { display: flex; gap: 9px; margin-top: 20px; }
.voter {
    width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px; font-weight: 700; color: #fff;
    transform: scale(0);
}
.voter.yes { background: var(--mint); box-shadow: 0 2px 7px rgba(94, 133, 89, 0.42); }
.voter.no  { background: var(--clay); box-shadow: 0 2px 7px rgba(176, 128, 104, 0.42); }
.voter svg { width: 18px; height: 18px; }
.winner-card.show .voter { transition: transform 0.32s cubic-bezier(.2, .8, .3, 1.5); transform: scale(1); }
.winner-card.show .voter:nth-child(1) { transition-delay: 0.30s; }
.winner-card.show .voter:nth-child(2) { transition-delay: 0.40s; }
.winner-card.show .voter:nth-child(3) { transition-delay: 0.50s; }
.winner-card.show .voter:nth-child(4) { transition-delay: 0.60s; }
.winner-card.show .voter:nth-child(5) { transition-delay: 0.70s; }
.winner-tally { margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--forest); }

.demo-cap { text-align: center; color: var(--muted); margin-top: 30px; font-size: 15px; }

/* Stat band */
.stat { text-align: center; padding: 64px 0; }
.stat-big {
    font-family: var(--serif);
    font-size: clamp(24px, 3.6vw, 34px);
    line-height: 1.25;
    letter-spacing: -0.01em;
    max-width: 720px;
    margin: 0 auto 16px;
}
.stat-big strong { color: var(--mint-deep); }
.stat-big sup { color: var(--amber); font-size: 0.55em; }
.stat-sub { color: var(--muted); font-size: 18px; max-width: 560px; margin: 0 auto 20px; }
.stat-note { color: var(--muted); font-size: 12.5px; max-width: 560px; margin: 0 auto; opacity: 0.85; }
.stat-note sup { color: var(--amber); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 28px 24px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(45, 59, 46, 0.06);
}
.step .num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 50%;
    background: #EAF1E8; color: var(--mint-deep);
    font-family: var(--serif); font-weight: 700; font-size: 18px; margin-bottom: 14px;
}
.step h3 { font-size: 19px; margin-bottom: 8px; letter-spacing: -0.01em; }
.step p { color: var(--muted); font-size: 15px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature { padding: 8px 4px; }
.feature h3 { font-size: 18px; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 15px; }

/* Cooking-flow section */
.cook-wrap { display: flex; align-items: center; gap: 48px; }
.cook-copy { flex: 1 1 340px; }
.cook-copy h2 { text-align: left; font-family: var(--serif); font-size: clamp(26px, 3.6vw, 34px); font-weight: 700; letter-spacing: -0.01em; margin-bottom: 14px; }
.cook-copy p { color: var(--muted); font-size: 18px; }
.cook-demo { flex: 0 0 auto; }
.cook-card {
    width: 340px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: 0 18px 40px rgba(45, 59, 46, 0.12);
    padding: 26px 26px 30px;
}
.cook-title { font-family: var(--serif); font-size: 24px; font-weight: 700; color: var(--forest); margin-top: 12px; }
.cook-meta { color: var(--muted); font-size: 14px; margin-top: 2px; }
.cook-steps { list-style: none; margin: 22px 0 0; padding: 0; }
.cook-steps li { display: flex; align-items: center; gap: 13px; padding: 11px 0; color: var(--muted); transition: color 0.3s ease; }
.cook-steps li .bullet {
    width: 24px; height: 24px; border-radius: 50%;
    border: 2px solid var(--line); flex: 0 0 auto; position: relative;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.cook-steps li.active { color: var(--forest); font-weight: 600; }
.cook-steps li.active .bullet { border-color: var(--mint); box-shadow: 0 0 0 4px rgba(127, 163, 122, 0.18); }
.cook-steps li.done { color: var(--forest); }
.cook-steps li.done .bullet { background: var(--mint); border-color: var(--mint); }
.cook-steps li.done .bullet::after {
    content: "✓"; color: #fff; font-size: 13px; font-weight: 700;
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
}
.cook-progress { height: 6px; background: var(--line); border-radius: 999px; margin-top: 20px; overflow: hidden; }
.cook-bar { height: 100%; width: 0; background: var(--mint); border-radius: 999px; transition: width 0.5s ease; }

/* Pricing strip */
.pricing { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pricing .box { max-width: 520px; margin: 0 auto; text-align: center; }
.pricing .price { font-family: var(--serif); font-size: 42px; font-weight: 700; letter-spacing: -0.01em; }
.pricing .price small { font-size: 18px; color: var(--muted); font-weight: 600; font-family: -apple-system, sans-serif; }
.pricing ul { list-style: none; margin: 22px 0; text-align: left; display: inline-block; }
.pricing li { padding: 6px 0 6px 28px; position: relative; color: var(--ink); }
.pricing li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }

/* FAQ */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item { padding: 22px 0; border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-item h3 { font-size: 18px; letter-spacing: -0.01em; margin-bottom: 8px; color: var(--forest); }
.faq-item p { color: var(--muted); font-size: 16px; }

/* Footer */
footer.site { border-top: 1px solid var(--line); padding: 40px 0; color: var(--muted); font-size: 14px; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
footer.site nav a { margin-left: 0; margin-right: 20px; }
.footnote { font-size: 12px; line-height: 1.5; color: var(--muted); opacity: 0.8; margin-top: 18px; max-width: 640px; }
.footnote sup { color: var(--amber); }

/* Legal / content pages */
.doc { padding: 56px 0 80px; }
.doc h1 { font-family: var(--serif); font-size: clamp(32px, 5vw, 44px); letter-spacing: -0.01em; font-weight: 700; margin-bottom: 8px; }
.doc .updated { color: var(--muted); font-size: 14px; margin-bottom: 36px; }
.doc h2 { font-family: var(--serif); font-size: 23px; font-weight: 700; margin: 34px 0 10px; letter-spacing: -0.01em; }
.doc h3 { font-size: 18px; margin: 22px 0 8px; }
.doc p, .doc li { color: #463a2e; margin-bottom: 12px; }
.doc ul { padding-left: 22px; margin-bottom: 12px; }
.doc a { font-weight: 600; }
.doc .back { display: inline-block; margin-top: 40px; font-weight: 600; }

@media (max-width: 720px) {
    .steps, .features { grid-template-columns: 1fr; }
    nav a { margin-left: 16px; font-size: 14px; }
    .hero { padding: 60px 0 44px; }
    .cook-wrap { flex-direction: column; gap: 30px; }
    .cook-copy { text-align: center; }
    .cook-copy h2 { text-align: center; }
    .cook-card { width: 100%; max-width: 340px; margin: 0 auto; }
}
