/* =========================================================================
   paultan.org × Carro — "What's your car worth?" valuation funnel
   Theme: dark cinematic "valuation instrument" stage with a bright, focal
   paper form card. Fraunces (display serif) + Hanken Grotesk (UI) + DM Mono
   (instrument readouts). Brand red CTA, warm-gold precision accent.
   Shares sell-landing.js — every JS hook (ids, .step, .step-progress,
   .sell-flow__thankyou, .faq-tab, [data-centre-*], .tac-dialog, .mobile-cta)
   is preserved and restyled here.
   ========================================================================= */

:root {
  /* dark stage */
  --ink: #0a0c10;
  --ink-soft: #0d1016;
  --panel: #12161d;
  --panel-2: #161b23;
  --panel-3: #1b212b;
  --line: #262d38;
  --line-soft: #1d232c;

  /* bright focal surface */
  --paper: #f8f5ed;
  --paper-2: #fffdf7;
  --paper-line: #e3ddcd;
  --paper-line-strong: #cdc5b0;

  /* type colours */
  --hi: #f2efe7;
  --lo: #9aa3af;
  --lo-2: #6c7682;
  --on-paper: #14181e;
  --on-paper-soft: #3a4048;
  --on-paper-muted: #5d6570;

  /* accents */
  --red: #ea2127;
  --red-bright: #ff3b41;
  --red-ink: #ffffff;
  --gold: #e3ab57;
  --gold-bright: #f3c074;
  --gold-deep: #b9863b;
  --jade: #46d6a4;

  --ring: rgba(234, 33, 39, 0.45);
  --ring-gold: rgba(227, 171, 87, 0.38);

  --radius-sm: 9px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 26px;

  --container: 1200px;

  --display: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "DM Mono", ui-monospace, "SFMono-Regular", "Liberation Mono", monospace;

  --t-fast: 0.16s cubic-bezier(0.4, 0, 0.2, 1);
  --t: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --t-spring: 0.5s cubic-bezier(0.22, 1, 0.36, 1);

  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.35),
    0 30px 60px -28px rgba(0, 0, 0, 0.75);
  --shadow-paper: 0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 24px 60px -24px rgba(0, 0, 0, 0.6),
    0 2px 10px -2px rgba(0, 0, 0, 0.4);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--hi);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* fine grain overlay across the whole stage */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

body > * { position: relative; z-index: 1; }

img, svg { display: block; max-width: 100%; height: auto; }
button { font-family: inherit; }

a {
  color: var(--gold-bright);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color var(--t-fast);
}
a:hover { color: var(--gold); }

::selection { background: var(--red); color: #fff; }

/* ----------------------------- a11y ----------------------------- */

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 10000;
  padding: 0.75rem 1rem;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  border-radius: var(--radius-sm);
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--ring);
  border-radius: var(--radius-sm);
}

/* shared display helpers */
.cv-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1rem;
}
.cv-eyebrow::before {
  content: "";
  width: 1.6rem;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.cv-eyebrow--center { justify-content: center; }
.cv-eyebrow--center::before { display: none; }

/* ----------------------------- header ----------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 12, 16, 0.72);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
}

.site-header__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.7rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.site-header__pt { display: inline-flex; align-items: center; flex-shrink: 0; }
.site-header__pt img { height: 30px; width: auto; }

.site-header__tail {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-left: auto;
  flex-shrink: 0;
}

.site-header__partnership { display: flex; align-items: center; gap: 0.7rem; }

.site-header__eyebrow {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lo-2);
}

.site-header__carro { display: inline-flex; align-items: center; flex-shrink: 0; }
.site-header__carro img { height: 22px; width: auto; }

/* Phones: with the EN/BM switch the full header needs ~500px, so the label
   goes below 600px; tighter spacing on small phones, and below 360px the
   switch and Carro logo wrap to a second row rather than overflow. */
@media (max-width: 599px) { .site-header__partnership { display: none; } }
@media (max-width: 400px) {
  .site-header__inner, .site-header__tail { gap: 0.5rem; }
  .site-header__pt img { height: 28px; }
  .lang-switch a, .lang-switch span { padding: 0.3rem 0.45rem; }
}
@media (max-width: 359px) { .site-header__inner { flex-wrap: wrap; row-gap: 0.5rem; } }

@media (min-width: 768px) {
  .site-header__inner { padding: 0.85rem 1.75rem; gap: 1rem; }
  .site-header__pt img { height: 34px; }
  .site-header__carro img { height: 25px; }
}

/* ----------------------------- generic section ----------------------------- */

.section-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 3.25rem 1.25rem;
}
@media (min-width: 768px) {
  .section-inner { padding: 5rem 1.75rem; }
}

.section-eyebrow {
  margin: 0 0 0.85rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.section-title {
  margin: 0 0 2.25rem;
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 700;
  font-size: clamp(1.6rem, 4.2vw, 2.55rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--hi);
  text-wrap: balance;
}
.section-title em {
  font-style: normal;
  color: var(--gold);
}

/* ===================================================================
   HERO STAGE
   =================================================================== */

.cv-stage {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 520px at 12% -8%, rgba(234, 33, 39, 0.16), transparent 60%),
    radial-gradient(900px 600px at 100% 0%, rgba(227, 171, 87, 0.12), transparent 55%),
    linear-gradient(180deg, #0c0f15 0%, var(--ink) 60%, var(--ink-soft) 100%);
  border-bottom: 1px solid var(--line-soft);
}

/* faint instrument grid */
.cv-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(1000px 600px at 30% 20%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(1000px 600px at 30% 20%, #000 30%, transparent 78%);
}

.landing-top {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
  display: grid;
  /* minmax(0, 1fr) so the single implicit column never sizes to its
     content's max-content. Programmatic model pages get long uppercase
     vehicle names ("Mitsubishi Xpander") and a 400px-wide gauge SVG,
     which would otherwise push the column past the mobile viewport. */
  grid-template-columns: minmax(0, 1fr);
  gap: 1.75rem;
}

@media (min-width: 992px) {
  .landing-top {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    grid-template-areas:
      "headline headline"
      "hero form";
    column-gap: 3rem;
    row-gap: 2.5rem;
    align-items: start;
    padding: 3.5rem 1.75rem 4.5rem;
  }
  .landing-headline { grid-area: headline; }
  .landing-hero { grid-area: hero; }
  .landing-form-wrap { grid-area: form; }
  .hero__brk { display: none; }
}

.landing-headline { position: relative; }
.landing-hero { position: relative; }

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.4rem;
  padding: 0.4rem 0.9rem 0.4rem 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hi);
}

.hero__dot {
  position: relative;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--red-bright);
}
.hero__dot::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid var(--red-bright);
  animation: pulseRing 2.4s ease-out infinite;
}
@keyframes pulseRing {
  0% { transform: scale(0.6); opacity: 0.9; }
  100% { transform: scale(1.8); opacity: 0; }
}

.hero__title {
  margin: 0;
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: clamp(1.95rem, 5vw, 2.85rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--hi);
}
.hero__title em {
  font-style: normal;
  font-weight: 800;
  color: var(--gold-bright);
  position: relative;
  white-space: nowrap;
}
.hero__title em::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.04em;
  height: 0.5em;
  background: linear-gradient(180deg, transparent 60%, rgba(227, 171, 87, 0.22) 60%);
  z-index: -1;
}

.hero__lead {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--lo);
  max-width: 46ch;
}
.hero__lead strong { color: var(--hi); font-weight: 600; }

/* ---- the gauge instrument ---- */
.hero__gauge {
  margin-top: 1.6rem;
  max-width: 420px;
}
@media (min-width: 992px) {
  .hero__gauge { margin-top: 1.9rem; }
}

.gauge {
  position: relative;
  width: 100%;
}
.gauge svg { width: 100%; height: auto; overflow: visible; }

.gauge__track {
  fill: none;
  stroke: var(--line);
  stroke-width: 14;
  stroke-linecap: round;
}
.gauge__fill {
  fill: none;
  stroke: url(#gaugeGrad);
  stroke-width: 14;
  stroke-linecap: round;
  stroke-dasharray: 503;
  stroke-dashoffset: 503;
  filter: drop-shadow(0 0 6px rgba(227, 171, 87, 0.5));
  animation: gaugeFill 2s cubic-bezier(0.22, 1, 0.36, 1) 0.4s forwards;
}
@keyframes gaugeFill { to { stroke-dashoffset: 196; } }

.gauge__tick { stroke: var(--lo-2); stroke-width: 2; stroke-linecap: round; }
.gauge__tick--major { stroke: #6f7886; stroke-width: 2.5; }

.gauge__ticklabel {
  fill: var(--lo-2);
  font-family: var(--mono);
  font-size: 13px;
  text-anchor: middle;
}

.gauge__needle {
  transform-origin: 200px 200px;
  transform: rotate(-90deg);
  animation: needleSweep 2.1s cubic-bezier(0.34, 1.3, 0.5, 1) 0.4s forwards;
}
@keyframes needleSweep {
  0% { transform: rotate(-90deg); }
  70% { transform: rotate(35deg); }
  85% { transform: rotate(20deg); }
  100% { transform: rotate(26deg); }
}
.gauge__needle-line { stroke: var(--red-bright); stroke-width: 4; stroke-linecap: round; }
.gauge__hub { fill: var(--ink); stroke: var(--red-bright); stroke-width: 4; }

.gauge__readout {
  margin: -0.25rem auto 0;
  padding-top: 0.7rem;
  max-width: 16rem;
  text-align: center;
  border-top: 1px solid var(--line);
}
.gauge__readout-label {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--lo-2);
}
.gauge__readout-value {
  font-family: var(--mono);
  font-weight: 500;
  font-size: clamp(1.35rem, 4vw, 1.9rem);
  letter-spacing: 0.02em;
  color: var(--hi);
  margin-top: 0.25rem;
}
.gauge__readout-value span { color: var(--gold); letter-spacing: 0.06em; }

/* ===================================================================
   FORM CARD — bright focal instrument panel
   =================================================================== */

.landing-form-wrap {
  scroll-margin-top: 5.5rem;
  position: relative;
}
.landing-form-wrap::before {
  content: "";
  position: absolute;
  inset: -14% -8%;
  background: radial-gradient(closest-side, rgba(227, 171, 87, 0.18), transparent 75%);
  z-index: -1;
  pointer-events: none;
}

.form-card {
  position: relative;
  background: linear-gradient(180deg, var(--paper-2), var(--paper));
  color: var(--on-paper);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-paper);
  padding: 1.5rem 1.35rem 1.65rem;
  overflow: hidden;
}
.form-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--red), var(--gold) 70%, var(--gold-bright));
}
@media (min-width: 768px) {
  .form-card { padding: 2rem 2rem 2.1rem; }
}

.form-card__head { margin-bottom: 1.35rem; }
.form-card__kicker {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 0.55rem;
}
.form-card__title {
  margin: 0 0 0.4rem;
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--on-paper);
}
.form-card__subtitle {
  margin: 0;
  font-size: 0.95rem;
  color: var(--on-paper-muted);
}

/* step progress */
.step-progress {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.step-progress__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem 0.4rem 0.45rem;
  background: #fff;
  border: 1px solid var(--paper-line-strong);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--on-paper-muted);
  transition: all var(--t-fast);
}
.step-progress__num {
  width: 24px; height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--paper-line-strong);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--on-paper-muted);
}
.step-progress__pill.is-active {
  border-color: var(--red);
  color: var(--on-paper);
  box-shadow: 0 0 0 3px rgba(234, 33, 39, 0.12);
}
.step-progress__pill.is-active .step-progress__num {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.step-progress__pill.is-done {
  background: var(--on-paper);
  border-color: var(--on-paper);
  color: var(--paper);
}
.step-progress__pill.is-done .step-progress__num {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--on-paper);
}
.step-progress__bar {
  flex: 1;
  height: 2px;
  background: var(--paper-line-strong);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}
.step-progress__bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--red), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t);
}
.step-progress[data-step="2"] .step-progress__bar::after { transform: scaleX(1); }

@media (max-width: 380px) {
  .step-progress__label { display: none; }
  .step-progress__pill { padding: 0.4rem; }
}

/* fieldsets / steps */
.step { border: 0; margin: 0; padding: 0; min-width: 0; }
.step[hidden] { display: none; }
.step.is-active { animation: stepIn 0.32s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes stepIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.sell-form-grid { display: grid; gap: 0.95rem; }
@media (min-width: 600px) {
  .sell-form-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.1rem;
    align-items: start;
  }
  .sell-form-grid .form-group--full { grid-column: 1 / -1; }
}

.form-group { margin: 0; min-width: 0; }
.form-group label {
  display: block;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 0.45rem;
  color: var(--on-paper-soft);
}
.form-group .field-hint {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.78rem;
  color: var(--on-paper-muted);
}

.form-control {
  width: 100%;
  padding: 0.78rem 0.9rem;
  font-size: 1rem;
  font-family: inherit;
  color: var(--on-paper);
  background: #fff;
  border: 1px solid var(--paper-line-strong);
  border-radius: var(--radius-sm);
  min-height: 50px;
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
.form-control::placeholder { color: #9aa0a8; }
.form-control:hover:not(:disabled) { border-color: var(--on-paper-soft); }
.form-control:focus,
.form-control:focus-visible {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(234, 33, 39, 0.16);
}
.form-control:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  background: #f0ece1;
}

select.form-control {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2314181e' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 14px 10px;
  padding-right: 2.4rem;
}

.form-consent {
  margin: 1.2rem 0 0;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--on-paper-muted);
}
.form-consent a { color: var(--gold-deep); text-decoration: underline; text-underline-offset: 2px; }
.form-consent a:hover { color: var(--red); }

/* buttons */
.btn-primary, .btn-ghost {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  border-radius: var(--radius-sm);
  min-height: 52px;
  padding: 0.85rem 1.3rem;
  transition: background var(--t-fast), border-color var(--t-fast),
    color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}
.btn-primary {
  position: relative;
  background: var(--red);
  color: var(--red-ink);
  border: 1px solid var(--red);
  box-shadow: 0 8px 22px -8px rgba(234, 33, 39, 0.6);
  overflow: hidden;
}
.btn-primary::after {
  content: "";
  position: absolute;
  top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-18deg);
  transition: left 0.6s ease;
}
.btn-primary:hover { background: var(--red-bright); border-color: var(--red-bright); }
.btn-primary:hover::after { left: 130%; }
.btn-primary:active { transform: translateY(1px); }
.btn-primary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--ring), 0 8px 22px -8px rgba(234, 33, 39, 0.6);
}
.btn-primary--block { width: 100%; }

.btn-ghost {
  background: transparent;
  color: var(--on-paper);
  border: 1px solid var(--paper-line-strong);
}
.btn-ghost:hover { background: #fff; border-color: var(--on-paper); }

.step-actions {
  margin-top: 1.4rem;
  display: flex;
  justify-content: flex-end;
}
.step-actions .btn-primary { width: 100%; }
@media (min-width: 600px) {
  .step-actions .btn-primary { width: auto; min-width: 190px; }
}
.step-actions--split { justify-content: space-between; gap: 0.75rem; }
.step-actions--split .btn-ghost { flex: 0 0 auto; }
.step-actions--split .btn-primary { flex: 1 1 auto; width: auto; }
@media (min-width: 600px) {
  .step-actions--split .btn-primary { flex: 0 0 auto; min-width: 210px; }
}

/* sell-flow + thank-you overlay */
.sell-flow { position: relative; min-height: 220px; }
.sell-flow__thankyou {
  display: none;
  position: absolute;
  inset: -0.5rem;
  background: linear-gradient(180deg, var(--paper-2), var(--paper));
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  z-index: 3;
  color: var(--on-paper);
  border-radius: var(--radius);
}
.sell-flow__thankyou.is-visible {
  display: flex;
  animation: stepIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.sell-flow__thankyou svg { color: var(--jade); margin-bottom: 0.9rem; }
.sell-flow__thankyou h2 {
  margin: 0 0 0.5rem;
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: -0.01em;
}
.sell-flow__thankyou p {
  margin: 0;
  font-size: 0.96rem;
  color: var(--on-paper-muted);
  max-width: 38ch;
}

/* ===================================================================
   HOW IT WORKS
   =================================================================== */

.section-steps {
  background: var(--panel);
  border-bottom: 1px solid var(--line-soft);
}

.steps-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.1rem;
  counter-reset: cvstep;
}
@media (min-width: 820px) {
  .steps-grid { grid-template-columns: repeat(3, 1fr); gap: 1.35rem; }
}

.step-card {
  position: relative;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem 1.5rem;
  overflow: hidden;
  transition: transform var(--t), border-color var(--t), box-shadow var(--t);
}
.step-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent 55%);
  opacity: 0.6;
}
.step-card:hover {
  transform: translateY(-4px);
  border-color: #38414e;
  box-shadow: 0 24px 48px -28px rgba(0, 0, 0, 0.8);
}
.step-card__num {
  display: block;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: 0.05em;
  color: var(--gold);
  margin-bottom: 0.9rem;
}
.step-card h3 {
  margin: 0 0 0.5rem;
  font-family: var(--sans);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--hi);
}
.step-card p { margin: 0; font-size: 0.94rem; color: var(--lo); }

/* ===================================================================
   TRUST
   =================================================================== */

.section-trust {
  background:
    radial-gradient(800px 400px at 85% 0%, rgba(234, 33, 39, 0.1), transparent 60%),
    var(--ink);
  border-bottom: 1px solid var(--line-soft);
}
.section-trust .section-eyebrow { color: var(--gold); }

.trust-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.1rem;
}
@media (min-width: 820px) {
  .trust-grid { grid-template-columns: repeat(3, 1fr); gap: 1.35rem; }
}

.trust-tile {
  position: relative;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem 1.5rem;
  overflow: hidden;
  transition: border-color var(--t), background var(--t);
}
.trust-tile:hover { border-color: #38414e; background: rgba(255, 255, 255, 0.04); }
.trust-tile__accent {
  position: absolute;
  top: 0; left: 1.5rem;
  width: 40px; height: 3px;
  background: var(--red);
  border-radius: 0 0 3px 3px;
}
.trust-tile h3 {
  margin: 0.6rem 0 0.55rem;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--hi);
}
.trust-tile p { margin: 0; font-size: 0.94rem; color: var(--lo); }

/* ===================================================================
   FAQ
   =================================================================== */

.section-faq { background: var(--panel); border-bottom: 1px solid var(--line-soft); }

.faq-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.5rem;
}

.faq-tab {
  flex: 0 0 auto;
  padding: 0.55rem 1.05rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  background: transparent;
  color: var(--lo);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.faq-tab:hover { border-color: #3a434f; color: var(--hi); }
.faq-tab.is-active {
  background: var(--gold);
  color: var(--on-paper);
  border-color: var(--gold);
  font-weight: 500;
}
.faq-tab:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ring-gold); }

/* On small screens the variable-width chips wrap unevenly and orphan the last
   one; a fixed 2-column grid keeps the six pills as a tidy 3x2 block. */
@media (max-width: 600px) {
  .faq-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }
  .faq-tab {
    padding: 0.6rem 0.75rem;
    text-align: center;
    white-space: normal;
  }
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 0.65rem;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color var(--t-fast), background var(--t-fast);
}
.faq-list details[hidden] { display: none; }
.faq-list details:hover { border-color: #38414e; }
.faq-list details[open] {
  border-color: var(--gold-deep);
  background: rgba(227, 171, 87, 0.05);
}
.faq-list summary {
  position: relative;
  padding: 1.05rem 2.9rem 1.05rem 1.15rem;
  font-weight: 600;
  font-size: 0.97rem;
  cursor: pointer;
  list-style: none;
  color: var(--hi);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "";
  position: absolute;
  right: 1.2rem; top: 50%;
  width: 9px; height: 9px;
  border-right: 2px solid var(--lo);
  border-bottom: 2px solid var(--lo);
  transform: translateY(-65%) rotate(45deg);
  transition: transform var(--t-fast), border-color var(--t-fast);
}
.faq-list details[open] summary::after {
  transform: translateY(-25%) rotate(-135deg);
  border-color: var(--gold);
}
.faq-list .faq-answer {
  padding: 0 1.15rem 1.15rem;
  font-size: 0.93rem;
  color: var(--lo);
  margin: 0;
  line-height: 1.65;
}

/* ===================================================================
   INSPECTION CENTRES
   =================================================================== */

.section-centres { background: var(--ink); border-bottom: 1px solid var(--line-soft); }

.centres-head {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}
.centres-head .section-title { margin-bottom: 0; }
.centres-head__copy { margin: 0; color: var(--lo); max-width: 56ch; }
@media (min-width: 880px) {
  .centres-head {
    grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.78fr);
    align-items: end;
    gap: 2.5rem;
  }
}

.centre-filter { max-width: 36rem; margin-bottom: 1.1rem; }
.centre-filter label {
  display: block;
  margin-bottom: 0.45rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lo);
}
.centre-filter .form-control {
  background: var(--panel-2);
  color: var(--hi);
  border-color: var(--line);
}
.centre-filter .form-control::placeholder { color: var(--lo-2); }
.centre-filter .form-control:hover:not(:disabled) { border-color: #3a434f; }
.centre-filter .form-control:focus { border-color: var(--gold); box-shadow: 0 0 0 3px var(--ring-gold); }

.centre-groups { display: grid; gap: 0.7rem; }
.centre-group {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
}
.centre-group[hidden] { display: none; }
.centre-group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 1.15rem;
  cursor: pointer;
  font-weight: 700;
  color: var(--hi);
  list-style: none;
}
.centre-group summary::-webkit-details-marker { display: none; }
.centre-group summary span:last-child {
  flex-shrink: 0;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
}
.centre-grid {
  display: grid;
  gap: 0.7rem;
  padding: 0 1.15rem 1.15rem;
}
@media (min-width: 720px) {
  .centre-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.centre-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 1rem 1.05rem;
}
.centre-card[hidden] { display: none; }
.centre-card h3 { margin: 0 0 0.4rem; font-size: 0.96rem; line-height: 1.3; color: var(--hi); }
.centre-card p { margin: 0; color: var(--lo); font-size: 0.88rem; }
.centre-empty { margin: 1.1rem 0 0; color: var(--lo); font-weight: 600; }

/* ===================================================================
   FOOTER
   =================================================================== */

.site-footer { background: var(--panel); border-top: 1px solid var(--line-soft); }
.site-footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 2.75rem 1.25rem 3rem;
}
@media (min-width: 768px) {
  .site-footer__inner { padding: 3.25rem 1.75rem 3.5rem; }
}
.site-footer__brands {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  align-items: flex-start;
  padding-bottom: 1.75rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--line);
}
.site-footer__brand p {
  margin: 0 0 0.55rem;
  font-family: var(--mono);
  font-size: 0.66rem;
  color: var(--lo-2);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.site-footer__brand a { display: inline-block; }
.site-footer__brand--pt img { height: 34px; width: auto; }
.site-footer__brand--carro img { height: 26px; width: auto; }
@media (min-width: 768px) {
  .site-footer__brand--pt img { height: 38px; }
  .site-footer__brand--carro img { height: 29px; }
}
.site-footer__copy p {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  color: var(--lo);
  max-width: 72ch;
}
.site-footer__copy strong { color: var(--hi); }
.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.95rem;
  align-items: center;
  margin-top: 1rem !important;
}
.site-footer__links a {
  color: var(--hi);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
}
.site-footer__links a:hover { color: var(--gold); }
.site-footer__links span { color: var(--lo-2); }

/* ===================================================================
   MOBILE STICKY CTA
   =================================================================== */

.mobile-cta {
  position: fixed;
  left: 1rem; right: 1rem;
  bottom: calc(1rem + env(safe-area-inset-bottom));
  z-index: 60;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  background: var(--red);
  color: var(--red-ink);
  border: 1px solid var(--red);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 14px 30px -8px rgba(234, 33, 39, 0.55), 0 4px 12px -4px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: translateY(120%);
  transition: opacity var(--t), transform var(--t);
  pointer-events: none;
}
.mobile-cta:not([hidden]).is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.mobile-cta:hover { background: var(--red-bright); border-color: var(--red-bright); }
.mobile-cta:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--ring), 0 14px 30px -8px rgba(234, 33, 39, 0.55);
}
@media (min-width: 768px) { .mobile-cta { display: none !important; } }

/* ===================================================================
   FLOATING WHATSAPP
   =================================================================== */

.wa-float {
  position: fixed;
  right: calc(1rem + env(safe-area-inset-right));
  bottom: calc(5.5rem + env(safe-area-inset-bottom));
  z-index: 62;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem; height: 3.5rem;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 10px 26px -6px rgba(37, 211, 102, 0.55), 0 4px 12px -4px rgba(0, 0, 0, 0.35);
  transition: transform var(--t), box-shadow var(--t);
}
.wa-float:hover {
  transform: scale(1.06);
  color: #fff;
  box-shadow: 0 12px 30px -6px rgba(37, 211, 102, 0.6);
}
.wa-float:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.45), 0 10px 26px -6px rgba(37, 211, 102, 0.55);
}
.wa-float__icon { display: block; }
@media (min-width: 768px) {
  .wa-float { bottom: calc(1.25rem + env(safe-area-inset-bottom)); }
}

/* ===================================================================
   TAC DIALOG
   =================================================================== */

.tac-dialog {
  width: calc(100vw - 2rem);
  max-width: 430px;
  padding: 0;
  border: 1px solid var(--paper-line);
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 80px -24px rgba(0, 0, 0, 0.7);
  background: linear-gradient(180deg, var(--paper-2), var(--paper));
  color: var(--on-paper);
}
.tac-dialog::backdrop {
  background: rgba(6, 8, 11, 0.7);
  backdrop-filter: blur(3px);
}
.tac-dialog__inner { position: relative; padding: 1.75rem 1.5rem 1.5rem; }
.tac-dialog__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px; height: 50px;
  background: var(--red);
  color: #fff;
  border-radius: 50%;
  margin-bottom: 0.9rem;
}
.tac-dialog__inner h2 {
  margin: 0 0 0.4rem;
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  padding-right: 2.5rem;
  color: var(--on-paper);
}
.tac-dialog__close {
  position: absolute;
  top: 0.9rem; right: 0.9rem;
  width: 38px; height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--paper-line-strong);
  background: #fff;
  border-radius: 50%;
  color: var(--on-paper);
  cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast);
}
.tac-dialog__close:hover { background: var(--paper); border-color: var(--on-paper); }
.tac-dialog__close:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ring); }
.tac-dialog__desc { font-size: 0.94rem; color: var(--on-paper-muted); margin: 0 0 1.1rem; }
.tac-alert {
  display: none;
  padding: 0.75rem 0.9rem;
  margin-bottom: 0.9rem;
  font-size: 0.86rem;
  background: #fdeceb;
  border: 1px solid #f1bdbf;
  border-radius: var(--radius-sm);
  color: #8a1116;
}
.tac-alert.is-visible { display: block; }
.tac-dialog #carro-tac {
  letter-spacing: 0.42em;
  text-align: center;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 1.2rem;
  padding-right: 0.9rem;
  margin-bottom: 0.9rem;
}

/* ===================================================================
   ENTRANCE ANIMATIONS (staggered hero reveal)
   =================================================================== */

@keyframes riseIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.landing-headline > *,
.landing-hero > * { animation: riseIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both; }
.landing-headline > *:nth-child(1) { animation-delay: 0.05s; }
.landing-headline > *:nth-child(2) { animation-delay: 0.13s; }
.landing-hero > *:nth-child(1) { animation-delay: 0.22s; }
.landing-hero > *:nth-child(2) { animation-delay: 0.3s; }
.landing-form-wrap { animation: riseIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.24s both; }

/* ===================================================================
   REDUCED MOTION
   =================================================================== */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .gauge__fill { stroke-dashoffset: 196; }
  .gauge__needle { transform: rotate(26deg); }
}

/* --------------------------------------------------------------------------
   JPJ registrations section (programmatic sell-by-model pages)
   Server-rendered from official JPJ open data — see /sell/jpj-stats.php.
   -------------------------------------------------------------------------- */
.jpj-lead {
  margin: 0 0 1.6rem;
  max-width: 62ch;
  color: var(--lo);
  font-size: 1.05rem;
}
.jpj-lead strong { color: var(--hi); font-weight: 800; }

.jpj-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 900px) {
  .jpj-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: stretch; }
}

.jpj-chart-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem 0.9rem;
}
.jpj-chart-title {
  margin: 0 0 0.8rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lo-2);
}
.jpj-chart { display: block; width: 100%; height: auto; }
.jpj-bar { fill: var(--red); opacity: 0.85; }
.jpj-bar--peak { fill: var(--gold); opacity: 1; }
.jpj-bar--partial { opacity: 0.4; }
.jpj-axis { font-family: var(--mono); font-size: 11px; fill: var(--lo-2); }
.jpj-axis--end { text-anchor: end; }
.jpj-chart-foot { margin: 0.55rem 0 0; font-size: 0.8rem; color: var(--lo-2); }
.jpj-chart-foot strong { color: var(--gold); font-weight: 700; }

.jpj-facts {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.jpj-fact {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.jpj-fact__num {
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: clamp(1.45rem, 3.4vw, 1.9rem);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--gold-bright);
}
.jpj-fact__label { font-size: 0.85rem; color: var(--lo); line-height: 1.45; }

.jpj-note {
  margin: 1.4rem 0 0;
  font-size: 0.82rem;
  color: var(--lo-2);
  max-width: 78ch;
}
.jpj-note a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }
.jpj-note a:hover { color: var(--gold-bright); }
