/* 1flowww Dental GBP Leaderboard: tokens from the design system (tokens.json) */
:root {
  --paper: #ffffff;
  --wash: #f6f6f6;
  --ink: #1c1c1c;
  --muted: #6b6b6b;
  --line: #e4e4e4;
  --line-strong: #8a8a8a;
  --coral: #ff6f61;
  --coral-deep: #dc6357;
  --coral-soft: #ffebe9;
  --on-coral: #1c1c1c;
  --strip: #1c1c1c;
  --strip-ink: #ffffff;
  --strip-muted: #bdbdbd;
  --offer: #292929;
  --good: #2f7d4f;
  --danger: #b3261e;
  --focus: var(--coral-deep);
  --shadow-float: 0 18px 40px -12px rgba(28, 28, 28, 0.28), 0 2px 6px rgba(28, 28, 28, 0.08);
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-pill: 999px;
  --dur-fast: 160ms;
  --dur-base: 240ms;
  --dur-slow: 350ms;
  --dur-preloader: 900ms;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --font-display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "DM Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --font-serif: "Instrument Serif", Georgia, serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
  --paper: #1c1c1c;
  --wash: #252525;
  --ink: #f5f5f5;
  --muted: #a6a6a6;
  --line: #363636;
  --line-strong: #737373;
  --coral-deep: var(--coral);
  --coral-soft: #402927;
  --strip: #111111;
  --offer: #111111;
  --good: #6cc392;
  --danger: #f28b82;
  --shadow-float: 0 18px 40px -12px rgba(0, 0, 0, 0.7), 0 2px 6px rgba(0, 0, 0, 0.4);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #1c1c1c;
  --wash: #252525;
  --ink: #f5f5f5;
  --muted: #a6a6a6;
  --line: #363636;
  --line-strong: #737373;
  --coral-deep: var(--coral);
  --coral-soft: #402927;
  --strip: #111111;
  --offer: #111111;
  --good: #6cc392;
  --danger: #f28b82;
  --shadow-float: 0 18px 40px -12px rgba(0, 0, 0, 0.7), 0 2px 6px rgba(0, 0, 0, 0.4);
  color-scheme: dark;
}


/* Front-Desk Analyzer page */
.fd-count { font-variant-numeric: tabular-nums; }
.hero-grid .picker.fd-quote { margin: 0; grid-template-columns: 72px minmax(0, 1fr); align-items: start; gap: var(--space-2) var(--space-5); text-align: left; }
.fd-quote img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; grid-row: span 2; }
.fd-quote blockquote { margin: 0; font-size: 17px; line-height: 1.5; color: var(--ink); }
.fd-quote blockquote p { margin: 0; }
.fd-quote blockquote p::before { content: "\201C"; } .fd-quote blockquote p::after { content: "\201D"; }
.fd-quote figcaption { font-size: 13px; color: var(--muted); display: grid; gap: 2px; }
.fd-quote figcaption b { color: var(--ink); font-weight: 600; font-size: 14px; }
.fd-upload { background: var(--wash); border-radius: var(--radius-md); padding: var(--space-6); margin-top: var(--space-4); }
.fd-upload h2 { margin: 0; font-size: 22px; line-height: 1.15; }
.fd-fields { display: grid; grid-template-columns: 1fr 1fr auto; gap: var(--space-4); align-items: end; margin-top: var(--space-4); }
.fd-fields input[type="file"] { font: inherit; font-size: 14px; color: var(--muted); background: var(--paper); border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); padding: 11px 14px; height: 46px; width: 100%; box-sizing: border-box; }
.fd-fields .btn { height: 46px; white-space: nowrap; }
.fd-points { list-style: none; margin: var(--space-6) 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4) var(--space-6); }
.fd-points li { position: relative; padding-left: 30px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.fd-points li b { color: var(--ink); font-weight: 600; }
.fd-points li::before { content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--coral); }
.fd-points li::after { content: ""; position: absolute; left: 6px; top: 7px; width: 8px; height: 4px; border-left: 2px solid var(--on-coral); border-bottom: 2px solid var(--on-coral); transform: rotate(-45deg); }
.fd-split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6) var(--space-8); margin-top: var(--space-6); }
.fd-split h3 { margin: 0; font-size: 18px; line-height: 1.2; font-weight: 400; color: var(--ink); }
.fd-split h3 b { font-weight: 700; }
.fd-split .fd-points { grid-template-columns: 1fr; margin-top: var(--space-4); }
.fd-issues li::before { background: transparent; border: 2px solid var(--ink); box-sizing: border-box; }
.fd-issues li::after { content: "!"; left: 0; top: 2px; width: 20px; height: 20px; border: 0; transform: none; text-align: center; font-size: 12px; font-weight: 700; line-height: 20px; color: var(--ink); }
@media (max-width: 760px) { .fd-split { grid-template-columns: 1fr; } }
.fd-upload .note { margin: var(--space-4) 0 0; }
.fd-statements { padding: var(--space-10) 0 var(--space-8); }
.fd-statements h2 { margin: 0 0 var(--space-2); }
.fd-statements .note { margin: var(--space-4) 0 0; }
.hero-grid .picker input[type="file"] { font: inherit; font-size: 14px; color: var(--muted); background: var(--paper); border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); padding: 11px 14px; height: 46px; width: 100%; box-sizing: border-box; }
@media (max-width: 760px) { .fd-fields, .fd-points { grid-template-columns: 1fr; } .hero-grid .picker.fd-quote { grid-template-columns: 56px minmax(0, 1fr); } .fd-quote img { width: 56px; height: 56px; } }

/* Tools hub page */
.hub-hero { padding-bottom: var(--space-6); }
.hub-section { margin-top: var(--space-12); }
.hub-section > p { color: var(--muted); font-size: 16px; line-height: 1.5; max-width: 62ch; margin: var(--space-3) 0 0; }
.hub-grid { margin-top: var(--space-5); }
.hub-grid .card .top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.hub-grid .card h3 { font-size: 20px; line-height: 1.15; }
.hub-grid .card .detail-btn { justify-self: start; margin-top: 6px; text-decoration: none; display: inline-flex; align-items: center; }
.hub-grid .card.featured { grid-column: 1 / -1; border-color: var(--ink); }

/* AIO Presence Checker page (moved from the page head) */
.aio-form { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4) var(--space-5); align-items: end; margin-top: var(--space-4); }
.aio-form .field label span { color: var(--muted); font-weight: 400; }
.aio-form .btn { justify-self: start; height: 46px; white-space: nowrap; }
.aio-form .note { grid-column: 1 / -1; margin: 0; max-width: 72ch; }
@media (max-width: 760px) { .aio-form { grid-template-columns: 1fr; } }
.fd-statements .note a { color: inherit; }

.lede:empty { display: none; }


/* 1flowww Dental GBP Leaderboard: one stylesheet for the leaderboard page and the Stealth Report page.
   Every colour, space, radius, duration and font comes from tokens.json (loaded as tokens.css).
   Class names match the ones the two page scripts write, so this file drops in without touching the scripts. */

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; }
[data-theme="dark"] { color-scheme: dark; }
body { background: var(--paper); color: var(--ink); font: 16px/1.55 var(--font-body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
em, i, cite, address { font-style: normal; }
::selection { background: var(--coral-soft); color: var(--ink); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--radius-sm); }
button { font: inherit; cursor: pointer; color: inherit; }
p { margin: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--space-6); }
@media (max-width: 720px) { .wrap { padding: 0 var(--space-5); } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.note { font-size: 13px; line-height: 1.45; color: var(--muted); }

/* ---------- Headings: light words, then the last two or three words bold ---------- */
h1, h2, h3 { font-family: var(--font-display); font-stretch: 125%; font-weight: 400; text-wrap: balance; margin: 0; letter-spacing: -0.02em; }
h1 { font-size: clamp(34px, 5vw, 58px); line-height: 1.02; max-width: 15em; }
h2 { font-size: clamp(24px, 3vw, 36px); line-height: 1.08; }
h3 { font-size: 16px; line-height: 1.25; font-weight: 800; font-stretch: 112%; letter-spacing: -0.005em; }
h1 b, h2 b { font-weight: 900; }
h1 b.c, h2 b.c { color: var(--coral-deep); }
.lede { margin-top: var(--space-5); color: var(--muted); font-size: 18px; line-height: 1.55; max-width: 60ch; }
.lede strong { color: var(--ink); font-weight: 600; }

/* ---------- Prototype notice ---------- */
.sample-bar { background: var(--wash); color: var(--muted); font-size: 12.5px; border-bottom: 1px solid var(--line); }
.sample-bar .wrap { padding-top: var(--space-2); padding-bottom: var(--space-2); display: flex; gap: var(--space-3); flex-wrap: wrap; justify-content: space-between; }
.sample-bar a { color: var(--ink); }

/* ---------- Promo strip: the Stealth Report bar above the header ---------- */
.promo { background: var(--strip); color: var(--strip-ink); position: relative; overflow: hidden; }
.promo .glow { display: none; }
.promo .wrap { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: var(--space-8); padding-top: var(--space-4); padding-bottom: var(--space-4); padding-right: 64px; min-height: 88px; }
.promo .wrap > div:nth-child(2) { display: block; }
.promo .label, .promo .head { display: inline; }
.promo .label { margin-right: var(--space-3); }
.promo .radar { width: 48px; height: 48px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--strip-ink) 24%, transparent); position: relative; display: grid; place-items: center; }
.promo .radar::before { content: ""; position: absolute; inset: 11px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--strip-ink) 14%, transparent); }
.promo .radar i { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); }
.promo .radar i + i { position: absolute; width: 4px; height: 4px; background: var(--strip-ink); top: 9px; right: 12px; }
.promo .radar i + i + i { top: 31px; right: 7px; }
.promo .label { font-family: var(--font-display); font-stretch: 112%; font-size: clamp(17px, 1.8vw, 21px); font-weight: 900; line-height: 1.2; letter-spacing: -0.01em; color: var(--coral); white-space: nowrap; }
.promo .head { font-family: var(--font-display); font-stretch: 112%; font-size: clamp(17px, 1.8vw, 21px); font-weight: 500; line-height: 1.2; letter-spacing: -0.01em; }
.promo .counts { display: flex; }
.promo .count { display: grid; justify-items: start; gap: 4px; padding: 0 var(--space-5); border-left: 1px solid color-mix(in srgb, var(--strip-ink) 16%, transparent); }
.promo .count:first-child { border-left: 0; padding-left: 0; }
.promo .count b { font-family: var(--font-mono); font-weight: 400; font-size: clamp(20px, 2.2vw, 28px); line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; color: var(--strip-ink); }
.promo .count span { font-size: 12px; color: var(--strip-muted); }
.promo .cta { display: grid; justify-items: center; gap: 6px; }
.promo .cta a { background: var(--coral); color: var(--on-coral); border-radius: var(--radius-sm); padding: 12px 20px; font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap; transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out); }
.promo .cta a:hover { background: var(--strip-ink); color: var(--strip); }
.promo .cta span { font-size: 12px; color: var(--strip-muted); white-space: nowrap; }
.promo .close { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: transparent; border: 0; color: var(--strip-muted); font-size: 22px; line-height: 1; width: 40px; height: 40px; border-radius: var(--radius-sm); }
.promo .close:hover { color: var(--strip-ink); background: color-mix(in srgb, var(--strip-ink) 10%, transparent); }
.promo[hidden] { display: none; }
@media (max-width: 1000px) { .promo .counts { display: none; } .promo .wrap { grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--space-5); } }
@media (max-width: 600px) { .promo .radar { display: none; } .promo .wrap { grid-template-columns: 1fr; gap: var(--space-3); padding-right: 56px; min-height: 0; } .promo .cta { justify-items: start; } }

/* ---------- Site header ---------- */
header.site { border-bottom: 1px solid var(--line); background: var(--paper); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { display: block; height: auto; }
.brand .logo-mark { width: 34px; }
.brand .logo-word { width: 96px; }
.brand .logo-word.on-dark { display: none; }
[data-theme="dark"] .brand .logo-word.on-light { display: none; }
[data-theme="dark"] .brand .logo-word.on-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand .logo-word.on-light { display: none; }
  :root:not([data-theme="light"]) .brand .logo-word.on-dark { display: block; }
}
.brand .mark { width: 28px; height: 28px; border-radius: var(--radius-sm); background: var(--coral); color: var(--on-coral); display: grid; place-items: center; font-family: var(--font-display); font-stretch: 125%; font-weight: 900; font-size: 12px; }
.crumbs { font-size: 14px; color: var(--muted); display: flex; gap: var(--space-2); flex-wrap: wrap; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs > span:last-child { color: var(--ink); }
@media (max-width: 560px) { .crumbs { display: none; } }
/* Tracking line: the data sources the leaderboard covers, right side of the header */
.tracking { display: flex; align-items: baseline; justify-content: flex-end; flex-wrap: wrap; gap: var(--space-1) var(--space-2); font-size: 14px; color: var(--muted); text-align: right; }
.tracking ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--space-1) var(--space-2); }
.tracking li { display: inline-flex; align-items: baseline; gap: var(--space-2); white-space: nowrap; }
.tracking li + li::before { content: "/"; content: "/" / ""; color: var(--line-strong); }
.tracking li.on { color: var(--ink); font-weight: 700; gap: 6px; }
.tracking li.on abbr { text-decoration: none; }
.tracking .live { width: 7px; height: 7px; border-radius: 50%; background: var(--coral); align-self: center; flex: none; }
.tracking .soon { font-size: 12px; }
@media (max-width: 1100px) {
  header.site .wrap { flex-wrap: wrap; row-gap: var(--space-2); padding-block: var(--space-3); }
  .tracking { flex: 1 0 100%; justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; white-space: nowrap; text-align: left; font-size: 13px; }
  .tracking::-webkit-scrollbar { display: none; }
  .tracking ul { flex-wrap: nowrap; }
}
@media (max-width: 720px) { .tracking { -webkit-mask-image: linear-gradient(to right, #000 85%, transparent); mask-image: linear-gradient(to right, #000 85%, transparent); padding-right: var(--space-8); } }

/* ---------- Hero, picker and finder ---------- */
.hero { padding: var(--space-20) 0 var(--space-12); display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: var(--space-12); align-items: start; }
/* Leaderboard hero: centered like a landing page, Pick your state right underneath */
.hero.hero-grid { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; gap: var(--space-8); padding: var(--space-12) 0 var(--space-10); }
.hero-grid h1 { margin-inline: auto; max-width: 19em; }
.hero-grid .lede { margin-inline: auto; }
.hero-grid .picker { width: min(760px, 100%); grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr); align-items: end; column-gap: var(--space-4); text-align: left; }
.hero-grid .picker h2 { align-self: end; padding-bottom: 10px; white-space: nowrap; }
.hero-grid .picker .note { grid-column: 1 / -1; text-align: center; }
@media (max-width: 720px) { .hero-grid .picker { grid-template-columns: minmax(0, 1fr); } .hero-grid .picker h2 { padding-bottom: 0; } .hero-grid .picker .note { text-align: left; } }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; gap: var(--space-8); padding: var(--space-12) 0 var(--space-8); } }
.picker, .finder { background: var(--wash); border-radius: var(--radius-md); padding: var(--space-6); display: grid; gap: var(--space-4); }
.picker h2, .finder h2 { font-size: 22px; line-height: 1.15; }
.picker .note { margin: 0; }
.finder p { color: var(--muted); font-size: 14.5px; }

/* ---------- Fields ---------- */
.field { display: grid; gap: 6px; }
.field label, legend { font-size: 13px; font-weight: 600; color: var(--ink); }
input[type="search"], input[type="email"], input[type="text"], input[type="tel"], input[type="url"], select, textarea {
  font: inherit; font-size: 15px; color: var(--ink); background: var(--paper); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: 0 14px; height: 46px; width: 100%; transition: border-color var(--dur-fast) var(--ease-out);
}
textarea { height: auto; min-height: 72px; padding: 12px 14px; line-height: 1.45; resize: vertical; }
select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-repeat: no-repeat; background-position: right 14px center; background-size: 12px 8px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%238A8A8A' stroke-width='1.6'/%3E%3C/svg%3E"); }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
input:hover, select:hover, textarea:hover { border-color: var(--ink); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; border-color: var(--ink); }
input:disabled, select:disabled { opacity: 0.55; cursor: not-allowed; }
input[type="radio"] { accent-color: var(--ink); width: 18px; height: 18px; margin: 0; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border: 0; border-radius: var(--radius-sm);
  background: var(--coral); color: var(--on-coral); font-family: var(--font-body); font-weight: 600; font-size: 15px; white-space: nowrap; text-decoration: none;
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out); }
.btn:hover { background: var(--ink); color: var(--paper); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.55; cursor: progress; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn.ghost:hover { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.stealth-card .btn { background: var(--strip-ink); color: var(--offer); }
.stealth-card .btn:hover { background: var(--coral); color: var(--on-coral); }
.unlock .btn:hover { background: var(--strip-ink); color: var(--offer); }

/* ---------- Chips ---------- */
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { height: 36px; padding: 0 14px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: var(--radius-pill); font-size: 13px; font-weight: 500; white-space: nowrap;
  transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out); }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* ---------- Page rhythm ---------- */
main > section { margin-top: var(--space-16); }
.hero + section { margin-top: var(--space-4); }

/* ---------- Practice checker ---------- */
.checker { border-radius: var(--radius-md); background: var(--wash); padding: var(--space-8); display: grid; gap: var(--space-8); grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
@media (max-width: 820px) { .checker { grid-template-columns: 1fr; padding: var(--space-6); gap: var(--space-6); } .result { min-height: 0; } }
.checker h2 { margin-bottom: var(--space-3); }
.checker p { color: var(--muted); }
.checker .field { margin-top: var(--space-5); }
.suggest { display: grid; margin-top: var(--space-2); border-radius: var(--radius-sm); overflow: hidden; }
.suggest:empty { display: none; }
.suggest:has(button) { border: 1px solid var(--line-strong); }
.suggest button { text-align: left; border: 0; border-bottom: 1px solid var(--line); background: var(--paper); color: var(--ink); padding: 10px 14px; display: grid; gap: 2px; font-size: 14px; transition: background-color var(--dur-fast) var(--ease-out); }
.suggest button:last-child { border-bottom: 0; }
.suggest button:hover, .suggest button:focus-visible { background: var(--coral-soft); outline-offset: -2px; }
.suggest strong { font-weight: 600; }
.suggest span { color: var(--muted); font-size: 12.5px; }
.result { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-6); display: grid; gap: var(--space-5); align-content: start; min-height: 240px; }
.result .empty { color: var(--muted); align-self: center; justify-self: center; text-align: center; max-width: 32ch; }
.stat-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
.stat { display: grid; gap: 4px; align-content: start; }
.stat .num { font-family: var(--font-mono); font-size: 30px; line-height: 1.05; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.result .stat:first-child .num { color: var(--coral-deep); }
.stat .lbl { font-size: 13px; color: var(--muted); }
.gapbar { display: grid; gap: 8px; font-size: 13px; color: var(--muted); }
.gapbar .track { height: 8px; background: var(--wash); border-radius: var(--radius-pill); position: relative; overflow: hidden; }
.gapbar .you { position: absolute; inset: 0 auto 0 0; background: var(--coral); border-radius: var(--radius-pill); transform-origin: left center; }
.capture { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.capture input { flex: 1 1 200px; width: auto; }
.snap { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-5); display: grid; gap: var(--space-4); }
.snap .stat .num { font-size: 24px; }

/* ---------- Leaderboard controls ---------- */
.board-head { display: flex; justify-content: space-between; align-items: end; gap: var(--space-4); flex-wrap: wrap; margin-bottom: var(--space-5); }
.median { margin: 0 0 var(--space-5); font-size: 16px; }
.median strong { font-family: var(--font-mono); font-weight: 500; font-variant-numeric: tabular-nums; }
.filters { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-3); align-items: center; margin: 0 0 var(--space-4); }
.filters select, .filters input[type="search"] { height: 40px; width: auto; min-width: 160px; font-size: 14px; }
.filters input[type="search"] { width: 240px; }
.filters .chip { height: 40px; }

/* ---------- Tables ---------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--paper); }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 760px; }
#board-table { min-width: 860px; }
thead th { text-align: left; font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em;
  padding: 14px 16px; border-bottom: 1px solid var(--ink); background: var(--paper); position: sticky; top: 0; z-index: 1; white-space: nowrap; }
th.num, td.num { text-align: right; }
#board-table > thead > tr > th:first-child { text-align: left; }
th button { all: unset; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
th button:hover, th[aria-sort="descending"] button, th[aria-sort="ascending"] button { color: var(--ink); }
th button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
th[aria-sort="descending"] button::after { content: "\2193"; }
th[aria-sort="ascending"] button::after { content: "\2191"; }
tbody td, tbody th { padding: 16px; border-bottom: 1px solid var(--line); vertical-align: middle; text-align: left; font-weight: 400; }
tbody th[scope="row"], tbody th[scope="row"] ~ td { vertical-align: top; }
tbody th[scope="row"] { font-weight: 600; width: 180px; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody tr { transition: background-color var(--dur-fast) var(--ease-out); }
tbody tr:hover { background: var(--wash); }
tbody tr.mine { background: var(--coral-soft); }
tbody tr.top > td.rank, tbody tr.mine > td.rank { color: var(--coral-deep); }
td .name { font-weight: 600; font-size: 15px; }
td .where { color: var(--muted); font-size: 13px; margin-top: 2px; }
td .where a { text-decoration: none; }
td .where a:hover { color: var(--ink); text-decoration: underline; }
td.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 14px; }
td.rank, td.num.rank { font-family: var(--font-display); font-stretch: 125%; font-weight: 900; font-size: 22px; line-height: 1; width: 64px; letter-spacing: -0.02em; text-align: left; font-variant-numeric: tabular-nums; }
#board-table > thead > tr > th:nth-child(2), #board-table > tbody > tr > td:nth-child(2) { min-width: 260px; }
.reviews { display: grid; gap: 6px; justify-items: end; min-width: 160px; }
.reviews .bar { width: 100%; height: 3px; background: var(--line); border-radius: var(--radius-pill); overflow: hidden; }
.reviews .bar i { display: block; height: 100%; background: var(--ink); border-radius: inherit; }
tbody tr.top .reviews .bar i { background: var(--coral); }
.up { color: var(--good); }
.type { display: inline-block; font-size: 12px; font-weight: 500; border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 3px 10px; white-space: nowrap; vertical-align: middle; }
td .name .type { margin-left: 6px; font-size: 11px; color: var(--muted); }
.maps { font-size: 13px; font-weight: 600; white-space: nowrap; text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.maps:hover { border-color: var(--ink); }
.marks { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.mark-chip { font-size: 11px; font-weight: 500; line-height: 1.5; border-radius: var(--radius-pill); padding: 2px 9px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.mark-chip.on { color: var(--good); border-color: currentColor; }
.detail-btn { height: 32px; padding: 0 14px; border: 1px solid var(--line-strong); background: var(--paper); color: var(--ink); border-radius: var(--radius-pill); font-size: 13px; font-weight: 600; white-space: nowrap;
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out); }
.detail-btn:hover, .detail-btn[aria-expanded="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.board-foot { display: flex; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; font-size: 13px; color: var(--muted); margin: var(--space-3) 2px 0; }
#foot-note { font-family: var(--font-mono); font-size: 12px; }
.attribution { font-family: Roboto, Arial, sans-serif; font-size: 12px; color: var(--muted); }
.empty-row td { text-align: center; color: var(--muted); padding: var(--space-10); }
tbody tr.empty-row:hover { background: transparent; }

/* ---------- Detail view (opens under a row) ---------- */
tbody tr.detail-row:hover { background: transparent; }
tbody tr.detail-row > td { padding: 0; background: var(--wash); }
.detail { padding: var(--space-6); display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.dcard { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-5); display: grid; gap: var(--space-3); align-content: start; }
.dcard.wide { grid-column: 1 / -1; }
.dcard h3 { font-size: 15px; }
.dcard p { font-size: 14px; color: var(--muted); }
.dcard p strong { color: var(--ink); font-weight: 600; }
.dcard .table-scroll { border-radius: var(--radius-sm); }
.starline { display: grid; grid-template-columns: 56px 1fr 56px; gap: 10px; align-items: center; font-size: 13px; }
.starline .track { height: 6px; background: var(--wash); border-radius: var(--radius-pill); overflow: hidden; }
.starline .track i { display: block; height: 100%; background: var(--ink); border-radius: inherit; transform-origin: left center; }
.starline:first-of-type .track i { background: var(--coral); }
.starline .n { font-family: var(--font-mono); font-size: 12.5px; text-align: right; font-variant-numeric: tabular-nums; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; font-size: 14px; }
.checks li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.checks li:last-child { border-bottom: 0; }
.checks strong { font-family: var(--font-mono); font-weight: 500; }
.yes { color: var(--good); font-weight: 600; }
.no { color: var(--muted); font-weight: 500; }
.hours { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 13.5px; margin: 0; }
.hours dt { color: var(--muted); }
.hours dd { margin: 0; font-family: var(--font-mono); font-size: 12.5px; text-align: right; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tags span { font-size: 12px; border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 3px 10px; }
table.cmp, table.mx { min-width: 0; font-size: 13.5px; }
table.cmp thead th, table.mx thead th { position: static; border-bottom-color: var(--line-strong); }
table.cmp th, table.cmp td { padding: 10px 12px; }
table.cmp td.num { font-size: 13px; }
.dlinks { display: flex; gap: var(--space-5); flex-wrap: wrap; font-size: 14px; font-weight: 600; }
.dlinks a { text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.dlinks a:hover { border-color: var(--ink); }


/* Unlock, locked cards, Stealth Report card */
/* The two asks (email unlock, Stealth Report) sit on the proposal charcoal with coral headings, so they read as the offers */
.dcard.unlock, .dcard.stealth-card { background: var(--offer); color: var(--strip-ink); border-color: var(--offer); }
.dcard.unlock h3, .dcard.stealth-card h3 { color: var(--coral); }
.dcard.unlock p, .dcard.stealth-card p { color: var(--strip-muted); }
.dcard.unlock p strong, .dcard.stealth-card p strong { color: var(--strip-ink); }
.dcard.unlock input[type="email"], .dcard.stealth-card input[type="email"] { background: transparent; color: var(--strip-ink); border-color: color-mix(in srgb, var(--strip-ink) 40%, var(--offer)); }
.dcard.unlock input::placeholder, .dcard.stealth-card input::placeholder { color: var(--strip-muted); }
.dcard.unlock input:hover, .dcard.stealth-card input:hover, .dcard.unlock input:focus-visible, .dcard.stealth-card input:focus-visible { border-color: var(--strip-ink); }
.unlock h3 { font-size: 17px; }
.unlock-grid { display: grid; gap: var(--space-4) var(--space-6); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.unlock-grid h4 { margin: 0 0 6px; font-size: 13.5px; font-weight: 700; }
.unlock-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13.5px; color: var(--muted); }
.unlock-grid li { display: flex; gap: 8px; align-items: baseline; }
.lock, .sev { flex: none; font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); border: 1px solid var(--coral-deep); border-radius: var(--radius-pill); padding: 2px 8px; white-space: nowrap; }
.dcard.locked { border: 1px dashed var(--line-strong); background: transparent; transition: border-color var(--dur-fast) var(--ease-out); }
.dcard.locked:hover { border-color: var(--coral-deep); }
.dcard.locked h3 { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.lockedlist { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 13.5px; color: var(--muted); }
.lockedlist li::marker { color: var(--line-strong); }
.dcard.locked .detail-btn { justify-self: start; margin-top: 4px; }
.dcard.locked .detail-btn:hover { background: var(--coral); border-color: var(--coral); color: var(--on-coral); }
.stealth-card h3 { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.stealth-card .lock { color: var(--strip-ink); border-color: var(--strip-muted); }
.stealth-card .unlock-grid ul { list-style: disc; padding-left: 18px; }
.stealth-card .unlock-grid li { display: list-item; }
.stealth-card .unlock-grid ul { color: var(--strip-muted); }
.stealth-card .unlock-grid li::marker { color: var(--strip-muted); }
.stealth-card .addon { margin: var(--space-5) 0 0; padding-top: var(--space-4); border-top: 1px solid color-mix(in srgb, var(--strip-ink) 18%, var(--offer)); font-size: 14px; }
.stealth-card > .btn { justify-self: start; margin-top: var(--space-4); }
.stealth-card .also { margin-top: var(--space-5); }
.stealth-card .also h4 { margin: 0 0 var(--space-2); font-size: 13.5px; font-weight: 700; color: var(--strip-ink); }
.stealth-card .also ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--space-2) var(--space-6); }
.stealth-card .also li { font-size: 14px; line-height: 1.5; color: var(--strip-muted); }
.stealth-card .also strong { color: var(--strip-ink); font-weight: 600; }

/* ---------- City and state index ---------- */
.places { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 var(--space-6); margin-top: var(--space-5); border-top: 1px solid var(--ink); }
.places a { border-bottom: 1px solid var(--line); padding: 14px 2px; text-decoration: none; display: flex; justify-content: space-between; gap: 8px; font-size: 15px; transition: padding var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out); }
.places a:hover { padding-left: 8px; border-color: var(--ink); }
.places a span { color: var(--muted); font-family: var(--font-mono); font-size: 13px; }

/* ---------- How we count it ---------- */
section.how { margin-top: var(--space-20); padding: var(--space-12) 0 0; border-top: 1px solid var(--ink); display: grid; gap: var(--space-8); grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
@media (max-width: 820px) { section.how { grid-template-columns: 1fr; } }
.how ol { margin: 0; padding: 0; list-style: none; counter-reset: how; display: grid; gap: var(--space-5); color: var(--muted); }
.how ol li { counter-increment: how; position: relative; padding-left: 44px; }
.how ol li::before { content: counter(how, decimal-leading-zero); position: absolute; left: 0; top: 3px; font-family: var(--font-mono); font-size: 13px; color: var(--ink); }
.how ol strong { color: var(--ink); font-weight: 600; }

footer { border-top: 1px solid var(--line); margin-top: var(--space-20); padding: var(--space-6) 0 var(--space-10); color: var(--muted); font-size: 14px; }
footer a { color: var(--ink); }

/* ---------- Stealth Report page ---------- */
table .gold { background: var(--coral-soft); }
thead th.gold { color: var(--ink); background: var(--coral-soft); border-bottom-color: var(--coral-deep); }
table .price { font-family: var(--font-mono); font-weight: 500; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--space-3); margin-top: var(--space-6); }
.card { border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-5); display: grid; gap: var(--space-2); align-content: start; background: var(--paper); transition: border-color var(--dur-fast) var(--ease-out); }
.card:hover { border-color: var(--ink); }
.card .n { font-family: var(--font-display); font-stretch: 125%; font-weight: 900; font-size: 13px; color: var(--muted); }
.card p { color: var(--muted); font-size: 14px; }
.card .count { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink); border-top: 1px solid var(--line); padding-top: var(--space-2); margin-top: var(--space-1); }
.sample { margin-top: var(--space-6); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.sample .bar { background: var(--wash); border-bottom: 1px solid var(--line); padding: 10px var(--space-5); font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sample .body { padding: var(--space-6) var(--space-5); display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.sample .dcard h3 .sev { margin-left: 6px; vertical-align: 2px; }
.vel { display: grid; gap: 8px; }
.vel .row { display: grid; grid-template-columns: 120px 1fr 36px; gap: 10px; align-items: center; font-size: 13.5px; }
.vel .row.you { font-weight: 600; }
.vel .track { height: 6px; background: var(--wash); border-radius: var(--radius-pill); overflow: hidden; }
.vel .track i { display: block; height: 100%; background: var(--ink); border-radius: inherit; }
.vel .row.you .track i { background: var(--coral); }
.vel .n { font-family: var(--font-mono); font-size: 12.5px; text-align: right; }
table.mx th, table.mx td { text-align: center; padding: 8px; font-size: 12.5px; }
table.mx th:first-child { text-align: left; }
table.mx td:first-child { text-align: left; font-weight: 600; }
.mention { color: var(--ink); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-5); margin-top: var(--space-6); }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }
.step { border-top: 2px solid var(--ink); padding-top: var(--space-4); display: grid; gap: 6px; align-content: start; }
.step:last-child { border-top-color: var(--coral); }
.step .day { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); }
.step p { color: var(--muted); font-size: 14px; }
.order { margin-top: var(--space-6); display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, 1fr); gap: var(--space-5); align-items: start; }
@media (max-width: 900px) { .order { grid-template-columns: 1fr; } }
form.of { border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-8); display: grid; gap: var(--space-5); }
@media (max-width: 560px) { form.of { padding: var(--space-5); } }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
@media (max-width: 560px) { .two { grid-template-columns: 1fr; } }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: var(--space-2); }
legend { padding: 0; margin-bottom: var(--space-1); }
.qs { display: grid; gap: var(--space-2); }
.qs .q { display: grid; grid-template-columns: 28px 1fr; gap: var(--space-2); align-items: start; }
.qs .q span { font-family: var(--font-display); font-stretch: 125%; font-weight: 900; font-size: 15px; padding-top: 12px; }
.radio { display: flex; gap: var(--space-4); flex-wrap: wrap; align-items: center; min-height: 46px; font-size: 14.5px; }
.radio label { display: flex; gap: 8px; align-items: center; cursor: pointer; }
.err { color: var(--danger); font-size: 13.5px; }
.summary { border: 1px solid var(--ink); border-radius: var(--radius-md); padding: var(--space-6); display: grid; gap: var(--space-4); position: sticky; top: var(--space-4); }
.summary .pricebox { display: grid; gap: 2px; padding-bottom: var(--space-4); border-bottom: 1px solid var(--line); }
.summary .pricebox b { font-family: var(--font-mono); font-weight: 400; font-size: 30px; line-height: 1.1; letter-spacing: -0.02em; }
.summary .pricebox span { color: var(--muted); font-size: 13.5px; }
.summary ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.summary ul strong { color: var(--ink); font-weight: 600; }
.done { border: 1px solid var(--good); border-radius: var(--radius-md); padding: var(--space-6); display: grid; gap: var(--space-3); margin-top: var(--space-5); }
.done dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 14px; }
.done dt { color: var(--muted); }
.done dd { margin: 0; }
pre.copy { background: var(--wash); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; font-family: var(--font-mono); font-size: 12px; overflow-x: auto; white-space: pre-wrap; max-height: 220px; }
.faq { display: grid; margin-top: var(--space-6); border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); padding: var(--space-4) 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 16px; list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); font-size: 18px; color: var(--muted); }
.faq details[open] summary::after { content: "\2212"; }
.faq p { color: var(--muted); margin-top: var(--space-2); max-width: 70ch; font-size: 15px; }

/* ---------- Practice popup: a row's details open over the page ---------- */
html.modal-open { overflow: hidden; }
#board-table > tbody > tr[data-row] { cursor: pointer; }
#board-table > tbody > tr.open { background: var(--wash); }
.pmodal { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: var(--space-6); }
.pmodal[hidden] { display: none; }
.pmodal-backdrop { position: absolute; inset: 0; background: color-mix(in srgb, var(--strip) 62%, transparent); }
.pmodal-panel { position: relative; width: min(1080px, 100%); max-height: min(92vh, 1000px); display: grid; grid-template-rows: auto minmax(0, 1fr); background: var(--wash); border-radius: var(--radius-md); box-shadow: var(--shadow-float); overflow: hidden; }
.pmodal-top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-5) var(--space-5) var(--space-5) var(--space-6); background: var(--paper); border-bottom: 1px solid var(--line); }
.pmodal-head { display: flex; align-items: center; gap: var(--space-5); min-width: 0; }
.pmodal-rank { flex: none; display: grid; gap: 4px; font-family: var(--font-display); font-stretch: 125%; font-weight: 900; font-size: 36px; line-height: 1; letter-spacing: -0.02em; color: var(--coral-deep); }
.pmodal-rank small { font-family: var(--font-body); font-stretch: 100%; font-size: 12px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.pmodal-head h2 { font-size: clamp(20px, 2.4vw, 28px); line-height: 1.1; font-weight: 800; }
.pmodal-head p { margin-top: 6px; color: var(--muted); font-size: 14px; }
.pmodal-close { flex: none; width: 44px; height: 44px; border: 1px solid var(--line-strong); background: var(--paper); color: var(--ink); border-radius: var(--radius-pill); font-size: 22px; line-height: 1; transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out); }
.pmodal-close:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pmodal-body { overflow-y: auto; overscroll-behavior: contain; }
@media (max-width: 600px) {
  .pmodal { padding: 0; align-items: end; }
  .pmodal-panel { width: 100%; max-height: 94vh; max-height: 94dvh; border-radius: var(--radius-md) var(--radius-md) 0 0; }
  .pmodal-top { padding: var(--space-4); }
  .pmodal-head { gap: var(--space-3); }
  .pmodal-rank { font-size: 28px; }
  .pmodal-body .detail { padding: var(--space-4); }
}

/* ---------- AI Mode: the $19 a month upsell beside the board heading ---------- */
.ai-btn { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 6px 0 16px; border: 1px solid var(--offer); background: var(--offer); color: var(--strip-ink); border-radius: var(--radius-pill); font-weight: 600; font-size: 14px; white-space: nowrap; transition: border-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out); }
.ai-btn:hover { border-color: var(--coral); }
.ai-btn:active { transform: translateY(1px); }
.ai-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); flex: none; }
.ai-price { font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; letter-spacing: 0.02em; background: color-mix(in srgb, var(--strip-ink) 14%, transparent); border-radius: var(--radius-pill); padding: 6px 10px; }
.aimodal .pmodal-panel { width: min(620px, 100%); background: var(--paper); }
.aimodal .pmodal-top h2 { font-size: clamp(22px, 2.6vw, 28px); line-height: 1.1; }
.ai-body { overflow-y: auto; overscroll-behavior: contain; padding: var(--space-6); display: grid; gap: var(--space-5); }
.ai-body .lock { justify-self: start; }
.ai-body > p { color: var(--muted); font-size: 15px; }
.ai-asks { display: grid; gap: var(--space-2); }
.ai-asks button { text-align: left; border: 1px solid var(--line); background: var(--wash); color: var(--ink); border-radius: var(--radius-md); padding: 10px 14px; font-size: 14px; line-height: 1.4; transition: border-color var(--dur-fast) var(--ease-out); }
.ai-asks button:hover { border-color: var(--ink); }
.ai-compose { display: flex; gap: var(--space-2); }
.ai-compose input { flex: 1 1 auto; width: auto; }
.ai-wait { border-top: 1px solid var(--line); padding-top: var(--space-5); display: grid; gap: var(--space-3); }
.ai-wait h3 { font-size: 15px; }
@media (max-width: 600px) { .board-head .ai-btn { width: 100%; justify-content: space-between; } .ai-body { padding: var(--space-5) var(--space-4); } }

/* ---------- Chat assistant: the practice checker, docked bottom right ---------- */
.chat-launcher { position: fixed; right: var(--space-6); bottom: var(--space-6); z-index: 60; display: flex; align-items: center; gap: var(--space-3); padding: 0; border: 0; background: transparent; color: var(--ink); }
.chat-launcher[hidden] { display: none; }
.chat-teaser { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-float); padding: 12px 16px; font-family: var(--font-display); font-stretch: 112%; font-size: 15px; line-height: 1.2; letter-spacing: -0.01em; text-align: left; max-width: 250px; transition: border-color var(--dur-fast) var(--ease-out); }
.chat-teaser b { font-weight: 900; }
.chat-avatar { flex: none; width: 56px; height: 56px; border-radius: 50%; background: var(--strip); display: grid; place-items: center; box-shadow: var(--shadow-float); transition: transform var(--dur-fast) var(--ease-out); }
.chat-avatar img { width: 28px; height: auto; display: block; }
.chat-launcher:hover .chat-teaser { border-color: var(--ink); }
.chat-launcher:hover .chat-avatar { transform: scale(1.05); }
section.checker.chat { position: fixed; right: var(--space-6); bottom: var(--space-6); z-index: 61; width: 384px; max-height: min(640px, calc(100vh - 48px)); margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; gap: 0;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-float); overflow: hidden; transform-origin: bottom right; }
section.checker.chat[hidden] { display: none; }
.chat-head { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-3) var(--space-3) var(--space-4); border-bottom: 1px solid var(--line); }
.chat-head .chat-avatar { width: 36px; height: 36px; box-shadow: none; }
.chat-head .chat-avatar img { width: 18px; }
.chat .chat-head h2 { margin: 0; flex: 1; font-size: 17px; line-height: 1.15; }
.chat-close { width: 40px; height: 40px; border: 0; background: transparent; color: var(--muted); font-size: 22px; line-height: 1; border-radius: var(--radius-sm); }
.chat-close:hover { color: var(--ink); background: var(--wash); }
.chat-body { overflow-y: auto; overscroll-behavior: contain; padding: var(--space-5) var(--space-4); display: grid; gap: var(--space-3); align-content: start; background: var(--wash); }
.chat .bubble { margin: 0; max-width: 88%; padding: 10px 14px; border-radius: var(--radius-md); font-size: 14.5px; line-height: 1.45; }
.chat .bubble.bot { justify-self: start; background: var(--paper); color: var(--ink); border: 1px solid var(--line); }
.chat .bubble.you { justify-self: end; background: var(--ink); color: var(--paper); }
.chat .bubble[hidden] { display: none; }
.chat .result { min-height: 0; padding: var(--space-4); gap: var(--space-4); }
.chat .result .empty { color: var(--muted); font-size: 13.5px; text-align: left; justify-self: start; max-width: none; }
.chat .stat-row { gap: var(--space-3); }
.chat .stat .num { font-size: 24px; }
.chat .stat .lbl { font-size: 12px; }
.chat .chat-compose { margin: 0; padding: var(--space-3) var(--space-4) var(--space-4); border-top: 1px solid var(--line); background: var(--paper); display: grid; gap: var(--space-2); }
.chat .suggest { margin: 0; max-height: 220px; overflow-y: auto; }
@media (max-width: 600px) {
  .chat-launcher { right: var(--space-4); bottom: var(--space-4); }
  .chat-teaser { font-size: 14px; max-width: 210px; padding: 10px 12px; }
  .chat-avatar { width: 52px; height: 52px; }
  section.checker.chat { right: 0; left: 0; bottom: 0; width: auto; max-height: 88vh; max-height: 88dvh; border-bottom: 0; border-radius: var(--radius-md) var(--radius-md) 0 0; }
}

/* ---------- Preloader: the glowing 1F mark, under a second ---------- */
.preloader { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: var(--paper); pointer-events: none;
  animation: preloader-out var(--dur-base) var(--ease-out) forwards; animation-delay: calc(var(--dur-preloader) - var(--dur-base)); }
.preloader img { width: 72px; height: auto; animation: glow var(--dur-preloader) var(--ease-out) both; }

/* ---------- Motion: quick, purposeful, off for reduced motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes arrive { from { opacity: 0; transform: translateY(8px) scale(0.985); } to { opacity: 1; transform: none; } }
@keyframes open { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes grow { from { transform: scaleX(0); } to { transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ping { from { box-shadow: 0 0 0 0 color-mix(in srgb, var(--coral) 60%, transparent); } to { box-shadow: 0 0 0 14px color-mix(in srgb, var(--coral) 0%, transparent); } }
@keyframes glow { 0% { opacity: 0; transform: scale(0.92); filter: drop-shadow(0 0 0 transparent); } 55% { opacity: 1; transform: none; filter: drop-shadow(0 0 22px color-mix(in srgb, var(--coral) 70%, transparent)); } 100% { opacity: 1; transform: none; filter: drop-shadow(0 0 0 transparent); } }
@keyframes preloader-out { to { opacity: 0; visibility: hidden; } }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes rot-in { from { opacity: 0; transform: translateY(0.3em); } to { opacity: 1; transform: none; } }
@keyframes chat-open { from { opacity: 0; transform: translateY(12px) scale(0.96); } to { opacity: 1; transform: none; } }
.reveal, .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: rise var(--dur-slow) var(--ease-out) both; }
  @supports (animation-timeline: view()) {
    .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; }
  }
  #board-table > tbody > tr { animation: rise var(--dur-base) var(--ease-out) both; }
  .detail { animation: open var(--dur-base) var(--ease-out) both; }
  .result > *, .snap > *, .done { animation: arrive var(--dur-base) var(--ease-out) both; }
  .result > :nth-child(2), .snap > :nth-child(2) { animation-delay: 40ms; }
  .result > :nth-child(3), .snap > :nth-child(3) { animation-delay: 80ms; }
  .result > :nth-child(n+4), .snap > :nth-child(n+4) { animation-delay: 120ms; }
  .gapbar .you, .starline .track i { animation: grow var(--dur-slow) var(--ease-out) both; }
  .suggest button { animation: fade var(--dur-fast) var(--ease-out) both; }
  .faq details[open] p { animation: open var(--dur-base) var(--ease-out) both; }
  .promo .radar i:first-child { animation: ping 2.2s var(--ease-out) infinite; }
  section.checker.chat:not([hidden]) { animation: chat-open var(--dur-base) var(--ease-out) both; }
  .ai-dot { animation: ping 2.2s var(--ease-out) infinite; }
  h1.swap .rot { display: inline-block; animation: rot-in var(--dur-slow) var(--ease-out) both; }
  h1.swap .rot + .rot, h1.swap b.rot { animation-delay: 60ms; }
  .pmodal:not([hidden]) .pmodal-backdrop { animation: fade var(--dur-base) var(--ease-out) both; }
  .pmodal:not([hidden]) .pmodal-panel { animation: pop var(--dur-base) var(--ease-out) both; }
  .chat-launcher .chat-teaser { animation: rise var(--dur-slow) var(--ease-out) 1s both; }
  .chat .bubble { animation: arrive var(--dur-base) var(--ease-out) both; }
}
@media (prefers-reduced-motion: reduce) {
  .preloader { display: none; }
  *, *::before, *::after { animation: none !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
}
