/* Dumpster Expo 2026 surveys: white, clean, one question at a time. */
:root {
  --bg: #FFFFFF;
  --text: #1F2328;
  --muted: #5F6873;
  --line: #E3E6EA;
  --line-strong: #CDD3DA;
  --blue: #0A78CC;        /* logo blue: selections and focus */
  --blue-soft: #EEF6FD;
  --yellow: #F3C12F;      /* logo yellow: progress and the start/finish buttons */
  --yellow-hover: #E6B31D;
  --red: #C8101E;         /* logo red: the leading edge of the progress bar */
  --road: #2B2F35;        /* the racetrack */
  --radius: 12px;
  --maxw: 560px;
  color-scheme: light;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
html { background: var(--bg); scroll-padding-top: env(safe-area-inset-top, 0px); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, video { max-width: 100%; }
button, input, textarea { font: inherit; color: inherit; }

.screen { max-width: var(--maxw); margin: 0 auto; padding: 18px 20px 48px; }
.screen-enter { animation: screen-in .26s cubic-bezier(.2,.7,.2,1) both; }
@keyframes screen-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- intro ---------- */
.brand { padding: 6px 0 18px; }
.logo { display: block; height: 34px; width: auto; }
.video-frame {
  position: relative; width: 100%; aspect-ratio: var(--ratio, 16 / 9);
  border-radius: 16px; overflow: hidden; background: var(--road);
}
.video-frame.portrait { width: auto; height: min(62vh, 560px); max-width: 100%; margin: 0 auto; }
.video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; background: var(--road); }
.play {
  position: absolute; left: 12px; bottom: 12px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 9px;
  border: 0; border-radius: 999px; background: rgba(255,255,255,.95); color: var(--text);
  font-weight: 600; font-size: 15px; cursor: pointer; box-shadow: 0 2px 12px rgba(0,0,0,.22);
}
.play svg { width: 26px; height: 26px; }
.video-fallback {
  position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; padding: 24px; text-align: center; background: var(--road);
}
.video-fallback p { margin: 0; max-width: 30ch; font-size: 16px; line-height: 1.4; color: rgba(255,255,255,.9); }
.vf-flag { width: 44px; height: 44px; border-radius: 6px; border: 2px solid #fff;
  background: conic-gradient(#000 25%, #fff 0 50%, #000 0 75%, #fff 0) 0 0 / 14.67px 14.67px; }
.intro-title {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif; font-weight: 800;
  font-size: clamp(36px, 9.4vw, 50px); line-height: 1; letter-spacing: -.005em; margin: 26px 0 12px;
}
.intro-sub { margin: 0 0 26px; color: var(--muted); font-size: 18px; }
.intro-note { margin: 14px 0 0; text-align: center; color: var(--muted); font-size: 14.5px; }
@media (max-width: 600px) {
  .intro { text-align: center; }
  .intro .brand .logo, .q-screen .brand .logo { margin-inline: auto; }
  .intro .play { left: 50%; transform: translateX(-50%); white-space: nowrap; }
}

/* ---------- buttons ---------- */
.btn {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 56px; padding: 0 20px;
  border: 1.5px solid transparent; border-radius: var(--radius);
  font-weight: 700; font-size: 18px; line-height: 1.1; text-align: center; text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-go { background: var(--yellow); color: #1F2328; font-family: "Barlow Condensed", "Arial Narrow", sans-serif; font-weight: 800; font-size: 23px; letter-spacing: .01em; }
.btn-go:hover { background: var(--yellow-hover); }
.intro .btn-go {
  min-height: 68px; padding: 16px 22px; border: 2px solid #36d98a;
  background: linear-gradient(135deg, #087b40, #056432); color: #fff;
  font-size: 26px; border-radius: 15px;
  box-shadow: 0 6px 18px rgba(5,100,50,.22), 0 0 0 4px rgba(54,217,138,.14);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.intro .btn-go:hover { background: linear-gradient(135deg, #087b40, #056432); border-color: #79f0af; box-shadow: 0 6px 22px rgba(5,100,50,.28), 0 0 0 5px rgba(54,217,138,.18); }
.intro .btn-go:focus-visible { outline: 3px solid #064e2b; outline-offset: 5px; }
.btn-dark { background: var(--text); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-ghost { background: #fff; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--text); }
.btn:disabled { background: #ECEEF1; border-color: #E3E6EA; color: #7A838E; cursor: not-allowed; }
.linkish {
  display: block; margin: 10px auto 0; min-height: 44px; padding: 0 12px; border: 0; background: none;
  color: var(--muted); font-size: 15.5px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.btn:focus-visible, .linkish:focus-visible, .back:focus-visible, .play:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

/* ---------- question screen ---------- */
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; margin: 0 -20px; padding: 8px 20px 14px; background: var(--bg); }
.topbar-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.back {
  display: inline-flex; align-items: center; gap: 2px; min-height: 44px; padding: 0 12px 0 4px; margin-left: -6px;
  border: 0; border-radius: 8px; background: none; color: var(--text); font-weight: 600; font-size: 16px; cursor: pointer;
}
.back svg { width: 22px; height: 22px; }
.count { color: var(--muted); font-size: 15px; }
.count b { font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 18px; color: var(--text); }

/* the racetrack: asphalt, a dashed center line, and a checkered flag at the finish */
.track-row { display: flex; align-items: center; gap: 10px; }
.track { position: relative; flex: 1; height: 12px; border-radius: 999px; background: var(--road); overflow: hidden; }
.track::before {
  content: ""; position: absolute; left: 10px; right: 10px; top: 50%; height: 2px; margin-top: -1px;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.55) 0 12px, transparent 12px 22px);
}
.fill {
  position: absolute; top: 0; bottom: 0; left: 0; border-radius: 999px; background: var(--yellow);
  box-shadow: inset -6px 0 0 var(--red); transition: width .5s cubic-bezier(.2,.7,.2,1);
}
.flag { flex: none; width: 22px; height: 22px; border-radius: 4px; border: 1.5px solid var(--text);
  background: conic-gradient(#000 25%, #fff 0 50%, #000 0 75%, #fff 0) 0 0 / 7.33px 7.33px; }

.question { padding-top: 26px; }
.q-title {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif; font-weight: 700;
  font-size: clamp(28px, 7.4vw, 36px); line-height: 1.08; letter-spacing: -.003em; margin: 0;
}
.q-title:focus { outline: none; }
.q-help { margin: 8px 0 0; color: var(--muted); font-size: 16px; }

.opts { display: grid; gap: 10px; margin-top: 22px; }
.opts.two { grid-template-columns: 1fr 1fr; }
.opt {
  display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 12px 16px;
  border: 1.5px solid var(--line-strong); border-radius: var(--radius); background: #fff;
  font-size: 17px; font-weight: 500; line-height: 1.3; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: border-color .15s, background-color .15s;
}
@media (hover: hover) { .opt:hover { border-color: var(--blue); } }
.opt:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); }
.opt:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 2px; }
input[type=radio], input[type=checkbox] {
  -webkit-appearance: none; appearance: none; flex: none; margin: 0; width: 22px; height: 22px;
  border: 2px solid #8C95A1; background: #fff; cursor: pointer;
}
input[type=radio] { border-radius: 50%; }
input[type=checkbox] { border-radius: 6px; }
input[type=radio]:checked { border-color: var(--blue); background: var(--blue); box-shadow: inset 0 0 0 4px #fff; }
input[type=checkbox]:checked {
  border-color: var(--blue);
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat;
}

/* 0 to 10 */
.scale { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 22px; }
@media (min-width: 520px) { .scale { grid-template-columns: repeat(11, 1fr); } }
.pip { position: relative; display: block; cursor: pointer; }
.pip input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; border: 0; }
.pip span {
  display: flex; align-items: center; justify-content: center; min-height: 52px;
  border: 1.5px solid var(--line-strong); border-radius: 10px; background: #fff;
  font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 21px;
  transition: background-color .15s, border-color .15s, color .15s;
}
@media (hover: hover) { .pip:hover span { border-color: var(--blue); } }
.pip input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; }
.pip input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.scale-ends { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; color: var(--muted); font-size: 14.5px; }

/* typed answers */
.q-screen textarea, .field input {
  display: block; width: 100%; padding: 14px 16px; border: 1.5px solid var(--line-strong); border-radius: var(--radius);
  background: #fff; color: var(--text); font: inherit; font-size: 17px; line-height: 1.45;
}
.q-screen textarea { margin-top: 22px; min-height: 150px; resize: vertical; }
.q-screen textarea.long { min-height: 260px; }
.q-screen textarea:focus, .field input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(10,120,204,.18); }
::placeholder { color: #8C95A1; opacity: 1; }
.field { display: block; margin-top: 18px; }
.question > .field:first-of-type { margin-top: 22px; }
.field > span { display: block; margin-bottom: 6px; font-weight: 600; font-size: 15.5px; }

/* opt-ins */
.consent { display: flex; align-items: center; gap: 12px; min-height: 44px; margin-top: 16px; font-size: 16px; line-height: 1.35; cursor: pointer; }
.consent.card { align-items: flex-start; margin-top: 22px; padding: 16px; border: 1.5px solid var(--line-strong); border-radius: var(--radius); background: #fff; }
.consent.card input { margin-top: 1px; }
.consent.card:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); }
.consent strong { display: block; font-size: 17px; }
.consent small { display: block; margin-top: 2px; color: var(--muted); font-size: 15px; }
.consent:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: var(--radius); }

.actions { margin-top: 26px; }

/* ---------- finish ---------- */
.done { text-align: center; padding-top: 40px; }
.done .logo { margin: 0 auto 36px; }
.done-flag { width: 92px; height: 92px; margin: 0 auto 24px; border-radius: 12px; border: 2px solid var(--text);
  background: conic-gradient(#000 25%, #fff 0 50%, #000 0 75%, #fff 0) 0 0 / 23px 23px; }
.done h1 { font-family: "Barlow Condensed", "Arial Narrow", sans-serif; font-weight: 800; font-size: clamp(34px, 8.5vw, 46px); line-height: 1.03; margin: 0 0 12px; }
.done h1:focus { outline: none; }
.done p { margin: 0 auto 12px; max-width: 40ch; color: var(--muted); font-size: 18px; }
.done .extra { color: var(--text); font-weight: 600; }
.done-home { margin-top: 28px; }

@media (max-width: 360px) {
  .screen { padding-left: 16px; padding-right: 16px; }
  .topbar { margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
  .opts.two { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
