/* StudyFilm — one motif: the film frame and its sprocket holes */
:root {
  --bg: #f8f8f6;
  --surface: #eeeeeb;
  --ink: #0b0b0a;
  --muted: #55554f;
  --accent: #1f6b3a;
  --accent-hover: #17552d;
  --accent-ink: #ffffff;
  --mint: #c3edce;
  --mint-deep: #8fd6a3;
  --pink: #f8c7c9;
  --pink-deep: #ef9ea2;
  --grey-frame: #d9d9d4;
  --vault: #0f1311;
  --vault-2: #1a201c;
  --vault-ink: #f2f2ee;
  --vault-muted: #a9b0aa;
  --brand: #e85b1a;
  --radius: 6px;
  --margin: clamp(20px, 5vw, 72px);
  --max: 1280px;
  --step-small: clamp(0.875rem, 0.85rem + 0.15vw, 0.95rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-display: clamp(3rem, 1.2rem + 7.4vw, 8.75rem);
  --sprocket: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='16'%3E%3Crect x='7' y='3' width='14' height='10' rx='2.5' fill='%23f8f8f6'/%3E%3C/svg%3E");
  --sprocket-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='16'%3E%3Crect x='7' y='3' width='14' height='10' rx='2.5' fill='%230b0b0a'/%3E%3C/svg%3E");
  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "General Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--step-body); line-height: 1.5; font-weight: 400;
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); }
p { margin: 0 0 1em; max-width: 68ch; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.02em; line-height: 1.02; text-wrap: balance; }
h1 { font-size: var(--step-display); line-height: .92; }
h2 { font-size: var(--step-head); }
h3 { font-size: var(--step-lead); line-height: 1.15; letter-spacing: -0.01em; }
h4 { font-size: var(--step-body); line-height: 1.3; letter-spacing: 0; font-weight: 600; }
strong { font-weight: 600; }
.lead { font-size: var(--step-lead); line-height: 1.35; max-width: 40ch; }
.small { font-size: var(--step-small); }
.muted { color: var(--muted); }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius); z-index: 100; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--margin); }
section { position: relative; scroll-margin-top: 88px; }
.pad { padding: clamp(72px, 10vw, 152px) 0; }
.pad-s { padding: clamp(48px, 6vw, 88px) 0; }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 50; background: var(--bg); }
.site-head .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; flex-shrink: 0; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 1.2rem; letter-spacing: -0.02em; }
.brand svg { width: 34px; height: 24px; flex: none; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { text-decoration: none; padding: 8px 12px; border-radius: var(--radius); font-size: 0.96rem; font-weight: 500; color: var(--ink); white-space: nowrap; }
.nav a:hover { background: var(--surface); }
.nav a[aria-current="page"] { background: var(--surface); }
.nav .btn { margin-left: 8px; }
.menu-btn { display: none; margin-left: auto; background: none; border: 0; font: inherit; font-weight: 600; min-width: 44px; min-height: 44px; padding: 10px 12px; border-radius: var(--radius); cursor: pointer; color: var(--ink); }
.menu-btn:hover { background: var(--surface); }
@media (max-width: 1200px) {
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--bg); padding: 12px var(--margin) 24px; gap: 2px; max-height: calc(100vh - 68px); max-height: calc(100dvh - 68px); overflow-y: auto; overscroll-behavior: contain; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 12px; font-size: 1.05rem; }
  .nav .btn { margin: 10px 0 0; justify-content: center; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  min-height: 48px; padding: 12px 22px; border-radius: var(--radius);
  background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 600; font-size: 1rem;
  text-decoration: none; border: 2px solid var(--accent); cursor: pointer;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.btn.light { background: var(--vault-ink); color: var(--ink); border-color: var(--vault-ink); }
.btn.light:hover { background: #fff; }
.btn.ghost-light { background: transparent; color: var(--vault-ink); border-color: var(--vault-ink); }
.btn.ghost-light:hover { background: var(--vault-ink); color: var(--ink); }
.btn .tri { width: 0; height: 0; border-left: 9px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.textlink { font-weight: 600; text-decoration: underline; }

/* ---------- the motif: film strip ---------- */
.strip { background: var(--ink); border-radius: var(--radius); padding: 22px 14px; position: relative; }
.strip::before, .strip::after { content: ""; position: absolute; left: 6px; right: 6px; height: 16px; background: var(--sprocket) repeat-x; background-size: 28px 16px; }
.strip::before { top: 3px; }
.strip::after { bottom: 3px; }
.frame { border-radius: 3px; overflow: hidden; position: relative; background: #222; }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.sprocket-bullets { list-style: none; padding: 0; margin: 0; }
.sprocket-bullets li { position: relative; padding-left: 30px; margin: 0 0 .7em; }
.sprocket-bullets li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 14px; height: 10px; border-radius: 2.5px; background: var(--ink); }
.on-dark .sprocket-bullets li::before { background: var(--vault-ink); }
.sprocket-bullets.mint li::before { background: var(--accent); }
.sprocket-bullets.pink li::before { background: #c4474e; }

/* full-width band */
.band { background: var(--ink); padding: 26px 0; overflow: hidden; position: relative; }
.band::before, .band::after { content: ""; position: absolute; left: 0; right: 0; height: 16px; background: var(--sprocket) repeat-x; background-size: 28px 16px; z-index: 2; }
.band::before { top: 5px; } .band::after { bottom: 5px; }
.band-track { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; width: 100%; }
.band-cell { height: 148px; aspect-ratio: 4/3; border-radius: 3px; overflow: hidden; flex: none; position: relative; }
.band-cell img { width: 100%; height: 100%; object-fit: cover; }
.band-cell.word { aspect-ratio: auto; padding: 0 30px; display: flex; align-items: center; background: #1b1b19; color: var(--vault-ink); font-weight: 700; font-size: 1.6rem; letter-spacing: -0.02em; white-space: nowrap; }
.band-cell.word.mint { background: var(--mint); color: var(--ink); }
.band-cell.word.pink { background: var(--pink); color: var(--ink); }

/* ---------- hero ---------- */
.hero { padding: clamp(40px, 6vw, 88px) 0 clamp(56px, 7vw, 112px); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.hero h1 { margin-bottom: 28px; }
.hero h1 { font-size: clamp(3rem, 6.2vw, 5.8rem); }
.preview-notice { background: #e9eee8; color: #213b2b; font-size: 14px; padding: 12px 0; }
.site-head .nav a.btn { color: #fff; }
.site-head .nav a.btn:hover, .site-head .nav a.btn[aria-current="page"] { background: var(--accent-hover); border-color: var(--accent-hover); }
.hero h1 .tri-mark { display: inline-block; width: .5em; height: .56em; margin-left: .06em; vertical-align: .04em; background: var(--brand); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.hero .lead { margin-bottom: 18px; max-width: 34ch; }
.hero p.sub { color: var(--muted); max-width: 52ch; margin-bottom: 32px; }
.hero-strip { position: relative; margin-right: calc(var(--margin) * -1 - 120px); }
.hero-strip .strip { padding: 30px 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hero-strip .frame { aspect-ratio: 4/3; }
.hero-strip .frame.tall { grid-row: span 2; aspect-ratio: auto; }
.hero-strip .frame figcaption, .frame .cap {
  position: absolute; left: 10px; bottom: 10px; right: 10px; color: #fff; font-size: var(--step-small); font-weight: 500;
  background: rgba(11,11,10,.72); padding: 6px 10px; border-radius: 4px; width: fit-content;
}
.hero-note { display: flex; gap: 10px; align-items: center; margin-top: 22px; font-size: var(--step-small); color: var(--muted); }
.hero-note .dot { width: 14px; height: 10px; border-radius: 2.5px; background: var(--accent); flex: none; }
@media (max-width: 1200px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-strip { margin-right: 0; }
}

/* ---------- page heads (inner pages) ---------- */
.page-head { padding: clamp(48px, 7vw, 112px) 0 clamp(40px, 5vw, 72px); }
.page-head h1 { font-size: clamp(2.75rem, 1.4rem + 5.6vw, 6.5rem); margin-bottom: 26px; max-width: 14ch; }
.page-head .lead { max-width: 46ch; }
.page-head .grid-2 { align-items: end; }

/* ---------- grids ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 72px); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 36px); }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.grid-2 > *, .grid-3 > *, .grid-4 > *, .layout-doc > *, .builder > * { min-width: 0; }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.sec-head { max-width: 860px; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head h2 { margin-bottom: 20px; }
.sec-head p { font-size: var(--step-lead); line-height: 1.38; color: var(--muted); max-width: 44ch; }
.on-dark .sec-head p { color: var(--vault-muted); }

/* ---------- fields ---------- */
.field-mint { background: var(--mint); }
.field-pink { background: var(--pink); }
.field-surface { background: var(--surface); }
.field-vault { background: var(--vault); color: var(--vault-ink); }
.field-vault .muted, .on-dark .muted { color: var(--vault-muted); }
.field-vault a { color: var(--vault-ink); }

/* ---------- one-minute summary ---------- */
.minute { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.minute .cell { background: var(--bg); border-radius: var(--radius); padding: 26px 24px 24px; display: flex; flex-direction: column; gap: 12px; min-height: 100%; }
.minute .cell .k { font-weight: 600; font-size: var(--step-small); display: flex; align-items: center; gap: 10px; }
.minute .cell .k::before { content: ""; width: 14px; height: 10px; border-radius: 2.5px; background: var(--ink); }
.minute .cell h3 { font-size: clamp(1.3rem, 1.05rem + .8vw, 1.75rem); }
.minute .cell p { color: var(--muted); margin: 0; font-size: 1rem; }
.minute .cell a { margin-top: auto; font-weight: 600; font-size: .98rem; }
@media (max-width: 1000px) { .minute { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .minute { grid-template-columns: 1fr; } }
.one-line { margin-top: 28px; background: var(--ink); color: var(--vault-ink); border-radius: var(--radius); padding: 26px 28px; display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; }
.one-line .lbl { font-weight: 600; font-size: var(--step-small); color: var(--mint); white-space: nowrap; }
.one-line p { margin: 0; font-size: var(--step-lead); line-height: 1.32; max-width: none; }
@media (max-width: 720px) { .one-line { grid-template-columns: 1fr; gap: 8px; } }

/* ---------- statement (we know what we're asking) ---------- */
.statement { font-size: clamp(1.75rem, 1.1rem + 2.6vw, 3.4rem); line-height: 1.12; letter-spacing: -0.02em; font-weight: 600; max-width: 24ch; margin: 0 0 40px; }
.statement .hl { background: var(--ink); color: var(--pink); padding: 0 .18em; border-radius: 4px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* ---------- analogy ---------- */
.analogy { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: 16px; }
.analogy .a-img { grid-column: span 7; }
.analogy .a-img.s { grid-column: span 5; }
.analogy .frame { aspect-ratio: 16/10; }
.analogy figure { margin: 0; }
.analogy figcaption { padding: 14px 4px 0; font-size: 1rem; color: var(--muted); max-width: 52ch; }
.analogy figcaption strong { color: var(--ink); }
@media (max-width: 800px) {
  .analogy { gap: 28px; grid-template-columns: minmax(0,1fr); }
  .analogy .a-img, .analogy .a-img.s { grid-column: auto; }
  .analogy .frame { height: 180px; max-height: 180px; aspect-ratio: auto; }
  .analogy .frame img { object-position: center 45%; }
}
.differences { margin-top: clamp(96px, 8vw, 120px); }
.diff { background: var(--bg); border-radius: var(--radius); padding: 28px 26px; }
.diff h3 { margin-bottom: 12px; }
.diff .so { font-weight: 600; margin: 14px 0 0; padding-top: 14px; color: var(--accent); }
.field-surface .diff { background: var(--bg); }
@media (max-width: 1000px) {
  .differences .grid-3 { grid-template-columns: 1fr; gap: 14px; }
  .differences .diff { padding: 24px; }
  .differences .diff .so { margin-top: 8px; padding-top: 4px; }
}

/* ---------- film simulator ---------- */
.sim { background: var(--vault); color: var(--vault-ink); border-radius: var(--radius); padding: clamp(18px, 2.4vw, 32px); }
.sim-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 20px; }
.sim-title { font-weight: 600; font-size: 1.05rem; }
.sim-title span { color: var(--vault-muted); font-weight: 400; }
.sim-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.toggle { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; font-size: .95rem; font-weight: 500; background: var(--vault-2); padding: 8px 14px 8px 8px; border-radius: var(--radius); border: 0; color: var(--vault-ink); font-family: inherit; min-height: 44px; }
.toggle .sw { width: 40px; height: 24px; border-radius: 12px; background: #3a423d; position: relative; transition: background .2s; flex: none; }
.toggle .sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); }
.toggle[aria-pressed="true"] .sw, .toggle[aria-checked="true"] .sw { background: var(--accent); }
.toggle[aria-pressed="true"] .sw::after, .toggle[aria-checked="true"] .sw::after { transform: translateX(16px); }
.sim-strip { background: #000; border-radius: var(--radius); padding: 20px 10px; position: relative; }
.sim-strip::before, .sim-strip::after { content: ""; position: absolute; left: 4px; right: 4px; height: 12px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='12'%3E%3Crect x='5' y='2' width='10' height='8' rx='2' fill='%232b302d'/%3E%3C/svg%3E") repeat-x; background-size: 20px 12px; }
.sim-strip::before { top: 4px; } .sim-strip::after { bottom: 4px; }
.sim-frames {
  display: grid; grid-template-columns: repeat(15,minmax(48px,1fr)); gap: 12px 6px;
  position: relative; min-width: 0; width: 100%; padding: 12px 4px 10px;
}
.sim-frames button {
  flex: 0 0 48px; min-width: 48px; min-height: 48px;
  border: 0; border-radius: 2px; background: #2a2f2c; color: var(--vault-ink);
  cursor: pointer; padding: 8px 2px; position: relative;
  font: inherit; font-size: .875rem; font-weight: 600; line-height: 1.2;
  transition: background .35s var(--ease), transform .2s;
}
.sim-frames button:hover { transform: translateY(-2px); }
.sim-frames button.learn { background: var(--mint-deep); color: var(--ink); }
.sim-frames button.waste { background: var(--pink-deep); color: var(--ink); }
.sim-frames button.app { background: #f2d36b; color: var(--ink); }
.sim-frames button.unknown { background: #b8beb9; color: var(--ink); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Cpath d='M-2 2l4-4M0 8l8-8M6 10l4-4' stroke='%23000' stroke-opacity='.1' stroke-width='2.5'/%3E%3C/svg%3E"); }
.sim-frames button.cur { outline: 2px solid #fff; outline-offset: 2px; }
.sim-frames button.flag::after { content: ""; position: absolute; top: -9px; left: 50%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: #fff; }
.sim-axis { display: none; }
.sim-body { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; margin-top: 16px; }
@media (max-width: 860px) { .sim-body { grid-template-columns: 1fr; } }
@media (max-width: 1150px) { .sim-frames { grid-template-columns: repeat(10,minmax(48px,1fr)); } }
@media (max-width: 700px) { .sim-frames { grid-template-columns: repeat(5,minmax(44px,1fr)); } .sim-frames button { min-width:44px; } }
@media (max-width: 380px) { .sim-frames { grid-template-columns: repeat(4,minmax(44px,1fr)); } }
.sim-panel { background: var(--vault-2); border-radius: var(--radius); padding: 20px 22px; }
.sim-panel h4 { font-size: var(--step-small); font-weight: 600; color: var(--vault-muted); margin-bottom: 12px; }
.sim-now { min-height: 168px; }
.sim-now .t { font-size: var(--step-small); color: var(--vault-muted); }
.sim-now .what { font-size: 1.35rem; font-weight: 600; line-height: 1.2; margin: 6px 0 10px; letter-spacing: -0.01em; }
.sim-now .why { color: #d4d9d5; font-size: 1rem; margin: 0 0 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: var(--step-small); font-weight: 500; padding: 3px 10px; border-radius: 4px; background: #2d3430; color: var(--vault-ink); }
.chip.off { background: #252d28; color: var(--vault-muted); text-decoration: line-through; }
.meter { display: grid; gap: 10px; }
.meter-bar { height: 16px; border-radius: 4px; background: #2a2f2c; overflow: hidden; display: flex; }
.meter-bar span { display: block; height: 100%; transition: width .4s var(--ease); }
.meter-bar .l { background: var(--mint-deep); } .meter-bar .w { background: var(--pink-deep); } .meter-bar .a { background: #f2d36b; } .meter-bar .u { background: #6b716d; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: var(--step-small); color: #d4d9d5; }
.legend i { display: inline-block; width: 12px; height: 9px; border-radius: 2px; margin-right: 6px; vertical-align: 0; }
.sim-out { margin-top: 16px; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 16px; }
@media (max-width: 860px) { .sim-out { grid-template-columns: 1fr; } }
.tip-card { background: var(--mint); color: var(--ink); border-radius: var(--radius); padding: 22px 24px; }
.tip-card .who { font-size: var(--step-small); font-weight: 600; display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.tip-card .who::before { content: ""; width: 14px; height: 10px; border-radius: 2.5px; background: var(--accent); }
.tip-card dl { margin: 0; display: grid; gap: 10px; }
.tip-card dt { font-weight: 600; font-size: var(--step-small); }
.tip-card dd { margin: 0; font-size: 1.02rem; line-height: 1.42; }
.tip-card .qs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tip-card .qs span { background: rgba(255,255,255,.6); padding: 6px 12px; border-radius: 4px; font-size: var(--step-small); font-weight: 500; }
.stayed { background: #000; border-radius: var(--radius); padding: 22px 24px; position: relative; overflow: hidden; }
.stayed .lock { font-weight: 600; display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.stayed p { color: var(--vault-muted); font-size: 1rem; margin: 0 0 10px; }
.sim-play { display: inline-flex; align-items: center; gap: 10px; }
.sim-foot { margin-top: 14px; font-size: var(--step-small); color: var(--vault-muted); }

/* 25-minute Off / Basic / Advanced comparison */
.film-modes { border: 0; padding: 0; margin: 0; display: flex; gap: 8px; flex: 1; min-width: 0; }
.film-modes legend { font-size: 1rem; margin-bottom: 10px; font-weight: 600; }
.film-modes label { position: relative; flex: 1; max-width: 190px; min-width: 0; cursor: pointer; }
.film-modes input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.film-modes label > span { display: flex; flex-direction: column; padding: 12px 16px; min-height: 72px; background: var(--vault-2); border-radius: var(--radius); }
.film-modes strong { font-size: 1rem; }
.film-modes small { font-size: .875rem; line-height: 1.35; margin-top: 4px; }
.film-modes input:checked + span { background: var(--mint); color: var(--ink); }
.film-modes input:focus-visible + span { outline: 3px solid #fff; outline-offset: 3px; }
.film-modes:disabled { opacity: .65; }
.film-clock { margin: 0; text-align: right; font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.film-clock small { font-size: .875rem; color: var(--vault-muted); }
.film-scope { font-size: .875rem; color: var(--vault-muted); margin: 0 0 22px; }
.sim-v2 a { color: inherit; text-decoration: underline; }
.film-viewer { display: grid; grid-template-columns: 1.6fr 1fr; gap: 12px; padding: 12px; background: #000; border-radius: var(--radius); }
.film-clip { background: var(--vault-2); min-width: 0; }
.film-clip-label { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 12px 16px; font-weight: 600; font-size: .875rem; }
.film-clip-label span { font-weight: 400; color: var(--vault-muted); }
.film-clip-content { min-height: 190px; padding: 20px 24px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.film-clip-content p { margin: 0; font-size: 1rem; max-width: 45ch; }
.film-placeholder-symbol { width: 34px; height: 25px; border: 2px solid currentColor; font-size: 20px; line-height: 20px; text-align: center; color: var(--vault-muted); }
.film-viewer[data-mode="basic"] .film-webcam { background: #111613; color: var(--vault-muted); }
.film-viewer[data-mode="off"] .film-clip { display: none; }
.film-off-message { grid-column: 1 / -1; min-height: 234px; padding: 35px; display: flex; flex-direction: column; justify-content: center; }
.film-off-message[hidden] { display: none; }
.film-off-message p { font-size: 1.5rem; font-weight: 600; margin: 0 0 12px; }
.film-off-message span { max-width: 65ch; color: var(--vault-muted); }
.film-transport { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 20px 0; }
.film-transport > span { font-size: .875rem; color: var(--vault-muted); margin-left: auto; }
.film-secondary { font: inherit; font-weight: 600; min-height: 48px; padding: 10px 16px; color: var(--vault-ink); background: var(--vault-2); border: 0; border-radius: var(--radius); cursor: pointer; }
.film-secondary:hover { background: #35433a; }
.film-seek-label { display: block; font-size: .875rem; margin-bottom: 6px; }
.film-seek { width: 100%; height: 44px; accent-color: var(--mint); cursor: pointer; margin: 0 0 8px; }
.film-timeline-scroll { overflow-x: auto; scrollbar-color: #8ca596 #1b241e; scrollbar-width: auto; padding: 8px 8px 0; background: #111613; border-radius: var(--radius); }
.film-timeline { min-width: 660px; height: 290px; position: relative; padding-top: 10px; }
.film-track { height: 8px; background: #344139; position: relative; border-radius: 2px; }
#filmProgress { height: 100%; background: var(--mint); width: 0; }
#filmPlayhead { position: absolute; top: -6px; width: 3px; height: 20px; background: #fff; left: 0; transform: translateX(-100%); }
.film-ticks { display: flex; justify-content: space-between; margin-top: 10px; font-size: .875rem; color: var(--vault-muted); font-variant-numeric: tabular-nums; }
.film-events { position: absolute; left: 0; right: 0; top: 69px; }
.film-empty { position: absolute; top: 85px; left: 14px; width: 190px; color: var(--vault-muted); font-size: 1rem; }
.film-scroll-hint { display: none; }
.film-event { position: absolute; top: 0; transform: translateX(-50%); width: 132px; min-height: 75px; padding: 8px; border: 0; border-radius: var(--radius); background: var(--mint); color: var(--ink); text-align: left; font: inherit; cursor: pointer; }
.film-event[hidden] { display: none; }
.film-event::before { content: ""; position: absolute; height: 51px; width: 2px; top: -51px; left: 50%; background: var(--mint); }
.film-event:nth-child(even) { top: 88px; background: var(--pink); }
.film-event:nth-child(even)::before { top: -139px; height: 139px; background: var(--pink); }
.film-event-last { transform: translateX(-100%); }
.film-event-last::before { left: calc(100% - 2px); }
.film-event span, .film-event strong, .film-event small { display: block; line-height: 1.2; }
.film-event strong { font-size: 1rem; margin: 4px 0; }
.film-event small, .film-event-time { font-size: .875rem; }
.film-event:hover, .film-event[aria-pressed="true"] { outline: 2px solid #fff; outline-offset: 3px; }
.film-timeline-help { font-size: .875rem; color: var(--vault-muted); margin: 12px 0 20px; }
.film-results { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; align-items: stretch; }
.film-detail { background: var(--vault-2); padding: 24px; min-width: 0; }
.film-detail h3, .film-summary h3 { font-size: 1.5rem; margin: 0 0 16px; }
.film-detail p { font-size: 1rem; line-height: 1.5; margin: 0 0 16px; }
.film-detail .film-detail-source { font-size: .875rem; color: var(--vault-muted); }
.film-detail .film-next { margin-bottom: 0; color: var(--vault-muted); }
.film-summary { padding: 24px; background: var(--mint); color: var(--ink); min-width: 0; }
.film-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 20px 0; }
.film-stats strong { display: block; font-size: 2.25rem; line-height: 1; letter-spacing: -.03em; }
.film-stats span { display: block; font-size: .875rem; line-height: 1.35; margin-top: 8px; }
.film-summary p { margin: 0 0 16px; font-size: 1rem; }
.film-summary .film-benefit { font-weight: 600; }
.film-summary .film-summary-note { font-size: .875rem; margin-bottom: 0; }
.sim-v2 :is(button,input,.film-timeline-scroll):focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
@media (max-width: 860px) {
  .film-results { grid-template-columns: 1fr; }
  .film-clock { text-align: left; font-size: 1.2rem; }
  .film-viewer { grid-template-columns: 1fr; }
  .film-clip-content { min-height: 140px; }
}
@media (max-width: 600px) {
  .film-scroll-hint { display: block; font-size: .875rem; color: var(--vault-muted); margin: 10px 0 0; }
  .film-modes { width: 100%; flex-basis: 100%; }
  .film-modes label > span { padding: 10px 8px; min-height: 86px; }
  .film-transport > span { width: 100%; margin-left: 0; }
  .film-detail, .film-summary { padding: 20px; }
  .film-clock { display: block; width: 100%; }
  .film-clock br { display: none; }
  .film-clock small { display: block; margin-top: 4px; }
}

/* ---------- stories ---------- */
.stories { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
@media (max-width: 820px) { .stories { grid-template-columns: 1fr; } }
.story { background: var(--bg); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 16px; }
.story .quote { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); font-weight: 600; line-height: 1.12; letter-spacing: -0.015em; }
.story .rows { display: grid; gap: 14px; margin: 0; }
.story .rows div { display: grid; grid-template-columns: 9.5em 1fr; gap: 12px; }
.story dt { font-weight: 600; font-size: .95rem; }
.story dd { margin: 0; font-size: 1rem; color: #33332f; }
@media (max-width: 520px) { .story .rows div { grid-template-columns: 1fr; gap: 2px; } }
.story .needs { margin-top: auto; padding-top: 6px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: var(--step-small); }
.need { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 4px; background: var(--ink); color: #fff; font-weight: 500; }
.need.soft { background: var(--surface); color: var(--ink); }
.cat-label { display: inline-flex; width: fit-content; font-size: var(--step-small); font-weight: 600; padding: 4px 10px; border-radius: 4px; background: var(--mint); }
.cat-label.adv { background: #f6e3a1; }
.cat-label.int { background: var(--ink); color: #fff; }
.cat-label.pink { background: var(--pink); }

/* Parent concerns paired with evidence requests, not fabricated product screenshots. */
.reason-card { gap: 14px; scroll-margin-top: 88px; }
.reason-card h3 { font-size: clamp(1.3rem, 1.15rem + .5vw, 1.65rem); line-height: 1.2; min-height: 2.4em; text-wrap: pretty; }
.reason-context { font-size: 1.05rem; line-height: 1.45; margin: 0; min-height: 3em; }
.evidence-slot { margin: 4px 0 8px; }
.evidence-placeholder { background: var(--surface); padding: 24px; min-height: 184px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 16px; }
.evidence-placeholder p { margin: 0; font-size: 1rem; line-height: 1.45; }
.capture-mark { display: block; width: 38px; height: 28px; border: 2px solid var(--muted); border-radius: 3px; position: relative; }
.capture-mark::after { content: "+"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 22px; line-height: 1; }
.evidence-slot figcaption { margin-top: 10px; color: var(--muted); font-size: var(--step-small); line-height: 1.4; }
.reason-steps { margin: 0; display: grid; gap: 18px; }
.reason-steps dt { font-weight: 600; font-size: 1rem; margin-bottom: 4px; }
.reason-steps dd { font-size: 1rem; line-height: 1.5; color: var(--ink); }
.reason-card .evidence-source { margin: auto 0 0; padding-top: 12px; font-size: var(--step-small); color: var(--muted); }
.more-reasons { margin-top: 20px; }
.more-reasons > summary { cursor: pointer; padding: 18px 22px; min-height: 48px; background: var(--bg); border-radius: var(--radius); font-weight: 600; }
.more-reasons[open] > summary { margin-bottom: 16px; }
.more-reasons:not([open]) > .stories { display: none; }
.reason-close { margin-top: 40px; }
.reason-close h3 { margin-bottom: 14px; }
.reason-close p { max-width: 62ch; }
@media (max-width: 820px) {
  .reason-card h3, .reason-context { min-height: 0; }
  .evidence-placeholder { min-height: 150px; padding: 20px; }
}

/* ---------- vault diagram ---------- */
.reason-explorer { display: grid; grid-template-columns: minmax(220px, .7fr) minmax(0, 1.6fr); gap: 24px; align-items: start; }
.reason-chooser { display: grid; gap: 8px; }
.reason-prompt { margin: 0 0 8px; font-size: 1rem; font-weight: 600; }
.reason-chooser button { font: inherit; text-align: left; border: 0; border-radius: var(--radius); padding: 16px 18px; min-height: 72px; cursor: pointer; background: transparent; color: var(--ink); }
.reason-chooser button strong, .reason-chooser button span { display: block; }
.reason-chooser button strong { font-size: 1.05rem; line-height: 1.3; }
.reason-chooser button span { margin-top: 5px; font-size: .875rem; }
.reason-chooser button:hover { background: var(--bg); }
.reason-chooser button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.reason-selected { display: block; }
.reason-selected .reason-card { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); column-gap: 26px; row-gap: 14px; }
.reason-selected .reason-card[hidden] { display: none; }
.reason-selected .reason-card h3, .reason-selected .reason-context, .reason-selected .evidence-source { grid-column: 1 / -1; min-height: 0; }
.reason-selected .evidence-slot { grid-column: 1; margin: 4px 0 0; }
.reason-selected .evidence-placeholder { min-height: 240px; height: 100%; padding: 20px; }
.reason-selected .reason-steps { grid-column: 2; }
.reader-status { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sports-depth { margin-top: 28px; }
.sports-depth > summary { padding: 16px 0; cursor: pointer; font-weight: 600; }
.sports-depth > p { max-width: 70ch; margin: 16px 0 28px; }
.record-path { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; list-style: none; padding: 0; margin: 0; }
.record-path > li { background: var(--vault-2); padding: 28px; }
.record-path > li:last-child { background: var(--mint); color: var(--ink); }
.record-path h3 { font-size: 1.5rem; margin-bottom: 20px; }
.record-path p { font-size: 1rem; }
.record-path .path-limit { margin-bottom: 0; color: var(--vault-muted); }
.record-path > li:last-child .path-limit { color: #2b4a34; }
.retention-brief { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 36px; margin-top: 44px; }
.retention-brief h3 { font-size: 1.5rem; margin-bottom: 16px; }
.retention-brief p { font-size: 1rem; }
.record-clocks { display: grid; gap: 10px; align-content: start; }
.record-clocks details { background: var(--vault-2); }
.record-clocks summary { padding: 18px 22px; cursor: pointer; min-height: 48px; font-weight: 600; }
.record-clocks details > div { padding: 0 22px 22px; font-size: 1rem; }
.record-clocks details p { color: var(--vault-ink); }
.record-clocks summary::marker { color: var(--mint); }
.text-button { font: inherit; font-size: 1rem; font-weight: 600; padding: 12px 0; min-height: 44px; border: 0; color: inherit; background: transparent; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.text-button:disabled { opacity: .6; cursor: not-allowed; }
.school-questions { background: var(--surface); padding: clamp(20px,3vw,36px); border-radius: var(--radius); }
.school-questions [hidden], #faqToggle[hidden] { display: none; }
#questionHelp { font-size: .95rem; max-width: 70ch; }
.question-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.question-list label { display: flex; gap: 14px; padding: 18px; background: var(--bg); cursor: pointer; align-items: flex-start; }
.question-list label:has(input:checked) { background: var(--mint); }
.question-list input { flex: 0 0 22px; width: 22px; height: 22px; accent-color: var(--ink); margin: 3px 0 0; }
.question-list strong, .question-text { display: block; font-size: 1rem; }
.question-text { margin-top: 6px; line-height: 1.5; }
.question-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 24px; }
#questionCopy:disabled { opacity: .55; cursor: not-allowed; }
#questionStatus { font-size: .95rem; margin: 20px 0 0; }
#questionDraft { margin-top: 24px; }
#questionDraft > label { display: block; font-weight: 600; margin-bottom: 10px; }
#questionText { font: inherit; font-size: 1rem; width: 100%; resize: vertical; padding: 16px; background: var(--bg); color: var(--ink); border: 2px solid var(--ink); border-radius: var(--radius); }
.check-links { margin-top: 24px; font-size: 1rem; }
.consent-essential { font-size: 1rem; line-height: 1.5; margin: 20px 0; max-width: 58ch; }
.verification-note { margin-top: 36px; }
.verification-note h3 { font-size: 1.4rem; margin-bottom: 14px; }
.verification-note p { max-width: 78ch; font-size: 1rem; }
#check .grid-3 h3 { font-size: 1.4rem; margin-bottom: 14px; }
@media (max-width: 1050px) {
  .reason-selected .reason-card { grid-template-columns: 1fr; }
  .reason-selected .reason-steps, .reason-selected .evidence-slot { grid-column: 1; }
  .reason-selected .evidence-placeholder { min-height: 170px; }
}
@media (max-width: 800px) {
  .reason-explorer, .retention-brief { grid-template-columns: 1fr; }
  .reason-chooser { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .reason-prompt { grid-column: 1 / -1; }
  .reason-chooser button { padding: 14px; background: rgba(255,255,255,.25); }
  .reason-chooser button strong { font-size: 1rem; }
  .record-path { grid-template-columns: 1fr; }
  .record-path > li { padding: 24px; }
  .question-list { grid-template-columns: 1fr; }
}
@media print {
  .reason-explorer, .reason-selected .reason-card { display: block; }
  .reason-selected .reason-card[hidden] { display: block; break-inside: avoid; margin-bottom: 24px; }
  .reason-chooser, .question-actions { display: none; }
}

.vault-diagram { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr) minmax(0, 1fr); gap: 0; align-items: stretch; margin-top: 8px; }
.vd-col { display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.vd-in, .vd-out { background: var(--vault-2); border-radius: var(--radius); padding: 14px 16px; }
.vd-in strong, .vd-out strong { display: block; font-size: 1rem; }
.vd-in span, .vd-out span { font-size: var(--step-small); color: var(--vault-muted); }
.vd-out { background: var(--mint); color: var(--ink); }
.vd-out span { color: #2b4a34; }
.vd-vault { margin: 0 18px; background: #000; border-radius: var(--radius); padding: 30px 26px; position: relative; display: flex; flex-direction: column; justify-content: center; gap: 12px; min-height: 360px; }
.vd-vault::before, .vd-vault::after { content: ""; position: absolute; left: 8px; right: 8px; height: 14px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='14'%3E%3Crect x='6' y='2' width='12' height='10' rx='2.5' fill='%23262b28'/%3E%3C/svg%3E") repeat-x; background-size: 24px 14px; }
.vd-vault::before { top: 6px; } .vd-vault::after { bottom: 6px; }
.vd-vault h3 { font-size: 1.6rem; }
.vd-vault p { color: var(--vault-muted); font-size: 1rem; margin: 0; }
.vd-flow { position: absolute; top: 50%; height: 2px; width: 18px; background: #3a423d; }
.vd-flow.l { left: -18px; } .vd-flow.r { right: -18px; background: var(--mint-deep); }
.pulse { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); top: 50%; margin-top: -4px; }
@media (max-width: 900px) { .vault-diagram { grid-template-columns: 1fr; gap: 14px; } .vd-vault { margin: 0; min-height: 0; } .vd-flow { display: none; } }

/* who-sees-what */
.roles { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.roles button { font: inherit; font-weight: 500; font-size: .98rem; padding: 10px 16px; border-radius: var(--radius); border: 0; cursor: pointer; background: var(--vault-2); color: var(--vault-ink); min-height: 44px; }
.roles button[aria-selected="true"] { background: var(--vault-ink); color: var(--ink); }
.role-view { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
@media (max-width: 760px) { .role-view { grid-template-columns: 1fr; } }
.rv { background: var(--vault-2); border-radius: var(--radius); padding: 22px 24px; }
.rv h4 { margin-bottom: 12px; }
.rv.yes h4 { color: var(--mint); }
.rv.no h4 { color: var(--pink); }
.rv ul { margin: 0; padding-left: 0; list-style: none; }
.rv li { padding: 6px 0 6px 26px; position: relative; font-size: 1rem; }
.rv.yes li::before, .rv.no li::before { content: ""; position: absolute; left: 0; top: 13px; width: 12px; height: 9px; border-radius: 2px; }
.rv.yes li::before { background: var(--mint-deep); }
.rv.no li::before { background: var(--pink-deep); }
.role-summary { font-size: var(--step-lead); line-height: 1.3; margin: 0 0 18px; max-width: 46ch; }

/* ---------- status chips ---------- */
.status { display: inline-flex; align-items: center; gap: 7px; font-size: var(--step-small); font-weight: 600; padding: 3px 10px 3px 8px; border-radius: 4px; white-space: nowrap; vertical-align: middle; line-height: 1.5; }
.status::before { content: ""; width: 10px; height: 8px; border-radius: 2px; }
.status.live { background: var(--mint); color: #12391f; } .status.live::before { background: var(--accent); }
.status.rolling { background: #f6e3a1; color: #4a3a00; } .status.rolling::before { background: #b88a00; }
.status.planned { background: #e2e2dc; color: #3b3b37; } .status.planned::before { background: #77776f; }
.on-dark .status.planned { background: #303a32; color: var(--vault-ink); }
.status-key { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; font-size: var(--step-small); color: var(--muted); }

/* ---------- lists of commitments ---------- */
.ledger { display: grid; gap: 10px; }
.ledger .row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: start; background: var(--bg); border-radius: var(--radius); padding: 18px 22px; }
.field-vault .ledger .row, .on-dark .ledger .row { background: var(--vault-2); }
.ledger .row h4 { margin-bottom: 4px; }
.ledger .row p { margin: 0; font-size: 1rem; color: var(--muted); }
.field-vault .ledger .row p { color: var(--vault-muted); }
@media (max-width: 1000px) { .ledger .row { grid-template-columns: 1fr; } .ledger .row .status { justify-self: start; } }

.never { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.never div { background: var(--bg); border-radius: var(--radius); padding: 18px 22px; display: flex; gap: 14px; align-items: flex-start; }
.never div::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 3px; background: var(--ink); clip-path: polygon(20% 0, 50% 30%, 80% 0, 100% 20%, 70% 50%, 100% 80%, 80% 100%, 50% 70%, 20% 100%, 0 80%, 30% 50%, 0 20%); }
.never strong { display: block; margin-bottom: 2px; }
.never span { font-size: 1rem; color: var(--muted); }
@media (max-width: 720px) { .never { grid-template-columns: 1fr; } }

.checks { counter-reset: none; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.checks > div { background: var(--surface); border-radius: var(--radius); padding: 22px 22px; }
.checks h4 { margin-bottom: 8px; }
.checks p { margin: 0; font-size: 1rem; color: var(--muted); }
@media (max-width: 900px) { .checks { grid-template-columns: 1fr; } }

/* ---------- choice CTA ---------- */
.choice { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.choice h2 { font-size: clamp(2.4rem, 1.2rem + 4.4vw, 5.5rem); line-height: .95; margin-bottom: 24px; }
.choice .opts { display: grid; gap: 10px; }
.choice .opt { background: var(--bg); border-radius: var(--radius); padding: 20px 22px; }
.choice .opt h4 { margin-bottom: 4px; }
.choice .opt p { margin: 0; font-size: 1rem; color: var(--muted); }
@media (max-width: 860px) { .choice { grid-template-columns: 1fr; } }

/* ---------- FAQ (filled tiles) ---------- */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border-radius: var(--radius); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 56px 20px 24px; font-weight: 600; font-size: 1.08rem; position: relative; line-height: 1.35; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 24px; top: 50%; width: 12px; height: 12px; margin-top: -8px; border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: rotate(45deg); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details > div { padding: 0 24px 22px; }
.faq details > div p { font-size: 1.02rem; margin-bottom: .7em; }
.faq details > div p:last-child { margin-bottom: 0; }
.field-surface .faq details { background: var(--bg); }

/* ---------- tables ---------- */
.table-wrap { max-width: 100%; min-width: 0; overflow-x: auto; border-radius: var(--radius); background: var(--bg); -webkit-overflow-scrolling: touch; }
table.data { width: 100%; border-collapse: collapse; font-size: 1rem; min-width: 760px; }
table.data th, table.data td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid #deded8; }
table.data thead th { font-size: var(--step-small); font-weight: 600; background: var(--surface); position: sticky; top: 0; }
table.data tbody th { font-weight: 600; }
table.data tr:last-child td, table.data tr:last-child th { border-bottom: 0; }
table.data td .muted { font-size: .95rem; }
#principle table.data { min-width: 0; table-layout: fixed; }
#principle table.data th:first-child { width: 38%; }
#principle table.data th, #principle table.data td { overflow-wrap: anywhere; }
.on-dark .table-wrap { background: var(--vault-2); }
.on-dark table.data th, .on-dark table.data td { border-bottom-color: #2c332e; }
.on-dark table.data thead th { background: #222924; }
.yes-cell { color: var(--accent); font-weight: 600; }
.no-cell { color: #9b2d33; font-weight: 600; }
.on-dark .yes-cell { color: var(--mint); } .on-dark .no-cell { color: var(--pink); }

/* ---------- section nav (in-page, deep pages) ---------- */
.layout-doc { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.toc { position: sticky; top: 92px; font-size: .95rem; }
.toc a { display: flex; align-items: center; min-height: 44px; text-decoration: none; padding: 8px 12px; border-radius: var(--radius); color: var(--muted); font-weight: 500; }
.toc a:hover { background: var(--surface); color: var(--ink); }
.toc a.active { background: var(--ink); color: #fff; }
@media (max-width: 1000px) { .layout-doc { grid-template-columns: 1fr; } .toc { position: static; display: flex; flex-wrap: wrap; gap: 6px; } .toc a { background: var(--surface); color: var(--ink); } }
.doc section { padding: 0 0 clamp(56px, 7vw, 96px); scroll-margin-top: 90px; }
.doc h2 { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 3rem); margin-bottom: 20px; }
.doc h3 { margin: 32px 0 12px; }
.doc .intro { font-size: var(--step-lead); line-height: 1.38; color: var(--muted); max-width: 46ch; margin-bottom: 28px; }
.doc ul.plain { padding-left: 1.2em; } .doc ul.plain li { margin-bottom: .5em; max-width: 66ch; }
.callout { background: var(--surface); border-radius: var(--radius); padding: 22px 24px; margin: 24px 0; max-width: 820px; }
.callout.mint { background: var(--mint); }
.callout.pink { background: var(--pink); }
.callout.ink { background: var(--ink); color: var(--vault-ink); }
.callout h4 { margin-bottom: 8px; }
.callout p:last-child { margin-bottom: 0; }
.cite { font-size: var(--step-small); color: var(--muted); }
.cite a { color: var(--muted); }
.cite, .doc a { overflow-wrap: anywhere; }

/* lifecycle */
.lifecycle { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; }
.lc { background: var(--bg); border-radius: var(--radius); padding: 20px; position: relative; display: flex; flex-direction: column; gap: 8px; }
.lc h4 { font-size: 1.12rem; }
.lc p { font-size: .98rem; margin: 0; color: var(--muted); }
.lc .status { margin-top: auto; align-self: flex-start; }
@media (max-width: 1000px) { .lifecycle { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .lifecycle { grid-template-columns: 1fr; } }

/* timeline (retention) */
.retention { background: var(--bg); border-radius: var(--radius); padding: 26px; }
.ret-row { display: grid; grid-template-columns: 210px minmax(0,1fr); gap: 16px; align-items: center; padding: 10px 0; }
.ret-row .lbl { font-weight: 600; font-size: 1rem; }
.ret-row .lbl span { display: block; font-weight: 400; color: var(--muted); font-size: var(--step-small); }
.ret-bar { height: 28px; background: var(--surface); border-radius: 4px; position: relative; overflow: hidden; }
.ret-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; display: flex; align-items: center; padding-left: 10px; font-style: normal; font-size: var(--step-small); font-weight: 600; white-space: nowrap; transform-origin: left; }
.ret-axis { display: grid; grid-template-columns: 210px minmax(0,1fr); gap: 16px; font-size: var(--step-small); color: var(--muted); }
.ret-axis div:last-child { display: flex; justify-content: space-between; }
@media (max-width: 640px) { .ret-row, .ret-axis { grid-template-columns: 1fr; gap: 6px; } .ret-axis div:first-child { display: none; } }

/* exposure chart */
.chart-box { background: var(--bg); border-radius: var(--radius); padding: 20px; }
.chart-box svg { width: 100%; height: auto; display: block; }
.chart-box text { font-family: inherit; }

/* levels */
.levels { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 8px; align-items: end; }
.lvl { border-radius: var(--radius); padding: 18px 16px; background: var(--bg); display: flex; flex-direction: column; gap: 6px; }
.lvl h4 { font-size: 1.2rem; }
.lvl p { margin: 0; font-size: .95rem; color: var(--muted); }
.lvl .obs { margin-top: 10px; font-size: var(--step-small); font-weight: 600; }
.lvl .obsbar { height: 8px; border-radius: 3px; background: var(--surface); overflow: hidden; }
.lvl .obsbar span { display: block; height: 100%; background: var(--ink); }
@media (max-width: 900px) { .levels { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .levels { grid-template-columns: 1fr; } }

/* horizons */
.horizons { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; }
.hz { background: var(--bg); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.hz .when { font-size: var(--step-small); font-weight: 600; color: var(--accent); }
.hz p { margin: 0; font-size: .98rem; color: var(--muted); }
.hz .status { margin-top: auto; align-self: flex-start; }
@media (max-width: 1000px) { .horizons { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .horizons { grid-template-columns: 1fr; } }

/* library explorer */
.lib-controls { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; align-items: center; }
.lib-controls input[type=search] { font: inherit; font-size: 1rem; padding: 12px 14px; border-radius: var(--radius); border: 2px solid #cfcfc8; background: #fff; min-width: min(320px, 100%); flex: 1 1 260px; }
.lib-controls input[type=search]:focus { border-color: var(--accent); outline: none; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button { font: inherit; font-size: .92rem; font-weight: 500; padding: 8px 12px; border-radius: var(--radius); border: 0; background: var(--surface); cursor: pointer; min-width: 44px; min-height: 44px; color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.lib-count { font-size: var(--step-small); color: var(--muted); margin: 6px 0 14px; }
.lib-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
@media (max-width: 820px) { .lib-list { grid-template-columns: 1fr; } }
.lib-item { background: var(--bg); border-radius: var(--radius); padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.lib-item h4 { font-size: 1.08rem; }
.lib-item p { margin: 0; font-size: .98rem; color: #33332f; }
.lib-item .meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.tag { font-size: var(--step-small); padding: 2px 9px; border-radius: 4px; background: var(--surface); font-weight: 500; }
.tag.cat { background: var(--mint); }
.tag.cat.AcademicIntegrity { background: var(--ink); color: #fff; }
.tag.cat.Safety { background: var(--pink); }
.tag.cat.StudentAdvocacy { background: #f6e3a1; }
.tag.cat.Observability, .tag.cat.Journal, .tag.cat.TimeLedger { background: #dfe5ee; }

/* consent builder */
.builder { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(24px, 3vw, 48px); align-items: start; }
@media (max-width: 960px) { .builder { grid-template-columns: 1fr; } }
.q { background: var(--bg); border-radius: var(--radius); padding: clamp(22px, 2.6vw, 32px); margin-bottom: 14px; }
.q legend, .q .qh { font-weight: 700; font-size: var(--step-lead); letter-spacing: -0.01em; line-height: 1.2; padding: 0; margin-bottom: 8px; }
.q fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.q .help { color: var(--muted); margin: 0 0 18px; font-size: 1rem; }
.opts2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 620px) { .opts2 { grid-template-columns: 1fr; } }
.radio-card { position: relative; display: block; cursor: pointer; }
.radio-card input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.radio-card .rc { display: block; background: var(--surface); border-radius: var(--radius); padding: 16px 18px 16px 50px; position: relative; transition: background .2s; min-height: 100%; }
.radio-card .rc::before { content: ""; position: absolute; left: 16px; top: 18px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #77776f; background: #fff; }
.radio-card input:checked + .rc { background: var(--mint); }
.radio-card input:checked + .rc::before { border: 6px solid var(--accent); }
.radio-card input:focus-visible + .rc { outline: 3px solid var(--accent); outline-offset: 2px; }
.radio-card .rc strong { display: block; font-size: 1.05rem; }
.radio-card .rc span { font-size: .95rem; color: var(--muted); display: block; margin-top: 4px; }
.radio-card input:checked + .rc span { color: #24412d; }
.consequence { margin-top: 14px; border-radius: var(--radius); padding: 14px 18px; font-size: .98rem; background: var(--surface); }
.consequence.warn { background: var(--pink); }
.consequence.good { background: var(--mint); }
.fixed-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 14px; align-items: center; background: var(--surface); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 8px; }
.fixed-row strong { display: block; }
.fixed-row span { font-size: .95rem; color: var(--muted); }
.summary-card { position: sticky; top: 92px; background: var(--ink); color: var(--vault-ink); border-radius: var(--radius); padding: 26px; }
.summary-card h3 { margin-bottom: 16px; }
.summary-card ul { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; }
.summary-card li { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; font-size: .98rem; padding: 8px 0; }
.summary-card li b { font-weight: 600; text-align: right; }
.summary-card li b.on { color: var(--mint); }
.summary-card li b.off { color: var(--pink); }
.summary-card .btn { width: 100%; margin-top: 8px; }
.summary-card .fine { font-size: var(--step-small); color: var(--vault-muted); margin: 14px 0 0; }
.enable-next h2 { font-size: var(--step-lead); line-height: 1.15; margin-bottom: 18px; }
.enable-next ol { padding-left: 24px; margin: 20px 0; }
.enable-next li { display: list-item; padding: 0 0 12px 4px; font-size: 1.05rem; }
.enable-next button:disabled { background: var(--vault-2); color: var(--vault-muted); border-color: var(--vault-2); cursor: not-allowed; }
.enable-links { display: flex; flex-direction: column; gap: 10px; }
.enable-links a { display: block; padding: 8px 0; min-height: 44px; font-size: 1rem; font-weight: 500; }
@media (max-width: 960px) { .summary-card { position: static; } }
.decline-panel { background: var(--surface); border-radius: var(--radius); padding: clamp(22px, 3vw, 36px); }
.decline-panel h3 { margin-bottom: 12px; }
[hidden] { display: none !important; }

/* students page */
.kid-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.kid { background: var(--bg); border-radius: var(--radius); padding: 24px; }
.kid h3 { margin-bottom: 10px; font-size: 1.35rem; }
.kid p { margin: 0; font-size: 1.02rem; }
@media (max-width: 900px) { .kid-grid { grid-template-columns: 1fr; } }

/* footer */
.site-foot { background: var(--ink); color: var(--vault-ink); padding: clamp(56px, 7vw, 96px) 0 40px; overflow: hidden; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.foot-grid h4 { font-size: var(--step-small); color: var(--vault-muted); font-weight: 600; margin-bottom: 12px; }
.foot-grid a { display: flex; align-items: center; min-height: 44px; text-decoration: none; padding: 8px 0; color: var(--vault-ink); }
.foot-grid a:hover { text-decoration: underline; }
.foot-grid p { color: var(--vault-muted); font-size: .98rem; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.foot-mark { margin-top: clamp(48px, 7vw, 96px); display: flex; align-items: flex-end; gap: clamp(12px, 2vw, 28px); }
.foot-mark svg { width: clamp(80px, 14vw, 220px); height: auto; flex: none; }
.foot-mark .word { font-weight: 700; letter-spacing: -0.045em; font-size: clamp(3.5rem, 1rem + 13vw, 15rem); line-height: .78; }
@media (max-width: 560px) {
  .foot-mark { gap: 10px; }
  .foot-mark svg { width: 48px; }
  .foot-mark .word { font-size: clamp(2.8rem, 12vw, 4rem); }
}
.foot-legal { margin-top: 36px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: var(--step-small); color: var(--vault-muted); }
.foot-legal p { margin: 0; max-width: 80ch; }

/* reveal */
.rv-up { opacity: 1; transform: none; }
.rv-up.in { opacity: 1; transform: none; animation: sf-arrive .5s ease-out both; }
@keyframes sf-arrive { from { opacity: .72; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .rv-up, .rv-up.in { opacity: 1; transform: none; transition: none; animation: none; } }

/* crossfade frames in hero */
.xfade { position: relative; }
.xfade img { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s ease; }
.xfade img.on { opacity: 1; }

/* print (consent summary) */
@media print {
  .site-head, .site-foot, .no-print, .band { display: none !important; }
  body { background: #fff; }
  .summary-card { position: static; background: #fff; color: #000; }
  .summary-card li b.on, .summary-card li b.off { color: #000; }
}

.role-out .role-summary { font-size: var(--step-lead); line-height: 1.35; max-width: 52ch; margin: 22px 0 18px; }
.legend .u-sw { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Cpath d='M-2 2l4-4M0 8l8-8M6 10l4-4' stroke='%23000' stroke-opacity='.3' stroke-width='2.5'/%3E%3C/svg%3E"); }
.sim-frames button:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }
.on-dark :focus-visible, .sim :focus-visible, .summary-card :focus-visible, .site-foot :focus-visible { outline-color: var(--mint); }
.page-hero { padding: clamp(56px, 8vw, 120px) 0 clamp(40px, 5vw, 72px); }
.page-hero h1 { font-size: clamp(2.6rem, 1.4rem + 4.6vw, 5.6rem); line-height: .98; letter-spacing: -0.035em; max-width: 16ch; margin-bottom: 24px; }
.page-hero .lead { max-width: 52ch; }
.page-hero .meta-line { margin-top: 18px; font-size: var(--step-small); color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.check-inline { display: inline-flex; gap: 10px; align-items: center; font-size: .98rem; cursor: pointer; min-height: 44px; }
.check-inline input { width: 20px; height: 20px; accent-color: var(--accent); }
.layout-doc { padding-bottom: clamp(40px, 6vw, 80px); }
.ret-note { position: absolute; left: calc(4% + 10px); top: 50%; transform: translateY(-50%); font-size: var(--step-small); font-weight: 600; }
.statement { font-size: clamp(24px, 2.5vw, 36px); max-width: 36ch; }
.grid-4 .diff h3 { font-size: 1.1rem; line-height: 1.2; }
.perm { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 14px; align-items: center; padding: 14px 0; }
.perm:first-of-type { border-top: 0; }
.perm-q strong { display: block; }
.perm-q span { font-size: .95rem; color: var(--muted); }
@media (max-width: 560px) { .perm { grid-template-columns: 1fr; } }
.btn.small { min-height: 44px; padding: 10px 14px; font-size: .95rem; }
.summary-card .btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.summary-card .btn-row .btn { margin-top: 0; }
.btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.chart-box { overflow-x: auto; }
.chart-box svg { min-width: 620px; }
.band-cell { width: 100%; }
.band-cell.word { white-space: normal; padding: 16px; font-size: clamp(18px,2vw,28px); }
@media (max-width:700px) { .band-track { grid-template-columns:repeat(2,minmax(0,1fr)); } .band-cell { height:100px; } }
@media print {
  #printBtn, button[form="builder"][type="reset"] { display: none !important; }
  .preview-notice { display: block !important; color: #000; }
}

/* ---------- drawn graphics (no screenshots needed) ---------- */
.ico { display: block; flex: none; }
.illus { display: block; width: 100%; height: auto; border-radius: 8px; margin-bottom: 6px; }
.illus .il-bg { fill: var(--surface); }
.illus .il-paper { fill: #ffffff; }
.illus .il-ink { fill: var(--ink); }
.illus .il-acc { fill: var(--accent); }
.illus .il-mint { fill: var(--mint-deep); }
.illus .il-line { fill: var(--grey-frame); }
.illus .il-off { fill: var(--grey-frame); }
.illus .il-holes rect { fill: var(--bg); }
.illus .il-stroke { fill: none; stroke: var(--ink); stroke-width: 4; stroke-linecap: round; }
.illus text { font-family: inherit; fill: var(--ink); }
.illus .il-text { font-size: 12.5px; font-weight: 600; }
.illus .il-label { font-size: 14px; font-weight: 600; }
.illus .il-small { font-size: 11px; fill: var(--muted); }
.minute-illus .cell { padding: 18px 18px 22px; }
.minute-illus .cell h3 { font-size: clamp(1.15rem, 1rem + .5vw, 1.4rem); line-height: 1.2; }

.moment { margin: 4px 0 8px; background: var(--surface); border-radius: var(--radius); padding: 20px; display: flex; gap: 18px; align-items: center; }
.moment-ico { width: 64px; height: 64px; border-radius: 50%; background: var(--mint); color: var(--accent); display: grid; place-items: center; flex: none; }
.moment-ico .ico { width: 32px; height: 32px; }
.moment-tag { margin: 0 0 8px; font-weight: 600; font-size: 1rem; }
.moment-flow { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 4px; align-items: center; font-size: .9rem; color: var(--muted); }
.moment-flow { flex-direction: column; align-items: flex-start; gap: 4px; }
.moment-flow li { position: relative; padding-left: 20px; }
.moment-flow li::before { content: "→"; position: absolute; left: 0; color: var(--accent); font-weight: 600; }
.moment-flow li:first-child::before { content: "•"; left: 3px; }
.sec-head p.small { font-size: var(--step-small); margin-top: 8px; }
@media (max-width: 520px) { .moment { flex-direction: column; align-items: flex-start; } }

.film-ico { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: rgba(195,237,206,.12); color: var(--mint-deep); }

/* ===== Visual system v2: icons, vault diagram, stats, splits, steps ===== */
.bi { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--mint); color: var(--accent); margin-bottom: 18px; }
.bi .ico { width: 26px; height: 26px; }
.on-dark .bi, .summary-card .bi { background: rgba(195,237,206,.14); color: var(--mint); }
.field-mint .bi { background: #fff; }
.opt { display: grid; grid-template-columns: 48px 1fr; column-gap: 16px; align-items: start; }
.opt .bi { grid-row: 1 / 3; margin: 0; }
.opt h4 { align-self: end; }
.ledger .row > div { display: grid; grid-template-columns: 40px 1fr; column-gap: 16px; }
.ledger .row .bi { grid-row: 1 / 3; width: 40px; height: 40px; border-radius: 12px; margin: 0; }
.ledger .row .bi .ico { width: 22px; height: 22px; }
.tico { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--mint); color: var(--accent); flex: none; }
.tico .ico { width: 18px; height: 18px; }
.ti { display: inline-flex; align-items: center; gap: 10px; }

/* process steps with connectors */
.lifecycle { counter-reset: lc; gap: 28px; }
.lifecycle .lc { background: transparent; padding: 0; counter-increment: lc; }
.lifecycle .lc .bi { width: 64px; height: 64px; border-radius: 50%; margin-bottom: 14px; position: relative; z-index: 1; }
.lifecycle .lc .bi .ico { width: 30px; height: 30px; }
.lifecycle .lc:not(:last-child)::after { content: ""; position: absolute; top: 32px; left: 76px; right: -16px; height: 2px; background: repeating-linear-gradient(90deg, var(--mint-deep) 0 8px, transparent 8px 14px); }
.lifecycle .lc h4::before { content: counter(lc) ". "; color: var(--accent); }
@media (max-width: 760px) {
  .lifecycle { grid-template-columns: 1fr; gap: 18px; }
  .lifecycle .lc { display: grid; grid-template-columns: 64px 1fr; column-gap: 16px; }
  .lifecycle .lc .bi { grid-row: 1 / 4; margin: 0; }
  .lifecycle .lc:not(:last-child)::after { top: 72px; left: 31px; right: auto; bottom: -14px; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--mint-deep) 0 8px, transparent 8px 14px); }
}

/* vault diagram */
.vd { margin: clamp(40px,5vw,72px) 0 0; display: grid; grid-template-columns: 1fr auto 1.25fr auto 1fr; align-items: start; gap: 8px; }
.vd-step { text-align: center; padding: 0 6px; }
.vd-step h3 { font-size: clamp(1.25rem, 1rem + .8vw, 1.6rem); margin: 18px 0 8px; }
.vd-step p { color: var(--vault-muted); font-size: 1rem; margin: 0 auto; max-width: 26ch; }
.vd-core h3 { color: var(--mint); }
.vd-art { display: block; width: 100%; height: auto; max-width: 300px; margin: 0 auto; }
.vd-core .vd-art { max-width: 380px; }
.vd-frame { fill: #2a322d; } .vd-frame2 { fill: #39433c; }
.vd-screen { fill: #f2f2ee; } .vd-line { fill: #c9cec9; }
.vd-mint { fill: var(--mint); } .vd-mintfill { fill: var(--mint); }
.vd-badge { fill: var(--mint); } .vd-ink { fill: var(--vault); } .vd-inkstroke { fill: none; stroke: var(--vault); stroke-width: 2.4; }
.vd-vault { fill: #2a322d; stroke: var(--mint); stroke-width: 3; } .vd-vault-in { fill: var(--vault); }
.vd-strip rect { fill: #0b0b0a; stroke: #39433c; } .vd-holes rect { fill: #4a554d; }
.vd-scan { fill: var(--mint); opacity: .9; }
@media (prefers-reduced-motion: no-preference) { .vd-scan { animation: vdscan 3.2s var(--ease) infinite alternate; } }
@keyframes vdscan { from { transform: translateX(0); } to { transform: translateX(100px); } }
.vd-wheel { fill: none; stroke: var(--mint); stroke-width: 3; } .vd-wheelspoke { stroke: var(--mint); stroke-width: 3; stroke-linecap: round; }
.vd-tag { font-family: inherit; font-size: 12px; font-weight: 700; fill: var(--vault); }
.vd-tip { font-family: inherit; font-size: 13.5px; font-weight: 700; fill: var(--ink); }
.vd-person { fill: #4a554d; } .vd-person2 { fill: var(--vault-ink); }
.vd-arrow { display: grid; justify-items: center; gap: 8px; padding-top: clamp(40px, 5vw, 70px); min-width: 92px; color: var(--mint); }
.vd-arrow-ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(195,237,206,.14); }
.vd-arrow-ico .ico { width: 18px; height: 18px; }
.vd-arrow-line { display: block; width: 100%; height: 2px; position: relative; background: repeating-linear-gradient(90deg, var(--mint) 0 8px, transparent 8px 14px); }
.vd-arrow-line::after { content: ""; position: absolute; right: -2px; top: -5px; border: 6px solid transparent; border-left: 9px solid var(--mint); border-right: 0; }
.vd-arrow-label { font-size: .8rem; font-weight: 600; letter-spacing: .02em; color: var(--vault-muted); white-space: nowrap; }
.vd-note { display: flex; gap: 14px; align-items: center; justify-content: center; margin: clamp(32px,4vw,48px) auto 0; max-width: 640px; color: var(--vault-ink); text-align: left; }
.vd-note-ico { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: rgba(195,237,206,.14); color: var(--mint); }
@media (max-width: 860px) {
  .vd { grid-template-columns: 1fr; gap: 0; max-width: 420px; margin-left: auto; margin-right: auto; }
  .vd-arrow { padding: 18px 0; grid-template-columns: auto auto; justify-content: center; align-items: center; gap: 10px; }
  .vd-arrow-line { display: none; }
  .vd-arrow::before { content: ""; grid-column: 1 / -1; order: -1; width: 2px; height: 22px; justify-self: center; background: repeating-linear-gradient(180deg, var(--mint) 0 6px, transparent 6px 11px); }
  .vd-note { justify-content: flex-start; }
}

/* stats */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1px; margin-top: clamp(48px,6vw,88px); background: #2a322d; border-radius: 14px; overflow: hidden; }
.stat { background: var(--vault-2); padding: 28px 24px; }
.stat-big { display: block; font-size: clamp(2.4rem, 1.6rem + 2.4vw, 3.6rem); font-weight: 800; line-height: 1; letter-spacing: -.02em; color: var(--mint); margin-bottom: 12px; }
.stat-big small { font-size: .42em; font-weight: 700; letter-spacing: 0; color: var(--vault-ink); }
.stat-word { font-size: clamp(1.7rem, 1.2rem + 1.5vw, 2.4rem); padding-top: .35em; }
.stat p { margin: 0; color: var(--vault-muted); font-size: 1rem; }
@media (max-width: 860px) { .stats { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .stat { padding: 22px 18px; } }

/* insights vs film split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.split > div { border-radius: 14px; padding: clamp(24px,3vw,36px); }
.split-a { background: var(--mint); color: var(--ink); }
.split-b { background: var(--vault); color: var(--vault-ink); }
.split-b p { color: var(--vault-muted); }
.split h3 { margin: 16px 0 6px; font-size: 1.5rem; }
.split p { margin: 0 0 18px; }
.split-ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: #fff; color: var(--accent); }
.split-b .split-ico { background: rgba(195,237,206,.14); color: var(--mint); }
.split-ico .ico { width: 28px; height: 28px; }
.split-who { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.split-who li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 10px; border-radius: 999px; background: rgba(255,255,255,.7); font-weight: 600; font-size: .95rem; }
.split-b .split-who li { background: rgba(255,255,255,.08); }
.split-who .ico { width: 18px; height: 18px; }
@media (max-width: 680px) { .split { grid-template-columns: 1fr; } }

/* 3-step flow */
.steps3 { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: clamp(20px,3vw,40px); }
.steps3 li { position: relative; }
.s3-ico { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 24px; background: var(--mint); color: var(--accent); margin-bottom: 20px; position: relative; z-index: 1; }
.s3-ico .ico { width: 40px; height: 40px; }
.s3-n { position: absolute; top: -8px; left: 68px; z-index: 2; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 700; font-size: .85rem; display: grid; place-items: center; }
.steps3 li:not(:last-child)::after { content: ""; position: absolute; top: 42px; left: 100px; right: -12px; height: 2px; background: repeating-linear-gradient(90deg, var(--mint-deep) 0 8px, transparent 8px 14px); }
.steps3 h3 { margin-bottom: 8px; }
.steps3 p { margin: 0; color: var(--muted); }
@media (max-width: 760px) { .steps3 { grid-template-columns: 1fr; } .steps3 li:not(:last-child)::after { display: none; } }

/* test-day icon rules */
ul[data-rules] { list-style: none; padding: 0; display: grid; gap: 10px; }
ul[data-rules] li.rule { display: flex; align-items: center; gap: 14px; padding: 0; background: none; }
ul[data-rules] li.rule::before { display: none !important; content: none !important; }
.rico { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--mint); color: var(--accent); }
.rico .ico { width: 22px; height: 22px; }

/* role tabs with icons */
.roles button { display: inline-flex; align-items: center; gap: 8px; }
.tab-ico .ico { width: 18px; height: 18px; display: block; }
.vd-shackle { fill: none; stroke: var(--mint); stroke-width: 5; stroke-linecap: round; }
.bi + h3, .bi + h4 { margin-top: 0 !important; }
.field-mint .opt .bi { background: var(--mint); }
.doc .diff { padding-top: 22px; padding-bottom: 22px; }
.doc .grid-2, .doc .grid-3 { gap: 12px; }
.doc .diff { background: var(--surface); padding: 26px 24px; }

/* what the coach catches */
.cam-ctl { display: grid; grid-template-columns: 220px 1fr; gap: 28px 40px; align-items: center; background: var(--surface); border-radius: 22px; padding: 28px 32px; margin: 0 0 16px; --pct: 100%; }
.cam-dev { width: 100%; height: auto; display: block; }
.cam-dev .pip-on, .cam-dev .pip-off, .cam-dev .lens { transition: opacity .35s var(--ease), fill .35s var(--ease); }
.cam-dev .pip-off { opacity: 0; }
.cam-off .cam-dev .pip-on { opacity: 0; }
.cam-off .cam-dev .pip-off { opacity: 1; }
.cam-off .cam-dev .lens { fill: #55554f; }
.cam-dev .lens-ring { transform-origin: 110px 12px; animation: lensPulse 2s ease-out infinite; }
.cam-off .cam-dev .lens-ring { animation: none; opacity: 0; }
@keyframes lensPulse { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(3.2); opacity: 0; } }
.cam-body { min-width: 0; }
.cam-hint { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: .85rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); transition: opacity .4s var(--ease); }
.cam-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(31,107,58,.5); animation: dotPulse 1.6s ease-out infinite; }
@keyframes dotPulse { 0% { box-shadow: 0 0 0 0 rgba(31,107,58,.5); } 100% { box-shadow: 0 0 0 10px rgba(31,107,58,0); } }
.cam-ctl.used .cam-hint { opacity: 0; }
.seg2 { position: relative; display: grid; grid-template-columns: 1fr 1fr; width: min(100%, 520px); padding: 5px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--grey-frame), 0 1px 2px rgba(0,0,0,.04); }
.seg2-thumb { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 999px; background: var(--ink); box-shadow: 0 4px 14px rgba(0,0,0,.18); transform: translateX(100%); transition: transform .45s cubic-bezier(.3,1.3,.5,1); }
.cam-off .seg2-thumb { transform: translateX(0); }
.motion .cam-ctl.in:not(.used) .seg2-thumb { animation: nudge 1.1s .8s var(--ease) 2; }
@keyframes nudge { 0%,100% { transform: translateX(100%); } 40% { transform: translateX(88%); } }
.seg2 button { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 1px; border: 0; background: transparent; padding: 12px 14px; border-radius: 999px; font: inherit; color: var(--ink); cursor: pointer; transition: color .3s var(--ease); }
.seg2 button[aria-pressed="true"] { color: #fff; }
.seg2 button:not([aria-pressed="true"]):hover .seg2-t { text-decoration: underline; text-underline-offset: 3px; }
.seg2 button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.seg2-t { font-weight: 800; font-size: 1.08rem; line-height: 1.2; }
.seg2-s { font-size: .86rem; opacity: .75; }
.cam-meter { display: flex; align-items: baseline; gap: 8px; margin: 18px 0 6px; }
.cam-n { font-size: 2.6rem; font-weight: 800; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; min-width: 1ch; }
.cam-of { font-weight: 700; color: var(--muted); }
.cam-bar { flex: 1; align-self: center; max-width: 260px; height: 8px; border-radius: 99px; background: var(--grey-frame); overflow: hidden; margin-left: 8px; }
.cam-bar span { display: block; height: 100%; width: var(--pct); background: var(--accent); border-radius: inherit; transition: width .5s var(--ease); }
.ct-count { margin: 0; color: var(--muted); max-width: 60ch; min-height: 3em; }
.ct-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.ct { position: relative; display: grid; grid-template-columns: 48px 1fr; gap: 6px 16px; align-items: start; background: var(--surface); border: 1.5px solid transparent; border-radius: 16px; padding: 22px; transition: background .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease); }
.ct > div { grid-column: 2; grid-row: 1; }
.ct-ico { grid-row: 1 / span 2; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--mint); color: var(--accent); transition: background .35s var(--ease), color .35s var(--ease); }
.ct-ico .ico { width: 26px; height: 26px; }
.ct h3 { font-size: 1.2rem; margin: 2px 0 6px; transition: color .35s var(--ease); }
.ct p { margin: 0; color: var(--muted); font-size: 1rem; transition: color .35s var(--ease); }
.ct-tag, .ct-off { grid-column: 2; justify-self: start; margin-top: 8px; font-size: .75rem; font-weight: 700; letter-spacing: .02em; padding: 4px 10px; border-radius: 999px; }
.ct-tag.s { background: #fff; color: var(--ink); }
.ct-tag.w { background: var(--ink); color: #fff; }
.ct-off { display: none; align-items: center; gap: 6px; background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--grey-frame); }
.ct-off .ico { width: 14px; height: 14px; }
.cam-off .needs-cam { background: transparent; border-color: var(--grey-frame); border-style: dashed; transform: scale(.985); }
.cam-off .needs-cam .ct-ico { background: transparent; color: #a3a39c; box-shadow: inset 0 0 0 1.5px var(--grey-frame); }
.cam-off .needs-cam h3, .cam-off .needs-cam p { color: #a3a39c; }
.cam-off .needs-cam .ct-tag { display: none; }
.cam-off .needs-cam .ct-off { display: inline-flex; }
.cam-off .ct:not(.needs-cam) { border-color: var(--mint-deep); }
@media (max-width: 960px) { .ct-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) { .cam-ctl { grid-template-columns: 1fr; padding: 22px 18px; } .cam-dev { max-width: 180px; margin: 0 auto; } .seg2 { width: 100%; } }
@media (max-width: 620px) { .ct-grid { grid-template-columns: 1fr; } .seg2 button { padding: 10px 8px; } .seg2-s { font-size: .78rem; } }

/* score vs film */
.svf-wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px 56px; align-items: center; }
.svf-wrap h2 { margin-bottom: 20px; }
.svf-wrap .lead { max-width: 24ch; }
.svf { position: relative; margin: 0; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 12px; }
.svf-score, .svf-film { border-radius: 20px; padding: 24px; }
.svf-score { background: var(--surface); display: flex; flex-direction: column; gap: 6px; }
.svf-film { background: var(--vault); color: var(--vault-ink); }
.svf-k { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.svf-film .svf-k { color: var(--vault-muted); }
.svf-big { font-size: clamp(3rem, 2rem + 3vw, 4.4rem); font-weight: 800; line-height: 1; letter-spacing: -.03em; margin-top: 8px; }
.svf-big small { font-size: .5em; }
.svf-sub { color: var(--muted); font-size: .95rem; }
.svf-q { margin-top: auto; padding-top: 18px; font-weight: 700; font-size: 1.05rem; }
.svf-track { position: relative; height: 10px; border-radius: 99px; background: #2b322d; margin: 18px 0 20px; }
.svf-fill { position: absolute; inset: 0 auto 0 0; width: 100%; border-radius: inherit; background: linear-gradient(90deg, #2f5d3c, #3bd16f); }
.svf-track i { position: absolute; top: 50%; left: var(--x); width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: #f8c7c9; box-shadow: 0 0 0 3px var(--vault); }
.svf-head { position: absolute; top: -6px; bottom: -6px; left: 100%; width: 3px; margin-left: -1.5px; border-radius: 2px; background: #fff; box-shadow: 0 0 10px rgba(255,255,255,.6); }
.svf-ev { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.svf-ev li { display: flex; gap: 12px; align-items: baseline; font-weight: 600; }
.svf-ev time { font-variant-numeric: tabular-nums; color: #f8c7c9; font-size: .9rem; min-width: 3.2em; }
.svf-tip { margin: 18px 0 0; padding: 14px 16px; border-radius: 14px; background: var(--mint); color: var(--ink); font-weight: 700; }
.svf-tip span { display: block; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.svf-replay { position: absolute; right: 14px; bottom: -40px; border: 0; background: none; font: inherit; font-size: .9rem; font-weight: 600; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
/* motion: pre-states only when JS + motion allowed */
.motion .svf .svf-fill { width: 0; }
.motion .svf .svf-head { left: 0; opacity: 0; }
.motion .svf .svf-track i { transform: scale(0); }
.motion .svf .svf-ev li, .motion .svf .svf-tip { opacity: 0; transform: translateY(8px); }
.motion .svf .svf-q { opacity: .35; }
.motion .svf.play .svf-fill { width: 100%; transition: width 3.6s linear; }
.motion .svf.play .svf-head { left: 100%; opacity: 1; transition: left 3.6s linear, opacity .3s; }
.motion .svf.play .svf-track i { transform: scale(1); transition: transform .4s cubic-bezier(.3,1.6,.5,1); }
.motion .svf.play .svf-track i:nth-of-type(1) { transition-delay: .8s; }
.motion .svf.play .svf-track i:nth-of-type(2) { transition-delay: 1.8s; }
.motion .svf.play .svf-track i:nth-of-type(3) { transition-delay: 2.8s; }
.motion .svf.play .svf-ev li { opacity: 1; transform: none; transition: opacity .5s var(--ease), transform .5s var(--ease); }
.motion .svf.play .svf-ev li:nth-child(1) { transition-delay: .9s; }
.motion .svf.play .svf-ev li:nth-child(2) { transition-delay: 1.9s; }
.motion .svf.play .svf-ev li:nth-child(3) { transition-delay: 2.9s; }
.motion .svf.play .svf-tip { opacity: 1; transform: none; transition: opacity .6s 3.9s var(--ease), transform .6s 3.9s var(--ease); }
.motion .svf.play .svf-q { opacity: 1; transition: opacity .6s .3s; }
@media (max-width: 960px) { .svf-wrap { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .svf { grid-template-columns: 1fr; } .svf-score { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; } .svf-score .svf-k { width: 100%; } .svf-big { margin-top: 0; } .svf-q { margin-top: 0; padding-top: 0; width: 100%; } }

/* steps light up in sequence */
.motion .lifecycle .lc, .motion .steps3 li { opacity: 0; transform: translateY(12px); }
.motion .lifecycle .lc:not(:last-child)::after { clip-path: inset(0 100% 0 0); }
.motion .lifecycle.play .lc, .motion .steps3.play li { opacity: 1; transform: none; transition: opacity .55s var(--ease), transform .55s var(--ease); }
.motion .lifecycle.play .lc:not(:last-child)::after { clip-path: inset(0 0 0 0); transition: clip-path .5s var(--ease); }
.motion .lifecycle.play .lc .bi { animation: pop .6s var(--ease) both; }
.motion .lifecycle.play .lc:nth-child(2), .motion .steps3.play li:nth-child(2) { transition-delay: .35s; }
.motion .lifecycle.play .lc:nth-child(3), .motion .steps3.play li:nth-child(3) { transition-delay: .7s; }
.motion .lifecycle.play .lc:nth-child(4) { transition-delay: 1.05s; }
.motion .lifecycle.play .lc:nth-child(1)::after { transition-delay: .3s; }
.motion .lifecycle.play .lc:nth-child(2)::after { transition-delay: .65s; }
.motion .lifecycle.play .lc:nth-child(3)::after { transition-delay: 1s; }
.motion .lifecycle.play .lc:nth-child(2) .bi { animation-delay: .35s; }
.motion .lifecycle.play .lc:nth-child(3) .bi { animation-delay: .7s; }
.motion .lifecycle.play .lc:nth-child(4) .bi { animation-delay: 1.05s; }
@keyframes pop { 0% { transform: scale(.6); box-shadow: 0 0 0 0 rgba(31,107,58,.35); } 60% { transform: scale(1.1); box-shadow: 0 0 0 10px rgba(31,107,58,0); } 100% { transform: scale(1); } }
/* moment flow lines step in */
.motion .moment-flow li { opacity: 0; transform: translateX(-8px); }
.motion .moment-flow.play li { opacity: 1; transform: none; transition: opacity .45s var(--ease), transform .45s var(--ease); }
.motion .moment-flow.play li:nth-child(2) { transition-delay: .45s; }
.motion .moment-flow.play li:nth-child(3) { transition-delay: .9s; }
.mode-key { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 0 0 14px; color: var(--muted); font-size: .95rem; }
.mode-key > span { display: inline-flex; align-items: center; gap: 8px; }

/* seen-with badges in tables */
.seen { display: inline-block; white-space: nowrap; font-size: .8rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.seen.s { background: var(--surface); color: var(--ink); }
.seen.w { background: var(--ink); color: #fff; }
tr.soon th, tr.soon td { color: var(--muted); }
tr.soon-head td { padding-top: 22px; }

/* personal preview after sign-in */
.pv-wrap { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 40px 64px; align-items: center; }
.pv-wrap h2 { margin-bottom: 18px; }
.pv-wrap .lead { max-width: 34ch; }
.pv-steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 18px; }
.pv-steps li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.pv-si { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--accent); }
.pv-si .ico { width: 22px; height: 22px; }
.pv-steps h3 { font-size: 1.12rem; margin: 2px 0 2px; }
.pv-steps p { margin: 0; color: var(--muted); }
.pv { margin: 0; background: #fff; border-radius: 24px; padding: 26px; box-shadow: 0 24px 60px rgba(15,19,17,.12), 0 2px 6px rgba(15,19,17,.06); }
.pv-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pv-k { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0; }
.pv-chip { font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: var(--surface); color: var(--muted); }
.pv-src { margin: 4px 0 18px; font-size: .92rem; color: var(--muted); }
.pv-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.pv-top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; margin-bottom: 6px; }
.pv-subj { font-weight: 800; font-size: 1.05rem; }
.pv-note { font-size: .88rem; font-weight: 600; color: var(--accent); text-align: right; }
.pv-row.lag .pv-note { color: #a23b2c; }
.pv-bar { display: block; height: 10px; border-radius: 99px; background: var(--surface); overflow: hidden; }
.pv-bar span { display: block; height: 100%; width: var(--w); border-radius: inherit; background: var(--accent); }
.pv-row.lag .pv-bar span { background: var(--pink-deep); }
.pv-help { margin-top: 20px; padding: 16px 16px 6px; border-radius: 16px; background: var(--mint); }
.pv-help .pv-k { color: var(--accent); margin-bottom: 10px; }
.pv-help ul { list-style: none; margin: 0; padding: 0; }
.pv-help li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; margin-bottom: 12px; font-size: .97rem; line-height: 1.45; }
.pv-help li .ico { width: 20px; height: 20px; color: var(--accent); margin-top: 2px; }
.pv figcaption { margin-top: 14px; font-size: .82rem; color: var(--muted); }
.motion .pv .pv-bar span { width: 0; }
.motion .pv.play .pv-bar span { width: var(--w); transition: width 1.1s var(--ease); }
.motion .pv.play .pv-row:nth-child(2) .pv-bar span { transition-delay: .2s; }
.motion .pv.play .pv-row:nth-child(3) .pv-bar span { transition-delay: .4s; }
.motion .pv .pv-help, .motion .pv .pv-row.lag .pv-note { opacity: 0; transform: translateY(8px); }
.motion .pv.play .pv-row.lag .pv-note { opacity: 1; transform: none; transition: opacity .5s 1.3s var(--ease), transform .5s 1.3s var(--ease); }
.motion .pv.play .pv-help { opacity: 1; transform: none; transition: opacity .6s 1.8s var(--ease), transform .6s 1.8s var(--ease); }
@media (max-width: 960px) { .pv-wrap { grid-template-columns: 1fr; } .pv { max-width: 560px; } }
@media (max-width: 480px) { .pv { padding: 20px; } .pv-top { flex-direction: column; gap: 2px; } .pv-note { text-align: left; } }
.pv-callout { display: grid; grid-template-columns: 48px 1fr auto; gap: 16px 18px; align-items: center; margin-top: 18px; padding: 20px 22px; border-radius: 16px; background: var(--ink); color: #fff; }
.pv-callout h4 { margin: 0 0 4px; color: #fff; }
.pv-callout p { margin: 0; color: var(--vault-muted); }
.pv-callout-ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--mint); color: var(--accent); }
.pv-callout-ico .ico { width: 24px; height: 24px; }
.pv-callout .btn { background: var(--mint); color: var(--ink); white-space: nowrap; }
@media (max-width: 720px) { .pv-callout { grid-template-columns: 48px 1fr; } .pv-callout .btn { grid-column: 1 / -1; justify-self: start; } }

/* Sound familiar cards */
#stories .stories { gap: 16px; }
.sf-card { background: #fff; border-radius: 22px; padding: clamp(22px, 2.6vw, 32px); gap: 14px; box-shadow: 0 1px 2px rgba(15,19,17,.05); }
.sf-top { display: flex; align-items: center; gap: 12px; }
.sf-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: var(--mint); color: var(--accent); flex: none; }
.sf-ico .ico { width: 24px; height: 24px; }
.sf-tag { font-size: .8rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--accent); }
.sf-card h3 { font-size: clamp(1.35rem, 1.1rem + .7vw, 1.75rem); line-height: 1.15; margin: 4px 0 0; letter-spacing: -.01em; }
.sf-ctx { margin: 0; color: var(--muted); font-size: 1.02rem; }
.sf-flow { list-style: none; margin: 4px 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 0; }
.sf-flow li { display: inline-flex; align-items: center; font-size: .9rem; font-weight: 600; padding: 7px 12px; border-radius: 99px; background: var(--surface); }
.sf-flow li:not(:last-child)::after { content: ""; width: 18px; height: 2px; margin: 0 -12px 0 12px; background: var(--grey-frame); }
.sf-flow li:not(:last-child) { margin-right: 18px; }
.sf-flow li:last-child { background: var(--ink); color: #fff; }
.sf-k { display: flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.sf-k .ico { width: 17px; height: 17px; }
.sf-sees p, .sf-tip p { margin: 0; font-size: 1rem; line-height: 1.5; }
.sf-tip { position: relative; background: var(--mint); border-radius: 16px 16px 16px 4px; padding: 14px 16px; }
.sf-tip .sf-k { color: var(--accent); }
.sf-tip p { font-weight: 700; }
.sf-src { margin: auto 0 0; padding-top: 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .88rem; color: var(--muted); }
.sf-mode { font-size: .74rem; font-weight: 800; padding: 3px 10px; border-radius: 99px; }
.sf-mode.basic { background: var(--surface); color: var(--ink); }
.sf-mode.full { background: var(--ink); color: #fff; }
.motion .sf-card .sf-tip { opacity: 0; transform: translateY(10px); }
.motion .sf-card.play .sf-tip { opacity: 1; transform: none; transition: opacity .55s 1.2s var(--ease), transform .55s 1.2s var(--ease); }
@media (max-width: 480px) { .sf-flow li { font-size: .84rem; padding: 6px 10px; } }

/* And many more tile */
.ct-more { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr auto; gap: 14px 22px; align-items: center; padding: 20px 24px; border-radius: 16px; border: 1.5px dashed var(--mint-deep); background: transparent; }
.ct-more h3 { font-size: 1.15rem; margin: 0 0 2px; }
.ct-more p { margin: 0; color: var(--muted); }
.ct-more a { font-weight: 600; white-space: nowrap; }
.ct-more-dots { display: flex; gap: 6px; }
.ct-more-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); animation: moreDot 1.4s ease-in-out infinite; }
.ct-more-dots i:nth-child(2) { animation-delay: .18s; } .ct-more-dots i:nth-child(3) { animation-delay: .36s; }
@keyframes moreDot { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .ct-more-dots i { animation: none; opacity: .7; } }
@media (max-width: 620px) { .ct-more { grid-template-columns: 1fr; } }

/* coaching tip, redesigned */
.tip-wrap { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 28px; align-items: start; }
.tipx { margin: 0; background: #fff; border-radius: 22px; padding: 22px 22px 18px; box-shadow: 0 18px 50px rgba(15,19,17,.10), 0 1px 3px rgba(15,19,17,.06); }
.tipx-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid var(--surface); }
.tipx-av { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff; }
.tipx-av .ico { width: 20px; height: 20px; }
.tipx-head strong { display: block; font-size: 1rem; }
.tipx-head span { font-size: .85rem; color: var(--muted); }
.tipx-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.tipx-steps li { position: relative; display: grid; grid-template-columns: 36px 1fr; gap: 14px; padding-bottom: 16px; }
.tipx-steps li:not(:last-child)::before { content: ""; position: absolute; left: 17px; top: 38px; bottom: 2px; width: 2px; background: var(--mint); }
.tipx-i { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--mint); color: var(--accent); }
.tipx-i .ico { width: 18px; height: 18px; }
.tipx-steps li:last-child .tipx-i { background: var(--accent); color: #fff; }
.tipx-k { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin: 2px 0 3px; }
.tipx-steps p { margin: 0; line-height: 1.5; }
.tipx-steps li:last-child p { font-weight: 700; }
.tipx-reply { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.tipx-reply button { font: inherit; font-size: .92rem; font-weight: 600; padding: 9px 16px; border-radius: 99px; border: 1.5px solid var(--grey-frame); background: #fff; color: var(--ink); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.tipx-reply button:hover { border-color: var(--ink); }
.tipx-reply button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.tipx-ack { margin: 10px 0 0; min-height: 1.4em; font-size: .9rem; color: var(--accent); font-weight: 600; }
.tipq { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tipq li { background: var(--surface); border-radius: 18px; padding: 18px; }
.tipq-i { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--mint); color: var(--accent); margin-bottom: 12px; }
.tipq-i .ico { width: 20px; height: 20px; }
.tipq h3 { font-size: 1.1rem; margin: 0 0 4px; }
.tipq p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.45; }
.motion .tipx .tipx-steps li { opacity: 0; transform: translateY(10px); }
.motion .tipx.play .tipx-steps li { opacity: 1; transform: none; transition: opacity .5s var(--ease), transform .5s var(--ease); }
.motion .tipx.play .tipx-steps li:nth-child(2) { transition-delay: .5s; }
.motion .tipx.play .tipx-steps li:nth-child(3) { transition-delay: 1s; }
.motion .tipq li { opacity: 0; transform: scale(.96); }
.motion .tipq.play li { opacity: 1; transform: none; transition: opacity .45s var(--ease), transform .45s var(--ease); }
.motion .tipq.play li:nth-child(2) { transition-delay: .1s; } .motion .tipq.play li:nth-child(3) { transition-delay: .2s; } .motion .tipq.play li:nth-child(4) { transition-delay: .3s; }
@media (max-width: 1100px) { .tip-wrap { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .tipq { grid-template-columns: 1fr; } }

/* coach table widths */
.what-table th[scope="row"] .ti { white-space: nowrap; }
@media (max-width: 720px) { .what-table th[scope="row"] .ti { white-space: normal; } }
.tipx-av .ico { color: #fff; stroke: #fff; }
.tipq { align-items: stretch; }
.motion .sf-flow li { opacity: 0; transform: translateX(-8px); }
.motion .sf-flow.play li { opacity: 1; transform: none; transition: opacity .45s var(--ease), transform .45s var(--ease); }
.motion .sf-flow.play li:nth-child(2) { transition-delay: .35s; }
.motion .sf-flow.play li:nth-child(3) { transition-delay: .7s; }

/* touch + small-phone fixes */
.cell > a:last-child, .ct-more > a, th[scope=row] > a { display: inline-block; padding: 10px 0; margin: -6px 0; }
.ct-tag, .ct-off, .svf-tip span, .pv-chip, .sf-mode { font-size: .78rem; }
@media (max-width: 400px) {
  .stats { grid-template-columns: 1fr; }
  .stat-word { font-size: 1.9rem; }
  .cam-meter { flex-wrap: wrap; }
  .cam-bar { flex-basis: 100%; max-width: none; margin-left: 0; margin-top: 6px; }
}

/* review round: law names, technical details, pills */
.law-full { display: block; font-weight: 500; font-size: .8125rem; color: var(--muted); margin-top: 2px; }
.tech-details { border-top: 1px solid var(--grey-frame); padding-top: 14px; }
.tech-details > summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; }
.doc .callout { max-width: none; }
.ct-tag.s, .sf-mode.basic, .seen.s { box-shadow: inset 0 0 0 1px var(--grey-frame); }
#laws table.data, #keep table.data { min-width: 0; }
@media (max-width: 560px) { #laws table.data th[scope=row] { width: 38%; } #collect table.data { min-width: 560px; } }

/* Same wrong answer, two films */
.svf-films { display: grid; gap: 12px; }
.svf2 .svf-film { padding: 20px 22px; }
.svf2 .svf-track { margin: 12px 0 14px; }
.svf2 .svf-ev { gap: 6px; }
.svf2 .svf-tip { margin-top: 12px; padding: 12px 14px; }
.svf2 .svf-big { font-size: clamp(2.4rem, 1.6rem + 2.4vw, 3.4rem); color: #b4232a; }
.svf2 .svf-q { font-size: 1rem; }
.motion .svf2.play .svf-tip { transition-delay: 3.7s; }

/* ---------- Students: coach comparison ---------- */
.cc { background: var(--bg); border-radius: 14px; padding: 8px clamp(16px,3vw,32px); }
.cc-row { display: grid; grid-template-columns: 44px 1fr 1fr; gap: 16px; align-items: center; padding: 18px 0; border-top: 1px solid var(--grey-frame); font-size: 1.1rem; }
.cc-row:first-child { border-top: 0; }
.cc-head { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 14px 0 10px; }
.cc-ico { width: 40px; height: 40px; border-radius: 10px; background: var(--mint); color: var(--accent); display: grid; place-items: center; }
.cc-ico svg { width: 22px; height: 22px; }
.cc-sf { font-weight: 700; }
@media (max-width: 640px) {
  .cc-row { grid-template-columns: 40px 1fr; gap: 4px 14px; }
  .cc-row .cc-ico { grid-row: span 2; align-self: start; }
  .cc-head { display: none; }
  .cc-head + .cc-row { border-top: 0; }
  .cc-row span[role=cell]:nth-child(2) { color: var(--muted); font-size: .98rem; }
  .cc-row span[role=cell]:nth-child(2)::before { content: "Coach: "; }
  .cc-sf::before { content: "StudyFilm: "; font-weight: 400; color: var(--muted); }
}

/* ---------- Students: tip cards ---------- */
.tips { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.tip { background: var(--surface); border-radius: 14px; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.tip-top { display: flex; align-items: center; gap: 10px; }
.tip-ico { width: 36px; height: 36px; border-radius: 9px; background: var(--mint); color: var(--accent); display: grid; place-items: center; }
.tip-ico svg { width: 20px; height: 20px; }
.tip-cat { font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.tip h3 { font-size: 1.3rem; margin: 0; }
.tip-say { margin: 0; background: var(--mint); border-radius: 10px; padding: 14px 16px; font-weight: 700; font-size: 1.02rem; }
.tip-lab { display: block; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.tip-win { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-size: .95rem; font-weight: 600; }
.tip-win svg { width: 18px; height: 18px; color: var(--accent); flex: none; }
@media (max-width: 960px) { .tips { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 600px) { .tips { grid-template-columns: 1fr; } }
.why-cam { display: flex; gap: 8px; align-items: flex-start; margin-top: 6px; font-size: .92rem; font-weight: 600; color: var(--accent); }
.why-cam .ico { flex: none; width: 17px; height: 17px; margin-top: 2px; color: var(--accent); }

/* ---------- explainer video ---------- */
.vid-sec .sec-head { max-width: 62ch; }
.vid { margin: 0; max-width: 1040px; }
.vid-frame { position: relative; aspect-ratio: 16/9; border-radius: 14px; overflow: hidden; background: var(--ink); box-shadow: 0 24px 60px -28px rgba(11,11,10,.45); }
.vid-frame video { display: block; width: 100%; height: 100%; object-fit: cover; background: var(--ink); }
.vid-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 14px; border: 0; padding: 0; cursor: pointer; background: linear-gradient(180deg, rgba(11,11,10,0) 40%, rgba(11,11,10,.28)); color: #fff; font: inherit; }
.vid-play::before { content: ""; position: absolute; width: clamp(72px, 9vw, 104px); height: clamp(72px, 9vw, 104px); border-radius: 50%; background: var(--brand); box-shadow: 0 10px 30px rgba(0,0,0,.25); transition: transform .2s ease; }
.vid-play:hover::before, .vid-play:focus-visible::before { transform: scale(1.06); }
.vid-play:focus-visible { outline: 3px solid var(--brand); outline-offset: -3px; }
.vid-tri { position: relative; width: clamp(22px, 2.6vw, 30px); height: clamp(26px, 3vw, 34px); margin-left: 6px; background: #fff; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.vid-len { position: absolute; right: 16px; bottom: 14px; padding: 4px 10px; border-radius: 999px; background: rgba(11,11,10,.72); font-size: .875rem; font-weight: 600; }
.vid-frame.playing .vid-play { display: none; }
.vid-tr { margin-top: 18px; }
.vid-tr > summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.vid-tr-body { max-width: 68ch; padding: 8px 0 4px; }
.vid-tr-body h4 { margin: 18px 0 6px; font-size: 1rem; }
.vid-tr-body p { margin: 0; color: var(--muted); }

/* ---------- 404 page ---------- */
.not-found > h1 { margin-bottom: 1.5rem; }
.not-found > p { margin-inline: auto; }
