:root {
  --ink: #1b1b1a;
  --paper: #eae5d6;
  --cream: #f2efe4;
  --pink: #ff4d90;
  --muted: #6d6a62;
  --deep-neutral: #55524a;
  --line: #bdb7aa;
  --radius: 30px;
}

* { box-sizing: border-box; }
html { background: var(--ink); }
body { margin: 0; min-width: 320px; background: var(--paper); color: var(--ink); font-family: Arial, Helvetica, sans-serif; }
button, input, textarea { font: inherit; }
button { touch-action: manipulation; }

.shell { min-height: 100svh; background: var(--paper); }
.topbar { min-height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 10px clamp(18px, 5vw, 64px); border-bottom: 1px solid var(--ink); }
.task-header { display: grid; gap: 3px; color: var(--ink); text-decoration: none; }
.task-header__step { color: var(--muted); font: 700 9px/1 "Courier New", monospace; letter-spacing: .08em; }
.task-header__moment { font: 700 13px/1 Arial, Helvetica, sans-serif; letter-spacing: -.015em; }
.brand-stamp { display: grid; width: 27px; height: 27px; place-items: center; border: 1px solid var(--ink); border-radius: 50%; color: var(--ink); font: 700 10px/1 Arial, Helvetica, sans-serif; letter-spacing: -.04em; }

.screen { display: none; min-height: calc(100svh - 64px); padding: clamp(28px, 7vw, 88px) clamp(18px, 8vw, 128px); }
.screen.is-active { display: flex; flex-direction: column; }
.welcome-copy, .question-wrap, .confirmation-card { width: min(100%, 680px); }
.screen.is-active[data-screen="welcome"] { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(370px, .9fr); align-items: center; gap: clamp(44px, 8vw, 150px); max-width: 1520px; margin: 0 auto; }
.welcome-copy { align-self: center; max-width: 650px; }
.welcome-copy h1, h2 { margin: 0; max-width: 11ch; font-family: "Arial Rounded MT Bold", "Trebuchet MS", Arial, sans-serif; font-weight: 700; letter-spacing: -.075em; line-height: .91; }
.welcome-copy h1 { font-size: clamp(58px, 9vw, 132px); }
h2 { font-size: clamp(44px, 7vw, 86px); }
.name-accent { color: var(--pink); }
.eyebrow { display: flex; gap: 7px; align-items: center; margin: 0 0 18px; font: 700 10px/1 "Courier New", monospace; letter-spacing: .08em; }
.eyebrow span { width: 8px; height: 8px; background: var(--pink); border-radius: 50%; border: 1px solid var(--ink); }
.lede { max-width: 54ch; margin: 22px 0 30px; font-size: clamp(16px, 2vw, 20px); line-height: 1.5; }
.small-note { max-width: 45ch; margin: 14px 0 0; color: var(--muted); font: 11px/1.5 "Courier New", monospace; }
.submit-note { min-height: 17px; }
.turnstile-wrap { width: min(100%, 360px); min-height: 1px; margin: 20px 0 2px; }

.welcome-object { position: relative; width: 100%; min-height: min(62vw, 720px); align-self: stretch; overflow: hidden; border: 1px solid var(--ink); border-radius: var(--radius); background: var(--cream); }
.welcome-object img { display: block; width: 100%; height: 100%; min-height: min(62vw, 720px); object-fit: cover; object-position: center 54%; filter: saturate(.82) contrast(1.06); }
.shift-ticket { position: absolute; left: clamp(18px, 3vw, 36px); right: clamp(18px, 3vw, 36px); bottom: clamp(18px, 3vw, 36px); display: flex; flex-direction: column; justify-content: space-between; min-height: 136px; padding: 14px; border: 1px solid var(--ink); background: rgba(242,239,228,.96); transform: rotate(-3deg); animation: ticket-settle 900ms cubic-bezier(.2,.8,.2,1) both; }
.shift-ticket::after { position: absolute; inset: 0; content: ""; pointer-events: none; background: linear-gradient(120deg, transparent 42%, rgba(255,255,255,.52) 49%, transparent 56%); transform: translateX(-140%); animation: ticket-glint 5s 1.2s ease-in-out infinite; }
.ticket-topline, .ticket-bottomline { display: flex; justify-content: space-between; gap: 12px; font: 700 9px/1.2 "Courier New", monospace; letter-spacing: .08em; }
.ticket-bottomline { border-top: 1px solid var(--ink); padding-top: 10px; }
.ticket-grid { display: flex; align-items: center; justify-content: flex-end; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.ticket-mark { display: grid; width: 53px; height: 53px; place-items: center; border: 1px solid var(--ink); border-radius: 50%; font: 700 17px/1 Arial, sans-serif; }
.side-note { position: absolute; top: 22px; right: -2px; padding: 12px 13px; border: 1px solid var(--ink); border-right: 0; border-radius: 12px 0 0 12px; background: var(--paper); font: 700 9px/1.35 "Courier New", monospace; letter-spacing: .05em; }

.screen-top { width: 100%; max-width: 840px; display: flex; justify-content: space-between; align-items: center; align-self: flex-start; color: var(--muted); font: 10px/1 "Courier New", monospace; letter-spacing: .08em; }
.back-button { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.question-wrap { margin: auto; }
.field-label { display: block; margin: 16px 0; color: var(--muted); font: 700 10px/1.3 "Courier New", monospace; letter-spacing: .06em; }
input, textarea { width: 100%; margin-top: 7px; padding: 14px 0; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; outline: 0; background: transparent; color: var(--ink); font: 18px/1.35 Arial, Helvetica, sans-serif; }
textarea { min-height: 104px; resize: vertical; }
input:focus, textarea:focus { border-bottom: 3px solid var(--pink); }
input::placeholder, textarea::placeholder { color: #777269; }

.primary-button, .secondary-button { display: inline-flex; justify-content: space-between; align-items: center; gap: 40px; margin-top: 18px; padding: 16px 18px; border: 1px solid var(--ink); border-radius: 7px; cursor: pointer; font: 700 11px/1 "Courier New", monospace; letter-spacing: .06em; transition: transform .18s ease, background .18s ease, color .18s ease; }
.primary-button { background: var(--ink); color: var(--cream); }
.primary-button:hover, .primary-button:focus-visible { transform: translateY(-2px); background: #000; }
.primary-button:disabled { cursor: not-allowed; background: var(--deep-neutral); transform: none; }
.secondary-button { background: transparent; color: var(--ink); }
.secondary-button:hover, .secondary-button:focus-visible { background: var(--pink); }

.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 26px 0 12px; }
.choice-grid button, .slot-list button { min-height: 95px; padding: 15px; border: 1px solid var(--ink); border-radius: 0; background: var(--cream); color: var(--ink); cursor: pointer; text-align: left; font-size: 15px; line-height: 1.25; transition: background .18s ease, transform .18s ease, box-shadow .18s ease; }
.choice-grid button:hover, .choice-grid button:focus-visible, .choice-grid button.is-selected { background: var(--deep-neutral); color: var(--cream); transform: translateY(-2px); }
.choice-grid button.is-selected::after { content: ' ✓'; font-weight: 700; }

.slot-list { display: grid; gap: 9px; margin: 23px 0 12px; }
.booking-ticket { position: relative; width: min(100%, 500px); height: 174px; margin: 28px 0 24px; }
.booking-ticket .shift-ticket { inset: 0 26px 0 0; min-height: 0; transform: rotate(-2deg); }
.slot-list button { display: grid; grid-template-columns: 1fr auto; align-items: center; min-height: 74px; }
.slot-list button strong { font: 700 25px/1 "Arial Rounded MT Bold", "Trebuchet MS", sans-serif; letter-spacing: -.06em; }
.slot-list button span { grid-column: 1 / -1; margin-top: 5px; color: var(--muted); font: 10px/1 "Courier New", monospace; }
.slot-list button.is-selected { background: var(--deep-neutral); color: var(--cream); transform: translateY(-2px); }
.slot-list button.is-selected span { color: var(--cream); }

.confirmation-card { align-self: center; padding: clamp(28px, 6vw, 64px); background: var(--cream); border: 1px solid var(--ink); border-radius: var(--radius); }
.confirmation-card h2 { font-size: clamp(44px, 6vw, 74px); }
.confirmation-details { display: grid; gap: 1px; margin: 30px 0; background: var(--ink); border: 1px solid var(--ink); }
.signal-summary { display: grid; gap: 1px; margin: 30px 0; background: var(--ink); border: 1px solid var(--ink); }
.signal-summary div { display: flex; justify-content: space-between; gap: 18px; padding: 13px; background: var(--cream); font-size: 14px; }
.signal-summary span { color: var(--muted); font: 10px/1.4 "Courier New", monospace; letter-spacing: .05em; }
.email-preview { margin: 34px 0 28px; padding: 22px; border: 1px solid var(--ink); background: var(--paper); }
.email-preview h3 { max-width: 20ch; margin: 0 0 20px; font: 700 clamp(22px, 4vw, 34px)/1 "Arial Rounded MT Bold", "Trebuchet MS", Arial, sans-serif; letter-spacing: -.05em; }
.email-meta { display: grid; gap: 7px; padding-bottom: 13px; border-bottom: 1px solid var(--line); font-size: 13px; }
.email-meta div { display: grid; grid-template-columns: 62px 1fr; gap: 10px; }
.email-meta span { color: var(--muted); font: 700 9px/1.4 "Courier New", monospace; letter-spacing: .05em; }
.email-body { padding-top: 17px; font-size: 15px; line-height: 1.5; }
.email-body p { margin: 0 0 14px; }
.email-keep-note { margin: 18px 0 !important; padding: 14px; border-left: 4px solid var(--deep-neutral); background: var(--cream); }
.confirmation-details div { display: flex; justify-content: space-between; gap: 18px; padding: 13px; background: var(--cream); font-size: 14px; }
.confirmation-details span { color: var(--muted); font: 10px/1.4 "Courier New", monospace; letter-spacing: .05em; }
.note-card { margin: 0; padding: 16px; border-left: 5px solid var(--deep-neutral); background: #e7e3d6; font-size: 15px; line-height: 1.45; }
.prototype-preview { margin-top: 26px; }
.send-progress { display: none; width: min(100%, 360px); margin-top: 22px; color: var(--muted); font: 10px/1.4 "Courier New", monospace; letter-spacing: .04em; }
.send-progress.is-active { display: grid; gap: 8px; }
.send-progress.is-error { display: block; color: #8f153e; }
.send-progress.is-error .send-progress__track { display: none; }
.send-progress__track { height: 7px; overflow: hidden; border: 1px solid var(--ink); background: var(--cream); }
.send-progress__track i { display: block; width: 15%; height: 100%; background: var(--deep-neutral); transform: translateX(-110%); }
.send-progress.is-active .send-progress__track i { animation: signal-progress 900ms cubic-bezier(.3,.7,.2,1) forwards; }

footer { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 12px clamp(18px, 5vw, 64px); border-top: 1px solid var(--ink); background: var(--ink); color: var(--cream); font: 9px/1.45 "Courier New", monospace; letter-spacing: .04em; }
footer button { flex: 0 0 auto; border: 1px solid var(--cream); background: transparent; color: var(--cream); padding: 7px 8px; cursor: pointer; font: inherit; }
footer button:hover, footer button:focus-visible { background: var(--cream); color: var(--ink); border-color: var(--cream); }

@keyframes ticket-settle {
  from { opacity: 0; transform: translateY(18px) rotate(-7deg); }
  to { opacity: 1; transform: translateY(0) rotate(-4deg); }
}

@keyframes ticket-glint {
  0%, 65%, 100% { transform: translateX(-140%); }
  80% { transform: translateX(140%); }
}

@keyframes signal-progress {
  0% { transform: translateX(-110%); width: 18%; }
  38% { transform: translateX(170%); width: 55%; }
  100% { transform: translateX(165%); width: 65%; }
}

@media (max-width: 720px) {
  .screen { padding: 28px 18px 42px; }
  .screen.is-active[data-screen="welcome"] { display: flex; gap: 0; }
  .welcome-object { width: 100%; min-width: 0; min-height: 360px; margin-top: 44px; border-radius: 22px; }
  .welcome-object img { min-height: 360px; object-position: center 49%; }
  .shift-ticket { left: 20px; right: 46px; bottom: 24px; min-height: 128px; }
  .side-note { top: 16px; right: 0; }
  .choice-grid { grid-template-columns: 1fr; }
  .choice-grid button { min-height: 65px; }
  .email-preview { padding: 18px; }
  .welcome-copy h1 { font-size: clamp(56px, 17vw, 92px); }
  footer { align-items: flex-start; }
}

@media (min-width: 721px) and (max-width: 1040px) {
  .screen.is-active[data-screen="welcome"] { grid-template-columns: minmax(0, 1fr) minmax(310px, .75fr); gap: clamp(32px, 5vw, 64px); }
  .welcome-object, .welcome-object img { min-height: 520px; }
  .welcome-copy h1 { font-size: clamp(64px, 9vw, 104px); }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; } }
