/* Artero public site. Persuade mode, dark. Rules: brand/DESIGN.md */
:root {
  color-scheme: dark;
  --bg: var(--c-carbon);
  --sheet-dark: var(--c-carbon-raised);
  --ink: var(--c-archival);
  --ink-2: var(--c-titanium-light);
  --rule: var(--c-graphite);
  --steel: var(--c-steel);
  --paper: var(--c-archival);
  --paper-ink: var(--c-carbon);
  --paper-ink-2: var(--c-titanium);
  --paper-rule: var(--c-rule-light);
  --steel-ink: var(--c-steel-deep);
  --edge: var(--c-edge-dark);
  --cta: var(--c-steel);
  --cta-ink: var(--c-steel-night);
  --display: var(--f-display);
  --sans: var(--f-sans);
  --mono: var(--f-mono);
  --ink-soft: #C9CDD1;
  --gutter: clamp(16px, 5vw, 64px);
  --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.6 var(--sans); font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--steel); outline-offset: 3px; border-radius: 4px; }

h1, h2 { font-family: var(--display); font-weight: 600; font-stretch: 125%; letter-spacing: -0.01em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.2rem, 4.6vw, 4.2rem); line-height: 1.02; max-width: 13ch; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.08; }
h3 { font: 600 1.05rem/1.3 var(--sans); margin: 0; }
p { margin: 0; text-wrap: pretty; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: 6px; z-index: 10; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px;
  border-radius: 8px; border: 1px solid var(--edge); background: transparent; color: var(--ink);
  font: 600 15px/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn:hover { border-color: var(--ink-2); }
.btn.primary { background: var(--cta); border-color: var(--cta); color: var(--cta-ink); }
.btn.primary:hover { background: var(--c-steel-hover); border-color: var(--c-steel-hover); }
.btn[disabled] { opacity: .6; cursor: default; }

/* ---------- header */
.top {
  position: absolute; inset: 0 0 auto 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  /* the logo and nav line up with the page's content column at every width */
  padding: 20px max(var(--gutter), calc((100% - var(--max)) / 2)) 36px;
  background: linear-gradient(to bottom, rgba(17, 19, 21, .88) 0%, rgba(17, 19, 21, .55) 55%, rgba(17, 19, 21, 0) 100%);
}
.lockup { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.mark { width: 26px; height: 26px; fill: var(--ink); }
.mark .key { transform-box: fill-box; animation: seat .65s cubic-bezier(.22, 1, .36, 1) .45s both; }
@keyframes seat { from { transform: translateY(-140%); opacity: 0; } 60% { opacity: 1; } }
.word { width: 84px; height: auto; }
.top nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.top nav a { text-decoration: none; color: var(--ink); opacity: .85; }
.top nav a:hover { opacity: 1; }
.nav-cta { display: inline-flex; align-items: center; min-height: 44px; border: 1px solid rgba(244, 243, 239, .35); border-radius: 8px; padding: 0 14px; opacity: 1 !important; }
.nav-cta:hover { border-color: var(--ink); }

/* ---------- hero */
.hero { position: relative; padding: 0 !important; min-height: min(100svh, 920px); display: flex; align-items: flex-end; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; max-width: none !important; height: 100%; object-fit: cover; object-position: 64% 48%; }
.hero::after { /* legibility scrim for the copy, not decoration */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(17, 19, 21, .7) 0%, rgba(17, 19, 21, 0) 22%),
    linear-gradient(to right, rgba(17, 19, 21, .8) 0%, rgba(17, 19, 21, .25) 50%, rgba(17, 19, 21, 0) 72%),
    linear-gradient(to top, rgba(17, 19, 21, .92) 0%, rgba(17, 19, 21, 0) 65%);
}
.hero-copy { position: relative; z-index: 1; width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)) !important; margin: 0 auto; padding: 0 var(--gutter) clamp(48px, 9vh, 96px); }
.hero-copy p { max-width: 44ch; color: var(--ink-soft); margin-top: 20px; font-size: 18px; }
/* wide screens: the photo takes the right side and fades into the page, so the headline sits on clean dark space */
@media (min-width: 1000px) {
  .hero { align-items: center; }
  .hero-img { left: auto; right: 0; width: 50%; object-position: 85% 50%;
    -webkit-mask-image: linear-gradient(to right, transparent 0, transparent 8%, #000 44%); mask-image: linear-gradient(to right, transparent 0, transparent 8%, #000 44%); }
  .hero::after { background: linear-gradient(to bottom, rgba(17, 19, 21, .6) 0%, rgba(17, 19, 21, 0) 18%),
    linear-gradient(to top, #111315 0%, rgba(17, 19, 21, .6) 12%, rgba(17, 19, 21, 0) 32%); }
  .hero-copy { padding-bottom: 0; }
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---------- sections */
main > section { padding: clamp(64px, 7.5vw, 104px) var(--gutter); }
main > section > * { max-width: var(--max); margin-inline: auto; }

.what { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 6vw, 88px); align-items: center; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; }
.what > * { margin: 0; }
.what-img img { border-radius: 10px; aspect-ratio: 4 / 3; object-fit: cover; object-position: center; width: 100%; }
.offers { list-style: none; margin: 28px 0 0; padding: 0; }
.offers li { border-top: 1px solid var(--rule); }
.offers li:last-child { border-bottom: 1px solid var(--rule); }
.offers a { display: grid; grid-template-columns: 1fr auto; column-gap: 16px; padding: 20px 4px; text-decoration: none; border-radius: 6px; transition: background-color .15s; }
.offers a::after { content: ""; grid-row: 1 / 3; grid-column: 2; align-self: center; width: 9px; height: 9px; border: solid var(--ink-2); border-width: 2px 2px 0 0; transform: rotate(45deg); margin-right: 6px; transition: border-color .15s, transform .15s; }
.offers a:hover { background: var(--sheet-dark); }
.offers a:hover::after { border-color: var(--steel); transform: translateX(3px) rotate(45deg); }
.offers b { font-weight: 600; font-size: 18px; }
.offers span { margin-top: 4px; color: var(--ink-2); max-width: 54ch; }

.how-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; margin-bottom: 36px !important; }
.how-head p { color: var(--ink-2); font-size: 14px; }
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.steps li { counter-increment: step; }
.steps img { border-radius: 10px; aspect-ratio: 4 / 5; object-fit: cover; width: 100%; margin-bottom: 18px; }
.steps h3::before { content: counter(step); color: var(--steel); margin-right: 10px; }
.steps p { color: var(--ink-2); font-size: 15px; margin-top: 4px; }

/* ---------- the file: the one bold sheet */
.file { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(32px, 6vw, 88px); align-items: start; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; }
.file > * { margin: 0; }
.file-intro { position: sticky; top: 40px; }
.file-intro p { color: var(--ink-2); margin-top: 16px; max-width: 36ch; }
.sheet { background: var(--paper); color: var(--paper-ink); border-radius: 12px; padding: clamp(20px, 3vw, 36px); }
.sheet-head { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--paper-rule); }
.sheet-mark { width: 28px; height: 28px; fill: var(--paper-ink); flex: none; }
.sheet-head b { display: block; font: 600 1.15rem/1.2 var(--display); font-stretch: 112%; }
.sheet-head span { color: var(--paper-ink-2); font-size: 14px; }
.stamp { margin-left: auto; border: 1.5px solid var(--steel-ink); color: var(--steel-ink) !important; border-radius: 6px; padding: 4px 10px; font-weight: 600; font-size: 13px !important; }
.sheet-body { display: grid; grid-template-columns: minmax(130px, 200px) 1fr; gap: clamp(20px, 3vw, 36px); padding: 24px 0 8px; align-items: start; }
.car { width: 100%; height: auto; }
.car .wheels rect, .car .mirror { fill: #2B3036; }
.car .glass { fill: none; stroke: var(--paper-rule); stroke-width: 2; pointer-events: none; }
.car .outline { fill: none; stroke: var(--paper-ink); stroke-width: 2.5; }
.car .z { fill: #FFFFFF; stroke: var(--paper-rule); stroke-width: 1.5; transition: fill .15s; }
.car .z:not([data-s="ok"]) { cursor: pointer; }
.car .z[data-s="replace"] { fill: url(#hatch-dense); }
.car .z[data-s="repair"] { fill: url(#hatch-light); }
.car .z.on { fill: #CFE0EB; }
.car .z:focus-visible { outline: none; stroke: var(--steel-ink); stroke-width: 3.5; }
.car .z[data-s="replace"].on, .car .z[data-s="repair"].on { fill: #9CC0D8; }
.legend { display: flex; gap: 16px; font-size: 13px; color: var(--paper-ink-2); margin-top: 12px; flex-wrap: wrap; }
.legend i { display: inline-block; width: 14px; height: 14px; border: 1px solid var(--paper-rule); border-radius: 3px; vertical-align: -2px; margin-right: 6px; }
.legend .lr { background: repeating-linear-gradient(135deg, #111315 0 2px, #fff 2px 5px); }
.legend .lp { background: repeating-linear-gradient(135deg, #5E646B 0 1px, #fff 1px 6px); }

.ledger { width: 100%; border-collapse: collapse; font-size: 15px; }
.ledger th { text-align: left; font-weight: 500; color: var(--paper-ink-2); font-size: 13px; padding: 0 10px 10px 0; border-bottom: 1px solid var(--paper-rule); }
.ledger td { padding: 12px 10px 12px 0; border-bottom: 1px solid var(--paper-rule); vertical-align: top; transition: background-color .15s; }
.ledger tr.on td { background: #E3EDF3; }
.ledger tbody tr { cursor: pointer; }
.ledger tbody tr:focus-visible { outline: 2px solid var(--steel-ink); outline-offset: -2px; }
.zone-cap { margin-top: 10px; font-size: 14px; color: var(--paper-ink); min-height: 1.6em; }
.ledger td:first-child { font-weight: 500; padding-left: 6px; }
.ledger th:first-child { padding-left: 6px; }
.ledger .pn { display: block; color: var(--paper-ink-2); font-weight: 400; font-size: 13px; margin-top: 2px; }
.ledger .src-sm { display: none; color: var(--paper-ink-2); font-weight: 400; font-size: 13px; }
.st { color: var(--steel-ink); font-weight: 600; white-space: nowrap; }
.sheet-foot { color: var(--paper-ink-2); font-size: 14px; padding-top: 16px; }

/* ---------- bay */
.bay { position: relative; padding: 0 !important; min-height: min(80svh, 720px); display: flex; align-items: flex-end; overflow: hidden; }
.bay > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; max-width: none; }
.bay::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(17, 19, 21, .9), rgba(17, 19, 21, 0) 60%); }
.bay-copy { position: relative; z-index: 1; width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)) !important; padding: 0 var(--gutter) clamp(48px, 8vh, 88px); }
.bay-copy p { color: var(--ink-soft); margin: 14px 0 24px; max-width: 48ch; }
/* wide screens: the photo sits left and fades out, so the copy always reads on solid dark */
@media (min-width: 1040px) {
  .bay { align-items: center; }
  .bay > img { right: auto; width: 68%; object-position: 30% center;
    -webkit-mask-image: linear-gradient(to left, transparent 0, #000 34%); mask-image: linear-gradient(to left, transparent 0, #000 34%); }
  .bay::after { background: linear-gradient(to top, #111315 0%, rgba(17, 19, 21, 0) 20%), linear-gradient(to bottom, #111315 0%, rgba(17, 19, 21, 0) 14%); }
  .bay-copy { padding-bottom: 0; margin: 0 auto; }
  .bay-copy > * { margin-left: 64%; }
  .bay-copy p { margin: 14px 0 24px 64%; max-width: 34ch; }
}
/* narrower screens: photo first, copy underneath on plain dark */
@media (max-width: 1039px) {
  .bay { display: block; min-height: 0; }
  .bay > img { position: static; height: auto; aspect-ratio: 16 / 9; -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent); mask-image: linear-gradient(to bottom, #000 72%, transparent); }
  .bay::after { display: none; }
  .bay-copy { padding: 8px var(--gutter) clamp(56px, 8vw, 88px); margin: 0 auto; }
}

/* ---------- contact */
.contact { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(32px, 6vw, 88px); max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; }
.contact > * { margin: 0; }
.contact-intro p { color: var(--ink-2); margin-top: 16px; }
form { display: grid; gap: 20px; }
form label { display: grid; gap: 8px; font-size: 15px; font-weight: 500; }
.opt { color: var(--ink-2); font-weight: 400; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
input, textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 8px;
  border: 1px solid var(--edge); background: var(--sheet-dark); color: var(--ink);
  font: 400 16px/1.4 var(--sans);
}
textarea { resize: vertical; min-height: 120px; }
input::placeholder, textarea::placeholder { color: #8B929A; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--steel); outline-offset: 0; border-color: transparent; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: #F87171; }
.intent { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.intent legend { font-size: 15px; font-weight: 500; margin-bottom: 10px; padding: 0; }
.intent label { display: block; position: relative; }
.intent input { position: absolute; opacity: 0; inset: 0; min-height: 0; cursor: pointer; }
.intent label > span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; font-size: 14.5px; border: 1px solid var(--edge); border-radius: 999px; font-weight: 500; color: var(--ink-2); transition: background-color .15s, border-color .15s, color .15s; }
.intent input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.intent input:focus-visible + span { outline: 2px solid var(--steel); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.send { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.status { color: var(--ink-2); font-size: 15px; }
.status.err { color: #F87171; }

/* ---------- footer */
.foot {
  display: flex; align-items: center; gap: 14px 24px; flex-wrap: wrap;
  /* the rule spans the content column only, like the section rules above it */
  width: calc(100% - 2 * var(--gutter)); max-width: var(--max); margin: 0 auto; padding: 32px 0 48px;
  border-top: 1px solid var(--rule); color: var(--ink-2); font-size: 14px;
}
.foot-mark { width: 18px; height: 18px; fill: var(--ink-2); }
.foot-note { flex: 1; }
.foot a { color: var(--ink-2); }
.foot a:hover { color: var(--ink); }

/* ---------- small screens */
@media (max-width: 960px) {
  .what, .file, .contact { grid-template-columns: 1fr; }
  .what-img img { aspect-ratio: 16 / 10; }
  .file-intro { position: static; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .top nav a:not(.nav-cta) { display: none; }
  .hero-copy p { font-size: 17px; }
  .hero::after { background: linear-gradient(to top, rgba(17, 19, 21, .95) 0%, rgba(17, 19, 21, .9) 55%, rgba(17, 19, 21, .45) 80%, rgba(17, 19, 21, .6) 100%); }
  .actions .btn { flex: 1 1 100%; }
  .steps { grid-template-columns: 1fr 1fr; gap: 16px; }
  .steps p { font-size: 14px; }
  .sheet-body { grid-template-columns: 96px 1fr; gap: 16px; }
  .ledger { font-size: 14px; }
  .ledger th:nth-child(2), .ledger td:nth-child(2) { display: none; }
  .ledger .src-sm { display: block; }
  .row { grid-template-columns: 1fr; }
  .foot-note { flex-basis: 100%; order: 3; }
  .foot a { order: 4; display: inline-flex; align-items: center; min-height: 44px; }
  .bay-copy .btn, .send .btn { flex: 1 1 100%; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---- v2 review fixes (Gemini, 2026-11-21) */
::selection { background: var(--cta); color: var(--cta-ink); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--cta); }
a { text-underline-offset: 3px; }
button, a, input, textarea, select, label { touch-action: manipulation; }
main > section[id] { scroll-margin-top: 24px; }
.field-err { color: #F87171; font-weight: 400; font-size: 14px; min-height: 0; }
.field-err:empty { display: none; }
.msg-opt[hidden] { display: none; }

/* ---- buyer waiting list */
.buy-fields { display: grid; gap: 20px; }
.buy-fields[hidden] { display: none; }
select { font: inherit; font-size: 16px; color: var(--ink); background: var(--sheet-dark); border: 1px solid var(--edge); border-radius: 8px; min-height: 48px; padding: 0 12px; width: 100%; }
.title-ok legend .opt { display: block; font-size: 14px; margin-top: 4px; }
select { font-weight: 400; }
select:has(option[value=""]:checked) { color: #8B929A; }
select option { color: var(--ink); }

/* ---- phones: the sheet stacks, the car above its parts */
@media (max-width: 440px) {
  .sheet-body { grid-template-columns: 1fr; }
  .car { max-width: 150px; margin: 0 auto; }
  .legend { justify-content: center; }
  .zone-cap { text-align: center; }
  .offers a { padding: 18px 2px; }
}

/* ---- print: the sample sheet and the words, on white */
@media print {
  :root { --bg: #fff; --ink: #111315; --ink-2: #5E646B; --ink-soft: #5E646B; --rule: #DCDAD3; --steel: var(--c-steel-deep); }
  .offers a::after { display: none; }
  body { background: #fff; color: #111315; font-size: 11pt; }
  .top, .hero-img, .hero::after, .actions, .bay, .contact, .foot a, .skip, .how .steps img, .what-img { display: none !important; }
  .hero { min-height: 0; }
  main > section { padding: 18pt 0; break-inside: avoid; }
  .file { grid-template-columns: 1fr; }
  .sheet { border: 1px solid #DCDAD3; }
  .file-intro { position: static; }
}

/* ---- mid widths: the sheet gets the full row so its ledger never cramps */
@media (max-width: 1100px) {
  .file { grid-template-columns: 1fr; }
  .file-intro { position: static; }
  .file-intro p { max-width: 52ch; }
}

@media (min-width: 1200px) { .hero-img { width: 54%; } }
@media (min-width: 1101px) { .ledger td:nth-child(2) { white-space: nowrap; } }

/* ---- layout audit (Claude + Gemini walk, 2026-11-21) */
/* the sheet's intro sits level with the top of the sheet; the sheet fits one screen, so it never needs to follow */
.file-intro { position: static; }
/* legend and the tap caption belong to the car, under it */
.car-col { display: grid; gap: 0; align-content: start; }
.car-col .legend { justify-content: center; }
.car-col .zone-cap { text-align: center; }
/* status words end on the table's right edge, like the Verified stamp above them */
.ledger th:last-child, .ledger td:last-child { text-align: right; padding-right: 6px; }
.ledger th:nth-child(2), .ledger td:nth-child(2) { padding-right: 24px; }
/* choices in the form are controls, so they take the control radius, like the fields under them */
.intent label > span { border-radius: 8px; }
/* "Three ways": the photo runs from the heading to the last rule */
@media (min-width: 961px) {
  .what { align-items: stretch; }
  .what-img { display: flex; }
  .what-img img { height: 100%; aspect-ratio: auto; min-height: 360px; }
}
/* steps: a wrapped title hangs under its first word, not under the number */
.steps h3 { display: grid; grid-template-columns: auto 1fr; }
.foot-note { text-wrap: pretty; }
@media (max-width: 640px) {
  .steps h3 { min-height: 2.6em; align-content: start; }
}
@media (max-width: 1039px) {
  /* the bay photo fades in at the top too, so there is no hard seam under the sheet */
  .bay > img { -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 14%, #000 72%, transparent); mask-image: linear-gradient(to bottom, transparent 0, #000 14%, #000 72%, transparent); }
}
@media (max-width: 640px) {
  /* the home link is a full 44 px target without moving the logo */
  .lockup { min-height: 44px; margin: -9px 0; }
}

/* re-score: the send button has a real width on desktop; on phone a part's source reads as data, not a note */
.send .btn { min-width: 160px; }
@media (max-width: 640px) { .ledger .src-sm { color: var(--paper-ink, #111315); font-weight: 500; } }
