:root {
  /* Graffiti editorial palette (Developer Kit): ink, paper, gold, blue and coral. */
  --blue: #2168F2;
  --blue-deep: #1A55C9;
  --ink: #111111;
  --ink-2: #3A3A3A;
  --ink-3: #5E5E5E;
  --paper: #F7F4ED;
  --card: #FFFFFF;
  --line: #E2DDD1;
  --gold: #F7D72D;
  --coral: #F2775E;
  --sage: #BDCC8D;
  --night: #101114;
  --sky: #E3ECFE;
  --mint: #E6EDD3;
  --sun: #FDF3BC;
  --pink: #FCE1DA;
  --lilac: #E8E6F5;
  --peach: #FCE4D6;
  --forest: #111111;
  --forest-2: #2B2B2B;
  --lime: #F7D72D;
  --alert: #C8321F;
  --ok: #1B7F52;
  --amber: #A35B00;
  --display: "Anton", Impact, "Arial Narrow Bold", sans-serif;
  --marker: "Permanent Marker", "Comic Sans MS", cursive;
  --round: var(--text);
  --text: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --r-sm: 4px;
  --r-md: 6px;
  --r-lg: 8px;
  --wrap: 1180px;
  --shadow: 0 18px 40px -24px rgba(17, 17, 17, .45);
  color-scheme: light;
}

@font-face { font-family: "Anton"; src: url("/fonts/anton-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("/fonts/dm-sans-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("/fonts/dm-sans-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("/fonts/dm-sans-700.woff2") format("woff2"); font-weight: 600 700; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("/fonts/dm-sans-800.woff2") format("woff2"); font-weight: 800 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Permanent Marker"; src: url("/fonts/permanent-marker-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.55 var(--text); -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, h4 { font-family: var(--round); line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: var(--blue-deep); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--r-sm); z-index: 50; }
.skip:focus { top: 12px; }
.small { font-size: 13px; color: var(--ink-3); }

/* ---------- Header ---------- */
.bar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 18px;
  padding: 10px max(16px, calc((100vw - var(--wrap)) / 2));
  padding-top: max(10px, env(safe-area-inset-top));
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-logo { display: block; height: 40px; width: auto; }
.brand-mark-img { display: block; width: 36px; height: 36px; }
.logo-404 { margin: 0 0 28px; }
.logo-404 img { height: 48px; width: auto; }
.brand-tag { color: var(--ink-3); font-size: 15px; }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a { white-space: nowrap; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 999px; }
.nav a:hover { background: var(--sky); color: var(--ink); }
.help-btn { white-space: nowrap; flex: none; display: inline-flex; align-items: center; gap: 8px; font: 700 15px/1 var(--text); color: var(--alert); background: #fff; border: 2px solid #F3C2C0; border-radius: 999px; padding: 10px 16px; cursor: pointer; min-height: 44px; }
.help-btn svg { width: 20px; height: 20px; }
.help-btn:hover { background: #FFF2F1; border-color: var(--alert); }
.menu-btn { display: none; flex: none; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border-radius: 999px; border: 2px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.menu-btn svg { width: 22px; height: 22px; }
.menu-btn:hover, .menu-btn[aria-expanded="true"] { border-color: var(--ink); }
.menu { position: absolute; top: 100%; right: max(16px, calc((100vw - var(--wrap)) / 2)); width: min(280px, calc(100vw - 32px)); margin-top: 6px; display: grid; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow); }
.menu a { display: flex; align-items: center; min-height: 48px; padding: 0 14px; border-radius: var(--r-sm); text-decoration: none; color: var(--ink); font-weight: 700; font-size: 17px; }
.menu a:hover { background: var(--sky); }
.menu a[aria-current="page"] { color: var(--blue-deep); background: var(--sky); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 700 16px/1 var(--text); text-decoration: none; cursor: pointer; border-radius: 999px; padding: 14px 22px; min-height: 48px; border: 2px solid transparent; color: var(--ink); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 10px 20px -12px rgba(47, 75, 219, .9); }
.btn-primary:hover { background: var(--blue-deep); }
.btn-primary:disabled { opacity: .5; cursor: default; box-shadow: none; }
.btn-ghost, .btn-quiet { background: #fff; border-color: var(--line); }
.btn-ghost:hover, .btn-quiet:hover { border-color: var(--ink); }
.btn-ghost:disabled { opacity: .5; cursor: default; }
.btn-big { padding: 18px 28px; font-size: 18px; }
.btn-small { padding: 9px 14px; min-height: 40px; font-size: 14px; }
.link-btn { background: none; border: 0; padding: 6px 0; font: 700 15px/1.2 var(--text); color: var(--blue-deep); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; cursor: pointer; min-height: 40px; }
.link-on-dark { color: var(--lime); }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center;
  padding: 44px max(16px, calc((100vw - var(--wrap)) / 2)) 52px;
  background: radial-gradient(120% 140% at 100% 0%, #7A5AF8 0%, rgba(122, 90, 248, 0) 55%), radial-gradient(90% 120% at 0% 100%, #22B07D 0%, rgba(34, 176, 125, 0) 50%), var(--blue);
  color: #fff;
}
.hero h1 { font-size: clamp(34px, 4.6vw, 54px); font-weight: 800; max-width: 16ch; }
.lede { margin-top: 14px; font-size: 19px; color: #E4E9FF; max-width: 52ch; }
.hero .btn-primary { background: var(--lime); color: var(--forest); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .5); }
.hero .btn-primary:hover { background: #E3FBC4; }
.hero .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }
.hero .btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .1); }
.hero :focus-visible { outline-color: var(--lime); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.hero-note { background: #fff; color: var(--ink-2); border-radius: var(--r-lg); padding: 22px 24px; font-size: 15px; transform: rotate(1.5deg); box-shadow: 0 24px 44px -26px rgba(0, 0, 0, .6); border-top: 8px solid var(--lime); }
.hero-note-title { font: 800 21px/1.25 var(--round); color: var(--forest); margin-bottom: 8px; }

/* ---------- Lessons ---------- */
.lessons { max-width: var(--wrap); margin: 0 auto; padding: 36px 16px 64px; }
.lessons-head h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; }
.lessons-sub { color: var(--ink-2); margin-top: 6px; }
.topics { display: flex; gap: 8px; margin: 18px 0 22px; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: none; }
.topics::-webkit-scrollbar { display: none; }
.topic { flex: none; font: 700 15px/1 var(--text); padding: 11px 16px; min-height: 44px; border-radius: 999px; border: 2px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.topic[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.topic[aria-pressed="true"]::before { content: "\2713\00a0"; }

/* Age question and age filters (public/js/stage.js) */
.age-filters { margin-bottom: 10px; align-items: center; }
.age-chip { text-decoration: none; display: inline-flex; align-items: center; }
.age-change { flex: none; background: none; border: 0; padding: 11px 6px; min-height: 44px; font: 700 15px/1 var(--text); color: var(--blue-deep); text-decoration: underline; cursor: pointer; }
.stage-dialog { border: 0; border-radius: var(--r-lg); padding: 0; max-width: 520px; width: calc(100% - 32px); background: var(--card); color: var(--ink); }
.stage-dialog::backdrop { background: rgba(17, 17, 17, .55); }
.stage-form { padding: 24px; display: grid; gap: 14px; }
.stage-form h2 { margin: 0; font: 400 30px/1.05 var(--display); text-transform: uppercase; }
.stage-form p { margin: 0; }
.stage-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stage-label { display: grid; gap: 6px; font-weight: 700; }
.stage-label select { min-height: 44px; font: inherit; font-weight: 400; padding: 8px; border: 2px solid var(--line); border-radius: 10px; background: #fff; }
.stage-roles { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 16px; }
.stage-roles legend { font-weight: 700; margin-bottom: 6px; padding: 0; }
.stage-role { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; }
.stage-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.stage-error { color: var(--alert); font-weight: 700; min-height: 1em; }
.stage-error:empty { display: none; }
.stage-note { font-size: 14px; color: var(--ink-3); }
.coach-adult-note { font-size: 15px; color: var(--ink-2); }

.lessons-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.deck-col { max-width: 640px; width: 100%; }
.deck { position: relative; }
.deck-ghost { position: absolute; left: 14px; right: 14px; top: 10px; bottom: -10px; border-radius: var(--r-lg); background: var(--lilac); z-index: 0; }
.deck-ghost-2 { left: 28px; right: 28px; top: 20px; bottom: -20px; background: var(--sun); }
.feedback ~ .deck-ghost, .deck:has(.feedback:not([hidden])) .deck-ghost { display: none; }

.card {
  position: relative; z-index: 1; background: var(--card); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--line);
  touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab;
  transition: transform .25s cubic-bezier(.2, .8, .2, 1), opacity .2s ease;
}
.card.is-dragging { transition: none; cursor: grabbing; }
.card.is-leaving-left { transform: translateX(-120%) rotate(-10deg) !important; opacity: 0; }
.card.is-leaving-right { transform: translateX(120%) rotate(10deg) !important; opacity: 0; }
.card:focus-visible { outline: 4px solid var(--blue); outline-offset: 4px; }
.card-art { aspect-ratio: 2 / 1; background: var(--sky); }
.card-art svg, .anim-stage svg { display: block; width: 100%; height: 100%; }
.card-art { position: relative; overflow: hidden; }
.gen-img { position: relative; display: block; width: 100%; height: 100%; object-fit: contain; -webkit-user-drag: none; }
.gen-img-fill { position: absolute; inset: -24px; width: calc(100% + 48px); height: calc(100% + 48px); object-fit: cover; filter: blur(18px) brightness(.85); -webkit-user-drag: none; }
.gen-badge { position: absolute; right: 10px; bottom: 10px; font: 700 11px/1 var(--text); padding: 6px 8px; border-radius: 999px; background: rgba(20, 32, 74, .78); color: #fff; letter-spacing: .02em; }
.card-body { padding: 18px 22px 22px; }
.card-blue .card-body { background: linear-gradient(180deg, #fff, var(--sky)); }
.card-mint .card-body { background: linear-gradient(180deg, #fff, var(--mint)); }
.card-yellow .card-body { background: linear-gradient(180deg, #fff, var(--sun)); }
.card-pink .card-body { background: linear-gradient(180deg, #fff, var(--pink)); }
.card-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; }
.chip { display: inline-block; font: 700 13px/1 var(--text); padding: 7px 11px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); }
.revisit { font: 700 13px/1 var(--text); padding: 7px 11px; border-radius: 999px; background: var(--sun); color: var(--amber); }
.revisit::before { content: "\21BB\00a0"; }
.card-count { font-weight: 700; color: var(--blue-deep); }
.card-scenario { font: 800 clamp(21px, 2.6vw, 26px)/1.25 var(--round); margin-top: 12px; }
.card-question { margin-top: 8px; color: var(--ink-2); font-weight: 600; }

/* Labels that fade in on the card while you drag toward a side. */
.card-tilt { position: absolute; top: 14px; max-width: 70%; z-index: 3; pointer-events: none; }
.deck:has(.feedback:not([hidden])) .card-tilt { display: none; }
.card-tilt span { display: inline-block; font: 800 15px/1.25 var(--text); padding: 10px 14px; border-radius: 14px; background: #fff; color: var(--ink); border: 3px solid var(--ink); box-shadow: var(--shadow); }
.card-tilt-left { left: 16px; opacity: var(--tilt-left, 0); }
.card-tilt-left span::before { content: "\2190\00a0"; }
.card-tilt-right { right: 16px; text-align: right; opacity: var(--tilt-right, 0); }
.card-tilt-right span::after { content: "\00a0\2192"; }

.answers { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 30px; }
.answer { display: flex; align-items: center; gap: 10px; text-align: left; font: 700 16px/1.3 var(--text); color: var(--ink); background: #fff; border: 2px solid var(--line); border-radius: 18px; padding: 14px 16px; min-height: 64px; cursor: pointer; box-shadow: 0 8px 20px -16px rgba(20, 32, 74, .5); }
.answer-right { justify-content: flex-end; text-align: right; }
.answer:hover:not(:disabled), .answer.is-armed { border-color: var(--ink); background: var(--sky); }
.answer.is-armed { outline: 3px solid var(--blue); outline-offset: 2px; }
.answer:disabled { opacity: .55; cursor: default; }
.answer-key { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 18px; }
.deck-help { margin-top: 12px; font-size: 14px; color: var(--ink-3); text-align: center; }
.deck-empty { padding: 32px; text-align: center; background: #fff; border-radius: var(--r-lg); border: 1px dashed var(--line); }

/* ---------- Feedback ---------- */
.feedback { position: relative; z-index: 1; background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow); border: 1px solid var(--line); overflow: hidden; }
.fb-top { display: flex; align-items: center; gap: 12px; padding: 18px 22px; }
.feedback[data-result="recommended"] .fb-top { background: var(--mint); }
.feedback[data-result="other"] .fb-top { background: var(--sun); }
.fb-icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; font: 800 22px/1 var(--text); color: #fff; }
.feedback[data-result="recommended"] .fb-icon { background: var(--ok); }
.feedback[data-result="other"] .fb-icon { background: var(--amber); }
.fb-verdict { font-size: 22px; }
.fb-verdict:focus { outline: none; }
.fb-verdict:focus-visible { outline: 3px solid var(--blue); }
.feedback > p, .feedback > .fb-next, .feedback > .fb-phrase, .feedback > .fb-actions { margin-left: 22px; margin-right: 22px; }
.fb-label { display: block; font: 800 12px/1.2 var(--text); letter-spacing: .04em; color: var(--ink-3); margin-bottom: 4px; }
.fb-picked, .fb-reco { margin-top: 14px; font-weight: 600; }
.fb-explain { margin-top: 14px; color: var(--ink-2); }
.fb-next { margin-top: 16px; padding: 14px 16px; border-radius: var(--r-md); background: var(--sky); }
.fb-next p:last-child { font-weight: 700; }
.fb-phrase { margin-top: 12px; padding: 16px 18px; border-radius: var(--r-md); background: var(--forest); color: #fff; }
.fb-phrase .fb-label { color: #A9D8C3; }
.fb-phrase-text { font: 800 24px/1.25 var(--round); color: var(--lime); }
.fb-sources { margin-top: 14px; font-size: 14px; color: var(--ink-3); }
.fb-sources .fb-label { display: inline; }
.fb-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; margin-bottom: 22px; }

.panel { margin: 0 22px 22px; padding: 18px; border-radius: var(--r-md); background: var(--paper); border: 1px solid var(--line); }
.panel h4 { font-size: 18px; margin-bottom: 6px; }
.panel-note { font-size: 13px; color: var(--ink-3); }
.panel-status { min-height: 1.4em; margin-top: 8px; font-size: 14px; font-weight: 600; color: var(--blue-deep); }
.listen-controls { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin-top: 12px; }
.listen-controls label { display: grid; gap: 4px; font-size: 13px; font-weight: 700; }
.listen-controls select { font: 15px var(--text); padding: 8px 10px; border-radius: var(--r-sm); border: 2px solid var(--line); background: #fff; max-width: 240px; min-height: 40px; color: var(--ink); }
.listen-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.transcript { margin-top: 12px; font-size: 15px; color: var(--ink-2); }
.transcript summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.transcript p { margin-top: 8px; }

.video-frame { position: relative; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 16 / 9; background: #1E2A5A; margin-top: 8px; outline-offset: 3px; }
.video-frame canvas { display: block; width: 100%; height: 100%; cursor: pointer; }
.video-frame:fullscreen { border-radius: 0; background: #000; display: grid; place-items: center; }
.video-frame:fullscreen canvas { width: 100vw; height: 100vh; object-fit: contain; }
.video-big { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%); width: 76px; height: 76px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .94); color: var(--ink); font-size: 30px; box-shadow: var(--shadow); cursor: pointer; display: grid; place-items: center; }
.video-big:hover, .video-big:focus-visible { background: #fff; transform: translate(-50%, -50%) scale(1.06); }
.video { min-width: 0; }
.video-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 10px; }
.video-controls input[type="range"] { flex: 1 1 120px; width: 100%; min-width: 0; accent-color: var(--blue); }
.video-time { font: 700 13px/1 var(--text); color: var(--ink-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.video-chapters { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.video-chapter { font: 700 13px/1 var(--text); padding: 8px 10px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; min-height: 32px; }
.video-chapter[aria-current="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.video-options { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin-top: 12px; font-size: 14px; }
.video-options select { font: 14px var(--text); padding: 6px 8px; border-radius: var(--r-sm); border: 2px solid var(--line); background: #fff; max-width: 220px; min-height: 36px; color: var(--ink); }
.video-caption { margin-top: 10px; font-size: 16px; }
.video[data-recording="true"] .video-controls, .video[data-recording="true"] .video-chapters { opacity: .5; pointer-events: none; }
@keyframes scene-in { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }

/* ---------- Side column ---------- */
.side-col { display: grid; gap: 18px; position: sticky; top: 90px; }
.progress-card { background: #fff; border-radius: var(--r-lg); padding: 22px; border: 1px solid var(--line); display: grid; gap: 12px; }
.progress-card h3 { font-size: 19px; }
.progress-row { display: flex; align-items: center; gap: 14px; }
.ring { width: 64px; height: 64px; transform: rotate(-90deg); flex: none; }
.ring circle { fill: none; stroke-width: 6; }
.ring-bg { stroke: var(--sky); }
.ring-fg { stroke: var(--blue); stroke-linecap: round; transition: stroke-dashoffset .5s ease; }
.progress-row strong { font: 800 26px var(--round); }
.share { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ink-3); }
.share input { margin-top: 2px; width: 18px; height: 18px; accent-color: var(--blue); flex: none; }
.progress-card .btn { justify-self: start; }
.lines-card { background: var(--forest); color: #E3F3EC; border-radius: var(--r-lg); padding: 24px; display: grid; gap: 10px; }
.lines-card h3 { color: #fff; font-size: 24px; }
.lines-quote { font: 800 26px/1.2 var(--round); color: var(--lime); padding: 18px; border-radius: var(--r-md); border: 1px solid var(--forest-2); }
.lines-quote.swap { animation: scene-in .4s ease; }

/* ---------- Sections ---------- */
.section { max-width: var(--wrap); margin: 0 auto; padding: 64px 16px; }
.section-head { max-width: 64ch; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; }
.section-head p { margin-top: 10px; color: var(--ink-2); }

.coach-section { background: linear-gradient(180deg, var(--lilac), var(--paper)); max-width: none; }
.coach-section > * { max-width: calc(var(--wrap) - 32px); margin-left: auto; margin-right: auto; }
.coach { background: #fff; border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow); }
.thread { display: flex; flex-direction: column; gap: 14px; max-height: 620px; overflow-y: auto; padding: 4px 4px 12px; }
.msg { max-width: 92%; padding: 14px 18px; border-radius: 20px; }
.msg-user { align-self: flex-end; background: var(--blue); color: #fff; border-bottom-right-radius: 6px; white-space: pre-wrap; }
.msg-coach { align-self: flex-start; background: var(--paper); border-bottom-left-radius: 6px; }
.msg-coach p + p, .msg-coach p + ul, .msg-coach ul + p, .msg-coach ol + p, .msg-coach p + ol, .table-wrap + p, .table-wrap + ul { margin-top: 10px; }
.msg-coach ul, .msg-coach ol { margin: 8px 0 0; padding-left: 22px; }
.msg-coach blockquote { margin: 10px 0 0; padding-left: 12px; border-left: 3px solid var(--blue); }
.table-wrap { overflow-x: auto; margin-top: 10px; }
.msg-coach table { border-collapse: collapse; width: 100%; font-size: 15px; background: #fff; border-radius: var(--r-sm); overflow: hidden; }
.msg-coach th, .msg-coach td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.msg-emergency { background: #FDECEA; border: 2px solid var(--alert); }
.msg-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin-top: 12px; font-size: 13px; color: var(--ink-3); }
.badge { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ink-2); }
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.badge[data-kind="reviewed"]::before { background: #E3A008; }
.badge[data-kind="emergency"]::before { background: var(--alert); }
.rate { display: inline-flex; gap: 6px; align-items: center; }
.rate button { font: 700 13px var(--text); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; min-height: 32px; cursor: pointer; color: var(--ink-2); }
.rate button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.followups { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.typing { align-self: flex-start; color: var(--ink-3); font-size: 15px; padding: 6px 4px; }
.starters { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 16px; }
.chip-btn { font: 600 14px/1.3 var(--text); text-align: left; color: var(--ink); background: var(--sky); border: 1px solid transparent; border-radius: 999px; padding: 10px 14px; min-height: 40px; cursor: pointer; }
.chip-btn:hover { border-color: var(--ink); }
.composer { display: flex; gap: 10px; align-items: flex-end; }
.composer textarea { flex: 1; font: 17px/1.4 var(--text); padding: 12px 14px; border-radius: var(--r-md); border: 2px solid var(--line); resize: vertical; min-height: 54px; color: var(--ink); background: #fff; }
.composer textarea:focus { border-color: var(--blue); outline: none; }
.fineprint { margin-top: 12px; font-size: 13px; color: var(--ink-3); }

.field { display: flex; flex-direction: column; gap: 6px; }
.field-wide { grid-column: 1 / -1; }
.field label, .field-label { font-weight: 700; font-size: 15px; }
.field input, .field textarea { font: 16px/1.4 var(--text); padding: 12px; border: 2px solid var(--line); border-radius: var(--r-sm); color: var(--ink); background: #fff; min-height: 48px; }
.field input:focus, .field textarea:focus { border-color: var(--blue); outline: none; }
.phrase-text { font: 800 18px/1.3 var(--round); }


.resources { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.resource { display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: var(--r-lg); text-decoration: none; color: var(--ink); border: 2px solid transparent; }
.resource:hover { border-color: var(--ink); }
.resource-sky { background: var(--sky); } .resource-mint { background: var(--mint); } .resource-sun { background: var(--sun); }
.resource-pink { background: var(--pink); } .resource-lilac { background: var(--lilac); } .resource-peach { background: var(--peach); }
.resource-org { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.resource-title { font: 800 19px/1.25 var(--round); }
.resource-desc { color: var(--ink-2); font-size: 15px; }
.resource-format { margin-top: auto; padding-top: 8px; font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.foot { max-width: var(--wrap); margin: 0 auto; padding: 40px 16px 64px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 14px; display: grid; gap: 6px; }

/* ---------- Mobile tab bar ---------- */
.tabbar { display: none; }

/* ---------- Help dialog ---------- */
.help { border: 0; border-radius: var(--r-lg); padding: 0; max-width: 520px; width: calc(100% - 32px); color: var(--ink); }
.help::backdrop { background: rgba(20, 32, 74, .55); }
.help-inner { padding: 26px; display: grid; gap: 16px; }
.help h2 { font-size: 28px; }
.help-lead { font-size: 18px; }
.help-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.help-call { display: flex; flex-direction: column; padding: 14px 16px; border-radius: var(--r-md); background: var(--paper); text-decoration: none; color: var(--ink); min-height: 56px; }
.help-call strong { font: 800 20px/1.2 var(--round); }
.help-call span { color: var(--ink-2); font-size: 14px; }
.help-911 { background: var(--alert); color: #fff; }
.help-911 span { color: #FBE3E1; }
.help-tips { margin: 0; padding-left: 20px; color: var(--ink-2); font-size: 15px; display: grid; gap: 6px; }
.help .btn { justify-self: start; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .lessons-grid { grid-template-columns: 1fr; }
  .deck-col { margin: 0 auto; }
  .side-col { position: static; grid-template-columns: 1fr 1fr; }
  .nav, .brand-tag { display: none; }
  .bar { gap: 10px; }
  .help-btn { margin-left: auto; }
  .menu-btn { display: inline-flex; }
}
@media (max-width: 760px) {
  body { font-size: 16px; padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  /* A short hero on phones, so the first lesson starts near the top of the screen. */
  .hero { grid-template-columns: 1fr; padding-top: 18px; padding-bottom: 20px; gap: 12px; }
  .hero h1 { font-size: 28px; max-width: none; }
  .lede { margin-top: 8px; font-size: 15.5px; line-height: 1.45; }
  .hero-actions { margin-top: 14px; gap: 10px; }
  .hero-actions .btn { flex: 1 1 0; justify-content: center; padding-left: 12px; padding-right: 12px; }
  .hero-actions .btn-big { font-size: 16px; min-height: 46px; }
  .hero-note { transform: none; padding: 10px 14px; border-top-width: 5px; border-radius: var(--r-md); font-size: 13.5px; line-height: 1.4; }
  .hero-note-title { font-size: 15.5px; margin-bottom: 4px; }
  .lessons { padding-top: 8px; }
  .side-col { grid-template-columns: 1fr; }
  .answers { grid-template-columns: 1fr 1fr; gap: 10px; }
  .answer { font-size: 15px; padding: 12px; min-height: 72px; flex-direction: column; align-items: flex-start; gap: 8px; }
  .answer-right { align-items: flex-end; flex-direction: column-reverse; }
  .answer-key { width: 30px; height: 30px; }
  .card-body { padding: 16px 18px 18px; }
  .fb-actions .btn { flex: 1 1 calc(50% - 10px); padding: 12px 10px; }
  .panel { margin: 0 14px 16px; padding: 14px; }
  .feedback > p, .feedback > .fb-next, .feedback > .fb-phrase, .feedback > .fb-actions { margin-left: 16px; margin-right: 16px; }
  .card-art { aspect-ratio: 2 / 1; }
  .card-scenario { font-size: 19px; margin-top: 10px; }
  .card-question { margin-top: 4px; font-size: 15px; }
  .answers { margin-top: 22px; }
  .lessons-head h2 { font-size: 28px; }
  .topics { margin: 12px 0 14px; }
  .fb-top { padding: 16px; }
  .resources { grid-template-columns: 1fr; }
  .coach { padding: 16px; }
  .composer-row { flex-direction: column; align-items: stretch; }
  .coach-top { justify-content: space-between; }
  .coach .coach-help span { display: inline; }
  .coach .coach-help { width: auto; padding: 8px 14px; }
  .section { padding: 48px 16px; }
  .msg { max-width: 100%; }
  .help-btn span { display: none; }
  .help-btn { padding: 10px; width: 44px; justify-content: center; }
  .brand-logo { height: 36px; }
  .tabbar {
    display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: rgba(255, 255, 255, .96); backdrop-filter: blur(12px); border-top: 1px solid var(--line);
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  }
  .tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; gap: 2px; font: 700 12px/1.2 var(--text); color: var(--ink-3); text-decoration: none; background: none; border: 0; padding: 6px 2px; min-height: 52px; border-radius: 12px; cursor: pointer; }
  .tabbar svg { width: 24px; height: 24px; }
  .tabbar a.is-on { color: var(--blue); background: var(--sky); }
  .tabbar .tab-help { color: var(--alert); }
}

@media print {
  .bar, .hero, .lessons, #coach, #resources, .foot, .help, .tabbar, .skip { display: none !important; }
  main:has(.plan-page) > :not(.plan-page), .plan-page > :not(.compact) { display: none !important; }
  .plan-page { display: block; padding: 0; }
  .compact { border: 0 !important; box-shadow: none !important; padding: 0 !important; }
  .compact-actions { display: none !important; }
  .section { padding: 0; }
  body { background: #fff; }
}

/* ---------- Lesson types, scene setting and steps ---------- */
.type-tag { font-weight: 800; font-size: 12px; letter-spacing: .02em; padding: 4px 9px; border-radius: 999px; background: var(--ink); color: #fff; }
.type-tag[data-type="myth"] { background: #7A5AF8; }
.type-tag[data-type="sign"] { background: #C2410C; }
.type-tag[data-type="steps"] { background: var(--forest); }
.card-step { font-weight: 700; color: var(--ink-2); }
.card-new { font-weight: 800; color: #0F4D33; background: var(--mint); padding: 3px 8px; border-radius: 999px; }
.card-context { margin-top: 12px; font-size: 15px; line-height: 1.45; color: var(--ink-2); padding: 10px 12px; border-left: 4px solid var(--blue); background: rgba(255, 255, 255, .7); border-radius: 0 10px 10px 0; }
.card-dialogue { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.talk { max-width: 85%; justify-self: start; background: var(--paper); border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; padding: 6px 12px; font-size: 15px; line-height: 1.35; }
.talk-you { justify-self: end; background: var(--sky); border-color: #C9D6FF; border-radius: 14px 14px 4px 14px; }
.talk-who { display: block; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.card-context-label { display: block; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--blue-deep); margin-bottom: 2px; }
.answers-multi { position: relative; z-index: 1; display: grid; gap: 10px; margin-top: 24px; }
.answer-multi { display: flex; align-items: center; gap: 12px; text-align: left; font: 700 16px/1.3 var(--text); color: var(--ink); background: #fff; border: 2px solid var(--line); border-radius: 16px; padding: 12px 14px; min-height: 56px; cursor: pointer; box-shadow: 0 8px 20px -16px rgba(20, 32, 74, .5); }
.answer-multi:hover:not(:disabled), .answer-multi:focus-visible { border-color: var(--ink); background: var(--sky); }
.answer-multi:disabled { opacity: .55; cursor: default; }
.answer-multi .answer-key { font-size: 15px; font-weight: 800; }
.step-result { margin-top: 0; padding: 22px; border-radius: var(--r-lg); background: #fff; border: 2px solid var(--line); display: grid; gap: 12px; }
.step-verdict { font: 800 20px/1.25 var(--round); }
.step-result[data-result="recommended"] { border-color: var(--ok); }
.fb-steps { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 6px; }
.fb-steps li { padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, .7); }
.step-result { position: relative; z-index: 2; }
.deck:has(.step-result:not([hidden])) .deck-ghost, .deck:has(.step-result:not([hidden])) .card-tilt { display: none; }

/* ---------- More trusted resources ---------- */
.trusted { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 28px; margin-top: 28px; align-items: start; }
.trusted-group { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px; }
.trusted-title { font: 800 18px/1.25 var(--round); margin-bottom: 8px; }
.trusted-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.trusted-item { display: grid; gap: 3px; padding-top: 10px; border-top: 1px solid var(--line); }
.trusted-item:first-child { border-top: 0; padding-top: 0; }
.trusted-name { font-weight: 800; color: var(--blue-deep); text-underline-offset: 3px; overflow-wrap: anywhere; }
.trusted-desc { font-size: 15px; color: var(--ink-2); }
.trusted-for { font-size: 13px; color: var(--ink-3); }
.trusted-label { font-weight: 700; }
.trusted-note { margin-top: 16px; font-size: 14px; color: var(--ink-3); }
@media (max-width: 860px) { .trusted { grid-template-columns: 1fr; } }

/* The logo is wider than the old wordmark: show the tagline only where it fits on one line. */
@media (max-width: 1360px) { .brand-tag { display: none; } }

/* ---------- About ---------- */
.about-lede { font: 800 clamp(20px, 2.4vw, 24px)/1.3 var(--round); color: var(--blue-deep) !important; }
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: start; }
.about-story { display: grid; gap: 14px; font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.about-people { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; display: grid; gap: 14px; }
.about-people h3 { font: 800 19px/1.3 var(--round); }
.about-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; color: var(--ink-2); }
.about-list li { padding-left: 14px; border-left: 4px solid var(--mint); }
.about-list a { font-weight: 800; color: var(--blue-deep); text-underline-offset: 3px; }
.about-closing { margin-top: 28px; font: 800 clamp(18px, 2.2vw, 22px)/1.35 var(--round); color: var(--ink); text-align: center; }
.foot a { color: inherit; text-underline-offset: 3px; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

/* ---------- Shared bits on the main page ---------- */
.back-chip { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px; font-weight: 700; font-size: 15px; padding: 8px 14px; border-radius: 999px; background: var(--lime); color: var(--forest); text-decoration: none; }
.back-chip:hover { background: #E3FBC4; }
.coach-ask-note { font-size: 14px; color: var(--ink-2); background: var(--sun); border-radius: var(--r-sm); padding: 10px 14px; margin-bottom: 10px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; }
.nav a[aria-current="page"], .tabbar a[aria-current="page"] { color: var(--blue-deep); font-weight: 800; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* ---------- My plan and For parents pages ---------- */
.page-hero {
  padding: 44px max(16px, calc((100vw - var(--wrap)) / 2)) 48px;
  background: radial-gradient(120% 140% at 100% 0%, #7A5AF8 0%, rgba(122, 90, 248, 0) 55%), radial-gradient(90% 120% at 0% 100%, #22B07D 0%, rgba(34, 176, 125, 0) 50%), var(--blue);
  color: #fff;
}
.page-hero-parents { background: radial-gradient(120% 140% at 100% 0%, #22B07D 0%, rgba(34, 176, 125, 0) 55%), radial-gradient(90% 120% at 0% 100%, #7A5AF8 0%, rgba(122, 90, 248, 0) 50%), var(--forest); }
/* Each page has its own banner color from the site palette: Coach violet, My plan deep ink,
   Parents forest, Resources amber. Other pages keep the main blue. */
.page-hero-coach { background: radial-gradient(120% 140% at 100% 0%, #9B82FF 0%, rgba(155, 130, 255, 0) 55%), radial-gradient(90% 120% at 0% 100%, #FF8FAB 0%, rgba(255, 143, 171, 0) 45%), #5A3FD1; }
.page-hero-plan { background: radial-gradient(120% 140% at 100% 0%, var(--blue) 0%, rgba(47, 75, 219, 0) 60%), radial-gradient(90% 120% at 0% 100%, #22B07D 0%, rgba(34, 176, 125, 0) 45%), var(--ink); }
.page-hero-resources { background: radial-gradient(120% 140% at 100% 0%, #E08A1E 0%, rgba(224, 138, 30, 0) 55%), radial-gradient(90% 120% at 0% 100%, #C2410C 0%, rgba(194, 65, 12, 0) 50%), #8F4A00; }
.page-hero-inner { max-width: 68ch; display: grid; gap: 14px; }
.page-hero h1 { font-size: clamp(34px, 4.6vw, 54px); font-weight: 800; }
.page-hero-kicker { font-weight: 800; color: var(--lime); letter-spacing: .02em; }
.page-hero-tag { font: 800 clamp(20px, 2.4vw, 26px)/1.25 var(--round); color: var(--lime); }
.page-hero p { color: #E4E9FF; font-size: 18px; }
.page-hero .page-hero-reassure { color: #fff; font-weight: 700; border-left: 4px solid var(--lime); padding-left: 12px; }
.page-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.btn-lime { background: var(--lime); color: var(--forest); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .5); }
.btn-lime:hover { background: #E3FBC4; }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.btn-ghost-light:hover { border-color: #fff; background: rgba(255, 255, 255, .1); }
.page-hero :focus-visible { outline-color: var(--lime); }

.plan-page, .parents-page { display: grid; gap: 22px; padding-top: 32px; }
.plan-steps { display: grid; gap: 22px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; display: grid; gap: 14px; scroll-margin-top: 84px; }
.step h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; }
.step h3 { font-size: 20px; }
.step-num { font-weight: 800; font-size: 14px; color: var(--blue-deep); text-transform: uppercase; letter-spacing: .06em; }
.step-lead { color: var(--ink-2); font-size: 18px; }
.step-care { border-left: 8px solid var(--mint); }
.helper { color: var(--ink-2); font-size: 15px; }
.step-actions, .closing-actions, .rehearse-actions, .scenario-next, .compact-actions, .feedback-buttons { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.step > .btn, .closing-actions .btn { justify-self: start; }

.save-bar { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; justify-content: space-between; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 18px; position: sticky; top: 66px; z-index: 5; }
.save-state { font-weight: 700; font-size: 15px; color: var(--ink-2); }
.save-saved { color: var(--ok); }
.save-saved::before { content: "✓ "; }
.save-failed { color: var(--alert); font-weight: 600; }
.privacy-note { font-size: 15px; }
.privacy-note summary { cursor: pointer; font-weight: 700; color: var(--blue-deep); min-height: 32px; display: flex; align-items: center; }
.privacy-note p { color: var(--ink-2); max-width: 70ch; margin-top: 6px; }

.next-up { background: var(--sun); border-radius: var(--r-md); padding: 16px 20px; display: grid; gap: 8px; }
.next-up-title { font-size: 18px; }
.next-up-list { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.next-up-note { font-size: 14px; color: var(--ink-2); }

.person-grid, .support-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.support-grid { grid-template-columns: repeat(3, 1fr); }
.person, .support-card { border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px; margin: 0; display: grid; gap: 12px; align-content: start; min-width: 0; }
.person legend, .support-card legend { font: 800 17px/1.2 var(--round); padding: 0 6px; }
.field-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 18px; }
.field select { font: 16px/1.4 var(--text); padding: 12px; border: 2px solid var(--line); border-radius: var(--r-sm); color: var(--ink); background: #fff; min-height: 48px; }
.field select:focus { border-color: var(--blue); outline: none; }
.field input, .field textarea, .field select { width: 100%; min-width: 0; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.contact-actions:empty { display: none; }
.contact-note { font-size: 14px; color: var(--ink-3); }
.copy-row { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; background: var(--paper); border-radius: var(--r-md); padding: 12px 16px; }
.copy-text { flex: 1 1 280px; font-weight: 600; }
.practice-link { font-weight: 700; }

.sub-title { margin-top: 6px; }
.phrase-list { list-style: none; margin: 0; padding: 0; display: grid; }
.phrase { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); }
.phrase .phrase-text { flex: 1 1 260px; font-size: 17px; }
.phrase input { flex: 1 1 260px; font: 16px/1.4 var(--text); padding: 10px 12px; border: 2px solid var(--blue); border-radius: var(--r-sm); min-height: 44px; }
.phrase-actions, .try-actions { display: inline-flex; flex-wrap: wrap; gap: 0 14px; }
.phrase-saved { font-weight: 700; color: var(--ok); font-size: 15px; padding: 6px 0; }
.phrase-list .empty { color: var(--ink-3); padding: 10px 0; }
.pending { background: var(--lilac); border-radius: var(--r-md); padding: 16px 18px; display: grid; gap: 8px; }
.add-line { display: flex; gap: 10px; flex-wrap: wrap; }
.add-line input { flex: 1 1 240px; font: 16px/1.4 var(--text); padding: 12px; border: 2px solid var(--line); border-radius: var(--r-sm); min-height: 48px; min-width: 0; }
.add-line input:focus { border-color: var(--blue); outline: none; }
.bank summary { cursor: pointer; font-weight: 700; color: var(--blue-deep); min-height: 40px; display: flex; align-items: center; }
.rehearse { background: var(--forest); color: #fff; border-radius: var(--r-md); padding: 18px 20px; display: grid; gap: 10px; }
.rehearse .helper { color: #D8EDE5; }
.rehearse-label { font-weight: 800; color: var(--lime); }
.rehearse-line { font: 800 24px/1.25 var(--round); }
.rehearse .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }
.rehearse :focus-visible { outline-color: var(--lime); }

.scenario-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.scenario-tab { font: 700 15px/1.25 var(--text); text-align: left; color: var(--ink); background: var(--sky); border: 2px solid transparent; border-radius: 999px; padding: 10px 16px; min-height: 44px; cursor: pointer; }
.scenario-tab:hover { border-color: var(--ink); }
.scenario-tab[aria-selected="true"] { background: var(--ink); color: #fff; }
.scenario { display: grid; gap: 12px; }
.scenario-setup { font-size: 18px; }
.scenario-q { font-weight: 800; }
.scenario-choices { display: grid; gap: 10px; }
.choice { font: 600 16px/1.35 var(--text); text-align: left; color: var(--ink); background: #fff; border: 2px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; min-height: 48px; cursor: pointer; }
.choice:hover { border-color: var(--ink); }
.choice[aria-pressed="true"] { border-color: var(--blue); background: var(--sky); }
.scenario-result { background: var(--mint); border-radius: var(--r-md); padding: 16px 18px; display: grid; gap: 12px; }
.scenario-effect { font-size: 17px; }

.closing { background: var(--forest); color: #fff; border-radius: var(--r-lg); padding: 26px; display: grid; gap: 14px; }
.closing h2 { font-size: clamp(24px, 3vw, 32px); }
.closing-text { font: 700 20px/1.4 var(--round); max-width: 62ch; }
.closing .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }
.closing .btn-primary { background: var(--lime); color: var(--forest); }
.closing :focus-visible { outline-color: var(--lime); }
.closing .tool { background: #fff; color: var(--ink); }

.compact { background: #fff; border: 2px solid var(--ink); border-radius: var(--r-lg); padding: 24px; display: grid; gap: 14px; scroll-margin-top: 84px; }
.compact-head { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; justify-content: space-between; }
.compact-head h2 { font-size: 26px; }
.compact-list { margin: 0; display: grid; }
.compact-row { display: grid; grid-template-columns: 180px 1fr; gap: 4px 18px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.compact-row dt { font-weight: 800; }
.compact-row dd { margin: 0; overflow-wrap: anywhere; }
.compact-row ul { margin: 0; padding-left: 18px; }
.compact-empty { color: var(--ink-3); }
.compact-help { font-weight: 700; color: var(--alert); }

.page-feedback { background: #fff; border: 1px dashed var(--line); border-radius: var(--r-lg); padding: 22px 26px; display: grid; gap: 10px; }
.page-feedback h2 { font-size: 22px; }
.feedback-q { font-weight: 700; margin-top: 6px; }
.feedback-buttons .btn[aria-pressed="true"] { border-color: var(--blue); background: var(--sky); }
.feedback-thanks { color: var(--ok); font-weight: 600; min-height: 1.5em; }

.try { background: var(--lime); color: var(--forest); border-radius: var(--r-md); padding: 14px 18px; display: grid; gap: 6px; }
.try-label { font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.try-line { font: 800 19px/1.35 var(--round); }
.try .link-btn { color: var(--forest); }
.ask-list, .check-list { margin: 0; padding-left: 22px; display: grid; gap: 6px; font-size: 17px; }
.examples { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.examples > li { display: grid; gap: 8px; }
.example-said { font: 700 18px/1.35 var(--round); color: var(--ink); background: var(--paper); border-radius: var(--r-md); padding: 12px 16px; }
.tool { background: var(--paper); border-radius: var(--r-md); padding: 18px; display: grid; gap: 12px; }
.topic-links, .coach-prompts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.topic-link { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px; border-radius: 999px; background: #fff; border: 2px solid var(--line); font-weight: 700; text-decoration: none; color: var(--ink); }
.topic-link:hover { border-color: var(--ink); }
.coach-prompts .btn { text-align: left; }
.media-note { font-size: 14px; color: var(--ink-3); }

@media (max-width: 860px) {
  .person-grid, .support-grid, .field-grid { grid-template-columns: 1fr; }
  .compact-row { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .page-hero { padding-top: 28px; padding-bottom: 32px; }
  .page-hero h1 { font-size: 34px; }
  .page-hero p { font-size: 17px; }
  .step, .closing, .compact { padding: 18px; }
  .save-bar { top: 58px; }
  .page-hero-actions .btn, .closing-actions .btn { flex: 1 1 100%; }
}

/* ---------- Ask the Becoming Coach ---------- */
.coach-tagline { font: 800 20px/1.3 var(--round); color: var(--blue-deep); }
.coach-top .link-btn { white-space: nowrap; }
.coach-top { display: flex; justify-content: flex-end; align-items: center; gap: 14px; margin-bottom: 12px; }
.coach-help { min-height: 40px; padding: 8px 14px; font-size: 14px; }
.coach-intro { display: grid; gap: 8px; margin-bottom: 14px; }
.coach-label { font-weight: 800; font-size: 15px; color: var(--ink); }
.coach-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 20px; align-items: start; }
.coach-quick { background: #fff; border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow); display: grid; gap: 8px; position: sticky; top: 84px; }
.coach-quick-title { font-size: 20px; }
.coach-quick-help { font-size: 15px; color: var(--ink-2); }
.intent-list { display: grid; gap: 8px; margin: 4px 0; }
.intent-list .intent { width: 100%; text-align: left; }
#intents-refresh { justify-self: start; }
@media (max-width: 1000px) {
  .coach-layout { grid-template-columns: 1fr; }
  .coach-quick { order: -1; position: static; }
  .intent-list { display: flex; flex-wrap: wrap; }
  .intent-list .intent { width: auto; }
}
.intent { font: 700 14px/1.2 var(--text); color: var(--ink); background: #fff; border: 2px solid var(--line); border-radius: 999px; padding: 10px 14px; min-height: 44px; cursor: pointer; }
.intent:hover { border-color: var(--ink); background: var(--sky); }
.intent:active { background: var(--ink); color: #fff; }
.intent[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.coach-intro .starters { margin: 0; }
.composer { display: grid; gap: 6px; margin-top: 8px; }
.composer-row { display: flex; gap: 10px; align-items: flex-end; }
.composer-help { font-size: 14px; color: var(--ink-2); }
.thread:empty { display: none; }
.coach-more { display: grid; gap: 6px; margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; }
.coach-details summary { cursor: pointer; font-weight: 700; color: var(--blue-deep); min-height: 40px; display: flex; align-items: center; }
.coach-details p, .coach-details ul { color: var(--ink-2); font-size: 15px; margin: 4px 0 8px; }
.coach-details ul { padding-left: 20px; display: grid; gap: 4px; }
.coach-age { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 14px; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.coach-age legend { font-weight: 700; font-size: 14px; padding: 0 4px; }
.coach-age label { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; font-size: 15px; }
.coach-age-note { flex-basis: 100%; margin: 4px 0 0; font-size: 14px; color: var(--text); }
.coach-prefs { display: grid; gap: 10px; margin: 6px 0 8px; }
.coach-prefs fieldset { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 14px; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.coach-prefs legend { font-weight: 700; font-size: 14px; padding: 0 4px; }
.coach-prefs label { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; font-size: 15px; }
.prefs-status { font-size: 14px; color: var(--ink-2); }
.coach-prefs .link-btn { justify-self: start; }

.card-answer { display: grid; gap: 12px; }
.card-lead { font-size: 17px; }
.card-part { display: grid; gap: 6px; }
.card-part h3 { font: 800 15px/1.2 var(--text); color: var(--ink-2); text-transform: uppercase; letter-spacing: .05em; }
.card-part ul { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.card-words { background: #fff; border-radius: var(--r-md); padding: 12px 14px; border: 1px solid var(--line); }
.phrase-block { display: grid; gap: 4px; }
.phrase-block + .phrase-block { border-top: 1px solid var(--line); padding-top: 8px; }
.phrase-say { font: 800 19px/1.35 var(--round); color: var(--forest); }
.phrase-tools { display: flex; flex-wrap: wrap; gap: 0 16px; }
.phrase-panel { display: grid; gap: 8px; background: var(--paper); border-radius: var(--r-sm); padding: 12px; margin-top: 4px; }
.phrase-panel-label, .practice-who { font-weight: 800; font-size: 14px; }
.phrase-input { font: 16px/1.4 var(--text); padding: 10px 12px; border: 2px solid var(--line); border-radius: var(--r-sm); min-height: 44px; width: 100%; color: var(--ink); background: #fff; }
.phrase-input:focus { border-color: var(--blue); outline: none; }
.phrase-styles, .phrase-panel-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.phrase-note { font-size: 14px; color: var(--ink-2); }
.practice { display: grid; gap: 8px; }
.practice-label { font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: #7A5AF8; }
.practice-setup { color: var(--ink-2); }
.practice-they { font: 700 17px/1.4 var(--round); }
.practice-close { font-weight: 600; }
.card-question { background: var(--sun); border-radius: var(--r-sm); padding: 10px 14px; display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; justify-content: space-between; }
.card-links { display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: center; margin-top: 12px; }
.card-lesson { display: flex; flex-wrap: wrap; gap: 0 10px; align-items: baseline; }
.card-why { font-size: 14px; color: var(--ink-2); }
.msg-controls { display: flex; flex-wrap: wrap; gap: 0 18px; margin-top: 8px; }
.rate { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 10px; font-size: 13px; color: var(--ink-3); }
.rate-label { font-weight: 700; }
.rate-thanks { flex-basis: 100%; color: var(--ok); }
.rate-thanks:empty { display: none; }
.msg-failed { background: #FFF6E5; }

/* ---------- Terms of use and Privacy policy ---------- */
.page-hero-legal { background: var(--ink); }
.legal { display: grid; gap: 24px; padding-top: 32px; }
.legal-summary { background: var(--lime); color: var(--forest); border-radius: var(--r-lg); padding: 22px 26px; }
.legal-summary h2 { font-size: 22px; margin-bottom: 10px; }
.legal-summary ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.legal-summary a { color: var(--forest); }
.legal-body { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; max-width: 80ch; }
.legal-body h2 { font-size: 21px; margin: 26px 0 8px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p + p { margin-top: 10px; }
.legal-body p, .legal-body li { color: var(--ink-2); }
.legal-body strong { color: var(--ink); }
.legal-body ul { padding-left: 22px; display: grid; gap: 6px; margin: 10px 0; }
.admin-foot { margin: 24px 0 8px; font-size: 14px; }
@media (max-width: 760px) { .legal-body, .legal-summary { padding: 18px; } }
@media (max-width: 760px) {
  .composer-row { flex-direction: column; align-items: stretch; }
}

/* ---------- Resources page ---------- */
.resources-more { margin-top: 20px; }
.res-filters { display: grid; gap: 10px; margin-bottom: 8px; }
.res-search { display: grid; gap: 6px; max-width: 520px; }
.res-topics { flex-wrap: wrap; overflow-x: visible; margin: 4px 0 0; }
.res-count { font-size: 14px; font-weight: 700; color: var(--ink-3); }
.res-groups { display: grid; gap: 30px; margin-top: 12px; }
.res-group-title { font: 800 clamp(20px, 2.4vw, 24px)/1.25 var(--round); margin-bottom: 12px; }
.resource-for { font-size: 13px; color: var(--ink-3); }
.res-empty { display: grid; gap: 12px; justify-items: start; margin: 18px 0; font-size: 17px; }
@media (max-width: 640px) { .res-topics { flex-wrap: nowrap; overflow-x: auto; } }

/* ---------- Videos page ---------- */
.videos-cta { display: flex; justify-content: center; width: 100%; grid-column: 1 / -1; }
.vids { padding-top: 24px; }
.vids-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.vids-main { min-width: 0; display: grid; gap: 10px; }
.vids-frame { margin-top: 0; }
.vids-title { font: 800 clamp(22px, 2.6vw, 30px)/1.2 var(--round); margin-top: 6px; }
.vids-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--ink-3); font-size: 14px; }
.vids-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.vids-rate { display: inline-flex; border-radius: 999px; overflow: hidden; border: 2px solid var(--line); background: #fff; }
.vids-rate .vids-pill { border: 0; border-radius: 0; }
.vids-rate .vids-pill + .vids-pill { border-left: 2px solid var(--line); }
.vids-pill { font: 700 15px/1 var(--text); min-height: 44px; padding: 10px 16px; border-radius: 999px; border: 2px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.vids-pill:hover { border-color: var(--ink); }
.vids-pill[aria-pressed="true"], .vids-pill[aria-expanded="true"] { background: var(--ink); color: #fff; }
.vids-thanks { font-size: 14px; color: var(--ink-3); min-height: 1em; }
.vids-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; display: grid; gap: 10px; }
.vids-panel.video-options { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; }
.vids-panel.video-options[hidden], .vids-panel[hidden] { display: none; }
.vids-link-row { display: flex; gap: 8px; }
.vids-link-row input { flex: 1; min-width: 0; font: 15px/1.4 var(--text); padding: 10px 12px; border: 2px solid var(--line); border-radius: var(--r-sm); }
.vids-share-row { display: flex; flex-wrap: wrap; gap: 8px; }
.vids-desc { background: var(--sky); border-radius: var(--r-lg); padding: 14px 16px; display: grid; gap: 8px; color: var(--ink-2); }
.vids-phrase { color: var(--ink); }
.vids-queue h2 { font: 800 20px/1.2 var(--round); margin-bottom: 10px; }
.vids-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.vids-item { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 10px; text-decoration: none; color: var(--ink); border-radius: var(--r-md); padding: 4px; }
.vids-item:hover, .vids-item:focus-visible { background: #fff; }
.vids-thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--sky); }
.vids-thumb img, .vids-thumb svg { display: block; width: 100%; height: 100%; object-fit: cover; }
.vids-dur { position: absolute; right: 6px; bottom: 6px; font: 700 12px/1 var(--text); padding: 4px 6px; border-radius: 6px; background: rgba(20, 32, 74, .85); color: #fff; }
.vids-item-text { display: grid; gap: 4px; align-content: start; }
.vids-item-title { font-weight: 800; line-height: 1.25; }
.vids-item-meta { font-size: 13px; color: var(--ink-3); }
@media (max-width: 980px) {
  .vids-layout { grid-template-columns: 1fr; }
  .vids-item { grid-template-columns: 140px minmax(0, 1fr); }
}
.vids-filters { display: grid; gap: 10px; margin-bottom: 14px; }
.vids-filters input { font: 16px/1.4 var(--text); padding: 10px 14px; min-height: 44px; border: 2px solid var(--line); border-radius: 999px; background: #fff; }
.vids-filters input:focus { border-color: var(--blue); outline: none; }
.vids-topics { margin: 0; gap: 6px; }
.vids-topics .topic { font-size: 14px; padding: 8px 12px; min-height: 40px; }
.vids-count { font: 700 14px/1 var(--text); color: var(--ink-3); }
.vids-none { color: var(--ink-2); }
@media (max-width: 980px) { .vids-topics { flex-wrap: nowrap; overflow-x: auto; } }

/* ---------- Parents page: the standard page hero, then the lesson deck and the guide ---------- */
/* The hero text runs wider than on other pages, past half the screen on desktop. */
.page-hero-parents .page-hero-inner { max-width: min(100%, 1040px); }
.parent-lessons .lessons-sub { max-width: 70ch; }
.parent-sources-note { margin-top: 22px; max-width: 80ch; font-size: 14px; color: var(--ink-2); }
.guide-head { margin-bottom: 4px; }
.guide-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.guide-nav a { font-weight: 700; font-size: 14px; color: var(--forest); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; text-decoration: none; min-height: 40px; display: inline-flex; align-items: center; }
.guide-nav a:hover { border-color: var(--forest); }
.parent-resources { list-style: none; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.parent-resource { border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; display: grid; gap: 6px; }
.parent-resource a { color: var(--blue-deep); font-weight: 600; }
@media (max-width: 760px) {
  .parent-lessons { padding-top: 16px; }
}


/* UI/UX hardening: readable focus, touch targets, mobile-safe layouts and motion preferences. */
:where(button, [role="button"], input[type="submit"], input[type="button"], .nav a, .guide-nav a) { touch-action: manipulation; }
:where(button, [role="button"], input, select, textarea, a):focus-visible {
  outline: 3px solid var(--blue-deep);
  outline-offset: 3px;
}
:where(input, select, textarea) { max-width: 100%; }
:where(.card, .lesson-card, .parent-resource, .vids-item-text, .vids-main) { min-width: 0; overflow-wrap: anywhere; }
:where(.nav a, .guide-nav a) { min-height: 44px; display: inline-flex; align-items: center; }
@media (max-width: 760px) {
  :where(input, select, textarea) { font-size: 16px; }
  :where(.vids-link-row, .vids-share-row) { flex-wrap: wrap; }
  :where(.vids-link-row input) { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ==============================================================
   Graffiti editorial theme (The Becoming Project Developer Kit, 2026-10)
   Dark fixed header, Anton display type, gold calls to action, torn-paper
   section edges. Layered last so it restyles every page without changing
   their structure.
   ===================================================================== */
h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: .01em; line-height: 1.02; text-transform: uppercase; }
h3, h4 { font-family: var(--text); font-weight: 800; letter-spacing: 0; }
a { color: var(--blue-deep); }
:focus-visible { outline: 4px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
.kicker { font: 800 12px/1.3 var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.kicker-blue { color: var(--blue); }

/* Header */
.bar { background: var(--night); color: #fff; border-bottom: 0; box-shadow: 0 3px 16px rgba(0, 0, 0, .25); backdrop-filter: none; min-height: 68px; }
.brand { color: #fff; }
.brand-word { display: inline-block; font: 17px/.92 var(--marker); color: #fff; transform: rotate(-4deg); text-transform: uppercase; }
.brand-word > span, .brand-word strong, .brand-word em { display: block; font-weight: 400; }
.brand-word em { color: var(--gold); font-style: normal; }
.brand-word strong { font-size: 1.25em; }
.nav a { color: #fff; font: 800 12px/1 var(--text); letter-spacing: .06em; text-transform: uppercase; border-radius: 0; padding: 10px 12px; }
.nav a:hover { background: transparent; color: #fff; text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 3px; text-underline-offset: 8px; }
.nav a[aria-current="page"] { color: var(--gold); text-decoration-color: var(--gold); }
.help-btn { background: var(--gold); color: var(--ink); border: 0; border-radius: 0; font: 800 13px/1 var(--text); letter-spacing: .05em; text-transform: uppercase; clip-path: polygon(3% 0, 100% 6%, 96% 100%, 0 92%); padding: 12px 18px; }
.help-btn:hover { background: #FFE45C; }
.menu-btn { color: #fff; }
.menu { background: var(--night); }
.menu a { color: #fff; }

/* Buttons */
.btn { border-radius: 0; font: 800 14px/1 var(--text); letter-spacing: .05em; text-transform: uppercase; }
.btn-primary { background: var(--gold); color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.btn-primary:hover { background: #FFE45C; transform: translateY(-1px); }
.btn-ghost, .btn-quiet { background: #fff; border-color: var(--ink); color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #2B2B2B; }
.btn-big { font-size: 15px; }
.link-on-dark { color: var(--gold); }

/* Hero */
.hero { grid-template-columns: 1fr 1fr; gap: 0; padding: 0; align-items: stretch; min-height: 560px; background: var(--night); }
.hero-copy { padding: clamp(48px, 7vw, 104px) 28px clamp(48px, 6vw, 80px) max(20px, calc((100vw - var(--wrap)) / 2)); background: radial-gradient(circle at 12% 28%, rgba(33, 104, 242, .35), transparent 52%), var(--night); }
.hero h1 { font-size: clamp(58px, 8vw, 132px); line-height: .92; max-width: none; color: #fff; }
.hero h1 span { display: block; font-family: var(--marker); color: var(--gold); font-size: .78em; text-transform: none; line-height: 1.05; }
.lede { color: #E9E6DE; font-size: 18px; max-width: 46ch; }
.hero .btn-primary { background: var(--gold); color: var(--ink); box-shadow: 4px 4px 0 #000; }
.hero .btn-primary:hover { background: #FFE45C; }
.hero .btn-ghost { background: transparent; color: #fff; border-color: #fff; }
.hero :focus-visible { outline-color: var(--gold); }
.hero-art { position: relative; min-height: 420px; background:
    radial-gradient(60% 50% at 75% 30%, rgba(247, 215, 45, .28), transparent 70%),
    radial-gradient(50% 60% at 20% 80%, rgba(33, 104, 242, .45), transparent 70%),
    linear-gradient(130deg, #1E2B4A 0%, #3B3226 60%, #8C7350 100%); }
.hero-art::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, transparent 0 22px, rgba(255, 255, 255, .03) 22px 24px); }
.hero-sticker { position: absolute; right: 6%; bottom: 10%; background: var(--gold); color: var(--ink); font: 24px/1.15 var(--marker); padding: 18px 22px; transform: rotate(-8deg); box-shadow: 6px 6px 0 #000; }

/* Torn-paper section edges */
.paths, .adults, .support-band { position: relative; }
.paths::before, .adults::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 14px; background: var(--paper); clip-path: polygon(0 60%, 4% 20%, 9% 70%, 14% 30%, 20% 80%, 26% 25%, 31% 65%, 37% 15%, 43% 70%, 49% 35%, 55% 75%, 61% 20%, 67% 60%, 73% 30%, 79% 75%, 85% 25%, 91% 65%, 96% 30%, 100% 55%, 100% 100%, 0 100%); }

/* Find your path */
.paths { display: grid; grid-template-columns: minmax(220px, 30%) 1fr; gap: 4%; align-items: center; }
.paths .section-head { margin-bottom: 0; }
.path-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.path-card { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); min-width: 0; }
.path-card::before { content: ""; display: block; height: 220px; background: linear-gradient(150deg, #C5CEDA, #E7DCC0); filter: saturate(.9); }
.path-discover::before { background: linear-gradient(150deg, #FDF3BC, #D8C47A); }
.path-explore::before { background: linear-gradient(150deg, #C9D9FB, #6E93E0); }
.path-define::before { background: linear-gradient(150deg, #FBD3C8, #E58D78); }
.path-become::before { background: linear-gradient(150deg, #E6EDD3, #A9B87A); }
.path-age, .path-name { display: block; background: var(--gold); padding: 0 12px; transform: rotate(-2deg); position: relative; }
.path-age { margin-top: -26px; padding-top: 10px; font: 800 13px/1 var(--text); }
.path-name { padding-bottom: 10px; font: clamp(20px, 2.1vw, 30px)/1.15 var(--marker); white-space: nowrap; }
.path-explore .path-age, .path-explore .path-name { background: var(--blue); color: #fff; }
.path-define .path-age, .path-define .path-name { background: var(--coral); }
.path-become .path-age, .path-become .path-name { background: var(--sage); }
.path-text { font-size: 13px; padding: 12px 2px 0; color: var(--ink-2); }
.path-card:hover .path-name { text-decoration: underline; }
.path-soon { cursor: default; }
.path-soon::before { filter: grayscale(1) opacity(.55); }
.path-soon:hover .path-name { text-decoration: none; }

/* Practice zone */
.practice-zone { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; background: linear-gradient(115deg, var(--night) 55%, #1D3F8F 55.2%, #2168F2 70%, var(--night) 70.2%); color: #fff; padding: clamp(48px, 7vw, 96px) max(20px, calc((100vw - var(--wrap)) / 2)); }
.practice-zone h2 { font-size: clamp(40px, 5vw, 76px); color: #fff; }
.practice-copy p:not(.kicker) { color: #E9E6DE; max-width: 42ch; margin: 14px 0 24px; }
.practice-tags { justify-self: end; font: 26px/1.25 var(--marker); color: #fff; transform: rotate(-6deg); text-transform: uppercase; }

/* Section headings on paper */
.section-head h2 { font-size: clamp(34px, 4.4vw, 64px); font-weight: 400; color: var(--ink); }
.section-head p { color: var(--ink-2); }

/* For adults */
.adults { display: grid; grid-template-columns: 1fr 1fr; background: #F9F7F1; min-height: 440px; }
.adults-art { background: radial-gradient(50% 60% at 30% 40%, rgba(247, 215, 45, .3), transparent 70%), linear-gradient(120deg, #9EAC9B, #CBBD9C); min-height: 320px; }
.adults-copy { padding: clamp(48px, 7vw, 100px) max(20px, calc((100vw - var(--wrap)) / 2)) clamp(48px, 7vw, 100px) clamp(24px, 5vw, 80px); align-self: center; }
.adults-copy h2 { font-size: clamp(34px, 4.4vw, 64px); margin-bottom: 16px; }
.adults-copy p:not(.kicker) { color: var(--ink-2); max-width: 46ch; margin-bottom: 24px; }

/* Support band */
.support-band { background: #1D4CA9; color: #fff; padding: clamp(56px, 7vw, 88px) max(20px, calc((100vw - var(--wrap)) / 2)); }
.support-band h2 { font-size: clamp(34px, 4.4vw, 64px); color: #fff; margin-bottom: 14px; }
.support-band p { max-width: 70ch; color: #E9EEFB; }
.support-lines { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.support-lines a { display: grid; gap: 4px; padding: 16px; background: #fff; color: var(--ink); text-decoration: none; box-shadow: 5px 5px 0 var(--gold); min-height: 44px; }
.support-lines strong { font: 800 17px/1.2 var(--text); }
.support-lines span { font-size: 14px; color: var(--ink-2); }

/* Lessons, cards and panels: square, inked edges */
.card, .feedback, .step-result, .lines-card, .panel { border-radius: var(--r-md); }
.lines-card { background: var(--night); }
.chip, .topic { border-radius: 0; }

/* Subpage heroes */
.page-hero { background: var(--night); color: #fff; }
.page-hero h1 { color: #fff; font-size: clamp(42px, 6vw, 88px); }
.page-hero-kicker { color: var(--gold); font: 800 12px/1.3 var(--text); letter-spacing: .14em; text-transform: uppercase; }

/* Footer */
.foot { max-width: none; margin: 0; padding: 44px max(20px, calc((100vw - var(--wrap)) / 2)) 72px; background: var(--ink); color: #D9D5CC; border-top: 0; }
.foot a { color: var(--gold); }
.foot-brand strong { font: 22px/1 var(--display); text-transform: uppercase; color: #fff; letter-spacing: .03em; }

.help-report { margin: 14px 0; font-size: 14px; color: var(--ink-2); }

/* Mobile tab bar */
.tabbar a.is-on { color: var(--ink); background: var(--gold); }

/* Photography (owner-supplied illustrative images, public/images). Gradients stay as fallbacks. */
.hero { grid-template-columns: minmax(calc(max(20px, (100vw - var(--wrap)) / 2) + 400px), 1fr) minmax(0, 1.25fr) minmax(0, .62fr); }
.hero h1 { font-size: clamp(54px, 6.2vw, 88px); }
.hero-art { background: linear-gradient(90deg, rgba(16, 17, 20, .55), transparent 28%), url("/images/hero-group.webp") center / cover, linear-gradient(130deg, #1E2B4A 0%, #3B3226 60%, #8C7350 100%); }
.hero-art::before { content: none; }
.hero-side { display: grid; grid-template-rows: 1fr auto 1fr auto; background: var(--night); position: relative; }
.hero-side-photo { min-height: 150px; background-size: cover; background-position: center; }
.hero-side-basketball { background-image: url("/images/mentor-basketball.webp"); }
.hero-side-mentor { background-image: url("/images/mentor-big-brother.webp"); }
.hero-side-sticker { background: var(--gold); color: var(--ink); font: 20px/1.15 var(--marker); padding: 12px 16px; transform: rotate(-4deg); margin: -10px 10px; position: relative; text-transform: uppercase; }
.hero-side-list { color: #fff; font: 15px/1.3 var(--marker); padding: 14px 18px; text-transform: uppercase; }
.path-discover::before { background: url("/images/portrait-02.webp") center / cover, linear-gradient(150deg, #FDF3BC, #D8C47A); }
.path-explore::before { background: url("/images/portrait-07.webp") center / cover, linear-gradient(150deg, #C9D9FB, #6E93E0); }
.path-define::before { background: url("/images/portrait-13.webp") center / cover, linear-gradient(150deg, #FBD3C8, #E58D78); }
.path-become::before { background: url("/images/portrait-18.webp") center / cover, linear-gradient(150deg, #E6EDD3, #A9B87A); }
.practice-zone { background: linear-gradient(90deg, var(--night) 0%, var(--night) 42%, rgba(16, 17, 20, .55) 62%, rgba(16, 17, 20, .2) 100%), url("/images/practice-zone.webp") 70% center / cover, var(--night); }
.adults-art { background: url("/images/father-son-suburban.webp") 30% center / cover, linear-gradient(120deg, #9EAC9B, #CBBD9C); }
/* Photos of an adult with a young person are shown whole, never cropped, so both stay in frame. */
.adults-prints { background: radial-gradient(60% 70% at 30% 30%, rgba(247, 215, 45, .25), transparent 70%), var(--night); display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: clamp(24px, 4vw, 48px); }
.adults-prints img { display: block; width: 100%; height: auto; border: 3px solid #fff; box-shadow: 0 10px 24px rgba(0, 0, 0, .35); }
.adults-prints img:nth-child(1) { transform: rotate(-1.2deg); }
.adults-prints img:nth-child(2) { width: 78%; align-self: flex-end; transform: rotate(1.4deg); }
.adults-prints img:nth-child(3) { transform: rotate(-.6deg); }
.potential-band { display: grid; grid-template-columns: 1.1fr 1fr; background: var(--night); color: #fff; min-height: 340px; }
.potential-art { background: url("/images/real-stories.webp") center / cover, linear-gradient(130deg, #54627C, #B7A58A); filter: grayscale(.7) contrast(1.05); min-height: 260px; }
.potential-mosaic { background: #24262B; filter: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(110px, 1fr); gap: 4px; }
.potential-mosaic img { width: 100%; height: 100%; object-fit: cover; display: block; min-width: 0; }
.potential-mosaic img.wide { grid-column: span 2; }
/* Secondary page headers: a photo on the right that fades into the dark header behind the text. */
.page-hero-coach, .page-hero-plan, .page-hero-resources { position: relative; overflow: hidden; background: var(--night); }
.page-hero-coach::after, .page-hero-plan::after, .page-hero-resources::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: min(52%, 760px); background-size: cover; background-position: center 30%; -webkit-mask-image: linear-gradient(90deg, transparent, #000 45%); mask-image: linear-gradient(90deg, transparent, #000 45%); opacity: .85; pointer-events: none; }
.page-hero-coach::after { background-image: url("/images/stage-discover.webp"); }
.page-hero-plan::after { background-image: url("/images/stage-define.webp"); }
.page-hero-resources::after { background-image: url("/images/real-stories.webp"); width: min(60%, 900px); }
.page-hero-coach > *, .page-hero-plan > *, .page-hero-resources > * { position: relative; z-index: 1; }
.page-hero-parents { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 32px; align-items: center; }
.page-hero-photos { display: grid; gap: 10px; }
/* Shown whole, never cropped, so both the adult and the teen stay in frame. */
.page-hero-photos img { width: 100%; height: auto; display: block; border: 3px solid #fff; }
.page-hero-photos img + img { transform: rotate(1.5deg); margin-left: 18px; width: calc(100% - 18px); }
.page-hero-photos img:first-child { transform: rotate(-1.5deg); }
.potential-copy { padding: clamp(40px, 6vw, 80px) max(20px, calc((100vw - var(--wrap)) / 2)) clamp(40px, 6vw, 80px) clamp(24px, 5vw, 72px); align-self: center; }
.potential-copy h2 { color: #fff; font-size: clamp(34px, 4.4vw, 60px); margin-bottom: 14px; }
.potential-copy p:not(.kicker) { color: #E9E6DE; max-width: 44ch; margin-bottom: 22px; }
.btn-ghost-light { background: transparent; color: #fff; border-color: #fff; }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .1); }

@media (max-width: 1200px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
  .hero-side { display: none; }
}
@media (max-width: 900px) {
  .page-hero-parents { grid-template-columns: 1fr; }
  .page-hero-photos { grid-template-columns: 1fr 1fr; max-width: 560px; }
  .page-hero-photos img + img { margin-left: 0; width: 100%; }
}
@media (max-width: 1050px) {
  .paths { display: block; }
  .paths .section-head { margin-bottom: 28px; }
}
@media (max-width: 760px) {
  .bar { min-height: 60px; }
  .potential-band { grid-template-columns: 1fr; }
  .practice-zone { background: linear-gradient(rgba(16, 17, 20, .82), rgba(16, 17, 20, .82)), url("/images/practice-zone.webp") 70% center / cover, var(--night); }
  .hero, .adults, .practice-zone { grid-template-columns: 1fr; }
  .hero-copy { padding: 44px 20px 32px; }
  .hero h1 { font-size: 60px; }
  .hero-art { min-height: 220px; background: url("/images/group-friends.webp") center / cover, linear-gradient(130deg, #1E2B4A 0%, #3B3226 60%, #8C7350 100%); }
  .potential-mosaic { grid-auto-rows: 84px; }
  .page-hero-coach::after, .page-hero-plan::after, .page-hero-resources::after { width: 100%; opacity: .22; -webkit-mask-image: none; mask-image: none; }
  .hero-sticker { font-size: 18px; padding: 12px 16px; }
  .path-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .path-card::before { height: 150px; }
  .path-name { font-size: 22px; }
  .practice-zone { background: var(--night); }
  .practice-tags { justify-self: start; font-size: 20px; margin-top: 24px; }
  .adults-art { min-height: 200px; }
  .adults-prints { min-height: 0; padding: 24px 20px; }
  .adults-copy { padding: 40px 20px; }
  .support-lines { grid-template-columns: 1fr; }
  .help-btn { clip-path: none; }
  /* Icon-only on phones: the theme's wide padding left the icon no room, so it shrank out of sight. */
  .bar .help-btn { width: 48px; height: 44px; padding: 0; justify-content: center; }
  .bar .help-btn svg { width: 24px; height: 24px; flex: none; }
  .menu-btn { background: transparent; border: 2px solid rgba(255, 255, 255, .7); color: #fff; border-radius: 0; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { flex: none; width: 100%; }
}
@media (max-width: 420px) {
  .hero > * { min-width: 0; }
  .hero h1 { font-size: 48px; }
  .practice-zone h2, .section-head h2, .adults-copy h2, .support-band h2 { font-size: 34px; overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) { .btn-primary:hover { transform: none; } }

/* Home: lessons and videos banner (the lessons themselves are on /lessons/) */
.watch-banner { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; background: var(--night); color: #fff; padding: clamp(40px, 6vw, 88px) max(20px, calc((100vw - var(--wrap)) / 2)); }
.watch-player { min-width: 0; }
.watch-player .video-frame { margin-top: 0; box-shadow: 0 16px 40px rgba(0, 0, 0, .45); border: 3px solid #fff; }
.watch-player .video-controls { color: #E9E6DE; }
.watch-copy h2 { font-size: clamp(36px, 4.6vw, 68px); color: #fff; }
.watch-copy p:not(.kicker) { color: #E9E6DE; max-width: 44ch; margin: 14px 0 0; }
.watch-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px !important; }
@media (max-width: 860px) { .watch-banner { grid-template-columns: 1fr; } }

/* Questions and answers: the FAQ page, lesson pages and the Lessons page */
.faq { max-width: var(--wrap); }
.faq h2 { font-size: clamp(30px, 3.6vw, 48px); font-weight: 400; color: var(--ink); }
.faq h3 { font-size: 20px; margin: 22px 0 6px; }
.faq-intro { color: var(--ink-2); max-width: 60ch; }
.faq-list { display: grid; gap: 10px; margin-top: 14px; }
.faq-item { background: var(--card); border: 2px solid var(--line); border-radius: var(--r-md); padding: 14px 18px; }
.faq-item summary { font-weight: 700; cursor: pointer; }
.faq-item p { margin: 10px 0 0; color: var(--ink-2); max-width: 70ch; }
.faq-topic > summary { font: 400 24px/1.2 var(--display, inherit); cursor: pointer; padding: 8px 0; }
.faq-sources { font-size: 14px; color: var(--ink-3); }
.faq-page h1 { font-size: clamp(36px, 5vw, 60px); font-weight: 400; }
.faq-search { display: grid; gap: 6px; max-width: 520px; margin-top: 8px; }
.faq-search label { font-weight: 700; }
.faq-search input { font: inherit; padding: 12px 14px; min-height: 48px; border: 2px solid var(--line); border-radius: var(--r-md); background: #fff; }
.faq-count { font-size: 14px; color: var(--ink-3); margin: 0; min-height: 1.2em; }
.faq-pills { flex-wrap: wrap; overflow: visible; }
.faq-group { margin-top: 30px; }
.faq-group h2 { font-size: clamp(24px, 3vw, 34px); }
.faq-none { color: var(--ink-2); font-weight: 700; }
.faq-more { margin-top: 26px; color: var(--ink-2); }
.faq-item p.faq-sources { font-size: 14px; color: var(--ink-3); }
.faq-sources a { color: inherit; }

/* Each lesson's own page */
.lesson-page { max-width: 820px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 14px; padding: 0; font-size: 14px; }
.crumbs li + li::before { content: "\203A"; margin-right: 6px; color: var(--ink-3); }
.crumbs a { color: var(--ink-2); }
.lesson-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.lesson-page h1 { font-size: clamp(32px, 4.6vw, 54px); font-weight: 400; line-height: 1.1; }
.lesson-lead { font-size: 19px; color: var(--ink-2); max-width: 60ch; margin-top: 12px; }
.lesson-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 6px; }
.lesson-block { margin-top: 34px; }
.lesson-block h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; margin-bottom: 10px; }
.lesson-block p, .lesson-block li { max-width: 68ch; color: var(--ink-2); }
.lesson-scenario { font-weight: 700; color: var(--ink) !important; }
.lesson-dialogue, .lesson-choices, .lesson-sources, .lesson-related { padding-left: 20px; }
.lesson-choices li { margin: 6px 0; }
.lesson-answer { background: var(--card); border: 2px solid var(--line); border-radius: var(--r-md); padding: 16px 20px; }
.lesson-answer > summary { font-weight: 800; cursor: pointer; font-size: 18px; }
.lesson-answer > div { margin-top: 14px; }
.lesson-answer h3 { font-size: 18px; margin: 18px 0 4px; }
.lesson-phrase { font-size: 20px; font-weight: 700; color: var(--ink) !important; }
.watch-options { margin-top: 10px; color: #E9E6DE; font-size: 15px; }
.watch-options summary { cursor: pointer; font-weight: 700; }
.watch-options[open] { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.watch-options[open] summary { flex-basis: 100%; }
.watch-options select { min-height: 36px; }
.watch-options .panel-note { flex-basis: 100%; margin: 0; color: #C9C5BC; }
