/* ─── RESET & ROOT ──────────────────────────────────────────── */
:root {
  --brand:        #1779ba;
  --brand-dark:   #0f5f9a;
  --danger:       #cc4b37;
  --success:      #2e7d32;
  --neutral:      #555e6b;
  --bg:           #f4f5f7;
  --surface:      #ffffff;
  --ink:          #1a1a2e;
  --ink-soft:     #555e6b;
  --line:         #dee0e3;
  --safe-top:     env(safe-area-inset-top, 0px);
  --safe-bottom:  env(safe-area-inset-bottom, 0px);
  --safe-left:    env(safe-area-inset-left, 0px);
  --safe-right:   env(safe-area-inset-right, 0px);
}

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

html, body {
  height: 100%;
  overscroll-behavior: none;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

/* ─── LOADING SCREEN ────────────────────────────────────────── */
.page-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  height: 100dvh;
  gap: 1.2rem;
  color: var(--ink-soft);
}

.loading-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--line);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ─── REGULAR (NON-REEL) SCREEN LAYOUT ─────────────────────── */
.mobile-page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.mobile-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--brand);
  color: #fff;
  padding: calc(var(--safe-top) + 0.6rem) 1rem 0.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.mobile-brand {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-uni-tag {
  font-size: 0.72rem;
  background: #cc4b37;
  color: #fff;
  padding: 0.18rem 0.45rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.mobile-progress-bar {
  height: 3px;
  background: rgba(255,255,255,0.3);
  position: relative;
}

.mobile-progress-fill {
  height: 100%;
  background: #fff;
  border-radius: 0 2px 2px 0;
  transition: width 300ms ease;
}

.mobile-progress-label {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.85);
  padding: 0.2rem 1rem 0;
  background: var(--brand);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}

.mobile-content {
  flex: 1;
  padding: 1.2rem 1rem calc(1.5rem + var(--safe-bottom));
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

/* ─── CARDS & TYPOGRAPHY ────────────────────────────────────── */
.screen-card {
  background: var(--surface);
  border-radius: 16px;
  padding: 1.4rem 1.2rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}

h2 {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

p {
  line-height: 1.55;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

p + p { margin-top: 0.65rem; }

strong { color: var(--ink); }

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

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0.85rem 0;
}

/* ─── BUTTONS ───────────────────────────────────────────────── */
.btn {
  display: block;
  width: 100%;
  padding: 0.9rem 1.2rem;
  border: 0;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  text-align: center;
  transition: background 120ms ease, transform 80ms ease;
  -webkit-tap-highlight-color: transparent;
}

.btn:active { transform: scale(0.97); }
.btn:hover  { background: var(--brand-dark); }
.btn:disabled { background: #b0b8c4; cursor: not-allowed; }

.btn-secondary {
  background: transparent;
  color: var(--brand);
  border: 2px solid var(--brand);
}
.btn-secondary:hover { background: var(--brand); color: #fff; }

/* ─── FORMS ─────────────────────────────────────────────────── */
textarea, input[type="text"] {
  width: 100%;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  padding: 0.85rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  resize: vertical;
  transition: border-color 120ms ease;
}

textarea:focus, input[type="text"]:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(23,121,186,0.15);
}

label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

/* ─── CONSENT ───────────────────────────────────────────────── */
.consent-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.consent-lead {
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.35rem;
}

.consent-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.93rem;
  line-height: 1.55;
  color: var(--ink);
  padding: 0.8rem 0.55rem;
  margin: 0 -0.55rem;
  border-radius: 10px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background 140ms ease;
  -webkit-tap-highlight-color: transparent;
}

.consent-item:last-child { border-bottom: 0; }

.consent-item:has(input:checked) { background: #f1f8f3; }

.consent-text { flex: 1; }

/* heading row that can carry an info dot beside the title */
.card-head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1rem;
}
.card-head h2 { margin: 0; }

/* ── INFO DOT ───────────────────────────────────────────────── */
.info-dot {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
}

.info-dot-btn {
  width: 26px;
  height: 26px;              /* generous tap target for a small mark */
  padding: 0;
  display: grid;
  place-items: center;
  background: none;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  color: var(--ink-soft);
  -webkit-tap-highlight-color: transparent;
}
.info-dot-btn svg { width: 20px; height: 20px; }
.info-ring  { fill: none; stroke: currentColor; stroke-width: 1.5; opacity: 0.55; }
.info-glyph { fill: currentColor; }
.info-stem  { fill: none; stroke: currentColor; stroke-width: 2;
              stroke-linecap: round; }

.info-dot-btn:hover,
.info-dot-btn:focus-visible,
.info-dot.open .info-dot-btn { color: var(--brand); }
.info-dot-btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.info-pop {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-3px);
  z-index: 40;
  width: max-content;
  max-width: min(19rem, calc(100vw - 2.5rem));
  padding: 0.6rem 0.75rem;
  background: #1a1a2e;
  color: #fff;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.45;
  text-align: left;
  text-transform: none;
  letter-spacing: 0;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.14s ease, transform 0.14s ease, visibility 0.14s;
}

.info-pop::before {           /* little pointer up to the eye */
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  margin-left: -5px;
  border: 5px solid transparent;
  border-bottom-color: #1a1a2e;
}

/* hover on a desktop, focus for the keyboard, .open for a tap */
@media (hover: hover) {
  .info-dot:hover .info-pop { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
}
.info-dot:focus-within .info-pop,
.info-dot.open .info-pop { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

/* near the left edge the bubble would overflow, so pin it to the dot */
.card-head .info-pop { left: 0; transform: translateX(0) translateY(-3px); }
.card-head .info-pop::before { left: 13px; }
@media (hover: hover) {
  .card-head .info-dot:hover .info-pop { transform: translateX(0) translateY(0); }
}
.card-head .info-dot:focus-within .info-pop,
.card-head .info-dot.open .info-pop { transform: translateX(0) translateY(0); }

.consent-counter {
  margin-top: 0.9rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-align: center;
}

.consent-counter.complete { color: var(--success); }

.consent-item input[type="checkbox"] {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
  accent-color: var(--brand);
}

.consent-check-wrap {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border: 2px solid var(--brand);
  border-radius: 12px;
  background: #e8f0fc;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.93rem;
  line-height: 1.4;
  color: var(--ink);
  -webkit-tap-highlight-color: transparent;
}

.consent-check-wrap input[type="checkbox"] {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
  accent-color: var(--brand);
}

/* ─── UNLOCK TASK OPTIONS ───────────────────────────────────── */
.unlock-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0.75rem 0;
}

.unlock-opt {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 120ms, background 120ms;
  -webkit-tap-highlight-color: transparent;
}

.unlock-opt:has(input:checked) {
  border-color: var(--brand);
  background: #e8f0fc;
  font-weight: 600;
}

.unlock-opt input[type="radio"] { accent-color: var(--brand); }

/* ─── NOTICE ────────────────────────────────────────────────── */
/* ── EXIT CONFIRMATION ──────────────────────────────────────── */
.exit-confirm {
  margin-top: 0.9rem;
  padding: 0.9rem;
  border: 1px solid #e6c9c3;
  border-left: 3px solid #cc4b37;
  border-radius: 10px;
  background: #fdf4f2;
  font-size: 0.9rem;
  line-height: 1.5;
}
.exit-confirm-row {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.8rem;
}
.exit-confirm-row .btn { margin: 0; flex: 1; }

.btn-danger {
  background: #cc4b37;
  color: #fff;
  border: 1px solid #cc4b37;
}
.btn-danger:hover:not(:disabled) { background: #b03e2c; border-color: #b03e2c; }

.notice {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: #fff5cf;
  color: #6e5012;
  font-size: 0.88rem;
  line-height: 1.45;
}

/* Shown once, on the first press of Finish below NUDGE_BELOW. It is a request,
   not a barrier: it floats clear of the Finish button, which stays live
   underneath, and it carries no count — naming the number would make it a
   target. Sits above the reel chrome, clears the iOS home indicator, and
   times itself out so it cannot become a permanent nag. */
.finish-nudge {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(5.5rem + var(--safe-bottom));
  z-index: 400;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: min(30rem, calc(100vw - 2rem));
  padding: 0.7rem 0.75rem 0.7rem 1rem;
  border-radius: 10px;
  background: #fff5cf;
  color: #6e5012;
  font-size: 0.88rem;
  line-height: 1.45;
  box-shadow: 0 6px 20px rgba(26, 26, 46, 0.18);
  animation: finish-nudge-in 180ms ease-out;
}

.finish-nudge-x {
  flex: none;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 1.1rem;
  line-height: 1;
  padding: 0.15rem 0.35rem;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0.65;
}
.finish-nudge-x:hover { opacity: 1; }
.finish-nudge-x:focus-visible { outline: 2px solid #6e5012; outline-offset: 1px; }

@keyframes finish-nudge-in {
  from { opacity: 0; transform: translateX(-50%) translateY(6px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .finish-nudge { animation: none; }
}

.notice.error {
  background: #fde8ec;
  color: #8d2840;
}

.notice.success {
  background: #e6f7ed;
  color: #0a5c2e;
}

/* ─── REEL VIEWPORT ─────────────────────────────────────────── */
.reel-root {
  position: fixed;
  inset: 0;
  background: var(--bg);
  overflow: hidden;
}

/* Blue header bar — matches the rest of the app */
.reel-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: calc(var(--safe-top) + 0.6rem) 1rem 0.6rem;
  background: var(--brand);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.reel-brand-text {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  flex: 1;
}

.reel-counter {
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  background: rgba(0,0,0,0.2);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

.reel-reject-pill {
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  background: var(--danger);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

.reel-reject-pill.locked {
  background: rgba(255,255,255,0.25);
}

/* Floating finish button */
.reel-finish-btn {
  position: absolute;
  top: calc(var(--safe-top) + 3.2rem);
  right: 1rem;
  z-index: 101;
  background: var(--brand);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(23,121,186,0.35);
  display: none;
  -webkit-tap-highlight-color: transparent;
}

.reel-finish-btn.visible { display: block; }

/* ─── SCROLL CONTAINER ──────────────────────────────────────── */
.reel-scroll {
  height: 100vh;
  height: 100dvh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
}

/* ─── INDIVIDUAL SLIDE ──────────────────────────────────────── */
.reel-slide {
  height: 100vh;
  height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
}

.reel-slide.voted-support { background: #f3fbf5; }
.reel-slide.voted-neutral { background: #f7f8fb; }
.reel-slide.voted-reject  { background: #fff5f4; }

/* Category colour strip below the header */
.slide-accent-bar {
  height: 4px;
  flex-shrink: 0;
  margin-top: calc(var(--safe-top) + 3rem);
}

/* Main content area */
.slide-content {
  flex: 1;
  padding: 1.1rem 1.2rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  overflow: hidden;
}

.slide-title {
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.22;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-shrink: 0;
}

.slide-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
  display: block;
}

.slide-desc {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-shrink: 0;
}

.slide-meta-sep { color: #c5cdd6; }

/* ─── SLIDE BOTTOM ───────────────────────────────────────────── */
.slide-bottom {
  display: flex;
  flex-direction: column;
  padding: 0.6rem 1rem calc(var(--safe-bottom) + 0.65rem);
  border-top: 1px solid var(--line);
  background: #fafbfc;
  flex-shrink: 0;
  gap: 0.5rem;
}

.slide-bottom-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
}

.slide-swipe-hint {
  font-size: 0.72rem;
  color: #aab0bb;
  letter-spacing: 0.04em;
  padding-bottom: 0.2rem;
  flex: 1;
}

/* ─── REJECT POWER STRIP ────────────────────────────────────── */
.rej-power-strip {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding-top: 0.45rem;
  border-top: 1px solid var(--line);
}

.rdots {
  display: flex;
  gap: 3px;
  flex-shrink: 0;
  align-items: center;
}

.rdot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #e0e4ea;
  border: 1px solid #c8cdd6;
  flex-shrink: 0;
  transition: background 200ms;
}

.rdot.rdot-filled {
  background: var(--brand);
  border-color: var(--brand);
}

.rdot-text {
  font-size: 0.77rem;
  color: var(--ink-soft);
  line-height: 1.3;
  flex: 1;
}

/* ─── VOTE BAR — vertical stack, bottom right ───────────────── */
.vote-bar {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex-shrink: 0;
  width: 120px;
}

.vote-btn {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.8rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease, transform 80ms ease;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}

.vote-btn:active { transform: scale(0.94); }

.vote-btn-icon {
  font-size: 1rem;
  line-height: 1;
  font-weight: 700;
  flex-shrink: 0;
}

.vote-btn-label {
  font-size: 0.82rem;
  font-weight: 600;
}

/* Support */
.vote-btn-support:hover:not(.selected)  { border-color: var(--brand); color: var(--brand); background: #eaf2fc; }
.vote-btn-support.selected              { background: var(--brand); border-color: var(--brand); color: #fff; }

/* Neutral */
.vote-btn-neutral:hover:not(.selected)  { border-color: #6b7a8d; background: #f2f4f7; }
.vote-btn-neutral.selected              { background: #6b7a8d; border-color: #6b7a8d; color: #fff; }

/* Reject */
.vote-btn-reject:hover:not(:disabled):not(.selected) { border-color: var(--danger); color: var(--danger); background: #fdf0ee; }
.vote-btn-reject.selected              { background: var(--danger); border-color: var(--danger); color: #fff; }
.vote-btn-reject:disabled              { opacity: 0.35; cursor: not-allowed; }
.vote-btn-reject:disabled:active       { transform: none; }

/* ─── END SLIDE (calibration done / feed end) ────────────────── */
.end-slide {
  height: 100vh;
  height: 100dvh;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fff;
  padding: 2rem 1.5rem calc(2rem + var(--safe-bottom));
  text-align: center;
  gap: 1rem;
}

.end-slide-icon { font-size: 3rem; line-height: 1; }

.end-slide-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--ink);
}

.end-slide-sub {
  font-size: 1.02rem;
  color: var(--ink);
  line-height: 1.5;
}

.end-slide-sub strong { color: var(--brand-dark); }

.end-slide-rated-count {
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand);
}

.end-slide-btn {
  background: var(--brand);
  color: #fff;
  border: 0;
  border-radius: 12px;
  padding: 0.9rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  width: 100%;
  max-width: 280px;
  -webkit-tap-highlight-color: transparent;
}

.end-slide-btn:disabled {
  background: #b0b8c4;
  cursor: not-allowed;
}

/* ─── DEBRIEF SUBMIT STATUS ─────────────────────────────────── */
.submit-status {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: #fff9e3;
  color: #6d4f14;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ─── ANIMATIONS ────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.screen-card, .mobile-content > * {
  animation: fadeUp 200ms ease both;
}

@keyframes votePulse {
  0%   { transform: scale(1); }
  40%  { transform: scale(0.91); }
  70%  { transform: scale(1.04); }
  100% { transform: scale(1); }
}

.vote-btn.just-voted { animation: votePulse 260ms ease; }

/* ─── READ MORE BUTTON ──────────────────────────────────────── */
.desc-readmore {
  background: none;
  border: none;
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 700;
  font-family: inherit;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  align-self: flex-start;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

/* ─── DESCRIPTION MODAL ─────────────────────────────────────── */
.desc-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 999;
  display: flex;
  align-items: flex-end;
}

.desc-modal {
  background: #fff;
  border-radius: 1.2rem 1.2rem 0 0;
  padding: 1.5rem 1.4rem 2.5rem;
  max-height: 85dvh;
  width: 100%;
  overflow-y: auto;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.desc-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #f0f2f5;
  border: none;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  color: var(--ink);
  -webkit-tap-highlight-color: transparent;
}

.desc-modal-title {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--ink);
  padding-right: 2.5rem;
  margin: 0;
}

.desc-modal-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  flex-shrink: 0;
}

.desc-modal-body {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
}

/* ─── ATTENTION CHECK MODAL ─────────────────────────────────── */
.att-check-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.att-check-modal {
  background: #fff;
  border-radius: 1.2rem;
  width: 100%;
  max-width: 480px;
  max-height: 90dvh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
}

.att-check-header {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  text-align: center;
  margin: 0;
}

.att-check-card {
  border: 1.5px solid var(--line);
  border-radius: 0.8rem;
  overflow: hidden;
}

.att-check-card .slide-accent-bar {
  height: 4px;
  width: 100%;
}

.att-check-card-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.att-check-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

.att-check-vote-bar {
  flex-direction: row;
  width: auto;
  justify-content: center;
}

.att-check-message {
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--danger);
  margin: 0;
}

/* ─── SURVEY ────────────────────────────────────────────────── */
.survey-item {
  margin-bottom: 1.3rem;
}

.survey-q-text {
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: 0.65rem;
}

.likert-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.likert-anchor {
  font-size: 0.68rem;
  color: var(--ink-soft);
  line-height: 1.25;
  flex-shrink: 0;
  text-align: center;
  width: 3rem;
}

.likert-anchor-right { text-align: center; }

.likert-pips {
  display: flex;
  flex: 1;
  justify-content: space-between;
  gap: 0.2rem;
}

.likert-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.likert-cell input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.likert-pip {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: background 120ms, border-color 120ms, color 120ms;
}

.likert-pip.selected {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

/* Yes / No question */
.yn-row {
  display: flex;
  gap: 0.75rem;
}

.yn-opt {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  transition: border-color 120ms, background 120ms;
  -webkit-tap-highlight-color: transparent;
}

.yn-opt:has(input:checked) {
  border-color: var(--brand);
  background: #e8f0fc;
}

.yn-opt input[type="radio"] {
  accent-color: var(--brand);
}

/* ─── STATUS QUO FEED ───────────────────────────────────────── */
.sq-sticky-top {
  position: sticky;
  top: 0;
  z-index: 50;
}

/* override the sticky from .mobile-header — parent handles positioning */
.sq-sticky-top .mobile-header {
  position: relative;
}

.sq-sort-bar {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0.5rem 0.75rem;
  background: var(--brand-dark);
}

.sq-sort-bar::-webkit-scrollbar { display: none; }

.sq-sort-btn {
  flex-shrink: 0;
  padding: 0.3rem 0.8rem;
  border: 1.5px solid rgba(255,255,255,0.45);
  border-radius: 999px;
  background: transparent;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  transition: background 120ms, border-color 120ms, color 120ms;
  -webkit-tap-highlight-color: transparent;
}

.sq-sort-btn.active {
  background: #fff;
  border-color: #fff;
  color: var(--brand);
}

.sq-finish-float {
  display: none;
  flex-shrink: 0;
  padding: 0.28rem 0.8rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.2);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,0.18);
  -webkit-tap-highlight-color: transparent;
}

.sq-finish-float.visible { display: block; }

.sq-main {
  padding: 0.75rem 0.75rem calc(1.5rem + var(--safe-bottom));
}

.sq-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

/* ── SQ card ── */
.sq-card {
  background: var(--surface);
  border-radius: 14px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: box-shadow 180ms;
}

/* override the reel-slide margin-top on the accent bar */
.sq-card .slide-accent-bar {
  margin-top: 0;
}

.sq-card.voted-support {
  box-shadow: 0 0 0 2.5px var(--success), 0 1px 6px rgba(0,0,0,0.08);
  background: #f3fbf5;
}

.sq-card-body {
  padding: 0.85rem 0.9rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sq-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--ink);
  margin: 0;
}

.sq-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  flex-shrink: 0;
}

.sq-card-desc {
  font-size: 0.87rem;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}

.sq-card-meta {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.sq-meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: #f0f3f7;
  border-radius: 999px;
  padding: 0.18rem 0.6rem;
}

.sq-card-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 0.4rem;
  border-top: 1px solid var(--line);
}

.sq-card-actions .vote-btn {
  width: 120px;
}

.sq-finish-wrap {
  padding: 1.5rem 0 0.5rem;
}


/* ─── VIGNETTE / WELCOME ────────────────────────────────────── */
.vig-hero {
  background: linear-gradient(158deg, #ffffff 0%, #eaf2fc 100%);
  border: 1px solid #d8e6f7;
}

.vig-hero-emoji {
  font-size: 2.1rem;
  line-height: 1;
  margin-bottom: 0.55rem;
}

.vig-hero h2 {
  font-size: 1.45rem;
  letter-spacing: -0.015em;
  margin-bottom: 0.6rem;
}

.vig-h3 {
  font-size: 1.02rem;
  margin-bottom: 0.9rem;
}

/* one-line "this is hypothetical" signpost, required before consent */
.vig-signpost {
  margin-top: 0.9rem;
  padding-top: 0.75rem;
  border-top: 1px solid #d8e6f7;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

/* fact chips */
.vig-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}

.vig-fact {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  padding: 0.8rem 0.35rem;
  background: var(--surface);
  border-radius: 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
  text-align: center;
}

.vig-fact-emoji { font-size: 1.2rem; line-height: 1.3; }
.vig-fact strong { font-size: 0.9rem; color: var(--ink); }
.vig-fact span:last-child {
  font-size: 0.7rem;
  line-height: 1.3;
  color: var(--ink-soft);
}

/* numbered steps */
.vig-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.vig-step {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.vig-step-num {
  flex-shrink: 0;
  width: 1.65rem;
  height: 1.65rem;
  margin-top: 0.05rem;
  border-radius: 50%;
  background: #e3f0fc;
  color: var(--brand-dark);
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vig-step-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.vig-step-text strong { font-size: 0.95rem; line-height: 1.35; }
.vig-step-text span {
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

/* staggered entrance */
.vig-stagger-1 { animation-delay: 60ms; }
.vig-stagger-2 { animation-delay: 120ms; }
.vig-stagger-3 { animation-delay: 180ms; }
.vig-stagger-4 { animation-delay: 240ms; }

@media (prefers-reduced-motion: reduce) {
  .screen-card, .mobile-content > * { animation: none; }
}

/* ─── BRIEF (FREE-TEXT INTERESTS) ───────────────────────────── */
.brief-lead {
  margin-bottom: 1.1rem;
}

.brief-label {
  margin-bottom: 0.35rem;
}

/* Sets the expectation in words rather than a character count, so the
   150-character floor is never a surprise on submit. */
.brief-help {
  margin: 0 0 0.7rem;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* Sits directly above the textarea, where it can still change what
   someone writes. No boxes — the marks alone carry the emphasis. */
.brief-notes {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.brief-notes li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.brief-notes strong { color: var(--ink); }

.brief-count {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--ink-soft);
  text-align: right;
}

.brief-count.ok   { color: var(--success); }
.brief-count.warn { color: #a9701a; }

/* muted card for "what happens to your text" */
.fact-note {
  background: #f7f9fc;
  border: 1px solid #e3e9f1;
  box-shadow: none;
}

.fact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.fact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.fact-emoji {
  flex-shrink: 0;
  width: 1.15rem;
  text-align: center;
  font-size: 0.95rem;
  margin-top: 0.05rem;
}

/* ─── DEBUG BAR (only present with ?debug in the URL) ────────── */
/* overflow:hidden matters: without it the bar's own children widen the
   document and every screen under it gets tested at the wrong width. */
.debug-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  height: 26px;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0.5rem;
  background: #1a1a2e;
  color: #ffd479;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.debug-build, .debug-arm {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.debug-tag {
  background: #cc4b37;
  color: #fff;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  flex-shrink: 0;
}

.debug-build {
  flex-shrink: 0;
  color: #7ee0a8;
  font-size: 0.62rem;
}

.debug-arm {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.debug-step {
  flex-shrink: 0;
  width: 20px;
  height: 18px;
  padding: 0;
  background: #2c2c48;
  color: #ffd479;
  border: 1px solid #444a6b;
  border-radius: 4px;
  font-size: 0.8rem;
  line-height: 1;
  cursor: pointer;
}
.debug-step:hover { background: #3a3a5e; }

.debug-bar select {
  flex-shrink: 0;
  max-width: 45%;
  background: #2c2c48;
  color: #fff;
  border: 1px solid #444a6b;
  border-radius: 4px;
  padding: 0.1rem 0.25rem;
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 700;
}

/* ─── CALIBRATION HEADER ────────────────────────────────────── */
.reel-header-cal {
  flex-direction: column;
  align-items: stretch;
  gap: 0.4rem;
}

.cal-head-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.cal-head-title {
  flex: 1;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* the step count is the thing people need at a glance */
.cal-step {
  flex-shrink: 0;
  background: #fff;
  color: var(--brand-dark);
  border-radius: 999px;
  padding: 0.15rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.cal-step b {
  font-size: 1.15rem;
  line-height: 1;
}

.cal-head-sub {
  font-size: 0.76rem;
  line-height: 1.4;
  color: rgba(255,255,255,0.9);
  font-weight: 500;
}

.cal-seg {
  display: flex;
  gap: 3px;
}

.cal-seg-item {
  flex: 1;
  height: 5px;
  border-radius: 3px;
  background: rgba(255,255,255,0.28);
  transition: background 160ms ease, box-shadow 160ms ease;
}

.cal-seg-item.done { background: #fff; }

.cal-seg-item.here {
  box-shadow: 0 0 0 1.5px rgba(255,255,255,0.9);
}

/* taller header than the feed's, so push the slide content clear of it */
.reel-root-cal .slide-accent-bar {
  margin-top: calc(var(--safe-top) + 5.4rem);
}

/* "More like this" / "Less like this" need more room than "Support" */
.vote-bar-cal { width: 152px; }

/* ─── UNLOCK TASK ───────────────────────────────────────────── */
.unlock-lead {
  font-weight: 600;
  color: var(--ink);
  font-size: 0.95rem;
  margin-bottom: 0.85rem;
}

.unlock-opt-text { font-size: 0.95rem; }

.unlock-assigned {
  margin: 0.35rem 0 0.5rem;
  font-size: 1.05rem;
  line-height: 1.45;
}
.unlock-assigned strong { color: var(--brand-dark); }

/* explanation bullets inside a normal card — no icon column, no panel */
.plain-list {
  list-style: disc;
  padding-left: 1.1rem;
  margin-top: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.plain-list li { font-size: 0.9rem; line-height: 1.5; }

.unlock-note {
  margin-top: 0.9rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

/* ─── UNDER-EXPOSED BADGE ───────────────────────────────────── */
/* Promised on the summary screen, so it must look the same in both
   places — the demo variant only stops it stretching inside a sentence. */
.slide-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  align-self: flex-start;
}

.slide-boost-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.7rem;
  border: 1.5px dashed #c9a227;
  border-radius: 999px;
  background: #fdf6e0;
  color: #856404;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}

.badge-inline { font-size: 0.64rem; padding: 0.14rem 0.5rem; vertical-align: middle; }

/* ─── WHY YOU ARE SEEING THIS ───────────────────────────────── */
/* Sits above the title, where Netflix puts "Because you watched": read as
   a reason for the card, not as part of it. */
.slide-reason {
  align-self: flex-start;
  padding-left: 0.55rem;
  border-left: 2px solid var(--brand);
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--ink-soft);
}

/* ─── CALIBRATION END SLIDE ─────────────────────────────────── */
.end-slide-note {
  max-width: 300px;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

/* ─── INTRO VIDEO SCREEN ─────────────────────────────────────── */
.intro-video-screen {
  position: fixed;
  inset: 0;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.intro-video-player {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.intro-video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.25);
}

.intro-video-play-btn {
  background: none;
  border: none;
  cursor: pointer;
  width: 96px;
  height: 96px;
  padding: 0;
  opacity: 0.9;
}

.intro-video-play-btn:active {
  opacity: 1;
  transform: scale(1.05);
}

.intro-video-back {
  position: absolute;
  top: max(1rem, env(safe-area-inset-top, 0px));
  left: max(1rem, env(safe-area-inset-left, 0px));
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.4rem 0.8rem;
  font-size: 0.9rem;
  cursor: pointer;
  z-index: 10;
}

.intro-video-continue {
  position: absolute;
  bottom: max(2rem, env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.85rem 2rem;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  z-index: 10;
  white-space: nowrap;
}

.intro-video-continue:active {
  background: var(--brand-dark);
}
