/* NextBench. Ghaf green on a cool sage-white. The search box is the product: everything else stays quiet. */
:root {
  --paper: #f5f7f4;
  --surface: #ffffff;
  --sunk: #eef2ee;
  --ink: #16211c;
  --muted: #59655f;
  --line: #dde3dd;
  --line-strong: #c4cec6;
  --accent: #0e6b4f;
  --accent-deep: #09523c;
  --accent-soft: #e2efe7;
  --on-accent: #ffffff;
  --sand: #c8923f;
  --sand-soft: #f6ecd9;
  --r-out: #0b6a45; --r-out-bg: #dcf0e4; --r-out-edge: #13915f;
  --r-vg: #2d7a31;  --r-vg-bg: #e6f2e1;  --r-vg-edge: #63a85a;
  --r-good: #275aa6; --r-good-bg: #e5ecf8; --r-good-edge: #6f97d6;
  --r-acc: #8f5b00; --r-acc-bg: #f8eed8; --r-acc-edge: #d9a74a;
  --r-weak: #a5302b; --r-weak-bg: #f8e2df; --r-weak-edge: #d9706a;
  --r-none-edge: #c4cec6;
  --lift: 0 1px 2px rgba(22, 33, 28, .05), 0 12px 32px -16px rgba(22, 33, 28, .22);
  --display: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --body: "Public Sans", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0f1512; --surface: #161e1a; --sunk: #1b2520; --ink: #e8ece8; --muted: #a2ada6;
    --line: #26312b; --line-strong: #37443c;
    --accent: #6fcca2; --accent-deep: #8fdab7; --accent-soft: #163628; --on-accent: #08130e;
    --sand: #d9a85a; --sand-soft: #33280f;
    --r-out: #7fd8ac; --r-out-bg: #123425; --r-out-edge: #3fb47f;
    --r-vg: #9ad49c; --r-vg-bg: #1a3120; --r-vg-edge: #69ad6b;
    --r-good: #a2c0f2; --r-good-bg: #192944; --r-good-edge: #5f88cc;
    --r-acc: #f0c26d; --r-acc-bg: #372a10; --r-acc-edge: #c7963d;
    --r-weak: #f19b96; --r-weak-bg: #3b1a18; --r-weak-edge: #c25f59;
    --r-none-edge: #37443c;
    --lift: 0 1px 2px rgba(0, 0, 0, .3), 0 14px 34px -16px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}

/* base */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
html, body { margin: 0; }
body { background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; text-wrap: balance; margin: 0; font-weight: 700; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-deep); }
img, svg { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent-soft); }
.num { font-variant-numeric: tabular-nums; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 520px) { .wrap { padding: 0 16px; } }
.narrow { max-width: 760px; }
.meta { color: var(--muted); font-size: 14.5px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--accent); color: var(--on-accent); padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }

/* header */
.top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.top.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -18px rgba(22, 33, 28, .5); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 800; font-size: 21px; letter-spacing: -0.03em; }
.logo:hover { color: var(--ink); }
.logo svg { width: 30px; height: 30px; flex: none; }
.logo .b { color: var(--accent); }
.nav { display: flex; gap: 4px; font-size: 15px; align-items: center; }
.nav a { color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 8px; transition: color .15s, background-color .15s; white-space: nowrap; }
.nav a:hover { color: var(--ink); background: var(--sunk); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.soon { font-size: 11.5px; font-weight: 600; background: var(--sand-soft); color: #7a5419; padding: 1px 7px; border-radius: 999px; margin-left: 6px; vertical-align: 1px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .soon { color: var(--sand); } }
.menu-btn { display: none; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 8px 12px; font-weight: 600; font-size: 14.5px; cursor: pointer; }
.menu-btn svg { width: 18px; height: 18px; }
@media (max-width: 820px) {
  .menu-btn { display: inline-flex; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; display: grid; gap: 2px; padding: 8px 16px 16px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px -24px rgba(22, 33, 28, .5);
    opacity: 0; transform: translateY(-6px); pointer-events: none; visibility: hidden; transition: opacity .18s var(--ease), transform .18s var(--ease), visibility 0s .18s; }
  .top.open .nav { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition: opacity .18s var(--ease), transform .18s var(--ease); }
  .nav a { padding: 12px; font-size: 16px; }
}
.banner { background: var(--sand-soft); color: #7a5419; font-size: 14px; padding: 8px 0; }
.banner[hidden] { display: none; }

/* footer */
footer.site { border-top: 1px solid var(--line); padding: 44px 0 88px; color: var(--muted); font-size: 14.5px; background: var(--surface); }
footer.site .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 28px; }
@media (max-width: 760px) { footer.site .cols { grid-template-columns: 1fr 1fr; } footer.site .cols > :first-child { grid-column: 1 / -1; } }
footer.site h3 { font-family: var(--body); font-size: 14.5px; font-weight: 600; color: var(--ink); margin-bottom: 10px; }
footer.site ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
footer.site a { color: var(--muted); text-decoration: none; }
footer.site a:hover { color: var(--ink); text-decoration: underline; }
footer.site .legal { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 18px; display: grid; gap: 6px; font-size: 13.5px; }

/* buttons + chips */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 10px; padding: 11px 18px; font-weight: 600; font-size: 15px; line-height: 1.2; cursor: pointer; text-decoration: none; transition: background-color .15s, border-color .15s, color .15s, transform .1s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-deep); color: var(--on-accent); }
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--line-strong); background: var(--sunk); color: var(--ink); }
.btn-ghost[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 8px 13px; font-size: 14px; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 4px 4px 4px 12px; font-size: 14px; font-weight: 600; }
.chip b { font-weight: 500; color: var(--muted); }
.chip button { border: 0; background: transparent; color: var(--muted); cursor: pointer; width: 24px; height: 24px; border-radius: 50%; line-height: 1; font-size: 16px; display: grid; place-items: center; }
.chip button:hover { background: var(--sunk); color: var(--ink); }
@media (prefers-reduced-motion: no-preference) { .chip { animation: chip-in .22s var(--ease) both; } }
@keyframes chip-in { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }

/* hero: the search instrument */
.hero { padding: 56px 0 36px; }
@media (max-width: 560px) { .hero { padding: 32px 0 24px; } .hero .lede { font-size: 17px; margin: 14px 0 22px; } }
.hero h1 { font-size: clamp(36px, 5.4vw, 64px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.02; max-width: 19ch; }
.hero .lede { color: var(--muted); max-width: 56ch; margin: 18px 0 28px; font-size: 18px; line-height: 1.55; }
.instrument { max-width: 880px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 18px; box-shadow: var(--lift); transition: border-color .2s, box-shadow .2s; }
.instrument:focus-within { border-color: var(--accent); box-shadow: var(--lift), 0 0 0 4px var(--accent-soft); }
.ask { display: flex; gap: 10px; align-items: center; padding: 8px 8px 8px 20px; }
.ask svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
.ask input { flex: 1; border: 0; background: transparent; font-size: 18px; padding: 12px 0; min-width: 0; }
.ask input::placeholder { color: var(--muted); }
.ask input:focus { outline: none; }
.ask .btn { padding: 13px 22px; border-radius: 12px; font-size: 16px; }
.understood { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px 16px 14px 20px; min-height: 58px; border-top: 1px dashed var(--line); background: var(--sunk); border-radius: 0 0 18px 18px; }
.understood > span:first-child { font-size: 14px; color: var(--muted); margin-right: 2px; }
@media (max-width: 560px) {
  .ask { flex-wrap: wrap; padding: 8px; }
  .ask svg { display: none; }
  .ask input { padding: 10px 10px; width: 100%; font-size: 17px; }
  .ask .btn { width: 100%; }
  .understood { padding: 12px; }
}
.examples { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; max-width: 880px; align-items: center; }
.examples span { color: var(--muted); font-size: 14px; margin-right: 2px; }
.ex { background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px; font-size: 14px; cursor: pointer; color: var(--muted); transition: border-color .15s, color .15s, background-color .15s; text-align: left; }
.ex:hover { border-color: var(--accent); color: var(--accent); background: var(--surface); }
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 28px; padding: 0; margin: 26px 0 0; font-size: 14px; color: var(--muted); }
.facts li { display: inline-flex; align-items: center; gap: 8px; }
.facts li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.facts strong { color: var(--ink); font-weight: 600; }

/* finder */
.main { display: grid; grid-template-columns: 272px minmax(0, 1fr); gap: 32px; padding-top: 8px; padding-bottom: 64px; align-items: start; scroll-margin-top: 80px; }
@media (max-width: 880px) { .main { grid-template-columns: 1fr; gap: 16px; } }
.rail { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; display: grid; gap: 16px; position: sticky; top: 88px; }
.rail h2 { font-size: 17px; }
.rail-toggle { display: none; }
.rail-body { display: grid; gap: 16px; }
@media (max-width: 880px) {
  .rail { position: static; padding: 0; gap: 0; overflow: hidden; }
  .rail h2 { display: none; }
  .rail-toggle { display: flex; width: 100%; justify-content: space-between; align-items: center; background: none; border: 0; padding: 14px 16px; font-weight: 600; cursor: pointer; }
  .rail-toggle .count { color: var(--muted); font-weight: 500; font-size: 14px; }
  .rail-toggle svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
  .rail.open .rail-toggle svg { transform: rotate(180deg); }
  .rail-body { display: none; padding: 4px 16px 18px; gap: 14px; border-top: 1px solid var(--line); }
  .rail.open .rail-body { display: grid; }
}
.field { display: grid; gap: 6px; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.field select, .field input, .field textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2359655f'%3E%3Cpath d='M5.3 7.3a1 1 0 0 1 1.4 0L10 10.6l3.3-3.3a1 1 0 1 1 1.4 1.4l-4 4a1 1 0 0 1-1.4 0l-4-4a1 1 0 0 1 0-1.4z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 18px; }
.field select:hover, .field input:hover, .field textarea:hover { border-color: var(--muted); }
.field select:focus, .field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; cursor: pointer; }
.check input { margin: 2px 0 0; flex: none; width: 18px; height: 18px; accent-color: var(--accent); }
.linkbtn { justify-self: start; background: none; border: 0; color: var(--accent); cursor: pointer; padding: 0; font-weight: 600; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.resbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.resbar h2 { font-size: 22px; letter-spacing: -0.02em; }
.resbar .field { grid-auto-flow: column; align-items: center; gap: 10px; }
.resbar .field label { color: var(--muted); font-weight: 500; }
.resbar select { width: auto; }
.list { display: grid; gap: 12px; }

/* result card. The left edge carries the KHDA rating colour. */
.card { --edge: var(--r-none-edge); position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px 18px 26px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 24px; transition: border-color .15s; overflow: hidden; }
.card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--edge); }
.card:hover { border-color: var(--line-strong); }
.card[data-r="Outstanding"] { --edge: var(--r-out-edge); }
.card[data-r="VeryGood"] { --edge: var(--r-vg-edge); }
.card[data-r="Good"] { --edge: var(--r-good-edge); }
.card[data-r="Acceptable"] { --edge: var(--r-acc-edge); }
.card[data-r="Weak"], .card[data-r="VeryWeak"] { --edge: var(--r-weak-edge); }
.card.top-pick { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
@media (max-width: 620px) { .card { grid-template-columns: 1fr; padding: 18px 16px 16px 21px; } }
.card h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.015em; }
.card .meta { margin-top: 2px; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pill { font-size: 12.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px; line-height: 1.5; }
.pill.sample { background: var(--sunk); color: var(--muted); }
.pill.seats { background: var(--r-vg-bg); color: var(--r-vg); }
.pill.wait { background: var(--r-acc-bg); color: var(--r-acc); }
.pill.pick { background: var(--accent); color: var(--on-accent); }
.pill.feat { background: var(--sand-soft); color: #7a5419; }
.r-Outstanding { background: var(--r-out-bg); color: var(--r-out); }
.r-VeryGood { background: var(--r-vg-bg); color: var(--r-vg); }
.r-Good { background: var(--r-good-bg); color: var(--r-good); }
.r-Acceptable { background: var(--r-acc-bg); color: var(--r-acc); }
.r-Weak, .r-VeryWeak { background: var(--r-weak-bg); color: var(--r-weak); }
.r-None { background: var(--sunk); color: var(--muted); }
.money { text-align: right; align-self: start; }
@media (max-width: 620px) { .money { text-align: left; margin-top: 10px; } }
.money .big { font-variant-numeric: lining-nums proportional-nums; font-family: var(--display); font-size: 25px; font-weight: 700; letter-spacing: -0.025em; line-height: 1.15; }
.money .big small { font-family: var(--body); font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-right: 4px; }
.money .small { font-size: 13.5px; color: var(--muted); }
.why { grid-column: 1 / -1; font-size: 14px; color: var(--muted); margin-top: 12px; }
.why strong { color: var(--ink); font-weight: 600; }
.actions { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); align-items: center; }
details.cost { grid-column: 1 / -1; font-size: 14px; margin-top: 8px; }
details.cost summary { cursor: pointer; color: var(--accent); font-weight: 600; list-style: none; display: inline-flex; align-items: center; gap: 6px; }
details.cost summary::-webkit-details-marker { display: none; }
details.cost summary::before { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .2s var(--ease); margin-right: 2px; }
details.cost[open] summary::before { transform: rotate(45deg); }
.costtable { width: 100%; max-width: 440px; border-collapse: collapse; margin-top: 10px; }
.costtable td { padding: 6px 0; border-bottom: 1px solid var(--line); }
.costtable td:last-child { text-align: right; }
.costtable tr.total td { font-weight: 700; border-bottom: 0; }
.empty { background: var(--surface); border: 1px dashed var(--line-strong); border-radius: 14px; padding: 28px; display: grid; gap: 10px; justify-items: start; }
.empty h3 { font-size: 20px; }
.more { margin-top: 16px; display: flex; justify-content: center; }

/* loading placeholders */
.skel { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; display: grid; gap: 10px; }
.skel i { display: block; height: 12px; border-radius: 6px; background: var(--sunk); }
.skel i:nth-child(1) { width: 46%; height: 18px; }
.skel i:nth-child(2) { width: 28%; }
.skel i:nth-child(3) { width: 64%; margin-top: 8px; }
@media (prefers-reduced-motion: no-preference) {
  .skel i { background: linear-gradient(90deg, var(--sunk) 0%, var(--line) 50%, var(--sunk) 100%); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; }
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* compare */
.cmpbar { position: sticky; bottom: 12px; z-index: 20; margin: 0 auto; max-width: 720px; padding: 0 12px; }
.cmpbar[hidden] { display: none; }
.cmpbar .wrap { background: var(--ink); color: var(--paper); border-radius: 14px; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .5); display: flex; gap: 12px; align-items: center; justify-content: space-between; min-height: 60px; flex-wrap: wrap; padding: 10px 12px 10px 20px; }
@media (prefers-reduced-motion: no-preference) { .cmpbar:not([hidden]) .wrap { animation: bar-in .25s var(--ease) both; } }
@keyframes bar-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.cmpbar .btn-primary { background: var(--paper); color: var(--ink); }
.cmpbar .btn-primary:hover { background: var(--accent-soft); color: var(--ink); }
.cmpbar .btn-ghost { background: transparent; color: inherit; border-color: rgba(255, 255, 255, .3); }
.cmpbar .btn-ghost:hover { border-color: rgba(255, 255, 255, .6); background: transparent; color: inherit; }
.compare { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; margin-top: 24px; scroll-margin-top: 88px; }
.compare h2 { font-size: 22px; margin-bottom: 14px; }
.tablewrap { overflow-x: auto; }
.cmp { border-collapse: collapse; min-width: 560px; width: 100%; font-size: 15px; }
.cmp th, .cmp td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmp th[scope="row"] { color: var(--muted); font-weight: 600; width: 170px; }
.cmp thead th { font-family: var(--display); font-size: 16px; }
.best { color: var(--r-vg); font-weight: 700; }

/* sections */
.section { padding: 80px 0; border-top: 1px solid var(--line); }
@media (max-width: 760px) { .section { padding: 56px 0; } }
.section h2 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 700; letter-spacing: -0.03em; max-width: 22ch; }
.section .lede { color: var(--muted); max-width: 58ch; margin: 14px 0 28px; font-size: 17px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid2 { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 880px) { .grid3, .grid2 { grid-template-columns: 1fr; gap: 28px; } }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 26px; display: grid; gap: 10px; align-content: start; }
.tile h3 { font-size: 19px; letter-spacing: -0.015em; }
.tile .price { font-variant-numeric: lining-nums proportional-nums; font-family: var(--display); font-size: 30px; font-weight: 800; letter-spacing: -0.03em; }
.tile ul { margin: 4px 0 0; padding-left: 18px; color: var(--muted); font-size: 15px; display: grid; gap: 6px; }
.tile.feature { border: 2px solid var(--accent); }
.points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
@media (max-width: 880px) { .points { grid-template-columns: 1fr; gap: 28px; } }
.points > div { border-top: 2px solid var(--ink); padding-top: 18px; display: grid; gap: 10px; align-content: start; }
.points h3 { font-size: 20px; letter-spacing: -0.02em; }
.points p { color: var(--muted); font-size: 15.5px; }
.note { font-size: 13.5px; color: var(--muted); margin-top: 16px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.steps li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; align-items: start; }
.steps .n { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--accent); color: var(--accent); display: grid; place-items: center; font-weight: 700; font-family: var(--display); font-size: 15px; }
.stack { display: grid; gap: 14px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } }
.ok { background: var(--r-vg-bg); color: var(--r-vg); padding: 12px 14px; border-radius: 10px; font-size: 14.5px; }
.err { background: var(--r-weak-bg); color: var(--r-weak); padding: 12px 14px; border-radius: 10px; font-size: 14.5px; }
.hp { position: absolute; left: -9999px; }
.fineprint { font-size: 13px; color: var(--muted); }
.eyebrow { font-size: 15px; font-weight: 600; color: var(--accent); margin-bottom: 14px; }

/* prose pages */
.page { padding: 56px 0 80px; }
.page h1 { font-size: clamp(32px, 4.6vw, 52px); font-weight: 800; letter-spacing: -0.035em; margin-bottom: 16px; }
.prose { max-width: 68ch; }
.prose h2 { font-size: 22px; margin: 36px 0 10px; letter-spacing: -0.015em; }
.prose p, .prose li { color: var(--ink); }
.prose p { margin: 0 0 14px; }
.prose ul { padding-left: 20px; margin: 0 0 14px; display: grid; gap: 6px; }

/* dialog */
dialog { border: 0; border-radius: 18px; padding: 0; width: min(540px, calc(100% - 32px)); background: var(--surface); color: var(--ink); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .45); }
dialog::backdrop { background: rgba(12, 22, 17, .5); backdrop-filter: blur(3px); }
@media (prefers-reduced-motion: no-preference) {
  dialog[open] { animation: dlg-in .22s var(--ease) both; }
  dialog[open]::backdrop { animation: fade-in .22s ease both; }
}
@keyframes dlg-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.dlg { padding: 24px; display: grid; gap: 16px; }
.dlg header { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.dlg h2 { font-size: 22px; letter-spacing: -0.02em; }
.x { border: 0; background: transparent; font-size: 24px; cursor: pointer; color: var(--muted); line-height: 1; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; }
.x:hover { background: var(--sunk); color: var(--ink); }
