/* FLR Pre-Flight — loaded only on remap-readiness.html
   Naming: .rr-* prefix. Tokens, shell, buttons, vrn plate base, faq base and
   .visually-hidden come from core.css.

   ═══════════════════════════════════════════════════════════════════════
   RR — FLR PRE-FLIGHT REMAP READINESS CHECKER (/remap-readiness)
   Systems-check personality: cyan scan, lime clear, amber advise, red hold.
   ═══════════════════════════════════════════════════════════════════════ */

.rr-main {
  --rr-scan: var(--cyan);
  --rr-clear: var(--lime);
  --rr-advise: var(--yellow);
  --rr-hold: var(--red);
  --rr-standby: rgba(255, 255, 255, 0.22);
  /* Card craft tokens */
  --rr-card-bg: linear-gradient(165deg, rgba(0, 240, 255, 0.045), rgba(0, 0, 0, 0) 45%);
  --rr-ghost: rgba(255, 255, 255, 0.05);
  --rr-chip-glow: 0 0 18px rgba(200, 255, 0, 0.22);
  --rr-chip-glow-cyan: 0 0 18px rgba(0, 240, 255, 0.22);
  --rr-edge: linear-gradient(90deg, var(--cyan), transparent 70%);
}

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

.rr-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.03) 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;
}

/* Two-column cockpit hero: copy + form on the left, live console on the
   right so the check is visible without scrolling. Points run under the
   copy; when a result renders the app breaks out to full width. */
.rr-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  grid-template-areas:
    'copy app'
    'points app';
  gap: 28px 48px;
  align-items: start;
}

.rr-hero-copy { grid-area: copy; min-width: 0; }
.rr-hero-inner > .rr-app { grid-area: app; min-width: 0; }
.rr-hero-inner > .rr-hero-points { grid-area: points; align-self: end; }

/* Result dossier needs the full width — break the app out of the column. */
.rr-hero-inner.is-result {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    'copy'
    'app'
    'points';
}

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

.rr-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);
}

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

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

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

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

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

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

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

/* Re-scope the plate for this form (base .vrn-* sizing is scoped elsewhere). */
.rr-hero-form .vrn-plate {
  max-width: 340px;
  height: var(--reg-field-h);
  min-height: 0;
  flex: 1 1 280px;
}

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

.rr-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;
}

/* The yellow plate is the focus affordance — kill the browser ring (same
   treatment as .tc-hero-form in tc.css). */
.rr-hero-form .vrn-input:focus {
  border: none;
  background: transparent;
  box-shadow: none;
  outline: none;
}

.rr-hero-btn {
  height: var(--reg-field-h);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.rr-hero-btn svg { width: 18px; height: 18px; }

.rr-hero-alt {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.rr-hero-alt:hover { color: var(--cyan); }

.rr-hero-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
}

.rr-hero-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13.5px;
}

.rr-hero-point-icon {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  color: var(--lime);
  border: 1px solid var(--border-bright);
  clip-path: var(--clip-tag);
  background: var(--lime-dim);
  flex: none;
}

.rr-hero-point-icon svg { width: 16px; height: 16px; }

/* ── App console (lives in the hero's right column) ───────────────── */
.rr-app { min-height: 320px; }

/* Idle cockpit console */
.rr-idle {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 26px 28px 24px;
}

.rr-idle-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 14px;
}

.rr-idle-title {
  margin: 0;
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  letter-spacing: 0.04em;
}

.rr-idle-status {
  font-family: var(--font-display);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid rgba(0, 240, 255, 0.4);
  background: rgba(0, 240, 255, 0.06);
  padding: 3px 10px;
  clip-path: var(--clip-tag);
  flex: none;
}

@media (prefers-reduced-motion: no-preference) {
  .rr-idle-status { animation: rr-standby-pulse 2.2s ease-in-out infinite; }
}

.rr-idle-lights {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.rr-idle-light {
  display: grid;
  grid-template-columns: 14px 26px 1fr auto;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
}

.rr-idle-light b {
  font-weight: 400;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.rr-idle-light em {
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--rr-standby);
}

.rr-idle-light i {
  width: 10px;
  height: 10px;
  background: var(--rr-standby);
  clip-path: var(--clip-hex);
  flex: none;
}

@media (prefers-reduced-motion: no-preference) {
  .rr-idle-light i { animation: rr-standby-pulse 2.6s ease-in-out infinite; }
  .rr-idle-light:nth-child(2) i { animation-delay: 0.3s; }
  .rr-idle-light:nth-child(3) i { animation-delay: 0.6s; }
  .rr-idle-light:nth-child(4) i { animation-delay: 0.9s; }
  .rr-idle-light:nth-child(5) i { animation-delay: 1.2s; }
}

@keyframes rr-standby-pulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}

/* Idle scanline — the console looks alive while it waits. */
.rr-idle-scan {
  height: 2px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  position: relative;
}

.rr-idle-scan span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 30%;
  background: var(--rr-scan);
  opacity: 0.6;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

@media (prefers-reduced-motion: no-preference) {
  .rr-idle-scan span { animation: rr-scan-sweep 2.8s ease-in-out infinite; }
}

.rr-idle-copy p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 13.5px;
  margin: 0 0 14px;
}

.rr-idle-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.rr-idle-steps li span {
  font-family: var(--font-display);
  color: var(--cyan);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.rr-noscript { padding: 26px 30px; margin-top: 18px; }
.rr-noscript p { margin: 0; color: var(--muted); line-height: 1.75; }
.rr-noscript a { color: var(--lime); }

/* ── Shell: HUD + stage ────────────────────────────────────────────────
   The app runs inside the hero's right column (~600px max), so the shell
   always uses the compact stacked layout: HUD strip above the stage. */
.rr-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.rr-shell--ident { grid-template-columns: minmax(0, 1fr); }

/* HUD — compact horizontal strip */
.rr-hud {
  padding: 20px 22px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}

.rr-hud-ident { flex: 1 1 200px; }

.rr-hud-ident {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rr-plate-chip {
  align-self: flex-start;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  background: #f1c531;
  color: #0b0b0b;
  padding: 3px 10px;
  clip-path: var(--clip-tag);
}

.rr-hud-vehicle {
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.3;
  color: var(--white);
}

.rr-hud-mode {
  align-self: flex-start;
  font-family: var(--font-display);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--cyan);
  border: 1px solid rgba(0, 240, 255, 0.4);
  padding: 2px 8px;
  clip-path: var(--clip-tag);
}

.rr-hud-lights {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 260px;
}

.rr-light {
  display: grid;
  grid-template-columns: 14px 24px 1fr auto;
  align-items: center;
  gap: 8px;
}

.rr-light-lamp i {
  display: block;
  width: 10px;
  height: 10px;
  clip-path: var(--clip-hex);
  background: var(--rr-standby);
  transition: background var(--transition), box-shadow var(--transition);
}

.rr-light-num {
  font-family: var(--font-display);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.rr-light-label {
  font-family: var(--font-display);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--white);
}

.rr-light-state {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.rr-light[data-status='scan'] .rr-light-lamp i { background: var(--rr-scan); box-shadow: 0 0 10px rgba(0, 240, 255, 0.6); }
.rr-light[data-status='scan'] .rr-light-state { color: var(--rr-scan); }
.rr-light[data-status='clear'] .rr-light-lamp i { background: var(--rr-clear); box-shadow: 0 0 10px var(--lime-glow); }
.rr-light[data-status='clear'] .rr-light-state { color: var(--rr-clear); }
.rr-light[data-status='advise'] .rr-light-lamp i { background: var(--rr-advise); box-shadow: 0 0 10px rgba(255, 184, 0, 0.55); }
.rr-light[data-status='advise'] .rr-light-state { color: var(--rr-advise); }
.rr-light[data-status='hold'] .rr-light-lamp i { background: var(--rr-hold); box-shadow: 0 0 10px var(--red-glow); }
.rr-light[data-status='hold'] .rr-light-state { color: var(--rr-hold); }

@media (prefers-reduced-motion: no-preference) {
  .rr-light[data-status='scan'] .rr-light-lamp i { animation: rr-scan-pulse 1.1s ease-in-out infinite; }
}

/* Animations off (OS reduce-motion): the scan lamp can't pulse, so give it
   a steady halo instead — still clearly "this system is being checked". */
@media (prefers-reduced-motion: reduce) {
  .rr-light[data-status='scan'] .rr-light-lamp i {
    box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.28), 0 0 12px rgba(0, 240, 255, 0.6);
  }
}

@keyframes rr-scan-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* Readiness ring — the % readout sits centred INSIDE the circle. */
.rr-hud-ring {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.rr-hud-ring svg { width: 96px; height: 96px; display: block; transform: rotate(-90deg); }

.rr-ring-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 7;
}

.rr-ring-arc {
  fill: none;
  stroke: var(--rr-scan);
  stroke-width: 7;
  stroke-linecap: butt;
  transition: stroke-dashoffset 0.6s ease, stroke 0.3s ease;
}

.rr-hud[data-band='clear'] .rr-ring-arc { stroke: var(--rr-clear); }
.rr-hud[data-band='advise'] .rr-ring-arc { stroke: var(--rr-advise); }
.rr-hud[data-band='hold'] .rr-ring-arc { stroke: var(--rr-hold); }

.rr-ring-meta {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  pointer-events: none;
}

.rr-ring-pct {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.rr-ring-word {
  font-family: var(--font-display);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-align: center;
}

.rr-hud[data-band='clear'] .rr-ring-word { color: var(--rr-clear); }
.rr-hud[data-band='advise'] .rr-ring-word { color: var(--rr-advise); }
.rr-hud[data-band='hold'] .rr-ring-word { color: var(--rr-hold); }
.rr-hud[data-band='scan'] .rr-ring-word { color: var(--rr-scan); }

.rr-hud-note {
  margin: 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.6;
  flex-basis: 100%;
}

/* ── Stage panel ───────────────────────────────────────────────────── */
.rr-stage {
  position: relative;
  padding: 28px 30px 26px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 420px;
}

/* Crumbs */
.rr-crumbs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.rr-crumbs-track {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.rr-crumb {
  font-family: var(--font-display);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--rr-standby);
  flex: none;
}

.rr-crumb.is-done { color: var(--lime); }
.rr-crumb.is-active { color: var(--cyan); text-shadow: 0 0 12px rgba(0, 240, 255, 0.5); }

.rr-crumb-line {
  flex: 1;
  height: 1px;
  background: var(--border);
  min-width: 6px;
}

.rr-crumbs-count {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--muted);
  flex: none;
}

/* Question */
.rr-question { display: flex; flex-direction: column; gap: 14px; flex: 1; }

.rr-question h3 {
  margin: 0;
  font-size: clamp(1.2rem, 2.3vw, 1.55rem);
  line-height: 1.25;
}

.rr-question-help {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  max-width: 560px;
}

.rr-sub-label {
  display: block;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
}

/* Option tiles */
.rr-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.rr-options--row { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.rr-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  clip-path: var(--clip-tag);
  color: var(--white);
  cursor: pointer;
  font-family: var(--font);
  transition: border-color var(--transition), background var(--transition);
}

.rr-tile strong {
  font-family: var(--font-display);
  font-size: 13.5px;
  letter-spacing: 0.03em;
}

.rr-tile span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.rr-tile:hover { border-color: rgba(0, 240, 255, 0.45); }

.rr-tile.is-selected {
  border-color: var(--border-bright);
  background: var(--lime-dim);
  box-shadow: inset 0 0 24px rgba(200, 255, 0, 0.06);
}

.rr-tile.is-selected strong { color: var(--lime); }

/* Transmission toggle */
.rr-trans-toggle {
  display: inline-flex;
  gap: 8px;
}

.rr-trans-btn {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  clip-path: var(--clip-tag);
  padding: 8px 16px;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
}

.rr-trans-btn:hover { color: var(--white); }

.rr-trans-btn.is-active {
  color: var(--cyan);
  border-color: rgba(0, 240, 255, 0.5);
  background: rgba(0, 240, 255, 0.07);
}

/* Lease permission toggle */
.rr-permit { margin-top: 2px; }
.rr-permit.is-hidden { display: none; }

.rr-permit-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: 1px dashed rgba(255, 184, 0, 0.5);
  clip-path: var(--clip-tag);
  color: var(--muted);
  font-size: 13px;
  padding: 10px 14px;
  cursor: pointer;
  text-align: left;
}

.rr-permit-box {
  width: 14px;
  height: 14px;
  border: 1px solid var(--muted);
  flex: none;
  position: relative;
}

.rr-permit-btn.is-on { color: var(--white); border-color: var(--rr-advise); }

.rr-permit-btn.is-on .rr-permit-box {
  border-color: var(--rr-advise);
  background: var(--rr-advise);
  box-shadow: 0 0 10px rgba(255, 184, 0, 0.45);
}

/* Manual ident form */
.rr-manual-notice {
  margin: 0 0 6px;
  padding: 12px 16px;
  border-left: 2px solid var(--rr-advise);
  background: rgba(255, 184, 0, 0.06);
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.65;
}

.rr-manual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.rr-field { display: flex; flex-direction: column; gap: 6px; }

.rr-field label {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.rr-field label span { text-transform: none; letter-spacing: 0; opacity: 0.7; }

.rr-field input,
.rr-field select {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--white);
  font-family: var(--font);
  font-size: 14.5px;
  padding: 11px 14px;
  clip-path: var(--clip-tag);
  width: 100%;
}

.rr-field input:focus,
.rr-field select:focus {
  outline: none;
  border-color: var(--border-bright);
}

.rr-field select option { background: var(--surface-solid); color: var(--white); }

/* Nav */
.rr-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.rr-nav .btn:disabled {
  opacity: 0.35;
  pointer-events: none;
}

/* Scanning */
.rr-scan { display: flex; flex-direction: column; gap: 12px; padding: 16px 4px; }
.rr-scan h3 { margin: 0; }
.rr-scan-status { margin: 0; color: var(--muted); font-size: 14px; }

.rr-scan-bar {
  height: 3px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
  position: relative;
}

.rr-scan-bar span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 38%;
  background: var(--rr-scan);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.5);
}

@media (prefers-reduced-motion: no-preference) {
  .rr-scan-bar span { animation: rr-scan-sweep 1.3s ease-in-out infinite; }
}

@keyframes rr-scan-sweep {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(290%); }
}

/* ── Result report ─────────────────────────────────────────────────── */
.rr-report {
  position: relative;
  padding: 34px 36px 30px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  border-top: 2px solid var(--rr-scan);
}

.rr-report[data-band='clear'] { border-top-color: var(--rr-clear); }
.rr-report[data-band='advise'] { border-top-color: var(--rr-advise); }
.rr-report[data-band='hold'] { border-top-color: var(--rr-hold); }

.rr-report-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-end;
}

.rr-report-id { display: flex; flex-direction: column; gap: 8px; }
.rr-report-id h3 { margin: 0; font-size: clamp(1.3rem, 2.6vw, 1.8rem); }

.rr-report-verdict {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
  text-align: right;
}

.rr-report-band {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(15px, 2vw, 19px);
  letter-spacing: 0.08em;
  padding: 6px 14px;
  clip-path: var(--clip-tag);
  border: 1px solid var(--border);
}

.rr-report[data-band='clear'] .rr-report-band { color: var(--rr-clear); border-color: var(--border-bright); background: var(--lime-dim); }
.rr-report[data-band='advise'] .rr-report-band { color: var(--rr-advise); border-color: rgba(255, 184, 0, 0.45); background: rgba(255, 184, 0, 0.07); }
.rr-report[data-band='hold'] .rr-report-band { color: var(--rr-hold); border-color: rgba(225, 6, 0, 0.5); background: rgba(225, 6, 0, 0.08); }

.rr-report-score { color: var(--muted); font-size: 13px; }
.rr-report-score strong { color: var(--white); }
.rr-report-score em { font-style: normal; opacity: 0.75; }

.rr-report-summary {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
  font-size: 15px;
  max-width: 760px;
}

/* Result lights */
.rr-report-lights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.rr-report-light {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  clip-path: var(--clip-tag);
}

.rr-report-light-lamp i {
  display: block;
  width: 10px;
  height: 10px;
  margin-top: 4px;
  clip-path: var(--clip-hex);
  background: var(--rr-standby);
}

.rr-report-light[data-status='clear'] .rr-report-light-lamp i { background: var(--rr-clear); box-shadow: 0 0 8px var(--lime-glow); }
.rr-report-light[data-status='advise'] .rr-report-light-lamp i { background: var(--rr-advise); box-shadow: 0 0 8px rgba(255, 184, 0, 0.5); }
.rr-report-light[data-status='hold'] .rr-report-light-lamp i { background: var(--rr-hold); box-shadow: 0 0 8px var(--red-glow); }

.rr-report-light-copy { display: flex; flex-direction: column; gap: 3px; }

.rr-report-light-name {
  font-family: var(--font-display);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--white);
}

.rr-report-light[data-status='clear'] .rr-report-light-name strong { color: var(--rr-clear); }
.rr-report-light[data-status='advise'] .rr-report-light-name strong { color: var(--rr-advise); }
.rr-report-light[data-status='hold'] .rr-report-light-name strong { color: var(--rr-hold); }

.rr-report-light-note { color: var(--muted); font-size: 12.5px; line-height: 1.5; }

/* Reasons */
.rr-report-reasons {
  border-left: 2px solid var(--rr-advise);
  background: rgba(255, 184, 0, 0.05);
  padding: 14px 18px;
}

.rr-report-reasons--hold {
  border-left-color: var(--rr-hold);
  background: rgba(225, 6, 0, 0.06);
}

.rr-report-reasons--edu {
  border-left-color: var(--rr-scan);
  background: rgba(0, 240, 255, 0.05);
}

.rr-report-reasons ul {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rr-report-reasons--edu ul { margin-top: 0; }

.rr-report-reasons li {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.65;
  padding-left: 16px;
  position: relative;
}

.rr-report-reasons li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--rr-advise);
  font-family: var(--font-display);
}

.rr-report-reasons--hold li::before { color: var(--rr-hold); }
.rr-report-reasons--edu li::before { color: var(--rr-scan); }

/* Job card */
.rr-jobcard {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
}

.rr-jobcard-copy { display: flex; flex-direction: column; gap: 6px; max-width: 560px; }

.rr-jobcard-copy strong {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--white);
}

.rr-jobcard-price {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--lime);
  letter-spacing: 0.04em;
}

.rr-jobcard-copy p { margin: 2px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.65; }

.rr-jobcard-link { flex: none; }

/* Day plan */
.rr-dayplan-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rr-dayplan-list li {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
  padding-left: 22px;
  position: relative;
}

.rr-dayplan-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 5px;
  width: 9px;
  height: 9px;
  background: var(--lime);
  clip-path: var(--clip-hex);
}

/* Payback */
.rr-payback {
  border: 1px solid var(--border);
  padding: 18px 20px;
  clip-path: var(--clip-tag);
  background: var(--surface);
}

.rr-payback-intro { margin: 8px 0 14px; color: var(--muted); font-size: 13.5px; line-height: 1.65; }

.rr-payback-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;
}

.rr-payback-result { margin: 14px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.7; }
.rr-payback-result strong { color: var(--lime); }

/* Disclaimer + actions */
.rr-report-disclaimer {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  font-style: italic;
}

.rr-report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.rr-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 1px solid var(--border);
  clip-path: var(--clip-tag);
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 12px 16px;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
}

.rr-share-btn:hover { color: var(--cyan); border-color: rgba(0, 240, 255, 0.45); }
.rr-share-btn svg { width: 15px; height: 15px; }

.rr-report-status { margin: 0; min-height: 18px; color: var(--cyan); font-size: 13px; }

.rr-linkbtn {
  background: none;
  border: none;
  padding: 0;
  color: var(--muted);
  font-size: 12.5px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  align-self: flex-start;
}

.rr-linkbtn:hover { color: var(--lime); }

/* ── Lead panel ────────────────────────────────────────────────────── */
.rr-lead {
  position: relative;
  margin-top: 22px;
  padding: 32px 36px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: 34px;
}

.rr-lead-copy h3 { margin: 10px 0 12px; font-size: clamp(1.2rem, 2.3vw, 1.5rem); }

.rr-lead-copy p { margin: 0 0 16px; color: var(--muted); line-height: 1.75; font-size: 14.5px; }
.rr-lead-copy a { color: var(--lime); }

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

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

.rr-lead-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 8px;
  height: 8px;
  background: var(--lime);
  clip-path: var(--clip-hex);
}

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

.rr-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.55;
  cursor: pointer;
}

.rr-consent input {
  margin-top: 2px;
  accent-color: var(--lime);
  flex: none;
  width: 15px;
  height: 15px;
}

.rr-lead-note { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }

/* ── Static sections ───────────────────────────────────────────────── */
.rr-static { padding: 70px 0; }

.rr-how-grid,
.rr-systems-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}

/* Shared card chrome: icon chip + head row */
.rr-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.rr-card-icon {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  color: var(--lime);
  border: 1px solid var(--border-bright);
  clip-path: var(--clip-tag);
  background: var(--lime-dim);
  flex: none;
  transition: box-shadow var(--transition), transform var(--transition);
}

.rr-card-icon svg { width: 22px; height: 22px; }

.rr-card-icon--cyan {
  color: var(--cyan);
  border-color: rgba(0, 240, 255, 0.4);
  background: rgba(0, 240, 255, 0.06);
}

/* How-it-works cards: data strip, ghost step number, scanline hover */
.rr-how-card {
  position: relative;
  padding: 26px 26px 24px;
  overflow: hidden;
  background-image: var(--rr-card-bg);
  transition: transform var(--transition), border-color var(--transition);
}

.rr-how-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--rr-edge);
  opacity: 0.7;
}

.rr-how-ghost {
  position: absolute;
  top: -14px;
  right: 2px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 96px;
  line-height: 1;
  color: var(--rr-ghost);
  pointer-events: none;
  user-select: none;
}

.rr-how-num {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--cyan);
}

.rr-how-card h3 { margin: 0 0 10px; font-size: 1.05rem; position: relative; }
.rr-how-card p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.7; position: relative; }
.rr-how-card a { color: var(--lime); }

.rr-how-card:hover {
  border-color: var(--border-bright);
}

.rr-how-card:hover .rr-card-icon { box-shadow: var(--rr-chip-glow); }

/* Scanline sweep across the card on hover */
.rr-how-card::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -40%;
  width: 22%;
  background: linear-gradient(100deg, transparent, rgba(0, 240, 255, 0.06), transparent);
  pointer-events: none;
  opacity: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .rr-how-card:hover { transform: translateY(-4px); }
  .rr-how-card:hover::after {
    opacity: 1;
    animation: rr-card-sweep 0.9s ease forwards;
  }
}

@keyframes rr-card-sweep {
  from { left: -40%; }
  to { left: 120%; }
}

/* System cards: holo panels that echo the live HUD lights */
.rr-system-card {
  position: relative;
  padding: 24px 24px 22px;
  background-image: var(--rr-card-bg);
  transition: border-color var(--transition);
}

.rr-system-lamp {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 11px;
  height: 11px;
  background: var(--rr-standby);
  clip-path: var(--clip-hex);
  transition: background var(--transition), box-shadow var(--transition);
}

.rr-system-card:hover { border-color: var(--border-bright); }

.rr-system-card:hover .rr-system-lamp {
  background: var(--lime);
  box-shadow: 0 0 12px var(--lime-glow);
}

@media (prefers-reduced-motion: no-preference) {
  .rr-system-card:hover .rr-system-lamp { animation: rr-standby-pulse 1.4s ease-in-out infinite; }
}

.rr-system-card:hover .rr-card-icon--cyan { box-shadow: var(--rr-chip-glow-cyan); }

/* Lamp owns the top-right corner — keep the head row clear of it. */
.rr-system-card .rr-card-head {
  justify-content: flex-start;
  padding-right: 28px;
}

.rr-system-num {
  font-family: var(--font-display);
  font-size: 11.5px;
  letter-spacing: 0.22em;
  color: var(--lime);
  text-transform: uppercase;
}

.rr-system-card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.rr-system-card p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.7; }
.rr-system-card a { color: var(--lime); }

.rr-label--hold { color: var(--rr-hold); }
.rr-label--hold::before { color: var(--rr-hold); }

.rr-notready-panel { position: relative; padding: 36px 40px; }
.rr-notready-panel h2 { margin: 12px 0 18px; }

.rr-notready-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.rr-notready-cols p { margin: 0 0 14px; color: var(--muted); line-height: 1.8; font-size: 14.5px; }
.rr-notready-cols p:last-child { margin-bottom: 0; }
.rr-notready-cols a { color: var(--lime); }

/* ── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  /* Hero stacks: copy + form, console directly underneath, points last. */
  .rr-hero-inner,
  .rr-hero-inner.is-result {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      'copy'
      'app'
      'points';
    gap: 30px;
  }

  .rr-hero-alt { margin-bottom: 0; }

  .rr-lead { grid-template-columns: minmax(0, 1fr); padding: 26px 24px; }
  .rr-notready-cols { grid-template-columns: minmax(0, 1fr); }
  .rr-payback-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ── Mobile card carousels (one card per view, swipe) ──────────────── */
.rr-dots { display: none; }

@media (max-width: 760px) {
  .rr-how-grid,
  .rr-systems-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 14px;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .rr-how-grid::-webkit-scrollbar,
  .rr-systems-grid::-webkit-scrollbar { display: none; }

  /* One card per view with the next card peeking in as the swipe cue. */
  .rr-how-card,
  .rr-system-card {
    flex: 0 0 min(86%, 340px);
    scroll-snap-align: center;
  }

  .rr-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
  }

  .rr-dot {
    width: 11px;
    height: 11px;
    padding: 0;
    border: 1px solid var(--muted);
    background: transparent;
    clip-path: var(--clip-hex);
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition);
  }

  .rr-dot.is-active {
    background: var(--lime);
    border-color: var(--lime);
    box-shadow: 0 0 10px var(--lime-glow);
  }
}

@media (max-width: 640px) {
  .rr-hero { padding-top: calc(var(--header-h) + 44px); }
  .rr-hero-form .vrn-plate { max-width: 100%; }
  .rr-hero-btn { width: 100%; justify-content: center; }
  .rr-options,
  .rr-options--row,
  .rr-manual-grid { grid-template-columns: minmax(0, 1fr); }
  .rr-stage { padding: 22px 18px 20px; }
  .rr-report { padding: 26px 20px 24px; }
  .rr-report-verdict { align-items: flex-start; text-align: left; }
  .rr-report-actions .btn { width: 100%; justify-content: center; }
  .rr-share-btn { width: 100%; justify-content: center; }
  .rr-idle-steps { grid-template-columns: minmax(0, 1fr); }
  .rr-payback-grid { grid-template-columns: minmax(0, 1fr); }
  .rr-crumbs-track { display: none; }
}

/* ── Print: clean report ───────────────────────────────────────────── */
@media print {
  header,
  footer,
  .rr-hero-form,
  .rr-hero-alt,
  .rr-hero-points,
  .rr-static,
  .cta-section,
  .rr-nav,
  .rr-report-actions,
  .rr-report-status,
  .rr-report-restart,
  .rr-lead,
  .rr-payback button {
    display: none !important;
  }

  .rr-report {
    border: 1px solid #999;
    color: #000;
    background: #fff;
  }
}
