﻿:root {
  color-scheme: light;
  --bg: #ebfeff;
  --surface: #ffffff;
  --ink: #17272b;
  --muted: #596a6d;
  --line: #cde7e8;
  --accent: #a5f2f3;
  --accent-bright: #a5f0f3;
  --accent-muted: #74a8aa;
  --accent-dark: #245f65;
  --accent-soft: #d6ffff;
  --accent-wash: #ebfeff;
  --warm: #d58a57;
  --blue: #315f8d;
  --yellow: #d0a735;
  --dim-focus: #f2c84b;
  --dim-regeneration: #315f8d;
  --dim-calm: #9ed7e5;
  --dim-creativity: #8062c8;
  --dim-cognition: #f28a3c;
  --dim-sensory: #62b887;
  --danger-soft: #fff4ed;
  --shadow: 0 22px 60px rgba(23, 39, 43, 0.09);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(235, 254, 255, 0.94), rgba(246, 252, 252, 1)),
    repeating-linear-gradient(90deg, rgba(165, 242, 243, 0.13) 0 1px, transparent 1px 72px);
  color: var(--ink);
}

body.is-testing {
  overflow: hidden;
  touch-action: manipulation;
}

button,
input {
  font: inherit;
}

button,
a {
  min-height: 44px;
}

.app-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.intro-band,
.test-band,
.result-band,
.info-band,
.next-step-band,
.science-band,
.download-band {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.intro-band {
  display: grid;
  grid-template-areas:
    "heading heading"
    "copy visual";
  grid-template-columns: minmax(0, 0.88fr) minmax(360px, 1.12fr);
  gap: 44px 30px;
  align-items: start;
  min-height: 72vh;
  padding: clamp(28px, 5vw, 64px);
  border-radius: 8px;
}

.intro-heading {
  grid-area: heading;
}

.intro-copy {
  grid-area: copy;
}

.intro-copy .intro-text {
  margin-top: 0;
}

.intro-copy .intro-actions {
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2.4rem, 7vw, 5.8rem);
  line-height: 0.96;
  letter-spacing: 0;
}

#app-title {
  max-width: 1080px;
  font-size: clamp(2.15rem, 5.4vw, 4.7rem);
}

h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 12px;
  font-size: 1.05rem;
  letter-spacing: 0;
}

h4 {
  margin: 18px 0 8px;
  color: var(--ink);
  font-size: 0.92rem;
  letter-spacing: 0;
}

.intro-text {
  max-width: 650px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.65;
}

.intro-actions,
.test-footer,
.email-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.intro-actions {
  margin-top: 32px;
  color: var(--muted);
}

.primary-button,
.secondary-button,
.ghost-button {
  border-radius: 8px;
  padding: 11px 16px;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.primary-button {
  background: var(--accent-dark);
  color: white;
  font-weight: 760;
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover {
  transform: translateY(-1px);
}

.primary-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
}

.secondary-button {
  background: var(--accent-soft);
  border-color: rgba(116, 168, 170, 0.36);
  color: var(--accent-dark);
  font-weight: 700;
}

.ghost-button {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  text-align: center;
}

.signal-panel {
  grid-area: visual;
  position: relative;
  min-height: 0;
  overflow: hidden;
  border-radius: 8px;
  padding: 10px;
  background: #ffffff;
  border: 1px solid var(--line);
}

.signal-panel img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  object-position: center;
  filter: saturate(0.94) contrast(1.02);
}

.signal-caption {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 10px;
  padding: 14px 4px 4px;
  border-top: 1px solid rgba(220, 227, 221, 0.82);
  color: var(--muted);
  background: #ffffff;
}

.signal-caption strong {
  color: var(--ink);
}

.text-link {
  color: var(--accent-dark);
  font-weight: 760;
  text-underline-offset: 4px;
}

.test-band,
.result-band {
  border-radius: 8px;
  padding: clamp(22px, 4vw, 44px);
  margin-top: 18px;
}

.test-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.progress-track {
  height: 9px;
  margin: 28px 0;
  overflow: hidden;
  border-radius: 99px;
  background: #e5ebe7;
}

#progress-fill {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-dark), var(--accent));
  transition: width 220ms ease;
}

#cpt-progress,
#stroop-progress {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--dim-focus), var(--dim-cognition));
  transition: width 160ms ease;
}

.likert {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

.likert legend {
  grid-column: 1 / -1;
  margin-bottom: 4px;
  color: var(--muted);
}

.likert input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.likert label {
  display: flex;
  min-height: 112px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  background: #fbfcfb;
  flex-direction: column;
  justify-content: space-between;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.likert label:hover {
  transform: translateY(-1px);
  border-color: var(--accent-muted);
}

.likert input:checked + label {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.test-band.is-advancing .likert {
  opacity: 0.72;
  transform: translateY(4px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.likert .score {
  font-size: 1.45rem;
  font-weight: 780;
}

.likert .label-text {
  color: var(--muted);
  line-height: 1.35;
}

.test-footer {
  justify-content: space-between;
  margin-top: 28px;
}

.manual-next {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.cognitive-intro p {
  max-width: 780px;
  color: var(--muted);
  line-height: 1.62;
}

.instruction-card {
  max-width: 840px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(165, 242, 243, 0.46);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(165, 242, 243, 0.26), rgba(116, 168, 170, 0.1)),
    #ffffff;
}

.instruction-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
}

.instruction-card p {
  margin: 0;
}

.instruction-card p + p {
  margin-top: 8px;
}

.time-note {
  display: inline-flex;
  width: fit-content;
  min-height: 34px;
  align-items: center;
  border: 1px solid rgba(116, 168, 170, 0.34);
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(214, 255, 255, 0.62);
  color: var(--accent-dark);
  font-size: 0.9rem;
  font-weight: 760;
}

.quick-instruction {
  border-left: 3px solid var(--accent-muted);
  border-radius: 6px;
  padding: 9px 11px;
  background: rgba(235, 254, 255, 0.78);
  color: var(--ink);
  font-weight: 720;
  line-height: 1.45;
}

.task-demo {
  display: grid;
  gap: 12px;
  margin: 14px 0;
}

.cpt-demo {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.task-demo-item,
.stroop-demo {
  display: grid;
  min-height: 132px;
  place-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.82);
  text-align: center;
}

.task-demo-item small,
.stroop-demo small {
  color: var(--muted);
  line-height: 1.35;
}

.demo-shape {
  display: block;
  width: 74px;
  height: 74px;
  background: #3f4642;
}

.demo-circle {
  border-radius: 999px;
}

.demo-square {
  border-radius: 8px;
}

.stroop-demo {
  align-content: center;
}

.stroop-demo-word {
  font-size: clamp(2.4rem, 8vw, 4rem);
  font-weight: 850;
  line-height: 1;
}

.stroop-demo-answer {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  border-radius: 999px;
  padding: 7px 13px;
  background: #315f8d;
  color: #ffffff;
  font-weight: 780;
}

.cognitive-test {
  min-height: min(760px, calc(100vh - 36px));
}

.test-instruction {
  max-width: 820px;
  color: var(--muted);
  line-height: 1.58;
}

.test-hint {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.test-hint span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border: 1px solid rgba(116, 168, 170, 0.3);
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(235, 254, 255, 0.82);
  color: var(--muted);
  font-size: 0.9rem;
}

.test-hint strong {
  margin-right: 4px;
  color: var(--ink);
}

.stimulus-stage {
  display: grid;
  min-height: 280px;
  margin: 22px 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
  cursor: pointer;
  user-select: none;
}

.fixation {
  color: var(--muted);
  font-size: clamp(2.2rem, 7vw, 4.8rem);
  font-weight: 760;
  opacity: 0.38;
}

.stimulus-shape {
  display: block;
  inline-size: clamp(96px, 18vw, 150px);
  block-size: clamp(96px, 18vw, 150px);
  background: #3f4642;
  box-shadow: 0 12px 34px rgba(23, 32, 29, 0.08);
}

.target-circle {
  border-radius: 999px;
}

.nontarget-square {
  border-radius: 10px;
}

.response-button {
  width: 100%;
  min-height: 58px;
  font-size: 1.05rem;
}

.stroop-word {
  display: grid;
  min-height: 190px;
  margin: 22px 0 18px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
  font-size: clamp(3.4rem, 11vw, 7rem);
  font-weight: 840;
  letter-spacing: 0;
  text-transform: uppercase;
  user-select: none;
}

.stroop-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 10px;
}

.stroop-option {
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid rgba(23, 39, 43, 0.08);
  border-radius: 8px;
  background: var(--stroop-color);
  color: #ffffff;
  cursor: pointer;
  font-weight: 760;
  box-shadow: 0 12px 28px rgba(23, 39, 43, 0.08);
  transition:
    border-color 140ms ease,
    background 140ms ease,
    transform 140ms ease;
}

.stroop-option.is-selected {
  border-color: rgba(23, 39, 43, 0.34);
  transform: translateY(-2px);
  box-shadow:
    0 0 0 3px rgba(165, 242, 243, 0.72),
    0 14px 32px rgba(23, 39, 43, 0.12);
}

.stroop-option.stroop-yellow {
  color: #17272b;
}

.stroop-key {
  display: inline-grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
  color: inherit;
  font-size: 0.82rem;
  font-weight: 850;
}

.stroop-yellow .stroop-key {
  background: rgba(23, 39, 43, 0.1);
}

.result-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 240px) minmax(280px, 360px);
  gap: 28px;
  align-items: start;
}

.result-hero > .type-figure {
  margin-top: 58px;
  border-color: color-mix(in srgb, var(--type-accent) 34%, var(--line));
  border-top: 4px solid var(--type-accent);
  box-shadow: 0 14px 30px rgba(23, 32, 29, 0.06);
}

.result-claim {
  margin: 14px 0 0;
  color: var(--ink);
  font-size: 1.28rem;
  font-weight: 760;
  line-height: 1.38;
}

.result-summary {
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.55;
}

.fit-stack {
  display: grid;
  gap: 8px;
}

.fit-note {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

.fit-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: 8px;
}

.fit-row.is-primary {
  border-color: rgba(36, 95, 101, 0.2);
  background: linear-gradient(135deg, rgba(165, 242, 243, 0.26), rgba(242, 200, 75, 0.06));
}

.fit-row.is-primary .fit-bar {
  height: 11px;
}

.fit-row.is-secondary {
  opacity: 0.9;
}

.secondary-type-details {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.secondary-type-details summary {
  min-height: 44px;
  padding: 9px 12px;
  cursor: pointer;
  color: var(--accent-dark);
  font-size: 0.92rem;
  font-weight: 720;
  line-height: 1.25;
}

.secondary-type-details[open] {
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(23, 32, 29, 0.045);
}

.secondary-type-details[open] summary {
  border-bottom: 1px solid var(--line);
}

#secondary-type-copy {
  display: grid;
  gap: 8px;
  padding: 14px;
}

#secondary-type-copy .eyebrow {
  margin: 0;
}

#secondary-type-copy strong {
  color: var(--ink);
}

#secondary-type-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.fit-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
}

.fit-label strong {
  color: var(--ink);
}

.fit-bar {
  grid-column: 1 / -1;
  height: 9px;
  overflow: hidden;
  border-radius: 99px;
  background: #e6ebe8;
}

.fit-bar span {
  display: block;
  height: 100%;
  background: var(--accent);
}

.analysis-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.result-section {
  position: relative;
  margin-top: 26px;
}

.result-section::before {
  position: absolute;
  inset: -10px 0 auto auto;
  width: 180px;
  height: 42px;
  opacity: 0.22;
  background:
    radial-gradient(circle at 8px 20px, var(--accent) 2px, transparent 3px),
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(36, 95, 101, 0.32) 18px 20px, transparent 20px 38px);
  mask-image: linear-gradient(90deg, transparent, black 18%, black 82%, transparent);
  content: "";
  pointer-events: none;
}

.section-title-block {
  display: grid;
  gap: 6px;
  max-width: 760px;
  margin-bottom: 14px;
}

.section-kicker {
  margin: 0;
  color: var(--accent-dark);
  font-size: 0.86rem;
  font-weight: 820;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section-kicker span {
  color: var(--ink);
  text-transform: none;
}

.section-title-block h3 {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 520;
  line-height: 1.45;
}

.profile-priority-grid,
.neuro-grid {
  display: grid;
  gap: 16px;
}

.profile-priority-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  align-items: start;
}

.neuro-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-overview-card {
  align-self: start;
}

.profile-comparison-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.profile-comparison-block {
  border: 1px solid rgba(116, 168, 170, 0.18);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.64);
}

.profile-comparison-block h4 {
  margin: 0 0 10px;
  color: var(--accent-dark);
  font-size: 0.86rem;
  font-weight: 820;
  text-transform: uppercase;
}

.brain-types-context {
  margin-top: 18px;
}

.type-context-details {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 34px rgba(23, 39, 43, 0.06);
}

.type-context-details summary {
  display: grid;
  gap: 7px;
  min-height: 72px;
  padding: 18px;
  cursor: pointer;
  list-style: none;
}

.type-context-details summary::-webkit-details-marker {
  display: none;
}

.type-context-details summary::after {
  justify-self: end;
  margin-top: -34px;
  color: var(--accent-dark);
  content: "+";
  font-size: 1.4rem;
  font-weight: 760;
}

.type-context-details[open] summary {
  border-bottom: 1px solid var(--line);
}

.type-context-details[open] summary::after {
  content: "–";
}

.type-context-details summary > strong {
  font-size: 1.1rem;
}

.type-context-details summary > small {
  max-width: 760px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.result-type-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
}

.result-type-card {
  --type-accent: var(--accent);
  --type-wash: rgba(165, 242, 243, 0.12);
  display: grid;
  gap: 8px;
  min-height: 182px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--type-accent);
  border-radius: 8px;
  padding: 14px;
  background:
    linear-gradient(135deg, var(--type-wash), rgba(255, 255, 255, 0.9) 58%),
    #ffffff;
}

.result-type-card:nth-child(1) {
  --type-accent: var(--dim-cognition);
  --type-wash: rgba(242, 138, 60, 0.12);
}

.result-type-card:nth-child(2) {
  --type-accent: var(--dim-focus);
  --type-wash: rgba(242, 200, 75, 0.14);
}

.result-type-card:nth-child(3) {
  --type-accent: var(--dim-calm);
  --type-wash: rgba(158, 215, 229, 0.18);
}

.result-type-card:nth-child(4) {
  --type-accent: var(--dim-creativity);
  --type-wash: rgba(128, 98, 200, 0.1);
}

.result-type-card:nth-child(5) {
  --type-accent: var(--dim-sensory);
  --type-wash: rgba(98, 184, 135, 0.12);
}

.result-type-card.is-primary {
  border-color: var(--type-accent);
  background:
    linear-gradient(135deg, var(--type-wash), rgba(255, 255, 255, 0.88) 50%),
    #ffffff;
  box-shadow: 0 14px 32px rgba(116, 168, 170, 0.16);
}

.result-type-card.is-secondary {
  border-style: dashed;
  border-color: color-mix(in srgb, var(--type-accent) 54%, var(--accent-dark));
}

.result-type-badge {
  display: inline-flex;
  width: fit-content;
  min-height: 24px;
  align-items: center;
  border-radius: 999px;
  padding: 4px 9px;
  background: var(--accent-wash);
  color: var(--accent-dark);
  font-size: 0.72rem;
  font-weight: 820;
  text-transform: uppercase;
}

.result-type-card.is-primary .result-type-badge {
  background: var(--accent-dark);
  color: #ffffff;
}

.result-type-card h4 {
  margin: 4px 0 0;
  font-size: 1rem;
}

.result-type-card strong {
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.35;
}

.result-type-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.snapshot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.snapshot-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 18px;
}

.summary-pill {
  display: grid;
  gap: 6px;
  min-height: 86px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #ffffff;
}

.summary-pill,
.snapshot-card {
  position: relative;
  border-left: 4px solid var(--line);
}

.snapshot-good {
  --snapshot-color: #62b887;
  border-left-color: var(--snapshot-color);
  background: linear-gradient(90deg, rgba(98, 184, 135, 0.11), #ffffff 48%);
}

.snapshot-mixed {
  --snapshot-color: #f2c84b;
  border-left-color: var(--snapshot-color);
  background: linear-gradient(90deg, rgba(242, 200, 75, 0.12), #ffffff 48%);
}

.snapshot-watch {
  --snapshot-color: #c8703d;
  border-left-color: var(--snapshot-color);
  background: linear-gradient(90deg, rgba(200, 112, 61, 0.11), #ffffff 48%);
}

.snapshot-neutral {
  --snapshot-color: var(--line);
  border-left-color: var(--snapshot-color);
}

.summary-pill span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 720;
}

.summary-pill strong {
  color: var(--ink);
  font-size: 1.08rem;
}

.snapshot-card {
  display: grid;
  gap: 4px;
  min-height: 106px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #ffffff;
}

.snapshot-card span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 720;
}

.snapshot-card strong {
  color: var(--ink);
  font-size: 1.35rem;
}

.snapshot-card small {
  color: var(--muted);
  line-height: 1.35;
}

.snapshot-card.snapshot-good,
.summary-pill.snapshot-good {
  border-left-width: 4px;
  border-left-color: #62b887;
  background: linear-gradient(90deg, rgba(98, 184, 135, 0.11), #ffffff 48%);
}

.snapshot-card.snapshot-mixed,
.summary-pill.snapshot-mixed {
  border-left-width: 4px;
  border-left-color: #f2c84b;
  background: linear-gradient(90deg, rgba(242, 200, 75, 0.12), #ffffff 48%);
}

.snapshot-card.snapshot-watch,
.summary-pill.snapshot-watch {
  border-left-width: 4px;
  border-left-color: #c8703d;
  background: linear-gradient(90deg, rgba(200, 112, 61, 0.11), #ffffff 48%);
}

.snapshot-narrative {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 8px 0 14px;
}

.snapshot-narrative div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.snapshot-narrative strong {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
}

.snapshot-narrative ul {
  margin: 0;
  padding-left: 18px;
}

.snapshot-narrative p {
  margin: 0;
}

.insight-panel {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #fbfcfb;
}

.card-standard {
  background: #fbfcfb;
}

.card-highlight {
  border-color: rgba(36, 95, 101, 0.24);
  background:
    linear-gradient(135deg, rgba(165, 242, 243, 0.32), rgba(242, 200, 75, 0.08)),
    #ffffff;
  box-shadow: 0 18px 46px rgba(116, 168, 170, 0.24);
}

.card-info {
  border-color: rgba(49, 95, 141, 0.22);
  background:
    linear-gradient(135deg, rgba(49, 95, 141, 0.08), rgba(158, 215, 229, 0.08)),
    #fbfcfb;
}

.card-header {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-bottom: 12px;
}

.card-header h3 {
  margin: 0;
}

.line-icon {
  display: inline-grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  border: 1px solid rgba(165, 242, 243, 0.46);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--accent-dark);
}

.line-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.card-subclaim {
  margin: 4px 0 0;
  color: var(--accent-dark);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
}

.action-groups {
  display: grid;
  gap: 12px;
}

.help-pattern {
  margin: 0 0 14px;
  padding: 12px;
  border: 1px solid rgba(165, 242, 243, 0.44);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
}

.help-pattern h4 {
  margin-top: 0;
}

.help-pattern .snack-copy {
  gap: 8px;
}

.help-pattern .snack-list {
  gap: 5px;
}

.action-groups h4 {
  margin: 0 0 7px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 820;
  text-transform: uppercase;
}

.insight-panel p,
.next-step-band p,
.info-band p,
.info-band li,
.science-band p,
.download-band p,
.insight-panel li {
  color: var(--muted);
  line-height: 1.58;
}

.insight-panel ul,
.info-band ul {
  margin: 0;
  padding-left: 20px;
}

.profile-comparison-block ul {
  display: grid;
  gap: 5px;
}

.snack-copy {
  display: grid;
  gap: 10px;
}

.snack-lead {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
}

.snack-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.5;
}

#result-chart {
  display: block;
  width: 100%;
  max-width: 420px;
  height: 260px;
}

.dimension-panel #result-chart {
  max-width: 330px;
  height: 205px;
  margin: 2px auto 0;
}

.dimension-panel > p,
.cognitive-panel > p {
  margin-bottom: 12px;
}

.dimension-list {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.dimension-row {
  display: grid;
  grid-template-columns: 128px 1fr 86px;
  gap: 10px;
  align-items: center;
  color: var(--muted);
}

.dimension-row strong {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 760;
}

.dimension-track {
  height: 8px;
  overflow: hidden;
  border-radius: 99px;
  background: #e8ede9;
}

.dimension-track span {
  display: block;
  height: 100%;
  background: var(--blue);
}

.dimension-explainer-grid,
.dimension-explainer-accordion {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.dimension-explainer-details {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.dimension-explainer-details summary {
  min-height: 44px;
  padding: 12px 14px;
  cursor: pointer;
  color: var(--accent-dark);
  font-weight: 780;
}

.dimension-explainer-details[open] {
  box-shadow: 0 14px 34px rgba(23, 32, 29, 0.06);
}

.dimension-explainer-details[open] summary {
  border-bottom: 1px solid var(--line);
}

.dimension-explainer-details .dimension-explainer-grid,
.dimension-explainer-details .dimension-explainer-accordion {
  grid-template-columns: 1fr;
  margin: 0;
  padding: 12px;
}

.dimension-explainer-details .dimension-image-frame {
  min-height: 120px;
}

.cognitive-panel .snapshot-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.cognitive-panel .summary-pill,
.cognitive-panel .snapshot-card {
  min-height: 0;
  padding: 12px;
}

.cognitive-panel .snapshot-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.snapshot-detail-accordions {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.snapshot-detail-accordions details {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.snapshot-detail-accordions summary {
  display: flex;
  min-height: 46px;
  align-items: center;
  padding: 11px 13px;
  cursor: pointer;
  color: var(--accent-dark);
  font-weight: 780;
  list-style: none;
}

.snapshot-detail-accordions summary::-webkit-details-marker {
  display: none;
}

.snapshot-detail-accordions summary::after {
  margin-left: auto;
  color: var(--muted);
  content: "+";
  font-size: 1.1rem;
  font-weight: 760;
}

.snapshot-detail-accordions details[open] summary {
  border-bottom: 1px solid var(--line);
}

.snapshot-detail-accordions details[open] summary::after {
  content: "–";
}

.snapshot-detail-accordions .snapshot-grid {
  margin-top: 0;
  padding: 12px;
}

.cognitive-panel .snapshot-narrative {
  grid-template-columns: 1fr;
  gap: 8px;
}

.privacy-note {
  margin-top: 14px;
  border-top: 1px solid rgba(116, 168, 170, 0.22);
  padding-top: 12px;
}

.dimension-image-frame {
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  border-radius: 7px;
  background:
    linear-gradient(135deg, rgba(165, 242, 243, 0.24), rgba(116, 168, 170, 0.08)),
    #f8faf8;
}

.dimension-image-frame img {
  display: block;
  width: 86%;
  height: 86%;
  object-fit: contain;
}

.dimension-card-title {
  display: grid;
  gap: 2px;
}

.dimension-card-title strong {
  font-size: 0.92rem;
}

.dimension-card-title small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.dimension-card-copy {
  display: none;
  gap: 8px;
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.42;
}

.dimension-card-copy em {
  color: var(--accent-dark);
  font-style: normal;
  font-weight: 650;
}

.dimension-explainer-item {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.dimension-explainer-item + .dimension-explainer-item {
  margin-top: 8px;
}

.dimension-explainer-item summary {
  display: flex;
  min-height: 58px;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
}

.dimension-explainer-item summary::-webkit-details-marker {
  display: none;
}

.dimension-explainer-item summary::after {
  margin-left: auto;
  color: var(--muted);
  content: "+";
  font-size: 1.2rem;
  font-weight: 760;
}

.dimension-explainer-item[open] {
  border-color: color-mix(in srgb, var(--dimension-color) 58%, var(--line));
  box-shadow: 0 14px 34px rgba(23, 32, 29, 0.08);
}

.dimension-explainer-item[open] summary {
  border-bottom: 1px solid var(--line);
}

.dimension-explainer-item[open] summary::after {
  content: "–";
}

.dimension-summary-dot {
  width: 11px;
  height: 11px;
  flex: 0 0 11px;
  border-radius: 999px;
  background: var(--dimension-color);
}

.dimension-explainer-item summary strong,
.dimension-explainer-item summary small {
  display: block;
}

.dimension-explainer-item summary small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.dimension-explainer-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  padding: 14px;
  align-items: start;
}

.dimension-explainer-content .dimension-card-copy {
  display: grid;
  gap: 8px;
  font-size: 0.94rem;
}

.dimension-explainer-content .dimension-card-copy p {
  margin: 0;
}

.type-figure {
  --type-accent: var(--accent);
  --type-wash: rgba(165, 242, 243, 0.18);
  position: relative;
  display: grid;
  min-height: 180px;
  overflow: hidden;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 82% 18%, var(--type-wash), transparent 34%),
    linear-gradient(135deg, var(--type-wash), rgba(255, 255, 255, 0.68)),
    #fbfcfb;
}

.type-figure-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  max-width: calc(100% - 20px);
  padding: 4px 8px;
  border: 1px solid color-mix(in srgb, var(--type-accent) 30%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--type-wash) 68%, #ffffff);
  color: color-mix(in srgb, var(--type-accent) 58%, var(--ink));
  font-size: 0.68rem;
  font-weight: 760;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.type-figure[data-type="overdriver"],
.type-card:nth-child(1) .type-figure {
  --type-accent: var(--dim-cognition);
  --type-wash: rgba(242, 138, 60, 0.13);
}

.type-figure[data-type="watcher"],
.type-card:nth-child(2) .type-figure {
  --type-accent: var(--dim-focus);
  --type-wash: rgba(242, 200, 75, 0.14);
}

.type-figure[data-type="drifter"],
.type-card:nth-child(3) .type-figure {
  --type-accent: var(--dim-calm);
  --type-wash: rgba(158, 215, 229, 0.18);
}

.type-figure[data-type="explorer"],
.type-card:nth-child(4) .type-figure {
  --type-accent: var(--dim-creativity);
  --type-wash: rgba(128, 98, 200, 0.1);
}

.type-figure[data-type="switcher"],
.type-card:nth-child(5) .type-figure {
  --type-accent: var(--dim-sensory);
  --type-wash: rgba(98, 184, 135, 0.12);
}

.type-figure-image {
  display: block;
  width: min(100%, 420px);
  max-height: 240px;
  object-fit: contain;
}

.type-figure[data-type] .type-figure-image {
  transform: translateY(10px);
}

.type-figure[data-type="overdriver"] .type-figure-image {
  width: min(108%, 460px);
  max-height: 255px;
}

.type-placeholder {
  display: none;
  width: 100%;
  min-height: 180px;
  padding: 20px;
  place-content: center;
  text-align: center;
  color: var(--muted);
  background:
    radial-gradient(circle at 50% 34%, rgba(165, 242, 243, 0.42), transparent 38%),
    linear-gradient(135deg, rgba(235, 254, 255, 0.7), rgba(255, 255, 255, 0.62));
}

.type-figure.has-placeholder {
  background-image:
    radial-gradient(circle at 50% 34%, var(--type-wash), transparent 38%),
    linear-gradient(135deg, var(--type-wash), rgba(255, 255, 255, 0.62));
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.type-figure.has-placeholder .type-placeholder {
  display: grid;
}

.type-placeholder span {
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 780;
  letter-spacing: 0;
  text-transform: uppercase;
}

.type-placeholder strong {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-size: 1rem;
}

.type-profile-bars {
  display: grid;
  gap: 8px;
  margin-top: auto;
}

.profile-note {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.type-profile-row {
  display: grid;
  grid-template-columns: 10px minmax(118px, 0.9fr) minmax(150px, 1fr) minmax(92px, auto);
  gap: 8px;
  align-items: center;
  min-height: 22px;
  color: var(--muted);
  font-size: 0.9rem;
}

.profile-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
}

.type-profile-track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8ede9;
}

.type-profile-track span {
  display: block;
  height: 100%;
}

.type-profile-row strong {
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 720;
}

.next-step-band,
.info-band,
.download-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: 28px;
  margin-top: 18px;
  padding: 24px;
  border-radius: 8px;
}

.result-cta-box {
  background:
    linear-gradient(135deg, rgba(165, 242, 243, 0.26), rgba(116, 168, 170, 0.1)),
    #ffffff;
}

.cta-column {
  display: grid;
  align-content: start;
  gap: 10px;
}

.cta-note {
  margin: 0 0 4px;
  color: var(--muted);
  line-height: 1.55;
}

.form-note,
.disclaimer {
  font-size: 0.92rem;
}

.info-band {
  grid-template-columns: 1fr;
  margin-top: 18px;
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 16px;
}

.subpage-shell {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.detail-page {
  width: min(1160px, calc(100% - 32px));
}

.subpage-hero,
.science-band,
.download-band {
  border-radius: 8px;
  padding: clamp(24px, 4vw, 46px);
}

.subpage-hero {
  background:
    linear-gradient(135deg, rgba(165, 242, 243, 0.38), rgba(255, 255, 255, 0.88)),
    #f7fbfb;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.subpage-hero p {
  max-width: 780px;
  color: var(--muted);
  line-height: 1.65;
}

.key-sentence {
  font-weight: 760;
  color: var(--ink);
}

.subpage-hero .key-sentence {
  color: var(--ink);
}

.subpage-hero .eyebrow {
  color: var(--accent-dark);
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.8fr);
  gap: clamp(22px, 5vw, 54px);
  align-items: center;
  border: 1px solid rgba(116, 168, 170, 0.28);
  border-radius: 8px;
  padding: clamp(28px, 5vw, 58px);
  background:
    radial-gradient(circle at 86% 16%, rgba(165, 242, 243, 0.48), transparent 30%),
    linear-gradient(135deg, rgba(235, 254, 255, 0.96), rgba(255, 255, 255, 0.92));
  box-shadow: var(--shadow);
}

.detail-hero-copy p {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.65;
}

.detail-hero-copy .key-sentence {
  color: var(--ink);
}

.report-mockup {
  position: relative;
  display: grid;
  min-height: 390px;
  place-items: center;
}

.report-mockup::before {
  position: absolute;
  width: min(74%, 300px);
  aspect-ratio: 1;
  border: 1px solid rgba(116, 168, 170, 0.22);
  border-radius: 999px;
  background:
    repeating-linear-gradient(90deg, transparent 0 22px, rgba(36, 95, 101, 0.14) 22px 24px, transparent 24px 46px),
    rgba(214, 255, 255, 0.42);
  content: "";
}

.mockup-sheet {
  position: absolute;
  z-index: 1;
  display: grid;
  width: min(230px, 58vw);
  min-height: 290px;
  align-content: start;
  gap: 14px;
  border: 1px solid rgba(36, 95, 101, 0.22);
  border-radius: 8px;
  padding: 28px 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(235, 254, 255, 0.86)),
    #ffffff;
  box-shadow: 0 22px 54px rgba(23, 39, 43, 0.12);
  transform: rotate(-4deg);
}

.sheet-line,
.sheet-line-wide,
.sheet-line-short {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: rgba(116, 168, 170, 0.28);
}

.sheet-line-wide {
  width: 100%;
}

.sheet-line {
  width: 78%;
}

.sheet-line-short {
  width: 54%;
}

.sheet-score {
  display: block;
  width: 88px;
  height: 88px;
  margin: 20px auto 10px;
  border: 12px solid rgba(98, 184, 135, 0.72);
  border-left-color: rgba(242, 138, 60, 0.76);
  border-bottom-color: rgba(242, 200, 75, 0.76);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.mockup-card {
  position: absolute;
  z-index: 2;
  width: min(220px, 62vw);
  border: 1px solid rgba(116, 168, 170, 0.3);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 50px rgba(23, 39, 43, 0.1);
}

.mockup-card span {
  display: block;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 780;
  text-transform: uppercase;
}

.mockup-card strong {
  display: block;
  margin-top: 6px;
  font-size: 1.18rem;
}

.mockup-card-main {
  top: 12%;
  left: 6%;
}

.mockup-card:nth-child(2) {
  top: 26%;
  right: 0;
}

.mockup-card:nth-child(3) {
  bottom: 24%;
  left: 0;
}

.mockup-card-booklet {
  right: 7%;
  bottom: 8%;
  background:
    linear-gradient(135deg, rgba(165, 242, 243, 0.24), rgba(255, 255, 255, 0.92)),
    #ffffff;
}

.glance-band {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  margin-top: 18px;
  border: 1px solid rgba(116, 168, 170, 0.28);
  border-radius: 8px;
  padding: clamp(24px, 4vw, 42px);
  background:
    linear-gradient(135deg, rgba(165, 242, 243, 0.22), rgba(255, 255, 255, 0.9)),
    #ffffff;
  box-shadow: var(--shadow);
}

.glance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.glance-card {
  border: 1px solid rgba(116, 168, 170, 0.28);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.76);
}

.glance-label {
  display: block;
  margin-bottom: 7px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 780;
  text-transform: uppercase;
}

.glance-card strong {
  display: block;
  line-height: 1.35;
}

.detail-note {
  grid-column: 2;
  margin: 2px 0 0;
  color: var(--muted);
  line-height: 1.58;
}

.offer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.offer-card {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.88);
}

.offer-card::after {
  position: absolute;
  inset: auto -20px -32px auto;
  width: 96px;
  height: 96px;
  border-radius: 999px;
  background: rgba(165, 242, 243, 0.28);
  content: "";
}

.detail-icon {
  position: relative;
  display: grid;
  width: 32px;
  height: 32px;
  margin-bottom: 18px;
  place-items: center;
  border: 1px solid rgba(36, 95, 101, 0.26);
  border-radius: 999px;
  background: var(--accent-soft);
}

.detail-icon::before,
.detail-icon::after {
  position: absolute;
  display: block;
  content: "";
}

.detail-icon-measurement::before {
  width: 18px;
  height: 11px;
  border: 2px solid var(--accent-dark);
  border-top: 0;
  border-left: 0;
  transform: rotate(-18deg);
}

.detail-icon-analysis::before {
  width: 17px;
  height: 17px;
  border: 2px solid var(--accent-dark);
  border-radius: 4px;
}

.detail-icon-analysis::after {
  width: 10px;
  height: 2px;
  background: var(--accent-dark);
}

.detail-icon-talk::before {
  width: 18px;
  height: 13px;
  border: 2px solid var(--accent-dark);
  border-radius: 8px;
}

.detail-icon-talk::after {
  right: 7px;
  bottom: 7px;
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--accent-dark);
  border-bottom: 2px solid var(--accent-dark);
  transform: rotate(24deg);
}

.detail-icon-booklet::before {
  width: 16px;
  height: 20px;
  border: 2px solid var(--accent-dark);
  border-radius: 3px;
}

.detail-icon-booklet::after {
  width: 8px;
  height: 2px;
  background: var(--accent-dark);
  box-shadow: 0 5px 0 var(--accent-dark);
}

.offer-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.timeline-compact {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.timeline-compact article {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #ffffff;
}

.timeline-compact article:not(:last-child)::after {
  position: absolute;
  top: 32px;
  right: -13px;
  width: 14px;
  height: 1px;
  background: rgba(116, 168, 170, 0.5);
  content: "";
}

.timeline-compact span {
  display: inline-grid;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  place-items: center;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 820;
}

.timeline-compact p,
.eeg-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.preview-grid-wide {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.compact-eeg-matrix .eeg-card {
  --type-accent: var(--accent);
  --type-wash: rgba(165, 242, 243, 0.12);
  border-top: 4px solid var(--type-accent);
  background:
    linear-gradient(135deg, var(--type-wash), rgba(255, 255, 255, 0.88) 58%),
    #ffffff;
  min-height: 164px;
}

.compact-eeg-matrix .eeg-card:nth-child(1) {
  --type-accent: var(--dim-cognition);
  --type-wash: rgba(242, 138, 60, 0.12);
}

.compact-eeg-matrix .eeg-card:nth-child(2) {
  --type-accent: var(--dim-focus);
  --type-wash: rgba(242, 200, 75, 0.14);
}

.compact-eeg-matrix .eeg-card:nth-child(3) {
  --type-accent: var(--dim-calm);
  --type-wash: rgba(158, 215, 229, 0.18);
}

.compact-eeg-matrix .eeg-card:nth-child(4) {
  --type-accent: var(--dim-creativity);
  --type-wash: rgba(128, 98, 200, 0.1);
}

.compact-eeg-matrix .eeg-card:nth-child(5) {
  --type-accent: var(--dim-sensory);
  --type-wash: rgba(98, 184, 135, 0.12);
}

.faq-accordion {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.faq-accordion details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
}

.faq-accordion summary {
  min-height: 52px;
  padding: 15px 18px;
  cursor: pointer;
  color: var(--ink);
  font-weight: 760;
}

.faq-accordion p {
  margin: 0;
  padding: 0 18px 18px;
  color: var(--muted);
  line-height: 1.58;
}

.detail-contact-band {
  background:
    linear-gradient(135deg, rgba(165, 242, 243, 0.22), rgba(255, 255, 255, 0.92)),
    #ffffff;
}

.science-band,
.download-band {
  margin-top: 18px;
}

.science-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.compact-science .science-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.brainreport-process {
  position: relative;
  overflow: hidden;
}

.brainreport-process::before {
  position: absolute;
  inset: 0;
  opacity: 0.34;
  background:
    linear-gradient(135deg, rgba(165, 242, 243, 0.24), transparent 42%),
    radial-gradient(circle at 86% 14%, rgba(158, 215, 229, 0.22), transparent 26%);
  content: "";
  pointer-events: none;
}

.brainreport-process > * {
  position: relative;
}

.process-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 24px;
  align-items: end;
}

.process-intro p {
  margin: 0;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.process-card {
  min-height: 180px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.78);
}

.process-heading {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.process-step {
  display: inline-grid;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(36, 95, 101, 0.2);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(165, 242, 243, 0.34), rgba(242, 200, 75, 0.14));
  color: var(--accent-dark);
  font-weight: 820;
}

.process-card h3 {
  margin: 0;
}

.process-card p {
  margin: 0;
}

.process-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(165, 242, 243, 0.44);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.process-cta p {
  margin: 0;
}

.process-info-grid,
.detail-grid,
.preview-grid,
.faq-grid,
.eeg-matrix {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.process-info-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.detail-grid,
.preview-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.faq-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.eeg-matrix {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.note-card,
.detail-card,
.preview-card,
.faq-card,
.eeg-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.82);
}

.note-card {
  border-left: 4px solid var(--accent);
  background:
    linear-gradient(135deg, rgba(165, 242, 243, 0.24), rgba(255, 255, 255, 0.84)),
    #ffffff;
}

.detail-card h3,
.preview-card h3,
.faq-card h3,
.eeg-card h3,
.note-card h3 {
  margin-bottom: 8px;
}

.detail-card p,
.preview-card p,
.faq-card p,
.eeg-card p,
.note-card p {
  margin: 0;
}

.detail-card ul {
  margin: 0;
  padding-left: 19px;
  color: var(--muted);
  line-height: 1.58;
}

.preview-card {
  display: grid;
  align-content: start;
  min-height: 178px;
  border-top: 4px solid var(--accent);
}

.preview-card small,
.eeg-card small {
  color: var(--accent-dark);
  font-weight: 760;
  text-transform: uppercase;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.soft-divider {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.science-card {
  min-height: 168px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #fbfcfb;
}

.dimension-card {
  border-top: 4px solid var(--dimension-color);
}

.dimension-card h3 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dimension-card h3::before {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--dimension-color);
  content: "";
}

.type-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.type-card {
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  gap: 14px;
  min-height: auto;
}

.type-card .type-figure {
  min-height: 150px;
}

.type-card .type-placeholder {
  min-height: 150px;
}

.compact-science .science-card {
  min-height: 190px;
}

.science-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.plain-list {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.58;
}

.about-band {
  background: #f9fbf8;
}

.site-footer {
  position: relative;
  display: grid;
  place-items: center;
  justify-content: center;
  margin-top: 32px;
  padding: 34px 0 14px;
  overflow: hidden;
  border-top: 1px solid rgba(220, 227, 221, 0.85);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(165, 242, 243, 0.2), rgba(116, 168, 170, 0.08), rgba(165, 242, 243, 0.16));
}

.site-footer::before {
  position: absolute;
  inset: auto 10% 18px;
  height: 1px;
  opacity: 0.6;
  background: linear-gradient(90deg, transparent, rgba(36, 95, 101, 0.24), transparent);
  content: "";
}

.brand-logo {
  position: relative;
  display: block;
  width: min(230px, 48vw);
  height: auto;
  opacity: 0.72;
  mix-blend-mode: multiply;
  filter: grayscale(0.12);
}

.frequency-image {
  display: block;
  width: 100%;
  margin-top: 20px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fbfcfb;
  aspect-ratio: 2048 / 796;
  object-fit: contain;
  filter: saturate(0.9) brightness(0.98) contrast(1.02);
}

.is-hidden {
  display: none;
}

@media (max-width: 860px) {
  .app-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 10px;
  }

  .intro-band,
  .detail-hero,
  .glance-band,
  .glance-grid,
  .offer-grid,
  .timeline-compact,
  .result-hero,
  .analysis-grid,
  .profile-priority-grid,
  .neuro-grid,
  .result-type-grid,
  .cpt-demo,
  .process-intro,
  .process-grid,
  .process-cta,
  .process-info-grid,
  .detail-grid,
  .preview-grid,
  .faq-grid,
  .eeg-matrix,
  .next-step-band,
  .info-band,
  .science-grid,
  .download-band {
    grid-template-columns: 1fr;
  }

  .report-mockup {
    min-height: 320px;
  }

  .mockup-card {
    width: min(210px, 70vw);
  }

  .detail-note {
    grid-column: auto;
  }

  .result-hero > .type-figure {
    margin-top: 0;
  }

  .timeline-compact article:not(:last-child)::after {
    display: none;
  }

  .preview-grid-wide {
    grid-template-columns: 1fr;
  }

  .intro-band {
    grid-template-areas:
      "heading"
      "copy"
      "visual";
    min-height: auto;
  }

  .likert {
    grid-template-columns: 1fr;
  }

  .snapshot-grid,
  .snapshot-summary,
  .snapshot-narrative,
  .profile-comparison-grid,
  .dimension-explainer-grid,
  .dimension-explainer-accordion,
  .dimension-explainer-content {
    grid-template-columns: 1fr;
  }

  body.is-stroop-testing {
    overflow: auto;
    touch-action: auto;
  }

  #stroop-screen .test-instruction {
    margin-bottom: 12px;
  }

  .stroop-hint {
    gap: 8px;
    margin-top: 10px;
  }

  .stroop-hint span {
    min-height: 30px;
    padding: 5px 10px;
    font-size: 0.82rem;
  }

  .stroop-word {
    min-height: 130px;
    margin: 14px 0 12px;
    font-size: clamp(2.7rem, 15vw, 4.6rem);
  }

  .stroop-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .stroop-option {
    min-height: 52px;
    gap: 7px;
    padding: 8px 10px;
  }

  .dimension-explainer-details .dimension-explainer-grid,
  .dimension-explainer-details .dimension-explainer-accordion,
  .cognitive-panel .snapshot-summary,
  .cognitive-panel .snapshot-grid,
  .cognitive-panel .snapshot-narrative {
    grid-template-columns: 1fr;
  }

  .stimulus-stage {
    min-height: 230px;
  }

  .likert label {
    min-height: 72px;
    flex-direction: row;
    align-items: center;
    gap: 14px;
  }

  .science-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .compact-science .science-grid {
    grid-template-columns: 1fr;
  }

  .type-profile-row {
    grid-template-columns: 10px minmax(88px, 0.9fr) minmax(90px, 1fr);
  }

  .type-profile-row strong {
    grid-column: 2 / -1;
  }

  .dimension-row {
    grid-template-columns: 92px 1fr 72px;
  }
}

@media print {
  body {
    background: white;
  }

  .intro-band,
  .test-band,
  .info-band,
  .cta-column,
  .ghost-button,
  .secondary-button {
    display: none !important;
  }

  .app-shell {
    width: 100%;
    padding: 0;
  }

  .result-band,
  .next-step-band,
  .insight-panel {
    box-shadow: none;
    border-color: #cfd7d2;
  }
}
