:root {
  --bg: #fbfaff;
  --surface: #ffffff;
  --border: #e8e6f0;
  --ink: #1d1b29;
  --muted: #6b6880;
  --primary: #6c5ce7;
  --primary-dark: #5848c2;
  --primary-light: #efecfd;
  --ok: #00b894;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(29, 27, 41, 0.04), 0 6px 24px rgba(29, 27, 41, 0.06);
  --maxw: 760px;
  --text-sm: 0.875rem;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-size: 16px; line-height: 1.6;
  font-family: "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
.muted { color: var(--muted); }
h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.2; }

/* ── shell ──────────────────────────────────────────────────────────────── */
.app-header {
  position: sticky; top: 0; z-index: 10; background: rgba(251, 250, 255, 0.85);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--border);
}
.app-header .inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0.85rem 1.25rem;
  display: flex; align-items: center; gap: 1rem;
}
.brand { font-weight: 800; font-size: 1.2rem; letter-spacing: -0.03em; }
.brand span { color: var(--primary); }
.brand small { font-weight: 500; font-size: 0.7rem; color: var(--muted); letter-spacing: 0.02em; }
.brand-wrap { display: inline-flex; align-items: center; gap: 0.2rem; }
.pronounce {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.85rem; height: 1.85rem; padding: 0; border: none; background: transparent;
  color: var(--muted); border-radius: 999px; cursor: pointer; line-height: 0;
  transition: color 0.15s ease, background 0.15s ease;
}
.pronounce:hover { color: var(--primary); background: var(--primary-light); }
.pronounce:active { transform: translateY(1px); }
.pronounce:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.grow { flex: 1; }
.main { max-width: var(--maxw); margin: 0 auto; padding: 1.5rem 1.25rem 4rem; }

/* ── buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  font: inherit; font-weight: 650; padding: 0.7rem 1.3rem; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer; transition: transform 0.05s ease, background 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.5; cursor: default; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--primary-dark); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--primary); border-color: var(--border); }
.btn-ghost:hover { background: var(--primary-light); text-decoration: none; }
.btn-lg { padding: 0.9rem 1.8rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ── landing / hero ─────────────────────────────────────────────────────── */
.hero { text-align: center; padding: 2.5rem 0 1.5rem; }
.hero h1 { font-size: clamp(2rem, 6vw, 3rem); margin: 0 0 0.75rem; }
.hero .lede { font-size: 1.15rem; color: var(--muted); max-width: 36rem; margin: 0 auto 1.75rem; }
.eyebrow {
  display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--primary); background: var(--primary-light);
  padding: 0.3rem 0.7rem; border-radius: 999px; margin-bottom: 1rem;
}
.hero-meta { color: var(--muted); font-size: var(--text-sm); margin-top: 0.9rem; }

.section-title { text-align: center; margin: 2.5rem 0 1.25rem; }
.section-title h2 { font-size: 1.6rem; margin: 0 0 0.35rem; }

/* ── pricing grid ───────────────────────────────────────────────────────── */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 680px) { .tiers { grid-template-columns: 1fr; } }
.tier {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.4rem 1.25rem;
  display: flex; flex-direction: column;
}
.tier.featured { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light), var(--shadow); }
.tier .tag {
  position: absolute; top: -0.7rem; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff; font-size: 0.7rem; font-weight: 700;
  padding: 0.2rem 0.7rem; border-radius: 999px; letter-spacing: 0.03em;
}
.tier h3 { margin: 0 0 0.15rem; font-size: 1.15rem; }
.tier .price { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; }
.tier .price small { font-size: 0.8rem; font-weight: 500; color: var(--muted); }
.tier .desc { color: var(--muted); font-size: var(--text-sm); margin: 0.25rem 0 0.9rem; }
.tier ul { list-style: none; padding: 0; margin: 0 0 1.1rem; flex: 1; }
.tier li { padding: 0.3rem 0 0.3rem 1.5rem; position: relative; font-size: 0.92rem; }
.tier li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }
.tier li.off { color: var(--muted); }
.tier li.off::before { content: "·"; color: var(--muted); }

/* ── card ───────────────────────────────────────────────────────────────── */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.4rem 1.5rem;
}
.center { text-align: center; }
.stack > * + * { margin-top: 1rem; }

/* ── assessment flow ────────────────────────────────────────────────────── */
.progress { height: 8px; background: var(--primary-light); border-radius: 999px; overflow: hidden; margin-bottom: 0.5rem; }
.progress > span { display: block; height: 100%; background: var(--primary); border-radius: 999px; transition: width 0.25s ease; }
.progress-label { font-size: var(--text-sm); color: var(--muted); display: flex; justify-content: space-between; margin-bottom: 1.5rem; }

.question { font-size: 1.35rem; font-weight: 650; text-align: center; margin: 1rem 0 1.75rem; min-height: 3.2em; display: grid; place-items: center; }
.likert { display: grid; gap: 0.6rem; }
.likert button {
  font: inherit; text-align: left; padding: 0.9rem 1.1rem; border-radius: 12px;
  border: 1.5px solid var(--border); background: var(--surface); cursor: pointer;
  display: flex; align-items: center; gap: 0.8rem; transition: border-color 0.12s, background 0.12s;
}
.likert button:hover { border-color: var(--primary); }
.likert button[aria-pressed="true"] { border-color: var(--primary); background: var(--primary-light); font-weight: 650; }
.likert .dot { width: 1.1rem; height: 1.1rem; border-radius: 50%; border: 2px solid var(--primary); flex: none; }
.likert button[aria-pressed="true"] .dot { background: var(--primary); box-shadow: inset 0 0 0 3px #fff; }
.flow-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 1.75rem; }

/* ── results ────────────────────────────────────────────────────────────── */
.domain { padding: 1.1rem 0; border-bottom: 1px solid var(--border); }
.domain:last-child { border-bottom: none; }
.domain-head { display: flex; align-items: baseline; gap: 0.6rem; margin-bottom: 0.5rem; }
.domain-head .name { font-weight: 700; font-size: 1.05rem; }
.domain-head .lvl { font-size: var(--text-sm); color: var(--muted); margin-left: auto; }
.bar { height: 12px; border-radius: 999px; background: #eee; overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: 999px; transition: width 0.5s ease; }
.domain .blurb { color: var(--muted); font-size: 0.95rem; margin: 0.5rem 0 0; }

.upsell { margin-top: 1.5rem; background: linear-gradient(135deg, var(--primary), #8e7bf0); color: #fff; border: none; }
.upsell h3 { margin: 0 0 0.3rem; }
.upsell p { margin: 0 0 1rem; opacity: 0.92; }
.upsell .btn-ghost { background: rgba(255,255,255,0.15); color: #fff; border-color: rgba(255,255,255,0.4); }
.upsell .btn-ghost:hover { background: rgba(255,255,255,0.25); }

.state { text-align: center; color: var(--muted); padding: 3rem 1rem; }
.note { padding: 0.7rem 1rem; border-radius: 10px; background: var(--primary-light); color: var(--primary-dark); font-size: var(--text-sm); }
.note.warn { background: #fff3cd; color: #7a5d00; }
.footer { text-align: center; color: var(--muted); font-size: 0.8rem; padding: 2rem 1rem; }
