﻿:root {
  --page: #eaf3fb;
  --panel: #ffffff;
  --panel-strong: #ffffff;
  --text: #172331;
  --muted: #5f6f82;
  --line: rgba(16, 42, 67, 0.16);
  --brand: #1f4e79;
  --brand-dark: #102a43;
  --brand-mid: #2868a3;
  --brand-bright: #2f7cc0;
  --brand-soft: #eaf3fb;
  --brand-surface: #d8eaf8;
  --accent: #2f7cc0;
  --shadow: 0 16px 42px rgba(16, 42, 67, 0.14);
  --shadow-strong: 0 22px 60px rgba(16, 42, 67, 0.22);
  --radius-large: 20px;
  --radius-medium: 14px;
  --radius-small: 10px;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 15px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(47, 124, 192, 0.22), transparent 30rem),
    radial-gradient(circle at top right, rgba(16, 42, 67, 0.16), transparent 28rem),
    linear-gradient(180deg, #ffffff 0%, var(--brand-soft) 48%, #dcecf8 100%);
  color: var(--text);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.35;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  max-width: 100%;
}

.site-header {
  width: min(var(--max-width), calc(100% - 1rem));
  margin: 0.55rem auto 0;
  padding: 0.72rem 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  box-shadow: var(--shadow-strong);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.9rem;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 950;
  letter-spacing: -0.035em;
  text-decoration: none;
  white-space: nowrap;
}

.top-nav {
  display: none;
  align-items: center;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.9rem;
  font-weight: 850;
}

.top-nav a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.top-nav a:hover {
  color: #ffffff;
}

main {
  width: min(var(--max-width), calc(100% - 1rem));
  margin: 0 auto;
  padding: 0.8rem 0 2rem;
}

.hero-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  align-items: stretch;
  padding-top: 0.25rem;
}

.hero-card,
.qr-preview-card,
.section-block,
.info-panel,
.mini-list,
.price-card,
.form-card,
.review-card,
.vehicle-card,
.list-card {
  border: 1px solid rgba(31, 78, 121, 0.2);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.hero-card {
  border-radius: var(--radius-large);
  padding: 1rem;
  display: block;
  background:
    linear-gradient(135deg, rgba(16, 42, 67, 0.96), rgba(31, 78, 121, 0.94));
  color: #ffffff;
  box-shadow: var(--shadow-strong);
}

.eyebrow {
  margin: 0 0 0.4rem;
  color: var(--brand-bright);
  font-size: 0.62rem;
  font-weight: 950;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.hero-card .eyebrow,
.page-title-card .eyebrow {
  color: rgba(255, 255, 255, 0.9);
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--text);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

h1 {
  max-width: none;
  font-size: 1.7rem;
}

h2 {
  max-width: none;
  font-size: 1.45rem;
}

h3 {
  font-size: 1rem;
}

p {
  margin: 0;
}

.hero-card h1 {
  max-width: 12ch;
  color: #ffffff;
  font-size: clamp(2.35rem, 8vw, 4.8rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.hero-lead {
  max-width: 42rem;
  margin-top: 0.75rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  font-weight: 700;
}

.hero-points {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
  margin-top: 0.9rem;
}

.hero-points div {
  padding: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-medium);
  background: rgba(255, 255, 255, 0.1);
}

.hero-points strong,
.hero-points span {
  display: block;
}

.hero-points strong {
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 950;
}

.hero-points span {
  margin-top: 0.16rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.82rem;
  font-weight: 750;
}

.hero-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
  margin-top: 0.9rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0.68rem 0.95rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 950;
  line-height: 1.08;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.button-primary {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand-mid));
  color: #ffffff;
  box-shadow: 0 10px 26px rgba(16, 42, 67, 0.24);
}

.button-primary:hover {
  background: linear-gradient(135deg, #071a2b, var(--brand));
}

.button-secondary {
  border-color: rgba(31, 78, 121, 0.28);
  background: #ffffff;
  color: var(--brand-dark);
}

.button-secondary:hover {
  background: var(--brand-surface);
}

.hero-card .button-secondary {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.hero-card .button-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

.text-link {
  display: inline-flex;
  margin-top: 0.75rem;
  color: var(--brand);
  font-weight: 950;
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.18em;
}

.text-link:hover {
  color: var(--brand-dark);
}

.qr-preview-card {
  border-radius: var(--radius-large);
  padding: 0.9rem;
  display: grid;
  align-content: center;
  gap: 0.7rem;
  background:
    linear-gradient(180deg, #ffffff 0%, var(--brand-soft) 100%);
}

.qr-box {
  width: min(100%, 12.5rem);
  aspect-ratio: 1;
  margin: 0 auto;
  padding: 0.8rem;
  border: 0.52rem solid var(--brand-dark);
  border-radius: 1rem;
  background:
    linear-gradient(90deg, var(--brand-dark) 16px, transparent 16px) 24px 24px / 42px 42px,
    linear-gradient(var(--brand-dark) 16px, transparent 16px) 24px 24px / 42px 42px,
    #ffffff;
  position: relative;
}

.qr-box span {
  position: absolute;
  width: 2.45rem;
  height: 2.45rem;
  border: 0.42rem solid var(--brand-dark);
  background: #ffffff;
}

.qr-box span:nth-child(1) {
  top: 0.8rem;
  left: 0.8rem;
}

.qr-box span:nth-child(2) {
  top: 0.8rem;
  right: 0.8rem;
}

.qr-box span:nth-child(3) {
  bottom: 0.8rem;
  left: 0.8rem;
}

.qr-box span:nth-child(4) {
  right: 1rem;
  bottom: 1rem;
  width: 1.55rem;
  height: 1.55rem;
  border-width: 0.3rem;
}

.qr-title {
  color: var(--brand-dark);
  font-size: 1rem;
  font-weight: 950;
  letter-spacing: -0.03em;
  text-align: center;
}

.qr-preview-card p:not(.qr-title) {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  text-align: center;
}

.section-block {
  margin-top: 0.75rem;
  border-radius: var(--radius-large);
  padding: 1rem;
  background:
    linear-gradient(180deg, #ffffff 0%, rgba(234, 243, 251, 0.95) 100%);
}

.section-block > p,
.section-block .split-section p {
  color: var(--muted);
}

.section-block h2 {
  max-width: 16ch;
  color: var(--brand-dark);
  font-size: clamp(1.6rem, 7vw, 3.2rem);
  line-height: 1;
}

.step-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
  margin-top: 0.9rem;
}

.step-card {
  padding: 0.75rem;
  border: 1px solid rgba(31, 78, 121, 0.2);
  border-radius: var(--radius-medium);
  background: #ffffff;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  margin-bottom: 0.5rem;
  border-radius: 999px;
  background: var(--brand);
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 950;
}

.step-card h3 {
  color: var(--brand-dark);
  font-size: 1rem;
}

.step-card p {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.split-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
  align-items: start;
}

.split-section p {
  margin-top: 0.58rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.info-panel {
  border-radius: var(--radius-medium);
  padding: 0.75rem;
  border-color: rgba(31, 78, 121, 0.24);
  background:
    linear-gradient(135deg, var(--brand-dark), var(--brand));
  box-shadow: none;
  color: #ffffff;
}

.info-panel h3 {
  color: #ffffff;
  font-size: 1rem;
}

.info-panel p,
.info-panel li {
  color: rgba(255, 255, 255, 0.94);
  font-weight: 850;
}

.plain-list {
  display: grid;
  gap: 0.45rem;
  margin: 0.62rem 0 0;
  padding: 0;
  list-style: none;
}

.plain-list li {
  position: relative;
  padding-left: 1rem;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.plain-list li::before {
  content: "";
  position: absolute;
  top: 0.58em;
  left: 0;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: var(--brand-bright);
}

.info-panel .plain-list li,
.buyer-strip .plain-list li {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 900;
}

.info-panel .plain-list li::before,
.buyer-strip .plain-list li::before {
  background: #ffffff;
}

.buyer-strip {
  background:
    linear-gradient(135deg, rgba(16, 42, 67, 0.94), rgba(31, 78, 121, 0.9));
  color: #ffffff;
}

.buyer-strip h2,
.buyer-strip h3 {
  color: #ffffff;
}

.buyer-strip p,
.buyer-strip span,
.buyer-strip strong {
  color: rgba(255, 255, 255, 0.94);
  font-weight: 850;
}

.mini-list {
  overflow: hidden;
  border-radius: var(--radius-medium);
  background: #ffffff;
  box-shadow: none;
}

.mini-list-row {
  display: grid;
  grid-template-columns: 1.35fr 0.8fr 0.9fr;
  gap: 0.42rem;
  padding: 0.6rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.mini-list-row:first-child {
  border-top: 0;
}

.mini-list-heading {
  background: var(--brand-dark);
  color: #ffffff;
  font-size: 0.6rem;
  font-weight: 950;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.price-card {
  text-align: left;
}

.price-card h2 {
  max-width: none;
}

.price-card p {
  max-width: 42rem;
  margin-top: 0.58rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.price-card .button {
  margin-top: 0.9rem;
  width: 100%;
}

.site-footer {
  width: min(var(--max-width), calc(100% - 1rem));
  margin: 0 auto;
  padding: 0 0 1.25rem;
  color: var(--brand-dark);
  font-size: 0.74rem;
  font-weight: 800;
  text-align: center;
}

/* Shared form/review/list foundations for One Auto Page */

.page-shell {
  width: min(860px, calc(100% - 1rem));
  margin: 0 auto;
  padding: 0.25rem 0 2rem;
}

.page-title-card,
.form-card,
.review-card,
.vehicle-card,
.list-card {
  border-radius: var(--radius-large);
  padding: 0.85rem;
}

.page-title-card {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background:
    linear-gradient(135deg, var(--brand-dark), var(--brand));
  box-shadow: var(--shadow-strong);
  color: #ffffff;
}

.page-title-card h1 {
  max-width: none;
  color: #ffffff;
  font-size: 1.15rem;
  line-height: 1.02;
  letter-spacing: -0.025em;
  white-space: nowrap;
}

.page-title-card p {
  margin-top: 0.45rem;
  color: rgba(255, 255, 255, 0.94);
  font-size: 0.84rem;
  line-height: 1.3;
  font-weight: 800;
}

.form-card,
.review-card,
.vehicle-card,
.list-card {
  margin-top: 0.6rem;
  background: rgba(255, 255, 255, 0.94);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

.form-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  padding: 0.62rem;
  border: 1px solid rgba(31, 78, 121, 0.2);
  border-radius: var(--radius-medium);
  background:
    linear-gradient(180deg, rgba(234, 243, 251, 0.92), rgba(255, 255, 255, 0.96));
}

.form-section h2 {
  max-width: none;
  margin: -0.62rem -0.62rem 0;
  padding: 0.62rem;
  border-radius: var(--radius-medium) var(--radius-medium) 0 0;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: #ffffff;
  font-size: 0.86rem;
  line-height: 1.02;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.field {
  display: grid;
  gap: 0.2rem;
}

.field label {
  color: var(--brand-dark);
  font-size: 0.72rem;
  font-weight: 950;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid rgba(16, 42, 67, 0.2);
  border-radius: var(--radius-small);
  background: #ffffff;
  color: var(--text);
  padding: 0.58rem 0.64rem;
  font-size: 0.86rem;
  outline: none;
}

.field textarea {
  min-height: 5rem;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(40, 104, 163, 0.18);
}

.help-text {
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.25;
  font-weight: 700;
}

.form-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem;
  margin-top: 0.55rem;
}

.notice-box {
  padding: 0.62rem;
  border: 1px solid rgba(31, 78, 121, 0.28);
  border-radius: var(--radius-medium);
  background: var(--brand-surface);
}

.notice-box h3 {
  color: var(--brand-dark);
  font-size: 0.9rem;
  line-height: 1.04;
  letter-spacing: -0.01em;
}

.notice-box p {
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.28;
  font-weight: 700;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 850;
}

.check-row input {
  width: 1rem;
  height: 1rem;
  margin-top: 0.08rem;
  accent-color: var(--brand);
  flex: 0 0 auto;
}

.data-list {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.6rem;
}

.data-row {
  display: grid;
  gap: 0.12rem;
  padding: 0.55rem;
  border: 1px solid rgba(31, 78, 121, 0.2);
  border-radius: var(--radius-small);
  background: #ffffff;
}

.data-row dt {
  color: var(--brand);
  font-size: 0.62rem;
  font-weight: 950;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.data-row dd {
  margin: 0;
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 800;
}

.empty-state {
  padding: 0.75rem;
  border: 1px dashed rgba(31, 78, 121, 0.36);
  border-radius: var(--radius-medium);
  color: var(--brand-dark);
  background: var(--brand-soft);
  font-size: 0.84rem;
  font-weight: 850;
  text-align: center;
}

.vehicle-list-table {
  overflow: hidden;
  margin-top: 0.75rem;
  border: 1px solid rgba(31, 78, 121, 0.22);
  border-radius: var(--radius-medium);
  background: #ffffff;
}

.vehicle-list-row {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.9fr auto;
  gap: 0.45rem;
  align-items: center;
  padding: 0.68rem;
  border-top: 1px solid var(--line);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 800;
}

.vehicle-list-row:first-child {
  border-top: 0;
}

.vehicle-list-heading {
  background: var(--brand-dark);
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 950;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.vehicle-list-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.1rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid rgba(31, 78, 121, 0.26);
  border-radius: 999px;
  background: var(--brand);
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 950;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.vehicle-list-row a:hover {
  background: var(--brand-dark);
  color: #ffffff;
}

.vehicle-hero {
  display: grid;
  gap: 0.7rem;
  padding: 0.75rem;
  border: 1px solid rgba(31, 78, 121, 0.2);
  border-radius: var(--radius-medium);
  background:
    linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: #ffffff;
}

.vehicle-hero h2 {
  color: #ffffff;
}

.vehicle-hero p,
.vehicle-hero .eyebrow {
  color: rgba(255, 255, 255, 0.94);
  font-weight: 800;
}

#vehiclePhotoPreview,
#photoReviewGrid,
#buyerPhotoGrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
}

#vehiclePhotoPreview img,
#photoReviewGrid img,
#buyerPhotoGrid img {
  width: 100%;
  display: block;
  border-radius: var(--radius-medium);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
}

/* Phone-specific hard stop for the two problem headings */

@media (max-width: 719px) {
  .hero-card h1 {
    max-width: none;
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
    font-size: clamp(0.82rem, 4vw, 1.2rem);
    line-height: 1;
    letter-spacing: -0.035em;
  }

  .page-title-card h1 {
    max-width: none;
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
    font-size: clamp(1.02rem, 4.7vw, 1.25rem);
  }

  .vehicle-list-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
    padding: 0.75rem;
    font-size: 0.84rem;
  }

  .vehicle-list-heading {
    display: none;
  }

  .vehicle-list-row a {
    width: 100%;
    min-height: 2.45rem;
    margin-top: 0.15rem;
  }
}

@media (max-width: 359px) {
  .hero-card h1 {
    font-size: 0.78rem;
    letter-spacing: -0.025em;
  }

  .page-title-card h1 {
    font-size: 1.02rem;
    letter-spacing: -0.015em;
  }

  .form-section h2 {
    font-size: 0.78rem;
  }
}

@media (min-width: 520px) {
  .hero-actions {
    grid-template-columns: auto auto;
    justify-content: start;
  }

  .price-card .button {
    width: auto;
  }

  #vehiclePhotoPreview,
  #photoReviewGrid,
  #buyerPhotoGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 720px) {
  html {
    font-size: 16px;
  }

  .top-nav {
    display: flex;
  }

  .site-header {
    width: min(var(--max-width), calc(100% - 2rem));
    padding: 0.86rem 1.1rem;
  }

  .brand {
    min-height: 2.5rem;
    font-size: 1.25rem;
  }

  main {
    width: min(var(--max-width), calc(100% - 2rem));
    padding: 1rem 0 3rem;
  }

  .hero-card {
    padding: 2rem;
  }

  .hero-card h1 {
    max-width: 12ch;
    font-size: clamp(3.2rem, 8vw, 5.2rem);
    line-height: 0.95;
    letter-spacing: -0.065em;
  }

  .hero-lead {
    margin-top: 1.05rem;
    font-size: 1.18rem;
    line-height: 1.42;
  }

  .hero-points {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 1.3rem;
  }

  .hero-points div {
    padding: 0.95rem;
  }

  .hero-points strong {
    font-size: 0.98rem;
  }

  .hero-points span {
    font-size: 0.92rem;
  }

  .hero-actions {
    gap: 0.75rem;
    margin-top: 1.4rem;
  }

  .button {
    min-height: 3.3rem;
    padding: 0.88rem 1.12rem;
    font-size: 1rem;
  }

  .section-block {
    margin-top: 1rem;
    padding: 2rem;
  }

  .section-block h2 {
    font-size: clamp(2.2rem, 6vw, 4rem);
  }

  .step-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
    margin-top: 1.2rem;
  }

  .step-card {
    padding: 1rem;
  }

  .step-number {
    width: 2rem;
    height: 2rem;
    margin-bottom: 0.8rem;
    font-size: 0.8rem;
  }

  .step-card h3 {
    font-size: 1.2rem;
  }

  .step-card p {
    margin-top: 0.45rem;
    font-size: 0.96rem;
  }

  .split-section {
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.85fr);
    gap: 1rem;
  }

  .split-section p {
    font-size: 1rem;
  }

  .info-panel {
    padding: 1rem;
  }

  .info-panel h3 {
    font-size: 1.25rem;
  }

  .plain-list li {
    font-size: 0.95rem;
  }

  .price-card {
    text-align: center;
  }

  .price-card h2,
  .price-card p {
    margin-left: auto;
    margin-right: auto;
  }

  .price-card p {
    font-size: 1.05rem;
  }

  .page-shell {
    width: min(860px, calc(100% - 2rem));
    padding: 1rem 0 3rem;
  }

  .page-title-card,
  .form-card,
  .review-card,
  .vehicle-card,
  .list-card {
    padding: 1.45rem;
  }

  .page-title-card h1 {
    font-size: clamp(2.4rem, 7vw, 4.2rem);
    white-space: normal;
  }

  .page-title-card p {
    margin-top: 0.9rem;
    font-size: 1.08rem;
    line-height: 1.42;
  }

  .form-card,
  .review-card,
  .vehicle-card,
  .list-card {
    margin-top: 1rem;
  }

  .form-grid {
    gap: 0.9rem;
  }

  .form-section {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    padding: 1rem;
  }

  .form-section h2 {
    grid-column: 1 / -1;
    margin: -1rem -1rem 0;
    padding: 0.85rem 1rem;
    font-size: 1.55rem;
    white-space: normal;
  }

  .field-full,
  .notice-box {
    grid-column: 1 / -1;
  }

  .field label {
    font-size: 0.88rem;
  }

  .field input,
  .field select,
  .field textarea {
    padding: 0.85rem 0.9rem;
    font-size: 1rem;
  }

  .field textarea {
    min-height: 8rem;
  }

  .help-text {
    font-size: 0.88rem;
  }

  .form-actions {
    grid-template-columns: auto auto;
    justify-content: start;
    gap: 0.75rem;
    margin-top: 1rem;
  }

  .notice-box {
    padding: 1rem;
  }

  .notice-box h3 {
    font-size: 1.3rem;
  }

  .notice-box p {
    margin-top: 0.55rem;
    font-size: 1rem;
  }

  .data-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
    margin-top: 1rem;
  }

  .data-row {
    padding: 0.85rem;
  }

  .data-row dt {
    font-size: 0.78rem;
  }

  .data-row dd {
    font-size: 1rem;
  }

  .data-row-full {
    grid-column: 1 / -1;
  }

  .vehicle-list-row {
    font-size: 0.9rem;
    padding: 0.85rem;
  }

  .vehicle-list-row a {
    font-size: 0.82rem;
  }

  .vehicle-hero {
    padding: 1rem;
  }

  #vehiclePhotoPreview,
  #photoReviewGrid,
  #buyerPhotoGrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .site-footer {
    width: min(var(--max-width), calc(100% - 2rem));
    padding: 0 0 2rem;
    font-size: 0.92rem;
  }
}

@media (min-width: 900px) {
  .hero-section {
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 22rem);
    gap: 1rem;
    padding-top: 0.75rem;
  }

  .hero-card {
    min-height: 34rem;
    padding: clamp(2rem, 4.5vw, 3.5rem);
  }

  .qr-preview-card {
    padding: 1.25rem;
  }

  .qr-box {
    width: min(100%, 16rem);
    border-width: 0.7rem;
    border-radius: 1.25rem;
  }

  .qr-box span {
    width: 3.1rem;
    height: 3.1rem;
    border-width: 0.55rem;
  }

  .qr-box span:nth-child(1) {
    top: 1rem;
    left: 1rem;
  }

  .qr-box span:nth-child(2) {
    top: 1rem;
    right: 1rem;
  }

  .qr-box span:nth-child(3) {
    bottom: 1rem;
    left: 1rem;
  }

  .qr-box span:nth-child(4) {
    right: 1.35rem;
    bottom: 1.35rem;
    width: 2rem;
    height: 2rem;
    border-width: 0.4rem;
  }

  .qr-title {
    font-size: 1.35rem;
  }

  .qr-preview-card p:not(.qr-title) {
    font-size: 0.98rem;
  }
}

@media (min-width: 1040px) {
  .site-header {
    margin-top: 0.8rem;
  }

  main {
    padding-top: 1.1rem;
  }

  .hero-section {
    grid-template-columns: minmax(0, 1fr) minmax(19rem, 23rem);
    gap: 1.25rem;
  }

  .hero-card h1 {
    font-size: clamp(4.2rem, 6.7vw, 5.6rem);
  }

  .section-block {
    margin-top: 1.25rem;
  }

  .step-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}