/* The Hippocampus Test — senior-friendly: white, big, one thing at a time */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: #f8fafc;
  color: #0f172a;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 20px;
  line-height: 1.55;
}
.wrap { max-width: 640px; margin: 0 auto; padding: 78px 16px 48px; }

/* top bar + logo (trueIQ-style persistent chrome) */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30; height: 58px;
  background: #fff; border-bottom: 1px solid #e2e8f0;
  display: flex; align-items: center; justify-content: space-between; padding: 0 18px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo svg { width: 32px; height: 32px; }
.logo-word {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 22px; font-weight: 700; color: #0f172a; letter-spacing: -.02em;
}
.logo-word b { color: #0d9488; font-weight: 800; }
.navchip {
  font-size: 17px; font-weight: 700; color: #64748b;
  background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 999px;
  padding: 7px 14px; min-height: 36px; display: inline-flex; align-items: center;
}
.navchip:empty { display: none; }
.navchip.urgent { color: #b42318; background: #fdecec; border-color: #f5c2be; }

h1.question, .question, .subhead, .payoff, h1.brand, .verdict-age, .modal h4, .offer h2 {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif; letter-spacing: -.01em;
}
.card {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 16px;
  box-shadow: 0 1px 3px rgba(16, 24, 40, .06);
  padding: 24px 24px 32px;
}
.site-foot { text-align: center; font-size: 15px; color: #94a3b8; margin-top: 16px; letter-spacing: .04em; }
.icircle {
  width: 64px; height: 64px; border-radius: 50%; background: #f0fdfa;
  display: flex; align-items: center; justify-content: center; margin: 8px auto 16px;
}
.icircle svg { width: 32px; height: 32px; stroke: #0d9488; fill: none; stroke-width: 2; }
.iglyph { display: inline-block; vertical-align: -3px; width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }
.hero-img { display: block; width: 100%; border-radius: 12px; border: 1px solid #e2e8f0; margin: 0 0 20px; }
.tava {
  flex: none; width: 46px; height: 46px; border-radius: 50%; background: #f0fdfa; color: #0d9488;
  font-weight: 800; font-size: 18px; display: flex; align-items: center; justify-content: center;
}
.tcard .thead { align-items: center; }
.tcard .twho { flex: 1; margin-left: 12px; }

/* progress */
.progress { position: fixed; top: 58px; left: 0; right: 0; height: 8px; background: #eef2f6; z-index: 10; }
.progress .bar { height: 100%; width: 0; background: #0d9488; transition: width .4s ease; }
.qcount { margin: 14px 0 4px; font-size: 16px; color: #64748b; min-height: 22px; }

/* fade between screens */
#app.fade { animation: fadein .35s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.section-tag {
  display: inline-block; margin: 10px 0 14px;
  font-size: 15px; font-weight: 700; letter-spacing: .14em;
  color: #0d9488; text-transform: uppercase;
}
h1.brand { font-size: 24px; letter-spacing: .12em; margin: 26px 0 6px; }
h1.question, .question { font-size: 30px; font-weight: 700; line-height: 1.3; margin: 6px 0 22px; }
.subtext { font-size: 21px; color: #334155; margin: 0 0 24px; }
.smallnote { font-size: 17px; color: #64748b; margin-top: 16px; }

/* buttons */
.btn-opt {
  display: block; width: 100%; min-height: 66px;
  font-size: 22px; font-weight: 600; color: #0f172a; text-align: left;
  background: #fff; border: 2px solid #cbd5e1; border-radius: 14px;
  padding: 17px 20px; margin: 13px 0; cursor: pointer;
  transition: border-color .12s, background .12s;
}
.btn-opt:hover, .btn-opt:focus-visible { border-color: #0d9488; }
.btn-opt.selected { border-color: #0d9488; background: #f0fdfa; }
.btn-opt:disabled { opacity: .45; cursor: default; }
.btn-primary {
  display: block; width: 100%; min-height: 70px;
  font-size: 24px; font-weight: 700; color: #fff; text-align: center;
  background: #0d9488; border: none; border-radius: 14px;
  padding: 19px 22px; margin: 22px 0 8px; cursor: pointer;
}
.btn-primary:hover { background: #0f766e; }
.btn-primary:disabled { background: #99b8b4; cursor: default; }
.btn-cta {
  display: block; width: 100%; min-height: 76px;
  font-size: 25px; font-weight: 800; color: #fff; text-align: center; text-decoration: none;
  background: #0d9488; border: none; border-radius: 14px;
  padding: 22px; margin: 20px 0 8px; cursor: pointer;
}
.btn-cta:hover { background: #0f766e; }

/* timer bar */
.timerwrap { margin: 18px 0 8px; }
.timerbar { height: 12px; background: #eef2f6; border-radius: 6px; overflow: hidden; }
.timerbar .tfill { height: 100%; width: 100%; background: #f59f00; border-radius: 6px; }
.timerlabel { font-size: 16px; color: #64748b; margin-top: 6px; }

/* images */
.qimg { display: block; width: 100%; max-width: 440px; margin: 0 auto 20px; border: 1px solid #e2e8f0; border-radius: 12px; }
.qsvg { display: block; width: 100%; max-width: 460px; margin: 0 auto 20px; border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; }

/* word list */
.word-list { font-size: 36px; font-weight: 800; text-align: center; line-height: 1.9; letter-spacing: .04em; margin: 26px 0; }

/* word grid */
.grid-words { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0; }
.grid-words .btn-opt { margin: 0; text-align: center; font-size: 23px; }

/* stroop */
.stroop-word { font-size: 74px; font-weight: 900; text-align: center; margin: 44px 0; letter-spacing: .03em; }
.color-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.color-grid .btn-opt { margin: 0; display: flex; align-items: center; gap: 14px; }
.swatch { width: 30px; height: 30px; border-radius: 50%; flex: none; border: 1px solid rgba(0,0,0,.15); }

/* trail */
.trail-area { position: relative; height: 400px; border: 2px dashed #e2e8f0; border-radius: 14px; margin: 16px 0; }
.trail-btn {
  position: absolute; width: 76px; height: 76px; border-radius: 50%;
  font-size: 30px; font-weight: 800; color: #0f172a;
  background: #fff; border: 3px solid #b8c0cc; cursor: pointer;
}
.trail-btn.done { background: #0d9488; border-color: #0d9488; color: #fff; }
.trail-btn.shake { animation: shake .3s; border-color: #d92d20; }
@keyframes shake { 0%,100%{transform:translateX(0)} 25%{transform:translateX(-6px)} 75%{transform:translateX(6px)} }

/* letters grid */
.letters-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 18px 0; }
.letter-btn {
  min-height: 60px; font-size: 30px; font-weight: 800;
  background: #fff; border: 2px solid #cbd5e1; border-radius: 12px; cursor: pointer; color: #0f172a;
}
.letter-btn.selected { background: #0d9488; border-color: #0d9488; color: #fff; }

/* payoff interstitials */
.payoff { font-size: 26px; line-height: 1.6; margin: 30px 0; font-weight: 600; }
.payoff em { color: #0d9488; font-style: normal; }

/* analyzing */
.analyzing { text-align: center; margin-top: 70px; }
.analyzing .msg { font-size: 26px; font-weight: 600; min-height: 76px; }
.spinner { margin: 34px auto; width: 56px; height: 56px; border: 6px solid #eef2f6; border-top-color: #0d9488; border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* results pitch */
.subhead { font-size: 26px; font-weight: 800; margin: 30px 0 12px; line-height: 1.3; }
.pitch p { font-size: 21px; line-height: 1.6; margin: 0 0 20px; color: #334155; }

/* results */
.verdict-label { font-size: 22px; color: #334155; margin-top: 22px; }
.verdict-age { font-size: 84px; font-weight: 900; color: #0d9488; line-height: 1.1; }
.verdict-sub { font-size: 24px; font-weight: 700; margin: 4px 0 20px; }
.scorecard { border: 2px solid #e2e8f0; border-radius: 14px; padding: 20px; margin: 22px 0; }
.scorecard .row { display: flex; justify-content: space-between; font-size: 21px; padding: 8px 0; border-bottom: 1px solid #eef2f6; }
.scorecard .row:last-child { border-bottom: none; }
.scorecard .row b { font-size: 21px; }
.pattern-block { background: #f0fdfa; border-radius: 14px; padding: 22px; margin: 22px 0; font-size: 21px; }
.pattern-block p { margin: 0 0 16px; }
.pattern-block p:last-child { margin: 0; }
.offer { border: 3px solid #1a7f37; border-radius: 16px; padding: 24px 20px; margin: 26px 0; }
.offer h2 { font-size: 27px; margin-bottom: 6px; }
.offer .price { font-size: 24px; font-weight: 800; color: #1a7f37; margin-bottom: 14px; }
.offer ul { list-style: none; margin: 0 0 6px; }
.offer li { font-size: 20px; padding: 7px 0 7px 34px; position: relative; }
.offer li::before { content: "✓"; position: absolute; left: 4px; color: #1a7f37; font-weight: 800; }
.countdown-pill {
  display: inline-block; background: #fdecec; color: #b42318; font-weight: 800;
  font-size: 20px; padding: 10px 18px; border-radius: 999px; margin: 6px 0 12px;
}
.faq { margin: 26px 0; }
.faq h3 { font-size: 21px; margin: 16px 0 4px; }
.faq p { font-size: 19px; color: #334155; }

.overlay {
  position: fixed; inset: 0; background: rgba(255,255,255,.97); z-index: 50;
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 30px;
}
.overlay .inner { max-width: 480px; }

.trustline { text-align: center; font-size: 17px; color: #64748b; margin-top: 10px; }
footer.disclaimer { margin-top: 54px; font-size: 14px; color: #94a3b8; line-height: 1.5; }
.center { text-align: center; }

/* micro-flag ("we spotted this") */
.microflag {
  background: #f0fdfa; border-left: 4px solid #0d9488; color: #0f766e;
  font-size: 17px; font-weight: 600; padding: 11px 14px; border-radius: 8px; margin: 0 0 16px;
}

/* sticky session banner (results) */
.session-banner {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  background: #0d9488; color: #fff; text-align: center;
  font-size: 18px; font-weight: 700; padding: 13px 16px;
}
.session-banner b { color: #ffd43b; }
body.has-banner .wrap { padding-top: 74px; }

/* memory-age teaser */
.teaser { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 26px 0; }
.teaser .tface { text-align: center; }
.teaser .tcircle {
  width: 92px; height: 92px; border-radius: 50%; background: #f2f4f7; border: 2px solid #cbd5e1;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; font-weight: 900; color: #334155; margin: 0 auto 8px;
}
.teaser .you .tcircle { border: 3px dashed #0d9488; background: #f0fdfa; color: #0d9488; font-size: 42px; }
.teaser .tlabel { font-size: 16px; color: #64748b; font-weight: 600; }

/* proof strip */
.proof-strip { background: #f0fdfa; border-radius: 14px; padding: 16px 18px; margin: 18px 0; font-size: 19px; }
.proof-strip b { color: #0d9488; }

/* trust block */
.trust-block { border: 2px solid #e2e8f0; border-radius: 14px; padding: 20px; margin: 22px 0; }
.trust-block h3 { font-size: 16px; letter-spacing: .1em; color: #64748b; margin-bottom: 6px; text-transform: uppercase; }
.trust-row { display: flex; gap: 12px; margin: 14px 0 0; font-size: 19px; color: #334155; }
.trust-row .ticon {
  flex: none; width: 30px; height: 30px; border-radius: 50%; background: #f0fdfa; color: #0d9488;
  font-weight: 800; display: flex; align-items: center; justify-content: center;
}

/* testimonial cards */
.tcard { border: 2px solid #e2e8f0; border-radius: 14px; padding: 18px; margin: 14px 0; background: #fff; }
.tcard .thead { display: flex; justify-content: space-between; align-items: baseline; font-size: 18px; font-weight: 700; gap: 10px; }
.tcard .stars { color: #f59f00; letter-spacing: 2px; white-space: nowrap; }
.tcard .tverified { color: #1a7f37; font-size: 15px; font-weight: 700; margin: 2px 0 8px; }
.tcard p { font-size: 19px; color: #334155; }
.tcard .tloc { font-size: 15px; color: #94a3b8; margin-top: 8px; }

/* analyzing v2 */
.calc-pct { font-size: 20px; font-weight: 800; color: #0d9488; text-align: right; max-width: 440px; margin: 18px auto 0; }
.calc-bar { height: 12px; background: #eef2f6; border-radius: 6px; max-width: 440px; margin: 6px auto; overflow: hidden; }
.calc-bar .cfill { height: 100%; width: 0; background: #0d9488; transition: width .25s linear; }
.check-list { max-width: 440px; margin: 18px auto 8px; text-align: left; }
.check-item { display: flex; align-items: center; gap: 12px; font-size: 20px; padding: 9px 0; color: #94a3b8; }
.check-item.done { color: #0f172a; font-weight: 600; }
.check-item .cbox {
  width: 27px; height: 27px; border-radius: 50%; border: 2px solid #cbd5e1; flex: none;
  text-align: center; font-size: 16px; line-height: 24px; font-weight: 800;
}
.check-item.done .cbox { background: #1a7f37; border-color: #1a7f37; color: #fff; }

/* modal */
.modal-back {
  position: fixed; inset: 0; background: rgba(22,24,29,.5); z-index: 40;
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.modal { background: #fff; border-radius: 16px; padding: 26px 22px; max-width: 430px; width: 100%; text-align: center; }
.modal .micon {
  width: 54px; height: 54px; border-radius: 50%; margin: 0 auto 12px; background: #fff4e0;
  display: flex; align-items: center; justify-content: center; font-size: 26px;
}
.modal h4 { font-size: 23px; margin-bottom: 10px; line-height: 1.3; }
.modal p { font-size: 19px; color: #334155; margin-bottom: 6px; }
.modal .msafe { border: 1px solid #e2e8f0; border-radius: 10px; padding: 10px 12px; font-size: 17px; color: #64748b; margin: 14px 0 4px; }
.modal .btn-primary { margin: 12px 0 0; }
.modal-row { display: flex; gap: 12px; }
.modal-row .btn-primary { flex: 1; }
.btn-ghost { background: #fff !important; color: #0f172a !important; border: 2px solid #cbd5e1 !important; }

/* offer card rows */
.offer-rows { border: 2px solid #e2e8f0; border-radius: 12px; margin: 14px 0; background: #fff; }
.offer-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 13px 14px; border-bottom: 1px solid #eef2f6; font-size: 19px; }
.offer-row:last-child { border-bottom: none; }
.badge-inc { flex: none; background: #e7f5ec; color: #1a7f37; font-size: 15px; font-weight: 800; padding: 4px 10px; border-radius: 999px; }

/* locked report preview */
.locked-wrap { position: relative; border: 2px solid #e2e8f0; border-radius: 14px; overflow: hidden; margin: 22px 0; background: #fbf8f2; }
.locked-page { filter: blur(7px); padding: 26px 22px; user-select: none; pointer-events: none; }
.locked-page h4 { font-size: 22px; margin-bottom: 10px; }
.locked-page p { font-size: 18px; color: #334155; margin-bottom: 10px; }
.locked-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.locked-chip {
  background: #fff; border-radius: 12px; padding: 16px 22px; font-weight: 700; font-size: 19px;
  box-shadow: 0 4px 18px rgba(0,0,0,.14); display: flex; align-items: center; gap: 10px;
}
.receipts { font-size: 17px; color: #64748b; background: #f0fdfa; border-radius: 10px; padding: 12px 14px; margin: 4px 0 18px; }

/* institution strip (logos rendered grayscale, press-strip treatment) */
.inst-strip { margin-top: 34px; text-align: center; }
.inst-label {
  font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: #94a3b8; margin-bottom: 14px;
}
.inst-logos { display: flex; align-items: center; justify-content: center; gap: 30px; flex-wrap: wrap; }
.inst-logos img {
  height: 34px; width: auto; max-width: 150px;
  filter: grayscale(1) brightness(0.55); opacity: .55;
}
.brain-caps {
  display: flex; justify-content: space-around; font-size: 18px; font-weight: 800;
  margin: 0 0 20px; font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
}

.gauge-wrap { margin: 12px auto 6px; max-width: 330px; }
.gauge-wrap svg { display: block; width: 100%; }

/* results hero (v4 — focused reveal) */
.hero-age { display: flex; align-items: center; justify-content: center; gap: 26px; margin: 32px 0 20px; }
.hero-end .hero-num {
  width: 74px; height: 74px; border-radius: 50%; background: #f2f4f7; border: 2px solid #cbd5e1;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 800; color: #94a3b8;
}
.hero-you { text-align: center; }
.hero-q {
  width: 156px; height: 156px; border-radius: 50%; border: 4px dashed #0d9488;
  background: #f0fdfa; color: #0d9488; font-size: 80px; font-weight: 900;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 10px;
}
.hero-label { font-size: 18px; font-weight: 800; color: #0d9488; letter-spacing: .12em; }
.spot-row {
  display: flex; gap: 14px; align-items: baseline;
  font-size: 22px; line-height: 1.5; padding: 16px 18px;
  border: 2px solid #e2e8f0; border-radius: 12px; margin: 12px 0;
}
.spot-row .spot-n { flex: none; font-weight: 900; color: #0d9488; font-size: 22px; }

/* mixed-signal reaction beats */
.beat { text-align: center; padding: 64px 0 44px; }
.beat-ic {
  width: 88px; height: 88px; border-radius: 50%; margin: 0 auto 22px;
  display: flex; align-items: center; justify-content: center;
}
.beat-ic svg { width: 42px; height: 42px; fill: none; stroke-width: 2; }
.beat-good .beat-ic { background: #f0fdfa; }
.beat-good .beat-ic svg { stroke: #0d9488; }
.beat-warn .beat-ic { background: #fff8e6; }
.beat-warn .beat-ic svg { stroke: #b45309; }
.beat-msg {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 24px; font-weight: 600; line-height: 1.5; max-width: 480px; margin: 0 auto;
}
.beat-warn .beat-msg { color: #92400e; }
.beat-good .beat-msg { color: #0f172a; }

/* landing proof wall */
.proof-wall { margin-top: 36px; }
.proof-wall h3 {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 22px; text-align: center; margin-bottom: 16px;
}
.pcard { border: 1px solid #e2e8f0; border-radius: 14px; padding: 14px 16px; margin: 10px 0; display: flex; gap: 14px; align-items: flex-start; background: #fff; }
.pcard img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; border: 1px solid #e2e8f0; }
.pcard .pwho { font-size: 17px; font-weight: 700; }
.pcard .pcity { font-size: 15px; color: #64748b; font-weight: 400; }
.pcard .pstars { color: #f59f00; font-size: 14px; letter-spacing: 2px; }
.pcard p { font-size: 18px; color: #334155; margin-top: 4px; }

img.tava { object-fit: cover; }

#prot { min-height: 170px; }
#prot.fadein, .fadein { animation: fadein .45s ease; }
