:root {
  --bg: #15122e;
  --bg-2: #1b1740;
  --card: #221d4a;
  --card-2: #2a2459;
  --line: rgba(185, 167, 255, 0.24);
  --text: #eeebff;
  --muted: #bab4dc;
  --lilac: #b9a7ff;
  --coral: #ff8fa3;
  --font: Seravek, "Trebuchet MS", "Segoe UI", Ubuntu, sans-serif;
  --radius: 22px;
  --gutter: clamp(16px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--font);
  background:
    radial-gradient(900px 600px at 85% -10%, rgba(185, 167, 255, 0.18), transparent 60%),
    radial-gradient(700px 500px at -10% 30%, rgba(255, 143, 163, 0.10), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
[hidden] { display: none !important; }
a { color: var(--lilac); text-underline-offset: 0.2em; }
a:hover { color: var(--coral); }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 6px; }
[tabindex="-1"]:focus { outline: none; }

.skip { position: absolute; left: var(--gutter); top: -80px; background: var(--coral); color: var(--bg); padding: 0.6rem 1rem; border-radius: 10px; z-index: 20; font-weight: 700; }
.skip:focus { top: 12px; }

.eyebrow {
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--lilac);
}

/* Header */
.site-header {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem;
  max-width: 1200px; margin: 0 auto; padding: 20px var(--gutter);
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.2rem; }
.brand:hover { color: var(--text); }
.brand-icon { width: 32px; height: 32px; }
.tld { color: var(--coral); }
.site-header ul { display: flex; gap: 0.25rem; margin: 0; padding: 0; list-style: none; }
.site-header nav a {
  display: inline-block; padding: 0.45rem 0.9rem; border-radius: 999px;
  color: var(--text); text-decoration: none; font-weight: 600; font-size: 0.95rem;
}
.site-header nav a:hover { background: var(--card); color: var(--text); }

/* Hero + wizard */
.hero {
  max-width: 1200px; margin: 0 auto; padding: clamp(24px, 5vw, 72px) var(--gutter) clamp(56px, 8vw, 110px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 72px); align-items: start;
}
.hero-copy { padding-top: clamp(0px, 3vw, 40px); }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.9rem); letter-spacing: -0.02em; margin: 0.9rem 0 1.25rem; }
.lede { color: var(--muted); font-size: 1.15rem; max-width: 38ch; }
.promises { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; gap: 0.6rem; }
.promises li { display: flex; gap: 0.6rem; align-items: baseline; }
.promises li::before { content: ""; flex: none; width: 0.55rem; height: 0.55rem; border-radius: 3px; background: var(--coral); transform: translateY(-1px); }

.wizard {
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px);
  padding: clamp(20px, 3vw, 32px);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.wizard-top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.wizard h2 { font-size: 1.35rem; }
.progress-text { color: var(--muted); font-size: 0.9rem; }
.progress { height: 6px; border-radius: 999px; background: rgba(185, 167, 255, 0.16); margin: 0.9rem 0 1.5rem; overflow: hidden; }
.progress span { display: block; height: 100%; width: 25%; border-radius: inherit; background: linear-gradient(90deg, var(--lilac), var(--coral)); transition: width 0.35s ease; }
.noscript { color: var(--muted); }

fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { font-size: clamp(1.35rem, 2.6vw, 1.75rem); font-weight: 700; letter-spacing: -0.01em; margin-bottom: 1rem; padding: 0; }
.choices { display: grid; gap: 0.7rem; }
.choice {
  display: flex; gap: 0.9rem; align-items: flex-start;
  padding: 1rem 1.1rem; border-radius: var(--radius);
  background: rgba(21, 18, 46, 0.55); border: 1.5px solid var(--line);
  cursor: pointer; transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.choice:hover { border-color: var(--lilac); transform: translateY(-1px); }
.choice:has(input:checked) { border-color: var(--coral); background: rgba(255, 143, 163, 0.10); }
.choice:has(input:focus-visible) { outline: 3px solid var(--coral); outline-offset: 2px; }
.choice input {
  appearance: none; -webkit-appearance: none; flex: none; margin: 0.2rem 0 0;
  width: 1.25rem; height: 1.25rem; border-radius: 50%; border: 2px solid var(--lilac); background: transparent;
}
.choice input:checked { border-color: var(--coral); box-shadow: inset 0 0 0 4px var(--bg), inset 0 0 0 10px var(--coral); }
.choice input:focus-visible { outline: none; }
.choice strong { display: block; font-size: 1.05rem; }
.choice small { display: block; color: var(--muted); font-size: 0.95rem; margin-top: 0.1rem; }

.error { min-height: 1.6em; margin-top: 0.75rem; color: var(--coral); font-weight: 600; }
.wizard-actions { display: flex; justify-content: space-between; gap: 0.75rem; margin-top: 0.25rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0.7rem 1.4rem; border-radius: 999px; border: 0;
  background: var(--coral); color: var(--bg); font: 700 1rem/1 var(--font); cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgba(255, 143, 163, 0.7); }
.btn-ghost { background: transparent; color: var(--text); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--lilac); box-shadow: none; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }

.result { display: grid; gap: 1rem; }
.result .type { background: rgba(21, 18, 46, 0.55); }
.result .type.is-primary { border-color: var(--coral); }
.next-step { padding: 1.1rem 1.2rem; border-radius: var(--radius); background: rgba(185, 167, 255, 0.10); border: 1px dashed var(--line); }
.next-step h3 { font-size: 1rem; color: var(--lilac); margin-bottom: 0.35rem; }
.result .btn-ghost { justify-self: start; }

/* Sections */
.types, .habits { max-width: 1200px; margin: 0 auto; padding: clamp(56px, 8vw, 110px) var(--gutter); }
.section-head { max-width: 640px; margin-bottom: 2.25rem; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); letter-spacing: -0.02em; margin: 0.7rem 0 0.9rem; }
.section-head p:not(.eyebrow) { color: var(--muted); font-size: 1.1rem; }

.type-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 1rem; }
.type {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(20px, 2.5vw, 28px); display: flex; flex-direction: column; gap: 0.75rem;
}
.type-icon { width: 44px; height: 44px; fill: none; stroke: var(--lilac); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.type h3 { font-size: 1.35rem; }
.what { color: var(--text); }
.lists { display: grid; gap: 0.9rem; margin-top: 0.25rem; }
.lists h4 { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--lilac); margin-bottom: 0.35rem; }
.lists div:last-child h4 { color: var(--coral); }
.lists ul { margin: 0; padding-left: 1.15rem; color: var(--muted); display: grid; gap: 0.3rem; }

.habit-list { list-style: none; margin: 0; padding: 0; counter-reset: habit; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 1rem; }
.habit-list li {
  counter-increment: habit; position: relative;
  padding: 3.6rem 1.25rem 1.4rem; border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(185, 167, 255, 0.14), rgba(34, 29, 74, 0.4));
  border: 1px solid var(--line);
}
.habit-list li::before {
  content: counter(habit); position: absolute; top: 1.1rem; left: 1.25rem;
  width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--coral); color: var(--bg); font-weight: 700;
}
.habit-list h3 { font-size: 1.1rem; margin-bottom: 0.45rem; }
.habit-list p { color: var(--muted); }

.site-footer {
  max-width: 1200px; margin: 0 auto; padding: 2rem var(--gutter) 3rem;
  border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem;
  color: var(--muted); font-size: 0.95rem;
}
.site-footer strong { color: var(--text); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .site-header nav a { padding: 0.45rem 0.6rem; }
  .wizard-actions .btn { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .choice:hover, .btn:hover { transform: none; }
}
