:root {
  --bg: #0B1220;
  --bg2: #111A2E;
  --bg3: #18243F;
  --text: #F1F5FB;
  --text2: #A8B5CB;
  --muted: #6B7993;
  --accent: #0F766E;
  --accent-2: #14B8A6;
  --accent-hover: #14B8A6;
  --accent-soft: rgba(15, 118, 110, 0.12);
  --border: #1F2D4C;
  --border-soft: #18243F;
  --success: #4DD67A;
  --error: #FF6F8B;
  --warn: #F59E0B;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  background-image: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(15, 118, 110, 0.15), transparent 60%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* Header */
.header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 0;
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 18, 32, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
}
.header .logo {
  font-size: 22px; font-weight: 800; color: var(--text);
  display: flex; align-items: center; gap: 8px;
}
.header .logo::before {
  content: ""; display: inline-block;
  width: 22px; height: 22px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  border-radius: 6px;
}
.header nav { display: flex; align-items: center; gap: 28px; }
.header nav a { color: var(--text2); font-size: 14px; font-weight: 500; }
.header nav a:hover { color: var(--text); text-decoration: none; }
.header .login-btn {
  padding: 10px 22px; border-radius: 12px;
  background: var(--accent); color: #fff;
  font-weight: 600; font-size: 14px; border: none; cursor: pointer;
  transition: background 0.2s;
}
.header .login-btn:hover { background: var(--accent-hover); text-decoration: none; }

@media (max-width: 700px) {
  .header nav { display: none; }
}

/* Hero */
.hero {
  text-align: center;
  padding: 64px 0 40px;
}
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600;
  color: var(--accent-2);
  background: var(--accent-soft);
  border: 1px solid rgba(20, 184, 166, 0.25);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.hero h1 .accent {
  background: linear-gradient(135deg, var(--accent-2), #5EEAD4);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p {
  font-size: 19px; color: var(--text2);
  max-width: 640px; margin: 0 auto 36px;
  line-height: 1.55;
}
.hero .cta-row {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}
.cta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 30px; border-radius: 14px;
  background: var(--accent); color: #fff;
  font-weight: 700; font-size: 17px; border: none; cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.cta-btn:hover { background: var(--accent-hover); text-decoration: none; transform: translateY(-1px); }
.cta-btn.secondary {
  background: transparent; color: var(--text);
  border: 1px solid var(--border);
}
.cta-btn.secondary:hover { background: var(--bg2); }

/* Calculator */
.calc-section { padding: 32px 0 60px; }
.calc-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 32px;
  max-width: 720px; margin: 0 auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}
.calc-card .calc-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px;
  font-size: 13px; color: var(--text2);
}
.calc-card .calc-progress {
  display: flex; gap: 6px;
}
.calc-card .calc-progress span {
  width: 28px; height: 4px; border-radius: 999px;
  background: var(--bg3);
  transition: background 0.3s;
}
.calc-card .calc-progress span.active { background: var(--accent-2); }
.calc-card .question-prompt {
  font-size: 24px; font-weight: 700;
  line-height: 1.25;
  margin-bottom: 24px;
}
.calc-card .answer-options { display: flex; flex-direction: column; gap: 10px; }
.calc-card .answer-options button {
  text-align: left; padding: 16px 20px;
  background: var(--bg3); border: 1px solid var(--border);
  color: var(--text); font-size: 16px; font-weight: 500;
  border-radius: 14px; cursor: pointer;
  transition: all 0.15s;
}
.calc-card .answer-options button:hover {
  border-color: var(--accent-2); background: var(--accent-soft); transform: translateY(-1px);
}
.calc-card .answer-options button.selected {
  border-color: var(--accent-2); background: var(--accent-soft);
}
.calc-card input[type="text"], .calc-card input[type="number"] {
  width: 100%; padding: 16px 20px;
  background: var(--bg3); border: 1px solid var(--border);
  color: var(--text); font-size: 18px; /* 16px+ to avoid iOS zoom */
  border-radius: 14px;
  font-family: inherit;
  outline: none; transition: border 0.15s;
}
.calc-card input[type="text"]:focus, .calc-card input[type="number"]:focus {
  border-color: var(--accent-2);
}
.calc-card .calc-actions {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 24px;
}
.calc-card .calc-actions .back-btn {
  background: transparent; border: none; color: var(--text2);
  font-size: 14px; cursor: pointer;
}
.calc-card .calc-actions .next-btn {
  padding: 12px 28px; border-radius: 12px;
  background: var(--accent); color: #fff;
  font-weight: 600; font-size: 16px; border: none; cursor: pointer;
}
.calc-card .calc-actions .next-btn:disabled {
  opacity: 0.4; cursor: not-allowed;
}

.calc-card .multi-options {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}
.calc-card .multi-options button {
  text-align: center; padding: 14px 14px;
  font-size: 14px; font-weight: 500;
  background: var(--bg3); border: 1px solid var(--border);
  color: var(--text); border-radius: 14px; cursor: pointer;
  transition: all 0.15s; font-family: inherit;
}
.calc-card .multi-options button:hover {
  border-color: var(--accent-2); background: var(--accent-soft); transform: translateY(-1px);
}
.calc-card .multi-options button.selected {
  border-color: var(--accent-2); background: var(--accent-soft); color: var(--text);
}

/* "Not sure" alt button inside calc card */
.calc-card .alt-btn {
  width: 100%; padding: 14px 18px;
  background: transparent; color: var(--text2);
  font-size: 15px; font-weight: 500;
  border: 1px dashed var(--border); border-radius: 14px;
  cursor: pointer; font-family: inherit;
  transition: all 0.15s;
}
.calc-card .alt-btn:hover {
  border-color: var(--accent-2); color: var(--text); background: var(--accent-soft);
}
.calc-card .or-divider {
  text-align: center; margin: 14px 0 10px;
  color: var(--muted); font-size: 13px;
  position: relative;
}
.calc-card .or-divider::before,
.calc-card .or-divider::after {
  content: ""; position: absolute; top: 50%;
  width: calc(50% - 24px); height: 1px; background: var(--border-soft);
}
.calc-card .or-divider::before { left: 0; }
.calc-card .or-divider::after { right: 0; }

/* Result */
.result-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 32px;
  max-width: 920px; margin: 0 auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}
.result-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px; flex-wrap: wrap; gap: 16px;
}
.result-header h2 { font-size: 24px; font-weight: 800; }
.move-score {
  display: inline-flex; flex-direction: column; align-items: center;
  background: var(--accent-soft);
  border: 1px solid rgba(20, 184, 166, 0.3);
  padding: 12px 22px; border-radius: 16px;
}
.move-score .label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text2); }
.move-score .value { font-size: 32px; font-weight: 800; color: var(--accent-2); line-height: 1; }
.move-score .max { font-size: 12px; color: var(--text2); }

.comparison-table {
  width: 100%; border-collapse: collapse;
  margin: 16px 0 24px;
}
.comparison-table th, .comparison-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border-soft);
  font-size: 14px;
}
.comparison-table th {
  color: var(--text2); font-weight: 600; font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.comparison-table td.label { color: var(--text2); font-weight: 500; }
.comparison-table td.delta { font-weight: 600; }
.comparison-table td.delta.positive { color: var(--success); }
.comparison-table td.delta.negative { color: var(--error); }

.narrative {
  background: var(--bg3); border-left: 3px solid var(--accent-2);
  padding: 20px 24px; border-radius: 12px;
  margin: 24px 0; line-height: 1.65;
  color: var(--text);
}
.narrative p + p { margin-top: 12px; }

.equity-callout {
  display: flex; align-items: center; gap: 16px;
  background: linear-gradient(135deg, var(--accent-soft), rgba(20, 184, 166, 0.05));
  border: 1px solid rgba(20, 184, 166, 0.25);
  padding: 20px 24px; border-radius: 16px;
  margin: 16px 0 24px;
}
.equity-callout .icon { font-size: 32px; }
.equity-callout .amount { font-size: 28px; font-weight: 800; color: var(--accent-2); }
.equity-callout .desc { font-size: 13px; color: var(--text2); margin-top: 2px; }

/* How it works */
.how-section { padding: 80px 0; text-align: center; }
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800;
  margin-bottom: 16px; letter-spacing: -0.01em;
}
.section-subtitle {
  font-size: 17px; color: var(--text2);
  max-width: 580px; margin: 0 auto 48px;
}
.how-steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px; text-align: left;
}
.how-step {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 18px; padding: 28px;
}
.how-step .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--accent-soft); color: var(--accent-2);
  font-size: 16px; font-weight: 800;
  margin-bottom: 14px;
}
.how-step h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.how-step p { color: var(--text2); font-size: 15px; line-height: 1.6; }

/* Pricing */
.pricing-section { padding: 80px 0; }
.pricing-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px; max-width: 980px; margin: 0 auto;
}
.tier {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 22px; padding: 32px 28px;
  display: flex; flex-direction: column;
  position: relative;
}
.tier.highlight {
  border-color: var(--accent-2);
  background: linear-gradient(180deg, var(--bg2) 0%, rgba(15, 118, 110, 0.08) 100%);
}
.tier .badge {
  position: absolute; top: -10px; right: 20px;
  background: var(--accent-2); color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 4px 10px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.tier .tier-name { font-size: 14px; color: var(--text2); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.tier .tier-price { font-size: 42px; font-weight: 800; margin: 6px 0 4px; line-height: 1; }
.tier .tier-price .per { font-size: 14px; color: var(--text2); font-weight: 500; }
.tier .tier-desc { font-size: 14px; color: var(--text2); margin-bottom: 20px; }
.tier ul { list-style: none; flex: 1; margin-bottom: 22px; }
.tier li {
  font-size: 14px; color: var(--text); padding: 8px 0;
  display: flex; gap: 10px; align-items: flex-start;
}
.tier li::before { content: "✓"; color: var(--accent-2); font-weight: 700; flex-shrink: 0; }
.tier .tier-btn {
  padding: 14px 20px; border-radius: 12px;
  background: var(--bg3); color: var(--text);
  font-weight: 600; font-size: 15px;
  border: 1px solid var(--border);
  cursor: pointer; transition: all 0.15s; width: 100%;
  font-family: inherit;
}
.tier.highlight .tier-btn {
  background: var(--accent); border-color: var(--accent); color: #fff;
}
.tier .tier-btn:hover {
  border-color: var(--accent-2); transform: translateY(-1px);
}

/* Stats strip */
.stats { padding: 40px 0; text-align: center; }
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px; max-width: 900px; margin: 0 auto;
}
.stat .value { font-size: clamp(28px, 4vw, 36px); font-weight: 800; color: var(--accent-2); }
.stat .label { font-size: 13px; color: var(--text2); margin-top: 4px; }

/* FAQ */
.faq-section { padding: 60px 0 80px; max-width: 800px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border-soft);
  padding: 18px 0;
}
.faq-item summary {
  font-size: 17px; font-weight: 600;
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; color: var(--accent-2);
  font-size: 22px; font-weight: 400;
  transition: transform 0.2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  margin-top: 12px; color: var(--text2); line-height: 1.65;
}

/* Standalone waitlist */
.waitlist-section { padding: 40px 0 60px; }
.waitlist-card {
  background: linear-gradient(135deg, var(--bg2), rgba(15, 118, 110, 0.06));
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 40px 32px;
  text-align: center;
  max-width: 640px; margin: 0 auto;
}
.waitlist-card h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  font-weight: 800;
  margin-bottom: 10px;
}
.waitlist-card p {
  color: var(--text2); font-size: 16px;
  max-width: 480px; margin: 0 auto 20px;
}
.waitlist-form {
  display: flex; gap: 8px;
  max-width: 480px; margin: 0 auto;
}
.waitlist-form input {
  flex: 1; padding: 14px 18px;
  background: var(--bg3); border: 1px solid var(--border);
  color: var(--text); font-size: 16px; border-radius: 12px;
  outline: none; font-family: inherit;
}
.waitlist-form input:focus { border-color: var(--accent-2); }
.waitlist-form button {
  padding: 14px 22px; border-radius: 12px;
  background: var(--accent); color: #fff;
  font-weight: 600; font-size: 15px; border: none; cursor: pointer;
  font-family: inherit;
}
.waitlist-form button:hover { background: var(--accent-hover); }
.waitlist-form button:disabled { opacity: 0.5; cursor: not-allowed; }
.waitlist-status {
  margin-top: 14px; font-size: 14px; min-height: 20px;
  color: var(--text2);
}
.waitlist-status.success { color: var(--success); }
.waitlist-status.error { color: var(--error); }
@media (max-width: 560px) {
  .waitlist-form { flex-direction: column; }
}

/* Footer */
.footer {
  text-align: center; padding: 40px 0;
  border-top: 1px solid var(--border);
  color: var(--muted); font-size: 13px;
}
.footer a { color: var(--muted); margin: 0 12px; }
.footer a:hover { color: var(--text2); }

/* Loading spinner */
.spinner {
  display: inline-block; width: 18px; height: 18px;
  border: 2px solid var(--text2); border-top-color: transparent;
  border-radius: 50%; animation: spin 0.8s linear infinite;
  vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Email gate */
.email-gate {
  text-align: center;
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.06), rgba(20, 184, 166, 0.03));
  border: 1px solid rgba(20, 184, 166, 0.18);
  padding: 28px; border-radius: 18px; margin-top: 20px;
}
.email-gate h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.email-gate p { color: var(--text2); font-size: 15px; margin-bottom: 18px; }
.email-gate .email-row {
  display: flex; gap: 8px; max-width: 460px; margin: 0 auto;
}
.email-gate input {
  flex: 1; padding: 14px 18px;
  background: var(--bg3); border: 1px solid var(--border);
  color: var(--text); font-size: 16px; border-radius: 12px;
  outline: none;
}
.email-gate input:focus { border-color: var(--accent-2); }
.email-gate button {
  padding: 14px 22px; border-radius: 12px;
  background: var(--accent); color: #fff;
  font-weight: 600; font-size: 15px; border: none; cursor: pointer;
}
.email-gate button:hover { background: var(--accent-hover); }

.hidden { display: none !important; }
