:root {
  --ink: #17111f;
  --ink-2: #201828;
  --violet-hi: #a58fd0;
  --cream: #f4eee7;
  --lime: #d4ff6e;
  --orange: #f2a53c;
  --display: "Anton", "Impact", "Arial Narrow", sans-serif;
  --body: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --gutter: clamp(16px, 5vw, 72px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; min-height: 100svh;
  background: radial-gradient(120% 80% at 85% 110%, rgb(118 86 214 / .28), transparent 60%), var(--ink);
  color: var(--cream); font-family: var(--body); font-size: 17px; line-height: 1.45;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; }
h1, h2, p, dl, dd { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Top bar ---------- */
.top { position: fixed; inset: 0 0 auto; z-index: 5; display: flex; align-items: center; gap: 18px; padding: 18px var(--gutter); }
.top__home { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--violet-hi); box-shadow: 0 8px 24px rgb(0 0 0 / .18); transition: transform .35s var(--ease); }
.top__home:hover { transform: scale(1.08); }
.top__home svg { width: 30px; height: 30px; }
.top__bar { flex: 1; height: 4px; border-radius: 4px; background: rgb(244 238 231 / .12); overflow: hidden; }
.top__bar i { display: block; height: 100%; width: 0; background: var(--lime); border-radius: inherit; transition: width .6s var(--ease); }
.top__login { flex: none; font-size: 14px; text-decoration: none; color: rgb(244 238 231 / .65); }
.top__login:hover { color: var(--lime); }

/* ---------- Steps ---------- */
.walk { min-height: 100vh; min-height: 100svh; display: grid; align-items: center; padding: 100px var(--gutter) 44px; }
.walk__form { width: 100%; max-width: 1100px; margin: 0 auto; }
.step { display: grid; gap: 22px; }
.step[hidden] { display: none; }
.step.is-in > * { animation: rise .7s var(--ease) both; }
.step.is-in > *:nth-child(2) { animation-delay: .06s; }
.step.is-in > *:nth-child(3) { animation-delay: .12s; }
.step.is-in > *:nth-child(4) { animation-delay: .18s; }
.step.is-in > *:nth-child(5) { animation-delay: .24s; }
.step.is-in > *:nth-child(n+6) { animation-delay: .3s; }
.step.is-back > * { animation-name: drop; }
@keyframes rise { from { opacity: 0; transform: translateY(36px); } to { opacity: 1; transform: none; } }
@keyframes drop { from { opacity: 0; transform: translateY(-36px); } to { opacity: 1; transform: none; } }

.step__kicker { font-size: 14px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--violet-hi); }
.step__kicker b { color: var(--lime); font-weight: 700; }
.step__q {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(44px, 7.4vw, 112px); line-height: .92; letter-spacing: -.005em; max-width: 16ch;
}
.step__q span { color: var(--violet-hi); }
[data-step="send"] .step__q { font-size: clamp(40px, 5.6vw, 84px); }
.step__q--huge { font-size: clamp(64px, 13vw, 200px); max-width: none; }
.step__q--huge span { color: var(--lime); }
#q-hello span { color: var(--lime); }
.step__lede { max-width: 46ch; font-size: clamp(17px, 1.5vw, 20px); color: rgb(244 238 231 / .75); }

/* big underline inputs */
.field { display: block; max-width: 760px; }
.field input, .field textarea {
  width: 100%; border: 0; border-bottom: 3px solid rgb(244 238 231 / .25); background: transparent; color: var(--cream);
  font-family: var(--body); font-weight: 600; font-size: clamp(26px, 3.4vw, 44px); line-height: 1.2; padding: 8px 0 12px;
  border-radius: 0; transition: border-color .3s; caret-color: var(--lime);
}
.field input::placeholder, .field textarea::placeholder { color: rgb(244 238 231 / .28); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--lime); }
.field + .field { margin-top: -4px; }
.field--note textarea { font-size: clamp(18px, 1.8vw, 24px); font-weight: 500; resize: none; }
.is-bad input { border-color: var(--orange); }

/* tap-to-answer chips */
.chips { display: flex; flex-wrap: wrap; gap: 12px; max-width: 900px; }
.chips button {
  cursor: pointer; border: 2px solid rgb(244 238 231 / .22); background: rgb(255 255 255 / .04);
  padding: 14px 22px; border-radius: 99px; font-weight: 600; font-size: clamp(17px, 1.7vw, 21px);
  transition: background .25s, border-color .25s, color .25s, transform .3s var(--ease);
}
.chips button:hover { border-color: var(--lime); transform: translateY(-2px); }
.chips button[aria-checked="true"], .chips button[aria-pressed="true"] { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.chips--multi button[aria-pressed="true"]::before { content: "✓ "; }
.chips--big button { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 4vw, 52px); padding: 10px 28px; letter-spacing: .01em; }

/* buttons */
.step__nav { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 18px; margin-top: 8px; }
.go {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer; text-decoration: none;
  border: 0; border-radius: 99px; padding: 18px 30px; font-weight: 700; font-size: 18px;
  background: var(--cream); color: var(--ink); justify-self: start;
  transition: transform .3s var(--ease), background .3s;
}
.go:hover { transform: translateY(-2px) scale(1.03); }
.go--lime { background: var(--lime); }
.go[disabled] { opacity: .6; cursor: progress; transform: none; }
.back { cursor: pointer; border: 0; background: none; padding: 10px 4px; font-weight: 600; color: rgb(244 238 231 / .6); }
.back:hover { color: var(--cream); }
.hint { font-size: 14px; color: rgb(244 238 231 / .45); }
.step__err { min-height: 1.4em; color: var(--orange); font-weight: 600; margin-top: -10px; }

/* recap */
.recap { display: grid; max-width: 760px; }
.recap div { display: grid; grid-template-columns: 9em 1fr auto; align-items: baseline; gap: 12px; padding: 8px 0; border-bottom: 1px solid rgb(244 238 231 / .12); }
.recap dt { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--violet-hi); }
.recap dd { font-size: 18px; font-weight: 600; overflow-wrap: anywhere; }
.recap button { cursor: pointer; border: 0; background: none; color: var(--lime); font-weight: 600; font-size: 14px; padding: 4px; }
.fine { font-size: 13px; color: rgb(244 238 231 / .5); }
.fine a { color: rgb(244 238 231 / .75); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Success ---------- */
.step--done { gap: 18px; }
.step--done .step__q--huge { font-size: clamp(60px, 9.5vw, 156px); }
.done__badge { position: relative; width: 64px; height: 64px; border-radius: 50%; background: var(--lime); display: grid; place-items: center; }
.done__badge svg { width: 38px; height: 38px; fill: none; stroke: var(--ink); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; }
.step--done.is-in .done__badge { animation: badge .6s cubic-bezier(.3, 1.6, .5, 1) both; }
.step--done.is-in .done__badge svg { animation: tick .45s var(--ease) .35s forwards; }
.done__badge i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--lime); opacity: 0; }
.step--done.is-in .done__badge i { animation: ring 1.4s var(--ease) .3s both; }
.step--done.is-in .done__badge i + i { animation-delay: .55s; }
@keyframes badge { from { transform: scale(0) rotate(-30deg); } to { transform: none; } }
@keyframes tick { to { stroke-dashoffset: 0; } }
@keyframes ring { from { transform: scale(1); opacity: .9; } to { transform: scale(2.8); opacity: 0; } }

.done__grid { display: grid; grid-template-columns: minmax(240px, 340px) 1fr; gap: 28px; align-items: start; margin-top: 6px; }
.ticket {
  position: relative; background: var(--cream); color: var(--ink); border-radius: 22px; padding: 22px 24px;
  transform: rotate(-2.5deg); box-shadow: 0 24px 50px -18px rgb(0 0 0 / .55);
}
.step--done.is-in .ticket { animation: stamp .7s cubic-bezier(.3, 1.4, .5, 1) .25s both; }
@keyframes stamp { from { opacity: 0; transform: translateY(30px) rotate(-9deg) scale(.9); } to { opacity: 1; transform: rotate(-2.5deg); } }
/* punched notches */
.ticket::before, .ticket::after { content: ""; position: absolute; top: 58%; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); }
.ticket::before { left: -11px; } .ticket::after { right: -11px; }
.ticket__label { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #6a4fb8; }
.ticket__biz { font-family: var(--display); text-transform: uppercase; font-size: clamp(32px, 3.2vw, 44px); line-height: .95; margin-top: 8px !important; overflow-wrap: anywhere; }
.ticket__meta { margin-top: 6px !important; font-weight: 600; color: #4a4155; }
.ticket__reach { margin-top: 18px !important; padding-top: 14px; border-top: 2px dashed rgb(23 17 31 / .2); font-size: 14px; color: #4a4155; }
.ticket__reach b { color: var(--ink); font-size: 16px; overflow-wrap: anywhere; }

.next { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: n; }
.next li { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; padding: 14px 18px; border-radius: 18px; background: rgb(255 255 255 / .05); color: rgb(244 238 231 / .72); font-size: 15px; }
.next span { grid-row: span 2; font-family: var(--display); font-size: 30px; line-height: 1; color: var(--lime); }
.next b { color: var(--cream); font-size: 17px; }
.step--done.is-in .next li { animation: rise .6s var(--ease) both; }
.step--done.is-in .next li:nth-child(1) { animation-delay: .45s; }
.step--done.is-in .next li:nth-child(2) { animation-delay: .6s; }
.step--done.is-in .next li:nth-child(3) { animation-delay: .75s; }
.step--done .back { text-decoration: none; }

.preview-note { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 6; background: var(--orange); color: var(--ink); font-size: 13px; font-weight: 700; padding: 6px 14px; border-radius: 99px; }

@media (max-width: 860px) {
  .done__grid { grid-template-columns: 1fr; }
  .ticket { max-width: 360px; }
}
@media (max-width: 640px) {
  .top { padding: 14px 16px; gap: 12px; }
  .top__home { width: 44px; height: 44px; }
  .top__home svg { width: 26px; height: 26px; }
  .top__login { font-size: 13px; }
  .walk { align-items: start; padding: 96px 16px 40px; }
  .hint { display: none; }
  .recap div { grid-template-columns: 1fr auto; }
  .recap dt { grid-column: 1 / -1; }
  .go { padding: 16px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}

/* Local-only success preview label (see PREVIEW in walk.js) */
.preview-tag { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 60; margin: 0; padding: 8px 14px; border-radius: 99px; background: #f2a53c; color: #17111f; font-size: 13px; font-weight: 700; white-space: nowrap; box-shadow: 0 8px 24px rgb(0 0 0 / .25); }
