/* Layout: the app in the seller's hand. A phone running a live is the hero, with a switch
   between the seller's screen and what buyers see; a tablet shows the bigger layout;
   mono status labels act as on-air signage. */
:root {
  /* Dark-first: Studio Ink is the brand ground. */
  --bg: #0D0C10;
  --bg-2: #131118;
  --panel: #17151C;
  --raised: #211E28;
  --line: #2B2733;
  --line-strong: #3E3848;
  --fg: #F4F1EA;
  --fg-2: #CFC9D6;
  --muted: #9890A4;
  --accent: #0B63CE;
  --accent-text: #6AA6FF;
  --on-accent: #FFFFFF;
  --navy: #062B63;
  --live: #27D978;
  --yellow: #F5C542;
  --sky: #8AB4FF;
  --sky-text: #8AB4FF;
  --focus: #8AB4FF;
  --glow: rgba(11, 99, 206, 0.30);
  --shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
  --header-bg: rgba(13, 12, 16, 0.78);

  /* The stage looks the same in both themes, like the real clean screen. */
  --st-ink: #0D0C10;
  --st-cream: #F4F1EA;
  --st-coral: #FF5A36;
  --st-yellow: #F5C542;
  --st-sky: #8AB4FF;
  --st-white: #FFFFFF;
  --st-glass: rgba(13, 12, 16, 0.58);

  --font-display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --t-hero: clamp(2.55rem, 1.4rem + 4.6vw, 5rem);
  --t-h2: clamp(1.9rem, 1.2rem + 2.6vw, 3.1rem);
  --t-h3: 1.25rem;
  --t-body: 1.0625rem;
  --t-small: 0.9375rem;
  --t-label: 0.72rem;

  --radius: 18px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --gutter: max(clamp(16px, 4vw, 40px), env(safe-area-inset-left, 0px));
  --gutter-r: max(clamp(16px, 4vw, 40px), env(safe-area-inset-right, 0px));
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #FAF9FB; --bg-2: #F1EFF4; --panel: #FFFFFF; --raised: #F3F1F6;
    --line: #E4E0E9; --line-strong: #CCC6D4; --fg: #0D0C10; --fg-2: #34303C; --muted: #686272;
    --accent-text: #0A58B8; --sky-text: #2D5CC0; --focus: #2D5CC0;
    --glow: rgba(11, 99, 206, 0.18); --shadow: 0 30px 60px -28px rgba(40, 25, 50, 0.28);
    --header-bg: rgba(250, 249, 251, 0.82);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #FAF9FB; --bg-2: #F1EFF4; --panel: #FFFFFF; --raised: #F3F1F6;
  --line: #E4E0E9; --line-strong: #CCC6D4; --fg: #0D0C10; --fg-2: #34303C; --muted: #686272;
  --accent-text: #0A58B8; --sky-text: #2D5CC0; --focus: #2D5CC0;
  --glow: rgba(11, 99, 206, 0.18); --shadow: 0 30px 60px -28px rgba(40, 25, 50, 0.28);
  --header-bg: rgba(250, 249, 251, 0.82);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }
img, svg { max-width: 100%; }
[hidden] { display: none !important; }
html { scroll-behavior: auto; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: var(--bg);
}
h1, h2, h3 { font-family: var(--font-display); margin: 0; text-wrap: balance; letter-spacing: -0.03em; }
p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 8px; }
main:focus { outline: none; }
.skip {
  position: fixed; top: calc(env(safe-area-inset-top, 0px) + 10px); left: max(16px, env(safe-area-inset-left, 0px)); z-index: 100;
  padding: 10px 16px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 600; text-decoration: none;
  translate: 0 -200%; transition: translate .2s var(--ease-out);
}
.skip:focus { translate: 0 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: 1200px; margin-inline: auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.label {
  font-family: var(--font-mono); font-size: var(--t-label); font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
}
.label.on-air { color: var(--accent-text); display: inline-flex; align-items: center; gap: 0.6em; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 0 var(--glow); animation: onair 1.8s ease-out infinite; }
@keyframes onair { 0% { box-shadow: 0 0 0 0 rgba(39,217,120,.55); } 100% { box-shadow: 0 0 0 10px rgba(39,217,120,0); } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 48px; padding: 0 1.4em; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .18s var(--ease-out), background-color .2s, border-color .2s, filter .2s;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { border-color: var(--line-strong); color: var(--fg); background: transparent; }
.btn-ghost:hover { border-color: var(--fg-2); background: var(--raised); }
.btn .arrow { transition: transform .25s var(--ease-out); }
.btn:hover .arrow { transform: translateX(3px); }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--header-bg); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); line-height: 1; }
.brand svg { width: 34px; height: 34px; flex-shrink: 0; }
.brand .word { font-size: 1.32rem; letter-spacing: -0.03em; white-space: nowrap; }
.brand .word b { font-weight: 800; }
.brand .word span { font-weight: 500; color: var(--muted); }
.nav { position: relative; display: flex; gap: 2px; margin-left: auto; padding: 4px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); }
.nav a {
  position: relative; z-index: 1; padding: 8px 16px; border-radius: 999px; text-decoration: none;
  font-size: var(--t-small); font-weight: 600; color: var(--muted); transition: color .3s;
}
.nav a:hover { color: var(--fg); }
.nav-pill {
  position: absolute; top: 4px; left: 0; height: calc(100% - 8px); width: 0; border-radius: 999px;
  background: var(--fg); transition: transform .5s var(--ease-out), width .5s var(--ease-out);
}
.nav a[aria-current="page"] { color: var(--bg); }
.nav-short { display: none; }

/* Page transitions */
main { view-transition-name: page; }
::view-transition-old(root), ::view-transition-new(root) { animation: none; }
::view-transition-old(page) { animation: vt-out .26s cubic-bezier(.4, 0, 1, 1) both; }
::view-transition-new(page) { animation: vt-in .55s var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-14px) scale(.99); filter: blur(6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(22px); filter: blur(4px); } }
.page.is-entering [data-rise] { animation: rise .8s var(--ease-out) backwards; animation-delay: calc(var(--i, 0) * 70ms + 60ms); }
.page.is-fading { animation: page-fade .45s var(--ease-out) both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes page-fade { from { opacity: 0; } }

.band { padding-block: clamp(64px, 9vw, 120px); }
.band-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head { display: grid; gap: 14px; max-width: 46rem; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { font-size: var(--t-h2); font-weight: 750; line-height: 1.04; }
.section-head p { color: var(--fg-2); max-width: 38rem; }

/* ===== HOME / HERO ===== */
.hero { position: relative; padding-block: clamp(40px, 6vw, 80px) clamp(56px, 8vw, 96px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; width: 760px; height: 760px; right: -180px; top: -160px; border-radius: 50%;
  background: radial-gradient(circle, var(--glow), transparent 62%); pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero-copy { display: grid; gap: 24px; min-width: 0; }
.hero h1 { font-size: var(--t-hero); font-weight: 800; line-height: 0.98; letter-spacing: -0.045em; font-variation-settings: "opsz" 96; }
.hero h1 em { font-style: normal; color: var(--accent-text); position: relative; white-space: nowrap; }
.hero-sub { font-size: 1.15rem; color: var(--fg-2); max-width: 33rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 20px; padding-top: 8px; border-top: 1px dashed var(--line-strong); }
.hero-facts span { font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); }
.hero-facts b { color: var(--fg); font-weight: 600; }

/* The phone in the hero: the app's live screen, drawn in fixed app colours in both themes */
.hero-phone { display: grid; justify-items: center; gap: 14px; min-width: 0; }
.handset {
  position: relative; width: clamp(256px, 24vw, 300px); max-width: 100%; aspect-ratio: 9 / 19.5;
  padding: 10px; border-radius: 44px; background: #050407; box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.handset::before { content: ""; position: absolute; top: 18px; left: 50%; width: 22%; height: 18px; translate: -50% 0; border-radius: 999px; background: #050407; z-index: 9; }
.screen { position: relative; width: 100%; height: 100%; border-radius: 34px; overflow: hidden; background: var(--st-ink); container-type: inline-size; isolation: isolate; }
.screen > .stage { width: 100%; height: 100%; aspect-ratio: auto; max-width: none; border-radius: 0; }
.app-ui { transition: opacity .35s var(--ease-out), translate .45s var(--ease-out); }
.handset.buyer .app-ui { opacity: 0; pointer-events: none; }
.handset.buyer .tray, .handset.buyer .sheet { translate: 0 30px; }
.app-top { position: absolute; top: 46px; left: 12px; right: 12px; z-index: 5; display: flex; gap: 6px; align-items: center; }
.chip-ui {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 999px;
  background: rgba(13, 12, 16, .62); color: var(--st-cream); font-family: var(--font-body); font-size: 11px; font-weight: 600; white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.chip-ui .led { width: 6px; height: 6px; border-radius: 50%; background: #FFFFFF; }
.chip-ui.live { background: #E5484D; color: #FFFFFF; letter-spacing: .02em; }
.chip-ui.signal { margin-left: auto; }
.chip-ui.signal .led { background: var(--live); }
.rail-ui { position: absolute; right: 10px; top: 38%; z-index: 5; display: grid; gap: 8px; }
.rail-ui span { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(13, 12, 16, .55); color: var(--st-cream); }
.rail-ui svg { width: 18px; height: 18px; }
.tray {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; display: grid; gap: 9px; padding: 12px 0 16px;
  background: linear-gradient(to top, rgba(13, 12, 16, .96) 70%, rgba(13, 12, 16, .78)); color: var(--st-cream);
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.tray-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding-inline: 14px; }
.tray-head b { font-size: 13px; }
.tray-head span { font-size: 10.5px; color: #A79FB2; }
.tchips { display: flex; gap: 7px; overflow-x: auto; padding: 2px 14px; scrollbar-width: none; overscroll-behavior-x: contain; }
.tchips::-webkit-scrollbar { display: none; }
.tchip {
  position: relative; flex-shrink: 0; display: grid; place-items: center; min-width: 72px; height: 50px; padding: 0 9px; cursor: pointer;
  border-radius: 12px; background: #221F29; border: 2px solid transparent; transition: border-color .2s, transform .12s;
}
.tchip:active { transform: scale(.95); }
.tchip .chip-pop { font-size: 11px; padding: 5px 7px; border-radius: 6px; white-space: nowrap; }
.tchip[aria-pressed="true"] { border-color: var(--live); }
.tchip .on { display: none; position: absolute; top: -6px; right: -4px; font-size: 9px; font-weight: 800; padding: 1px 5px; border-radius: 6px; background: var(--live); color: var(--st-ink); }
.tchip[aria-pressed="true"] .on { display: block; }
.tray-btns { display: grid; grid-template-columns: 1fr 1fr 64px; gap: 7px; padding-inline: 14px; }
.tbtn { min-height: 36px; border-radius: 10px; border: 0; background: #2B2733; color: var(--st-cream); font-size: 12px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 5px; }
.tbtn svg { width: 14px; height: 14px; }
.tbtn:hover { background: #38323F; }
.tbtn[aria-expanded="true"] { background: var(--accent); color: var(--on-accent); }
.tbtn.end { background: #E5484D; color: #FFFFFF; cursor: default; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 7; display: grid; gap: 10px; padding: 14px 14px 18px;
  background: #17151C; color: var(--st-cream); border-radius: 18px 18px 0 0; box-shadow: 0 -10px 30px rgba(0, 0, 0, .45);
  transition: translate .35s var(--ease-out), opacity .25s;
}
.sheet[hidden] { display: grid !important; translate: 0 105%; opacity: 0; pointer-events: none; visibility: hidden; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; }
.sheet-head b { font-size: 14px; }
.sheet-close { border: 0; background: #2B2733; color: var(--st-cream); width: 28px; height: 28px; border-radius: 50%; cursor: pointer; font-size: 15px; line-height: 1; }
.sheet-note { font-size: 10.5px; color: #A79FB2; }
.pads { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.pad {
  display: grid; place-items: center; min-height: 44px; padding: 6px; border-radius: 10px; cursor: pointer;
  background: #221F29; border: 1px solid #2E2A36; color: var(--st-cream); text-align: center;
  transition: transform .1s, border-color .2s, background-color .2s;
}
.pad span { font-size: 11.5px; font-weight: 700; line-height: 1.2; }
.pad.playing { border-color: var(--st-yellow); background: #3A3320; transform: translateY(1px); }
.phone-ctrls { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 16px; }
.seg { display: inline-flex; padding: 4px; gap: 2px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); }
.seg button { border: 0; background: none; cursor: pointer; padding: 7px 14px; border-radius: 999px; font-size: 0.86rem; font-weight: 600; color: var(--muted); transition: background-color .25s, color .25s; }
.seg button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 0.86rem; font-weight: 600; color: var(--fg-2); background: none; border: 0; padding: 4px 0; }
.switch .track { width: 32px; height: 18px; border-radius: 999px; background: var(--line-strong); position: relative; transition: background-color .2s; }
.switch .track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--fg); transition: transform .25s var(--ease-out); }
.switch[aria-checked="true"] .track { background: var(--accent); }
.switch[aria-checked="true"] .track::after { transform: translateX(14px); background: var(--on-accent); }
.deck-hint { font-size: 0.86rem; color: var(--muted); line-height: 1.45; text-align: center; max-width: 22rem; }

/* The live stage (fixed look in both themes) */
.stage {
  position: relative; width: clamp(220px, 23vw, 292px); aspect-ratio: 9 / 16; max-width: 100%;
  border-radius: 18px; overflow: hidden; background: var(--st-ink); container-type: inline-size; isolation: isolate;
}
.stage > svg, .stage > canvas, .stage .layer { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage canvas { pointer-events: none; }


.slot { position: absolute; z-index: 3; display: grid; justify-items: center; }
.slot[data-pos="top"] { top: 15%; left: 0; right: 0; }
.slot[data-pos="upper-left"] { top: 27%; left: 6%; }
.slot[data-pos="mid"] { top: 41%; left: 0; right: 0; }
.slot[data-pos="low"] { top: 53%; left: 0; right: 0; }
.slot[data-pos="right"] { top: 62%; right: 5%; }
.popup {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; line-height: 0.92; text-align: center;
  padding: 2.6cqw 4.4cqw; border-radius: 3cqw; box-shadow: 0 2cqw 6cqw rgba(0,0,0,.35); white-space: nowrap;
}
.popup small { display: block; font-size: 0.42em; letter-spacing: 0.08em; font-family: var(--font-mono); font-weight: 600; margin-top: 1cqw; }
.pp-off { background: var(--st-yellow); color: var(--st-ink); font-size: 15cqw; rotate: -4deg; }
.pp-flash { background: var(--st-coral); color: var(--st-ink); font-size: 10cqw; rotate: 2deg; }
.pp-ship { background: var(--st-sky); color: var(--st-ink); font-size: 6.4cqw; line-height: 1.02; }
.pp-b1t1 { background: var(--st-white); color: var(--st-ink); font-size: 9cqw; border: 1.2cqw solid var(--st-coral); }
.pp-last { background: var(--st-ink); color: var(--st-yellow); font-size: 7cqw; border: 0.8cqw solid var(--st-yellow); }
.pp-sold { background: rgba(244, 241, 234, .92); color: var(--st-coral); border: 1.4cqw solid var(--st-coral); font-size: 13cqw; rotate: -12deg; border-radius: 2cqw; letter-spacing: 0.01em; }
.pp-free { background: var(--st-coral); color: var(--st-ink); font-size: 9cqw; rotate: 5deg; }
.pp-new { background: var(--st-sky); color: var(--st-ink); font-size: 8cqw; rotate: -3deg; }
.popup.in-pop { animation: in-pop .6s cubic-bezier(.34, 1.56, .64, 1) both; }
.popup.in-bounce { animation: in-bounce .8s cubic-bezier(.28, .84, .42, 1) both; }
.popup.in-slide { animation: in-slide .55s var(--ease-out) both; }
.popup.out { animation: out .28s ease-in both; }
@keyframes in-pop { from { transform: scale(.2); opacity: 0; } }
@keyframes in-bounce { 0% { transform: translateY(-60cqw); opacity: 0; } 60% { transform: translateY(3cqw); opacity: 1; } 80% { transform: translateY(-1.5cqw); } 100% { transform: none; } }
@keyframes in-slide { from { transform: translateX(-80cqw); opacity: 0; } }
@keyframes out { to { transform: scale(.6); opacity: 0; } }

/* Platform strip */
.strip { border-block: 1px solid var(--line); background: var(--bg-2); }
.strip-row { display: flex; align-items: center; gap: 12px 28px; padding-block: 22px; }
.strip-row > .label { flex-shrink: 0; }
.marquee {
  flex: 1; min-width: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 34s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.names { display: flex; margin: 0; padding: 0; list-style: none; }
.names li {
  display: inline-flex; align-items: center; gap: 32px; padding-right: 32px; white-space: nowrap;
  font-family: var(--font-display); font-weight: 650; font-size: 1.15rem; letter-spacing: -0.01em; color: var(--fg-2);
}
.names li::after { content: ""; width: 7px; height: 7px; border-radius: 2px; rotate: 45deg; background: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); counter-reset: step; }
.step { display: grid; gap: 12px; align-content: start; padding-top: 22px; border-top: 2px solid var(--line-strong); min-width: 0; }
.step:first-child { border-top-color: var(--accent); }
.step .num { font-family: var(--font-mono); font-size: 0.8rem; font-weight: 600; color: var(--accent-text); }
.step h3 { font-size: 1.45rem; font-weight: 750; }
.step p { color: var(--fg-2); }

/* Phones and tablets: a tablet held sideways, drawn in container units so it scales */
.tab-wrap { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.tablet { container-type: inline-size; width: 100%; max-width: 680px; justify-self: center; aspect-ratio: 16 / 10; padding: 1.8cqw; border-radius: 4.4cqw; background: #050407; box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, .08); }
.tscreen { height: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2.2cqw; padding: 2.2cqw; border-radius: 2.8cqw; background: #100F14; color: var(--st-cream); overflow: hidden; }
.tstage { position: relative; height: 100%; aspect-ratio: 9 / 16; border-radius: 1.8cqw; overflow: hidden; container-type: inline-size; background: var(--st-ink); }
.tstage > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.tstage .chip-ui { position: absolute; top: 4cqw; left: 4cqw; z-index: 4; font-size: 5cqw; padding: 1.2cqw 3cqw; gap: 2cqw; }
.tstage .chip-ui .led { width: 2.6cqw; height: 2.6cqw; }
.tpanel { display: grid; align-content: start; gap: 1.7cqw; min-width: 0; }
.tpanel .t-label { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.7cqw; font-weight: 700; }
.tpanel .t-label span { font-weight: 400; color: #A79FB2; font-size: 1.4cqw; }
.t-cams { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1cqw; }
.t-cams span, .t-grid span, .t-pads span, .t-end span { display: grid; place-items: center; border-radius: 1.2cqw; background: #221F29; font-size: 1.45cqw; font-weight: 700; min-height: 4.4cqw; text-align: center; padding: 0 .6cqw; }
.t-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1cqw; }
.t-grid span { min-height: 5.6cqw; border: .25cqw solid transparent; position: relative; }
.t-grid span.on { border-color: var(--live); }
.t-grid .chip-pop { font-size: 1.35cqw; padding: .5cqw .8cqw; border-radius: .6cqw; white-space: nowrap; }
.t-pads { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1cqw; }
.t-end { display: grid; grid-template-columns: minmax(0, 1fr) 12cqw; gap: 1cqw; margin-top: .4cqw; }
.t-end span.end { background: #E5484D; color: #FFFFFF; }
.tab-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); min-width: 0; }
.tab-points li { display: grid; gap: 4px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.tab-points b { font-family: var(--font-display); font-size: 1.12rem; letter-spacing: -0.01em; }
.tab-points span { color: var(--fg-2); font-size: 0.95rem; }

/* Feature bento */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.card { position: relative; display: grid; align-content: start; gap: 14px; padding: clamp(20px, 2.4vw, 28px); border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); min-width: 0; overflow: hidden; }
.card h3 { font-size: var(--t-h3); font-weight: 750; letter-spacing: -0.02em; }
.card > p { color: var(--fg-2); font-size: var(--t-small); }
.span-4 { grid-column: span 4; } .span-3 { grid-column: span 3; } .span-2 { grid-column: span 2; } .span-6 { grid-column: span 6; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-pop { font-family: var(--font-display); font-weight: 800; font-size: 1rem; padding: 7px 12px; border-radius: 10px; letter-spacing: -0.01em; line-height: 1; }
.chip-pop.y { background: var(--st-yellow); color: var(--st-ink); }
.chip-pop.c { background: var(--st-coral); color: var(--st-ink); }
.chip-pop.s { background: var(--st-sky); color: var(--st-ink); }
.chip-pop.w { background: var(--st-white); color: var(--st-ink); box-shadow: inset 0 0 0 2px var(--st-coral); }
.chip-pop.k { background: var(--st-ink); color: var(--st-yellow); box-shadow: inset 0 0 0 2px var(--st-yellow); }
.typed { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; background: var(--bg-2); border: 1px dashed var(--line-strong); font-size: var(--t-small); color: var(--fg-2); }
.typed .chip-pop { font-size: 1.15rem; }
.caret { display: inline-block; width: 2px; height: 1em; background: var(--st-ink); margin-left: 2px; vertical-align: -0.12em; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.bunting { width: calc(100% + 56px); margin: -8px -28px 0; height: 46px; display: block; }
.fx-list { display: flex; flex-wrap: wrap; gap: 6px; }
.fx-list span { font-size: 0.85rem; font-weight: 600; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--fg-2); }
.keys { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; }
.key { display: grid; place-items: center; min-height: 42px; padding: 6px 8px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line); text-align: center; }
.key span { font-size: 0.82rem; font-weight: 600; line-height: 1.2; }
.modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mode { padding: 10px 12px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); }
.mode b { display: block; font-size: 0.9rem; }
.mode span { font-size: 0.8rem; color: var(--muted); line-height: 1.35; display: block; }
.swatches { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.swatches div { display: grid; gap: 4px; min-width: 0; }
.swatches i { display: block; aspect-ratio: 3 / 4; border-radius: 8px; border: 1px solid var(--line); }
.swatches span { font-size: 0.68rem; color: var(--muted); line-height: 1.2; }
.routes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filters span { font-size: 0.8rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); color: var(--fg-2); }
.route { display: grid; gap: 6px; align-content: start; padding: 16px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); min-width: 0; }
.route b { font-family: var(--font-display); font-size: 1.05rem; letter-spacing: -0.01em; }
.route p { font-size: 0.88rem; color: var(--fg-2); }
.route code { font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); overflow-wrap: anywhere; }

/* Templates rail */
.slider-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: clamp(28px, 4vw, 44px); }
.slider-top .section-head { margin-bottom: 0; }
.slider-ctrl { display: flex; gap: 8px; }
.ctrl {
  width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; cursor: pointer;
  background: var(--panel); border: 1px solid var(--line-strong); color: var(--fg);
  transition: background-color .2s, border-color .2s, transform .15s;
}
.ctrl:hover { background: var(--raised); border-color: var(--fg-2); }
.ctrl:active { transform: scale(.94); }
.ctrl svg { width: 18px; height: 18px; }
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 14px) / 4); gap: 14px;
  overflow-x: auto; padding-block: 6px; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
}
.rail::-webkit-scrollbar { display: none; }
.slider-dots { display: flex; justify-content: center; gap: 2px; margin-top: 20px; }
.dot-btn { padding: 10px 4px; border: 0; background: none; cursor: pointer; }
.dot-btn i { display: block; position: relative; overflow: hidden; width: 8px; height: 8px; border-radius: 999px; background: var(--line-strong); transition: width .45s var(--ease-out); }
.dot-btn[aria-current="true"] i { width: 36px; }
.dot-btn[aria-current="true"] i::after { content: ""; position: absolute; inset: 0; transform-origin: left; transform: scaleX(var(--p, 0)); background: var(--accent); }
.tpl { scroll-snap-align: start; display: grid; gap: 12px; padding: 12px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); transition: transform .3s var(--ease-out), border-color .2s; }
.tpl:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.tpl-thumb { position: relative; height: 150px; border-radius: 12px; display: grid; place-items: center; overflow: hidden; }
.tpl-thumb .shape { position: relative; border-radius: 6px; overflow: hidden; display: grid; place-items: center; box-shadow: 0 6px 16px rgba(0,0,0,.35); }
.tpl-thumb .shape.l { width: 82%; aspect-ratio: 16 / 9; }
.tpl-thumb .shape.p { height: 88%; aspect-ratio: 9 / 16; }
.tpl-thumb .mini { font-family: var(--font-display); font-weight: 800; font-size: 0.62rem; padding: 3px 5px; border-radius: 4px; line-height: 1.05; text-align: center; max-width: 100%; overflow-wrap: anywhere; }
.tpl-thumb .minis { display: grid; gap: 4px; justify-items: center; padding-inline: 6px; max-width: 100%; }
.tpl h3 { font-size: 1.08rem; font-weight: 750; }
.tpl .meta { font-family: var(--font-mono); font-size: 0.7rem; color: var(--muted); }
.tpl p { font-size: 0.86rem; color: var(--fg-2); line-height: 1.45; }

/* Devices */
.devices { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.device { display: grid; gap: 8px; padding: 22px; border-right: 1px solid var(--line); min-width: 0; }
.device:last-child { border-right: 0; }
.device svg { width: 30px; height: 30px; color: var(--accent-text); }
.device b { font-size: 1rem; }
.device span { font-size: 0.86rem; color: var(--muted); line-height: 1.45; }

/* Price ladder teaser */
.ladder-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.ladder { display: grid; border-top: 1px solid var(--line-strong); }
.ladder a { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr) auto; align-items: baseline; gap: 16px; padding: 18px 4px; border-bottom: 1px solid var(--line-strong); text-decoration: none; transition: padding-left .35s var(--ease-out), background-color .2s; }
.ladder a:hover { padding-left: 14px; background: var(--panel); }
.ladder .price { font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.ladder .who { font-size: 1.02rem; color: var(--fg-2); }
.ladder .who b { color: var(--fg); }
.ladder .go { font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); }

/* CTA band */
.cta-band { position: relative; overflow: hidden; border-radius: 28px; padding: clamp(36px, 6vw, 72px); background: var(--navy); color: var(--on-accent); display: grid; gap: 22px; justify-items: start; }
.cta-band h2 { font-size: clamp(2rem, 1.2rem + 3.4vw, 3.8rem); font-weight: 800; line-height: 1; max-width: 16ch; letter-spacing: -0.04em; }
.cta-band p { font-size: 1.1rem; max-width: 34rem; }
.cta-band .btn-dark { background: var(--on-accent); color: var(--navy); }
.cta-band .btn-dark:hover { filter: brightness(.93); }
.cta-band .btn-line { border-color: rgba(255,255,255,.45); color: var(--on-accent); }
.cta-band .btn-line:hover { background: rgba(255,255,255,.1); }
.cta-band .big-tag { position: absolute; right: -40px; bottom: -60px; width: 340px; height: 340px; opacity: 0.22; pointer-events: none; }

/* ===== PLANS ===== */
.page-hero { padding-block: clamp(48px, 7vw, 96px) clamp(28px, 4vw, 48px); display: grid; gap: 18px; }
.page-hero h1 { font-size: clamp(2.4rem, 1.3rem + 4vw, 4.4rem); font-weight: 800; line-height: 1; letter-spacing: -0.045em; max-width: 15ch; }
.page-hero p { font-size: 1.12rem; color: var(--fg-2); max-width: 38rem; }
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.plan { position: relative; display: grid; grid-template-rows: auto auto auto 1fr auto; gap: 16px; padding: 24px; border-radius: 22px; background: var(--panel); border: 1px solid var(--line); min-width: 0; transition: transform .35s var(--ease-out), border-color .2s; }
.plan:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.plan.popular { border: 2px solid var(--accent); padding: 23px; box-shadow: 0 24px 50px -24px var(--glow); }
.plan .flag { position: absolute; top: -12px; left: 22px; font-family: var(--font-mono); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--accent); color: var(--on-accent); }
.plan-name { display: grid; gap: 2px; }
.plan-name .code { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-text); }
.plan-name h2 { font-size: 1.5rem; font-weight: 750; letter-spacing: -0.02em; }
.plan-price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.plan-price .amt { font-family: var(--font-display); font-weight: 800; font-size: 3.1rem; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.plan-price .per { color: var(--muted); font-size: 0.9rem; }
.plan .tagline { font-size: 0.92rem; color: var(--fg-2); min-height: 2.9em; }
.limits { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.limits div { padding: 10px 12px; display: grid; gap: 2px; }
.limits div + div { border-left: 1px solid var(--line); }
.limits b { font-family: var(--font-display); font-size: 1.4rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.limits span { font-size: 0.72rem; color: var(--muted); line-height: 1.25; }
.feat { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; align-content: start; font-size: 0.9rem; }
.feat li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; line-height: 1.4; color: var(--fg-2); }
.feat li.lead { font-weight: 600; color: var(--fg); grid-template-columns: 1fr; }
.feat li.note { color: var(--muted); }
.feat svg { width: 18px; height: 18px; margin-top: 1px; }
.plan .btn { width: 100%; }
.pay-note { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 0.88rem; color: var(--muted); }
.pay-note b { color: var(--fg-2); font-weight: 600; }

.table-wrap { position: relative; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.compare { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 0.9rem; }
.compare th, .compare td { padding: 12px 16px; text-align: center; border-bottom: 1px solid var(--line); }
.compare th:first-child, .compare td:first-child { text-align: left; position: sticky; left: 0; background: var(--panel); z-index: 1; }
.compare tbody th { font-weight: 500; }
.compare thead th { font-family: var(--font-display); font-size: 1.05rem; font-weight: 750; padding-block: 18px; }
.compare thead th small { display: block; font-family: var(--font-mono); font-size: 0.72rem; font-weight: 400; color: var(--muted); }
.compare thead th.hl { color: var(--accent-text); }
.compare .group td { font-family: var(--font-mono); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); background: var(--bg-2); padding-block: 10px; }
.compare .group td:first-child { background: var(--bg-2); }
.compare td.col-hl { background: color-mix(in srgb, var(--accent) 6%, var(--panel)); }
.compare svg { width: 18px; height: 18px; vertical-align: middle; }
.yes { color: var(--accent-text); }
.no { color: var(--line-strong); }
.prev { font-family: var(--font-mono); font-size: 0.7rem; padding: 2px 7px; border-radius: 6px; border: 1px solid var(--line-strong); color: var(--muted); }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare tbody tr:not(.group):hover td, .compare tbody tr:not(.group):hover th { background: var(--raised); }

.faq { display: grid; gap: 0; max-width: 52rem; border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 2px; font-family: var(--font-display); font-weight: 650; font-size: 1.15rem; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: transform .35s var(--ease-out), background-color .2s; }
.faq details[open] summary .plus { transform: rotate(45deg); background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.faq .ans { padding: 0 2px 22px; color: var(--fg-2); max-width: 44rem; display: grid; gap: 10px; }
.faq details[open] .ans { animation: rise .45s var(--ease-out); }

/* ===== CONTACT ===== */
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: start; padding-bottom: clamp(64px, 9vw, 120px); }
.help-list { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--line); }
.help-list li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.help-list .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--raised); color: var(--accent-text); }
.help-list .ico svg { width: 20px; height: 20px; }
.help-list b { display: block; font-size: 1rem; }
.help-list span { font-size: 0.9rem; color: var(--muted); }
.mini-btn { font-size: 0.8rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: none; cursor: pointer; }
.mini-btn:hover { background: var(--raised); }

.reach { padding: clamp(22px, 3vw, 36px); border-radius: 24px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; gap: 18px; min-width: 0; }
.reach h2 { font-size: 1.6rem; font-weight: 750; }
.reach > p { color: var(--fg-2); }
.reach-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.reach-item { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 2px 16px; align-items: center; padding: 16px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line); transition: border-color .2s; }
.reach-item:hover { border-color: var(--line-strong); }
.reach-ico { grid-row: span 2; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 16%, var(--panel)); color: var(--accent-text); }
.reach-ico svg { width: 24px; height: 24px; }
.reach-name { font-family: var(--font-display); font-weight: 750; font-size: 1.12rem; letter-spacing: -0.01em; align-self: end; }
.reach-val { font-family: var(--font-mono); font-size: 0.82rem; color: var(--fg-2); overflow-wrap: anywhere; user-select: all; align-self: start; }
.reach-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.reach-actions .btn { min-height: 42px; padding: 0 1.1em; font-size: 0.92rem; }
.reach-note { font-size: 0.82rem; color: var(--muted); }

/* ===== GET THE APP ===== */
.next-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.next-steps li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.next-steps .n { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 14%, var(--panel)); color: var(--accent-text); font-family: var(--font-mono); font-weight: 600; font-size: 0.9rem; }
.next-steps b { display: block; font-size: 1rem; }
.next-steps span { font-size: 0.92rem; color: var(--muted); }
.safe-note { display: flex; gap: 10px; align-items: flex-start; padding: 14px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); font-size: 0.88rem; color: var(--fg-2); }
.safe-note svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--accent-text); margin-top: 1px; }
.get-card { padding: clamp(22px, 3vw, 36px); border-radius: 24px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; gap: 20px; align-content: start; min-width: 0; }
.get-top { display: flex; align-items: center; gap: 16px; }
.app-icon { width: 64px; height: 64px; flex-shrink: 0; border-radius: 16px; display: grid; place-items: center; background: var(--navy); }
.app-icon svg { width: 40px; height: 40px; }
.get-top h2 { font-size: 1.45rem; font-weight: 750; }
.get-top p { font-family: var(--font-mono); font-size: 0.76rem; color: var(--muted); margin-top: 4px; }
.get-card .btn-big { min-height: 56px; font-size: 1.05rem; width: 100%; }
.btn-big svg { width: 20px; height: 20px; }
.qr { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: center; padding: 14px; border-radius: 16px; border: 1px dashed var(--line-strong); }
.qr-box { width: 112px; height: 112px; padding: 8px; border-radius: 12px; background: #FFFFFF; }
.qr-box img, .qr-box canvas { width: 100% !important; height: 100% !important; display: block; }
.qr b { display: block; font-size: 0.95rem; }
.qr span { font-size: 0.86rem; color: var(--muted); }
.not-yet { display: grid; gap: 12px; padding: 16px; border-radius: 16px; background: color-mix(in srgb, var(--accent) 9%, var(--bg-2)); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }
.not-yet b { font-size: 1rem; }
.not-yet p { font-size: 0.9rem; color: var(--fg-2); }
.picked { font-size: 0.92rem; padding: 12px 14px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); color: var(--fg-2); }
.picked b { color: var(--fg); }
.req { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.req div { display: grid; gap: 2px; padding: 12px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); }
.req b { font-size: 0.92rem; }
.req span { font-size: 0.82rem; color: var(--muted); }


/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 40px 48px; }
.foot-row { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; align-items: flex-start; }
.foot-row p { color: var(--muted); font-size: 0.9rem; max-width: 26rem; margin-top: 12px; }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-links a { text-decoration: none; color: var(--fg-2); font-weight: 600; font-size: 0.92rem; }
.foot-links a:hover { color: var(--accent-text); }
.foot-small { margin-top: 28px; font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); }

/* Responsive */
@media (max-width: 1060px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rail { grid-auto-columns: calc((100% - 2 * 14px) / 3); }
  .tab-wrap { grid-template-columns: minmax(0, 1fr); }
  .devices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .device:nth-child(2) { border-right: 0; }
  .device:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 860px) {
  .bento { grid-template-columns: minmax(0, 1fr); }
  .span-4, .span-3, .span-2, .span-6 { grid-column: auto; }
  .steps, .routes { grid-template-columns: minmax(0, 1fr); }
  .ladder-wrap, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .rail { grid-auto-columns: calc((100% - 14px) / 2); }
}
@media (max-width: 620px) {
  .plans { grid-template-columns: minmax(0, 1fr); }
  .qr { display: none; }
  .rail { grid-auto-columns: 84%; }
  .strip-row { flex-wrap: wrap; }
  .marquee { flex-basis: 100%; }
  .devices { grid-template-columns: minmax(0, 1fr); }
  .device { border-right: 0; border-bottom: 1px solid var(--line); }
  .device:last-child { border-bottom: 0; }
  .swatches { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ladder a { grid-template-columns: 5.2rem minmax(0, 1fr); }
  .ladder .go { display: none; }
  .brand .word span { display: none; }
  .nav a { padding: 8px 12px; }
}
@media (max-width: 480px) {
  /* The longer name needs the full row: the nav drops below it as a full-width switch. */
  .header-row { flex-wrap: wrap; row-gap: 10px; min-height: 0; padding-block: 12px; }
  .nav { order: 3; flex-basis: 100%; margin-left: 0; }
  .nav a { flex: 1; text-align: center; }
  .nav-long { display: none; }
  .nav-short { display: inline; }
  .brand .word span { display: inline; }
}
@media (max-width: 420px) {
  .req { grid-template-columns: minmax(0, 1fr); }
  .brand .word { font-size: 1.15rem; }
  .brand svg { width: 30px; height: 30px; }
  .nav a { padding: 7px 10px; font-size: 0.86rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  .marquee-track { animation: none !important; }
}
