@import url('https://fonts.googleapis.com/css2?family=Lexend+Mega:wght@400;600&family=DM+Sans:wght@400;500&family=Lexend+Deca:wght@300;400;500&display=swap');

:root {
  --sage: #9E9E7D;
  --tan: #AA9476;
  --sand: #D7C7A9;
  --accent: #41412E;
  --ink: #1B1B1A;
  --cream: #F0E8D9;

  --font-headline: 'Lexend Mega', sans-serif;
  --font-subtitle: 'DM Sans', sans-serif;
  --font-body: 'Lexend Deca', sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  min-height: 100vh;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.app {
  width: 100%;
  max-width: 720px;
  padding: 32px 20px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.brand-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}

.brand-header img.brand-mark {
  width: 34px;
  height: 34px;
}

.brand-header img.wordmark {
  height: 20px;
  width: auto;
}

.tagline {
  font-family: var(--font-subtitle);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--tan);
  margin: 0 0 36px;
  text-transform: uppercase;
}

.card {
  background: #F0E8D9;
  border: 1px solid var(--sand);
  border-radius: 18px;
  padding: 40px 36px;
  width: 100%;
  text-align: center;
  box-shadow: 0 10px 30px rgba(27, 27, 26, 0.06);
}
/* Plain links inside cards: brand forest instead of the browser blue and purple */
.card a:not(.btn) { color: var(--accent); }

h1 {
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.4;
  margin: 0 0 14px;
  color: var(--ink);
}

h2 {
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.02em;
  color: var(--accent);
  margin: 0 0 20px;
  text-transform: uppercase;
}

p {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.6;
  color: var(--accent);
}

.btn {
  font-family: var(--font-subtitle);
  font-weight: 500;
  font-size: 15px;
  color: #1B1B1A;
  background: var(--sage);
  border: none;
  border-radius: 999px;
  padding: 14px 36px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

.btn:hover { background: var(--accent); color: #F0E8D9; }
.btn:active { transform: scale(0.98); }
.btn:disabled { background: var(--sand); cursor: not-allowed; }

.btn-secondary {
  background: transparent;
  color: var(--sage);
  border: 1px solid var(--sage);
}
.btn-secondary:hover { background: var(--sage); color: var(--cream); }

.progress {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
}
.progress-step {
  width: 32px;
  height: 4px;
  border-radius: 2px;
  background: var(--sand);
}
.progress-step.done { background: var(--sage); }
.progress-step.active { background: var(--accent); }

.rt-stage {
  height: 220px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  border: 1px solid var(--sand);
  font-family: var(--font-subtitle);
  font-size: 17px;
  color: var(--accent);
  cursor: pointer;
  user-select: none;
  margin-bottom: 18px;
  transition: background 0.08s ease;
}
.rt-stage.go { background: #41412E; color: var(--cream); font-size: 20px; }
.rt-stage.too-soon { background: #AA9476; color: #1B1B1A; }

.digit-display {
  font-family: var(--font-headline);
  font-size: 48px;
  letter-spacing: 0.15em;
  color: var(--accent);
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.digit-input {
  font-family: var(--font-headline);
  font-size: 24px;
  letter-spacing: 0.2em;
  text-align: center;
  width: 100%;
  padding: 14px;
  border: 1px solid var(--sand);
  border-radius: 10px;
  background: var(--cream);
  color: var(--ink);
  margin-bottom: 18px;
}
.digit-input:focus { outline: 2px solid var(--sage); }

.stroop-word {
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: 40px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  /* Toned sand backdrop (not plain cream): pure yellow ink has much lower
     luminance contrast than red/green/blue against a light background, which
     would make it harder to read regardless of the Stroop effect itself.
     A slightly toned panel keeps legibility roughly even across all 4 hues. */
  background: rgba(215, 199, 169, 0.45);
  border-radius: 12px;
}

.stroop-choices {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 8px;
}

.color-btn {
  font-family: var(--font-subtitle);
  font-weight: 500;
  font-size: 14px;
  padding: 16px;
  border-radius: 10px;
  border: 1px solid var(--sand);
  cursor: pointer;
  color: var(--cream);
}

.question-block {
  text-align: left;
  margin-bottom: 24px;
}

.question-label {
  font-family: var(--font-subtitle);
  font-weight: 500;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 10px;
}

.likert-options {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.likert-option {
  font-family: var(--font-subtitle);
  font-size: 11px;
  text-align: center;
  padding: 10px 4px;
  border-radius: 8px;
  border: 1px solid var(--sand);
  background: var(--cream);
  color: var(--accent);
  cursor: pointer;
  line-height: 1.3;
}
.likert-option.selected {
  background: var(--sage);
  color: var(--cream);
  border-color: var(--sage);
}

.toggle-options {
  display: flex;
  gap: 10px;
}

.toggle-option {
  font-family: var(--font-subtitle);
  font-weight: 500;
  font-size: 13px;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid var(--sand);
  background: var(--cream);
  color: var(--accent);
  cursor: pointer;
}
.toggle-option.selected {
  background: var(--sage);
  color: var(--cream);
  border-color: var(--sage);
}

.trial-counter {
  font-family: var(--font-subtitle);
  font-size: 12px;
  color: var(--tan);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.brain-score-value {
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: 56px;
  color: var(--accent);
  margin: 20px 0 4px;
}
.brain-score-value span {
  font-family: var(--font-subtitle);
  font-size: 16px;
  font-weight: 500;
  color: var(--tan);
}

.brain-age-line {
  font-family: var(--font-subtitle);
  font-size: 15px;
  color: var(--accent);
  margin-bottom: 8px;
}

.referral-note {
  font-family: var(--font-subtitle);
  font-size: 13px;
  color: #41412E;
  background: rgba(170, 148, 118, 0.2);
  border: 1px solid #AA9476;
  border-radius: 10px;
  padding: 12px 16px;
  margin: 12px 0;
  text-align: left;
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 28px;
  text-align: left;
}
.results-table th, .results-table td {
  padding: 10px 6px;
  border-bottom: 1px solid var(--sand);
  font-family: var(--font-subtitle);
  font-size: 14px;
}
.results-table th {
  color: var(--tan);
  font-weight: 500;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.05em;
}

.disclaimer {
  font-size: 12px;
  color: var(--tan);
  line-height: 1.5;
  margin-top: 24px;
}

.actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 8px;
  flex-wrap: wrap;
}

.hidden { display: none !important; }

/* ---------- Results: score explanation ---------- */
.band-pill {
  display: inline-block;
  font-family: var(--font-subtitle);
  font-weight: 500;
  font-size: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--sand);
  color: var(--accent);
  margin-bottom: 14px;
}
.band-pill.high { background: rgba(158, 158, 125, 0.35); color: #41412E; box-shadow: inset 0 0 0 1px #9E9E7D; }
.band-pill.low { background: rgba(170, 148, 118, 0.2); color: #41412E; box-shadow: inset 0 0 0 1px #AA9476; }
.band-pill.small { font-size: 12px; padding: 4px 10px; margin: 8px 0 0; }

.score-explainer {
  font-family: var(--font-subtitle);
  font-size: 15px;
  line-height: 1.5;
  max-width: 460px;
  margin: 0 auto 16px;
}

.scale { max-width: 460px; margin: 0 auto 18px; }
.scale-track {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: var(--sand);
  opacity: 0.9;
}
.scale-typical {
  position: absolute;
  left: 40%;
  width: 20%;
  top: 0;
  bottom: 0;
  background: var(--sage);
  opacity: 0.45;
}
.scale-marker {
  position: absolute;
  top: 50%;
  width: 18px;
  height: 18px;
  margin-left: -9px;
  margin-top: -9px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid #F0E8D9;
  box-shadow: 0 1px 4px rgba(27, 27, 26, 0.25);
}
.scale-labels {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-subtitle);
  font-size: 11px;
  color: var(--tan);
  margin-top: 6px;
}

.results-heading {
  font-family: var(--font-subtitle);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tan);
  text-align: left;
  margin: 36px 0 6px;
  padding-top: 20px;
  border-top: 1px solid var(--sand);
}
.results-sub {
  font-family: var(--font-subtitle);
  font-size: 14px;
  text-align: left;
  margin: 0 0 12px;
}

.domain-row { text-align: left; padding: 14px 0; }
.domain-row + .domain-row { border-top: 1px dashed var(--sand); }
.domain-head { display: flex; justify-content: space-between; align-items: baseline; }
.domain-name { font-family: var(--font-subtitle); font-weight: 500; font-size: 16px; }
.domain-score { font-family: var(--font-headline); font-weight: 600; font-size: 20px; color: var(--accent); }
.domain-what { font-family: var(--font-subtitle); font-size: 13px; color: rgba(65, 65, 46, 0.82); margin: 4px 0 10px; line-height: 1.45; }
.domain-what em { color: var(--tan); font-style: normal; }
.domain-row .scale { max-width: none; margin: 0; }

.habit-list { list-style: none; padding: 0; margin: 0; text-align: left; }
.habit-list li {
  font-family: var(--font-subtitle);
  font-size: 14px;
  line-height: 1.45;
  padding: 10px 12px 10px 36px;
  margin-bottom: 8px;
  border-radius: 10px;
  position: relative;
}
.habit-list li::before { position: absolute; left: 12px; top: 10px; font-weight: 600; }
.habit-list li.good { background: rgba(158, 158, 125, 0.2); }
.habit-list li.good::before { content: '\2713'; color: #41412E; }
.habit-list li.tip { background: rgba(170, 148, 118, 0.2); }
.habit-list li.tip::before { content: '\2192'; color: #41412E; }

.results-table .hint { font-size: 11px; color: var(--tan); margin-top: 2px; }

.cta {
  background: rgba(215, 199, 169, 0.3);
  border: 1px solid var(--sand);
  border-radius: 14px;
  padding: 20px;
  margin: 28px 0 8px;
  font-family: var(--font-subtitle);
  font-size: 14px;
  line-height: 1.5;
}
.cta p { margin: 0 0 14px; }
.cta .btn { display: inline-block; text-decoration: none; }

@media (max-width: 520px) {
  .results-table th:nth-child(3), .results-table td:nth-child(3) { font-size: 12px; }
}

/* Email capture, consent and the "being calibrated" results card */
.text-input {
  font-family: var(--font-body, inherit);
  font-size: 18px;
  width: 100%;
  padding: 14px;
  border: 1px solid var(--sand);
  border-radius: 10px;
  background: var(--cream);
  color: var(--ink);
  margin-bottom: 8px;
}
.text-input:focus { outline: 2px solid var(--sage); }
/* Bot trap. display:none so browser and password manager autofill never fill it (an off screen field got filled on a real
   person's laptop on 2026-11-12, and the server then quietly dropped his sitting as spam). Simple bots still fill it. */
.trap { display: none !important; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; margin: 12px 0; cursor: pointer; }
.consent input { margin-top: 3px; width: 18px; height: 18px; flex: none; }
.calibrating { background: var(--cream); border: 1px solid var(--sand); border-radius: 12px; padding: 18px; margin: 14px 0 22px; }
.calibrating h2 { margin-top: 0; }

/* ---------- Task: digit symbol matching ---------- */
.dsst { display: flex; flex-direction: column; align-items: center; gap: 14px; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.dsst-status { width: 100%; display: flex; flex-direction: column; gap: 6px; }
.dsst-label { font-family: var(--font-subtitle); font-size: 13px; color: var(--tan); text-align: center; }
.dsst-timer { height: 6px; border-radius: 999px; background: var(--sand); overflow: hidden; }
.dsst-timer-fill { height: 100%; width: 100%; background: var(--sage); }
.dsst-key {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  width: 100%;
  border: 1px solid var(--sand);
  border-radius: 10px;
  overflow: hidden;
}
.dsst-key-cell { display: flex; flex-direction: column; align-items: center; color: var(--ink); }
.dsst-key-cell + .dsst-key-cell { border-left: 1px solid var(--sand); }
.dsst-key-sym { padding: 6px 0 4px; }
.dsst-key-digit {
  width: 100%;
  text-align: center;
  font-family: var(--font-subtitle);
  font-weight: 500;
  font-size: 16px;
  padding: 3px 0;
  background: rgba(215, 199, 169, 0.3);
  border-top: 1px solid var(--sand);
}
.dsst-probe { height: 96px; display: flex; align-items: center; justify-content: center; color: var(--accent); }
.dsst-feedback { min-height: 22px; font-family: var(--font-subtitle); font-size: 14px; text-align: center; line-height: 1.5; }
.dsst-feedback .btn { margin-top: 12px; }
.dsst-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; max-width: 320px; }
.dsst-btn {
  font-family: var(--font-subtitle);
  font-weight: 500;
  font-size: 24px;
  height: 58px;
  border-radius: 12px;
  border: 1px solid var(--sand);
  background: #F0E8D9;
  color: var(--ink);
  cursor: pointer;
}
.dsst-btn:active { background: var(--sand); }
.dsst-btn:disabled { opacity: 0.4; }

/* Digit symbol: picture walkthrough */
.dsst-howto { display: flex; flex-direction: column; gap: 16px; text-align: left; }
.dsst-howto h2 { text-align: center; margin: 0; }
.howto-steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.howto-steps li {
  counter-increment: step;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--sand);
  border-radius: 12px;
  background: rgba(215, 199, 169, 0.2);
}
.howto-text { font-family: var(--font-subtitle); font-size: 15px; line-height: 1.45; align-self: stretch; }
.howto-text::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--cream);
  font-size: 12px;
  font-weight: 600;
}
.dsst-key.demo { grid-template-columns: repeat(4, 52px) 32px; width: auto; background: #F0E8D9; }
.dsst-key-more { display: flex; align-items: center; justify-content: center; color: var(--tan); border-left: 1px solid var(--sand); }
.dsst-key-cell.is-target { background: rgba(158, 158, 125, 0.25); box-shadow: inset 0 0 0 2px var(--sage); }
.dsst-key-cell.is-target .dsst-key-digit { background: rgba(158, 158, 125, 0.4); font-weight: 600; }
.dsst-probe.demo { height: auto; padding: 8px 18px; border-radius: 12px; background: #F0E8D9; }
.dsst-probe.demo.is-target { box-shadow: 0 0 0 2px var(--sage); }
.dsst-pad.demo { grid-template-columns: repeat(3, 56px); max-width: none; width: auto; }
.dsst-btn.demo { display: flex; align-items: center; justify-content: center; height: 48px; font-size: 20px; cursor: default; }
.dsst-btn.demo.is-target { background: var(--sage); color: #1B1B1A; border-color: var(--sage); box-shadow: 0 2px 6px rgba(65, 65, 46, 0.25); }
.howto-note { font-family: var(--font-subtitle); font-size: 14px; line-height: 1.5; color: rgba(65, 65, 46, 0.82); margin: 0; }

/* ---------- Task: four-choice reaction time ---------- */
.crt { display: flex; flex-direction: column; align-items: center; gap: 18px; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.crt-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; width: 100%; }
.crt-row.live { max-width: 420px; margin: 24px 0 8px; }
.crt-row.demo { max-width: 260px; gap: 8px; }
.crt-box {
  position: relative;
  aspect-ratio: 1 / 1.4;
  max-width: 100%;
  border-radius: 12px;
  border: 2px solid var(--sand);
  background: #F0E8D9;
}
.crt-row.live .crt-box { cursor: pointer; }
.crt-box.lit { background: var(--accent); border-color: var(--accent); }
.crt-box.tapped { box-shadow: 0 0 0 4px var(--sage); }
.crt-box.wrong { border-color: #41412E; box-shadow: 0 0 0 3px #AA9476; }
.crt-keyhint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  text-align: center;
  font-family: var(--font-subtitle);
  font-size: 12px;
  color: var(--tan);
}
.crt-box.lit .crt-keyhint { color: var(--cream); }
/* Key letters only matter with a keyboard */
@media (pointer: coarse) { .crt-row.live .crt-keyhint { display: none; } }

/* Playtest page menu */
.pt-menu { display: flex; flex-direction: column; gap: 12px; align-items: stretch; max-width: 360px; margin: 8px auto 0; }
.pt-menu .btn span { display: block; font-size: 12px; opacity: 0.8; margin-top: 2px; }

/* Phones: 2 x 2 grid of large boxes (124 px at 375 px wide instead of about 80 px),
   so fast thumb taps don't land on the neighbouring box. Precautionary, not yet
   playtested on a phone. Computers keep the row of 4 with the D F J K keys. */
@media (pointer: coarse) {
  .crt-row.live { grid-template-columns: repeat(2, 1fr); gap: 14px; max-width: 340px; margin: 12px 0 4px; }
  .crt-row.live .crt-box { aspect-ratio: 1 / 1; }
  .crt-row.demo { grid-template-columns: repeat(2, 1fr); max-width: 160px; }
  .crt-row.demo .crt-box { aspect-ratio: 1 / 1; }
  .crt-row.demo .crt-keyhint { display: none; }
}

/* Reaction time on computers: keys only */
.crt-keys { display: grid; grid-template-columns: repeat(4, 64px); gap: 8px; justify-content: center; }
.crt-keycap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 4px 8px;
  border-radius: 10px;
  border: 1px solid var(--sand);
  border-bottom-width: 4px;
  background: #F0E8D9;
}
.crt-keycap-letter { font-family: var(--font-subtitle); font-weight: 600; font-size: 20px; color: var(--ink); }
.crt-keycap-finger { font-family: var(--font-subtitle); font-size: 10px; line-height: 1.2; text-align: center; color: var(--tan); }
.crt-keycap.lit { background: var(--sage); border-color: var(--accent); }
.crt-keycap.lit .crt-keycap-letter, .crt-keycap.lit .crt-keycap-finger { color: #1B1B1A; }
.crt.mode-keys .crt-row.live .crt-box { cursor: default; }
.crt.mode-keys .crt-keyhint { font-size: 15px; font-weight: 600; bottom: 10px; }
.crt-window-gate { text-align: center; display: flex; flex-direction: column; gap: 8px; }

/* ---------- Task: spatial span (4 x 4 grid) ---------- */
.ss { display: flex; flex-direction: column; align-items: center; gap: 12px; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.ss-prompt { min-height: 26px; font-family: var(--font-subtitle); font-weight: 500; font-size: 18px; color: var(--accent); }
.ss-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; width: 100%; }
.ss-grid.live { max-width: 340px; }
.ss-grid.demo { max-width: 150px; gap: 5px; }
.ss-cell {
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  border: 2px solid var(--sand);
  background: #F0E8D9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-subtitle);
  font-weight: 600;
  color: #F0E8D9;
}
.ss-grid.demo .ss-cell { border-radius: 5px; border-width: 1px; font-size: 12px; }
.ss-grid.live .ss-cell { cursor: pointer; }
.ss-cell.lit { background: var(--accent); border-color: var(--accent); }
.ss-cell.tapped { background: var(--sage); border-color: var(--sage); }

/* ---------- Task: timed Stroop ---------- */
.st { display: flex; flex-direction: column; align-items: center; gap: 14px; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.st-stage { height: 110px; display: flex; align-items: center; justify-content: center; }
.st-word { font-family: var(--font-subtitle); font-weight: 700; font-size: 52px; letter-spacing: 0.04em; line-height: 1; }
.st-word.demo { font-size: 34px; padding: 10px 20px; background: #F0E8D9; border-radius: 12px; }
/* Spanish: AMARILLO is 8 letters, so every Spanish color word gets the same smaller size on narrow phones (one size for all four words). */
html[lang="es"] .st-word { font-size: min(52px, 11vw); }
html[lang="es"] .st-word.demo { font-size: min(34px, 9vw); }
.st-pad { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; width: 100%; max-width: 440px; }
.st-pad.demo { max-width: 300px; gap: 6px; }
.st-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 84px;
  border-radius: 12px;
  border: 1px solid var(--sand);
  background: #F0E8D9;
  font-family: var(--font-subtitle);
  color: var(--ink);
}
.st-pad.demo .st-btn { height: 62px; gap: 4px; }
.st-swatch { width: 26px; height: 26px; border-radius: 50%; }
.st-pad.demo .st-swatch { width: 18px; height: 18px; }
.st-btn-name { font-size: 14px; text-transform: capitalize; }
.st-pad.demo .st-btn-name { font-size: 12px; }
.st-btn-key { font-size: 12px; font-weight: 600; color: var(--tan); }
.st-btn.is-target { box-shadow: 0 0 0 3px var(--sage); }
.st.mode-touch .st-pad.live .st-btn { cursor: pointer; }
.st.mode-touch .st-pad.live .st-btn:active { background: var(--sand); }
/* Phones and tablets: 2 x 2 grid of big buttons, as in task 2. */
@media (pointer: coarse) {
  .st-pad.live { grid-template-columns: repeat(2, 1fr); gap: 12px; max-width: 340px; }
  .st-pad.live .st-btn { height: 96px; }
}
.st-check { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.st-check-ask { font-family: var(--font-subtitle); font-size: 20px; margin: 0; }
.st-check-row { display: grid; grid-template-columns: repeat(4, 64px); gap: 14px; justify-content: center; }
.st-check-swatch { width: 64px; height: 64px; border-radius: 50%; border: 2px solid #F0E8D9; box-shadow: 0 0 0 1px var(--sand); cursor: pointer; padding: 0; }
@media (pointer: coarse) { .st-check-row { grid-template-columns: repeat(2, 84px); gap: 20px; } .st-check-swatch { width: 84px; height: 84px; } }

/* ---------- Task: digital trails B ---------- */
.tr { display: flex; flex-direction: column; align-items: center; gap: 10px; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.tr-slot { width: 100%; display: flex; justify-content: center; }
.tr-board { position: relative; width: 100%; max-width: 460px; aspect-ratio: 1 / 1; background: #F0E8D9; border: 1px solid var(--sand); border-radius: 12px; touch-action: none; }
.tr-board.demo { max-width: 180px; background: #F0E8D9; }
.tr-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.tr-lines line { stroke: var(--sage); stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-width: 3px; }
.tr-node {
  position: absolute;
  width: max(11%, 28px);
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: #F0E8D9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-subtitle);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  pointer-events: none;
}
.tr-board.demo .tr-node { width: 15%; font-size: 11px; border-width: 1.5px; }
.tr-board.live { cursor: pointer; }
.tr-node.done { background: rgba(158, 158, 125, 0.3); border-color: var(--sage); }
.tr-node.current { background: var(--sage); color: #1B1B1A; }
.tr-node.wrong { animation: tr-wrong 0.45s; }
@keyframes tr-wrong { 0%, 60% { background: #AA9476; border-color: #AA9476; color: #1B1B1A; } }

/* Questionnaires */
.qn h2 { margin-top: 0; }
.qn-intro { font-family: var(--font-subtitle); font-size: 15px; line-height: 1.5; margin: 0 0 18px; }
.qn-q { border: 0; border-top: 1px solid var(--sand); margin: 0; padding: 16px 0; }
.qn { text-align: left; }
.qn h2 { text-align: center; }
.qn-q legend { float: left; width: 100%; padding: 0; margin-bottom: 10px; font-size: 15px; line-height: 1.4; font-weight: 500; }
.qn-answers { clear: both; display: flex; flex-direction: column; gap: 6px; }
.qn-answer { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--sand); border-radius: 8px; font-family: var(--font-subtitle); font-size: 15px; cursor: pointer; }
.qn-answer input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.qn-answer:has(input:checked) { background: rgba(158, 158, 125, 0.25); border-color: var(--sage); }
.qn-intro strong { display: block; margin-top: 10px; font-weight: 600; }
.qn-footnote { font-family: var(--font-subtitle); font-size: 12px; color: rgba(65, 65, 46, 0.82); margin: 12px 0 0; }

/* Results */
.result-card { background: var(--cream); border: 1px solid var(--sand); border-radius: 12px; padding: 18px; margin: 14px 0; text-align: left; }
.result-card p { margin: 0 0 10px; font-family: var(--font-subtitle); font-size: 15px; line-height: 1.5; }
.result-card p:last-child { margin-bottom: 0; }
.result-kicker { font-size: 13px !important; letter-spacing: 0.04em; text-transform: uppercase; color: var(--tan); }
.result-big { font-family: var(--font-headline) !important; font-size: 30px !important; line-height: 1.2 !important; color: var(--accent); }
.result-of { font-family: var(--font-subtitle); font-size: 15px; letter-spacing: 0; }
.result-label { font-weight: 600; font-size: 17px !important; color: var(--accent); }
.score-bar { position: relative; height: 12px; margin: 14px 0 4px; background: var(--sand); border-radius: 6px; }
.score-range { position: absolute; top: 0; bottom: 0; background: var(--sage); border-radius: 6px; }
.score-mid { position: absolute; left: 50%; top: -3px; bottom: -3px; width: 2px; background: var(--ink); }
.score-marker { position: absolute; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; background: var(--accent); border: 2px solid #F0E8D9; border-radius: 50%; }
.score-mid-label { text-align: center; font-size: 12px !important; color: rgba(65, 65, 46, 0.82); }
.area { padding: 12px 0; border-top: 1px solid var(--sand); text-align: left; }
.area-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.area-name { font-weight: 500; font-size: 15px; }
.area-level { font-family: var(--font-subtitle); font-size: 14px; font-weight: 600; color: var(--accent); text-align: right; }
.area-line { margin: 6px 0 0; font-family: var(--font-subtitle); font-size: 14px; line-height: 1.5; color: rgba(65, 65, 46, 0.82); }
.area-why { margin: 8px 0 0; font-family: var(--font-subtitle); font-size: 13.5px; line-height: 1.55; color: rgba(65, 65, 46, 0.82); }
.area-why strong { font-weight: 600; color: var(--ink); }
.area-summary { margin: 12px 0; padding-top: 12px; border-top: 1px solid var(--sand); font-weight: 500; font-size: 15px; text-align: left; }

.prep-list { margin: 0 0 18px; padding: 0 0 0 20px; text-align: left; font-family: var(--font-subtitle); font-size: 15px; line-height: 1.5; }
.prep-list li { margin-bottom: 8px; }

/* How it works */
.paper { text-align: left; }
.paper h1 { text-align: center; }
.paper h2 { margin: 28px 0 10px; font-size: 18px; text-align: left; }
.paper h3 { margin: 0 0 4px; font-size: 15px; font-weight: 500; }
.paper p, .paper li { font-family: var(--font-subtitle); font-size: 15px; line-height: 1.6; text-align: left; }
.paper p { margin: 0 0 12px; }
.paper ol, .paper ul { margin: 0 0 12px; padding-left: 20px; }
.paper li { margin-bottom: 6px; }
.paper a { color: var(--accent); }
.paper .btn { color: var(--cream); }
.paper-meta { color: rgba(65, 65, 46, 0.82); font-size: 14px !important; text-align: center !important; }
.paper-summary { background: var(--cream); border: 1px solid var(--sand); border-radius: 12px; padding: 4px 18px 8px; }
.paper-summary h2 { margin-top: 14px; }
.paper-task { padding: 12px 0; border-top: 1px solid var(--sand); }
.paper-task p { margin: 0; }
.paper-bands { margin: 0 0 12px; padding: 12px 14px 2px; border-left: 3px solid var(--sage); }
.paper-refs li, .paper-refs a { font-size: 13px; line-height: 1.5; }
.paper strong { font-weight: 600; }

/* Pay offer (after the free first sitting), the gate on later sittings, and the steps list */
.pay-card { background: rgba(215, 199, 169, 0.3); border: 1px solid var(--sand); border-radius: 14px; padding: 20px; margin: 16px 0; text-align: left; }
.pay-card p { margin: 0 0 10px; font-family: var(--font-subtitle); font-size: 15px; line-height: 1.5; }
.pay-card .actions { margin: 14px 0 6px; justify-content: flex-start; }
.pay-title { font-family: var(--font-headline) !important; font-size: 19px !important; line-height: 1.3 !important; color: var(--accent); font-weight: 600; margin-bottom: 8px !important; }

/* The unlock panel: a dark forest card with a cream buy box, so the payment step looks like part of the brand */
.pay-card.unlock { background: var(--accent); color: var(--cream); border: 0; border-radius: 22px; padding: 28px 24px; position: relative; overflow: hidden; box-shadow: 0 22px 44px -26px rgba(27, 27, 26, 0.6); }
.pay-card.unlock::before { content: ''; position: absolute; right: -70px; top: -70px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(158, 158, 125, 0.38), rgba(158, 158, 125, 0) 70%); pointer-events: none; }
.pay-card.unlock > * { position: relative; }
.pay-card.unlock p { color: rgba(240, 232, 217, 0.88); }
.pay-card.unlock .pay-title { color: var(--cream); font-size: 23px !important; margin-bottom: 10px !important; }
.pay-card.unlock .unlock-kicker { font-size: 12px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--sage); font-weight: 700; margin: 0 0 8px; }
.pay-card.unlock .unlock-lede { font-size: 15px; line-height: 1.55; }
.pay-card.unlock .step::before { background: rgba(240, 232, 217, 0.22); }
.pay-card.unlock .step-dot { background: transparent; border-color: rgba(240, 232, 217, 0.4); color: var(--cream); }
.pay-card.unlock .step.done .step-dot { background: var(--sage); border-color: var(--sage); color: var(--accent); }
.pay-card.unlock .step.open .step-dot { border-color: var(--cream); color: var(--cream); box-shadow: 0 0 0 4px rgba(240, 232, 217, 0.16); }
.pay-card.unlock .step-title { color: var(--cream); }
.pay-card.unlock .step.locked .step-title, .pay-card.unlock .step.offer .step-title { color: var(--cream); }
.pay-card.unlock .step-when { color: var(--sand); }
.pay-card.unlock .step-what { color: rgba(240, 232, 217, 0.74); }
.unlock-buy { background: var(--cream); color: var(--ink); border-radius: 16px; padding: 22px 20px 18px; margin-top: 18px; }
.pay-card.unlock .unlock-buy p { color: rgba(65, 65, 46, 0.82); }
.unlock-price { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.unlock-amt { font-family: var(--font-headline); font-weight: 600; font-size: 44px; line-height: 1; color: var(--accent); letter-spacing: -1px; }
.unlock-once { font-family: var(--font-subtitle); font-size: 13px; line-height: 1.35; color: rgba(65, 65, 46, 0.82); font-weight: 600; }
.unlock-incl { list-style: none; margin: 0 0 16px; padding: 0; }
.unlock-incl li { position: relative; padding: 7px 0 7px 28px; font-family: var(--font-subtitle); font-size: 15px; line-height: 1.4; color: var(--ink); border-top: 1px solid rgba(65, 65, 46, 0.12); }
.unlock-incl li:first-child { border-top: 0; }
.unlock-incl li::before { content: '\2713'; position: absolute; left: 0; top: 7px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: var(--cream); font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.unlock-buy .unlock-btn { display: block; width: 100%; text-align: center; padding: 15px 20px; }
.unlock-buy .unlock-btn { background: var(--accent); color: var(--cream); box-shadow: 0 10px 22px -12px rgba(27, 27, 26, 0.7); }
.unlock-buy .unlock-btn:hover { background: #1B1B1A; }
.unlock-buy .unlock-btn:disabled { opacity: 0.6; cursor: default; }
.pay-card.unlock .unlock-buy .unlock-trust { font-size: 13px; line-height: 1.45; margin: 12px 0 0; text-align: center; color: rgba(65, 65, 46, 0.82); }
.pay-card.unlock .unlock-status { color: var(--sand); }
.pay-card.unlock .results-sub { color: var(--sand); }
.pay-card.unlock a { color: var(--cream); }
.pay-card.unlock .actions .btn { background: var(--cream); color: var(--accent); }
/* After paying: three short steps (what to do next) and two quiet actions. */
.next-steps { list-style: none; counter-reset: ns; margin: 14px 0 6px; padding: 0; }
.next-steps li { counter-increment: ns; position: relative; padding: 4px 0 16px 44px; font-family: var(--font-subtitle); font-size: 15px; line-height: 1.5; color: rgba(240, 232, 217, 0.88); overflow-wrap: anywhere; }
.next-steps li:last-child { padding-bottom: 6px; }
.next-steps li::before { content: counter(ns); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--cream); color: var(--accent); font-family: var(--font-subtitle); font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.next-steps li b { color: var(--cream); }
.next-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; margin-top: 10px; padding-top: 12px; border-top: 1px solid rgba(240, 232, 217, 0.18); }
.pay-card.unlock .next-quiet, .next-quiet { background: none; border: 0; padding: 8px 0; min-height: 40px; font-family: var(--font-subtitle); font-size: 14px; line-height: 1.35; color: var(--sand); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; text-align: left; }
.pay-card.unlock .next-quiet:hover { color: var(--cream); }
.next-quiet:disabled { opacity: 0.6; cursor: default; }
.pay-card.unlock .next-status { font-size: 14px; color: var(--cream); margin: 4px 0 0; min-height: 1px; }
@media (max-width: 480px) { .pay-card.unlock { padding: 22px 16px; } .pay-card.unlock .pay-title { font-size: 19px !important; } .unlock-amt { font-size: 38px; } }

/* Range bars under the steps (the result gets sharper with each sitting) and the brain mission tiles */
/* A shaded band around a centre dot: the range your result could land in. Not a progress bar. */
.rng { position: relative; height: 14px; margin: 10px 0 4px; border-radius: 7px; border: 1px dashed rgba(65, 65, 46, 0.25); }
.rng i { position: absolute; top: 2px; bottom: 2px; border-radius: 5px; background: rgba(158, 158, 125, 0.55); }
.rng::after { content: ''; position: absolute; left: calc(50% - 4px); top: 3px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.rng-key { font-family: var(--font-subtitle); font-size: 13px !important; line-height: 1.45; margin: 12px 0 0 !important; }

.pay-card.unlock .rng { border-color: rgba(240, 232, 217, 0.3); }
.pay-card.unlock .rng i { background: rgba(215, 199, 169, 0.5); }
.pay-card.unlock .rng::after { background: var(--cream); }
.pay-card.unlock .rng-key { color: var(--sand) !important; }
.mission { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin: 16px 0 6px; text-align: left; }
.mi { display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 12px; row-gap: 2px; align-items: start; background: rgba(215, 199, 169, 0.3); border: 1px solid var(--sand); border-radius: 14px; padding: 14px 16px; }
.mi-dot { grid-row: 1 / span 2; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-subtitle); font-weight: 700; font-size: 13px; background: #F0E8D9; border: 2px solid var(--sand); color: var(--tan); }
.mi b { font-family: var(--font-subtitle); font-size: 15px; color: var(--accent); }
.mi .mi-text { font-family: var(--font-subtitle); font-size: 14px; line-height: 1.45; color: #41412E; }
.mi.next { opacity: 0.72; }
.mi.done .mi-dot { background: var(--accent); border-color: var(--accent); color: var(--cream); }
.mi.active { background: #F0E8D9; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(65, 65, 46, 0.1); }
.mi.active .mi-dot { border-color: var(--accent); color: var(--accent); }
.mission-cta { margin: 14px 0 4px; }
.mission-cta .btn { display: inline-block; text-decoration: none; }
.mission-cta .btn { background: var(--accent); color: var(--cream); box-shadow: 0 10px 22px -12px rgba(27, 27, 26, 0.7); }
.mission-cta .btn:hover { background: #1B1B1A; }
.me-purpose a { color: var(--accent); }
@media (min-width: 760px) { .mission { grid-template-columns: repeat(3, minmax(0, 1fr)); } .mi { grid-template-columns: minmax(0, 1fr); } .mi-dot { grid-row: auto; margin-bottom: 6px; } }
.pay-card.unlock .mi { background: rgba(240, 232, 217, 0.08); border-color: rgba(240, 232, 217, 0.22); }
.pay-card.unlock .mi b { color: var(--cream); }
.pay-card.unlock .mi .mi-text { color: rgba(240, 232, 217, 0.78); }
.pay-card.unlock .mi-dot { background: transparent; border-color: rgba(240, 232, 217, 0.4); color: var(--cream); }
.pay-card.unlock .mi.done .mi-dot { background: var(--sage); border-color: var(--sage); color: var(--accent); }
.pay-card.unlock .mi.active { background: rgba(240, 232, 217, 0.14); border-color: var(--cream); box-shadow: none; }
.pay-card.unlock .mi.active .mi-dot { border-color: var(--cream); color: var(--cream); }
#mission-next-cta .mission-cta { margin: 16px 0 0; }
#mission-next-cta .btn { display: block; width: 100%; text-align: center; text-decoration: none; padding: 15px 20px; }
.pay-card.unlock .mission-cta .btn { background: var(--cream); color: var(--accent); box-shadow: none; }
.pay-card.unlock .mission-cta .btn:hover { background: #D7C7A9; }
.pay-card .mission { grid-template-columns: minmax(0, 1fr); }
.pay-card .mi { grid-template-columns: 30px minmax(0, 1fr); }
.pay-card .mi-dot { grid-row: 1 / span 2; margin-bottom: 0; }

.steps { list-style: none; margin: 14px 0 6px; padding: 0; text-align: left; position: relative; }
.step { display: flex; gap: 14px; position: relative; padding-bottom: 18px; }
.step:last-child { padding-bottom: 4px; }
.step::before { content: ''; position: absolute; left: 15px; top: 32px; bottom: 0; width: 2px; background: var(--sand); }
.step:last-child::before { display: none; }
.step-dot { flex: 0 0 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-subtitle); font-weight: 700; font-size: 14px; background: #F0E8D9; border: 2px solid var(--sand); color: var(--tan); z-index: 1; }
.step.done .step-dot { background: var(--accent); border-color: var(--accent); color: #F0E8D9; }
.step.open .step-dot { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 4px rgba(65, 65, 46, 0.12); }
.step-body { min-width: 0; flex: 1 1 auto; }
.step-body p { margin: 0 0 3px; font-family: var(--font-subtitle); }
.step-title { font-weight: 600; font-size: 16px !important; color: var(--ink); }
.step-when { font-size: 13px !important; color: var(--tan); font-weight: 600; }
.step-what { font-size: 14px !important; line-height: 1.45 !important; color: rgba(65, 65, 46, 0.82); }
.step.locked .step-title, .step.offer .step-title { color: rgba(65, 65, 46, 0.82); }
.btn-small { display: inline-block; padding: 9px 20px; font-size: 14px; margin-top: 8px; text-decoration: none; }

/* Results columns: wrappers only; the desktop widths live in app-mode.css, which loads later and would override them here. */
.res-col { min-width: 0; }

/* Decade strip: outlined = your real age, filled = where your results land today */
.decades { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; margin: 10px 0 8px; }
.dec { text-align: center; font-family: var(--font-subtitle); font-weight: 600; font-size: 13px; padding: 10px 0; border-radius: 10px; background: rgba(215, 199, 169, 0.45); color: #41412E; border: 2px solid transparent; }
.dec.you { border-color: var(--accent); color: var(--accent); background: #F0E8D9; }
.dec.res { background: var(--accent); color: #F0E8D9; border-color: var(--accent); }
.dec.you.res { box-shadow: 0 0 0 3px #F0E8D9 inset; }
.dec-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-family: var(--font-subtitle); font-size: 13px; color: rgba(65, 65, 46, 0.82); margin: 0 0 10px; }
.dec-key { display: inline-flex; align-items: center; gap: 7px; }
.dec-key i { width: 14px; height: 14px; border-radius: 4px; border: 2px solid var(--accent); background: #F0E8D9; display: inline-block; }
.dec-key i.k-res { background: var(--accent); }
.dec-key i.k-you.k-res { box-shadow: 0 0 0 2px #F0E8D9 inset; }
@media (max-width: 420px) { .dec { font-size: 11px; padding: 8px 0; border-radius: 8px; } }

/* "Have a code?" under the pay buttons (gift codes). Reads on the cream buy box, the plain offer and the dark gate card. */
.code-box { margin: 14px 0 0; text-align: center; }
/* Raphael 2026-11-12: the small underlined link was missed; now a clear outlined button, full width in the buy box. */
.code-box { margin: 16px 0 0; }
.code-toggle { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 26px; border: 2px solid currentColor; border-radius: 999px; background: transparent; font: inherit; font-size: 16px; font-weight: 600; color: inherit; cursor: pointer; }
.code-toggle:hover { background: rgba(65, 65, 46, 0.08); }
.unlock-buy .code-toggle { width: 100%; color: var(--accent); }
.code-form { display: flex; gap: 8px; margin-top: 10px; justify-content: center; flex-wrap: wrap; }
.code-form.hidden { display: none; }
.code-input { flex: 1 1 160px; min-width: 0; max-width: 240px; padding: 12px 14px; border: 1px solid var(--sand); border-radius: 12px; background: #F0E8D9; color: var(--ink); font: inherit; font-size: 16px; letter-spacing: 1px; text-transform: uppercase; text-align: center; }
.code-input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.code-apply { padding: 12px 20px; background: var(--accent); color: var(--cream); }
.pay-card.unlock .unlock-buy .code-apply { background: var(--accent); color: var(--cream); }

/* "Not ready? Tell us why": one optional question under the code box. Same quiet look as .code-box; reads on the cream buy box and the dark cards. */
.reason-box { margin: 8px 0 0; text-align: center; }
.reason-toggle { background: none; border: 0; padding: 4px 6px; font: inherit; font-size: 14px; color: inherit; opacity: 0.8; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.reason-toggle:hover { opacity: 1; }
.reason-form { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 10px; }
.reason-form.hidden { display: none; }
.reason-chips { display: flex; flex-wrap: wrap; gap: 8px 6px; justify-content: center; }
.reason-chip { padding: 9px 12px; border: 1px solid var(--tan); border-radius: 999px; background: transparent; color: inherit; font: inherit; font-size: 14px; line-height: 1.2; cursor: pointer; }
.reason-chip:hover { border-color: var(--accent); }
.reason-chip.on { background: var(--accent); border-color: var(--accent); color: var(--cream); }
.pay-card.unlock .reason-chip { border-color: rgba(240, 232, 217, 0.4); }
.pay-card.unlock .reason-chip.on { background: var(--cream); border-color: var(--cream); color: var(--accent); }
.pay-card.unlock .unlock-buy .reason-chip { border-color: var(--tan); }
.pay-card.unlock .unlock-buy .reason-chip.on { background: var(--accent); border-color: var(--accent); color: var(--cream); }
.reason-note { width: 100%; max-width: 320px; min-width: 0; box-sizing: border-box; padding: 12px 14px; border: 1px solid var(--sand); border-radius: 12px; background: #F0E8D9; color: var(--ink); font: inherit; font-size: 16px; }
.reason-note:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.reason-send { padding: 11px 22px; background: var(--accent); color: var(--cream); }
.reason-send:disabled { opacity: 0.5; cursor: default; }
.pay-card.unlock .reason-send { background: var(--cream); color: var(--accent); }
.pay-card.unlock .unlock-buy .reason-send { background: var(--accent); color: var(--cream); }
.reason-msg { margin: 0; font-size: 13px; line-height: 1.4; min-height: 0; }
.reason-msg:empty { display: none; }
.reason-thanks { margin: 0; padding: 6px 0; font-size: 14px; line-height: 1.4; opacity: 0.9; }

/* full Brain Score offer: name line and bolded benefit lead */
.unlock-name { font-family: var(--font-subtitle); font-size: 12px !important; letter-spacing: 1.6px; text-transform: uppercase; color: var(--tan) !important; font-weight: 700; margin: 0 0 6px !important; }
.unlock-incl li strong { color: var(--accent); font-weight: 700; }

/* The "Versión en español" switch on the welcome screen sits centered under Start. */
.lang-row { text-align: center; margin-top: 14px; }

/* Unlock bar: pinned to the bottom of the screen on the results page until the person unlocks, hidden while the unlock card itself is on screen. */
.unlock-bar { position: fixed; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 60; width: min(560px, calc(100% - 24px)); display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 18px; background: var(--accent); color: var(--cream); border-radius: 18px; box-shadow: 0 18px 40px -16px rgba(27, 27, 26, 0.7); transition: opacity .25s, transform .25s; }
.unlock-bar.hidden { display: none; }
.unlock-bar.off { opacity: 0; transform: translate(-50%, 20px); pointer-events: none; }
.unlock-bar-text { flex: 1; min-width: 0; font-family: var(--font-subtitle); font-size: 14px; line-height: 1.35; }
.unlock-bar-text strong { color: var(--cream); }
.unlock-bar-text span { color: var(--sand); }
.unlock-bar .unlock-bar-btn { flex: none; background: var(--cream); color: var(--accent); padding: 12px 22px; min-height: 46px; }
.unlock-bar .unlock-bar-btn:hover { background: var(--sand); color: var(--accent); }
body:has(> .unlock-bar:not(.hidden)) #screen-results { padding-bottom: 96px; }
#results-summary #pay-card { margin-top: 22px; }
.unlock-buy .unlock-btn { margin-top: 2px; }
.unlock-buy .unlock-incl { margin: 16px 0 0; }
.pay-card.unlock .unlock-lede-after { margin: 18px 0 4px; }
.unlock-bar-code { flex: none; min-height: 46px; padding: 10px 16px; border: 2px solid var(--cream); border-radius: 999px; background: transparent; color: var(--cream); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.unlock-bar-code:hover { background: rgba(240, 232, 217, 0.12); }
.unlock-bar { gap: 8px; }
@media (max-width: 380px) { .unlock-bar-text span { display: none; } }
#pay-card { scroll-margin-top: 76px; }
