/* Blitz Clock — shared marketing-site styles (dark only).
   Casual, friendly, big-button design. Gold matches the app screens
   (--gold is the same #ffc93c the join/display screens use). */

:root {
  --bg: #0b0e14;
  --card: #12161f;
  --card-2: #191f2c;
  --edge: rgba(238, 241, 246, .10);
  --edge-strong: rgba(238, 241, 246, .20);
  --text: #eef1f6;
  --dim: #9aa4b5;
  --gold: #ffc93c;
  --gold-hot: #ffd23f;
  --on-gold: #1a1300;
  --mono: ui-monospace, "SF Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  --maxw: 1060px;
  color-scheme: dark;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { text-wrap: balance; font-weight: 800; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { padding: clamp(44px, 8vw, 88px) 0; }
.band { background: var(--card); border-top: 1px solid var(--edge); border-bottom: 1px solid var(--edge); }
.center { text-align: center; }
.dim { color: var(--dim); }
.tabular { font-variant-numeric: tabular-nums; }

::selection { background: var(--gold); color: var(--on-gold); }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--gold-hot); outline-offset: 3px; border-radius: 4px;
}

/* ---------------- header / nav ---------------- */
header.site {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--edge);
}
.navrow {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 18px;
}
.brand {
  font-weight: 800; letter-spacing: .12em; font-size: 17px;
  display: inline-flex; align-items: center; gap: .4em;
  text-decoration: none; white-space: nowrap;
}
.brand.small { font-size: 14px; }
.brand .bolt-icon { width: 1.35em; height: 1.35em; border-radius: .28em; }
nav.links { display: flex; align-items: center; gap: 26px; white-space: nowrap; }
nav.links a { font-size: 15px; color: var(--dim); text-decoration: none; transition: color .15s; }
nav.links a:hover, nav.links a.active { color: var(--text); }
@media (max-width: 640px) { nav.links { gap: 16px; } nav.links a { font-size: 13.5px; } }
/* Phone-width header: the wordmark text doesn't fit next to the nav and
   CTA — keep just the bolt icon (it links home) and tighten the button. */
@media (max-width: 520px) {
  .navrow { gap: 10px; }
  .brand .brand-word { display: none; }
  .brand .bolt-icon { width: 30px; height: 30px; }
  .navrow .btn-sm { padding: 8px 12px; font-size: 13px; }
}

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 16px;
  padding: 14px 26px; border-radius: 14px; text-decoration: none;
  cursor: pointer; border: 1px solid transparent; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--gold); color: var(--on-gold); }
.btn-primary:hover { box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--gold) 75%, transparent); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--edge-strong); }
.btn-ghost:hover { border-color: var(--gold); }
.btn-sm { padding: 9px 16px; font-size: 14px; border-radius: 10px; }
.btn-xl { font-size: 19px; padding: 18px 36px; border-radius: 16px; }

/* ---------------- hero ---------------- */
.hero { padding: clamp(56px, 10vw, 110px) 0 clamp(36px, 6vw, 64px); text-align: center; }
.hero h1 {
  font-size: clamp(42px, 8vw, 78px);
  line-height: 1.03; letter-spacing: -.01em;
  margin-bottom: 14px;
}
.hero h1 .accent { color: var(--gold); }
.hero .sub { color: var(--dim); font-size: clamp(18px, 2.6vw, 22px); max-width: 34ch; margin: 0 auto 30px; }
.hero .fineprint { font-size: 14px; color: var(--dim); margin-top: 16px; }

/* join-with-code box */
.joinbox {
  display: flex; gap: 8px; justify-content: center; align-items: center;
  margin-top: 34px; flex-wrap: wrap;
}
.joinbox label { color: var(--dim); font-size: 15px; }
.joinbox input {
  background: var(--card); border: 1px solid var(--edge-strong); color: var(--text);
  font-family: var(--mono); font-size: 18px; letter-spacing: .2em; text-transform: uppercase;
  border-radius: 12px; padding: 11px 14px; width: 132px; text-align: center;
}
.joinbox input::placeholder { letter-spacing: .1em; color: var(--dim); opacity: .6; }

/* ---------------- how-it-works infographic ---------------- */
.howit { display: flex; align-items: flex-start; justify-content: center; gap: 8px; margin-top: 44px; flex-wrap: wrap; }
.howit-step { display: flex; flex-direction: column; align-items: center; text-align: center; width: 190px; gap: 12px; }
.howit-icon {
  width: 74px; height: 74px; border-radius: 50%; flex: none;
  background: color-mix(in srgb, var(--gold) 13%, var(--card));
  border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
}
.howit-icon svg { width: 34px; height: 34px; }
.howit-step h3 { font-size: 17px; }
.howit-step p { color: var(--dim); font-size: 14.5px; }
.howit-arrow { font-family: var(--mono); color: var(--edge-strong); font-size: 24px; flex: none; align-self: center; margin-top: 24px; }
@media (max-width: 700px) {
  .howit { flex-direction: column; align-items: center; }
  .howit-arrow { transform: rotate(90deg); margin: -8px 0; }
}

/* ---------------- game-mode cards ---------------- */
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
@media (max-width: 860px) { .modes { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .modes { grid-template-columns: 1fr; } }
.mode-card {
  border: 1px solid var(--edge); border-radius: 16px; padding: 20px;
  background: var(--card); display: flex; align-items: flex-start; gap: 14px;
}
.mode-card .emoji { font-size: 26px; flex: none; line-height: 1.3; }
.mode-card h3 { font-size: 16.5px; margin-bottom: 3px; }
.mode-card p { color: var(--dim); font-size: 14.5px; }

/* ---------------- pricing ---------------- */
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 40px; align-items: stretch; }
@media (max-width: 1000px) { .price-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .price-grid { grid-template-columns: 1fr; } }
.plan {
  border: 1px solid var(--edge-strong); border-radius: 18px; padding: 24px 20px;
  display: flex; flex-direction: column; gap: 14px; background: var(--card);
  position: relative;
}
.plan.featured { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 7%, var(--card)); }
.plan .tag {
  position: absolute; top: -12px; right: 16px; background: var(--gold); color: var(--on-gold);
  font-size: 11px; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; padding: 4px 10px; border-radius: 999px;
}
.plan h3 { font-size: 17px; }
.plan .price { font-family: var(--mono); font-size: 32px; font-weight: 700; }
.plan .price small { font-family: inherit; font-size: 13px; color: var(--dim); font-weight: 500; }
.plan .who { color: var(--dim); font-size: 13.5px; min-height: 2.4em; }
.plan ul { list-style: none; display: flex; flex-direction: column; gap: 9px; font-size: 14px; }
.plan ul li { padding-left: 20px; position: relative; }
.plan ul li::before { content: '✓'; position: absolute; left: 0; color: var(--gold); font-weight: 700; }
.plan .btn { margin-top: auto; }
.billing-toggle {
  display: flex; gap: 6px; background: var(--bg); border: 1px solid var(--edge-strong);
  border-radius: 999px; padding: 3px; width: fit-content;
}
.billing-opt {
  font-size: 12.5px; font-weight: 700;
  padding: 6px 12px; border-radius: 999px; border: none; background: transparent; color: var(--dim);
  cursor: pointer; white-space: nowrap; font-family: inherit;
}
.billing-opt.active { background: var(--gold); color: var(--on-gold); }

/* ---------------- faq ---------------- */
.faq { max-width: 720px; margin: 36px auto 0; }
details { border-bottom: 1px solid var(--edge); padding: 18px 0; }
details summary {
  font-weight: 700; font-size: 16.5px;
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px;
}
details summary::-webkit-details-marker { display: none; }
details summary::after { content: '+'; color: var(--gold); font-family: var(--mono); flex: none; }
details[open] summary::after { content: '−'; }
details p { color: var(--dim); margin-top: 12px; font-size: 15.5px; }

/* ---------------- footer ---------------- */
footer.site {
  border-top: 1px solid var(--edge); padding: 30px 0;
  color: var(--dim); font-size: 13.5px;
}
.footrow { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footlinks { display: flex; gap: 20px; }
.footlinks a { text-decoration: none; color: var(--dim); }
.footlinks a:hover { color: var(--text); }
