/* Waterfall IQ website. One stylesheet, no framework. */
:root {
  --ink: #131c2b; --ink2: #3b475a; --mute: #667286; --line: #e1e6ee; --paper: #f6f8fa; --card: #ffffff;
  --brand: #0f766e; --brand2: #0b5d56; --brand-soft: #e4f3f1; --accent: #f2b84b; --good: #16804a; --bad: #be123c;
  --night: #eaf2f5; --night2: #ffffff; --on-night: #1d2838; --mute-night: #4f5d70; --night-head: #0f1a2a; --night-accent: #0f766e; --night-line: #d3dde6; --night-soft: #e4f3f1; --night-mid: #dfeaef;
  --radius: 14px; --shadow: 0 1px 2px rgba(19,28,43,.06), 0 8px 28px rgba(19,28,43,.08);
  --display: 'Newsreader', Georgia, 'Times New Roman', serif; --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; --mono: 'IBM Plex Mono', ui-monospace, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) { --ink: #e8edf3; --ink2: #c3cdda; --mute: #94a3b8; --line: #243245; --paper: #0c1522; --card: #111d2c; --brand: #2dbeaf; --brand2: #5fd3c7; --brand-soft: #0f2a2c; --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 30px rgba(0,0,0,.35); --night: #0c1522; --night2: #14202f; --on-night: #e8edf3; --mute-night: #9aa8ba; --night-head: #ffffff; --night-accent: #5fd3c7; --night-line: #22344a; --night-soft: #1a2a3c; --night-mid: #101e30; }
}
:root[data-theme='dark'] { --ink: #e8edf3; --ink2: #c3cdda; --mute: #94a3b8; --line: #243245; --paper: #0c1522; --card: #111d2c; --brand: #2dbeaf; --brand2: #5fd3c7; --brand-soft: #0f2a2c; --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 30px rgba(0,0,0,.35); --night: #0c1522; --night2: #14202f; --on-night: #e8edf3; --mute-night: #9aa8ba; --night-head: #ffffff; --night-accent: #5fd3c7; --night-line: #22344a; --night-soft: #1a2a3c; --night-mid: #101e30; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--paper); line-height: 1.6; font-size: 1.0625rem; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand2); }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 500; line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.narrow { width: min(760px, 100% - 2.5rem); margin-inline: auto; }
.eyebrow { font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 600; color: var(--brand); margin-bottom: .8rem; }
.lead { font-size: 1.2rem; color: var(--ink2); max-width: 42rem; }
.muted { color: var(--mute); }
.skip { position: absolute; left: -999px; top: 0; background: var(--brand); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--card); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 1.5rem; height: 68px; }
.brand { display: flex; align-items: center; gap: .6rem; font-family: var(--display); font-size: 1.4rem; font-weight: 600; color: var(--ink); text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.nav-links { display: flex; gap: .3rem; margin-left: auto; align-items: center; }
.nav-links a { color: var(--ink2); text-decoration: none; padding: .5rem .8rem; border-radius: 8px; font-size: .98rem; font-weight: 500; }
.nav-links a:hover, .nav-links a[aria-current='page'] { background: var(--brand-soft); color: var(--brand2); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 8px; padding: .45rem .7rem; color: var(--ink); font: inherit; cursor: pointer; }
.theme-btn { background: none; border: 1px solid var(--line); border-radius: 8px; width: 38px; height: 38px; cursor: pointer; color: var(--ink2); font-size: 1rem; }
.theme-phone { display: none; }
@media (max-width: 880px) {
  .nav-toggle { display: block; margin-left: .5rem; }
  .theme-phone { display: block; margin-left: auto; }
  .nav-links .theme-btn { display: none; }
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--card); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: .8rem 1.25rem 1.2rem; gap: .2rem; }
  .nav-links.open { display: flex; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .8rem 1.35rem; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: 600 1rem var(--sans); text-decoration: none; cursor: pointer; transition: transform .12s, box-shadow .12s, background .12s; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); color: var(--ink); }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand2); color: #fff; }
.btn-ghost-night { background: transparent; border-color: var(--night-line); color: var(--on-night); }
.btn-ghost-night:hover { background: var(--night-soft); color: var(--night-head); }
.btn-sm { padding: .5rem .9rem; font-size: .92rem; }
.nav .btn { padding: .55rem 1rem; }
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: #fff; background: var(--brand); }
.nav-links a.btn-primary:hover { background: var(--brand2); }

/* hero */
.hero { background: radial-gradient(1200px 500px at 85% -10%, rgba(45,190,175,.22), transparent 60%), var(--night); color: var(--on-night); padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem); }
.hero h1, .hero h2 { color: var(--night-head); }
.hero .lead { color: var(--mute-night); }
.hero .eyebrow { color: var(--night-accent); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } }
.cta-row { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.6rem 0 1rem; }
.hero-note { font-size: .92rem; color: var(--mute-night); }
.hero-badges { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; margin-top: 1.4rem; font-size: .9rem; color: var(--mute-night); }
.hero-badges span::before { content: '\2713'; color: var(--night-accent); margin-right: .4rem; font-weight: 700; }

/* live demo card */
.demo { background: var(--night2); border: 1px solid var(--night-line); border-radius: 18px; padding: 1.3rem 1.4rem 1.5rem; box-shadow: 0 30px 60px rgba(0,0,0,.35); color: var(--on-night); }
.demo-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .5rem; margin-bottom: .6rem; }
.demo-title { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mute-night); }
.demo-exit { font: 500 1.9rem var(--display); color: var(--night-head); }
.demo input[type=range] { width: 100%; accent-color: #2dbeaf; margin: .4rem 0 .2rem; }
.demo-scale { display: flex; justify-content: space-between; font-size: .78rem; color: var(--mute-night); }
.bars { display: grid; gap: .7rem; margin: 1.1rem 0; }
.bar-row .lbl { display: flex; justify-content: space-between; font-size: .92rem; margin-bottom: .25rem; }
.bar-row .lbl b { font-variant-numeric: tabular-nums; }
.track { height: 14px; border-radius: 8px; background: var(--night-line); overflow: hidden; }
.fill { height: 100%; border-radius: 8px; transition: width .35s ease; }
.say { font-size: .95rem; color: var(--on-night); background: var(--night-soft); border-left: 3px solid #2dbeaf; padding: .7rem .9rem; border-radius: 8px; min-height: 3.6em; }
.pills { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .8rem; }
.pill { font-size: .78rem; padding: .25rem .6rem; border-radius: 999px; border: 1px solid var(--night-line); color: var(--mute-night); cursor: pointer; background: transparent; font-family: inherit; }
.pill:hover { color: var(--night-head); border-color: var(--night-accent); }

/* sections */
section.block { padding: clamp(3rem, 6vw, 5.5rem) 0; }
section.alt { background: var(--card); border-block: 1px solid var(--line); }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.grid { display: grid; gap: 1.2rem; }
.g2 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.card h3 { margin-bottom: .4rem; }
.card p:last-child { margin-bottom: 0; }
.card.hover { transition: transform .15s, box-shadow .15s; text-decoration: none; color: inherit; display: block; }
.card.hover:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: inherit; }
.icon { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-size: 1.3rem; margin-bottom: .9rem; }
.stat { font: 500 clamp(2rem, 4vw, 3rem) var(--display); color: var(--brand); line-height: 1; }
.stat-label { color: var(--mute); font-size: .95rem; margin-top: .3rem; }

/* tabs */
.tabs { display: flex; gap: .4rem; flex-wrap: wrap; margin: 1.4rem 0 1rem; }
.tab { padding: .55rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink2); font: 500 .95rem var(--sans); cursor: pointer; }
.tab[aria-selected='true'] { background: var(--brand); border-color: var(--brand); color: #fff; }
.tabpanel { display: none; } .tabpanel.active { display: block; }
.panel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }
@media (max-width: 820px) { .panel-grid { grid-template-columns: 1fr; } }

/* steps */
.steps { counter-reset: s; display: grid; gap: 1rem; }
.step { display: grid; grid-template-columns: 52px 1fr; gap: 1rem; align-items: start; }
.step::before { counter-increment: s; content: counter(s); width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font: 600 1.1rem var(--sans); }

/* product frame (tool preview) */
.frame { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--card); box-shadow: var(--shadow); }
.frame-bar { display: flex; align-items: center; gap: .4rem; padding: .6rem .9rem; background: var(--paper); border-bottom: 1px solid var(--line); font-size: .8rem; color: var(--mute); }
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); display: block; }
.frame iframe { width: 100%; height: min(82vh, 860px); border: 0; display: block; background: var(--card); }

/* pricing */
.toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 4px; background: var(--card); margin: 1.2rem 0 2rem; }
.toggle button { border: 0; background: none; padding: .5rem 1.1rem; border-radius: 999px; font: 500 .95rem var(--sans); color: var(--ink2); cursor: pointer; }
.toggle button[aria-pressed='true'] { background: var(--brand); color: #fff; }
.plans { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; align-items: stretch; }
@media (max-width: 1300px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.wrap.wide { width: min(1340px, 100% - 2.5rem); }
@media (max-width: 800px) { .plans { grid-template-columns: 1fr; } }
.plan { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 1.5rem; }
.plan.featured { border: 2px solid var(--brand); box-shadow: var(--shadow); position: relative; }
.plan .tag { position: absolute; top: -12px; left: 1.2rem; background: var(--brand); color: #fff; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; padding: .2rem .7rem; border-radius: 999px; }
.price { font: 500 2.6rem var(--display); line-height: 1; margin: .6rem 0 .2rem; }
.price small { font: 400 1rem var(--sans); color: var(--mute); }
.plan ul { list-style: none; padding: 0; margin: 1rem 0 1.4rem; display: grid; gap: .5rem; font-size: .95rem; flex: 1; }
.plan li::before { content: '\2713'; color: var(--good); margin-right: .5rem; font-weight: 700; }
.plan li.off { color: var(--mute); } .plan li.off::before { content: '\2013'; color: var(--mute); }
table.cmp { width: 100%; border-collapse: collapse; font-size: .95rem; background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
table.cmp th, table.cmp td { padding: .7rem .9rem; border-bottom: 1px solid var(--line); text-align: center; }
table.cmp th:first-child, table.cmp td:first-child { text-align: left; }
table.cmp thead th { background: var(--paper); font-weight: 600; }
.yes { color: var(--good); font-weight: 700; } .no { color: var(--mute); }
.scroll-x { overflow-x: auto; }

/* faq */
details.faq { border-bottom: 1px solid var(--line); padding: 1rem 0; }
details.faq summary { cursor: pointer; font-weight: 600; font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
details.faq summary::after { content: '+'; color: var(--brand); font-size: 1.4rem; line-height: 1; }
details.faq[open] summary::after { content: '\2212'; }
details.faq p { margin: .7rem 0 0; color: var(--ink2); }

/* callouts and articles */
.callout { border-left: 4px solid var(--brand); background: var(--brand-soft); padding: 1rem 1.2rem; border-radius: 0 12px 12px 0; margin: 1.5rem 0; }
.callout.warn { border-color: var(--accent); background: #fdf3dc; color: #4b3a10; }
.article { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.article h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
.article h2 { font-size: 1.7rem; margin-top: 2.2rem; }
.article h3 { margin-top: 1.6rem; }
.article p, .article li { font-size: 1.1rem; color: var(--ink2); }
.article ul, .article ol { padding-left: 1.3rem; }
.article table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; font-size: 1rem; display: block; overflow-x: auto; max-width: 100%; }
.article table tbody, .article table thead { display: table; width: 100%; min-width: 520px; }
.article th, .article td { border: 1px solid var(--line); padding: .6rem .8rem; text-align: left; }
.article th { background: var(--paper); }
.article td.num, .article th.num { text-align: right; font-variant-numeric: tabular-nums; }
.meta { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; color: var(--mute); font-size: .95rem; margin: .4rem 0 2rem; }
.author { display: grid; grid-template-columns: 64px 1fr; gap: 1rem; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; margin: 2.5rem 0; }
.avatar { width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), #2dbeaf); color: #fff; display: grid; place-items: center; font: 600 1.3rem var(--sans); }
.article-cta { background: var(--night); color: var(--on-night); border-radius: 16px; padding: 1.6rem; margin: 2.5rem 0; }
.article-cta h3 { color: var(--night-head); } .article-cta p { color: var(--mute-night); }
.toc { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.2rem; margin: 1.5rem 0; }
.toc ol { margin: .4rem 0 0; }
.tag-chip { display: inline-block; font-size: .78rem; padding: .15rem .6rem; border-radius: 999px; background: var(--brand-soft); color: var(--brand2); font-weight: 600; }

/* tools (offer check) */
.tool { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 1.5rem; box-shadow: var(--shadow); }
.field { display: grid; gap: .25rem; margin-bottom: .8rem; }
.field label { font-size: .85rem; font-weight: 600; color: var(--ink2); }
.field input, .field select { width: 100%; padding: .6rem .75rem; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); font: 1rem var(--sans); }
.field input:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px var(--brand-soft); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; } .row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.result { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.2rem; }
.result b.big { font: 500 1.8rem var(--display); display: block; }

/* footer */
.site-footer { background: var(--night); color: var(--mute-night); padding: 3.5rem 0 2rem; font-size: .95rem; }
.site-footer a { color: var(--on-night); text-decoration: none; } .site-footer a:hover { color: var(--night-accent); }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 2rem; margin-bottom: 2.5rem; }
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.foot-grid h4 { font: 600 .8rem var(--sans); text-transform: uppercase; letter-spacing: .12em; color: var(--night-head); margin-bottom: .8rem; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.disclaimer { border-top: 1px solid var(--night-line); padding-top: 1.4rem; font-size: .82rem; line-height: 1.6; }
.logo-row { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; justify-content: center; color: var(--mute); font-size: .95rem; margin-top: 1rem; }
.logo-row span::before { content: '\25CF'; color: var(--brand); margin-right: .5rem; font-size: .7rem; }
.cmp-note { font-size: .85rem; color: var(--mute); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .site-footer, .article-cta { display: none; } body { background: #fff; } }

.frame img { width: 100%; height: auto; display: block; }

/* ---------- motion and depth ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero canvas.flow { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .9; }
.hero::after { content: ''; position: absolute; inset: auto 0 0 0; height: 90px; background: linear-gradient(to bottom, transparent, var(--night)); z-index: -1; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; z-index: -1; pointer-events: none; animation: drift 18s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate(40px, -30px) scale(1.12); } }
.dots { background-image: radial-gradient(var(--line) 1.2px, transparent 1.2px); background-size: 26px 26px; }
section.tint { background: linear-gradient(180deg, var(--paper), var(--brand-soft)); }
section.mesh { position: relative; isolation: isolate; overflow: hidden; overflow: clip; } /* clip, not hidden: hidden would stop the story panel from staying in view */
section.mesh .blob.a { width: 420px; height: 420px; background: #2dbeaf; top: -120px; right: -80px; opacity: .18; }
section.mesh .blob.b { width: 360px; height: 360px; background: #6db3ff; bottom: -140px; left: -90px; opacity: .16; animation-delay: -6s; }
.wave { display: block; width: 100%; height: 60px; }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }
.card.glow { position: relative; overflow: hidden; }
.card.glow::before { content: ''; position: absolute; inset: 0; background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgba(45,190,175,.16), transparent 60%); opacity: 0; transition: opacity .25s; pointer-events: none; }
.card.glow:hover::before { opacity: 1; }
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: linear-gradient(90deg, #2dbeaf, #f2b84b); z-index: 100; }

/* ticker */
.ticker { background: var(--night2); border-block: 1px solid var(--night-line); color: var(--mute-night); font-size: .98rem; }
.ticker .wrap { display: flex; align-items: center; gap: 1rem; height: 54px; overflow: hidden; }
.ticker b { color: var(--night-accent); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.ticker-line { position: relative; flex: 1; height: 1.6em; }
.ticker-line span { position: absolute; left: 0; right: 0; top: 0; opacity: 0; transform: translateY(10px); transition: all .6s ease; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--on-night); }
.ticker-line span.on { opacity: 1; transform: none; }

/* scroll story */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
@media (max-width: 880px) { .story { grid-template-columns: 1fr; } }
.story-visual { position: sticky; top: 92px; background: var(--night); border: 1px solid var(--night-line); border-radius: 18px; padding: 1.4rem; color: var(--on-night); box-shadow: 0 30px 60px rgba(0,0,0,.22); }
@media (max-width: 880px) { .story-visual { position: sticky; top: 70px; z-index: 5; } }
.story-visual h4 { color: var(--night-head); font: 500 1.1rem var(--sans); margin: 0 0 .2rem; }
.story-big { font: 500 2.6rem var(--display); color: var(--night-head); line-height: 1.1; }
.sbar { display: flex; height: 46px; border-radius: 10px; overflow: hidden; background: #1d2b3d; margin: 1rem 0 .6rem; }
.sbar i { display: flex; align-items: center; justify-content: center; font-style: normal; font-size: .78rem; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; transition: width .8s cubic-bezier(.2,.8,.2,1), opacity .5s; width: 0; }
.slegend { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .82rem; color: var(--mute-night); }
.slegend span::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: .4rem; background: var(--c); }
.story-step { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; opacity: .35; transition: opacity .4s; padding: 1rem 0; }
.story-step.active { opacity: 1; }
.story-step .n { color: var(--brand); font: 600 .8rem var(--sans); letter-spacing: .14em; text-transform: uppercase; margin-bottom: .5rem; }
.story-step h3 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.story-note { margin-top: .9rem; min-height: 3.2em; font-size: .95rem; color: var(--on-night); background: var(--night-soft); border-left: 3px solid #2dbeaf; padding: .6rem .8rem; border-radius: 8px; }

/* quiz */
.quiz { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: clamp(1.4rem, 3vw, 2.2rem); box-shadow: var(--shadow); max-width: 820px; margin: 1.5rem auto 0; }
.opts { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; margin: 1.2rem 0; }
@media (max-width: 620px) { .opts { grid-template-columns: 1fr; } }
.opt { text-align: left; padding: 1rem 1.1rem; border: 2px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); font: 600 1.05rem var(--sans); cursor: pointer; transition: transform .12s, border-color .12s, background .12s; }
.opt small { display: block; font-weight: 400; color: var(--mute); margin-top: .2rem; }
.opt:hover:not([disabled]) { transform: translateY(-2px); border-color: var(--brand); }
.opt.right { border-color: var(--good); background: #e6f5ec; color: #0f4d2e; } .opt.wrong { border-color: var(--bad); background: #fde8ee; color: #6b0f27; }
.opt[disabled] { cursor: default; }
.reveal-box { display: none; border-left: 4px solid var(--brand); background: var(--brand-soft); padding: 1rem 1.2rem; border-radius: 0 12px 12px 0; }
.reveal-box.show { display: block; animation: pop .35s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } }
.score { display: flex; gap: .4rem; align-items: center; color: var(--mute); font-size: .92rem; }

/* keep exploring */
.explore { margin: 3rem 0 1rem; }
.explore .grid { margin-top: 1rem; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } .blob { animation: none; } .hero canvas.flow { display: none; } }
