/* Design tokens. Change the brand here and both versions follow. */
:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-2: #eef1f7;
  --ink: #0d1424;
  --ink-2: #3b4458;
  --muted: #6a7489;
  --line: #e2e6ee;
  --accent: #3d5afe;        /* electric blue: primary actions */
  --accent-ink: #ffffff;
  --accent-2: #00c2a8;      /* teal: gradients and highlights */
  --good: #12b76a;          /* in stock */
  --warn: #f59e0b;          /* last one */
  --hero-1: #0b1023;
  --hero-2: #121a3a;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(13, 20, 36, .06), 0 8px 24px rgba(13, 20, 36, .06);
  --shadow-lg: 0 24px 60px rgba(13, 20, 36, .18);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0f1d; --surface: #111829; --surface-2: #182136; --ink: #eef2fb; --ink-2: #c4cbdb;
    --muted: #8d97ad; --line: #222c44; --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.3);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a0f1d; --surface: #111829; --surface-2: #182136; --ink: #eef2fb; --ink-2: #c4cbdb;
  --muted: #8d97ad; --line: #222c44; --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.3);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--ink); line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); background: rgba(11, 16, 35, .82); color: #fff; border-bottom: 1px solid rgba(255,255,255,.08); }
.site-header .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.02em; font-size: 1.15rem; text-decoration: none; }
.logo-mark { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); display: grid; place-items: center; box-shadow: 0 6px 18px rgba(61,90,254,.45); }
.logo-mark svg { width: 16px; height: 16px; }
.logo small { font-weight: 600; opacity: .6; }
.live-pill { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.08); color: rgba(255,255,255,.85); white-space: nowrap; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 0 rgba(18,183,106,.6); animation: pulse 2s infinite; }
.live-pill.offline .live-dot { background: var(--warn); animation: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(18,183,106,0); } 100% { box-shadow: 0 0 0 0 rgba(18,183,106,0); } }

/* Hero background: slow aurora gradient */
.hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(1200px 600px at 10% -10%, #2a3a9a 0%, transparent 60%), linear-gradient(180deg, var(--hero-1), var(--hero-2)); }
.hero::before, .hero::after { content: ''; position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(90px); opacity: .45; pointer-events: none; }
.hero::before { background: var(--accent); top: -30vmax; right: -20vmax; animation: drift 18s ease-in-out infinite alternate; }
.hero::after { background: var(--accent-2); bottom: -38vmax; left: -18vmax; opacity: .28; animation: drift 22s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate(-8vmax, 6vmax) scale(1.08); } }
.hero > * { position: relative; z-index: 1; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #9fb0ff; }
.hero h1 { font-size: clamp(2.2rem, 5.4vw, 4.2rem); line-height: 1.04; letter-spacing: -.035em; margin: 14px 0 16px; font-weight: 800; }
.hero h1 .grad { background: linear-gradient(90deg, #8fa2ff, var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: clamp(1rem, 1.6vw, 1.2rem); color: rgba(255,255,255,.72); max-width: 560px; margin: 0; }

/* Combobox: the dynamic phone picker */
.picker { position: relative; width: min(620px, 100%); margin-top: 32px; }
.picker-btn { width: 100%; display: flex; align-items: center; gap: 14px; padding: 14px 16px 14px 20px; border-radius: 16px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.1); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); color: #fff; cursor: pointer; text-align: left; font-size: 1.05rem; transition: background .2s, border-color .2s, transform .2s; }
.picker-btn:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.3); }
.picker-btn:focus-visible { outline: 3px solid #8fa2ff; outline-offset: 3px; }
.picker-btn .ph { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picker-btn .count { font-size: .8rem; padding: 4px 10px; border-radius: 999px; background: var(--good); color: #04210f; font-weight: 700; white-space: nowrap; }
.picker-btn .chev { width: 36px; height: 36px; border-radius: 10px; background: var(--accent); display: grid; place-items: center; flex: none; transition: transform .25s; }
.picker[data-open="true"] .chev { transform: rotate(180deg); }
.picker-panel { position: absolute; left: 0; right: 0; top: calc(100% + 10px); z-index: 30; background: var(--surface); color: var(--ink); border-radius: 18px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); overflow: hidden; transform-origin: top; animation: pop .18s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.picker-search { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.picker-search input { flex: 1; border: 0; background: transparent; font: inherit; color: inherit; outline: none; padding: 6px 0; }
.picker-list { max-height: min(60vh, 440px); overflow: auto; padding: 6px; margin: 0; list-style: none; }
.picker-group { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 12px 12px 6px; }
.picker-opt { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 8px 10px; border-radius: 12px; cursor: pointer; }
.picker-opt[aria-selected="true"], .picker-opt:hover { background: var(--surface-2); }
.picker-opt img { width: 44px; height: 44px; object-fit: cover; border-radius: 10px; background: var(--surface-2); }
.picker-opt .t { font-weight: 650; line-height: 1.2; }
.picker-opt .s { font-size: .82rem; color: var(--muted); }
.picker-opt .p { font-weight: 750; }
.picker-empty { padding: 24px; text-align: center; color: var(--muted); }
.picker-empty .btn { margin-top: 14px; }
.picker-request { display: block; width: 100%; border: 0; border-top: 1px solid var(--line); background: var(--surface-2); color: var(--ink-2); padding: 13px 16px; font: inherit; font-size: .9rem; text-align: center; cursor: pointer; }
.picker-request b { color: var(--accent); }
.picker-request:hover { background: color-mix(in srgb, var(--accent) 8%, var(--surface-2)); }
.picker-request:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }

/* Generic bits */
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; padding: 5px 11px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font-weight: 600; white-space: nowrap; }
.chip.good { background: color-mix(in srgb, var(--good) 14%, transparent); color: var(--good); }
.chip.warn { background: color-mix(in srgb, var(--warn) 16%, transparent); color: #b45309; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 12px; border: 0; background: var(--accent); color: var(--accent-ink); font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .2s; box-shadow: 0 8px 20px rgba(61,90,254,.3); }
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(61,90,254,.38); }
.btn.ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.price { font-weight: 800; letter-spacing: -.02em; }
.muted { color: var(--muted); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* Skeletons */
.skel { background: linear-gradient(90deg, var(--surface-2) 25%, color-mix(in srgb, var(--surface-2) 50%, var(--surface)) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 12px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Footer */
.site-footer { margin-top: 80px; padding: 40px 0 56px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.site-footer h3 { color: var(--ink); font-size: .95rem; margin: 0 0 10px; }
.credits { columns: 2 280px; gap: 32px; padding: 0; margin: 0; list-style: none; }
.credits li { break-inside: avoid; margin-bottom: 6px; }
.credits a { color: var(--ink-2); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(120%); background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 12px; box-shadow: var(--shadow-lg); font-weight: 600; font-size: .9rem; transition: transform .35s cubic-bezier(.2,.7,.2,1); z-index: 60; max-width: calc(100% - 32px); }
.toast.show { transform: translateX(-50%) translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
