/* Crosswater focus group. Neutral UI so it doesn't bias the palette/wordmark choices. */
:root {
  color-scheme: light;
  --bg: #F2F1ED;
  --surface: #FFFFFF;
  --ink: #151515;
  --ink-2: #3A3A37;
  --muted: #74736D;
  --line: #DEDCD5;
  --line-strong: #C9C6BD;
  --warn: #B4442E;
  --radius: 14px;
  --font: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --nav-h: 76px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh; display: flex; flex-direction: column;
}
body.locked { overflow: hidden; }
button { font: inherit; color: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }

/* ---------- Header ---------- */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.top-inner { max-width: 1180px; margin: 0 auto; padding: 16px 24px; display: flex; align-items: center; justify-content: space-between; }
.brand { font-size: 13px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; }
.brand span { color: var(--muted); font-weight: 500; letter-spacing: .12em; margin-left: 10px; }
.count { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.progress { height: 2px; background: var(--line); }
.progress i { display: block; height: 100%; width: 0; background: var(--ink); transition: width .4s ease; }

/* ---------- Layout ---------- */
main { flex: 1; width: 100%; max-width: 680px; margin: 0 auto; padding: 40px 24px calc(var(--nav-h) + 40px); }
main.wide { max-width: 1180px; }
.narrow { max-width: 680px; }
.step { animation: in .35s ease both; }
@keyframes in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .step { animation: none; } .progress i { transition: none; } }

.eyebrow { margin: 0 0 12px; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
h1 { margin: 0 0 12px; font-size: clamp(26px, 4.2vw, 36px); line-height: 1.12; font-weight: 600; letter-spacing: -.02em; text-wrap: balance; }
h1.display { font-size: clamp(36px, 7vw, 60px); letter-spacing: -.03em; line-height: 1.02; margin-bottom: 20px; }
h1, h1.caps, .pillar h2 { text-transform: uppercase; letter-spacing: .01em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.intro h1.display { font-size: clamp(34px, 6.5vw, 54px); }
.copy { margin: 0 0 32px; display: flex; flex-direction: column; gap: 14px; max-width: 62ch; }
.copy p { margin: 0; font-size: 17px; color: var(--ink-2); text-wrap: pretty; }
.copy p:first-child { font-size: 19px; color: var(--ink); font-weight: 500; }
.lead { margin: 0 0 32px; font-size: 18px; color: var(--ink-2); max-width: 60ch; text-wrap: pretty; }
.small { font-size: 14px; color: var(--muted); max-width: 60ch; }

/* ---------- Questions ---------- */
.q { border: 0; margin: 0 0 32px; padding: 0; min-width: 0; }
.q legend { padding: 0; margin-bottom: 14px; font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.q .help { margin: -8px 0 14px; font-size: 14px; color: var(--muted); }
.q.missing legend { color: var(--warn); }
.q.missing .opt { border-color: color-mix(in srgb, var(--warn) 55%, var(--line)); }

.opts { display: grid; gap: 10px; grid-template-columns: 1fr; }
.opts.cols-2 { grid-template-columns: repeat(2, 1fr); }
.opts.cols-3 { grid-template-columns: repeat(3, 1fr); }
.opts.cols-5 { grid-template-columns: repeat(5, 1fr); }
.opts.cols-5 .opt { justify-content: center; padding: 12px 8px; gap: 8px; }
@media (max-width: 640px) { .opts.cols-5 { grid-template-columns: repeat(2, 1fr); } .opts.cols-5 .opt { justify-content: flex-start; padding: 12px 16px; } }
@media (max-width: 520px) { .opts.cols-3 { grid-template-columns: repeat(2, 1fr); } .opts.cols-2 { grid-template-columns: 1fr; } }

.opt {
  display: flex; align-items: center; gap: 12px; text-align: left;
  min-height: 54px; padding: 12px 16px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: 16px; font-weight: 500; transition: border-color .15s, background .15s, color .15s;
}
.opt:hover { border-color: var(--line-strong); }
.opt:focus-visible, .pal-opt:focus-visible, .card-pick:focus-visible, .next:focus-visible, .back:focus-visible, .zoom:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.opt.on { background: var(--ink); border-color: var(--ink); color: #fff; }

.tick { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-strong); position: relative; }
.opt.multi .tick { border-radius: 5px; }
.opt.on .tick { border-color: #fff; background: #fff; }
.opt.on .tick::after, .card.on .tick::after {
  content: ''; position: absolute; left: 5px; top: 2px; width: 5px; height: 9px;
  border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(45deg);
}

textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); resize: vertical;
}
textarea:focus { outline: none; border-color: var(--ink); }
.why { margin-top: 32px; }
.why legend { font-size: 16px; }

/* ---------- Welcome ---------- */
.welcome { padding-top: 4vh; }
.facts { list-style: none; padding: 0; margin: 0 0 28px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.facts li { padding: 16px 16px 16px 0; display: flex; flex-direction: column; gap: 2px; }
.facts strong { font-size: 17px; font-weight: 600; }
.facts span { font-size: 14px; color: var(--muted); }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; } .facts li { flex-direction: row; justify-content: space-between; border-bottom: 1px solid var(--line); padding-right: 0; } }

/* ---------- Brand ---------- */
.hero { position: relative; margin: 0 0 28px; border-radius: var(--radius); overflow: hidden; background: #222; aspect-ratio: 16 / 10; }
.hero img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.hero figcaption { position: absolute; inset: auto 0 0 0; padding: 60px 24px 22px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.72)); pointer-events: none; display: flex; flex-direction: column; gap: 4px; }
.hero-kicker { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; opacity: .85; }
.hero-line { font-size: clamp(22px, 4vw, 30px); font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
.pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (max-width: 520px) { .pillars { grid-template-columns: 1fr; } }
.pillar { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 6px; }
.pillar-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.pillar h2 { margin: 0; font-size: 19px; font-weight: 600; }
.pillar p { margin: 0 0 14px; font-size: 15px; color: var(--ink-2); }
.tag { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 4px 8px; border-radius: 999px; background: var(--bg); color: var(--ink-2); white-space: nowrap; }
.tag.open { background: var(--ink); color: #fff; }

/* ---------- Venue gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 44px; }
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
.gallery figure { margin: 0; }
.zoom { display: block; width: 100%; padding: 0; border: 0; background: #ddd; border-radius: 12px; overflow: hidden; cursor: zoom-in; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .5s ease; }
.gallery .zoom:hover img { transform: scale(1.03); }
.gallery figcaption { padding: 10px 2px 0; display: flex; flex-direction: column; }
.gallery figcaption strong { font-size: 15px; font-weight: 600; }
.gallery figcaption span { font-size: 13px; color: var(--muted); }

/* ---------- Choice cards (wordmark + icon) ---------- */
.card { position: relative; }
.card-pick { display: block; width: 100%; padding: 0; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.card-pick:hover { border-color: var(--line-strong); }
.card.on .card-pick { border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink); }
.card-pick img { width: 100%; }
.card.ic .card-pick img { aspect-ratio: 1; object-fit: cover; }
.card-label { display: flex; align-items: center; gap: 10px; padding: 14px 16px; font-weight: 600; }
.card.on .card-label { background: var(--ink); color: #fff; }
.card.on .tick { border-color: #fff; background: #fff; }
.card-zoom { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.88); color: var(--ink); font-size: 16px; line-height: 1; display: grid; place-items: center; cursor: zoom-in; }
.wm-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.icon-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 760px) { .wm-grid { grid-template-columns: 1fr; } .icon-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

/* ---------- Palette ---------- */
.pal-layout { display: grid; grid-template-columns: minmax(260px, 340px) 1fr; gap: 40px; align-items: start; }
.pal-side { position: sticky; top: 90px; }
.pal-side .lead { font-size: 16px; margin-bottom: 24px; }
.pal-opts { display: flex; flex-direction: column; gap: 10px; }
.pal-opt { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "name state" "sw sw"; gap: 10px 12px; align-items: center; text-align: left; padding: 14px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); transition: border-color .15s, box-shadow .15s; }
.pal-opt:hover { border-color: var(--line-strong); }
.pal-opt.on { border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink); }
.pal-name { grid-area: name; font-weight: 600; font-size: 17px; }
.pal-state { grid-area: state; font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.pal-opt.viewed .pal-state::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.pal-sw { grid-area: sw; display: flex; height: 22px; border-radius: 6px; overflow: hidden; border: 1px solid rgba(0,0,0,.06); }
.pal-sw i { flex: 1; }

.pal-grid { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; max-width: min(100%, calc(100vh - 230px)); margin-left: auto; }
.pal-grid .zoom { aspect-ratio: 1; border-radius: 8px; background: #e6e4de; }
.pal-grid img { width: 100%; height: 100%; object-fit: cover; animation: fade .35s ease both; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.pal-grid .ph { aspect-ratio: 1; border-radius: 8px; background: repeating-linear-gradient(135deg, #E8E6E0 0 10px, #E2E0D9 10px 20px); }
.pal-empty-msg { position: absolute; inset: 0; margin: auto; height: max-content; width: max-content; max-width: 80%; text-align: center; padding: 12px 18px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 15px; font-weight: 500; }

@media (max-width: 820px) {
  .pal-layout { grid-template-columns: 1fr; gap: 20px; }
  .pal-side { position: static; }
  .pal-opts { flex-direction: row; gap: 8px; }
  .pal-opt { flex: 1; grid-template-columns: 1fr; grid-template-areas: "name" "sw" "state"; padding: 10px; gap: 8px; }
  .pal-name { font-size: 15px; }
  .pal-sw { height: 16px; }
  .pal-state { font-size: 11px; }
  .pal-grid { gap: 6px; max-width: 100%; }
  .pal-grid .zoom, .pal-grid .ph { border-radius: 6px; }
}

/* ---------- Done ---------- */
.done { padding-top: 10vh; }

/* ---------- Footer nav ---------- */
.nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.nav[hidden] { display: none; }
.nav-inner { max-width: 1180px; margin: 0 auto; height: var(--nav-h); padding: 0 24px; display: flex; align-items: center; gap: 16px; }
.hint { flex: 1; text-align: right; font-size: 14px; color: var(--muted); }
.hint.warn { color: var(--warn); }
.back { border: 0; background: none; padding: 12px 4px; font-weight: 500; color: var(--ink-2); }
.back:hover { color: var(--ink); }
.next { border: 0; background: var(--ink); color: #fff; font-weight: 600; padding: 15px 30px; border-radius: 999px; min-width: 140px; transition: opacity .2s, transform .1s; }
.next:active { transform: scale(.98); }
.next.disabled { opacity: .3; }
@media (max-width: 520px) {
  .nav-inner { padding: 0 16px; gap: 10px; }
  .hint { font-size: 12px; line-height: 1.3; }
  .next { padding: 14px 22px; min-width: 0; }
  main { padding: 28px 16px calc(var(--nav-h) + 32px); }
  .top-inner { padding: 14px 16px; }
  .brand span { display: none; }
  .lead { font-size: 17px; }
}

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(12,12,12,.92); display: grid; place-items: center; padding: 24px; cursor: zoom-out; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; }
.lightbox button { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 26px; line-height: 1; }
