/* Nino's Auto Detailing, South St. Paul. The page is a route: a line runs down the left rail and every section is a stop.
   Paper white, soap blue in big blocks, ink navy, one mitt-yellow accent. Space Grotesk display, Inter body.
   Order: tokens -> base -> buttons -> nav -> route rail -> hero -> lineup -> services ledger -> work order (estimator) -> work -> week -> reviews -> faq -> contact -> footer -> gated -> 404 -> desktop breakpoints -> motion
   MOBILE rules live ONLY in the append-only @media (max-width: 760px) block at the very end.
   prefers-reduced-motion has its own @media block on purpose: never combine it with max-width. */

:root {
  --paper: #FFFFFF;
  --soap: #DCEDF8;
  --soap-deep: #C3DFF2;
  --foam: #F2F8FC;
  --ink: #10243A;
  --ink-2: #3A4F66;
  --muted: #6B7D91;
  --line: rgba(16, 36, 58, 0.14);
  --line-soft: rgba(16, 36, 58, 0.08);
  --water: #2B7BC0;
  --accent: #FFCF26;
  --accent-deep: #E9B800;
  --star: #F2A900;
  --danger: #C0392B;
  --display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(1.1rem, 4vw, 3rem);
  --rail: 56px;
  --nav-h: 68px;
  --section: clamp(4rem, 8vw, 7rem);
  --r: 6px;
  --r-lg: 14px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; }
main, header, footer { position: relative; z-index: 1; }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1; letter-spacing: -0.035em; margin: 0; }
h1 { font-size: clamp(3rem, 6.3vw, 5.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3.3rem); letter-spacing: -0.03em; }
h3 { font-size: 1.35rem; letter-spacing: -0.02em; }
p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: var(--section); scroll-margin-top: calc(var(--nav-h) + 12px); }
.section.soap { background: var(--soap); }
.section.foam { background: var(--foam); }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 36em; }
:focus-visible { outline: 3px solid var(--water); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; padding: 0 1.4rem; min-height: 52px; border-radius: 999px; border: 1.5px solid var(--ink); font-family: var(--display); font-weight: 600; font-size: 1rem; letter-spacing: -0.01em; line-height: 1; white-space: nowrap; transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.btn.primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn.ink { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.ink:hover { background: #1B3654; border-color: #1B3654; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.btn.small { min-height: 42px; padding: 0 1.1rem; font-size: 0.92rem; }
.btn-full { display: inline; }
.btn-short { display: none; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1.5px solid var(--ink); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: var(--nav-h); }
.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand img { width: 38px; height: 38px; border-radius: 50%; box-shadow: 0 0 0 1.5px var(--ink); }
.brand b { font-family: var(--display); font-weight: 600; font-size: 1.05rem; letter-spacing: -0.02em; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; font-family: var(--display); font-weight: 500; font-size: 0.98rem; }
.nav-links a { padding: 0.25rem 0; border-bottom: 2px solid transparent; }
.nav-links a:hover { border-color: var(--accent); }
.nav-right { display: flex; align-items: center; gap: 1rem; }
.nav-phone { font-family: var(--display); font-weight: 600; font-size: 1rem; font-variant-numeric: tabular-nums; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1.5px solid var(--ink); border-radius: 999px; background: #fff; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: transform 0.25s, opacity 0.25s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav.open .nav-toggle span { background: transparent; }
.nav.open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav.open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- route rail: the line down the left, one stop per section ---------- */
.route { position: relative; }
.route::before { content: ""; position: absolute; top: 0; bottom: 0; left: max(var(--gutter), calc((100% - var(--wrap)) / 2)); width: 2px; margin-left: -1px; background: repeating-linear-gradient(to bottom, var(--water) 0 10px, transparent 10px 18px); opacity: 0.55; pointer-events: none; }
.stop { position: relative; padding-left: var(--rail); margin-bottom: 2.4rem; }
.stop::before { content: ""; position: absolute; left: -7px; top: 0.35em; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--water); box-shadow: 0 0 0 6px var(--paper); transition: background 0.4s, transform 0.4s var(--ease); }
.section.soap .stop::before { box-shadow: 0 0 0 6px var(--soap); }
.section.foam .stop::before { box-shadow: 0 0 0 6px var(--foam); }
.stop.in::before { background: var(--water); transform: scale(1.25); }
.stop .k { display: block; font-family: var(--display); font-weight: 500; font-size: 1rem; color: var(--water); margin-bottom: 0.6rem; }
.stop h2 { max-width: 14em; }
.stop p { margin-top: 0.9rem; }
.stop-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: 2.4rem; }
.stop-row > .stop { margin-bottom: 0; }
.stop-row > .btn { margin-bottom: 0.4rem; }
.inset { padding-left: var(--rail); }

/* ---------- hero ---------- */
.hero { position: relative; background: var(--soap); overflow: hidden; scroll-margin-top: var(--nav-h); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--ink); }
.hero .wrap { padding-top: clamp(2.5rem, 6vw, 5rem); }
.hero-top { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 3rem; align-items: end; }
.hero h1 { text-wrap: balance; }
.hero h1 .l { display: block; }
.hero-side { padding-bottom: 0.6rem; }
.hero-side .lead { margin-bottom: 1.4rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; }
.hero-meta { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.4rem 1.6rem; font-size: 0.95rem; color: var(--ink-2); }
.hero-meta b { color: var(--ink); font-weight: 600; }
.hero-meta .stars { color: var(--star); letter-spacing: 0.06em; }
.hero-tag { display: inline-block; margin-left: 0.6rem; background: var(--accent); border-radius: 999px; padding: 0.15rem 0.6rem; font-family: var(--display); font-weight: 600; font-size: 0.85rem; color: var(--ink); }

/* ---------- lineup: the vehicle range, edge-bleeding strip ---------- */
.lineup-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-top: clamp(2.2rem, 5vw, 4rem); padding-bottom: 0.7rem; border-top: 1.5px solid var(--ink); padding-top: 0.7rem; font-family: var(--display); font-weight: 500; font-size: 1rem; }
.lineup-head span:last-child { color: var(--ink-2); font-family: var(--body); font-size: 0.9rem; }
.lineup { display: flex; gap: 0.8rem; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 1.8rem; margin-right: calc(-1 * max(var(--gutter), (100% - var(--wrap)) / 2 + var(--gutter))); padding-right: var(--gutter); scrollbar-width: none; }
.lineup::-webkit-scrollbar { display: none; }
.lineup figure { flex: 0 0 auto; width: 250px; scroll-snap-align: start; }
.lineup figure.wide { width: 360px; }
.lineup img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r); background: var(--soap-deep); }
.lineup figure.wide img { aspect-ratio: 15 / 13; }
.lineup figcaption { margin-top: 0.55rem; font-size: 0.9rem; line-height: 1.35; }
.lineup figcaption b { display: block; font-family: var(--display); font-weight: 600; font-size: 1rem; letter-spacing: -0.01em; }
.lineup figcaption span { color: var(--ink-2); }

/* ---------- services ledger ---------- */
.ledger { border-top: 1.5px solid var(--ink); }
.ledger-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.6fr) 200px; gap: 2rem; padding: 1.6rem 0; border-bottom: 1px solid var(--line); align-items: start; }
.ledger-row:last-child { border-bottom: 1.5px solid var(--ink); }
.ledger-row h3 { font-size: 1.55rem; }
.ledger-row .time { display: block; margin-top: 0.5rem; color: var(--muted); font-size: 0.92rem; }
.ledger-row .blurb { color: var(--ink-2); font-size: 1rem; max-width: 34em; }
.ledger-row ul { margin-top: 0.8rem; display: grid; grid-template-columns: 1fr 1fr; gap: 0.3rem 1.2rem; font-size: 0.9rem; color: var(--ink-2); }
.ledger-row li { position: relative; padding-left: 0.9rem; }
.ledger-row li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 5px; height: 5px; border-radius: 50%; background: var(--water); }
.ledger-row .price { text-align: right; }
.ledger-row .price small { display: block; color: var(--muted); font-size: 0.85rem; margin-bottom: 0.1rem; }
.ledger-row .price b { font-family: var(--display); font-weight: 600; font-size: 2.4rem; letter-spacing: -0.03em; line-height: 1; background: var(--accent); padding: 0.1em 0.3em; border-radius: var(--r); display: inline-block; }
.ledger-row .price .btn { margin-top: 0.9rem; }
.ledger-note { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; margin-top: 1.2rem; color: var(--ink-2); font-size: 0.95rem; }
.ledger-note p { max-width: 46em; }
.ledger-note a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--water); }

/* ---------- work order (estimator) ---------- */
.order { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 2rem; align-items: start; }
.order-steps { display: grid; gap: 1.8rem; }
.order-step header { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 0.8rem; border-bottom: 1.5px solid var(--ink); padding-bottom: 0.5rem; }
.order-step h3 { font-size: 1.15rem; }
.order-step .hint { color: var(--muted); font-size: 0.88rem; }
.pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pill { border: 1.5px solid var(--line); background: #fff; color: var(--ink); padding: 0.6rem 1rem; border-radius: 999px; font-family: var(--display); font-weight: 500; font-size: 0.95rem; min-height: 46px; display: inline-flex; align-items: center; gap: 0.5rem; transition: border-color 0.15s, background 0.15s, color 0.15s; }
.pill:hover { border-color: var(--ink); }
.pill[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.pill small { font-family: var(--body); font-weight: 500; font-size: 0.8rem; color: var(--muted); }
.pill[aria-pressed="true"] small { color: rgba(255, 255, 255, 0.75); }
.sheet { position: sticky; top: calc(var(--nav-h) + 16px); background: #fff; border: 1.5px solid var(--ink); border-radius: var(--r-lg); padding: 1.5rem 1.5rem 1.4rem; box-shadow: 8px 8px 0 var(--soap-deep); }
.sheet .k { font-family: var(--display); font-weight: 500; font-size: 1rem; color: var(--water); }
.sheet .amount { font-family: var(--display); font-weight: 600; font-size: clamp(1.9rem, 3vw, 2.6rem); letter-spacing: -0.03em; line-height: 1.05; margin-top: 0.4rem; }
.sheet .amount.empty { font-size: 1.15rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.sheet .sub { color: var(--muted); font-size: 0.92rem; margin-top: 0.4rem; min-height: 1.4em; }
.sheet .summary { margin-top: 1rem; display: grid; gap: 0.35rem; font-size: 0.94rem; }
.sheet .summary div { display: flex; align-items: baseline; gap: 0.5rem; }
.sheet .summary div span:first-child { color: var(--ink-2); }
.sheet .summary div::after { content: ""; flex: 1; order: 1; border-bottom: 1.5px dotted var(--line); transform: translateY(-0.3em); }
.sheet .summary div span:last-child { order: 2; font-weight: 600; white-space: nowrap; }
.sheet .summary .quoted span:last-child { color: var(--water); font-weight: 500; white-space: normal; text-align: right; }
.sheet .includes { margin-top: 1rem; padding-top: 0.9rem; border-top: 1.5px solid var(--ink); display: grid; gap: 0.3rem; font-size: 0.9rem; color: var(--ink-2); }
.sheet .includes li { padding-left: 0.9rem; position: relative; }
.sheet .includes li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 5px; height: 5px; border-radius: 50%; background: var(--water); }
.sheet .includes:empty { display: none; }
.sheet .btn { width: 100%; margin-top: 1.1rem; }
.sheet .note { color: var(--muted); font-size: 0.8rem; margin-top: 0.9rem; line-height: 1.5; }

/* ---------- work: a real grid with a deliberate rhythm ---------- */
.work-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: 180px; gap: 0.7rem; }
.tile { position: relative; overflow: hidden; border-radius: var(--r); background: var(--soap); padding: 0; cursor: zoom-in; text-align: left; border: 0; grid-column: span 4; grid-row: span 2; }
.tile.big { grid-column: span 8; grid-row: span 3; }
.tile.tall { grid-column: span 4; grid-row: span 3; }
.tile.wide { grid-column: span 6; grid-row: span 2; }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile .cap { position: absolute; left: 0.7rem; bottom: 0.7rem; background: #fff; border-radius: 999px; padding: 0.35rem 0.75rem; font-family: var(--display); font-weight: 600; font-size: 0.85rem; letter-spacing: -0.01em; }
.tile .cap small { font-family: var(--body); font-weight: 500; color: var(--ink-2); margin-left: 0.35rem; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1200px); width: auto; }
.lightbox::backdrop { background: rgba(16, 36, 58, 0.88); }
.lightbox .frame { background: #fff; border-radius: var(--r-lg); overflow: hidden; }
.lightbox img { max-height: 78vh; width: auto; max-width: 100%; margin-inline: auto; background: var(--soap); }
.lightbox .bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.7rem 1rem; font-size: 0.92rem; }
.lightbox .bar button { background: transparent; border: 1.5px solid var(--ink); border-radius: 999px; min-width: 40px; height: 40px; padding: 0 0.9rem; margin-left: 0.4rem; }

/* ---------- the week: Mon truck, Wed boat, Fri Maserati ---------- */
.week { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); }
.day { padding: 1.6rem 1.6rem 1.8rem 0; border-right: 1px solid var(--line); display: grid; grid-template-rows: auto auto 1fr auto; gap: 1rem; }
.day + .day { padding-left: 1.6rem; }
.day:last-child { border-right: 0; padding-right: 0; }
.day .dow { font-family: var(--display); font-weight: 600; font-size: clamp(2.6rem, 4.5vw, 4rem); letter-spacing: -0.04em; line-height: 0.9; }
.day .dow small { display: block; font-size: 1rem; font-weight: 500; letter-spacing: -0.01em; color: var(--water); margin-top: 0.4rem; }
.day figure { height: 250px; border-radius: var(--r); overflow: hidden; background: var(--soap); }
.day img { width: 100%; height: 100%; object-fit: cover; }
.day h3 { font-size: 1.35rem; }
.day p { color: var(--ink-2); font-size: 0.97rem; margin-top: 0.5rem; }
.day .tag { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem; font-family: var(--display); font-weight: 600; font-size: 1.05rem; }
.day .tag.accent b { background: var(--accent); padding: 0.05em 0.35em; border-radius: var(--r); }
.day .tag small { font-family: var(--body); font-weight: 500; font-size: 0.82rem; color: var(--muted); }
.day .fine { display: block; margin-top: 0.4rem; font-size: 0.8rem; color: var(--muted); }
.day .btn { justify-self: start; margin-top: 0.6rem; }
.roll { margin-top: 1.4rem; font-size: 0.95rem; color: var(--ink-2); line-height: 1.9; }
.roll b { color: var(--ink); font-weight: 600; }

/* ---------- reviews: one big quote, four short ones ---------- */
.reviews { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 3rem; align-items: start; }
.quote-big { border-left: 1.5px solid var(--ink); padding-left: 1.6rem; }
.quote-big .stars { color: var(--star); letter-spacing: 0.08em; font-size: 1.05rem; margin-bottom: 0.9rem; }
.quote-big blockquote { font-family: var(--display); font-weight: 500; font-size: clamp(1.4rem, 2.3vw, 1.95rem); letter-spacing: -0.02em; line-height: 1.25; }
.quote-big footer { margin-top: 1.2rem; color: var(--ink-2); font-size: 0.95rem; }
.quote-big footer b { color: var(--ink); }
.quote-list { display: grid; border-top: 1.5px solid var(--ink); }
.quote-list figure { padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.quote-list .stars { color: var(--star); letter-spacing: 0.06em; font-size: 0.85rem; }
.quote-list blockquote { margin-top: 0.3rem; font-size: 1rem; }
.quote-list footer { margin-top: 0.4rem; font-size: 0.88rem; color: var(--muted); }
.quote-list footer b { color: var(--ink); font-weight: 600; }
.reviews-foot { margin-top: 1.4rem; display: flex; flex-wrap: wrap; gap: 0.8rem 1.4rem; align-items: center; color: var(--ink-2); font-size: 0.95rem; }
.reviews-foot .btn { margin-left: auto; }
.reviews-foot a:not(.btn) { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--water); color: var(--ink); }

/* ---------- faq ---------- */
.faq-list { border-top: 1.5px solid var(--ink); max-width: 820px; }
.faq { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 1rem 0; display: flex; justify-content: space-between; gap: 1.5rem; font-family: var(--display); font-weight: 600; font-size: 1.1rem; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--water); flex: none; font-weight: 500; transition: transform 0.25s; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 0 1.1rem; color: var(--ink-2); max-width: 40em; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3rem; align-items: start; }
.contact-side .phone { display: block; font-family: var(--display); font-weight: 600; font-size: clamp(2rem, 3.6vw, 3rem); letter-spacing: -0.04em; line-height: 1; margin-top: 1rem; }
.contact-side .phone:hover { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 4px; text-underline-offset: 6px; }
.contact-side .email { display: inline-block; margin-top: 0.8rem; font-family: var(--display); font-weight: 500; font-size: 1.15rem; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--water); }
.contact-side dl { margin-top: 2rem; display: grid; gap: 1rem; border-top: 1.5px solid var(--ink); padding-top: 1.2rem; }
.contact-side dt { font-family: var(--display); font-weight: 600; font-size: 0.95rem; }
.contact-side dd { color: var(--ink-2); font-size: 0.97rem; margin-top: 0.2rem; }
.area-list { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.5rem; }
.area-list span { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 0.2rem 0.6rem; font-size: 0.82rem; }
.form-card { background: #fff; border: 1.5px solid var(--ink); border-radius: var(--r-lg); padding: 1.8rem 1.8rem 1.6rem; box-shadow: 10px 10px 0 var(--soap-deep); }
.form-card h3 { font-size: 1.5rem; margin-bottom: 0.3rem; }
.form-card .intro { color: var(--ink-2); font-size: 0.97rem; margin-bottom: 1.3rem; }
.est-chip { display: none; align-items: center; gap: 0.8rem; background: var(--foam); border: 1.5px solid var(--soap-deep); border-radius: var(--r); padding: 0.7rem 1rem; margin-bottom: 1.2rem; font-size: 0.94rem; }
.est-chip.on { display: flex; }
.est-chip a { margin-left: auto; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.field { display: grid; gap: 0.35rem; }
.field.wide { grid-column: 1 / -1; }
.field label { font-family: var(--display); font-size: 0.92rem; font-weight: 600; }
.field label small { font-family: var(--body); font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; background: #fff; border: 1.5px solid var(--line); border-radius: var(--r); color: var(--ink); font: inherit; padding: 0.8rem 0.95rem; min-height: 50px; transition: border-color 0.15s, box-shadow 0.15s; }
.field input::placeholder, .field textarea::placeholder { color: #93A3B4; }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'><path d='M1 1l6 6 6-6' fill='none' stroke='%2310243A' stroke-width='2'/></svg>"); background-repeat: no-repeat; background-position: right 0.95rem center; padding-right: 2.4rem; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--soap); }
.field .err { color: var(--danger); font-size: 0.82rem; display: none; }
.field.invalid input { border-color: var(--danger); }
.field.invalid .err { display: block; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; margin-top: 1.2rem; }
.form-actions .fine { color: var(--muted); font-size: 0.85rem; }
.form-ok { display: none; margin-top: 1.2rem; background: var(--foam); border: 1.5px solid var(--soap-deep); border-radius: var(--r); padding: 1rem 1.1rem; font-size: 0.95rem; color: var(--ink-2); }
.form-ok.on { display: block; }
.form-ok b { color: var(--ink); }
.form-ok a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.form-ok .btn { margin-top: 0.7rem; }

/* ---------- footer ---------- */
.footer { border-top: 1.5px solid var(--ink); padding-block: 3rem 1.6rem; font-size: 0.95rem; color: var(--ink-2); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; }
.footer .brand img { width: 52px; height: 52px; }
.footer .brand b { font-size: 1.15rem; }
.footer p { margin-top: 1rem; max-width: 360px; }
.footer h4 { font-size: 1rem; margin-bottom: 0.8rem; }
.footer ul { display: grid; gap: 0.4rem; }
.footer a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--accent); }
.footer .ig { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 600; color: var(--ink); }
.footer .ig svg { width: 18px; height: 18px; }
.footer-bottom { margin-top: 2.4rem; padding-top: 1rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 0.85rem; color: var(--muted); }

/* ---------- gated claims ---------- */
[data-confirm] { display: none !important; }
body.confirmed-insured [data-confirm="insured"] { display: revert !important; }
body.confirmed-firstTimeOffer [data-confirm="firstTimeOffer"] { display: revert !important; }
body.confirmed-ceramic [data-confirm="ceramic"] { display: revert !important; }
body.confirmed-firstTimeOffer .hero-tag[data-confirm="firstTimeOffer"] { display: inline-block !important; }
body.confirmed-ceramic .pill[data-confirm="ceramic"] { display: inline-flex !important; }
body.confirmed-ceramic .ledger-row[data-confirm="ceramic"] { display: grid !important; }

/* ---------- 404 ---------- */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.notfound h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); margin-bottom: 1rem; }
.notfound p { color: var(--ink-2); margin-bottom: 1.6rem; }

/* ---------- desktop breakpoints (max-width 1024 and 900 are still "desktop" for verify-desktop: they are NOT the mobile block) ---------- */
@media (max-width: 1024px) {
  .route::before { display: none; }
  .stop { padding-left: 0; }
  .stop::before { display: none; }
  .inset { padding-left: 0; }
  .hero-top { grid-template-columns: 1fr; gap: 1.6rem; align-items: start; }
  .ledger-row { grid-template-columns: minmax(0, 1fr) 170px; }
  .ledger-row .blurb-cell { grid-column: 1 / -1; }
  .order { grid-template-columns: 1fr; }
  .sheet { position: static; }
  .tile, .tile.big, .tile.tall, .tile.wide { grid-column: span 6; grid-row: span 2; }
  .reviews { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1.5px solid var(--ink); padding: 0.4rem 0 0.6rem; }
  .nav-links a { padding: 0.85rem var(--gutter); min-height: 48px; display: flex; align-items: center; border-bottom: 1px solid var(--line); }
  .nav-links a:last-child { border-bottom: 0; }
  .nav.open .nav-links { display: flex; }
  .nav-toggle { display: inline-flex; }
  .nav-phone { display: none; }
  .btn-full { display: none; }
  .btn-short { display: inline; }
  .week { grid-template-columns: 1fr; }
  .day { border-right: 0; border-bottom: 1px solid var(--line); padding: 1.4rem 0; }
  .day + .day { padding-left: 0; }
  .day:last-child { border-bottom: 0; }
}

/* ---------- motion: one hero sequence, route pins, nothing else moves on its own ---------- */
.hero h1 .l { opacity: 0; transform: translateY(0.35em); animation: rise 0.9s var(--ease) both; }
.hero h1 .l:nth-child(2) { animation-delay: 0.1s; }
.hero h1 .l:nth-child(3) { animation-delay: 0.2s; }
.hero-side { opacity: 0; animation: rise 0.9s 0.35s var(--ease) both; }
.lineup-head, .lineup { opacity: 0; animation: rise 1s 0.5s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(0.35em); } to { opacity: 1; transform: none; } }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
html:not(.js) .reveal, html:not(.js) .hero h1 .l, html:not(.js) .hero-side, html:not(.js) .lineup, html:not(.js) .lineup-head { opacity: 1; transform: none; animation: none; }

/* Standalone on purpose: verify-desktop.mjs strips every block whose query mentions a maximum width, so keep this rule on its own. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero h1 .l, .hero-side, .lineup, .lineup-head, .reveal { animation: none; transition: none; opacity: 1; transform: none; }
  .stop::before, .btn, .pill { transition: none; }
}

/* =====================================================================
   MOBILE, add-only. Mirrors desktop at 2-up, form full width with 2-up fields.
   Nothing above this line may change for mobile. verify-desktop.mjs proves it.
   ===================================================================== */
@media (max-width: 760px) {
  :root { --section: clamp(2.6rem, 9vw, 3.6rem); --gutter: 1rem; --nav-h: 60px; }
  body { font-size: 1rem; }
  h1 { font-size: clamp(2.5rem, 12vw, 3.4rem); }
  h2 { font-size: clamp(1.7rem, 7vw, 2.2rem); }
  .stop { margin-bottom: 1.4rem; }
  .stop-row { flex-direction: column; align-items: flex-start; gap: 0.8rem; margin-bottom: 1.4rem; }
  .brand img { width: 34px; height: 34px; }
  .brand b { font-size: 0.98rem; }
  .btn { min-height: 46px; padding: 0 1.1rem; font-size: 0.95rem; }
  .hero .wrap { padding-top: 1.8rem; }
  .hero-cta .btn { flex: 1 1 100%; }
  .hero-meta { margin-top: 1rem; font-size: 0.88rem; }
  .lineup-head { margin-top: 1.6rem; }
  .lineup { gap: 0.5rem; padding-bottom: 1.4rem; }
  .lineup figure { width: 46vw; }
  .lineup figure.wide { width: 62vw; }
  .lineup figcaption { font-size: 0.8rem; }
  .ledger-row { grid-template-columns: minmax(0, 1fr) auto; gap: 0.8rem 1rem; padding: 1.1rem 0; }
  .ledger-row h3 { font-size: 1.2rem; }
  .ledger-row .blurb { font-size: 0.9rem; }
  .ledger-row ul { grid-template-columns: repeat(2, minmax(0, 1fr)); font-size: 0.82rem; }
  .ledger-row .price b { font-size: 1.6rem; }
  .ledger-row .price .btn { display: none; }
  .brand { gap: 0.5rem; }
  .brand b { font-size: 0.92rem; white-space: nowrap; }
  .nav .wrap { gap: 0.6rem; }
  .nav-right { gap: 0.5rem; }
  .lineup-head span:last-child { display: none; }
  .ledger-row > div:first-child { order: -2; }
  .ledger-row .price { order: -1; }
  .ledger-row .price b { font-size: 1.5rem; }
  .order-steps { gap: 1.2rem; }
  .pills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.45rem; }
  .pill { padding: 0.5rem 0.7rem; font-size: 0.88rem; min-height: 44px; flex-wrap: wrap; row-gap: 0; justify-content: center; text-align: center; }
  .pill small { flex-basis: 100%; font-size: 0.74rem; }
  .sheet { padding: 1.2rem 1.1rem 1.1rem; box-shadow: 6px 6px 0 var(--soap-deep); }
  .work-grid { grid-auto-rows: 120px; gap: 0.45rem; }
  .tile .cap { font-size: 0.74rem; padding: 0.25rem 0.55rem; left: 0.45rem; bottom: 0.45rem; }
  .tile .cap small { display: none; }
  .tile:last-child:nth-child(odd) { grid-column: span 12; }
  .week { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
  .day { border-bottom: 0; padding: 1.1rem 0; gap: 0.7rem; }
  .day:first-child { grid-column: 1 / -1; border-bottom: 1px solid var(--line); }
  .day figure { height: 160px; }
  .day .dow { font-size: 2.2rem; }
  .day h3 { font-size: 1.05rem; }
  .day p { font-size: 0.86rem; }
  .day .tag { font-size: 0.95rem; }
  .roll { font-size: 0.86rem; }
  .reviews { gap: 1.4rem; }
  .quote-big { padding-left: 1rem; }
  .quote-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
  .quote-list figure { padding: 0.8rem 0; }
  .quote-list blockquote { font-size: 0.9rem; }
  .reviews-foot .btn { margin-left: 0; width: 100%; }
  .faq summary { font-size: 0.98rem; padding: 0.8rem 0; }
  .faq .a { font-size: 0.92rem; }
  .contact-grid { gap: 1.4rem; }
  .contact-side .phone { font-size: 2rem; }
  .contact-side dl { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem; }
  .contact-side dl div:first-child { grid-column: 1 / -1; }
  .form-card { padding: 1.2rem 1rem 1.1rem; box-shadow: 6px 6px 0 var(--soap-deep); }
  .fields { gap: 0.7rem; }
  .form-actions .btn { width: 100%; }
  .footer { padding-block: 2.2rem 1.2rem; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem 1rem; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer-bottom { margin-top: 1.6rem; font-size: 0.8rem; }
}
