/* City Lights landing page. Tokens mirror the app's Neon Grid theme (src/theme/themes.ts). */
@font-face { font-family: "Chakra Petch"; font-weight: 500; font-display: swap; src: url("/fonts/ChakraPetch_500Medium.ttf") format("truetype"); }
@font-face { font-family: "Chakra Petch"; font-weight: 700; font-display: swap; src: url("/fonts/ChakraPetch_700Bold.ttf") format("truetype"); }
@font-face { font-family: "Figtree"; font-weight: 400; font-display: swap; src: url("/fonts/Figtree_400Regular.ttf") format("truetype"); }
@font-face { font-family: "Figtree"; font-weight: 600; font-display: swap; src: url("/fonts/Figtree_600SemiBold.ttf") format("truetype"); }

:root {
  --bg: #0a0612;
  --surface: #110a1d;
  --sheet: #140a22;
  --border: rgba(255, 255, 255, .10);
  --border-strong: rgba(255, 61, 242, .45);
  --text: #ffffff;
  --muted: #a99bc2;
  --label: #d4b3ff;
  --brand: #ff3df2;
  --cyan: #29f0ff;
  --lit: #ffe66d;
  --on-lit: #1a0b24;
  --error: #ff4d6d;
  --display: "Chakra Petch", ui-sans-serif, system-ui, sans-serif;
  --body: "Figtree", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --r-card: 18px;
  --r-btn: 14px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.08; margin: 0; letter-spacing: .01em; text-wrap: balance; }
h1 em, h2 em { font-style: normal; color: var(--brand); text-shadow: 0 0 28px rgba(255, 61, 242, .45); }
p { margin: 0; }
b { font-weight: 600; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(20px, 5vw, 40px); }
.narrow { max-width: 780px; }
.center { text-align: center; justify-content: center; }
.muted { color: var(--muted); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--lit); color: var(--on-lit); padding: 10px 16px; border-radius: 10px; font-weight: 600; }
.skip:focus { top: 12px; }

.eyebrow, .label {
  font-family: var(--display); font-weight: 500; text-transform: uppercase;
  letter-spacing: .16em; font-size: 13px; color: var(--label);
}
.eyebrow { margin-bottom: 14px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px;
  border-radius: var(--r-btn); border: 1.5px solid var(--lit); background: var(--lit); color: var(--on-lit);
  font: 700 15px/1 var(--display); text-transform: uppercase; letter-spacing: .1em; text-decoration: none; cursor: pointer;
  box-shadow: 0 0 22px rgba(255, 230, 109, .30);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background-color .18s var(--ease);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 0 32px rgba(255, 230, 109, .5); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 13px; }
.btn-ghost { background: transparent; color: var(--lit); box-shadow: none; }
.btn-ghost:hover { background: rgba(255, 230, 109, .08); box-shadow: none; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 6, 18, .78); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-in { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; }
.brand img { border-radius: 9px; }
.wordmark { font: 700 19px/1 var(--display); text-transform: uppercase; letter-spacing: .08em; }
.wordmark b { color: var(--brand); font-weight: 700; text-shadow: 0 0 16px rgba(255, 61, 242, .6); }
.nav nav { margin-left: auto; }
.nav-links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px;
  color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; transition: color .15s, background-color .15s;
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
@media (max-width: 760px) { .nav nav { display: none; } .nav .btn { margin-left: auto; } }

/* Starfield */
.stars {
  position: absolute; inset: 0; pointer-events: none; opacity: .9;
  background-image:
    radial-gradient(1.5px 1.5px at 8% 14%, #fff9, transparent), radial-gradient(1.5px 1.5px at 22% 38%, #fff6, transparent),
    radial-gradient(2px 2px at 36% 9%, #fff8, transparent), radial-gradient(1.5px 1.5px at 51% 27%, #fff5, transparent),
    radial-gradient(2px 2px at 67% 12%, #fff7, transparent), radial-gradient(1.5px 1.5px at 79% 33%, #fff6, transparent),
    radial-gradient(2px 2px at 92% 7%, #fff8, transparent), radial-gradient(1.5px 1.5px at 4% 52%, #fff5, transparent),
    radial-gradient(1.5px 1.5px at 44% 48%, #fff4, transparent), radial-gradient(1.5px 1.5px at 88% 51%, #fff5, transparent);
}

/* Hero */
.hero {
  position: relative; overflow: hidden; padding: clamp(40px, 7vw, 88px) 0 0;
  background:
    radial-gradient(70% 55% at 80% 30%, rgba(255, 61, 242, .20), transparent 70%),
    radial-gradient(50% 40% at 5% 0%, rgba(41, 240, 255, .10), transparent 70%),
    linear-gradient(180deg, #07050f 0%, #120a24 60%, #1d0b30 100%);
}
.hero-in { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(40px, 6.2vw, 72px); text-transform: uppercase; }
.hero h1 em { display: block; }
.lede { margin-top: 22px; font-size: clamp(17px, 1.6vw, 19px); color: #ddd3f0; max-width: 34em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 22px 0 0; }
.chips li {
  font: 500 13px/1 var(--display); text-transform: uppercase; letter-spacing: .1em; color: var(--label);
  padding: 9px 12px; border: 1px solid var(--border); border-radius: 999px; background: rgba(255, 255, 255, .03);
}
.hero-phone { position: relative; margin: 0 auto; width: min(340px, 72vw); }
.toast {
  position: absolute; left: 50%; bottom: 13%; transform: translateX(-50%); white-space: nowrap;
  display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px;
  background: rgba(20, 10, 34, .92); border: 1px solid rgba(255, 230, 109, .5); color: var(--lit);
  font: 700 14px/1 var(--display); letter-spacing: .04em; box-shadow: 0 0 30px rgba(255, 230, 109, .35);
  animation: float 4s ease-in-out infinite;
}
.toast .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lit); box-shadow: 0 0 10px var(--lit); }
@keyframes float { 50% { transform: translate(-50%, -6px); } }
.skyline { display: block; position: relative; z-index: 1; margin-top: clamp(-120px, -10vw, -40px); }
.skyline img { width: 100%; min-height: 120px; object-fit: cover; object-position: 50% 100%; }
@media (max-width: 860px) {
  .hero-in { grid-template-columns: 1fr; text-align: center; }
  .lede { margin-left: auto; margin-right: auto; }
  .stores, .chips { justify-content: center; }
  .skyline { margin-top: -60px; }
}

/* Phone frame */
.phone {
  position: relative; border-radius: 44px; padding: 7px;
  background: linear-gradient(160deg, #3a2160, #150b28);
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .08), 0 24px 80px rgba(255, 61, 242, .28), 0 0 120px rgba(41, 240, 255, .08);
}
.phone img { border-radius: 37px; width: 100%; aspect-ratio: 1206 / 2622; object-fit: cover; background: var(--surface); }
.phone-md { width: min(300px, 62vw); margin: 0 auto; }
.phone-sm { border-radius: 30px; padding: 5px; }
.phone-sm img { border-radius: 25px; }

/* Store buttons */
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.store {
  display: inline-flex; align-items: center; gap: 12px; min-height: 58px; min-width: 188px; padding: 8px 20px 8px 16px;
  border-radius: var(--r-btn); border: 1.5px solid var(--border-strong); background: rgba(20, 10, 34, .7);
  color: var(--text); text-decoration: none; transition: transform .18s var(--ease), border-color .18s, box-shadow .18s;
}
.store svg { width: 26px; height: 26px; fill: none; stroke: var(--brand); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.store span { display: flex; flex-direction: column; text-align: left; font: 700 19px/1.15 var(--display); }
.store small { font: 500 11px/1.2 var(--display); text-transform: uppercase; letter-spacing: .12em; color: var(--label); }
.store[href] { cursor: pointer; border-color: var(--lit); }
.store[href] svg { stroke: var(--lit); }
.store[href]:hover { transform: translateY(-2px); box-shadow: 0 0 28px rgba(255, 230, 109, .3); }
.store[aria-disabled="true"] { cursor: default; }

/* Sections */
.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.section + .section { border-top: 1px solid rgba(255, 255, 255, .05); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(40px, 6vw, 72px); }
h2 { font-size: clamp(32px, 4.4vw, 52px); text-transform: uppercase; }
h3 { font-size: 22px; }

/* Play / demo */
.play { display: grid; grid-template-columns: 1fr minmax(300px, 440px); gap: clamp(32px, 6vw, 80px); align-items: center; }
.rules { list-style: none; padding: 0; margin: 30px 0 24px; display: grid; gap: 16px; }
.rules li { display: flex; gap: 16px; align-items: flex-start; font-size: 18px; color: #ddd3f0; }
.rules b { color: var(--text); }
.rules .n {
  flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid var(--cyan); color: var(--text); font: 700 16px/1 var(--display); box-shadow: 0 0 14px rgba(41, 240, 255, .35);
}
.demo {
  background: var(--sheet); border: 1px solid var(--border-strong); border-radius: 24px; padding: 18px 18px 22px;
  box-shadow: 0 0 60px rgba(255, 61, 242, .14); text-align: center;
}
.demo.won { border-color: rgba(255, 230, 109, .6); box-shadow: 0 0 70px rgba(255, 230, 109, .22); }
.demo-head { display: flex; justify-content: space-between; padding: 2px 4px 10px; }
#demo-board { width: 100%; height: auto; display: block; touch-action: manipulation; user-select: none; -webkit-user-select: none;
  background-image: radial-gradient(circle, rgba(41, 240, 255, .25) 1.2px, transparent 1.6px); background-size: 20% 20%; background-position: 10% 10%; border-radius: 14px; }
.demo-msg { min-height: 3.2em; margin: 12px 0 14px; color: var(--muted); font-size: 15px; }
.demo.won .demo-msg { color: var(--lit); font-weight: 600; }
.gap { cursor: pointer; }
.gap .hit { fill: transparent; }
.gap:hover .hit, .gap:focus-visible .hit { fill: rgba(41, 240, 255, .10); }
.gap:focus { outline: none; }
.gap:focus-visible .hit { stroke: var(--cyan); stroke-width: 1.5; }
.cable { stroke: var(--brand); stroke-width: 3.5; stroke-linecap: round; filter: drop-shadow(0 0 4px rgba(255, 61, 242, .9)); transition: stroke .3s; }
.won .cable { stroke: var(--lit); filter: drop-shadow(0 0 5px rgba(255, 230, 109, .9)); }
.station circle { fill: #12081f; stroke: var(--cyan); stroke-width: 2.5; transition: fill .25s, stroke .25s; }
.station text { fill: #fff; font: 700 19px var(--display); text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.station.full circle { fill: var(--lit); stroke: var(--lit); filter: drop-shadow(0 0 8px rgba(255, 230, 109, .8)); }
.station.full text { fill: var(--on-lit); }
.station.over circle { stroke: var(--error); fill: rgba(255, 77, 109, .18); }
@media (max-width: 860px) { .play { grid-template-columns: 1fr; } .play-copy { text-align: center; } .rules { text-align: left; max-width: 460px; margin-left: auto; margin-right: auto; } }

/* Features */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.feature + .feature { margin-top: clamp(72px, 9vw, 120px); }
.feature.flip .feature-media { order: 2; }
.feature-copy { max-width: 470px; }
.feature-copy h3 { font-size: clamp(28px, 3.2vw, 38px); text-transform: uppercase; margin: 12px 0 16px; }
.feature-copy p:not(.label) { color: #ddd3f0; font-size: 18px; }
.fan { position: relative; height: clamp(420px, 46vw, 540px); }
.fan .phone { position: absolute; top: 50%; left: 50%; width: clamp(150px, 17vw, 200px); }
.fan .p0 { transform: translate(-112%, -46%) rotate(-7deg); }
.fan .p1 { transform: translate(-50%, -50%); z-index: 2; }
.fan .p2 { transform: translate(12%, -46%) rotate(7deg); }
.sw { white-space: nowrap; font-weight: 600; }
.sw::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: 1px; }
.sw-neon::before { background: var(--brand); box-shadow: 0 0 8px var(--brand); }
.sw-blue::before { background: #6fe3ff; }
.sw-print::before { background: #174a83; border: 1px solid #fff; }
.sw-day::before { background: #f7a21b; }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; text-align: center; }
  .feature.flip .feature-media { order: 0; }
  .feature-copy { margin: 0 auto; }
}

/* Cards */
.cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); padding: 26px; transition: border-color .2s, transform .2s var(--ease); }
.card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.card svg { width: 30px; height: 30px; fill: none; stroke: var(--cyan); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px rgba(41, 240, 255, .5)); }
.card h3 { font-size: 19px; text-transform: uppercase; margin: 16px 0 8px; }
.card p { color: var(--muted); font-size: 16px; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }

/* Pricing */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 820px; margin: 0 auto 28px; }
.plan { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 30px; }
.plan-pro { border: 1.5px solid rgba(255, 230, 109, .55); box-shadow: 0 0 50px rgba(255, 230, 109, .12); }
.plan h3 { font-size: 20px; text-transform: uppercase; }
.price { font: 700 34px/1.1 var(--display); color: var(--lit); margin: 10px 0 20px; text-transform: uppercase; }
.plan:not(.plan-pro) .price { color: var(--text); }
.badge {
  position: absolute; top: -13px; left: 30px; padding: 6px 12px; border-radius: 999px; background: var(--lit); color: var(--on-lit);
  font: 700 12px/1 var(--display); text-transform: uppercase; letter-spacing: .1em;
}
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: baseline; color: #ddd3f0; }
.ticks li::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--cyan); transform: translateY(-1px); }
.plan-pro .ticks li::before { border-color: var(--lit); background: var(--lit); box-shadow: 0 0 8px var(--lit); }
@media (max-width: 640px) { .plans { grid-template-columns: 1fr; gap: 28px; } }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; transition: border-color .2s; }
.faq details[open] { border-color: var(--border-strong); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 60px; padding: 14px 22px; font-weight: 600; font-size: 18px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font: 500 26px/1 var(--display); color: var(--brand); transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 20px; color: #ddd3f0; }

/* CTA + footer */
.cta {
  position: relative; overflow: hidden; padding: clamp(80px, 11vw, 140px) 0 0; text-align: center;
  background: radial-gradient(60% 60% at 50% 100%, rgba(255, 61, 242, .25), transparent 70%), linear-gradient(180deg, var(--bg), #1d0b30);
}
.cta .wrap { position: relative; z-index: 2; }
.cta-icon { margin: 0 auto 26px; border-radius: 22px; box-shadow: 0 0 50px rgba(255, 61, 242, .45); }
h2 em { display: block; }
.cta .lede { margin: 18px auto 0; }
.cta .skyline { margin-top: 24px; }
.footer { border-top: 1px solid var(--border); padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); font-size: 14px; color: var(--muted); }
.footer-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.footer a { color: var(--label); }

/* Reveal on scroll (added by main.js only when motion is allowed) */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
