/*
  Content pages (About, Support, Press, legal, comparisons). Loads after base.css.
  Same night-road system as the landing page: asphalt ground, signal yellow as the
  one accent, mile-marker plate in the page header, lane-line rules between sections.
*/

/* ---------- Page header ---------- */

.page-head { position: relative; padding: 132px 0 clamp(40px, 6vw, 64px); border-bottom: 1px solid var(--asphalt-3); overflow: hidden; isolation: isolate; }
.page-head::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--asphalt-2);
}
.page-head__row { display: flex; align-items: flex-start; gap: 22px; }
.page-head .mm { flex: none; margin-top: 4px; }
.page-head__eyebrow { font: 700 15px/1.2 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--signal); margin-bottom: 12px; }
.page-head h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); font-weight: 900; max-width: 18ch; }
.page-head__lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--legend-dim); max-width: 40rem; margin: 18px 0 0; }
.page-head__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 20px 0 0; font: 700 14px/1.4 var(--mono); color: var(--legend-mute); }
.page-head__meta span { display: inline-flex; align-items: center; gap: 8px; }
.page-head__meta span + span::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--shoulder); margin-right: 10px; }

/* ---------- Body layout ---------- */

.page-body { padding: clamp(48px, 7vw, 88px) 0 clamp(64px, 9vw, 112px); }
.page-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px; }
.page-grid--toc { grid-template-columns: 240px minmax(0, 1fr); }

.toc { position: sticky; top: 96px; align-self: start; max-height: calc(100vh - 120px); overflow: auto; font-size: 15px; }
.toc__label { font: 700 13px/1.2 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--legend-mute); margin-bottom: 14px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--asphalt-3); }
.toc a { display: block; padding: 6px 0 6px 16px; margin-left: -2px; border-left: 2px solid transparent; color: var(--legend-mute); text-decoration: none; line-height: 1.35; }
.toc a:hover { color: var(--legend); }
.toc a[aria-current="true"] { color: var(--legend); border-left-color: var(--signal); }

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

.prose { max-width: 46rem; font-size: 18px; color: var(--legend-dim); }
.prose > section { padding-top: 8px; margin-bottom: 52px; scroll-margin-top: 92px; }
.prose > section:last-child { margin-bottom: 0; }
.prose h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 900; color: var(--legend); margin: 0 0 18px; padding-top: 20px; border-top: 1px solid var(--asphalt-3); }
.prose > section:first-child h2 { border-top: 0; padding-top: 0; }
.prose h2::before { content: ""; display: block; width: 28px; height: 4px; background: var(--signal); margin-bottom: 18px; border-radius: 2px; }
.prose h3 { font-size: 21px; font-weight: 800; color: var(--legend); margin: 28px 0 10px; line-height: 1.25; }
.prose h4 { font-size: 18px; font-weight: 800; color: var(--legend); margin: 22px 0 8px; }
.prose p { margin: 0 0 16px; }
.prose blockquote { margin: 0 0 24px; padding: 2px 0 2px 20px; border-left: 3px solid var(--signal); }
.prose blockquote p { color: var(--legend); margin: 0 0 8px; }
.prose blockquote footer { font-size: 15px; color: var(--legend-dim); }
.prose strong { color: var(--legend); font-weight: 700; }
.prose em { color: var(--legend-dim); }
.prose a { color: var(--signal); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.prose a:hover { color: #ffc61a; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 0; list-style: none; }
.prose li { position: relative; padding-left: 26px; margin-bottom: 10px; }
.prose ul > li::before { content: ""; position: absolute; left: 2px; top: 0.72em; width: 12px; height: 3px; border-radius: 2px; background: var(--signal); }
.prose ol { counter-reset: n; }
.prose ol > li { counter-increment: n; }
.prose ol > li::before { content: counter(n); position: absolute; left: 0; top: 0.1em; font: 700 15px/1.6 var(--mono); color: var(--signal); }
.prose sup { font-size: 0.7em; }
.prose .note { font-size: 15px; color: var(--legend-mute); }

/* Tables scroll inside their own box on small screens */
.table-wrap { overflow-x: auto; margin: 8px 0 24px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--asphalt-3); }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; min-width: 460px; }
.prose th, .prose td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--asphalt-3); vertical-align: top; }
.prose tr:last-child td { border-bottom: 0; }
.prose th { font: 700 13px/1.3 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--legend-mute); background: var(--asphalt-2); }
.prose td:first-child { color: var(--legend); font-weight: 700; }
.prose td.is-us { color: var(--legend); }
.prose td:first-child a { overflow-wrap: normal; }
/* Comparison pages: tables take the whole content column, reading text keeps its measure. */
.prose--compare { max-width: none; }
.prose--compare > section > :not(.table-wrap) { max-width: 46rem; }

/* Callout: a dark sign plate */
.callout { margin: 22px 0 26px; padding: 22px 24px 8px; border-radius: 16px; background: var(--asphalt-2); box-shadow: inset 0 0 0 1px var(--shoulder); }
.callout h3 { margin-top: 0; font-size: 19px; }
.callout p { margin-bottom: 14px; }
.callout--memory { background: none; box-shadow: none; border-left: 4px solid var(--signal); border-radius: 0; padding: 4px 0 4px 22px; }
.callout--memory h3 { color: var(--signal); font: 700 14px/1.3 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; }

/* Contact cards */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 8px 0 28px; }
.card { display: block; padding: 20px 22px; border-radius: 16px; background: var(--asphalt-2); box-shadow: inset 0 0 0 1px var(--shoulder); text-decoration: none; color: var(--legend-dim); transition: box-shadow 160ms ease, transform 160ms ease; }
a.card:hover { box-shadow: inset 0 0 0 2px var(--signal); }
.card b { display: block; color: var(--legend); font-size: 19px; font-weight: 800; margin-bottom: 4px; }
.card span { display: block; color: var(--signal); font: 700 15px/1.4 var(--mono); overflow-wrap: anywhere; }
.card small { display: block; margin-top: 8px; font-size: 15px; color: var(--legend-mute); line-height: 1.45; }

/* ---------- Closing call to action ---------- */

.page-cta { border-top: 1px solid var(--asphalt-3); padding: clamp(48px, 7vw, 80px) 0; background: var(--asphalt-2); }
.page-cta__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; }
.page-cta h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 900; }
.page-cta p { color: var(--legend-dim); margin: 10px 0 0; font-size: 18px; }
.page-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .page-grid--toc { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .toc { display: none; }
}

@media (max-width: 760px) {
  .page-head { padding-top: 104px; }
  .page-head__row { flex-direction: column; gap: 16px; }
  .prose { font-size: 17px; }
  .prose > section { margin-bottom: 40px; }
  .cards { grid-template-columns: 1fr; }
  .callout { padding: 18px 18px 6px; }
  .page-cta__actions, .page-cta__actions .btn { width: 100%; }
}

/* Feature pages: one real screen at the top of the article */
.feature-shot { margin: 0 0 36px; }
.feature-shot .phone { width: min(280px, 70vw); aspect-ratio: 1206 / 2622; border-radius: 42px; padding: 8px; background: #050506; box-shadow: 0 0 0 1.5px #3a3f47, 0 40px 80px -30px rgba(0,0,0,0.95); }
.feature-shot .phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 34px; background: var(--asphalt-2); }

/* ---------- Policies, Contact Us (templates/_doc.html) ----------
   The same markup motorev.app draws with site.css, here in the road-sign type: Overpass,
   mono eyebrows, asphalt plates. Flat rules, no shadows. */

.site-doc { padding: 116px 0 clamp(56px, 8vw, 96px); }
/* Nav, page and footer keep the marketing site's own .wrap, so the bar and the page edges
   sit exactly where they do on the home page at every width. */
.doc-head { padding-bottom: clamp(28px, 4vw, 40px); border-bottom: 1px solid var(--asphalt-3); }
.doc-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0 0 22px; font: 700 14px/1.4 var(--mono); color: var(--legend-mute); }
.doc-crumbs a { color: var(--legend-dim); text-decoration: none; }
.doc-crumbs a:hover { color: var(--legend); }
.doc-eyebrow { font: 700 15px/1.2 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--signal); margin: 0 0 12px; }
.doc-head h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 900; max-width: 20ch; }
.doc-lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--legend-dim); max-width: 44rem; margin: 18px 0 0; }
.doc-meta { display: flex; flex-wrap: wrap; gap: 6px 24px; margin: 18px 0 0; font: 700 14px/1.4 var(--mono); color: var(--legend-mute); }
.doc-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; padding-top: clamp(32px, 5vw, 56px); }
.doc-toc { border-radius: 12px; background: var(--asphalt-2); border: 1px solid var(--asphalt-3); }
.doc-toc summary { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 18px; font: 700 14px/1.2 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--legend); cursor: pointer; list-style: none; }
.doc-toc summary::-webkit-details-marker { display: none; }
.doc-toc summary svg { color: var(--legend-mute); transition: transform 160ms ease; }
.doc-toc[open] summary svg { transform: rotate(180deg); }
.doc-toc ol { list-style: none; margin: 0; padding: 0 18px 14px; }
.doc-toc a { display: block; padding: 7px 0 7px 14px; border-left: 2px solid var(--asphalt-3); color: var(--legend-mute); text-decoration: none; font-size: 16px; line-height: 1.35; }
.doc-toc a:hover { color: var(--legend); }
.doc-toc a[aria-current] { color: var(--legend); border-left-color: var(--signal); }
.doc-toc .doc-toc-sub a { padding-left: 26px; font-size: 15px; }
.doc-main { min-width: 0; }
.doc-short { margin: 0 0 44px; padding: 24px 26px; border-radius: 16px; background: var(--asphalt-2); border: 1px solid var(--shoulder); }
.doc-short h2 { margin: 0 0 14px; font: 700 14px/1.2 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--signal); }
.doc-short ul { list-style: none; margin: 0; padding: 0; }
.doc-short li { position: relative; padding: 11px 0 11px 28px; border-top: 1px solid var(--asphalt-3); color: var(--legend); font-size: 18px; line-height: 1.5; }
.doc-short li:first-child { border-top: 0; padding-top: 0; }
.doc-short li::before { content: ""; position: absolute; left: 2px; top: 1.05em; width: 11px; height: 6px; border-left: 2px solid var(--signal); border-bottom: 2px solid var(--signal); transform: rotate(-45deg); }
.doc-short li:first-child::before { top: 0.4em; }
.doc-short p { margin: 12px 0 0; font-size: 15px; color: var(--legend-mute); }
.doc-body { max-width: 48rem; font-size: 18px; line-height: 1.7; color: var(--legend-dim); }
.doc-body > * { margin: 0; }
.doc-body > * + * { margin-top: 1em; }
.doc-body h2 { margin-top: 52px; padding-top: 28px; border-top: 1px solid var(--asphalt-3); font-size: clamp(1.5rem, 2.4vw, 1.95rem); font-weight: 900; color: var(--legend); scroll-margin-top: 92px; }
.doc-body > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.doc-body h3 { margin-top: 30px; font-size: 21px; font-weight: 800; color: var(--legend); line-height: 1.25; scroll-margin-top: 92px; }
.doc-body h4 { margin-top: 22px; font-size: 18px; font-weight: 800; color: var(--legend); }
.doc-body h2 + *, .doc-body h3 + *, .doc-body h4 + * { margin-top: 12px; }
.doc-body strong { color: var(--legend); font-weight: 700; }
.doc-body a { color: var(--signal); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.doc-body a:hover { color: #ffc61a; }
.doc-body ul, .doc-body ol { padding-left: 1.3em; }
.doc-body li + li { margin-top: 6px; }
.doc-body li::marker { color: var(--legend-mute); }
.doc-body blockquote { margin: 28px 0; padding: 18px 22px; border-radius: 0 14px 14px 0; background: var(--asphalt-2); border-left: 3px solid var(--signal); }
.doc-body blockquote > * { margin: 0; }
.doc-body blockquote > * + * { margin-top: 10px; }
.doc-body blockquote strong { font: 700 14px/1.3 var(--mono); letter-spacing: 0.1em; color: var(--signal); }
.doc-body table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; font-size: 16px; }
.doc-body th, .doc-body td { text-align: left; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--asphalt-3); vertical-align: top; }
.doc-body th { font: 700 13px/1.3 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--legend-mute); }
.doc-body hr { border: 0; border-top: 1px solid var(--asphalt-3); }
.doc-side { min-width: 0; }
.doc-side-title { margin: 0 0 6px; font: 700 13px/1.2 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--legend-mute); }
.doc-links { list-style: none; margin: 0; padding: 0; }
.doc-links li { border-bottom: 1px solid var(--asphalt-3); }
.doc-links a { display: grid; gap: 2px; padding: 13px 0; text-decoration: none; }
.doc-links b { color: var(--legend); font-size: 17px; font-weight: 800; }
.doc-links span { color: var(--legend-mute); font-size: 15px; line-height: 1.45; }
.doc-links a:hover b { color: var(--signal); }
.doc-help { display: grid; gap: 10px; margin-top: 32px; padding: 22px; border-radius: 16px; background: var(--asphalt-2); border: 1px solid var(--shoulder); }
.doc-help b { font-size: 19px; font-weight: 900; color: var(--legend); }
.doc-help p { margin: 0; font-size: 16px; color: var(--legend-dim); }
.doc-help-links { display: flex; flex-wrap: wrap; gap: 10px; }
.site-doc .btn { min-height: 46px; padding: 0 18px; font-size: 16px; color: var(--legend); border: 2px solid var(--shoulder); background: none; justify-self: start; }
.site-doc .btn:hover { border-color: var(--legend-dim); }
@media (min-width: 1080px) {
  .doc-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; }
  .doc-grid.has-toc { grid-template-columns: 250px minmax(0, 1fr) 340px; }
  .doc-toc { position: sticky; top: 96px; align-self: start; max-height: calc(100vh - 120px); overflow: auto; border: 0; border-radius: 0; background: none; }
  .doc-toc summary { min-height: 0; padding: 0 0 14px; color: var(--legend-mute); font-size: 13px; pointer-events: none; }
  .doc-toc summary svg { display: none; }
  .doc-toc ol { padding: 0; }
  .doc-side { position: sticky; top: 96px; align-self: start; }
}
@media (min-width: 1440px) {
  .doc-grid { grid-template-columns: minmax(0, 1fr) 380px; gap: 80px; }
  .doc-grid.has-toc { grid-template-columns: 270px minmax(0, 1fr) 380px; }
}
@media (max-width: 760px) {
  .site-doc { padding-top: 96px; }
  .doc-body { font-size: 17px; }
  .doc-short { padding: 18px; }
}

/* ---------- Policies (templates/_policies.html) ----------
   The same one quiet screen motorev.app draws with site.css, in the road-sign type: Overpass,
   mono labels, flat hairline rows. No plates, no shadows. */
.pol ul { list-style: none; margin: 0; padding: 0; }
.pol h2 { margin: 0; }
.pol-head { padding-bottom: clamp(28px, 4vw, 40px); border-bottom: 1px solid var(--asphalt-3); }
.pol-head h1 { font-size: clamp(2.6rem, 5.4vw, 4.6rem); font-weight: 900; line-height: 1; }
.pol-lede { max-width: 38rem; margin: 18px 0 0; font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--legend-dim); }
.pol-search { display: flex; align-items: center; gap: 12px; max-width: 640px; min-height: 58px; margin: 28px 0 0; padding: 0 18px; border-radius: 12px; background: var(--asphalt-2); border: 2px solid var(--shoulder); color: var(--legend-mute); }
.pol-search[hidden] { display: none; }
.pol-search:focus-within { border-color: var(--signal); color: var(--legend-dim); }
.pol-search svg { flex: none; }
.pol-search input { flex: 1; min-width: 0; padding: 14px 0; background: none; border: 0; outline: none; color: var(--legend); font: inherit; font-size: 18px; }
.pol-search input::placeholder { color: var(--legend-mute); }
.pol-search input::-webkit-search-cancel-button { display: none; }
.pol-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 16px 0 0; font-size: 15px; font-weight: 800; }
.pol-links a { color: var(--legend-dim); text-decoration: none; }
.pol-links a:hover { color: var(--signal); }
.pol-tiles { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 48px; }
.pol-tiles[hidden], .pol-results[hidden] { display: none; }
.pol-tile { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto auto; column-gap: 16px; min-width: 0; padding: 24px 0; border-bottom: 1px solid var(--asphalt-3); }
.pol-tile h2 { font-size: clamp(1.25rem, 1.6vw, 1.45rem); font-weight: 900; line-height: 1.15; }
.pol-tile h2 a { color: var(--legend); text-decoration: none; }
.pol-tile h2 a::after { content: ""; position: absolute; inset: 0; }
.pol-tile h2 a:focus-visible { outline: 0; }
.pol-tile:hover h2 a, .pol-tile:focus-within h2 a { color: var(--signal); }
.pol-sum { margin: 6px 0 0; font-size: 16px; line-height: 1.5; color: var(--legend-dim); }
.pol-foot { margin: 10px 0 0; font: 700 13px/1.3 var(--mono); color: var(--legend-mute); }
.pol-foot i { margin: 0 8px; font-style: normal; }
.pol-go { grid-column: 2; grid-row: 1 / span 3; align-self: center; color: var(--legend-mute); }
.pol-tile:hover .pol-go { color: var(--legend); }
.pol-results { padding-top: clamp(28px, 4vw, 40px); }
.pol-count { margin: 0; font-size: 16px; color: var(--legend-dim); }
.pol-hits { margin-top: 12px !important; border-top: 1px solid var(--asphalt-3); }
.pol-hits li { border-bottom: 1px solid var(--asphalt-3); }
.pol-hits a { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr) auto; align-items: baseline; gap: 4px 24px; padding: 18px 0; text-decoration: none; }
.pol-hits small { font: 700 13px/1.3 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--legend-mute); }
.pol-hits span { display: grid; gap: 4px; min-width: 0; }
.pol-hits b { font-size: 19px; font-weight: 800; color: var(--legend); }
.pol-hits em { font-size: 16px; font-style: normal; line-height: 1.5; color: var(--legend-dim); }
.pol-hits mark { padding: 0 2px; border-radius: 3px; background: rgba(245, 185, 0, 0.16); color: var(--legend); }
.pol-hits svg { align-self: center; color: var(--legend-mute); }
.pol-hits a:hover b { color: var(--signal); }
.pol-none { padding: 18px 0; color: var(--legend-dim); }
.pol-none a { color: var(--signal); }
.pol-promises { margin-top: clamp(40px, 5vw, 56px); }
.pol-label { font: 700 14px/1.2 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--signal); }
.pol-promises ul { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 32px; margin-top: 4px; }
.pol-promises li { display: grid; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--asphalt-3); }
.pol-promises b { font-size: 18px; font-weight: 900; line-height: 1.3; color: var(--legend); }
.pol-promises span { font-size: 16px; line-height: 1.5; color: var(--legend-dim); }
.pol-note { margin: 16px 0 0; font-size: 15px; color: var(--legend-mute); }
@media (min-width: 680px) {
  .pol-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pol-promises ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1080px) {
  .pol-promises ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pol-promises li { padding: 20px 0; }
}
@media (min-width: 1500px) {
  .pol-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 64px; }
}
@media (max-width: 760px) {
  .pol-tile { padding: 18px 0; }
  .pol-hits a { grid-template-columns: minmax(0, 1fr) auto; }
  .pol-hits small, .pol-hits span { grid-column: 1; }
  .pol-hits svg { grid-column: 2; grid-row: 1 / span 2; }
}
}
