/* FLR Tuning Calculator — loaded only on tuning-calculator.html
   Naming: .tc-* prefix. Tokens, shell, buttons and .visually-hidden come from core.css. */

/* ═══════════════════════════════════════════════════════════════════════
   TC — FLR TUNING CALCULATOR (/tuning-calculator)
   Full-page inline performance lab. All classes namespaced .tc-*.
   ═══════════════════════════════════════════════════════════════════════ */


/* ── Hero ─────────────────────────────────────────────────────────── */
.tc-hero {
  position: relative;
  padding: calc(var(--header-h) + 64px) 0 56px;
  overflow: hidden;
}

.tc-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(200, 255, 0, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 255, 0, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, black 20%, transparent 75%);
  pointer-events: none;
}

.tc-hero-inner {
  position: relative;
  max-width: 860px;
}

.tc-breadcrumb {
  margin-bottom: 20px;
}

.tc-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: 'Consolas', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.tc-breadcrumb li + li::before {
  content: '//';
  margin-right: 8px;
  opacity: 0.45;
}

.tc-breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.tc-breadcrumb a:hover { color: var(--lime); }

.tc-hero h1 {
  font-size: clamp(2.1rem, 5.4vw, 3.6rem);
  line-height: 1.04;
  margin: 14px 0 18px;
}

.tc-hero h1 .accent {
  color: var(--lime);
  text-shadow: 0 0 40px var(--lime-glow);
}

.tc-hero-lead {
  color: var(--muted);
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.75;
  max-width: 680px;
  margin-bottom: 32px;
}

.tc-hero-form {
  --reg-field-h: 76px;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: flex-start;
  gap: 14px;
  margin-bottom: 24px;
}

/* Match the homepage hero plate: full-size plate, centred large VRN text and a
   button whose height tracks the plate. The base .vrn-* rules only scope big
   sizing under .reg-check/.form-row/etc., so re-scope them to this form. */
.tc-hero-form .vrn-plate {
  max-width: 340px;
  height: var(--reg-field-h);
  min-height: 0;
  flex: 1 1 280px;
}

.tc-hero-form .vrn-field { align-items: center; }

.tc-hero-form .vrn-input {
  flex: 1;
  width: auto;
  min-width: 0;
  border: none;
  background: transparent;
  color: #0b0b0b;
  font-family: var(--font-display), 'Arial Black', 'Impact', 'Helvetica Neue', Arial, sans-serif;
  font-size: clamp(26px, 5.2vw, 38px);
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1;
  text-transform: uppercase;
  text-align: center;
  padding: 0 10px;
  outline: none;
}

.tc-hero-form .vrn-input::placeholder {
  letter-spacing: 0.18em;
  color: rgba(11, 11, 11, 0.45);
}

.tc-hero-form .vrn-input:focus {
  border: none;
  background: transparent;
  box-shadow: none;
}

/* The button carries .reg-check-btn (height: var(--reg-field-h)); make sure the
   value is defined in this scope so it lines up with the plate. */
.tc-hero-btn.reg-check-btn {
  flex: 0 0 auto;
  align-self: stretch;
  height: var(--reg-field-h);
  padding-block: 0;
  gap: 10px;
  padding-inline: clamp(22px, 3vw, 34px);
  font-size: 16px;
  white-space: nowrap;
}

.tc-hero-btn.reg-check-btn svg { width: 20px; height: 20px; }

/* VRN plate "invalid" nudge (tc-page.js toggles .vrn-plate--error). */
.vrn-plate--error {
  animation: vrn-shake 0.42s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

.vrn-plate--error .vrn-field::before {
  border-color: var(--red);
  box-shadow: 0 0 12px var(--red-glow);
}

@keyframes vrn-shake {
  10%, 90% { transform: translateX(-2px); }
  20%, 80% { transform: translateX(4px); }
  30%, 50%, 70% { transform: translateX(-7px); }
  40%, 60% { transform: translateX(7px); }
}

.tc-hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tc-hero-points li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: var(--muted);
}

.tc-hero-point-icon {
  flex: 0 0 auto;
  display: inline-flex;
  width: 18px;
  height: 18px;
  color: var(--lime);
}

.tc-hero-point-icon svg { width: 100%; height: 100%; }
/* ── Lab region / idle state ──────────────────────────────────────── */
.tc-lab {
  padding: 8px 0 72px;
}

/* Reserve space before the app renders — keeps CLS near zero. */
.tc-app {
  min-height: 320px;
}

.tc-idle,
.tc-scan {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  padding: clamp(28px, 4.5vw, 48px);
  min-height: 320px;
}

.tc-idle-ring,
.tc-scan-ring {
  position: relative;
  width: clamp(120px, 16vw, 160px);
  height: clamp(120px, 16vw, 160px);
}

.tc-idle-ring svg,
.tc-scan-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.tc-idle-ring-track,
.tc-scan-ring-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 5;
}

.tc-idle-ring-arc {
  fill: none;
  stroke: var(--lime);
  stroke-width: 5;
  stroke-linecap: square;
  stroke-dasharray: 60 267;
  opacity: 0.75;
  animation: tc-ring-idle 4.5s linear infinite;
  transform-origin: center;
}

@keyframes tc-ring-idle {
  to { transform: rotate(360deg); }
}

.tc-scan-ring-arc {
  fill: none;
  stroke: var(--lime);
  stroke-width: 5;
  stroke-linecap: square;
  filter: drop-shadow(0 0 8px var(--lime-glow));
  transition: stroke-dashoffset 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.tc-idle-ring-label,
.tc-scan-pct {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  font-style: italic;
  color: var(--lime);
}

.tc-idle-copy h2,
.tc-scan-copy h2 {
  font-size: clamp(20px, 2.8vw, 28px);
  text-transform: uppercase;
  margin: 10px 0 12px;
}

.tc-idle-copy p {
  color: var(--muted);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 18px;
}

.tc-idle-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 24px;
}

.tc-idle-steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted-2);
}

.tc-idle-steps li span {
  font-family: 'Consolas', monospace;
  font-size: 11px;
  color: var(--lime);
}

/* ── Scan state ───────────────────────────────────────────────────── */
.tc-scan-status {
  color: var(--white);
  font-size: 15px;
  margin-bottom: 16px;
  min-height: 1.4em;
}

.tc-scan-lines {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tc-scan-line {
  font-family: 'Consolas', monospace;
  font-size: 12px;
  color: var(--muted-2);
  opacity: 0.35;
  transition: opacity 0.3s ease, color 0.3s ease;
}

.tc-scan-line.is-active {
  opacity: 1;
  color: var(--cyan);
}

.tc-scan-line.is-done {
  opacity: 0.75;
  color: var(--lime);
}

.tc-scan-line.is-done::after {
  content: ' ✓';
}

/* ── Error / no-stages state ──────────────────────────────────────── */
.tc-error {
  padding: clamp(32px, 5vw, 56px);
  text-align: center;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.tc-error h2 {
  font-size: clamp(22px, 3vw, 30px);
  text-transform: uppercase;
  margin: 10px 0 14px;
}

.tc-error p {
  color: var(--muted);
  line-height: 1.7;
  max-width: 540px;
  margin: 0 auto 26px;
}

.tc-error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.tc-label--warn { color: var(--orange); }

/* ── Badges ───────────────────────────────────────────────────────── */
.tc-badge {
  display: inline-block;
  vertical-align: middle;
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 3px 7px;
  line-height: 1;
  white-space: nowrap;
}

.tc-badge--verified {
  color: var(--lime);
  border: 1px solid rgba(200, 255, 0, 0.45);
  background: rgba(200, 255, 0, 0.06);
}

.tc-badge--est {
  color: var(--cyan);
  border: 1px solid rgba(0, 240, 255, 0.4);
  background: rgba(0, 240, 255, 0.05);
}

/* ── Explain "?" affordance ───────────────────────────────────────── */
.tc-explain {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  padding: 2px;
  margin-left: 4px;
  vertical-align: middle;
  background: none;
  border: none;
  color: var(--muted-2);
  cursor: pointer;
  transition: color var(--transition), transform var(--transition);
}

.tc-explain svg { width: 100%; height: 100%; }

.tc-explain:hover,
.tc-explain:focus-visible {
  color: var(--cyan);
  transform: scale(1.15);
}

.tc-explain:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.tc-explain--demo {
  pointer-events: none;
  color: var(--cyan);
  transform: none;
}

/* ── Dossier head ─────────────────────────────────────────────────── */
.tc-dossier-head {
  position: relative;
  padding: clamp(24px, 4vw, 40px);
  margin-bottom: 28px;
}

.tc-dossier-id {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-bottom: 26px;
}

.tc-dossier-brand {
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}

.tc-dossier-brand img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}

.tc-dossier-titles {
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.tc-dossier-titles h2 {
  font-size: clamp(20px, 3vw, 30px);
  line-height: 1.1;
  text-transform: uppercase;
}

.tc-plate-chip {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.1em;
  color: #111;
  background: linear-gradient(180deg, #ffd84d, #fcc200);
  padding: 4px 12px;
  clip-path: var(--clip-tag);
}

.tc-dossier-new {
  margin-left: auto;
  align-self: flex-start;
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 14px;
  min-height: 44px;
  cursor: pointer;
  clip-path: var(--clip-btn);
  transition: color var(--transition), border-color var(--transition);
}

.tc-dossier-new:hover,
.tc-dossier-new:focus-visible {
  color: var(--lime);
  border-color: rgba(200, 255, 0, 0.4);
}

.tc-specs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.tc-spec {
  background: var(--charcoal-light);
  padding: 12px 14px;
}

.tc-spec-label {
  display: block;
  font-family: 'Consolas', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 4px;
}

.tc-spec-value {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  overflow-wrap: anywhere;
}

.tc-dossier-note {
  margin-top: 18px;
  font-size: 13px;
  color: var(--muted-2);
}

.tc-dossier-note a { color: var(--lime); }

/* Inline text-style button that reads as a link (used in the dossier note). */
.tc-linkbtn {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  color: var(--lime);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.tc-linkbtn:hover { text-decoration: none; }
.tc-linkbtn:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }

/* ── Panel headers ────────────────────────────────────────────────── */
.tc-panel-head {
  margin-bottom: 22px;
}

.tc-panel-head h3 {
  font-size: clamp(19px, 2.6vw, 26px);
  text-transform: uppercase;
  margin: 8px 0 8px;
}

.tc-panel-head p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  max-width: 720px;
}

/* ── Stage lab ────────────────────────────────────────────────────── */
.tc-stagelab {
  margin-bottom: 40px;
}

.tc-stage-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.tc-stage-tab {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 12px 18px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  font-style: italic;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  cursor: pointer;
  clip-path: var(--clip-btn);
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.tc-stage-tab:hover {
  color: var(--white);
  border-color: rgba(200, 255, 0, 0.3);
}

.tc-stage-tab[aria-selected="true"] {
  color: var(--white);
  background: var(--lime-dim);
  border-color: var(--border-bright);
}

.tc-stage-tab:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
}

.tc-stage-tab-name { margin-right: auto; }

.tc-stage-tab-gain {
  font-family: 'Consolas', monospace;
  font-size: 11px;
  font-style: normal;
  color: var(--lime);
}

/* Brand stage badges (S1 / S1+ / S2 artwork). The source SVGs carry only a
   viewBox (no intrinsic width/height), so pin the aspect ratio to derive width
   from the height we set on each usage. */
.tc-stage-icon {
  display: block;
  width: auto;
  aspect-ratio: 500 / 248;
}

.tc-stage-tab-ico {
  flex: 0 0 auto;
  height: 20px;
}

/* Headline counters */
.tc-headline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.tc-headline-card {
  position: relative;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-left: 3px solid var(--lime);
}

.tc-headline-label {
  display: block;
  font-family: 'Consolas', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 8px;
}

.tc-headline-nums {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
}

.tc-headline-stock {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 600;
  color: var(--muted-2);
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: rgba(225, 6, 0, 0.6);
}

.tc-headline-arrow { color: var(--muted-2); }

.tc-headline-tuned {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.4vw, 48px);
  font-weight: 800;
  font-style: italic;
  line-height: 1;
  color: var(--lime);
  text-shadow: 0 0 30px var(--lime-glow);
  font-variant-numeric: tabular-nums;
}

.tc-headline-unit {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
}

.tc-headline-gain {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
}

/* Lab layout */
.tc-lab-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr);
  gap: 22px;
  align-items: start;
}

.tc-lab-main {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
}

.tc-lab-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

/* ── Charts ───────────────────────────────────────────────────────── */
.tc-chart {
  position: relative;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
  padding: 16px 16px 12px;
}

.tc-chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.tc-chart-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
}

.tc-chart-tools {
  display: flex;
  gap: 6px;
}

.tc-chart-tool {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--muted);
  background: none;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
}

.tc-chart-tool:hover,
.tc-chart-tool:focus-visible {
  color: var(--lime);
  border-color: rgba(200, 255, 0, 0.4);
}

.tc-chart-stage svg {
  display: block;
  width: 100%;
  height: auto;
  touch-action: pan-y;
  cursor: crosshair;
}

.tc-chart-stage svg:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
}

.tc-chart-gridline {
  stroke: rgba(255, 255, 255, 0.07);
  stroke-width: 1;
}

.tc-chart-gridline--v { stroke: rgba(255, 255, 255, 0.04); }

.tc-chart-tick {
  fill: rgba(255, 255, 255, 0.5);
  font: 12px 'Chakra Petch', 'Consolas', monospace;
}

.tc-chart-tick--y { fill: rgba(200, 255, 0, 0.65); }
.tc-chart-tick--y2 { fill: rgba(0, 240, 255, 0.65); }

.tc-chart-axis-title {
  fill: rgba(255, 255, 255, 0.7);
  font: 600 12px 'Chakra Petch', monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tc-chart-line {
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tc-chart-cursor {
  stroke: rgba(255, 255, 255, 0.35);
  stroke-width: 1;
  stroke-dasharray: 4 4;
}

.tc-chart-dot {
  stroke: var(--charcoal);
  stroke-width: 2;
}

.tc-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.tc-chart-key {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--white);
  background: none;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: opacity var(--transition), border-color var(--transition);
}

.tc-chart-key i,
.tc-key-dot {
  display: inline-block;
  width: 14px;
  height: 4px;
  flex: 0 0 auto;
}

.tc-key-dot { margin-right: 6px; vertical-align: middle; }

.tc-chart-key.is-off { opacity: 0.4; }

.tc-chart-key:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
}

.tc-chart-readout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-top: 10px;
  padding: 8px 12px;
  font-size: 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  min-height: 38px;
}

.tc-chart-readout-x {
  font-family: 'Consolas', monospace;
  color: var(--white);
}

.tc-chart-readout-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tc-chart-readout-row i {
  width: 10px;
  height: 3px;
  display: inline-block;
}

.tc-chart-readout-row strong { color: var(--white); }

.tc-chart-hint {
  margin-top: 8px;
  font-size: 11px;
  color: var(--muted-2);
}

/* ── Gauges ───────────────────────────────────────────────────────── */
.tc-gauges {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.tc-gauge {
  padding: 14px 12px 12px;
  text-align: center;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.tc-gauge svg {
  display: block;
  width: 100%;
  max-width: 130px;
  margin: 0 auto;
}

.tc-gauge-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.09);
  stroke-width: 7;
}

.tc-gauge-fill {
  fill: none;
  stroke: var(--lime);
  stroke-width: 7;
  filter: drop-shadow(0 0 6px var(--lime-glow));
  transition: stroke-dashoffset 1.1s cubic-bezier(0.34, 1.2, 0.44, 1);
}

.tc-gauge-needle-g {
  transform-origin: 60px 60px;
  transition: transform 1.1s cubic-bezier(0.34, 1.2, 0.44, 1);
}

.tc-gauge-needle {
  stroke: var(--white);
  stroke-width: 2.5;
  stroke-linecap: round;
}

.tc-gauge-hub { fill: var(--white); }

.tc-gauge-meta {
  margin-top: -22px;
  position: relative;
}

.tc-gauge-value {
  display: block;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  font-style: italic;
  color: var(--white);
  font-variant-numeric: tabular-nums;
}

.tc-gauge-value em {
  font-size: 11px;
  font-style: normal;
  color: var(--muted);
}

.tc-gauge-label {
  display: block;
  margin-top: 2px;
  font-family: 'Consolas', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
}

/* ── Metric cards ─────────────────────────────────────────────────── */
.tc-metrics {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tc-metric {
  padding: 12px 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.tc-metric--muted { opacity: 0.85; }

.tc-metric-label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-family: 'Consolas', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 6px;
}

.tc-metric-vals {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.tc-metric-stock {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--muted-2);
  text-decoration: line-through;
  text-decoration-color: rgba(225, 6, 0, 0.55);
}

.tc-metric-arrow { color: var(--muted-2); font-size: 12px; }

.tc-metric-tuned {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 800;
  font-style: italic;
  color: var(--white);
  font-variant-numeric: tabular-nums;
}

.tc-metric-delta {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--lime);
}

/* ── Turbo panel ──────────────────────────────────────────────────── */
.tc-turbo {
  padding: 16px 16px 14px;
  border: 1px solid rgba(0, 240, 255, 0.18);
  background: rgba(0, 240, 255, 0.025);
}

.tc-turbo-head { margin-bottom: 14px; }

.tc-turbo-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cyan);
}

.tc-turbo-na {
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}

.tc-turbo-row { margin-bottom: 12px; }

.tc-turbo-row-label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: 'Consolas', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 6px;
}

.tc-turbo-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  margin-bottom: 4px;
  overflow: hidden;
}

.tc-turbo-fill {
  display: block;
  height: 100%;
  transition: width 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}

.tc-turbo-fill.is-stock { background: rgba(255, 255, 255, 0.35); }

.tc-turbo-fill.is-tuned {
  background: linear-gradient(90deg, var(--cyan), var(--lime));
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.tc-turbo-vals {
  font-size: 12px;
  color: var(--muted);
}

.tc-turbo-vals strong { color: var(--white); }

.tc-turbo-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tc-turbo-chip {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-family: 'Consolas', monospace;
  font-size: 11px;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 6px 10px;
}

/* ── Options ──────────────────────────────────────────────────────── */
.tc-options { margin-bottom: 40px; }

.tc-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
}

.tc-option-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color var(--transition);
}

.tc-option-card:hover { border-color: rgba(200, 255, 0, 0.3); }

.tc-option-card strong {
  font-family: var(--font-display);
  font-size: 14px;
  font-style: italic;
  color: var(--white);
}

.tc-option-card span {
  font-size: 12px;
  color: var(--muted-2);
}

/* ── Stage guide (interactive hardware → stage) ───────────────────── */
.tc-stageguide { margin-bottom: 40px; }

.tc-sg-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(16px, 2.5vw, 28px);
  align-items: start;
}

.tc-sg-picker {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tc-sg-group {
  margin: 0;
  padding: 0;
  border: 0;
}

.tc-sg-group legend {
  padding: 0;
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
}

.tc-sg-group legend span {
  color: var(--muted-2);
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}

.tc-sg-chips {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}

.tc-sg-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 12px 14px;
  text-align: left;
  color: var(--muted);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), color var(--transition);
}

.tc-sg-chip:hover { border-color: var(--border-bright); }

.tc-sg-chip:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
}

.tc-sg-chip-ico {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--muted);
  border: 1px solid var(--border);
  transition: color var(--transition), border-color var(--transition);
}

.tc-sg-chip-ico svg { width: 20px; height: 20px; }

.tc-sg-chip-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.tc-sg-chip-label {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
}

.tc-sg-chip-note {
  font-size: 11px;
  color: var(--muted-2);
}

.tc-sg-chip-tick {
  flex: 0 0 auto;
  margin-left: auto;
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  color: #0b0b0b;
  background: var(--lime);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity var(--transition), transform var(--transition);
}

.tc-sg-chip-tick svg { width: 13px; height: 13px; }

/* Selected state — lime for breathing mods, cyan for airflow (Stage 2) mods */
.tc-sg-chip[aria-pressed="true"] {
  border-color: var(--border-bright);
  background: var(--lime-dim);
  color: var(--white);
}

.tc-sg-chip[aria-pressed="true"] .tc-sg-chip-ico {
  color: var(--lime);
  border-color: var(--border-bright);
}

.tc-sg-chip[aria-pressed="true"] .tc-sg-chip-tick {
  opacity: 1;
  transform: scale(1);
}

.tc-sg-chip[data-tier="s2"][aria-pressed="true"] {
  border-color: rgba(0, 240, 255, 0.4);
  background: rgba(0, 240, 255, 0.06);
}

.tc-sg-chip[data-tier="s2"][aria-pressed="true"] .tc-sg-chip-ico {
  color: var(--cyan);
  border-color: rgba(0, 240, 255, 0.4);
}

.tc-sg-chip[data-tier="s2"][aria-pressed="true"] .tc-sg-chip-tick {
  color: #04222a;
  background: var(--cyan);
}

.tc-sg-reset-row { margin: 2px 0 0; }

/* Verdict card */
.tc-sg-verdict {
  position: relative;
  min-height: 260px;
}

.tc-sg-verdict-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(18px, 2.6vw, 26px);
  border: 1px solid var(--border-bright);
  background: linear-gradient(180deg, rgba(200, 255, 0, 0.05), rgba(255, 255, 255, 0.01));
  clip-path: var(--clip-tag);
}

.tc-sg-verdict-card.tc-sg-verdict--stage1plus {
  border-color: rgba(253, 184, 19, 0.45);
  background: linear-gradient(180deg, rgba(253, 184, 19, 0.06), rgba(255, 255, 255, 0.01));
}

.tc-sg-verdict-card.tc-sg-verdict--stage2 {
  border-color: rgba(245, 130, 32, 0.45);
  background: linear-gradient(180deg, rgba(245, 130, 32, 0.07), rgba(255, 255, 255, 0.01));
}

.tc-sg-verdict-card.tc-sg-verdict--custom {
  border-color: rgba(255, 184, 0, 0.4);
  background: linear-gradient(180deg, rgba(255, 184, 0, 0.06), rgba(255, 255, 255, 0.01));
}

.tc-sg-verdict-card.is-swap {
  opacity: 0;
  transform: translateY(6px);
}

.tc-sg-verdict-card {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.tc-sg-verdict-eyebrow {
  font-family: 'Consolas', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.tc-sg-verdict-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
}

.tc-sg-verdict-badge {
  font-family: var(--font-display);
  font-size: clamp(26px, 4.4vw, 38px);
  font-weight: 700;
  font-style: italic;
  line-height: 1;
  color: var(--lime);
  text-shadow: 0 0 30px var(--lime-glow);
}

.tc-sg-verdict--stage1plus .tc-sg-verdict-badge { color: #fdb813; text-shadow: 0 0 30px rgba(253, 184, 19, 0.35); }
.tc-sg-verdict--stage2 .tc-sg-verdict-badge { color: #f58220; text-shadow: 0 0 30px rgba(245, 130, 32, 0.35); }
.tc-sg-verdict--custom .tc-sg-verdict-badge { color: var(--yellow); text-shadow: 0 0 30px rgba(255, 184, 0, 0.35); }

/* When the badge holds the brand artwork, drop the text box styling. */
.tc-sg-verdict-badge--icon {
  text-shadow: none;
  line-height: 0;
}

.tc-sg-verdict-ico {
  height: clamp(42px, 6vw, 56px);
}

.tc-sg-verdict-tagline {
  margin: 0;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
}

.tc-sg-verdict-why {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.tc-sg-verdict-why strong { color: var(--white); }

.tc-sg-gains {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  padding: 12px 0 4px;
}

.tc-sg-gain {
  font-size: 13px;
  color: var(--muted);
}

.tc-sg-gain strong {
  font-family: var(--font-display);
  color: var(--white);
}

.tc-sg-cta {
  align-self: flex-start;
  margin-top: 6px;
}

/* ── Conversion CTA strip ─────────────────────────────────────────── */
.tc-cta {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px clamp(20px, 4vw, 48px);
  padding: clamp(22px, 3.2vw, 34px);
  margin-bottom: 40px;
}

.tc-cta-copy { flex: 1 1 320px; }

.tc-cta-copy h3 {
  font-size: clamp(19px, 2.6vw, 26px);
  text-transform: uppercase;
  margin: 8px 0 8px;
}

.tc-cta-copy p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 620px;
}

.tc-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex: 0 0 auto;
}

/* ── Comparison deck ──────────────────────────────────────────────── */
.tc-compare {
  position: relative;
  padding: clamp(22px, 3.5vw, 36px);
  margin-bottom: 40px;
}

.tc-compare-controls {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: stretch;
  margin-bottom: 18px;
}

.tc-compare-slot {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.tc-compare-slot legend {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--white);
}

.tc-compare-slot legend i {
  display: inline-block;
  width: 14px;
  height: 4px;
}

.tc-compare-vs {
  align-self: center;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  font-style: italic;
  color: var(--red);
  text-shadow: 0 0 16px rgba(225, 6, 0, 0.4);
}

.tc-compare-selects {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tc-compare-selects select,
.tc-compare-vrn {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  font-family: var(--font);
  font-size: 14px;
  color: var(--white);
  background: var(--charcoal-light);
  border: 1px solid var(--border);
}

.tc-compare-selects select:focus-visible,
.tc-compare-vrn:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 1px;
}

.tc-compare-addveh { margin-bottom: 22px; }

.tc-compare-addveh label {
  display: block;
  font-family: 'Consolas', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 8px;
}

.tc-compare-addveh-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 420px;
}

.tc-compare-addveh-row .tc-compare-vrn {
  flex: 1 1 180px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tc-compare-status {
  min-height: 1.4em;
  margin-top: 8px;
  font-size: 13px;
  color: var(--cyan);
}

.tc-compare-summary {
  margin-top: 22px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tc-compare-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 13px;
}

.tc-compare-table th,
.tc-compare-table td {
  padding: 11px 14px;
  border: 1px solid var(--border);
  text-align: left;
}

.tc-compare-table thead th {
  font-family: var(--font-display);
  font-size: 12px;
  font-style: italic;
  color: var(--white);
  background: rgba(255, 255, 255, 0.03);
}

.tc-compare-table tbody th {
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

.tc-compare-table td { color: var(--white); }

.tc-compare-delta {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--lime) !important;
}

/* ── Learning layer ───────────────────────────────────────────────── */
.tc-learn { margin-bottom: 40px; }

.tc-learn-head { margin-bottom: 20px; }

.tc-learn-head h3 {
  font-size: clamp(19px, 2.6vw, 26px);
  text-transform: uppercase;
  margin: 8px 0;
}

.tc-learn-head p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.tc-learn-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
}

.tc-learn-item {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  border-left: 3px solid transparent;
  transition: border-color var(--transition);
}

.tc-learn-item.is-open { border-left-color: var(--cyan); }

.tc-learn-item.is-flash {
  animation: tc-learn-flash 1.2s ease;
}

@keyframes tc-learn-flash {
  0%, 60% { box-shadow: 0 0 0 1px var(--cyan), 0 0 24px rgba(0, 240, 255, 0.25); }
  100% { box-shadow: none; }
}

.tc-learn-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  color: var(--white);
  background: none;
  border: none;
  cursor: pointer;
}

.tc-learn-q:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: -2px;
}

.tc-learn-toggle {
  position: relative;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
}

.tc-learn-toggle::before,
.tc-learn-toggle::after {
  content: '';
  position: absolute;
  background: var(--cyan);
  transition: transform var(--transition);
}

.tc-learn-toggle::before {
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  margin-top: -1px;
}

.tc-learn-toggle::after {
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  margin-left: -1px;
}

.tc-learn-item.is-open .tc-learn-toggle::after { transform: scaleY(0); }

.tc-learn-a p {
  padding: 0 16px 16px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

/* ── Report bar ───────────────────────────────────────────────────── */
.tc-report { margin-bottom: 28px; }

.tc-report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tc-report-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 12px 18px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  cursor: pointer;
  clip-path: var(--clip-btn);
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.tc-report-btn svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.tc-report-btn:hover,
.tc-report-btn:focus-visible {
  color: var(--lime);
  border-color: rgba(200, 255, 0, 0.4);
  background: rgba(200, 255, 0, 0.04);
}

.tc-report-btn:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
}

.tc-report-status {
  min-height: 1.4em;
  margin-top: 10px;
  font-size: 13px;
  color: var(--cyan);
  overflow-wrap: anywhere;
}

/* ── Lead panel ───────────────────────────────────────────────────── */
.tc-lead {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(24px, 4vw, 48px);
  padding: clamp(26px, 4vw, 44px);
}

.tc-lead-copy h3 {
  font-size: clamp(20px, 2.8vw, 28px);
  text-transform: uppercase;
  margin: 8px 0 12px;
}

.tc-lead-copy p {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.tc-lead-copy a { color: var(--lime); }

.tc-lead-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tc-lead-points li {
  position: relative;
  padding-left: 20px;
  font-size: 13px;
  color: var(--muted);
}

.tc-lead-points li::before {
  content: '»';
  position: absolute;
  left: 0;
  color: var(--lime);
}

.tc-lead-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tc-lead-field label {
  display: block;
  font-family: 'Consolas', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 6px;
}

.tc-lead-field label span { text-transform: none; letter-spacing: 0; }

.tc-lead-field input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  font-family: var(--font);
  font-size: 15px;
  color: var(--white);
  background: var(--charcoal-light);
  border: 1px solid var(--border);
  transition: border-color var(--transition);
}

.tc-lead-field input:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 1px;
  border-color: rgba(200, 255, 0, 0.4);
}

.tc-lead-note {
  font-size: 12px;
  color: var(--muted-2);
  text-align: center;
}

/* ── Static SEO sections ──────────────────────────────────────────── */
.tc-static { padding: 72px 0; }

.tc-how-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.tc-how-card {
  position: relative;
  padding: 24px 22px;
}

.tc-how-num {
  display: block;
  font-family: 'Consolas', monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--lime);
  margin-bottom: 12px;
}

.tc-how-card h3 {
  font-size: 16px;
  text-transform: uppercase;
  margin-bottom: 10px;
  line-height: 1.3;
}

.tc-how-card p {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--muted);
}

.tc-numbers-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.tc-number-card {
  padding: 22px 20px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  border-top: 3px solid rgba(0, 240, 255, 0.35);
}

.tc-number-card h3 {
  font-size: 16px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.tc-number-card p {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--muted);
}

.tc-number-card strong { color: var(--white); }

.tc-stage-guide {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.tc-stage-guide-item {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 24px;
}

.tc-stage-guide-item header { margin-bottom: 14px; }

.tc-stage-guide-item h3 {
  font-size: 20px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.tc-stage-guide-tag {
  font-family: 'Consolas', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--lime);
}

.tc-stage-guide-item p {
  flex: 1;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--muted);
  margin-bottom: 16px;
}

.tc-stage-guide-link {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--lime);
  text-decoration: none;
}

.tc-stage-guide-link:hover { color: var(--white); }

.tc-method-panel {
  position: relative;
  padding: clamp(28px, 4.5vw, 52px);
}

.tc-method-panel h2 {
  font-size: clamp(22px, 3vw, 30px);
  text-transform: uppercase;
  margin: 10px 0 22px;
}

.tc-method-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
}

.tc-method-cols p {
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 16px;
}

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .tc-lab-grid { grid-template-columns: 1fr; }
  .tc-lab-side {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
  }
  .tc-gauges { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 220px)); justify-content: start; }
  .tc-how-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tc-numbers-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tc-stage-guide { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .tc-lead { grid-template-columns: 1fr; }
  .tc-compare-controls { grid-template-columns: 1fr; }
  .tc-compare-vs { justify-self: center; }
  .tc-learn-list { grid-template-columns: 1fr; }
  .tc-method-cols { grid-template-columns: 1fr; }
  .tc-lab-side { grid-template-columns: 1fr; }
  .tc-gauges { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .tc-hero { padding: calc(var(--header-h) + 44px) 0 44px; }
  .tc-hero-form { --reg-field-h: 68px; flex-direction: column; align-items: stretch; }
  .tc-hero-form .vrn-plate { width: 100%; max-width: 100%; flex: 0 0 auto; }
  .tc-hero-form .vrn-input { font-size: 30px; }
  .tc-hero-btn.reg-check-btn { width: 100%; max-width: none; align-self: stretch; justify-content: center; }
  .tc-idle,
  .tc-scan { grid-template-columns: 1fr; text-align: center; }
  .tc-idle-ring,
  .tc-scan-ring { margin: 0 auto; }
  .tc-idle-steps { grid-template-columns: 1fr; text-align: left; }
  .tc-scan-lines { align-items: center; }
  .tc-headline { grid-template-columns: 1fr; }
  .tc-dossier-new { margin-left: 0; width: 100%; }
  .tc-how-grid,
  .tc-numbers-grid { grid-template-columns: 1fr; }
  .tc-static { padding: 56px 0; }
  .tc-stage-tabs { flex-direction: column; }
  .tc-stage-tab { justify-content: space-between; }
  .tc-sg-layout { grid-template-columns: 1fr; }
  .tc-sg-chips { grid-template-columns: 1fr; }
  .tc-cta { flex-direction: column; align-items: flex-start; }
  .tc-cta-actions { width: 100%; }
  .tc-cta-actions .btn { flex: 1 1 auto; justify-content: center; }
}

/* ── Reduced motion ───────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .tc-idle-ring-arc { animation: none; }
  .tc-scan-ring-arc { transition: none; }
  .tc-scan-line { transition: none; }
  .tc-gauge-fill,
  .tc-gauge-needle-g { transition: none; }
  .tc-turbo-fill { transition: none; }
  .tc-learn-item.is-flash { animation: none; }
  .tc-explain:hover,
  .tc-explain:focus-visible { transform: none; }
  .tc-sg-verdict-card { transition: none; }
  .tc-sg-verdict-card.is-swap { opacity: 1; transform: none; }
  .tc-sg-chip,
  .tc-sg-chip-ico,
  .tc-sg-chip-tick { transition: none; }
}

/* ── Print report ─────────────────────────────────────────────────── */
@media print {
  body[data-page="calculator"] {
    background: #fff !important;
    color: #111 !important;
  }

  body[data-page="calculator"] .holo-bg,
  body[data-page="calculator"] #site-header,
  body[data-page="calculator"] #site-footer,
  body[data-page="calculator"] .tc-hero-form,
  body[data-page="calculator"] .tc-hero-points,
  body[data-page="calculator"] .tc-hero-grid,
  body[data-page="calculator"] .tc-static,
  body[data-page="calculator"] .cta-section,
  body[data-page="calculator"] .tc-report,
  body[data-page="calculator"] .tc-lead,
  body[data-page="calculator"] .tc-learn,
  body[data-page="calculator"] .tc-stageguide,
  body[data-page="calculator"] .tc-cta,
  body[data-page="calculator"] .tc-compare-addveh,
  body[data-page="calculator"] .tc-chart-tools,
  body[data-page="calculator"] .tc-chart-hint,
  body[data-page="calculator"] .tc-chart-readout,
  body[data-page="calculator"] .tc-dossier-new,
  body[data-page="calculator"] .tc-explain,
  body[data-page="calculator"] #sticky-reg-bar,
  body[data-page="calculator"] .cmd-overlay {
    display: none !important;
  }

  body[data-page="calculator"] .tc-hero {
    padding: 12mm 0 4mm;
    background: #fff !important;
  }

  body[data-page="calculator"] .tc-hero .hero-bg,
  body[data-page="calculator"] .tc-breadcrumb {
    display: none !important;
  }

  body[data-page="calculator"] .tc-lab,
  body[data-page="calculator"] .tc-compare,
  body[data-page="calculator"] .tc-compare-slot,
  body[data-page="calculator"] .tc-stage-tab,
  body[data-page="calculator"] .tc-turbo-chip {
    background: #fff !important;
    border-color: #ccc !important;
    color: #111 !important;
  }

  body[data-page="calculator"] .tc-compare-selects select {
    background: #fff !important;
    border-color: #ccc !important;
    color: #111 !important;
  }

  body[data-page="calculator"] .tc-compare-table thead th,
  body[data-page="calculator"] .tc-compare-table tbody th,
  body[data-page="calculator"] .tc-compare-slot legend,
  body[data-page="calculator"] .tc-stage-tab-gain,
  body[data-page="calculator"] .tc-turbo-title,
  body[data-page="calculator"] .tc-turbo-vals,
  body[data-page="calculator"] .tc-headline-gain {
    background: #fff !important;
    color: #111 !important;
  }

  body[data-page="calculator"] .tc-hero h1,
  body[data-page="calculator"] .tc-hero h1 .accent {
    color: #111;
    text-shadow: none;
    font-size: 22pt;
  }

  body[data-page="calculator"] .tc-hero-lead,
  body[data-page="calculator"] .tc-panel-head p,
  body[data-page="calculator"] .tc-idle-copy p {
    color: #444;
  }

  body[data-page="calculator"] .holo-panel,
  body[data-page="calculator"] .tc-chart,
  body[data-page="calculator"] .tc-metric,
  body[data-page="calculator"] .tc-gauge,
  body[data-page="calculator"] .tc-turbo,
  body[data-page="calculator"] .tc-headline-card,
  body[data-page="calculator"] .tc-spec,
  body[data-page="calculator"] .tc-option-card {
    background: #fff !important;
    border-color: #ccc !important;
    box-shadow: none !important;
    color: #111 !important;
    break-inside: avoid;
  }

  body[data-page="calculator"] .tc-spec-value,
  body[data-page="calculator"] .tc-headline-unit,
  body[data-page="calculator"] .tc-metric-tuned,
  body[data-page="calculator"] .tc-gauge-value,
  body[data-page="calculator"] .tc-dossier-titles h2,
  body[data-page="calculator"] .tc-panel-head h3,
  body[data-page="calculator"] .tc-turbo-vals strong,
  body[data-page="calculator"] .tc-compare-table td,
  body[data-page="calculator"] .tc-learn-q,
  body[data-page="calculator"] .tc-option-card strong {
    color: #111 !important;
    text-shadow: none !important;
  }

  body[data-page="calculator"] .tc-headline-tuned,
  body[data-page="calculator"] .tc-metric-delta,
  body[data-page="calculator"] .tc-compare-delta {
    color: #3a7d00 !important;
    text-shadow: none !important;
  }

  body[data-page="calculator"] .tc-chart-tick,
  body[data-page="calculator"] .tc-chart-axis-title {
    fill: #555 !important;
  }

  body[data-page="calculator"] .tc-chart-gridline {
    stroke: #ddd !important;
  }

  body[data-page="calculator"] .tc-lab-grid {
    grid-template-columns: 1fr;
  }
}
