/* Vehicle Service Parts Planner — "Service sticker" landing.
   Workshop paper, gunmetal and coolant magenta; Exo 2 for text, Victor Mono for numbers and labels. */

@font-face { font-family: "Exo 2"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/exo-2-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Exo 2"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/exo-2-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Exo 2"; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/exo-2-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Victor Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/victor-mono-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Victor Mono"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/victor-mono-latin-700-normal.woff2") format("woff2"); }

:root {
  --paper: #f0eff3;
  --card: #ffffff;
  --sunk: #e4e2ea;
  --ink: #1c1a24;
  --soft: #55525f;
  --line: #d3d0db;
  --metal: #2a2833;
  --metal-2: #3a3846;
  --on-metal: #f0eff3;
  --on-metal-soft: #b3afc0;
  --brand: #b8155f;
  --brand-dark: #8e0f49;
  --brand-light: #ff7ab4;
  --tint: #f8dde9;
  --late: #b42318;
  --soon: #8a5a00;
  --soon-tint: #fbebc4;
  --ok: #2f6b48;
  --ok-tint: #dcede2;
  --mono: "Victor Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --sans: "Exo 2", system-ui, "Segoe UI", Roboto, sans-serif;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6; overflow-wrap: anywhere; }
h1, h2, h3, p, li, summary, td, th, a { overflow-wrap: anywhere; hyphens: auto; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-dark); text-underline-offset: 3px; }
a:hover { color: var(--brand); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 3px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.mono { font-family: var(--mono); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.8rem; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--metal); color: #fff; padding: 10px 14px; z-index: 10; }
.skip:focus { left: 8px; }
.kicker { font-family: var(--mono); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand-dark); margin: 0 0 10px; }
h1, h2, h3 { font-weight: 800; line-height: 1.12; letter-spacing: -0.01em; margin: 0 0 14px; }
h1 { font-size: clamp(2rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.35rem; }
.lead { font-size: 1.18rem; color: var(--soft); max-width: 40em; }
.accent { color: var(--brand); }
.text-link { font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* Header with the dipstick */
.top { padding-top: 14px; }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.1rem; min-height: 48px; }
.nav { list-style: none; display: flex; gap: 4px 18px; margin: 0; padding: 0; flex-wrap: wrap; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none; font-weight: 600; border-bottom: 3px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--brand); color: var(--ink); }
.dip { position: relative; height: 16px; margin-top: 10px; }
.dip::before { content: ""; position: absolute; left: 26px; right: 0; top: 7px; height: 3px; border-radius: 2px; background: var(--metal); }
.dip-tip { position: absolute; left: 0; top: 5px; width: 20px; height: 7px; border-radius: 2px; background: var(--brand); }
.dip-band { position: absolute; left: 62%; width: 22%; top: 2px; height: 13px; background: repeating-linear-gradient(115deg, var(--tint) 0 5px, var(--brand) 5px 7px); border-left: 3px solid var(--metal); border-right: 3px solid var(--metal); }

/* Hero */
.hero { padding: 48px 0 64px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 40px; align-items: center; }
.hero h1 span { display: block; }
.hero-cta { display: flex; align-items: center; gap: 14px 22px; flex-wrap: wrap; margin: 26px 0 22px; }
.drums { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.drums li { font-family: var(--mono); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--on-metal); background: var(--metal); border-radius: 4px; padding: 6px 10px; box-shadow: inset 0 0 0 3px var(--ink); }
.drums li:last-child { background: var(--brand); }
.hero-shots { position: relative; min-height: 520px; }
.shot { margin: 0; background: var(--metal); padding: 8px; border-radius: 22px; box-shadow: 0 18px 40px rgba(28, 26, 36, 0.22); }
.shot img { border-radius: 15px; width: 100%; }
.hero-shots .shot { position: absolute; width: 62%; }
.shot-back { right: 0; top: 0; }
.shot-front { left: 0; top: 70px; }

/* Play badge */
.play { display: inline-flex; align-items: center; gap: 12px; min-height: 58px; padding: 8px 18px 8px 12px; border-radius: 8px; background: var(--metal); color: var(--on-metal); text-decoration: none; border: 2px solid var(--metal); }
a.play:hover { background: var(--ink); color: #fff; }
.play-soon { background: var(--card); color: var(--ink); border: 2px dashed var(--metal); cursor: default; }
.play-gauge { width: 30px; height: 18px; border: 5px solid currentColor; border-bottom: 0; border-radius: 30px 30px 0 0; position: relative; }
.play-gauge::after { content: ""; position: absolute; right: -5px; bottom: 0; width: 5px; height: 9px; background: var(--brand); }
.play-text { display: flex; flex-direction: column; line-height: 1.15; }
.play-small { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; }
.play-big { font-weight: 800; font-size: 1.15rem; }

/* Worked example */
.example { background: var(--metal); color: var(--on-metal); padding: 64px 0; }
.example .kicker { color: var(--brand-light); }
.example p { color: var(--on-metal-soft); }
.example-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.states { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.states li { color: var(--on-metal-soft); }
.state { display: inline-block; font-family: var(--mono); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 8px; border-radius: 3px; margin-right: 6px; }
.state-overdue { background: var(--late); color: #fff; }
.state-soon { background: var(--soon-tint); color: var(--soon); }
.state-ok { background: var(--ok-tint); color: var(--ok); }
.gauge-card { background: var(--card); color: var(--ink); border-radius: 12px; padding: 24px; border-left: 8px solid #f2b53a; }
.gauge-row + .gauge-row { margin-top: 18px; }
.gauge-head { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-weight: 600; }
.gauge-bar { position: relative; height: 12px; background: var(--sunk); border-radius: 3px; overflow: hidden; margin: 8px 0 4px; }
.gauge-bar span { display: block; height: 100%; background: #f2b53a; }
.gauge-bar i { position: absolute; left: 80%; top: 0; bottom: 0; width: 3px; background: var(--card); }
.gauge-card .gauge-note { margin: 0; color: var(--soon); font-weight: 600; }
.gauge-card .verdict { margin: 18px 0 0; color: var(--soft); border-top: 1px solid var(--line); padding-top: 14px; }

/* Schedule rows */
.schedule { padding: 72px 0 32px; }
.rows { list-style: none; margin: 32px 0 0; padding: 0; counter-reset: none; }
.row { display: grid; grid-template-columns: 96px minmax(0, 1fr) 300px; gap: 28px; align-items: start; padding: 36px 0; border-top: 2px solid var(--metal); }
.row-flip .shot { order: -1; }
.row-flip { grid-template-columns: 300px 96px minmax(0, 1fr); }
.row-no { font-family: var(--mono); font-weight: 700; font-size: 2.6rem; line-height: 1; color: var(--brand); background: var(--card); border: 2px solid var(--metal); border-radius: 6px; padding: 14px 10px; text-align: center; }
.row-text p { color: var(--soft); }
.ticks { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; }
.ticks li { padding-left: 26px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 12px; height: 12px; background: var(--brand); transform: rotate(45deg); border-radius: 2px; }
.row .shot { max-width: 300px; }

/* Shopping sheet */
.sheet-sec { padding: 56px 0 72px; }
.sheet-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 40px; align-items: center; }
.sheet-grid > div p { color: var(--soft); }
.sheet { margin: 0; background: var(--card); border-radius: 6px; padding: 22px; box-shadow: 0 12px 30px rgba(28, 26, 36, 0.12); }
.sheet-band { border-top: 6px solid var(--metal); padding-top: 8px; color: var(--brand-dark); }
.sheet-title { font-weight: 800; font-size: 1.4rem; margin: 6px 0 0; }
.sheet-sub { margin: 0; color: var(--soft); font-size: 0.95rem; }
.sheet-due { margin: 12px 0; padding: 8px 12px; background: var(--paper); border-left: 4px solid var(--brand); font-size: 0.95rem; }
.sheet-scroll { overflow-x: auto; }
.sheet table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.sheet th { text-align: left; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--soft); border-bottom: 2px solid var(--metal); padding: 6px 4px; }
.sheet td { border-bottom: 1px solid var(--line); padding: 8px 4px; vertical-align: top; }
.sheet td span { color: var(--soft); font-size: 0.82rem; }
.sheet td:not(:first-child), .sheet th:not(:first-child) { text-align: right; white-space: nowrap; }
.sheet td.buy { font-weight: 700; color: var(--brand-dark); }
.sheet tr.ok td { color: var(--soft); }
.sheet tr.ok td.buy { color: var(--ok); }
.sheet-total { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-weight: 700; margin: 12px 0 0; border-top: 2px solid var(--metal); padding-top: 8px; }

/* Privacy strip */
.private { background: var(--card); padding: 56px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.private-list { list-style: none; padding: 0; margin: 20px 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.private-list li { border-top: 5px solid var(--brand); padding-top: 12px; display: grid; gap: 4px; }
.private-list span { color: var(--soft); }

/* FAQ */
.faq { padding: 64px 0; }
.faq-wrap { max-width: 820px; }
details { border-bottom: 1px solid var(--line); padding: 4px 0; }
summary { cursor: pointer; font-weight: 600; font-size: 1.08rem; min-height: 48px; display: flex; align-items: center; list-style: none; padding-right: 28px; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; font-family: var(--mono); font-weight: 700; color: var(--brand); font-size: 1.3rem; }
details[open] summary::after { content: "–"; }
details p { color: var(--soft); margin: 0 0 14px; }

/* Download band */
.download { padding: 0 0 72px; }
.download-inner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px; align-items: center; background: var(--card); border: 2px solid var(--metal); border-radius: 12px; padding: 28px; }
.download h2 { margin-bottom: 6px; }
.download p { margin: 0; color: var(--soft); }
.download .small { margin-top: 6px; font-size: 0.95rem; }
.download img { border-radius: 20px; }

/* Inner pages */
.page { padding: 40px 0 72px; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 28px 0; display: grid; gap: 14px; }
.steps li { counter-increment: step; background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--brand); border-radius: 8px; padding: 16px 18px 16px 64px; position: relative; }
.steps li::before { content: counter(step); position: absolute; left: 16px; top: 16px; width: 32px; height: 32px; border-radius: 4px; background: var(--metal); color: #fff; font-family: var(--mono); font-weight: 700; display: grid; place-items: center; }
.steps h2 { font-size: 1.2rem; margin: 2px 0 4px; }
.steps p { margin: 0; color: var(--soft); }
.sub { font-size: 1.6rem; margin-top: 40px; }
.note { margin: 36px 0; background: var(--soon-tint); border-radius: 8px; padding: 18px 20px; color: #4d3400; }
.note h2 { font-size: 1.25rem; margin-bottom: 6px; }
.note p { margin: 0; }
.mail { font-size: 1.25rem; font-weight: 700; }
.prose h2 { font-size: 1.4rem; margin-top: 34px; }
.prose ul { padding-left: 1.2em; }
.prose li { margin: 4px 0; }

/* Footer */
.foot { background: var(--metal); color: var(--on-metal); padding: 36px 0 28px; }
.foot-inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.foot-brand { display: flex; gap: 12px; align-items: center; }
.foot-brand img { border-radius: 10px; }
.foot-name { margin: 0; font-weight: 800; }
.foot-small { margin: 0; color: var(--on-metal-soft); font-size: 0.92rem; }
.foot-links { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0; padding: 0; }
.foot-links a { color: var(--on-metal); display: inline-flex; min-height: 44px; align-items: center; }
.foot-links a:hover { color: var(--brand-light); }
.foot-note { margin-top: 18px; border-top: 1px solid var(--metal-2); padding-top: 14px; }
.foot-note p { margin: 0; color: var(--on-metal-soft); font-size: 0.88rem; }

@media (max-width: 960px) {
  .hero-grid, .example-grid, .sheet-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-shots { min-height: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 560px; }
  .hero-shots .shot { position: static; width: auto; }
  .shot-front { margin-top: 40px; }
  .row, .row-flip { grid-template-columns: 72px minmax(0, 1fr); }
  .row .shot, .row-flip .shot { grid-column: 2; order: 0; max-width: 280px; }
  .row-no { font-size: 1.9rem; padding: 10px 6px; }
  .private-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .download-inner { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .wrap { padding: 0 16px; }
  .hero { padding: 28px 0 44px; }
  .row, .row-flip { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .row .shot, .row-flip .shot { grid-column: 1; max-width: 260px; }
  .row-no { justify-self: start; font-size: 1.5rem; }
  .private-list { grid-template-columns: minmax(0, 1fr); }
  .sheet { padding: 14px; }
  .sheet table { font-size: 0.8rem; }
  .steps li { padding-left: 58px; }
  .download-inner { padding: 20px; }
  .gauge-card { padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
