/* The LCOA site. Nothing is loaded from another site: system fonts for text, Geist Mono (OFL, served
   from here) for labels and numbers. Dark by default, light when the system asks for it.
   Motion lives under html.motion, which assets/early.js sets only when reduced motion isn't asked for. */

@font-face {
  font-family: "Geist Mono";
  src: url("fonts/GeistMono-Latin.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0f0e0d;
  --bg-2: #171614;
  --bg-3: #211f1c;
  --line: #2a2825;
  --line-2: #3d3a35;
  --text: #f1eee8;
  --text-2: #bab4a9;
  --text-3: #8c867c;
  --red: #f0482b;
  --chip: #ec3013;
  --ok: #7cc0a8;
  --button: #f1eee8;
  --button-text: #12110f;
  --s1: #3987e5;
  --s2: #d95926;
  --s3: #199e70;
  --track: #2a2825;
  --field: 241, 238, 232;

  --display: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", system-ui, Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace;

  --w: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --r: 8px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #f6f4ef;
    --bg-2: #eeebe4;
    --bg-3: #e5e1d8;
    --line: #dfd9ce;
    --line-2: #c9c2b4;
    --text: #171613;
    --text-2: #48443d;
    --text-3: #66615a;
    --red: #c42a12;
    --ok: #2c6e63;
    --button: #171613;
    --button-text: #f6f4ef;
    --s1: #2a78d6;
    --s2: #eb6834;
    --s3: #1baf7a;
    --track: #e2ddd3;
    --field: 23, 22, 19;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--red); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--red); color: #fff; }
code, kbd, .mono { font-family: var(--mono); font-size: 0.88em; }
kbd { border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 4px; padding: 0 5px; font-size: 0.8em; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; }

.wrap { width: min(100% - 2 * var(--gutter), var(--w)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--button); color: var(--button-text); padding: 8px 12px; z-index: 30; }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- type ---------- */
.display, .h1, .h2 { font-family: var(--display); font-weight: 600; color: var(--text); text-wrap: balance; }
h1.display, .h1 { font-size: clamp(46px, 7.2vw, 100px); line-height: 0.98; letter-spacing: -0.045em; }
h2.display, .h2 { font-size: clamp(34px, 4.6vw, 62px); line-height: 1.02; letter-spacing: -0.038em; }
h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.012em; line-height: 1.35; }
.lead { font-size: clamp(17px, 1.5vw, 19.5px); color: var(--text-2); line-height: 1.55; max-width: 38em; }
.small { font-size: 14px; color: var(--text-3); }
.label, .eyebrow { font: 500 11.5px/1.4 var(--mono); color: var(--text-3); letter-spacing: 0.07em; text-transform: uppercase; }
.eyebrow { display: block; margin-bottom: 22px; }
.arrow::after { content: "\2192"; display: inline-block; margin-left: 6px; transition: transform 400ms var(--ease); }
.arrow:hover::after { transform: translateX(4px); }

/* ---------- motion ---------- */
.motion .rv { opacity: 0; transform: translateY(22px); transition: opacity 900ms var(--ease), transform 900ms var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.motion .rv.is-in { opacity: 1; transform: none; }
.rise .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.rise .w > span { display: inline-block; }
.motion .rise .w > span { transform: translateY(108%); transition: transform 1100ms var(--ease); transition-delay: calc(var(--i, 0) * 45ms); }
.motion .rise.is-in .w > span { transform: none; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: transparent; border-bottom: 1px solid transparent; transition: background 300ms, border-color 300ms; }
.site-header.scrolled { background: var(--bg); border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 36px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 600 18px/1 var(--display); letter-spacing: -0.02em; }
.brand svg { width: 24px; height: 24px; transition: transform 700ms var(--ease); }
.brand:hover svg { transform: rotate(90deg); }
.nav { display: flex; gap: 28px; margin-left: auto; font-size: 14.5px; }
.nav a { text-decoration: none; color: var(--text-2); background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; padding-bottom: 2px; transition: background-size 400ms var(--ease), color 200ms; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background-size: 100% 1px; }
@media (max-width: 900px) {
  .nav { display: none; }
  .site-header .button { margin-left: auto; }
}

/* ---------- buttons ---------- */
.button {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--button); color: var(--button-text);
  border: 1px solid var(--button); border-radius: var(--r); padding: 12px 18px;
  font: 600 15px/1.25 var(--sans); text-decoration: none; cursor: pointer;
}
.button.ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.button svg { width: 16px; height: 16px; flex: none; transition: transform 500ms var(--ease); }
.button:hover svg { transform: translateY(2px); }
.button .fill { position: absolute; inset: 0; z-index: -1; background: currentColor; opacity: 0.14; transform: translateY(101%); transition: transform 500ms var(--ease); border-radius: inherit; }
.button:hover .fill { transform: none; }
.button .roll { display: inline-flex; flex-direction: column; height: 1.25em; overflow: hidden; }
.button .roll > span { transition: transform 500ms var(--ease); }
.button:hover .roll > span { transform: translateY(-100%); }
.site-header .button { padding: 8px 14px; font-size: 14px; }

/* ---------- sections ---------- */
section { position: relative; padding-block: clamp(88px, 11vw, 152px); border-top: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px 72px; align-items: end; margin-bottom: clamp(44px, 6vw, 80px); }
.section-head .lead { margin: 0; }
@media (max-width: 900px) { .section-head { grid-template-columns: 1fr; } }

/* ---------- hero ---------- */
section.hero { border-top: 0; padding-top: clamp(40px, 7vw, 96px); padding-bottom: clamp(56px, 7vw, 96px); margin-top: -69px; padding-top: calc(69px + clamp(48px, 8vw, 112px)); overflow: hidden; }
.hero-field { position: absolute; inset: 0 0 auto 0; width: 100%; height: min(100%, 980px); pointer-events: none; -webkit-mask-image: linear-gradient(#000 45%, transparent); mask-image: linear-gradient(#000 45%, transparent); }
.hero .wrap { position: relative; }
.hero h1 { max-width: 13.5em; margin-bottom: clamp(28px, 4vw, 44px); }
.hero-row { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px 72px; align-items: end; margin-bottom: clamp(48px, 6vw, 72px); }
.hero-row .lead { margin: 0; }
.hero-cta { display: grid; gap: 14px; justify-items: start; }
.hero-cta .row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.hero-cta .small { margin: 0; }
@media (max-width: 900px) { .hero-row { grid-template-columns: 1fr; } }

/* ---------- the router console ---------- */
.console { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 40px 120px -40px rgb(0 0 0 / 0.55); }
.console-in { display: flex; flex-direction: column; min-width: 0; }
.console-out { display: flex; flex-direction: column; min-width: 0; border-left: 1px solid var(--line); background: var(--bg); }
@media (max-width: 900px) { .console { grid-template-columns: 1fr; } .console-out { border-left: 0; border-top: 1px solid var(--line); } }
.console-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--text-2); }
.console-head svg { width: 16px; height: 16px; }
.console-head .label { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; }
.console-head .live { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.motion .console-head .live { animation: blink 2.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.3; } }
.ask { padding: 18px 18px 12px; flex: 1; }
.ask textarea { width: 100%; min-height: 96px; resize: none; display: block; background: transparent; color: var(--text); border: 0; padding: 0; font: 19px/1.5 var(--sans); letter-spacing: -0.01em; }
.ask textarea::placeholder { color: var(--text-3); }
.ask textarea:focus { outline: none; }
.ask-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 0 14px 14px; }
.tool { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; background: transparent; color: var(--text-2); border: 1px solid var(--line-2); border-radius: var(--r); font: 500 13px/1 var(--sans); cursor: pointer; transition: color 200ms, border-color 200ms, background 200ms; }
.tool svg { width: 15px; height: 15px; }
.tool:hover { color: var(--text); border-color: var(--text-3); }
.tool[aria-pressed="true"] { color: var(--text); border-color: var(--text); background: var(--bg-3); }
.seg-label { font: 500 11px var(--mono); letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-3); margin-left: auto; }
.seg { position: relative; display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; }
.seg button { position: relative; z-index: 1; height: 30px; min-width: 40px; padding: 0 10px; background: transparent; color: var(--text-2); border: 0; font: 500 12px/1 var(--mono); cursor: pointer; transition: color 300ms; }
.seg button[aria-pressed="true"] { color: var(--bg); }
.seg .thumb { position: absolute; top: 0; bottom: 0; left: 0; background: var(--text); transition: transform 450ms var(--ease), width 450ms var(--ease); }
.ask-bar .button { padding: 7px 14px; font-size: 14px; }
.tries { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 18px 18px; border-top: 1px solid var(--line); }
.tries .label { width: 100%; margin-bottom: 2px; }
.try { background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; color: var(--text-2); font: 13.5px/1.3 var(--sans); cursor: pointer; text-align: left; transition: color 200ms, border-color 200ms, transform 300ms var(--ease); }
.try:hover { color: var(--text); border-color: var(--text-3); transform: translateY(-1px); }

.verdict { display: block; padding: 22px 22px 20px; flex: 1; min-height: 300px; }
.v-body { animation: rise 500ms var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.v-model { font: 600 clamp(28px, 3vw, 40px)/1.1 var(--display); letter-spacing: -0.03em; margin: 8px 0 6px; }
.v-model .small { font: 500 13px var(--mono); letter-spacing: 0; margin-left: 6px; }
.v-model.num { font-family: var(--mono); font-weight: 500; letter-spacing: -0.02em; }
.v-meta { color: var(--text-2); font-size: 14.5px; margin: 0 0 20px; }
.v-cols { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 20px 28px; }
@media (max-width: 560px) { .v-cols { grid-template-columns: 1fr; } }
.v-cols .label { margin-bottom: 10px; }
.weights, .rank { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.weights li, .rank li { display: grid; grid-template-columns: 64px 1fr 40px; align-items: center; gap: 10px; font-size: 13.5px; color: var(--text-2); }
.rank li { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 40px; }
.weights i, .rank i { display: block; height: 4px; background: var(--track); border-radius: 2px; overflow: hidden; }
.weights i::after, .rank i::after { content: ""; display: block; height: 100%; width: var(--v); background: var(--text-3); border-radius: 2px; transform-origin: left; }
.motion .weights i::after, .motion .rank i::after { animation: grow 900ms var(--ease) both; animation-delay: calc(var(--k, 0) * 60ms + 120ms); }
@keyframes grow { from { transform: scaleX(0); } }
.weights b, .rank b { font: 500 12px var(--mono); color: var(--text-2); text-align: right; }
.rank li span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank li:first-child span { color: var(--text); font-weight: 600; }
.rank li:first-child i::after { background: var(--red); }
.history { border-top: 1px solid var(--line); padding: 14px 22px 16px; }
.history[hidden] { display: none; }
.history ol { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 2px; }
.history button { display: flex; gap: 12px; width: 100%; text-align: left; background: none; border: 0; padding: 5px 0; color: var(--text-2); font: 14px/1.4 var(--sans); cursor: pointer; }
.history button span:first-child { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.history button span:last-child { color: var(--text-3); font: 12px var(--mono); white-space: nowrap; }
.history button:hover span:first-child { color: var(--text); }
.console-foot { margin: 16px 2px 0; font-size: 13.5px; color: var(--text-3); max-width: 62em; }

/* ---------- open-model strip ---------- */
.strip { border-top: 1px solid var(--line); padding: 30px 0 34px; }
.strip .eyebrow { margin-bottom: 18px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; gap: 56px; padding-right: 56px; }
.marquee-track span { font: 500 clamp(19px, 2vw, 24px)/1.2 var(--display); letter-spacing: -0.02em; color: var(--text-3); white-space: nowrap; transition: color 300ms; }
.marquee-track span:hover { color: var(--text); }
.motion .marquee-track { animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- product tour ---------- */
.tour { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0 clamp(40px, 6vw, 96px); }
.tour-list { list-style: none; margin: 0; padding: 0; }
.tour-step { padding: 34px 0 38px; border-top: 1px solid var(--line); min-height: 52vh; display: flex; flex-direction: column; justify-content: center; }
.tour-step:last-child { border-bottom: 1px solid var(--line); }
.tour-step .n { font: 500 12px var(--mono); color: var(--text-3); letter-spacing: 0.06em; }
.tour-step h3 { font: 600 clamp(26px, 2.6vw, 34px)/1.1 var(--display); letter-spacing: -0.03em; margin: 10px 0 14px; transition: color 500ms; }
.tour-step p { color: var(--text-2); font-size: 16px; max-width: 30em; transition: color 500ms; }
.tour-step .label { margin: 4px 0 0; }
.motion .tour-step:not(.on) h3 { color: var(--text-3); }
.motion .tour-step:not(.on) p { color: var(--text-3); }
.tour-stage { position: sticky; top: max(96px, calc(50vh - 260px)); height: 520px; align-self: start; }
.stage-frame { position: relative; height: 100%; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2); overflow: hidden; }
.stage-frame::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgb(var(--field) / 0.09) 1px, transparent 1.2px); background-size: 22px 22px; }
.stage-cap { margin-top: 12px; }
.tour-inline { display: none; position: relative; height: 380px; margin-top: 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); overflow: hidden; }
@media (max-width: 900px) {
  .tour { grid-template-columns: 1fr; }
  .tour-stage { display: none; }
  .tour-inline { display: block; }
  .tour-step { min-height: 0; }
  .motion .tour-step:not(.on) h3, .motion .tour-step:not(.on) p { color: inherit; }
}

/* scenes: simplified, animated illustrations of the app */
.scene { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: clamp(20px, 4vw, 48px); opacity: 0; transform: translateY(14px) scale(0.985); transition: opacity 600ms var(--ease), transform 800ms var(--ease); pointer-events: none; }
.scene.on { opacity: 1; transform: none; }
.scene > * { opacity: 0; }
.scene.on > * { animation: pop 700ms var(--ease) both; animation-delay: calc(var(--i, 0) * 420ms + 150ms); }
@keyframes pop { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.msg { max-width: 82%; padding: 11px 14px; border-radius: 12px; font-size: 14.5px; line-height: 1.45; }
.msg.you { align-self: flex-end; background: var(--bg-3); color: var(--text); border-bottom-right-radius: 4px; }
.msg.ai { align-self: flex-start; background: var(--bg); border: 1px solid var(--line); color: var(--text-2); border-bottom-left-radius: 4px; }
.msg .tag { display: block; font: 500 10.5px var(--mono); letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-3); margin-bottom: 4px; }
.msg b.mono { font: 500 22px var(--mono); color: var(--text); }
.typed { display: inline-block; white-space: nowrap; overflow: hidden; vertical-align: bottom; max-width: 100%; }
.scene.on .typed { animation: type 1.8s steps(34, end) both; animation-delay: calc(var(--i, 0) * 420ms + 450ms); }
@keyframes type { from { width: 0; } to { width: 36ch; } }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; font-size: 14px; }
.card-head { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); font: 500 12px var(--mono); color: var(--text-2); }
.card-head span { color: var(--text-3); }
.diff { margin: 0; padding: 12px 14px; font: 13px/1.7 var(--mono); white-space: pre; overflow: hidden; border: 0; background: none; border-radius: 0; }
.diff .del { color: #e66767; }
.diff .add { color: var(--ok); }
.card-actions { display: flex; gap: 8px; padding: 0 14px 14px; }
.pill { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 6px; font-size: 13px; color: var(--text-2); }
.pill.solid { background: var(--text); border-color: var(--text); color: var(--bg); font-weight: 600; }
.status { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-2); }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.row-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; }
.moves { list-style: none; margin: 0; padding: 6px 14px 12px; font-size: 13.5px; }
.moves li { display: grid; grid-template-columns: minmax(0, 1fr) 20px 96px; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); color: var(--text-2); }
.moves li:last-child { border-bottom: 0; }
.moves li span:first-child { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.moves i { color: var(--text-3); font-style: normal; }
.wave { display: flex; align-items: center; justify-content: center; gap: 6px; height: 160px; }
.wave i { width: 6px; height: 100%; border-radius: 3px; background: var(--text); transform: scaleY(0.12); }
.scene.on .wave i { animation: bar 1.1s ease-in-out infinite alternate; animation-delay: calc(var(--k) * -137ms); }
@keyframes bar { 0% { transform: scaleY(0.12); } 100% { transform: scaleY(var(--h)); } }
.voice-dot { align-self: center; width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; }
.voice-dot svg { width: 22px; height: 22px; }
.center { align-self: center; text-align: center; }
.today { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.today li { display: grid; grid-template-columns: 54px 18px 1fr; align-items: center; gap: 10px; padding: 12px 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; font-size: 14.5px; }
.today time { font: 500 12.5px var(--mono); color: var(--text-3); }
.today .box { width: 16px; height: 16px; border: 1.5px solid var(--text-3); border-radius: 4px; position: relative; }
.today li.done .box { border-color: var(--ok); }
.today li.done .box::after { content: ""; position: absolute; left: 4px; top: 1px; width: 4px; height: 8px; border: solid var(--ok); border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); }
.scene.on .today li.done .box::after { animation: tick 400ms var(--ease) 1.6s forwards; }
@keyframes tick { to { transform: rotate(45deg) scale(1); } }
.today li .what { position: relative; }
.today li.done .what::after { content: ""; position: absolute; left: 0; right: 0; top: 52%; height: 1px; background: var(--text-3); transform: scaleX(0); transform-origin: left; }
.scene.on .today li.done .what::after { animation: strike 500ms var(--ease) 1.9s forwards; }
@keyframes strike { to { transform: scaleX(1); } }
.today small { color: var(--text-3); margin-left: 6px; }
.page { position: relative; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 22px 22px 70px; font-size: 14.5px; color: var(--text-3); line-height: 1.7; }
.page .bar { height: 8px; border-radius: 4px; background: var(--bg-3); margin-bottom: 10px; }
.page mark { background: transparent; color: var(--text); background-image: linear-gradient(rgb(57 135 229 / 0.35), rgb(57 135 229 / 0.35)); background-size: 0 100%; background-repeat: no-repeat; }
.scene.on .page mark { animation: sel 700ms var(--ease) 700ms forwards; }
@keyframes sel { to { background-size: 100% 100%; } }
.pop { position: absolute; left: 22px; bottom: 18px; display: flex; gap: 4px; padding: 5px; background: var(--bg-3); border: 1px solid var(--line-2); border-radius: 8px; box-shadow: 0 12px 30px rgb(0 0 0 / 0.3); opacity: 0; }
.scene.on .pop { animation: pop 600ms var(--ease) 1.3s both; }
.pop span { padding: 5px 10px; border-radius: 5px; font-size: 13px; color: var(--text); }
.pop span:first-child { background: var(--bg); }
.pop kbd { align-self: center; margin: 0 4px 0 6px; color: var(--text-3); }

/* ---------- the real screenshot ---------- */
.shot { margin: clamp(64px, 9vw, 120px) 0 0; }
.shot-frame { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #f4f2ee; transform-origin: 50% 0; will-change: transform; }
.shot-frame img { width: 100%; height: auto; }
.shot figcaption { margin-top: 14px; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border-top: 1px solid var(--line-2); }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
caption { text-align: left; color: var(--text-3); font-size: 13.5px; caption-side: bottom; padding-top: 12px; }
th, td { text-align: left; padding: 13px 16px 13px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font: 500 11px/1.4 var(--mono); color: var(--text-3); letter-spacing: 0.07em; text-transform: uppercase; white-space: nowrap; }
tbody th { font-weight: 600; white-space: nowrap; }
tbody tr { transition: background 200ms; }
tbody tr:hover { background: var(--bg-2); }
td { color: var(--text-2); }
td.num, th.num { text-align: right; font-family: var(--mono); font-size: 13px; white-space: nowrap; }
td.strong { color: var(--text); }

/* ---------- models ---------- */
.models-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(56px, 7vw, 88px); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px 72px; padding-top: 28px; border-top: 1px solid var(--line); }
.split > div:first-child p { color: var(--text-2); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li { font-size: 14px; color: var(--text-2); padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; }
.chips b { color: var(--text); font-weight: 600; }
.worms { columns: 2; column-gap: 40px; margin: 0; padding: 0; list-style: none; }
.worms li { break-inside: avoid; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--text-2); }
@media (max-width: 560px) { .worms { columns: 1; } }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: clamp(56px, 7vw, 88px); }
.stats > div { padding: 28px 24px 26px 0; }
.stats > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.stats b { display: block; font: 600 clamp(38px, 4.4vw, 60px)/1 var(--display); letter-spacing: -0.04em; margin-bottom: 12px; font-variant-numeric: tabular-nums; }
.stats span { display: block; font-size: 14px; color: var(--text-2); }
.stats small { display: block; margin-top: 6px; font: 500 11px/1.45 var(--mono); letter-spacing: 0.04em; color: var(--text-3); }
@media (max-width: 900px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stats > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .stats > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

/* ---------- charts ---------- */
.chart { margin: 0; }
.chart-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 24px; margin-bottom: 20px; }
.chart-top h3 { margin-right: auto; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; list-style: none; font-size: 13.5px; color: var(--text-2); }
.legend li { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.toggle { background: none; border: 0; padding: 0; color: var(--text-2); font: 13.5px var(--sans); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); cursor: pointer; }
.toggle:hover { color: var(--text); text-decoration-color: var(--red); }

.dots { display: grid; gap: 20px; }
.dots-axis, .dot-group { display: grid; grid-template-columns: 180px minmax(0, 1fr) 120px; column-gap: 20px; align-items: center; }
.dots-axis { font: 11.5px var(--mono); color: var(--text-3); }
.dots-axis .ticks { position: relative; height: 16px; }
.dots-axis .ticks span { position: absolute; transform: translateX(-50%); }
.dots-axis .ticks span:first-child { transform: none; }
.dots-axis .ticks span:last-child { transform: translateX(-100%); }
.dot-group { padding-top: 14px; border-top: 1px solid var(--line); }
.dot-group > header { grid-column: 1; grid-row: 1 / span 3; }
.dot-group h4 { margin: 0; font-size: 14.5px; font-weight: 600; }
.dot-group p { margin: 0; font-size: 12.5px; color: var(--text-3); line-height: 1.35; }
.dot-row { display: contents; }
.dot-row .track { grid-column: 2; }
.dot-row .val { grid-column: 3; }
.track { position: relative; height: 20px; cursor: default; }
.track::before { content: ""; position: absolute; inset: 9.5px 0 auto; height: 1px; background: var(--track); }
.track .grid { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--track); opacity: 0.6; }
.track .ci { position: absolute; top: 9px; height: 2px; left: var(--l); width: var(--w); background: var(--c); opacity: 0.45; border-radius: 1px; transform-origin: left; }
.track .pt { position: absolute; top: 5px; left: var(--x); width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px var(--bg); }
.motion .anim .ci { transform: scaleX(0); transition: transform 1100ms var(--ease) calc(var(--d) * 1ms); }
.motion .anim .pt { left: 0; opacity: 0; transition: left 1300ms var(--ease) calc(var(--d) * 1ms), opacity 300ms calc(var(--d) * 1ms); }
.motion .anim.is-in .ci { transform: none; }
.motion .anim.is-in .pt { left: var(--x); opacity: 1; }
.dot-row .val { font: 12px var(--mono); color: var(--text-2); white-space: nowrap; }
.dot-row .val b { color: var(--text); font-weight: 500; }
@media (max-width: 640px) {
  .dots-axis, .dot-group { grid-template-columns: minmax(0, 1fr) 104px; column-gap: 14px; }
  .dots-axis > span:first-child { display: none; }
  .dot-group > header { grid-row: auto; grid-column: 1 / -1; margin-bottom: 6px; }
  .dot-row .track { grid-column: 1; }
  .dot-row .val { grid-column: 2; }
}

.tip { position: fixed; z-index: 40; pointer-events: none; background: var(--bg-3); color: var(--text); border: 1px solid var(--line-2); border-radius: var(--r); padding: 8px 10px; font-size: 13px; line-height: 1.45; max-width: 280px; box-shadow: 0 8px 28px rgb(0 0 0 / 0.3); }
.tip[hidden] { display: none; }
.tip b { display: block; font-weight: 600; }
.tip span { color: var(--text-2); }

.units { display: grid; gap: 22px; }
.unit-row { display: grid; grid-template-columns: 130px minmax(0, 1fr); align-items: center; gap: 8px 16px; }
.unit-row .val { grid-column: 2; font-size: 13.5px; color: var(--text-2); }
.unit-row h4 { margin: 0; font-size: 14.5px; font-weight: 600; }
.unit-row h4 small { display: block; font: 11.5px var(--mono); color: var(--text-3); font-weight: 400; }
.cells { display: grid; grid-template-columns: repeat(12, 22px); gap: 4px; }
.cells i { width: 22px; height: 22px; border-radius: 4px; border: 1.5px solid var(--text-3); position: relative; }
.cells i.first { background: var(--text); border-color: var(--text); }
.cells i.fixed { border-color: var(--text); }
.cells i.fixed::after { content: ""; position: absolute; inset: 4px; border-radius: 2px; background: var(--text-2); }
.motion .anim .cells i { opacity: 0; transform: scale(0.4); transition: opacity 400ms var(--ease), transform 600ms var(--ease); transition-delay: calc(var(--k) * 55ms + var(--r0, 0ms)); }
.motion .anim.is-in .cells i { opacity: 1; transform: none; }
.key { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 18px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--text-3); }
.key li { display: inline-flex; align-items: center; gap: 7px; }
.key i { width: 12px; height: 12px; border-radius: 3px; border: 1.5px solid var(--text-3); position: relative; }
.key i.first { background: var(--text); border-color: var(--text); }
.key i.fixed { border-color: var(--text); }
.key i.fixed::after { content: ""; position: absolute; inset: 2px; border-radius: 1px; background: var(--text-2); }
@media (max-width: 640px) {
  .unit-row { grid-template-columns: 1fr; }
  .unit-row .val { grid-column: 1; }
  .cells { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .cells i { width: auto; height: auto; aspect-ratio: 1; }
}

.bars { display: grid; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 130px 1fr 64px; align-items: center; gap: 16px; font-size: 14.5px; }
.bar-row span:first-child { font-weight: 600; }
.bar-row .bar { height: 14px; position: relative; }
.bar-row .bar i { position: absolute; left: 0; top: 0; bottom: 0; width: var(--v); background: var(--s1); border-radius: 0 4px 4px 0; min-width: 2px; transform-origin: left; }
.motion .anim .bar-row .bar i { transform: scaleX(0); transition: transform 1200ms var(--ease) calc(var(--k) * 90ms); }
.motion .anim.is-in .bar-row .bar i { transform: none; }
.bar-row b { font: 500 12.5px var(--mono); color: var(--text-2); }
@media (max-width: 560px) { .bar-row { grid-template-columns: 100px 1fr 56px; gap: 10px; } }

.bench-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(56px, 7vw, 88px) clamp(40px, 6vw, 88px); }
.bench-grid > .wide { grid-column: 1 / -1; }
@media (max-width: 980px) { .bench-grid { grid-template-columns: 1fr; } }
.caveat { border-left: 2px solid var(--red); padding: 2px 0 2px 18px; color: var(--text-2); font-size: 15px; max-width: 48em; }
.caveat p:last-child { margin: 0; }
.stat-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; border-top: 1px solid var(--line); padding-top: 20px; }
.stat-pair b { display: block; font: 600 44px/1 var(--display); letter-spacing: -0.04em; margin-bottom: 8px; }
.stat-pair span { font-size: 14px; color: var(--text-2); }

/* ---------- reach ---------- */
.reach { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.reach .meter { position: absolute; left: 0; top: -1px; height: 2px; width: 100%; background: var(--red); transform-origin: left; transform: scaleX(var(--m, 0.4)); transition: transform 700ms var(--ease); }
.reach li { border-right: 1px solid var(--line); }
.reach li:last-of-type { border-right: 0; }
.reach button { display: block; width: 100%; height: 100%; text-align: left; background: none; border: 0; color: inherit; padding: 22px 20px 26px; cursor: pointer; font: inherit; transition: background 300ms; }
.reach button:hover { background: var(--bg-2); }
.reach .n { font: 500 12px var(--mono); color: var(--text-3); }
.reach h3 { margin: 8px 0 10px; font: 600 22px/1.2 var(--display); letter-spacing: -0.02em; color: var(--text-3); transition: color 400ms; }
.reach p { margin: 0; font-size: 14px; color: var(--text-3); transition: color 400ms; }
.reach li.on h3 { color: var(--text); }
.reach li.on p { color: var(--text-2); }
@media (max-width: 900px) {
  .reach { grid-template-columns: 1fr; }
  .reach li { border-right: 0; border-bottom: 1px solid var(--line); }
  .reach .meter { display: none; }
  .reach li.at { box-shadow: inset 2px 0 0 var(--red); }
}
.sends { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; margin-top: clamp(56px, 7vw, 88px); }
.sends h3 { margin-bottom: 6px; }
.sends dl { margin: 0; }
.sends dt { font-weight: 600; padding-top: 16px; }
.sends dd { margin: 4px 0 0; padding-bottom: 16px; border-bottom: 1px solid var(--line); color: var(--text-2); font-size: 15px; }
@media (max-width: 900px) { .sends { grid-template-columns: 1fr; } .sends > div + div { margin-top: 40px; } }

/* ---------- download ---------- */
.downloads { display: grid; grid-template-columns: 2fr 1fr 1fr; border-top: 1px solid var(--line); }
.downloads > div { padding: 32px 32px 8px 0; }
.downloads > div + div { padding-left: 32px; border-left: 1px solid var(--line); }
.downloads h3 { margin-bottom: 10px; font: 600 26px/1.15 var(--display); letter-spacing: -0.025em; }
.downloads p { color: var(--text-2); font-size: 15px; }
.downloads ol { margin: 0 0 1em; padding-left: 20px; color: var(--text-2); font-size: 14.5px; }
.downloads ol li { margin-bottom: 6px; }
@media (max-width: 980px) {
  .downloads { grid-template-columns: 1fr; }
  .downloads > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- questions ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 44px 24px 0; position: relative; font: 600 clamp(18px, 1.6vw, 21px)/1.3 var(--display); letter-spacing: -0.015em; transition: color 200ms; }
.faq summary:hover { color: var(--text-2); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 1.5px; background: var(--text-2); transition: transform 500ms var(--ease); }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq details > div { padding: 0 0 26px; color: var(--text-2); max-width: 48em; }
.motion .faq details[open] > div { animation: rise 600ms var(--ease) both; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 44px 0 60px; font-size: 14px; color: var(--text-3); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-left: auto; }
.site-footer a { color: var(--text-2); text-decoration: none; }
.site-footer a:hover { color: var(--text); }

/* ---------- benchmarks page ---------- */
.page-head { padding-block: clamp(48px, 8vw, 112px) clamp(48px, 6vw, 80px); border-top: 0; }
.page-head h1 { margin-bottom: 24px; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0 0; padding: 0; list-style: none; font-size: 14px; }
.toc a { display: inline-block; color: var(--text-2); text-decoration: none; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; transition: color 200ms, border-color 200ms; }
.toc a:hover { color: var(--text); border-color: var(--text-3); }
.prose { max-width: 48em; color: var(--text-2); }
.prose strong { color: var(--text); }
pre { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; overflow-x: auto; font: 13.5px/1.7 var(--mono); color: var(--text-2); }
.stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(44px, 5vw, 72px); }
.stack .section-head { align-items: start; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition: none !important; }
  .scene > * { opacity: 1; }
  .wave i { transform: scaleY(var(--h)); }
}
@media (forced-colors: active) {
  .track .pt, .track .ci, .bar-row .bar i, .cells i.first, .reach .meter { forced-color-adjust: none; }
}

/* fixes after review */
.tour-step p.label { font-size: 11.5px; color: var(--text-3); }
code, kbd, pre, .mono, .label, .eyebrow, .diff { font-variant-ligatures: none; }
.reach button { display: flex; flex-direction: column; justify-content: flex-start; }

/* ---------- pages ---------- */
section.flush { border-top: 0; padding-top: 0; }
.page-head + section.flush { padding-top: clamp(8px, 2vw, 24px); }
.page-head h1 { max-width: 15em; }
.h3-title { font: 600 clamp(22px, 2.2vw, 28px)/1.2 var(--display); letter-spacing: -0.025em; margin-bottom: 18px; }
.muted { color: var(--text-3); }

/* the phone menu */
.menu-btn { display: none; margin-left: auto; height: 34px; padding: 0 12px; background: transparent; color: var(--text); border: 1px solid var(--line-2); border-radius: var(--r); font: 500 14px var(--sans); cursor: pointer; }
@media (max-width: 900px) {
  .menu-btn { display: inline-block; }
  .site-header .button { margin-left: 0; }
  .site-header.open { background: var(--bg); border-bottom-color: var(--line); }
  .site-header.open .nav { display: flex; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px var(--gutter) 20px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .site-header.open .nav a { padding: 14px 0; font-size: 18px; border-bottom: 1px solid var(--line); background: none; }
}

/* the home index: one line per page */
.index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.index li { border-bottom: 1px solid var(--line); }
.index a { display: grid; grid-template-columns: 56px minmax(0, 5fr) minmax(0, 6fr) 40px; align-items: center; gap: 12px 24px; padding: clamp(22px, 3vw, 34px) 8px; text-decoration: none; position: relative; isolation: isolate; }
.index a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--bg-2); transform: scaleY(0); transform-origin: bottom; transition: transform 500ms var(--ease); }
.index a:hover::before { transform: none; }
.index .n { font: 500 12px var(--mono); color: var(--text-3); }
.index .t { font: 600 clamp(30px, 4.4vw, 58px)/1 var(--display); letter-spacing: -0.04em; transition: transform 500ms var(--ease); }
.index a:hover .t { transform: translateX(10px); }
.index .d { color: var(--text-2); font-size: 15.5px; }
.index .go { font-size: 22px; color: var(--text-3); justify-self: end; transition: transform 500ms var(--ease), color 300ms; }
.index a:hover .go { transform: translateX(6px); color: var(--red); }
@media (max-width: 760px) {
  .index a { grid-template-columns: 40px minmax(0, 1fr) 24px; }
  .index .d { grid-column: 2 / 3; }
  .index .go { grid-row: 1; grid-column: 3; }
}
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 28px; }
.cta-band .row { display: flex; flex-wrap: wrap; gap: 12px; }
.stats + p { margin: 0; }

/* ---------- the model explorer ---------- */
.explorer { display: grid; grid-template-columns: minmax(240px, 300px) minmax(0, 1fr); border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2); overflow: hidden; }
.ex-list { display: flex; flex-direction: column; border-right: 1px solid var(--line); padding: 10px 0 14px; max-height: 860px; overflow-y: auto; }
.ex-group { padding: 16px 18px 6px; margin: 0; }
.ex-item { display: flex; align-items: center; gap: 12px; justify-content: space-between; width: 100%; padding: 9px 18px; background: none; border: 0; border-left: 2px solid transparent; color: var(--text-2); text-align: left; font: 14.5px/1.3 var(--sans); cursor: pointer; transition: background 200ms, color 200ms, border-color 300ms; }
.ex-item:hover { background: var(--bg-3); color: var(--text); }
.ex-item[aria-selected="true"] { background: var(--bg); color: var(--text); border-left-color: var(--red); }
.ex-name { min-width: 0; }
.ex-name small { display: block; font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ex-status { font: 500 10.5px var(--mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-3); white-space: nowrap; }
.spark { display: inline-flex; align-items: flex-end; gap: 2px; height: 18px; flex: none; }
.spark i { width: 4px; height: var(--v); min-height: 2px; background: var(--text-3); border-radius: 1px; }
.ex-item[aria-selected="true"] .spark i { background: var(--red); }
.ex-panel { padding: clamp(22px, 3vw, 36px); background: var(--bg); min-width: 0; }
.ex-top { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }
.ex-title { font: 600 clamp(28px, 3vw, 40px)/1.1 var(--display); letter-spacing: -0.03em; margin: 6px 0 8px; }
.ex-meta { color: var(--text-2); font-size: 14.5px; margin: 0; }
.ex-blurb { color: var(--text-3); font-size: 14.5px; margin: 8px 0 0; }
.ex-nav { display: flex; align-items: center; gap: 10px; flex: none; }
.ex-nav .tool { width: 34px; justify-content: center; padding: 0; font-size: 15px; }
.ex-note { margin-top: 20px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--r); color: var(--text-2); font-size: 14.5px; }
.ex-note b { color: var(--text); }
.ex-tests { margin-top: 26px; display: grid; gap: 4px; }
.ex-test { display: grid; grid-template-columns: 170px minmax(0, 1fr) 88px; gap: 18px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.ex-test h4 { margin: 0; font-size: 14.5px; font-weight: 600; }
.ex-test p { margin: 0; font-size: 12.5px; color: var(--text-3); line-height: 1.35; }
.ex-track { height: 22px; }
.ex-track .others { position: absolute; top: 5px; width: 2px; height: 12px; margin-left: -1px; background: var(--text-3); opacity: 0.45; border-radius: 1px; }
.ex-track .others.me { opacity: 0; }
.ex-track .ci { top: 10px; background: var(--red); opacity: 0.5; transition: left 700ms var(--ease), width 700ms var(--ease), opacity 300ms; }
.ex-track .pt { top: 6px; width: 12px; height: 12px; margin-left: -6px; background: var(--red); box-shadow: 0 0 0 3px var(--bg); transition: left 800ms var(--ease), opacity 300ms; }
.ex-test.empty .pt, .ex-test.empty .ci { opacity: 0; }
.ex-val { display: flex; flex-direction: column; align-items: flex-end; font-family: var(--mono); }
.ex-val b { font-size: 18px; font-weight: 500; color: var(--text); }
.ex-val span { font-size: 11.5px; color: var(--text-3); }
.ex-axis { margin: 10px 0 0; }
.ex-apps { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }
.ex-apps h4 { margin: 0 0 12px; font-size: 14.5px; font-weight: 600; }
.ex-apps .cells i { transition: background 400ms, border-color 400ms; }
.ex-apps .cells i.none { border-style: dashed; opacity: 0.4; }
.ex-apps-val { margin: 10px 0 0; }
.ex-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px 24px; margin: 26px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
.ex-facts dt { font: 500 11px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }
.ex-facts dd { margin: 4px 0 0; font-size: 14px; color: var(--text-2); }
@media (max-width: 900px) {
  .explorer { grid-template-columns: 1fr; }
  .ex-list { flex-direction: row; overflow-x: auto; max-height: none; border-right: 0; border-bottom: 1px solid var(--line); padding: 8px; gap: 6px; }
  .ex-group { display: none; }
  .ex-item { flex: none; width: auto; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; }
  .ex-item[aria-selected="true"] { border-color: var(--red); }
  .ex-item .spark, .ex-item .ex-status, .ex-name small { display: none; }
  .ex-test { grid-template-columns: minmax(0, 1fr) 72px; }
  .ex-test-name { grid-column: 1 / -1; }
}

/* the comparison table */
table.compare th small { display: block; font: 400 11.5px var(--sans); color: var(--text-3); margin-top: 2px; }
table.compare tbody tr { cursor: pointer; }
table.compare tbody tr:focus-visible { outline: 2px solid var(--red); outline-offset: -2px; }
.sort { background: none; border: 0; padding: 0; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; white-space: nowrap; }
.sort:hover { color: var(--text); }
td.cellbar { background-image: linear-gradient(rgb(240 72 43 / 0.55), rgb(240 72 43 / 0.55)); background-size: calc(var(--v) * 0.6) 2px; background-position: right 16px bottom 8px; background-repeat: no-repeat; }

/* ---------- pricing ---------- */
.period { display: inline-flex; gap: 0; margin-bottom: 18px; border: 1px solid var(--line-2); border-radius: 999px; padding: 3px; }
.period button { background: none; border: 0; border-radius: 999px; padding: 7px 16px; color: var(--text-2); font: 500 14px var(--sans); cursor: pointer; transition: background 300ms var(--ease), color 300ms; }
.period button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.period .save { font: 500 11px var(--mono); letter-spacing: 0.04em; margin-left: 6px; color: var(--red); }
.period button[aria-pressed="true"] .save { color: var(--bg); opacity: 0.75; }
/* Monthly or yearly: each price and button is written both ways, and the switch shows one. */
.plans[data-period="month"] .y, .plans[data-period="year"] .m { display: none; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.plan { display: flex; flex-direction: column; padding: clamp(22px, 3vw, 34px); background: var(--bg-2); }
.plan.featured { background: var(--bg); box-shadow: inset 0 2px 0 var(--red); }
.plan li.planned { font-style: italic; color: var(--text-3); }
.plan li.planned::before { background: transparent; border: 1px solid var(--text-3); }
.plan .buy > span { display: grid; }
.plan .price { font: 600 clamp(38px, 4vw, 52px)/1 var(--display); letter-spacing: -0.04em; margin: 10px 0 8px; }
.plan .price small { font: 500 15px var(--sans); letter-spacing: 0; color: var(--text-2); }
.plan ul { list-style: none; margin: 18px 0 22px; padding: 0; display: grid; gap: 10px; align-content: start; color: var(--text-2); font-size: 14.5px; flex: 1; }
.plan li { padding-left: 18px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 7px; height: 7px; border-radius: 2px; background: var(--text-3); }
.plan.featured li::before { background: var(--red); }
.plan.later li::before { background: transparent; border: 1px solid var(--text-3); }
.plan .buy { display: grid; gap: 8px; }
.plan .buy .button { justify-content: center; }
.button.disabled { opacity: 0.55; cursor: default; pointer-events: none; }
@media (max-width: 1100px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .plans { grid-template-columns: 1fr; } }

/* ---------- getting a licence ---------- */
.claim { display: grid; gap: 14px; max-width: 460px; }
.claim label { display: grid; gap: 6px; font-size: 14px; color: var(--text-2); }
.claim input, .claim-result textarea { width: 100%; padding: 11px 12px; background: var(--bg-2); color: var(--text); border: 1px solid var(--line-2); border-radius: var(--r); font: 15px var(--sans); }
.claim input:focus, .claim-result textarea:focus { outline: 2px solid var(--red); outline-offset: 1px; }
.claim .button { justify-self: start; }
.claim-note { min-height: 1.4em; margin: 0; }
.claim-result { margin-top: 36px; max-width: 640px; display: grid; gap: 12px; }
.claim-result textarea { font: 12.5px/1.5 var(--mono); resize: vertical; word-break: break-all; }
.row-actions { display: flex; align-items: center; gap: 16px; }
.claim-result ol { margin: 8px 0 0; padding-left: 20px; }
