:root {
  --bg: #080808;
  --surface: #111111;
  --surface-2: #171717;
  --surface-3: #1f1f1f;
  --text: #f7f3e8;
  --muted: #aaa69b;
  --line: rgba(218, 175, 55, .18);
  --gold: #d4af37;
  --gold-2: #f2c94c;
  --gold-soft: rgba(212, 175, 55, .12);
  --good: #54d38a;
  --warn: #f0b84b;
  --bad: #e96b6b;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(0,0,0,.38);
  --max: 980px;
}

* { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 50% -10%, rgba(212,175,55,.10), transparent 34rem),
    linear-gradient(180deg, #0a0a0a 0%, #080808 100%);
  color: var(--text);
}

button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }

.shell { min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px max(18px, env(safe-area-inset-left));
  background: rgba(8,8,8,.88); backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  border: 0; background: transparent; color: var(--text);
  font-weight: 800; letter-spacing: .17em; font-size: .94rem;
}
.brand-mark {
  display: grid; place-items: center; width: 32px; height: 32px;
  border: 1px solid var(--gold); border-radius: 50%;
  color: var(--gold); font-weight: 800; letter-spacing: 0;
}
.topbar-right { display: flex; align-items: center; gap: 10px; }
.beta-pill, .countdown {
  border: 1px solid rgba(212,175,55,.32);
  background: var(--gold-soft); color: var(--gold-2);
  border-radius: 999px; padding: 7px 10px;
  font-size: .68rem; font-weight: 800; letter-spacing: .08em;
}
.icon-button {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.11); background: var(--surface);
  color: var(--text);
}
.app { width: min(100%, var(--max)); margin: 0 auto; padding: 28px 18px 60px; flex: 1; }

.hero { padding: 28px 0 12px; }
.eyebrow {
  margin: 0 0 10px; color: var(--gold-2);
  text-transform: uppercase; letter-spacing: .15em;
  font-size: .76rem; font-weight: 800;
}
h1, h2, h3 { margin: 0; line-height: 1.08; }
h1 { font-size: clamp(2.25rem, 8vw, 4.7rem); max-width: 860px; letter-spacing: -.04em; }
h2 { font-size: clamp(1.55rem, 5vw, 2.5rem); letter-spacing: -.03em; }
h3 { font-size: 1.08rem; }
.gold { color: var(--gold-2); }
.lead { color: #d6d2c8; max-width: 710px; font-size: 1.02rem; line-height: 1.7; margin: 18px 0 0; }
.muted { color: var(--muted); }
.small { font-size: .84rem; }
.center { text-align: center; }
.hidden { display: none !important; }

.grid { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 720px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

.card {
  background: linear-gradient(180deg, rgba(22,22,22,.96), rgba(14,14,14,.96));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.card.gold-edge { border-color: rgba(212,175,55,.35); }
.card.compact { padding: 15px; box-shadow: none; }
.section { margin-top: 28px; }
.section-head { display:flex; align-items:end; justify-content:space-between; gap:14px; margin-bottom:14px; }
.kicker { color: var(--gold-2); font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }

.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.actions.center { justify-content: center; }
.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  min-height: 48px; padding: 0 18px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,.10);
  background: var(--surface-2); color: var(--text);
  font-weight: 800; text-decoration: none;
}
.btn.primary {
  background: linear-gradient(135deg, #b88a19, #f0c95b);
  color: #0b0b0b; border-color: transparent;
  box-shadow: 0 12px 30px rgba(212,175,55,.18);
}
.btn.secondary { border-color: rgba(212,175,55,.38); color: var(--gold-2); background: transparent; }
.btn.ghost { background: transparent; }
.btn.danger { border-color: rgba(233,107,107,.35); color: #ff9d9d; }
.btn.full { width:100%; }

.badge {
  display:inline-flex; align-items:center; gap:6px; padding:5px 9px;
  border-radius:999px; font-size:.72rem; font-weight:800;
  background:rgba(255,255,255,.07); color:#ddd;
}
.badge.good { background: rgba(84,211,138,.12); color: #7ce3a4; }
.badge.warn { background: rgba(240,184,75,.12); color: #f4ca72; }
.badge.gold { background: var(--gold-soft); color: var(--gold-2); }

.price {
  font-size: 2rem; font-weight: 900; letter-spacing: -.04em;
  margin: 12px 0 2px;
}
.plan-card { position: relative; }
.plan-card.recommended::before {
  content:"BEST VALUE"; position:absolute; top:12px; right:12px;
  color:#101010; background:var(--gold-2); padding:5px 8px;
  border-radius:999px; font-size:.62rem; font-weight:900; letter-spacing:.08em;
}
.clean-list { list-style:none; padding:0; margin:14px 0 0; display:grid; gap:9px; color:#cec9bf; }
.clean-list li::before { content:"✓"; color:var(--gold-2); margin-right:8px; font-weight:900; }

.notice {
  border-left: 3px solid var(--gold);
  background: rgba(212,175,55,.08);
  padding: 14px 16px; border-radius: 8px 14px 14px 8px;
  color: #d8d2c6; line-height:1.55;
}
.notice.warning { border-left-color: var(--warn); background: rgba(240,184,75,.08); }
.notice.danger { border-left-color: var(--bad); background: rgba(233,107,107,.08); }

.form { display:grid; gap:14px; margin-top:18px; }
.field { display:grid; gap:7px; }
.field label { font-size:.82rem; font-weight:800; color:#d9d4c9; }
.input, .textarea, .select {
  width:100%; min-height:48px; border-radius:12px;
  border:1px solid rgba(255,255,255,.11); background:#0d0d0d;
  color:var(--text); padding:12px 13px; outline:none;
}
.textarea { min-height:110px; resize:vertical; }
.input:focus, .textarea:focus, .select:focus { border-color:rgba(212,175,55,.65); box-shadow:0 0 0 3px rgba(212,175,55,.08); }
.check { display:flex; align-items:flex-start; gap:10px; color:#d4cec3; line-height:1.45; }
.check input { margin-top:3px; accent-color:var(--gold); }

.progress {
  height: 8px; border-radius:999px; background:#1b1b1b; overflow:hidden; margin:16px 0 8px;
}
.progress > span { display:block; height:100%; background:linear-gradient(90deg, #a77d17, #f2c94c); border-radius:999px; }
.step-meta { display:flex; justify-content:space-between; gap:12px; color:var(--muted); font-size:.75rem; }

.option-grid { display:grid; gap:10px; margin-top:16px; }
.option {
  display:flex; align-items:center; justify-content:space-between; gap:14px;
  text-align:left; padding:15px; border-radius:14px; color:var(--text);
  background:#111; border:1px solid rgba(255,255,255,.09);
}
.option:hover, .option.selected { border-color:rgba(212,175,55,.55); background:rgba(212,175,55,.06); }
.option strong { display:block; }
.option span { color:var(--muted); font-size:.82rem; margin-top:3px; display:block; }

.metric-row { display:grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap:10px; }
.metric { padding:14px; border-radius:14px; background:#0e0e0e; border:1px solid rgba(255,255,255,.07); }
.metric b { display:block; font-size:1.28rem; margin-top:4px; color:var(--gold-2); }
@media (max-width: 620px) { .metric-row { grid-template-columns: repeat(2,minmax(0,1fr)); } }

.path-card { display:grid; gap:13px; }
.path-top { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; }
.path-title { display:flex; gap:10px; align-items:center; }
.path-icon {
  width:42px; height:42px; border-radius:50%; flex:0 0 42px;
  display:grid; place-items:center; border:1px solid rgba(212,175,55,.55);
  background:radial-gradient(circle, rgba(212,175,55,.14), transparent 68%);
  color:var(--gold-2); font-weight:900;
}
.range { color:var(--gold-2); font-weight:900; }
.tags { display:flex; flex-wrap:wrap; gap:6px; }

.reality {
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  background:#0f0f0f; border:1px solid rgba(255,255,255,.07);
  border-radius:14px; padding:14px;
}
.reality strong { color:var(--gold-2); }

.loading-wrap { min-height:55vh; display:grid; place-items:center; text-align:center; }
.spinner {
  width:66px; height:66px; border-radius:50%;
  border:3px solid rgba(255,255,255,.10); border-top-color:var(--gold-2);
  animation:spin 1s linear infinite; margin:0 auto 18px;
}
@keyframes spin { to { transform:rotate(360deg); } }

.timeline { display:grid; gap:10px; }
.timeline-item {
  display:grid; grid-template-columns:32px 1fr; gap:10px; align-items:start;
}
.timeline-dot {
  width:28px; height:28px; border-radius:50%; display:grid; place-items:center;
  background:var(--gold-soft); border:1px solid rgba(212,175,55,.35); color:var(--gold-2); font-size:.75rem; font-weight:900;
}

.modal-backdrop {
  position:fixed; inset:0; z-index:100; padding:18px;
  background:rgba(0,0,0,.76); display:grid; place-items:center;
}
.modal {
  width:min(100%, 680px); max-height:88vh; overflow:auto;
  background:#101010; border:1px solid rgba(255,255,255,.10);
  border-radius:20px; padding:20px; box-shadow:0 30px 80px rgba(0,0,0,.65);
}
.modal-head { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:14px; }
.close {
  width:38px; height:38px; border-radius:50%; border:1px solid rgba(255,255,255,.12); background:#171717; color:white;
}

.setup-bar {
  margin: 0 auto 18px; width:min(100%, var(--max));
  background:rgba(240,184,75,.08); border:1px solid rgba(240,184,75,.22);
  border-radius:14px; padding:12px 14px; color:#eed7a8;
  display:flex; align-items:center; justify-content:space-between; gap:12px;
}
.setup-bar button { white-space:nowrap; }

.footer {
  display:flex; flex-wrap:wrap; justify-content:center; align-items:center; gap:9px 18px;
  padding:20px max(18px, env(safe-area-inset-left)) calc(20px + env(safe-area-inset-bottom));
  color:#77736b; font-size:.72rem; border-top:1px solid rgba(255,255,255,.05);
}
.footer-links { display:flex; flex-wrap:wrap; gap:10px; }
.footer-links button { color:#8e897f; background:transparent; border:0; padding:0; font-size:inherit; text-decoration:underline; }

pre.json {
  white-space:pre-wrap; overflow-wrap:anywhere; background:#070707; border:1px solid rgba(255,255,255,.08);
  border-radius:12px; padding:12px; color:#d6d1c7; font-size:.72rem;
}
