/* CRATOR website. One world, taken from CRATOR's own answer sheet: red print, black ink, teal reading.
   Shape rule: buttons and screens 12px, panels 20px, chips 999px. One accent (the app's teal). */

@font-face {
  font-family: "Geist";
  src: url("/assets/geist-latin.19f9c92546aa.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("/assets/geist-mono-latin.684ad5b531f8.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #fafaf9;
  --surface: #ffffff;
  --surface-2: #f2f4f3;
  --bed: #e9eded;
  --bed-edge: #dde3e3;
  --ink: #15181b;
  --ink-2: #41474e;
  --ink-3: #626a72;
  --line: #e2e5e3;
  --line-strong: #c9cfcd;
  --teal: #0d7480;
  --teal-hover: #0a636d;
  --teal-strong: #08535b;
  --teal-soft: #e2f1f2;
  --teal-text: #0a5d66;
  --on-teal: #ffffff;
  --print: #d7263d;
  --amber: #965707;
  --amber-soft: #fbefd9;
  --band: #0f1416;
  --band-ink: #eef2f1;
  --band-ink-2: #a9b4b3;
  --shadow-1: 0 1px 2px rgb(18 32 34 / 6%), 0 4px 12px rgb(18 32 34 / 6%);
  --shadow-2: 0 2px 4px rgb(18 32 34 / 6%), 0 18px 40px rgb(18 32 34 / 12%);
  --shadow-3: 0 4px 8px rgb(18 32 34 / 7%), 0 32px 72px rgb(18 32 34 / 16%);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 32px);
  --header: 68px;
}

:root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0d1012;
    --surface: #151a1d;
    --surface-2: #1b2125;
    --bed: #1b2226;
    --bed-edge: #26313a;
    --ink: #eceff0;
    --ink-2: #c2c9cd;
    --ink-3: #959fa6;
    --line: #242b30;
    --line-strong: #36414a;
    --teal: #3cb2bb;
    --teal-hover: #56c2ca;
    --teal-strong: #7fd3d9;
    --teal-soft: #12353a;
    --teal-text: #6fcbd2;
    --on-teal: #06262a;
    --amber: #e3a54a;
    --amber-soft: #3a2a12;
    --band: #080b0c;
    --shadow-1: 0 1px 2px rgb(0 0 0 / 30%), 0 4px 12px rgb(0 0 0 / 30%);
    --shadow-2: 0 2px 4px rgb(0 0 0 / 30%), 0 18px 40px rgb(0 0 0 / 45%);
    --shadow-3: 0 4px 8px rgb(0 0 0 / 35%), 0 32px 72px rgb(0 0 0 / 55%);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Geist", ui-sans-serif, system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: "ss01" on, "cv11" on;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--teal-soft); color: var(--ink); }

img, svg { display: block; max-width: 100%; height: auto; }

a { color: var(--teal-text); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--teal-hover); }

:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 {
  margin: 0;
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.04;
  text-wrap: balance;
  color: var(--ink);
}

h1 { font-size: clamp(2.5rem, 1.3rem + 2.9vw, 3.9rem); }
h2 { font-size: clamp(2.05rem, 1.25rem + 2.3vw, 3.4rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.02em; line-height: 1.25; font-weight: 620; }

p { margin: 0; text-wrap: pretty; }

.mono { font-family: "Geist Mono", ui-monospace, monospace; font-variant-numeric: tabular-nums; }

.wrap { width: min(100%, var(--wrap)); margin-inline: auto; padding-inline: var(--gutter); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 12px; top: -48px; z-index: 50;
  padding: 10px 14px; border-radius: 10px; background: var(--ink); color: var(--bg);
}
.skip:focus { top: 12px; }

.draft {
  padding: 6px var(--gutter); background: #fff6db; color: #4a3b06;
  font-size: 0.8rem; text-align: center;
}
.draft .ph, .ph {
  padding: 1px 6px; border-radius: 6px; background: #ffe7a3; color: #3f3000;
  font-family: "Geist Mono", ui-monospace, monospace; font-size: 0.85em;
}

.icon { width: 1.25em; height: 1.25em; flex: none; fill: currentColor; }

/* ---------- Buttons ---------- */

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 22px; border: 1px solid transparent; border-radius: 12px;
  background: var(--teal); color: var(--on-teal);
  font: inherit; font-size: 1rem; font-weight: 600; letter-spacing: -0.01em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 160ms ease, transform 160ms var(--ease-out), box-shadow 200ms ease;
  box-shadow: 0 1px 0 rgb(255 255 255 / 18%) inset, 0 6px 16px rgb(13 116 128 / 22%);
}
.button:hover { background: var(--teal-hover); color: var(--on-teal); }
.button:active { transform: scale(0.97); }
.button .icon { width: 18px; height: 18px; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .button:hover .icon-go { transform: translateX(3px); }
}

.button.secondary {
  background: transparent; color: var(--ink); border-color: var(--line-strong); box-shadow: none;
}
.button.secondary:hover { background: var(--surface-2); color: var(--ink); }

.text-link {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none;
}
.text-link .icon { width: 18px; height: 18px; transition: transform 200ms var(--ease-out); }
.text-link:hover .icon { transform: translateX(3px); }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }

.header-row { display: flex; align-items: center; justify-content: space-between; height: var(--header); gap: 24px; }

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.2rem; letter-spacing: -0.02em;
}
.brand img { width: 30px; height: 30px; border-radius: 50%; }
.brand:hover { color: var(--ink); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.button) {
  padding: 8px 12px; border-radius: 10px; color: var(--ink-2);
  font-size: 0.95rem; font-weight: 500; text-decoration: none;
  transition: color 150ms ease, background-color 150ms ease;
}
.nav a:not(.button):hover { color: var(--ink); background: var(--surface-2); }
.nav a[aria-current="page"]:not(.button) { color: var(--ink); }
.nav .button { min-height: 42px; margin-left: 10px; padding: 0 16px; font-size: 0.95rem; }

.menu-toggle {
  display: none; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px;
  border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); color: var(--ink);
  font: inherit; font-size: 0.95rem; font-weight: 600; cursor: pointer;
}
.menu-toggle .icon { width: 20px; height: 20px; }

@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    position: absolute; inset: var(--header) 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px var(--gutter) 20px; background: var(--bg); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-2);
    opacity: 0; transform: translateY(-8px); pointer-events: none; visibility: hidden;
    transition: opacity 180ms ease, transform 220ms var(--ease-out), visibility 0s linear 220ms;
  }
  .nav.open {
    opacity: 1; transform: none; pointer-events: auto; visibility: visible;
    transition: opacity 180ms ease, transform 220ms var(--ease-out), visibility 0s;
  }
  .nav a:not(.button) { padding: 12px; font-size: 1.05rem; }
  .nav .button { margin: 10px 0 0; min-height: 50px; }
}

/* ---------- Sections ---------- */

main { display: block; }

.section { padding-block: clamp(4.5rem, 2.5rem + 6vw, 8.5rem); }
.hero ~ .section { padding-block: clamp(2.5rem, 1.5rem + 3vw, 4rem); }
.hero ~ .section .section-head { margin-bottom: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.home-index + .section { padding-top: clamp(2rem, 1rem + 2vw, 3rem); }

.section-head { max-width: 760px; margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4rem); }
.section-head p { margin-top: 18px; color: var(--ink-2); font-size: 1.15rem; max-width: 58ch; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center p { margin-inline: auto; }

/* ---------- Hero ---------- */

.hero { position: relative; isolation: isolate; padding-block: clamp(2rem, 1rem + 2.6vw, 3.5rem) clamp(1.5rem, 1rem + 1vw, 2rem); }
/* The designer's dotted canvas behind the stage, with a soft teal light. */
.hero::before {
  content: ""; position: absolute; z-index: -1; inset: 34% 0 0; pointer-events: none;
  background:
    radial-gradient(55% 45% at 50% 35%, color-mix(in srgb, var(--teal) 13%, transparent), transparent 72%),
    radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--ink) 11%, transparent) 1px, transparent 1.5px) 0 0 / 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 22%, #000 70%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 22%, #000 70%, transparent);
}
.hero-head {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); align-items: end;
  gap: clamp(1.5rem, 1rem + 3vw, 4.5rem); margin-bottom: clamp(1.75rem, 1.25rem + 1.8vw, 2.75rem);
}
.hero h1 { font-size: clamp(2.6rem, 1.2rem + 3.6vw, 4.5rem); letter-spacing: -0.048em; line-height: 0.98; max-width: 12.5ch; }
.hero-side { display: grid; gap: 24px; padding-bottom: 6px; }
.hero .lead { color: var(--ink-2); font-size: clamp(1.06rem, 1rem + 0.3vw, 1.22rem); max-width: 40ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button .icon:first-child:not(.icon-go) { width: 18px; height: 18px; }

/* The film frame is the same size before and after the film is supplied. */
.film-slot { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 20px; background: var(--bed); box-shadow: var(--shadow-2), 0 0 0 1px var(--line); }
.film-slot > img, .film-slot > video { display: block; width: 100%; height: 100%; object-fit: contain; }
.film-fallback > img { padding: clamp(10px, 1.5vw, 20px); }
.film-control { position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: grid; place-items: center; width: clamp(64px, 7vw, 96px); height: clamp(64px, 7vw, 96px); border: 2px solid #fff; border-radius: 50%; background: #0a5d66; color: #fff; cursor: pointer; box-shadow: 0 4px 30px rgb(0 0 0 / 35%); }
.film-control .icon { width: 40%; height: 40%; }
.film-control .film-pause, .film-slot.playing .film-play { display: none; }
.film-slot.playing .film-pause { display: block; }
.film-slot.started .film-control { left: auto; top: auto; bottom: 16px; right: 16px; translate: none; width: 48px; height: 48px; }
.film-status { position: absolute; bottom: 16px; left: 16px; max-width: calc(100% - 88px); padding: 6px 12px; border-radius: 999px; background: rgb(0 0 0 / 78%); color: #fff; font-size: 0.8rem; }
.film-no-script { position: absolute; inset: auto 0 0; background: #111; color: #fff; padding: 8px 16px; }
@media (max-width: 900px) { .hero-head { grid-template-columns: minmax(0, 1fr); align-items: start; } }
@media (max-width: 560px) { .hero .actions .button { flex: 1 1 auto; } .film-status { font-size: 0.68rem; padding: 4px 8px; bottom: 10px; left: 10px; } }

/* ---------- App windows and videos ---------- */

.window {
  overflow: hidden; border-radius: 16px; background: var(--surface);
  box-shadow: var(--shadow-3), 0 0 0 1px var(--line);
}
.window-bar {
  display: flex; align-items: center; gap: 10px; height: 38px; padding-left: 14px;
  border-bottom: 1px solid var(--line); background: var(--surface-2); color: var(--ink-3); font-size: 0.8rem;
}
.window-bar img { width: 16px; height: 16px; border-radius: 50%; }
.window-title { flex: 1; min-width: 0; overflow: hidden; color: var(--ink-2); font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.window-controls { display: flex; align-self: stretch; }
.window-controls .icon { width: 44px; height: 100%; padding: 0 15px; color: var(--ink-3); }
.screen { position: relative; background: #f4f5f5; }
.clip { display: block; width: 100%; height: auto; background: #f4f5f5; }
.clip-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #f4f5f5; pointer-events: none; }
.clip-poster[hidden] { display: none; }

.play-toggle {
  position: absolute; right: 16px; bottom: 16px; display: grid; place-items: center; width: 44px; height: 44px;
  border: 0; border-radius: 999px; background: rgb(15 20 22 / 74%); color: #fff; cursor: pointer;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: transform 160ms var(--ease-out), background-color 160ms ease;
}
.play-toggle:hover { background: rgb(15 20 22 / 88%); }
.play-toggle:active { transform: scale(0.94); }
.play-toggle .icon { width: 20px; height: 20px; }
.screen .when-paused, .screen.playing .when-playing { display: block; }
.screen .when-playing, .screen.playing .when-paused { display: none; }

/* ---------- What it reads ---------- */

.reads { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.read-tile { grid-column: span 2; display: grid; grid-template-rows: auto 1fr; gap: 18px; padding: 20px; border-radius: 20px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.read-tile:nth-child(n + 4) { grid-column: span 3; }
.read-tile figure { margin: 0; height: 180px; padding: 12px; border-radius: 10px; background: #fff; overflow: hidden; }
.read-tile figure img { width: 100%; height: 100%; object-fit: contain; }
.read-tile h3 { margin-bottom: 6px; }
.read-tile p { color: var(--ink-2); }
@media (max-width: 860px) { .reads { grid-template-columns: repeat(2, minmax(0, 1fr)); } .read-tile, .read-tile:nth-child(n + 4) { grid-column: auto; } .read-tile:last-child { grid-column: 1 / -1; } }
@media (max-width: 560px) { .reads { grid-template-columns: minmax(0, 1fr); } .read-tile:last-child { grid-column: auto; } .read-tile figure { height: 160px; } }

/* ---------- Speed band (the one theme switch on the page) ---------- */

.band { background: var(--band); color: var(--band-ink); }
.band h2 { color: var(--band-ink); }
.band .section-head p { color: var(--band-ink-2); }
.speed { display: grid; gap: 24px; }
.speed .section-head { margin: 0; }
#speed.section { padding-block: 48px; }
.speed-figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 1rem + 2vw, 3rem); }
.figure { display: grid; gap: 6px; padding-top: 22px; border-top: 1px solid rgb(255 255 255 / 14%); }
.figure strong {
  font-size: clamp(2.6rem, 1.4rem + 4vw, 5.4rem); font-weight: 600; line-height: 1; letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums; color: var(--band-ink);
}
.figure span { color: var(--band-ink-2); font-size: 1rem; }
.figure.primary strong { color: #7fd3d9; }
.speed-note { max-width: 72ch; color: var(--band-ink-2); font-size: 0.95rem; }
.speed-note a { color: #7fd3d9; }

@media (max-width: 860px) {
  .speed-figures { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Accuracy ---------- */

.ai-figures {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 1rem + 2vw, 3rem);
  margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem);
}
.ai-figure { display: grid; align-content: start; gap: 12px; padding-top: 22px; border-top: 2px solid var(--teal); }
.ai-figure strong { color: var(--ink); font-size: clamp(2.3rem, 1.4rem + 2.8vw, 3.8rem); font-weight: 600; letter-spacing: -0.045em; line-height: 1; }
.ai-figure span { color: var(--ink-2); max-width: 36ch; }
.ai-note { max-width: 82ch; margin-top: 28px; color: var(--ink-3); font-size: 0.9rem; }

@media (max-width: 860px) { .ai-figures { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Auto-detect ---------- */

.detect { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); align-items: center; gap: clamp(2rem, 1rem + 4vw, 5rem); }
.section-lead { margin-top: 18px; color: var(--ink-2); font-size: 1.15rem; max-width: 48ch; }
.detect-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 20px; }
.detect-actions [hidden] { display: none; }
.detect-list { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.detect-list button {
  display: grid; grid-template-columns: 22px minmax(0, 1fr) 18px; align-items: center; gap: 12px;
  padding: 8px 12px; border-radius: 12px; transition: opacity 300ms ease, background-color 300ms ease;
}
.detect-list button > .icon { width: 20px; height: 20px; color: var(--teal-text); }
.detect-list strong { font-weight: 600; }
.detect-list small { margin-left: 8px; color: var(--ink-3); font-size: 0.85rem; }
.detect-list .tick { width: 18px; height: 18px; color: var(--teal-text); }
/* Before a run the fields wait in muted text (still readable); found ones turn teal with a tick. */
.js .detect.ready .detect-list button { color: var(--ink-3); }
.js .detect.ready .detect-list button > .icon { color: var(--ink-3); }
.js .detect.ready .detect-list .tick { opacity: 0; }
.js .detect.ready .detect-list button[aria-pressed="true"] { color: var(--ink); background: var(--teal-soft); }
.js .detect.ready .detect-list button[aria-pressed="true"] > .icon { color: var(--teal-text); }
.js .detect.ready .detect-list button[aria-pressed="true"] .tick { opacity: 1; }
.detect-meta { margin-top: 14px; color: var(--ink-3); font-size: 0.88rem; }
.js .detect.ready .detect-meta { opacity: 0; transition: opacity 300ms ease; }
.js .detect.ready.done .detect-meta { opacity: 1; }
.detect .text-link { margin-top: 14px; padding: 0; border: 0; background: none; color: var(--teal-text); font: inherit; font-weight: 600; cursor: pointer; }
.button:disabled { cursor: progress; }

.detect-view {
  position: relative; padding: clamp(14px, 2vw, 26px);
  background: radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--ink) 12%, transparent) 1px, transparent 1.5px) 0 0 / 18px 18px,
    var(--bed);
}
.detect-sheet { position: relative; }
.detect-sheet img { width: 100%; border-radius: 4px; background: #fff; box-shadow: var(--shadow-2); }
.detect-overlay { position: absolute; inset: 0; width: 100%; height: 100%; }
.found-box { fill: rgb(13 116 128 / 8%); stroke: #0d7480; stroke-width: 2; vector-effect: non-scaling-stroke; }
.found-tag rect { fill: #075b65; }
.found-tag text { fill: #fff; font-family: "Geist", sans-serif; font-weight: 650; }
.found { opacity: 1; cursor: pointer; transition: opacity 220ms ease; }
.js .detect.ready .found { opacity: 0; pointer-events: none; }
.js .detect.ready .found.visible { opacity: 1; pointer-events: auto; }
.js .detect.ready.selected .found.visible:not(.on) { opacity: 0.62; }
.found.on .found-box { stroke: #075b65; stroke-width: 3.5; fill: rgb(13 116 128 / 20%); }
.found.on .found-tag rect { fill: #043e45; }
.detect-scan { opacity: 0; pointer-events: none; }
.detect-scan line { stroke: #087582; stroke-width: 4; vector-effect: non-scaling-stroke; }
.detect.scanning .detect-scan { opacity: 1; }
.js .detect.ready .detect-list .found-item { color: var(--ink); }
.js .detect.ready .detect-list .found-item > .icon { color: var(--teal-text); }
.js .detect.ready .detect-list .found-item .tick { opacity: 1; }

@media (max-width: 900px) {
  .detect { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  /* Phones and tablets: the button, then the sheet it works on, then the list of what was found. */
  .detect-copy { display: contents; }
  .detect h2 { order: 1; }
  .detect .section-lead { order: 2; margin-top: 0; }
  .detect-actions { order: 3; margin: 0; }
  .detect-stage { order: 4; }
  .detect-list { order: 5; }
  .detect-meta { order: 6; margin-top: 0; }
  .detect .text-link { order: 7; margin-top: 0; justify-self: start; }
}

/* ---------- Designer ---------- */

.parts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 26px; }
.part {
  position: relative; display: inline-flex; align-items: center; gap: 8px; overflow: hidden;
  padding: 10px 16px; border: 0; border-radius: 999px; background: var(--surface); color: var(--ink-2);
  box-shadow: 0 0 0 1px var(--line); font: inherit; font-size: 0.95rem; font-weight: 550; cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms var(--ease-out);
}
.part:hover { color: var(--ink); box-shadow: 0 0 0 1px var(--line-strong); }
.part:active { transform: scale(0.97); }
.part .icon { width: 18px; height: 18px; color: var(--teal-text); }
.part[aria-selected="true"] { background: var(--ink); color: var(--bg); box-shadow: none; }
.part[aria-selected="true"] .icon { color: inherit; }
.part-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--teal); transform: scaleX(0); transform-origin: left; }
.part[aria-selected="false"] .part-bar { display: none; }
.design-window { max-width: 1120px; margin-inline: auto; }
.design-note { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 20px; color: var(--ink-3); }
.design-note .icon { width: 20px; height: 20px; color: var(--teal-text); }

/* ---------- Student analysis ---------- */

.results-app { display: grid; gap: 18px; padding: clamp(14px, 2vw, 24px); }
.kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.kpi { display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.kpi span, .kpi small { color: var(--ink-3); font-size: 0.78rem; }
.kpi strong { display: flex; align-items: center; gap: 6px; font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
.kpi strong .icon { width: 18px; height: 18px; color: var(--teal-text); }
.kpi.accent strong { color: var(--teal-text); }
.table-wrap { overflow-x: auto; border-radius: 12px; box-shadow: 0 0 0 1px var(--line); }
.class-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.class-table th { padding: 10px 14px; background: var(--surface-2); color: var(--ink-3); font-size: 0.78rem; font-weight: 600; text-align: left; white-space: nowrap; }
.class-table td { padding: 9px 14px; border-top: 1px solid var(--line); white-space: nowrap; }
.class-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.class-table .strong { font-weight: 620; }
.class-table .muted { color: var(--ink-3); font-weight: 400; }
.class-table tr.current td { background: var(--teal-soft); }
.class-table .act { width: 1%; text-align: right; }
.analysis-button {
  display: none; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 10px;
  background: var(--surface); color: var(--ink); font: inherit; font-size: 0.86rem; font-weight: 600; cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, transform 160ms var(--ease-out);
}
.js .analysis-button { display: inline-flex; }
.analysis-button .icon { width: 16px; height: 16px; color: var(--teal-text); }
.analysis-button:hover { border-color: var(--teal); color: var(--teal-text); }
.analysis-button:active { transform: scale(0.97); }
.table-foot { color: var(--ink-3); font-size: 0.85rem; }
.analysis .output-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: clamp(2rem, 1.5rem + 2vw, 3rem) 0 0; padding: 0; list-style: none; }
.output-list li { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: start; gap: 14px; }
.output-list .icon-tile { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--teal-soft); color: var(--teal-text); }
.output-list .icon-tile .icon { width: 22px; height: 22px; }
.output-list strong { display: block; font-weight: 620; }
.output-list span { color: var(--ink-2); font-size: 0.95rem; }

@media (max-width: 980px) {
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .analysis .output-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .analysis .output-list { grid-template-columns: minmax(0, 1fr); }
  /* Phones: rank, roll, total and the Analysis button fit without sideways scrolling; the dialog has the rest. */
  .class-table .wide-only, .class-table td .muted { display: none; }
  .class-table th, .class-table td { padding-inline: 8px; }
  .analysis-button { padding: 6px 9px; }
}

.analysis-dialog {
  width: min(900px, calc(100vw - 24px)); max-width: none; max-height: calc(100dvh - 32px); padding: 0; border: 0;
  border-radius: 20px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-3), 0 0 0 1px var(--line);
}
.analysis-dialog::backdrop { background: rgb(8 12 14 / 52%); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.analysis-dialog[open] { animation: dialog-in 280ms var(--ease-out); }
.analysis-dialog.closing { animation: dialog-out 160ms ease-in forwards; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(14px) scale(0.97); } }
@keyframes dialog-out { to { opacity: 0; transform: translateY(8px) scale(0.98); } }
.dialog-card { display: flex; flex-direction: column; max-height: calc(100dvh - 32px); }
.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px 22px 14px; }
.dialog-head h3 { font-size: 1.55rem; letter-spacing: -0.02em; }
.dialog-head p { margin-top: 4px; color: var(--ink-3); font-size: 0.9rem; }
.icon-button {
  display: grid; place-items: center; width: 38px; height: 38px; flex: none; border: 0; border-radius: 10px;
  background: transparent; color: var(--ink-3); cursor: pointer; transition: background-color 150ms ease, color 150ms ease;
}
.icon-button:hover { background: var(--surface-2); color: var(--ink); }
.icon-button .icon { width: 20px; height: 20px; }
.segmented {
  position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 22px; padding: 4px;
  border-radius: 12px; background: var(--surface-2);
  box-shadow: 0 0 16px color-mix(in srgb, var(--teal) 22%, transparent);
}
.segmented button {
  position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 10px;
  border: 0; border-radius: 9px; background: transparent; color: var(--ink-3); font: inherit; font-size: 0.88rem; font-weight: 600;
  white-space: nowrap; cursor: pointer; transition: color 200ms ease;
}
.segmented button .icon { width: 16px; height: 16px; }
.segmented button[aria-selected="true"] { color: var(--ink); }
.segmented-thumb {
  position: absolute; left: 4px; top: 4px; bottom: 4px; width: calc((100% - 8px) / 3); border-radius: 9px;
  background: var(--surface); box-shadow: var(--shadow-1); transition: transform 280ms var(--ease-out);
}
.dialog-body { overflow: auto; padding: 18px 22px 24px; overscroll-behavior: contain; }
.view .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.view h4 {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px;
  margin: 24px 0 12px; font-size: 0.98rem; font-weight: 620;
}
.view h4 small { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-3); font-size: 0.78rem; font-weight: 500; }
.key-you, .key-class { display: inline-block; width: 12px; height: 8px; margin-left: 8px; border-radius: 2px; background: var(--teal); }
.key-class { width: 2px; height: 12px; background: var(--ink); }
.sections { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.sections li { display: grid; grid-template-columns: 112px minmax(0, 1fr) 52px; align-items: center; gap: 2px 14px; }
.sec-name { font-size: 0.92rem; font-weight: 600; }
.sec-marks { text-align: right; font-weight: 600; }
.sections small { grid-column: 2 / -1; color: var(--ink-3); font-size: 0.78rem; }
.sec-bar { position: relative; height: 10px; border-radius: 999px; background: var(--surface-2); }
.sec-bar i { position: absolute; inset: 0; border-radius: inherit; background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform 900ms var(--ease-out); }
.sec-bar b { position: absolute; top: -4px; bottom: -4px; left: 0; width: 2px; margin-left: -1px; border-radius: 2px; background: var(--ink); }
.verdict-grid { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; }
.verdict {
  display: grid; place-items: center; padding: 5px 0 6px; border-radius: 8px; background: var(--surface-2); line-height: 1.2;
  animation: cell-in 380ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 14ms + 120ms);
}
.verdict-q { color: inherit; font-size: 0.7rem; }
.verdict-r { font-size: 0.9rem; font-weight: 650; }
.verdict.correct { background: #e2f3e8; color: #156b3a; }
.verdict.wrong { background: #fde3e3; color: #a52121; }
.verdict.blank { color: var(--ink-3); }
.verdict.multi { background: var(--amber-soft); color: var(--amber); }
@keyframes cell-in { from { opacity: 0; transform: translateY(6px) scale(0.94); } }
.view-note { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; color: var(--ink-3); font-size: 0.88rem; }
.view-note .icon { width: 18px; height: 18px; color: var(--teal-text); }
.paper { overflow: hidden; border-radius: 8px; background: #fff; box-shadow: 0 0 0 1px var(--line), var(--shadow-1); }
.paper img { width: 100%; }
:root:not([data-theme="light"]) .verdict.correct { background: #12321f; color: #7fd8a0; }
:root:not([data-theme="light"]) .verdict.wrong { background: #3a1616; color: #f3a1a1; }
@media (max-width: 640px) {
  .view .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .verdict-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .sections li { grid-template-columns: 90px minmax(0, 1fr) 44px; }
  .segmented button .icon { display: none; }
  .dialog-head, .dialog-body { padding-inline: 16px; }
  .segmented { margin-inline: 16px; }
}

/* ---------- Privacy ---------- */

.privacy { text-align: left; }
.privacy h2 { max-width: 22ch; }
.privacy-points {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 1rem + 2vw, 3rem);
  margin: 28px 0 24px; padding: 0; list-style: none; text-align: left;
}
.privacy-points li { display: grid; gap: 10px; }
.privacy-points .icon { width: 28px; height: 28px; color: var(--teal-text); }
.privacy-points strong { font-size: 1.1rem; font-weight: 620; }
.privacy-points span { color: var(--ink-2); }
.speed-dialog { width: min(600px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-2); }
.speed-dialog::backdrop { background: rgb(0 0 0 / 64%); }
.speed-dialog h2 { font-size: 1.35rem; }
.speed-dialog-body { padding: 0 24px 24px; }
.speed-dialog dl { margin: 0 0 18px; }
.speed-dialog dl > div { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.speed-dialog dt { color: var(--ink-3); }
.speed-dialog dd { margin: 0; }
.speed-dialog-body p { margin-bottom: 14px; color: var(--ink-2); }
.disclosures { display: grid; gap: 10px; max-width: 78ch; margin: clamp(2.5rem, 2rem + 2vw, 3.5rem) auto 0; color: var(--ink-3); font-size: 0.9rem; text-align: left; }

@media (max-width: 860px) {
  .privacy { text-align: left; }
  .privacy h2 { margin-inline: 0; }
  .privacy-points { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- FAQ ---------- */

.faq { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
.faq .section-head { position: sticky; top: calc(var(--header) + 32px); margin: 0; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0;
  font-size: 1.12rem; font-weight: 600; letter-spacing: -0.01em; cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { width: 20px; height: 20px; color: var(--ink-3); transition: transform 240ms var(--ease-out); }
.faq-item[open] summary .icon { transform: rotate(45deg); }
.faq-item p { padding: 0 0 24px; max-width: 64ch; color: var(--ink-2); }

@media (max-width: 860px) {
  .faq { grid-template-columns: minmax(0, 1fr); }
  .faq .section-head { position: static; }
}

/* ---------- Closing call ---------- */

.closing {
  position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center; gap: 2rem; padding: clamp(2.5rem, 2rem + 3vw, 4.5rem);
  border-radius: 28px; background: var(--surface); box-shadow: 0 0 0 1px var(--line), var(--shadow-1);
}
.closing h2 { max-width: 14ch; }
.closing p { margin: 18px 0 28px; color: var(--ink-2); max-width: 44ch; }
.closing .closing-sheet { margin: 0 -18% -42% 0; transform: rotate(-4deg); }
.closing .closing-sheet img { border-radius: 4px; box-shadow: var(--shadow-3); }
.closing .fine { margin: 18px 0 0; color: var(--ink-3); font-size: 0.85rem; max-width: 58ch; }

@media (max-width: 860px) {
  .closing { grid-template-columns: minmax(0, 1fr); }
  .closing .closing-sheet { margin: 0 0 -38% 0; }
}

/* ---------- Footer ---------- */

.footer { margin-top: clamp(4rem, 3rem + 4vw, 7rem); padding: 56px 0 40px; border-top: 1px solid var(--line); font-size: 0.92rem; }
body:has(.hero) .footer { margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer p { color: var(--ink-3); }
.footer .brand { margin-bottom: 12px; }
.footer h2 { margin-bottom: 12px; font-size: 0.85rem; letter-spacing: 0; color: var(--ink); font-weight: 600; }
.footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.sales-link { background: none; border: 0; padding: 0; font: inherit; text-align: left; cursor: pointer; }
.footer ul a, .footer .sales-link { color: var(--ink-2); text-decoration: none; }
.footer ul a:hover, .footer .sales-link:hover { color: var(--ink); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink-3); }

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

/* ---------- Inner pages ---------- */

.page-head { max-width: 820px; padding-block: clamp(3rem, 2rem + 4vw, 6rem) clamp(2rem, 1.5rem + 2vw, 3rem); }
.page-head p.lead { margin-top: 18px; color: var(--ink-2); font-size: 1.2rem; max-width: 60ch; }

.prose { max-width: 72ch; padding-bottom: 3rem; }
.prose h2, .prose-heading { margin: 2.4em 0 0.6em; font-size: 1.6rem; letter-spacing: -0.025em; }
.prose h3 { margin: 1.8em 0 0.5em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1em; color: var(--ink-2); }
.prose li { margin-bottom: 0.4em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: 0.95rem; }
.legal-table { max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; }
.legal-summary { padding: 22px; margin: 1.5em 0 2em; border-radius: 16px; background: var(--surface-2); }
.legal-summary h2 { margin-top: 0; }
.legal-summary ul { margin-bottom: 0; padding-left: 20px; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose code { font-family: "Geist Mono", monospace; font-size: 0.9em; }

.card {
  padding: clamp(20px, 2vw, 28px); border-radius: 20px; background: var(--surface); box-shadow: 0 0 0 1px var(--line);
}
.stack { display: grid; gap: 20px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }

.notice { padding: 20px 22px; border-radius: 16px; background: var(--teal-soft); color: var(--ink); }
.notice h2 { margin-bottom: 8px; font-size: 1.2rem; letter-spacing: -0.02em; }
.notice p + p { margin-top: 10px; }
.hint { color: var(--ink-3); font-size: 0.9rem; }

/* Forms (demo, activate, contact) */
form { display: grid; gap: 18px; max-width: 640px; }
label { display: grid; gap: 6px; font-weight: 600; font-size: 0.95rem; }
input, select, textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 12px;
  background: var(--surface); color: var(--ink); font: inherit; font-weight: 400;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--teal); outline-offset: 1px; border-color: var(--teal); }
.field-help { color: var(--ink-3); font-size: 0.85rem; font-weight: 400; }
.field-error { color: #b42318; font-size: 0.88rem; font-weight: 500; }
.form-status { padding: 14px 16px; border-radius: 12px; background: var(--surface-2); }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.checkbox input { width: 20px; min-height: 20px; margin-top: 3px; accent-color: var(--teal); }

/* Download page illustrations */
.windows-steps { display: grid; gap: 20px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.dialog { padding: 18px; border-radius: 12px; font-size: 0.9rem; }
.dialog.blue { background: #0b5394; color: #fff; }
.dialog.grey { background: var(--surface-2); color: var(--ink); }
.dialog-label { font-weight: 700; margin-bottom: 6px; }

/* Open-source licences */
.licence-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.licence-list details { padding: 14px 18px; border-radius: 14px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.licence-list summary { cursor: pointer; font-weight: 600; }
.notice-text { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 60vh; overflow: auto; font-size: 0.82rem; }
.open-source-notices { overflow-wrap: anywhere; }

/* ---------- Motion ---------- */

.reveal.pending { opacity: 0; transform: translateY(18px); transition: opacity 600ms ease, transform 800ms var(--ease-out); }
.reveal.pending.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal.pending { opacity: 1; transform: none; transition: none; }
  .button, .sec-bar i, .segmented-thumb, .part { transition: none; }
  .verdict, .analysis-dialog[open], .analysis-dialog.closing, .spin { animation: none; }
}

/* ---------- Features page ---------- */

.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.feature {
  display: grid; align-content: start; gap: 22px; padding: clamp(22px, 2.2vw, 32px); border-radius: 20px;
  background: var(--surface); box-shadow: 0 0 0 1px var(--line); overflow: hidden;
}
.feature.wide { grid-column: 1 / -1; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); align-items: center; }
.feature h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); }
.feature p { margin-top: 12px; color: var(--ink-2); max-width: 48ch; }
.feature-shot { border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-1), 0 0 0 1px var(--line); }
.feature.text-only { background: var(--teal-soft); box-shadow: none; }
.feature.text-only .text-link { margin-top: 16px; }

@media (max-width: 860px) {
  .features { grid-template-columns: minmax(0, 1fr); }
  .feature.wide { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- How it works page ---------- */

.how-steps { display: grid; gap: clamp(3rem, 2rem + 4vw, 6rem); margin: 0; padding: 0; list-style: none; }
.how-step { display: grid; grid-template-columns: minmax(0, 0.55fr) minmax(0, 1.45fr); gap: clamp(1.5rem, 1rem + 3vw, 4rem); align-items: center; }
.how-number {
  display: inline-grid; place-items: center; width: 36px; height: 36px; margin-bottom: 16px; border-radius: 999px;
  background: var(--teal-soft); color: var(--teal-text); font-weight: 600;
}
.how-step h2 { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.4rem); }
.how-step p { margin-top: 12px; color: var(--ink-2); }
.how-shot { border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-3), 0 0 0 1px var(--line); }

.needs h2 { margin-bottom: 28px; }
.needs-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.needs-list li { display: grid; gap: 8px; align-content: start; }
.needs-list .icon { width: 28px; height: 28px; color: var(--teal-text); }
.needs-list strong { font-weight: 620; }
.needs-list span { color: var(--ink-2); font-size: 0.98rem; }

@media (max-width: 860px) {
  .how-step { grid-template-columns: minmax(0, 1fr); }
  .needs-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) { .needs-list { grid-template-columns: minmax(0, 1fr); } }

/* Framed screenshots always fill their frame. */
.feature-shot img, .how-shot img { width: 100%; }
form .button { justify-self: start; }
button.button:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

/* Owner review: theme controls, section links and focused field selection. */
.brand { white-space: nowrap; }
.brand small { font-size: 0.74rem; font-weight: 450; color: var(--ink-2); }
.header-row { gap: 14px; }
.theme-toggle { margin-left: auto; }
.theme-toggle svg { fill: none; stroke: currentColor; stroke-width: 1.7; }
.theme-moon, :root[data-theme="light"] .theme-sun { display: none; }
:root[data-theme="light"] .theme-moon { display: block; }
.home-index { position: sticky; top: var(--header); z-index: 19; background: var(--bg); border-block: 1px solid var(--line); }
.home-index .wrap { display: flex; align-items: center; gap: 14px; overflow-x: auto; white-space: nowrap; padding-block: 11px; }
.home-index a { color: var(--ink-2); font-size: 0.86rem; flex-shrink: 0; }
.home-index span { color: var(--ink-3); }
.home-index a[aria-current] { color: var(--teal-text); text-decoration: underline; text-underline-offset: 6px; }
html { scroll-padding-top: calc(var(--header) + 76px); }
.detect-list button { width: 100%; text-align: left; border: 1px solid transparent; font: inherit; cursor: pointer; background: transparent; }
.detect-list button:disabled { cursor: default; }
.detect-list button[aria-pressed="true"] { border-color: var(--teal); background: var(--teal-soft); color: var(--ink); }
.js .detect.ready .detect-list button[aria-pressed="true"] { color: var(--ink); background: var(--teal-soft); }
.detect-hint { color: var(--teal-text); font-size: 0.9rem; }
@media (max-width: 900px) { .detect-hint { order: 7; margin-top: 0; } }
.analysis-hint { justify-self: end; display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; margin: 2px 6px -4px 0; border: 1px solid var(--teal); border-radius: 999px; background: var(--teal-soft); color: var(--teal-text); font-size: 0.9rem; font-weight: 600; }
.analysis-hint span { font-size: 1.35rem; line-height: 1; }
.analysis-invite { border-color: var(--teal); box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal) 30%, transparent); animation: analysis-pulse 3s ease-in-out infinite; }
@keyframes analysis-pulse { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--teal) 16%, transparent), 0 0 18px color-mix(in srgb, var(--teal) 18%, transparent); } }
@property --tab-angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.segmented::before { content: ''; position: absolute; inset: -3px; border-radius: 15px; padding: 3px; pointer-events: none;
  background: conic-gradient(from var(--tab-angle), color-mix(in srgb, var(--teal) 32%, transparent) 0% 45%, var(--teal-strong) 70%, var(--teal) 85%, color-mix(in srgb, var(--teal) 32%, transparent) 100%); opacity: 1;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); mask-composite: exclude;
  animation: tab-orbit 7s linear infinite;
  box-shadow: 0 0 16px color-mix(in srgb, var(--teal) 28%, transparent); }
@keyframes tab-orbit { to { --tab-angle: 360deg; } }
.price-card { max-width: 760px; margin: 0 auto 32px; padding: clamp(24px, 5vw, 48px); }
.price { font-size: clamp(3rem, 8vw, 4.5rem); font-weight: 700; line-height: 1.1; margin: 0; letter-spacing: -0.05em; }
.international { color: var(--ink-2); }
@media (max-width: 520px) { .brand { gap: 7px; font-size: 1.04rem; } .brand img { width: 26px; height: 26px; }
  .brand small { font-size: 0.65rem; } .header-row { gap: 8px; } .menu-toggle { padding: 8px; }
  .menu-toggle .icon { display: none; } .theme-toggle { width: 32px; }
  .detect-list small { display: block; margin-left: 0; } }
@media (prefers-reduced-motion: reduce) { .analysis-invite, .segmented::before { animation: none; }
  .segmented::before { background: var(--teal); } }

/* Buying currently opens direct contact details. */
.buy-dialog { width: min(440px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 1px solid var(--line-strong); border-radius: 20px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-3); }
.buy-dialog::backdrop { background: rgb(8 12 14 / 60%); backdrop-filter: blur(3px); }
.buy-dialog h2 { font-size: 1.3rem; }
.buy-links { display: grid; gap: 10px; padding: 0 22px 22px; }
.buy-links a { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; background: var(--surface-2); font-size: 1rem; }
.buy-links a:hover { border-color: var(--teal); }
.buy-links .icon { width: 24px; height: 24px; flex: none; }
.buy-links small { display: block; color: var(--ink-3); font-size: 0.78rem; }
.buy-links svg { fill: currentColor; }
