/* =========================================================================
   paultan.org × Carro — "Trade in your car" upgrade funnel
   Theme: BOLD BRIGHT DUOTONE — light premium canvas, charcoal ink, a
   dominant cobalt-blue with a vivid amber/coral POP accent. Color-blocked
   hero, oversized Bricolage headline with a marker-highlight swash, a big
   animated "THIS CAR -> YOUR NEXT CAR" upgrade-flow centerpiece (honest,
   never-resolved RM odometer), a diagonal divider, a tilted form card with
   accent blobs, hover tilts, and a continuous brand marquee. Bricolage
   Grotesque (display) + Hanken Grotesk (UI/body). 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 {
  /* surfaces */
  --paper: #fbfaf7;          /* warm white canvas */
  --paper-2: #f4f2ec;        /* sunk panels */
  --surface: #ffffff;        /* cards */
  --surface-tint: #f7f9ff;   /* faint cobalt wash */

  /* ink */
  --ink: #15171c;
  --ink-soft: #3c424c;
  --muted: #6b727e;
  --muted-2: #8b919c;

  /* lines */
  --line: #e7e3da;
  --line-soft: #efece4;
  --line-strong: #d8d3c7;

  /* accent — cobalt blue (dominant) */
  --accent: #1b48d4;
  --accent-bright: #2f5cf0;
  --accent-deep: #1536a8;
  --accent-soft: #e8edfd;
  --accent-ink: #ffffff;

  /* POP accent — vivid coral/amber (highlights) */
  --pop: #ff7a45;
  --pop-bright: #ff9259;
  --pop-deep: #e85f28;
  --pop-soft: #ffe7da;
  --pop-ink: #2a1206;

  --ok: #117a52;

  --ring: rgba(27, 72, 212, 0.4);
  --ring-pop: rgba(255, 122, 69, 0.45);

  --radius-sm: 11px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-xl: 26px;

  --container: 1180px;

  --display: "Bricolage Grotesque", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", Helvetica, sans-serif;

  --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.55s cubic-bezier(0.22, 1, 0.36, 1);

  --shadow-soft: 0 1px 2px rgba(21, 23, 28, 0.04),
    0 12px 32px -16px rgba(21, 23, 28, 0.16);
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 2px 8px rgba(21, 23, 28, 0.07),
    0 40px 80px -32px rgba(27, 72, 212, 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(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

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

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

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 10000;
  padding: 0.75rem 1rem;
  background: var(--accent);
  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);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 247, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
}

.site-header__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.8rem 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-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-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.95rem 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.5rem 1.25rem;
}
@media (min-width: 768px) {
  .section-inner { padding: 5.5rem 1.75rem; }
}

.section-eyebrow {
  margin: 0 0 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.section-eyebrow::before {
  content: "";
  width: 1.5rem;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

.section-title {
  margin: 0 0 2.5rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.7rem, 4.2vw, 2.65rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-wrap: balance;
}
.section-title em {
  font-style: normal;
  color: var(--accent);
}

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

.ti-stage {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(820px 520px at 92% -12%, var(--pop-soft), transparent 60%),
    radial-gradient(760px 480px at 4% 6%, var(--accent-soft), transparent 58%),
    linear-gradient(180deg, var(--surface) 0%, var(--paper) 74%);
  /* diagonal/skewed bottom edge instead of a flat horizontal line */
  padding-bottom: 4.5rem;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 4.5rem), 0 100%);
}
@media (min-width: 768px) {
  .ti-stage { padding-bottom: 6rem; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 6rem), 0 100%); }
}

/* faint ascending guide lines layered over the canvas, top-right */
.ti-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(
      -36deg,
      rgba(255, 122, 69, 0.08) 0,
      rgba(255, 122, 69, 0.08) 1px,
      transparent 1px,
      transparent 58px
    );
  mask-image: radial-gradient(740px 520px at 100% 8%, #000 8%, transparent 70%);
  -webkit-mask-image: radial-gradient(740px 520px at 100% 8%, #000 8%, transparent 70%);
}

.landing-top {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: 2.75rem 1.25rem 3.25rem;
  display: grid;
  gap: 1.85rem;
}

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

/* COLOR-BLOCKED HERO: the headline lives inside a bold cobalt panel with a
   skewed bottom edge so the page opens with graphic impact. */
.landing-headline {
  position: relative;
  background: linear-gradient(118deg, var(--accent-deep) 0%, var(--accent) 56%, var(--accent-bright) 100%);
  color: #fff;
  margin: -2.75rem -1.25rem 0;
  padding: 3.4rem 1.25rem 3rem;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 1.5rem), 0 100%);
  box-shadow: 0 40px 80px -48px rgba(27, 72, 212, 0.7);
  overflow: hidden;
}
/* graphic pop disc in the headline panel */
.landing-headline::after {
  content: "";
  position: absolute;
  z-index: 0;
  right: -3rem; top: -4rem;
  width: 13rem; height: 13rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--pop-bright), var(--pop) 60%, transparent 72%);
  opacity: 0.85;
  pointer-events: none;
}
.landing-headline > * { position: relative; z-index: 1; max-width: 60rem; }
@media (min-width: 992px) {
  .landing-headline {
    margin: -4.25rem -1.75rem 0;
    padding: 5rem 1.75rem 4rem;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 2.25rem), 0 100%);
  }
  .landing-headline::after { width: 18rem; height: 18rem; right: -2rem; top: -5rem; }
}
.landing-hero { position: relative; }

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1.5rem;
  padding: 0.46rem 1rem 0.46rem 0.85rem;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

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

.hero__title {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: #fff;
  text-wrap: balance;
}
/* marker-highlight swash behind "Trade in" — skewed, rounded, hand-drawn */
.hero__title em,
.hero__hl {
  font-style: normal;
  font-weight: 800;
  color: var(--ink);
  position: relative;
  white-space: nowrap;
  z-index: 0;
  padding: 0 0.12em;
}
.hero__title em::before,
.hero__hl::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -0.04em; right: -0.04em;
  top: 0.06em; bottom: 0.02em;
  background: linear-gradient(100deg, var(--pop-bright), var(--pop) 55%, var(--pop-deep));
  border-radius: 40% 60% 58% 42% / 60% 45% 55% 40%;
  transform: skew(-7deg, -1.4deg) rotate(-1.6deg);
  box-shadow: 0 8px 20px -10px rgba(232, 95, 40, 0.7);
}

.hero__lead {
  margin: 1.6rem 0 0;
  font-size: 1.12rem;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 46ch;
}
.hero__lead strong { color: var(--ink); font-weight: 700; }

/* ===================================================================
   CENTERPIECE — "THIS CAR -> YOUR NEXT CAR" upgrade flow
   Two tiles joined by a big climbing arrow; the budget tile teases an
   unresolved RM figure (never a fabricated amount).
   =================================================================== */
.hero__motif {
  margin-top: 2.1rem;
  max-width: 480px;
}
@media (min-width: 992px) { .hero__motif { margin-top: 2.4rem; max-width: 520px; } }

.upgrade-flow {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.5rem;
}

.up-tile {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.05rem 0.95rem 0.95rem;
  text-align: center;
  box-shadow: var(--shadow-soft);
  animation: tileRise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.up-tile--now { animation-delay: 0.15s; }
.up-tile--budget {
  border-color: var(--pop);
  background: linear-gradient(180deg, var(--surface), var(--pop-soft));
  box-shadow: 0 1px 2px rgba(21, 23, 28, 0.05), 0 24px 50px -26px rgba(232, 95, 40, 0.55);
  transform: translateY(-1.6rem);
  animation-delay: 0.4s;
}
@keyframes tileRise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; }
}
.up-tile--now { transform: translateY(0); }

.up-tile__tag {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.55rem;
}
.up-tile--budget .up-tile__tag { color: var(--pop-deep); }
.up-tile__art {
  width: 64px; height: auto;
  margin: 0.1rem auto 0.55rem;
  color: var(--accent);
}
.up-tile__cap {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.74rem;
  line-height: 1.35;
  color: var(--muted);
}

/* honest, never-resolved RM readout */
.budget {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.25rem;
  font-family: var(--display);
  font-weight: 800;
  color: var(--pop-deep);
}
.budget__cur { font-size: 1.15rem; letter-spacing: -0.01em; }
.budget__odo {
  display: inline-flex;
  align-items: baseline;
  font-size: clamp(1.7rem, 6vw, 2.3rem);
  letter-spacing: 0.02em;
  position: relative;
}
/* shimmer to read as "loading / not yet known" */
.budget__odo::after {
  content: "";
  position: absolute;
  inset: -0.1em -0.25em;
  border-radius: 6px;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.7) 50%, transparent 70%);
  background-size: 240% 100%;
  mix-blend-mode: overlay;
  animation: budgetShimmer 2.4s linear infinite;
  pointer-events: none;
}
@keyframes budgetShimmer {
  from { background-position: 140% 0; }
  to { background-position: -140% 0; }
}
.budget__digit {
  display: inline-block;
  min-width: 0.62em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.budget__sep { padding: 0 0.02em; }

/* the big climbing arrow joining the tiles */
.up-arrow {
  position: relative;
  width: 64px;
  align-self: center;
  color: var(--pop);
}
.up-arrow svg { width: 100%; height: auto; overflow: visible; }
.up-arrow__path {
  stroke-dasharray: 220;
  stroke-dashoffset: 220;
  animation: drawArrow 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.5s forwards;
}
@keyframes drawArrow { to { stroke-dashoffset: 0; } }
.up-arrow__head {
  opacity: 0;
  animation: fadeIn 0.3s ease 1.5s forwards;
}
@keyframes fadeIn { to { opacity: 1; } }
.up-arrow__spark {
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--pop-bright);
  top: 60%; left: 12%;
  opacity: 0;
  animation: sparkClimb 1.8s ease-in-out infinite;
}
.up-arrow__spark--2 { animation-delay: 0.6s; }
.up-arrow__spark--3 { animation-delay: 1.2s; }
@keyframes sparkClimb {
  0% { opacity: 0; transform: translate(0, 0) scale(0.6); }
  25% { opacity: 1; }
  100% { opacity: 0; transform: translate(58px, -54px) scale(1); }
}
@media (min-width: 420px) {
  .up-arrow { width: 78px; }
}

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

.landing-form-wrap {
  scroll-margin-top: 5.5rem;
  position: relative;
}
/* bold accent blobs behind the card for depth */
.landing-form-wrap::before {
  content: "";
  position: absolute;
  z-index: 0;
  right: -1.5rem; top: -1.8rem;
  width: 9rem; height: 9rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--pop), var(--pop-deep) 70%);
  opacity: 0.9;
  box-shadow: 0 30px 60px -28px rgba(232, 95, 40, 0.6);
  pointer-events: none;
}
.landing-form-wrap::after {
  content: "";
  position: absolute;
  z-index: 0;
  left: -2.2rem; bottom: -1.6rem;
  width: 11rem; height: 11rem;
  border-radius: 46% 54% 60% 40% / 50% 45% 55% 50%;
  background: radial-gradient(circle at 40% 40%, var(--accent-bright), var(--accent-deep) 72%);
  opacity: 0.88;
  box-shadow: 0 30px 70px -30px rgba(27, 72, 212, 0.6);
  pointer-events: none;
}
@media (max-width: 991px) {
  .landing-form-wrap::before { width: 6.5rem; height: 6.5rem; right: -0.6rem; top: -1.2rem; }
  .landing-form-wrap::after { width: 8rem; height: 8rem; left: -1rem; bottom: -1rem; }
}

.form-card {
  position: relative;
  z-index: 1;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  padding: 1.5rem 1.35rem 1.7rem;
  overflow: hidden;
}
@media (min-width: 992px) {
  /* subtle tilt + overlap so the card has presence over the hero */
  .form-card { transform: rotate(-1.1deg); transition: transform var(--t-spring); }
  .form-card:hover,
  .form-card:focus-within { transform: rotate(0deg); }
}
.form-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--accent), var(--accent-bright) 55%, var(--pop));
}
@media (min-width: 768px) {
  .form-card { padding: 2.1rem 2.1rem 2.2rem; }
}

.form-card__head { margin-bottom: 1.4rem; }
.form-card__kicker {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.6rem;
}
.form-card__title {
  margin: 0 0 0.45rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.form-card__subtitle {
  margin: 0;
  font-size: 0.96rem;
  color: var(--muted);
}

/* step progress */
.step-progress {
  list-style: none;
  margin: 0 0 1.6rem;
  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.85rem 0.4rem 0.45rem;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--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: var(--paper-2);
  border: 1px solid var(--line-strong);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
}
.step-progress__pill.is-active {
  border-color: var(--accent);
  color: var(--ink);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.step-progress__pill.is-active .step-progress__num {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.step-progress__pill.is-done {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.step-progress__pill.is-done .step-progress__num {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.step-progress__bar {
  flex: 1;
  height: 2px;
  background: var(--line-strong);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}
.step-progress__bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-bright));
  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.34s 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-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
  color: var(--ink-soft);
}
.form-group .field-hint {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.form-control {
  width: 100%;
  padding: 0.78rem 0.95rem;
  font-size: 1rem;
  font-family: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--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: var(--muted-2); }
.form-control:hover:not(:disabled) { border-color: var(--ink-soft); }
.form-control:focus,
.form-control:focus-visible {
  outline: none;
  background: var(--surface);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-control:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: var(--paper-2);
}

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='%2315171c' 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.95rem center;
  background-size: 14px 10px;
  padding-right: 2.5rem;
}

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

/* 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.35rem;
  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(--accent);
  color: var(--accent-ink);
  border: 1px solid var(--accent);
  box-shadow: 0 10px 24px -10px rgba(27, 72, 212, 0.65);
  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.32), transparent);
  transform: skewX(-18deg);
  transition: left 0.6s ease;
}
.btn-primary:hover { background: var(--accent-bright); border-color: var(--accent-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 10px 24px -10px rgba(27, 72, 212, 0.65);
}
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-primary--block { width: 100%; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover { background: var(--paper-2); border-color: var(--ink); }
.btn-ghost:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ring); }

.step-actions {
  margin-top: 1.5rem;
  display: flex;
  justify-content: flex-end;
}
.step-actions .btn-primary { width: 100%; }
@media (min-width: 600px) {
  .step-actions .btn-primary { width: auto; min-width: 200px; }
}
.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: 220px; }
}

/* sell-flow + thank-you overlay */
.sell-flow { position: relative; min-height: 230px; }
.sell-flow__thankyou {
  display: none;
  position: absolute;
  inset: -0.5rem;
  background: var(--surface);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  z-index: 3;
  color: var(--ink);
  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(--ok); margin-bottom: 0.9rem; }
.sell-flow__thankyou h2 {
  margin: 0 0 0.5rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}
.sell-flow__thankyou p {
  margin: 0;
  font-size: 0.96rem;
  color: var(--muted);
  max-width: 38ch;
}

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

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

.steps-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.1rem;
}
@media (min-width: 820px) {
  .steps-grid { grid-template-columns: repeat(3, 1fr); gap: 1.35rem; align-items: stretch; }
  /* subtle ascending stagger to echo the trade-up motif */
  .steps-grid .step-card:nth-child(2) { transform: translateY(-0.85rem); }
  .steps-grid .step-card:nth-child(3) { transform: translateY(-1.7rem); }
}

.step-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.85rem 1.55rem 1.6rem;
  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: 4px;
  background: linear-gradient(90deg, var(--accent), transparent 70%);
}
.steps-grid .step-card:nth-child(3)::before {
  background: linear-gradient(90deg, var(--pop), transparent 70%);
}
@media (min-width: 820px) {
  .step-card:hover { box-shadow: 0 28px 54px -26px rgba(27, 72, 212, 0.5); border-color: var(--line-strong); }
  .steps-grid .step-card:nth-child(1):hover { transform: translateY(-6px) rotate(-1deg); }
  .steps-grid .step-card:nth-child(2):hover { transform: translateY(calc(-0.85rem - 6px)) rotate(1deg); }
  .steps-grid .step-card:nth-child(3):hover { transform: translateY(calc(-1.7rem - 6px)) rotate(-1deg); }
}
.step-card__num {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.9rem;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--accent);
  margin-bottom: 0.9rem;
}
.steps-grid .step-card:nth-child(3) .step-card__num { color: var(--pop-deep); }
.step-card h3 {
  margin: 0 0 0.5rem;
  font-family: var(--display);
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.step-card p { margin: 0; font-size: 0.94rem; color: var(--ink-soft); }

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

.section-trust {
  background:
    radial-gradient(720px 380px at 10% 0%, var(--accent-soft), transparent 60%),
    var(--paper);
  border-bottom: 1px solid var(--line);
}

.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: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.85rem 1.55rem 1.6rem;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: border-color var(--t), box-shadow var(--t), transform var(--t);
}
.trust-tile:hover {
  border-color: var(--line-strong);
  transform: translateY(-6px) rotate(-1deg);
  box-shadow: 0 28px 54px -26px rgba(27, 72, 212, 0.45);
}
.trust-grid .trust-tile:nth-child(2):hover { transform: translateY(-6px) rotate(1deg); }
.trust-tile__accent {
  position: absolute;
  top: 0; left: 1.55rem;
  width: 46px; height: 4px;
  background: var(--accent);
  border-radius: 0 0 4px 4px;
}
.trust-grid .trust-tile:nth-child(2) .trust-tile__accent { background: var(--pop); }
.trust-tile h3 {
  margin: 0.7rem 0 0.55rem;
  font-family: var(--display);
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.trust-tile p { margin: 0; font-size: 0.94rem; color: var(--ink-soft); }

/* ===================================================================
   BRAND MARQUEE (decorative, aria-hidden)
   =================================================================== */

.brand-marquee {
  background: var(--accent);
  color: #fff;
  overflow: hidden;
  border-top: 1px solid var(--accent-deep);
  border-bottom: 1px solid var(--accent-deep);
  padding: 0.95rem 0;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.brand-marquee__track {
  display: inline-flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  will-change: transform;
  animation: marquee 38s linear infinite;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.brand-marquee:hover .brand-marquee__track { animation-play-state: paused; }
.brand-marquee__item {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.1rem, 3.4vw, 1.7rem);
  letter-spacing: -0.01em;
  padding: 0 1rem;
}
.brand-marquee__dot {
  color: var(--pop-bright);
  font-size: 1.2rem;
  font-weight: 700;
}

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

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

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

.faq-tab {
  flex: 0 0 auto;
  padding: 0.58rem 1.1rem;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  background: var(--paper);
  color: var(--ink-soft);
  border: 1px solid var(--line-strong);
  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: var(--ink-soft); color: var(--ink); }
.faq-tab.is-active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.faq-tab:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ring); }

/* On small screens the variable-width chips wrap unevenly; a fixed 2-column
   grid keeps the six pills tidy with no horizontal scroll. */
@media (max-width: 600px) {
  .faq-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }
  .faq-tab {
    padding: 0.62rem 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: var(--paper);
  transition: border-color var(--t-fast), background var(--t-fast);
}
.faq-list details[hidden] { display: none; }
.faq-list details:hover { border-color: var(--line-strong); }
.faq-list details[open] {
  border-color: var(--accent);
  background: var(--surface-tint);
}
.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(--ink);
}
.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(--muted);
  border-bottom: 2px solid var(--muted);
  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(--accent);
}
.faq-list .faq-answer {
  padding: 0 1.15rem 1.15rem;
  font-size: 0.93rem;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.65;
}

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

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

.centres-head {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1.85rem;
}
.centres-head .section-title { margin-bottom: 0; }
.centres-head__copy { margin: 0; color: var(--ink-soft); 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-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.centre-filter .form-control { background: var(--surface); }
.centre-filter .form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.centre-groups { display: grid; gap: 0.7rem; }
.centre-group {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  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(--ink);
  list-style: none;
}
.centre-group summary::-webkit-details-marker { display: none; }
.centre-group summary span:last-child {
  flex-shrink: 0;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.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: var(--paper);
  border: 1px solid var(--line);
  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(--ink); }
.centre-card p { margin: 0; color: var(--ink-soft); font-size: 0.88rem; }
.centre-empty { margin: 1.1rem 0 0; color: var(--ink-soft); font-weight: 600; }
[data-centre-empty][hidden] { display: none; }

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

.site-footer { background: var(--surface); border-top: 1px solid var(--line); }
.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-size: 0.66rem;
  font-weight: 600;
  color: var(--muted-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(--ink-soft);
  max-width: 72ch;
}
.site-footer__copy strong { color: var(--ink); }
.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(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
}
.site-footer__links a:hover { color: var(--accent); }
.site-footer__links span { color: var(--muted-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(--accent);
  color: var(--accent-ink);
  border: 1px solid var(--accent);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 14px 30px -8px rgba(27, 72, 212, 0.55), 0 4px 12px -4px rgba(21, 23, 28, 0.2);
  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(--accent-bright); border-color: var(--accent-bright); }
.mobile-cta:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--ring), 0 14px 30px -8px rgba(27, 72, 212, 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(21, 23, 28, 0.25);
  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(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 80px -24px rgba(21, 23, 28, 0.45);
  background: var(--surface);
  color: var(--ink);
}
.tac-dialog::backdrop {
  background: rgba(21, 23, 28, 0.5);
  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(--accent);
  color: #fff;
  border-radius: 50%;
  margin-bottom: 0.9rem;
}
.tac-dialog__inner h2 {
  margin: 0 0 0.4rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  padding-right: 2.5rem;
  color: var(--ink);
}
.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(--line-strong);
  background: var(--surface);
  border-radius: 50%;
  color: var(--ink);
  cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast);
}
.tac-dialog__close:hover { background: var(--paper-2); border-color: var(--ink); }
.tac-dialog__close:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ring); }
.tac-dialog__desc { font-size: 0.94rem; color: var(--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-weight: 700;
  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;
  }
  /* show static final states for the centerpiece + decorative motion */
  .up-arrow__path { stroke-dashoffset: 0; }
  .up-arrow__head { opacity: 1; }
  .up-arrow__spark { display: none; }
  .up-tile { opacity: 1; transform: none; }
  .up-tile--budget { transform: translateY(-1.6rem); }
  .budget__odo::after { display: none; }
  .brand-marquee__track { animation: none !important; transform: none; }
  .form-card { transform: none !important; }
}
