/* ==========================================================================
   REGAL MOTORCARS — DESIGN SYSTEM v4
   REVISION: 2026-08-24-v4.1
   Used by the homepage only for now. Other pages remain on style.css (v3)
   until they are migrated.
   ========================================================================== */

/* ==========================================================================
   REGAL — DESIGN SYSTEM v4  (Flexcar-family)
   --------------------------------------------------------------------------
   >>> EVERY VALUE IN THIS BLOCK IS A RECONSTRUCTION. <<<
   Replace with the real computed values from DevTools on flexcar.com and the
   rest of the page updates automatically. Nothing below this block hardcodes
   a color, radius or font.
   ========================================================================== */
:root {
  /* ---- ACCENT: their rgb(58,0,229) replaced with Regal orange ---- */
  --accent: #ff6900;
  --accent-hover: #e85e00;
  --accent-text: #c24e00; /* AA-safe orange for small text on white */
  --accent-soft: #fff1e8; /* tinted fill, their equivalent of a light indigo */

  /* ---- Neutrals: cool/neutral, not warm ---- */
  --ink: #101012;
  --ink-2: #56565e;
  --ink-3: #8a8a93;
  --paper: #ffffff;
  --surface: #f5f5f7;
  --surface-2: #ebebef;
  --line: #e4e4e9;

  /* ---- Type ---- */
  --font: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --fs-display: clamp(2.75rem, 5.8vw, 4.75rem);
  --fs-h2: clamp(2rem, 3.5vw, 3.125rem);
  --fs-h3: clamp(1.375rem, 2vw, 1.875rem);
  --fs-lead: clamp(1.125rem, 1.6vw, 1.5rem);
  --fs-body: 1.0625rem;
  --fs-sm: 0.9375rem;
  --fs-label: 0.75rem;

  /* ---- Radii: large and soft, the signature of this system ---- */
  --r-sm: 12px;
  --r-md: 20px;
  --r-card: 28px;
  --r-xl: 40px;
  --r-pill: 999px;

  /* ---- Space ---- */
  --nav-h: 74px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --maxw: 1240px;
  --section: clamp(4.5rem, 10vw, 9rem);

  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
  --shadow:
    0 2px 6px rgba(16, 16, 18, 0.04), 0 20px 50px rgba(16, 16, 18, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}
h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.02;
}
p {
  margin: 0;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section {
  padding-block: var(--section);
}
.surface {
  background: var(--surface);
}

.eyebrow {
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.lead {
  font-size: var(--fs-lead);
  line-height: 1.45;
  color: var(--ink-2);
}

/* ---- Buttons: pill, generous, no shadow ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.05rem 2rem;
  border-radius: var(--r-pill);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1;
  border: 1.5px solid transparent;
  white-space: nowrap;
  transition:
    background-color 0.2s var(--ease),
    color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}
.btn--accent {
  background: var(--accent);
  color: #fff;
}
.btn--accent:hover {
  background: var(--accent-hover);
}
.btn--ink {
  background: var(--ink);
  color: #fff;
}
.btn--ink:hover {
  background: #000;
}
.btn--outline {
  border-color: var(--line);
  color: var(--ink);
}
.btn--outline:hover {
  border-color: var(--ink);
}
.btn--sm {
  padding: 0.7rem 1.3rem;
  font-size: 0.9375rem;
}

/* ==========================================================================
   HEADER + MEGA MENU
   Ported from the Ridgepeak build, remapped onto the v4 tokens.
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  /* No backdrop-filter here. Ridgepeak can afford one because its header is
     position:relative; on a sticky header the blurred backdrop is re-rasterised
     every scroll frame, which is what made this feel heavy. */
  max-width: 100vw;
  overflow-x: clip;
}
.site-header.is-scrolled {
  box-shadow: 0 1px 12px rgba(16, 16, 18, 0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  height: var(--nav-h);
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  gap: clamp(1rem, 2.5vw, 2.5rem);
}
.nav-wordmark {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.nav-wordmark img {
  height: 28px;
  width: auto;
}
@media (max-width: 1023px) {
  .nav-wordmark {
    margin-right: auto;
  }
}

.nav-menu {
  display: none;
  align-items: center;
  gap: 0.25rem;
  margin-right: auto;
  list-style: none;
  margin-block: 0;
  padding: 0;
}
@media (min-width: 1024px) {
  .nav-menu {
    display: flex;
  }
}

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
  transition: color 0.15s var(--ease);
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: -11px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.25s var(--ease);
  z-index: 1001;
}
.nav-item:hover > .nav-link::after,
.nav-item:focus-within > .nav-link::after {
  transform: scaleX(1);
}
.nav-item:hover > .nav-link {
  color: var(--ink);
}
.nav-chevron {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  transition: transform 0.15s var(--ease);
}
.nav-item:hover .nav-chevron {
  transform: rotate(180deg);
}
/* keeps the panel open while the cursor crosses the gap */
.nav-link::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 18px;
  pointer-events: none;
}
.nav-item:hover > .nav-link::before {
  pointer-events: auto;
}
.nav-item {
  position: static;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  background: var(--paper);
  border-top: 1px solid var(--line);
  box-shadow: 0 16px 44px rgba(16, 16, 18, 0.09);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.22s ease,
    visibility 0.22s ease;
  z-index: 100;
}
.nav-item:hover > .dropdown,
.nav-item:focus-within > .dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition:
    opacity 0.18s ease,
    visibility 0s;
}
.dropdown::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 8px;
}
.dropdown--mega {
  border-bottom: 1px solid var(--line);
  border-radius: 0 0 var(--r-md) var(--r-md);
}
.mega-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2.25rem var(--gutter) 2.75rem;
}
.mega-grid {
  display: grid;
  grid-template-columns: 280px 1fr 1fr 1fr;
  gap: 2.5rem;
}

.mega-col-label {
  font-size: var(--fs-label);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  margin-bottom: 1.25rem;
}
.mega-link,
.mega-link-all {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: var(--fs-sm);
  color: var(--ink);
  padding: 0.7rem 1rem;
  margin: 0 -1rem;
  border-radius: var(--r-sm);
  line-height: 1.3;
  transition:
    background-color 0.2s var(--ease),
    color 0.15s var(--ease);
}
.mega-link::after {
  content: '';
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23101012' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M12 5l7 7-7 7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0;
  transform: translateX(-8px);
  transition:
    opacity 0.2s ease,
    transform 0.25s var(--ease);
}
.mega-link:hover {
  background: var(--surface);
  font-weight: 600;
}
.mega-link:hover::after {
  opacity: 1;
  transform: translateX(0);
}
.mega-link-all {
  color: var(--accent-text);
  font-weight: 600;
}
.mega-link-all::after {
  content: '';
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C24E00' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M12 5l7 7-7 7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  transition: transform 0.2s var(--ease);
}
.mega-link-all:hover {
  background: var(--surface);
}
.mega-link-all:hover::after {
  transform: translateX(4px);
}

.mega-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.mega-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink);
  transition: background-color 0.15s var(--ease);
}
.mega-action:hover {
  background: var(--surface-2);
}
.mega-action svg {
  color: var(--ink-3);
  flex-shrink: 0;
  transition:
    color 0.15s,
    transform 0.15s;
}
.mega-action:hover svg {
  color: var(--accent);
  transform: translateX(2px);
}

.mega-feature {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2rem;
  transition: opacity 0.15s;
}
.mega-feature:hover {
  opacity: 0.85;
}
.mega-feature-img {
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--surface-2);
}
.mega-feature-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mega-feature-title {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
}
.mega-feature-desc {
  font-size: 0.8125rem;
  color: var(--ink-2);
  line-height: 1.5;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.nav-phone {
  display: none;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink);
}
.nav-phone:hover {
  color: var(--accent-text);
}
@media (min-width: 1180px) {
  .nav-phone {
    display: inline-flex;
  }
}

.burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 38px;
  height: 38px;
  justify-content: center;
  align-items: center;
}
@media (min-width: 1024px) {
  .burger {
    display: none;
  }
}
.burger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition:
    transform 0.3s var(--ease),
    opacity 0.2s;
}
.burger.is-active span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.burger.is-active span:nth-child(2) {
  opacity: 0;
}
.burger.is-active span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ---- Mobile panel ---- */
.mobile-panel {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  width: 100%;
  height: calc(100dvh - var(--nav-h));
  background: var(--paper);
  z-index: 9999;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  clip-path: inset(0 0 100% 0);
  opacity: 0;
  transition:
    clip-path 0.4s var(--ease),
    opacity 0.3s ease;
}
.mobile-panel.open {
  clip-path: inset(0 0 0 0);
  opacity: 1;
}
.mobile-body {
  flex: 1;
  padding: 0 var(--gutter);
}
.mobile-foot {
  padding: 1.5rem var(--gutter) 2rem;
}
.mobile-foot .btn {
  width: 100%;
}
.m-item {
  border-bottom: 1px solid var(--line);
}
.m-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.25rem 0;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink);
}
.m-trigger svg {
  transition: transform 0.15s;
}
.m-trigger[aria-expanded='true'] svg {
  transform: rotate(180deg);
}
.m-sub {
  display: none;
  padding: 0 0 1rem 1rem;
}
.m-trigger[aria-expanded='true'] + .m-sub {
  display: block;
}
.m-sub a {
  display: block;
  padding: 0.55rem 0;
  font-size: var(--fs-sm);
  color: var(--ink-2);
}
.m-sub a:hover {
  color: var(--accent-text);
}
.m-direct {
  display: block;
  padding: 1.25rem 0;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.overlay {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(16, 16, 18, 0.5);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s;
}
.overlay.show {
  opacity: 1;
  visibility: visible;
}

/* ---- Hero ---- */
.hero {
  padding-top: clamp(3rem, 7vw, 6rem);
}
.hero h1 {
  font-size: var(--fs-display);
  max-width: 18ch;
  text-wrap: balance;
}
.hero .lead {
  margin-top: 1.5rem;
  max-width: 52ch;
}
.hero__cta {
  margin-top: 2.25rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.hero__note {
  margin-top: 1.25rem;
  font-size: var(--fs-sm);
  color: var(--ink-3);
  max-width: 60ch;
}
.hero__media {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--surface-2);
  aspect-ratio: 16 / 7;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
}

/* ---- Trust row ---- */
.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
  align-items: center;
  padding-block: 1.75rem;
  border-bottom: 1px solid var(--line);
}
.trust__item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: var(--fs-sm);
  color: var(--ink-2);
}
.trust__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}
.trust__item strong {
  color: var(--ink);
  font-weight: 600;
}

/* ---- Section head ----
   The wrapper must not constrain width; the measure belongs on the children,
   or the paragraph inherits the headline's much tighter limit. */
.head {
  max-width: none;
}
.head h2 {
  font-size: var(--fs-h2);
  margin-top: 1rem;
  max-width: 22ch;
  text-wrap: balance;
}
.head p {
  margin-top: 1.5rem;
  max-width: 50ch;
  color: var(--ink-2);
  font-size: var(--fs-lead);
  line-height: 1.45;
}

/* ---- Contrast block: the problem, then the answer ---- */
.contrast {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.contrast__media {
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--surface-2);
  aspect-ratio: 4/5;
}
.contrast__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.contrast h2 {
  font-size: var(--fs-h2);
  margin-top: 1rem;
  max-width: 18ch;
  text-wrap: balance;
}
.contrast__lead {
  margin-top: 1.25rem;
  color: var(--ink-2);
  font-size: var(--fs-lead);
  line-height: 1.45;
  max-width: 46ch;
}
.contrast__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2.5rem;
}
.contrast__cols h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.contrast__list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
.contrast__list li {
  display: flex;
  gap: 0.65rem;
  font-size: var(--fs-sm);
  color: var(--ink-2);
  line-height: 1.45;
}
.contrast__list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
  margin-top: 0.5rem;
}
.contrast__list--muted li::before {
  background: var(--line);
}
.contrast__list--muted li {
  color: var(--ink-3);
  text-decoration: line-through;
  text-decoration-color: var(--line);
}
.contrast .btn {
  margin-top: 2.5rem;
}
@media (max-width: 900px) {
  .contrast {
    grid-template-columns: 1fr;
  }
  .contrast__media {
    order: -1;
    aspect-ratio: 16/10;
  }
}
@media (max-width: 520px) {
  .contrast__cols {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

/* ---- Reviews ---- */
.rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 2.5rem;
  margin-top: 2rem;
}
.rating__score {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}
.rating__num {
  font-size: 3.25rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}
.rating__stars {
  color: var(--accent);
  font-size: 1.25rem;
  letter-spacing: 0.1em;
}
.rating__meta {
  font-size: var(--fs-sm);
  color: var(--ink-2);
}
.reviews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
  margin-top: 3rem;
}
@media (max-width: 1000px) and (min-width: 641px) {
  .reviews {
    grid-template-columns: repeat(2, 1fr);
  }
}
.review {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: clamp(1.5rem, 2.5vw, 2rem);
  display: flex;
  flex-direction: column;
}
.review__stars {
  color: var(--accent);
  font-size: 1rem;
  letter-spacing: 0.12em;
}
.review__body {
  margin-top: 1rem;
  color: var(--ink);
  font-size: var(--fs-sm);
  line-height: 1.65;
  flex: 1;
}
.review__by {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.review__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-text);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.875rem;
  flex: none;
}
.review__name {
  font-weight: 600;
  font-size: var(--fs-sm);
}
.review__vehicle {
  display: block;
  font-weight: 400;
  font-size: 0.8125rem;
  color: var(--ink-3);
}
@media (max-width: 900px) {
  .reviews {
    grid-template-columns: 1fr;
  }
}

/* ---- Feature cards ---- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.75rem);
  margin-top: 3rem;
}
.card {
  display: flex;
  flex-direction: column;
}
.card__media {
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--surface-2);
  aspect-ratio: 5 / 6;
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.card:hover .card__media img {
  transform: scale(1.03);
}
.card h3 {
  font-size: 1.375rem;
  margin-top: 1.5rem;
  letter-spacing: -0.02em;
}
.card p {
  margin-top: 0.6rem;
  color: var(--ink-2);
  font-size: var(--fs-sm);
}
.card a {
  margin-top: 1rem;
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--accent-text);
}
@media (max-width: 860px) {
  .cards {
    grid-template-columns: 1fr;
  }
}

/* ---- FAQ accordion ---- */
.faq {
  border-top: 1px solid var(--line);
  margin-top: 3rem;
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1.75rem 3rem 1.75rem 0;
  position: relative;
  font-size: clamp(1.125rem, 1.8vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '';
  position: absolute;
  right: 0.5rem;
  top: 50%;
  width: 14px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s var(--ease);
}
.faq summary::before {
  content: '';
  position: absolute;
  right: 0.5rem;
  top: 50%;
  width: 14px;
  height: 2px;
  background: var(--ink);
  transform: rotate(90deg);
  transition: opacity 0.25s var(--ease);
}
.faq details[open] summary::before {
  opacity: 0;
}
.faq p {
  padding-bottom: 1.75rem;
  color: var(--ink-2);
  max-width: 68ch;
}

/* ---- Marquee band ---- */
.marquee {
  background: var(--ink);
  color: #fff;
  padding-block: clamp(3rem, 6vw, 5rem);
  overflow: hidden;
}
.marquee__track {
  display: flex;
  gap: 3rem;
  white-space: nowrap;
  animation: slide 26s linear infinite;
}
.marquee__track span {
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.035em;
}
.marquee__track span:nth-child(even) {
  color: var(--accent);
}
@keyframes slide {
  to {
    transform: translateX(-50%);
  }
}
.marquee__cta {
  display: flex;
  justify-content: center;
  margin-top: clamp(2rem, 4vw, 3rem);
}

/* ---- Category pills ---- */
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2rem;
}
.pill {
  padding: 0.8rem 1.5rem;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--line);
  font-weight: 600;
  font-size: var(--fs-sm);
  transition: all 0.2s var(--ease);
}
.pill:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

/* ---- Footer ---- */
.foot {
  background: var(--surface);
  padding-block: clamp(4rem, 8vw, 6rem) 2rem;
  font-size: var(--fs-sm);
}
.foot a {
  color: var(--ink-2);
}
.foot a:hover {
  color: var(--accent-text);
}
.foot h4 {
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 1.25rem;
}
.foot ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}

/* row 1 — who we are, how to reach us, when we're open */
.foot__company {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
  border-bottom: 1px solid var(--line);
}
.foot__facility {
  margin-top: 1.75rem;
}
.foot__facility dt {
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.foot__facility dd {
  margin: 0.4rem 0 0;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* row 2 — navigation columns */
.foot__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(2rem, 3.5vw, 3.5rem);
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
}
.foot__social {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
}
.foot__social a {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  color: var(--ink-3);
}
.foot__social a:hover {
  color: var(--accent);
}
.foot__social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Browse index */
.foot__browse {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
  border-top: 1px solid var(--line);
  display: grid;
  gap: 1.75rem;
}
.browse-row {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}
.browse-row h4 {
  margin: 0.35rem 0 0;
}
.browse-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.browse-link {
  padding: 0.45rem 0.9rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-2);
  white-space: nowrap;
  transition:
    border-color 0.18s var(--ease),
    color 0.18s var(--ease);
}
.browse-link:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.foot__company .is-lg {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.foot__bottom {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--ink-3);
}
.foot__bottom nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}
.foot__legal {
  margin-top: 1.75rem;
  font-size: 0.75rem;
  line-height: 1.75;
  color: var(--ink-3);
  display: grid;
  gap: 0.9rem;
  max-width: none;
}

@media (max-width: 1000px) {
  .foot__company {
    grid-template-columns: 1fr 1fr;
  }
  .foot__company > :first-child {
    grid-column: 1 / -1;
  }
  .foot__grid {
    grid-template-columns: 1fr 1fr;
  }
  .browse-row {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }
}
@media (max-width: 560px) {
  .foot__company,
  .foot__grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   SHARED CHROME — needed by base.html on every page
   ========================================================================== */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--r-sm) 0;
  font-size: var(--fs-sm);
}
.skip-link:focus {
  left: 0;
}
.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;
}
.icon {
  width: 1em;
  height: 1em;
  fill: currentColor;
  flex: none;
}

/* ---- Flash messages ---- */
.flash {
  max-width: var(--maxw);
  margin: 1rem auto 0;
  padding-inline: var(--gutter);
  display: grid;
  gap: 0.5rem;
}
.alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--surface);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-sm);
  padding: 0.85rem 1rem;
  font-size: var(--fs-sm);
}
.alert--success {
  border-left-color: #1f9d55;
}
.alert--danger,
.alert--error {
  border-left-color: #c7361f;
}
.alert__close {
  color: var(--ink-3);
  font-size: 1.1rem;
  line-height: 1;
}
.alert__close:hover {
  color: var(--ink);
}

/* ---- Prefooter CTA (interior pages) ---- */
.prefooter {
  background: var(--surface);
  border-top: 1px solid var(--line);
}
.prefooter__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: clamp(2.5rem, 5vw, 4rem);
}
.prefooter h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  max-width: 20ch;
}
.prefooter p {
  margin-top: 0.75rem;
  color: var(--ink-2);
  max-width: 46ch;
  font-size: var(--fs-sm);
}
.prefooter__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ---- Quote modal ---- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: grid;
  place-items: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.22s var(--ease),
    visibility 0.22s;
}
.modal.is-open {
  opacity: 1;
  visibility: visible;
}
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 16, 18, 0.6);
  backdrop-filter: blur(3px);
}
.modal__dialog {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  background: var(--paper);
  border-radius: var(--r-card);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow:
    0 4px 12px rgba(16, 16, 18, 0.1),
    0 24px 60px rgba(16, 16, 18, 0.22);
  transform: translateY(14px) scale(0.985);
  transition: transform 0.28s var(--ease);
}
.modal.is-open .modal__dialog {
  transform: none;
}
.modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.modal__title {
  font-size: clamp(1.6rem, 3vw, 2.125rem);
}
.modal__sub {
  margin-top: 0.4rem;
  color: var(--ink-2);
  font-size: var(--fs-sm);
}
.modal__close {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink-3);
  transition:
    background-color 0.2s,
    color 0.2s;
}
.modal__close:hover {
  background: var(--surface);
  color: var(--ink);
}
.modal__form {
  margin-top: 1.5rem;
}

.field {
  margin-bottom: 1rem;
}
.field--row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.field__label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  margin-bottom: 0.45rem;
}
.input,
.select,
.textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  outline: none;
  transition:
    border-color 0.18s var(--ease),
    box-shadow 0.18s var(--ease);
}
.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(16, 16, 18, 0.07);
}
.input::placeholder {
  color: var(--ink-3);
}
.select {
  appearance: none;
  cursor: pointer;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%2356565E' d='M1.4 0 6 4.6 10.6 0 12 1.4 6 7.4 0 1.4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 11px;
}
.consent {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  margin-block: 1rem;
}
.consent input {
  margin-top: 0.25rem;
  width: 17px;
  height: 17px;
  accent-color: var(--accent);
  flex: none;
}
.consent label {
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--ink-3);
}
.btn--block {
  width: 100%;
}
.form__error {
  display: none;
  background: #fef4f2;
  color: #c7361f;
  border-radius: var(--r-sm);
  padding: 0.7rem 0.9rem;
  font-size: var(--fs-sm);
  font-weight: 500;
  margin-bottom: 1rem;
}
.form__success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  padding: 2.5rem 0;
}
.form__success .icon {
  width: 46px;
  height: 46px;
  color: var(--accent);
}
.form__success p {
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.form__disclaimer {
  margin-top: 1rem;
  font-size: 0.7rem;
  line-height: 1.55;
  color: var(--ink-3);
}
.form__disclaimer a {
  color: var(--accent-text);
  text-decoration: underline;
}
body.modal-open {
  overflow: hidden;
}

/* ==========================================================================
   LEGAL DOCUMENTS (privacy, terms)
   ========================================================================== */
.legal-head {
  background: var(--surface);
  padding-block: clamp(2.5rem, 5vw, 4rem) clamp(2.5rem, 5vw, 3.5rem);
}
.legal-head h1 {
  font-size: clamp(2.25rem, 4.2vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-top: 1rem;
}
.legal-head__date {
  margin-top: 1rem;
  font-size: var(--fs-sm);
  color: var(--ink-3);
}

.terms-wrap {
  max-width: 800px;
  margin-inline: auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) var(--gutter) clamp(3rem, 7vw, 5.5rem);
}
.terms-section {
  padding-bottom: clamp(2rem, 4vw, 3rem);
  margin-bottom: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
}
.terms-section:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.terms-heading {
  font-size: clamp(1.375rem, 2.2vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}
.terms-subheading {
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 2rem 0 0.5rem !important;
}
.terms-body p {
  font-size: var(--fs-body);
  color: var(--ink-2);
  line-height: 1.75;
  margin: 0 0 1rem;
}
.terms-body p:last-child {
  margin-bottom: 0;
}
.terms-body a {
  color: var(--accent-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.terms-body a:hover {
  color: var(--accent);
}
.terms-body strong {
  color: var(--ink);
  font-weight: 600;
}
.terms-body ul {
  padding-left: 1.3rem;
  margin: 0 0 1rem;
}
.terms-body ul li {
  font-size: var(--fs-body);
  color: var(--ink-2);
  line-height: 1.75;
  margin-bottom: 0.75rem;
}
.terms-body ul li::marker {
  color: var(--accent);
}

.terms-callout {
  background: var(--surface);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 1.5rem;
  margin: 2rem 0;
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: var(--ink);
  font-weight: 500;
}
.terms-contact {
  background: var(--surface);
  border-radius: var(--r-md);
  padding: 2rem;
  margin-top: 1.5rem;
}
.terms-contact p {
  margin-bottom: 0.5rem !important;
  font-size: var(--fs-sm);
}
.terms-contact p:last-child {
  margin-bottom: 0 !important;
}

.terms-table-wrap {
  overflow-x: auto;
  margin: 2rem 0;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.terms-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
  min-width: 520px;
}
.terms-table th {
  background: var(--ink);
  color: #fff;
  padding: 1rem;
  text-align: left;
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.terms-table th:first-child {
  width: 32%;
}
.terms-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  line-height: 1.65;
  vertical-align: top;
}
.terms-table tr:last-child td {
  border-bottom: 0;
}
.terms-table tr:nth-child(even) td {
  background: var(--surface);
}
.terms-table td:first-child {
  font-weight: 600;
  color: var(--ink);
}

/* ==========================================================================
   HOW IT WORKS — timeline layout
   ========================================================================== */
.fx-rail-color {
} /* marker for the rail tint below */

/* ---- Hero: gradient band, copy left, image bleeding off the right ---- */
.fx-hero {
  background: linear-gradient(180deg, #ffffff 0%, #eeeef0 42%, #e4e4e7 100%);
  overflow: hidden;
}
.fx-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 48vw);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  max-width: none;
  padding-left: max(
    var(--gutter),
    calc((100vw - var(--maxw)) / 2 + var(--gutter))
  );
  padding-right: 0;
  min-height: clamp(520px, 74vh, 780px);
}
.fx-hero__eyebrow {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.fx-hero h1 {
  font-size: clamp(2.75rem, 6vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-top: 1.5rem;
  max-width: 14ch;
}
.fx-hero__sub {
  margin-top: 1.75rem;
  font-size: clamp(1.0625rem, 1.5vw, 1.375rem);
  line-height: 1.5;
  color: var(--ink);
  max-width: 40ch;
}
.fx-hero__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 2.5rem;
  padding: 1.35rem 2.5rem;
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--r-pill);
  font-size: 1.125rem;
  font-weight: 600;
  box-shadow:
    0 1px 2px rgba(16, 16, 18, 0.06),
    0 10px 30px rgba(16, 16, 18, 0.08);
  transition:
    transform 0.18s var(--ease),
    box-shadow 0.18s var(--ease);
}
.fx-hero__btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 4px 10px rgba(16, 16, 18, 0.08),
    0 16px 40px rgba(16, 16, 18, 0.12);
}
.fx-hero__btn svg {
  width: 18px;
  height: 18px;
}
.fx-hero__media {
  align-self: end;
}
.fx-hero__media img {
  width: 100%;
  height: auto;
  display: block;
}
@media (max-width: 900px) {
  .fx-hero__grid {
    grid-template-columns: 1fr;
    padding-right: var(--gutter);
    min-height: 0;
    padding-block: 3rem 0;
  }
  .fx-hero__media {
    margin-inline: calc(var(--gutter) * -1);
  }
}

/* ---- Centred statement ---- */
.fx-statement {
  text-align: center;
  padding-block: clamp(4rem, 9vw, 8rem) clamp(2rem, 4vw, 3rem);
}
.fx-statement h2 {
  font-size: clamp(2.25rem, 4.6vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.08;
  max-width: 20ch;
  margin-inline: auto;
  text-wrap: balance;
}
.fx-statement p {
  margin: 1.75rem auto 0;
  max-width: 48ch;
  font-size: clamp(1.0625rem, 1.5vw, 1.375rem);
  line-height: 1.5;
  color: var(--ink-2);
}

/* ---- The timeline ----------------------------------------------------
   One continuous track holds all seven steps. The grey panel behind the
   later steps is a normal block *inside* the track, so the rail and the car
   run through it without a break. */
.fx-track {
  position: relative;
  --rail-x: 110px;
  --content-x: 290px;
  --car-w: 104px;
  --dot-d: 12px;
  --dot-collar: 5px;
  /* where a step's dot sits: the step's own top padding, plus the offset
     inside it. The rail starts here so it begins at checkpoint 1. */
  --step-pad: clamp(2.5rem, 6vw, 5.5rem);
  --dot-y: 3.4rem;
  --rail-start: calc(var(--step-pad) + var(--dot-y) + var(--dot-d) / 2);
}

.fx-step::before {
  /* The rail is drawn per-step rather than once across the whole track.
     .fx-panel sets position/z-index, which creates a stacking context — a
     track-level rail could never be painted beneath dots living inside it.
     Per-step segments share a context with their own dot, so the dot's
     collar always masks the dashes. Absolutely positioned, so it isn't
     treated as a grid item. */
  content: '';
  position: absolute;
  z-index: 1;
  left: var(--rail-x);
  top: 0;
  bottom: 0;
  width: 2px;
  margin-left: -1px;
  background-image: linear-gradient(
    180deg,
    #d7dcf0 42%,
    rgba(215, 220, 240, 0) 0
  );
  background-size: 2px 24px;
  background-repeat: repeat-y;
  pointer-events: none;
}
/* the line begins at the first checkpoint, not above it */
.fx-step--start::before {
  top: calc(var(--dot-y) + var(--dot-d) / 2);
}

.fx-carlane {
  position: absolute;
  z-index: 4;
  left: calc(var(--gutter) + var(--rail-x));
  top: 0;
  bottom: 0;
  width: var(--car-w);
  margin-left: calc(var(--car-w) / -2);
  pointer-events: none;
}
.fx-car {
  /* Sticky, not scroll-driven. The car pins to the viewport and the page
     scrolls behind it, which is why Flexcar's never stutters — the browser
     handles it on the compositor and no JavaScript runs on scroll at all.
     It parks itself at the top and bottom of the lane automatically. */
  position: sticky;
  top: 42vh;
  width: var(--car-w);
  /* Waits off to the left of the rail at an angle, then merges on.
     Sticky owns the vertical position; translate and rotate are separate
     properties so neither fights it. Reverses on the way back up. */
  translate: -52px -34px;
  rotate: -30deg;
  transition:
    translate 1s cubic-bezier(0.22, 0.7, 0.25, 1),
    rotate 1s cubic-bezier(0.22, 0.7, 0.25, 1);
}
.fx-track.is-merged .fx-car {
  translate: 0 0;
  rotate: 0deg;
}
@media (prefers-reduced-motion: reduce) {
  .fx-car {
    translate: 0 0;
    rotate: 0deg;
    transition: none;
  }
}
.fx-car img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 12px rgba(16, 16, 18, 0.22));
}

.fx-step {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: var(--content-x) minmax(0, 1fr);
  padding-block: clamp(2.5rem, 6vw, 5.5rem);
}
.fx-step__dot {
  display: block; /* a span is inline — width/height were ignored */
  position: relative;
  z-index: 3; /* above the rail so the ring masks the dashes */
  top: var(--dot-y);
  left: var(--rail-x);
  width: var(--dot-d);
  height: var(--dot-d);
  margin-left: calc(var(--dot-d) / -2);
  border-radius: 50%;
  background: var(--ink);
  /* Same three layers as before — white collar masking the dashes, a
     hairline ring, then a soft shadow — scaled down as one unit. The ring
     sits 1px outside the collar rather than 8px, which is what made the
     old marker 30px wide. */
  box-shadow:
    0 0 0 var(--dot-collar) var(--panel-bg, #fff),
    0 0 0 calc(var(--dot-collar) + 1px) rgba(16, 16, 18, 0.1),
    0 1px 4px rgba(16, 16, 18, 0.12);
}
.fx-step__label {
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.fx-step h3 {
  font-size: clamp(1.875rem, 3.4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-top: 0.85rem;
}
.fx-step__body {
  margin-top: 1.5rem;
  max-width: 52ch;
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  line-height: 1.55;
  color: var(--ink-2);
}
.fx-step__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  font-size: 1.0625rem;
  color: var(--ink-2);
}
.fx-step__link:hover {
  color: var(--accent-text);
}
.fx-step__visual {
  margin-top: 2.5rem;
}

@media (max-width: 1200px) {
  .fx-track {
    --rail-x: 84px;
    --content-x: 210px;
    --car-w: 84px;
  }
}
@media (max-width: 980px) {
  .fx-track {
    --rail-x: 62px;
    --content-x: 150px;
    --car-w: 68px;
  }
}
/* Flexcar keeps the rail, dots and car on phones — so do we, scaled down.
   On small screens the rail is pulled out into the page gutter so it costs
   the content column almost nothing: negative --rail-x puts it left of the
   content edge, and the car is allowed to overhang the viewport. */
@media (max-width: 820px) {
  .fx-track {
    --rail-x: 24px;
    --content-x: 58px;
    --car-w: 66px;
    --dot-d: 11px;
    --dot-collar: 4px;
    --step-pad: clamp(2rem, 8vw, 3rem);
  }
  .fx-car {
    translate: -20px -16px;
    rotate: -26deg;
    top: 38vh;
  }
  .fx-track.is-merged .fx-car {
    translate: 0 0;
    rotate: 0deg;
  }
  .fx-step__visual {
    margin-top: 1.75rem;
  }
  /* the car may hang past the left edge rather than squeeze the column */
  .fx-carlane {
    overflow: visible;
  }
}
@media (max-width: 480px) {
  .fx-track {
    --rail-x: 18px;
    --content-x: 48px;
    --car-w: 58px;
    --dot-d: 10px;
    --dot-collar: 4px;
  }
  .fx-car {
    translate: -16px -14px;
  }
}

/* ---- Mock UI card (step 1) ---- */
.fx-mock {
  max-width: 420px;
  background: var(--paper);
  border-radius: 20px;
  padding: 1.75rem;
  box-shadow:
    0 2px 6px rgba(16, 16, 18, 0.05),
    0 24px 60px rgba(16, 16, 18, 0.12);
}
.fx-mock__step {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.fx-mock__title {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 0.6rem;
}
.fx-mock__hint {
  margin-top: 0.5rem;
  font-size: 0.9375rem;
  color: var(--ink-2);
  line-height: 1.5;
}
.fx-mock__field {
  margin-top: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 0.9rem 1.25rem;
  font-size: 0.9375rem;
  color: var(--ink-3);
}
.fx-mock__field b {
  color: var(--accent-text);
  font-weight: 600;
  white-space: nowrap;
}
.fx-mock__cta {
  margin-top: 0.85rem;
  text-align: center;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  color: var(--ink-3);
  padding: 0.95rem;
  font-weight: 600;
  font-size: 0.9375rem;
}

/* ---- Card fan (step 2) ---- */
.fx-fan {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  max-width: 620px;
}
.fx-fan__card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.9rem 1.25rem;
  box-shadow: 0 8px 22px rgba(16, 16, 18, 0.07);
}
.fx-fan__card span {
  display: block;
  font-size: 0.8125rem;
  color: var(--ink-3);
}
.fx-fan__card strong {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.fx-fan__card:nth-child(odd) {
  transform: rotate(-1.5deg);
}
.fx-fan__card:nth-child(even) {
  transform: rotate(1.5deg);
}

/* ---- Comparison cards (steps 3 and 4) ---- */
.fx-plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  max-width: 760px;
}
.fx-plan {
  position: relative;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid #e7e5fb;
  border-radius: 18px;
  padding: 1.5rem 1.5rem 2.25rem;
  box-shadow:
    0 2px 6px rgba(16, 16, 18, 0.04),
    0 14px 34px rgba(16, 16, 18, 0.06);
}
.fx-plan__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}
.fx-plan__name {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.fx-plan__meta {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink-3);
  white-space: nowrap;
}
.fx-plan ul {
  list-style: none;
  margin: 1.1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}
.fx-plan li {
  display: flex;
  gap: 0.6rem;
  font-size: 0.9375rem;
  color: var(--ink);
  line-height: 1.45;
}
.fx-plan li::before {
  content: '✓';
  color: var(--ink);
  font-weight: 700;
  flex: none;
}
.fx-plan__badge {
  position: absolute;
  right: 0;
  bottom: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: var(--r-pill) 0 18px 0;
}
@media (max-width: 700px) {
  .fx-plans {
    grid-template-columns: 1fr;
  }
}

/* ---- Grey panel wrapping the later steps ---- */
.fx-panel {
  --panel-bg: #f6f6f7;
  position: relative;
  z-index: 1;
  background: var(--panel-bg);
  border-radius: 44px 44px 0 0;
  /* full-bleed out of the centred container, then pad the content back in */
  margin-inline: calc(50% - 50vw);
  padding-inline: calc(50vw - 50%);
  padding-top: clamp(1rem, 3vw, 2.5rem);
}
.fx-panel .fx-mock,
.fx-panel .fx-plan,
.fx-panel .fx-quote,
.fx-panel .fx-qualify__card {
  background: var(--paper);
}
@media (max-width: 820px) {
  .fx-panel {
    border-radius: 28px 28px 0 0;
  }
}

/* ---- Qualify card stack (step 5) ---- */
.fx-qualify {
  position: relative;
  max-width: 430px;
}
.fx-qualify__card {
  position: relative;
  z-index: 2;
  background: var(--paper);
  border-radius: 18px;
  padding: 1.75rem;
  box-shadow:
    0 2px 6px rgba(16, 16, 18, 0.05),
    0 20px 44px rgba(16, 16, 18, 0.1);
}
.fx-qualify::after {
  content: '';
  position: absolute;
  z-index: 1;
  left: 14px;
  right: -14px;
  top: 14px;
  bottom: -14px;
  background: var(--paper);
  border-radius: 18px;
  box-shadow: 0 20px 44px rgba(16, 16, 18, 0.08);
}
.fx-qualify__card h4 {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.fx-qualify__card ul {
  list-style: none;
  margin: 1.1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
.fx-qualify__card li {
  display: flex;
  gap: 0.7rem;
  font-size: 1rem;
  color: var(--ink);
}
.fx-qualify__card li::before {
  content: '✓';
  font-weight: 700;
  flex: none;
}
.fx-qualify__check {
  position: absolute;
  z-index: 3;
  top: -22px;
  right: -18px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 26px rgba(255, 105, 0, 0.35);
}
.fx-qualify__check svg {
  width: 30px;
  height: 30px;
}

/* ---- Quote cards (step 6) ---- */
.fx-quotes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  max-width: 820px;
}
.fx-quote {
  background: var(--paper);
  border: 1px solid #e7e5fb;
  border-radius: 18px;
  padding: 1.75rem;
  box-shadow:
    0 2px 6px rgba(16, 16, 18, 0.04),
    0 14px 34px rgba(16, 16, 18, 0.06);
}
.fx-quote p {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
}
.fx-quote__by {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1.75rem;
}
.fx-quote__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #eceafd;
  color: #4b4b8f;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.875rem;
}
.fx-quote__avatar--alt {
  background: #fdeaea;
  color: #8f4b4b;
}
.fx-quote__name {
  font-size: 1.0625rem;
  font-weight: 600;
}
@media (max-width: 700px) {
  .fx-quotes {
    grid-template-columns: 1fr;
  }
}

/* ---- Checkered flag band ---- */
.fx-flag {
  /* above the car, so it slides underneath and parks there */
  position: relative;
  z-index: 6;
  height: clamp(84px, 9vw, 130px);
  border-radius: 0 0 44px 44px;
  margin-inline: calc(50% - 50vw);
  background-image: repeating-conic-gradient(#111112 0% 25%, #ffffff 0% 50%);
  background-size: clamp(38px, 4vw, 56px) clamp(38px, 4vw, 56px);
}

/* ---- Welcome / arrival ---- */
.fx-welcome {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 7vw, 6rem);
}
.fx-welcome__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
}
.fx-welcome h2 {
  font-size: clamp(2.5rem, 5.4vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}
.fx-welcome p {
  margin-top: 1.25rem;
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.5;
  color: var(--ink);
  max-width: 34ch;
}
.fx-welcome .btn {
  margin-top: 2rem;
}
.fx-welcome__media img {
  width: 100%;
  height: auto;
  border-radius: var(--r-card);
}
@media (max-width: 820px) {
  .fx-welcome__grid {
    grid-template-columns: 1fr;
  }
}

.fx-confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.fx-confetti i {
  position: absolute;
  display: block;
  width: 10px;
  height: 14px;
  border-radius: 2px;
  opacity: 0.9;
}

/* ==========================================================================
   LEASE DEALS
   ========================================================================== */
.dl-head {
  background: var(--surface);
  padding-block: clamp(2.5rem, 5vw, 4rem) clamp(2rem, 4vw, 3rem);
}
.dl-head h1 {
  font-size: clamp(2.25rem, 4.2vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.04;
  margin-top: 1rem;
  max-width: 20ch;
}
.dl-head .lead {
  margin-top: 1.25rem;
  max-width: 56ch;
}
.dl-updated {
  margin-top: 1rem;
  font-size: var(--fs-sm);
  color: var(--ink-3);
}

.dl-crumbs {
  font-size: var(--fs-sm);
  color: var(--ink-3);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.dl-crumbs a:hover {
  color: var(--accent-text);
}

/* layout: filters rail + grid */
.dl-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}
@media (max-width: 900px) {
  .dl-layout {
    grid-template-columns: 1fr;
  }
}

.dl-filters {
  position: sticky;
  top: calc(var(--nav-h) + 1.5rem);
  display: grid;
  gap: 2rem;
}
@media (max-width: 900px) {
  .dl-filters {
    position: static;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}
.dl-filters h2 {
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 0.85rem;
}
.dl-filters ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.15rem;
}
.dl-filters li a {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 0.65rem;
  margin-inline: -0.65rem;
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  color: var(--ink-2);
}
.dl-filters li a:hover {
  background: var(--surface);
  color: var(--ink);
}
.dl-filters li a.is-active {
  background: var(--ink);
  color: #fff;
  font-weight: 600;
}
.dl-filters li span {
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.dl-filters li a.is-active span {
  color: rgba(255, 255, 255, 0.6);
}
.dl-filters__cta {
  background: var(--surface);
  border-radius: var(--r-md);
  padding: 1.25rem;
}
.dl-filters__cta h3 {
  font-size: 1.0625rem;
  letter-spacing: -0.015em;
}
.dl-filters__cta p {
  margin: 0.5rem 0 1rem;
  font-size: 0.8125rem;
  color: var(--ink-2);
}

/* cards */
.dl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}
.dl-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
  transition:
    border-color 0.2s var(--ease),
    transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}
.dl-card:hover {
  border-color: var(--ink);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.dl-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  background: var(--surface);
}
.dl-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dl-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  background: var(--accent);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
  border-radius: var(--r-pill);
}
.dl-card__body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.dl-card__title {
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}
.dl-card__title a:hover {
  color: var(--accent-text);
}
.dl-card__trim {
  margin-top: 0.3rem;
  font-size: 0.8125rem;
  color: var(--ink-3);
}
.dl-card__price {
  margin-top: 1rem;
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.dl-card__price strong {
  font-size: 1.625rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.dl-card__price span {
  font-size: var(--fs-sm);
  color: var(--ink-2);
}
.dl-card__down {
  margin-left: 0.35rem;
  font-weight: 600;
  color: var(--accent-text) !important;
}
.dl-card__terms {
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  color: var(--ink-3);
}
.dl-card .btn {
  margin-top: 1.25rem;
  align-self: flex-start;
}
.dl-empty {
  padding: 3rem 0;
  color: var(--ink-2);
}
.dl-empty a {
  color: var(--accent-text);
  font-weight: 600;
  text-decoration: underline;
}

/* long-form copy under the grid */
.dl-copy {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  max-width: 68ch;
}
.dl-copy h2 {
  font-size: clamp(1.375rem, 2.2vw, 1.75rem);
  letter-spacing: -0.025em;
  margin-top: 2rem;
}
.dl-copy h3 {
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  margin-top: 1.75rem;
}
.dl-copy p {
  margin-top: 0.85rem;
  color: var(--ink-2);
  line-height: 1.7;
}
.dl-copy a {
  color: var(--accent-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.dl-disclosure {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.75rem;
  font-size: 0.6875rem;
  line-height: 1.7;
  color: var(--ink-3);
}

/* detail page */
.dl-detail {
  padding-block: clamp(1.5rem, 3vw, 2.5rem) clamp(3rem, 6vw, 5rem);
}
.dl-detail__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
  margin-top: 1.5rem;
}
@media (max-width: 940px) {
  .dl-detail__grid {
    grid-template-columns: 1fr;
  }
}
.dl-detail h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-top: 0.75rem;
}
.dl-detail__trim {
  margin-top: 0.6rem;
  color: var(--ink-2);
}
.dl-detail__price {
  margin-top: 1.5rem;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.dl-detail__amount {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}
.dl-detail__per {
  font-size: 1.125rem;
  color: var(--ink-2);
}
.dl-detail__down {
  margin-left: 0.5rem;
  font-weight: 600;
  color: var(--accent-text);
}
.dl-detail__terms {
  margin-top: 0.75rem;
  font-size: var(--fs-sm);
  color: var(--ink-3);
}
.dl-detail__media {
  margin-top: 2rem;
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--surface);
  aspect-ratio: 16 / 10;
}
.dl-detail__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dl-specs {
  margin-top: 2.5rem;
}
.dl-specs h2 {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.dl-specs dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1rem;
  margin: 1.25rem 0 0;
}
.dl-specs dt {
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.dl-specs dd {
  margin: 0.3rem 0 0;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.dl-highlights {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}
.dl-highlights li {
  display: flex;
  gap: 0.6rem;
  font-size: var(--fs-sm);
  color: var(--ink-2);
}
.dl-highlights li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
}

/* Sticky is opted into by the lease detail template, which restricts it to
   wide, mouse-driven screens — a width-only breakpoint made the sidebar stick
   on tablets and cover the content. Nothing sticky is declared here. */
.dl-detail__aside {
  position: static;
}
.dl-quote {
  background: var(--surface);
  border-radius: var(--r-card);
  padding: clamp(1.5rem, 3vw, 2rem);
}
.dl-quote h2 {
  font-size: 1.375rem;
  letter-spacing: -0.025em;
}
.dl-quote p {
  margin: 0.6rem 0 1.25rem;
  font-size: var(--fs-sm);
  color: var(--ink-2);
}
.dl-quote .btn + .btn {
  margin-top: 0.6rem;
}
.dl-quote__points {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.6rem;
}
.dl-quote__points li {
  display: flex;
  gap: 0.6rem;
  font-size: 0.8125rem;
  color: var(--ink-2);
}
.dl-quote__points li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
}

/* ==========================================================================
   LEASE DEALS — SPEC SECTIONS (v4)
   Safety, warranty, full specifications, and the call-for-price states.
   Tokens only; nothing here introduces a color, radius or size of its own.
   ========================================================================== */

/* ---- Call for price -------------------------------------------------- */
/* Sits where a number would. Same weight, so a card with no price doesn't
   read as a card that failed to load. */
.dl-card__price--cfp strong {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--accent-text);
}
.dl-detail__price--cfp .dl-detail__amount {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  color: var(--accent-text);
}

/* ---- Section rhythm -------------------------------------------------- */
/* One shared top rule so safety, warranty and specs read as siblings of
   .dl-specs rather than three bolted-on panels. */
.dl-safety,
.dl-warranty,
.dl-fullspecs {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
}
.dl-safety h2,
.dl-warranty h2,
.dl-fullspecs h2 {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

/* ---- Safety ratings -------------------------------------------------- */
.dl-safety__source {
  margin-top: 0.4rem;
  font-size: var(--fs-sm);
  color: var(--ink-3);
}
.dl-safety__grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}
.dl-safety__item {
  background: var(--surface);
  border-radius: var(--r-md);
  padding: 1.1rem 1.25rem;
}
.dl-safety__label {
  display: block;
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.dl-safety__stars {
  display: block;
  margin-top: 0.5rem;
  font-size: 1.125rem;
  letter-spacing: 0.1em;
  line-height: 1;
}
.dl-safety__stars .is-on {
  color: var(--accent);
}
.dl-safety__stars .is-off {
  color: var(--surface-2);
}

/* ---- Warranty -------------------------------------------------------- */
.dl-warranty dl {
  margin: 1.5rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1rem;
}
.dl-warranty dl > div {
  background: var(--surface);
  border-radius: var(--r-md);
  padding: 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.dl-warranty dt {
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
/* Months on top, distance beneath. One long value wrapping mid-phrase was
   pushing the four cards out of alignment with each other. */
.dl-warranty dd {
  margin: 0.5rem 0 0;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.dl-warranty dd span {
  display: block;
  margin-top: 0.1rem;
  font-size: var(--fs-sm);
  font-weight: 400;
  letter-spacing: 0;
  color: var(--ink-2);
}
.dl-warranty__note {
  margin-top: 1rem;
  font-size: var(--fs-sm);
  color: var(--ink-3);
}

/* ---- Full specifications: accordion ---------------------------------- */
/* <details> rather than tabs. Every word stays in the HTML for crawlers
   while the page stays quiet for a reader who only wants the payment. */
.dl-disclose {
  border-top: 1px solid var(--line);
}
.dl-disclose:first-of-type {
  margin-top: 1.5rem;
}
.dl-disclose:last-of-type {
  border-bottom: 1px solid var(--line);
}

.dl-disclose > summary {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.15rem 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -0.015em;
  list-style: none;
  transition: color 0.2s var(--ease);
}
.dl-disclose > summary::-webkit-details-marker {
  display: none;
}
.dl-disclose > summary:hover {
  color: var(--accent-text);
}

/* count pill, pushed right */
.dl-disclose > summary span {
  margin-left: auto;
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

/* chevron, drawn rather than shipped as an asset */
.dl-disclose > summary::after {
  content: '';
  width: 9px;
  height: 9px;
  margin-left: 0.35rem;
  border-right: 2px solid var(--ink-3);
  border-bottom: 2px solid var(--ink-3);
  transform: rotate(45deg) translate(-2px, -2px);
  transition:
    transform 0.25s var(--ease),
    border-color 0.2s var(--ease);
  flex-shrink: 0;
}
.dl-disclose[open] > summary::after {
  transform: rotate(-135deg) translate(-3px, -3px);
  border-color: var(--accent);
}
.dl-disclose[open] > summary {
  color: var(--ink);
}

.dl-disclose__body {
  padding-bottom: 1.75rem;
  animation: dl-reveal 0.25s var(--ease);
}
@keyframes dl-reveal {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .dl-disclose__body {
    animation: none;
  }
  .dl-disclose > summary::after {
    transition: none;
  }
}

/* ---- Spec lists ------------------------------------------------------ */
.dl-disclose__body {
  columns: 2;
  column-gap: clamp(1.5rem, 3vw, 3rem);
}
.dl-speclist {
  break-inside: avoid;
  margin-bottom: 1.5rem;
}
.dl-speclist h3 {
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.dl-speclist ul {
  list-style: none;
  margin: 0.6rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}
.dl-speclist li {
  font-size: var(--fs-sm);
  color: var(--ink-2);
  line-height: 1.5;
}
/* label/value rows, used by dimensions */
.dl-speclist li > span:first-child {
  display: inline-block;
  min-width: 8.5rem;
  color: var(--ink-3);
}

/* ---- Options list ---------------------------------------------------- */
/* Single column: a price on the right needs the full width to stay legible. */
.dl-speclist--options {
  column-span: all;
}
.dl-speclist--options ul {
  gap: 0;
}
.dl-speclist--options li {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.dl-speclist--options li:last-child {
  border-bottom: 0;
}
.dl-speclist--options li > span {
  flex: 1;
  min-width: 0;
}
.dl-speclist--options li > strong {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.dl-optkind {
  font-style: normal;
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-text);
  background: var(--accent-soft);
  border-radius: var(--r-pill);
  padding: 0.2rem 0.6rem;
  flex-shrink: 0;
}

/* ---- Notes ----------------------------------------------------------- */
.dl-specs__note,
.dl-fullspecs__note {
  margin-top: 1.25rem;
  font-size: 0.8125rem;
  color: var(--ink-3);
  line-height: 1.6;
  max-width: 68ch;
}

/* ---- Narrow ---------------------------------------------------------- */
@media (max-width: 720px) {
  .dl-disclose__body {
    columns: 1;
  }
  .dl-speclist li > span:first-child {
    min-width: 7rem;
  }
  .dl-speclist--options li {
    flex-wrap: wrap;
    gap: 0.4rem;
  }
}
