/* ============================================================
   FitCheck — design system
   Dark-first. Every text/status colour clears WCAG AA on the
   card surface (#181B20). Tokens verified by research agent.
   ============================================================ */

:root {
  /* Background layers */
  --bg-base:    #0F1115;
  --bg-raised:  #181B20;
  --bg-inset:   #22262E;
  --border:     #2A2F38;
  --border-hi:  #3A4150;

  /* Text */
  --text-primary:   #ECEEF2;
  --text-secondary: #B4BAC4;
  --text-muted:     #868E9C;

  /* Accent — warm indigo */
  --accent:        #818CF8;
  --accent-strong: #6366F1;
  --accent-soft:   rgba(129,140,248,0.14);

  /* Status */
  --ok:   #4ADE80;
  --warn: #FBBF24;
  --no:   #F87171;
  --ok-soft:   rgba(74,222,128,0.13);
  --warn-soft: rgba(251,191,36,0.13);
  --no-soft:   rgba(248,113,113,0.13);

  /* Spacing scale (4px base) */
  --s-1:4px; --s-2:8px; --s-3:12px; --s-4:16px;
  --s-5:24px; --s-6:32px; --s-7:48px; --s-8:64px;

  /* Radius */
  --r-sm:8px; --r-md:14px; --r-lg:20px; --r-pill:999px;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.30);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.35);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.45);
  --glow: 0 0 0 1px var(--accent-soft), 0 8px 24px rgba(99,102,241,0.22);

  --font-head: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(99,102,241,0.10), transparent 60%),
    radial-gradient(1000px 500px at -10% 10%, rgba(74,222,128,0.05), transparent 55%),
    var(--bg-base);
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

h1,h2,h3 { font-family: var(--font-head); line-height: 1.2; letter-spacing: -0.02em; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; cursor: pointer; }

.label {
  display: block;
  font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--text-secondary);
  margin-bottom: var(--s-2);
}
.hint { font-size: 13px; color: var(--text-muted); margin-top: var(--s-1); }

/* Icons (inline SVG; lucide uses stroke, brand logos use fill) */
.ic { display: inline-flex; align-items: center; justify-content: center; line-height: 0; flex: none; }
.ic svg { width: 1em; height: 1em; display: block; }
.optional { font-weight: 500; color: var(--text-muted); font-size: 13px; }

/* ----------------------------------------------------------- Topbar */
.topbar {
  display: flex; align-items: center; gap: var(--s-3);
  padding: var(--s-4) var(--s-5);
  max-width: 1180px; margin: 0 auto;
}
.logo {
  display: flex; align-items: center; gap: var(--s-2);
  font-family: var(--font-head); font-weight: 800; font-size: 20px;
  letter-spacing: -0.03em;
}
.logo-mark {
  width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  display: grid; place-items: center;
  box-shadow: var(--glow);
  color: #fff;
}
.logo-mark .ic { font-size: 18px; }
.logo-mark .ic svg { stroke-width: 3; }
.logo .tick { color: var(--ok); }
.topbar .spacer { flex: 1; }
.topbar nav a { color: var(--text-secondary); font-size: 14px; font-weight: 500; margin-left: var(--s-4); }
.topbar nav a:hover { color: var(--text-primary); text-decoration: none; }

/* ----------------------------------------------------------- Layout */
.container { max-width: 1180px; margin: 0 auto; padding: 0 var(--s-5) var(--s-8); }

.hero { text-align: center; padding: var(--s-6) 0 var(--s-7); }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-size: 13px; font-weight: 600; color: var(--accent);
  background: var(--accent-soft); padding: 5px 12px; border-radius: var(--r-pill);
  margin-bottom: var(--s-4);
}
.hero h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; }
.hero h1 .accent { color: var(--accent); }
.hero p { color: var(--text-secondary); font-size: clamp(15px,1.6vw,18px); max-width: 620px; margin: var(--s-4) auto 0; }

.layout {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: var(--s-5);
  align-items: start;
}
@media (max-width: 900px) { .layout { grid-template-columns: 1fr; } }

.panel {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}
.form-panel { padding: var(--s-5); position: sticky; top: var(--s-4); }
@media (max-width: 900px) { .form-panel { position: static; } }

.step { margin-bottom: var(--s-5); }
.step-head { display: flex; align-items: center; gap: var(--s-3); margin-bottom: var(--s-4); }
.step-num {
  width: 26px; height: 26px; border-radius: var(--r-pill); flex: none;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-weight: 700; font-size: 14px;
  font-family: var(--font-head);
}
.step-head h2 { font-size: 17px; font-weight: 700; }

.field { margin-bottom: var(--s-4); }

/* Segmented control */
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); }
.segmented.cols-3 { grid-template-columns: repeat(3, 1fr); }
.seg-btn {
  background: var(--bg-inset); border: 1px solid var(--border);
  color: var(--text-secondary); border-radius: var(--r-sm);
  padding: 10px 12px; font-size: 14px; font-weight: 500;
  display: flex; align-items: center; gap: var(--s-2); justify-content: center;
  transition: transform .15s, border-color .15s, color .15s, background .15s;
}
.seg-btn:hover { border-color: var(--border-hi); color: var(--text-primary); }
.seg-btn.active {
  background: var(--accent-soft); border-color: var(--accent);
  color: var(--text-primary); box-shadow: var(--shadow-sm);
}
.seg-btn .ic { font-size: 17px; color: var(--text-muted); }
.seg-btn.active .ic { color: var(--accent); }
.seg-btn .ic.brand { color: var(--text-secondary); }
.seg-btn.active .ic.brand { color: var(--text-primary); }

/* Native select / input styling */
select, input[type="text"], input[type="number"], textarea {
  width: 100%; font-family: inherit; font-size: 15px;
  color: var(--text-primary);
  background: var(--bg-inset);
  border: 1px solid var(--border); border-radius: var(--r-sm);
  padding: 11px 13px;
  transition: border-color .15s, box-shadow .15s;
}
select:hover, input:hover, textarea:hover { border-color: var(--border-hi); }
select:focus, input:focus, textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23868E9C' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
  padding-right: 38px;
}
textarea { resize: vertical; min-height: 70px; line-height: 1.5; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }

/* Use-case picker */
.uc-group { margin-bottom: var(--s-4); }
.uc-cat {
  font-size: 12px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: var(--s-2); display: flex; align-items: center; gap: 6px;
}
.uc-grid { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.uc-pill {
  background: var(--bg-inset); border: 1px solid var(--border);
  color: var(--text-secondary); border-radius: var(--r-pill);
  padding: 7px 13px; font-size: 13.5px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 6px;
  transition: transform .15s, border-color .15s, color .15s, background .15s;
}
.uc-pill:hover { border-color: var(--border-hi); color: var(--text-primary); transform: translateY(-1px); }
.uc-pill.active {
  background: var(--accent-soft); border-color: var(--accent); color: var(--text-primary);
}
.uc-pill .pic { font-size: 15px; color: var(--text-muted); }
.uc-pill:hover .pic { color: var(--text-secondary); }
.uc-pill.active .pic { color: var(--accent); }
.uc-cat .ic { font-size: 14px; color: var(--text-muted); }

/* Disclosure (advanced / accordions) */
details.disc {
  border: 1px solid var(--border); border-radius: var(--r-md);
  background: var(--bg-inset); margin-top: var(--s-3); overflow: hidden;
}
details.disc > summary {
  list-style: none; cursor: pointer; padding: 12px 14px;
  font-size: 14px; font-weight: 600; color: var(--text-secondary);
  display: flex; align-items: center; gap: var(--s-2);
}
details.disc > summary::-webkit-details-marker { display: none; }
details.disc > summary .chev { margin-left: auto; transition: transform .2s; color: var(--text-muted); font-size: 16px; }
details.disc[open] > summary .chev { transform: rotate(180deg); }
details.disc > summary .sum-ic { font-size: 16px; color: var(--text-muted); }
details.disc > summary:hover { color: var(--text-primary); }
.disc-body { padding: 0 14px 14px; font-size: 14px; color: var(--text-secondary); line-height: 1.6; }
.disc-body code {
  background: var(--bg-base); border: 1px solid var(--border); border-radius: 5px;
  padding: 1px 6px; font-size: 13px; color: var(--text-primary);
}
.disc-body dl { display: grid; gap: var(--s-3); }
.disc-body dt { font-weight: 700; color: var(--text-primary); font-family: var(--font-head); }
.disc-body dd { color: var(--text-muted); }

/* Primary CTA */
.cta {
  width: 100%; border: none; border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff; font-weight: 700; font-size: 16px; font-family: var(--font-head);
  padding: 14px; margin-top: var(--s-2);
  display: flex; align-items: center; justify-content: center; gap: var(--s-2);
  transition: transform .15s, box-shadow .15s, filter .15s;
}
.cta:hover { transform: translateY(-2px); box-shadow: var(--glow); filter: brightness(1.05); }
.cta:active { transform: translateY(0); }
.cta .ic { font-size: 18px; }

/* ----------------------------------------------------------- Results */
.results-panel { padding: var(--s-5); min-height: 400px; }

.empty-state { text-align: center; color: var(--text-muted); padding: var(--s-8) var(--s-4); }
.empty-state .big { font-size: 46px; margin-bottom: var(--s-3); color: var(--text-muted); display: flex; justify-content: center; }
.empty-state p { max-width: 360px; margin: var(--s-2) auto 0; }

.verdict {
  border: 1px solid var(--border); border-left: 4px solid var(--status, var(--accent));
  border-radius: var(--r-md); background: var(--bg-raised);
  padding: var(--s-5); margin-bottom: var(--s-5);
}
.verdict .badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 12px; border-radius: var(--r-pill);
  background: var(--status-soft, var(--accent-soft)); color: var(--status, var(--accent));
  font: 700 13px/1 var(--font-head); text-transform: uppercase; letter-spacing: .04em;
  margin-bottom: var(--s-3);
}
.verdict .badge .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.verdict h2 { font-size: 22px; margin-bottom: var(--s-3); }
.verdict p { color: var(--text-secondary); margin-bottom: var(--s-2); }
.verdict .note {
  font-size: 13.5px; color: var(--text-muted); margin-top: var(--s-3);
  padding-top: var(--s-3); border-top: 1px solid var(--border);
}

.section-title {
  font-size: 15px; font-weight: 700; font-family: var(--font-head);
  color: var(--text-primary); margin: var(--s-5) 0 var(--s-3);
  display: flex; align-items: center; gap: var(--s-2);
}
.section-title .sub { font-size: 13px; font-weight: 500; color: var(--text-muted); font-family: var(--font-body); }

/* Gauge */
.gauge-card { background: var(--bg-inset); border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--s-4) var(--s-4) var(--s-3); }
.gauge-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.gauge-top .need { font-weight: 700; color: var(--status, var(--text-primary)); font-family: var(--font-head); }
.gauge {
  position: relative; height: 16px; border-radius: var(--r-pill);
  background: var(--bg-base); overflow: hidden; border: 1px solid var(--border);
}
.gauge-fill {
  height: 100%; width: calc(var(--pct,0) * 1%); border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--gcolor, var(--accent)), color-mix(in srgb, var(--gcolor, var(--accent)) 65%, #fff));
  transition: width .8s cubic-bezier(.22,1,.36,1), background .4s;
}
.gauge-need {
  position: absolute; top: -4px; width: 2px; height: 24px;
  background: var(--text-primary); border-radius: 2px; opacity: .85;
  left: calc(var(--needpct,50)*1%); transition: left .8s cubic-bezier(.22,1,.36,1);
}
.gauge-legend { display: flex; flex-wrap: wrap; gap: var(--s-4); margin-top: 12px; font-size: 12.5px; color: var(--text-muted); }
.gauge-legend .item { display: inline-flex; align-items: center; gap: 6px; }
.gauge-legend .sw { width: 10px; height: 10px; border-radius: 3px; }
.gauge-legend .marker { font-weight: 600; color: var(--text-secondary); }

/* Option cards (the matrix, re-imagined) */
.opt-grid { display: grid; gap: var(--s-3); }
.opt {
  display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: var(--s-3);
  background: var(--bg-raised); border: 1px solid var(--border);
  border-left: 4px solid var(--status, var(--border)); border-radius: var(--r-md);
  padding: var(--s-4);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.opt:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.opt .vdot {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--status-soft); color: var(--status);
  display: grid; place-items: center; font-size: 15px; font-weight: 700;
}
.opt .name { font-weight: 700; font-family: var(--font-head); font-size: 15px; }
.opt .name a { color: var(--text-primary); }
.opt .name a:hover { color: var(--accent); text-decoration: none; }
.lic {
  display: inline-block; margin-left: 8px; padding: 1px 8px; vertical-align: 1px;
  border-radius: var(--r-pill); border: 1px solid var(--border-hi);
  font: 600 10.5px/1.6 var(--font-body); letter-spacing: .02em;
  color: var(--text-muted); text-transform: uppercase;
}
.lic.warn { color: var(--warn); border-color: var(--warn); opacity: .9; }
.lic.gatechip { color: var(--accent); border-color: var(--accent); }
.prov {
  margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border);
  font-size: 12px; color: var(--text-muted); line-height: 1.55;
}
.opt .desc { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.opt .meta { text-align: right; font-size: 13px; color: var(--text-secondary); white-space: nowrap; }
.opt .meta b { color: var(--text-primary); font-family: var(--font-head); }
.opt .feel { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }

/* Tool cards */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: var(--s-3); }
.tool {
  background: var(--bg-raised); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: var(--s-4);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.tool:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--border-hi); }
.tool .tool-head { display: flex; align-items: center; justify-content: space-between; }
.tool .tname { font-weight: 700; font-family: var(--font-head); font-size: 15px; }
.tool .tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; padding: 3px 9px; border-radius: var(--r-pill); }
.tool .tag.best { background: var(--ok-soft); color: var(--ok); }
.tool .tag.mid  { background: var(--accent-soft); color: var(--accent); }
.tool .twhat { font-size: 13.5px; color: var(--text-secondary); margin: var(--s-2) 0; line-height: 1.5; }
.tool .tinstall { font-size: 12.5px; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.tool .tinstall .ic { font-size: 14px; }

/* Command block */
.cmd-intro { font-size: 14px; color: var(--text-secondary); margin: var(--s-2) 0 var(--s-3); }
.cmd { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
@media (max-width: 620px) { .cmd { grid-template-columns: 1fr; } }
.cmd-box { background: var(--bg-base); border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; }
.cmd-box .cmd-label { font-size: 12px; font-weight: 600; color: var(--text-muted); padding: 10px 13px 0; display:flex; justify-content:space-between; align-items:center; }
.cmd-box pre { padding: 8px 13px 13px; overflow-x: auto; }
.cmd-box code { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 13px; color: #a5f3c4; }
.copy-btn {
  background: var(--bg-inset); border: 1px solid var(--border); color: var(--text-secondary);
  border-radius: 6px; padding: 3px 9px; font-size: 12px; font-weight: 600;
}
.copy-btn:hover { color: var(--text-primary); border-color: var(--border-hi); }
.copy-btn.done { color: var(--ok); border-color: var(--ok); }

/* "Why this speed?" roofline visualizer */
.viz-disc { margin-top: var(--s-5); background: var(--bg-raised); }
.viz-disc > summary .sub-inline { font-weight: 500; color: var(--text-muted); font-size: 12.5px; margin-left: 4px; }
.roofline-wrap svg { width: 100%; height: auto; display: block; }
.rl-grid { stroke: var(--border); stroke-width: 1; opacity: .5; }
.rl-tick { fill: var(--text-muted); font: 500 10.5px var(--font-body); }
.rl-axis { fill: var(--text-secondary); font: 600 11.5px var(--font-body); }
.rl-dot { opacity: .55; }
.rl-p1 { fill: #5B6472; }
.rl-p8 { fill: #8B93A3; }
.rl-p14 { fill: #B9C0CC; }
.rl-roof { stroke: var(--warn); stroke-width: 1.8; stroke-dasharray: 6 5; opacity: .9; }
.rl-band { stroke: var(--accent); stroke-width: 5; opacity: .35; stroke-linecap: round; }
.rl-you { fill: var(--accent); stroke: #fff; stroke-width: 1.5; }
.rl-you-label { fill: var(--text-primary); font: 700 12px var(--font-head); }
.rl-legend { display: flex; flex-wrap: wrap; gap: var(--s-4); margin-top: var(--s-2); font-size: 12px; color: var(--text-muted); }
.rl-legend .item { display: inline-flex; align-items: center; gap: 6px; }
.rl-legend .sw { width: 10px; height: 10px; border-radius: 50%; }
.rl-p1-sw { background: #5B6472; } .rl-p8-sw { background: #8B93A3; } .rl-p14-sw { background: #B9C0CC; }
.rl-roof-sw { background: var(--warn); border-radius: 2px; height: 3px; width: 14px; }
.rl-you-sw { background: var(--accent); }
.viz-caption { font-size: 13px; color: var(--text-secondary); line-height: 1.6; margin-top: var(--s-3); }

/* Multi-goal overview */
.goal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: var(--s-3); }
.goal-card {
  background: var(--bg-raised); border: 1px solid var(--border);
  border-left: 4px solid var(--status, var(--border)); border-radius: var(--r-md);
  padding: var(--s-4); cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
.goal-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.goal-card .badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: var(--r-pill);
  background: var(--status-soft); color: var(--status);
  font: 700 11.5px/1 var(--font-head); text-transform: uppercase; letter-spacing: .04em;
}
.goal-card .badge .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.goal-name { font: 700 15px/1.3 var(--font-head); margin-top: var(--s-3); }
.goal-pick { font-size: 13.5px; color: var(--text-secondary); margin-top: 4px; }
.goal-need { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }
.goal-more { font-size: 12.5px; font-weight: 600; color: var(--accent); margin-top: var(--s-3); }
.back-link {
  background: var(--bg-inset); border: 1px solid var(--border); color: var(--text-secondary);
  border-radius: var(--r-pill); padding: 6px 14px; font-size: 13px; font-weight: 600;
  margin-bottom: var(--s-4); display: inline-block;
}
.back-link:hover { color: var(--text-primary); border-color: var(--border-hi); }
.goal-lines { list-style: none; padding: 0; margin: var(--s-2) 0 0; }
.goal-lines li {
  display: flex; justify-content: space-between; gap: var(--s-3);
  font-size: 13px; color: var(--text-secondary); padding: 3px 0;
  border-bottom: 1px dashed var(--border);
}
.goal-lines li:last-child { border-bottom: none; }
.goal-lines li b { color: var(--text-primary); font-weight: 600; text-align: right; }
.goal-lines li i { color: var(--text-muted); font-style: normal; font-size: 12px; }

/* Live single-model lookup card */
.lookup-card {
  border: 1px solid var(--border); border-left: 4px solid var(--status, var(--accent));
  border-radius: var(--r-md); background: var(--bg-raised);
  padding: var(--s-4) var(--s-5); margin-bottom: var(--s-5);
}
.lookup-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s-2); }
.live-tag {
  font: 600 11px/1 var(--font-body); text-transform: uppercase; letter-spacing: .05em;
  color: var(--accent); border: 1px dashed var(--accent); border-radius: var(--r-pill);
  padding: 4px 10px; opacity: .85;
}
.lookup-explain { color: var(--text-secondary); font-size: 14.5px; }
.lookup-meta { display: flex; gap: var(--s-4); margin-top: var(--s-2); font-size: 13.5px; color: var(--text-secondary); }

/* Ask a follow-up (the model brick) */
.ask-row { display: flex; gap: var(--s-2); }
.ask-row input {
  flex: 1; background: var(--bg-inset); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 12px 14px; font-size: 15px;
}
.ask-btn {
  flex: none; width: 46px; border: none; border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff; display: grid; place-items: center;
  transition: transform .15s, box-shadow .15s, filter .15s;
}
.ask-btn:hover { transform: translateY(-2px); box-shadow: var(--glow); filter: brightness(1.05); }
.ask-btn .ic { font-size: 18px; }
.ask-chips { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-3); }
.ask-chip {
  background: var(--bg-inset); border: 1px solid var(--border);
  color: var(--text-secondary); border-radius: var(--r-pill);
  padding: 6px 13px; font-size: 13px; font-weight: 500;
  transition: border-color .15s, color .15s, background .15s;
}
.ask-chip:hover { border-color: var(--accent); color: var(--text-primary); background: var(--accent-soft); }

.ask-answer { margin-top: var(--s-4); }
.ans-card {
  background: var(--bg-inset); border: 1px solid var(--border);
  border-left: 4px solid var(--accent); border-radius: var(--r-md);
  padding: var(--s-4) var(--s-5);
}
.ans-card h3 { font-size: 17px; font-weight: 700; margin-bottom: var(--s-2); }
.ans-card p { color: var(--text-secondary); font-size: 14.5px; line-height: 1.6; }
.ans-next {
  display: flex; align-items: center; gap: var(--s-2); margin-top: var(--s-3);
  font-size: 14px; font-weight: 600; color: var(--accent);
}
.ans-next .ic { font-size: 15px; flex: none; }
.ans-card.ans-error { border-left-color: var(--no); }
.ans-card.ans-error h3 { color: var(--no); }
.ans-card.ans-error p { color: var(--text-secondary); font-size: 13.5px; word-break: break-word; }
.ans-loading { display: flex; align-items: center; gap: var(--s-2); color: var(--text-muted); font-size: 14px; padding: var(--s-2) 0; flex-wrap: wrap; }
.ans-cold { font-size: 12px; color: var(--text-muted); opacity: .75; }
.spinner {
  width: 15px; height: 15px; flex: none; border-radius: 50%;
  border: 2px solid var(--border-hi); border-top-color: var(--accent);
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Footer */
.foot { text-align: center; color: var(--text-muted); font-size: 13px; margin-top: var(--s-7); line-height: 1.6; }
.foot b { color: var(--text-secondary); }

/* Reveal animation */
.reveal { animation: reveal .5s cubic-bezier(.22,1,.36,1) both; }
@keyframes reveal { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
