@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700;900&display=swap');

/* UAOA brand palette — UAOA Brand Guidelines (External).pdf */
:root {
  --brand-sky: #21b7cb;
  --brand-sky-dark: #03707d;
  --brand-deep: #091324;
  --brand-deep-mid: #22304c;
  --brand-navy: #1c3564;
  --brand-purple: #7e559e;
  --brand-purple-light: #b994d6;
  --brand-purple-dark: #3a1a4a;
  --brand-orange: #d35420;
  --brand-gold: #f1a01f;

  --paper: #f4f8fb;
  --surface: #ffffff;
  --ink: #091324;
  --ink-muted: #5a6578;
  --line: #d4e8ee;
  --teal: var(--brand-sky);
  --teal-soft: #e8f7fa;
  --teal-deep: var(--brand-sky-dark);
  --rust: var(--brand-orange);
  --rust-soft: #fef0e8;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(9, 19, 36, 0.06);
  --shadow-md: 0 8px 28px rgba(9, 19, 36, 0.08);
  --gradient-brand: linear-gradient(135deg, var(--brand-sky) 0%, var(--brand-sky-dark) 100%);
  --gradient-progress: linear-gradient(90deg, var(--brand-sky) 0%, var(--brand-sky-dark) 100%);
  --sans: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --serif: var(--sans);
  --layout-max: 720px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

body { min-height: 100vh; }

a { color: var(--teal-deep); text-decoration: none; }
a:hover { color: var(--brand-sky); }

.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;
}

button {
  font-family: var(--sans);
  cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.btn {
  border: none;
  background: var(--gradient-brand);
  color: white;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 700;
  transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
  box-shadow: 0 2px 8px rgba(33, 183, 203, 0.22);
}
.btn:hover:not(:disabled) {
  box-shadow: 0 4px 14px rgba(33, 183, 203, 0.32);
  transform: translateY(-1px);
}
.btn:active:not(:disabled) { transform: translateY(0) scale(0.98); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }

.btn-ghost {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-muted);
  padding: 0.65rem 1.2rem;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 700;
  box-shadow: none;
}
.btn-ghost:hover:not(:disabled) {
  border-color: var(--teal);
  color: var(--teal-deep);
  background: var(--teal-soft);
  transform: none;
}
.btn-ghost:disabled { opacity: 0.35; cursor: not-allowed; }

.btn-accent { background: var(--gradient-brand); color: white; border: none; }

/* ── Respondent shell (UAOA-aligned dark canvas) ── */

.survey-shell {
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  --survey-text: #e8eef5;
  --survey-text-muted: rgba(232, 238, 245, 0.68);
  --survey-line: rgba(33, 183, 203, 0.28);
  --survey-card: rgba(28, 40, 62, 0.82);
  background: #091324;
  background-image:
    radial-gradient(ellipse 110% 70% at 50% -15%, rgba(33, 183, 203, 0.16), transparent 58%),
    radial-gradient(ellipse 60% 45% at 100% 40%, rgba(126, 85, 158, 0.1), transparent),
    linear-gradient(180deg, #091324 0%, #0c1828 50%, #091324 100%);
  color: var(--survey-text);
}

.survey-brand-line {
  margin-bottom: 1.6rem;
  padding-top: 0.35rem;
}

.survey-brand {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-transform: none;
  color: #ffffff;
  text-align: center;
}

.survey-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.6rem 1rem 2.4rem;
  width: 100%;
  gap: 0;
}

.survey-shell .card {
  background: var(--survey-card);
  border: 1px solid var(--survey-line);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(8px);
}

.survey-shell .hud {
  background:
    linear-gradient(180deg, rgba(28, 53, 100, 0.45) 0%, rgba(9, 19, 36, 0.55) 100%);
  border: 1px solid rgba(33, 183, 203, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 10px 28px rgba(0, 0, 0, 0.22);
}

.survey-shell .track {
  background: rgba(255, 255, 255, 0.1);
}

.survey-shell .section-tab {
  background: rgba(9, 19, 36, 0.45);
  border-color: var(--survey-line);
}

.survey-shell .section-tab__title {
  color: var(--survey-text-muted);
}

.survey-shell .section-tab--active {
  background: rgba(33, 183, 203, 0.14);
  border-color: var(--brand-sky);
  box-shadow: 0 4px 16px rgba(33, 183, 203, 0.15);
  animation: tab-arrive 0.45s ease;
}

.survey-shell .section-tab--active .section-tab__title {
  color: var(--survey-text);
}

.survey-shell .section-tab--complete .section-tab__title {
  color: var(--survey-text-muted);
}

.survey-shell .section-tab--locked {
  opacity: 0.42;
  background: rgba(9, 19, 36, 0.25);
}

.survey-shell .section-card {
  background: var(--survey-card);
  border-color: var(--survey-line);
}

.survey-shell .section-card__title {
  color: var(--survey-text);
}

.survey-shell .section-card__desc,
.survey-shell .section-card__hint {
  color: var(--survey-text-muted);
}

.survey-shell .question-text {
  color: #f1a01f;
  font-size: 1.42rem;
}

.survey-shell .help-text,
.survey-shell .required-hint {
  color: var(--survey-text-muted);
}

.survey-shell .center-msg h1 {
  color: #f1a01f;
}

.survey-shell .center-msg p,
.survey-shell .center-msg .intro {
  color: var(--survey-text-muted);
}

.survey-shell .welcome-badge {
  background: rgba(33, 183, 203, 0.15);
  color: var(--brand-sky);
}

.survey-shell .option-btn {
  background: rgba(9, 19, 36, 0.35);
  border-color: var(--survey-line);
  color: var(--survey-text);
}

.survey-shell .option-btn:hover:not(:disabled) {
  border-color: var(--brand-sky);
  background: rgba(33, 183, 203, 0.12);
  transform: translateX(3px);
}

.survey-shell .option-btn.selected {
  border-color: var(--brand-sky);
  background: rgba(33, 183, 203, 0.18);
}

.survey-shell .option-btn:not(.selected) .check {
  border-color: var(--survey-line);
  background: transparent;
}

.survey-shell textarea,
.survey-shell input[type="text"],
.survey-shell input[type="number"] {
  background: rgba(9, 19, 36, 0.5);
  border-color: var(--survey-line);
  color: var(--survey-text);
}

.survey-shell .btn-ghost {
  border-color: var(--survey-line);
  color: var(--survey-text-muted);
}

.survey-shell .btn-ghost:hover:not(:disabled) {
  border-color: var(--brand-sky);
  color: var(--brand-sky);
  background: rgba(33, 183, 203, 0.1);
}

.survey-shell .review-item {
  background: rgba(33, 183, 203, 0.08);
  border-color: var(--survey-line);
}

.survey-shell .review-q {
  color: var(--survey-text-muted);
}

.survey-shell .review-a {
  color: var(--survey-text);
}

.survey-shell .review-item button {
  color: var(--brand-sky);
}

.survey-shell .affirmation-title {
  color: #f1a01f;
}

.survey-shell .affirmation-summary {
  color: var(--survey-text-muted);
}

.survey-shell .inline-feedback__title,
.survey-shell .summary-section h2 {
  color: #f1a01f;
}

.survey-shell .inline-feedback .affirmation-summary,
.survey-shell .inline-feedback .affirmation-summary--bullets li,
.survey-shell .summary-answer .review-q,
.survey-shell .summary-answer .review-a {
  color: var(--survey-text);
}

.survey-shell .report-section,
.survey-shell .report-stat {
  background: rgba(9, 19, 36, 0.35);
  border-color: var(--survey-line);
}

.survey-shell .report-section__title,
.survey-shell .report-answer__a {
  color: var(--survey-text);
}

.survey-shell .report-answer__q,
.survey-shell .report-stat__label {
  color: var(--survey-text-muted);
}

/* Sub-question detail pathway tracker */
.sub-trail {
  margin-bottom: 1.15rem;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius);
  border: 1px solid rgba(241, 160, 31, 0.35);
  background: linear-gradient(105deg, rgba(241, 160, 31, 0.12) 0%, rgba(241, 160, 31, 0.02) 55%);
}

.sub-trail__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
}

.sub-trail__tag {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #f1a01f;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.sub-trail__step {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--survey-text-muted);
  font-variant-numeric: tabular-nums;
}

.sub-trail__track {
  display: flex;
  align-items: stretch;
  gap: 5px;
  height: 7px;
}

.sub-trail__segment {
  flex: 1;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.12);
  transition: background 0.35s ease, box-shadow 0.35s ease;
}

.sub-trail__segment--done {
  background: linear-gradient(90deg, rgba(33, 183, 203, 0.55), rgba(33, 183, 203, 0.35));
}

.sub-trail__segment--active {
  background: linear-gradient(90deg, #f1a01f, #d35420);
  box-shadow: 0 0 14px rgba(241, 160, 31, 0.55);
  animation: sub-trail-glow 1.8s ease-in-out infinite;
}

@keyframes sub-trail-glow {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.88; transform: scaleY(1.15); }
}

/* ── Shell (legacy header removed — brand lives in survey-main) ── */

/* ── Section navigation ── */

.section-nav {
  width: 100%;
  max-width: var(--layout-max);
  margin-bottom: 1rem;
}

.section-nav--tabs {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 0.15rem;
}
.section-nav--tabs::-webkit-scrollbar { display: none; }

.section-tab {
  flex: 1 0 auto;
  min-width: 0;
  max-width: 100%;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 0.55rem 0.65rem;
  text-align: left;
  pointer-events: none;
  user-select: none;
}

.section-tab__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  font-size: 0.68rem;
  font-weight: 900;
  margin-bottom: 0.2rem;
  background: var(--line);
  color: var(--ink-muted);
}

.section-tab__title {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.section-tab--active {
  border-color: var(--brand-sky);
  background: var(--teal-soft);
  box-shadow: var(--shadow-sm);
}
.section-tab--active .section-tab__num {
  background: var(--gradient-brand);
  color: white;
}
.section-tab--active .section-tab__title { color: var(--brand-deep); }

.section-tab--complete {
  border-color: var(--line);
  background: var(--surface);
}
.section-tab--complete .section-tab__num {
  background: var(--brand-sky-dark);
  color: white;
}
.section-tab--complete .section-tab__title { color: var(--ink-muted); }

.section-tab--locked {
  opacity: 0.48;
  background: #f7fafc;
}

/* Section list (welcome screen) */

.section-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin: 1.5rem 0 1.75rem;
  text-align: left;
}

.section-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1rem 1.05rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: left;
  width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.section-card__top {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.section-card__num {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 900;
  background: var(--line);
  color: var(--ink-muted);
}

.section-card__body { flex: 1; min-width: 0; }

.section-card__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--brand-deep);
  margin: 0;
}

.section-card__desc {
  font-size: 0.82rem;
  color: var(--ink-muted);
  margin: 0;
  line-height: 1.45;
}

.section-card__hint {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-sky-dark);
}

.org-section-card__part {
  padding-top: 0.75rem;
  border-top: 1px solid rgba(9, 19, 36, 0.08);
}

.org-section-card__part--nav {
  margin-top: auto;
}

.org-section-card__btn {
  width: 100%;
  padding: 0.65rem 1rem;
  font-size: 0.84rem;
}

.section-card--startable {
  cursor: pointer;
  border-color: var(--brand-sky);
  background: var(--teal-soft);
  box-shadow: var(--shadow-sm);
  animation: start-pulse 2.4s ease-in-out infinite;
}
.section-card--startable:hover {
  animation: none;
  box-shadow: 0 4px 16px rgba(33, 183, 203, 0.18);
  transform: translateY(-1px);
}
.section-card--startable .section-card__num {
  background: var(--gradient-brand);
  color: white;
}
.section-card--startable .section-card__hint {
  color: var(--brand-sky-dark);
}

.section-card--complete {
  border-color: rgba(33, 183, 203, 0.5);
  background: rgba(232, 247, 250, 0.92);
}

.section-card--complete .section-card__num {
  background: var(--gradient-brand);
  color: white;
}

.section-card--active {
  border-color: var(--brand-gold);
  background: var(--rust-soft);
}

.section-card--locked {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* ── Card ── */

.wrap {
  width: 100%;
  max-width: var(--layout-max);
}

.card {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.25rem 1.35rem;
  box-shadow: var(--shadow-md);
}

.question-stack {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.question-copy-card,
.answer-options-card {
  padding: 1.35rem 1.25rem;
}

.progress-wrap { margin-bottom: 1.35rem; }

.progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.5rem;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.progress-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--teal-deep);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.progress-count {
  font-size: 0.72rem;
  color: var(--ink-muted);
}

.track {
  height: 5px;
  background: var(--line);
  border-radius: 99px;
  overflow: hidden;
}

.track-fill {
  height: 100%;
  background: var(--gradient-progress);
  border-radius: 99px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.track--overall {
  height: 8px;
}

.track--section {
  height: 5px;
}

.track-fill--animated {
  box-shadow: 0 0 12px rgba(33, 183, 203, 0.45);
}

/* ── Athletic HUD + mini-map ── */

.hud {
  margin: 0 0 2rem;
  padding: 1.05rem 1.15rem 1.15rem;
  border-radius: 14px;
}

.hud__score {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.hud__kicker {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-sky);
}

.hud__split {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--survey-text-muted, var(--ink-muted));
  font-variant-numeric: tabular-nums;
}

.hud__pct {
  font-size: 2.15rem;
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: #f1a01f;
  font-variant-numeric: tabular-nums;
}

.hud__pct-mark {
  font-size: 0.95rem;
  margin-left: 0.08rem;
  font-weight: 800;
  opacity: 0.85;
}

.hud__pct--tick { animation: pct-pop 0.35s ease; }

.hud__lane {
  position: relative;
  height: 14px;
  padding: 3px;
  border-radius: 99px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hud__track {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 99px;
  background: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.05) 0 10px,
    rgba(255, 255, 255, 0.12) 10px 12px
  );
}

.hud__fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #21b7cb 0%, #f1a01f 100%);
  box-shadow: 0 0 16px rgba(241, 160, 31, 0.45);
  transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.hud__chevrons {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  pointer-events: none;
  mix-blend-mode: overlay;
}

.hud__chevrons span {
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 6px solid rgba(255, 255, 255, 0.35);
}

.minimap {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 1rem 0 0;
  padding: 0;
}

.minimap__tile {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  padding: 0.55rem 0.6rem;
  border-radius: 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  background: rgba(9, 19, 36, 0.45);
  text-align: left;
  opacity: 0.45;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.minimap__tile--complete,
.minimap__tile--active {
  opacity: 1;
}

.minimap__tile-badge {
  flex-shrink: 0;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  font-weight: 900;
  line-height: 1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--survey-text-muted, #8a93a3);
}

.minimap__tile-name {
  flex: 1;
  min-width: 0;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--survey-text-muted, #8a93a3);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.minimap__tile--complete {
  border-color: rgba(33, 183, 203, 0.45);
  background: rgba(33, 183, 203, 0.1);
}

.minimap__tile--complete .minimap__tile-badge {
  background: linear-gradient(135deg, #21b7cb, #03707d);
  border-color: #21b7cb;
  color: #fff;
}

.minimap__tile--complete .minimap__tile-name {
  color: var(--survey-text, #e8ecf2);
}

.minimap__tile--active {
  border-color: #f1a01f;
  background: rgba(241, 160, 31, 0.14);
  box-shadow: 0 0 0 1px rgba(241, 160, 31, 0.25), 0 4px 14px rgba(241, 160, 31, 0.12);
  animation: tile-active-pulse 1.8s ease-in-out infinite;
}

.minimap__tile--active .minimap__tile-badge {
  background: #f1a01f;
  border-color: #f1a01f;
  color: #091324;
}

.minimap__tile--active .minimap__tile-name {
  color: #f1a01f;
  font-weight: 800;
}

@keyframes tile-active-pulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(241, 160, 31, 0.25), 0 4px 14px rgba(241, 160, 31, 0.1); }
  50% { box-shadow: 0 0 0 3px rgba(241, 160, 31, 0.18), 0 4px 18px rgba(241, 160, 31, 0.16); }
}

.question-text {
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1.35;
  margin: 0 0 0.5rem;
  color: var(--brand-deep);
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  overflow-wrap: anywhere;
}

.help-text {
  color: var(--ink-muted);
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 0 0 1.25rem;
}

.required-hint {
  font-size: 0.75rem;
  color: var(--ink-muted);
  margin: -0.2rem 0 1rem;
}

/* ── Options ── */

.options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.option-btn {
  position: relative;
  overflow: hidden;
  text-align: left;
  padding: 0.85rem 1rem 0.85rem 0.9rem;
  border-radius: var(--radius);
  border: 1.5px solid var(--line);
  background: var(--surface);
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.option-btn:hover:not(:disabled) {
  border-color: var(--teal);
  background: var(--teal-soft);
  transform: translateX(3px);
}

.option-btn:active:not(:disabled) { transform: scale(0.985); }

.option-btn::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: var(--radius) 0 0 var(--radius);
  background: transparent;
  transition: background 0.15s ease;
}

.option-btn.selected {
  border-color: var(--teal);
  background: var(--teal-soft);
}

.option-btn.selected::before { background: var(--gradient-brand); }
.option-btn:disabled { cursor: default; }

.check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 900;
}

.option-btn.selected .check {
  background: var(--gradient-brand);
  color: white;
  border: none;
}

.option-btn:not(.selected) .check {
  border: 2px solid var(--line);
  background: white;
}

textarea,
input[type="text"],
input[type="number"] {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius);
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  margin-bottom: 1.25rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

textarea:focus,
input[type="text"]:focus,
input[type="number"]:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(33, 183, 203, 0.15);
  outline: none;
}

textarea { min-height: 110px; resize: vertical; line-height: 1.5; }

.actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.error-text {
  color: var(--rust);
  font-size: 0.85rem;
  margin: -0.65rem 0 1rem;
  font-weight: 700;
}

.center-msg { text-align: center; padding: 0.25rem 0; }

.center-msg h1 {
  font-weight: 900;
  font-size: 1.55rem;
  margin-bottom: 0.65rem;
  color: var(--brand-deep);
  line-height: 1.25;
}

.center-msg p {
  color: var(--ink-muted);
  margin-bottom: 0;
  line-height: 1.6;
  font-size: 0.92rem;
}

.center-msg .intro { margin-bottom: 0.5rem; }

/* Introduction to CPF */

.intro-page {
  width: min(100%, 1180px);
  max-width: calc(100vw - clamp(1rem, 4vw, 3rem));
  margin: 0 auto;
  padding: clamp(0.25rem, 1.5vw, 1rem) 0 2.25rem;
  min-height: calc(100dvh - 4rem);
  display: flex;
  flex-direction: column;
  gap: clamp(2.1rem, 4.4vw, 3.8rem);
}

.intro-page--landing {
  position: relative;
}

.intro-hero {
  position: relative;
  overflow: visible;
  width: min(680px, 100%);
  margin: 0 auto;
  padding: clamp(0.75rem, 2.2vw, 1.45rem) 0;
  min-height: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.intro-hero::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(260px, 58vw);
  height: 2px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(241, 160, 31, 0.85), transparent);
  opacity: 0.9;
  pointer-events: none;
}

.intro-hero__orb {
  display: none;
}

.intro-hero__orb--teal {
  width: 150px;
  height: 150px;
  right: 9%;
  bottom: -46px;
  background: radial-gradient(circle, rgba(33, 183, 203, 0.48), transparent 68%);
}

.intro-hero__orb--gold {
  width: 110px;
  height: 110px;
  right: 22%;
  top: 12%;
  background: radial-gradient(circle, rgba(241, 160, 31, 0.34), transparent 70%);
}

.intro-hero__content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  text-align: center;
}

.intro-hero__title {
  margin: 0;
  max-width: none;
  font-size: clamp(1.55rem, 4vw, 2.55rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #f1a01f;
  white-space: nowrap;
}

.intro-hero__text {
  max-width: 36rem;
  margin: 0.8rem auto 0;
  font-size: clamp(0.9rem, 1.4vw, 1rem);
  line-height: 1.6;
  color: rgba(232, 238, 245, 0.78);
}

.intro-feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(2rem, 4.2vw, 4rem);
}

.intro-panel {
  border-radius: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.intro-panel {
  padding: 0;
}

.intro-panel--welcome {
  border-left: 3px solid rgba(241, 160, 31, 0.85);
  padding-left: clamp(1rem, 2vw, 1.35rem);
}

.intro-panel--video {
  padding: 0;
  background: transparent;
}

.intro-panel__title {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--survey-text, #e8ecf2);
}

.intro-panel__text {
  margin: 0 0 0.75rem;
  font-size: 0.94rem;
  line-height: 1.62;
  color: var(--survey-text-muted, #a8b0be);
}

.intro-panel__text:last-child {
  margin-bottom: 0;
}

.intro-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(135deg, rgba(9, 19, 36, 0.8), rgba(28, 53, 100, 0.62));
}

.intro-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.intro-guide-strip {
  display: grid;
  grid-template-columns: minmax(170px, 0.35fr) minmax(0, 0.65fr);
  gap: clamp(1.8rem, 4vw, 3.6rem);
  padding: 0.35rem 0.25rem;
  align-items: start;
}

.intro-bullets {
  margin: 0;
  padding: 0 0 0 1.15rem;
  list-style: disc;
}

.intro-bullets li {
  margin-bottom: 0.46rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--survey-text-muted, #a8b0be);
}

.intro-bullets li::marker {
  color: var(--brand-sky);
}

.intro-bullets li:last-child {
  margin-bottom: 0;
}

.intro-start-panel {
  display: flex;
  flex-direction: column;
  gap: clamp(1.2rem, 2.8vw, 2rem);
  margin-top: auto;
  padding: 0;
  align-items: stretch;
}

.intro-start-panel__action {
  display: flex;
  justify-content: center;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
}

.intro-start-panel__copy {
  margin-top: auto;
  max-width: 760px;
  margin-left: 0;
  margin-right: auto;
  text-align: left;
}

.intro-begin-btn {
  width: auto;
  min-width: min(100%, 16rem);
  padding: 0.9rem 1.4rem;
  font-size: 1rem;
}

.intro-begin-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.intro-actions__hint {
  margin: 0.65rem 0 0;
  font-size: 0.78rem;
  color: var(--survey-text-muted, #8a93a3);
}

/* Online abuse education step */

.education-page {
  max-width: min(1040px, calc(100vw - clamp(1rem, 4vw, 3rem)));
  display: flex;
  flex-direction: column;
  gap: clamp(1.1rem, 2.4vw, 1.8rem);
}

.education-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.education-head h1 {
  margin: 0;
  font-size: clamp(1.55rem, 4vw, 2.55rem);
  line-height: 1.08;
  font-weight: 900;
  color: #f1a01f;
}

.education-card {
  padding: clamp(0.8rem, 2vw, 1.2rem) 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.education-card--list {
  gap: 1rem;
}

.education-item {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.education-item--locked .education-question-block {
  opacity: 0.48;
  cursor: not-allowed;
  transform: none;
}

.education-item--locked .education-question-block:hover {
  border-color: rgba(241, 160, 31, 0.38);
  background:
    radial-gradient(circle at 90% 12%, rgba(241, 160, 31, 0.28), transparent 38%),
    linear-gradient(145deg, rgba(241, 160, 31, 0.18), rgba(28, 53, 100, 0.55));
}

.education-question-block,
.education-answer-block {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.education-question-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 0;
  padding: 0.95rem 1.15rem;
  background:
    radial-gradient(circle at 90% 12%, rgba(241, 160, 31, 0.28), transparent 38%),
    linear-gradient(145deg, rgba(241, 160, 31, 0.18), rgba(28, 53, 100, 0.55));
  border-color: rgba(241, 160, 31, 0.38);
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.education-question-block:hover {
  border-color: rgba(241, 160, 31, 0.7);
  background:
    radial-gradient(circle at 90% 12%, rgba(241, 160, 31, 0.34), transparent 38%),
    linear-gradient(145deg, rgba(241, 160, 31, 0.22), rgba(28, 53, 100, 0.6));
  transform: translateY(-1px);
}

.education-question-block::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, #21b7cb, #f1a01f);
  opacity: 0.8;
}

.education-question-block h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  min-width: 0;
  flex: 1;
  font-size: clamp(1.05rem, 2.4vw, 1.55rem);
  line-height: 1.28;
  color: var(--survey-text);
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

.education-question-block__number {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(241, 160, 31, 0.2);
  color: var(--survey-text);
  font-size: 0.85rem;
  font-weight: 900;
}

.education-answer-block {
  min-height: 0;
  padding: clamp(1rem, 2.5vw, 1.35rem);
  background:
    linear-gradient(135deg, rgba(33, 183, 203, 0.12), rgba(9, 19, 36, 0.48));
  border-color: rgba(33, 183, 203, 0.34);
}

.education-answer-block::before {
  content: '';
  position: absolute;
  inset: 1rem;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  pointer-events: none;
}

.education-content {
  position: relative;
  z-index: 1;
  margin-bottom: 1.1rem;
}

.education-content p {
  margin: 0 0 0.75rem;
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--survey-text-muted);
}

.education-content p:last-of-type {
  margin-bottom: 0;
}

.education-content ul {
  margin: 0;
  padding-left: 1.1rem;
}

.education-content li {
  margin-bottom: 0.52rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--survey-text-muted);
}

.education-content li::marker {
  color: var(--brand-gold);
}

.education-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  text-align: center;
  margin-top: 0.85rem;
}

.education-actions__question {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--survey-text);
}

.education-actions__buttons {
  display: flex;
  gap: 0.65rem;
  justify-content: center;
}

.education-next-section-btn {
  min-width: min(100%, 15rem);
}

/* Sections intro (step before questions) */

.sections-page {
  max-width: min(920px, calc(100vw - clamp(1rem, 4vw, 3rem)));
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sections-intro__head {
  text-align: left;
  margin-bottom: 0;
}

.sections-intro__title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.55rem, 4vw, 2.55rem);
  line-height: 1.08;
  font-weight: 900;
  color: #f1a01f;
}

.sections-intro .section-list {
  margin-top: 1.25rem;
}

.sections-intro__cta {
  display: block;
  margin: 1.5rem auto 0.5rem;
}

.sections-exit {
  margin-top: 1.35rem;
  text-align: center;
}

.sections-exit p {
  margin: 0;
  color: var(--survey-text-muted);
  font-size: 0.95rem;
}

.sections-exit .sections-intro__cta {
  margin-top: 0.9rem;
}

.summary-list {
  width: 100%;
  margin-top: 1.25rem;
  text-align: left;
}

.summary-section {
  padding: 1rem;
  border: 1px solid var(--survey-line, var(--line));
  border-radius: var(--radius);
  background: rgba(9, 19, 36, 0.35);
}

.summary-section h2 {
  margin: 0 0 0.85rem;
  font-size: 1rem;
  color: #f1a01f;
}

.summary-answer {
  padding-top: 0.85rem;
  margin-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.summary-answer:first-of-type {
  padding-top: 0;
  margin-top: 0;
  border-top: 0;
}

.welcome-badge {
  display: inline-flex;
  background: var(--teal-soft);
  color: var(--teal-deep);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.8rem;
  border-radius: 99px;
  margin-bottom: 1rem;
}

.done-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 1rem;
  box-shadow: 0 4px 16px rgba(33, 183, 203, 0.28);
}

.affirmation-card {
  text-align: center;
  padding: 2rem 1.5rem;
}

.affirmation-emoji {
  font-size: 3.25rem;
  line-height: 1;
  margin: 0 auto 0.75rem;
  animation: affirmation-bounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes affirmation-bounce {
  0% { transform: scale(0.4); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.affirmation-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 1rem;
  box-shadow: 0 4px 16px rgba(33, 183, 203, 0.28);
}

.affirmation-title {
  font-size: 1.35rem;
  color: var(--ink);
  margin: 0 0 0.5rem;
}

.affirmation-summary {
  color: var(--ink-muted);
  font-size: 0.95rem;
  line-height: 1.55;
  max-width: 36rem;
  margin: 0 auto;
}

.affirmation-summary--bullets {
  display: inline-block;
  text-align: left;
  padding-left: 1.2rem;
}

.affirmation-summary--bullets li {
  margin-bottom: 0.35rem;
}

.affirmation-summary--bullets li:last-child {
  margin-bottom: 0;
}

.inline-feedback {
  margin-top: 0;
  padding: 1rem 1.1rem;
  border: 1px solid var(--survey-line, rgba(33, 183, 203, 0.22));
  border-radius: var(--radius);
  background: rgba(9, 19, 36, 0.35);
}

.inline-feedback__title {
  margin: 0 0 0.6rem;
  color: #f1a01f;
  font-size: 1rem;
  font-weight: 900;
}

.inline-feedback .affirmation-summary,
.inline-feedback .affirmation-summary--bullets li {
  color: var(--survey-text, #e8eef5);
}

.inline-feedback__next {
  display: block;
  margin: 0.2rem 0 0 auto;
}

.affirmation-card--auto {
  cursor: pointer;
  transition: opacity 0.32s ease, transform 0.32s ease;
}

.affirmation-card--auto:focus-visible {
  outline: 2px solid var(--brand-sky);
  outline-offset: 4px;
}

.affirmation-card--out {
  opacity: 0;
  transform: scale(0.98);
  pointer-events: none;
}

.affirmation-auto-track {
  margin: 1.35rem auto 0;
  width: min(200px, 70%);
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.affirmation-auto-fill {
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, #21b7cb 0%, #f1a01f 100%);
  animation: affirmation-auto-fill linear forwards;
}

@keyframes affirmation-auto-fill {
  from { width: 0%; }
  to { width: 100%; }
}

.follow-up-badge {
  display: none;
}

/* ── Assessment report ── */

.assessment-report__header {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.report-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin-bottom: 1.35rem;
}

.report-stat {
  text-align: center;
  padding: 0.85rem 0.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface-alt, #f8fbfc);
}

.report-stat__num {
  display: block;
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1.1;
}

.report-stat__label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  margin-top: 0.25rem;
}

.report-stat--yes .report-stat__num { color: var(--brand-sky-dark); }
.report-stat--no .report-stat__num { color: var(--brand-purple); }
.report-stat--follow .report-stat__num { color: var(--brand-orange, #F1A01F); }

.report-sections {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.25rem;
  max-height: 45vh;
  overflow-y: auto;
}

.report-section {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  background: var(--surface);
}

.report-section__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
  flex-wrap: wrap;
}

.report-section__title {
  font-size: 0.95rem;
  font-weight: 800;
  margin: 0;
  color: var(--brand-deep);
}

.report-section__badges {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.report-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 99px;
}

.report-badge--yes {
  background: rgba(33, 183, 203, 0.15);
  color: var(--brand-sky-dark);
}

.report-badge--no {
  background: rgba(126, 85, 158, 0.12);
  color: var(--brand-purple);
}

.report-answers {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.report-answer {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.report-answer__q {
  font-size: 0.82rem;
  color: var(--ink-muted);
  line-height: 1.35;
}

.report-answer__a {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--brand-deep);
}

.report-answer__a--yes {
  color: var(--brand-sky-dark);
}

.report-answer__a--no {
  color: var(--brand-purple);
}

.report-followups {
  margin-top: 0.35rem;
  padding-top: 0.55rem;
  border-top: 1px dashed var(--line);
}

.report-followups__label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  display: block;
  margin-bottom: 0.45rem;
}

.report-followups__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

@media (max-width: 480px) {
  .report-stats {
    grid-template-columns: 1fr;
  }
}

.review-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.5rem;
  max-height: 50vh;
  overflow-y: auto;
}

.review-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.88rem;
  background: var(--teal-soft);
}

.review-item button {
  background: none;
  border: none;
  color: var(--teal-deep);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0;
  flex-shrink: 0;
}

.review-q { color: var(--ink-muted); margin-bottom: 0.15rem; font-size: 0.78rem; }
.review-a { font-weight: 700; color: var(--ink); }
.review-section-name {
  margin-bottom: 0.25rem;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-sky-dark);
}

.fade-in { animation: fadeIn 0.35s ease; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.ack-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 50;
}

.ack-badge {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  animation: pop 0.42s ease;
  box-shadow: 0 4px 20px rgba(33, 183, 203, 0.35);
}

@keyframes pop {
  0% { transform: scale(0.4); opacity: 0; }
  55% { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.ripple {
  position: absolute;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: rgba(33, 183, 203, 0.35);
  pointer-events: none;
  animation: ripple-out 0.5s ease-out forwards;
}

@keyframes ripple-out {
  to { transform: scale(18); opacity: 0; }
}

.choice-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  margin-bottom: 1.1rem;
}

.choice-tile {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  min-height: 6.4rem;
  padding: 1rem 0.6rem;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--survey-line, var(--line));
  background: rgba(9, 19, 36, 0.4);
  color: var(--survey-text, var(--ink));
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.choice-tile:hover:not(:disabled) {
  transform: translateY(-4px);
}

.choice-tile:active:not(:disabled) {
  transform: translateY(-1px) scale(0.98);
}

.choice-tile--yes:hover:not(:disabled),
.choice-tile--yes.selected {
  border-color: #21b7cb;
  background: rgba(33, 183, 203, 0.16);
  box-shadow: 0 10px 28px rgba(33, 183, 203, 0.22);
}

.choice-tile--no:hover:not(:disabled),
.choice-tile--no.selected {
  border-color: #f1a01f;
  background: rgba(241, 160, 31, 0.12);
  box-shadow: 0 10px 28px rgba(241, 160, 31, 0.18);
}

.choice-tile__mark {
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 0.15rem;
}

.choice-tile--yes .choice-tile__mark { color: #21b7cb; }
.choice-tile--no .choice-tile__mark { color: #f1a01f; }

.choice-tile__label {
  font-size: 1.15rem;
  font-weight: 800;
}

.choice-tile__hint {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.55;
}

.card-slide--forward {
  animation: slide-forward 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.card-slide--back {
  animation: slide-back 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes slide-forward {
  from { opacity: 0; transform: translateX(28px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slide-back {
  from { opacity: 0; transform: translateX(-28px); }
  to { opacity: 1; transform: translateX(0); }
}

.section-cue {
  position: fixed;
  top: 1.1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  text-align: center;
  padding: 0.7rem 1.15rem;
  border-radius: 12px;
  background: rgba(9, 19, 36, 0.92);
  border: 1px solid rgba(33, 183, 203, 0.4);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  animation: cue-in 2.2s ease forwards;
  pointer-events: none;
}

.section-cue__kicker {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #21b7cb;
}

.section-cue__title {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: #f1a01f;
}

@keyframes cue-in {
  0% { opacity: 0; transform: translate(-50%, -8px); }
  12% { opacity: 1; transform: translate(-50%, 0); }
  78% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, -6px); }
}

.affirmation-burst {
  position: relative;
  width: 88px;
  height: 88px;
  margin: 0 auto 0.6rem;
}

.affirmation-burst .affirmation-emoji {
  position: relative;
  z-index: 1;
  margin: 0;
  line-height: 88px;
}

.spark {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f1a01f;
  top: 50%;
  left: 50%;
  animation: spark-orbit 1.1s ease-out both;
}

.spark--1 { box-shadow: 0 0 10px #f1a01f; }
.spark--2 { background: #21b7cb; box-shadow: 0 0 10px #21b7cb; animation-delay: 0.08s; }
.spark--3 { background: #b994d6; box-shadow: 0 0 10px #b994d6; animation-delay: 0.16s; }

@keyframes spark-orbit {
  0% { transform: translate(-50%, -50%) scale(0.4); opacity: 1; }
  100% { transform: translate(-50%, -50%) translate(var(--dx, 28px), var(--dy, -24px)) scale(0.2); opacity: 0; }
}

.spark--1 { --dx: 32px; --dy: -26px; }
.spark--2 { --dx: -30px; --dy: -18px; }
.spark--3 { --dx: 4px; --dy: 30px; }

.overall-progress__pct--tick {
  animation: pct-pop 0.35s ease;
}

@keyframes pct-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.12); color: #f1a01f; }
  100% { transform: scale(1); }
}

@keyframes start-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(33, 183, 203, 0.35); }
  50% { box-shadow: 0 0 0 10px rgba(33, 183, 203, 0); }
}

@keyframes tab-arrive {
  from { transform: translateY(4px); }
  to { transform: translateY(0); }
}

/* ── Responsive ── */

@media (max-width: 760px) {
  .section-list {
    grid-template-columns: 1fr;
  }

  .intro-feature-grid,
  .intro-guide-strip,
  .intro-start-panel {
    grid-template-columns: 1fr;
  }

  .intro-hero {
    min-height: 0;
  }

  .intro-hero__title {
    white-space: normal;
  }

  .education-content,
  .education-card,
  .education-actions {
    grid-template-columns: 1fr;
  }

  .education-actions__buttons {
    width: 100%;
  }

  .education-actions__buttons .btn,
  .education-actions__buttons .btn-ghost {
    flex: 1;
  }
}

@media (max-width: 420px) {
  .intro-hero {
    min-height: auto;
    padding: 0.9rem 0;
    border-radius: 0;
  }
  .intro-hero__title {
    font-size: 1.7rem;
    white-space: normal;
  }
  .intro-feature-grid,
  .intro-guide-strip,
  .intro-start-panel {
    grid-template-columns: 1fr;
  }
  .intro-guide-strip,
  .intro-start-panel { padding-left: 0; padding-right: 0; }
  .minimap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
  }
  .minimap__tile-name { font-size: 0.58rem; }
  .survey-brand { font-size: 1.28rem; }
}

@media (min-width: 480px) {
  .survey-main { padding: 1.85rem 1.25rem 2.6rem; }
  .survey-brand { font-size: 1.75rem; }
  .survey-brand-line { margin-bottom: 1.85rem; }
  .hud { margin-bottom: 2.25rem; padding: 1.2rem 1.3rem 1.25rem; }
  .hud__pct { font-size: 2.45rem; }
  .card { padding: 1.85rem 1.75rem 1.65rem; }
  .question-text { font-size: 1.42rem; }
  .survey-shell .question-text { font-size: 1.55rem; }
  .choice-tile { min-height: 7rem; }
}

@media (min-width: 640px) {
  .section-nav--tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow: visible;
    gap: 0.5rem;
  }
  .section-tab { min-width: 0; }
  .center-msg h1 { font-size: 1.75rem; }
}

@media (min-width: 768px) {
  .card { padding: 2.1rem 2rem 1.85rem; }
  .question-text { font-size: 1.55rem; }
  .survey-shell .question-text { font-size: 1.65rem; }
  .survey-brand { font-size: 1.9rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .section-card--startable:hover { transform: none; }
  .choice-tile:hover:not(:disabled) { transform: none; }
  .option-btn:hover:not(:disabled) { transform: none; }
}

/* Preview login gate */
.preview-login-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(33, 183, 203, 0.18), transparent 42%),
    linear-gradient(160deg, var(--brand-deep) 0%, var(--brand-deep-mid) 55%, var(--brand-navy) 100%);
}

.preview-login-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
}

.preview-login-card {
  width: 100%;
  max-width: 420px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 2rem 1.75rem 1.75rem;
}

.preview-login-eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-deep);
}

.preview-login-title {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  line-height: 1.2;
  color: var(--ink);
}

.preview-login-lead {
  margin: 0 0 1.5rem;
  color: var(--ink-muted);
  line-height: 1.55;
  font-size: 0.95rem;
}

.preview-login-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.preview-login-field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.preview-login-field input {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  background: #fff;
}

.preview-login-error {
  margin: 0;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  background: var(--rust-soft);
  color: var(--rust);
  font-size: 0.85rem;
}

.preview-login-submit {
  width: 100%;
  margin-top: 0.25rem;
}
