/* STSCARS public pages v2 — inner pages (SEO pages, dealer partnership, legal,
   photo credits, 404). Loaded after landing-v2.css, which provides the tokens,
   header, footer, buttons, cards, steps, dialog and cookie banner. */

/* ---------- compact page hero ---------- */
.page-hero { position: relative; isolation: isolate; overflow: hidden; margin-top: calc(-1 * var(--header-h)); padding: calc(var(--header-h) + 24px) 0 44px; background: var(--navy); color: var(--white); }
.page-hero__bg { position: absolute; inset: 0; z-index: -2; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 40%; }
.page-hero__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 26, 51, .82), rgba(10, 26, 51, .93)); }
.page-hero__grid { display: grid; gap: 28px; }
.page-hero__title { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.08; font-weight: 700; letter-spacing: -.025em; }
.page-hero__lead { margin-top: 14px; max-width: 620px; color: #d6e2f1; font-size: 17px; }
.page-hero__cta { display: grid; gap: 12px; margin-top: 24px; }
.page-hero__meta { margin-top: 18px; color: var(--on-dark-muted); font-size: 14px; }

.breadcrumb { margin-bottom: 8px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; color: var(--on-dark-muted); font-size: 14px; }
.breadcrumb li { display: inline-flex; align-items: center; min-height: 44px; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: rgba(255, 255, 255, .35); }
.breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; color: var(--sky); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--on-dark); }

/* white card inside the hero (a short checklist from the page) */
.hero-card { align-self: start; padding: 20px 22px; border-radius: var(--radius-lg); background: var(--white); color: var(--ink); box-shadow: var(--shadow-lg); }
.hero-card__title { margin-bottom: 10px; color: var(--muted); font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.hero-card .checks { margin-top: 0; }
.hero-card .checks li { color: var(--ink); font-size: 16px; }
.hero-card .checks .ico { color: var(--primary); }

/* ---------- content helpers ---------- */
.steps--4 { max-width: 560px; }
.section__foot { margin-top: 28px; }
.related { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.related a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--primary); font-weight: 600; text-decoration: none; }
.related a:hover { text-decoration: underline; }
.cars--pair { max-width: 760px; }

/* ---------- shared CTA band (marketing pages only) ---------- */
.cta-band { position: relative; padding: 64px 0; background: radial-gradient(90% 140% at 100% 0%, var(--navy-3), transparent 60%), var(--navy); color: var(--white); text-align: center; }
.cta-band p { max-width: 560px; margin: 14px auto 0; color: #d6e2f1; font-size: 17px; }
.cta-band__actions { display: grid; gap: 12px; max-width: 420px; margin: 26px auto 0; }

/* ---------- legal text ---------- */
.prose { max-width: 820px; margin: 0 auto; font-size: 17px; line-height: 1.7; }
.prose h2 { margin: 36px 0 10px; font-size: 22px; line-height: 1.3; font-weight: 700; letter-spacing: -.01em; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 0 0 14px; }
.prose ul { margin: 0 0 16px; padding-left: 22px; list-style: disc; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--primary); }
.prose strong { font-weight: 600; }

/* ---------- photo credits ---------- */
.credits { display: grid; gap: 14px; }
.credit { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: start; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.credit img { width: 96px; height: 72px; border-radius: 10px; object-fit: cover; background: var(--soft); }
.credit h2 { font-size: 16px; font-weight: 700; line-height: 1.35; }
.credit dl { display: grid; gap: 2px; margin-top: 6px; font-size: 15px; }
.credit dl div { display: flex; flex-wrap: wrap; gap: 0 6px; }
.credit dt { color: var(--muted); }
.credit dd { overflow-wrap: anywhere; }
.credit a { color: var(--primary); }
.credits__note { max-width: 820px; color: var(--muted); font-size: 16px; }

/* ---------- 404 ---------- */
.err { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; margin-top: calc(-1 * var(--header-h)); padding: calc(var(--header-h) + 40px) var(--gutter) 60px; background: var(--navy); color: var(--white); text-align: center; }
.err .err__code { margin: 0; color: var(--sky); font-size: clamp(64px, 12vw, 120px); font-weight: 800; line-height: 1; letter-spacing: -.04em; }
.err h1 { margin-top: 12px; font-size: clamp(26px, 4vw, 36px); }
.err p { max-width: 460px; margin: 12px auto 0; color: var(--on-dark-muted); }
.err__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 26px; }

@media (min-width: 600px) {
  .page-hero__cta { display: flex; flex-wrap: wrap; }
  .cta-band__actions { display: flex; justify-content: center; max-width: none; }
  .credit { grid-template-columns: 140px 1fr; gap: 18px; padding: 16px; }
  .credit img { width: 140px; height: 105px; }
  .credits { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 768px) {
  .page-hero { padding: calc(var(--header-h) + 36px) 0 60px; }
  .cars.cars--pair { grid-template-columns: 1fr 1fr; }
  .cta-band { padding: 88px 0; }
}

@media (min-width: 1024px) {
  .page-hero { min-height: 400px; }
  .page-hero__grid { grid-template-columns: 1.5fr 1fr; align-items: center; gap: 56px; }
  .page-hero--legal .page-hero__grid { grid-template-columns: 1fr; }
  .page-hero__shade { background: linear-gradient(90deg, rgba(10, 26, 51, .94) 0%, rgba(10, 26, 51, .8) 55%, rgba(10, 26, 51, .6) 100%); }
  .steps--4 { grid-template-columns: repeat(4, 1fr); max-width: none; }
  .steps--4::before { left: 12.5%; right: 12.5%; }
}
