/* LKAS Repair. Two inks from the subject: the black of the cluster and the
   amber of its warning text; the order form is the white of a shipping label. */
:root {
  --ground: #0b0b0c;
  --ground-2: #17181b;       /* one tone step up, for surfaces */
  --ink: #f2f1ed;
  --ink-soft: #b9bcc2;
  --accent: #ff7417;         /* the dash's warning amber */
  --accent-ink: #120800;
  --paper: #f3f3f0;
  --paper-2: #e4e4df;
  --paper-ink: #111214;
  --ok: #5fd08a;
  --bad: #ff6b5e;

  --face: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --margin: clamp(16px, 2.2vw, 32px);
  --section: clamp(96px, 12vw, 200px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-press: cubic-bezier(.3, .7, .4, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font: 400 18px/1.55 var(--face); font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
p { margin: 0 0 1em; }
h2, h3 { margin: 0; }
figure { margin: 0; }
figcaption { font-size: 15px; color: var(--ink-soft); margin-top: 12px; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* The display voice: Archivo at its narrowest width, heavy, in capitals —
   the blunt type of a shipping label. */
.display, .display-2, .figure, .close-name, .steps h3, .label-band, .label-total, .wordmark {
  font-weight: 800; font-stretch: 62%; text-transform: uppercase;
  letter-spacing: -0.01em; line-height: .86;
}
.display { font-size: clamp(56px, 11.5vw, 190px); margin: 0; }
.display-2 { font-size: clamp(44px, 7vw, 116px); }
.muted { color: var(--ink-soft); }
.small { font-size: 16px; color: var(--ink-soft); margin-top: 14px; }

/* ---- bar ---- */
.bar {
  display: flex; align-items: center; gap: 32px;
  padding: 18px var(--margin); position: absolute; inset: 0 0 auto 0; z-index: 2;
}
.wordmark { font-size: 30px; text-decoration: none; color: var(--ink); margin-right: auto; }
.bar nav { display: flex; gap: 28px; }
.bar nav a { text-decoration: none; font-size: 16px; color: var(--ink); }
.bar-action {
  background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 700;
  font-size: 16px; padding: 10px 16px;
  transition: transform .25s var(--ease-press), background-color .2s;
}
.bar-action:hover { color: var(--accent-ink); background: #ff8a3d; transform: translateY(-2px); }

/* ---- buttons: flat, square, one fill ---- */
.btn {
  display: inline-block; background: var(--accent); color: var(--accent-ink);
  font: 700 19px/1 var(--face); padding: 20px 28px; border: 0; cursor: pointer;
  text-decoration: none;
  transition: transform .3s var(--ease-press), background-color .2s;
}
.btn:hover { color: var(--accent-ink); background: #ff8a3d; transform: translateY(-3px); }
.btn:active { transform: translateY(0) scale(.98); transition-duration: .08s; }
.btn:disabled { opacity: .6; cursor: default; transform: none; }
.btn-block { width: 100%; }

/* ---- hero: the cluster photograph above, the claim below ---- */
.hero { display: grid; grid-template-rows: clamp(300px, 54vh, 620px) auto; }
.hero-photo { overflow: hidden; background: #000; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 58% 52%; }
.hero-copy {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px var(--margin);
  padding: 32px var(--margin) 56px; align-items: end;
}
.hero h1 { grid-column: 1 / 9; font-size: clamp(56px, 8.6vw, 150px); }
.hero-side { grid-column: 9 / 13; }
.hero-side p:first-child { font-size: 18px; max-width: 34ch; }

/* ---- symptoms: the messages as type, one photograph pinned beside them ---- */
.symptoms {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 var(--margin);
  padding: var(--section) var(--margin) 0;
}
.symptoms-text { grid-column: 1 / 7; }
.messages { list-style: none; margin: 48px 0 0; padding: 0; }
.messages li {
  min-height: 44vh; display: flex; flex-direction: column; justify-content: center;
  font-size: clamp(32px, 3.6vw, 56px); font-weight: 600; line-height: 1.05;
  letter-spacing: -0.02em; color: #5d5f64; transition: color .5s var(--ease-out);
}
.messages li.on { color: var(--accent); }
.messages li img { display: none; }
.code-note { max-width: 40ch; padding-bottom: var(--section); }
.code-note strong { color: var(--accent); }
.symptoms-frame {
  grid-column: 7 / 13; position: sticky; top: 12vh; align-self: start;
  margin-top: 30vh; height: 76vh; display: flex; flex-direction: column; justify-content: center;
}
.symptoms-frame img { width: 100%; transition: opacity .35s ease; }
.symptoms-frame img.swap { opacity: 0; }

/* ---- how: a field of label white ---- */
.how { background: var(--paper); color: var(--paper-ink); padding: var(--section) var(--margin); }
.how h2 { max-width: 16ch; }
.steps {
  list-style: none; padding: 0; margin: 80px 0 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 48px var(--margin);
}
.steps h3 { font-size: clamp(56px, 6vw, 100px); margin-bottom: 18px; }
.steps li:nth-child(even) { margin-top: 72px; }
.steps p { max-width: 30ch; margin: 0; }

/* ---- price: the whole field in amber ---- */
.price { background: var(--accent); color: var(--accent-ink); padding: var(--section) var(--margin); }
.price-pair { display: grid; grid-template-columns: 5fr 7fr; gap: var(--margin); margin-top: 72px; align-items: end; }
.figure { font-size: clamp(64px, 10vw, 170px); margin-bottom: 20px; }
.them .figure { font-size: clamp(40px, 5.2vw, 88px); opacity: .55; }
.us .figure { font-size: clamp(110px, 17vw, 300px); }
.price-pair p:not(.figure) { max-width: 36ch; font-size: 19px; }

/* ---- bench: the camera opened up ---- */
.bench {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 48px var(--margin);
  padding: var(--section) var(--margin); align-items: start;
}
.bench-board { grid-column: 1 / 8; }
.bench-text { grid-column: 8 / 13; padding-top: 4vw; }
.bench-text h2 { margin-bottom: 32px; }
.bench-lens { grid-column: 3 / 7; margin-top: -2vw; }
.bench-board img, .bench-lens img { width: 100%; }
.promises { list-style: none; padding: 0; margin: 32px 0 0; }
.promises li { padding: 14px 18px; background: var(--ground-2); margin-bottom: 6px; }

/* ---- order: the form is the prepaid label ---- */
.order {
  background: var(--ground-2); padding: var(--section) var(--margin);
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 48px var(--margin); align-items: start;
}
.order-text { grid-column: 1 / 6; }
.order-text h2 { margin-bottom: 32px; }
.order-text p { max-width: 38ch; }
.label {
  grid-column: 7 / 12; background: var(--paper); color: var(--paper-ink);
  /* a label's clipped corner */
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%);
}
.label-band {
  background: var(--paper-ink); color: var(--paper); display: flex; justify-content: space-between;
  gap: 16px; padding: 16px 20px; font-size: 26px; line-height: 1;
}
.label-band span:last-child { font-size: 17px; align-self: center; text-align: right; }
.label-route { display: grid; grid-template-columns: 1fr 1fr; background: var(--paper-2); }
.label-route > div { padding: 18px 20px; }
.label-route > div + div { background: var(--paper); }
.tag { display: block; font-size: 15px; font-weight: 600; margin: 0 0 6px; color: #45474c; }
.who { font-size: 20px; font-weight: 700; line-height: 1.2; margin: 0; }
.label-field { padding: 20px; }
.label-field + .label-field { background: var(--paper-2); }
.label input[type=text], .label input[type=email], .label input[type=tel] {
  width: 100%; padding: 14px 16px; border: 2px solid var(--paper-ink); border-radius: 0;
  background: #fff; color: var(--paper-ink); font: 600 22px/1.2 var(--face);
}
.label input#vin { text-transform: uppercase; letter-spacing: .06em; }
.label input:focus-visible { outline: 3px solid var(--accent); outline-offset: 0; }
#zip-row { margin-top: 16px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 17px; cursor: pointer; }
.check input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--paper-ink); flex: none; }
.note { font-size: 16px; color: #45474c; min-height: 1.5em; margin: 10px 0 0; }
.note.ok { color: #0d6b34; font-weight: 600; }
.note.bad, .error { color: #b3261e; font-weight: 600; }
.error { padding: 0 20px; margin: 12px 0 0; }
.barcode:empty { height: 0; margin: 0; }
.barcode { display: flex; gap: 2px; height: 48px; margin-top: 12px; align-items: stretch; }
.barcode i { background: var(--paper-ink); transform-origin: bottom; animation: bar-in .4s var(--ease-out) both; }
@keyframes bar-in { from { transform: scaleY(0); } }
.label-total {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 20px; font-size: 44px;
}
.label .btn { font-size: 20px; padding: 24px; }

/* ---- faq ---- */
.faq { padding: var(--section) var(--margin); display: grid; grid-template-columns: repeat(12, 1fr); gap: 48px var(--margin); }
.faq h2 { grid-column: 1 / 5; }
.faq-list { grid-column: 5 / 13; }
details { background: var(--ground-2); margin-bottom: 6px; }
summary {
  cursor: pointer; list-style: none; padding: 22px 24px; font-size: 22px; font-weight: 600;
  display: flex; justify-content: space-between; gap: 24px;
  transition: color .2s;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-size: 28px; line-height: .8; transition: transform .3s var(--ease-out); }
details[open] summary::after { transform: rotate(45deg); }
summary:hover { color: var(--accent); }
details p { padding: 0 24px 24px; margin: 0; max-width: 60ch; }

/* ---- close ---- */
.close { padding: var(--section) var(--margin) 32px; overflow: hidden; }
.close-name {
  font-size: clamp(64px, 20.4vw, 400px); line-height: .8; margin: 64px 0 40px; color: var(--accent);
  white-space: nowrap;
}
.fine { font-size: 15px; color: var(--ink-soft); max-width: 80ch; }

/* ---- entrances (only when script is running; content never depends on it) ---- */
.js [data-reveal] { opacity: 0; transform: translateY(24px); }
.js [data-reveal].in {
  opacity: 1; transform: none;
  transition: opacity .7s var(--ease-out), transform .9s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.hero-photo img { animation: settle 2.4s var(--ease-out) both; }
@keyframes settle { from { transform: scale(1.08); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js [data-reveal].in { transition: opacity .3s; }
  .hero-photo img, .barcode i { animation: none; }
  .btn, .bar-action { transition: background-color .2s; }
  .btn:hover, .bar-action:hover { transform: none; }
}

/* ---- phone: its own composition ---- */
@media (max-width: 900px) {
  .bar nav { display: none; }
  .bar { gap: 12px; }
  .bar-action { padding: 9px 12px; font-size: 15px; }
  .hero { grid-template-rows: 44vh auto; }
  .hero h1 { font-size: clamp(44px, 12vw, 96px); }
  .hero h1, .hero-side { grid-column: 1 / -1; }
  .symptoms-text { grid-column: 1 / -1; }
  .symptoms-frame { display: none; }
  .messages li { min-height: 0; color: var(--accent); padding: 28px 0; font-size: 30px; }
  .messages li img { display: block; margin-top: 16px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li:nth-child(even) { margin-top: 0; }
  .price-pair { grid-template-columns: 1fr; }
  .bench-board, .bench-text, .bench-lens { grid-column: 1 / -1; }
  .bench-lens { margin-top: 0; width: 70%; }
  .order-text, .label { grid-column: 1 / -1; }
  .faq h2, .faq-list { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .label-band { font-size: 22px; }
  .label-total { font-size: 36px; }
  summary { font-size: 19px; padding: 18px; }
  details p { padding: 0 18px 18px; }
}

/* ===== conversion pieces ===== */
/* what you get, under every main button */
.trust { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 16px; color: var(--ink-soft); }
.trust li::before { content: "✓"; color: var(--accent); font-weight: 800; margin-right: 8px; }
/* new part vs. our repair, above the fold on part pages */
.anchor { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 0 0 28px; max-width: 520px; }
.anchor div { background: var(--ground-2); padding: 14px 16px; }
.anchor .ours { background: var(--accent); color: var(--accent-ink); }
.anchor dt { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.anchor dd { margin: 0; font-weight: 800; font-stretch: 62%; font-size: 40px; line-height: 1; text-transform: uppercase; }
.anchor div:not(.ours) dd { color: var(--ink-soft); }
.anchor small { font: 600 15px/1 var(--face); font-stretch: 100%; text-transform: none; margin-left: 4px; }
.label-fine { font-size: 15px; color: #45474c; text-align: center; padding: 0 20px 20px; margin: 12px 0 0; }
/* phone: the order button stays in reach until the form is on screen */
.dock { display: none; }
@media (max-width: 900px) {
  .dock {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 5;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--ground);
    transform: translateY(110%); transition: transform .3s var(--ease-out);
  }
  .dock.on { transform: none; }
  .dock .btn { width: 100%; text-align: center; padding: 18px; }
  .close { padding-bottom: 110px; }
  .hero { grid-template-rows: 34vh auto; }
  .hero-copy { padding-top: 24px; }
  /* five full photos stacked was most of the page: keep the first, list the rest */
  .messages { margin-top: 28px; }
  .messages li { padding: 12px 0; font-size: 26px; }
  .messages li:not(:first-child) img { display: none; }
  .messages li:first-child { padding-bottom: 28px; }
  .code-note { padding-top: 28px; }
}
@media (max-width: 520px) { .anchor small { display: block; margin: 6px 0 0; } .anchor dd { font-size: 36px; } }
@media (prefers-reduced-motion: reduce) { .dock { transition: none; } }

/* the return address, filled in like the From block of a label */
fieldset.label-field { border: 0; margin: 0; min-width: 0; background: var(--paper-2); }
.label-from legend { padding: 0; float: left; width: 100%; }
.label-from input { margin-top: 8px; }
.label .label-from input { font-size: 19px; padding: 12px 14px; }
.row-3 { display: grid; grid-template-columns: 1fr 70px 96px; gap: 8px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.label-route .check { font-size: 16px; }
@media (max-width: 520px) { .row-2 { grid-template-columns: 1fr; gap: 0; } .row-3 { grid-template-columns: 1fr 64px 84px; } }

/* ===== status page (an app screen: kept plain) ===== */
.status-page .bar { position: static; }
.status { max-width: 680px; margin: 0 auto; padding: 32px var(--margin) 96px; }
.status .eyebrow-free { color: var(--ink-soft); margin-bottom: 8px; }
.status h1 { font-size: clamp(40px, 7vw, 72px); margin: 0 0 12px; }
.timeline { list-style: none; padding: 0; margin: 32px 0; }
.timeline li { position: relative; padding: 0 0 24px 36px; color: var(--ink-soft); }
.timeline li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--ground-2); }
.timeline li::after { content: ""; position: absolute; left: 10px; top: 24px; bottom: 0; width: 2px; background: var(--ground-2); }
.timeline li:last-child::after { display: none; }
.timeline li.done { color: var(--ink); }
.timeline li.done::before { background: var(--accent); }
.timeline time { display: block; font-size: 15px; color: var(--ink-soft); }
.callout { background: var(--ground-2); padding: 20px 22px; margin: 16px 0; }
.callout .btn { margin-top: 4px; }

/* ===== article page (U3000-49) ===== */
.article-page .bar { position: static; }
.article { max-width: 760px; padding: 48px var(--margin) var(--section); margin: 0 auto 0 max(var(--margin), 12vw); }
.article h1 { font-size: clamp(48px, 8vw, 120px); margin: 0 0 32px; }
.article h2 { font-size: clamp(36px, 4.6vw, 64px); margin: 72px 0 20px; }
.article .lead { font-size: 22px; line-height: 1.45; }
.article ul { padding-left: 1.2em; }
.article li { margin-bottom: 8px; }
.article .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 48px 0; }
@media (max-width: 600px) { .article .pair { grid-template-columns: 1fr; } }

/* ===== landing pages (pages/build.py) ===== */
.lp-page .bar { position: static; }
.crumbs { padding: 0 var(--margin); margin: 8px 0 0; font-size: 15px; color: var(--ink-soft); }
.crumbs a { color: var(--ink-soft); }
.display-3 { font-weight: 800; font-stretch: 62%; text-transform: uppercase; letter-spacing: -0.01em; line-height: .9; font-size: clamp(36px, 4.4vw, 72px); margin-bottom: 28px; }
.lp-head {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 40px var(--margin);
  padding: 40px var(--margin) clamp(72px, 9vw, 140px); align-items: center;
}
.lp-head-text { grid-column: 1 / 8; }
.lp-head-plain .lp-head-text { grid-column: 1 / 11; }
.lp-head h1 { font-size: clamp(48px, 6.8vw, 112px); margin-bottom: 28px; }
.lp-head h1.long { font-size: clamp(38px, 5vw, 84px); }
.lp-lead { font-size: 20px; line-height: 1.5; max-width: 40ch; }
.lp-head-photo { grid-column: 8 / 13; }
.lp-head-photo img { width: 100%; }
.lp-facts, .lp-band, .lp-how, .lp-related, .prose, .hub { padding: clamp(72px, 9vw, 140px) var(--margin); }
.lp-facts { background: var(--paper); color: var(--paper-ink); }
.lp-facts p, .lp-band p { max-width: 62ch; }
.lp-facts a { color: var(--paper-ink); }
.facts { border-collapse: collapse; width: 100%; max-width: 900px; margin: 0 0 28px; font-size: 18px; }
.facts th, .facts td { text-align: left; padding: 16px 18px; vertical-align: top; }
.facts tbody tr:nth-child(odd) { background: var(--paper-2); }
.facts tbody th { width: 34%; font-weight: 600; }
.facts thead th { font-size: 15px; color: #45474c; font-weight: 600; }
.facts.wide { max-width: none; }
.facts.wide tbody th { white-space: nowrap; width: auto; }
.lp-messages { list-style: none; padding: 0; margin: 0 0 32px; columns: 2; column-gap: var(--margin); }
.lp-messages li { font-size: clamp(22px, 2.2vw, 32px); font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; padding: 8px 0; break-inside: avoid; color: var(--accent); }
.lp-messages a { color: var(--accent); text-decoration: none; }
.lp-messages a:hover { text-decoration: underline; }
.lp-messages li.on { color: var(--ink); }
.lp-how { background: var(--ground-2); }
.lp-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 48px; max-width: 1100px; font-size: 19px; }
.lp-steps strong { display: block; font-size: 24px; margin-bottom: 4px; }
.lp-related ul, .hub ul { list-style: none; padding: 0; margin: 0 0 20px; }
.lp-related li, .hub li { padding: 6px 0; font-size: 18px; }
.lp-related .cols { columns: 3; column-gap: var(--margin); }
.hub { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px var(--margin); }
.hub h2 { font-size: 28px; margin-bottom: 12px; }
.hub h2 a { text-decoration: none; color: var(--accent); }
.hub li span { display: block; font-size: 15px; color: var(--ink-soft); }
.lp-checks { font-size: 19px; max-width: 62ch; padding-left: 1.2em; }
.lp-checks li { margin-bottom: 10px; }
.prose { max-width: 820px; }
.prose h2 { font-size: 28px; margin: 40px 0 12px; }
.prose li { margin-bottom: 8px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 0 0 24px; font-size: 16px; }
@media (max-width: 900px) {
  .lp-head-text, .lp-head-photo, .lp-head-plain .lp-head-text { grid-column: 1 / -1; }
  .lp-steps, .hub { grid-template-columns: 1fr; }
  .lp-messages, .lp-related .cols { columns: 1; }
  .facts tbody th { width: 40%; }
}
@media (max-width: 520px) {
  .lp-head h1.long { font-size: 29px; }
  .facts { font-size: 16px; }
  .facts th, .facts td { padding: 12px 10px; }
  .facts.wide th:nth-child(4), .facts.wide td:nth-child(4) { display: none; }
}

/* request-only mode: the thank-you that replaces the order form */
.requested { padding: 1.25rem 1.25rem 1rem; border: 2px solid var(--accent); border-radius: 12px; }
.requested h3 { margin: 0 0 .5rem; }
.requested p { margin: 0; }
