/*
 * The Land LA store: year-round look.
 * A night-time showroom: deep navy stage, the chrome-blue of the server's own artwork
 * as the single accent, product art as the only thing that shouts.
 * Seasonal themes (theme-*.css) override the tokens in :root and add their own dressing;
 * nothing in this file knows about them.
 */
@font-face { font-family: 'Archivo'; src: url('/assets/fonts/archivo-latin-wdth-normal.woff2') format('woff2'); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: 'Geist'; src: url('/assets/fonts/geist-latin-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('/assets/fonts/geist-mono-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #060a13;
  --bg-2: #0a101c;
  --surface: #0e1524;
  --surface-2: #131c30;
  --line: rgb(150 178 235 / 0.13);
  --line-2: rgb(150 178 235 / 0.26);
  --ink: #f2f0ea;
  --muted: #9ca7bf;
  --faint: #6b7791;
  --accent: #6aa9ff;
  --accent-2: #9cc6ff;
  --accent-ink: #04122c;
  --accent-glow: rgb(80 150 255 / 0.4);
  --sale: #ff6b6b;
  --ok: #56d98a;
  --warn: #f6c65b;
  --stage: radial-gradient(120% 90% at 50% 0%, #17233d 0%, #0b1220 62%, #080d18 100%);
  --display: 'Archivo', 'Arial Narrow', system-ui, sans-serif;
  --text: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --r: 16px;
  --r-sm: 10px;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --head-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 130px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.55 var(--text); -webkit-font-smoothing: antialiased; overflow-x: clip; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; position: relative; z-index: 1; }
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
[hidden] { display: none !important; }
svg { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--accent-ink); }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 12px; }

h1, h2, .display { font-family: var(--display); font-weight: 800; font-stretch: 116%; text-transform: uppercase; letter-spacing: -0.015em; line-height: 0.98; text-wrap: balance; }
h3 { font-family: var(--display); font-weight: 700; font-stretch: 104%; line-height: 1.15; }
.kicker { font-family: var(--display); font-size: 0.74rem; font-weight: 700; font-stretch: 110%; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent-2); }
.lede { color: var(--muted); font-size: clamp(1rem, 1.25vw, 1.15rem); max-width: 56ch; text-wrap: pretty; }

/* ---------------------------------------------------------------- buttons --- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem; min-height: 46px; padding: 0 1.25rem; border-radius: 999px; font-family: var(--display); font-weight: 700; font-stretch: 106%; font-size: 0.95rem; letter-spacing: 0.01em; white-space: nowrap; border: 1px solid transparent; transition: transform 0.18s var(--ease), background-color 0.18s, border-color 0.18s, box-shadow 0.18s, color 0.18s; }
.btn-xl { min-height: 54px; padding: 0 1.6rem; font-size: 1rem; }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 30px -12px var(--accent-glow), inset 0 1px 0 rgb(255 255 255 / 0.4); }
.btn-ghost { border-color: var(--line-2); background: rgb(255 255 255 / 0.03); }
.btn .arrow { transition: transform 0.2s var(--ease); }
.btn .num { margin-left: 0.4rem; padding-left: 0.8rem; border-left: 1px solid rgb(0 0 0 / 0.22); }
.grow { flex: 1; }
.btn[disabled], .btn.busy, .add.busy { opacity: 0.6; pointer-events: none; }
.icon-btn { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); transition: color 0.15s, border-color 0.15s; }
.more { display: inline-flex; align-items: center; gap: 0.4rem; font-family: var(--display); font-weight: 700; font-size: 0.9rem; color: var(--accent-2); white-space: nowrap; }
.more .arrow { transition: transform 0.2s var(--ease); }
@media (hover: hover) {
  .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px var(--accent-glow), inset 0 1px 0 rgb(255 255 255 / 0.5); background: var(--accent-2); }
  .btn-ghost:hover { border-color: var(--ink); background: rgb(255 255 255 / 0.07); }
  .btn:hover .arrow, .more:hover .arrow { transform: translateX(4px); }
  .icon-btn:hover { color: var(--ink); border-color: var(--line-2); }
}
.btn:active { transform: translateY(0) scale(0.985); }

/* ---------------------------------------------------------------- ribbon --- */
.ribbon { position: relative; z-index: 31; display: flex; justify-content: center; align-items: baseline; flex-wrap: wrap; gap: 0.2rem 0.75rem; padding: 0.55rem var(--gutter); background: var(--sale); color: #1b0606; font-size: 0.88rem; font-weight: 600; text-align: center; }
.ribbon-name { font-family: var(--display); font-weight: 800; font-stretch: 112%; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.78rem; }
.ribbon-ends { opacity: 0.85; }
.ribbon time { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- header --- */
.head { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: var(--head-h); }
.brand img { height: 54px; width: auto; filter: drop-shadow(0 4px 14px rgb(0 0 0 / 0.5)); }
.head-side { display: flex; align-items: center; gap: clamp(0.5rem, 1.6vw, 1.1rem); font-size: 0.9rem; }
.live { display: inline-flex; align-items: center; gap: 0.45rem; color: var(--muted); white-space: nowrap; }
.live b { color: var(--ink); font-weight: 500; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgb(86 217 138 / 0.6); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgb(86 217 138 / 0); } 100% { box-shadow: 0 0 0 0 rgb(86 217 138 / 0); } }
.who { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--muted); max-width: 16ch; white-space: nowrap; }
.who span { overflow: hidden; text-overflow: ellipsis; }
a.who:hover { color: var(--ink); }
.basket-btn { position: relative; display: inline-flex; align-items: center; gap: 0.5rem; min-height: 42px; padding: 0 1rem 0 0.85rem; border-radius: 999px; border: 1px solid var(--line-2); font-family: var(--display); font-weight: 700; transition: border-color 0.15s, background-color 0.15s; }
.basket-btn:hover { border-color: var(--accent); background: rgb(255 255 255 / 0.04); }
.count { min-width: 22px; height: 22px; padding: 0 6px; display: grid; place-items: center; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font: 500 0.78rem/1 var(--mono); }
.count.bump { animation: bump 0.45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.45); } }

.rail { border-top: 1px solid var(--line); }
.rail-scroll { display: flex; gap: 0.25rem; overflow-x: auto; scrollbar-width: none; padding-block: 0.4rem; -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 40px), transparent); }
.rail-scroll::-webkit-scrollbar { display: none; }
.rail a { flex: none; padding: 0.42rem 0.85rem; border-radius: 999px; font-size: 0.9rem; font-weight: 500; color: var(--muted); white-space: nowrap; transition: color 0.15s, background-color 0.15s; }
.rail a:hover { color: var(--ink); background: rgb(255 255 255 / 0.06); }
.rail a[aria-current] { color: var(--accent-ink); background: var(--accent); font-weight: 600; }

/* ---------------------------------------------------------------- hero --- */
.hero { position: relative; isolation: isolate; overflow: clip; padding-block: clamp(2.5rem, 7vw, 6rem) clamp(2.5rem, 6vw, 5rem); }
.hero-bg { position: absolute; inset: -12% -6%; z-index: -1; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(46px) saturate(1.25) brightness(0.62); transform: scale(1.1); }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: radial-gradient(90% 70% at 72% 40%, transparent 0%, rgb(6 10 19 / 0.55) 70%), linear-gradient(180deg, rgb(6 10 19 / 0.35) 0%, rgb(6 10 19 / 0.2) 45%, var(--bg) 96%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); align-items: center; gap: clamp(1.5rem, 4vw, 4rem); }
.hero-copy { display: grid; gap: 1.35rem; justify-items: start; }
.hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.9rem); font-weight: 900; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero-art { position: relative; }
.hero-art::before { content: ''; position: absolute; inset: 8% 4% 0; background: radial-gradient(closest-side, var(--accent-glow), transparent 72%); filter: blur(30px); z-index: -1; }
.hero-art img { width: 100%; filter: drop-shadow(0 30px 50px rgb(0 0 0 / 0.55)); animation: float 9s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px) rotate(-0.6deg); } }

.clock { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1.4rem; padding: 0.9rem 1.1rem; border-radius: var(--r); border: 1px solid var(--line-2); background: rgb(8 12 22 / 0.6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.clock-label { font-size: 0.95rem; color: var(--muted); }
.clock-label b { display: block; font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: 1.15rem; text-transform: uppercase; color: var(--sale); letter-spacing: 0.01em; }
.clock-label span { color: var(--faint); }
.clock-digits { display: flex; gap: 0.45rem; }
.clock-digits span { display: grid; justify-items: center; min-width: 3.3rem; padding: 0.5rem 0.4rem 0.4rem; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.clock-digits b { font-size: 1.45rem; line-height: 1; font-weight: 500; }
.clock-digits i { font-style: normal; font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin-top: 0.3rem; }

.hero-feature { display: flex; align-items: center; gap: 0.85rem; padding: 0.55rem 0.9rem 0.55rem 0.55rem; border-radius: 999px; border: 1px solid var(--line-2); background: rgb(8 12 22 / 0.55); max-width: 100%; }
.hero-feature-art { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: var(--stage); flex: none; }
.hero-feature-art img { width: 100%; height: 100%; object-fit: cover; }
.hero-feature-text { display: grid; line-height: 1.2; min-width: 0; }
.hero-feature-text i { font-style: normal; font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-2); }
.hero-feature-text b { font-family: var(--display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------------------------------------------------------------- sections --- */
.sec { padding-block: clamp(2.25rem, 5vw, 4.25rem); }
.sec.tight { padding-block: clamp(1rem, 2.5vw, 2rem) clamp(2rem, 4vw, 3.5rem); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; margin-bottom: clamp(1.1rem, 2.4vw, 1.9rem); }
.sec-head > div:first-child { display: grid; gap: 0.5rem; }
.sec-head h2 { font-size: clamp(1.55rem, 3vw, 2.5rem); }
.sec-lede { color: var(--muted); max-width: 60ch; text-wrap: pretty; }
.sec-foot { margin-top: 1.4rem; }

/* category tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 0.7rem; }
.tile { display: flex; align-items: center; gap: 0.9rem; padding: 0.6rem 1rem 0.6rem 0.6rem; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); transition: border-color 0.2s, transform 0.2s var(--ease), background-color 0.2s; }
.tile-art { width: 60px; height: 60px; border-radius: 12px; overflow: hidden; background: var(--stage); flex: none; display: grid; place-items: center; }
.tile-art img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease); }
.tile-text { display: grid; min-width: 0; flex: 1; line-height: 1.3; }
.tile-text b { font-family: var(--display); font-weight: 700; font-stretch: 106%; font-size: 1.02rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile-text i { font-style: normal; font-size: 0.84rem; color: var(--muted); }
.tile .arrow { color: var(--faint); transition: transform 0.2s var(--ease), color 0.2s; }
@media (hover: hover) {
  .tile:hover { border-color: var(--line-2); background: var(--surface-2); transform: translateY(-2px); }
  .tile:hover .arrow { color: var(--accent-2); transform: translateX(4px); }
  .tile:hover img { transform: scale(1.08); }
}

/* ---------------------------------------------------------------- cards --- */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(0.7rem, 1.6vw, 1.25rem); }
.card { position: relative; display: flex; flex-direction: column; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); overflow: hidden; transition: transform 0.28s var(--ease), border-color 0.28s, box-shadow 0.28s; }
.card-media { position: relative; aspect-ratio: 1; background: var(--stage); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.6s var(--ease); }
.noart { display: grid; place-items: center; width: 100%; height: 100%; font: 800 3rem var(--display); color: var(--faint); }
.flags { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; z-index: 1; }
.flag { padding: 0.22rem 0.55rem; border-radius: 999px; font: 700 0.72rem/1.2 var(--display); letter-spacing: 0.06em; text-transform: uppercase; }
.flag.sale { background: var(--sale); color: #1b0606; }
.flag.new { background: rgb(8 12 22 / 0.75); color: var(--ink); border: 1px solid var(--line-2); backdrop-filter: blur(6px); }
.card-body { display: flex; flex-direction: column; gap: 0.5rem; padding: 0.9rem 1rem 1rem; flex: 1; }
.card-cat { font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.card-title { font-size: 1.05rem; }
.stretch::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; margin-top: auto; padding-top: 0.35rem; }

.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 0.4rem; font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.price .now { font-size: 1.12rem; font-weight: 500; color: var(--ink); }
.price .per { font-size: 0.8rem; color: var(--muted); }
.price .was { font-size: 0.86rem; color: var(--faint); text-decoration-thickness: 1px; width: 100%; }
.price.sm .now { font-size: 0.98rem; }
.price.sm .was { width: auto; }
.price.lg .now { font-size: 1.7rem; }
.price.xl .now { font-size: clamp(2rem, 4vw, 2.7rem); }
.price.xl .per { font-size: 1rem; }
.price.xl .was, .price.lg .was { width: auto; font-size: 1.05rem; }

.add { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 0.3rem; min-height: 40px; padding: 0 0.95rem 0 0.7rem; border-radius: 999px; border: 1px solid var(--line-2); font-family: var(--display); font-weight: 700; font-size: 0.88rem; transition: background-color 0.18s, color 0.18s, border-color 0.18s, transform 0.18s var(--ease); }
.add-sm { min-height: 34px; padding: 0 0.75rem 0 0.55rem; font-size: 0.82rem; }
.add.done { background: var(--ok); border-color: var(--ok); color: #05210f; }
@media (hover: hover) {
  .card:hover { transform: translateY(-5px); border-color: var(--line-2); box-shadow: 0 24px 50px -24px rgb(0 0 0 / 0.9), 0 0 0 1px var(--line-2); }
  .card:hover .card-media img { transform: scale(1.05); }
  .add:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
}
.card:has(.stretch:focus-visible) { outline: 2px solid var(--accent-2); outline-offset: 3px; }
.stretch:focus-visible { outline: none; }

/* ---------------------------------------------------------------- plans --- */
.switch { display: inline-flex; padding: 4px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); }
.switch button { min-height: 40px; padding: 0 1.15rem; border-radius: 999px; font-family: var(--display); font-weight: 700; font-size: 0.9rem; color: var(--muted); transition: background-color 0.2s, color 0.2s; }
.switch button[aria-pressed='true'] { background: var(--ink); color: var(--bg); }
.plan-grid { display: grid; gap: clamp(0.7rem, 1.4vw, 1.1rem); grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.plan { position: relative; display: flex; flex-direction: column; gap: 0.6rem; padding: 1.1rem; border-radius: var(--r); border: 1px solid var(--line); background: linear-gradient(180deg, var(--surface-2), var(--surface)); transition: border-color 0.25s, transform 0.25s var(--ease); }
.plan-art { aspect-ratio: 16 / 10; margin: -0.3rem -0.3rem 0.2rem; border-radius: 12px; overflow: hidden; background: var(--stage); }
.plan-art img { width: 100%; height: 100%; object-fit: contain; transform: scale(1.18); transition: transform 0.5s var(--ease); }
.plan h3 { font-size: 1.25rem; font-stretch: 112%; text-transform: uppercase; }
.plan-desc { font-size: 0.88rem; color: var(--muted); min-height: 2.7em; }
.plan-term { display: grid; gap: 0.45rem; padding-top: 0.85rem; margin-top: auto; border-top: 1px dashed var(--line-2); }
.plan-term + .plan-term { margin-top: 0.6rem; }
.plan-term-name { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-2); font-weight: 600; }
.plan-note { font-size: 0.84rem; color: var(--muted); min-height: 2.6em; }
.plan-none { font-size: 0.88rem; color: var(--faint); padding: 0.6rem 0; }
.plan-actions { display: flex; align-items: center; gap: 0.9rem; }
.plan-actions .btn { flex: 1; min-height: 44px; padding: 0 0.8rem; font-size: 0.9rem; }
.plan-more { font-size: 0.86rem; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.plan-more:hover { color: var(--ink); }
/* With JavaScript the switch picks one term; without it every term is listed. */
.plans[data-active] .plan-term-name { display: none; }
.plans[data-active='0'] .plan-term:not([data-t='0']), .plans[data-active='1'] .plan-term:not([data-t='1']), .plans[data-active='2'] .plan-term:not([data-t='2']) { display: none; }
.plans[data-active] .plan-term.none { min-height: 9.2rem; align-content: center; }
.plans[data-active] .plan:has(.plan-term.none:not([hidden])) { }
@media (hover: hover) { .plan:hover { border-color: var(--line-2); transform: translateY(-4px); } .plan:hover .plan-art img { transform: scale(1.24); } }

/* ---------------------------------------------------------------- shelves --- */
.wides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(0.7rem, 1.6vw, 1.25rem); }
.wide { position: relative; display: grid; grid-template-columns: minmax(120px, 38%) 1fr; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); overflow: hidden; transition: transform 0.28s var(--ease), border-color 0.28s, box-shadow 0.28s; }
.wide-art { background: var(--stage); overflow: hidden; min-height: 100%; }
.wide-art img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.wide-body { display: flex; flex-direction: column; gap: 0.7rem; padding: 1.1rem 1.2rem; min-width: 0; }
.wide-body h3 { font-size: 1.25rem; font-stretch: 110%; text-transform: uppercase; }
.wide-desc { color: var(--muted); font-size: 0.92rem; }
.inside { display: grid; gap: 0.3rem; font-size: 0.92rem; color: var(--muted); }
.inside li { display: flex; gap: 0.5rem; align-items: flex-start; }
.inside svg { color: var(--accent-2); margin-top: 0.2em; width: 1em; height: 1em; }
@media (hover: hover) { .wide:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: 0 24px 50px -26px rgb(0 0 0 / 0.9); } .wide:hover .wide-art img { transform: scale(1.05); } }

.wides.trio { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.trio .wide { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
.trio .wide-art { aspect-ratio: 16 / 11; min-height: 0; }

/* dealership lot */
.lot { background: linear-gradient(180deg, transparent, var(--bg-2) 18%, var(--bg-2) 82%, transparent); }
.lot-scroll { overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; padding-bottom: 0.75rem; }
.lot-row { display: flex; gap: clamp(0.7rem, 1.6vw, 1.1rem); width: max-content; padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); }
.car { position: relative; width: min(78vw, 400px); scroll-snap-align: center; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.car img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.car p { display: flex; justify-content: space-between; align-items: baseline; gap: 0.75rem; padding: 0.8rem 1rem; }
.car b { font-family: var(--display); font-weight: 700; }
.car span { font-size: 0.88rem; color: var(--accent-2); white-space: nowrap; }
.car-cta { width: min(60vw, 260px); display: grid; background: var(--stage); }
.car-cta a { display: grid; place-content: center; justify-items: center; gap: 0.4rem; padding: 1.5rem; text-align: center; }
.car-cta b { font: 800 1.5rem var(--display); font-stretch: 114%; text-transform: uppercase; }
.car-cta span { color: var(--muted); font-family: var(--mono); }
.car-cta .arrow { width: 1.6em; height: 1.6em; color: var(--accent-2); margin-top: 0.4rem; transition: transform 0.2s var(--ease); }
.car-cta a:hover .arrow { transform: translateX(6px); }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(0.8rem, 2vw, 1.5rem); counter-reset: s; }
.steps li { padding: 1.3rem 1.3rem 1.4rem; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); display: grid; gap: 0.5rem; align-content: start; }
.step-n { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); color: var(--accent-2); font-size: 0.95rem; margin-bottom: 0.4rem; }
.steps h3 { font-size: 1.1rem; }
.steps p { color: var(--muted); font-size: 0.95rem; }
.steps a, .prose a, .foot-help a, .done-help a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }

/* ---------------------------------------------------------------- pages --- */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0.3rem 0.5rem; font-size: 0.86rem; color: var(--faint); }
.crumbs li + li::before { content: '/'; margin-right: 0.5rem; opacity: 0.6; }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current] { color: var(--muted); }
.page-head { padding-block: clamp(1.6rem, 4vw, 3rem) clamp(0.4rem, 1vw, 0.8rem); display: grid; gap: 0.8rem; }
.page-head h1 { font-size: clamp(2.2rem, 6vw, 4.2rem); font-weight: 900; }
.page-desc { max-width: 70ch; }
.page-meta { color: var(--muted); font-size: 0.92rem; }
.hot { color: var(--sale); font-weight: 600; }
.nothing { color: var(--muted); padding: 2rem 0 4rem; }
.prose { color: var(--muted); display: grid; gap: 0.8rem; overflow-wrap: anywhere; }
.prose strong, .prose b { color: var(--ink); font-weight: 600; }
.prose ul, .prose ol { display: grid; gap: 0.4rem; padding-left: 1.2rem; }
.prose ul { list-style: disc; } .prose ol { list-style: decimal; }
.prose li::marker { color: var(--accent-2); }
.prose code { font-family: var(--mono); font-size: 0.9em; padding: 0.1em 0.4em; border-radius: 6px; background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); }
.prose img { border-radius: var(--r-sm); }
.prose h1, .prose h2, .prose h3, .prose h4 { font: 700 1.05rem var(--display); color: var(--ink); text-transform: none; letter-spacing: 0; }

.product { padding-block: clamp(1.2rem, 3vw, 2.4rem) clamp(2rem, 4vw, 3rem); display: grid; gap: clamp(1rem, 2vw, 1.6rem); }
.product-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: clamp(1.4rem, 4vw, 3.5rem); align-items: start; }
.stage { position: sticky; top: 132px; }
.stage-frame { position: relative; aspect-ratio: 1; border-radius: calc(var(--r) + 6px); border: 1px solid var(--line); background: var(--stage); overflow: hidden; display: grid; place-items: center; }
.stage-frame::after { content: ''; position: absolute; inset: auto 12% -30% 12%; height: 50%; background: radial-gradient(closest-side, var(--accent-glow), transparent); filter: blur(30px); opacity: 0.5; pointer-events: none; }
.stage-frame img { width: 100%; height: 100%; object-fit: contain; position: relative; z-index: 1; }
.buy { display: grid; gap: 1.15rem; align-content: start; padding-top: 0.4rem; }
.buy h1 { font-size: clamp(1.9rem, 4.2vw, 3.2rem); font-weight: 900; }
.buy-price { display: grid; gap: 0.45rem; padding: 1.1rem 1.2rem; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); }
.saving { color: var(--sale); font-size: 0.95rem; }
.saving b { font-weight: 700; }
.terms { display: flex; gap: 0.5rem; align-items: flex-start; color: var(--muted); font-size: 0.92rem; }
.terms svg { margin-top: 0.2em; color: var(--accent-2); }
.buy-form { display: grid; gap: 0.9rem; }
.buy-row { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.needs { display: grid; gap: 0.55rem; font-size: 0.92rem; color: var(--muted); }
.needs li { display: flex; gap: 0.6rem; align-items: flex-start; }
.needs svg { margin-top: 0.18em; color: var(--faint); }
.needs .ok svg { color: var(--ok); }
.needs b { color: var(--ink); font-weight: 600; }
.about { max-width: 76ch; display: grid; gap: 0.9rem; padding-top: clamp(1rem, 3vw, 2rem); border-top: 1px solid var(--line); }
.about h2 { font-size: 1.4rem; }
.vars { border: 1px solid var(--line); border-radius: var(--r); padding: 1rem; display: grid; gap: 0.8rem; margin: 0; }
.vars legend { padding: 0 0.4rem; font-size: 0.82rem; color: var(--muted); }
.vars label, .code label { display: grid; gap: 0.3rem; font-size: 0.86rem; color: var(--muted); }
input[type='text'], input[type='email'], input[type='number'], select { min-height: 44px; width: 100%; padding: 0 0.85rem; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--bg-2); color: var(--ink); }
input:focus-visible, select:focus-visible { outline-offset: 1px; border-color: var(--accent-2); }

.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 999px; height: 36px; }
.stepper button { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: var(--muted); }
.stepper button:hover:not(:disabled) { color: var(--ink); background: rgb(255 255 255 / 0.07); }
.stepper button:disabled { opacity: 0.35; cursor: default; }
.stepper output, .stepper input { min-width: 2ch; text-align: center; font-size: 0.95rem; }
.stepper.big { height: 54px; padding: 0 6px; }
.stepper.big button { width: 42px; height: 42px; }
.stepper.big input { width: 3.2ch; min-height: 0; padding: 0; border: 0; background: none; font-size: 1.1rem; -moz-appearance: textfield; appearance: textfield; }
.stepper.big input::-webkit-inner-spin-button { -webkit-appearance: none; }

.note { display: flex; gap: 0.5rem; align-items: center; padding: 0.75rem 1rem; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--surface); color: var(--muted); font-size: 0.94rem; }
.note.warn { border-color: color-mix(in srgb, var(--warn) 50%, transparent); color: var(--warn); }
.note.ok { border-color: color-mix(in srgb, var(--ok) 45%, transparent); color: var(--ok); }

.buybar { position: fixed; inset: auto 0 0 0; z-index: 25; display: none; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.7rem var(--gutter) calc(0.7rem + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line-2); animation: rise 0.3s var(--ease); }
.buybar p { display: grid; line-height: 1.25; min-width: 0; }
.buybar b { font-family: var(--display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.buybar span { color: var(--muted); font-size: 0.9rem; }
@keyframes rise { from { transform: translateY(100%); } }

/* ---------------------------------------------------------------- basket --- */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgb(3 5 10 / 0.66); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: fade 0.25s; }
.drawer { position: fixed; inset: 0 0 0 auto; z-index: 41; width: min(460px, 100vw); display: flex; flex-direction: column; background: var(--bg-2); border-left: 1px solid var(--line-2); box-shadow: -30px 0 80px -30px #000; animation: slide 0.34s var(--ease); }
.drawer:focus { outline: none; }
@keyframes slide { from { transform: translateX(100%); } }
@keyframes fade { from { opacity: 0; } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 1.2rem; }
.drawer-head .num { color: var(--muted); font-weight: 500; }
.drawer-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 0.4rem 1.2rem 1.2rem; display: grid; gap: 1.2rem; align-content: start; }
.drawer-body.empty { place-content: center; justify-items: center; text-align: center; gap: 0.7rem; color: var(--muted); padding-block: 3rem; }
.empty-ico { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; border: 1px dashed var(--line-2); color: var(--faint); margin-bottom: 0.4rem; }
.empty-ico svg { width: 26px; height: 26px; }
.empty-title { font: 700 1.2rem var(--display); color: var(--ink); }
.empty .btn { margin-top: 0.6rem; }
.lines { display: grid; }
.line { display: grid; grid-template-columns: 68px 1fr auto; gap: 0.85rem; padding: 0.95rem 0; border-bottom: 1px solid var(--line); animation: fade 0.3s; }
.line-art { width: 68px; height: 68px; border-radius: 12px; overflow: hidden; background: var(--stage); }
.line-art img { width: 100%; height: 100%; object-fit: cover; }
.line-main { display: grid; gap: 0.25rem; min-width: 0; align-content: start; }
.line-name { font-family: var(--display); font-weight: 700; line-height: 1.2; }
.line-name:hover { color: var(--accent-2); }
.term { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.8rem; color: var(--muted); }
.term svg { width: 0.95em; height: 0.95em; color: var(--accent-2); }
.line-ctl { display: flex; align-items: center; gap: 0.8rem; margin-top: 0.3rem; }
.remove { font-size: 0.82rem; color: var(--faint); text-decoration: underline; text-underline-offset: 3px; min-height: 32px; }
.remove:hover { color: var(--sale); }
.line-price { text-align: right; font-size: 1rem; white-space: nowrap; }
.line-price .per { display: block; font-size: 0.74rem; color: var(--muted); }
.pairs h3 { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); font-weight: 600; margin-bottom: 0.5rem; }
.pair { display: grid; grid-template-columns: 48px 1fr auto auto; align-items: center; gap: 0.7rem; padding: 0.5rem; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.pair + .pair { margin-top: 0.45rem; }
.pair-art { width: 48px; height: 48px; border-radius: 9px; overflow: hidden; background: var(--stage); }
.pair-art img { width: 100%; height: 100%; object-fit: cover; }
.pair-name { font: 700 0.92rem/1.2 var(--display); min-width: 0; }
.pair-name:hover { color: var(--accent-2); }
.codes summary { display: inline-flex; align-items: center; gap: 0.5rem; cursor: pointer; color: var(--muted); font-size: 0.92rem; min-height: 36px; list-style: none; }
.codes summary::-webkit-details-marker { display: none; }
.codes summary:hover { color: var(--ink); }
.codes details[open] summary { color: var(--ink); margin-bottom: 0.6rem; }
.code { display: grid; grid-template-columns: 1fr auto; gap: 0.5rem; align-items: end; }
.code + .code { margin-top: 0.6rem; }
.code button { min-height: 44px; padding: 0 1rem; border-radius: var(--r-sm); border: 1px solid var(--line-2); font: 700 0.88rem var(--display); }
.code button:hover { border-color: var(--accent); color: var(--accent-2); }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.6rem; }
.chip { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0.35rem 0.3rem 0.7rem; border-radius: 999px; background: color-mix(in srgb, var(--ok) 14%, transparent); border: 1px solid color-mix(in srgb, var(--ok) 40%, transparent); color: var(--ok); font-size: 0.84rem; }
.chip button { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; }
.chip button:hover { background: rgb(255 255 255 / 0.1); }
.drawer-foot { padding: 1rem 1.2rem calc(1rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-2); background: var(--surface); display: grid; gap: 0.8rem; }
.totals { display: grid; gap: 0.35rem; font-size: 0.95rem; }
.totals div { display: flex; justify-content: space-between; color: var(--muted); }
.totals .grand { color: var(--ink); font-size: 1.15rem; padding-top: 0.5rem; margin-top: 0.2rem; border-top: 1px solid var(--line); }
.totals .grand dt { font-family: var(--display); font-weight: 700; }
.fine { display: flex; gap: 0.45rem; align-items: flex-start; font-size: 0.8rem; color: var(--faint); }
.fine svg { width: 1em; height: 1em; margin-top: 0.2em; }
.fine.center { justify-content: center; }
.acct { display: grid; gap: 0.6rem; font-size: 0.9rem; color: var(--muted); }
.acct b { color: var(--ink); }
.acct.ok { display: flex; gap: 0.5rem; align-items: flex-start; }
.acct.ok svg { color: var(--ok); margin-top: 0.2em; }
.drawer.busy .drawer-body, .basket-panel.busy { opacity: 0.55; pointer-events: none; transition: opacity 0.15s; }

.basket-page { padding-block: clamp(1.2rem, 3vw, 2.4rem) clamp(3rem, 6vw, 5rem); display: grid; gap: 1.1rem; }
.basket-page h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 900; }
.basket-panel { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: clamp(1rem, 3vw, 2.5rem); align-items: start; transition: opacity 0.15s; }
.basket-panel .drawer-body { overflow: visible; padding: 0; }
.basket-panel .drawer-body.empty { grid-column: 1 / -1; padding: 3rem 1rem; border: 1px dashed var(--line-2); border-radius: var(--r); }
.basket-panel .drawer-foot { position: sticky; top: 140px; border: 1px solid var(--line-2); border-radius: var(--r); padding: 1.2rem; }
.basket-signin { max-width: 520px; padding: 1.2rem; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); }
.waiting { display: grid; grid-template-columns: 72px 1fr auto; gap: 1rem; align-items: center; padding: 1rem; border-radius: var(--r); border: 1px solid var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.waiting-art { width: 72px; height: 72px; border-radius: 12px; overflow: hidden; background: var(--stage); }
.waiting-art img { width: 100%; height: 100%; object-fit: cover; }
.waiting p { color: var(--muted); font-size: 0.95rem; }
.waiting-name { color: var(--ink) !important; font-size: 1.02rem !important; }

.done, .lost { padding-block: clamp(3rem, 9vw, 7rem); display: grid; gap: 1.2rem; justify-items: start; max-width: 860px; }
.done h1, .lost h1 { font-size: clamp(2.2rem, 6vw, 4rem); font-weight: 900; }
.done-mark { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); border: 1px solid color-mix(in srgb, var(--ok) 50%, transparent); }
.done-mark svg { width: 30px; height: 30px; stroke-width: 2.4; }
.done-items { width: 100%; padding: 1.2rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); display: grid; gap: 0.7rem; }
.done-items h2 { font-size: 1.1rem; }
.done-items li { display: flex; flex-wrap: wrap; gap: 0.2rem 0.8rem; padding: 0.5rem 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.92rem; }
.done-items a { font-family: var(--display); font-weight: 700; color: var(--ink); font-size: 1rem; }
.done-items a:hover { color: var(--accent-2); }
.done-help { color: var(--muted); max-width: 62ch; }
.lost-links { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.lost-links a { padding: 0.45rem 0.9rem; border-radius: 999px; border: 1px solid var(--line-2); font-size: 0.9rem; color: var(--muted); }
.lost-links a:hover { color: var(--ink); border-color: var(--ink); }

/* ---------------------------------------------------------------- toasts --- */
.toasts { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 60; display: grid; gap: 8px; justify-items: center; pointer-events: none; width: max-content; max-width: calc(100vw - 24px); }
.toast { padding: 0.7rem 1.1rem; border-radius: 999px; background: #f2f0ea; color: #0b101b; font-weight: 600; font-size: 0.92rem; box-shadow: 0 18px 40px -14px #000; opacity: 0; transform: translateY(10px); transition: opacity 0.25s, transform 0.25s var(--ease); }
.toast.in { opacity: 1; transform: none; }
.toast.err { background: #ffdada; color: #5a0d0d; }

/* ---------------------------------------------------------------- footer --- */
.foot { position: relative; z-index: 1; margin-top: clamp(2rem, 5vw, 4rem); border-top: 1px solid var(--line); background: var(--bg-2); color: var(--muted); font-size: 0.92rem; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.3fr; gap: clamp(1.5rem, 4vw, 3.5rem); padding-block: clamp(2rem, 4vw, 3.2rem); }
.foot-brand { display: grid; gap: 0.9rem; align-content: start; justify-items: start; }
.foot-brand img { width: 150px; }
.foot h2 { font: 700 0.76rem var(--display); letter-spacing: 0.16em; color: var(--faint); margin-bottom: 0.8rem; }
.foot-nav ul { columns: 2; column-gap: 1.2rem; }
.foot-nav li { padding: 0.2rem 0; break-inside: avoid; }
.foot a:hover { color: var(--ink); }
.foot-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; }
.foot-links a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.foot-help ul { display: grid; gap: 0.6rem; }
.foot-legal { display: flex; flex-wrap: wrap; gap: 0.8rem 1.5rem; align-items: center; justify-content: space-between; padding-block: 1.1rem 1.6rem; border-top: 1px solid var(--line); font-size: 0.8rem; color: var(--faint); }
.foot-legal p { max-width: 80ch; }
.snow-toggle { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 36px; padding: 0 0.85rem; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); font-size: 0.84rem; }
.snow-toggle[aria-pressed='false'] { opacity: 0.6; }
.snow-toggle:hover { color: var(--ink); }
.snow { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; }

/* ---------------------------------------------------------------- responsive --- */
@media (max-width: 1100px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 520px; justify-self: center; width: 86%; }
  .wides, .wides.trio { grid-template-columns: 1fr; }
  .trio .wide { grid-template-columns: minmax(120px, 38%) 1fr; grid-template-rows: none; }
  .trio .wide-art { aspect-ratio: auto; min-height: 100%; }
  .product-grid { grid-template-columns: 1fr; }
  .stage { position: static; max-width: 560px; }
  .basket-panel { grid-template-columns: 1fr; }
  .basket-panel .drawer-foot { position: static; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .steps { grid-template-columns: 1fr; }
  .has-buybar .buybar:not([hidden]) { display: flex; }
}
@media (max-width: 700px) {
  :root { --head-h: 58px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .live span, .who span, .basket-btn > span:not(.basket-ico) { display: none; }
  .live { font-size: 0.84rem; }
  .basket-btn { padding: 0 0.7rem; }
  .brand img { height: 40px; }
  .card-body { padding: 0.7rem 0.75rem 0.8rem; }
  .card-title { font-size: 0.96rem; }
  .card-foot { flex-wrap: wrap; }
  .add { min-height: 38px; }
  .plan-grid { grid-template-columns: 1fr; }
  .plan { display: grid; grid-template-columns: 112px 1fr; column-gap: 0.9rem; align-items: start; }
  .plan-art { grid-row: span 2; margin: 0; aspect-ratio: 1; }
  .plan-desc { min-height: 0; }
  .plan-term { grid-column: 1 / -1; }
  .plan-note { min-height: 0; }
  .plans[data-active] .plan-term.none { min-height: 0; }
  .wide, .trio .wide { grid-template-columns: 110px 1fr; }
  .wide-body { padding: 0.9rem; }
  .hero-cta .btn { flex: 1 1 100%; }
  .clock { width: 100%; justify-content: space-between; }
  .clock-digits span { min-width: 2.9rem; }
  .waiting { grid-template-columns: 56px 1fr; }
  .waiting .btn { grid-column: 1 / -1; }
  .waiting-art { width: 56px; height: 56px; }
  .foot-grid { grid-template-columns: 1fr; }
  .sec-head .switch { width: 100%; }
  .sec-head .switch button { flex: 1; }
  .buy-row .btn { flex: 1 1 60%; }
}

/* Cross-document view transitions: pages fade through, the header stays put. */
@view-transition { navigation: auto; }
.head { view-transition-name: head; }
::view-transition-old(root) { animation: 0.16s ease-out both vt-out; }
::view-transition-new(root) { animation: 0.26s ease-out both vt-in; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(8px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  @view-transition { navigation: none; }
  .snow { display: none; }
}
