:root {
  color-scheme: light;
  --night: #0b1720;
  --night-2: #0f202b;
  --paper: #f7f4ec;
  --paper-2: #fffdf8;
  --ink: #13212b;
  --muted: #69747c;
  --line: rgba(19, 33, 43, 0.13);
  --blue: #2d9ec9;
  --blue-dark: #176987;
  --coral: #ef7658;
  --lime: #d9e65d;
  --soft-blue: rgba(45, 158, 201, .10);
  --danger: #a63a37;
  --shadow: 0 24px 70px rgba(0, 0, 0, .26);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--night);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
  overflow-x: hidden;
}
button, input, select, textarea { font: inherit; }
button, label, select { -webkit-tap-highlight-color: transparent; }

.page-texture {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    radial-gradient(circle at 18% 10%, rgba(45,158,201,.12), transparent 30%),
    radial-gradient(circle at 82% 72%, rgba(239,118,88,.08), transparent 26%);
  background-size: 44px 44px, 44px 44px, auto, auto;
}

.shell {
  position: relative;
  z-index: 1;
  width: min(100%, 980px);
  min-height: 100vh;
  margin: 0 auto;
  padding: max(18px, env(safe-area-inset-top)) 18px max(24px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
}

.topbar {
  min-height: 66px;
  display: grid;
  grid-template-columns: 1fr minmax(140px, 230px);
  gap: 24px;
  align-items: center;
  margin-bottom: 20px;
  color: #fff;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
}
.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.28);
  background: var(--paper);
  color: var(--night);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: -.03em;
  transform: rotate(-3deg);
  box-shadow: 4px 4px 0 var(--blue);
}
.brand-copy {
  display: grid;
  gap: 2px;
  font-size: 16px;
  font-weight: 780;
  letter-spacing: -.025em;
}
.brand-copy small { color: rgba(255,255,255,.64); font-size: 10px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.progress-wrap { display: grid; gap: 6px; }
.progress-track { height: 7px; background: rgba(255,255,255,.14); overflow: hidden; border-radius: 99px; }
.progress-bar { width: 0; height: 100%; background: linear-gradient(90deg, var(--blue), #8ad9f4); transition: width 220ms ease; border-radius: inherit; }
.progress-label { min-height: 15px; text-align: right; color: rgba(255,255,255,.7); font-size: 11px; font-weight: 650; }

.survey-card {
  position: relative;
  width: 100%;
  background: var(--paper);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: clamp(24px, 5vw, 48px);
  overflow: hidden;
}
.survey-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 88px;
  height: 12px;
  background: linear-gradient(90deg, var(--blue) 0 58%, var(--coral) 58% 82%, var(--lime) 82%);
}

.intro-layout { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(280px, .88fr); gap: clamp(26px, 5vw, 54px); align-items: center; }
.intro-copy { min-width: 0; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  margin: 0 0 16px;
  padding: 7px 10px;
  border: 1px solid rgba(19,33,43,.12);
  background: #fffaf0;
  color: var(--blue-dark);
  font-size: 11px;
  font-weight: 780;
  letter-spacing: .07em;
  text-transform: uppercase;
}
h1, h2 { margin: 0; letter-spacing: -.045em; line-height: 1.04; }
h1 { font-size: clamp(42px, 8vw, 68px); max-width: 620px; }
h2 { font-size: clamp(29px, 5vw, 43px); max-width: 700px; }
.lead { margin: 18px 0 0; max-width: 620px; color: #41515c; font-size: 17px; }
.privacy-note { margin: 13px 0 0; max-width: 610px; color: var(--muted); font-size: 13px; }
.meta { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.meta span {
  padding: 8px 11px;
  border: 1px solid rgba(19,33,43,.11);
  background: rgba(255,255,255,.72);
  color: #3f505b;
  font-size: 11px;
  font-weight: 700;
}

.hero-art { position: relative; min-height: 390px; }
.poster-card, .wave-card { position: absolute; border: 1px solid rgba(19,33,43,.15); box-shadow: 10px 13px 0 rgba(19,33,43,.08); }
.poster-main {
  inset: 10px 42px 80px 6px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: var(--blue);
  color: white;
  transform: rotate(-3deg);
}
.poster-kicker { font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.poster-title { margin-top: auto; white-space: pre-line; font-size: clamp(42px, 6vw, 64px); line-height: .82; letter-spacing: -.07em; }
.poster-caption { margin-top: 18px; font-size: 10px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.ticket-card {
  width: 150px;
  right: 0;
  bottom: 12px;
  z-index: 4;
  padding: 18px 16px;
  background: var(--coral);
  color: var(--night);
  transform: rotate(5deg);
}
.ticket-tag { display: block; font-size: 9px; font-weight: 900; letter-spacing: .18em; }
.ticket-big { display: block; font-size: 62px; font-weight: 900; line-height: .95; letter-spacing: -.08em; }
.ticket-copy { display: block; margin-top: 8px; font-size: 10px; font-weight: 800; letter-spacing: .07em; }
.wave-card {
  left: 34px;
  right: 68px;
  bottom: 0;
  z-index: 3;
  padding: 12px 14px 16px;
  background: var(--paper-2);
  transform: rotate(2deg);
}
.wave-label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .14em; }
.wave-bars { height: 58px; display: flex; gap: 5px; align-items: center; }
.wave-bar { flex: 1; height: var(--h); min-height: 9px; background: var(--night); transform-origin: center; animation: wave 1.8s ease-in-out var(--delay) infinite alternate; }
@keyframes wave { from { transform: scaleY(.72); opacity: .68; } to { transform: scaleY(1); opacity: 1; } }

.question-overline { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.question-number { color: var(--muted); font-size: 12px; font-weight: 700; }
.question-group { padding: 5px 8px; background: var(--soft-blue); color: var(--blue-dark); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.question-help { margin: 13px 0 0; color: var(--muted); font-size: 14px; max-width: 670px; }
.options { display: grid; gap: 10px; margin-top: 28px; }
.option {
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.74);
  cursor: pointer;
  transition: border-color 130ms ease, background 130ms ease, transform 130ms ease, box-shadow 130ms ease;
}
.option:hover { border-color: rgba(45,158,201,.55); transform: translateY(-1px); box-shadow: 0 9px 20px rgba(17,32,42,.06); }
.option:active { transform: scale(.997); }
.option.selected { border-color: var(--blue); background: #ecf8fc; box-shadow: inset 4px 0 0 var(--blue); }
.option input { width: 19px; height: 19px; margin: 0; accent-color: var(--blue); flex: 0 0 auto; }
.option-text { font-weight: 620; }

.field, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(255,255,255,.78);
  outline: none;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
.field, select { min-height: 58px; padding: 0 15px; }
textarea { min-height: 135px; resize: vertical; padding: 15px; }
.field-wrap { margin-top: 28px; }
.field:focus, textarea:focus, select:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(45,158,201,.12); }
.char-count { margin-top: 7px; text-align: right; color: var(--muted); font-size: 11px; }

.likert { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 28px; }
.likert button {
  min-height: 60px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.78);
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
  transition: transform .13s ease, background .13s ease, border-color .13s ease;
}
.likert button:hover { transform: translateY(-1px); border-color: rgba(45,158,201,.5); }
.likert button.selected { background: var(--night); border-color: var(--night); color: white; }
.scale-labels { margin-top: 9px; display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 11px; }

.actions { margin-top: 32px; display: flex; align-items: center; gap: 10px; }
.intro-actions { margin-top: 28px; }
.btn { min-height: 52px; border: 0; padding: 0 20px; cursor: pointer; font-weight: 770; transition: transform .13s ease, box-shadow .13s ease, opacity .13s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { margin-left: auto; background: var(--night); color: #fff; box-shadow: 5px 6px 0 var(--blue); }
.intro-actions .btn-primary { margin-left: 0; }
.btn-primary:hover { box-shadow: 7px 8px 0 var(--blue); }
.btn-secondary { background: transparent; color: #52616b; border: 1px solid rgba(19,33,43,.12); padding-inline: 14px; }
.btn-link { background: transparent; color: var(--blue-dark); text-decoration: underline; text-underline-offset: 3px; }
.btn:focus-visible, .option:focus-within, .likert button:focus-visible { outline: 3px solid rgba(45,158,201,.25); outline-offset: 2px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

.error { margin: 17px 0 0; min-height: 20px; color: var(--danger); font-size: 13px; font-weight: 650; }
.status-icon { width: 54px; height: 54px; display: grid; place-items: center; margin-bottom: 18px; background: var(--lime); color: var(--night); font-size: 24px; font-weight: 900; transform: rotate(-3deg); box-shadow: 5px 5px 0 var(--blue); }
.duplicate { margin: 20px 0 0; padding: 14px; background: #fff3cf; border: 1px solid rgba(169,125,28,.2); color: #6b521b; font-size: 13px; }
.footer { margin-top: auto; padding-top: 20px; display: flex; justify-content: center; flex-wrap: wrap; gap: 7px; color: rgba(255,255,255,.58); font-size: 10px; }

@media (max-width: 760px) {
  .intro-layout { grid-template-columns: 1fr; }
  .hero-art { min-height: 300px; max-width: 470px; width: 100%; margin: 4px auto 0; }
  .poster-main { inset: 6px 44px 62px 4px; }
  .wave-card { left: 24px; right: 64px; }
}
@media (max-width: 560px) {
  .shell { padding-inline: 11px; }
  .topbar { grid-template-columns: 1fr; gap: 12px; margin-bottom: 14px; }
  .brand-copy small { display: none; }
  .survey-card { border-radius: 20px; padding: 25px 18px; }
  h1 { font-size: 43px; }
  .lead { font-size: 16px; }
  .hero-art { min-height: 250px; }
  .poster-main { inset: 4px 46px 56px 2px; padding: 20px; }
  .poster-title { font-size: 43px; }
  .ticket-card { width: 124px; padding: 14px; }
  .ticket-big { font-size: 48px; }
  .wave-card { left: 16px; right: 58px; padding: 10px 12px 12px; }
  .wave-bars { height: 44px; }
  .option { min-height: 53px; }
  .actions { position: sticky; bottom: max(8px, env(safe-area-inset-bottom)); padding-top: 18px; background: linear-gradient(180deg, rgba(247,244,236,0), rgba(247,244,236,.98) 22%); }
  .btn { padding-inline: 15px; }
}

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