@font-face {
  font-family: "Schibsted Grotesk";
  font-weight: 400 900;
  font-display: swap;
  src: url("/fonts/schibsted.woff2") format("woff2");
}
:root { --violet: #5b45e0; --ink: #17181c; --paper: #fff; --mist: #eef0f3; --done: #17724a; --wait: #8a4b00; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 1.0625rem/1.55 "Schibsted Grotesk", system-ui, sans-serif; color: var(--ink); background: var(--paper); }
a { color: var(--violet); }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }
.top, main > section, footer { padding-inline: max(1.25rem, calc((100% - 70rem) / 2)); }
.top { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: space-between; align-items: center; padding-block: 1rem; }
.brand { display: flex; gap: 0.6rem; align-items: center; font-weight: 800; color: var(--ink); text-decoration: none; }
nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
nav a { color: inherit; }
main > section { padding-block: 3.5rem; }
main > section#setup { background: var(--mist); }
h1 { font-size: clamp(2.25rem, 6vw, 4rem); line-height: 1.02; letter-spacing: -0.03em; font-weight: 850; margin: 0 0 1rem; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 1rem; }
h3 { font-size: 1.05rem; margin: 0 0 0.4rem; }
section p, li { max-width: 65ch; }
.note { font-size: 0.9rem; color: #50535c; }
.button { display: inline-block; background: var(--violet); color: #fff; text-decoration: none; font-weight: 700; padding: 0.75rem 1.4rem; border-radius: 0.6rem; }

.hero { display: grid; gap: 2.5rem; }
.pitch { max-width: 40rem; }

pre { background: var(--ink); color: #fff; padding: 1rem 1.2rem; border-radius: 0.75rem; overflow-x: auto; font-size: 0.9rem; max-width: 46rem; }
pre b { color: #b9adff; }
code { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; }
ol { padding-left: 1.2rem; }
ol > li { margin-bottom: 1.5rem; }
ol pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; min-width: 34rem; background: #fff; }
th, td { text-align: left; padding: 0.6rem 0.75rem; border-bottom: 1px solid #d5d8de; }
td.yes { color: var(--done); font-weight: 600; }
td.no { color: var(--wait); }
.plain { padding: 2rem max(1.25rem, calc((100% - 46rem) / 2)) 4rem; }

@media (min-width: 62rem) {
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Hero: the one bold, moving thing. */
.top { background: var(--violet); }
.top .brand, .top nav a { color: #fff; }
.top .brand img { outline: 2px solid #fff; border-radius: 8px; }
main > section.hero { background: var(--violet); color: #fff; grid-template-columns: minmax(0, 1fr); align-items: center; padding-block: 3rem 4.5rem; }
.hero :focus-visible, .top :focus-visible { outline-color: #fff; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero .button { background: #fff; color: var(--violet); transition: transform 0.15s; }
.hero .button.quiet { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px #fff; }
.hero .button:hover { transform: translateY(-2px); }
.flow { width: 100%; max-width: 30rem; justify-self: center; overflow: visible; }
.wire { fill: none; stroke: #ffffff55; stroke-width: 3; }
.pulse { fill: none; stroke: #fff; stroke-width: 6; stroke-linecap: round; stroke-dasharray: 12 200; stroke-dashoffset: 12; animation: travel 1.8s var(--d) ease-in-out 3 both; }
.chip rect { fill: #ffffff22; stroke: #fff; stroke-width: 2; animation: arrive 1.8s var(--d) 3 both; }
.chip text { fill: #fff; font-weight: 700; font-size: 17px; text-anchor: middle; animation: ink 1.8s var(--d) 3 both; }
@keyframes travel { to { stroke-dashoffset: -100; } }
@keyframes arrive { 0%, 55%, 100% { fill: #ffffff22; } 65%, 85% { fill: #fff; } }
@keyframes ink { 0%, 55%, 100% { fill: #fff; } 65%, 85% { fill: #5b45e0; } }
main > section#how { background: var(--paper); }
main > section#platforms { background: var(--mist); }
@media (min-width: 62rem) { main > section.hero { grid-template-columns: 1.1fr 1fr; } }
@media (prefers-reduced-motion: reduce) { .pulse { display: none; } .chip rect, .chip text, .hero .button { animation: none; transition: none; } }

main > section { padding-block: 4rem; }
@media (min-width: 62rem) {
  #private, #setup, #questions { display: grid; grid-template-columns: 1fr 2fr; column-gap: 3rem; align-content: start; }
  #private > *, #setup > *, #questions > * { grid-column: 2; }
  #private > h2, #setup > h2, #questions > h2 { grid-column: 1; grid-row: 1 / span 30; position: sticky; top: 1.5rem; align-self: start; }
}
#stage { max-width: 660px; }
.term .term-line { white-space: pre-wrap; line-height: 1.7; }
.term .term-you { color: #b9adff; }
.term .term-ok { color: #7ee2ac; }
@media (max-width: 40rem) {
  table { min-width: 0; font-size: 0.8rem; }
  th, td { padding: 0.5rem 0.3rem; }
}

.foot { background: var(--violet); color: #fff; overflow: hidden; text-align: center; padding: 4.5rem 1.25rem 2rem; }
.foot a { color: #fff; }
.foot :focus-visible { outline-color: #fff; }
.foot p { margin-inline: auto; }
.copy { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.5rem; margin: 1.5rem auto 0.75rem; max-width: 40rem; background: var(--ink); border-radius: 1rem; padding: 0.6rem 0.6rem 0.6rem 1.1rem; }
.copy code { flex: 1 1 14rem; text-align: left; overflow-wrap: anywhere; font-size: 0.9rem; }
.copy button { font: inherit; font-weight: 700; border: 0; border-radius: 0.6rem; padding: 0.55rem 1.1rem; background: #fff; color: var(--violet); cursor: pointer; }
.rail { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem 1.75rem; margin: 3rem auto; padding: 0; max-width: 52rem; }
.rail li { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 700; font-size: 0.95rem; opacity: 0.75; }
.rail.play li { animation: light 4s calc(var(--i) * 0.2s) 3; }
.rail:hover li { animation-play-state: paused; }
@keyframes light { 0%, 25%, 100% { opacity: 0.75; transform: none; } 10% { opacity: 1; transform: translateY(-5px); } }
.links { justify-content: center; gap: 0.5rem; }
.links a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 0.75rem; font-weight: 600; text-underline-offset: 0.25em; }
.foot .wordmark { display: flex; justify-content: center; align-items: center; gap: 0.02em; max-width: none; margin: 3rem 0 1rem; font-size: clamp(2.6rem, 12.5vw, 10.5rem); font-weight: 900; letter-spacing: -0.045em; line-height: 1; white-space: nowrap; }
.wordmark svg { width: 0.9em; height: 0.9em; margin-inline-start: -0.2em; flex: none; }
.foot .small { font-size: 0.85rem; }
@media (prefers-reduced-motion: reduce) { .rail.play li { animation: none; } }


.tag { display: inline-flex; align-items: center; gap: 0.5rem; }
.ico { flex: none; fill: var(--brand); }
.rail .ico { fill: currentColor; }
.chip .ico { width: 100%; height: 100%; fill: #fff; animation: ink 1.8s var(--d) 3 both; }
@media (max-width: 40rem) { tbody .tag { gap: 0.25rem; } tbody .ico { width: 14px; height: 14px; } }

/* Comfortable targets and a visible answer to every press. */
.skip { position: absolute; left: -999rem; }
.skip:focus { left: 0.5rem; top: 0.5rem; z-index: 2; background: #fff; padding: 0.5rem 1rem; }
.top nav { gap: 0.25rem; }
.top nav a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 0.6rem; }
.button, .copy button, .code button { min-height: 44px; }
.button:active, .copy button:active, .code button:active { transform: scale(0.96); }

/* Placeholders, only where something is still loading and only when scripts run. */
.js #stage:empty { display: block; border-radius: 0.5rem; background: linear-gradient(100deg, #e3e5ea 40%, #f4f5f7 50%, #e3e5ea 60%) 0 0 / 300% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
.js #stage:empty { aspect-ratio: 660 / 260; }
@media (max-width: 37rem) { .js #stage:empty { aspect-ratio: 340 / 290; } }
.js .chat { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); margin: -1px; padding: 0; }
.js .no-stage .chat { position: static; width: auto; height: auto; overflow-x: auto; clip-path: none; margin: 1em 0; padding: 1rem 1.2rem; }
.js .no-stage #stage { display: none; }

/* Docs */
.docs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; padding: 2rem max(1.25rem, calc((100% - 70rem) / 2)) 4rem; }
.toc { display: flex; flex-direction: column; flex-wrap: nowrap; gap: 0; align-self: start; }
.toc a { display: flex; align-items: center; min-height: 36px; padding-inline: 0.75rem; text-decoration: none; border-left: 2px solid #d5d8de; }
.toc a[aria-current] { border-color: var(--violet); color: var(--violet); font-weight: 700; }
.doc { min-width: 0; }
.doc section { scroll-margin-top: 1rem; padding-top: 2.5rem; }
.doc h2 { font-size: 1.5rem; }
.doc code { overflow-wrap: anywhere; font-size: 0.9em; }
.doc pre { margin: 0; white-space: pre-wrap; }
.doc pre code { font-size: inherit; }
.code { position: relative; margin-block: 1rem; max-width: 46rem; }
.code pre { padding-right: 6rem; }
.code button { position: absolute; top: 0.4rem; right: 0.4rem; font: inherit; font-size: 0.85rem; font-weight: 700; border: 0; border-radius: 0.5rem; padding-inline: 0.8rem; background: #fff; color: var(--ink); cursor: pointer; }
.doc details { border-bottom: 1px solid #d5d8de; max-width: 46rem; }
.doc summary { cursor: pointer; min-height: 48px; align-content: center; font-weight: 700; }
.doc details[open] { padding-bottom: 1rem; }
.doc table { min-width: 0; }
.doc dt { font-weight: 700; margin-top: 1rem; }
.doc dd { margin: 0; max-width: 65ch; }
.ref th { width: 14rem; }
@media (min-width: 62rem) {
  .docs { grid-template-columns: 15rem minmax(0, 1fr); gap: 3rem; }
  .toc { position: sticky; top: 1rem; }
}
@media (max-width: 40rem) { .ref th, .ref td { display: block; width: auto; } .ref th { border: 0; padding-bottom: 0; } }
@media (prefers-reduced-motion: reduce) { .chip .ico, .js #stage:empty { animation: none; } .button:active, .copy button:active, .code button:active { transform: none; } }
main.doc > section { background: none; padding: 2.5rem 0 0; }
@media (max-width: 61.99rem) {
  .toc { flex-direction: row; overflow-x: auto; min-width: 0; gap: 0.25rem; }
  .toc a { flex: none; min-height: 44px; border-left: 0; border-bottom: 2px solid #d5d8de; }
}
@media (max-width: 26rem) { .top nav a { padding-inline: 0.35rem; font-size: 0.95rem; } .top nav { gap: 0.1rem; } }
span.ico { width: 20px; height: 20px; }
@media (max-width: 40rem) { tbody span.ico { width: 14px; height: 14px; } }
.top nav .ico, .hero .button .ico { fill: currentColor; }
.top nav a { gap: 0.35rem; }
.hero .button { display: inline-flex; align-items: center; gap: 0.5rem; }
