:root {
  --bg: #120a24;
  --bg-2: #1b1035;
  --card: rgba(255, 255, 255, 0.055);
  --card-brd: rgba(255, 255, 255, 0.12);
  --ink: #f4f0ff;
  --muted: #b3a8d6;
  --accent: #ff5fa2;
  --accent-2: #8b7bff;
  --ok: #57d6a8;
  --err: #ff8095;
  --radius: 20px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: ui-rounded, "SF Pro Rounded", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  display: flex;
  justify-content: center;
  padding: clamp(16px, 4vw, 48px) 16px calc(48px + env(safe-area-inset-bottom));
}

/* Soft animated glow behind everything. */
.aurora {
  position: fixed;
  inset: -30%;
  z-index: -1;
  background:
    radial-gradient(40% 40% at 20% 20%, rgba(255, 95, 162, 0.35), transparent 70%),
    radial-gradient(45% 45% at 80% 15%, rgba(139, 123, 255, 0.35), transparent 70%),
    radial-gradient(50% 50% at 55% 90%, rgba(87, 214, 168, 0.18), transparent 70%),
    linear-gradient(160deg, var(--bg), var(--bg-2));
  filter: blur(20px) saturate(120%);
  animation: drift 22s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: translate3d(-3%, -2%, 0) scale(1.05); }
  to   { transform: translate3d(3%, 2%, 0) scale(1.12); }
}

@media (prefers-reduced-motion: reduce) {
  .aurora { animation: none; }
}

.shell {
  width: 100%;
  max-width: 620px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* --- brand -------------------------------------------------------------- */
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 6px 4px;
}
.brand-mark {
  font-size: 30px;
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 16px;
  background: linear-gradient(140deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 30px rgba(255, 95, 162, 0.35);
}
.brand h1 { margin: 0; font-size: 22px; letter-spacing: -0.02em; }
.brand-sub { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.brand .ghost { margin-left: auto; }

/* --- cards -------------------------------------------------------------- */
.card {
  background: var(--card);
  border: 1px solid var(--card-brd);
  border-radius: var(--radius);
  padding: clamp(20px, 4vw, 32px);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  animation: rise 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
.card.center { text-align: center; }

h2 { margin: 0 0 6px; font-size: 24px; letter-spacing: -0.02em; }
h3 { margin: 0 0 10px; font-size: 15px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
p { line-height: 1.55; }
.muted { color: var(--muted); margin-top: 0; }
.tiny { color: var(--muted); font-size: 12px; margin: 14px 0 0; }
.eyebrow {
  margin: 0 0 6px;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent);
}

/* --- forms -------------------------------------------------------------- */
form { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; text-align: left; }
.field > span { font-size: 14px; font-weight: 600; }
.field em { color: var(--muted); font-weight: 400; font-style: normal; }

input, select {
  width: 100%;
  padding: 13px 15px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--card-brd);
  border-radius: 13px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  appearance: none;
}
select {
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
                    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 40px;
}
option { background: var(--bg-2); color: var(--ink); }
input:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 95, 162, 0.18);
}

button {
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  border-radius: 13px;
  border: 1px solid transparent;
  transition: transform 0.12s, filter 0.15s, background 0.15s;
}
button:active { transform: scale(0.98); }
button:disabled { opacity: 0.55; cursor: progress; }

.primary {
  margin-top: 6px;
  padding: 15px 20px;
  font-size: 16px;
  color: #fff;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  box-shadow: 0 12px 30px rgba(255, 95, 162, 0.32);
}
.primary:hover { filter: brightness(1.08); }

.ghost {
  padding: 9px 14px;
  font-size: 13px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--card-brd);
}
.ghost:hover { color: var(--ink); }

.error { color: var(--err); font-size: 14px; min-height: 18px; margin: 4px 0 0; }

/* --- baton / partner ---------------------------------------------------- */
.baton {
  display: inline-block;
  padding: 6px 13px;
  margin-bottom: 14px;
  font-size: 12.5px; font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 999px;
  background: rgba(255, 95, 162, 0.16);
  border: 1px solid rgba(255, 95, 162, 0.4);
  color: #ffc2dd;
}

.partner {
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: 15px;
  background: rgba(139, 123, 255, 0.1);
  border: 1px solid rgba(139, 123, 255, 0.3);
}
.partner ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.partner li { font-size: 14.5px; line-height: 1.45; }
.partner li b { color: var(--muted); font-weight: 600; }

/* --- spinner ------------------------------------------------------------ */
.spinner {
  width: 46px; height: 46px;
  margin: 6px auto 20px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.14);
  border-top-color: var(--accent);
  border-right-color: var(--accent-2);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --- plan --------------------------------------------------------------- */
.plan-title {
  font-size: clamp(24px, 6vw, 32px);
  line-height: 1.15;
  background: linear-gradient(100deg, #fff, #ffc2dd 45%, #c9c0ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.plan-why { color: var(--muted); margin: 10px 0 0; font-size: 15.5px; }

.steps {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.steps li {
  position: relative;
  counter-increment: step;
  padding: 14px 16px 14px 52px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-brd);
  font-size: 15px;
  line-height: 1.5;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 12px; top: 50%;
  transform: translateY(-50%);
  width: 26px; height: 26px;
  display: grid; place-items: center;
  font-size: 13px; font-weight: 700;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--accent), var(--accent-2));
  color: #fff;
}

.extras {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(87, 214, 168, 0.1);
  border: 1px solid rgba(87, 214, 168, 0.32);
  font-size: 14.5px;
  line-height: 1.5;
}
.extras::before {
  content: "✨ twist";
  display: block;
  margin-bottom: 4px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ok);
}

.ideas { margin-top: 20px; }
.ideas summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 14px;
  padding: 8px 0;
}
.ideas ul { margin: 8px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 10px; }
.ideas li { font-size: 14px; line-height: 1.45; color: var(--muted); }
.ideas li b { color: var(--ink); }

.row { display: flex; gap: 10px; margin-top: 24px; }

.foot {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  opacity: 0.75;
  padding: 4px;
}

.hide { display: none !important; }
