/* Tire shop site: mobile-first.
   Type: Barlow Condensed (display), Inter (text), JetBrains Mono (sizes, prices). All SIL OFL, self-hosted.
   Colour: charcoal + one red. --brand on white is 4.8:1; on charcoal use --brand-on-dark (5.6:1). */
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url(fonts/barlow-condensed-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url(fonts/barlow-condensed-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-display: swap; src: url(fonts/barlow-condensed-latin-800-normal.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 400; font-display: swap; src: url(fonts/inter-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 500; font-display: swap; src: url(fonts/inter-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 600; font-display: swap; src: url(fonts/inter-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 700; font-display: swap; src: url(fonts/inter-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-display: swap; src: url(fonts/jetbrains-mono-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 700; font-display: swap; src: url(fonts/jetbrains-mono-latin-700-normal.woff2) format("woff2"); }

:root {
  --brand: #d63a2f;
  --brand-ink: #b52a20;
  --brand-on-dark: #ff6a5c;
  --ink: #15171c;
  --ink-2: #4a4f5a;
  --ink-3: #6b7280;
  --line: #e4e6eb;
  --bg: #ffffff;
  --bg-2: #f4f5f7;
  --night: #15171c;
  --night-2: #1d2026;
  --night-line: #2c3038;
  --on-night: #e9ebef;
  --on-night-2: #a9afba;
  --ok: #17703f;
  --warn: #8a4b00;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 18, 22, .06), 0 6px 20px rgba(16, 18, 22, .06);
  --max: 1200px;
  --display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --text: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  font-family: var(--text);
  color: var(--ink);
  background: var(--bg);
}
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.55; background: var(--bg); font-size: 16px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--brand-ink); }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.02; letter-spacing: -.005em; margin: 0 0 .45em; }
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: 1.35rem; }
.mono { font-family: var(--mono); font-weight: 500; letter-spacing: -.01em; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-ink); margin: 0 0 12px; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 24px; } }
.section { padding: 56px 0; }
.section.alt { background: var(--bg-2); }
.section.night { background: var(--night); color: var(--on-night); }
.section.night .eyebrow { color: var(--brand-on-dark); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.section-head h2 { margin: 0; }
.muted { color: var(--ink-2); }
.red { color: var(--brand); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: #fff; padding: 8px; z-index: 99; }

/* Top bar + header */
.topbar { background: var(--night); color: var(--on-night-2); font-size: .82rem; }
.topbar .wrap { display: flex; gap: 16px; justify-content: space-between; padding-top: 7px; padding-bottom: 7px; flex-wrap: wrap; }
.topbar a { color: var(--on-night); text-decoration: none; white-space: nowrap; }
.topbar a:hover { text-decoration: underline; }
.topbar .top-address { color: #fff; font-weight: 700; }
header.site { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(6px); }
header.site .wrap { display: flex; align-items: center; gap: 16px; min-height: 72px; }
.logo { display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; line-height: 1; }
.logo-img { display: block; height: 64px; width: auto; }
.invoice-logo { margin: 0 0 10px; line-height: 0; }
.invoice-logo img { height: 84px; width: auto; }
nav.main { margin-left: auto; }
nav.main ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
nav.main a { display: block; padding: 9px 11px; color: var(--ink); text-decoration: none; border-radius: 6px; font-weight: 500; font-size: .95rem; }
nav.main a:hover { color: var(--brand-ink); background: var(--bg-2); }
nav.main a[aria-current="page"] { color: var(--brand-ink); box-shadow: inset 0 -2px 0 var(--brand); border-radius: 0; }
.header-actions { display: flex; gap: 6px; align-items: center; }
.portal-link { display: inline-flex; align-items: center; gap: 6px; padding: 9px 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .92rem; }
.portal-link svg, .cart-link svg { width: 20px; height: 20px; }
.cart-link { position: relative; }
.cart-count { position: absolute; top: -6px; right: -8px; background: var(--brand); color: #fff; border-radius: 99px; font-size: .7rem; font-weight: 700; padding: 1px 6px; }
.btn.menu-btn { display: none; }
@media (max-width: 960px) {
  .btn.menu-btn { display: inline-flex; margin-left: auto; }
  nav.main { position: absolute; left: 0; right: 0; top: 72px; background: #fff; border-bottom: 1px solid var(--line); display: none; box-shadow: var(--shadow); }
  nav.main.open { display: block; }
  nav.main ul { flex-direction: column; padding: 8px 16px 16px; }
  nav.main a { padding: 12px 8px; font-size: 1.05rem; }
  .portal-link span { display: none; }
}
@media (max-width: 420px) { .logo-img { height: 44px; } }

/* Buttons and forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: 8px;
  border: 1px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; min-height: 46px; line-height: 1.1; }
.btn:hover { border-color: #c9ccd3; }
.btn.primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn.primary:hover { background: var(--brand-ink); border-color: var(--brand-ink); }
.btn.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn.ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn.ghost-light:hover { border-color: #fff; }
.btn.small { padding: 6px 11px; min-height: 36px; font-size: .9rem; }
.btn.danger { color: #b3261e; border-color: #f0c4c0; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn .arrow { font-family: var(--mono); }
label { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 6px; color: var(--ink-2); }
input, select, textarea { width: 100%; font: inherit; padding: 11px 12px; border: 1px solid #d5d8de; border-radius: 8px; background: #fff; min-height: 46px; color: var(--ink); }
textarea { min-height: 90px; }
input:focus, select:focus, textarea:focus, .btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid rgba(214, 58, 47, .35); outline-offset: 1px; border-color: var(--brand); }
.grid { display: grid; gap: 18px; }
.grid.c2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid.c3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid.c4 { grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: end; }
.row > * { flex: 1 1 160px; }

/* Hero slideshow */
.hero { position: relative; background: var(--night); color: #fff; padding: 48px 0 40px; overflow: hidden; isolation: isolate; }
/* Full-width banner backgrounds: the slide photo, dark and soft (the photos are small), slowly zooming. */
.hero-bgs { position: absolute; inset: 0; z-index: -1; }
.hero-bg { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; }
.hero-bg.is-active { opacity: 1; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.55) brightness(.5) blur(2px); transform: scale(1.06); }
.hero-bg.is-active img { animation: kenburns 9s ease-out both; }
@keyframes kenburns { from { transform: scale(1.06) translateX(0); } to { transform: scale(1.16) translateX(-1.5%); } }
.hero-bgs::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15, 16, 20, .94) 0%, rgba(15, 16, 20, .72) 42%, rgba(15, 16, 20, .25) 100%), linear-gradient(0deg, rgba(15, 16, 20, .85), rgba(15, 16, 20, 0) 30%); }
.slides { display: grid; position: relative; }
.slide { grid-area: 1 / 1; display: grid; grid-template-columns: 1.15fr .95fr; gap: 36px; align-items: center; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility 0s linear .7s; }
.slide.is-active { opacity: 1; visibility: visible; transition: opacity .7s ease; }
.slide.is-active .slide-copy > *, .slide.is-active .slide-title span { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.slide.is-active .slide-title span:nth-child(1) { animation-delay: .08s; }
.slide.is-active .slide-title span:nth-child(2) { animation-delay: .16s; }
.slide.is-active .slide-title span:nth-child(3) { animation-delay: .24s; }
.slide.is-active .hero-sub { animation-delay: .32s; }
.slide.is-active .hero-cta { animation-delay: .4s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.slide .eyebrow { color: var(--on-night-2); }
.slide .eyebrow::before { display: none; }
.slide-title { font-size: clamp(2.9rem, 6.4vw, 4.9rem); line-height: .92; font-weight: 700; margin-bottom: 20px; }
.slide-title span { display: block; }
.slide-title .red { color: var(--brand-on-dark); }
.hero-sub { color: var(--on-night-2); max-width: 520px; font-size: 1.05rem; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0 8px; }
.slide-visual { position: relative; display: flex; justify-content: center; }
/* Catalogue tire: stands on a floor shadow, drives in from the right on each slide, then holds still. */
.tire-stage { position: relative; height: clamp(240px, 30vw, 400px); width: 100%; display: flex; align-items: flex-end; justify-content: center; }
.tire-stage::before { content: ""; position: absolute; left: 12%; right: 12%; bottom: -10px; height: 26px; background: radial-gradient(closest-side, rgba(0, 0, 0, .75), transparent); }
.tire-photo { position: relative; height: 100%; width: auto; max-width: 100%; object-fit: contain; object-position: bottom; filter: drop-shadow(0 18px 28px rgba(0, 0, 0, .55)); }
.slide.is-active .tire-photo { animation: drivein 1.1s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes drivein { 0% { opacity: 0; transform: translateX(38%); filter: blur(6px) drop-shadow(0 18px 28px rgba(0, 0, 0, .55)); } 60% { opacity: 1; filter: blur(0) drop-shadow(0 18px 28px rgba(0, 0, 0, .55)); } 82% { transform: translateX(-2.5%); } 100% { transform: none; } }
.tire3d { position: absolute; z-index: 0; pointer-events: none; opacity: 0; transition: opacity .6s ease; }
.slide { position: relative; z-index: 1; } /* copy and red tag stay above the live tire */
.hero.has-3d .tire3d { opacity: 1; }
.hero.has-3d .tire-photo, .hero.has-3d .tire-stage .media-note { visibility: hidden; }
.tire-stage .media-note { right: 0; top: 0; bottom: auto; background: rgba(0, 0, 0, .45); color: #fff; padding: 2px 7px; border-radius: 4px; }
.hero-tag { position: absolute; right: 0; bottom: 8%; background: var(--brand); color: #fff; padding: 13px 18px; transform: rotate(-5deg); font-family: var(--display); font-weight: 800; font-size: 1.45rem; line-height: 1; text-transform: uppercase; text-decoration: none; box-shadow: 0 12px 30px rgba(0, 0, 0, .35); }
.hero-tag:hover { background: var(--brand-ink); }
.hero-tag small { display: block; font-family: var(--text); font-weight: 600; font-size: .72rem; letter-spacing: .08em; margin-top: 4px; opacity: .92; }
.hero-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 18px; }
.call-cta { display: inline-flex; align-items: center; gap: 12px; border: 1px solid var(--night-line); background: rgba(255, 255, 255, .03); border-radius: 10px; padding: 10px 16px; color: #fff; text-decoration: none; }
.call-cta:hover { border-color: var(--brand-on-dark); background: rgba(255, 255, 255, .06); }
.call-icon { width: 40px; height: 40px; border-radius: 50%; background: var(--brand); display: grid; place-items: center; font-size: 1.2rem; }
.call-cta small { display: block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--on-night-2); }
.call-cta b { display: block; font-family: var(--mono); font-size: 1.5rem; line-height: 1.15; }
.hero-contact { display: flex; flex-wrap: wrap; gap: 12px; }
.visit-cta b { font-family: var(--text); font-size: 1.2rem; font-weight: 700; }
.visit-cta em { display: block; font-style: normal; font-size: .9rem; color: var(--on-night-2); }
.carousel-controls { display: flex; align-items: center; gap: 10px; }
.cbtn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--night-line); background: rgba(255, 255, 255, .04); color: #fff; font-size: 1.3rem; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.cbtn[data-pause] { font-size: .8rem; }
.cbtn:hover { border-color: #fff; }
.dots { display: flex; gap: 4px; }
.dot { width: 28px; height: 44px; border: 0; background: none; cursor: pointer; padding: 0; position: relative; }
.dot::before { content: ""; position: absolute; left: 4px; right: 4px; top: 20px; height: 4px; border-radius: 4px; background: #4a505b; }
.dot[aria-current="true"]::before { background: var(--brand-on-dark); }
.media-note { position: absolute; right: 10px; bottom: 8px; font-size: .66rem; color: rgba(255, 255, 255, .6); }
@media (max-width: 860px) {
  .hero { padding: 28px 0 28px; }
  .slide { grid-template-columns: 1fr; gap: 18px; align-content: start; }
  .slide-visual { order: 2; }
  .tire-stage { height: 220px; }
  .slide-title { font-size: clamp(2.6rem, 12vw, 3.6rem); }
  .hero-tag { font-size: 1.05rem; padding: 10px 14px; }
  .hero-foot .hero-contact { order: 2; }
}
@media (prefers-reduced-motion: reduce) {
  .slide, .hero-bg { transition: none !important; }
  .hero-bg img, .slide-copy > *, .slide-title span, .tire-photo { animation: none !important; }
}

/* Size finder card, overlapping the hero */
/* Sits fully below the dark banner on its own light band (no half-on/half-off overlap). */
.finder-wrap { background: var(--bg-2); padding: 36px 0; border-bottom: 1px solid var(--line); }
.finder { background: #fff; color: var(--ink); border-radius: 18px; box-shadow: 0 10px 30px rgba(21, 23, 28, .10); display: grid; grid-template-columns: 180px 1fr; overflow: hidden; border: 1px solid var(--line); max-width: 1080px; margin: 0 auto; }
.finder [role="tablist"] { border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.finder [role="tab"] { display: flex; align-items: center; gap: 10px; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); border-left: 3px solid transparent; padding: 16px 18px; font: inherit; font-weight: 600; font-size: 1rem; cursor: pointer; color: var(--ink-2); min-height: 56px; }
.finder [role="tab"] svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.finder [role="tab"][aria-selected="true"] { border-left-color: var(--brand); color: var(--brand-ink); background: #fff7f6; }
.finder .panel { padding: 24px 28px 26px; }
.finder h2 { font-family: var(--text); font-weight: 600; font-size: 1.7rem; letter-spacing: -.01em; text-transform: none; text-align: center; margin-bottom: 18px; }
.finder .type-row { margin-top: 14px; }
.finder .find-btn { width: 100%; margin-top: 18px; font-family: var(--display); font-size: 1.15rem; letter-spacing: .06em; text-transform: uppercase; min-height: 48px; }
.finder-help { text-align: center; margin: 12px 0 0; font-size: .88rem; }
.finder-sub { text-align: center; color: var(--ink-2); margin: -8px 0 18px; }
.choice-grid { display: grid; gap: 10px; }
.choice-grid.c3 { grid-template-columns: repeat(3, 1fr); }
.choice-grid.c4 { grid-template-columns: repeat(4, 1fr); }
.choice { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 56px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); text-decoration: none; font-weight: 500; text-align: center; transition: box-shadow .15s ease, border-color .15s ease; }
.choice:hover, .choice:focus-visible { border-color: var(--brand); box-shadow: 0 6px 16px rgba(21, 23, 28, .10); color: var(--brand-ink); }
.choice svg { width: 30px; height: 30px; fill: none; stroke: #7b8291; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
@media (max-width: 760px) {
  .finder { grid-template-columns: 1fr; }
  .finder [role="tablist"] { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .finder [role="tab"] { flex: 1 0 auto; justify-content: center; border-left: 0; border-bottom: 3px solid transparent; padding: 12px 12px; font-size: .95rem; gap: 6px; }
  .finder [role="tab"][aria-selected="true"] { border-bottom-color: var(--brand); }
  .finder .panel { padding: 18px 16px; }
  .finder h2 { font-size: 1.35rem; }
  .choice-grid.c3, .choice-grid.c4 { grid-template-columns: 1fr 1fr; }
  .choice-grid.c3 .choice:last-child { grid-column: 1 / -1; }
}

/* Brand strip + season tiles */
.brands { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 30px 0; border-bottom: 1px solid var(--line); }
.brands .lbl { font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.brands a { font-family: var(--display); font-style: italic; font-weight: 800; font-size: 1.9rem; letter-spacing: .04em; color: #2b2e35; text-decoration: none; }
.brands a:hover { color: var(--brand-ink); }
.brands a .slash { color: var(--brand); }
.seasons { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.season-tile { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 4px; min-height: 196px; padding: 22px; border-radius: 12px; color: var(--ink); text-decoration: none; border: 1px solid rgba(0, 0, 0, .05); transition: transform .15s ease, box-shadow .15s ease; }
.season-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.season-tile::after { content: ""; position: absolute; z-index: 0; right: -70px; top: -70px; width: 190px; height: 190px; border-radius: 50%; border: 26px solid rgba(255, 255, 255, .55); }
.season-tile > * { position: relative; z-index: 1; }
.season-tile svg { width: 34px; height: 34px; margin-bottom: auto; }
.season-tile .eyebrow { font-size: .66rem; color: var(--ink-2); margin: 0; }
.season-tile .eyebrow::before { display: none; }
.season-tile h3 { font-size: 2rem; margin: 0; display: flex; justify-content: space-between; align-items: center; }
.season-tile p { margin: 0; font-size: .9rem; color: var(--ink-2); }
.t-winter { background: #e9eef6; } .t-winter svg { color: #3b6ea8; }
.t-allseason { background: #f6eee4; } .t-allseason svg { color: #b0742c; }
.t-allweather { background: #e8f1ea; } .t-allweather svg { color: #3d8257; }
.t-allterrain { background: #eeebe5; } .t-allterrain svg { color: #6b5d46; }
.t-highwayterrain { background: #ecedf1; } .t-highwayterrain svg { color: #4a4f5a; }

/* Product cards */
.pcard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; transition: box-shadow .15s ease, transform .15s ease; }
.pcard:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.pcard-media { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; background: radial-gradient(circle at 50% 45%, #23262d 0%, #0d0e11 75%); padding: 18px; }
/* Photos come tall (supplier) and wide (catalogue): fit each inside the fixed box so every card lines up. */
.pcard-media img { position: absolute; inset: 18px; width: calc(100% - 36px); height: calc(100% - 36px); object-fit: contain; mix-blend-mode: lighten; }
.pcard-media .tire-art { width: 64%; height: auto; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .5)); }
.pcard-media .pill { position: absolute; left: 10px; top: 10px; z-index: 1; }
.pcard-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; flex: 1; }
.pcard-meta { display: flex; justify-content: space-between; align-items: center; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.chip { font-size: .7rem; font-weight: 600; letter-spacing: .02em; text-transform: none; background: var(--bg-2); color: var(--ink-2); padding: 2px 8px; border-radius: 99px; }
.pcard-title { font-size: 1.5rem; line-height: 1.02; margin: 2px 0 0; text-transform: uppercase; }
.pcard-title a { color: var(--ink); text-decoration: none; }
.pcard-title a:hover { color: var(--brand-ink); }
.pcard-spec { margin: 0; font-size: .86rem; color: var(--ink-2); }
.pcard-price { display: flex; justify-content: space-between; align-items: end; gap: 8px; border-top: 1px solid var(--line); padding-top: 10px; margin-top: auto; }
.pcard-price .lbl { display: block; font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.pcard-price strong { font-size: 1.35rem; font-weight: 700; color: var(--ink); }
.pcard-price .per { font-size: .8rem; color: var(--ink-2); text-align: right; }
.pcard-buy { display: grid; grid-template-columns: 72px 1fr; gap: 8px; margin-top: 4px; }
.pcard-buy select { min-height: 44px; padding: 8px 10px; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: #fff; color: var(--ink); }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.ok { color: var(--ok); } .pill.low { color: var(--warn); } .pill.out { color: #b3261e; }

/* Phones: compact side-by-side cards so a list shows several products per screen. */
@media (max-width: 560px) {
  .grid.c4 { grid-template-columns: 1fr; gap: 12px; }
  .pcard { display: grid; grid-template-columns: 116px 1fr; }
  .pcard:hover { transform: none; }
  .pcard-media { aspect-ratio: 1; padding: 10px; align-self: start; }
  .pcard-media img { inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); }
  .pcard-media .pill { left: 6px; top: 6px; font-size: .64rem; padding: 2px 6px; }
  .pcard-media .media-note { display: none; }
  .pcard-body { padding: 12px; gap: 4px; }
  .pcard-title { font-size: 1.25rem; }
  .pcard-price strong { font-size: 1.15rem; }
  .pcard-buy { grid-template-columns: 62px 1fr; }
  .topbar .top-name, .topbar .hours { display: none; }
  .demo-bar { font-size: .74rem; }
}

/* Badges (admin, portal, product page) */
.badge { display: inline-block; font-size: .74rem; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: var(--bg-2); color: var(--ink-2); }
.badge.ok { background: #e3f3ea; color: var(--ok); }
.badge.low { background: #fff1dd; color: var(--warn); }
.badge.out { background: #fde8e6; color: #a8231b; }
.badge.brand { background: #fdeceb; color: var(--brand-ink); }

/* Promo band, tech, wholesale, FAQ */
.promo-band { background: var(--brand); color: #fff; }
.promo-band .wrap { display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding-top: 22px; padding-bottom: 22px; }
.promo-band h2 { margin: 0; font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
.promo-band p { margin: 4px 0 0; opacity: .92; }
.promo-band .btn { background: #fff; color: var(--brand-ink); border-color: #fff; }
.tech { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.tech p { color: var(--on-night-2); }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.stat-card { border: 1px solid var(--night-line); background: var(--night-2); border-radius: 12px; padding: 18px; }
.stat-card b { display: block; font-family: var(--mono); font-size: 2rem; color: var(--brand-on-dark); line-height: 1.1; }
.stat-card span { font-size: .86rem; color: var(--on-night-2); }
.source { font-size: .76rem; color: var(--on-night-2); margin-top: 14px; }
@media (max-width: 860px) { .tech { grid-template-columns: 1fr; } }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service { padding: 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.service .n { font-family: var(--mono); font-size: .76rem; color: var(--brand-ink); }
.service h3 { margin: 6px 0; font-size: 1.45rem; }
.service p { margin: 0; color: var(--ink-2); font-size: .94rem; }
.wholesale-band { display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: center; }
.wholesale-band h2 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: .98; }
.wholesale-band h2 .red { color: var(--brand-on-dark); display: block; }
.wholesale-band ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.wholesale-band li { display: flex; gap: 10px; align-items: baseline; color: var(--on-night); border-bottom: 1px solid var(--night-line); padding-bottom: 10px; }
.wholesale-band li b { font-family: var(--mono); color: var(--brand-on-dark); font-size: .8rem; }
@media (max-width: 860px) { .wholesale-band { grid-template-columns: 1fr; } }
.faq-2col { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; }
@media (max-width: 860px) { .faq-2col { grid-template-columns: 1fr; gap: 16px; } }
details { border-bottom: 1px solid var(--line); padding: 16px 2px; }
details:first-of-type { border-top: 1px solid var(--line); }
summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--mono); font-size: 1.2rem; line-height: 1; color: var(--ink-2); }
details[open] summary::after { content: "–"; }
details p { color: var(--ink-2); margin: 10px 0 0; }

/* Cards (general), shop layout, tables */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.product { display: flex; flex-direction: column; gap: 6px; }
.price { font-family: var(--mono); font-size: 1.3rem; font-weight: 700; }
.price small { font-family: var(--text); font-size: .8rem; font-weight: 500; color: var(--ink-2); }
.shop { display: grid; grid-template-columns: 270px 1fr; gap: 26px; }
.filters { position: sticky; top: 92px; align-self: start; display: grid; gap: 14px; }
.filters-wrap > summary { list-style: none; display: none; }
.filters-wrap > summary::after { content: none; }
@media (max-width: 900px) {
  .shop { grid-template-columns: 1fr; }
  .filters { position: static; margin-top: 8px; }
  .filters-wrap { border: 0; padding: 0; }
  .filters-wrap > summary { display: flex; width: 100%; }
}
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { padding: 9px 11px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { background: var(--bg-2); font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }
td.num, th.num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
td input, td select { min-height: 36px; padding: 4px 8px; min-width: 64px; }
.page-head { background: var(--night); color: #fff; padding: 34px 0 30px; }
.page-head h1 { margin: 0; }
.page-head .eyebrow { color: var(--brand-on-dark); }
.page-head p { color: var(--on-night-2); margin: 8px 0 0; max-width: 680px; }
.page-head .breadcrumbs, .page-head .breadcrumbs a { color: var(--on-night-2); }

/* Product page */
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
.pdp-media { position: relative; display: grid; place-items: center; aspect-ratio: 1; border-radius: 14px; background: radial-gradient(circle at 50% 45%, #262a31 0%, #0d0e11 75%); padding: 32px; }
.pdp-media img { position: absolute; inset: 32px; width: calc(100% - 64px); height: calc(100% - 64px); object-fit: contain; mix-blend-mode: lighten; }
.pdp-media .tire-art { width: 70%; height: auto; }
.pdp .pcard-meta { margin-bottom: 8px; }
.pdp h1 { text-transform: uppercase; margin-bottom: 6px; }
.pdp-spec { font-size: 1rem; color: var(--ink-2); margin: 0 0 18px; }
.buybox { border: 1px solid var(--line); border-radius: 12px; padding: 18px; display: grid; gap: 14px; background: var(--bg-2); }
.buybox .set { font-family: var(--mono); font-size: 2.1rem; font-weight: 700; line-height: 1; }
.buybox .lbl { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.assure { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; font-size: .92rem; color: var(--ink-2); }
.assure li::before { content: "✓  "; color: var(--ok); font-weight: 700; }
@media (max-width: 860px) { .pdp { grid-template-columns: 1fr; gap: 20px; } .pdp-media { aspect-ratio: 4 / 3; } }

/* Footer */
footer.site { background: var(--night); color: var(--on-night-2); padding: 48px 0 24px; margin-top: 0; }
footer.site a { color: var(--on-night); text-decoration: none; }
footer.site a:hover { text-decoration: underline; }
footer.site strong { display: block; color: #fff; font-family: var(--display); font-size: 1.15rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 8px; }
footer.site .grid { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
footer.site .logo { color: #fff; margin-bottom: 10px; }
footer.site small.legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; border-top: 1px solid var(--night-line); margin-top: 32px; padding-top: 18px; color: #8b919c; }

/* Misc */
.demo-bar { background: #fff3c4; color: #4a3b00; font-size: .82rem; border-bottom: 1px solid #ecd27a; }
.demo-bar .wrap { padding-top: 6px; padding-bottom: 6px; }
.demo-bar code { background: #fff; padding: 0 4px; border-radius: 4px; font-family: var(--mono); }
.linkish { background: none; border: 0; color: var(--brand-ink); text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }
.rating { display: inline-block; font-weight: 700; color: #f5b301; margin: 4px 0; }
.rating a { color: inherit; text-decoration: none; }
.notice { padding: 12px 14px; border-radius: 8px; background: #fff7e6; border: 1px solid #f5d79e; }
.notice.error { background: #fdecea; border-color: #f3b8b2; }
.notice.ok { background: #e6f4ec; border-color: #b5dec4; }
.breadcrumbs { font-size: .85rem; margin: 18px 0; }
.breadcrumbs a { color: var(--ink-2); }
.spec { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; }
.spec dt { font-weight: 600; color: var(--ink-2); }
.spec dd { margin: 0; }
.tabs { display: flex; gap: 2px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.tabs button { background: none; border: 0; border-bottom: 3px solid transparent; padding: 10px 12px; font: inherit; font-weight: 600; cursor: pointer; color: var(--ink-2); }
.tabs button[aria-selected="true"] { border-bottom-color: var(--brand); color: var(--brand-ink); }
.stat { font-family: var(--mono); font-size: 1.6rem; font-weight: 700; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; background: var(--night); padding: 14px; border-radius: 14px; }
.kpis .card { background: var(--night-2); border-color: var(--night-line); color: var(--on-night); }
.kpis .muted { color: var(--on-night-2); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; }
.kpis .stat { color: #fff; }
.kpis .stat.good { color: #5fd49a; } .kpis .stat.warn { color: #ffcc66; }
.segmented { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; }
.segmented button { min-height: 46px; border: 1px solid #d5d8de; background: #fff; border-radius: 8px; font: inherit; font-family: var(--mono); font-weight: 700; cursor: pointer; }
.segmented button[aria-pressed="true"] { background: var(--brand); color: #fff; border-color: var(--brand); }
.invoice-panel { border: 2px solid var(--ink); }
.alerts { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 12px; }
.alerts:empty { display: none; }
.alert { font: inherit; font-weight: 600; font-size: .9rem; border-radius: 8px; padding: 9px 14px; cursor: pointer; border: 1px solid #f5d79e; background: #fff7e6; color: #6b3d00; min-height: 40px; }
.alert.warn { border-color: #f3c58a; background: #fff1dd; color: var(--warn); }
.alert.danger { border-color: #f3b8b2; background: #fdecea; color: #8f1c15; }
.alert:hover { filter: brightness(.97); }
tr.row-low td { background: #fff8ec; }
tr.row-overdue td { background: #fdf1ef; }
td.actions { min-width: 250px; }
td.actions > * { margin: 2px 0; vertical-align: middle; }
tfoot th { font-size: 1rem; color: var(--ink); letter-spacing: .02em; }
.pay-group { display: inline-flex; gap: 4px; align-items: center; }
.pay-group select, td.actions select { min-height: 34px; padding: 4px 8px; width: auto; }
table.qe input { max-width: 110px; }
.svc-quick { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.thumbs { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.thumbs a, .thumbs .ph { position: relative; display: block; width: 56px; height: 56px; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); background: #f3f4f6; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.thumbs button { position: absolute; top: 0; right: 0; min-height: 0; padding: 0 5px; font-size: .75rem; line-height: 18px; border: 0; border-radius: 0 0 0 6px; background: rgba(0, 0, 0, .65); color: #fff; cursor: pointer; }
.stamp { display: inline-block; border: 3px solid currentColor; border-radius: 6px; padding: 4px 12px; font-family: var(--display); font-weight: 800; font-size: 1.4rem; letter-spacing: .08em; transform: rotate(-4deg); }
.stamp.paid { color: var(--ok); } .stamp.unpaid { color: #b3261e; } .stamp.quote { color: var(--ink-2); }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print {
  header.site, .topbar, footer.site, .no-print, .tabs, .demo-bar { display: none !important; }
  body { font-size: 12px; }
}

/* Staff sign-in at /admin */
.signin { max-width: 440px; margin: 0 auto; }
.signin .grid .btn { width: 100%; }

/* Service prices (client price list) */
.price-chips { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.price-chips li { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; background: #fff; }
.price-chips b { font-family: var(--mono); color: var(--brand-ink); white-space: nowrap; }
.price-chips small { color: var(--ink-3); }
.price-group { margin-top: 32px; max-width: 760px; }
.price-group h2 { font-size: 1.5rem; margin-bottom: 6px; }
.price-table th { text-align: left; font-weight: 600; }
.price-table th small { display: block; font-weight: 400; color: var(--ink-2); font-size: .85rem; }
.price-table td { font-family: var(--mono); font-weight: 700; white-space: nowrap; }
.lead { font-size: 1.15rem; color: var(--ink-2); }
.services-home .services-grid { grid-template-columns: repeat(3, 1fr); }
.services-home .service:last-child:nth-child(3n+1) { grid-column: 1 / -1; } /* a lone last card spans the row */
@media (max-width: 760px) { .services-home .services-grid { grid-template-columns: 1fr; } }

/* Team: staff access */
.staff-access { display: grid; gap: 12px; }
.staff-login.off { opacity: .6; }
.staff-login .areas { border: 0; padding: 0; margin: 10px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px 14px; }
.staff-login .areas label { display: flex; gap: 8px; align-items: center; font-weight: 400; font-size: .92rem; text-transform: none; letter-spacing: 0; color: var(--ink); margin: 0; }
.staff-login .areas input { width: auto; min-height: 0; }
