/* ==========================================================================
   Inner pages (delivery/, street-legal/). Loaded after styles.css, which
   supplies the tokens, nav, buttons, footer and the reveal animation.
   ========================================================================== */

.page {
  padding: calc(env(safe-area-inset-top) + 132px) var(--gutter) clamp(80px, 12vh, 140px);
}

/* ------------------------------------------------------------ Header -- */

.page__head {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.crumbs ol {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 0 0 22px;
  padding: 0;
  color: var(--ink-3);
  font-size: 13px;
  list-style: none;
}
.crumbs li + li::before { content: "›"; margin-right: 8px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }

.page__title {
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 1.5rem + 3.6vw, 4.5rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.02em;
  text-wrap: balance;
}

.page__lede {
  max-width: 36rem;
  margin: 20px auto 0;
  color: var(--ink-2);
  font-size: clamp(19px, 17px + .4vw, 21px);
  line-height: 1.42;
  text-wrap: pretty;
}

.page__meta {
  margin-top: 18px;
  color: var(--ink-3);
  font-size: 14px;
}

.page .delivery__grid { text-align: center; }

/* ---------------------------------------------------- Short answer -- */

.answer {
  max-width: 680px;
  margin: clamp(40px, 6vh, 64px) auto 0;
  padding: clamp(28px, 4vw, 40px);
  border-radius: 28px;
  background: #f5f5f7;
}
.answer__label {
  color: var(--accent-text);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .004em;
}
.answer__text {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: clamp(22px, 19px + .9vw, 28px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.015em;
  text-wrap: pretty;
}

/* ------------------------------------------------------------- Prose -- */

.prose {
  max-width: 680px;
  margin: clamp(56px, 8vh, 88px) auto 0;
  font-size: 19px;
  line-height: 1.58;
  letter-spacing: -.012em;
}
.prose > * + * { margin-top: 1em; }

.prose h2 {
  margin-top: 2.4em;
  font-family: var(--font-display);
  font-size: clamp(28px, 24px + 1vw, 36px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.016em;
  text-wrap: balance;
}
.prose h2:first-child { margin-top: 0; }

.prose h3 {
  margin-top: 1.8em;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.012em;
}
.prose h2 + *, .prose h3 + * { margin-top: .5em; }

.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--ink-3); }

.prose a {
  text-decoration-color: rgb(0 0 0 / .25);
  text-underline-offset: .18em;
}
.prose a:hover { text-decoration-color: currentColor; }

.cite { color: var(--ink-3); font-size: .84em; white-space: nowrap; }

.note {
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 15px;
}

.sources {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.5;
}
.prose .sources li + li { margin-top: .5em; }

/* --------------------------------------------------------------- CTA -- */

.page__cta {
  max-width: 680px;
  margin: clamp(64px, 10vh, 112px) auto 0;
  text-align: center;
}
.page__cta .section-title { font-size: clamp(2rem, 1.4rem + 2vw, 3rem); }
.page__cta p:not(.section-title) {
  margin: 14px auto 26px;
  color: var(--ink-2);
}

@media (max-width: 639px) {
  .page { padding-top: calc(env(safe-area-inset-top) + 108px); }
  .prose { font-size: 18px; }
}

/* ------------------------------------- Kart pages (mini-porsche, mini-ae86) -- */

.kart-figure {
  max-width: 760px;
  margin: clamp(32px, 5vh, 56px) auto 0;
}
.kart-figure figcaption {
  margin-top: 10px;
  color: var(--ink-3);
  font-size: 14px;
  text-align: center;
}

.table-note { color: var(--ink-3); font-size: 15px; }


/* ------------------------------------------------ Spec sheet and FAQ -- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 880px;
  margin: clamp(32px, 5vh, 56px) auto 0;
  padding: 0;
  text-align: center;
}
.stats dt { order: 2; margin-top: 4px; color: var(--ink-3); font-size: 14px; }
.stats dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(28px, 22px + 1.6vw, 40px);
  font-weight: 600;
  letter-spacing: -.02em;
}
.stats > div { display: flex; flex-direction: column; }

.sheet { max-width: 680px; margin: clamp(56px, 8vh, 88px) auto 0; }
.sheet h2, .faq h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 24px + 1vw, 36px);
  font-weight: 600;
  letter-spacing: -.02em;
}
.sheet h3 {
  margin-top: 36px;
  color: var(--ink-3);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.sheet dl { margin: 8px 0 0; }
.sheet dl > div {
  display: grid;
  grid-template-columns: 32% 1fr;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #e5e5ea;
  font-size: 16px;
  line-height: 1.45;
}
.sheet dt { color: var(--ink-3); }
.sheet dd { margin: 0; }
.sheet .table-note { margin-top: 14px; }

.faq { margin-top: clamp(56px, 8vh, 88px); }
.page__note { max-width: 680px; margin: clamp(48px, 7vh, 72px) auto 0; }
.faq h3 { margin-top: 32px; font-size: 21px; }

@media (max-width: 639px) {
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .sheet dl > div { grid-template-columns: 1fr; gap: 2px; }
}
