/* QuizAde marketing page. Shares tokens, buttons and the top bar with styles.css. */
body.landing .topbar { position: sticky; }
.navlink { color: var(--soft); text-decoration: none; font-size: .9375rem; font-weight: 500; padding: .5rem .25rem; min-height: 2.75rem; display: inline-flex; align-items: center; }
.navlink:active { color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .navlink:hover { color: var(--ink); } }
a.btn { text-decoration: none; }
.btn.small { min-height: 2.75rem; padding: .375rem 1rem; font-size: .9375rem; }
.btn.big { min-height: 3rem; padding: .625rem 1.5rem; font-size: 1rem; }
@media (max-width: 700px) { .navlink { display: none; } }

main { max-width: 76rem; margin: 0 auto; padding: 0 1.5rem; }
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 3.5rem; align-items: center; padding: 4.5rem 0 4rem; }
.eyebrow { color: var(--accent); font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .875rem; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4rem); letter-spacing: -.04em; line-height: 1.04; font-weight: 700; margin-bottom: 1.125rem; text-wrap: balance; }
.lede { color: var(--soft); font-size: 1.125rem; line-height: 1.6; max-width: 34rem; margin-bottom: 1.75rem; }
.cta { display: flex; gap: .75rem; flex-wrap: wrap; }
.cta.center { justify-content: center; margin-top: 2rem; }
.fine { color: var(--soft); font-size: .875rem; margin-top: 1rem; }

.demo { background: var(--panel); border: 1px solid var(--line); border-radius: .75rem; overflow: hidden; box-shadow: var(--shadow-lg); }
.demo-bar { display: flex; align-items: center; gap: .625rem; padding: .75rem 1.25rem; border-bottom: 1px solid var(--line); font-size: .8125rem; color: var(--soft); background: var(--tint); }
.demo-dot { width: .25rem; height: .25rem; border-radius: 50%; background: var(--soft); opacity: .6; }
.demo-q { padding: 1.25rem 1.5rem 1rem; }
.demo-q .n { color: var(--soft); font-weight: 600; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .5rem; }
.demo-fig { margin: 0 0 1rem; padding: .5rem; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); }
.demo-fig svg { display: block; width: 100%; height: auto; max-height: 10rem; }
.demo .prompt { font-size: 1.0625rem; font-weight: 600; line-height: 1.4; margin-bottom: .875rem; }
.demo .opt { cursor: default; }
.demo-why { color: var(--soft); font-size: .875rem; margin-top: .25rem; }

.rows { display: grid; gap: 5rem; padding: 3rem 0 4rem; border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 4rem; align-items: center; }
.row.flip .row-copy { order: 2; }
.row h2 { font-size: clamp(1.5rem, 3vw, 2.125rem); letter-spacing: -.03em; line-height: 1.12; font-weight: 650; margin-bottom: .875rem; text-wrap: balance; }
.row p { color: var(--soft); font-size: 1.0625rem; line-height: 1.6; max-width: 30rem; }
.vis { background: var(--panel); border: 1px solid var(--line); border-radius: .75rem; padding: 1.25rem; pointer-events: none; user-select: none; }
.vis .units { margin-bottom: 1rem; }
.also { color: var(--soft); font-size: .9375rem; text-align: center; max-width: none !important; }
.section { padding: 4rem 0; }
.section h2 { font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -.03em; font-weight: 650; margin-bottom: 1.5rem; }
.faq { max-width: 44rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; min-height: 3.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--soft); font-size: 1.25rem; font-weight: 400; transition: rotate .2s var(--ease); }
.faq details[open] summary::after { rotate: 45deg; }
.faq p { color: var(--soft); padding: 0 0 1.125rem; max-width: 38rem; }
.foot { max-width: 76rem; margin: 0 auto; padding: 2rem 1.5rem 3rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; color: var(--soft); font-size: .875rem; border-top: 1px solid var(--line); }
.foot a { color: var(--accent); text-decoration: none; font-weight: 600; }
.foot .brand { color: var(--ink); }

@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; padding: 2.5rem 0 3rem; }
  .row { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
  .row.flip .row-copy { order: 0; }
  .rows { gap: 3.5rem; }
  .section { padding: 3rem 0; }
}
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }
.vis p.label { font-size: .75rem; max-width: none; }
.vis .grade-head p { font-size: .9375rem; max-width: none; }

/* inner pages */
.page { max-width: 48rem; margin: 0 auto; padding: 3.5rem 1.5rem 4rem; }
.page-head { margin-bottom: 2rem; }
.page-head h1 { font-size: clamp(2rem, 5vw, 2.75rem); letter-spacing: -.035em; line-height: 1.08; font-weight: 700; margin-bottom: .75rem; }
.page-head .lede { margin-bottom: 0; }
.prose h2 { font-size: 1.25rem; letter-spacing: -.02em; font-weight: 650; margin: 2.25rem 0 .5rem; }
.prose p, .prose li { color: var(--soft); font-size: 1.0625rem; line-height: 1.65; }
.prose p { margin: 0 0 1rem; }
.prose ul { margin: 0 0 1rem; padding-left: 1.25rem; display: grid; gap: .5rem; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--accent); }
.prose .cta { margin-top: 2.5rem; }
.legal h2 { font-size: 1.0625rem; margin-top: 1.75rem; }
.legal p, .legal li { font-size: 1rem; }
.steps-long { list-style: none; counter-reset: s; padding: 0; margin: 0 0 2rem; display: grid; gap: 1.75rem; }
.steps-long li { counter-increment: s; position: relative; padding-left: 3rem; }
.steps-long li::before { content: counter(s); position: absolute; left: 0; top: .125rem; width: 2rem; height: 2rem; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--tint); font-weight: 600; font-size: .875rem; }
.steps-long h2 { font-size: 1.125rem; margin: 0 0 .25rem; letter-spacing: -.015em; }
.steps-long p { color: var(--soft); margin: 0; line-height: 1.6; }
.faq.wide { max-width: none; margin-bottom: 2rem; }
.plan { display: grid; grid-template-columns: auto 1fr; gap: 2rem; align-items: center; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel); margin-bottom: 1rem; }
.plan .label { margin-bottom: .25rem; }
.price { font-size: 3rem !important; font-weight: 700; letter-spacing: -.04em; color: var(--ink) !important; margin: 0 !important; line-height: 1; }
.plan ul { margin: 0; }
.costs { width: 100%; border-collapse: collapse; margin: 0 0 1rem; font-size: 1rem; }
.costs th, .costs td { text-align: left; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.costs th { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); font-weight: 600; }
.costs td:last-child, .costs th:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.costs td { color: var(--ink); }
.navlink.on { color: var(--ink); }
.foot-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }
@media (max-width: 700px) { .plan { grid-template-columns: 1fr; gap: 1rem; } .page { padding-top: 2rem; } }

/* longer home page */
.section { padding: 3.5rem 0; border-top: 1px solid var(--line); }
.section h2 { font-size: clamp(1.5rem, 3vw, 2.125rem); letter-spacing: -.03em; line-height: 1.12; font-weight: 650; margin-bottom: .75rem; max-width: 36rem; text-wrap: balance; }
.section-lede { color: var(--soft); font-size: 1.0625rem; line-height: 1.6; max-width: 34rem; margin-bottom: 1.5rem; }
.section-lede a, .compare a { color: var(--accent); }
.chips-row { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.chips-row li { padding: .5rem .875rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); font-size: .9375rem; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 4rem; align-items: start; }
.compare { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.compare li { display: grid; gap: .25rem; padding-left: 1rem; border-left: 2px solid var(--accent); }
.compare strong { font-weight: 600; }
.compare span { color: var(--soft); font-size: .9375rem; line-height: 1.55; }
.timeline { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
.timeline li { display: grid; gap: .375rem; align-content: start; padding-top: 1rem; border-top: 2px solid var(--line); }
.timeline .t { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.timeline strong { font-weight: 600; }
.timeline span:last-child { color: var(--soft); font-size: .9375rem; line-height: 1.55; }
.final-cta { text-align: center; padding: 5rem 1.5rem; border-top: 1px solid var(--line); background: var(--panel); }
.final-cta h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); letter-spacing: -.03em; font-weight: 700; margin-bottom: .75rem; text-wrap: balance; }
.final-cta p { color: var(--soft); font-size: 1.0625rem; margin-bottom: 1.75rem; }
.final-cta .cta { justify-content: center; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; } .timeline { grid-template-columns: minmax(0, 1fr); } .section { padding: 2.5rem 0; } }

/* ---------- motion ---------- */
.scroll-progress { position: fixed; inset: 0 0 auto 0; height: 2px; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); z-index: 50; pointer-events: none; will-change: transform; }
.topbar { transition: box-shadow .25s var(--ease); }
.topbar.lifted { box-shadow: 0 6px 24px -12px rgba(0, 0, 0, .35); }

.js .reveal { opacity: 0; translate: 0 1.25rem; transition: opacity .7s var(--ease), translate .8s var(--ease); transition-delay: calc(var(--d, 0) * 70ms); }
.js .reveal.in { opacity: 1; translate: 0 0; }
.js.calm .reveal { opacity: 1; translate: none; transition: none; }

/* hero demo you can actually try */
.js .demo .opt { cursor: pointer; transition: border-color .15s, background-color .15s, opacity .2s, scale .12s var(--ease); pointer-events: auto; }
.js .demo .opt:active { scale: .985; }
.vis { pointer-events: none; }
.demo .try { color: var(--accent); font-size: .8125rem; font-weight: 600; margin: .125rem 0 .5rem; transition: opacity .2s; }
.demo .try::before { content: ""; display: inline-block; width: .4rem; height: .4rem; border-radius: 50%; background: var(--accent); margin-right: .5rem; vertical-align: .1rem; animation: pulse 1.6s var(--ease) infinite; }
.demo .try.gone { opacity: 0; }
@keyframes pulse { 0%, 100% { scale: 1; opacity: 1; } 50% { scale: 1.8; opacity: .35; } }
.js .demo-why { opacity: 0; translate: 0 .375rem; transition: opacity .35s var(--ease), translate .4s var(--ease); }
.js .demo-why.open { opacity: 1; translate: 0 0; }
.js.calm .demo-why { transition: none; }
.demo .opt.right { border-color: var(--good); background: color-mix(in srgb, var(--good) 11%, var(--panel)); }
.demo .opt.wrong { border-color: var(--bad); background: color-mix(in srgb, var(--bad) 10%, var(--panel)); }
.demo .opt.dim { opacity: .55; }

/* drawn graph, growing bars */
.js .draw { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.5s var(--ease) .25s; }
.js .live .draw, .js.calm .draw { stroke-dashoffset: 0; }
.js .bars rect { transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0); transition: transform .8s var(--ease); }
.js .live .bars rect, .js.calm .bars rect { transform: scaleY(1); }
.js .bars rect:nth-child(2) { transition-delay: .08s; } .js .bars rect:nth-child(3) { transition-delay: .16s; }
.js .bars rect:nth-child(4) { transition-delay: .24s; } .js .bars rect:nth-child(5) { transition-delay: .32s; }
.js .grade-group li { opacity: 0; translate: -.375rem 0; transition: opacity .4s var(--ease), translate .4s var(--ease); }
.js .live .grade-group li, .js.calm .grade-group li { opacity: 1; translate: 0 0; }
.js .live .grade-group li:nth-child(1) { transition-delay: .9s; } .js .live .grade-group li:nth-child(2) { transition-delay: 1.1s; }
.js .live .gr-wrong li { transition-delay: 1.35s; }
.final-units li { transition: border-color .3s, background-color .3s; }
.final-units li.lit { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, var(--panel)); }
.vis .utab { transition: color .25s, border-color .25s; }

/* subject marquee */
.marquee-wrap { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); margin-bottom: .5rem; }
.chips-row.marquee { flex-wrap: nowrap; gap: 0; width: max-content; animation: slide var(--dur, 40s) linear infinite; }
.chips-row.marquee li { margin-right: .5rem; white-space: nowrap; }
.chips-row.marquee.rev { animation-direction: reverse; }
@keyframes slide { to { translate: -50% 0; } }
@media (hover: hover) and (pointer: fine) { .marquee-wrap:hover .marquee { animation-play-state: paused; } }

/* generation simulation */
.sim { max-width: 40rem; background: var(--panel); border: 1px solid var(--line); border-radius: .75rem; padding: 1.25rem; display: grid; gap: .625rem; position: relative; }
.sim-head { display: grid; gap: .75rem; margin-bottom: .25rem; }
.sim-status { display: flex; align-items: center; gap: .5rem; font-size: .9375rem; font-weight: 600; font-variant-numeric: tabular-nums; min-height: 1.5rem; }
.sim-status .spinner { margin: 0; }
.sim-status .spinner[hidden] { display: none; }
.sim-meter { height: .375rem; background: var(--line); border-radius: 999px; overflow: hidden; display: block; }
.sim-meter i { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); transition: transform 1s var(--ease); }
.sim-q { display: flex; gap: .75rem; padding: .75rem .875rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); opacity: 0; translate: 0 .5rem; transition: opacity .4s var(--ease), translate .5s var(--ease); font-size: .9375rem; }
.sim-q b { color: var(--soft); font-weight: 600; min-width: 1rem; }
.sim-q.in { opacity: 1; translate: 0 0; }
.sim-badge { justify-self: start; padding: .375rem .75rem; border-radius: var(--r); border: 1px solid var(--good); color: var(--good); font-size: .8125rem; font-weight: 600; opacity: 0; scale: .96; transition: opacity .3s, scale .3s var(--ease); }
.sim-badge.in { opacity: 1; scale: 1; }
.js.calm .sim-q, .js.calm .sim-badge { opacity: 1; translate: none; scale: 1; }

/* chat simulation */
.chatsim { background: var(--panel); border: 1px solid var(--line); border-radius: .75rem; padding: 1.25rem; min-height: 17rem; display: flex; flex-direction: column; justify-content: flex-end; }
.chatsim-log { display: flex; flex-direction: column; gap: .5rem; }
.chatsim .bubble { animation: none; }
.chatsim .bubble.pop { animation: pop-in .35s var(--ease) both; }
.chatsim .bubble.user { transform-origin: 100% 100%; } .chatsim .bubble.assistant { transform-origin: 0 100%; }
@keyframes pop-in { from { opacity: 0; scale: .92; translate: 0 .375rem; } to { opacity: 1; scale: 1; translate: 0 0; } }
.dots { display: inline-flex; gap: .25rem; align-items: center; height: 1.25rem; }
.dots i { width: .375rem; height: .375rem; border-radius: 50%; background: var(--soft); animation: bob 1s var(--ease) infinite; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes bob { 0%, 70%, 100% { translate: 0 0; opacity: .5; } 35% { translate: 0 -.25rem; opacity: 1; } }

/* timeline + closing */
.timeline li { transition: border-color .6s var(--ease); }
.timeline li.in { border-top-color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  .chips-row.marquee { animation: none; }
  .demo .try::before, .dots i { animation: none; }
  .scroll-progress { transition: none; }
}
