:root {
  --paper: oklch(95.5% 0.015 85);
  --paper-2: oklch(98.5% 0.008 85);
  --ink: oklch(21% 0.01 60);
  --ink-2: oklch(45% 0.012 60);
  --accent: oklch(64% 0.17 42);
  --accent-ink: oklch(50% 0.16 40);
  --line: oklch(84% 0.015 80);
  --bad: oklch(55% 0.19 27);
  --r: 18px;
  --fs-hero: clamp(3rem, 2rem + 6vw, 7.5rem);
  --sp: clamp(1rem, 0.6rem + 1.6vw, 2rem);
  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100dvh; background: var(--paper); color: var(--ink);
  font: 400 1rem/1.5 var(--display); -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(oklch(0% 0 0 / 0.045) 1px, transparent 1px);
  background-size: 22px 22px;
}
.mono { font-family: var(--mono); letter-spacing: 0.02em; }
#cards { position: fixed; inset: 0; width: 100vw; height: 100dvh; z-index: 0; pointer-events: none; }

.top, .stage, .foot { position: relative; z-index: 1; }
.top { display: flex; justify-content: space-between; align-items: center; padding: var(--sp) calc(var(--sp) * 1.5); }
.mark { font-weight: 700; font-size: 1.25rem; letter-spacing: -0.02em; }
.mark .dot { color: var(--accent); }
.tag { font-size: 0.72rem; color: var(--ink-2); border: 1px solid var(--line); padding: 0.3rem 0.6rem; border-radius: 99px; background: var(--paper-2); }

.stage {
  display: grid; grid-template-columns: 1.15fr minmax(320px, 440px); gap: calc(var(--sp) * 2);
  align-items: end; min-height: calc(100dvh - 9rem); padding: 0 calc(var(--sp) * 1.5) calc(var(--sp) * 2);
  max-width: 1320px; margin: 0 auto;
}
.kicker { font-size: 0.75rem; text-transform: uppercase; color: var(--accent-ink); margin: 0 0 1rem; }
h1 { font-size: var(--fs-hero); line-height: 0.9; letter-spacing: -0.045em; margin: 0 0 1.4rem; font-weight: 700; }
h1 em { font-style: normal; color: var(--accent); }
.lede { font-size: clamp(1.05rem, 1rem + 0.4vw, 1.3rem); color: var(--ink-2); max-width: 30ch; margin: 0 0 1.8rem; }

.pill {
  display: inline-flex; align-items: center; gap: 0.5rem; font: 600 0.95rem/1 var(--display);
  padding: 0.85rem 1.35rem; border-radius: 99px; border: 1.5px solid var(--ink); color: var(--ink);
  background: var(--paper-2); text-decoration: none; cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  box-shadow: 0 2px 0 var(--ink);
}
.pill:hover { transform: translateY(-2px); box-shadow: 0 4px 0 var(--ink); }
.pill:active { transform: translateY(1px); box-shadow: 0 1px 0 var(--ink); }
.pill:focus-visible, input:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.pill.solid { background: var(--ink); color: var(--paper-2); width: 100%; justify-content: center; padding: 1rem; }
.pill[disabled] { opacity: 0.6; cursor: wait; }

/* the form is a voucher ticket: side notches + perforation */
.ticket {
  position: relative; background: var(--paper-2); border: 1.5px solid var(--ink); border-radius: var(--r);
  padding: calc(var(--sp) * 1.1); box-shadow: 0 1px 0 var(--line), 0 24px 60px -28px oklch(30% 0.05 50 / 0.45);
  scroll-margin: 2rem;
}
.ticket::before { /* stub stripe, like a torn voucher edge */
  content: ""; position: absolute; inset: 0 auto 0 0; width: 8px; border-radius: var(--r) 0 0 var(--r);
  background: repeating-linear-gradient(180deg, var(--accent) 0 10px, transparent 10px 16px);
}
.ticket-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1.1rem; }
h2 { font-size: 1.6rem; letter-spacing: -0.03em; margin: 0; }
.no { font-size: 0.75rem; color: var(--ink-2); }
.perf { border-top: 2px dashed var(--line); margin: 1.2rem -0.4rem; }

.f { display: block; margin-bottom: 0.95rem; }
.f > span { display: block; font: 600 0.72rem/1 var(--mono); text-transform: uppercase; color: var(--ink-2); margin-bottom: 0.45rem; }
input:not([type=checkbox]) {
  width: 100%; font: 500 1.05rem/1.2 var(--display); color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--line); border-radius: 12px; padding: 0.8rem 0.9rem; transition: border-color 0.15s;
}
input:not([type=checkbox]):hover { border-color: var(--ink-2); }
.phone { display: flex; }
.phone .cc { display: grid; place-items: center; padding: 0 0.8rem; border: 1.5px solid var(--line); border-right: 0; border-radius: 12px 0 0 12px; background: var(--paper); font-size: 0.9rem; color: var(--ink-2); }
.phone input { border-radius: 0 12px 12px 0; min-width: 0; }
.stage > * { min-width: 0; }
.consent { display: flex; gap: 0.65rem; align-items: flex-start; font-size: 0.85rem; color: var(--ink-2); cursor: pointer; }
.consent input { width: 1.15rem; height: 1.15rem; margin-top: 0.1rem; accent-color: var(--accent); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.err { display: none; color: var(--bad); font-size: 0.78rem; margin-top: 0.35rem; }
.bad .err, .consent-err.show { display: block; }
.bad input:not([type=checkbox]) { border-color: var(--bad); }
.msg { min-height: 1.3em; margin: 0.8rem 0 0; font-size: 0.9rem; color: var(--bad); text-align: center; }

.done { animation: rise 0.5s cubic-bezier(.2,.8,.2,1); }
.done h2 { font-size: 2.4rem; margin: 0.2rem 0 0.8rem; }
.done dl { display: grid; grid-template-columns: auto 1fr; gap: 0.4rem 1rem; font-size: 0.88rem; margin: 0; }
.done dt { color: var(--ink-2); }
.done dd { margin: 0; word-break: break-all; }
.small { font-size: 0.78rem; color: var(--ink-2); margin: 0; }
@keyframes rise { from { opacity: 0; transform: translateY(14px) rotate(-1deg); } to { opacity: 1; transform: none; } }

.foot { text-align: center; font-size: 0.72rem; color: var(--ink-2); padding: 0 0 var(--sp); }

@media (max-width: 860px) {
  .stage { grid-template-columns: 1fr; align-items: start; min-height: 0; padding-top: 12vh; gap: 2.5rem; }
  .intro { min-height: 62dvh; display: flex; flex-direction: column; justify-content: flex-end; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pill, .done { transition: none; animation: none; }
}
