/* ==========================================================
   VF 8 2026 Landing — Tesla-inspired design system
   ========================================================== */

:root {
  --c-blue:        #3E6AE1;
  --c-blue-dark:   #2F54B8;
  --c-white:       #FFFFFF;
  --c-carbon:      #171A20;
  --c-graphite:    #393C41;
  --c-pewter:      #5C5E62;
  --c-fog:         #8E8E8E;
  --c-ash:         #F4F4F4;
  --c-cloud:       #EEEEEE;
  --c-silver:      #D0D1D2;

  --font-display:  "Manrope", "Inter", -apple-system, "Segoe UI", Arial, sans-serif;
  --font-text:     "Inter", -apple-system, "Segoe UI", Arial, sans-serif;
  --font-serif:    "Playfair Display", "Cormorant Garamond", Georgia, serif;

  --r-btn:  4px;
  --r-card: 12px;

  --t-ui:    0.33s;
  --ease:    cubic-bezier(.5,0,0,.75);

  --nav-h:   72px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 15px;
  line-height: 1.55;
  color: var(--c-graphite);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11", "kern";
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* ── Shared ── */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.4vw, 52px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--c-carbon);
  margin: 0;
}
.section-title .accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, #3E6AE1 0%, #6F95FF 50%, #3E6AE1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-sub {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--c-pewter);
  margin: 16px 0 0;
  max-width: 680px;
  letter-spacing: 0.005em;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--c-blue);
  font-weight: 600;
  margin: 0 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-blue));
}
.accent { color: var(--c-blue); }

/* ── Buttons ── */
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  min-width: 200px;
  padding: 0 18px;
  border-radius: var(--r-btn);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: normal;
  border: 3px solid transparent;
  transition: background-color var(--t-ui), color var(--t-ui), border-color var(--t-ui), transform var(--t-ui);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--c-blue);
  color: var(--c-white);
}
.btn-primary:hover { background: var(--c-blue-dark); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-secondary {
  background: var(--c-white);
  color: var(--c-graphite);
  border-color: var(--c-cloud);
}
.btn-secondary:hover { background: var(--c-ash); border-color: var(--c-silver); }
.btn-nav {
  background: transparent;
  color: var(--c-carbon);
  font-size: 14px;
  font-weight: 500;
  padding: 4px 16px;
  border-radius: var(--r-btn);
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  transition: background var(--t-ui), color var(--t-ui);
}
.btn-nav:hover { background: var(--c-ash); }
.btn-link {
  background: none;
  border: none;
  color: var(--c-blue);
  font-size: 14px;
  padding: 8px 0;
  text-decoration: none;
  transition: color var(--t-ui);
}
.btn-link:hover { color: var(--c-blue-dark); text-decoration: underline; }

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  z-index: 100;
  background: transparent;
  transition: background-color var(--t-ui), backdrop-filter var(--t-ui), color var(--t-ui);
}
.nav.is-scrolled {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 0 rgba(0,0,0,0.04);
}
.nav__wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--c-white);
  transition: color var(--t-ui), transform var(--t-ui);
}
.nav__wordmark:hover { transform: translateY(-1px); }
.nav__logo-mark {
  width: 36px;
  height: 36px;
  filter: drop-shadow(0 2px 8px rgba(62,106,225,0.35));
  transition: transform 0.5s var(--ease);
}
.nav__wordmark:hover .nav__logo-mark { transform: rotate(-8deg); }
.nav__brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1;
}
.nav__logo-text {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, currentColor 30%, rgba(255,255,255,0.7) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.nav__logo-sub {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  color: currentColor;
  opacity: 0.82;
}
.nav.is-scrolled .nav__wordmark { color: var(--c-carbon); }
.nav.is-scrolled .nav__logo-text {
  background: linear-gradient(135deg, var(--c-carbon) 20%, var(--c-blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.nav.is-scrolled .nav__logo-mark {
  filter: drop-shadow(0 2px 12px rgba(62,106,225,0.45));
}
.nav__links {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav .btn-nav { color: var(--c-white); }
.nav.is-scrolled .btn-nav { color: var(--c-carbon); }
.nav__icons {
  display: flex;
  gap: 4px;
}
.nav__icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: var(--c-white);
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t-ui), color var(--t-ui);
}
.nav.is-scrolled .nav__icon { color: var(--c-carbon); }
.nav__icon:hover { background: rgba(255,255,255,0.15); }
.nav.is-scrolled .nav__icon:hover { background: var(--c-ash); }

/* ── Tool Hero (slim, tools-first landing) ── */
.tool-hero {
  position: relative;
  min-height: 520px;
  padding: calc(var(--nav-h) + 56px) 32px 72px;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(62,106,225,0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 15%, rgba(111,149,255,0.14) 0%, transparent 50%),
    linear-gradient(180deg, #0B0E13 0%, #161922 60%, #1C2030 100%);
  color: var(--c-white);
  overflow: hidden;
  isolation: isolate;
}
.tool-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  z-index: -1;
}
.tool-hero__veil { display: none; }
.tool-hero__inner {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.tool-hero__promo {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #B8CCFF;
  margin: 0;
  padding: 8px 18px;
  background: linear-gradient(135deg, rgba(62,106,225,0.22), rgba(62,106,225,0.06));
  border: 1px solid rgba(147,180,255,0.28);
  border-radius: 100px;
  backdrop-filter: blur(8px);
}
.tool-hero__title {
  font-family: var(--font-display);
  font-size: clamp(44px, 6.4vw, 80px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.035em;
  margin: 8px 0 0;
  text-shadow: 0 4px 60px rgba(0,0,0,.4);
}
.tool-hero__title .accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #FFFFFF 0%, #93B4FF 45%, #6F95FF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 24px rgba(111,149,255,0.4));
}
.tool-hero__sub {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 300;
  color: rgba(255,255,255,0.85);
  margin: 0;
  max-width: 580px;
  line-height: 1.55;
}
.tool-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 18px;
}
.tool-chip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px 12px 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 100px;
  color: var(--c-white);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: background var(--t-ui), border-color var(--t-ui), transform var(--t-ui);
  backdrop-filter: blur(10px);
}
.tool-chip:hover {
  background: rgba(62,106,225,0.18);
  border-color: rgba(111,149,255,0.4);
  transform: translateY(-2px);
}
.tool-chip__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-blue), #6F95FF);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  box-shadow: 0 4px 12px rgba(62,106,225,0.4);
}

/* ── Explore divider (between tools and showcase) ── */
.explore-divider {
  padding: 96px 32px 24px;
  text-align: center;
  background: var(--c-white);
}
.explore-divider__inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.explore-divider__rule {
  width: 1px;
  height: 56px;
  background: linear-gradient(180deg, transparent, var(--c-blue));
  margin-bottom: 32px;
}
.explore-divider .section-sub { margin-left: auto; margin-right: auto; }

/* ── Hero (now inline, between explore-divider and showcase) ── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  color: var(--c-white);
}
.hero--inline {
  height: 62vh;
  min-height: 460px;
  border-radius: 24px;
  margin: 32px auto 0;
  max-width: 1400px;
  width: calc(100% - 64px);
  box-shadow: 0 30px 80px -20px rgba(23,26,32,0.4);
}
.hero--inline .hero__bg { inset: 0; }
.hero--inline .hero__scroll { display: none; }
.hero__bg {
  position: absolute;
  inset: -20px;
  background-size: cover;
  background-position: center;
  will-change: transform, filter;
  transition: filter 0.9s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}
.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.15) 30%, rgba(0,0,0,0.55) 100%);
  z-index: 1;
}
.hero__content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
  gap: 20px;
}
.hero__promo {
  font-family: var(--font-display);
  font-size: clamp(15px, 1.4vw, 19px);
  font-weight: 400;
  color: #B8CCFF;
  margin: 0;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 30px rgba(0,0,0,.4);
  padding: 8px 22px;
  background: linear-gradient(135deg, rgba(62,106,225,0.18), rgba(62,106,225,0.04));
  border: 1px solid rgba(147,180,255,0.25);
  border-radius: 100px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(64px, 11vw, 156px);
  font-weight: 700;
  line-height: 0.95;
  margin: 0;
  letter-spacing: -0.045em;
  text-shadow: 0 4px 60px rgba(0,0,0,.45);
}
.hero__title .accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #FFFFFF 0%, #93B4FF 40%, #6F95FF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 24px rgba(111,149,255,0.35));
}
.hero__sub {
  font-family: var(--font-display);
  font-size: clamp(16px, 1.4vw, 19px);
  font-weight: 300;
  line-height: 1.6;
  color: rgba(255,255,255,0.88);
  margin: 0;
  max-width: 620px;
  letter-spacing: 0.01em;
}
.hero__sub strong {
  font-weight: 600;
  color: var(--c-white);
  letter-spacing: -0.005em;
}
.hero__actions {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.hero__scroll {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, rgba(255,255,255,.7), rgba(255,255,255,0));
  animation: scrollHint 2s ease-in-out infinite;
}
@keyframes scrollHint {
  0%, 100% { transform: scaleY(0.3); transform-origin: top; opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* ── Section wrapper defaults ── */
section {
  padding: 96px 32px;
}
.eyebrow + .section-title {
  margin-top: 0;
}

/* ── 360 Rotator ── */
.showcase {
  background: var(--c-white);
  text-align: center;
}
.showcase__head { max-width: 720px; margin: 0 auto 56px; }
.showcase__head .section-sub { margin-left: auto; margin-right: auto; }

.rotator {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  perspective: 1400px;
  user-select: none;
}
.rotator__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: radial-gradient(ellipse at center, #F8FAFC 0%, var(--c-white) 70%);
  border-radius: var(--r-card);
  overflow: hidden;
  cursor: grab;
}
.rotator__stage:active { cursor: grabbing; }
.rotator__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transform: rotateY(-30deg) scale(0.94);
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease), filter 0.9s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}
.rotator__img.is-active {
  opacity: 1;
  transform: rotateY(0deg) scale(1);
}
.rotator__img.is-prev {
  opacity: 0;
  transform: rotateY(30deg) scale(0.94);
}

.rotator__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.85);
  border: 1px solid var(--c-cloud);
  font-size: 28px;
  color: var(--c-carbon);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  z-index: 3;
  transition: background var(--t-ui), transform var(--t-ui);
}
.rotator__arrow:hover { background: var(--c-white); transform: translateY(-50%) scale(1.05); }
.rotator__arrow--left  { left: 16px; }
.rotator__arrow--right { right: 16px; }

.rotator__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--c-silver);
  border: none;
  padding: 0;
  transition: background var(--t-ui), transform var(--t-ui);
}
.dot.is-active { background: var(--c-carbon); transform: scale(1.4); }

.rotator__hint {
  margin-top: 16px;
  font-size: 12px;
  color: var(--c-fog);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ── Trims (3 phiên bản với 3D tilt) ── */
.trims {
  background: var(--c-ash);
  text-align: center;
}
.trims__head { margin-bottom: 56px; }
.trims__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  perspective: 1500px;
}
.tilt-card {
  position: relative;
  background: var(--c-white);
  border-radius: var(--r-card);
  padding: 32px 24px;
  text-align: left;
  transform-style: preserve-3d;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  will-change: transform;
  cursor: pointer;
}
.tilt-card:hover {
  box-shadow: 0 25px 60px -20px rgba(23,26,32,0.18);
}
.tilt-card.highlight {
  background: linear-gradient(180deg, #FFFFFF 0%, #F5F8FF 100%);
  border: 1px solid rgba(62,106,225,0.15);
}
.tilt-card__inner {
  transform-style: preserve-3d;
  transform: translateZ(0);
}
.tilt-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: contain;
  margin-bottom: 16px;
  transform: translateZ(40px);
  transition: transform 0.4s var(--ease);
}
.tilt-card h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--c-carbon);
  margin: 8px 0;
  transform: translateZ(30px);
}
.tilt-card .price {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, #3E6AE1, #6F95FF);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0 0 16px;
  transform: translateZ(30px);
}
.tilt-card .bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  font-size: 13px;
  color: var(--c-pewter);
}
.tilt-card .bullets li {
  padding: 6px 0;
  border-bottom: 1px solid var(--c-cloud);
}
.tilt-card .bullets li:last-child { border-bottom: none; }
.tilt-card .links {
  display: flex;
  gap: 18px;
  transform: translateZ(20px);
}
.tilt-card .links a {
  color: var(--c-pewter);
  font-size: 14px;
  position: relative;
  transition: color var(--t-ui);
}
.tilt-card .links a::after {
  content: ' →';
  opacity: 0;
  margin-left: -10px;
  transition: all var(--t-ui);
}
.tilt-card .links a:hover { color: var(--c-blue); }
.tilt-card .links a:hover::after { opacity: 1; margin-left: 4px; }
.ribbon {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--c-blue);
  color: var(--c-white);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  transform: translateZ(50px);
  z-index: 2;
}

/* ── Quote section ── */
.quote { background: var(--c-white); }
.quote__head { max-width: 1200px; margin: 0 auto 56px; text-align: center; }
.quote__head .section-sub { margin-left: auto; margin-right: auto; }
.quote__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
}

/* Forms */
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}
.field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--c-carbon);
  letter-spacing: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.field__hint {
  font-weight: 400;
  color: var(--c-pewter);
  font-size: 13px;
}
.field__hint b { color: var(--c-blue); font-weight: 600; }

.field select,
.field input[type=text],
.field input[type=number] {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 44px;
  padding: 0 14px;
  font-family: inherit;
  font-size: 14px;
  color: var(--c-carbon);
  background: var(--c-white);
  border: 1px solid var(--c-cloud);
  border-radius: var(--r-btn);
  transition: border-color var(--t-ui), box-shadow var(--t-ui);
}
.field select {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='none' stroke='%23393C41' stroke-width='1.5' d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.field select:focus,
.field input:focus {
  outline: none;
  border-color: var(--c-blue);
  box-shadow: 0 0 0 3px rgba(62,106,225,0.15);
}
.field input[readonly] {
  background: var(--c-ash);
  color: var(--c-pewter);
  font-style: italic;
}

.radio-row { display: flex; gap: 16px; }
.radio-row label,
.checks label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--c-ash);
  border-radius: var(--r-btn);
  font-size: 13px;
  color: var(--c-graphite);
  cursor: pointer;
  transition: background var(--t-ui);
}
.radio-row label { flex: 1; justify-content: center; }
.radio-row label:hover, .checks label:hover { background: var(--c-cloud); }
.radio-row input, .checks input {
  accent-color: var(--c-blue);
  margin: 0;
}
.checks {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Swatches — VinFast style: flat circles, ring on active */
.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.swatch {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  padding: 0;
  cursor: pointer;
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: 0 0 0 0 rgba(62,106,225,0);
  transition:
    outline-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    transform 0.25s var(--ease);
}
.swatch:hover {
  transform: translateY(-1px);
  outline-color: rgba(62,106,225,0.35);
}
.swatch.is-active {
  outline-color: var(--c-blue);
  box-shadow: 0 0 0 2px rgba(62,106,225,0.35);
}

/* Range slider */
input[type=range] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: var(--c-cloud);
  border-radius: 999px;
  outline: none;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--c-blue);
  border: 3px solid var(--c-white);
  box-shadow: 0 2px 8px rgba(62,106,225,0.4);
  cursor: pointer;
  transition: transform var(--t-ui);
}
input[type=range]::-webkit-slider-thumb:hover { transform: scale(1.2); }
input[type=range]::-moz-range-thumb {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--c-blue);
  border: 3px solid var(--c-white);
  cursor: pointer;
}

/* Pills */
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pills button {
  flex: 1;
  min-width: 60px;
  height: 38px;
  padding: 0 14px;
  background: var(--c-white);
  border: 1px solid var(--c-cloud);
  border-radius: var(--r-btn);
  font-size: 13px;
  font-weight: 500;
  color: var(--c-graphite);
  transition: all var(--t-ui);
}
.pills button:hover { border-color: var(--c-blue); color: var(--c-blue); }
.pills button.is-active {
  background: var(--c-blue);
  color: var(--c-white);
  border-color: var(--c-blue);
}

.rate-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.rate-row input { flex: 1; }
.rate-row span { font-size: 13px; color: var(--c-pewter); }
.rate-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.rate-presets button {
  padding: 6px 12px;
  font-size: 12px;
  background: var(--c-ash);
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--c-graphite);
  transition: all var(--t-ui);
}
.rate-presets button:hover { background: var(--c-cloud); }
.rate-presets button.is-active {
  background: var(--c-blue);
  color: var(--c-white);
}

/* Quote result panel */
.qresult {
  position: sticky;
  top: calc(var(--nav-h) + 16px);
}
.qresult__inner {
  background: var(--c-ash);
  border-radius: var(--r-card);
  padding: 28px;
}
.qresult h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  color: var(--c-carbon);
  margin: 0 0 20px;
}

/* ── Car preview (borderless, floating) ── */
.car-preview {
  position: relative;
  margin: -4px 0 22px;
  background: transparent;
}
.car-preview__stage {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: clamp(280px, 38vw, 460px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}
/* let the preview spill wider than the padded panel for a bigger hero feel */
.car-preview {
  margin-left: -18px;
  margin-right: -18px;
}
/* soft colored floor-glow tinted by selected color */
.car-preview__glow {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 14%;
  height: 26%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, var(--car-color, #B91C1C) 0%, transparent 70%);
  opacity: 0.28;
  filter: blur(34px);
  transition: background 0.6s ease, opacity 0.6s ease;
  z-index: 0;
  pointer-events: none;
}
.car-preview__img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 18px 26px rgba(23,26,32,0.20));
  transition: opacity 0.32s var(--ease), transform 0.6s var(--ease);
  transform-style: preserve-3d;
}
.car-preview__img.is-swapping {
  opacity: 0;
  transform: scale(0.985);
}
.car-preview:hover .car-preview__img {
  transform: scale(1.03) translateY(-3px);
}
/* meta: clean inline row, no glass pill */
.car-preview__meta {
  position: relative;
  z-index: 2;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.car-preview__swatch {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex: none;
  background: var(--car-color, #B91C1C);
  box-shadow:
    inset 0 -1px 2px rgba(0,0,0,0.25),
    inset 0 1px 1px rgba(255,255,255,0.45),
    0 0 0 2px var(--c-white),
    0 0 10px var(--car-color, #B91C1C);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
.car-preview__name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--c-carbon);
  letter-spacing: -0.01em;
}
.brk { display: flex; flex-direction: column; }
.brk__row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--c-cloud);
}
.brk__row .lbl { color: var(--c-graphite); }
.brk__row .val { color: var(--c-carbon); font-variant-numeric: tabular-nums; }
.brk__row.is-discount .val { color: var(--c-blue); }
.brk__row.is-total {
  border-top: 2px solid var(--c-carbon);
  border-bottom: none;
  padding-top: 14px;
  margin-top: 6px;
  font-weight: 600;
}
.brk__row.is-total .val { font-size: 17px; }
.qresult__total {
  margin-top: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--c-silver);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.qresult__total .label {
  font-size: 13px;
  color: var(--c-pewter);
}
.qresult__total .value {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, #3E6AE1 0%, #6F95FF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.qresult__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}
.qresult__actions .btn-primary,
.qresult__actions .btn-secondary { width: 100%; min-width: 0; }
.note {
  font-size: 12px;
  color: var(--c-pewter);
  margin: 12px 0 0;
}

/* ── Loan ── */
.loan { background: var(--c-ash); }
.loan__head { text-align: center; max-width: 800px; margin: 0 auto 56px; }
.loan__head .section-sub { margin-left: auto; margin-right: auto; }
.loan__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  max-width: 1280px;
  margin: 0 auto;
  align-items: start;
}
.lform {
  background: var(--c-white);
  padding: 32px;
  border-radius: var(--r-card);
}
.lresult {
  background: var(--c-white);
  border-radius: var(--r-card);
  padding: 32px;
  position: sticky;
  top: calc(var(--nav-h) + 16px);
}
.lresult__hero {
  text-align: center;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--c-cloud);
}
.lresult__hero .label { font-size: 12px; color: var(--c-pewter); margin: 0; letter-spacing: 0.08em; text-transform: uppercase; }
.lresult__hero .big {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 600;
  margin: 8px 0;
  font-variant-numeric: tabular-nums;
}
.lresult__mini {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--c-cloud);
  margin: 0 0 24px;
}
.lresult__mini > div {
  background: var(--c-white);
  padding: 16px 8px;
  text-align: center;
}
.lresult__mini span { display: block; font-size: 11px; color: var(--c-pewter); letter-spacing: 0.05em; text-transform: uppercase; }
.lresult__mini b {
  display: block;
  margin-top: 6px;
  font-size: 15px;
  color: var(--c-carbon);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.chart-wrap {
  height: 260px;
  margin: 8px 0 16px;
}

.table-wrap {
  max-height: 320px;
  overflow-y: auto;
  border: 1px solid var(--c-cloud);
  border-radius: var(--r-btn);
  margin: 12px 0;
}
.ltable {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.ltable th, .ltable td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--c-cloud);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.ltable th {
  background: var(--c-ash);
  font-weight: 500;
  color: var(--c-graphite);
  position: sticky;
  top: 0;
}
.ltable th:first-child, .ltable td:first-child { text-align: center; }

.lresult__cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}
.lresult__cta .btn-primary,
.lresult__cta .btn-secondary { width: 100%; min-width: 0; }

/* ── Gallery 3D tilt cards ── */
.gallery { background: var(--c-white); }
.gallery__head { text-align: center; margin-bottom: 56px; }
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 1fr 1fr;
  gap: 16px;
  max-width: 1280px;
  margin: 0 auto;
  perspective: 1400px;
}
.cat-card {
  position: relative;
  background: var(--c-ash);
  background-size: cover;
  background-position: center;
  border-radius: var(--r-card);
  overflow: hidden;
  aspect-ratio: 4/3;
  display: block;
  transform-style: preserve-3d;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  will-change: transform;
}
.cat-card--lg {
  grid-column: span 1;
  grid-row: span 2;
  aspect-ratio: auto;
}
.cat-card:hover {
  box-shadow: 0 30px 80px -20px rgba(23,26,32,0.3);
}
.cat-card__label {
  position: absolute;
  top: 20px;
  left: 24px;
  color: var(--c-white);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
  z-index: 2;
  transform: translateZ(30px);
}
.cat-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0) 60%);
  pointer-events: none;
}

/* ── Contact ── */
.contact {
  text-align: center;
  background: var(--c-carbon);
  color: var(--c-white);
  padding: 120px 32px;
}
.contact .section-title { color: var(--c-white); }
.contact .section-sub { color: rgba(255,255,255,0.7); margin: 16px auto 32px; }
.contact__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.contact .btn-secondary {
  background: transparent;
  color: var(--c-white);
  border-color: rgba(255,255,255,0.3);
}
.contact .btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--c-white);
}

/* ── Footer ── */
.footer {
  padding: 32px;
  text-align: center;
  font-size: 12px;
  color: var(--c-pewter);
  background: var(--c-carbon);
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer p { margin: 0; }

/* ── Chat Bar ── */
.chat-bar {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  background: var(--c-white);
  border: 1px solid var(--c-cloud);
  border-radius: 999px;
  padding: 6px 6px 6px 20px;
  display: flex;
  gap: 12px;
  align-items: center;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  max-width: calc(100% - 32px);
}
.chat-bar__input {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 280px;
}
.chat-bar__icon { font-size: 16px; }
.chat-bar__input input {
  border: none;
  outline: none;
  font-size: 14px;
  width: 240px;
  background: transparent;
  color: var(--c-carbon);
}
.chat-bar__input input::placeholder { color: var(--c-fog); }
.chat-bar__send {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--c-ash);
  border: none;
  color: var(--c-carbon);
  transition: background var(--t-ui);
}
.chat-bar__send:hover { background: var(--c-cloud); }
.chat-bar__cta {
  height: 38px;
  min-width: 0;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.dot-accent {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 0 4px rgba(16,185,129,0.2);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(16,185,129,0.2); }
  50%       { box-shadow: 0 0 0 8px rgba(16,185,129,0); }
}

/* ── Reveal animations ── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .quote__grid, .loan__grid { grid-template-columns: 1fr; }
  .qresult, .lresult { position: static; }
  .trims__grid { grid-template-columns: 1fr; gap: 16px; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .cat-card--lg { grid-column: span 2; grid-row: span 1; aspect-ratio: 16/9; }
}
@media (max-width: 768px) {
  section { padding: 64px 20px; }
  .nav { padding: 0 16px; }
  .nav__links { display: none; }
  .hero__title { font-size: 56px; }
  .hero__promo { font-size: 15px; padding: 0 16px; }
  .section-title { font-size: 30px; }
  .gallery__grid { grid-template-columns: 1fr; }
  .cat-card--lg { grid-column: span 1; }
  .chat-bar { bottom: 8px; padding: 4px 4px 4px 14px; }
  .chat-bar__input input { width: 140px; }
  .chat-bar__cta { display: none; }
  .lresult__mini { grid-template-columns: 1fr; }
  .lresult__mini > div { padding: 12px; }
  .lresult__hero .big { font-size: 32px; }
  .hero__actions .btn-primary,
  .hero__actions .btn-secondary { min-width: 0; width: 100%; max-width: 280px; }
}

/* ── VinFast-style color picker additions ───────────────── */
.swatch-group { display: flex; flex-direction: column; gap: 10px; }
.swatch-group__title {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--c-pewter);
  display: flex;
  align-items: center;
  gap: 10px;
}
.swatch-group__title--mt { margin-top: 8px; }
.badge-soon {
  font-size: 10px;
  letter-spacing: 0.12em;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--c-ash);
  color: var(--c-pewter);
  font-weight: 500;
  text-transform: none;
}
.swatch__hint {
  font-size: 12px;
  color: var(--c-pewter);
  font-weight: 500;
  margin-left: 8px;
}
.swatch--two {
  border: 1px solid rgba(0,0,0,0.10);
}

/* BIG variant label above car — VinFast vf8-signature__variant-label */
.car-preview__variant-label {
  margin: 4px 0 6px;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--c-carbon);
  text-align: center;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.car-preview__variant-label.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* Smoother, longer swap transition (VinFast spec ~0.35-0.45s) */
.car-preview__img {
  transition: opacity 0.42s var(--ease), transform 0.6s var(--ease) !important;
}
.car-preview__img.is-swapping {
  opacity: 0 !important;
  transform: scale(0.975) translateY(2px) !important;
}

/* Dark cinematic panel behind the preview */
.car-preview {
  padding: 18px 18px 22px;
  border-radius: 18px;
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(62,106,225,0.08), transparent 60%),
    linear-gradient(180deg, #fafbfd 0%, #eef1f6 100%);
  border: 1px solid rgba(0,0,0,0.04);
  margin: 0;
}

/* ── NEW: full-width hero strip for the color picker ── */
.quote__hero {
  max-width: 1240px;
  margin: 36px auto 28px;
  padding: 0 28px;
}
.quote__hero .car-preview__stage {
  min-height: clamp(320px, 46vw, 560px);
}
.swatch-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px 64px;
  align-items: start;
  justify-content: center;
  margin: 22px auto 0;
  padding: 22px 28px;
  background: var(--c-ash);
  border-radius: 14px;
  max-width: 980px;
}
.swatch-bar__col { display: flex; flex-direction: column; gap: 12px; }
.swatch-bar__col .swatches { gap: 12px; }
.swatch-bar__hint {
  grid-column: 1 / -1;
  margin: 0;
  text-align: center;
  font-size: 13px;
  color: var(--c-pewter);
  letter-spacing: 0.02em;
}
.swatch-bar__hint b {
  color: var(--c-carbon);
  font-weight: 600;
  font-family: var(--font-display);
}

/* Form section title (matches breakdown title) */
.qform__title {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--c-pewter);
  margin: 0 0 18px;
}

@media (max-width: 720px) {
  .quote__hero { padding: 0 14px; margin: 18px auto 18px; }
  .swatch-bar { grid-template-columns: 1fr; gap: 22px; padding: 16px; }
}

/* Two-layer car: body (full) + roof (masked) */
.car-preview__stage { position: relative; }
.car-layer--body { position: relative; z-index: 1; }
.car-layer--roof {
  position: absolute !important;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(0 18px 26px rgba(23,26,32,0.20));
  -webkit-mask-image: linear-gradient(180deg,
      #000 0,
      #000 calc(var(--roof-end, 40%) - 2%),
      transparent calc(var(--roof-end, 40%) + 2%));
          mask-image: linear-gradient(180deg,
      #000 0,
      #000 calc(var(--roof-end, 40%) - 2%),
      transparent calc(var(--roof-end, 40%) + 2%));
  transition: opacity 0.42s var(--ease), transform 0.6s var(--ease);
}
.car-layer--roof.is-swapping {
  opacity: 0;
  transform: scale(0.975) translateY(2px);
}

/* Angle pills under the preview */
.car-preview__angles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 4px 0 10px;
}
.ang-pill {
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--c-pewter);
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.22s var(--ease);
  letter-spacing: 0.02em;
}
.ang-pill:hover {
  color: var(--c-blue);
  border-color: rgba(62,106,225,0.35);
}
.ang-pill.is-active {
  background: var(--c-carbon);
  color: #fff;
  border-color: var(--c-carbon);
}

/* Mobile completion patch - O2O */
html,
body {
  overflow-x: hidden;
}

@media (max-width: 768px) {
  body { padding-bottom: 0; }

  .nav {
    height: 62px;
    padding: 0 14px;
    gap: 10px;
  }
  .nav__wordmark {
    min-width: 0;
    max-width: calc(100vw - 92px);
    gap: 8px;
  }
  .nav__logo-mark {
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
  }
  .nav__brand { min-width: 0; }
  .nav__logo-text {
    font-size: 22px;
    letter-spacing: 0.06em;
  }
  .nav__logo-sub {
    max-width: 148px;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 7px;
    letter-spacing: 0.04em;
  }
  .nav__icons { gap: 2px; flex: 0 0 auto; }
  .nav__icon {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
  .nav__icon:nth-child(2) { display: none; }

  .tool-hero {
    min-height: auto;
    padding: 94px 16px 46px;
  }
  .tool-hero__inner { gap: 14px; }
  .tool-hero__promo {
    width: 100%;
    max-width: 360px;
    padding: 8px 12px;
    border-radius: 14px;
    font-size: 12px;
    line-height: 1.35;
  }
  .tool-hero__title {
    font-size: 40px;
    line-height: 1.04;
    letter-spacing: -0.02em;
  }
  .tool-hero__sub {
    font-size: 14px;
    line-height: 1.5;
  }
  .tool-hero__chips {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-top: 8px;
  }
  .tool-chip {
    justify-content: flex-start;
    width: 100%;
    padding: 11px 14px;
    border-radius: 14px;
  }

  .quote__head,
  .loan__head,
  .gallery__head { margin-bottom: 28px; }
  .section-sub { font-size: 14px; }

  .quote__hero {
    width: 100%;
    padding: 0;
    margin: 18px auto 22px;
  }
  .car-preview {
    margin-left: 0;
    margin-right: 0;
    padding: 12px 8px 14px;
    border-radius: 12px;
  }
  .quote__hero .car-preview__stage,
  .car-preview__stage {
    min-height: 204px;
    aspect-ratio: 16 / 10;
  }
  .car-preview__img {
    width: 100%;
    max-width: 100%;
  }
  .car-preview:hover .car-preview__img { transform: none; }
  .car-preview__variant-label {
    margin-top: 0;
    font-size: 22px;
  }
  .car-preview__angles {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    margin: 6px 0 4px;
  }
  .ang-pill {
    width: 100%;
    min-width: 0;
    padding: 8px 4px;
    font-size: 11px;
    white-space: nowrap;
  }

  .swatch-bar {
    width: 100%;
    margin-top: 14px;
    padding: 14px;
    gap: 18px;
    border-radius: 12px;
  }
  .swatch-bar__col { align-items: center; }
  .swatch-bar__col .swatches,
  .swatches {
    justify-content: center;
    gap: 12px;
  }
  .swatch {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
  }
  .swatch-group__title {
    justify-content: center;
    text-align: center;
    font-size: 10px;
    letter-spacing: 0.16em;
  }

  .quote__grid,
  .loan__grid {
    gap: 20px;
  }
  .qform,
  .qresult__inner,
  .lform,
  .lresult {
    padding: 20px;
    border-radius: 14px;
  }
  .field { margin-bottom: 18px; }
  .field label {
    align-items: flex-start;
    gap: 6px;
    line-height: 1.35;
  }
  .field__hint { font-size: 12px; }
  .radio-row {
    flex-direction: column;
    gap: 8px;
  }
  .radio-row label,
  .checks label {
    justify-content: flex-start;
    align-items: flex-start;
    line-height: 1.35;
  }
  .field select,
  .field input[type=text],
  .field input[type=number] {
    min-height: 44px;
    height: auto;
  }
  .qresult__total {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
  .qresult__total .value,
  .lresult__hero .big {
    font-size: 29px;
    line-height: 1.1;
    overflow-wrap: anywhere;
  }
  .brk__row {
    gap: 12px;
    font-size: 13px;
  }
  .brk__row .val { text-align: right; }
  .qresult__actions .btn-primary,
  .qresult__actions .btn-secondary,
  .lresult__cta .btn-primary,
  .lresult__cta .btn-secondary {
    min-height: 44px;
    padding-left: 12px;
    padding-right: 12px;
    white-space: normal;
  }

  .pills button { min-width: calc(33.333% - 6px); }
  .rate-row { align-items: stretch; }
  .rate-presets button { flex: 1 1 calc(50% - 4px); }
  .chart-wrap { height: 220px; }
  .table-wrap { overflow-x: auto; }
  .ltable { min-width: 560px; }

  .gallery__grid { gap: 12px; }
  .cat-card,
  .cat-card--lg {
    aspect-ratio: 16 / 10;
    min-height: 210px;
  }
  .cat-card__label {
    top: 16px;
    left: 16px;
    font-size: 18px;
  }

  .contact {
    padding: 72px 20px;
  }
  .contact__actions {
    flex-direction: column;
    align-items: stretch;
    max-width: 360px;
    margin: 0 auto;
  }
  .contact__actions .btn-primary,
  .contact__actions .btn-secondary {
    width: 100%;
    min-width: 0;
    justify-content: center;
    white-space: normal;
    min-height: 46px;
  }

  .chat-bar { display: none; }
}

@media (max-width: 420px) {
  section { padding-left: 14px; padding-right: 14px; }
  .nav__logo-sub { display: none; }
  .nav__icon:nth-child(3) { display: none; }
  .tool-hero__title { font-size: 35px; }
  .quote__hero .car-preview__stage,
  .car-preview__stage { min-height: 178px; }
  .car-preview__angles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ang-pill { font-size: 12px; }
  .qform,
  .qresult__inner,
  .lform,
  .lresult { padding: 16px; }
  .qresult__total .value,
  .lresult__hero .big { font-size: 25px; }
}