/* ReNav public site — home, guide, pricing, team, legal and sign-in pages.
   The patient app (app.css) and the dashboard (main.css) are styled separately:
   the app is a dark bedside screen, and nothing here may leak into it.

   Light by default, dark when the device asks for it. Every colour is a token,
   so a page never hardcodes one — that is what made the old pages drift. */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f3f5f8;
  --ink: #0f1728;
  --ink-2: #364152;
  --ink-3: #5b6678;
  --line: #e3e7ed;
  --line-strong: #c9d0da;

  --brand: #1d4ed8;
  --brand-hover: #1a3fae;
  --brand-ink: #ffffff;
  --brand-soft: #e9effd;
  --brand-text: #1c45c4;

  --accent: #9a5b00;
  --accent-soft: #fdf3e2;
  --accent-line: #ecc98f;

  --ok: #17703a;
  --ok-soft: #e7f5ec;
  --danger: #b42318;
  --danger-soft: #fdecea;

  /* The dark band behind product shots: the patient app's own background. */
  --night: #0b1120;
  --night-2: #131b2e;
  --night-ink: #e6eaf2;
  --night-ink-2: #a7b1c4;
  --night-line: #243049;

  --shadow-sm: 0 1px 2px rgba(15,23,40,.06);
  --shadow: 0 10px 30px -12px rgba(15,23,40,.22), 0 2px 4px rgba(15,23,40,.05);
  --header-bg: rgba(255,255,255,.92);

  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 12px;

  --font: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: var(--font);
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  /* The four answer colours of the patient app, so diagrams match the screen. */
  --q-green: #15803d;
  --q-red: #b91c1c;
  --q-indigo: #4338ca;
  --q-purple: #7c3aed;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1120;
    --surface: #111a2c;
    --surface-2: #0f1727;
    --ink: #e8ecf3;
    --ink-2: #b4bdcc;
    --ink-3: #8d97a8;
    --line: #222d42;
    --line-strong: #334058;
    --brand: #6f9bff;
    --brand-hover: #94b4ff;
    --brand-ink: #071232;
    --brand-soft: rgba(111,155,255,.14);
    --brand-text: #8fb0ff;
    --accent: #f0b35e;
    --accent-soft: rgba(240,179,94,.12);
    --accent-line: rgba(240,179,94,.35);
    --ok: #5ad48a;
    --ok-soft: rgba(90,212,138,.12);
    --danger: #ff8b80;
    --danger-soft: rgba(255,139,128,.12);
    --night: #070c17;
    --night-2: #0e1525;
    --night-line: #1e283c;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
    --shadow: 0 16px 40px -16px rgba(0,0,0,.7);
    --header-bg: rgba(11,17,32,.9);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1120; --surface: #111a2c; --surface-2: #0f1727;
  --ink: #e8ecf3; --ink-2: #b4bdcc; --ink-3: #8d97a8;
  --line: #222d42; --line-strong: #334058;
  --brand: #6f9bff; --brand-hover: #94b4ff; --brand-ink: #071232;
  --brand-soft: rgba(111,155,255,.14); --brand-text: #8fb0ff;
  --accent: #f0b35e; --accent-soft: rgba(240,179,94,.12); --accent-line: rgba(240,179,94,.35);
  --ok: #5ad48a; --ok-soft: rgba(90,212,138,.12);
  --danger: #ff8b80; --danger-soft: rgba(255,139,128,.12);
  --night: #070c17; --night-2: #0e1525; --night-line: #1e283c;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4); --shadow: 0 16px 40px -16px rgba(0,0,0,.7);
  --header-bg: rgba(11,17,32,.9);
  color-scheme: dark;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }

/* Anchored sections land below the sticky header, not under it. */
[id] { scroll-margin-top: 88px; }

img, svg { display: block; max-width: 100%; }
a { color: var(--brand-text); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--brand-hover); }
strong { color: var(--ink); font-weight: 650; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; font-weight: 700; text-wrap: balance; }
ul, ol { padding-left: 1.25em; }

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

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 300;
  background: var(--brand); color: var(--brand-ink);
  padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--brand-ink); }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 780px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ─── Type ─────────────────────────────────────────────────────── */
.display {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.1;
}
/* A small label above a page title. Used sparingly: not every heading needs one. */
.eyebrow {
  display: block;
  font-size: .9rem; font-weight: 600;
  color: var(--brand-text);
  margin-bottom: 10px;
}
.lead { font-size: 1.2rem; color: var(--ink-2); line-height: 1.6; }
.muted { color: var(--ink-3); }
.small { font-size: .9rem; }

/* ─── Buttons ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px;
  border-radius: var(--radius-sm); border: 1px solid transparent;
  font: inherit; font-size: .97rem; font-weight: 600; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn--primary { background: var(--brand); color: var(--brand-ink); }
.btn--primary:hover { background: var(--brand-hover); color: var(--brand-ink); }
.btn--secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn--secondary:hover { border-color: var(--ink-3); color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn--accent { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-line); }
.btn--accent:hover { color: var(--accent); border-color: var(--accent); }
/* For the dark bands: an outline in the band's own ink. */
.btn--on-dark { background: transparent; color: var(--night-ink); border-color: rgba(230,234,242,.32); }
.btn--on-dark:hover { color: #fff; border-color: rgba(230,234,242,.7); background: rgba(255,255,255,.04); }
.btn--lg { min-height: 50px; padding: 13px 24px; font-size: 1.02rem; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* ─── Header ───────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; gap: 20px; min-height: 64px; }

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none;
  font-weight: 700; font-size: 1.18rem; letter-spacing: -.015em;
}
.brand:hover { color: var(--ink); }
.brand-mark { width: 28px; height: 28px; flex-shrink: 0; }

.site-menu { display: flex; align-items: center; gap: 20px; flex: 1; }
.site-menu > nav { margin: 0 0 0 28px; }
.site-actions { margin-left: auto; }
.site-nav { display: flex; list-style: none; gap: 4px; padding: 0; margin: 0; }
.site-nav a {
  display: block; padding: 8px 12px; border-radius: var(--radius-sm);
  color: var(--ink-2); text-decoration: none; font-size: .95rem; font-weight: 500;
}
.site-nav a:hover { color: var(--ink); background: var(--surface-2); }
.site-nav a[aria-current="page"], .site-actions a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--brand); border-radius: 0; }
.site-actions { display: flex; align-items: center; gap: 8px; }
.site-actions .btn { min-height: 38px; padding: 7px 14px; font-size: .93rem; }

.nav-toggle {
  display: none; margin-left: auto;
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  background: transparent; border: 1px solid var(--line-strong); color: var(--ink);
  align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .site-menu {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 14px;
    padding: 12px 16px 20px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    max-height: calc(100vh - 64px); overflow-y: auto;
  }
  .site-menu.is-open { display: flex; }
  .site-menu > nav { margin: 0; }
  .site-nav { flex-direction: column; gap: 2px; }
  .site-nav a { padding: 12px 14px; font-size: 1.02rem; }
  .site-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--brand); }
  .site-actions { margin-left: 0; flex-direction: column; align-items: stretch; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
  .site-actions .btn { min-height: 48px; font-size: 1rem; }
}

/* ─── Sections ─────────────────────────────────────────────────── */
.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.section--alt { background: var(--surface-2); }
.section h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); letter-spacing: -.022em; font-weight: 600; }

/* Section opening: heading on the left, a sentence of context on the right. */
.intro {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 48px;
  align-items: end; margin-bottom: 48px;
}
.intro p { color: var(--ink-2); font-size: 1.08rem; max-width: 520px; }
@media (max-width: 800px) { .intro { grid-template-columns: 1fr; margin-bottom: 36px; } }

/* Kept for pages that still use a centred section heading. */
.section-head { max-width: 700px; margin: 0 0 44px; }
.section-head h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); margin-bottom: 12px; }
.section-head p { color: var(--ink-2); font-size: 1.08rem; }
.section-head--left { margin-left: 0; text-align: left; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.card p { color: var(--ink-2); font-size: .98rem; }

.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.icon-badge {
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--brand-text); border: 1px solid var(--line);
  margin-bottom: 14px;
}
.icon-badge svg { width: 20px; height: 20px; }

.check-list, .ticks { list-style: none; padding: 0; display: grid; gap: 8px; }
.check-list li, .ticks li { position: relative; padding-left: 24px; color: var(--ink-2); font-size: .97rem; }
.check-list li::before, .ticks li::before {
  content: ''; position: absolute; left: 2px; top: .42em;
  width: 11px; height: 6px;
  border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok);
  transform: rotate(-45deg);
}

/* ─── Home: hero ───────────────────────────────────────────────── */
/* Dark, like the patient app it shows, so the screenshot sits in its own light. */
.hero {
  background: var(--night); color: var(--night-ink);
  padding: 80px 0 0;
  overflow: hidden;
}
.hero__text { max-width: 760px; }
.hero h1 {
  color: #fff;
  font-size: clamp(2.4rem, 5.4vw, 4rem);
  font-weight: 600; letter-spacing: -.03em; line-height: 1.04;
  margin-bottom: 22px;
}
.hero .lead { color: var(--night-ink-2); max-width: 620px; margin-bottom: 32px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.hero__signin { color: var(--night-ink-2); font-size: .95rem; }
.hero__signin a { color: #fff; }

.hero__facts {
  list-style: none; padding: 0; margin: 56px 0 48px;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--night-line);
}
.hero__facts li {
  padding: 18px 20px 0 0; color: var(--night-ink-2); font-size: .92rem; line-height: 1.45;
}
.hero__facts li + li { padding-left: 20px; border-left: 1px solid var(--night-line); }
.hero__facts strong { display: block; color: #fff; font-weight: 600; font-size: 1rem; margin-bottom: 2px; }
@media (max-width: 800px) {
  .hero__facts { grid-template-columns: 1fr 1fr; }
  .hero__facts li:nth-child(3) { padding-left: 0; border-left: 0; }
  .hero__facts li:nth-child(n+3) { margin-top: 12px; }
}

/* A screenshot of the real app in a plain window frame. */
.shot { margin: 0; }
.shot__frame {
  border-radius: var(--radius-lg); overflow: hidden;
  background: #0b0f1a;
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.6);
}
.shot__frame img { width: 100%; height: auto; }
.shot__bar {
  display: flex; align-items: center; gap: 7px;
  padding: 10px 14px; background: #161d2e; border-bottom: 1px solid rgba(255,255,255,.06);
}
.shot__bar span { width: 10px; height: 10px; border-radius: 50%; background: #2c364b; }
.shot__bar em {
  font-style: normal; font-family: var(--mono); font-size: .76rem; color: #7f8aa3;
  margin-left: 14px; padding: 3px 12px; background: #0e1424; border-radius: 4px;
}
.shot figcaption { color: var(--ink-3); font-size: .9rem; margin-top: 14px; }

.shot--hero { position: relative; margin-bottom: -1px; }
.shot--hero .shot__frame { border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-bottom: 0; }

/* ─── Home: steps ──────────────────────────────────────────────── */
.timeline {
  list-style: none; padding: 0; counter-reset: step;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px;
}
.timeline li { position: relative; padding-top: 22px; border-top: 2px solid var(--ink); }
.timeline li::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: block; font-family: var(--mono); font-size: .85rem; font-weight: 500;
  color: var(--brand-text); margin-bottom: 10px;
}
.timeline h3, .how-steps h3 { font-size: 1.12rem; margin-bottom: 8px; }
.timeline p, .how-steps p { color: var(--ink-2); font-size: .97rem; }
@media (max-width: 960px) { .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .timeline { grid-template-columns: 1fr; gap: 28px; } }

/* ─── Home: modes ──────────────────────────────────────────────── */
.modes {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.mode { padding: 30px 28px; display: flex; flex-direction: column; }
.mode + .mode { border-left: 1px solid var(--line); }
.mode h3 { font-size: 1.2rem; }
.mode__for { color: var(--brand-text); font-size: .93rem; font-weight: 500; margin: 2px 0 14px; }
.mode > p:not(.mode__for) { color: var(--ink-2); font-size: .98rem; margin-bottom: 20px; }
.mode .ticks { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
@media (max-width: 900px) {
  .modes { grid-template-columns: 1fr; }
  .mode + .mode { border-left: 0; border-top: 1px solid var(--line); }
}

.feature {
  display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: center;
  margin-top: 72px;
}
.feature__text h3 { font-size: 1.5rem; letter-spacing: -.015em; margin-bottom: 14px; }
.feature__text p { color: var(--ink-2); margin-bottom: 14px; }
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; gap: 28px; margin-top: 48px; } }

.note-center { color: var(--ink-3); margin-top: 28px; }

/* ─── Home: audiences ──────────────────────────────────────────── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.split h2 { margin-bottom: 18px; }
.split > div > p { color: var(--ink-2); margin-bottom: 14px; }
.split > div > p.muted { color: var(--ink-3); font-size: .97rem; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 40px; } }

.photo { margin: 28px 0 0; }
.photo img { width: 100%; height: auto; border-radius: var(--radius); aspect-ratio: 3 / 2; object-fit: cover; }

.settings { margin: 0; border-top: 2px solid var(--ink); }
.settings > div { padding: 22px 0; border-bottom: 1px solid var(--line); }
.settings dt { font-weight: 600; font-size: 1.08rem; color: var(--ink); margin-bottom: 6px; }
.settings dd { margin: 0; color: var(--ink-2); font-size: .98rem; }

/* Old list markup on other pages. */
.setting-list { display: grid; gap: 14px; }
.setting { display: grid; grid-template-columns: auto 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.setting .icon-badge { margin: 0; }
.setting h3 { font-size: 1.05rem; margin-bottom: 4px; }
.setting p { color: var(--ink-2); font-size: .95rem; }

/* ─── Home: features ───────────────────────────────────────────── */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 48px; }
.facts > div { padding-top: 18px; border-top: 1px solid var(--line-strong); }
.facts h3 { font-size: 1.08rem; margin-bottom: 6px; }
.facts p { color: var(--ink-2); font-size: .97rem; }
@media (max-width: 900px) { .facts { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; } }

/* ─── Home: pricing teaser ─────────────────────────────────────── */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.plan {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column;
}
.plan h3 { font-size: 1rem; font-weight: 600; color: var(--ink-2); }
.plan .price { font-size: 2.2rem; font-weight: 600; letter-spacing: -.03em; color: var(--ink); margin-top: 6px; line-height: 1.2; }
.plan .price span { font-size: .95rem; font-weight: 400; color: var(--ink-3); letter-spacing: 0; }
.plan .price--text { font-size: 1.7rem; }
.plan__sub { color: var(--ink-3); font-size: .92rem; margin-bottom: 20px; }
.plan .ticks { padding-top: 20px; border-top: 1px solid var(--line); }
.plan--featured { border-color: var(--brand); box-shadow: inset 0 3px 0 var(--brand); }
.after-plans { margin-top: 24px; font-weight: 600; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }

/* Old teaser markup on other pages. */
.plan-mini { display: flex; flex-direction: column; gap: 6px; }
.plan-mini .price { font-size: 1.9rem; font-weight: 600; letter-spacing: -.02em; color: var(--ink); }
.plan-mini .price span { font-size: .95rem; font-weight: 400; color: var(--ink-3); }
.plan-mini .check-list { margin-top: 14px; }
.plan-mini--featured { border-color: var(--brand); box-shadow: inset 0 3px 0 var(--brand); }

/* ─── FAQ ──────────────────────────────────────────────────────── */
.faq-layout { display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; align-items: start; }
.faq-layout h2 { margin-bottom: 12px; }
@media (max-width: 900px) { .faq-layout { grid-template-columns: 1fr; gap: 28px; } }

.faq { display: grid; max-width: 820px; border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0; font-weight: 600; font-size: 1.04rem; color: var(--ink);
}
.faq summary:hover { color: var(--brand-text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; flex-shrink: 0; width: 20px; text-align: center;
  font-size: 1.4rem; font-weight: 400; line-height: 1; color: var(--ink-3);
}
.faq details[open] summary::after { content: '−'; }
.faq .faq-body { padding: 0 40px 22px 0; color: var(--ink-2); }
.faq .faq-body p + p { margin-top: 10px; }

/* ─── Closing band ─────────────────────────────────────────────── */
.closing { background: var(--night); color: var(--night-ink); }
.closing__grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: stretch; }
.closing__text { padding: 88px 56px 88px 0; }
.closing h2 { color: #fff; font-size: clamp(1.9rem, 3.4vw, 2.6rem); letter-spacing: -.025em; font-weight: 600; margin-bottom: 14px; }
.closing p { color: var(--night-ink-2); font-size: 1.1rem; margin-bottom: 30px; max-width: 520px; }
.closing__photo { margin: 0 min(-24px, calc(546px - 50vw)) 0 0; position: relative; min-height: 300px; }
.closing__photo img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.05);
}
@media (max-width: 900px) {
  .closing__grid { grid-template-columns: 1fr; }
  .closing__text { padding: 64px 0 40px; }
  .closing__photo { margin: 0 -16px; min-height: 240px; }
}

/* ─── CTA band (inner pages) ───────────────────────────────────── */
.cta-band {
  background: var(--night); color: var(--night-ink);
  border-radius: var(--radius-lg); padding: 56px 48px;
}
.cta-band h2 { color: #fff; font-size: clamp(1.8rem, 3.2vw, 2.3rem); margin-bottom: 12px; }
.cta-band p { color: var(--night-ink-2); margin-bottom: 28px; font-size: 1.1rem; }
.cta-band .btn--secondary { background: transparent; color: var(--night-ink); border-color: rgba(230,234,242,.32); }
.cta-band .btn--secondary:hover { color: #fff; border-color: rgba(230,234,242,.7); }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ─── Footer ───────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 56px 0 32px; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.footer-grid p { color: var(--ink-3); font-size: .95rem; margin-top: 12px; max-width: 300px; }
.footer-col h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); margin-bottom: 14px; font-weight: 700; }
.footer-col ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: var(--ink-2); text-decoration: none; font-size: .96rem; }
.footer-col a:hover { color: var(--brand-text); text-decoration: underline; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line);
  color: var(--ink-3); font-size: .88rem;
}
.footer-bottom a { color: var(--ink-3); }
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

/* ─── Page hero (inner pages) ──────────────────────────────────── */
/* A plain document header: left-aligned, on a grey band, ruled off. */
.page-hero, .guide-hero {
  padding: 64px 0 48px; margin-bottom: 48px;
  background: var(--surface-2); border-bottom: 1px solid var(--line);
}
.page-pricing .page-hero .container--narrow,
.page-guide .guide-hero .container--narrow { max-width: 1140px; }
.page-hero h1, .guide-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.1rem); margin-bottom: 14px; max-width: 760px; }
.page-hero p, .guide-hero p { color: var(--ink-2); font-size: 1.12rem; max-width: 640px; }
.page-hero .meta { color: var(--ink-3); font-size: .95rem; }

/* ─── Callouts ─────────────────────────────────────────────────── */
.callout, .highlight-box {
  border: 1px solid var(--line); border-left: 4px solid var(--brand);
  background: var(--brand-soft);
  border-radius: var(--radius-sm);
  padding: 18px 22px; margin: 22px 0;
}
.callout p, .highlight-box p { margin: 0 !important; color: var(--ink-2) !important; font-size: .98rem !important; }
.callout .hb-title, .highlight-box .hb-title { font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.highlight-box.success, .callout--ok { border-left-color: var(--ok); background: var(--ok-soft); }
.highlight-box.warning, .callout--warn { border-left-color: var(--accent); background: var(--accent-soft); }

/* ─── Alerts (Django messages) ─────────────────────────────────── */
.alert {
  padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: .95rem;
  background: var(--danger-soft); border: 1px solid var(--danger); color: var(--danger);
}
.alert-success { background: var(--ok-soft); border-color: var(--ok); color: var(--ok); }
.alert-info { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-text); }

/* ─── Forms ────────────────────────────────────────────────────── */
.field { display: grid; gap: 6px; }
.field + .field { margin-top: 16px; }
label, .field label { font-size: .93rem; font-weight: 600; color: var(--ink); }
.optional { font-weight: 400; color: var(--ink-3); }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], select, textarea {
  width: 100%; min-height: 48px; padding: 11px 14px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink);
  font: inherit; font-size: 1rem;
  transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
input::placeholder, textarea::placeholder { color: var(--ink-3); opacity: .8; }
.errorlist { list-style: none; padding: 0; margin: 6px 0 0; color: var(--danger); font-size: .9rem; }
.helptext { color: var(--ink-3); font-size: .85rem; }

/* ─── Auth ─────────────────────────────────────────────────────── */
.auth-wrap { padding: 56px 16px 80px; display: flex; justify-content: center; }
.auth-card {
  width: 100%; max-width: 440px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 40px 36px; box-shadow: var(--shadow);
}
.auth-card--center { text-align: center; }
.auth-head { text-align: center; margin-bottom: 28px; }
.auth-head h1 { font-size: 1.9rem; margin-bottom: 6px; }
.auth-head p { color: var(--ink-2); }
.auth-form { display: grid; gap: 16px; }
.auth-form .field + .field { margin-top: 0; }
.auth-form .btn { margin-top: 6px; }
.auth-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: .92rem; }
.auth-foot { text-align: center; margin-top: 24px; color: var(--ink-2); font-size: .95rem; display: grid; gap: 8px; }
.auth-legal { color: var(--ink-3); font-size: .85rem; }
.auth-icon {
  width: 52px; height: 52px; border-radius: var(--radius); margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-soft); color: var(--brand-text);
}
.auth-icon svg { width: 28px; height: 28px; }
/* Django's form.as_p on the password-reset page. */
.auth-form p { display: grid; gap: 6px; }
.auth-form p .helptext, .auth-form p ul { font-size: .85rem; color: var(--ink-3); }
.auth-form p ul { padding-left: 1.1em; }
@media (max-width: 480px) { .auth-card { padding: 30px 22px; } .auth-wrap { padding-top: 32px; } }

.otp-boxes { display: flex; gap: 8px; justify-content: center; }
.otp-digit {
  width: 50px !important; height: 58px; min-height: 0 !important; padding: 0 !important;
  text-align: center; font-size: 1.5rem !important; font-weight: 700;
  caret-color: var(--brand);
}
@media (max-width: 400px) { .otp-digit { width: 42px !important; height: 52px; } }

/* ─── Legal pages ──────────────────────────────────────────────── */
.prose { padding-bottom: 80px; }
.prose .legal-section { margin-bottom: 44px; }
.prose h2 { font-size: 1.4rem; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.prose h3 { font-size: 1.1rem; margin: 20px 0 8px; }
.prose p, .prose li { color: var(--ink-2); line-height: 1.8; margin-bottom: 12px; }
.prose li { margin-bottom: 6px; }
.prose ul, .prose ol { margin-bottom: 12px; }
.toc-inline {
  display: flex; flex-wrap: wrap; gap: 8px;
  list-style: none; padding: 0; margin: 0 auto 48px;
}
.toc-inline a {
  display: inline-block; padding: 6px 12px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--line);
  color: var(--ink-2); text-decoration: none; font-size: .88rem;
}
.toc-inline a:hover { border-color: var(--brand); color: var(--brand-text); }

.table-wrap { overflow-x: auto; margin: 20px 0; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.data-table, .trouble-table { width: 100%; border-collapse: collapse; background: var(--surface); }
.data-table th, .trouble-table th {
  background: var(--surface-2); color: var(--ink); text-align: left;
  padding: 12px 16px; font-size: .86rem; font-weight: 700;
}
.data-table td, .trouble-table td {
  padding: 12px 16px; font-size: .95rem; color: var(--ink-2);
  border-top: 1px solid var(--line); vertical-align: top;
}
.trouble-table .problem { color: var(--ink); font-weight: 600; }

/* ─── Pricing ──────────────────────────────────────────────────── */
.free-forever {
  max-width: 780px; margin: 0; padding: 16px 22px;
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--ok-soft); border: 1px solid var(--ok);
  border-radius: var(--radius); color: var(--ink-2);
}
.free-forever svg { width: 24px; height: 24px; color: var(--ok); flex-shrink: 0; margin-top: 1px; }
.free-forever strong { color: var(--ink); }

.tier-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; margin: 40px 0 56px; }
@media (max-width: 1060px) { .tier-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 600px) { .tier-grid { grid-template-columns: 1fr; } }
.tier {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; display: flex; flex-direction: column; position: relative;
}
.tier.featured { border-color: var(--brand); box-shadow: inset 0 3px 0 var(--brand); }
.tier-badge {
  display: inline-block; align-self: flex-start;
  background: var(--brand-soft); color: var(--brand-text);
  border-radius: 4px; padding: 3px 9px;
  font-size: .82rem; font-weight: 600;
  margin-bottom: 12px;
}
.tier-badge--accent { background: var(--accent-soft); color: var(--accent); }
.tier h2 { font-size: 1.2rem; margin-bottom: 4px; }
.tier .price { font-size: 2.1rem; font-weight: 750; letter-spacing: -.02em; color: var(--ink); margin-top: 6px; }
.tier .price span { font-size: .95rem; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.tier .sub { font-size: .92rem; color: var(--ink-3); min-height: 22px; }
.tier .check-list { margin: 20px 0 24px; }
.tier .btn { margin-top: auto; }

.sponsor-card {
  display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 36px; margin-bottom: 56px;
}
.sponsor-card h2 { font-size: 1.6rem; margin-bottom: 12px; }
.sponsor-card p { color: var(--ink-2); margin-bottom: 12px; }
.sponsor-card .check-list { margin-bottom: 24px; }
@media (max-width: 800px) { .sponsor-card { grid-template-columns: 1fr; gap: 20px; padding: 26px 22px; } }

.request-card {
  max-width: 680px; margin: 0 auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 36px; box-shadow: var(--shadow);
}
.request-card h2 { font-size: 1.6rem; margin-bottom: 8px; }
.request-card > p { color: var(--ink-2); margin-bottom: 24px; }
.request-card .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.request-card .form-grid .field + .field { margin-top: 0; }
.request-card .span-2 { grid-column: 1 / -1; }
.request-card .btn { margin-top: 24px; }
@media (max-width: 600px) { .request-card { padding: 26px 20px; } .request-card .form-grid { grid-template-columns: 1fr; } }

.steps-inline { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; margin-bottom: 32px; counter-reset: s; }
.steps-inline li { position: relative; padding: 18px 18px 18px 58px; background: var(--surface-2); border-radius: var(--radius); color: var(--ink-2); font-size: .95rem; }
.steps-inline li::before {
  counter-increment: s; content: counter(s);
  position: absolute; left: 18px; top: 18px;
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand); color: var(--brand-ink); font-weight: 700; font-size: .9rem;
}
.steps-inline strong { display: block; }
@media (max-width: 700px) { .steps-inline { grid-template-columns: 1fr; } }

/* ─── Thanks ───────────────────────────────────────────────────── */
.thanks-actions { margin-top: 28px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ─── Team ─────────────────────────────────────────────────────── */
/* Developers two abreast; a contributor (the odd card out) sits centred on its
   own row beneath them, the width of the others. */
.dev-cards { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; max-width: 760px; margin: 0 auto; }
.dev-card:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 9px); }
@media (max-width: 560px) {
  .dev-cards { grid-template-columns: 1fr; }
  .dev-card:last-child:nth-child(odd) { width: 100%; }
}
.dev-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 24px; text-align: center; }
.dev-avatar {
  width: 68px; height: 68px; border-radius: 50%; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem; font-weight: 750; color: #fff;
}
.dev-avatar--1 { background: #1d4ed8; }
.dev-avatar--2 { background: #0f766e; }
.dev-avatar--3 { background: #9d174d; }
.dev-name { font-size: 1.1rem; font-weight: 700; }
.dev-role { font-size: .9rem; color: var(--ink-3); margin: 2px 0 18px; }
.dev-links { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.dev-link-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 38px;
  padding: 7px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong); color: var(--ink-2);
  font-size: .87rem; font-weight: 600; text-decoration: none;
}
.dev-link-btn:hover { border-color: var(--brand); color: var(--brand-text); }
.dev-link-btn svg { width: 15px; height: 15px; }

/* ─── Guide ────────────────────────────────────────────────────── */
.guide-hero .hero__ctas { margin: 26px 0 0; }

.mobile-notice { display: none; }
@media (max-width: 1023px) {
  .mobile-notice { display: block; margin: 0 auto 24px; max-width: 760px; }
}

.guide-wrapper { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 56px; align-items: start; padding-bottom: 80px; }
.toc {
  position: sticky; top: 88px;
  max-height: calc(100vh - 110px); overflow-y: auto;
  padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.toc h2, .toc summary { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); margin-bottom: 10px; font-weight: 700; }
.toc summary { list-style: none; cursor: pointer; margin: 0; }
.toc summary::-webkit-details-marker { display: none; }
.toc a {
  display: block; padding: 6px 10px; margin: 0 -10px; border-radius: 8px;
  color: var(--ink-2); font-size: .92rem; text-decoration: none; line-height: 1.35;
}
.toc a:hover { background: var(--surface-2); color: var(--ink); }
.toc a.active { background: var(--brand-soft); color: var(--brand-text); font-weight: 600; }
.toc-mobile { display: none; }
@media (max-width: 900px) {
  .guide-wrapper { grid-template-columns: 1fr; gap: 0; }
  .toc { display: none; }
  .toc-mobile { display: block; position: static; max-height: none; margin-bottom: 32px; }
  .toc-mobile[open] summary { margin-bottom: 10px; }
  .toc-mobile summary { font-size: .95rem; text-transform: none; letter-spacing: 0; color: var(--ink); display: flex; justify-content: space-between; }
  .toc-mobile summary::after { content: '▾'; color: var(--ink-3); }
}

.guide-section { margin-bottom: 72px; }
.section-label {
  font-family: var(--mono); font-size: .82rem; font-weight: 500;
  color: var(--brand-text); margin-bottom: 8px;
}
.guide-section h2 { font-size: clamp(1.7rem, 3vw, 2.15rem); margin-bottom: 18px; letter-spacing: -.01em; }
.guide-section > p, .guide-section p { color: var(--ink-2); line-height: 1.8; margin-bottom: 14px; }
.guide-section h3 { font-size: 1.08rem; margin-bottom: 6px; }

.steps { display: grid; gap: 12px; margin: 26px 0; }
.step {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px;
}
.step-num {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  background: var(--brand); color: var(--brand-ink); font-weight: 750; font-size: 1.05rem;
}
.step-num.emoji { background: var(--surface-2); border: 1px solid var(--line); font-size: 1.3rem; }
.step-body { flex: 1; min-width: 0; }
.step-body p { margin: 0 !important; font-size: .98rem; line-height: 1.7 !important; }
.step-body p + p { margin-top: 8px !important; }
.step-body .muted-note, .muted-note { color: var(--ink-3); font-weight: 400; }

.button-diagram {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 26px 0;
  padding: 10px; background: #0f172a; border-radius: var(--radius-lg);
}
.diagram-btn { padding: 30px 16px; text-align: center; border-radius: 14px; color: #fff; }
.diagram-btn .dir { font-size: 1.8rem; margin-bottom: 6px; }
.diagram-btn .label { font-size: 1rem; font-weight: 700; }
.diagram-btn .sub { font-size: .86rem; opacity: .85; margin-top: 4px; }
.btn-green { background: var(--q-green); }
.btn-red { background: var(--q-red); }
.btn-indigo { background: var(--q-indigo); }
.btn-purple { background: var(--q-purple); }

.tips-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 22px 0; }
.tip-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.tip-card .tip-icon { font-size: 1.6rem; margin-bottom: 10px; }
.tip-card h3 { font-size: 1.02rem; margin-bottom: 8px; }
.tip-card ul { color: var(--ink-2); font-size: .95rem; line-height: 1.75; }
.tip-card p { font-size: .95rem; margin-bottom: 0; }

.menu-showcase { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.menu-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; padding: 9px 14px; font-size: .93rem; color: var(--ink-2);
}

.guide-cta { padding: 44px 40px; background: var(--night); color: var(--night-ink); border-radius: var(--radius-lg); }
.guide-cta h2 { color: #fff; font-size: 1.7rem; margin-bottom: 10px; }
.guide-cta p { color: var(--night-ink-2) !important; margin-bottom: 22px; }
.guide-cta .btn--secondary { background: transparent; color: var(--night-ink); border-color: rgba(230,234,242,.32); }
.guide-cta .actions { display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .container { padding: 0 16px; }
  .hero { padding: 48px 0 0; }
  .cta-band { padding: 40px 22px; border-radius: var(--radius); }
  .hero__ctas .btn { flex: 1 1 100%; }
  .step { padding: 16px; gap: 14px; }
  .button-diagram { gap: 6px; padding: 6px; }
  .diagram-btn { padding: 22px 10px; }
}

/* ─── Dashboard ─────────────────────────────────────────────────
   Signed-in history page. Translated, so its text can be Tamil or Hindi:
   Noto fills the Tamil and Devanagari glyphs IBM Plex Sans lacks. */
.page-dashboard { --font: 'IBM Plex Sans', 'Noto Sans Tamil', 'Noto Sans Devanagari', system-ui, sans-serif; }
.dash-bar .site-header__inner { gap: 12px; }
.dash-bar__nav { display: flex; gap: 2px; margin-left: auto; }
.dash-bar__nav .btn { min-height: 40px; padding: 8px 14px; font-size: .93rem; color: var(--ink-2); }
.dash-bar__app { min-height: 40px; padding: 8px 18px; }
@media (max-width: 760px) {
  .dash-bar .site-header__inner { flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
  .dash-bar__app { margin-left: auto; }
  .dash-bar__nav { order: 3; width: 100%; margin: 0; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 6px; }
  .dash-bar__nav .btn { padding: 8px 10px; font-size: .9rem; }
}

.dash { padding: 40px 0 80px; }
.dash-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.dash-user { display: flex; align-items: center; gap: 16px; min-width: 0; }
.dash-avatar {
  width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand); color: var(--brand-ink); font-size: 1.5rem; font-weight: 750;
}
.dash-user h1 { font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -.01em; }
.dash-who { color: var(--ink-3); font-size: .95rem; overflow-wrap: anywhere; }
.dash-sub { color: var(--ink-2); margin: 14px 0 28px; max-width: 680px; }

.dash-label { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
html:not([lang="en"]) .dash-label { letter-spacing: 0; text-transform: none; font-size: .9rem; }

.dash-lang { display: grid; gap: 0; }
.seg { display: inline-flex; padding: 4px; gap: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); }
.seg__btn {
  min-height: 38px; padding: 6px 16px; border-radius: 5px; border: 0;
  background: transparent; color: var(--ink-2); font: inherit; font-size: .95rem; font-weight: 600;
  cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; white-space: nowrap;
}
.seg__btn:hover { color: var(--ink); background: var(--surface); }
.seg__btn.is-active { background: var(--surface); color: var(--brand-text); box-shadow: var(--shadow-sm); }
.seg__btn.is-locked { color: var(--ink-3); font-weight: 500; }

.dash-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-bottom: 40px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.stat__value { font-size: 2.6rem; font-weight: 750; line-height: 1.1; letter-spacing: -.02em; color: var(--ink); }
.stat__plan { font-size: 1.35rem; font-weight: 700; margin-bottom: 10px; }
.stat__ok { color: var(--ok); font-weight: 600; }
.stat__warn { color: var(--accent); font-weight: 600; }
.stat__note { color: var(--ink-2); font-size: .95rem; }
.stat__fine { color: var(--ink-3); font-size: .86rem; margin-top: 8px; }
.stat__link { display: inline-block; margin-top: 6px; font-size: .93rem; font-weight: 600; }
.meter { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin-bottom: 8px; }
.meter span { display: block; height: 100%; max-width: 100%; background: var(--brand); border-radius: inherit; }
.meter--full span { background: var(--accent); }
.link-danger { margin-top: 10px; background: none; border: 0; padding: 0; font: inherit; font-size: .9rem; color: var(--danger); text-decoration: underline; cursor: pointer; }

.dash-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.dash-toolbar h2 { font-size: 1.3rem; }
.per-page { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: .93rem; }
.per-page label { font-weight: 500; color: var(--ink-2); }
.per-page select { width: auto; min-height: 40px; padding: 6px 30px 6px 12px; }

.qa-list { list-style: none; padding: 0; display: grid; gap: 12px; }
.qa { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.qa__top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.qa__q { font-weight: 600; color: var(--ink); font-size: 1.05rem; }
.qa__time { color: var(--ink-3); font-size: .85rem; white-space: nowrap; flex-shrink: 0; }
.qa__a {
  display: flex; align-items: center; gap: 8px; margin-top: 10px;
  color: var(--ok); font-weight: 600;
}
.qa__a svg { flex-shrink: 0; }
.qa__a span { color: var(--ink); }
.qa__opts { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chip { padding: 4px 10px; border-radius: 4px; font-size: .85rem; background: var(--surface-2); color: var(--ink-2); border: 1px solid transparent; }
.chip.is-chosen { background: var(--ok-soft); color: var(--ok); border-color: var(--ok); font-weight: 600; }
@media (max-width: 560px) {
  .qa__top { flex-direction: column; gap: 4px; }
  .qa { padding: 16px; }
}

.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 28px; }
.pager__btn {
  min-width: 42px; height: 42px; padding: 0 12px; border-radius: var(--radius-sm);
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); text-decoration: none; font-weight: 600;
}
.pager__btn:hover { border-color: var(--brand); color: var(--brand-text); }
.pager__btn.is-current { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.pager__btn.is-disabled { opacity: .4; pointer-events: none; }
.pager__info { text-align: center; color: var(--ink-3); font-size: .88rem; margin-top: 10px; }

.dash-empty { text-align: center; padding: 56px 20px; background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); }
.dash-empty p { color: var(--ink-2); margin-bottom: 20px; font-size: 1.05rem; }
