/* Baton purchase site — self-contained styles, dark-first, theme-aware. */

:root {
  --bg: #0d0f12;
  --bg-elev: #16191f;
  --bg-card: #1b1f27;
  --border: #2a2f3a;
  --text: #e8eaed;
  --text-dim: #a2a9b4;
  --text-faint: #6b7280;
  --accent: #4f8cff;
  --accent-hover: #6ba0ff;
  --accent-contrast: #ffffff;
  --ok: #3fb950;
  --warn: #d29922;
  --err: #f85149;
  --radius: 14px;
  --maxw: 960px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "SFMono-Regular", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f7f9;
    --bg-elev: #ffffff;
    --bg-card: #ffffff;
    --border: #e2e5ea;
    --text: #14171c;
    --text-dim: #4c545f;
    --text-faint: #8a929c;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  position: sticky;
  top: 0;
  backdrop-filter: saturate(180%) blur(12px);
  z-index: 10;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 18px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 26px; height: 26px; border-radius: 7px;
  background: linear-gradient(135deg, var(--accent), #9b6bff);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 15px;
}
.nav-cta {
  font-size: 14px; font-weight: 600;
  padding: 8px 16px; border-radius: 9px;
  background: var(--accent); color: var(--accent-contrast);
}
.nav-cta:hover { background: var(--accent-hover); text-decoration: none; color: #fff; }

/* Hero */
.hero { padding: 88px 0 56px; text-align: center; }
.hero h1 {
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  font-weight: 750;
}
.hero .lede {
  font-size: clamp(17px, 2.4vw, 21px);
  color: var(--text-dim);
  max-width: 640px;
  margin: 0 auto 32px;
}
.badge-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.badge {
  font-size: 13px; color: var(--text-dim);
  border: 1px solid var(--border); border-radius: 999px;
  padding: 6px 14px; background: var(--bg-elev);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font); font-size: 16px; font-weight: 650;
  padding: 14px 28px; border-radius: 11px; border: 1px solid transparent;
  cursor: pointer; transition: background .15s, transform .05s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-contrast); }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-ghost { background: var(--bg-elev); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--text); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* Sections */
section { padding: 56px 0; }
.section-title { font-size: 28px; letter-spacing: -0.01em; margin: 0 0 8px; text-align: center; }
.section-sub { color: var(--text-dim); text-align: center; margin: 0 auto 40px; max-width: 560px; }

/* Feature grid */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.feature {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
}
.feature h3 { margin: 0 0 8px; font-size: 17px; }
.feature p { margin: 0; color: var(--text-dim); font-size: 15px; }
.feature .ico { font-size: 22px; margin-bottom: 12px; display: block; }

/* Pricing */
.pricing { display: flex; justify-content: center; }
.price-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 18px; padding: 40px; max-width: 420px; width: 100%;
  text-align: center; box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}
.price-card .amount { font-size: 52px; font-weight: 750; letter-spacing: -0.02em; }
.price-card .amount small { font-size: 18px; color: var(--text-faint); font-weight: 500; }
.price-card .price-note { color: var(--text-dim); margin: 6px 0 26px; font-size: 15px; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 28px; text-align: left; }
.price-card li { padding: 7px 0 7px 28px; position: relative; color: var(--text-dim); }
.price-card li::before {
  content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700;
}
.price-card .btn { width: 100%; }
.fineprint { color: var(--text-faint); font-size: 13px; margin-top: 16px; }

/* Panels (success / download / recover) */
.panel {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 18px; padding: 40px; max-width: 620px; margin: 0 auto;
}
.panel h1 { font-size: 30px; margin: 0 0 12px; letter-spacing: -0.01em; }
.panel p { color: var(--text-dim); }
.panel .lead { font-size: 18px; color: var(--text); }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 24px 0; }
.steps li { position: relative; padding: 0 0 18px 44px; color: var(--text-dim); }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.steps code, .panel code {
  font-family: var(--mono); font-size: 13px;
  background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: 6px; padding: 2px 6px;
}

/* Forms */
.form-row { display: flex; gap: 10px; margin: 18px 0 6px; flex-wrap: wrap; }
.form-row input {
  flex: 1 1 220px; min-width: 0;
  font-family: var(--font); font-size: 15px;
  padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--bg-elev); color: var(--text);
}
.form-row input:focus { outline: none; border-color: var(--accent); }
.notice { border-radius: 10px; padding: 12px 16px; margin: 16px 0; font-size: 15px; display: none; }
.notice.show { display: block; }
.notice.ok { background: color-mix(in srgb, var(--ok) 14%, transparent); border: 1px solid var(--ok); }
.notice.err { background: color-mix(in srgb, var(--err) 14%, transparent); border: 1px solid var(--err); }
.notice.info { background: var(--bg-elev); border: 1px solid var(--border); color: var(--text-dim); }

details.recover { margin-top: 28px; border-top: 1px solid var(--border); padding-top: 20px; }
details.recover summary { cursor: pointer; color: var(--text-dim); font-size: 15px; }
details.recover summary:hover { color: var(--text); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border); padding: 32px 0; margin-top: 40px;
  color: var(--text-faint); font-size: 14px;
}
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.site-footer a { color: var(--text-dim); }

.center { text-align: center; }
.mt-24 { margin-top: 24px; }
