/* =========================================================================
   The experience style — shared by the home page (the workflow) and the
   "Where are you stuck" page. Tokens, the header (mark + one button), the
   button, and the footer (three doors + why it is free). Page-specific rules
   stay inline in each page. The header and footer MARKUP are partials:
   scripts/site/partials.mjs (hud, dock), injected by build-partials.mjs.
   ========================================================================= */
:root{
  --ink:#0f1023; --ink-2:#161833; --ink-3:#1c1f40;
  --line:rgba(255,255,255,.10); --line-2:rgba(255,255,255,.18);
  /* THE FILL PURPLE IS #7141d0, NOT THE BRAND'S #6633cc (ph32tsk65).
   *
   * WCAG 1.4.11 asks a filled control to be distinguishable from the page it sits
   * on. Measured with scripts/lib/contrast.mjs, not by eye:
   *
   *   #6633cc on --ink  2.60:1  FAIL (needs 3.00)   white label 7.22:1 pass
   *   #7141d0 on --ink  3.01:1  PASS                white label 6.23:1 pass
   *   #8654e6 on --ink  3.95:1  PASS (the hover)    white label 4.75:1 pass
   *
   * Only the RESTING state failed, which is the worst shape of this bug: a mouse
   * user hovers, sees the button light up to 3.95:1, and never learns that the
   * state they arrived at was the illegible one. Anyone not using a mouse just
   * has a button they cannot find.
   *
   * #7141d0 is not a new color — it is `--brand-2` from styles.css, which has
   * carried the site's compliant fill for some time behind a note that reads
   * "The home page's own button is #6633cc at 2.60:1 — that is a finding about
   * that page". This is that finding, closed. The two files hold the value
   * separately, BY VALUE, for the same reason as --ease/--glide and the verdict
   * trio: change one, change both.
   *
   * HER BRAND PURPLE IS UNTOUCHED. #6633cc still paints the atmosphere — the
   * hero glow and the mark's drop-shadow — because those are hard-coded
   * rgba(102,51,204,…) and are decoration, which 1.4.11 does not govern and
   * which nobody has to be able to find. Only the four var(--purple) users move:
   * the button, and three form accent-colors in the download sheet. */
  --purple:#7141d0; --purple-lift:#8654e6;
  --orange:#ff6600; --blue:#33ccff; --green:#66ff66;
  --text:#f1f2fa; --muted:#a9abc6; --faint:#7d80a3;
  --sans:"Inter",ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  --mono:"JetBrains Mono",ui-monospace,SFMono-Regular,Menlo,monospace;
  --ease:cubic-bezier(.22,1,.36,1);
  --glide:cubic-bezier(.16,1,.3,1);
  --r:14px;                 /* one radius everywhere: beads, buttons, cards */
  --hud:76px;               /* header band */
  --mark-bottom:86px;       /* where the resting mark ends: 8px + 140px / 1.8 */

  /* The three VERDICT colors, shared with assets/styles.css BY VALUE — the same
     arrangement, and for the same reason, as --ease/--glide above and the note at
     styles.css:123. Added 2026-09-06 so the home page can paint a verdict at all:
     it loads only this file, and until now the palette that says fail/caution/pass
     lived exclusively in styles.css.
     THE CONTRAST FIGURES CARRY OVER RATHER THAN BEING RE-GUESSED: styles.css
     measures these against --paper #0f1023, and this page's ground is that same
     color (--ink #0f1023). scripts/a11y-check-website.mjs reads styles.css only,
     so these are UNGATED here — which is precisely why they are copied at
     identical values instead of re-picked by eye. Change one, change both. */
  --good:#2fd196;           /* 9.55:1  — pass */
  --warn:#f0b44e;           /* 10.14:1 — caution */
  --spark:#ff6b4a;          /* 6.66:1  — fail */
}
*{box-sizing:border-box}

/* ---------- the button ---------- */
.btn{font:600 13.5px/1 var(--sans);color:#fff;background:var(--purple);border:1px solid var(--purple);
  border-radius:var(--r);padding:12px 19px;text-decoration:none;display:inline-flex;align-items:center;gap:8px;cursor:pointer;
  transition:background .18s var(--ease),transform .18s var(--ease)}
.btn:hover{background:var(--purple-lift);border-color:var(--purple-lift);transform:translateY(-1px)}
.btn.ghost{background:transparent;border-color:var(--line-2);color:var(--text)}
.btn.ghost:hover{background:rgba(255,255,255,.07);border-color:rgba(255,255,255,.32)}
.btn.big{font-size:15px;padding:15px 24px}
.btn:disabled{opacity:.55;cursor:default;transform:none}

/* ---------- the header: a translucent band, the mark at rest, one button ----------
   The band is tall enough to cover the mark, so content scrolling under the
   header is always behind something. The home page fades the band and the
   button in with the scroll; the mark it animates itself. */
.hud{position:fixed;z-index:30;top:0;left:0;right:0;height:calc(var(--mark-bottom) + 4px);pointer-events:none}
.hud::before{content:"";position:absolute;inset:0;background:rgba(15,16,35,.86);border-bottom:1px solid var(--line);
  backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
.hud>*{pointer-events:auto}
.hud .btn{position:absolute;right:22px;top:calc(var(--hud) / 2);transform:translateY(-50%)}
.hud .btn:hover{transform:translateY(calc(-50% - 1px))}
.hud .mark{position:fixed;z-index:31;left:22px;top:8px;width:140px;display:block;
  filter:drop-shadow(0 6px 24px rgba(102,51,204,.35))}
.hud .mark img{display:block;width:100%;height:auto}

/* ---------- skip to content (WCAG 2.4.1) ----------
   The hud partial emits it before the header. Parked above the viewport until
   it has focus, FIXED for the same reason as styles.css's copy: absolute would
   leave it above the top of a scrolled page. White on --purple is 6.23:1, the
   pair the button already uses. It sits above the hud (30) and the mark (31). */
.skip-link{position:fixed;left:8px;top:-60px;z-index:40;background:var(--purple);color:#fff;
  font:600 14px/1.2 var(--sans);padding:10px 16px;border-radius:var(--r);text-decoration:none}
.skip-link:focus{top:8px;outline:2px solid var(--text);outline-offset:2px}
@media (prefers-reduced-motion:no-preference){.skip-link{transition:top .15s var(--ease)}}

/* ---------- the footer: three doors out, and why it is free ---------- */
.dock{position:fixed;left:0;right:0;bottom:0;z-index:32;display:grid;justify-items:center;row-gap:9px;
  padding:11px 16px 13px;background:rgba(15,16,35,.86);border-top:1px solid var(--line-2);
  backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);box-shadow:0 -18px 50px rgba(0,0,0,.35)}
.dock .doors{display:flex;gap:8px;align-items:center;justify-content:center;flex-wrap:wrap}
.dock .btn{white-space:nowrap}
.dock .why{margin:0;max-width:100%;text-align:center;font-size:12px;line-height:1.3;color:var(--muted);white-space:nowrap}
.dock .why .short{display:none}
.dock .why.free-line{white-space:normal}
.dock .why.free-line b{color:var(--text)}
/* the legal links (ph0tsk783) — the muted notice colour, underlined so they read as links */
.dock .why a,.stage-foot .why a{color:inherit;text-decoration:underline;text-underline-offset:2px}

@media (max-width:760px){
  :root{--hud:64px;--mark-bottom:70px;--r:12px}   /* 8px + 112px / 1.8; one radius for beads and buttons at this size too */
  .btn{padding:10px 15px;font-size:12.5px}
  .hud .btn{right:14px}
  .hud .mark{left:14px;width:112px}
  .dock{row-gap:7px;padding:9px 10px 10px}
  .dock .doors{display:grid;grid-template-columns:1fr 1fr;gap:6px;width:100%;max-width:420px}
  .dock .doors .btn{justify-content:center;padding:9px 11px;font-size:11px}
  .dock .doors .btn:first-child{grid-column:1 / -1}
  .dock .why{font-size:clamp(9.5px,2.75vw,11px)}
  .dock .why .long{display:none}
  .dock .why .short{display:inline}
}
/* a field under 16px makes iOS zoom the page on focus (ph0tsk1710); the same floor styles.css sets */
@media (pointer:coarse),(max-width:560px){
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="color"]):not([type="file"]):not([type="image"]):not([type="hidden"]),
  select,textarea{font-size:16px!important}
}
@media (prefers-reduced-motion:reduce){ .btn{transition:none} }
@media print{ .hud,.dock{display:none!important} }
