/*
  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:
    radial-gradient(60% 120% at 85% 0%, rgba(245,185,0,0.10), transparent 60%),
    linear-gradient(180deg, var(--asphalt-2), var(--asphalt));
}
.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 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); }

/* 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: linear-gradient(180deg, var(--asphalt), 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); }
