@font-face {
  font-family: "Comic Relief";
  src: url("/assets/ComicRelief-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Comic Relief";
  src: url("/assets/ComicRelief-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --ink: #171513;
  --paper: #fffaf0;
  --white: #fffef9;
  --orange: #f25a24;
  --orange-deep: #d94516;
  --yellow: #ffc83d;
  --yellow-soft: #fff0ad;
  --green: #2ebc8c;
}

* { box-sizing: border-box; }

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

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 78%, rgb(255 200 61 / 0.3), transparent 22rem),
    radial-gradient(circle at 91% 18%, rgb(242 90 36 / 0.13), transparent 24rem),
    var(--paper);
  font-family: "Comic Relief", ui-rounded, "Arial Rounded MT Bold", system-ui, sans-serif;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  opacity: 0.2;
  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='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.11'/%3E%3C/svg%3E");
}

.onboarding-shell {
  width: min(100% - 48px, 1320px);
  min-height: 100svh;
  margin: 0 auto;
}

.onboarding-header {
  display: grid;
  min-height: 112px;
  grid-template-columns: 220px minmax(280px, 510px) 220px;
  align-items: center;
  justify-content: space-between;
  padding: 16px 2px 10px;
}

.brand { display: inline-flex; align-items: center; width: max-content; }
.brand img { display: block; width: 196px; height: auto; }

.progress-wrap { width: 100%; }
.progress-copy { display: flex; justify-content: space-between; margin-bottom: 8px; color: #746a61; font-size: 9px; font-weight: 700; letter-spacing: 0.11em; }
.progress-track { height: 10px; overflow: hidden; border: 2px solid var(--ink); border-radius: 999px; background: white; box-shadow: 0 2px 0 var(--ink); }
.progress-track span { display: block; width: 8%; height: 100%; border-right: 2px solid var(--ink); background: var(--orange); transition: width 500ms cubic-bezier(0.2, 0.85, 0.35, 1); }

.intro-layout {
  display: grid;
  min-height: calc(100svh - 112px);
  grid-template-columns: minmax(440px, 0.95fr) minmax(500px, 1.05fr);
  gap: clamp(60px, 8vw, 120px);
  align-items: center;
  padding: 28px 64px 92px;
}

.junko-hello {
  position: relative;
  display: grid;
  width: min(100%, 500px);
  aspect-ratio: 1;
  place-items: center;
  justify-self: end;
}

.junko-hello > .junko-motion {
  position: relative;
  z-index: 3;
  display: block;
  width: 92%;
  aspect-ratio: 1;
  border: 3px solid var(--ink);
  border-radius: 28px;
  background: var(--yellow-soft);
  box-shadow: 0 10px 0 var(--ink), 0 26px 45px rgb(133 67 17 / 0.16);
  object-fit: cover;
  image-rendering: pixelated;
}

.speech-bubble {
  position: absolute;
  top: -1%;
  right: -5%;
  z-index: 7;
  max-width: 245px;
  padding: 13px 17px;
  border: 2px solid var(--ink);
  border-radius: 17px 17px 17px 4px;
  background: var(--white);
  box-shadow: 0 5px 0 var(--ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  transform: rotate(2.5deg);
  animation: pop-in 600ms 350ms both cubic-bezier(0.2, 0.9, 0.25, 1.2);
}

.tutor-chip {
  position: absolute;
  bottom: 7%;
  left: 50%;
  z-index: 6;
  width: max-content;
  padding: 7px 13px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--yellow);
  box-shadow: 0 3px 0 var(--ink);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  transform: translateX(-50%) rotate(-1deg);
}

.intro-copy { max-width: 590px; padding-bottom: 6px; }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; margin: 0 0 20px; padding: 8px 13px; border: 2px solid var(--ink); border-radius: 999px; background: var(--yellow-soft); box-shadow: 0 3px 0 var(--ink); font-size: 12px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; }
.eyebrow span { color: var(--orange-deep); }

h1 { margin: 0; font-size: clamp(58px, 5.3vw, 82px); line-height: 0.98; letter-spacing: -0.055em; }
h1 span { color: var(--orange); text-shadow: -1.5px -1.5px 0 var(--ink), 1.5px -1.5px 0 var(--ink), -1.5px 1.5px 0 var(--ink), 1.5px 1.5px 0 var(--ink), 0 4px 0 var(--ink); }

.lead { max-width: 575px; margin: 27px 0 0; color: #4b443e; font-size: clamp(19px, 1.55vw, 23px); line-height: 1.53; }
.lead strong { color: var(--ink); }

.promise-card { display: flex; width: min(100%, 520px); gap: 14px; align-items: center; margin-top: 27px; padding: 14px 17px; border: 2px solid var(--ink); border-radius: 16px; background: rgb(255 255 255 / 0.7); box-shadow: 0 4px 0 var(--ink); }
.promise-card p { margin: 0; font-size: 14px; line-height: 1.45; }
.promise-icon { display: grid; width: 35px; height: 35px; flex: 0 0 auto; place-items: center; border: 2px solid var(--ink); border-radius: 50%; background: var(--green); font-size: 18px; font-weight: 700; }

.continue-button { display: inline-flex; min-width: 310px; min-height: 64px; gap: 20px; align-items: center; justify-content: center; margin-top: 32px; padding: 16px 28px; border: 3px solid var(--ink); border-radius: 17px; color: var(--ink); background: linear-gradient(180deg, #ffd85a 0%, #ffb51d 100%); box-shadow: 0 7px 0 var(--ink); font-size: 20px; font-weight: 700; line-height: 1; text-decoration: none; transition: transform 140ms ease, box-shadow 140ms ease, filter 140ms ease; }
.continue-button span { font-size: 26px; transition: transform 140ms ease; }
.continue-button:hover { filter: saturate(1.08) brightness(1.02); transform: translateY(-2px); box-shadow: 0 9px 0 var(--ink); }
.continue-button:hover span { transform: translateX(3px); }
.continue-button:active { transform: translateY(5px); box-shadow: 0 2px 0 var(--ink); }
.continue-button:focus-visible, .brand:focus-visible { outline: 4px solid rgb(77 158 255 / 0.35); outline-offset: 5px; }
.button-note { width: 310px; margin: 14px 0 0; color: #776d64; font-size: 12px; text-align: center; }

@keyframes float { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-8px) rotate(1deg); } }
@keyframes pop-in { from { opacity: 0; scale: 0.75; } to { opacity: 1; scale: 1; } }
@keyframes progress-in { from { width: 0; } to { width: 8%; } }

@media (max-width: 1050px) {
  .onboarding-header { grid-template-columns: 200px minmax(280px, 450px) 200px; }
  .intro-layout { grid-template-columns: minmax(390px, 0.9fr) minmax(430px, 1.1fr); gap: 48px; padding-inline: 24px; }
}

@media (max-width: 860px) {
  .onboarding-shell { width: min(100% - 28px, 720px); }
  .onboarding-header { min-height: 100px; grid-template-columns: 170px 1fr; gap: 28px; }
  .brand img { width: 166px; }
  .progress-copy span:last-child { display: none; }
  .intro-layout { min-height: auto; grid-template-columns: 1fr; gap: 38px; padding: 40px 10px 80px; }
  .junko-hello { width: min(80vw, 430px); justify-self: center; }
  .intro-copy { max-width: 640px; text-align: center; }
  .eyebrow { margin-inline: auto; }
  .lead, .promise-card { margin-inline: auto; }
  .continue-button { margin-inline: auto; }
  .button-note { margin-inline: auto; }
}

@media (max-width: 560px) {
  .onboarding-shell { width: min(100% - 20px, 720px); }
  .onboarding-header { min-height: 84px; grid-template-columns: 136px 1fr; gap: 18px; }
  .brand img { width: 134px; }
  .progress-copy { margin-bottom: 6px; font-size: 7px; }
  .progress-track { height: 8px; }
  .intro-layout { gap: 34px; padding: 32px 2px 62px; }
  .junko-hello { width: min(88vw, 365px); }
  .speech-bubble { top: -4%; right: -1%; max-width: 190px; padding: 10px 13px; font-size: 11px; }
  .tutor-chip { bottom: 5%; font-size: 8px; }
  h1 { font-size: clamp(49px, 14vw, 66px); }
  .lead { margin-top: 22px; font-size: 17px; }
  .promise-card { align-items: flex-start; text-align: left; }
  .continue-button { width: min(100%, 340px); min-width: 0; }
  .button-note { width: min(100%, 340px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

/* Complete onboarding funnel */

button, input { font: inherit; }
button { color: inherit; }
button[hidden] { display: none !important; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.screen { outline: none; }
.back-button { justify-self: end; padding: 9px 13px; border: 2px solid var(--ink); border-radius: 12px; background: rgb(255 255 255 / 0.72); box-shadow: 0 3px 0 var(--ink); cursor: pointer; font-size: 13px; font-weight: 700; transition: transform 140ms ease, box-shadow 140ms ease; }
.back-button:hover { transform: translateY(-1px); box-shadow: 0 4px 0 var(--ink); }
.back-button:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }

.primary-button { display: inline-flex; min-width: 310px; min-height: 64px; gap: 20px; align-items: center; justify-content: center; margin-top: 32px; padding: 16px 28px; border: 3px solid var(--ink); border-radius: 17px; color: var(--ink); background: linear-gradient(180deg, #ffd85a 0%, #ffb51d 100%); box-shadow: 0 7px 0 var(--ink); cursor: pointer; font-size: 20px; font-weight: 700; line-height: 1; text-decoration: none; transition: transform 140ms ease, box-shadow 140ms ease, filter 140ms ease; }
.primary-button span { font-size: 26px; transition: transform 140ms ease; }
.primary-button:hover:not(:disabled) { filter: saturate(1.08) brightness(1.02); transform: translateY(-2px); box-shadow: 0 9px 0 var(--ink); }
.primary-button:hover:not(:disabled) span { transform: translateX(3px); }
.primary-button:active:not(:disabled) { transform: translateY(5px); box-shadow: 0 2px 0 var(--ink); }
.primary-button:disabled { cursor: not-allowed; filter: grayscale(0.8); opacity: 0.42; }
.primary-button:focus-visible, .back-button:focus-visible, .option-card:focus-visible, .price-option:focus-visible, .checkout-button:focus-visible, input:focus-visible { outline: 4px solid rgb(77 158 255 / 0.35); outline-offset: 4px; }

.question-layout { display: grid; min-height: calc(100svh - 112px); grid-template-columns: minmax(320px, 0.72fr) minmax(570px, 1.28fr); gap: clamp(52px, 7vw, 105px); align-items: center; padding: 24px 52px 76px; }
.junko-side { position: relative; display: grid; width: min(100%, 390px); aspect-ratio: 1; place-items: center; justify-self: end; }
.junko-side > .junko-motion { position: relative; z-index: 3; display: block; width: 90%; aspect-ratio: 1; border: 3px solid var(--ink); border-radius: 26px; background: var(--yellow-soft); box-shadow: 0 8px 0 var(--ink), 0 18px 34px rgb(110 45 12 / 0.14); object-fit: cover; image-rendering: pixelated; }
.side-bubble { position: absolute; top: -1%; right: -11%; z-index: 6; max-width: 245px; padding: 13px 16px; border: 2px solid var(--ink); border-radius: 17px 17px 17px 4px; background: var(--white); box-shadow: 0 5px 0 var(--ink); font-size: 12px; font-weight: 700; line-height: 1.4; transform: rotate(2deg); animation: pop-in 500ms 150ms both cubic-bezier(0.2, 0.9, 0.25, 1.2); }
.side-chip { position: absolute; bottom: 3%; left: 50%; z-index: 5; width: max-content; padding: 6px 11px; border: 2px solid var(--ink); border-radius: 999px; background: var(--yellow); box-shadow: 0 3px 0 var(--ink); font-size: 9px; font-weight: 700; letter-spacing: 0.08em; transform: translateX(-50%); }

.question-card { width: min(100%, 720px); }
.question-card h1 { max-width: 720px; font-size: clamp(43px, 4vw, 61px); line-height: 1.04; }
.question-content { margin-top: 28px; }

.option-grid { display: grid; gap: 14px; }
.option-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.option-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.option-card { position: relative; display: flex; min-height: 82px; gap: 13px; align-items: center; padding: 15px 42px 15px 16px; border: 2px solid var(--ink); border-radius: 16px; background: rgb(255 255 255 / 0.78); box-shadow: 0 4px 0 var(--ink); cursor: pointer; text-align: left; transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease; }
.option-card:hover { background: white; transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); }
.option-card:active, .option-card.selected { background: var(--yellow-soft); transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.option-card strong { display: block; font-size: 14px; line-height: 1.25; }
.option-card small { display: block; margin-top: 4px; color: #776d64; font-size: 10px; line-height: 1.25; }
.option-emoji { flex: 0 0 auto; font-size: 25px; }
.choice-arrow { position: absolute; right: 14px; color: var(--orange-deep); font-size: 20px; font-weight: 700; opacity: 0; transform: translateX(-5px); transition: opacity 140ms ease, transform 140ms ease; }
.option-card:hover .choice-arrow { opacity: 1; transform: translateX(0); }
.option-grid-3 .option-card { min-height: 94px; flex-direction: column; gap: 7px; justify-content: center; padding: 12px; text-align: center; }
.option-grid-3 .option-emoji { font-size: 29px; }
.option-grid-3 .choice-arrow { display: none; }

.name-form { display: flex; max-width: 650px; flex-wrap: wrap; gap: 14px; align-items: flex-start; }
.name-form input { width: 100%; min-height: 76px; padding: 14px 22px; border: 3px solid var(--ink); border-radius: 17px; color: var(--ink); background: white; box-shadow: 0 6px 0 var(--ink); font-size: 27px; font-weight: 700; }
.name-form input::placeholder { color: #b1a79d; }
.name-form .primary-button { margin-top: 16px; }
.input-note { margin: 14px 0 0 5px; color: #81766d; font-size: 11px; }

.confidence-scale, .number-options { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.number-options { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.confidence-scale .option-card, .number-options .option-card { min-height: 125px; flex-direction: column; gap: 7px; justify-content: center; padding: 12px; text-align: center; }
.confidence-scale .option-card strong, .number-options .option-card strong { font-size: 38px; line-height: 1; }
.confidence-scale .option-card small, .number-options .option-card small { font-size: 10px; }
.confidence-scale .choice-arrow, .number-options .choice-arrow { display: none; }
.scale-labels { display: flex; justify-content: space-between; margin-top: 12px; color: #80756c; font-size: 10px; }

.multi-option { padding-right: 48px; }
.multi-option .choice-arrow { display: none; }
.check-mark { position: absolute; right: 14px; display: grid; width: 26px; height: 26px; place-items: center; border: 2px solid var(--ink); border-radius: 50%; color: transparent; background: white; font-size: 13px; }
.multi-option.selected .check-mark { color: var(--ink); background: var(--green); }
.exam-grid .check-mark { top: 9px; right: 9px; width: 23px; height: 23px; font-size: 11px; }
.sticky-action { display: flex; gap: 18px; align-items: center; margin-top: 24px; }
.sticky-action .primary-button { margin: 0; }
.sticky-action p { color: #81766d; font-size: 11px; }

.social-options, .commitment-options { display: grid; gap: 13px; }
.social-options .option-card { min-height: 88px; }
.tutor-customizer { display: grid; gap: 20px; }
.customizer-group { display: grid; gap: 9px; }
.customizer-label { margin: 0; color: #81766d; font-size: 9px; font-weight: 700; letter-spacing: .12em; }
.personality-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.personality-option { min-height: 98px; padding-right: 44px; }
.personality-option .check-mark { right: 11px; width: 24px; height: 24px; }
.voice-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.voice-option { min-height: 82px; flex-direction: column; gap: 3px; justify-content: center; padding: 10px 8px; text-align: center; }
.voice-option.playing { background: #dff8ee; }
.voice-emoji { font-size: 21px; }
.voice-preview-icon { position: absolute; top: 8px; left: 8px; display: grid; width: 20px; height: 20px; place-items: center; border: 1.5px solid var(--ink); border-radius: 50%; background: white; font-size: 8px; line-height: 1; }
.voice-option.playing .voice-preview-icon { background: var(--green); animation: voice-pulse 900ms ease-in-out infinite alternate; }
.voice-option small { margin-top: 1px; }
.voice-option .check-mark { top: 7px; right: 7px; width: 19px; height: 19px; border-width: 1.5px; font-size: 9px; }
@keyframes voice-pulse { to { transform: scale(1.12); } }

.bridge-screen, .ready-screen, .generating-screen { display: flex; min-height: calc(100svh - 112px); flex-direction: column; align-items: center; justify-content: center; padding: 36px 20px 82px; text-align: center; }
.bridge-junko { position: relative; width: 130px; margin-bottom: 12px; }
.bridge-junko .junko-motion { display: block; width: 100%; aspect-ratio: 1; border: 2px solid var(--ink); border-radius: 18px; background: var(--yellow-soft); box-shadow: 0 5px 0 var(--ink); object-fit: cover; image-rendering: pixelated; }
.bridge-junko span { position: absolute; top: -10px; left: 82%; width: max-content; padding: 7px 10px; border: 2px solid var(--ink); border-radius: 11px; background: white; box-shadow: 0 3px 0 var(--ink); font-size: 10px; transform: rotate(3deg); }
.bridge-screen h1 { max-width: 880px; font-size: clamp(45px, 5vw, 70px); }
.bridge-lead { max-width: 730px; margin: 23px auto 0; color: #5f564e; font-size: 18px; line-height: 1.55; }
.before-after { display: grid; width: min(100%, 840px); grid-template-columns: 1fr auto 1fr; gap: 17px; align-items: center; margin-top: 28px; }
.before-after article { padding: 18px 20px; border: 2px solid var(--ink); border-radius: 17px; background: rgb(255 255 255 / 0.75); box-shadow: 0 5px 0 var(--ink); text-align: left; }
.before-after .after-card { background: #ddf7ed; }
.before-after article > strong { display: block; margin-top: 10px; font-size: 18px; }
.before-after article p { margin: 6px 0 0; color: #675e56; font-size: 12px; line-height: 1.45; }
.swap-arrow { color: var(--orange-deep); font-size: 28px; font-weight: 700; pointer-events: none; }
.card-label { display: inline-flex; padding: 4px 7px; border: 1.5px solid var(--ink); border-radius: 999px; font-size: 8px; font-weight: 700; letter-spacing: 0.08em; }
.card-label.bad { background: #ffd9cf; }
.card-label.good { background: #8ce0c1; }

.commitment-screen { display: grid; min-height: calc(100svh - 112px); grid-template-columns: minmax(390px, 0.9fr) minmax(530px, 1.1fr); gap: 80px; align-items: center; padding: 30px 72px 78px; }
.commitment-art { position: relative; width: min(100%, 455px); aspect-ratio: 1; justify-self: end; }
.commitment-ring { display: grid; width: 100%; height: 100%; place-items: center; border: 3px solid var(--ink); border-radius: 50%; background: repeating-conic-gradient(from 2deg, #f25a24 0 10deg, #ffd55f 10deg 20deg); box-shadow: 0 10px 0 var(--ink); }
.commitment-ring .junko-motion { width: 88%; aspect-ratio: 1; border: 3px solid var(--ink); border-radius: 50%; object-fit: cover; image-rendering: pixelated; }
.commitment-note { position: absolute; z-index: 3; padding: 9px 13px; border: 2px solid var(--ink); border-radius: 11px; background: white; box-shadow: 0 4px 0 var(--ink); font-size: 11px; font-weight: 700; }
.note-a { top: 8%; left: -7%; transform: rotate(-6deg); }
.note-b { top: 32%; right: -10%; background: #bdeedb; transform: rotate(5deg); }
.note-c { bottom: 8%; left: 1%; background: #e8dcff; transform: rotate(4deg); }
.commitment-copy h1 { max-width: 650px; font-size: clamp(47px, 4.6vw, 67px); }
.commitment-copy h1 span { display: block; margin-top: 5px; }
.commitment-options { max-width: 590px; margin-top: 26px; }
.commitment-options .option-card { min-height: 68px; }
.commitment-options .option-card > span:first-child { font-size: 24px; }

.generating-screen h1, .ready-screen h1 { max-width: 920px; font-size: clamp(48px, 5vw, 70px); }
.confetti-burst { position: fixed; inset: 0; z-index: 20; overflow: hidden; opacity: 0; pointer-events: none; transition: opacity 120ms ease; }
.confetti-burst.show { opacity: 1; }
.confetti-burst svg { display: block; width: 100%; height: 100%; }
.generator-visual { position: relative; display: grid; width: 220px; height: 220px; place-items: center; margin-bottom: 20px; }
.progress-ring { position: absolute; inset: 0; width: 100%; transform: rotate(-90deg); }
.progress-ring circle { fill: none; stroke-width: 12; }
.ring-bg { stroke: white; }
.ring-fill { stroke: var(--orange); stroke-linecap: round; stroke-dasharray: 603.19; stroke-dashoffset: 603.19; }
.generator-visual .junko-motion { width: 74%; aspect-ratio: 1; border: 2px solid var(--ink); border-radius: 22px; background: var(--yellow-soft); box-shadow: 0 5px 0 var(--ink); object-fit: cover; image-rendering: pixelated; }
.generator-visual > strong { position: absolute; right: -25px; bottom: 13px; display: grid; width: 62px; height: 43px; place-items: center; border: 2px solid var(--ink); border-radius: 12px; background: var(--yellow); box-shadow: 0 3px 0 var(--ink); font-size: 13px; transform: rotate(4deg); }
.milestone-list { display: grid; width: min(100%, 590px); gap: 8px; margin-top: 24px; }
.milestone-list div { display: flex; visibility: hidden; gap: 10px; align-items: center; padding: 10px 14px; border: 1.5px solid rgb(23 21 19 / 0.22); border-radius: 12px; opacity: 0; color: #8c8278; background: rgb(255 255 255 / 0.48); font-size: 11px; text-align: left; transform: translateY(10px) scale(.98); transition: visibility 0s linear 180ms, opacity 180ms ease, color 180ms ease, background 180ms ease, transform 180ms ease; }
.milestone-list div > span { display: grid; width: 24px; height: 24px; flex: 0 0 auto; place-items: center; border: 1.5px solid var(--ink); border-radius: 50%; color: transparent; background: white; }
.milestone-list div.complete { visibility: visible; opacity: 1; color: var(--ink); background: white; transform: translateX(4px); transition-delay: 0s; }
.milestone-list div.complete > span { color: var(--ink); background: var(--green); }
.generation-next { margin-top: 24px; animation: pop-in 400ms both; }

.ready-junko, .paywall-junko { position: relative; display: grid; width: 230px; height: 230px; place-items: center; margin-bottom: 18px; }
.ready-junko .junko-motion, .paywall-junko .junko-motion { position: relative; z-index: 2; width: 100%; aspect-ratio: 1; border: 3px solid var(--ink); border-radius: 24px; background: var(--yellow-soft); box-shadow: 0 7px 0 var(--ink); object-fit: cover; image-rendering: pixelated; }
.ready-copy { max-width: 680px; margin: 20px 0 0; color: #5f564e; font-size: 17px; line-height: 1.5; }
.confetti span { position: absolute; z-index: 5; color: var(--orange); font-size: 22px; animation: confetti-float 3s ease-in-out infinite; }
.confetti span:nth-child(1) { top: 20%; left: 17%; }
.confetti span:nth-child(2) { top: 38%; left: 25%; color: var(--green); animation-delay: .4s; }
.confetti span:nth-child(3) { top: 18%; right: 18%; color: #8d62d4; animation-delay: .8s; }
.confetti span:nth-child(4) { top: 46%; right: 25%; animation-delay: 1.1s; }
.confetti span:nth-child(5) { bottom: 18%; left: 21%; animation-delay: 1.4s; }
.confetti span:nth-child(6) { bottom: 16%; right: 20%; color: var(--green); animation-delay: 1.8s; }

.plan-screen { width: min(100%, 1120px); margin: 0 auto; padding: 30px 20px 74px; }
.plan-heading { display: flex; align-items: center; justify-content: space-between; }
.plan-heading h1 { font-size: clamp(45px, 4.8vw, 67px); }
.plan-junko { position: relative; width: 170px; }
.plan-junko .junko-motion { width: 100%; aspect-ratio: 1; border: 2px solid var(--ink); border-radius: 18px; background: var(--yellow-soft); box-shadow: 0 5px 0 var(--ink); object-fit: cover; image-rendering: pixelated; }
.plan-junko span { position: absolute; top: -3px; right: 80%; width: max-content; padding: 7px 10px; border: 2px solid var(--ink); border-radius: 11px; background: white; box-shadow: 0 3px 0 var(--ink); font-size: 10px; transform: rotate(-3deg); }
.plan-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.plan-stat { display: grid; min-height: 120px; grid-template-columns: auto 1fr; gap: 3px 10px; align-content: center; padding: 15px; border: 2px solid var(--ink); border-radius: 15px; background: white; box-shadow: 0 4px 0 var(--ink); }
.plan-stat > span { grid-row: span 2; font-size: 27px; }
.plan-stat small { color: #81766d; font-size: 8px; font-weight: 700; letter-spacing: .09em; }
.plan-stat strong { font-size: 12px; line-height: 1.25; }
.weekly-plan { display: grid; grid-template-columns: .9fr 1.1fr; gap: 20px; margin-top: 20px; padding: 24px; border: 2px solid var(--ink); border-radius: 18px; background: #fff6d8; box-shadow: 0 5px 0 var(--ink); }
.weekly-copy h2 { margin: 13px 0 0; font-size: 28px; line-height: 1.2; }
.weekly-copy p { margin: 12px 0 0; color: #665d54; font-size: 12px; line-height: 1.5; }
.day-stack { display: grid; gap: 8px; }
.day-stack > div { display: grid; grid-template-columns: 52px 1fr; gap: 2px 10px; padding: 10px 12px; border: 1.5px solid var(--ink); border-radius: 11px; background: white; }
.day-stack span { grid-row: span 2; align-self: center; color: var(--orange-deep); font-size: 9px; font-weight: 700; }
.day-stack strong { font-size: 12px; }
.day-stack small { color: #81766d; font-size: 9px; }
.plan-unlock { display: flex; margin: 26px auto 0; }

.paywall-screen { display: grid; min-height: calc(100svh - 112px); grid-template-columns: minmax(440px, .92fr) minmax(510px, 1.08fr); gap: clamp(55px, 7vw, 95px); align-items: center; padding: 30px 72px 78px; }
.paywall-promise h1 { font-size: clamp(48px, 4.6vw, 67px); }
.paywall-promise > p:not(.eyebrow) { max-width: 540px; margin: 20px 0 0; color: #5e554d; font-size: 16px; line-height: 1.5; }
.paywall-junko { width: 150px; height: 150px; margin: 0 0 14px; }
.paywall-promise ul { display: grid; gap: 11px; margin: 24px 0 0; padding: 0; list-style: none; font-size: 13px; font-weight: 700; }
.paywall-promise li { display: flex; gap: 9px; align-items: center; }
.paywall-promise li span { display: grid; width: 23px; height: 23px; place-items: center; border: 1.5px solid var(--ink); border-radius: 50%; background: var(--green); font-size: 11px; }
.paywall-card { position: relative; width: min(100%, 570px); padding: 33px 30px 25px; border: 3px solid var(--ink); border-radius: 24px; background: white; box-shadow: 0 10px 0 var(--ink), 0 26px 50px rgb(93 47 12 / 0.16); }
.trial-badge { position: absolute; top: -17px; left: 50%; width: max-content; padding: 7px 16px; border: 2px solid var(--ink); border-radius: 999px; background: var(--green); box-shadow: 0 3px 0 var(--ink); font-size: 10px; font-weight: 700; letter-spacing: .08em; transform: translateX(-50%) rotate(-1deg); }
.paywall-card h2 { margin: 4px 0 0; font-size: 30px; text-align: center; }
.paywall-subtitle { margin: 7px 0 0; color: #746a61; font-size: 12px; text-align: center; }
.pricing-options { display: grid; gap: 12px; margin-top: 22px; }
.price-option { position: relative; display: flex; min-height: 85px; align-items: center; justify-content: space-between; padding: 15px 17px; border: 2px solid var(--ink); border-radius: 15px; background: #fffdf8; box-shadow: 0 3px 0 var(--ink); cursor: pointer; text-align: left; transition: background 140ms ease, transform 140ms ease; }
.price-option.selected { background: var(--yellow-soft); box-shadow: 0 5px 0 var(--ink); transform: translateY(-2px); }
.price-option > span:not(.best-value) { display: grid; }
.price-option strong { font-size: 15px; }
.price-option small { margin-top: 4px; color: #756b62; font-size: 9px; }
.price { text-align: right; }
.price strong { font-size: 17px; }
.best-value { position: absolute; top: -9px; right: 12px; padding: 3px 7px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--orange); color: white; font-size: 7px; font-weight: 700; letter-spacing: .08em; }
.checkout-button { display: flex; width: 100%; min-height: 62px; gap: 12px; align-items: center; justify-content: center; margin-top: 20px; padding: 14px 18px; border: 3px solid var(--ink); border-radius: 16px; background: linear-gradient(180deg, #ffd85a, #ffb51d); box-shadow: 0 7px 0 var(--ink); cursor: pointer; font-size: 17px; font-weight: 700; transition: transform 140ms ease, box-shadow 140ms ease; }
.checkout-button:hover { transform: translateY(-2px); box-shadow: 0 9px 0 var(--ink); }
.checkout-button:active { transform: translateY(5px); box-shadow: 0 2px 0 var(--ink); }
.checkout-button:disabled { cursor: wait; opacity: 0.72; transform: none; box-shadow: 0 7px 0 var(--ink); }
.checkout-note { margin: 13px 0 0; color: #756b62; font-size: 10px; text-align: center; }
.paywall-footer { display: flex; gap: 7px; justify-content: center; margin-top: 18px; color: #8a7f75; font-size: 8px; }
.paywall-footer a { color: inherit; }

.toast { position: fixed; bottom: 24px; left: 50%; z-index: 50; max-width: min(90vw, 520px); padding: 13px 17px; border: 2px solid var(--ink); border-radius: 13px; background: var(--ink); color: white; box-shadow: 0 5px 0 var(--orange); font-size: 11px; font-weight: 700; opacity: 0; pointer-events: none; transform: translate(-50%, 24px); transition: opacity 180ms ease, transform 180ms ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.noscript { max-width: 520px; margin: 120px auto; padding: 20px; border: 2px solid var(--ink); border-radius: 15px; background: white; text-align: center; }

@keyframes confetti-float { 0%, 100% { transform: translateY(0) rotate(-8deg); } 50% { transform: translateY(-12px) rotate(10deg); } }

@media (max-width: 1050px) {
  .question-layout { grid-template-columns: minmax(290px, .72fr) minmax(500px, 1.28fr); gap: 38px; padding-inline: 24px; }
  .commitment-screen, .paywall-screen { gap: 46px; padding-inline: 30px; }
}

@media (max-width: 860px) {
  .back-button { font-size: 0; }
  .back-button::before { content: "←"; font-size: 18px; }
  .onboarding-header { grid-template-columns: 150px 1fr auto; }
  .question-layout, .commitment-screen, .paywall-screen { min-height: auto; grid-template-columns: 1fr; gap: 30px; padding: 34px 10px 70px; }
  .junko-side { width: min(55vw, 300px); justify-self: center; }
  .side-bubble { right: -28%; }
  .question-card { margin: 0 auto; text-align: center; }
  .question-card .eyebrow { margin-inline: auto; }
  .option-card { text-align: left; }
  .name-form { justify-content: center; margin-inline: auto; }
  .input-note { text-align: center; }
  .commitment-art { width: min(70vw, 390px); justify-self: center; }
  .commitment-copy { text-align: center; }
  .commitment-copy .eyebrow { margin-inline: auto; }
  .paywall-promise { text-align: center; }
  .paywall-promise .eyebrow { margin-inline: auto; }
  .paywall-junko { margin-inline: auto; }
  .paywall-promise > p:not(.eyebrow), .paywall-promise ul { margin-inline: auto; }
  .paywall-promise ul { width: max-content; max-width: 100%; text-align: left; }
  .paywall-card { justify-self: center; }
  .plan-screen { padding-inline: 8px; }
  .plan-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .onboarding-header { grid-template-columns: 125px 1fr auto; gap: 10px; }
  .back-button { padding: 7px 9px; }
  .question-layout { gap: 26px; padding-top: 24px; }
  .junko-side { width: min(58vw, 250px); }
  .side-bubble { top: -7%; right: -35%; max-width: 170px; padding: 9px 11px; font-size: 9px; }
  .side-chip { font-size: 7px; }
  .question-card h1 { font-size: clamp(38px, 11vw, 50px); }
  .question-content { margin-top: 22px; }
  .option-grid-2 { grid-template-columns: 1fr; }
  .option-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .option-card { min-height: 72px; }
  .option-grid-3 .option-card { min-height: 84px; }
  .confidence-scale { grid-template-columns: repeat(5, minmax(58px, 1fr)); overflow-x: auto; padding-bottom: 8px; }
  .confidence-scale .option-card { min-height: 104px; }
  .confidence-scale .option-card strong { font-size: 30px; }
  .number-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .number-options .option-card { min-height: 95px; }
  .sticky-action { flex-direction: column; }
  .sticky-action .primary-button { width: 100%; min-width: 0; }
  .personality-grid { grid-template-columns: 1fr; }
  .voice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bridge-screen, .ready-screen, .generating-screen { min-height: calc(100svh - 84px); padding: 28px 4px 60px; }
  .bridge-screen h1, .ready-screen h1, .generating-screen h1 { font-size: clamp(39px, 11vw, 52px); }
  .bridge-lead { font-size: 15px; }
  .before-after { grid-template-columns: 1fr; }
  .swap-arrow { transform: rotate(90deg); }
  .bridge-junko span { left: 70%; }
  .commitment-screen { padding-inline: 2px; }
  .commitment-art { width: min(82vw, 340px); }
  .commitment-note { font-size: 9px; }
  .commitment-copy h1 { font-size: clamp(40px, 12vw, 53px); }
  .generator-visual { width: 180px; height: 180px; }
  .milestone-list { padding-inline: 6px; }
  .plan-heading { align-items: flex-end; }
  .plan-heading h1 { font-size: clamp(38px, 10vw, 50px); }
  .plan-junko { width: 100px; }
  .plan-junko span { display: none; }
  .plan-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .weekly-plan { grid-template-columns: 1fr; padding: 18px; }
  .plan-unlock { width: min(100%, 340px); min-width: 0; }
  .paywall-screen { padding-inline: 2px; }
  .paywall-promise h1 { font-size: clamp(42px, 11vw, 54px); }
  .paywall-promise > p:not(.eyebrow) { font-size: 14px; }
  .paywall-card { padding: 31px 17px 22px; }
  .price-option { min-height: 80px; }
}
