@font-face {
  font-family: "Bungee";
  src: url("/fonts/Bungee-Regular.ttf") format("truetype");
  font-display: swap;
}
/* Plus Jakarta Sans, variable 400-800, Latin subsets (OFL, fonts/PlusJakartaSans-OFL.txt) */
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/fonts/PlusJakartaSans-latin-ext.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/fonts/PlusJakartaSans-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  --bg: #0f0c17;
  --panel: #1b1726;
  --panel-2: #241f33;
  --line: #2f2842;
  --fg: #f3effa;
  --muted: #a69dbb;
  --teal: #2ee6c4;
  --gold: #ffc94d;
  --pink: #ff4f8b;
  --blue: #6c8dff;
  --display: "Bungee", "Arial Black", Impact, sans-serif;
  --text: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(900px 600px at 85% -10%, rgba(255, 79, 139, .18), transparent 60%),
    radial-gradient(800px 600px at -10% 20%, rgba(46, 230, 196, .10), transparent 60%),
    var(--bg);
  color: var(--fg);
  font: 17px/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--teal); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.1; margin: 0; letter-spacing: .01em; }
h2 { font-size: clamp(28px, 4.2vw, 44px); }
h3 { font-size: 20px; }

.teal { color: var(--teal); }
.gold { color: var(--gold); }
.pink { color: var(--pink); }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 1160px; margin: 0 auto; padding: 14px 24px;
  background: rgba(15, 12, 23, .78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font-family: var(--display); font-size: 18px; }
.brand img { border-radius: 8px; }
.nav nav { display: flex; align-items: center; gap: 22px; }
.nav nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav nav a:hover { color: var(--fg); }
.nav .store-mini { color: var(--bg); background: var(--teal); padding: 8px 14px; border-radius: 999px; }
.nav .store-mini:hover { color: var(--bg); filter: brightness(1.1); }

main { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
section { padding: 72px 0; scroll-margin-top: 64px; }
[id]:not(section) { scroll-margin-top: 96px; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding-top: 48px; }
.eyebrow { font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: 13px; color: var(--pink); margin: 0 0 16px; }
.hero h1 { font-size: clamp(44px, 7vw, 82px); line-height: 1.02; }
.lede { color: var(--muted); font-size: 19px; max-width: 34em; margin: 24px 0 32px; }
.price { color: var(--muted); font-size: 14px; margin: 14px 0 0; }

.store {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--fg); color: #000; text-decoration: none;
  padding: 10px 22px 10px 16px; border-radius: 14px;
  font: 600 22px/1 var(--text);
  box-shadow: 0 10px 30px rgba(46, 230, 196, .18);
  transition: transform .15s ease;
}
.store:hover { transform: translateY(-2px); }
.store svg { width: 30px; height: 30px; }
.store span { display: flex; flex-direction: column; gap: 3px; }
.store small { font-size: 11px; font-weight: 500; }

.hero-art { position: relative; display: grid; place-items: center; min-height: 560px; }
.fan { position: absolute; inset: 0; display: grid; place-items: center; }
.fan i {
  position: absolute; width: 170px; height: 240px; border-radius: 20px;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.10) 0 8px, transparent 8px 16px),
    linear-gradient(160deg, var(--c1), var(--c2));
  transform: translateX(var(--x)) translateY(30px) rotate(var(--a));
  box-shadow: 0 20px 40px rgba(0,0,0,.45);
  opacity: .9;
}
.phone {
  margin: 0; position: relative;
  width: min(300px, 72vw);
  padding: 10px; border-radius: 48px;
  background: linear-gradient(160deg, #3a3350, #15121e);
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 40px 80px rgba(0,0,0,.55);
}
.phone img { border-radius: 38px; }

/* Stats */
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 24px 0 40px;
}
.stats div { background: var(--panel); border: 1px solid var(--line); border-radius: 24px; padding: 24px; text-align: center; }
.stats b { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(40px, 6vw, 60px); line-height: 1; }
.stats span { color: var(--muted); font-weight: 600; }

/* Steps */
.steps h2 { text-align: center; margin-bottom: 40px; }
.steps ol { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { background: var(--panel); border: 1px solid var(--line); border-radius: 24px; padding: 28px; }
.steps li b {
  display: grid; place-items: center; width: 44px; height: 48px; border-radius: 10px; margin-bottom: 18px;
  font: 400 20px var(--display); color: #fff;
  background: linear-gradient(160deg, var(--pink), #9b38c9);
}
.steps li:nth-child(2) b { background: linear-gradient(160deg, var(--gold), #c47a12); }
.steps li:nth-child(3) b { background: linear-gradient(160deg, #8fb0ff, #3c4fd6); }
.steps p { color: var(--muted); margin: 8px 0 0; }

/* Features */
.feature { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.feature .phone { justify-self: center; }
.feature.flip .phone { order: 2; }
.feature h2 { margin-bottom: 16px; }
.feature > div > p { color: var(--muted); font-size: 18px; margin: 0 0 20px; }
.feature ul { list-style: none; padding: 0; margin: 0; }
.feature li { position: relative; padding: 10px 0 10px 32px; border-top: 1px solid var(--line); }
.feature li::before {
  content: ""; position: absolute; left: 0; top: 15px; width: 18px; height: 18px; border-radius: 5px;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%230f0c17' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}
.feature .tag, .tag {
  display: inline-block; margin: 0 0 14px; padding: 5px 12px; border-radius: 999px;
  font: 400 13px var(--display); letter-spacing: .06em; color: var(--bg);
}
.teal-bg { background: var(--teal); }
.pink-bg { background: var(--pink); }
.gold-bg { background: var(--gold); }
.blue-bg { background: var(--blue); }
.pro {
  display: inline-block; vertical-align: 2px; margin-left: 6px; padding: 1px 7px; border-radius: 6px;
  font: 400 11px var(--display); color: var(--bg); background: var(--gold);
}

/* Pricing */
.pricing { text-align: center; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); justify-content: center; gap: 20px; margin: 40px 0 16px; text-align: left; }
.plan { background: var(--panel); border: 1px solid var(--line); border-radius: 28px; padding: 32px; }
.pro-plan { background: linear-gradient(170deg, #2e2540, var(--panel) 60%); border-color: rgba(255, 201, 77, .55); box-shadow: 0 20px 60px rgba(255, 201, 77, .10); }
.pro-plan h3 { color: var(--gold); }
.amount { font: 400 44px/1 var(--display); margin: 14px 0 20px; }
.amount small { font: 600 15px var(--text); color: var(--muted); }
.plan ul { padding-left: 20px; margin: 0; color: var(--muted); }
.plan li { margin: 6px 0; }
.note { color: var(--muted); font-size: 15px; }

/* Privacy */
.privacy { text-align: center; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 36px 0 24px; text-align: left; }
.grid4 p { margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 22px; color: var(--muted); font-size: 15px; }
.grid4 b { display: block; color: var(--fg); font: 400 17px var(--display); margin-bottom: 6px; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq h2 { text-align: center; margin-bottom: 32px; }
details { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; margin: 0 0 12px; padding: 0 22px; }
summary { cursor: pointer; list-style: none; padding: 18px 28px 18px 0; font-weight: 700; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0; top: 12px; font: 400 24px var(--display); color: var(--teal); }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin: 0 0 18px; }

/* Closing */
.closing { text-align: center; display: grid; justify-items: center; gap: 12px; padding-bottom: 96px; }
.closing img { border-radius: 22px; box-shadow: 0 20px 50px rgba(255, 79, 139, .25); margin-bottom: 8px; }
.closing p { color: var(--muted); margin: 0 0 12px; }

footer { border-top: 1px solid var(--line); padding: 32px 24px 48px; text-align: center; color: var(--muted); font-size: 13px; }
footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-bottom: 16px; font-size: 15px; }
footer nav a { color: var(--fg); text-decoration: none; }
footer nav a:hover { color: var(--teal); }
footer p { max-width: 720px; margin: 0 auto; }

/* Narrow screens */
@media (max-width: 900px) {
  .hero, .feature { grid-template-columns: 1fr; gap: 40px; }
  .hero { text-align: center; }
  .lede { margin-left: auto; margin-right: auto; }
  .hero-art { min-height: 480px; }
  .feature.flip .phone { order: 0; }
  .grid4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav { padding: 12px 16px; }
  .nav nav a:not(.store-mini) { display: none; }
  main { padding: 0 16px; }
  section { padding: 52px 0; }
  .steps ol, .plans, .stats { grid-template-columns: 1fr; }
  .stats { gap: 12px; }
  .grid4 { grid-template-columns: 1fr; }
  .fan i { width: 120px; height: 170px; transform: translateX(calc(var(--x) * .62)) translateY(30px) rotate(var(--a)); }
  .hero-art { min-height: 440px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .store { transition: none; } }

/* Card guide pages (scripts/pages.py) */
.guide { max-width: 960px; padding-top: 24px; padding-bottom: 40px; }
.guide section { padding: 40px 0 8px; }
.guide h1 { font-size: clamp(30px, 5vw, 50px); }
.guide h2 { font-size: clamp(22px, 3vw, 28px); margin-bottom: 14px; }
.guide .lede { margin: 18px 0 24px; font-size: 18px; }
.guide a { text-decoration: none; }
.guide a:hover { text-decoration: underline; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.crumbs { color: var(--muted); font-size: 14px; margin: 0 0 24px; overflow-wrap: anywhere; }
.crumbs a { color: var(--muted); }
.crumbs span { opacity: .5; margin: 0 4px; }
.crumbs b { color: var(--fg); font-weight: 600; }
.mini-card {
  display: inline-grid; place-items: center; flex: none; vertical-align: -4px;
  width: 16px; height: 22px; border-radius: 4px; margin-right: 8px;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.14) 0 4px, transparent 4px 8px), linear-gradient(160deg, var(--c1), var(--c2));
  color: #fff; font: 400 26px var(--display); text-shadow: 0 2px 8px rgba(0,0,0,.35);
}
.set-head { display: flex; align-items: center; gap: 20px; }
.set-head .mini-card { width: 76px; height: 104px; border-radius: 12px; margin: 0; box-shadow: 0 14px 30px rgba(0,0,0,.4); }
.set-head .eyebrow { margin: 0 0 8px; }
.set-head .eyebrow a { color: var(--pink); }
.set-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.set-tile {
  display: flex; flex-direction: column; justify-content: flex-end; min-height: 110px; padding: 16px;
  border-radius: 18px; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.4);
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.08) 0 8px, transparent 8px 16px), linear-gradient(160deg, var(--c1), var(--c2));
}
.set-tile b { font: 400 17px/1.15 var(--display); }
.set-tile span { font-size: 14px; font-weight: 600; opacity: .9; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); }
.guide table { width: 100%; border-collapse: collapse; font-size: 15px; }
.guide th { text-align: left; color: var(--muted); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.guide th, .guide td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.guide tr:last-child td { border-bottom: 0; }
.guide td.num { color: var(--muted); font-variant-numeric: tabular-nums; }
.guide td a b { color: var(--fg); }
.route tr.skip td { color: var(--muted); opacity: .7; }
.badge { display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; vertical-align: 1px; }
.badge.confirmed { background: rgba(46, 230, 196, .16); color: var(--teal); }
.badge.reported { background: rgba(255, 201, 77, .16); color: var(--gold); }
.badge.disputed, .badge.gate { background: rgba(255, 79, 139, .18); color: var(--pink); }
.spot { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 22px 24px; margin: 24px 0; }
.spot h2 { margin-bottom: 8px; }
.spot p { margin: 8px 0 0; }
.hint { font-size: 19px; }
.warn { border-left: 3px solid var(--pink); padding: 8px 14px; background: rgba(255, 79, 139, .08); border-radius: 0 10px 10px 0; }
.pager { display: flex; justify-content: space-between; gap: 16px; margin: 8px 0; font-weight: 600; }
.gated, .nearby, .facts, .area-set ul { padding-left: 20px; }
.gated li, .nearby li, .facts li, .area-set li { margin: 8px 0; }
.area-list { list-style: none; padding: 0; columns: 3 200px; column-gap: 24px; }
.area-list li { margin: 0 0 6px; break-inside: avoid; }
.area-set h2 a { color: var(--fg); }
.app-cta {
  display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center;
  margin: 56px 0 0; padding: 28px; border-radius: 28px;
  background: linear-gradient(170deg, #2e2540, var(--panel) 60%); border: 1px solid rgba(255, 201, 77, .45);
}
.app-cta img { border-radius: 16px; }
.app-cta h2 { font-size: 24px; margin: 0 0 6px; }
.app-cta p { color: var(--muted); margin: 0; }
@media (max-width: 760px) {
  .app-cta { grid-template-columns: 1fr; justify-items: start; }
  .guide table.cards thead { display: none; }
  .guide table.cards tr { display: grid; grid-template-columns: 32px 1fr; padding: 10px 4px; border-bottom: 1px solid var(--line); }
  .guide table.cards td { border: 0; padding: 2px 8px; }
  .guide table.cards td:nth-child(n+3) { grid-column: 2; }
  .guide table.cards tr:last-child { border-bottom: 0; }
  .set-head .mini-card { width: 56px; height: 78px; font-size: 20px; }
}
