/* winnowry.com — one stylesheet, three pages (SPEC-site-revamp §5).
   Same-origin only: no CDN, no web font, no analytics, ever. The site must practise what it
   preaches, and `tests/test_site_claims.py` asserts it on every commit. */
:root{
    /* Adopted verbatim from app/web/static/css/app.css so a visitor who installs recognises
       what they bought (SPEC-site-revamp §6). Fonts stay a SYSTEM stack — the app may load
       Inter/Source Serif locally, the site may not fetch anything from anyone. */
    --bg:#FAF8F3;           /* warm reading-paper (not pure white) */
    --surface:#F3EFE6;      /* cards a hair darker than the page */
    --fg:#232019;           /* warm near-black ink */
    --muted:#6E685B;        /* warm secondary gray (AA on --bg) */
    --accent:#C99A3A;       /* wheat-gold — marks, active fills, borders */
    --accent-strong:#8A6410; /* darker gold for link TEXT (WCAG-AA on paper) */
    --border:#E7E1D3;       /* soft hairline */
  /* #526E46 since 2026-09-03, was #5B7A4E. MEASURED failure, not a preference: the old value gave
     4.17:1 for `.chip-local` text on `--ok-bg` and 4.22:1 for the receipt's lock line on
     `--surface`, against WCAG-AA's 4.5:1 for small text — so the least legible text on the page
     was the privacy reassurance, which is the one thing it cannot afford to be. #526E46 clears
     4.5 on ok-bg (4.92), surface (4.98) and bg (5.38). Dark mode already passed comfortably. */
    --ok:#526E46;           /* calm green — privacy is good news, style it that way */
    --ok-bg:#EAF0E4;
    --warn:#A9781E;         /* honest amber for hedges (never red for privacy) */
    --err:#B23A3A;          /* red reserved ONLY for genuine errors */
    --font-serif:'Iowan Old Style','Palatino Linotype',Palatino,'Book Antiqua',Charter,'Source Serif 4','Source Serif Pro',Georgia,Cambria,serif;
    --font-sans:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,'Helvetica Neue',sans-serif;
    --wrap:1080px; --radius:10px;
  }
  @media (prefers-color-scheme:dark){
    :root{
      --bg:#1C1A17; --fg:#EDE7DA; --muted:#A89E8B; --surface:#24211C;
      --border:#35302A; --accent:#E0B45A; --accent-strong:#E7C173; --ok:#9DB889; --ok-bg:#232a1e;
      --err:#ED9E77;
    }
  }
  *{box-sizing:border-box}
  html{scroll-behavior:smooth}
  @media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
  body{
    margin:0; background:var(--bg); color:var(--fg);
    font-family:var(--font-sans); font-size:17px; line-height:1.65;
    -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
  }
  .wrap{max-width:var(--wrap); margin:0 auto; padding:0 24px}
  h1,h2,h3{font-family:var(--font-serif); font-weight:500; line-height:1.15; letter-spacing:-.01em; margin:0}
  h1{font-size:clamp(2.3rem,5.2vw,3.4rem)}
  h2{font-size:clamp(1.6rem,3.4vw,2.1rem); margin-bottom:.5em}
  h3{font-size:1.14rem; font-family:var(--font-sans); font-weight:600; letter-spacing:0}
  p{margin:0 0 1rem}
  a{color:var(--accent-strong); text-decoration:none}
  a:hover{text-decoration:underline}
  .eyebrow{font-size:.82rem; letter-spacing:.02em; color:var(--accent-strong); font-weight:600; margin:0 0 .9rem}
  .lead{color:var(--muted)}
  :focus-visible{outline:2px solid var(--accent); outline-offset:3px; border-radius:4px}

  /* header */
  header{position:sticky; top:0; z-index:20; background:color-mix(in srgb,var(--bg) 88%, transparent); backdrop-filter:saturate(1.1) blur(8px); border-bottom:1px solid var(--border)}
  .bar{display:flex; align-items:center; justify-content:space-between; height:60px}
  .mark{display:flex; align-items:center; gap:.55rem; font-weight:600; color:var(--fg); font-size:1.06rem}
  .mark:hover{text-decoration:none}
  .glyph{width:12px; height:12px; transform:rotate(45deg); background:var(--accent); border-radius:2px; flex:none}
  nav.top{display:flex; align-items:center; gap:1.6rem}
  nav.top a{color:var(--muted); font-size:.92rem}
  nav.top a:hover{color:var(--fg); text-decoration:none}
  .btn{display:inline-block; background:var(--accent); color:#241f17; font-weight:600; font-size:.92rem;
    padding:.6rem 1.05rem; border-radius:8px; border:1px solid transparent; cursor:pointer; font-family:var(--font-sans)}
  .btn:hover{filter:brightness(1.04); text-decoration:none}
  .nav-cta{padding:.45rem .9rem}
  nav.top a.nav-cta{color:#241f17}
  @media (max-width:720px){ nav.top a:not(.nav-cta){display:none} }

  /* hero */
  .hero{padding:72px 0 40px}
  .hero-grid{display:grid; grid-template-columns:1.05fr .95fr; gap:48px; align-items:center}
  .hero h1{margin-bottom:1rem}
  .hero .sub{font-family:var(--font-serif); font-size:1.18rem; color:var(--muted); max-width:40ch; margin-bottom:1.6rem}
  .trustline{font-size:.85rem; color:var(--muted); margin-top:.9rem; display:flex; gap:.5rem; flex-wrap:wrap; align-items:center}
  .dot{color:var(--accent)}
  @media (max-width:820px){ .hero-grid{grid-template-columns:1fr; gap:34px} .hero .sub{max-width:none} }

  /* waitlist form */
  form.waitlist{display:flex; gap:.5rem; max-width:420px; flex-wrap:wrap}
  form.waitlist input{flex:1 1 200px; min-width:0; padding:.7rem .85rem; font-size:1rem; font-family:var(--font-sans);
    color:var(--fg); background:var(--bg); border:1px solid var(--border); border-radius:8px}
  form.waitlist select{flex:none; padding:.7rem .6rem; font-size:1rem; font-family:var(--font-sans);
    color:var(--fg); background:var(--bg); border:1px solid var(--border); border-radius:8px; cursor:pointer}
  form.waitlist input[aria-invalid=true],form.waitlist select[aria-invalid=true]{border-color:var(--err)}
  form.waitlist .btn{flex:none}
  .vh{position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap}
  .waitlist-done{margin:0; color:var(--ok); font-weight:600}
  .waitlist-err{margin:.5rem 0 0; color:var(--err); font-size:.85rem}
  /* ⚠ HONEYPOT — a decoy form field, NOT a layout class. Bots fill it, people never see it.
     Do not use it to wrap copy: doing so hid live paragraphs on three pages (2026-09-02).
     For a measure-capped block of prose use `.prose` below. */
  .hp{position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden}
  .formnote{font-size:.8rem; color:var(--muted); margin:.55rem 0 0}

  /* A block of body prose, measure-capped for comfortable reading (DESIGN-BRIEF: ~68ch). */
  .prose{max-width:68ch; margin-top:4px}
  .prose p:last-child{margin-bottom:0}

  /* receipt mock */
  .receipt{background:var(--surface); border:1px solid var(--border); border-radius:14px; padding:22px 22px 18px;
    font-family:var(--font-sans); box-shadow:none}
  .receipt .rhead{display:flex; align-items:center; justify-content:space-between; margin-bottom:.5rem}
  .rlabel{font-size:.72rem; letter-spacing:.04em; text-transform:uppercase; color:var(--muted); font-weight:600}
  .chip{font-size:.74rem; font-weight:600; padding:.2rem .5rem; border-radius:999px; border:1px solid var(--border); color:var(--muted); white-space:nowrap}
  .chip-local{color:var(--ok); background:var(--ok-bg); border-color:transparent}
  .rq{font-family:var(--font-serif); font-size:1.06rem; color:var(--fg); margin:.1rem 0 1.15rem}
  .rdivider{height:1px; background:var(--border); margin:0 0 1.05rem}
  .rsent{font-size:1.02rem; margin:.1rem 0 .3rem}
  .rsent s{color:var(--muted); text-decoration-thickness:1px}
  .rsent b{color:var(--fg); font-weight:600}
  .rmeta{font-size:.82rem; color:var(--muted); margin:.2rem 0 0}
  .rkept{display:flex; gap:.5rem; align-items:flex-start; margin-top:1rem; font-size:.9rem; color:var(--ok); font-weight:500}
  .lock{flex:none; margin-top:.15rem}
  /* two receipts: today's full receipt + a lighter "a month later" echo (recurring-use story) */
  .receipts{display:flex; flex-direction:column; gap:14px}
  .receipt-echo{background:transparent; border-style:dashed; padding:18px 22px 16px}
  .receipt-echo .rlabel{color:var(--muted)}
  .receipt-echo .rq{font-size:.98rem; margin:.15rem 0 .55rem}
  .receipt-echo .rsent{font-size:.92rem; margin:.1rem 0 .2rem}
  .receipt-echo .rkept{margin-top:.7rem; font-size:.85rem}
  .reveal-line{opacity:1}
  @media (prefers-reduced-motion:no-preference){
    .receipt.anim .reveal-line{opacity:0; transform:translateY(6px)}
    .receipt.anim.play .reveal-line{opacity:1; transform:none; transition:opacity .5s ease, transform .5s ease}
    .receipt.anim.play .reveal-line:nth-child(2){transition-delay:.15s}
    .receipt.anim.play .reveal-line:nth-child(3){transition-delay:.5s}
    .receipt.anim.play .reveal-line:nth-child(4){transition-delay:.8s}
    .receipt.anim.play .reveal-line:nth-child(5){transition-delay:1.05s}
  }

  /* sections */
  section{padding:64px 0}
  .center{text-align:center; max-width:44ch; margin:0 auto}
  .rule-turn{width:44px; height:2px; background:var(--accent); margin:1.6rem auto 1.2rem; border:0}
  .manifesto{font-family:var(--font-serif)}
  .manifesto .big{font-size:1.5rem; color:var(--fg)}

  /* how it works */
  .steps{display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin-top:34px}
  .step{background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:22px}
  .num{font-family:var(--font-serif); font-size:1.5rem; color:var(--accent-strong); line-height:1; margin-bottom:.5rem}
  .step h3{margin-bottom:.35rem}
  .step p{margin:0; color:var(--muted); font-size:.96rem}
  .assist{margin-top:20px; border:1px dashed var(--border); border-radius:var(--radius); padding:18px 22px; color:var(--muted); font-size:.98rem}
  .assist b{color:var(--fg)}
  @media (max-width:820px){ .steps{grid-template-columns:1fr} }

  /* pillars */
  .pillars{display:grid; grid-template-columns:1fr 1fr; gap:20px; margin-top:12px}
  .pillar{border:1px solid var(--border); border-radius:var(--radius); padding:22px 24px; background:var(--bg)}
  .pillar h3{margin-bottom:.4rem}
  .pillar p{margin:0; color:var(--muted); font-size:.97rem}
  @media (max-width:820px){ .pillars{grid-template-columns:1fr} }

  /* trust band */
  .band{background:var(--surface); border-top:1px solid var(--border); border-bottom:1px solid var(--border)}
  .band + .band{border-top:0}
  .inner{display:grid; grid-template-columns:1fr 1fr; gap:44px; align-items:center}
  /* A receipt sitting on the page (not on a band) needs the card to read as a card. */
  section:not(.band) .inner .receipt{background:var(--surface)}
  .band .inner .receipt{background:var(--bg)}
  .chips{display:flex; gap:.6rem; flex-wrap:wrap; margin-top:1rem}
  .bigchip{font-size:.9rem; font-weight:600; padding:.45rem .8rem; border-radius:999px; border:1px solid var(--border); color:var(--muted)}
  .bigchip.green{color:var(--ok); background:var(--ok-bg); border-color:transparent}
  @media (max-width:820px){ .inner{grid-template-columns:1fr; gap:26px} }

  /* under the hood */
  .hood{list-style:none; padding:0; margin:24px 0 0; display:grid; gap:2px}
  .hood li{padding:16px 0; border-top:1px solid var(--border); display:grid; grid-template-columns:200px 1fr; gap:20px}
  .hood li:last-child{border-bottom:1px solid var(--border)}
  .hood b{font-weight:600}
  .hood span{color:var(--muted); font-size:.96rem}
  @media (max-width:640px){ .hood li{grid-template-columns:1fr; gap:4px} }

  /* the deal */
  .deal{background:var(--surface); border:1px solid var(--border); border-radius:16px; padding:40px; text-align:center; max-width:640px; margin:0 auto}
  .deal h2{margin-bottom:.6rem}
  .deal .price{font-family:var(--font-serif); color:var(--accent-strong); font-size:1.05rem; margin:.2rem 0 1.3rem}
  .deal form.waitlist{margin:0 auto; justify-content:center}

  /* faq */
  .faq{max-width:760px; margin:22px auto 0}
  details{border-top:1px solid var(--border); padding:6px 0}
  details:last-child{border-bottom:1px solid var(--border)}
  summary{cursor:pointer; padding:14px 0; font-weight:600; list-style:none; display:flex; justify-content:space-between; align-items:center; gap:1rem}
  summary::-webkit-details-marker{display:none}
  summary::after{content:"+"; color:var(--accent-strong); font-size:1.3rem; line-height:1}
  details[open] summary::after{content:"–"}
  details p{color:var(--muted); margin:0 0 14px; max-width:66ch}

  /* final cta */
  .final{text-align:center}
  .final form.waitlist{margin:1.4rem auto 0; justify-content:center}

  /* footer */
  footer{border-top:1px solid var(--border); padding:36px 0; color:var(--muted); font-size:.9rem}
  .foot{display:flex; justify-content:space-between; align-items:center; gap:16px; flex-wrap:wrap}
  .foot .mark{color:var(--fg)}
  .foot nav{display:flex; gap:1.2rem}

  /* reveal on scroll */
  [data-reveal]{opacity:1}
  @media (prefers-reduced-motion:no-preference){
    [data-reveal]{opacity:0; transform:translateY(14px)}
    [data-reveal].in{opacity:1; transform:none; transition:opacity .5s ease, transform .5s ease}
  }

/* ---- SPEC-site-revamp §5: components the three-page site adds ------------------------------ */

/* A "what you actually get" card: one promise, one honest limit. The limit is not fine print —
   it is the reason the promise is believable, so it gets real weight. */
.surfaces{display:grid; gap:18px; grid-template-columns:repeat(auto-fit,minmax(380px,1fr)); margin-top:8px}
@media (max-width:460px){ .surfaces{grid-template-columns:1fr} }
.surface{background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:20px 22px}
.surface h3{margin-bottom:.45rem}
.surface p{margin-bottom:.6rem; color:var(--muted)}
.surface .limit{display:block; font-size:.88rem; color:var(--muted); border-top:1px dashed var(--border); padding-top:.7rem; margin-top:.2rem}
.surface .limit b{color:var(--fg); font-weight:600}

/* The engine roster on /privacy. Scrolls inside itself on a phone rather than pushing the page. */
.tblwrap{overflow-x:auto; border:1px solid var(--border); border-radius:var(--radius); background:var(--surface)}
.tbl{border-collapse:collapse; width:100%; font-size:.92rem; min-width:520px}
.tbl th,.tbl td{text-align:left; padding:10px 14px; border-bottom:1px solid var(--border)}
.tbl th{font-weight:600; font-size:.82rem; letter-spacing:.02em; color:var(--muted)}
.tbl tr:last-child td{border-bottom:0}
.tbl td code{font-size:.86em; color:var(--muted)}

/* The four egress classes, numbered — rule 1's own enumeration, in the user's language. */
.egress{list-style:none; margin:0; padding:0; counter-reset:eg}
.egress li{position:relative; padding:0 0 1.1rem 46px; counter-increment:eg}
.egress li::before{content:counter(eg); position:absolute; left:0; top:1px; width:30px; height:30px;
  border-radius:50%; background:var(--accent); color:#232019; font-weight:600; font-size:.9rem;
  display:grid; place-items:center; font-family:var(--font-sans)}
.egress b{display:block; margin-bottom:.15rem}
.egress span{color:var(--muted)}

/* A quiet callout for the thing a page must say plainly rather than imply. */
.plainly{border-left:3px solid var(--accent); background:var(--surface); padding:14px 18px;
  border-radius:0 var(--radius) var(--radius) 0; margin:0 0 1.2rem}
.plainly p:last-child{margin-bottom:0}

/* ---- 2026-10-04 revamp: the story, the ladder, and where this is going ---------------------- */

/* The founder's note. Set in the serif, signed, and visibly a person's words rather than copy:
   it is the one block on the site that is allowed to say "I". */
.founder{font-family:var(--font-serif); font-size:1.15rem; line-height:1.6; color:var(--fg);
  max-width:62ch; margin:40px auto 0; padding:26px 30px 22px 34px; position:relative;
  background:var(--surface); border:1px solid var(--border); border-radius:14px}
.founder::before{content:"\201C"; position:absolute; left:14px; top:4px; font-size:3.2rem;
  line-height:1; color:var(--accent); font-family:var(--font-serif)}
.founder p{margin:0 0 .9rem}
.founder em{font-style:italic; color:var(--accent-strong)}
.founder footer{font-family:var(--font-sans); font-size:.9rem; color:var(--muted); margin-top:.4rem;
  border:0; padding:0}
@media (max-width:640px){ .founder{padding:22px 20px 18px 26px; font-size:1.06rem} }


/* Headline emphasis: the serif italic in gold, used once per page at most. */
h1 em, h2 em{font-style:italic; color:var(--accent-strong)}

/* A lead paragraph that is also centred keeps its measure. */
.lead.center{margin-left:auto; margin-right:auto}
