/* Stock AI web funnel. Same palette as the app (Shared/Theme.swift), dark
   only like the app, system font so iPhones get SF — the page should feel
   like the app it is selling. */
:root {
  --bg: #07090e;
  --surface: #12151c;
  --raised: #1b1f28;
  --accent: #2dd4bf;
  --accent-soft: rgba(45, 212, 191, 0.16);
  --text: #edf1f8;
  --text-2: rgba(237, 241, 248, 0.62);
  --text-3: rgba(237, 241, 248, 0.38);
  --border: rgba(255, 255, 255, 0.08);
  --action: linear-gradient(135deg, #5eead4, #38bdf8);
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; }

html, body { background: var(--bg); }

body {
  color: var(--text);
  font: 17px/1.45 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}

/* The app's wash: a soft accent glow at the top, never decoration elsewhere. */
body::before {
  content: "";
  position: fixed;
  inset: -20% -20% auto;
  height: 70vh;
  background: radial-gradient(closest-side, rgba(45, 212, 191, 0.20), transparent);
  filter: blur(40px);
  pointer-events: none;
  z-index: -1;
}

main {
  max-width: 480px;
  margin: 0 auto;
  padding: 20px 20px 40px;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.progress {
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin: 4px 0 28px;
}
.progress > i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width 0.35s ease;
}

.step { display: none; flex: 1; flex-direction: column; }
.step.active { display: flex; animation: in 0.3s ease both; }
@keyframes in { from { opacity: 0; transform: translateX(16px); } }
@media (prefers-reduced-motion: reduce) { .step.active { animation: none; } }

.mark { width: 168px; height: auto; margin: 24px auto 8px; display: block; }

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

h1 {
  font-size: clamp(30px, 8.4vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin-bottom: 14px;
}
h2 {
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.015em;
  font-weight: 700;
  margin-bottom: 10px;
}
.lede { color: var(--text-2); margin-bottom: 24px; }
.center { text-align: center; }

.spacer { flex: 1; min-height: 24px; }

/* Primary action: the app's one gradient. */
.cta {
  display: block;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  padding: 17px 20px;
  background: var(--action);
  color: var(--bg);
  font-family: inherit;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(45, 212, 191, 0.32);
  -webkit-tap-highlight-color: transparent;
}
.cta:active { transform: scale(0.98); }
.cta[disabled] { opacity: 0.45; box-shadow: none; }

.secondary {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 15px 20px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.options { display: grid; gap: 10px; }
.option {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  text-align: left;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.option strong { font-weight: 600; }
.option span { color: var(--text-2); font-size: 15px; }
.option:active,
.option.chosen { border-color: rgba(45, 212, 191, 0.65); background: rgba(45, 212, 191, 0.08); }

.card {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 20px;
  padding: 18px;
}

/* The two-chart idea, drawn rather than described. */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0 22px; }
.pair figure { border: 1px solid var(--border); background: var(--surface); border-radius: 16px; padding: 12px; }
.pair figcaption { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 4px; }
.pair b { display: block; font-size: 15px; margin-bottom: 8px; }
.pair svg { width: 100%; height: 64px; display: block; }

.benefits { list-style: none; padding: 0; display: grid; gap: 14px; }
.benefits li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; }
.benefits .dot {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-size: 14px; font-weight: 700;
}
.benefits strong { display: block; font-weight: 600; font-size: 16px; }
.benefits span { color: var(--text-2); font-size: 14px; line-height: 1.4; }

.setup { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.setup small { display: block; color: var(--text-3); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.setup b { font-size: 16px; }
.setup a { color: var(--accent); font-size: 14px; text-decoration: none; }

.plans { display: grid; gap: 9px; margin: 20px 0 16px; }
.plan {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 13px;
  align-items: center;
  padding: 15px 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}
.plan input { position: absolute; opacity: 0; pointer-events: none; }
.plan .radio { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--text-3); }
.plan:has(input:checked) { border: 1.5px solid rgba(45, 212, 191, 0.65); background: rgba(45, 212, 191, 0.08); }
.plan:has(input:checked) .radio { border: 0; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6.5 11.5l3 3 6-7' fill='none' stroke='%2307090e' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.plan:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.plan strong { font-weight: 600; }
.plan .caption { display: block; color: var(--text-2); font-size: 13px; }
.plan .price { font-size: 17px; font-variant-numeric: tabular-nums; }
.badge {
  display: inline-block; margin-left: 6px; padding: 2px 7px; border-radius: 99px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 10px; font-weight: 700; letter-spacing: 0.04em; vertical-align: 2px;
}

.fine { color: var(--text-3); font-size: 12.5px; line-height: 1.5; margin-top: 12px; text-align: center; }
.fine a { color: var(--text-2); }
.note { color: var(--text-2); font-size: 14px; margin-top: 18px; text-align: center; }
.note a { color: var(--accent); }

.loader { display: grid; gap: 14px; margin: 18px 0; }
.loader div { display: flex; align-items: center; gap: 12px; color: var(--text-3); transition: color 0.3s; }
.loader div.done { color: var(--text); }
.loader div::before {
  content: ""; width: 20px; height: 20px; border-radius: 50%;
  border: 1.5px solid var(--text-3); flex: none;
}
.loader div.done::before { border: 0; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.6 2.6L14 7.5' fill='none' stroke='%2307090e' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

.steps-list { list-style: none; padding: 0; display: grid; gap: 14px; margin: 8px 0 22px; counter-reset: s; }
.steps-list li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; counter-increment: s; }
.steps-list li::before {
  content: counter(s); width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent); font-weight: 700;
  display: grid; place-items: center; font-size: 15px;
}
.steps-list strong { display: block; }
.steps-list span { color: var(--text-2); font-size: 15px; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  background: var(--raised); border: 1px solid var(--border);
  padding: 10px 16px; border-radius: 99px; font-size: 14px;
  opacity: 0; transition: opacity 0.2s; pointer-events: none;
}
.toast.show { opacity: 1; }

footer { color: var(--text-3); font-size: 12px; text-align: center; margin-top: 28px; }
footer a { color: var(--text-3); margin: 0 6px; }
