/* Story Lab — shared styles.
   FerdiWrites Creative colour tokens from Storytelling Courses/BRAND.md.
   Light/cream skin: the buyer is a parent, not a producer, so this is the warm skin
   rather than the dark filmic one used on the deck funnel.

   TYPE: Cinzel + Lato, the pairing already set for the printable kit
   (Storytelling Courses/kit/README.md). Self-hosted from the SAME woff2 files the
   worksheets print from, so screen and paper cannot drift — and so no page has to
   call out to Google Fonts.

   CINZEL HAS NO TRUE LOWERCASE. Its "lowercase" are small capitals: distinct outlines,
   but x-height 500 against cap-height 700. So every Cinzel run reads as caps/small-caps
   however it is typed. That is why it is display only, headings are short, tracking is
   POSITIVE (caps need air, unlike the negative tracking a lowercase display face wants)
   and line-height is looser. Body text is Lato, always.

   Only 400 and 700 exist as static instances. Never ask for 500/600 — the browser
   synthesises a fake weight. */

@font-face{
  font-family:"Cinzel";
  src:url("/assets/fonts/Cinzel-400.woff2") format("woff2");
  font-weight:400;font-style:normal;font-display:swap;
}
@font-face{
  font-family:"Cinzel";
  src:url("/assets/fonts/Cinzel-700.woff2") format("woff2");
  font-weight:700;font-style:normal;font-display:swap;
}
@font-face{
  font-family:"Lato";
  src:url("/assets/fonts/Lato-400.woff2") format("woff2");
  font-weight:400;font-style:normal;font-display:swap;
}
@font-face{
  font-family:"Lato";
  src:url("/assets/fonts/Lato-700.woff2") format("woff2");
  font-weight:700;font-style:normal;font-display:swap;
}

:root{
  --paper:#F6EFE4;
  --paper-2:#FBF7F0;
  --card:#FFFFFF;
  --ink:#16130F;
  --ink-2:#3A332A;
  --muted:#6E6558;
  --gold:#C9A24B;
  --gold-dark:#A87E2C;   /* gold on cream is only 2.08:1 — ALWAYS use this for gold TEXT */
  --gold-light:#E2C275;
  --copper:#C77B3C;
  --rule:#A8864B;
  --line:rgba(22,19,15,.14);
  --ok:#3F7A46;
  --bad:#A33228;

  --display:"Cinzel",Georgia,"Times New Roman",serif;
  --body:"Lato",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;

  --gut:clamp(1.15rem,4.5vw,2.75rem);
  --maxw:64rem;
  --narrow:40rem;
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}

body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:var(--body);
  font-size:clamp(1rem,.97rem + .22vw,1.08rem);
  line-height:1.65;
  overflow-x:hidden;
  /* Belt and braces against the Cormorant trap recorded in BRAND.md: a display serif
     that defaults to oldstyle figures turns "1" into a small-cap I, and this page is
     full of lesson numbers and prices. Cinzel and Lato are lining already. */
  font-variant-numeric:lining-nums tabular-nums;
}

img,video,iframe{max-width:100%;display:block}
a{color:var(--gold-dark);text-decoration-thickness:1px;text-underline-offset:.18em}
a:hover{color:var(--copper)}

.wrap{width:100%;max-width:var(--maxw);margin-inline:auto;padding:clamp(1.5rem,5vw,3.5rem) var(--gut)}
.wrap.narrow{max-width:var(--narrow)}

h1,h2,h3{font-family:var(--display);font-weight:700;line-height:1.3;letter-spacing:.015em;
  margin:0 0 .6em}
/* Smaller than a lowercase display face would be set: small caps read bigger than their
   point size, and a long line of them is tiring. */
h1{font-size:clamp(1.6rem,1.15rem + 2.1vw,2.4rem)}
h2{font-size:clamp(1.15rem,1rem + .7vw,1.45rem);margin-top:2.4em;letter-spacing:.03em}
h3{font-size:.98rem;margin-top:1.7em;letter-spacing:.045em;color:var(--ink)}

p{margin:0 0 1.1em}
.eyebrow{font-family:var(--body);font-size:.78rem;font-weight:700;letter-spacing:.14em;
  text-transform:uppercase;color:var(--gold-dark);margin-bottom:.7em}
.lede{font-size:clamp(1.08rem,1rem + .5vw,1.3rem);color:var(--ink-2)}
.small{font-size:.9rem}
.muted{color:var(--muted)}
.center{text-align:center}

hr{border:0;border-top:1px solid var(--rule);opacity:.5;margin:2.5rem 0}

.card{background:var(--card);border:1px solid var(--line);border-radius:14px;
  padding:clamp(1.1rem,3vw,1.75rem);margin:0 0 1.2rem}

.banner{background:#FFF4D6;border:1px solid var(--gold);border-left:5px solid var(--gold-dark);
  border-radius:10px;padding:1rem 1.1rem;margin:0 0 1.75rem;font-size:.95rem}

.btn{display:inline-block;appearance:none;cursor:pointer;
  font-family:var(--body);font-size:1.02rem;font-weight:700;
  background:var(--ink);color:var(--paper-2);
  border:1px solid var(--ink);border-radius:999px;
  padding:.85em 1.6em;text-decoration:none;transition:transform .12s ease,background .12s ease}
.btn:hover{background:#2A241C;color:var(--paper-2);transform:translateY(-1px)}
.btn:disabled{opacity:.5;cursor:not-allowed;transform:none}
.btn.gold{background:var(--gold-dark);border-color:var(--gold-dark);color:#FFF}
.btn.gold:hover{background:#8F6A22}
.btn.ghost{background:transparent;color:var(--ink);border-color:var(--rule)}

.price{font-family:var(--display);font-size:clamp(1.85rem,1.4rem + 1.8vw,2.45rem);
  font-weight:700;line-height:1;letter-spacing:.01em;margin:0 0 1.15rem}
.price .once{display:block;font-family:var(--body);font-size:.8rem;font-weight:700;
  letter-spacing:.1em;text-transform:uppercase;color:var(--gold-dark);margin-top:.6em}

/* Two tiers side by side on a laptop, stacked on a phone. */
.tiers{display:grid;gap:1.1rem;grid-template-columns:1fr}
@media (min-width:46rem){.tiers{grid-template-columns:1fr 1fr}}

.lesson-list{list-style:none;padding:0;margin:0;display:grid;gap:.55rem}
.lesson-list li{display:flex;gap:.9rem;align-items:baseline;
  padding:.7rem .9rem;background:var(--card);border:1px solid var(--line);border-radius:10px}
.lesson-list .n{font-family:var(--display);font-weight:700;color:var(--gold-dark);
  min-width:1.6em;text-align:right}
.lesson-list .rt{margin-left:auto;font-size:.85rem;color:var(--muted);white-space:nowrap}

pre{white-space:pre-wrap;word-wrap:break-word;font-family:var(--body);font-size:.95rem;
  line-height:1.6;margin:0}
.consent-scroll{max-height:22rem;overflow-y:auto;background:var(--paper-2);
  border:1px solid var(--line);border-radius:12px;padding:1.1rem 1.2rem;margin:0 0 1.2rem;
  -webkit-overflow-scrolling:touch}
.fingerprint{font-family:ui-monospace,"SF Mono",Menlo,monospace;font-size:.72rem;
  word-break:break-all;color:var(--muted);margin:0 0 1.5em}

.field{display:block;margin:0 0 1.15rem}
.field label{display:block;font-weight:700;font-size:.95rem;margin-bottom:.35em}
.field input[type=text],.field select{
  width:100%;font-family:var(--body);font-size:1rem;color:var(--ink);
  background:var(--card);border:1px solid var(--rule);border-radius:10px;
  padding:.72em .85em}
.field input:focus-visible,.field select:focus-visible,.btn:focus-visible,a:focus-visible,
.tick input:focus-visible{outline:3px solid var(--copper);outline-offset:2px}
.field .hint{display:block;font-size:.84rem;color:var(--muted);margin-top:.4em}

.tick{display:flex;gap:.75rem;align-items:flex-start;background:var(--card);
  border:1px solid var(--line);border-radius:10px;padding:.85rem .95rem;margin:0 0 .6rem;
  cursor:pointer;font-size:.95rem}
.tick input{margin:.25em 0 0;width:1.15rem;height:1.15rem;flex:0 0 auto;accent-color:var(--gold-dark)}

.error{color:var(--bad);font-weight:700}
.error[hidden]{display:none}

/* Honeypot: off-screen, not display:none — a bot that reads styles skips a hidden field
   but happily fills one it can "see". */
#bot-field{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}

.player{position:relative;aspect-ratio:16/9;background:#0E0D0B;border-radius:12px;
  overflow:hidden;border:1px solid var(--line)}
.player iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.player .pending{position:absolute;inset:0;display:grid;place-content:center;text-align:center;
  color:#F2E9D8;padding:1.5rem;font-size:.95rem}

footer.wrap{border-top:1px solid var(--line);padding-top:1.75rem;padding-bottom:3rem}

@media (prefers-reduced-motion:reduce){
  *{animation-duration:.01ms !important;transition-duration:.01ms !important}
}

/* ------------------------------------------------------------------ ART

   Everything in /assets/img comes out of the course itself: four are real frames
   cut from the rendered lesson MP4s, one is the keyed Coach Ferdi plate the films
   composite. Nothing is stock and nothing is a mock-up, so a parent reading this
   page is looking at what their child actually watches.

   The hero frame is CROPPED to 1920x915 to cut the burnt-in caption off the bottom
   of the shot — every frame in that sequence carries one, so there is no clean
   full-height frame to take instead. assets/img/SOURCES.md records the source file
   and timestamp of each, so a re-render can be re-cut from the same places.

   Coach Ferdi is a quantised PNG, not a JPEG: he is keyed with real alpha and sits
   straight on the paper, and JPEG would ring visibly along that hard cut-out edge
   against a flat cream ground. */

.hero-art{margin:2rem 0 0;border:1px solid var(--line);border-radius:14px;overflow:hidden}
.hero-art img{width:100%;height:auto}

.shots{display:grid;gap:1.1rem;grid-template-columns:1fr;margin:1.8rem 0 0}
@media (min-width:46rem){.shots{grid-template-columns:repeat(3,1fr)}}
.shots figure{margin:0}
.shots img{width:100%;height:auto;border:1px solid var(--line);border-radius:10px}
.shots figcaption{margin-top:.55rem;font-size:.82rem;line-height:1.45;color:var(--muted)}

.maker{display:grid;gap:1.1rem;grid-template-columns:1fr;align-items:start}
@media (min-width:46rem){.maker{grid-template-columns:190px 1fr;gap:1.9rem}}
.maker>img{width:190px;height:auto;justify-self:start}
.maker p:last-child{margin-bottom:0}

/* One frame set full width because it has to be read, not glanced at: the filled-in
   character card. The same image at 300px in .shots puts its body text under 7px. */
.wide-shot{margin:1.6rem 0 1.9rem}
.wide-shot img{width:100%;height:auto;border:1px solid var(--line);border-radius:14px}
.wide-shot figcaption{margin-top:.6rem;font-size:.85rem;color:var(--muted)}

/* Legal pages (/refunds/, /privacy/, /terms/). These live on this site, under this site's
   seller, because sites.easyleadengine.io/refunds|privacy|terms belong to Easy Does It
   Social Media (Pty) Ltd — a different company with a different director, which is NOT the
   seller of Story Lab. */
.plain{list-style:none;padding:0;margin:0 0 1.1em;display:grid;gap:.4rem}
.plain li{padding-left:1rem;border-left:2px solid var(--line)}

/* ---------- waitlist ----------
   November's social posts all end here, and until the four gates in ORDERS.md clear this
   is the ONLY thing a visitor can do. So it sits high on the page, above the price, and
   the price section points back down at it.

   Two tracks on one form: a parent waiting for Story Lab (December) and a teen waiting
   for Story Engine (undated). One field either way — a waitlist does not need a name,
   and under POPIA the safest field is the one not collected. */

.waitlist{background:var(--paper-2);border:1px solid var(--line);
  border-top:4px solid var(--gold-dark);border-radius:14px;
  padding:clamp(1.25rem,3.5vw,2rem);margin:2rem 0}
.waitlist h2{margin-top:0}
.waitlist .small{margin-bottom:0}

.wl-tracks{display:flex;flex-wrap:wrap;gap:.5rem;margin:.9rem 0 1.1rem}
.wl-track{appearance:none;cursor:pointer;font-family:var(--body);font-size:.92rem;
  background:transparent;color:var(--ink-2);border:1px solid var(--rule);
  border-radius:999px;padding:.5rem 1rem;transition:background .15s,color .15s}
.wl-track[aria-pressed="true"]{background:var(--ink);border-color:var(--ink);color:var(--paper-2)}
.wl-track:focus-visible{outline:2px solid var(--gold-dark);outline-offset:2px}

.wl-row{display:flex;flex-wrap:wrap;gap:.6rem}
.wl-row input[type=email]{flex:1 1 16rem;min-width:0;font-family:var(--body);
  font-size:1rem;padding:.72rem .9rem;border:1px solid var(--rule);border-radius:10px;
  background:#FFF;color:var(--ink)}
.wl-row input[type=email]:focus-visible{outline:2px solid var(--gold-dark);outline-offset:1px}

/* The honeypot must be reachable by nothing a person uses, and invisible to everyone.
   Not display:none — some bots skip hidden fields and that defeats the point. */
.wl-hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}

.wl-note{margin-top:.85rem;min-height:1.4rem}
.wl-note.ok{color:var(--ok);font-weight:700}
.wl-note.bad{color:var(--bad);font-weight:700}

@media (prefers-reduced-motion:reduce){
  .wl-track{transition:none}
}

/* Buy forms in the price cards. Reuses the waitlist row's shape: one email field and one
   button, wrapping to two lines on a phone rather than shrinking the button to nothing. */
.buy{margin-top:1.1rem}
.buy label{display:block;margin-bottom:.4rem;color:var(--ink-soft,var(--ink))}
.buy-row{display:flex;flex-wrap:wrap;gap:.6rem}
.buy-row input[type=email]{flex:1 1 11rem;min-width:0;font-family:var(--body);
  font-size:1rem;padding:.8em .9em;border:1px solid var(--rule);background:#FFF;color:var(--ink)}
.buy-row input[type=email]:focus-visible{outline:2px solid var(--gold-dark);outline-offset:1px}
.buy-row .btn{flex:0 0 auto}
.buy .error{margin-top:.6rem}
