/* Framework Education — frameworked.tech
   - Two looks: light (paper) and dark (the first site's purple). Colours are the
     variables below; html[data-theme="dark"] swaps them. The product panels are the
     app as it looks in use, so they stay light in both.
   - One 12-column grid that uses nearly the full window. Each section puts its claim
     on the left and its element on the right.
   - Sizes follow the window: the type scale is in rem, the root size grows with the
     screen, and js/site.js scales each element to the largest size that fits.
   - The globe (js/globe.js) is fixed behind the page, so sections have no background.
   - "motion" on <html> switches animation on. Without it nothing is pinned and
     nothing moves; every section shows its finished state. */

@font-face { font-family: "Fraunces"; src: url("../assets/fonts/fraunces-latin-opsz-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../assets/fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --page: #f6f4ef; --surface: #ffffff; --hairline: #ddd8cc; --control: #8b877d;
  --text: #1c1830; --muted: #5d5873; --brand: #5a3e9e; --on-brand: #ffffff; --gold: #8a5a00;
  --shadow: 0 30px 70px rgba(40, 30, 80, .18), 0 2px 8px rgba(40, 30, 80, .08);

  /* Product layer: the app's own colours, the same in both themes */
  --p-paper: #f6f4ef; --p-card: #ffffff; --p-ink: #1c1830; --p-muted: #5d5873; --p-line: #e3dfd6; --p-line-strong: #8b877d;
  --p-accent: #5a3e9e; --p-accent-soft: #eee9f8; --p-info: #1f4e9e; --p-info-soft: #e6eefb;
  --p-warn: #8a4b00; --p-warn-soft: #fbf1df; --p-ok: #1b6b3a; --p-ok-soft: #e8f3ec; --p-rail: #1d1433;

  --t-meta: 0.875rem; --t-body: 1rem; --t-lead: 1.25rem;
  --t-h2: clamp(1.9rem, 3.1vw, 3.3rem); --t-h1: clamp(2.6rem, 7.4vw, 8rem);
  --gutter: clamp(16px, 2.6vw, 48px); --radius: 16px;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
html[data-theme="dark"] {
  --page: #120b24; --surface: #1b1233; --hairline: #33285a; --control: #7a6aa8;
  --text: #f4f0fc; --muted: #b9b0d4; --brand: #f4f0fc; --on-brand: #120b24; --gold: #d9b35a;
  --shadow: 0 30px 70px rgba(0, 0, 0, .5), 0 2px 8px rgba(0, 0, 0, .3);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--page); scroll-padding-top: 80px; font-size: clamp(15px, 11.5px + 0.34vw, 20px); }
body { margin: 0; background: var(--page); color: var(--text); font: 400 var(--t-body)/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, p, ol, ul, fieldset, legend { margin: 0; padding: 0; }
ol, ul { list-style: none; }
fieldset { border: 0; min-width: 0; }
i, em, u { font-style: normal; text-decoration: none; }
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }
button, input { font: inherit; color: inherit; }
svg { display: block; }
table { border-collapse: collapse; width: 100%; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
html:not(.motion) *, html:not(.motion) *::before, html:not(.motion) *::after { transition: none !important; animation: none !important; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--gutter); top: -60px; z-index: 60; background: var(--text); color: var(--page); padding: 8px 12px; border-radius: 8px; }
.skip:focus { top: 8px; }

#globe { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 1s ease; }
#globe.ready { opacity: 1; }
main, .foot { position: relative; z-index: 1; }

.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); width: min(1680px, 100% - 2 * var(--gutter)); margin-inline: auto; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: var(--t-h1); line-height: 1; letter-spacing: -0.03em; }
h2 { font-size: var(--t-h2); line-height: 1.08; }
h3 { font-size: var(--t-lead); line-height: 1.25; letter-spacing: -0.01em; }
.lead { font-size: clamp(1.1rem, 1.45vw, 1.45rem); line-height: 1.5; color: var(--muted); }
.meta { font-size: var(--t-meta); line-height: 1.5; color: var(--muted); }

/* ── Header ──────────────────────────────────────── */
.bar { position: sticky; top: 0; z-index: 50; background: var(--page); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.bar.scrolled { border-bottom-color: var(--hairline); box-shadow: 0 10px 30px rgba(20, 12, 50, .07); }
.bar .grid { display: flex; align-items: center; gap: clamp(16px, 2vw, 36px); height: 68px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; white-space: nowrap; }
.wordmark svg { width: 22px; height: 22px; }
.wordmark span { font: 800 1.0625rem/1 var(--sans); letter-spacing: 0.02em; text-transform: uppercase; }
.wordmark { --logo-accent: #6f50c8; }
html[data-theme="dark"] .wordmark { --logo-accent: #a48cf2; }
.wordmark i { color: var(--logo-accent); }
.bar nav { display: flex; gap: clamp(14px, 2vw, 34px); margin-inline: auto; }
.bar nav a { position: relative; padding: 24px 0; font-size: 0.9375rem; font-weight: 500; color: var(--muted); text-decoration: none; white-space: nowrap; transition: color .15s; }
.bar nav a:hover, .bar nav a.here { color: var(--text); }
.bar nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 14px; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.bar nav a.here::after { transform: none; }
.tools, .foot-tools { display: flex; align-items: center; gap: 14px; }
.switch-box { display: inline-flex; align-items: center; gap: 8px; font-size: var(--t-meta); font-weight: 500; color: var(--muted); cursor: pointer; white-space: nowrap; }
.switch-box input { appearance: none; -webkit-appearance: none; position: relative; width: 36px; height: 20px; margin: 0; border-radius: 99px; background: var(--control); cursor: pointer; transition: background-color .2s; }
.switch-box input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); }
.switch-box input:checked { background: var(--p-accent); }
html[data-theme="dark"] .switch-box input:checked { background: #8f7ae6; }
.switch-box input:checked::after { transform: translateX(16px); }
.icon { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; background: none; border: 1px solid var(--hairline); border-radius: 10px; color: var(--text); cursor: pointer; }
.icon:hover { border-color: var(--control); }
.icon svg { width: 18px; height: 18px; }
.contact { font-size: 0.9375rem; font-weight: 600; color: var(--text); text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 6px; white-space: nowrap; }
@media (max-width: 1080px) { .bar nav { display: none; } .tools { margin-left: auto; } }
@media (max-width: 560px) { .bar .switch-box { display: none; } }

/* ── Buttons and links ───────────────────────────── */
.btn { display: inline-flex; align-items: center; height: 3rem; padding: 0 1.5rem; border-radius: 12px; background: var(--brand); color: var(--on-brand); font: 600 1rem/1 var(--sans); text-decoration: none; white-space: nowrap; }
.btn:hover { filter: brightness(1.12); }
.link { font-weight: 600; text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 28px; margin-top: clamp(20px, 3.2vh, 36px); }

/* ── Hero ────────────────────────────────────────── */
.hero { min-height: 100vh; min-height: 100svh; padding-top: clamp(32px, 6vh, 80px); text-align: center; }
.hero-text { grid-column: 1 / -1; }
.hero h1 { max-width: 11em; margin-inline: auto; }
.hero .lead { max-width: 44em; margin: clamp(18px, 3vh, 34px) auto 0; }

/* ── Numbers ─────────────────────────────────────── */
.numbers { position: relative; z-index: 1; border-block: 1px solid var(--hairline); padding-block: clamp(28px, 4vh, 48px); background: var(--page); }
.numbers p { grid-column: span 3; display: grid; gap: 6px; align-content: start; justify-items: center; text-align: center; }
.numbers b { font: 400 var(--t-h1)/1 var(--serif); letter-spacing: -0.03em; font-variant-numeric: tabular-nums lining-nums; }
.numbers span { font-size: var(--t-meta); line-height: 1.45; color: var(--muted); max-width: 17em; }

/* ── Sections: the claim on the left, the element on the right ─────────────── */
.section { padding-block: clamp(56px, 9vh, 120px); }
.section + .section { border-top: 1px solid var(--hairline); }
.claim { grid-column: 1 / span 4; align-self: center; }
.evidence { grid-column: 5 / span 8; align-self: center; display: grid; justify-items: center; min-width: 0; }
.claim p { color: var(--muted); }
.claim h2 + p { margin-top: clamp(14px, 2vh, 24px); font-size: var(--t-lead); line-height: 1.5; }
.claim p + p { margin-top: 12px; }
.step + .step { margin-top: 36px; }

/* The element is drawn at a fixed width and scaled to fit (--w and --fit come from js/site.js). */
.sticky { width: calc(var(--w, 760) * 1px); zoom: var(--fit, 1); }
.product, .voice, .oldform { box-shadow: var(--shadow); }

/* A story is pinned to the window while you scroll through it. */
html:not(.js) [data-until] { display: none; }
.appear { transition: opacity .4s ease var(--t, 0s), transform .5s var(--ease) var(--t, 0s); }
.appear.off { opacity: 0; transform: translateY(12px); pointer-events: none; transition-delay: 0s; }
@media (min-width: 901px) {
  .motion .story { padding-block: 0; height: calc(var(--len) * 1vh); }
  .motion .story > .grid { position: sticky; top: 0; height: 100vh; padding-top: 68px; }
  .motion .story .claim { display: grid; }
  .motion .story .step { grid-area: 1 / 1; margin: 0; opacity: 0; transform: translateY(18px); transition: opacity .35s ease, transform .5s var(--ease); pointer-events: none; }
  .motion .story .step.on { opacity: 1; transform: none; pointer-events: auto; transition-delay: .12s; }
}

/* Things animate in as they arrive. */
.motion .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .7s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.motion .reveal.in { opacity: 1; transform: none; }

/* In the sections that do not pin, the parts of an element arrive one after another. */
.motion .reveal:not(.in) :is(#tutor .p-notice, #tutor .p-question, #tutor .p-tutor, .trio .b-card),
.motion .rules.reveal:not(.in) > li, .motion .faq.reveal:not(.in) details, .motion .standards.reveal:not(.in) li { opacity: 0; transform: translateY(18px); }
.motion .compare.reveal:not(.in) tbody tr { opacity: 0; }
.motion .reveal :is(#tutor .p-notice, #tutor .p-question, #tutor .p-tutor, .trio .b-card),
.motion .rules.reveal > li, .motion .faq.reveal details, .motion .standards.reveal li, .motion .compare.reveal tbody tr { transition: opacity .5s ease, transform .6s var(--ease); transition-delay: calc(.15s + var(--n, 0) * 110ms); }

/* Example buttons beside a demo */
.asks { display: grid; justify-items: start; margin-top: clamp(18px, 2.6vh, 28px); }
.asks button { padding: 9px 0 9px 16px; background: none; border: 0; border-left: 2px solid var(--hairline); font: 500 1rem/1.35 var(--sans); color: var(--muted); text-align: left; cursor: pointer; transition: color .15s, border-color .15s; }
.asks button:hover { color: var(--text); }
.asks button[aria-pressed="true"] { color: var(--text); border-left-color: var(--gold); }
.claim .meta { margin-top: 16px; }

/* ── Product panels ──────────────────────────────── */
.product { background: var(--p-paper); color: var(--p-ink); border: 1px solid #cfc9bb; border-radius: 14px; overflow: hidden; font-size: 14px; line-height: 1.45; }
.product :focus-visible { outline-color: var(--p-accent); }
.product small { display: block; font-size: 12.5px; font-weight: 500; color: var(--p-muted); }
.product h3 { font-family: var(--sans); }
.p-bar { display: flex; justify-content: space-between; gap: 12px; padding: 11px 16px; background: var(--p-card); border-bottom: 1px solid var(--p-line); color: var(--p-muted); white-space: nowrap; }
.p-bar span:first-child { color: var(--p-ink); font-weight: 600; }
.rows li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--p-line); font-weight: 500; }
.rows li:first-child { border-top: 0; }
.rows span { margin-right: auto; }
.rows em { font-size: 11.5px; color: var(--p-muted); background: var(--p-paper); border: 1px solid var(--p-line); padding: 2px 7px; border-radius: 6px; white-space: nowrap; }
.rows em.warn { color: var(--p-warn); background: var(--p-warn-soft); border-color: transparent; font-weight: 600; }
.rows em.ok { color: var(--p-ok); background: var(--p-ok-soft); border-color: transparent; font-weight: 600; }
.rows b { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.card { background: var(--p-card); border: 1px solid var(--p-line); border-radius: 10px; padding: 10px 12px; }

/* 1. Five apps, then one */
.stage { position: relative; height: 520px; }
.win { position: absolute; left: 50%; top: 50%; width: 290px; height: 200px; margin: -100px 0 0 -145px; overflow: hidden; border-radius: 10px; background: #fff; color: #2b2540; box-shadow: 0 22px 50px rgba(30, 20, 70, .28); transform: translate(var(--x), var(--y)) rotate(var(--r)); transition: transform .7s var(--ease), opacity .5s ease; }
.win b { display: block; padding: 9px 12px; background: #e9e6ee; font: 600 12.5px/1.2 var(--sans); }
.win u { display: block; height: 8px; margin: 14px 14px 0; border-radius: 3px; background: #e6e3ec; }
.win u:nth-of-type(2) { width: 55%; } .win u:nth-of-type(3) { width: 72%; } .win u:nth-of-type(4) { width: 38%; height: 26px; background: #d5d1df; }
.win.off { opacity: 0; transform: translate(0, 0) rotate(0deg) scale(.45); }
.motion .reveal:not(.in) .win { opacity: 0; transform: translate(var(--x), calc(var(--y) + 240px)) rotate(calc(var(--r) * 2.4)); }
.motion .reveal .win { transition-delay: calc(var(--i) * 90ms); }
.motion .reveal .win.off { transition-delay: 0s; }
.lock { position: absolute; inset: 34px 0 0; display: grid; place-content: center; justify-items: center; gap: 10px; background: rgba(250, 249, 252, .96); font: 600 13.5px/1.2 var(--sans); }
.lock i { padding: 8px 14px; border-radius: 6px; background: #6b6880; color: #fff; font-size: 12px; }
.app { position: absolute; inset: 0; display: grid; grid-template-columns: 46px 138px minmax(0, 1fr); font-size: 11.5px; }
.app.appear.off { transform: scale(.88); }
.app small { font-size: 10.5px; }
.app-rail { background: var(--p-rail); display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 12px 0; color: #fff; }
.app-rail svg { width: 22px; height: 22px; margin-bottom: 8px; }
.app-rail i { width: 24px; height: 24px; border-radius: 7px; background: rgba(255, 255, 255, .13); }
.app-rail i.on { background: #8266d4; }
.app-nav { background: var(--p-card); border-right: 1px solid var(--p-line); padding: 14px 8px; display: flex; flex-direction: column; gap: 1px; }
.app-nav strong { padding: 0 8px; font-size: 13px; font-weight: 600; }
.app-nav small { padding: 2px 8px 8px; }
.app-nav small:not(:first-of-type) { padding-top: 12px; }
.app-nav span { padding: 6px 8px; border-radius: 7px; color: var(--p-muted); font-weight: 500; }
.app-nav span.on { background: var(--p-accent-soft); color: var(--p-accent); font-weight: 600; }
.app-main { padding: 12px 14px; display: grid; gap: 9px; align-content: start; min-width: 0; }
.app-top { display: flex; justify-content: space-between; color: var(--p-muted); }
.app-top b { color: var(--p-ink); font-weight: 600; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.tiles p { background: var(--p-card); border: 1px solid var(--p-line); border-radius: 10px; padding: 8px 10px; }
.tiles b { display: block; margin-top: 2px; font-size: 19px; font-weight: 650; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.app-two { display: grid; grid-template-columns: 1.15fr 1fr; gap: 8px; }
.app-two svg { width: 100%; height: 96px; margin-top: 6px; }
.chart .grid-lines path { fill: none; stroke: var(--p-line); stroke-width: 1; }
.chart .axis text { font: 500 9px var(--sans); fill: var(--p-muted); }
.chart .area { fill: rgba(130, 102, 212, .14); }
.chart .target { fill: none; stroke: #c9a24b; stroke-width: 1.2; stroke-dasharray: 4 4; }
.chart .line { fill: none; stroke: var(--p-accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.chart .dots circle { fill: #fff; stroke: var(--p-accent); stroke-width: 2; }
.app .rows li { padding: 5px 0; }
.app .rows em { font-size: 10px; padding: 1px 6px; }

/* 2. The report */
.report-body { position: relative; display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 12px; padding: 16px; }
.r-score, .r-block { position: relative; background: var(--p-card); border: 1px solid var(--p-line); border-radius: 12px; padding: 14px 16px; }
.r-score b { display: block; margin: 4px 0 10px; font: 400 64px/.95 var(--serif); letter-spacing: -0.04em; color: var(--p-accent); }
.r-score p { display: flex; justify-content: space-between; padding: 7px 0; border-top: 1px solid var(--p-line); font-weight: 600; }
.r-score p span { font-weight: 500; color: var(--p-muted); }
.r-score .sub { margin-top: 12px; }
.hist { display: flex; align-items: flex-end; gap: 4px; height: 56px; margin-top: 8px; }
.hist i { flex: 1; height: calc(var(--h) * 1%); border-radius: 2px 2px 0 0; background: #b9a8ec; }
.hist i:nth-child(6) { background: var(--p-accent); }
.hist-axis { display: flex; justify-content: space-between; margin-top: 3px; font-size: 10.5px; color: var(--p-muted); }
.r-block small { margin-bottom: 10px; }
.r-block small em { float: right; font-size: 11px; }
.r-block p { display: grid; grid-template-columns: 124px minmax(0, 1fr) 42px 30px; align-items: center; gap: 10px; padding: 6px 0; }
.r-block p i::before { content: ""; position: absolute; z-index: 1; top: -3px; bottom: -3px; left: calc(var(--was) * 1%); width: 2px; background: var(--p-ink); opacity: .5; }
.r-block p u { font-size: 12px; font-weight: 600; text-align: right; color: var(--p-muted); }
.r-block p u.up { color: var(--p-ok); } .r-block p u.down { color: var(--p-warn); }
.r-block p i { position: relative; height: 9px; border-radius: 3px; background: var(--p-accent-soft); }
.r-block p i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: calc(var(--v) * 1%); border-radius: 3px; background: #8266d4; transform-origin: left; transition: transform .8s var(--ease) .2s; }
.r-block p b { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.r-block .weak { font-weight: 600; } .r-block .weak i::after { background: var(--p-warn); } .r-block .weak b { color: var(--p-warn); }
.r-block.missed p { grid-template-columns: auto minmax(0, 1fr) auto; gap: 5px 8px; padding: 8px 0; border-top: 1px solid var(--p-line); }
.r-block.missed p b { grid-area: 1 / 1; } .r-block.missed p span { grid-area: 1 / 3; } .r-block.missed p em { grid-area: 2 / 1; } .r-block.missed p i { grid-area: 2 / 2 / auto / 4; }
.r-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--p-line); }
.r-foot div { display: grid; gap: 2px; } .r-foot span { font-size: 11.5px; color: var(--p-muted); } .r-foot b { font-weight: 600; } .r-foot .warn b { color: var(--p-warn); }
.r-block.missed p b { text-align: left; }
.r-block.missed p em { padding: 1px 6px; border-radius: 6px; border: 1px solid var(--p-line); background: var(--p-paper); font-size: 11px; color: var(--p-muted); white-space: nowrap; }
.r-block.missed p i { height: 6px; } .r-block.missed p i::after { background: #c9a24b; } .r-block.missed p i::before { content: none; }
.r-block.missed p span { color: var(--p-muted); white-space: nowrap; }
.r-block.behind p { display: flex; justify-content: space-between; padding: 6px 0; border-top: 1px solid var(--p-line); }
.r-block.behind svg { width: 100%; height: 124px; margin-bottom: 4px; }
.r-block.behind path.a { fill: none; stroke: var(--p-accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 1.2s ease .2s; }
.r-block.behind path.avg { fill: none; stroke: var(--p-line-strong); stroke-width: 1.5; stroke-dasharray: .018 .018; }
.r-block.behind .dots circle { fill: var(--p-warn); stroke: #fff; stroke-width: 1.5; }
.r-block.behind b { color: var(--p-warn); }
/* Before its step, a block is an empty outline: what a typical report leaves out. */
.r-block { transition: background-color .4s ease, border-color .4s ease; }
.r-block > * { transition: opacity .4s ease .1s; }
.r-block.off { background: transparent; border-style: dashed; border-color: var(--p-line-strong); }
.r-block.off > * { opacity: 0; transition-delay: 0s; }
.r-block.off::after { content: "Not in a typical report"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 12.5px; color: var(--p-muted); }
.r-block.off p i::after { transform: scaleX(0); transition-delay: 0s; }
.r-block.behind.off path.a { stroke-dashoffset: 1; transition-delay: 0s; }
.r-help { position: absolute; right: 28px; bottom: 28px; width: 360px; background: var(--p-card); border: 1.5px solid var(--p-accent); border-radius: 12px; padding: 14px 16px; box-shadow: 0 18px 44px rgba(40, 30, 80, .28); display: grid; gap: 8px; }
.r-help .say { max-width: 88%; padding: 8px 11px; border-radius: 10px; border: 1px solid var(--p-line); background: var(--p-paper); }
.r-help .say.you { justify-self: end; background: var(--p-accent); border-color: var(--p-accent); color: #fff; }
.r-help .act span { display: inline-block; padding: 7px 14px; border-radius: 8px; border: 1px solid var(--p-accent); color: var(--p-accent); font-weight: 600; }

/* 3. The Scoring Window */
.window-body { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 12px; padding: 16px; }
.sw-row { grid-column: 1; display: grid; grid-template-columns: 44px auto minmax(0, 1fr); align-items: center; gap: 14px; padding: 18px; background: var(--p-card); border: 1px solid var(--p-line); border-radius: 12px; transition: opacity .3s; }
.sw-row p { display: flex; gap: 9px; }
.sw-row i { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; font: 700 16px/1 var(--sans); transition: background-color .2s, border-color .2s, transform .3s var(--ease); transition-delay: calc(var(--n, 0) * 110ms); }
.sw-row i.y { background: #8266d4; color: #fff; } .sw-row i.y::after { content: "✓"; }
.sw-row i.n { border: 2px dashed var(--p-warn); color: var(--p-warn); } .sw-row i.n::after { content: "✕"; }
.sw-row b { justify-self: end; font-weight: 600; transition: opacity .3s ease .6s; }
.sw-row.off { opacity: .55; }
.sw-row.off i { background: none; border: 2px solid var(--p-line); transform: scale(.82); transition-delay: 0s; } .sw-row.off i::after { content: none; }
.sw-row.off b { opacity: 0; transition-delay: 0s; }
.sw-meter { grid-column: 2; grid-row: 1 / span 3; position: relative; display: grid; grid-template-rows: repeat(3, 1fr); gap: 12px; }
.sw-meter span { display: grid; place-items: center; border-radius: 12px; border: 1px dashed var(--p-line-strong); font-weight: 600; color: var(--p-muted); }
.sw-meter i { position: absolute; inset: 0 0 auto; height: calc((100% - 24px) / 3); border-radius: 12px; border: 2.5px solid #c9a24b; background: rgba(201, 162, 75, .12); transform: translateY(calc(100% + 12px)); transition: transform .7s var(--ease) .5s; }
.story[data-state="0"] .sw-meter i { transform: none; }
.sw-done { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 14px 18px; background: #c9a24b; color: #1d1433; border-radius: 12px; }
.sw-done b { font: 500 19px/1.2 var(--serif); }

/* 4. The two forms, side by side */
.forms { display: grid; grid-template-columns: 0.94fr 1fr; gap: 26px; align-items: start; }
.cap { margin-bottom: 12px; font: 500 14px/1 var(--sans); color: var(--muted); }
.cap b { margin-right: 8px; font-weight: 700; color: var(--text); }
.cap b.us { color: var(--gold); }
.oldform { background: #dfe8f2; border: 1px solid #6f8fb3; font: 11px/1.2 Arial, Helvetica, sans-serif; color: #1b2b44; padding-bottom: 8px; }
.of-title { background: linear-gradient(#3f74b6, #1f4f8f); color: #fff; font-weight: 700; font-size: 12px; padding: 7px 9px; }
.of-tools { background: #c9d8ea; border-bottom: 1px solid #7f9db9; padding: 4px 6px; display: flex; flex-wrap: wrap; gap: 3px; }
.of-tools b { font-weight: 400; padding: 3px 8px; border: 1px solid #7f9db9; background: linear-gradient(#fff, #dbe5f1); }
.of-tabs { display: flex; flex-wrap: wrap; gap: 2px; padding: 7px 8px 0; border-bottom: 1px solid #7f9db9; }
.of-tabs b { font-weight: 400; padding: 4px 9px; border: 1px solid #7f9db9; border-bottom: 0; background: #c9d8ea; }
.of-tabs b.on { background: #fff; font-weight: 700; margin-bottom: -1px; padding-bottom: 5px; }
.of-sec { background: #4a7ab5; color: #fff; font-weight: 700; padding: 3px 8px; margin: 8px 8px 0; }
.of-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px 14px; margin: 0 8px; padding: 7px 8px; background: #f3f7fb; border: 1px solid #a9bdd6; border-top: 0; }
.of-grid label { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: center; gap: 6px; font-weight: 700; color: #1f4f8f; text-align: right; }
.of-grid i { position: relative; height: 18px; background: #fff; border: 1px solid #7f9db9; }
.of-grid i.s::after { content: "▾"; position: absolute; inset: 0 0 0 auto; width: 16px; display: grid; place-items: center; background: #dbe5f1; border-left: 1px solid #7f9db9; font-size: 10px; color: #1b2b44; }
.of-grid i.n { width: 48px; } .of-grid i.c { width: 13px; height: 13px; }
.of-area { height: 40px; margin: 0 8px; background: #fff; border: 1px solid #a9bdd6; border-top: 0; }
.nf-body { display: grid; gap: 12px; padding: 16px; }
.nf-body label { display: block; font-size: 12.5px; font-weight: 600; color: var(--p-muted); }
.nf-body label i { display: flex; align-items: center; gap: 6px; min-height: 38px; margin-top: 6px; padding: 0 12px; border: 1px solid var(--p-line-strong); border-radius: 8px; background: var(--p-card); color: var(--p-ink); font-size: 14px; font-weight: 500; }
.nf-body label i b { padding: 3px 8px; border-radius: 99px; background: var(--p-accent-soft); color: var(--p-accent); font-size: 12.5px; font-weight: 600; }
.nf-body .two { display: grid; grid-template-columns: 1.3fr 1fr; gap: 12px; }
.typed { display: inline-block; white-space: nowrap; clip-path: inset(0 0 0 0); transition: clip-path .5s steps(14) var(--t, 0s); }
.typed.off { clip-path: inset(0 100% 0 0); transition-delay: 0s; transition-duration: .01s; }
.nf-defaults { padding: 10px 12px; border: 1px dashed var(--p-line-strong); border-radius: 8px; }
.nf-defaults p { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.nf-defaults b { padding: 4px 8px; border: 1px solid var(--p-line); border-radius: 6px; background: var(--p-card); font-size: 12.5px; font-weight: 500; }
.nf-defaults u { margin-left: 4px; color: var(--p-accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.nf-send { display: flex; align-items: center; justify-content: space-between; color: var(--p-muted); }
.nf-send b { padding: 10px 18px; border-radius: 8px; background: var(--p-accent); color: #fff; font-weight: 600; }
.nf-results { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding-top: 12px; border-top: 1px solid var(--p-line); }
.nf-results p { padding: 10px; background: var(--p-card); border: 1px solid var(--p-line); border-radius: 10px; }
.nf-results b { display: block; margin-top: 2px; font-weight: 650; }

/* 5. Lessons, topic, uses */
.flow { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; }
.f-col { padding: 16px 18px 8px; background: var(--p-card); }
.f-col small { margin-bottom: 8px; }
.f-col .rows li { padding: 11px 0; }
.f-hub { position: relative; margin: 0 62px; padding: 20px 26px; text-align: center; border-radius: 14px; background: #5a3e9e; color: #fff; box-shadow: var(--shadow); }
.f-hub small { display: block; font: 600 12.5px/1 var(--sans); color: #d9cff5; margin-bottom: 8px; }
.f-hub b { font: 400 25px/1.1 var(--serif); white-space: nowrap; }
.f-hub::before, .f-hub::after { content: ""; position: absolute; top: 50%; width: 62px; height: 2px; background: #8266d4; transform-origin: left; transition: transform .6s var(--ease) .2s; }
.f-hub::before { right: 100%; } .f-hub::after { left: 100%; }
.f-hub.appear.off { transform: scale(.9); }
.f-hub.off::before { transform: scaleX(0); transition-delay: 0s; }
.story:is([data-state="0"], [data-state="1"]) .f-hub::after { transform: scaleX(0); transition-delay: 0s; }
.f-col.appear.off { transform: translateX(-16px); }
.motion .reveal:not(.in) .f-col .rows li { opacity: 0; transform: translateY(8px); }
.motion .reveal .f-col .rows li { transition: opacity .4s ease, transform .5s var(--ease); transition-delay: calc(.3s + var(--n, 0) * 110ms); }

/* 6. Ask, by voice */
.voice { padding: 26px; background: var(--p-card); }
.voice-top { display: flex; align-items: center; gap: 20px; }
.mic { position: relative; flex: none; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: var(--p-accent); color: #fff; }
.mic svg { width: 26px; height: 26px; }
.mic span { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--p-accent); opacity: 0; }
.wave { flex: 1; height: 46px; display: flex; align-items: center; gap: 5px; overflow: hidden; }
.wave i { flex: none; width: 4px; height: 100%; border-radius: 2px; background: #8266d4; transform: scaleY(.12); opacity: .7; }
.heard { margin-top: 22px; min-height: 2.4em; font: 400 29px/1.2 var(--serif); letter-spacing: -0.015em; }
.answer { margin-top: 16px; min-height: 240px; padding: 16px 18px 6px; border-radius: 12px; background: var(--p-paper); border: 1px solid var(--p-line); transition: opacity .45s ease, transform .6s var(--ease); }
.answer small { font-weight: 600; }
.ask-lead { margin: 10px 0 8px; font-size: 16px; }
.answer .rows li { padding: 9px 0; border-top: 1px solid var(--p-line); }
.voice .asks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.voice .asks button { padding: 6px 11px; border: 1px solid var(--p-line); border-radius: 99px; background: var(--p-card); font-size: 12.5px; line-height: 1.2; color: var(--p-muted); }
.voice .asks button:hover { color: var(--p-ink); border-color: var(--p-line-strong); }
.voice .asks button[aria-pressed="true"] { border-color: var(--p-accent); background: var(--p-accent-soft); color: var(--p-accent); font-weight: 600; }
.motion .voice.listening .mic span { animation: ring 1.8s ease-out infinite; }
.motion .voice.listening .mic span + span { animation-delay: .9s; }
.motion .voice.listening .wave i { animation: wave .9s ease-in-out infinite alternate; }
.wave i:nth-child(3n) { animation-delay: -.3s !important; animation-duration: .7s !important; }
.wave i:nth-child(4n+1) { animation-delay: -.55s !important; animation-duration: 1.1s !important; }
.wave i:nth-child(5n+2) { animation-delay: -.15s !important; animation-duration: .6s !important; }
.motion .voice:not(.answered) .answer { opacity: 0; transform: translateY(16px); }
.motion .voice.answered .answer li { animation: row .45s var(--ease) both; animation-delay: calc(.25s + var(--n, 0) * 110ms); }
@keyframes ring { from { opacity: .7; transform: scale(1); } to { opacity: 0; transform: scale(2); } }
@keyframes wave { to { transform: scaleY(1); } }
@keyframes row { from { opacity: 0; transform: translateX(-10px); } }

/* 7. The tutor */
.p-body { padding: 16px; display: grid; gap: 12px; }
.p-notice { padding: 10px 12px; border-radius: 8px; background: var(--p-info-soft); color: var(--p-info); font-weight: 500; }
.p-question { background: var(--p-card); border: 1px solid var(--p-line); border-radius: 10px; padding: 14px 16px 16px; }
.p-question legend { float: left; width: 100%; font-size: 18px; font-weight: 600; margin-bottom: 12px; }
.p-choices { clear: both; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.p-choices label { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 10px; border: 1px solid var(--p-line-strong); border-radius: 8px; background: var(--p-card); cursor: pointer; white-space: nowrap; }
.p-choices input { accent-color: var(--p-accent); margin: 0; }
.p-choices label:has(input:checked) { border-color: var(--p-accent); background: var(--p-accent-soft); }
.p-tutor { background: var(--p-card); border: 1px solid var(--p-line); border-radius: 10px; }
.p-tutor-title { font: 600 14px/1.45 var(--sans); letter-spacing: 0; color: var(--p-accent); padding: 10px 16px; border-bottom: 1px solid var(--p-line); }
.p-talk { display: flex; flex-direction: column; gap: 8px; height: 230px; overflow-y: auto; padding: 12px 16px; background: var(--p-paper); }
.p-talk li { display: flex; }
.p-talk .p-empty, .p-talk .p-wait { color: var(--p-muted); }
.p-talk .you { justify-content: flex-end; }
.p-talk p { max-width: 86%; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--p-line); background: var(--p-card); white-space: pre-wrap; overflow-wrap: anywhere; }
.p-talk .you p { background: var(--p-accent); border-color: var(--p-accent); color: #fff; }
.p-ask { display: flex; gap: 8px; padding: 12px 16px 14px; border-top: 1px solid var(--p-line); }
.p-ask input { flex: 1; min-width: 0; height: 42px; padding: 0 12px; border: 1px solid var(--p-line-strong); border-radius: 8px; background: var(--p-card); color: var(--p-ink); font-size: 16px; }
.p-ask input::placeholder { color: var(--p-muted); opacity: 1; }
.p-ask button { height: 42px; padding: 0 18px; border: 0; border-radius: 8px; background: var(--p-accent); color: #fff; font-weight: 600; cursor: pointer; }
.p-ask button:disabled { opacity: .5; cursor: not-allowed; }

/* 8. Smaller jobs */
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.b-card { display: flex; flex-direction: column; padding: 20px; background: var(--p-card); }
.b-card h3 { font: 400 19px/1.2 var(--serif); letter-spacing: -0.01em; }
.b-card p { margin-top: 8px; color: var(--p-muted); }
.b-card > :last-child { margin-top: auto; padding-top: 18px; }
.tag { display: inline-block; vertical-align: middle; margin-left: 6px; padding: 2px 8px; border-radius: 6px; background: var(--p-warn-soft); color: var(--p-warn); font: 600 11.5px/1.5 var(--sans); letter-spacing: 0; }
.week { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.week div { min-height: 92px; padding: 8px 6px; border-radius: 8px; background: var(--p-paper); display: grid; gap: 6px; align-content: start; }
.week b { padding: 5px 6px; border-radius: 6px; background: var(--p-accent-soft); color: var(--p-accent); font: 600 11px/1.25 var(--sans); }
.week b.q { background: var(--p-accent); color: #fff; }
.seats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 7px; }
.seats i { aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: #8266d4; color: #fff; font: 600 11px/1 var(--sans); }
.seats i.out { background: none; border: 1.5px dashed #a9a3bd; color: var(--p-muted); text-decoration: line-through; }
.motion .reveal:not(.in) :is(.checks li, .week b, .seats i) { opacity: 0; transform: translateY(8px); }
.motion .reveal :is(.checks li, .week b, .seats i) { transition: opacity .4s ease, transform .5s var(--ease); transition-delay: calc(.4s + var(--n, 0) * 70ms); }

/* 9. Compared */
.compare { font-size: var(--t-body); text-align: left; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); border-collapse: separate; border-spacing: 0; overflow: hidden; box-shadow: var(--shadow); }
.compare th, .compare td { padding: clamp(12px, 1.6vh, 18px) clamp(14px, 1.6vw, 24px); border-top: 1px solid var(--hairline); vertical-align: top; }
.compare thead th { border-top: 0; font: 600 var(--t-meta)/1.3 var(--sans); color: var(--muted); }
.compare thead th:last-child { color: var(--gold); }
.compare tbody th { width: 22%; font-weight: 600; }
.compare td { width: 39%; color: var(--muted); }
.compare td:last-child { color: var(--text); font-weight: 500; background: color-mix(in srgb, var(--gold) 8%, transparent); }
.compare thead th:last-child { background: color-mix(in srgb, var(--gold) 8%, transparent); }

/* 10. Rules */
.rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 24px); width: 100%; counter-reset: n; text-align: left; }
.rules li { counter-increment: n; position: relative; padding: clamp(20px, 2vw, 32px); padding-top: clamp(48px, 4vw, 64px); background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); }
.rules li::before { content: "0" counter(n); position: absolute; left: clamp(20px, 2vw, 32px); top: clamp(18px, 1.8vw, 26px); font: 600 var(--t-meta)/1 var(--sans); color: var(--gold); }
.rules p { margin-top: 8px; color: var(--muted); }
.rules .demo { display: inline-flex; align-items: center; gap: 12px; margin-top: 16px; padding: 9px 14px; border: 1px solid var(--hairline); border-radius: 10px; color: var(--text); font-size: var(--t-meta); font-weight: 600; }
.toggle { position: relative; flex: none; width: 40px; height: 22px; border-radius: 99px; background: #8266d4; transition: background-color .3s 1.1s; }
.toggle::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transform: translateX(18px); transition: transform .3s var(--ease) 1.1s; }
.demo span { display: grid; } .demo span b { grid-area: 1 / 1; font-weight: 600; transition: opacity .3s 1.1s; } .demo span b:first-child { opacity: 0; }
.motion .reveal:not(.in) .toggle { background: var(--control); transition-delay: 0s; }
.motion .reveal:not(.in) .toggle::after { transform: none; transition-delay: 0s; }
.motion .reveal:not(.in) .demo span b:first-child { opacity: 1; transition-delay: 0s; } .motion .reveal:not(.in) .demo span b + b { opacity: 0; transition-delay: 0s; }

/* Standards */
.standards { width: 100%; margin-top: clamp(14px, 1.6vw, 24px); padding: clamp(20px, 2vw, 32px); background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); text-align: left; }
.standards > p { margin-top: 8px; max-width: 48em; color: var(--muted); }
.standards ul { margin-top: 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(20px, 3vw, 48px); }
.standards li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 12px 0; border-top: 1px solid var(--hairline); }
.standards b { font-weight: 600; }
.standards span { grid-column: 1; font-size: var(--t-meta); color: var(--muted); }
.standards em { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: var(--t-meta); font-weight: 600; color: var(--gold); white-space: nowrap; }

/* 11. Questions */
.faq { width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); padding: clamp(6px, 1vw, 14px) clamp(20px, 2.4vw, 36px); }
.faq details + details { border-top: 1px solid var(--hairline); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; cursor: pointer; list-style: none; font: 400 var(--t-lead)/1.3 var(--serif); letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font: 400 var(--t-lead)/1.2 var(--sans); color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 40px 20px 0; color: var(--muted); }

/* ── Closing and footer ──────────────────────────── */
.closing { position: relative; z-index: 1; border-top: 1px solid var(--hairline); padding-block: clamp(56px, 10vh, 120px) 40vh; text-align: center; }
.closing-text { grid-column: 1 / -1; }
.closing h2 { font-size: var(--t-h1); line-height: 1; letter-spacing: -0.03em; }
.closing .lead { max-width: 34em; margin: clamp(14px, 2.4vh, 26px) auto 0; }
.mail { display: inline-block; margin-top: clamp(20px, 3.4vh, 40px); font: 400 clamp(1.6rem, 4.4vw, 4.5rem)/1.1 var(--serif); letter-spacing: -0.025em; color: var(--text); text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 3px; text-underline-offset: .16em; overflow-wrap: anywhere; }
.mail:hover { color: var(--gold); }
.foot { background: var(--surface); border-top: 1px solid var(--hairline); padding-block: 36px 44px; }
.foot .grid { row-gap: 28px; align-items: start; }
.foot-brand { grid-column: 1 / span 5; display: grid; gap: 14px; justify-items: start; }
.foot-brand .meta { max-width: 30em; }
.foot-links { grid-column: span 3; display: grid; gap: 10px; justify-items: start; font-size: var(--t-meta); }
.foot-links:first-of-type { grid-column: 7 / span 3; }
.foot-links strong { font-weight: 600; margin-bottom: 4px; }
.foot-links a { color: var(--muted); text-decoration: none; overflow-wrap: anywhere; }
.foot-links a:hover { color: var(--text); text-decoration: underline; }

/* ── Narrow screens: everything stacked ──────────── */
@media (max-width: 900px) {
  .claim, .evidence { grid-column: 1 / -1; }
  .evidence { margin-top: 28px; }
  .numbers .grid { row-gap: 24px; } .numbers p { grid-column: span 6; }
  .hero { padding-top: 36px; }
  .win { display: none; } .stage { height: 500px; }
  .r-help { position: static; width: auto; grid-column: 1 / -1; box-shadow: none; }
  .report-body { grid-template-columns: 200px minmax(0, 1fr); }
  .forms, .flow, .trio { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .f-hub { margin: 30px auto; } .f-hub::before, .f-hub::after { left: 50%; right: auto; width: 2px; height: 30px; }
  .f-hub::before { top: auto; bottom: 100%; } .f-hub::after { top: 100%; }
  .p-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rules, .standards ul { grid-template-columns: minmax(0, 1fr); }
  .compare { font-size: var(--t-meta); } .compare th, .compare td { padding: 10px; }
  .closing { padding-bottom: 38vh; }
  .foot-brand { grid-column: 1 / -1; } .foot-links, .foot-links:first-of-type { grid-column: span 6; }
}
