/* GarageCheck — garagecheck.uk
   One stylesheet for every page. No JavaScript, no inline styles (CSP: style-src 'self').
   Order: fonts, tokens, base, layout, components, sections, pages, motion. */

/* ---------- Fonts (self-hosted, Plus Jakarta Sans, SIL OFL — see /fonts/OFL.txt) ---------- */
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/fonts/PlusJakartaSans-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/fonts/PlusJakartaSans-SemiBold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/fonts/PlusJakartaSans-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  color-scheme: light dark;

  --c-bg: #faf9f6;
  --c-surface: #ffffff;
  --c-surface-2: #f2f0eb;
  --c-text: #1f2630;
  --c-muted: #5b6573;
  --c-border: #e8e5e0;
  --c-border-strong: #d2cdc6;

  --c-brand: #ff6b1a;
  --c-brand-hover: #f25e0c;
  --c-on-brand: #1a1d22;
  --c-accent-text: #b0490c;
  --c-brand-soft: #fff0e6;

  --c-pass: #1a7044;
  --c-advisory: #8a5600;
  --c-fail: #b12735;
  --c-na: #5b6573;

  --c-band-bg: #151515;
  --c-band-surface: #202020;
  --c-band-text: #f1f0ee;
  --c-band-muted: #b3b6bb;
  --c-band-border: #2e2e2e;

  --c-paper: #ffffff;
  --c-paper-text: #1f2630;
  --c-paper-muted: #5b6573;
  --c-paper-line: #e8e5e0;

  --shadow-sm: 0 1px 2px rgb(31 38 48 / 0.06), 0 1px 1px rgb(31 38 48 / 0.04);
  --shadow-md: 0 1px 2px rgb(31 38 48 / 0.05), 0 10px 30px -12px rgb(31 38 48 / 0.18);
  /* Tactile depth borrowed from the app's raised surfaces. */
  --shadow-soft: -8px -8px 20px rgb(255 255 255 / 0.85), 12px 18px 40px -14px rgb(110 86 60 / 0.32);
  --shadow-phone: 0 2px 4px rgb(31 38 48 / 0.08), 0 30px 60px -24px rgb(60 40 20 / 0.45);

  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.1875rem;
  --fs-h4: 1.0625rem;
  --fs-h3: clamp(1.1875rem, 1.1rem + 0.4vw, 1.375rem);
  --fs-h2: clamp(1.875rem, 1.35rem + 2.3vw, 3rem);
  --fs-h1: clamp(2.5rem, 1.55rem + 4.6vw, 4.75rem);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  --gutter: 16px;
  --container: 1200px;
  --section-y: clamp(4.5rem, 3rem + 6vw, 8rem);
  --header-h: 64px;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --c-bg: #141414;
    --c-surface: #1e1e1e;
    --c-surface-2: #262626;
    --c-text: #f1f0ee;
    --c-muted: #a9aeb5;
    --c-border: #2c2c2c;
    --c-border-strong: #3d3d3d;

    --c-brand-hover: #ff7d36;
    --c-accent-text: #ff9157;
    --c-brand-soft: rgb(255 107 26 / 0.12);

    --c-pass: #86d7a4;
    --c-advisory: #ffcc80;
    --c-fail: #ff9b9f;
    --c-na: #b1bac5;

    --c-band-bg: #1c1c1c;
    --c-band-surface: #262626;
    --c-band-border: #333333;

    --c-paper: #f7f6f3;

    --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.4);
    --shadow-md: 0 1px 2px rgb(0 0 0 / 0.4), 0 12px 32px -12px rgb(0 0 0 / 0.6);
    --shadow-soft: 0 1px 0 rgb(255 255 255 / 0.04) inset, 0 20px 40px -16px rgb(0 0 0 / 0.7);
    --shadow-phone: 0 2px 4px rgb(0 0 0 / 0.4), 0 30px 60px -20px rgb(0 0 0 / 0.8);
  }
}

@media (min-width: 640px) {
  :root { --gutter: 24px; }
}
@media (min-width: 1024px) {
  :root { --gutter: 32px; --header-h: 72px; }
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

img,
svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); letter-spacing: -0.035em; line-height: 1.02; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -0.015em; line-height: 1.25; }
h4 { font-size: var(--fs-h4); letter-spacing: -0.01em; line-height: 1.3; }

p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }

a {
  color: var(--c-accent-text);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 0.15s var(--ease), text-decoration-color 0.15s var(--ease);
}
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--c-brand);
  outline-offset: 3px;
  border-radius: 4px;
}

strong { font-weight: 600; }

::selection { background: var(--c-brand); color: var(--c-on-brand); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 8px; left: 8px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  background: var(--c-text);
  color: var(--c-bg);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-150%);
}
.skip-link:focus { transform: none; }

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--surface {
  background: var(--c-surface);
  border-block: 1px solid var(--c-border);
}

/* For sections with rotated artwork that must not cause sideways scrolling. */
.section--clip { overflow-x: clip; }

.section-head {
  display: grid;
  gap: 16px;
  max-width: 44rem;
  margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem);
}
.section-head--center {
  margin-inline: auto;
  text-align: center;
  justify-items: center;
}
.section-head p { color: var(--c-muted); font-size: var(--fs-lg); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--c-accent-text);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--c-brand);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s var(--ease), border-color 0.15s var(--ease),
    color 0.15s var(--ease), transform 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.btn .icon { width: 18px; height: 18px; transition: transform 0.2s var(--ease); }
.btn:hover .icon--arrow { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--c-brand);
  color: var(--c-on-brand);
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.35) inset, 0 6px 16px -6px rgb(255 107 26 / 0.6);
}
.btn--primary:hover { background: var(--c-brand-hover); color: var(--c-on-brand); }
.btn--primary:focus-visible { outline-color: var(--c-text); }

.btn--secondary {
  background: var(--c-surface);
  border-color: var(--c-border-strong);
  color: var(--c-text);
  box-shadow: var(--shadow-sm);
}
.btn--secondary:hover { border-color: var(--c-text); color: var(--c-text); }

.btn--sm { min-height: 44px; padding: 10px 18px; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: relative;
  z-index: 50;
  border-bottom: 1px solid var(--c-border);
  background: var(--c-bg);
}
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  column-gap: 16px;
  min-height: var(--header-h);
}
.header-inner > .btn { grid-row: 1; grid-column: 2; }

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border-radius: 6px;
  /* The lockup artwork carries ~3.4% side padding; pull it back to the grid. */
  margin-left: -6px;
}
.brand img { width: 168px; height: auto; }
.brand picture { display: block; }

.site-nav {
  grid-column: 1 / -1;
  margin-inline: calc(var(--gutter) * -1);
  border-top: 1px solid var(--c-border);
  overflow-x: auto;
  scrollbar-width: none;
}
.site-nav::-webkit-scrollbar { display: none; }
.site-nav ul {
  display: flex;
  gap: 4px;
  width: max-content;
  padding: 6px var(--gutter);
  list-style: none;
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--r-pill);
  color: var(--c-muted);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--c-text); background: var(--c-surface-2); }
.site-nav a[aria-current="page"] { color: var(--c-text); }

@media (min-width: 960px) {
  .site-header {
    position: sticky;
    top: 0;
    background: rgb(250 249 246 / 0.88);
    -webkit-backdrop-filter: saturate(1.4) blur(14px);
    backdrop-filter: saturate(1.4) blur(14px);
  }
  .header-inner { grid-template-columns: auto 1fr auto; }
  .header-inner > .btn { grid-column: 3; }
  .site-nav {
    grid-column: auto;
    justify-self: center;
    margin: 0;
    border: 0;
    overflow: visible;
  }
  .site-nav ul { padding: 0; }
  .brand img { width: 184px; }
}
@media (min-width: 960px) and (prefers-color-scheme: dark) {
  .site-header { background: rgb(20 20 20 / 0.86); }
}

/* ---------- Phone mockup ---------- */
.phone {
  position: relative;
  width: 100%;
  padding: 3.2%;
  border-radius: 13% / 7.4%;
  background: linear-gradient(160deg, #2b2f35, #15171a 60%);
  box-shadow: var(--shadow-phone), 0 0 0 1px rgb(255 255 255 / 0.06) inset;
}
.phone__screen {
  position: relative;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  border-radius: 10.5% / 5.9%;
  /* Shown behind the screenshot, and on its own if a screenshot is missing. */
  background: linear-gradient(170deg, #f1e3d9, #efedea 55%);
}
.phone__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.phone__screen::after {
  /* Camera punch-hole */
  content: "";
  position: absolute;
  top: 2.2%;
  left: 50%;
  width: 4.4%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #111;
  transform: translateX(-50%);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 2rem + 5vw, 6.5rem) clamp(3.5rem, 2rem + 6vw, 7rem);
}
.hero::before {
  /* Faint workshop grid behind the hero */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--c-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--c-border) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 10%, transparent 75%);
  opacity: 0.6;
  pointer-events: none;
}
.hero__grid {
  position: relative;
  display: grid;
  gap: clamp(3rem, 2rem + 4vw, 4rem);
  align-items: center;
}
.hero__copy { display: grid; gap: 24px; justify-items: start; }
.hero__lede {
  max-width: 34rem;
  color: var(--c-muted);
  font-size: clamp(1.125rem, 1.05rem + 0.4vw, 1.3125rem);
  line-height: 1.55;
}
.hero h1 .accent { color: var(--c-accent-text); }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 8px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-pill);
  background: var(--c-surface);
  box-shadow: var(--shadow-sm);
  color: var(--c-muted);
  font-size: var(--fs-xs);
  font-weight: 600;
}
.status-pill strong {
  padding: 2px 8px;
  border-radius: var(--r-pill);
  background: var(--c-brand-soft);
  color: var(--c-accent-text);
  font-weight: 700;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}
.cta-row .btn { flex: 1 1 auto; }

.hero__notes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  list-style: none;
  color: var(--c-muted);
  font-size: var(--fs-sm);
}
.hero__notes li { display: inline-flex; align-items: center; gap: 8px; }
.hero__notes .icon { color: var(--c-pass); width: 18px; height: 18px; }

.hero__visual {
  position: relative;
  display: grid;
  justify-items: center;
  padding-inline: 8%;
}
.hero__stage {
  position: absolute;
  inset: 12% 0 6%;
  border-radius: var(--r-xl);
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
}
.hero__phones {
  position: relative;
  width: min(100%, 420px);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
}
.hero__phones .phone { grid-row: 1; }
.hero__phones .phone--back {
  grid-column: 6 / 13;
  margin-top: 14%;
  opacity: 0.96;
}
.hero__phones .phone--front {
  grid-column: 1 / 9;
  z-index: 1;
}

@media (min-width: 640px) {
  .cta-row .btn { flex: 0 0 auto; }
}
@media (min-width: 960px) {
  .hero__grid { grid-template-columns: 1.08fr 0.92fr; }
  .hero__visual { padding-inline: 0; }
}

/* Facts strip under the hero */
.facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-top: clamp(3rem, 2rem + 4vw, 5rem);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  background: var(--c-surface);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.facts > div {
  display: grid;
  gap: 2px;
  padding: 20px;
  border-color: var(--c-border);
  border-style: solid;
  border-width: 0;
}
.facts > div:nth-child(odd) { border-right-width: 1px; }
.facts > div:nth-child(-n + 2) { border-bottom-width: 1px; }
.facts dt { font-size: var(--fs-lg); font-weight: 700; letter-spacing: -0.015em; }
.facts dd { margin: 0; color: var(--c-muted); font-size: var(--fs-sm); line-height: 1.45; }

@media (min-width: 860px) {
  .facts { grid-template-columns: repeat(4, 1fr); }
  .facts > div { padding: 24px 28px; border-width: 0; }
  .facts > div:not(:last-child) { border-right-width: 1px; }
}

/* ---------- How it works ---------- */
.steps {
  display: grid;
  gap: 20px;
  list-style: none;
  counter-reset: step;
}
.step {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  background: var(--c-bg);
}
.step__body { display: grid; gap: 10px; align-content: start; padding: 28px 28px 24px; }
.step__num {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 8px;
  border-radius: 12px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-sm);
  color: var(--c-accent-text);
  font-size: var(--fs-sm);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.step__body p { color: var(--c-muted); }
.step__shot {
  /* Phone rises from the bottom edge of the card. */
  align-self: end;
  height: 280px;
  overflow: hidden;
  padding: 0 14% 0;
}
.step__shot .phone { border-bottom-left-radius: 0; border-bottom-right-radius: 0; padding-bottom: 0; }
.step__shot .phone__screen { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }

@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .step__shot { height: 300px; }
}

/* ---------- Features (bento) ---------- */
.bento {
  display: grid;
  gap: 16px;
}
.tile {
  position: relative;
  display: grid;
  gap: 14px;
  align-content: start;
  padding: clamp(24px, 3vw, 32px);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  background: var(--c-surface);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.tile:hover { box-shadow: var(--shadow-md); border-color: var(--c-border-strong); }
.tile p { color: var(--c-muted); }
.tile__icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--c-brand-soft);
  color: var(--c-accent-text);
}
.tile__icon .icon { width: 22px; height: 22px; }
.tile__visual { margin-top: 8px; }
.tile__note { font-size: var(--fs-xs); color: var(--c-muted); }

.tile--dark {
  background: var(--c-band-bg);
  border-color: var(--c-band-border);
  color: var(--c-band-text);
}
.tile--dark p { color: var(--c-band-muted); }
.tile--dark .tile__icon { background: rgb(255 107 26 / 0.16); color: #ff9157; }
.tile--dark:hover { border-color: #444; }

.tile--wide { gap: 18px; }

@media (min-width: 720px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile--wide { grid-column: 1 / -1; }
}
@media (min-width: 1080px) {
  .bento { grid-template-columns: repeat(6, 1fr); }
  .tile { grid-column: span 2; }
  .tile--wide { grid-column: span 4; }
  .tile--half { grid-column: span 3; }
}

/* Inspection result chips — always icon + word, never colour alone */
.results {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  list-style: none;
}
.result {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 10px 14px;
  border: 1px solid var(--c-border);
  border-radius: 14px;
  background: var(--c-bg);
  font-weight: 600;
  font-size: var(--fs-sm);
}
.result .icon { width: 22px; height: 22px; }
.result--pass .icon { color: var(--c-pass); }
.result--advisory .icon { color: var(--c-advisory); }
.result--fail .icon { color: var(--c-fail); }
.result--na .icon { color: var(--c-na); }

@media (min-width: 520px) {
  .results { grid-template-columns: repeat(4, 1fr); }
  .result { flex-direction: column; justify-content: center; gap: 6px; padding: 14px 8px; text-align: center; }
}

.records {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}
.records li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: var(--c-surface-2);
  color: var(--c-text);
  font-size: var(--fs-sm);
  font-weight: 600;
}
.records .icon { width: 16px; height: 16px; color: var(--c-muted); }

/* UK registration plate */
.lookup {
  display: grid;
  gap: 12px;
}
.plate {
  display: flex;
  align-items: stretch;
  width: fit-content;
  max-width: 100%;
  overflow: hidden;
  border: 2px solid #1a1a1a;
  border-radius: 8px;
  background: #f7d117;
  color: #111;
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.5) inset, 0 6px 14px -8px rgb(0 0 0 / 0.5);
}
.plate__band {
  display: grid;
  place-items: end center;
  width: 30px;
  padding-bottom: 6px;
  background: #00309a;
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.plate__reg {
  padding: 8px 18px;
  font-size: clamp(1.625rem, 1.3rem + 1.4vw, 2.125rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.1;
  white-space: nowrap;
}
.lookup__result {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--c-border);
  border-radius: 14px;
  background: var(--c-bg);
}
.lookup__result > div { padding: 10px 14px; }
.lookup__result > div + div { border-left: 1px solid var(--c-border); }
.lookup__result dt { color: var(--c-muted); font-size: var(--fs-xs); }
.lookup__result dd { margin: 0; font-weight: 700; }

/* History timeline */
.timeline {
  display: grid;
  list-style: none;
  border: 1px solid var(--c-border);
  border-radius: 14px;
  background: var(--c-bg);
}
.timeline li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
}
.timeline li + li { border-top: 1px solid var(--c-border); }
.timeline .icon { width: 20px; height: 20px; color: var(--c-pass); }
.timeline .is-advisory { color: var(--c-advisory); }
.timeline__title { font-weight: 600; font-size: var(--fs-sm); line-height: 1.3; }
.timeline__meta { color: var(--c-muted); font-size: var(--fs-xs); }
.timeline time { color: var(--c-muted); font-size: var(--fs-xs); font-variant-numeric: tabular-nums; }

/* Staff flow */
.flow {
  display: grid;
  gap: 8px;
  list-style: none;
  counter-reset: flow;
}
.flow li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: var(--fs-sm);
  font-weight: 600;
}
.flow li::before {
  counter-increment: flow;
  content: counter(flow);
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--c-border-strong);
  color: var(--c-muted);
  font-size: var(--fs-xs);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 6px 14px;
  border: 1px solid var(--c-border-strong);
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  font-weight: 600;
}
.chip abbr { text-decoration: none; color: var(--c-muted); font-size: var(--fs-xs); font-weight: 700; }
.tile--dark .chip { border-color: #3a3a3a; }

.checklist {
  display: grid;
  gap: 10px;
  list-style: none;
}
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.checklist .icon { width: 20px; height: 20px; margin-top: 3px; color: var(--c-pass); }
.tile--dark .checklist .icon { color: #86d7a4; }

/* ---------- App showcase ---------- */
.gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(62vw, 240px);
  gap: 20px;
  margin-inline: calc(var(--gutter) * -1);
  padding: 12px var(--gutter) 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  list-style: none;
  scrollbar-width: thin;
  scrollbar-color: var(--c-border-strong) transparent;
}
.gallery:focus-visible { outline-offset: -3px; }
.gallery li { scroll-snap-align: start; }
.gallery figure { margin: 0; display: grid; gap: 16px; }
.gallery figcaption { display: grid; gap: 2px; padding-inline: 4px; }
.gallery figcaption strong { font-size: var(--fs-sm); }
.gallery figcaption span { color: var(--c-muted); font-size: var(--fs-xs); line-height: 1.45; }
.gallery__hint { margin-top: 4px; color: var(--c-muted); font-size: var(--fs-xs); text-align: center; }

@media (min-width: 1100px) {
  .gallery {
    grid-auto-flow: row;
    grid-template-columns: repeat(5, 1fr);
    grid-auto-columns: auto;
    margin-inline: 0;
    padding-inline: 0;
    overflow: visible;
  }
  .gallery li:nth-child(even) { margin-top: 48px; }
  .gallery__hint { display: none; }
}

/* ---------- Report showcase ---------- */
.report-grid {
  display: grid;
  gap: clamp(3rem, 2rem + 4vw, 5rem);
  align-items: center;
}
.report-copy { display: grid; gap: 20px; }
.report-copy > p { color: var(--c-muted); font-size: var(--fs-lg); }
.report-copy .checklist { margin-top: 4px; }

.share-modes {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}
.share-mode {
  display: flex;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background: var(--c-surface);
}
.share-mode .icon { width: 22px; height: 22px; margin-top: 2px; color: var(--c-accent-text); }
.share-mode h3 { font-size: var(--fs-base); }
.share-mode p { color: var(--c-muted); font-size: var(--fs-sm); }

@media (min-width: 640px) {
  .share-modes { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1000px) {
  .report-grid { grid-template-columns: 1fr 1fr; }
}

.report-figure {
  position: relative;
  margin: 0;
  display: grid;
  gap: 16px;
  justify-items: center;
}
.report-figure figcaption { color: var(--c-muted); font-size: var(--fs-xs); text-align: center; max-width: 30rem; }

.paper {
  position: relative;
  width: min(100%, 470px);
  padding: clamp(20px, 5vw, 34px) clamp(18px, 5vw, 32px) clamp(16px, 4vw, 24px);
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 2.6vw, 18px);
  border-radius: 6px;
  background: var(--c-paper);
  color: var(--c-paper-text);
  box-shadow: var(--shadow-soft);
  font-size: clamp(0.5625rem, 0.45rem + 0.5vw, 0.75rem);
  line-height: 1.4;
  transform: rotate(-1.2deg);
}
.paper::before {
  /* Second sheet beneath */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 6px;
  background: var(--c-paper);
  box-shadow: var(--shadow-md);
  transform: rotate(3deg) translate(3%, 1%);
  opacity: 0.85;
}
.paper__tag {
  position: absolute;
  top: -14px;
  right: 20px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: var(--c-text);
  color: var(--c-bg);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.02em;
  transform: rotate(1.2deg);
}
.paper__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 4%;
  border-bottom: 2px solid var(--c-brand);
}
.paper__garage { display: flex; gap: 10px; align-items: center; }
.paper__logo {
  display: grid;
  place-items: center;
  width: 3.6em;
  height: 3.6em;
  border: 1px dashed #b9b3aa;
  border-radius: 8px;
  color: var(--c-paper-muted);
  font-size: 0.85em;
  text-align: center;
  line-height: 1.1;
}
.paper__name { font-weight: 700; font-size: 1.25em; letter-spacing: -0.01em; }
.paper__muted { color: var(--c-paper-muted); }
.paper__doc { text-align: right; }
.paper__doc strong { display: block; font-size: 1.1em; }
.paper__vehicle {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 3.5% 4%;
  border-radius: 6px;
  background: #f4f2ee;
}
.paper__vehicle dt { color: var(--c-paper-muted); font-size: 0.9em; }
.paper__vehicle dd { margin: 0; font-weight: 700; }
.paper__summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  text-align: center;
}
.paper__summary div { padding: 6px 4px; border: 1px solid var(--c-paper-line); border-radius: 6px; }
.paper__summary b { display: block; font-size: 1.6em; line-height: 1.1; }
.paper__summary .p { color: #1a7044; }
.paper__summary .a { color: #8a5600; }
.paper__summary .f { color: #b12735; }
.paper__summary .n { color: #5b6573; }
.paper__rows { display: grid; }
.paper__rows h4 { font-size: 1em; margin-bottom: 2%; letter-spacing: 0; }
.paper__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 1.6% 0;
  border-bottom: 1px solid var(--c-paper-line);
}
.paper__row small { grid-column: 1 / -1; color: var(--c-paper-muted); font-size: 0.92em; }
.paper__badge {
  font-weight: 700;
  font-size: 0.9em;
}
.paper__badge--pass { color: #1a7044; }
.paper__badge--advisory { color: #8a5600; }
.paper__badge--fail { color: #b12735; }
.paper__photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.paper__photos span {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  background: repeating-linear-gradient(135deg, #ece9e4 0 6px, #e4e0da 6px 12px);
  color: var(--c-paper-muted);
  font-size: 0.85em;
}
.paper__foot {
  margin-top: auto;
  padding-top: 3%;
  border-top: 1px solid var(--c-paper-line);
  color: var(--c-paper-muted);
  font-size: 0.82em;
}

/* ---------- Pricing ---------- */
.trial {
  display: grid;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
  padding: 24px clamp(20px, 3vw, 32px);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  background: var(--c-brand-soft);
}
.trial h3 { font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem); }
.trial p { color: var(--c-muted); }
.trial__badge {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--c-surface);
  box-shadow: var(--shadow-sm);
  color: var(--c-accent-text);
  line-height: 1;
  text-align: center;
}
.trial__badge b { font-size: 1.5rem; }
.trial__badge span { font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }

@media (min-width: 760px) {
  .trial { grid-template-columns: auto 1fr; gap: 24px; }
}

.plans {
  display: grid;
  gap: 16px;
  list-style: none;
}
.plan {
  position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 24px;
  padding: 32px clamp(24px, 3vw, 32px);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  background: var(--c-surface);
  box-shadow: var(--shadow-sm);
}
.plan__name { display: grid; gap: 6px; }
.plan__name p { color: var(--c-muted); font-size: var(--fs-sm); }
.plan__price { display: grid; gap: 4px; }
.plan__amount {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: clamp(2.5rem, 2.2rem + 1vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.plan__amount span { font-size: var(--fs-sm); font-weight: 600; letter-spacing: 0; color: var(--c-muted); }
.plan__alt { color: var(--c-muted); font-size: var(--fs-sm); }
.plan__alt strong { color: var(--c-text); }
.plan .checklist { font-size: var(--fs-sm); align-content: start; }

.plan--featured {
  border: 2px solid var(--c-brand);
  box-shadow: var(--shadow-md), 0 0 0 6px var(--c-brand-soft);
}
.plan__flag {
  position: absolute;
  top: -14px;
  left: clamp(24px, 3vw, 32px);
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: var(--c-brand);
  color: var(--c-on-brand);
  font-size: var(--fs-xs);
  font-weight: 700;
}

.pricing-notes {
  display: grid;
  gap: 8px;
  margin-top: 28px;
  color: var(--c-muted);
  font-size: var(--fs-sm);
  text-align: center;
}

@media (min-width: 960px) {
  .plans { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
}

/* ---------- FAQ ---------- */
.faq-grid {
  display: grid;
  gap: 40px;
}
.faq-grid .section-head { margin-bottom: 0; }
.faq-list { display: grid; border-top: 1px solid var(--c-border); }
.faq-list details { border-bottom: 1px solid var(--c-border); }
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 18px 4px;
  font-size: var(--fs-lg);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
  transition: color 0.15s var(--ease);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--c-accent-text); }
.faq-list summary::after {
  content: "";
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--c-border-strong);
  background:
    linear-gradient(currentColor, currentColor) center / 12px 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 12px no-repeat;
  transition: transform 0.25s var(--ease), background-size 0.25s var(--ease);
}
.faq-list details[open] summary::after {
  transform: rotate(180deg);
  background-size: 12px 2px, 2px 0;
}
.faq-answer {
  display: grid;
  gap: 12px;
  max-width: 44rem;
  padding: 0 4px 24px;
  color: var(--c-muted);
}

@media (min-width: 960px) {
  .faq-grid { grid-template-columns: 0.8fr 1.2fr; gap: 64px; }
  .faq-grid .section-head { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
}

/* ---------- Closing call to action ---------- */
.closing {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 2rem + 5vw, 6rem) clamp(24px, 5vw, 64px);
  border-radius: var(--r-xl);
  background: var(--c-band-bg);
  color: var(--c-band-text);
  text-align: center;
}
.closing::before {
  /* Brand symbol, oversized and faint */
  content: "";
  position: absolute;
  right: -90px;
  bottom: -110px;
  width: 360px;
  height: 360px;
  background: url("/images/symbol.svg") center / contain no-repeat;
  opacity: 0.12;
  pointer-events: none;
}
.closing__inner { position: relative; display: grid; gap: 20px; justify-items: center; max-width: 40rem; margin-inline: auto; }
.closing p { color: var(--c-band-muted); font-size: var(--fs-lg); }
.closing .btn--primary:focus-visible { outline-color: #fff; }
.closing a:not(.btn) { color: #ffb185; }
.closing__mail { font-size: var(--fs-sm); }

/* ---------- Footer ---------- */
.site-footer {
  padding-block: 56px 32px;
  border-top: 1px solid var(--c-border);
  font-size: var(--fs-sm);
}
.footer-grid { display: grid; gap: 40px; }
.footer-brand { display: grid; gap: 14px; justify-items: start; max-width: 24rem; }
.footer-brand img { width: 172px; margin-left: -6px; }
.footer-brand p { color: var(--c-muted); }
.footer-col h2 {
  margin-bottom: 12px;
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-muted);
}
.footer-col ul { display: grid; list-style: none; }
.footer-col a,
.footer-mail {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--c-text);
  text-decoration: none;
}
.footer-col a:hover,
.footer-mail:hover { color: var(--c-accent-text); text-decoration: underline; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--c-border);
  color: var(--c-muted);
  font-size: var(--fs-xs);
}

@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

/* ---------- Legal pages ---------- */
.page-hero {
  padding-block: clamp(3rem, 2rem + 4vw, 5rem) clamp(2rem, 1.5rem + 2vw, 3rem);
  border-bottom: 1px solid var(--c-border);
}
.page-hero .container,
.prose-wrap { max-width: calc(46rem + var(--gutter) * 2); }
.page-hero h1 { margin-top: 16px; font-size: clamp(2.25rem, 1.7rem + 2.6vw, 3.5rem); }

.prose-wrap { padding-block: clamp(2.5rem, 2rem + 2vw, 4rem) var(--section-y); }
.prose { font-size: var(--fs-base); line-height: 1.7; }
.prose > * + * { margin-top: 1em; }
.prose h2 {
  margin-top: 2.4em;
  font-size: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  letter-spacing: -0.02em;
}
.prose h2 + * { margin-top: 0.75em; }
.prose ul,
.prose ol { padding-left: 1.4em; display: grid; gap: 0.6em; }
.prose li::marker { color: var(--c-accent-text); }
.prose .muted {
  display: inline-block;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: var(--c-surface-2);
  color: var(--c-muted);
  font-size: var(--fs-sm);
}
.prose .muted + h2 { margin-top: 1.6em; }

/* ---------- 404 ---------- */
.not-found {
  display: grid;
  place-items: center;
  min-height: 62vh;
  padding-block: var(--section-y);
  text-align: center;
}
.not-found__inner { display: grid; gap: 20px; justify-items: center; max-width: 34rem; }
.not-found__code {
  color: var(--c-accent-text);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
}
.not-found p { color: var(--c-muted); font-size: var(--fs-lg); }
.not-found .cta-row { justify-content: center; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  @keyframes rise {
    /* Transform only: content stays visible even if the animation never runs. */
    from { transform: translateY(24px); }
    to { transform: none; }
  }
  /* Text is never animated in, so the headline paints immediately. */
  .hero__phones { animation: rise 0.9s var(--ease) both; }

  .gallery .phone { transition: transform 0.35s var(--ease); }
  .gallery li:hover .phone { transform: translateY(-6px); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .site-header, .site-footer, .skip-link { display: none; }
  body { background: #fff; color: #000; }
}
