/* Monsoon Tire & Wheel, a demo. Palettes A (After the Storm, day) and N (Bay Lights, night),
   both checked by palette_check.py. Fresh markup and styles: nothing here is copied from another demo. */

:root {
  --bg: #EEEBE6; --surface: #FFFFFF; --text: #1C1F24; --muted: #4C525C; --line: #D6D1C8;
  --accent: #B3202E; --accent-text: #FFFFFF; --focus: #4B3F8F; --violet: #4B3F8F; --haze: #E4E0F0;
  --ink: #1C1F24; --ink-text: #F2EFEA; --ink-muted: #B7BCC6; --ink-accent: #FF5A66;
  --storm: #4B3F8F; --storm-text: #FFFFFF; --storm-accent: #FFD9DC;
  --glow: rgba(179, 32, 46, .35);
  --theme-bar: #1C1F24;
  --r: 18px; --r-sm: 12px;
  --pad: clamp(18px, 4vw, 48px);
  --max: 1220px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
html[data-time="night"] {
  --bg: #121419; --surface: #1C1F27; --text: #F0EDE8; --muted: #B4B9C4; --line: #2C303A;
  --accent: #FF5A66; --accent-text: #121419; --focus: #A99BFF; --violet: #A99BFF; --haze: #1E1A2E;
  --ink: #0A0B0F; --ink-text: #F0EDE8; --ink-muted: #B4B9C4; --ink-accent: #FF5A66;
  --storm: #2E2763; --storm-text: #F0EDE8; --storm-accent: #FFB3B9;
  --glow: rgba(255, 90, 102, .35);
  --theme-bar: #0A0B0F;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.55 var(--font);
  font-variation-settings: "wdth" 100; overflow-x: clip;
  transition: background-color .5s var(--ease), color .5s var(--ease);
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 10px 14px; z-index: 99; border-radius: 8px; }
.skip:focus { left: 8px; }
.wrap { width: min(var(--max), 100%); margin: 0 auto; padding: 0 var(--pad); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Type: Archivo stretched wide for display, normal for reading. */
h1, h2, h3 { margin: 0; line-height: 1.02; letter-spacing: -.01em; }
h1 { font-size: clamp(48px, 9vw, 120px); font-weight: 850; font-variation-settings: "wdth" 125; text-transform: uppercase; }
h2 { font-size: clamp(30px, 4.6vw, 56px); font-weight: 800; font-variation-settings: "wdth" 118; }
h3 { font-size: 21px; font-weight: 750; font-variation-settings: "wdth" 110; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 46ch; margin: 16px 0 0; }
p { margin: 0 0 12px; }

/* The demo note and the tier badge. */
.demo-bar { background: var(--storm); color: var(--storm-text); font-size: 13.5px; padding: 8px var(--pad); text-align: center; }
.demo-bar a { color: inherit; font-weight: 750; text-underline-offset: .2em; white-space: nowrap; }
.tabs a.tab-before { border-style: dashed; }
.tier {
  display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 750; letter-spacing: .16em;
  text-transform: uppercase; padding: 6px 11px 6px 9px; border-radius: 99px; color: var(--violet);
  background: color-mix(in srgb, var(--violet) 14%, transparent); border: 1px solid color-mix(in srgb, var(--violet) 40%, transparent);
}
.tier::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }

/* Header: glass over the storm. */
.top {
  position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 16px;
  padding: 10px var(--pad); background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand img { width: 40px; height: 40px; }
.brand b { display: block; font-weight: 850; font-size: 19px; letter-spacing: .04em; font-variation-settings: "wdth" 125; line-height: 1; }
.brand small { display: block; font-size: 10.5px; font-weight: 650; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.mark-night { display: none; }
html[data-time="night"] .mark-day { display: none; }
html[data-time="night"] .mark-night { display: block; }
.top nav { display: flex; align-items: center; gap: 4px; }
.top nav a { text-decoration: none; font-weight: 650; font-size: 15px; padding: 9px 12px; border-radius: 99px; }
.top nav a:hover { background: color-mix(in srgb, var(--text) 8%, transparent); }
.top nav a[aria-current="page"] { background: var(--text); color: var(--bg); }
.icon-btn {
  display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 10px; border-radius: 99px;
  border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-weight: 750; font-size: 13.5px; letter-spacing: .08em;
}
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn .moon { display: none; }
html[data-time="night"] .icon-btn .sun { display: none; }
html[data-time="night"] .icon-btn .moon { display: block; }
@media (max-width: 760px) {
  .top { gap: 8px; }
  .top nav .page-link { display: none; }
  .brand img { width: 34px; height: 34px; }
  .brand b { font-size: 16px; }
}

/* Page tabs on phones, under the header. */
.tabs { display: none; }
@media (max-width: 760px) {
  .tabs {
    display: flex; gap: 6px; overflow-x: auto; padding: 8px var(--pad) 10px; scrollbar-width: none;
    background: color-mix(in srgb, var(--bg) 92%, transparent);
  }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs a { flex: none; text-decoration: none; font-weight: 650; font-size: 14.5px; padding: 8px 14px; border-radius: 99px; border: 1px solid var(--line); }
  .tabs a[aria-current="page"] { background: var(--text); color: var(--bg); border-color: var(--text); }
}

/* Buttons. */
.btn {
  --b: var(--accent); --bt: var(--accent-text);
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 52px; padding: 0 22px;
  border-radius: 99px; background: var(--b); color: var(--bt); text-decoration: none; font-weight: 750; font-size: 16.5px;
  border: 0; cursor: pointer; position: relative; overflow: hidden; isolation: isolate;
  box-shadow: 0 10px 30px -12px var(--glow); transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1; transform: translateX(-110%);
  background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,.28) 50%, transparent 80%);
  transition: transform .7s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px var(--glow); }
.btn:hover::after { transform: translateX(110%); }
.btn svg { width: 20px; height: 20px; }
.btn.ghost { --b: transparent; --bt: currentColor; border: 1.5px solid currentColor; box-shadow: none; }
.btn.small { min-height: 44px; font-size: 15px; padding: 0 16px; }

/* HERO: the storm stage. Dark in both looks; the 3D mark turns in the rain. */
.hero {
  position: relative; min-height: calc(100svh - 110px); display: grid; align-items: end;
  background: radial-gradient(120% 80% at 70% 10%, #2E2763 0%, #15131F 55%, #0A0B0F 100%); color: #F2EFEA;
  overflow: hidden; isolation: isolate;
}
html[data-time="day"] .hero { background: radial-gradient(120% 80% at 70% 0%, #6A5DB8 0%, #2E2763 45%, #14121C 100%); }
.hero canvas.stage { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero .fallback { position: absolute; right: 6%; top: 12%; width: min(46vw, 460px); z-index: -2; opacity: .95; }
.hero.has-3d .fallback { display: none; }
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 55%; z-index: -1; pointer-events: none;
  background: linear-gradient(to top, rgba(10,11,15,.92), rgba(10,11,15,0));
}
.hero-copy { padding: 0 var(--pad) clamp(30px, 6vh, 64px); width: min(var(--max), 100%); margin: 0 auto; }
.hero .kicker { color: #CFC8F5; }
.hero h1 span { display: block; }
.hero h1 .wet {
  color: transparent; -webkit-text-stroke: 2px #F2EFEA;
  background: linear-gradient(180deg, rgba(255,90,102,0) 40%, rgba(255,90,102,.55) 100%); -webkit-background-clip: text; background-clip: text;
}
.hero .lead { color: #D9D5E8; }
.now {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; padding: 9px 15px; border-radius: 99px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); font-weight: 650; font-size: 15px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.now i { width: 9px; height: 9px; border-radius: 50%; background: #7DDB9A; box-shadow: 0 0 12px #7DDB9A; animation: pulse 2s infinite; }
.now.closed i { background: #FF5A66; box-shadow: 0 0 12px #FF5A66; }
@keyframes pulse { 50% { opacity: .35; } }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.hero-cta .btn.ghost { color: #F2EFEA; }
.scroll-cue { position: absolute; right: var(--pad); bottom: 28px; font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: #CFC8F5; writing-mode: vertical-rl; }
.scroll-cue::after { content: ""; display: block; width: 1px; height: 48px; margin: 10px auto 0; background: linear-gradient(#CFC8F5, transparent); animation: drip 1.8s infinite; }
@keyframes drip { from { transform: scaleY(0); transform-origin: top; } to { transform: scaleY(1); transform-origin: top; opacity: 0; } }
@media (max-width: 760px) { .scroll-cue { display: none; } .hero { min-height: calc(100svh - 150px); } .hero .fallback { width: 70vw; right: -8%; top: 4%; } }

/* Sections. */
.section { padding: clamp(64px, 10vw, 120px) 0; position: relative; }
.section.ink { background: var(--ink); color: var(--ink-text); }
.section.ink .kicker, .section.ink .lead { color: var(--ink-muted); }
.section.haze { background: var(--haze); }
.head { display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 30px; }

/* Swipe row: services. Scroll-snap on every screen, arrows on desk. */
.row { display: grid; grid-auto-flow: column; grid-auto-columns: min(82vw, 340px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--pad) 18px; margin: 0 calc(var(--pad) * -1); scrollbar-width: none; }
.row::-webkit-scrollbar { display: none; }
.row > * { scroll-snap-align: start; }
.svc {
  position: relative; border-radius: var(--r); padding: 26px 24px 24px; min-height: 300px; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: transform .4s var(--ease), border-color .4s;
}
.section.ink .svc { background: #16181F; border-color: #2A2E38; }
.svc:hover { transform: translateY(-4px); border-color: var(--ink-accent); }
.svc .num { font-weight: 850; font-variation-settings: "wdth" 125; font-size: 15px; color: var(--ink-accent); letter-spacing: .1em; }
.svc h3 { margin: 52px 0 12px; font-size: 26px; }
.svc p { color: var(--ink-muted); flex: 1; }
.svc .price { font-size: 14px; font-weight: 650; letter-spacing: .02em; padding-top: 14px; border-top: 1px solid #2A2E38; }
.svc svg.tread { position: absolute; right: -40px; top: -40px; width: 170px; height: 170px; opacity: .14; transition: transform 1.2s var(--ease); }
.svc:hover svg.tread { transform: rotate(40deg); }
/* On every other card the flat Monsoon mark sits where the rings do, as quiet as they are. The cards stay dark in
   both looks, so the night mark serves both. */
.svc img.svc-mark { position: absolute; right: -34px; top: -34px; width: 160px; height: 160px; opacity: .16; filter: saturate(.7);
  pointer-events: none; transition: transform 1.2s var(--ease), opacity .4s; }
.svc:hover img.svc-mark { transform: rotate(40deg); opacity: .24; }
.row-nav { display: flex; gap: 8px; }
.row-nav button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid #3A3F4B; background: transparent; cursor: pointer; display: grid; place-items: center; }
.row-nav svg { width: 20px; height: 20px; }
.dots { display: flex; gap: 6px; justify-content: center; margin-top: 6px; }
.dots span { width: 6px; height: 6px; border-radius: 99px; background: #3A3F4B; transition: width .3s; }
.dots span.on { width: 22px; background: var(--ink-accent); }
@media (max-width: 760px) { .row-nav { display: none; } }

/* Two kinds of visit. */
.duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 16px; }
.visit-card {
  position: relative; border-radius: var(--r); padding: clamp(26px, 4vw, 44px); min-height: 280px; display: flex; flex-direction: column; gap: 14px;
  background: var(--surface); border: 1px solid var(--line); overflow: hidden;
}
.visit-card.storm { background: var(--storm); color: var(--storm-text); border-color: transparent; }
.visit-card h3 { font-size: clamp(28px, 3.2vw, 40px); font-variation-settings: "wdth" 120; }
.visit-card p { flex: 1; color: inherit; opacity: .86; max-width: 40ch; }
.visit-card .btn { align-self: start; }
.visit-card.storm .btn { --b: var(--storm-text); --bt: var(--storm); }

/* The living sidewall. */
.sidewall-wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(20px, 4vw, 60px); align-items: center; }
@media (max-width: 860px) { .sidewall-wrap { grid-template-columns: 1fr; } }
.sidewall { width: 100%; height: auto; overflow: visible; }
.sidewall .rubber { fill: #1C1F24; }
.sidewall .rib { fill: none; stroke: #2B2F38; stroke-width: 2; }
.sidewall .rimline { fill: none; stroke: #3A3F4B; stroke-width: 3; }
.sidewall text { font-family: var(--font); font-weight: 850; font-variation-settings: "wdth" 120; font-size: 46px; letter-spacing: 2px; }
.sidewall tspan { fill: #3A3F4B; transition: fill .45s var(--ease); }
.sidewall tspan.lit { fill: #FF5A66; filter: url(#glow); }
.sidewall tspan.lit.v { fill: #A99BFF; }
.sidewall tspan.lit.w { fill: #F2EFEA; }
.sidewall .small { font-size: 17px; font-weight: 700; letter-spacing: 3px; }
.sidewall .small tspan { fill: #3A3F4B; }
.legend { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.legend li { display: grid; grid-template-columns: 92px 1fr; gap: 12px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line); opacity: .38; transition: opacity .4s; }
.legend li.on { opacity: 1; }
.legend b { font-size: 12.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.field { display: grid; gap: 8px; margin-top: 18px; }
.field label { font-weight: 700; font-size: 14.5px; }
.field input, .field select {
  width: 100%; min-height: 58px; padding: 0 18px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface);
  font-size: 22px; font-weight: 750; font-variation-settings: "wdth" 115; letter-spacing: .04em;
}
.field input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.note { font-size: 14.5px; color: var(--muted); margin-top: 10px; }
.msg { min-height: 1.5em; margin-top: 12px; font-weight: 600; }

/* Bay status. */
.bays { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.bay { border-radius: 14px; padding: 16px 14px; border: 1px solid var(--line); background: var(--surface); position: relative; overflow: hidden; }
.bay b { display: block; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.bay span { display: block; font-weight: 800; font-size: 18px; margin-top: 6px; }
.bay::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--line); }
.bay.open::after { background: #2FA866; box-shadow: 0 0 14px #2FA866; }
.bay.busy::after { background: var(--accent); box-shadow: 0 0 14px var(--accent); animation: work 1.6s linear infinite; background-size: 40px 4px; background-image: linear-gradient(90deg, var(--accent) 50%, transparent 50%); }
@keyframes work { to { background-position: 40px 0; } }
.bay-line { font-size: 19px; font-weight: 700; margin-top: 16px; }

.panel { border-radius: var(--r); padding: clamp(22px, 3.4vw, 38px); background: var(--surface); border: 1px solid var(--line); }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 16px; }
.slot { border: 2px dashed var(--line); border-radius: var(--r); padding: 26px; }

/* Layers CTA. */
.layers { border-radius: calc(var(--r) * 1.4); padding: clamp(28px, 5vw, 60px); background: linear-gradient(135deg, var(--storm), #14121C); color: #F2EFEA; display: grid; gap: 18px; position: relative; overflow: hidden; }
.layers h2 { max-width: 16ch; }
.layers p { max-width: 54ch; color: #D9D5E8; }
.layers .btn { justify-self: start; --b: #F2EFEA; --bt: #1C1F24; }

/* Tires page tools. */
.tools { display: grid; gap: 16px; }
.tool { border-radius: var(--r); padding: clamp(22px, 3.4vw, 40px); background: var(--surface); border: 1px solid var(--line); }
.tool h2 { font-size: clamp(26px, 3.4vw, 40px); }
.age-out { font-size: 20px; font-weight: 700; margin-top: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; }
.chip { min-height: 44px; padding: 0 16px; border-radius: 99px; border: 1.5px solid var(--line); background: transparent; cursor: pointer; font-weight: 700; }
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.verdict { margin-top: 16px; padding: 16px 18px; border-radius: 14px; font-weight: 650; border-left: 6px solid var(--line); background: color-mix(in srgb, var(--text) 5%, transparent); }
.verdict.replace { border-color: var(--accent); }
.verdict.soon { border-color: #D9A02B; }
.verdict.ok { border-color: #2FA866; }
input[type="range"] { width: 100%; accent-color: var(--accent); min-height: 44px; }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; margin-top: 20px; }
.line-card { border-radius: var(--r); padding: 22px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; transition: opacity .3s, transform .3s; }
.line-card.dim { opacity: .35; }
.line-card .maker { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.line-card h3 { font-size: 22px; }
.line-card p { color: var(--muted); font-size: 15.5px; flex: 1; margin: 0; }
.line-card .fit { font-size: 13.5px; font-weight: 700; color: #2FA866; }
.line-card .fit.rim { color: #B07A12; }
html[data-time="night"] .line-card .fit.rim { color: #E8B54B; }
.line-card a.out { font-weight: 700; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; color: var(--accent); }
.line-card a.out svg { width: 16px; height: 16px; }
.disclaimer { font-size: 13.5px; color: var(--muted); margin-top: 18px; max-width: 80ch; }

.rack { display: grid; gap: 10px; margin-top: 18px; }
.rack-item { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 16px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.rack-item .sz { font-weight: 850; font-variation-settings: "wdth" 118; font-size: 20px; }
.rack-item .meta { color: var(--muted); font-size: 14.5px; }
.gauge { width: 54px; height: 54px; }
@media (max-width: 520px) { .rack-item { grid-template-columns: auto 1fr; } .rack-item .btn { grid-column: 1 / -1; } }

/* The quote. */
.quote { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 3vw, 40px); }
@media (max-width: 860px) { .quote { grid-template-columns: 1fr; } }
.receipt { border-radius: var(--r); padding: 26px; background: var(--ink); color: var(--ink-text); font-variant-numeric: tabular-nums; }
.receipt dl { display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; margin: 0; }
.receipt dt { color: var(--ink-muted); }
.receipt dd { margin: 0; text-align: right; font-weight: 650; }
.receipt .total { border-top: 1px solid #2A2E38; padding-top: 14px; margin-top: 6px; font-size: 22px; font-weight: 850; color: #F2EFEA; }
.receipt .total-amt { font-size: clamp(34px, 5vw, 52px); font-weight: 850; font-variation-settings: "wdth" 120; color: var(--ink-accent); text-align: right; }
.receipt small { display: block; color: var(--ink-muted); margin-top: 14px; font-size: 13px; }
.qty { display: flex; gap: 6px; }
.qty button { flex: 1; min-height: 52px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 800; font-size: 18px; cursor: pointer; }
.qty button[aria-pressed="true"] { background: var(--text); color: var(--bg); }

/* Shop page tiers. */
.tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 860px) { .tiers { grid-template-columns: 1fr; } }
.tier-card { border-radius: calc(var(--r) * 1.3); padding: clamp(24px, 4vw, 44px); border: 1px solid var(--line); background: var(--surface); }
.tier-card.full { background: linear-gradient(160deg, var(--storm), #14121C 85%); color: #F2EFEA; border-color: transparent; position: relative; overflow: hidden; }
.tier-card h2 { font-size: clamp(28px, 3.4vw, 42px); }
.tier-card .for { font-weight: 650; margin: 10px 0 20px; opacity: .85; }
.tier-card ul { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 12px; }
.tier-card li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; }
.tier-card li::before { content: ""; width: 18px; height: 18px; margin-top: 4px; border-radius: 50%; border: 2px solid var(--accent); background: radial-gradient(circle, var(--accent) 35%, transparent 40%); }
.tier-card.full li::before { border-color: #FF5A66; background: radial-gradient(circle, #FF5A66 35%, transparent 40%); }
.tier-card .why { font-size: 15.5px; padding-top: 18px; border-top: 1px solid color-mix(in srgb, currentColor 20%, transparent); opacity: .9; }
.tier-card .plus { font-size: 13px; letter-spacing: .24em; text-transform: uppercase; font-weight: 750; color: #FFB3B9; }

.owner { display: grid; gap: 16px; }
.bay-edit { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.bay-edit fieldset { border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin: 0; display: grid; gap: 6px; }
.bay-edit legend { font-weight: 750; padding: 0 6px; }
.bay-edit label { display: flex; align-items: center; gap: 8px; min-height: 36px; cursor: pointer; }
@media (max-width: 560px) { .bay-edit { grid-template-columns: 1fr; } }
.add-row { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr auto; gap: 8px; align-items: end; }
.add-row .field { margin: 0; }
.add-row .field input, .add-row .field select { font-size: 17px; min-height: 50px; }
@media (max-width: 760px) { .add-row { grid-template-columns: 1fr 1fr; } .add-row .field:first-child { grid-column: 1 / -1; } }
.feeds { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 12px; margin-top: 18px; }
.feed { border-radius: 14px; padding: 20px; border: 1px dashed var(--line); }
.feed b { font-size: 18px; }

/* Visit. */
.hours-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.hours-table td { padding: 14px 0; border-bottom: 1px solid var(--line); }
.hours-table td + td { text-align: right; font-weight: 650; }
.hours-table tr.today td { color: var(--accent); font-weight: 800; }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font-weight: 750; font-size: 19px; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 6px; top: 14px; font-size: 28px; font-weight: 400; transition: transform .3s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); padding-bottom: 18px; max-width: 64ch; }

/* Page heads on inner pages. */
.page-head { padding: clamp(46px, 8vw, 96px) 0 clamp(26px, 4vw, 48px); position: relative; overflow: hidden; }
.page-head h1 { font-size: clamp(40px, 7vw, 92px); max-width: 14ch; }
.page-head .rain-lines { position: absolute; inset: 0; z-index: -1; opacity: .5; }

/* Footer. */
.foot { background: var(--ink); color: var(--ink-text); padding: 60px 0 calc(40px + 80px); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }
.foot a { color: var(--ink-text); }
.foot .muted { color: var(--ink-muted); font-size: 14.5px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot .brand small { color: var(--ink-muted); }
.made { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; font-size: 14px; color: var(--ink-muted); border-top: 1px solid #2A2E38; margin-top: 36px; padding-top: 22px; }
.made .ftv { display: inline-block; margin-left: 4px; }
.made .ftv img { width: 40px; height: 40px; border-radius: 50%; transition: transform .5s var(--ease); }
.made .ftv:hover img { transform: rotate(-12deg) scale(1.08); }

/* The pinned bar on phones: Call, Text, Directions. */
.dock { display: none; }
@media (max-width: 760px) {
  .dock {
    position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 50; display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 6px; padding: 6px; border-radius: 22px; background: color-mix(in srgb, #0A0B0F 86%, transparent);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 18px 40px -16px rgba(0,0,0,.6);
  }
  .dock a { display: grid; justify-items: center; gap: 2px; padding: 9px 4px; border-radius: 16px; color: #F2EFEA; text-decoration: none; font-size: 12.5px; font-weight: 700; }
  .dock a:first-child { background: #B3202E; }
  .dock svg { width: 22px; height: 22px; }
}

/* Reveal. */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.shown { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Spacing utilities (the security policy refuses inline styles). */
.mt0 { margin-top: 0; } .mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt14 { margin-top: 14px; }
.mt16 { margin-top: 16px; } .mt28 { margin-top: 28px; } .pt0 { padding-top: 0; }
.h-sm { font-size: clamp(26px, 3vw, 36px); }
.on-storm { color: #CFC8F5; }

/* A lightning strike lights the sky for a moment. */
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(80% 60% at 60% 0%, rgba(220,214,255,.55), transparent 70%); opacity: 0; transition: opacity .5s ease-out; pointer-events: none; }
.hero.strike::before { opacity: 1; transition: opacity .04s; }

[hidden] { display: none !important; }
.layers .tier, .tier-card .tier { justify-self: start; align-self: start; }

.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.page-head h1 { max-width: 18ch; }
@media (max-width: 760px) {
  .hero-cta { display: none; }
  .demo-bar { font-size: 12px; padding: 6px var(--pad); }
  .hero h1 { text-shadow: 0 2px 24px rgba(10,11,15,.55); }
  .hero-copy { padding-bottom: 104px; }
}
.hero-copy { min-width: 0; }
@media (max-width: 760px) {
  h1, .hero h1 { font-variation-settings: "wdth" 100; font-size: clamp(38px, 11.6vw, 64px); overflow-wrap: break-word; }
  .page-head h1 { font-size: clamp(36px, 10.4vw, 56px); }
}

/* Phones: always leave a band above the words for the 3D mark, even when long Spanish text fills a small screen. */
@media (max-width: 760px) { .hero-copy { padding-top: clamp(130px, 22vh, 200px); } }

/* Three tiers (DEMO_RUNBOOK 5b): Site Plus tags keep the violet badge; Immersive tags take the bolt's red. */
.tier.imm { color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.layers .tier.imm { color: #FFB3B9; }
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.tiers .tier-card { display: flex; flex-direction: column; }
.tier-name { font-size: 12.5px; letter-spacing: .22em; text-transform: uppercase; font-weight: 750; color: var(--violet); }
.tier-card.full .tier-name { color: #FFB3B9; }
.tier-price { font-weight: 850; font-variation-settings: "wdth" 122; font-size: clamp(30px, 3.2vw, 40px); line-height: 1.05; margin: 8px 0 0; }
.tier-card.plus-card { border: 2px solid var(--violet); }
.tier-card.full .for { color: #D9D5E8; }
.swipe-hint { display: none; }
.tool-stack { display: grid; gap: 16px; }

/* Phone swipe rows: the scroll tells the story, the collections swipe (DEMO_RUNBOOK 5a, swipe_check.py). */
@media (max-width: 760px) {
  .m-swipe {
    display: grid !important; grid-auto-flow: column; grid-template-columns: none !important; grid-auto-columns: min(84vw, 340px);
    gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
    margin-inline: calc(var(--pad) * -1); padding: 4px var(--pad) 14px; scroll-padding-inline: var(--pad);
  }
  .m-swipe::-webkit-scrollbar { display: none; }
  .m-swipe > * { scroll-snap-align: start; min-width: 0; }
  .swipe-hint { display: block; margin-top: 4px; font-size: 12.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
  .swipe-hint::after { content: " \2192"; }
}

/* ---------- The wheel studio (shop.html, wheels3d.js) ---------- */
.studio h2 { color: var(--ink-text); }
.st-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; margin-top: 28px; align-items: start; }
.st-stage {
  position: relative; height: clamp(380px, 62vh, 620px); border-radius: var(--r); overflow: hidden;
  background:
    radial-gradient(120% 70% at 50% 100%, rgba(255, 51, 68, .16), transparent 60%),
    radial-gradient(90% 80% at 70% 0%, rgba(143, 125, 255, .28), transparent 65%),
    linear-gradient(180deg, #17142c, #07080b 78%);
  border: 1px solid #2A2E38; box-shadow: 0 30px 80px -40px rgba(97, 81, 209, .6);
}
.st-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; cursor: grab; outline: none; }
.st-stage canvas:active { cursor: grabbing; }
.st-stage canvas:focus-visible { box-shadow: inset 0 0 0 3px var(--focus); }
.st-loading, .st-nogl { position: absolute; inset: auto 0 50% 0; text-align: center; color: var(--ink-muted); margin: 0; font-size: 15px; letter-spacing: .08em; }
.st-loading { animation: st-pulse 1.4s ease-in-out infinite; }
.st-stage.ready .st-loading, .st-stage.no-gl .st-loading { display: none; }
/* The gate: the Monsoon mark over the bay while the truck loads, then it splits down the middle and the halves slide
   apart like a shop gate. Each half holds the whole mark and shows only its side, so the seam is exact. */
.st-gate { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.st-gate-half {
  position: absolute; inset: 0; display: grid; place-items: center;
  background:
    radial-gradient(120% 70% at 50% 100%, rgba(255, 51, 68, .16), transparent 60%),
    radial-gradient(90% 80% at 70% 0%, rgba(143, 125, 255, .28), transparent 65%),
    linear-gradient(180deg, #17142c, #07080b 78%);
  transition: transform 1.15s cubic-bezier(.77, 0, .18, 1) .25s;
}
.st-gate-half img { width: min(34%, 190px); height: auto; margin-top: -28px; animation: st-breathe 2.4s ease-in-out infinite; }
.st-gate-l { clip-path: inset(0 50% 0 0); }
.st-gate-r { clip-path: inset(0 0 0 50%); }
.st-gate-seam {
  position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; transform: translateX(-1px);
  background: linear-gradient(180deg, transparent, #ff3344 30%, #ff3344 70%, transparent);
  box-shadow: 0 0 18px 2px rgba(255, 51, 68, .55); opacity: 0; transition: opacity .25s ease;
}
.st-stage.ready .st-gate-seam { opacity: 1; animation: st-seam .9s ease .2s forwards; }
.st-stage.ready .st-gate-l { transform: translateX(-51%); }
.st-stage.ready .st-gate-r { transform: translateX(51%); }
.st-stage.ready .st-gate { transition: visibility 0s 1.5s; visibility: hidden; }
.st-stage.no-gl .st-gate { display: none; }
.st-loading { z-index: 4; top: calc(50% + 104px); bottom: auto; }
.st-stage .st-progress { z-index: 4; top: calc(50% + 88px); }
@keyframes st-breathe { 50% { transform: scale(1.04); filter: drop-shadow(0 0 22px rgba(169, 155, 255, .45)); } }
@keyframes st-seam { to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .st-gate-half { transition: none; }
  .st-gate-half img { animation: none; }
  .st-stage.ready .st-gate { transition: opacity .4s ease; opacity: 0; visibility: hidden; }
  .st-stage.ready .st-gate-l, .st-stage.ready .st-gate-r { transform: none; }
}
.st-progress { position: absolute; left: 50%; top: calc(50% + 14px); width: min(220px, 60%); height: 4px; transform: translateX(-50%); appearance: none; -webkit-appearance: none; border: 0; border-radius: 2px; background: rgba(255,255,255,.12); overflow: hidden; }
.st-progress::-webkit-progress-bar { background: rgba(255,255,255,.12); border-radius: 2px; }
.st-progress::-webkit-progress-value { background: #e0283c; border-radius: 2px; transition: width .2s ease; }
.st-progress::-moz-progress-bar { background: #e0283c; border-radius: 2px; }
.st-stage.ready .st-progress, .st-stage.no-gl .st-progress { display: none; }
.st-credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.st-nogl { display: none; padding: 0 24px; }
.st-stage.no-gl .st-nogl { display: block; }
.st-stage.no-gl .st-views { display: none; }
@keyframes st-pulse { 50% { opacity: .45; } }
.st-views { position: absolute; left: 12px; bottom: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.st-view, .st-chip {
  font: inherit; font-size: 14px; font-weight: 650; color: var(--ink-text); cursor: pointer;
  background: rgba(16, 17, 22, .72); border: 1px solid #343846; border-radius: 999px; min-height: 40px; padding: 0 14px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: border-color .2s, background .2s, transform .2s;
}
.st-view:hover, .st-chip:hover { border-color: var(--ink-accent); transform: translateY(-1px); }
.st-view[aria-pressed="true"], .st-chip[aria-pressed="true"] { background: var(--ink-text); color: #0A0B0F; border-color: var(--ink-text); box-shadow: 0 0 22px -6px rgba(255, 90, 102, .8); }
.st-view:focus-visible, .st-chip:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.st-side { display: grid; gap: 18px; }
.st-readout { background: #12141A; border: 1px solid #2A2E38; border-radius: var(--r); padding: 18px 18px 20px; }
.st-size { margin: 0; font-size: 34px; font-weight: 850; font-variation-settings: "wdth" 125; letter-spacing: .02em; color: var(--ink-text); }
.st-facts { margin: 6px 0 0; display: flex; gap: 14px; flex-wrap: wrap; color: var(--ink-muted); font-size: 15px; }
.st-stock { margin: 12px 0 0; color: var(--ink-muted); font-size: 14px; }
.st-verdict { margin: 6px 0 16px; font-size: 15px; color: #BFF2CF; }
.st-verdict.warn { color: #FFD08A; }
.st-group { min-width: 0; }
.st-label { margin: 0 0 8px; font-size: 12.5px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-muted); }
.st-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.st-chip { display: inline-flex; align-items: center; gap: 8px; }
.st-chip small { font-size: 12px; opacity: .7; font-weight: 600; }
.st-controls { display: grid; gap: 16px; }
.st-dot { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); flex: none; }
.st-dot-violet { background: #3b3184; } .st-dot-black { background: #0f1115; } .st-dot-white { background: #e6e1d6; }
.st-dot-red { background: #8c1422; } .st-dot-chrome { background: linear-gradient(135deg, #fff, #9aa1ad 55%, #eef1f5); }
.st-dot-bronze { background: linear-gradient(135deg, #c48a52, #6e4420); } .st-dot-machined { background: linear-gradient(135deg, #d9dde3, #8b919b); }
.st-note { color: var(--ink-muted); }
@media (max-width: 1000px) {
  .st-layout { grid-template-columns: 1fr; }
  .st-side { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .st-stage { height: min(58vh, 460px); margin: 0 calc(var(--pad) * -1); border-radius: 0; border-left: 0; border-right: 0; }
  .st-views { left: 8px; right: 8px; bottom: 8px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .st-chips { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; margin: 0 calc(var(--pad) * -1); padding: 2px var(--pad) 6px; }
  .st-chips::-webkit-scrollbar, .st-views::-webkit-scrollbar { display: none; }
  .st-chip { flex: none; scroll-snap-align: start; min-height: 44px; }
  .st-side { gap: 14px; }
  .st-controls { order: -1; }
  .st-size { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) { .st-loading { animation: none; } }
