/* ============================================================
   CompareWindowFilms.com
   Self-hosted fonts. Google Fonts was a third-party dependency on
   the critical render path, and this page's biggest moment is a QR
   scan on conference wifi. Same-origin woff2 removes that failure
   mode and keeps visitor IPs off a third party.
   ============================================================ */
@font-face{font-family:'Outfit';font-style:normal;font-weight:300;font-display:swap;src:url('/assets/fonts/outfit-latin-300-normal.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Outfit';font-style:normal;font-weight:400;font-display:swap;src:url('/assets/fonts/outfit-latin-400-normal.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Outfit';font-style:normal;font-weight:500;font-display:swap;src:url('/assets/fonts/outfit-latin-500-normal.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Outfit';font-style:normal;font-weight:600;font-display:swap;src:url('/assets/fonts/outfit-latin-600-normal.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Outfit';font-style:normal;font-weight:700;font-display:swap;src:url('/assets/fonts/outfit-latin-700-normal.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Outfit';font-style:normal;font-weight:800;font-display:swap;src:url('/assets/fonts/outfit-latin-800-normal.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Space Grotesk';font-style:normal;font-weight:300;font-display:swap;src:url('/assets/fonts/space-grotesk-latin-300-normal.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Space Grotesk';font-style:normal;font-weight:400;font-display:swap;src:url('/assets/fonts/space-grotesk-latin-400-normal.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Space Grotesk';font-style:normal;font-weight:500;font-display:swap;src:url('/assets/fonts/space-grotesk-latin-500-normal.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Space Grotesk';font-style:normal;font-weight:600;font-display:swap;src:url('/assets/fonts/space-grotesk-latin-600-normal.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Space Grotesk';font-style:normal;font-weight:700;font-display:swap;src:url('/assets/fonts/space-grotesk-latin-700-normal.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
/* ============================================================
   Tokens
   ============================================================ */
:root {
  --bg-dark: #050505;
  --bg-midnight: #0a1128;
  --accent-blue: #2563eb;
  /* #2563eb on near-black measures 3.6:1 — fine for large display type and
     button fills, too low for small text. --accent-readable is the one to use
     wherever text drops below ~19px. */
  --accent-readable: #6ba1ff;
  --accent-light: #60a5fa;
  --text-main: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.72);
  --text-faint: rgba(255, 255, 255, 0.55);
  --error: #ff8a93;
  --success: #34d399;

  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.28);
  --field-bg: rgba(255, 255, 255, 0.05);

  --font-serif: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --font-sans: 'Outfit', ui-sans-serif, system-ui, sans-serif;

  --text-xs: .75rem;
  --text-sm: .875rem;
  --text-base: 1rem;
  --radius: 6px;
  --radius-lg: 14px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  /* Desktop is a fixed two-panel stage. Mobile overrides this below. */
  overflow: hidden;
  height: 100vh;
  height: 100svh;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

/* Focus. The original had none anywhere — keyboard users had nothing to follow. */
:focus-visible {
  outline: 2px solid var(--accent-readable);
  outline-offset: 3px;
  border-radius: 3px;
}
button, a, input, select, textarea, label {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 10001;
  background: var(--accent-blue); color: #fff;
  padding: .75rem 1.25rem; border-radius: 0 0 var(--radius) 0;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { left: 0; }

/* Off-canvas rather than display:none — some bots skip hidden fields but
   happily fill anything still in the DOM. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.mb-sm { margin-bottom: .75rem; }
.mb-lg { margin-bottom: 1.5rem; }

/* ============================================================
   1. Intro
   Was eight seconds with no way out. At a trade show that is a long
   time to hold a phone, so: ~3s, skippable by tap, click, key or
   scroll, and skipped entirely under prefers-reduced-motion.
   ============================================================ */
#intro-screen {
  position: fixed; inset: 0;
  background-color: var(--bg-dark);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  cursor: pointer;
}
#intro-screen.is-gone { display: none; }

.intro-phase {
  text-align: center;
  position: absolute;
  opacity: 0;
  pointer-events: none;
  padding: 0 1.5rem;
}
.intro-wordmark {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 4.2vw, 3.2rem);
  font-weight: 600;
  letter-spacing: .04em;
  line-height: 1.15;
  color: #fff;
  text-wrap: balance;
}
.intro-sub {
  margin-top: .9rem;
  font-family: var(--font-serif);
  font-size: var(--text-sm);
  letter-spacing: .22em;
  color: var(--text-faint);
  text-transform: uppercase;
}
.intro-skip {
  position: absolute;
  top: 1.25rem; right: 1.25rem;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .8rem 1.25rem; /* comfortably past 44px wide, close to it tall */
  border-radius: 999px;
  cursor: pointer;
  transition: border-color .25s, color .25s;
}
.intro-skip:hover { border-color: var(--line-strong); color: #fff; }

/* ============================================================
   2. Shell
   ============================================================ */
#main-content {
  opacity: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: opacity 1s ease;
}
#main-content.is-visible { opacity: 1; }

.header {
  padding: 1.75rem clamp(1.25rem, 4vw, 4rem);
  position: absolute; top: 0; left: 0;
  width: 100%;
  z-index: 100;
  display: flex; align-items: center;
  pointer-events: none;
}
.header-logo {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: .06em;
  color: #fff;
}

/* ============================================================
   3. Split layout — desktop
   ============================================================ */
.split-layout { display: flex; flex: 1; min-height: 0; }

.left-col {
  width: 45%;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at center left, var(--bg-midnight) 0%, var(--bg-dark) 100%);
  padding: clamp(2rem, 4vw, 4rem);
  position: relative;
}
.left-content {
  max-width: 460px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 3vh, 2.5rem);
}

/* One voice per element. The title is context, so it reads in quiet white;
   the booth pill is the single blue text accent; the countdown digits are the
   largest thing in the column and the CTA is the only filled block. */
.launch-title {
  font-family: var(--font-sans);
  font-size: clamp(1.3rem, 1.8vw, 1.65rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.015em;
  color: var(--text-main);
  text-wrap: balance;
}
.launch-meta {
  margin-top: .55rem;
  font-size: var(--text-base);
  letter-spacing: .04em;
  color: var(--text-muted);
}

.left-focus {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(1rem, 2vh, 1.5rem);
}

.booth-badge {
  font-family: var(--font-serif);
  font-size: clamp(.95rem, 1.2vw, 1.1rem);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-readable);
  border: 1px solid rgba(107, 161, 255, .4);
  border-radius: 999px;
  padding: .55rem 1.25rem;
}
.booth-badge strong { font-weight: 700; color: #fff; }

.wfct-logo {
  width: clamp(110px, 11vw, 150px);
  height: auto;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .55));
}

.timer {
  display: flex;
  gap: clamp(1rem, 2.5vw, 2rem);
  margin-top: clamp(.4rem, 1.2vh, .9rem);
}
.timer-unit { display: flex; flex-direction: column; align-items: center; min-width: 3.2rem; }
.timer-unit > span:first-child {
  font-size: clamp(2.3rem, 3.6vw, 3.1rem);
  font-weight: 300;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.timer-label {
  font-size: var(--text-xs);
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-top: .5rem;
}

.cta-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .9rem;
  width: 100%;
  margin-top: clamp(.4rem, 1.2vh, .9rem);
}
.cta-wrapper p { color: var(--text-muted); }
.cta-wrapper .btn-primary { width: min(100%, 22rem); }

.btn-primary {
  background: var(--accent-blue);
  color: #fff;
  border: none;
  padding: 1rem 2rem;
  font-size: var(--text-base);
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  font-family: var(--font-sans);
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.btn-primary:hover { background: var(--accent-light); color: #06122b; }
.btn-primary:active { transform: translateY(1px); }
.btn-primary:disabled { opacity: .6; cursor: progress; transform: none; }

.btn-secondary {
  background: rgba(255, 255, 255, .1);
  color: #fff;
  border: none;
  padding: 1rem 2rem;
  font-size: var(--text-base);
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  font-family: var(--font-sans);
  transition: background .2s;
}
.btn-secondary:hover { background: rgba(255, 255, 255, .2); }

/* ============================================================
   4. Questions column
   ============================================================ */
.right-col { width: 55%; position: relative; overflow: hidden; }

.questions-scroll-container {
  height: 100%;
  overflow: hidden;
  position: relative;
  padding: 0 clamp(1.5rem, 4vw, 4rem) 0 clamp(2rem, 5vw, 5rem);
  -webkit-mask-image: linear-gradient(to bottom, transparent 15%, #000 40%, #000 60%, transparent 85%);
  mask-image: linear-gradient(to bottom, transparent 15%, #000 40%, #000 60%, transparent 85%);
}

.questions-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  transition: transform .9s var(--ease);
}

/* Rotation progress. Seven questions on a 3.2s clock is a 22-second cycle;
   without a marker a booth visitor has no idea the column even rotates, or
   how much of it they have seen. Decorative for AT — the list itself is
   fully readable to screen readers. */
.q-progress {
  position: absolute;
  left: clamp(2rem, 5vw, 5rem);
  bottom: 3.5rem;
  display: flex;
  gap: .5rem;
  z-index: 5;
}
.q-progress span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .25);
  transition: background .3s ease;
}
.q-progress span.on { background: var(--accent-readable); }

.question-item {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.question-item h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.6vw, 2.5rem);
  font-weight: 400;
  line-height: 1.3;
  color: rgba(255, 255, 255, .92);
  max-width: 600px;
  text-wrap: balance;
}

/* ============================================================
   5. Footer
   ============================================================ */
.site-footer {
  position: absolute;
  bottom: 1.25rem; left: 0;
  width: 100%;
  text-align: center;
  z-index: 50;
  pointer-events: none;
}
.site-footer p {
  font-family: var(--font-serif);
  font-size: .7rem;
  letter-spacing: .15em;
  color: var(--text-faint);
  text-transform: uppercase;
}
.site-footer a {
  color: var(--text-muted);
  text-decoration: none;
  pointer-events: auto;
  transition: color .3s ease;
  /* Grow the tap target without moving the type. */
  display: inline-block;
  padding: .6rem .35rem;
  margin: -.6rem -.35rem;
}
.site-footer a:hover { color: var(--accent-readable); }

/* ============================================================
   6. Modal
   ============================================================ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, .82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.modal-overlay:not([hidden]) { display: flex; }
.modal-overlay.active { opacity: 1; pointer-events: auto; }

.glass-panel {
  /* Shared with the sticky nav bar, which bleeds across this padding. */
  --panel-x: clamp(1.5rem, 4vw, 3rem);
  --panel-y: clamp(1.5rem, 4vw, 3rem);
  background: rgba(10, 17, 40, .97);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: var(--panel-y) var(--panel-x) 0;
  width: 100%;
  max-width: 750px;
  max-height: min(90vh, 900px);
  max-height: min(90svh, 900px);
  overflow-y: auto;
  overscroll-behavior: contain;
  position: relative;
  box-shadow: 0 25px 50px rgba(0, 0, 0, .5);
  scrollbar-width: thin;
  scrollbar-color: var(--accent-blue) rgba(255, 255, 255, .05);
}
.glass-panel::-webkit-scrollbar { width: 6px; }
.glass-panel::-webkit-scrollbar-track { background: rgba(255, 255, 255, .05); }
.glass-panel::-webkit-scrollbar-thumb { background-color: var(--accent-blue); border-radius: 10px; }

.close-modal {
  position: absolute;
  top: .5rem; right: .85rem;
  background: none; border: none;
  color: var(--text-muted);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
}
.close-modal:hover { color: #fff; background: rgba(255, 255, 255, .07); }

.modal-content h2 {
  font-family: var(--font-serif);
  margin-bottom: .5rem;
  font-size: clamp(1.25rem, 3.5vw, 1.5rem);
  font-weight: 600;
  padding-right: 2.5rem;
}
.form-subhead {
  color: var(--text-muted);
  font-size: var(--text-sm);
  margin-bottom: clamp(1.25rem, 3vw, 1.75rem);
  line-height: 1.55;
}

/* ============================================================
   7. Multi-step wizard
   ============================================================ */
.form-step { display: none; }
.form-step.active { display: block; animation: fadeIn .35s ease forwards; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

.form-progress { display: flex; justify-content: center; gap: .5rem; margin-bottom: 1.75rem; }
.step-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .22);
  transition: background .3s ease;
}
.step-dot.active { background: var(--accent-readable); }

/* The dots alone do not say where you are or how much is left, so the
   written count sits in the nav bar — visible at the moment of action
   even when a long step has scrolled the dots away. */
.step-count {
  text-align: center;
  font-size: var(--text-xs);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0;
}

/* Sticky inside the scrolling panel: Back/Next stay reachable on long
   steps instead of living below two screens of fields. */
.form-navigation {
  position: sticky;
  bottom: 0;
  z-index: 5;
  display: grid;
  /* Buttons keep their natural width; the counter flexes in the middle. */
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  margin: 2rem calc(-1 * var(--panel-x)) 0;
  padding: 1rem var(--panel-x) calc(var(--panel-y) * .75);
  border-top: 1px solid var(--line);
  background: rgba(10, 17, 40, .97);
}
.form-navigation #prevBtn { grid-column: 1; justify-self: start; }
.form-navigation .step-count { grid-column: 2; grid-row: 1; }
.form-navigation #nextBtn,
.form-navigation #submitBtn { grid-column: 3; grid-row: 1; justify-self: end; }

/* ============================================================
   8. Form fields
   ============================================================ */
fieldset {
  border: none;
  border-top: 1px solid var(--line);
  margin-bottom: 2rem;
  padding-top: 1.5rem;
}
fieldset.bare { border: none; padding-top: 0; margin-bottom: 1.5rem; }

legend {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--accent-readable);
  padding: 0 10px;
  margin-left: -10px;
  font-weight: 600;
}
legend.as-label {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 500;
  padding: 0;
  margin: 0 0 .6rem;
}

.form-row { display: flex; gap: 1.25rem; margin-bottom: 1.25rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group.half { flex: 1; margin-bottom: 0; }
.form-row.three-col .form-group { flex: 1; margin-bottom: 0; }

/* :not(.custom-check) matters: a checkbox label inside a .form-group must
   keep its flex row — this selector once forced it to display:block and
   uppercase, which broke the consent checkboxes into stacked shouting caps. */
.form-group > label:not(.custom-check),
.sub-label {
  display: block;
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-bottom: .5rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.sub-label { margin-bottom: 1rem; text-transform: none; letter-spacing: 0; font-size: var(--text-sm); }
/* Letter-spaced caps suit two-word labels, not full sentences. */
.form-group > label.long-label {
  text-transform: none;
  letter-spacing: 0;
  font-size: var(--text-sm);
  line-height: 1.45;
}

/* :not(...) matters. Without it this rule also matches the checkboxes
   nested inside .form-group, handing each one 13.6px of text-input padding
   on top of its 20px box — they rendered nearly 50px square next to 14px
   labels. Same family of specificity leak as the consent labels. */
.form-group input:not([type="checkbox"]):not([type="radio"]),
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--field-bg);
  border: 1px solid var(--line);
  color: #fff;
  /* 16px minimum — anything smaller makes iOS Safari zoom on focus, which
     is jarring mid-form on a phone. */
  font-size: 16px;
  padding: .85rem 1rem;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  transition: border-color .25s ease, background .25s ease;
}
/* .48 measures ~4.5:1 on the field fill; .38 sat at 3.5:1. Still clearly
   dimmer than entered text (#fff). */
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255, 255, 255, .48); }

.form-group input:not([type="checkbox"]):focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-readable);
  background: rgba(255, 255, 255, .08);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .25);
}
.form-group input[aria-invalid="true"] { border-color: var(--error); }

textarea { resize: vertical; min-height: 90px; }

.form-group select.custom-select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1em;
}

/* Errors were a red border and nothing else — no message, nothing announced. */
.field-error {
  color: var(--error);
  font-size: var(--text-sm);
  margin-top: .5rem;
  line-height: 1.4;
}

.checkbox-group { display: flex; flex-direction: column; gap: .75rem; }
.checkbox-group.inline { flex-direction: row; flex-wrap: wrap; gap: 1.25rem; }
.checkbox-group.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }

.custom-check {
  display: flex;
  align-items: center;
  gap: .6rem;
  cursor: pointer;
  /* Comfortable tap target without changing the visual box size. */
  padding: .3rem 0;
}
.custom-check input[type="checkbox"] {
  appearance: none;
  background-color: rgba(255, 255, 255, .05);
  margin: 0;
  font: inherit;
  color: currentColor;
  width: 1.25em; height: 1.25em;
  flex: none;
  border: 1px solid var(--line-strong);
  border-radius: .2em;
  display: grid;
  place-content: center;
  cursor: pointer;
}
.custom-check input[type="checkbox"]::before {
  content: "";
  width: .7em; height: .7em;
  transform: scale(0);
  transition: 120ms transform ease-in-out;
  box-shadow: inset 1em 1em var(--accent-readable);
  transform-origin: center;
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}
.custom-check input[type="checkbox"]:checked::before { transform: scale(1); }
.custom-check input[type="checkbox"]:checked { border-color: var(--accent-readable); }
.custom-check span { font-size: var(--text-sm); color: rgba(255, 255, 255, .92); line-height: 1.45; }

.align-top { align-items: flex-start; }
.align-top input[type="checkbox"] { margin-top: .2rem; }
.small-text { font-size: var(--text-sm); color: var(--text-muted); line-height: 1.5; }
.small-text a, .consent-check a { color: var(--accent-readable); text-decoration: underline; }

.consent-second { margin-top: 1rem; }
.consent-fieldset { border-top: 1px solid var(--line); padding-top: 1.25rem; margin-bottom: 1.5rem; }
.consent-check span { font-size: var(--text-sm); color: #fff; }

.privacy-disclaimer {
  background: rgba(255, 255, 255, .05);
  border-left: 3px solid var(--success);
  padding: 1rem;
  border-radius: var(--radius);
  margin-top: 1.5rem;
}
.privacy-disclaimer p { font-size: var(--text-sm); color: var(--text-muted); line-height: 1.5; }

.form-status {
  margin: 1rem 0;
  padding: .85rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 138, 147, .4);
  background: rgba(70, 18, 26, .4);
  color: #ffd7db;
  font-size: var(--text-sm);
  text-align: center;
}
.form-status a { color: #fff; text-decoration: underline; }

.btn-spinner { font-weight: 800; letter-spacing: 2px; animation: blink 1s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }

/* ============================================================
   9. Success
   ============================================================ */
.success-screen { text-align: center; padding: 2.5rem 1rem; animation: fadeIn .5s ease; }
.success-icon {
  width: 80px; height: 80px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: rgba(52, 211, 153, .12);
  display: grid; place-items: center;
  color: var(--success);
}
.success-icon svg { width: 40px; height: 40px; }
.success-screen h2 { font-size: 2rem; font-family: var(--font-serif); margin-bottom: 1rem; }
.success-sub { color: var(--text-muted); margin-bottom: 2rem; }
.success-contact {
  background: rgba(255, 255, 255, .05);
  padding: 1.5rem;
  border-radius: 8px;
  font-size: var(--text-sm);
  color: var(--text-muted);
}
.success-contact a {
  color: var(--accent-readable);
  text-decoration: none;
  font-size: 1.1rem;
  display: block;
  margin-top: .5rem;
  font-weight: 600;
}
.btn-close-success { margin-top: 2rem; }

/* ============================================================
   10. Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ============================================================
   11. Mobile and tablet
   The original media query was never closed — 100 opening braces to
   99 closing — so everything after it was swallowed by the parser.
   On a phone the entire questions column disappeared: the document
   measured exactly one screen tall and the auto-scroll dragged the
   list 2,100px out of view. The booth QR code points at phones, so
   that was the whole message lost for the primary audience.
   ============================================================ */
@media (max-width: 1024px) {
  body { overflow: auto; height: auto; }

  #main-content { height: auto; min-height: 100svh; }

  .split-layout { flex-direction: column; }

  .left-col,
  .right-col { width: 100%; height: auto; }

  .left-col { padding-top: 6.5rem; padding-bottom: 2.5rem; }

  /* Stacked layout centres everything else; a left-anchored title above a
     centred column read as a misalignment rather than a choice. */
  .countdown-widget { text-align: center; }

  .right-col {
    border-top: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(10, 17, 40, .55), transparent);
    padding: 2.25rem 0 2.5rem;
  }

  /* The rotation is kept, but inside a band one question tall rather than
     one viewport tall — so the questions sit under the countdown instead
     of being pushed off the document, and you see one at a time rather
     than four fading into each other. */
  .questions-scroll-container {
    height: 11rem;
    padding: 0 1.5rem;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 18%, #000 82%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 18%, #000 82%, transparent 100%);
  }

  .q-progress {
    position: static;
    justify-content: center;
    padding-top: 1rem;
  }

  .question-item {
    height: 11rem;
    justify-content: center;
    text-align: center;
    padding: 0 .5rem;
  }

  /* Absolute positioning made sense while the page was exactly one screen
     tall. Once the document scrolls it lands in the middle of the
     questions instead of at the bottom. */
  .site-footer {
    position: static;
    padding: 1.75rem 1.25rem calc(1.75rem + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
  }
  .question-item h2 { font-size: clamp(1.25rem, 5.2vw, 1.75rem); max-width: 34ch; }

  .checkbox-group.grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .header { padding: 1.25rem; }
  .left-col { padding-left: 1.25rem; padding-right: 1.25rem; }
  .form-row { flex-direction: column; gap: 1.25rem; }
  .form-row.three-col { flex-direction: row; gap: .6rem; }
  .form-group.half { margin-bottom: 0; }
  .checkbox-group.inline { gap: .75rem 1.25rem; }
  .timer { gap: .9rem; }
  .form-navigation { gap: .6rem; }
  .btn-primary, .btn-secondary { padding: .95rem 1.4rem; }
  .glass-panel {
    --panel-x: 1.25rem;
    --panel-y: 1.5rem;
    padding-top: 2.5rem; /* clearance for the close button */
  }
}
