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

* {
  margin: 0;
}

:root {
  --ink: #0f172a;
  --ink-2: #1e293b;
  --muted: #475569;
  --quiet: #64748b;
  --line: #d7dde8;
  --line-dark: rgba(255, 255, 255, 0.14);
  --paper: #f8fafc;
  --surface: #ffffff;
  --surface-2: #eef2f7;
  --red: #dc2626;
  --red-dark: #b91c1c;
  --green: #0f766e;
  --amber: #b45309;
  --blue: #1d4ed8;
  --shadow: 0 18px 55px rgba(15, 23, 42, 0.12);
  --shadow-strong: 0 28px 90px rgba(15, 23, 42, 0.22);
  --radius: 8px;
  --font: "DM Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body::selection {
  background: rgba(220, 38, 38, 0.18);
}

button,
input,
select {
  font: inherit;
}

button,
a[href] {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.icon {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

.is-spinning {
  animation: spin 0.9s linear infinite;
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 30;
  width: min(1180px, calc(100% - 32px));
  height: 64px;
  margin: 16px auto -80px;
  padding: 7px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.78);
  color: #fff;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.22);
  backdrop-filter: blur(18px);
}

.brand,
.header-cta {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  gap: 10px;
}

.brand {
  padding: 0 12px 0 8px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: #fff;
  color: var(--red);
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.nav-links a,
.header-cta {
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.76);
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.nav-links a {
  padding: 10px 12px;
  font-size: 0.92rem;
  font-weight: 700;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.header-cta {
  justify-self: end;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.92rem;
  font-weight: 800;
}

.header-cta:hover,
.header-cta:focus-visible {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  color: var(--ink);
  background: transparent;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
}

.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 14px 28px rgba(220, 38, 38, 0.24);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--red-dark);
  color: #fff;
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.13);
}

.btn-muted {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

.btn-muted:hover,
.btn-muted:focus-visible {
  border-color: #b9c2d2;
  background: #f8fafc;
}

.hero-shell {
  position: relative;
  overflow: hidden;
  padding: 122px 24px 36px;
  color: #fff;
  background:
    linear-gradient(115deg, rgba(220, 38, 38, 0.2), transparent 34%),
    linear-gradient(145deg, #0f172a 0%, #111827 52%, #2b1d1d 100%);
}

.hero-shell::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.92), transparent 78%);
}

.hero-grid,
.search-panel,
.content-section,
.journey-section,
.closing-inner,
.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 0.92fr);
  align-items: center;
  gap: 48px;
  padding: 28px 0 28px;
}

.hero-copy {
  max-width: 690px;
}

.eyebrow,
.section-kicker,
.panel-badge,
.listing-source,
.progress-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.eyebrow {
  margin-bottom: 22px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.84);
}

.hero-copy h1 {
  max-width: 700px;
  font-size: 4.35rem;
  line-height: 0.95;
  font-weight: 900;
}

.hero-subtitle {
  max-width: 620px;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.17rem;
}

.hero-actions,
.panel-actions,
.closing-actions,
.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin-top: 30px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 540px;
  margin-top: 34px;
}

.stat {
  min-height: 90px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}

.stat strong {
  display: block;
  font-size: 1.78rem;
  line-height: 1;
  color: #fff;
}

.stat span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.88rem;
  font-weight: 700;
}

.hero-visual {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: #111827;
  box-shadow: var(--shadow-strong);
}

.hero-car {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.hero-sheen {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.78)),
    linear-gradient(90deg, rgba(15, 23, 42, 0.78), transparent 52%);
}

.floating-score,
.floating-route {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.74);
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 46px rgba(15, 23, 42, 0.22);
}

.floating-score {
  right: 18px;
  bottom: 18px;
  padding: 12px;
}

.floating-route {
  left: 18px;
  top: 18px;
  padding: 11px 13px;
  color: rgba(255, 255, 255, 0.84);
  font-weight: 800;
}

.score-ring {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: conic-gradient(var(--red) 0 82%, rgba(255, 255, 255, 0.18) 82% 100%);
  color: #fff;
  font-size: 1.18rem;
  font-weight: 900;
}

.floating-score strong,
.floating-score span {
  display: block;
}

.floating-score span:not(.score-ring) {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.9rem;
  font-weight: 700;
}

.search-panel {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 20px;
  margin-top: 20px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  background: rgba(248, 250, 252, 0.96);
  color: var(--ink);
  box-shadow: var(--shadow-strong);
}

.panel-heading,
.results-header,
.loading-copy {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.panel-heading h2,
.results-header h2,
.loading-copy h2 {
  margin-top: 2px;
  font-size: 1.56rem;
  line-height: 1.1;
}

.section-kicker {
  color: var(--red);
}

.panel-badge {
  padding: 8px 10px;
  border-radius: var(--radius);
  background: #fee2e2;
  color: var(--red-dark);
  white-space: nowrap;
}

.preset-row,
.tag-row,
.mini-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.preset-chip,
.feature-chip,
.result-tag,
.mini-tags span,
.marquee-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.preset-chip {
  padding: 0 10px;
  font-size: 0.88rem;
}

.preset-chip .icon {
  width: 14px;
  height: 14px;
}

.preset-chip:hover,
.preset-chip:focus-visible {
  border-color: #b9c2d2;
  background: #f8fafc;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.field {
  display: grid;
  gap: 7px;
  grid-column: span 2;
}

.field span,
.feature-fieldset legend {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.field input,
.field select,
.field textarea,
.clarification-field input {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.field textarea {
  min-height: 136px;
  padding: 12px;
  resize: vertical;
  font: inherit;
  line-height: 1.45;
}

.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #475569 50%), linear-gradient(135deg, #475569 50%, transparent 50%);
  background-position: calc(100% - 18px) 20px, calc(100% - 13px) 20px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.clarification-field input:focus {
  border-color: rgba(220, 38, 38, 0.72);
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1);
}

.panel-error {
  margin: -4px 0 0;
  color: var(--red-dark);
  font-size: 0.9rem;
  font-weight: 800;
}

.clarification-box {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(220, 38, 38, 0.22);
  border-radius: var(--radius);
  background: #fff7f7;
}

.clarification-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.clarification-header .icon {
  width: 18px;
  height: 18px;
  color: var(--red);
}

.clarification-header strong,
.clarification-header span,
.clarification-field span {
  display: block;
}

.clarification-header strong {
  color: var(--ink);
  font-size: 0.95rem;
}

.clarification-header span,
.clarification-field span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.clarification-grid {
  display: grid;
  gap: 10px;
}

.clarification-field {
  display: grid;
  gap: 7px;
}

.feature-fieldset {
  display: grid;
  gap: 10px;
  padding: 0;
  border: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.feature-chip {
  justify-content: flex-start;
  padding: 0 10px;
  min-width: 0;
  font-size: 0.84rem;
}

.feature-chip span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feature-chip:hover,
.feature-chip:focus-visible,
.feature-chip.is-active {
  border-color: rgba(220, 38, 38, 0.38);
  background: #fff1f2;
  color: var(--red-dark);
}

.chip-check,
.chip-dot {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
}

.chip-dot {
  border: 1px solid #c5cfdd;
  border-radius: 50%;
}

.panel-actions .btn-primary {
  min-width: 230px;
}

.marquee-band {
  overflow: hidden;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.native-marquee {
  width: 100%;
  overflow: hidden;
}

.marquee-track {
  display: inline-flex;
  width: max-content;
  gap: 10px;
  padding-inline: 10px;
}

.marquee-pill {
  min-width: max-content;
  padding: 0 14px;
  color: var(--muted);
  background: #f8fafc;
}

.pill-line {
  width: 18px;
  height: 2px;
  background: var(--red);
}

.content-section {
  padding: 84px 0;
}

.section-header {
  max-width: 700px;
  margin-bottom: 28px;
}

.section-header h2 {
  margin-top: 8px;
  font-size: 2.8rem;
  line-height: 1;
  font-weight: 900;
}

.section-header > p:last-child {
  margin-top: 14px;
  color: var(--muted);
  font-size: 1.05rem;
}

.proof-grid,
.review-grid,
.car-grid {
  display: grid;
  gap: 14px;
}

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

.proof-card,
.workflow-card,
.review-card,
.car-card,
.loading-shell,
.error-shell,
.closing-inner {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.proof-card,
.review-card {
  padding: 22px;
}

.proof-icon,
.workflow-icon,
.loading-icon,
.error-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
}

.proof-icon {
  background: #eff6ff;
  color: var(--blue);
}

.proof-card h3,
.workflow-card h3 {
  margin-top: 18px;
  font-size: 1.18rem;
}

.proof-card p,
.workflow-card p,
.review-card p,
.error-shell p,
.results-meta {
  margin-top: 9px;
  color: var(--muted);
}

.journey-section {
  scroll-margin-top: 124px;
}

.journey-section:not(.is-idle) {
  padding-top: 96px;
}

.journey-section.is-idle {
  height: 1px;
  overflow: hidden;
}

.loading-shell,
.results-shell,
.error-shell {
  margin: 0 0 20px;
}

.loading-shell,
.error-shell {
  padding: 24px;
}

.loading-icon {
  background: #fee2e2;
  color: var(--red);
}

.progress-list {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.progress-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fafc;
}

.progress-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
}

.progress-item.running .progress-dot {
  background: var(--amber);
  box-shadow: 0 0 0 5px rgba(180, 83, 9, 0.12);
}

.progress-item.done .progress-dot {
  background: var(--green);
}

.progress-item.failed .progress-dot {
  background: var(--red);
}

.progress-name {
  font-weight: 800;
}

.progress-status {
  color: var(--quiet);
}

.results-shell {
  padding: 0;
}

.results-header {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.tag-row {
  margin: 14px 0;
}

.result-tag,
.mini-tags span {
  min-height: 32px;
  padding: 0 10px;
  color: var(--muted);
  font-size: 0.82rem;
}

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

.car-card {
  overflow: hidden;
}

.car-card-top {
  position: relative;
  min-height: 214px;
  background: #111827;
}

.car-image,
.car-image-fallback {
  width: 100%;
  height: 214px;
  object-fit: cover;
}

.car-image-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.45);
  background: linear-gradient(135deg, #111827, #334155);
}

.car-image-fallback .icon {
  width: 42px;
  height: 42px;
}

.score-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  justify-items: center;
  min-width: 68px;
  padding: 8px 10px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.22);
}

.score-badge strong {
  font-size: 1.45rem;
  line-height: 1;
}

.score-badge span {
  color: var(--quiet);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.score-badge.high strong {
  color: var(--green);
}

.score-badge.mid strong {
  color: var(--amber);
}

.score-badge.low strong {
  color: var(--red);
}

.car-card-body {
  display: grid;
  gap: 13px;
  padding: 18px;
}

.listing-source {
  justify-content: space-between;
  color: var(--quiet);
}

.car-card h3 {
  min-height: 54px;
  font-size: 1.18rem;
  line-height: 1.15;
}

.listing-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.listing-facts span {
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.ai-summary {
  color: var(--muted);
  font-size: 0.94rem;
}

.breakdown {
  display: grid;
  gap: 8px;
}

.breakdown-row {
  display: grid;
  grid-template-columns: 96px 1fr 28px;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 800;
}

.bar-track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}

.bar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--red), #f97316);
}

.listing-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 42px;
  padding: 0 12px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  font-weight: 900;
  transition: background-color 180ms ease;
}

.listing-link:hover,
.listing-link:focus-visible {
  background: var(--red-dark);
}

.content-section.workflow-section {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
  padding: 104px 0 112px;
  box-sizing: border-box;
}

.workflow-section .section-header {
  max-width: 720px;
  margin-bottom: 52px;
}

.workflow-section .section-header h2 {
  margin-top: 10px;
}

.workflow-section .section-header > p:last-child {
  margin-top: 16px;
  line-height: 1.65;
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  width: 100%;
  padding: 4px 2px 0;
}

.workflow-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: 36px 34px 40px;
  overflow: hidden;
}

.workflow-card::after {
  position: absolute;
  right: -32px;
  bottom: -54px;
  width: 150px;
  height: 150px;
  content: "";
  border: 1px solid rgba(220, 38, 38, 0.2);
  transform: rotate(18deg);
  pointer-events: none;
}

.workflow-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.workflow-index {
  color: #cbd5e1;
  font-size: 2.85rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
}

.workflow-icon {
  flex-shrink: 0;
  margin-top: 0;
  background: #fee2e2;
  color: var(--red);
}

.workflow-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  margin-top: 32px;
}

.workflow-card-body h3 {
  margin: 0;
  font-size: 1.22rem;
  line-height: 1.2;
}

.workflow-card-body p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

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

.review-card {
  min-height: 236px;
}

.stars {
  display: flex;
  gap: 4px;
  color: #f59e0b;
}

.star-icon {
  width: 17px;
  height: 17px;
}

.review-card p {
  color: var(--ink-2);
  font-size: 1.04rem;
}

.reviewer {
  margin-top: 18px;
}

.reviewer strong,
.reviewer span {
  display: block;
}

.reviewer span {
  color: var(--quiet);
  font-size: 0.9rem;
  font-weight: 700;
}

.error-shell {
  text-align: center;
}

.error-icon {
  margin-inline: auto;
  background: #fee2e2;
  color: var(--red);
}

.error-shell h2 {
  margin-top: 8px;
  font-size: 1.8rem;
}

.error-actions {
  justify-content: center;
  margin-top: 20px;
}

.closing-cta {
  padding: 34px 0 108px;
}

.closing-inner {
  padding: 34px;
  color: #fff;
  background:
    linear-gradient(110deg, rgba(220, 38, 38, 0.22), transparent 42%),
    linear-gradient(135deg, #0f172a, #1e293b);
}

.closing-inner .section-kicker {
  color: #fca5a5;
}

.closing-inner h2 {
  max-width: 780px;
  margin-top: 8px;
  font-size: 2.7rem;
  line-height: 1;
}

.closing-actions {
  margin-top: 24px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 32px 0 max(76px, calc(48px + env(safe-area-inset-bottom)));
  color: var(--quiet);
  font-size: 0.92rem;
  font-weight: 700;
}

:focus-visible {
  outline: 3px solid rgba(220, 38, 38, 0.45);
  outline-offset: 3px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .nav-links {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-copy h1 {
    font-size: 3.25rem;
  }

  .hero-visual,
  .hero-car {
    min-height: 410px;
  }

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

  .proof-grid,
  .review-grid,
  .car-grid {
    grid-template-columns: 1fr 1fr;
  }

  .workflow-grid {
    grid-template-columns: 1fr 1fr;
    gap: 22px;
  }
}

@media (max-width: 720px) {
  .site-header {
    top: 10px;
    width: min(100% - 20px, 1180px);
    height: auto;
    margin-top: 10px;
    grid-template-columns: 1fr auto;
  }

  .brand {
    padding-right: 0;
  }

  .header-cta span {
    display: none;
  }

  .hero-shell {
    padding: 104px 14px 26px;
  }

  .hero-grid,
  .search-panel,
  .content-section,
  .journey-section,
  .closing-inner,
  .site-footer {
    width: min(100%, calc(100% - 4px));
  }

  .hero-copy h1 {
    font-size: 2.45rem;
    line-height: 1;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-actions .btn,
  .closing-actions .btn,
  .panel-actions .btn {
    width: 100%;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 330px;
  }

  .hero-car {
    min-height: 330px;
  }

  .floating-route {
    left: 12px;
    top: 12px;
  }

  .floating-score {
    right: 12px;
    bottom: 12px;
  }

  .search-panel {
    padding: 16px;
  }

  .panel-heading,
  .results-header,
  .loading-copy {
    display: grid;
  }

  .panel-badge {
    justify-self: start;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .field {
    grid-column: auto;
  }

  .feature-grid,
  .proof-grid,
  .workflow-grid,
  .review-grid,
  .car-grid {
    grid-template-columns: 1fr;
  }

  .section-header h2,
  .closing-inner h2 {
    font-size: 2rem;
    line-height: 1.05;
  }

  .content-section {
    padding: 58px 0;
  }

  .content-section.workflow-section {
    width: min(1180px, calc(100% - 32px));
    padding: 72px 0 80px;
  }

  .workflow-section .section-header {
    margin-bottom: 32px;
  }

  .workflow-grid {
    gap: 18px;
    padding: 0;
  }

  .workflow-card {
    min-height: auto;
    padding: 28px 24px 30px;
  }

  .workflow-card-body {
    margin-top: 24px;
  }

  .workflow-card-body p {
    margin-top: 12px;
  }

  .closing-cta {
    padding-bottom: 118px;
  }

  .results-header,
  .loading-shell,
  .error-shell,
  .closing-inner {
    padding: 18px;
  }

  .breakdown-row {
    grid-template-columns: 88px 1fr 26px;
  }

  .site-footer {
    display: grid;
  }
}

@media (max-width: 420px) {
  .brand {
    font-size: 0.95rem;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .hero-copy h1 {
    font-size: 2.1rem;
  }

  .floating-score {
    max-width: 210px;
  }

  .feature-chip {
    font-size: 0.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
