/* Service Ticket: an auto repair homepage built from the repair order.
   White form paper, one pre-print ink, red pre-printed numbers, the canary carbon copy,
   and fill-ins "typed" in carbon violet. Mobile-first (393px), then 760 (tablet) and 1080 (desktop).
   No scripts: the ticket builder runs on checkboxes, :has() and CSS counters. */

:root {
  /* ---- Shared token layer (same names in every Linnet theme; re-skin presets override these) ---- */
  --c-bg: #ffffff;          /* form paper: page and ticket background */
  --c-surface: #ffffff;     /* tickets, boxes */
  --c-ink: #1d2b4f;         /* pre-print ink: text, rules, borders, footer */
  --c-muted: #4a5672;       /* secondary text (7.3:1 on paper) */
  --c-line: #c5ccd9;        /* decorative hairlines */
  --c-line-strong: #4a5672; /* field and control borders (3:1 or more) */
  --c-accent: #1d2b4f;      /* buttons and the Call tile */
  --c-on-accent: #ffffff;
  --c-accent-2: #c2272d;    /* red pre-print: ticket numbers, stamps, "needs attention now", focus, stars */
  --f-display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --f-body: "Archivo", Arial, sans-serif;
  --f-mono: "Courier Prime", "Courier New", monospace;  /* only what is typed onto a form */
  --r-sm: 3px;              /* buttons and tags */
  --r-lg: 0px;              /* paper: tickets, sheets, boxes stay square */
  --r-pill: 3px;            /* this theme has no pills */
  --s-1: 4px; --s-2: 8px; --s-3: 16px; --s-4: 24px; --s-5: 40px; --s-6: 64px;

  /* ---- Theme names, mapped to the shared layer ---- */
  --paper: var(--c-bg);
  --ink: var(--c-ink);
  --red: var(--c-accent-2);
  --muted: var(--c-muted);
  --rule: var(--c-line);
  --display: var(--f-display);
  --text: var(--f-body);
  --fill: var(--f-mono);
  --radius: var(--r-sm);

  /* ---- Theme-only ---- */
  --carbon: #3b3d99;        /* filled-in values typed on the forms (9.1:1 on paper) */
  --copy: #fbefa6;          /* the canary carbon copy */
  --copy-edge: #ddc95e;
  --ok: #2b7a3d;
  --soon: #d18a00;
  --soon-tag: #f6c84a;
  --soon-ink: #6f4b00;
  --head-cond: 62%;         /* width of the condensed headline cut (Archivo wdth axis) */
  --label-cond: 75%;        /* width of form labels and buttons */
  --gutter: 20px;
  --sec: 40px;              /* section padding */
  --row1: 56px;             /* phone header: logo row (scrolls away) */
  --nav-h: 46px;            /* phone header: section links (stays) */
  --abar-h: 56px;           /* phone action bar */
  --ease-out: cubic-bezier(.23, 1, .32, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); scroll-padding-bottom: calc(var(--abar-h) + 16px); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.55 var(--text); font-variant-numeric: lining-nums; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; }
h1, h2, h3, p, figure, blockquote, dl, dd { margin: 0; }
h1, h2 { font-family: var(--display); font-weight: 800; font-stretch: var(--head-cond); line-height: .94; letter-spacing: -.005em; text-wrap: balance; }
h3 { text-wrap: balance; }
p, dd, figcaption, li { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.vh { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.quiet, .sample { color: var(--muted); }
.sample { font-size: 13px; }
.stars { color: var(--red); letter-spacing: 1px; }
.skip { position: absolute; left: 8px; top: -80px; z-index: 100; background: var(--paper); padding: 10px 14px; border: 2px solid var(--ink); font-weight: 700; }
.skip:focus { top: 8px; }
/* One icon style for the whole library: Tabler outline, 2px stroke, from the sprite at the top of the page */
.i { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* Touch polish */
a, button, summary, label, select { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border: 2px solid var(--c-accent); border-radius: var(--radius); background: var(--c-accent); color: var(--c-on-accent); font: 700 18px/1 var(--display); font-stretch: var(--label-cond); letter-spacing: .01em; text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform 120ms var(--ease-out), background-color 150ms ease; }
.btn:active { transform: scale(.97); }
.btn-ghost { background: var(--paper); color: var(--ink); border-color: var(--ink); }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 17px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.hero .btn { padding-inline: 15px; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--carbon); border-color: var(--carbon); }
  .btn-ghost:hover { background: var(--copy); border-color: var(--ink); }
  .nav a:hover, .head-link:hover { text-decoration: underline; text-decoration-thickness: 2px; }
  .svc:hover .cb { box-shadow: 0 0 0 3px var(--copy); }
  .grp-d > summary:hover .grp-name, .terms > summary:hover span { text-decoration: underline; text-decoration-thickness: 2px; }
}

/* ---------- Demo bar + header ---------- */
.demo { overflow: hidden; background: var(--ink); color: #e9ecf3; font-size: 13px; line-height: 1.3; text-align: center; padding: 7px 12px; white-space: nowrap; text-overflow: ellipsis; }
/* Phones: the logo row scrolls away, the section links stay pinned (negative sticky top) */
.site-head { position: sticky; top: calc(var(--row1) * -1); z-index: 30; background: var(--paper); border-bottom: 2px solid var(--ink); }
.bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: var(--row1) auto; align-items: center; column-gap: 12px; }
.logo { display: inline-flex; align-items: center; gap: 9px; justify-self: start; min-height: 44px; color: var(--ink); text-decoration: none; }
.logo-mark { flex: none; width: 30px; height: 30px; }
.logo-words b, .foot-logo { text-transform: uppercase; }  /* the wordmark: one of three uppercase uses (wordmark, form pre-print, stamp) */
.logo-words b { display: block; font: 800 23px/.9 var(--display); font-stretch: var(--head-cond); letter-spacing: .03em; }
.logo-words span { display: block; margin-top: 3px; font: 700 13px/1 var(--display); font-stretch: var(--label-cond); letter-spacing: .04em; }
.head-actions { display: none; }
.nav { grid-column: 1 / -1; display: flex; justify-content: space-between; height: var(--nav-h); margin-inline: calc(var(--gutter) * -1); padding-inline: calc(var(--gutter) - 10px); border-top: 1px solid var(--rule); }
.nav a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding-inline: 8px; font: 600 15px/1 var(--display); font-stretch: var(--label-cond); text-decoration: none; white-space: nowrap; }
.head-link { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding-inline: 4px; font: 700 17px/1 var(--display); font-stretch: var(--label-cond); text-decoration: none; white-space: nowrap; }

/* ---------- Hero ---------- */
.hero { padding-block: 24px 40px; border-bottom: 2px solid var(--ink); }
.hero h1 { font-size: clamp(46px, 12.6vw, 92px); }
.lede { margin: 16px 0 22px; font-size: 18px; max-width: 30em; }
.hero-rating { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin-top: 18px; }
.hero-rating b { font-weight: 700; }
.hero-media { margin-top: 24px; }
.hero-photo { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; object-position: 30% 40%; border: 2px solid var(--ink); }
.hero-stack { margin: -40px 10px 0 0; }

/* ---------- The ticket (hero sample + builder) ---------- */
.stack { position: relative; isolation: isolate; }
.stack::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--copy); border: 1.5px solid var(--copy-edge); transform: translate(9px, 11px) rotate(1.3deg); }
.ticket { position: relative; background: var(--c-surface); border: 2px solid var(--ink); border-radius: var(--r-lg); color: var(--ink); box-shadow: 0 16px 28px -18px rgba(29, 43, 79, .5); }
.t-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 10px 12px 9px; border-bottom: 2px solid var(--ink); }
.t-shop b, .t-doc, .sheet-title { text-transform: uppercase; }  /* the pre-printed form header: one of three uppercase uses */
.t-shop b { display: block; font: 800 16px/1.1 var(--display); font-stretch: var(--head-cond); letter-spacing: .04em; }
.t-shop span { display: block; font-size: 13px; line-height: 1.3; color: var(--muted); }
.t-id { text-align: right; }
.t-doc { display: block; font: 700 13px/1.2 var(--display); font-stretch: var(--label-cond); letter-spacing: .12em; }
.t-no { display: block; font: 700 21px/1.15 var(--fill); color: var(--red); }
.t-grid { display: grid; grid-template-columns: 1fr 1fr; }
.t-grid .f { min-width: 0; padding: 6px 12px 7px; border-bottom: 1px solid var(--ink); }
.t-grid .f:nth-child(odd) { border-right: 1px solid var(--ink); }
.t-grid dt, .f > span, .f legend { display: block; font: 600 13px/1.25 var(--display); font-stretch: var(--label-cond); color: var(--ink); }
.t-grid dd { font: 400 16px/1.35 var(--fill); color: var(--carbon); }
.t-ccc .c { display: grid; grid-template-columns: 86px 1fr; border-bottom: 1px solid var(--ink); }
.t-ccc dt { padding: 8px 10px; border-right: 1px solid var(--ink); font: 700 14px/1.2 var(--display); font-stretch: var(--label-cond); }
.t-ccc dd { padding: 8px 12px 9px; font: 400 15.5px/1.4 var(--fill); color: var(--carbon); }
.t-sum { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px 12px; }
.t-money { flex: 0 1 200px; }
.t-money div { display: flex; justify-content: space-between; gap: 12px; }
.t-money dt { font: 600 13px/1.6 var(--display); font-stretch: var(--label-cond); }
.t-money dd { font: 400 15px/1.6 var(--fill); color: var(--carbon); }
.t-money .tot { margin-top: 3px; padding-top: 3px; border-top: 1.5px solid var(--ink); }
.t-money .tot dt, .t-money .tot dd { font-weight: 700; }
.stamp { flex: none; padding: 6px 10px; border: 3px solid var(--red); border-radius: 4px; color: var(--red); font: 800 21px/1 var(--display); font-stretch: var(--label-cond); text-transform: uppercase; letter-spacing: .08em; text-align: center; transform: rotate(-7deg); mix-blend-mode: multiply; }
.stamp span { display: block; margin-top: 4px; font: 700 13px/1.2 var(--fill); letter-spacing: 0; text-transform: none; }

/* ---------- Trust band ---------- */
.trust { border-bottom: 2px solid var(--ink); }
.trust-grid { display: grid; gap: 16px; padding-block: 22px 24px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; border: 2px solid var(--ink); }
.tf { min-width: 0; padding: 9px 12px 11px; border-bottom: 1px solid var(--ink); }
.tf:nth-child(odd) { border-right: 1px solid var(--ink); }
.tf:nth-last-child(-n+2) { border-bottom: 0; }
.tf dt { font: 600 13px/1.2 var(--display); font-stretch: var(--label-cond); color: var(--muted); }
.tf dd b { display: block; margin-top: 4px; font: 800 25px/1.02 var(--display); font-stretch: var(--head-cond); }
.tf dd b .stars { font-size: 15px; vertical-align: 3px; }
.tf dd > span { display: block; margin-top: 3px; font-size: 14px; line-height: 1.35; color: var(--muted); }
/* Certifications as embroidered patches (own text, never a real logo) */
.patches { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.patches li { position: relative; padding: 9px 13px 9px 32px; background: var(--ink); color: #fff; border-radius: calc(var(--r-sm) * 2); outline: 1.5px dashed rgba(255, 255, 255, .6); outline-offset: -5px; font: 700 15px/1.2 var(--display); font-stretch: var(--label-cond); letter-spacing: .01em; }
.patches li::before { content: ""; position: absolute; left: 14px; top: 50%; width: 6px; height: 11px; margin-top: -7px; border: solid var(--copy); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }

/* ---------- Sections ---------- */
.sec { padding-block: var(--sec); border-bottom: 2px solid var(--ink); }
.sec-head { margin-bottom: 20px; }
.sec-head h2 { font-size: clamp(40px, 10.5vw, 70px); }
.sec-head p { margin-top: 10px; max-width: 36em; color: var(--muted); }

/* ---------- Signature: write up your visit ---------- */
.ro { display: grid; gap: 22px; counter-reset: est n; }
.menu { min-width: 0; margin: 0; padding: 0; border: 0; }
.menu legend { padding: 0 0 8px; font: 700 15px/1.2 var(--display); font-stretch: var(--label-cond); }
.svc-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.svc { position: relative; display: grid; grid-template-columns: 26px 44px minmax(0, 1fr) auto; grid-template-areas: "cb op name price" ". inc inc inc"; column-gap: 9px; row-gap: 2px; padding: 12px 6px 13px 4px; border-bottom: 1px solid var(--rule); cursor: pointer; }
.svc input { position: absolute; top: 14px; left: 6px; width: 22px; height: 22px; margin: 0; opacity: 0; }
.cb { grid-area: cb; display: grid; place-items: center; width: 24px; height: 24px; margin-top: 1px; border: 2px solid var(--ink); background: var(--paper); }
.cb::after { content: ""; width: 7px; height: 13px; margin-top: -3px; border: solid var(--paper); border-width: 0 3px 3px 0; transform: rotate(45deg) scale(.6); opacity: 0; transition: opacity 120ms ease, transform 160ms var(--ease-out); }
.svc input:checked + .cb { background: var(--ink); counter-increment: est var(--p) n 1; }
.svc input:checked + .cb::after { opacity: 1; transform: rotate(45deg) scale(1); }
.svc input:focus-visible + .cb { outline: 3px solid var(--red); outline-offset: 2px; }
.svc:has(input:checked) { background: var(--copy); }
.op { grid-area: op; font: 700 15px/1.65 var(--fill); color: var(--ink); }
.svc-name { grid-area: name; font: 700 19px/1.3 var(--display); font-stretch: var(--label-cond); }
.svc-price { grid-area: price; font: 700 18px/1.4 var(--display); font-stretch: var(--label-cond); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.svc-inc { grid-area: inc; font-size: 15px; line-height: 1.4; color: var(--muted); }

/* Phones: a running estimate sticks under the section links while you check services.
   It sits first visually (order) but after the checkboxes in the source, so the counters are already summed. */
.menu-wrap { display: flex; flex-direction: column; min-width: 0; }
.est-bar { order: -1; position: sticky; top: var(--nav-h); z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; margin: 0 calc(var(--gutter) * -1) 14px; padding: 2px var(--gutter); background: var(--ink); color: var(--paper); font-size: 15px; font-variant-numeric: tabular-nums; }
.est-count::before { content: counter(n) " on your ticket"; }
.est-sum::before { content: "from $" counter(est); font-weight: 700; }
.est-bar a { margin-left: auto; display: inline-flex; align-items: center; min-height: 44px; color: var(--paper); font-weight: 700; text-decoration-thickness: 2px; }

.t-lines { width: 100%; border-collapse: collapse; }
.t-lines th { padding: 6px 12px; text-align: left; font: 600 13px/1.2 var(--display); font-stretch: var(--label-cond); border-bottom: 1px solid var(--ink); }
.t-lines thead th:last-child, .t-lines td:last-child { text-align: right; }
.t-lines td { padding: 6px 12px; border-bottom: 1px dotted #9aa3b8; font: 400 15.5px/1.35 var(--fill); color: var(--carbon); vertical-align: top; }
.t-lines td:first-child { width: 56px; color: var(--ink); font-weight: 700; }
.t-lines td:last-child { white-space: nowrap; }
.ln-empty { display: none; }
.ln-empty td, .ln-empty td:last-child { color: var(--muted); text-align: left; white-space: normal; }
/* No layout shift: every line of the ticket stays ruled. A service you haven't checked leaves its line blank (hidden, so
   screen readers skip it), like the spare lines on a paper repair order, so checking one never moves what's below. */
@supports selector(:has(*)) {
  .ln-empty { display: table-row; }
  .ln-empty span, .ro:has(#s-lof:not(:checked)) .ln-lof span, .ro:has(#s-tir:not(:checked)) .ln-tir span, .ro:has(#s-brk:not(:checked)) .ln-brk span,
  .ro:has(#s-aln:not(:checked)) .ln-aln span, .ro:has(#s-dia:not(:checked)) .ln-dia span, .ro:has(#s-mnt:not(:checked)) .ln-mnt span { visibility: hidden; }
  .ro:not(:has(.svc input:checked)) .ln-empty span { visibility: visible; }
}
.t-lines tfoot th, .t-lines tfoot td { padding: 10px 12px; border-top: 2px solid var(--ink); border-bottom: 0; }
.t-lines tfoot th { font: 700 15px/1.2 var(--display); font-stretch: var(--label-cond); vertical-align: middle; }
.sum::after { content: "$" counter(est); font: 700 23px/1 var(--fill); color: var(--carbon); }

/* The customer fields are the ticket's boxed fields: 48px controls, 16px+ text, typed in carbon */
.cust { min-width: 0; margin: 0; padding: 0; border: 0; border-top: 2px solid var(--ink); }
.cust .f { display: block; padding: 7px 12px 2px; cursor: text; }
.f > span em { font-style: normal; font-weight: 400; color: var(--muted); }
.cust input, .cust select, .cust textarea { display: block; width: 100%; min-height: 48px; padding: 4px 0 6px; border: 0; border-radius: 0; background: transparent; color: var(--carbon); font: 400 17px/1.4 var(--fill); }
.cust select { appearance: none; padding-right: 24px; background-color: transparent; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 12px) 50%, calc(100% - 6px) 50%; background-size: 6px 6px; background-repeat: no-repeat; cursor: pointer; }
.cust textarea { resize: vertical; min-height: 64px; }
.cust ::placeholder { color: #6e70a6; opacity: 1; }
.cust input:focus, .cust select:focus, .cust textarea:focus { outline: none; }
.cust .f:focus-within { background: var(--copy); box-shadow: inset 0 -3px 0 var(--red); }
.err { display: none; padding-bottom: 6px; font-size: 14px; line-height: 1.3; color: var(--red); }
.f:has(:user-invalid) .err { display: block; }
.f:has(:user-invalid) { box-shadow: inset 0 -3px 0 var(--red); }
.while { margin: 0; padding: 7px 12px 4px; border: 0; border-bottom: 1px solid var(--ink); min-width: 0; }
.while legend { float: left; width: 100%; padding: 0; }
.while-opts { clear: both; display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.while-opts label { display: flex; align-items: center; gap: 9px; min-height: 44px; font: 400 16px/1.2 var(--fill); color: var(--carbon); cursor: pointer; }
.while-opts input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--ink); }
.cust .f-note { border-bottom: 0; }
.t-send { display: grid; gap: 10px; padding: 14px 12px 16px; border-top: 2px solid var(--ink); }
.t-send .btn { width: 100%; }
.t-send p { font-size: 14px; line-height: 1.4; color: var(--muted); }
/* Concept-safe form: Send goes to #sent, which shows what the live site would do */
.t-send .sent { display: none; padding: 10px 12px; background: var(--copy); border: 2px solid var(--ink); color: var(--ink); font-size: 15px; }
.sent:target { display: block; }

/* ---------- Inspection sheet (the customer's canary copy) ---------- */
.sheet { background: var(--copy); border: 2px solid var(--ink); }
.sheet-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 24px; padding: 11px 14px; border-bottom: 2px solid var(--ink); }
.sheet-title { font: 800 22px/1.05 var(--display); font-stretch: var(--head-cond); letter-spacing: .02em; }
.sheet-meta { display: flex; flex-wrap: wrap; gap: 0 16px; font: 400 15px/1.4 var(--fill); color: var(--carbon); }
.sheet-meta .t-no { display: inline; font-size: 15px; }
.key { list-style: none; margin: 0; padding: 8px 14px; display: flex; flex-wrap: wrap; gap: 2px 22px; border-bottom: 1px solid var(--ink); font-size: 14px; }
.key li { display: flex; align-items: center; gap: 8px; min-height: 28px; }
.groups { display: grid; }
.grp { min-width: 0; padding: 12px 14px 14px; border-bottom: 1px solid var(--ink); }
.grp:last-child { border-bottom: 0; }
.grp h3, .grp-name { font: 800 21px/1.1 var(--display); font-stretch: var(--head-cond); letter-spacing: .01em; }
.grp h3 { margin-bottom: 4px; }
.grp-d { padding: 0 14px; }
.grp-d > summary { display: flex; align-items: center; gap: 12px; min-height: 56px; list-style: none; cursor: pointer; }
.grp-d > summary::-webkit-details-marker, .terms > summary::-webkit-details-marker { display: none; }
.tally { margin-left: auto; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.grp-d > summary .i, .terms > summary .i { transition: transform 180ms var(--ease-out); }
.grp-d[open] > summary .i, .terms[open] > summary .i { transform: rotate(45deg); }
.grp-d[open] { padding-bottom: 14px; }
.chk { list-style: none; margin: 0; padding: 0; }
.chk li { display: flex; align-items: flex-start; gap: 10px; padding: 5px 0; border-bottom: 1px dotted rgba(29, 43, 79, .4); font-size: 15px; line-height: 1.35; }
.chk li:last-child { border-bottom: 0; }
.gyr { flex: none; display: inline-flex; gap: 3px; margin-top: 2px; }
.gyr i { width: 14px; height: 14px; border: 1.5px solid var(--ink); background: var(--paper); }
.ok .gyr i:nth-child(1), .k-ok .gyr i:nth-child(1) { background: var(--ok); border-color: var(--ok); }
.soon .gyr i:nth-child(2), .k-soon .gyr i:nth-child(2) { background: var(--soon); border-color: #8a5c00; }
.now .gyr i:nth-child(3), .k-now .gyr i:nth-child(3) { background: var(--red); border-color: var(--red); }
.rd { margin-left: auto; padding-left: 8px; font: 400 14.5px/1.35 var(--fill); color: var(--carbon); white-space: nowrap; }
.now { font-weight: 700; }
.tread { margin: 0 0 6px; }
.tread svg { display: block; width: 100%; max-width: 220px; height: auto; margin-inline: auto; }
.tread .car { fill: var(--paper); stroke: var(--ink); stroke-width: 2; }
.tread .car-glass { fill: rgba(29, 43, 79, .14); stroke: var(--ink); stroke-width: 1; }
.tread .tire.ok { fill: var(--ok); }
.tread .tire.soon { fill: var(--soon); stroke: #8a5c00; stroke-width: 1; }
.tread text { font: 700 13px var(--display); fill: var(--ink); }
.tread text.v { font: 700 15px var(--fill); fill: var(--carbon); }

/* ---------- Process: concern, cause, correction ---------- */
.ccc { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ccc li { display: grid; grid-template-columns: 92px minmax(0, 1fr); column-gap: 14px; padding-top: 14px; border-top: 2px solid var(--ink); }
.punch { grid-row: 1 / 3; align-self: start; justify-self: start; padding: 3px 8px; border: 2px solid var(--red); color: var(--red); font: 700 15px/1.2 var(--fill); font-variant-numeric: tabular-nums; white-space: nowrap; transform: rotate(-2deg); }
.ccc h3 { font: 800 30px/1 var(--display); font-stretch: var(--head-cond); }
.ccc p:last-child { margin-top: 6px; color: var(--muted); max-width: 26em; }
/* Phones: the line's name and its time punch share the top row; the text runs the full width */
@media (max-width: 759.98px) {
  .ccc li { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "h punch" "p p"; align-items: center; }
  .ccc h3 { grid-area: h; }
  .punch { grid-area: punch; grid-row: auto; align-self: center; }
  .ccc p:last-child { grid-area: p; margin-top: 8px; }
}
.terms { margin-top: 30px; border: 2px solid var(--ink); }
.terms > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 0 16px; background: var(--ink); color: var(--paper); font: 700 17px/1.2 var(--display); font-stretch: var(--label-cond); letter-spacing: .01em; list-style: none; cursor: pointer; }
.terms :focus-visible { outline-color: var(--copy); outline-offset: -5px; }
.terms dl { display: grid; }
.terms dl div { display: grid; grid-template-columns: 92px 1fr; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--rule); }
.terms dl div:last-child { border-bottom: 0; }
.terms dt { font: 700 16px/1.4 var(--display); font-stretch: var(--label-cond); }
.terms dd { font-size: 15.5px; line-height: 1.5; color: var(--muted); }

/* ---------- Photos we text you: a swipe rail on phones ---------- */
.dvi { list-style: none; margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter) 12px; display: grid; grid-auto-flow: column; grid-auto-columns: min(80%, 320px); gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: thin; scrollbar-color: var(--ink) transparent; }
.dvi > li { scroll-snap-align: start; }
.dvi:focus-visible, .revs:focus-visible { outline-offset: -3px; }
.dvi figure { height: 100%; border: 2px solid var(--ink); background: var(--paper); }
.dvi img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-bottom: 2px solid var(--ink); }
.dvi figcaption { padding: 10px 12px 12px; font-size: 15.5px; line-height: 1.45; }
.tag { display: inline-block; margin-right: 8px; padding: 2px 8px 3px; border-radius: var(--radius); font: 700 13px/1.3 var(--display); font-stretch: var(--label-cond); letter-spacing: .03em; vertical-align: 1px; }
.tag-ok { background: var(--ok); color: #fff; }
.tag-soon { background: var(--soon-tag); color: var(--soon-ink); }
.tag-now { background: var(--red); color: #fff; }
.dvi-cta { margin-top: 18px; }
.dvi-cta .btn { white-space: normal; text-align: left; }

/* ---------- Reviews: a swipe rail on phones ---------- */
.rev-rating { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.rev-rating b { color: var(--ink); }
.revs { list-style: none; margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter) 12px; display: grid; grid-auto-flow: column; grid-auto-columns: min(84%, 340px); gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: thin; scrollbar-color: var(--ink) transparent; }
.revs > li { scroll-snap-align: start; }
.rev { height: 100%; display: flex; flex-direction: column; border: 2px solid var(--ink); }
.rev blockquote { flex: 1; padding: 16px 16px 14px; }
.rev blockquote p { font: 600 21px/1.25 var(--display); font-stretch: var(--label-cond); }
.rev figcaption { display: grid; gap: 1px; padding: 10px 16px 12px; border-top: 1px solid var(--ink); font-size: 15px; }
.rev figcaption span:not(.sample) { color: var(--muted); }

/* ---------- About ---------- */
.about { display: grid; gap: 22px; }
.about-photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 40% 30%; border: 2px solid var(--ink); }
.about-copy h2 { font-size: clamp(40px, 10.5vw, 70px); }
.about-copy p { margin-top: 12px; max-width: 36em; }
.about-copy .sign { margin-top: 14px; font: 700 18px/1.3 var(--display); font-stretch: var(--label-cond); }

/* ---------- Visit ---------- */
.visit { display: grid; border: 2px solid var(--ink); }
.box { min-width: 0; padding: 14px 16px 16px; border-bottom: 1px solid var(--ink); }
.box:last-child { border-bottom: 0; }
.box h3 { margin-bottom: 8px; font: 800 22px/1.1 var(--display); font-stretch: var(--head-cond); letter-spacing: .01em; }
.hours-sum { font-weight: 700; }
.hours { margin-top: 4px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours th { padding: 4px 16px 4px 0; text-align: left; font-weight: 600; }
.hours td { white-space: nowrap; }
.box .quiet { margin-top: 6px; font-size: 15px; }
.box address { font-style: normal; font-size: 17px; line-height: 1.45; }
.box address a { font-weight: 600; text-decoration-thickness: 1px; }
.contact { margin-top: 12px; display: grid; justify-items: start; }
.contact .btn { margin-bottom: 6px; }
.contact a:not(.btn) { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; font-weight: 600; overflow-wrap: anywhere; }
.around { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.box-cta { display: none; }
.around dt { font: 700 16px/1.3 var(--display); font-stretch: var(--label-cond); }
.around dd { font-size: 15px; line-height: 1.4; color: var(--muted); }

/* ---------- Footer ---------- */
.foot { background: var(--ink); color: #dfe3ec; padding-block: 30px calc(24px + var(--abar-h) + env(safe-area-inset-bottom)); font-size: 15px; }
.foot :focus-visible { outline-color: var(--copy); }
.foot-grid { display: grid; gap: 12px; }
.foot-logo { display: flex; align-items: center; gap: 10px; color: #fff; font: 800 24px/1 var(--display); font-stretch: var(--head-cond); letter-spacing: .03em; }
.foot-brand p:last-child { margin-top: 10px; }
.foot-h { margin-bottom: 2px; color: #fff; font: 700 15px/1.2 var(--display); font-stretch: var(--label-cond); }
.foot address { font-style: normal; }
.foot a { display: flex; align-items: center; min-height: 44px; color: #fff; }
.foot-hours { font-variant-numeric: tabular-nums; }
.legal { grid-column: 1 / -1; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .25); font-size: 14px; color: #c9cfdc; }

/* ---------- C1 Action Bar (phones): Call, Text a photo, Book ---------- */
.action-bar { position: fixed; inset: auto 0 0 0; z-index: 40; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding-bottom: env(safe-area-inset-bottom); background: var(--paper); border-top: 2px solid var(--ink); }
.action-bar a { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: var(--abar-h); padding-inline: 6px; color: var(--ink); font: 700 17px/1 var(--display); font-stretch: var(--label-cond); text-decoration: none; white-space: nowrap; transition: background-color 150ms ease; }
.action-bar a + a { border-left: 1px solid var(--ink); }
.action-bar .ab-call { background: var(--c-accent); color: var(--c-on-accent); }
.action-bar a:active { background: var(--copy); }
.action-bar .ab-call:active { background: var(--carbon); }
.action-bar :focus-visible { outline-offset: -5px; }

/* ---------- One moment: the hero ticket types itself out and gets stamped ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-stack .t-ccc dd { animation: type .9s steps(26, end) both; }
  .hero-stack .c1 dd { animation-delay: .35s; }
  .hero-stack .c2 dd { animation-delay: 1.2s; }
  .hero-stack .c3 dd { animation-delay: 2.05s; }
  .hero-stack .t-money { animation: type .5s steps(10, end) 2.95s both; }
  .hero-stack .stamp { animation: stamp .42s cubic-bezier(.3, 1.6, .5, 1) 3.5s both; }
  .svc { transition: background-color 200ms ease; }
}
@keyframes type { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes stamp { from { opacity: 0; transform: rotate(-7deg) scale(1.4); } to { opacity: 1; transform: rotate(-7deg) scale(1); } }

/* ---------- Tablet: 760 ---------- */
@media (min-width: 760px) {
  :root { --gutter: 32px; --sec: 68px; --abar-h: 0px; }
  html { scroll-padding-top: 128px; }
  .action-bar { display: none; }
  .site-head { top: 0; }
  .bar { grid-template-rows: 68px auto; }
  .head-actions { grid-row: 1; grid-column: 2; display: flex; align-items: center; gap: 14px; }
  .head-text { display: none; }
  .nav { justify-content: flex-start; gap: 18px; }
  .est-bar { top: 116px; }
  .hero-media { max-width: 640px; }
  .hero-photo { aspect-ratio: 720 / 480; }
  .hero-stack { margin: -90px 40px 0 60px; }
  .fields { grid-template-columns: repeat(4, 1fr); }
  .tf, .tf:nth-child(odd) { border-bottom: 0; border-right: 1px solid var(--ink); }
  .tf:last-child { border-right: 0; }
  .groups { grid-template-columns: 1fr 1fr; }
  /* From tablet up the whole sheet shows: folded groups and the fine print open in place (progressive: ::details-content) */
  .grp-d { padding: 12px 14px 14px; }
  .grp-d > summary { display: block; min-height: 0; margin-bottom: 4px; pointer-events: none; }
  .grp-d > summary .tally, .grp-d > summary .i, .terms > summary .i { display: none; }
  .terms > summary { pointer-events: none; }
  .grp:nth-child(odd) { border-right: 1px solid var(--ink); }
  .grp:nth-last-child(-n+2) { border-bottom: 0; }
  .terms dl { grid-template-columns: 1fr 1fr; }
  .terms dl div:nth-child(odd) { border-right: 1px solid var(--rule); }
  .terms dl div:nth-last-child(-n+2) { border-bottom: 0; }
  .dvi { margin: 0; padding: 0; overflow: visible; grid-auto-flow: row; grid-template-columns: 1fr 1fr; gap: 18px; }
  .revs { margin: 0; padding: 0; overflow: visible; grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .ccc { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .ccc li { display: block; padding-top: 16px; }
  .punch { display: inline-block; margin-bottom: 12px; }
  .ccc h3 { font-size: 36px; }
  .about-photo { max-width: 560px; }
  .about-photo img { aspect-ratio: 5 / 4; }
  .visit { grid-template-columns: 1fr 1fr; }
  .box:nth-child(1) { border-right: 1px solid var(--ink); }
  .box:nth-child(3) { grid-column: 1 / -1; border-top: 1px solid var(--ink); }
  .box:nth-child(-n+2) { border-bottom: 0; }
  .around { grid-template-columns: repeat(4, 1fr); }
  .foot { padding-block: 44px 36px; }
  .foot-grid { grid-template-columns: 1.3fr 1.2fr 1fr; gap: 24px 40px; }
  .foot a { display: flex; width: fit-content; }
}

/* ---------- Desktop: 1080 ---------- */
@media (min-width: 1080px) {
  :root { --gutter: 40px; --sec: 96px; }
  html { scroll-padding-top: 92px; }
  .bar { display: flex; gap: 26px; min-height: 76px; }
  .logo-mark { width: 34px; height: 34px; }
  .logo-words b { font-size: 26px; }
  .nav { order: 0; height: auto; margin: 0 0 0 auto; padding: 0; border: 0; gap: 4px; }
  .nav a { font-size: 17px; padding-inline: 9px; }
  .head-actions { gap: 16px; }
  .head-text { display: inline-flex; }

  .hero { padding-block: 56px 80px; }
  .hero-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 56px; align-items: start; }
  .hero-copy { padding-top: 44px; }
  .lede { font-size: 19px; margin: 20px 0 28px; }
  .hero .btn { padding-inline: 22px; }
  .hero-media { margin-top: 0; display: grid; max-width: none; }
  .hero-photo { width: 88%; margin-left: auto; aspect-ratio: 720 / 535; }
  .hero-stack { width: 75%; margin: -132px 0 0 0; }

  .trust-grid { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 36px; padding-block: 28px; }
  .trust .patches { flex-direction: column; align-items: stretch; }

  .sec-head { margin-bottom: 40px; }
  .sec-head p { margin-top: 14px; }

  .ro { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 56px; align-items: start; }
  .menu-wrap { grid-column: 1; }
  .est-bar { display: none; }
  .build-stack { grid-column: 2; grid-row: 1; position: sticky; top: 104px; }
  .svc { grid-template-columns: 30px 56px minmax(0, 1fr) auto; grid-template-areas: "cb op name price" ". . inc inc"; padding: 15px 12px 16px 8px; }
  .svc input { left: 10px; top: 17px; }

  .groups { grid-template-columns: repeat(4, 1fr); }
  .grp, .grp:nth-child(odd) { border-bottom: 0; border-right: 1px solid var(--ink); }
  .grp:last-child { border-right: 0; }

  .ccc { gap: 48px; }
  .terms { display: grid; grid-template-columns: 220px 1fr; }
  .terms > summary { align-items: flex-start; min-height: 0; padding: 16px 18px; font-size: 20px; }
  .dvi { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .dvi-cta { margin-top: 28px; }

  .about { grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); gap: 72px; align-items: center; }
  .about-photo { max-width: none; }
  .about-photo img { aspect-ratio: 626 / 681; }

  .visit { grid-template-columns: .9fr 1fr 1.3fr; }
  .box:nth-child(n) { border-bottom: 0; border-top: 0; grid-column: auto; border-right: 1px solid var(--ink); }
  .box:last-child { border-right: 0; }
  .around { grid-template-columns: 1fr 1fr; }
  .box:last-child { display: flex; flex-direction: column; }
  .box-cta { display: inline-flex; align-self: flex-start; margin-top: auto; }
  .around { margin-bottom: 24px; }
}
@media (min-width: 760px) {
  .grp-d::details-content, .terms::details-content { content-visibility: visible; }
}

/* Oct 8, 2026: no 1px sideways scroll on phones (the action bar rounded up to 394px at 393) */
html, body { overflow-x: clip; }
