:root {
  --bg: #fff8fc;
  --ink: #402b3b;
  --muted: #765f70;
  --pink: #db3f88;
  --lav: #9072d8;
  --line: rgba(105, 65, 91, .13);
  --shadow: 0 24px 70px rgba(126, 65, 99, .14);
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 10%, #ffdbe9 0 16%, transparent 38%),
    radial-gradient(circle at 96% 25%, #e5dcff 0 16%, transparent 38%),
    radial-gradient(circle at 55% 100%, #ffebd8 0 18%, transparent 40%),
    var(--bg);
  font-family: "Nunito", system-ui, sans-serif;
}
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .12;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.2'/%3E%3C/svg%3E");
}
.blob {
  position: fixed;
  z-index: 0;
  border-radius: 50%;
  filter: blur(18px);
  opacity: .3;
  pointer-events: none;
  animation: float 10s ease-in-out infinite;
}
.blob-a { width: 220px; height: 220px; background: #ffb4d5; top: 12%; left: -80px; }
.blob-b { width: 260px; height: 260px; background: #cbb8ff; right: -100px; top: 42%; animation-delay: -3s; }
.blob-c { width: 180px; height: 180px; background: #ffd2b6; left: 35%; bottom: -90px; animation-delay: -6s; }
@keyframes float {
  50% { transform: translate3d(16px,-18px,0) scale(1.06); }
}

.shell {
  position: relative;
  z-index: 1;
  width: min(860px, calc(100% - 24px));
  min-height: 100svh;
  margin: 0 auto;
  padding: 84px 0 20px;
  display: grid;
  align-items: center;
}
.topbar {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: min(860px, calc(100% - 24px));
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 35px rgba(148,84,117,.08);
}
.brand {
  white-space: nowrap;
  font: 700 18px "Fredoka", sans-serif;
  letter-spacing: -.03em;
}
.progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #f2e4ed;
}
.progress span {
  display: block;
  width: 25%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #e94d97, var(--lav));
  transition: width .35s ease;
}
.card {
  position: relative;
  width: 100%;
  min-height: min(650px, calc(100svh - 105px));
  padding: clamp(30px, 6vw, 68px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 38px;
  background: rgba(255,255,255,.84);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.step { display: none; }
.step.active { display: flex; animation: enter .45s cubic-bezier(.2,.8,.2,1); }
@keyframes enter {
  from { opacity: 0; transform: translateY(12px) scale(.99); }
  to { opacity: 1; transform: none; }
}
.intro-card { background: linear-gradient(145deg, rgba(255,255,255,.95), rgba(255,237,245,.9)); }
.future-card { background: linear-gradient(145deg, #fcf8ff, #f0eaff); }
.analysis-card { background: linear-gradient(145deg, #fffdfb, #fff0e8); }
.ask-card { background: rgba(255,255,255,.96); }

.eyebrow {
  max-width: calc(100% - 64px);
  margin-bottom: 20px;
  color: var(--pink);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}
h1, h2 {
  margin: 0;
  font-family: "Fredoka", sans-serif;
  letter-spacing: -.045em;
  line-height: 1.01;
}
h1 { max-width: 760px; font-size: clamp(48px, 8vw, 86px); }
h2 { font-size: clamp(42px, 7vw, 68px); }
h1:focus, h2:focus { outline: none; }
.highlight { color: var(--pink); }
.lead {
  max-width: 680px;
  margin: 22px 0 0;
  color: #604a59;
  font-size: clamp(20px, 3vw, 27px);
  line-height: 1.36;
}
.micro {
  max-width: 670px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}
button, .link-button { font-family: inherit; }
.primary, .ghost, .link-button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 15px 24px;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.25;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.primary {
  align-self: flex-start;
  color: #fff;
  background: linear-gradient(135deg, #e94d97, #cc327d);
  box-shadow: 0 12px 26px rgba(204,50,125,.22);
}
.primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px rgba(204,50,125,.28); }
.ghost { color: #6b5464; background: #fff; border: 1px solid rgba(105,65,91,.22); }
.next { margin-top: 28px; }
.step-navigation { display: flex; align-items: center; gap: 12px; margin-top: 28px; }
.step-navigation .next { margin-top: 0; }
.back { min-height: 44px; padding: 10px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-size: 14px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.back:hover { color: var(--pink); }
:where(button, a):focus-visible { outline: 3px solid #7046c5; outline-offset: 3px; }

.sticker {
  --sticker-tilt: -9deg;
  position: absolute;
  z-index: 2;
  top: 18px;
  right: 22px;
  font-size: clamp(52px, 7vw, 82px);
  line-height: 1;
  filter: drop-shadow(0 12px 20px rgba(95,57,78,.12));
  transform: rotate(var(--sticker-tilt));
  user-select: none;
}
.sticker-left { right: 22px; --sticker-tilt: 9deg; }
.sticker-button { display: block; padding: 0; border: 0; border-radius: 18px; background: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.sticker-button.wobbling { animation: sticker-wobble .55s ease; }
@keyframes sticker-wobble {
  0%, 100% { transform: rotate(var(--sticker-tilt)); }
  25% { transform: rotate(calc(var(--sticker-tilt) - 14deg)) scale(1.08); }
  50% { transform: rotate(calc(var(--sticker-tilt) + 11deg)) scale(1.04); }
  75% { transform: rotate(calc(var(--sticker-tilt) - 6deg)); }
}
.photo-sticker {
  display: block;
  width: clamp(64px, 9vw, 92px);
  height: auto;
  border: 4px solid #fff;
  border-radius: 18px;
  box-shadow: 0 8px 20px rgba(95,57,78,.13);
}

.terminal {
  margin: 10px 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 16px 45px rgba(90,52,72,.09);
}
.terminal-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  color: #786376;
  background: #f8eff4;
  font-size: 13px;
}
.terminal-head span { width: 10px; height: 10px; border-radius: 50%; background: #ff9fbc; }
.terminal-head span:nth-child(2) { background: #ffd28f; }
.terminal-head span:nth-child(3) { background: #aee6bc; }
.terminal-head b { margin-left: 4px; }
.terminal-body {
  padding: clamp(24px, 5vw, 44px);
  font-size: clamp(20px, 3vw, 29px);
  line-height: 1.35;
}
.terminal-body p { margin: 0 0 16px; }
.terminal-body p:last-child { margin-bottom: 0; }
.big-terminal {
  color: var(--pink);
  font: 700 clamp(43px, 7vw, 70px) "Fredoka", sans-serif;
}
.signoff { color: var(--muted); font-size: .72em; }

.analysis-list { display: grid; gap: 10px; margin: 26px 0 10px; }
.analysis-list div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.8);
  font-size: clamp(17px, 2vw, 20px);
}
.analysis-list span { color: #775f70; }
.analysis-list strong { text-align: right; }
.recommendation {
  padding: 17px 20px;
  border-radius: 20px;
  background: #fff0f7;
  font-size: clamp(18px, 2.4vw, 23px);
}
.analysis-card .step-navigation { margin-top: 20px; }

.ask-card h1 { max-width: 740px; font-size: clamp(48px, 7vw, 78px); }
.bracket-note { margin-top: 20px; color: #806879; }
.bracket-refrain { display: flex; flex-wrap: wrap; gap: 8px; color: #ad547f; font-size: 12px; font-weight: 900; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ask-card .actions { margin-top: 24px; }
.ask-card .micro { margin-top: 14px; }

.yes-dialog {
  position: fixed;
  width: min(440px, calc(100% - 24px));
  max-height: calc(100svh - 24px);
  padding: 38px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 30px;
  color: var(--ink);
  background: linear-gradient(145deg, #fff, #fff1f8);
  box-shadow: var(--shadow);
}
.yes-dialog::backdrop { background: rgba(58,35,50,.38); backdrop-filter: blur(6px); }
.dialog-sticker { --sticker-tilt: -6deg; width: 88px; margin: 0 auto 22px; transform: rotate(var(--sticker-tilt)); }
.dialog-sticker .photo-sticker { width: 100%; }
.yes-dialog h2 { font-size: clamp(40px, 8vw, 58px); }
.yes-dialog .link-button { display: block; margin-top: 26px; padding-inline: 14px; font-size: 15px; }
.dialog-close { position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: #f8e6f0; color: var(--ink); font-size: 24px; cursor: pointer; }

@media (max-width: 640px) {
  .shell { width: calc(100% - 18px); padding-top: 72px; padding-bottom: 12px; }
  .topbar { top: 8px; width: calc(100% - 18px); gap: 10px; padding: 10px 13px; }
  .brand { font-size: 16px; }
  .card { min-height: calc(100svh - 84px); padding: 26px 22px 30px; border-radius: 30px; }
  h1 { font-size: clamp(44px, 13vw, 68px); }
  h2 { font-size: clamp(39px, 11vw, 56px); }
  .lead { font-size: 20px; }
  .primary, .ghost, .link-button { font-size: 16px; }
  .step-navigation { gap: 8px; }
  .step-navigation .next { padding-inline: 12px; white-space: nowrap; }
  .back { padding-inline: 8px; }
  .analysis-list { gap: 8px; margin-top: 20px; }
  .analysis-list div { padding: 12px 14px; }
  .ask-card h1 { font-size: clamp(42px, 11.5vw, 58px); }
  .actions { flex-direction: column; gap: 8px; }
  .actions > * { width: 100%; }
  .yes-dialog { padding: 30px 24px; }
  .micro { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
