/*
 * styles.css - brand tokens and components for the pilot instrument.
 * Palette and radar/bar visual language carried from the v1 mockup exactly.
 * Hard rule: zero em or en dashes anywhere in this file. Hyphens only.
 */

:root {
  --deep-navy: #0B2A4A;
  --orange: #FF5A00;
  --orange-2: #FF8A3D;
  --orange-soft: rgba(255, 90, 0, 0.14);
  --orange-fill: rgba(255, 90, 0, 0.26);
  --cream: #FFF6F0;
  --sand: #F5EBE3;
  --sand-border: #E8DED4;
  --teal: #2E86AB;
  --teal-soft: rgba(46, 134, 171, 0.14);
  --dark-text: #0B1220;
  --muted: #5A6478;
  --muted-2: #8A93A4;
  --grid: #D8CFC4;
  --grid-soft: #ECE2D6;
  --shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 6px 24px rgba(11, 18, 32, 0.10);
  /* Dimmed backdrop behind a modal: --deep-navy at 45 percent. */
  --scrim: rgba(11, 42, 74, 0.45);
  /* The only red in the palette: something the person has to fix. */
  --error: #B3261E;

  --radius-card: 16px;
  --radius-btn: 12px;
  --maxw: 720px;
  /* Header brand mark. The img carries the same number as width/height
     attributes so the header does not shift while the PNG loads. */
  --lockup-mark: 30px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--cream);
  color: var(--deep-navy);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  color: var(--deep-navy);
  line-height: 1.15;
  margin: 0;
}

a { color: var(--orange); }

.frame {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px 64px;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* ---------- header lockup ---------- */
.site-header {
  padding: 18px 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-actions { display: flex; align-items: center; }
.profile-link {
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--orange);
  padding: 7px 10px;
  border-radius: 999px;
  transition: background 0.12s ease;
}
.profile-link:hover { background: var(--orange-soft); }
.lockup {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}
.lockup-mark { display: block; width: var(--lockup-mark); height: var(--lockup-mark); }
.lockup-word {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--deep-navy);
}
.lockup-bang { color: var(--orange); }

.screen { flex: 1; outline: none; }

/* ---------- shared buttons ---------- */
.btn {
  appearance: none;
  border: none;
  border-radius: var(--radius-btn);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 22px;
  min-height: 48px;
  cursor: pointer;
  transition: transform 0.08s ease, background 0.15s ease, opacity 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--orange);
  color: white;
  box-shadow: var(--shadow);
}
.btn-primary:hover { background: var(--orange-2); }
.btn-primary:disabled {
  background: var(--sand-border);
  color: var(--muted-2);
  cursor: not-allowed;
  box-shadow: none;
}
.btn-ghost {
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  padding: 12px 8px;
  min-height: 44px;
}
.btn-ghost:hover { color: var(--deep-navy); }

.badge {
  display: inline-block;
  border-radius: 999px;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 5px 11px;
}

/* ---------- landing ---------- */
.landing { padding-top: 24px; text-align: center; }
.landing h1 {
  font-size: clamp(30px, 7vw, 44px);
  font-weight: 800;
  margin-bottom: 16px;
}
.landing .lead {
  font-size: 17px;
  color: var(--deep-navy);
  line-height: 1.5;
  max-width: 580px;
  margin: 0 auto 30px;
}
/* The plan: three numbered steps (StoryBrand) */
.steps {
  max-width: 520px;
  margin: 0 auto 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-align: left;
}
.step { display: flex; gap: 14px; align-items: flex-start; }
.step-num {
  flex: 0 0 auto;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 15px;
  display: flex; align-items: center; justify-content: center;
}
.step-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: var(--deep-navy);
}
.step-soon {
  display: inline-block;
  background: var(--sand);
  color: var(--muted);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: 8px;
  vertical-align: middle;
}
.step-body { color: var(--muted); font-size: 15px; line-height: 1.45; margin-top: 3px; }
.landing .cta-row { display: flex; justify-content: center; }

/* ---------- consent ---------- */
.consent { padding-top: 28px; max-width: 560px; margin: 0 auto; }
.consent h2 { font-size: 22px; font-weight: 700; margin-bottom: 16px; }
.consent .micro {
  background: var(--sand);
  border: 1px solid var(--sand-border);
  border-radius: var(--radius-card);
  padding: 18px 20px;
  color: var(--deep-navy);
  font-size: 15px;
  margin-bottom: 20px;
}
.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  margin-bottom: 24px;
  font-weight: 600;
}
.consent-check input {
  width: 22px; height: 22px;
  margin-top: 1px;
  accent-color: var(--orange);
  flex: 0 0 auto;
  cursor: pointer;
}

/* ---------- progress chrome ---------- */
.progress { padding-top: 6px; margin-bottom: 18px; }
.progress .eyebrow {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 8px;
}
.progress .eyebrow b { color: var(--orange); }
.progress .fill-track {
  height: 6px;
  background: var(--sand);
  border-radius: 999px;
  overflow: hidden;
}
.progress .fill {
  height: 100%;
  background: var(--orange);
  border-radius: 999px;
  transition: width 0.3s ease;
}

/* ---------- value screen ---------- */
.value-screen { padding-bottom: 8px; }
.value-screen .framing {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(22px, 5vw, 28px);
  font-weight: 700;
  margin-bottom: 18px;
}
/* The frame: dimension name + definition, boxed below the step count */
.dim-frame {
  background: var(--sand);
  border: 1px solid var(--sand-border);
  border-radius: 14px;
  padding: 14px 16px;
  margin: 2px 0 18px;
}
.dim-frame .dim-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 5px;
}
.dim-frame .dim-primer {
  color: var(--deep-navy);
  font-size: 14.5px;
  line-height: 1.45;
}
.beat-prompt {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 12px;
}

/* Beat 1 - description cards */
.cards { display: flex; flex-direction: column; gap: 10px; }
.desc-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  text-align: left;
  background: white;
  border: 2px solid var(--sand-border);
  border-radius: var(--radius-card);
  padding: 15px 16px;
  font-size: 15.5px;
  color: var(--deep-navy);
  cursor: pointer;
  min-height: 44px;
  transition: border-color 0.12s ease, background 0.12s ease;
  font-family: 'Inter', sans-serif;
}
.desc-card:hover { border-color: var(--orange-2); }
.desc-card .tick {
  flex: 0 0 auto;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2px solid var(--sand-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  transition: border-color 0.12s ease, background 0.12s ease;
}
.desc-card .tick svg { opacity: 0; transition: opacity 0.12s ease; }
.desc-card.selected {
  border-color: var(--orange);
  background: var(--orange-soft);
}
.desc-card.selected .tick {
  border-color: var(--orange);
  background: var(--orange);
}
.desc-card.selected .tick svg { opacity: 1; }

/* Beat 2 - the line. Appears once a pick suggests a position. */
.beat2 { margin-top: 24px; }
.beat2.hidden { display: none; }

.slider-wrap { position: relative; padding: 10px 0 2px; }
.slider-track-visual {
  position: relative;
  height: 32px;
  border-radius: 8px;
}
.slider-track-visual.moral {
  background: linear-gradient(to right, var(--orange) 0%, var(--orange-2) 40%, var(--sand) 100%);
}
.slider-track-visual.governance {
  background: linear-gradient(to right, var(--teal) 0%, #d8d2cb 50%, var(--teal) 100%);
}
.slider-track-visual .midline {
  position: absolute;
  left: 50%; top: -3px; bottom: -3px;
  width: 2px;
  background: rgba(11, 18, 32, 0.22);
  transform: translateX(-50%);
}
/* native range sits transparently on top of the visual track for a11y + input */
.slider-input {
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  margin: 0;
  height: 44px;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.slider-input:focus { outline: none; }
.slider-input::-webkit-slider-runnable-track { background: transparent; height: 44px; }
.slider-input::-moz-range-track { background: transparent; height: 44px; }
.slider-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--deep-navy);
  border: 3px solid white;
  box-shadow: 0 2px 6px rgba(11, 18, 32, 0.30);
  cursor: grab;
}
.slider-input::-moz-range-thumb {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--deep-navy);
  border: 3px solid white;
  box-shadow: 0 2px 6px rgba(11, 18, 32, 0.30);
  cursor: grab;
}
.slider-input:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--orange-soft), 0 2px 6px rgba(11, 18, 32, 0.30); }
.slider-input:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px var(--orange-soft), 0 2px 6px rgba(11, 18, 32, 0.30); }

.poles {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  gap: 12px;
}
.poles span {
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
  max-width: 45%;
}
.poles .pole-r { text-align: right; }

/* Beat 3 - reword */
.beat3 { margin-top: 22px; }
.reword-toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  background: var(--sand);
  border: 1px dashed var(--sand-border);
  border-radius: 12px;
  color: var(--muted);
  font-family: 'Inter', sans-serif;
  font-size: 14.5px;
  font-weight: 500;
  cursor: pointer;
  padding: 13px 15px;
  min-height: 46px;
  transition: border-color 0.12s ease, background 0.12s ease, color 0.12s ease;
}
.reword-toggle:hover { border-color: var(--orange-2); color: var(--deep-navy); }
.reword-toggle .rw-icon { display: inline-flex; color: var(--orange); flex: 0 0 auto; }
.reword-toggle .rw-label { flex: 1; text-align: left; }
.reword-toggle .chev { flex: 0 0 auto; transition: transform 0.15s ease; }
.reword-toggle[aria-expanded="true"] { border-style: solid; border-color: var(--orange); background: var(--orange-soft); }
.reword-toggle[aria-expanded="true"] .chev { transform: rotate(90deg); }
.reword-body { margin-top: 10px; }
.reword-body.hidden { display: none; }
.reword-input {
  width: 100%;
  border: 1px solid var(--sand-border);
  background: white;
  border-radius: var(--radius-btn);
  padding: 12px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--deep-navy);
}
.reword-input:focus { outline: none; border-color: var(--orange); }

/* nav row (Back / Next) */
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 28px;
  gap: 12px;
}
.nav-row .spacer { flex: 1; }

/* footer principle */
.footer-principle {
  margin-top: 30px;
  padding-top: 16px;
  border-top: 1px solid var(--sand-border);
  text-align: center;
  font-size: 12px;
  font-style: italic;
  color: var(--muted-2);
}

/* ---------- coverage ---------- */
.coverage { padding-top: 8px; }
.coverage h2 { font-size: clamp(22px, 5vw, 28px); font-weight: 700; margin-bottom: 6px; }
.coverage .sub { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.chip {
  border: 2px solid var(--sand-border);
  background: white;
  color: var(--deep-navy);
  border-radius: 999px;
  padding: 10px 18px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 14.5px;
  cursor: pointer;
  min-height: 44px;
  transition: border-color 0.12s ease, background 0.12s ease;
}
.chip:hover { border-color: var(--orange-2); }
.chip.selected { border-color: var(--orange); background: var(--orange-soft); color: var(--orange); }
.coverage .missed-label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 16px;
  display: block;
  margin-bottom: 4px;
}
.coverage .missed-sub { color: var(--muted); font-size: 13px; margin-bottom: 10px; }

/* ---------- position summary (post step 7) ---------- */
.summary { padding-top: 8px; }
.summary h2 { font-size: clamp(24px, 5vw, 30px); font-weight: 800; margin-bottom: 6px; }
.summary .sum-sub { color: var(--muted); font-size: 15px; margin-bottom: 6px; }
/* Salience hint: the stars are easy to miss, and a respondent who misses them
   skips a research signal. Weighted up to read as an instruction, not a
   caption. Still never enforced: starring nothing is a valid response. */
.summary .sum-hint {
  color: var(--dark-text); font-size: 15px; font-weight: 600;
  margin-bottom: 22px; padding: 10px 12px 10px 14px;
  background: var(--orange-soft); border-left: 3px solid var(--orange);
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
}
.summary .sum-hint::before { content: '\2606'; color: var(--orange); margin-right: 8px; }
.pos-group { margin-bottom: 22px; }
.pos-group-label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700; font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--orange); margin-bottom: 6px;
}
.pos-star {
  flex: 0 0 auto;
  background: none; border: none; cursor: pointer;
  font-size: 22px; line-height: 1; color: var(--muted-2);
  min-width: 44px; min-height: 44px;
  display: flex; align-items: center; justify-content: center;
  transition: color 0.12s ease, transform 0.08s ease;
}
.pos-star:hover { color: var(--orange-2); }
.pos-star:active { transform: scale(0.9); }
.pos-star[aria-pressed="true"] { color: var(--orange); }

/* Results card: name as the headline, a position bar, then the chosen statement */
.vp-item {
  background: #fff;
  border: 1px solid var(--sand-border);
  border-radius: var(--radius-card);
  padding: 15px 18px 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.vp-item.salient { border-color: var(--orange); }
.vp-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.vp-label { flex: 1; line-height: 1.4; }
.vp-dim {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px; text-transform: uppercase; letter-spacing: 0.09em;
  color: var(--orange); font-weight: 800;
}
.vp-def { color: var(--muted); font-size: 13px; }
.vp-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800; font-size: 20px; color: var(--deep-navy); margin: 7px 0 0;
}
.vp-item.salient .vp-name { color: var(--orange); }

.mini-track { position: relative; height: 14px; border-radius: 7px; margin: 12px 0 7px; }
.mini-track.moral { background: linear-gradient(to right, var(--orange) 0%, var(--orange-2) 40%, var(--sand) 100%); }
.mini-track.governance { background: linear-gradient(to right, var(--teal) 0%, #d8d2cb 50%, var(--teal) 100%); }
.mini-midline {
  position: absolute; left: 50%; top: -2px; bottom: -2px; width: 2px;
  background: rgba(11, 18, 32, 0.20); transform: translateX(-50%);
}
.mini-dot {
  position: absolute; top: 50%; transform: translate(-50%, -50%);
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--deep-navy); border: 3px solid white;
  box-shadow: 0 2px 5px rgba(11, 18, 32, 0.25);
}
.vp-item.salient .mini-dot { box-shadow: 0 0 0 3px var(--orange), 0 2px 5px rgba(11, 18, 32, 0.25); }
.mini-poles { display: flex; justify-content: space-between; gap: 10px; }
.mini-poles span { color: var(--muted); font-size: 11px; font-weight: 500; }
.vp-statement {
  color: var(--muted); font-size: 14px; line-height: 1.45; font-style: italic;
  margin-top: 6px;
}
.summary .missed { margin: 6px 0 4px; }
.summary .missed-label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700; font-size: 16px; display: block; margin-bottom: 4px;
}
.summary .missed-sub { color: var(--muted); font-size: 13px; margin-bottom: 10px; }

/* ---------- reveal ---------- */
.reveal { padding-top: 8px; }
.reveal h1 {
  font-size: clamp(28px, 6vw, 38px);
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
}
.reveal .profile-intro {
  text-align: center;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  max-width: 580px;
  margin: 0 auto 24px;
}
.viz-grid { display: flex; flex-direction: column; gap: 18px; }
.viz-panel {
  background: white;
  border: 1px solid var(--sand-border);
  border-radius: var(--radius-card);
  padding: 22px 22px;
  box-shadow: var(--shadow);
}
.viz-panel h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.01em;
  margin-bottom: 5px;
  text-align: center;
}
.viz-panel .panel-desc {
  text-align: center;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
  max-width: 460px;
  margin: 0 auto 16px;
}
.radar-wrap { display: flex; align-items: center; justify-content: center; padding: 4px 0; }
.radar-wrap svg { width: 100%; max-width: 480px; height: auto; }

.gov-bar-row { display: flex; flex-direction: column; gap: 16px; }
.gov-bar { display: flex; flex-direction: column; gap: 6px; }
.gov-bar .label-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
/* Dimension name treatment, shared with the moral results list (.pr-dim) */
.gov-bar .label-row .gov-dim {
  font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.09em;
  color: var(--orange);
}
/* Descriptor treatment, shared with the moral results list (.pr-name) */
.gov-bar .label-row .lean {
  font-size: 16px; font-weight: 800; color: var(--deep-navy); text-align: right;
}
.gov-bar .pole-l, .gov-bar .pole-r {
  color: var(--muted); font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 500;
}
.gov-bar .track {
  position: relative; height: 18px;
  background: linear-gradient(to right, var(--teal) 0%, #d8d2cb 50%, var(--teal) 100%);
  border-radius: 9px;
}
.gov-bar .midline {
  position: absolute; left: 50%; top: -2px; bottom: -2px; width: 2px;
  background: rgba(11, 18, 32, 0.18); transform: translateX(-50%);
}
.gov-bar .dot {
  position: absolute; top: 50%; transform: translate(-50%, -50%);
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--deep-navy); border: 3px solid white;
  box-shadow: 0 2px 6px rgba(11, 18, 32, 0.25);
}
.gov-bar .pole-flex { display: flex; justify-content: space-between; }
.gov-bar .gov-fragment { color: var(--muted); font-size: 12px; font-style: italic; margin-top: 2px; }
.gov-bar.salient .dot { box-shadow: 0 0 0 3px var(--orange), 0 2px 6px rgba(11, 18, 32, 0.25); }

/* Portrait sentence, split per family and shown inside each viz panel */
.panel-portrait {
  margin-top: 16px;
  padding-top: 15px;
  border-top: 1px solid var(--sand-border);
  font-size: 16px;
  line-height: 1.5;
  color: var(--deep-navy);
}

/* The four moral descriptors listed below the portrait (radar legend) */
.panel-results { margin-top: 14px; display: flex; flex-direction: column; gap: 9px; }
.pr-row { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.pr-dim {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.09em;
  color: var(--orange);
}
.pr-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px; font-weight: 800; color: var(--deep-navy); text-align: right;
}
/* Numeric score in brackets next to a descriptor (the slider position) */
.pr-score { color: var(--muted); font-weight: 500; }

.leans { margin: 8px 0 20px; }
.leans h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 12px;
}
.lean-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--sand-border);
}
.lean-item:last-child { border-bottom: none; }
.lean-item .lean-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700; font-size: 16px;
}
.lean-item .lean-name b { color: var(--orange); }
.lean-item .lean-gloss { color: var(--muted); font-size: 14px; margin-top: 2px; }

/* gut check */
.gut-check {
  background: white;
  border: 1px solid var(--sand-border);
  border-radius: var(--radius-card);
  padding: 18px 20px;
  margin: 8px 0 22px;
}
.gut-check .gc-prompt { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; margin-bottom: 12px; }
.gut-check .gc-btns { display: flex; gap: 10px; }
.gc-btn {
  border: 2px solid var(--sand-border);
  background: white;
  color: var(--deep-navy);
  border-radius: var(--radius-btn);
  padding: 10px 20px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
}
.gc-btn:hover { border-color: var(--orange-2); }
.gc-btn.selected { border-color: var(--orange); background: var(--orange-soft); color: var(--orange); }
.gc-followup { margin-top: 12px; }
.gc-followup.hidden { display: none; }

/* closing line + share */
.reveal-closing {
  text-align: center;
  color: var(--deep-navy);
  font-size: 16px;
  line-height: 1.5;
  max-width: 480px;
  margin: 10px auto 16px;
}
.share-block { text-align: center; margin: 8px 0 8px; }

/* ---------- share dialog (desktop; phones get the native sheet) ---------- */
/* Set on body while the dialog is open, so the page behind the scrim holds still. */
.scroll-locked { overflow: hidden; }
.share-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: var(--scrim);
}
.share-modal[hidden] { display: none; }
.share-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: var(--cream);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-lg);
  padding: 26px 24px 22px;
}
.share-card h3 {
  font-size: 19px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 20px;
}
.share-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
  color: var(--muted-2);
  padding: 4px 8px;
  border-radius: 8px;
}
.share-close:hover { color: var(--deep-navy); }
.share-grid {
  display: grid;
  /* 64px keeps all five targets on one row inside the card, and drops to fewer
     columns rather than overflowing on a narrow window. */
  grid-template-columns: repeat(auto-fit, minmax(64px, 1fr));
  gap: 10px;
}
.share-target {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 14px 6px 11px;
  border: 2px solid var(--sand-border);
  border-radius: 12px;
  background: white;
  text-decoration: none;
  transition: border-color 0.12s ease, background 0.12s ease;
}
.share-target:hover { border-color: var(--orange); background: var(--orange-soft); }
.share-glyph { display: inline-flex; }
.share-glyph svg { width: 24px; height: 24px; fill: var(--deep-navy); }
.share-target-label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--deep-navy);
}
.share-copy {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 12px 14px;
  background: var(--sand);
  border-radius: 12px;
}
.share-copy input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--sand-border);
  background: white;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: var(--dark-text);
  padding: 11px 12px;
  border-radius: 8px;
}
.share-copy-btn { padding: 12px 14px; font-size: 14px; white-space: nowrap; }

/* thanks */
.thanks { padding-top: 20px; text-align: center; max-width: 560px; margin: 0 auto; }
.thanks h2 { font-size: 24px; font-weight: 800; margin-bottom: 16px; }
.thanks .copy { color: var(--deep-navy); font-size: 16px; margin-bottom: 20px; }
.thanks .foot { color: var(--muted-2); font-size: 13px; font-style: italic; }

/* ---------- about you (demographics, Section 6A) ---------- */
.about-you { padding-top: 12px; }
.about-you h1 {
  font-size: clamp(24px, 5vw, 30px);
  font-weight: 800;
  margin-bottom: 8px;
}
.about-you .ay-sub {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
  max-width: 560px;
  margin: 0 0 24px;
}
.ay-q { margin-bottom: 22px; }
.ay-prompt {
  display: block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--deep-navy);
  margin-bottom: 11px;
}
.ay-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.ay-chip {
  border: 2px solid var(--sand-border);
  background: white;
  color: var(--deep-navy);
  border-radius: 999px;
  padding: 10px 18px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 14.5px;
  cursor: pointer;
  min-height: 44px;
  transition: border-color 0.12s ease, background 0.12s ease, color 0.12s ease;
}
.ay-chip:hover { border-color: var(--orange-2); }
.ay-chip.selected { border-color: var(--orange); background: var(--orange-soft); color: var(--orange); }
.ay-select {
  width: 100%;
  border: 2px solid var(--sand-border);
  background: white;
  border-radius: var(--radius-btn);
  padding: 13px 14px;
  min-height: 48px;
  font-family: 'Inter', sans-serif;
  font-size: 15.5px;
  color: var(--deep-navy);
  cursor: pointer;
}
.ay-select:focus { outline: none; border-color: var(--orange); }

/* portrait view header */
.pv-header {
  text-align: center;
  padding: 8px 0 18px;
}
.pv-header .badge { background: var(--orange-soft); color: var(--orange); margin-bottom: 10px; }
.pv-header h2 { font-size: clamp(22px, 5vw, 28px); font-weight: 800; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ---------- wider screens ---------- */
@media (min-width: 640px) {
  .landing { padding-top: 44px; }
}

/* ---------- captcha gate (consent screen) ---------- */
.gate { margin: 4px 0 20px; }
.gate.hidden { display: none; }
.gate-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 10px;
}
.gate-error, .signup-message.error {
  color: var(--error);
  font-size: 14px;
  margin-top: 10px;
}
.gate-error.hidden, .signup-message.hidden { display: none; }

/* ---------- email capture (thanks screen) ---------- */
.signup {
  background: var(--sand);
  border: 1px solid var(--sand-border);
  border-radius: var(--radius-card);
  padding: 22px 20px;
  margin: 4px auto 22px;
  max-width: 480px;
  text-align: left;
}
.signup-prompt {
  font-size: 15px;
  line-height: 1.5;
  color: var(--deep-navy);
  margin-bottom: 14px;
}
.signup-input {
  width: 100%;
  border: 2px solid var(--sand-border);
  background: white;
  border-radius: var(--radius-btn);
  padding: 13px 14px;
  min-height: 48px;
  font-family: 'Inter', sans-serif;
  font-size: 15.5px;
  color: var(--deep-navy);
}
.signup-input:focus { outline: none; border-color: var(--orange); }
.signup-link {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 14px 0 4px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.45;
  color: var(--deep-navy);
}
.signup-link input {
  width: 20px; height: 20px;
  margin-top: 1px;
  accent-color: var(--orange);
  flex: 0 0 auto;
  cursor: pointer;
}
.signup-link-note { color: var(--muted); font-size: 13px; }
.signup-widget:not(:empty) { margin: 14px 0 4px; }
/* A row that centres its button, unlike the survey's rows where the CTA is
   laid out by the screen around it. `display: flex` is the working half:
   there is no base .cta-row rule, so justify-content alone is inert on a
   block box and the button just follows the inherited text-align.
   The thanks screen's "see my shape again" also wants room before the
   footer line. */
.cta-row.centered { display: flex; justify-content: center; }
.cta-row.thanks-again { margin-bottom: 18px; }
.signup-message {
  font-size: 15px;
  text-align: center;
  margin-top: 12px;
}
.signup-message.ok {
  color: var(--deep-navy);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  margin: 0;
}
