/* Yield Trainer — the styles shared by the landing page, About and
   Contact. One file so the three pages cannot drift apart. */
  :root{
    --bg:#eeece3; --surface:#ffffff; --surface-2:#f7f5ee;
    --border:#dcd8c9; --text:#221f19; --text-dim:#605b4c;
    --gold:#b8860b; --gold-soft:#f6ecd2; --gold-ink:#1b1505;
    --down:#c8402a;
    --rule:#d3cec0;
    /* the halo on the film buttons: a brighter yellow than the ink gold, so it
       still reads as a glow against cream */
    --glow:#f0b81f;
    color-scheme: light;
  }
  @media (prefers-color-scheme: dark){
    :root{
      --bg:#101319; --surface:#181c23; --surface-2:#1f242c;
      --border:#2e3541; --text:#e9ebef; --text-dim:#8d95a3;
      --gold:#e8b53c; --gold-soft:#2e2612; --gold-ink:#181c23;
      --down:#ff5236;
      --rule:#272e38;
      --glow:#ffd24a;
      color-scheme: dark;
    }
  }
  *{box-sizing:border-box;}
  html,body{margin:0;padding:0;}
  body{
    background:var(--bg); color:var(--text);
    font-family:'IBM Plex Sans',system-ui,sans-serif;
    -webkit-font-smoothing:antialiased;
    font-variant-numeric:tabular-nums;
  }
  h1,h2,h3{ font-family:'Fraunces',Georgia,serif; font-weight:500; margin:0; }
  .mono{ font-family:'IBM Plex Mono',ui-monospace,monospace; }
  .wrap{ max-width:720px; margin:0 auto; padding:0 24px; }

  /* ---- nav ---- */
  .topnav{ position:sticky; top:0; z-index:50; background:var(--surface); border-bottom:1px solid var(--border); }
  .topnav .wrap{ display:flex; align-items:center; justify-content:space-between; padding-top:.85rem; padding-bottom:.85rem; }
  .wordmark{ font-family:'Fraunces',Georgia,serif; font-weight:600; font-size:1.15rem; color:var(--text); text-decoration:none; letter-spacing:.01em; }
  .wordmark em{ font-style:italic; color:var(--gold); }
  .navlinks{ display:flex; align-items:center; gap:1.15rem; }
  .navlink{ color:var(--text-dim); text-decoration:none; font-size:.88rem; font-weight:600; }
  .navlink:hover{ color:var(--gold); }
  .navlink.here{ color:var(--text); }
  /* one plain link and one button: the same email box does both, but the way
     in wants to look like a way in */
  .navcta{ background:var(--gold); color:var(--gold-ink); text-decoration:none;
    font-size:.84rem; font-weight:700; letter-spacing:.01em;
    padding:.42rem .95rem; border-radius:5px; white-space:nowrap; }
  .navcta:hover{ opacity:.92; }
  .navlink{ white-space:nowrap; }
  /* Below this the wordmark and four items cannot share a line without the
     wordmark breaking in half. Sign in goes: the Sign up box signs returning
     accounts in with the same email, and the footer still links it. */
  @media (max-width:520px){
    .topnav .wrap{ flex-wrap:nowrap; }
    .wordmark{ font-size:1.05rem; white-space:nowrap; }
    .navlinks{ gap:.85rem; }
    .navlink{ font-size:.82rem; }
    .navlink[href="/app/"]{ display:none; }
    .navcta{ font-size:.8rem; padding:.4rem .8rem; }
  }

  /* ---- shared ---- */
  .eyebrow{ font-family:'IBM Plex Mono',monospace; font-size:.68rem; letter-spacing:.2em;
    text-transform:uppercase; color:var(--text-dim); }
  .cta{
    display:inline-block; background:var(--gold); color:var(--gold-ink);
    text-decoration:none; padding:1rem 2.6rem; border-radius:6px;
    font-weight:600; font-size:1.05rem; letter-spacing:.01em;
  }
  .cta:hover{ opacity:.92; }
  /* The same ring the app puts on Start Training under a film, so the one call
     to action on the site behaves the same way wherever it appears. Sized off
     the button rather than the film's shadow token, which does not exist here. */
  @keyframes ctaglow{
    0%,100%{ box-shadow:0 0 0 0 color-mix(in srgb, var(--gold) 55%, transparent); }
    50%    { box-shadow:0 0 0 11px color-mix(in srgb, var(--gold) 0%, transparent); }
  }
  .cta{ animation:ctaglow 1.8s ease-in-out infinite; }
  @media (prefers-reduced-motion: reduce){ .cta{ animation:none; } }
  .under-cta{ margin:1rem 0 0; color:var(--text-dim); font-size:.9rem; }
  .price-note{ display:block; margin-top:.45rem; color:var(--text-dim); font-size:.8rem; opacity:.8; }
  section{ padding:9vh 0; }
  /* About and Contact start straight into content, so the first section carries
     the breathing room the hero gives the landing page */
  section.pagetop{ padding-top:11vh; }
  .rule{ height:1px; background:var(--rule); border:0; margin:0; }

  /* ---- 1. hero ---- */
  header.hero{ padding:13vh 0 11vh; }
  header.hero .wrap{ max-width:660px; }
  h1{ font-size:clamp(2.1rem,5.4vw,3.35rem); line-height:1.08; letter-spacing:-.01em; }
  /* the headline and the turn, nothing else */
  .hero-turn{ margin:1.9rem 0 0; font-size:1.15rem; line-height:1.5; color:var(--text); }
  /* what it is, and the way in — now its own beat under the films */
  .intro .is{ margin:0; font-family:'Fraunces',Georgia,serif; font-weight:500;
    font-size:clamp(1.2rem,3vw,1.55rem); line-height:1.4; max-width:22em; }
  .intro .is-sub{ margin:.8rem 0 0; color:var(--text-dim); font-size:1.02rem;
    line-height:1.6; max-width:34em; }
  /* the second line of the headline is the turn, so it carries the weight */
  .intro .is b{ font-weight:600; }
  .intro .is-no{ margin:1.5rem 0 0; color:var(--text-dim); font-size:.95rem; }
  .intro .is-bring{ margin:.9rem 0 0; font-size:1.02rem; line-height:1.55;
    max-width:32em; color:var(--text); }
  .hero-cta{ margin-top:2.4rem; }

  /* ---- 2. recognition ---- */
  .known{ margin:2.4rem 0 0; }
  .known li{ list-style:none; color:var(--text-dim); font-size:1.05rem; line-height:1.9; }
  .known ul{ margin:0; padding:0; }
  .opens{ display:flex; align-items:center; gap:1rem; margin:2rem 0; }
  .opens span{ white-space:nowrap; color:var(--gold); }
  .opens .rule{ flex:1 1 auto; }
  .did{ margin:0; padding:0; }
  .did li{ list-style:none; font-size:clamp(1.05rem,2.6vw,1.3rem); line-height:1.75;
    font-family:'Fraunces',Georgia,serif; font-weight:500; }
  .after{ margin:2.4rem 0 0; color:var(--text-dim); font-size:1rem; line-height:1.6; max-width:32em; }
  .after b{ color:var(--text); font-weight:500; }

  /* ---- 3. the questions ---- */
  .demo-intro{ margin:1.8rem 0 0; color:var(--text-dim); font-size:1rem; line-height:1.6; max-width:34em; }
  .asks{ margin:2.4rem 0 0; }
  .asks li{ list-style:none; padding:.62rem 0; border-bottom:1px solid var(--rule);
    color:var(--text); font-size:1rem; }
  .asks ul{ margin:0; padding:0; }
  .asks li:last-child{ border-bottom:0; }
  .nothing{ margin:2rem 0 0; font-family:'Fraunces',Georgia,serif; font-size:1.3rem;
    font-weight:500; line-height:1.45; }

  /* ---- 4. keep your strategy ---- */
  .nots{ margin:2.2rem 0 0; padding:0; }
  .nots li{ list-style:none; color:var(--text-dim); font-size:1.02rem; line-height:1.95; }
  .nots li::before{ content:'—'; color:var(--rule); margin-right:.7rem; }
  .bring{ margin:2.2rem 0 0; padding-top:1.8rem; border-top:1px solid var(--rule);
    font-family:'Fraunces',Georgia,serif; font-size:clamp(1.2rem,3vw,1.5rem); line-height:1.45; }

  /* ---- 5. behaviours ---- */
  .ledger{ margin:2.4rem 0 0; padding:0; counter-reset:b; }
  .ledger li{ list-style:none; display:flex; gap:1rem; align-items:baseline;
    padding:.8rem 0; border-bottom:1px solid var(--rule); font-size:1rem; line-height:1.45; }
  .ledger li:last-child{ border-bottom:0; }
  .ledger li::before{ counter-increment:b; content:counter(b,decimal-leading-zero);
    font-family:'IBM Plex Mono',monospace; font-size:.7rem; color:var(--gold);
    flex:0 0 1.8rem; letter-spacing:.06em; }
  .caveat{ margin:2rem 0 0; color:var(--text-dim); font-size:.92rem; line-height:1.6; max-width:34em; }

  /* ---- films ---- */
  .films h2{ font-size:1.5rem; }
  .films-lede{ margin:.9rem 0 0; color:var(--text-dim); font-size:1rem; line-height:1.6; max-width:34em; }
  .reel-note{ margin:.5rem 0 0 !important; color:var(--text-dim); font-size:.86rem; line-height:1.5;
    opacity:.85; flex:0 0 auto !important; }
  .reels{ display:grid; grid-template-columns:1fr; gap:1px; background:var(--border);
    border:1px solid var(--border); border-radius:8px; overflow:hidden; margin-top:1.8rem; }
  @media (min-width:640px){ .reels{ grid-template-columns:1fr 1fr; } }
  .reel{ background:var(--surface); padding:1.5rem; display:flex; flex-direction:column; gap:.5rem; }
  .reel .tag{ font-family:'IBM Plex Mono',monospace; font-size:.66rem; letter-spacing:.18em;
    text-transform:uppercase; color:var(--gold); }
  .reel h3{ font-size:1.18rem; }
  .reel p{ margin:0; color:var(--text-dim); font-size:.92rem; line-height:1.55; flex:1; }
  /* the two free films are the one thing on the page allowed to shout */
  .watch{ display:inline-block; align-self:flex-start; margin-top:.5rem;
    background:var(--glow); color:#1b1505; border:1px solid var(--glow);
    text-decoration:none; padding:.58rem 1.15rem; border-radius:6px;
    font-family:'IBM Plex Mono',ui-monospace,monospace;
    font-weight:700; font-size:.82rem; letter-spacing:.08em;
    animation:watchglow 2.4s ease-in-out infinite; }
  .watch:hover{ filter:brightness(1.07); }
  @keyframes watchglow{
    0%,100%{ box-shadow:0 0 7px 0 color-mix(in srgb, var(--glow) 55%, transparent); }
    50%    { box-shadow:0 0 20px 5px color-mix(in srgb, var(--glow) 72%, transparent); }
  }
  @media (prefers-reduced-motion: reduce){
    .watch{ animation:none; box-shadow:0 0 14px 3px color-mix(in srgb, var(--glow) 60%, transparent); }
  }

  /* ---- the trailer, under the claim it is evidence for ---- */
  .trailer{ display:block; text-decoration:none; color:inherit; margin:1.8rem 0 0;
    border:1px solid var(--border); border-radius:10px; overflow:hidden;
    background:var(--surface); transition:border-color .18s ease; }
  .trailer:hover{ border-color:var(--gold); }
  /* the poster is a frame from the reel's own palette rather than a screenshot,
     so it cannot go stale when the film is recut */
  .trailer .poster{ position:relative; aspect-ratio:16/7; background:
    radial-gradient(120% 140% at 50% 10%, #141a24 0%, #0b0e14 60%, #07090e 100%); }
  .trailer .poster::before{ content:''; position:absolute; inset:0; opacity:.5;
    background-image:linear-gradient(var(--border) 1px, transparent 1px),
      linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size:44px 44px; }
  .trailer .play{ position:absolute; inset:0; display:flex; align-items:center;
    justify-content:center; flex-direction:column; gap:.7rem; }
  .trailer .disc{ width:62px; height:62px; border-radius:50%; display:grid;
    place-items:center; background:var(--glow); color:#1b1505; font-size:1.25rem;
    padding-left:.18rem;
    box-shadow:0 0 0 0 color-mix(in srgb, var(--glow) 55%, transparent);
    animation:trailerpulse 2.6s ease-in-out infinite; }
  @keyframes trailerpulse{
    0%,100%{ box-shadow:0 0 8px 0 color-mix(in srgb, var(--glow) 50%, transparent); }
    50%    { box-shadow:0 0 26px 7px color-mix(in srgb, var(--glow) 65%, transparent); }
  }
  @media (prefers-reduced-motion: reduce){ .trailer .disc{ animation:none; } }
  .trailer .ptitle{ font-family:'IBM Plex Mono',ui-monospace,monospace;
    font-size:.7rem; letter-spacing:.16em; text-transform:uppercase;
    color:var(--text-dim); }
  .trailer .bar{ display:flex; align-items:baseline; gap:.8rem; flex-wrap:wrap;
    padding:.95rem 1.15rem; border-top:1px solid var(--border); }
  .trailer .bar b{ font-size:1rem; font-weight:600; }
  .trailer .bar span{ color:var(--text-dim); font-size:.88rem; line-height:1.5; }
  .trailer .len{ margin-left:auto; font-family:'IBM Plex Mono',ui-monospace,monospace;
    font-size:.72rem; letter-spacing:.1em; color:var(--gold); }

  /* ---- how it works ---- */
  .steps{ margin-top:1.6rem; }
  .step-row{ display:flex; gap:1rem; padding:.9rem 0; border-bottom:1px solid var(--rule); }
  .step-row:last-child{ border-bottom:none; }
  .step-num{ font-family:'IBM Plex Mono',monospace; font-size:.7rem; font-weight:600;
    color:var(--gold); flex:0 0 1.8rem; padding-top:.2rem; letter-spacing:.06em; }
  .step-row p{ margin:0; color:var(--text-dim); font-size:.97rem; line-height:1.55; }
  .step-row strong{ color:var(--text); font-weight:600; }
  .trust{ margin:2rem 0 0; padding:.9rem 1.1rem; border:1px solid var(--border); border-radius:8px;
    background:var(--surface-2); color:var(--text-dim); font-size:.84rem; line-height:1.55;
    max-width:36em; }
  .more{ margin:2.4rem 0 0; font-size:.95rem; }
  .more a{ color:var(--text-dim); text-decoration:none; font-weight:600; }
  .more a:hover{ color:var(--gold); }

  /* ---- final ---- */
  .final{ text-align:center; padding:12vh 0; }
  .final h2{ font-size:clamp(1.7rem,4.4vw,2.5rem); line-height:1.2; }
  .final .cta{ margin-top:2.2rem; }

  /* ---- contact + footer ---- */
  .contact h2{ font-size:1.5rem; }
  .contact .sub{ font-size:.95rem; max-width:480px; margin:.4rem 0 1.4rem; }
  .cform{ max-width:480px; display:flex; flex-direction:column; gap:.7rem; }
  .cform input,.cform textarea{ width:100%; padding:.75rem; border:1px solid var(--border); border-radius:6px;
    background:var(--surface); color:var(--text); font:inherit; font-size:1rem; }
  .cform textarea{ resize:vertical; min-height:120px; }
  .cform button{ background:var(--gold); color:var(--gold-ink); border:none; border-radius:6px;
    padding:.85rem; font-weight:600; font-size:1rem; cursor:pointer; }
  .cform button:disabled{ opacity:.6; cursor:default; }
  .cstatus{ min-height:1.2em; color:var(--text-dim); font-size:.88rem; margin:0; }
  footer{ padding:5vh 0 9vh; color:var(--text-dim); font-size:.85rem; border-top:1px solid var(--rule); }
  footer a{ color:var(--text-dim); }
  footer .links{ margin-top:.5rem; }
  footer .links a{ margin-right:.8rem; }

