/* Brain Regen — shared brand design system for funnel pages
   Deliberately single light theme: bright brand, audience skews 55+, high legibility. */

@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/Poppins-Regular.ttf") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/Poppins-SemiBold.ttf") format("truetype");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/Poppins-Bold.ttf") format("truetype");
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --ground: #FCFBFF;
  --ground-tint: #F3EEFD;
  --card: #FFFFFF;
  --ink: #0B0620;
  --ink-soft: #4A4560;
  --muted: #726C86;
  --violet: #451ACB;
  --violet-deep: #260F71;
  --violet-bright: #744FE8;
  --lavender: #C9BBF6;
  --lavender-100: #EDE8FC;
  --warm: #E29A4A;
  --warm-bg: #FBEEDC;
  --line: #E7E0F7;
  --shadow: 0 18px 48px -24px rgba(38, 15, 113, 0.35);
  --shadow-sm: 0 8px 24px -16px rgba(38, 15, 113, 0.4);
  --radius: 18px;
  --radius-sm: 12px;
  --measure: 42rem;
  --maxw: 1080px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { font-family: "Poppins", sans-serif; font-weight: 700; line-height: 1.12; letter-spacing: -0.01em; text-wrap: balance; margin: 0; color: var(--ink); }
h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); }
h2 { font-size: clamp(1.65rem, 3.4vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
p { margin: 0; }
a { color: var(--violet); }
img { max-width: 100%; display: block; }

/* Layout primitives */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(48px, 8vw, 96px) 0; }
.section--tint { background: var(--ground-tint); }
.section--deep { background: linear-gradient(160deg, var(--violet-deep), #150845); color: #fff; }
.section--deep h1, .section--deep h2, .section--deep h3 { color: #fff; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.stack--tight { gap: 12px; }
.center { text-align: center; align-items: center; }
.measure { max-width: var(--measure); }
.center .measure { margin-inline: auto; }

/* Eyebrow / labels */
.eyebrow {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--violet);
}
.section--deep .eyebrow { color: var(--lavender); }

.lead { font-size: 1.15rem; color: var(--ink-soft); }
.section--deep .lead { color: #E4DBFF; }
.muted { color: var(--muted); font-size: 0.95rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(252, 251, 255, 0.9);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 30px; width: auto; }
.brand b { font-family: "Poppins", sans-serif; font-weight: 700; font-size: 1.15rem; color: var(--ink); letter-spacing: -0.01em; }
.brand sup { color: var(--violet); font-size: 0.6em; }
.header-right { display: flex; align-items: center; gap: 16px; }
.header-note { color: var(--muted); font-size: 0.85rem; }
@media (max-width: 620px) { .header-note { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: "Poppins", sans-serif; font-weight: 600; font-size: 1.02rem;
  min-height: 56px; padding: 0 30px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.btn--primary { background: var(--violet); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--violet-deep); transform: translateY(-1px); }
.btn--ghost { background: #fff; color: var(--violet); border-color: var(--lavender); }
.btn--ghost:hover { border-color: var(--violet); }
.btn--sm { min-height: 46px; padding: 0 22px; font-size: 0.95rem; }
.btn--wide { width: 100%; }
:focus-visible { outline: 3px solid var(--violet-bright); outline-offset: 3px; border-radius: 6px; }

/* Chips */
.chip { display: inline-flex; align-items: center; gap: 8px; background: var(--lavender-100); color: var(--violet-deep); font-size: 0.85rem; font-weight: 600; padding: 7px 14px; border-radius: 999px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* Cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(22px, 3vw, 34px); }
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: 1.1fr 0.9fr; align-items: start; }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

/* Tick list */
.ticks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.ticks li { display: grid; grid-template-columns: 30px 1fr; gap: 14px; align-items: start; }
.ticks .mark { width: 28px; height: 28px; border-radius: 50%; background: var(--lavender-100); color: var(--violet); display: grid; place-items: center; font-weight: 700; margin-top: 2px; }
.ticks b { display: block; }

/* Numbered steps (used only where order is real) */
.steps { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); counter-reset: step; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.steps .card { position: relative; }
.step-num { font-family: "Poppins", sans-serif; font-size: 1rem; color: var(--violet); background: var(--lavender-100); width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 14px; }

/* The "yours to keep" feature — the one warm moment */
.keep {
  background: linear-gradient(150deg, #FFFFFF, var(--warm-bg));
  border: 1px solid #F3D9B4; border-radius: var(--radius);
  padding: clamp(26px, 4vw, 44px); box-shadow: var(--shadow);
}
.ribbon { display: inline-flex; align-items: center; gap: 8px; background: var(--warm); color: #3a2408; font-weight: 700; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; padding: 7px 14px; border-radius: 999px; }
.areas { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.areas li { background: #fff; border: 1px solid #F0DDC0; border-radius: 999px; padding: 8px 15px; font-size: 0.92rem; font-weight: 600; color: var(--ink-soft); }

/* Embed frames */
.embed { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.embed-vimeo { position: relative; padding-top: 56.25%; }
.embed-vimeo iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed-cal iframe { width: 100%; min-height: 720px; border: 0; display: block; }
.embed-survey iframe { width: 100%; min-height: 560px; border: 0; display: block; }

/* Appointment recap box */
.appt { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; background: var(--lavender-100); border: 1px solid var(--lavender); border-radius: var(--radius-sm); padding: 18px 22px; }
.appt .k { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--violet); font-weight: 600; }
.appt .v { font-family: "Poppins", sans-serif; font-size: 1.05rem; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--violet); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq p { margin-top: 12px; color: var(--ink-soft); max-width: var(--measure); }

/* Progress rail (shows the person where they are in the flow) */
.progress { display: flex; align-items: center; gap: 0; justify-content: center; flex-wrap: wrap; margin: 0 auto; }
.progress .node { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 0.85rem; font-weight: 600; }
.progress .dot { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--lavender); display: grid; place-items: center; font-size: 0.8rem; background: #fff; }
.progress .node.done .dot { background: var(--violet); border-color: var(--violet); color: #fff; }
.progress .node.active .dot { border-color: var(--violet); color: var(--violet); }
.progress .node.active { color: var(--violet); }
.progress .bar { width: 46px; height: 2px; background: var(--lavender); margin: 0 12px; }
@media (max-width: 620px) { .progress .bar { width: 20px; margin: 0 6px; } .progress .node span { display: none; } }

/* Disclosure footer */
.site-footer { background: #0C0722; color: #B9B2D6; font-size: 0.86rem; line-height: 1.6; padding: 40px 0; }
.site-footer .wrap { display: flex; flex-direction: column; gap: 14px; }
.site-footer strong { color: #EDE8FC; }
.site-footer .legal { color: #8B84A8; }
.site-footer a { color: #C9BBF6; text-decoration: underline; text-underline-offset: 2px; }
.site-footer a:hover { color: #fff; }
.site-footer .tag { font-family: "Poppins", sans-serif; color: #fff; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* Test banner (only for local/staging preview; removed in production) */
.testbar { background: #1c1140; color: #EDE8FC; font-size: 0.8rem; text-align: center; padding: 7px 16px; letter-spacing: 0.02em; }
.testbar b { color: #fff; }

/* Centered logo-only header */
.site-header--center .wrap { justify-content: center; }

/* Hero split (copy + image) */
.hero-split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 5vw, 60px); align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.hero-copy h1, .hero-copy p { text-align: left; }
.hero-media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); display: block; aspect-ratio: 1 / 1; object-fit: cover; }
@media (max-width: 860px) {
  .hero-split { grid-template-columns: 1fr; }
  .hero-copy { align-items: center; }
  .hero-copy h1, .hero-copy p { text-align: center; }
}

/* PDQ reveal tiles */
.pdq-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 860px) { .pdq-tiles { grid-template-columns: repeat(2, 1fr); } }
.pdq-tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); padding: 18px 16px; display: flex; flex-direction: column; gap: 5px; }
.pdq-tile .pt-k { font-family: "Poppins", sans-serif; font-size: 0.7rem; color: var(--violet); letter-spacing: 0.08em; }
.pdq-tile h3 { font-size: 1rem; line-height: 1.2; }
.pdq-tile p { font-size: 0.85rem; color: var(--muted); line-height: 1.45; }

/* Five types — bold full-width rows */
.type-rows { display: flex; flex-direction: column; gap: 16px; }
.type-row { display: grid; grid-template-columns: auto 1fr; gap: clamp(18px, 3vw, 34px); align-items: center; background: #fff; border: 1px solid var(--line); border-left: 6px solid var(--tc, var(--violet)); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: clamp(20px, 3vw, 30px) clamp(20px, 3vw, 34px); }
.type-row .tr-num { font-family: "Poppins", sans-serif; font-size: clamp(2.4rem, 6vw, 3.6rem); color: var(--tc, var(--violet)); line-height: 1; }
.type-row .tr-body { display: flex; flex-direction: column; gap: 5px; }
.type-row .tr-name { font-family: "Poppins", sans-serif; font-weight: 700; font-size: clamp(1.3rem, 2.6vw, 1.65rem); line-height: 1.1; }
.type-row .tr-tag { color: var(--tc, var(--violet)); font-weight: 600; font-size: 0.95rem; }
.type-row .tr-desc { color: var(--ink-soft); font-size: 1rem; line-height: 1.5; max-width: 74ch; }
@media (max-width: 560px) { .type-row { align-items: start; } .type-row .tr-num { font-size: 2.2rem; } }

/* Generic split (copy + image) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 56px); align-items: center; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.split img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); display: block; aspect-ratio: 4 / 3; object-fit: cover; }
.split-copy { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.split-copy h2, .split-copy p { text-align: left; }

/* Pull quote (founder) */
.pullquote { font-family: "Poppins", sans-serif; font-size: 1.12rem; line-height: 1.4; color: var(--violet-deep); border-left: 4px solid var(--violet); padding-left: 18px; }

/* Founder bio */
.bio { display: grid; grid-template-columns: 360px 1fr; gap: 40px; align-items: stretch; }
@media (max-width: 760px) { .bio { grid-template-columns: 1fr; align-items: center; justify-items: center; text-align: center; } }
.bio img { width: 100%; height: 100%; max-width: none; border-radius: var(--radius); box-shadow: var(--shadow); display: block; object-fit: cover; object-position: top center; }
@media (max-width: 760px) { .bio img { height: auto; max-width: 320px; } }
.bio .bio-body { display: flex; flex-direction: column; gap: 14px; justify-content: center; }

/* Button row (two CTAs side by side, e.g. primary + ghost in the hero) */
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
@media (max-width: 860px) { .btn-row { justify-content: center; } .btn-row .btn { flex: 1 1 auto; } }

/* Slim progress band under the header, so the stepper reads the same on every page */
.progress-band { background: #fff; border-bottom: 1px solid var(--line); padding: 18px 0; }

/* Four next-steps as a 2x2 grid (reuses .steps card styling) */
.steps--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .steps--2 { grid-template-columns: 1fr; } }

/* Purple highlight for a word inside a heading */
.hl { color: var(--violet); white-space: nowrap; }
.section--deep .hl { color: var(--lavender); }

/* Width utilities */
.wrap--wide { max-width: 1160px; }
.measure--wide { max-width: 52rem; }
.center .measure--wide { margin-inline: auto; }

/* Sticky progress band (sits just under the sticky header) */
.progress-band--sticky { position: sticky; top: 67px; z-index: 40; }

/* ── v3 page-1 hero refinements ── */
.hero-split { grid-template-columns: 1.05fr 0.95fr; gap: clamp(20px, 3vw, 40px); }
.hero-copy { gap: 20px; }
.hero-copy h1 { font-size: clamp(2rem, 4.2vw, 2.9rem); }
.hero-media { margin-right: -22px; }
@media (max-width: 860px) { .hero-media { margin-right: 0; } }

/* Repeating in-page CTA (keeps the next step in reach as people scroll) */
.cta-inline { display: flex; justify-content: center; margin-top: 8px; }

/* Progress stepper placed on a deep (violet) section */
.section--deep .progress .node { color: #C7BBEF; }
.section--deep .progress .dot { background: transparent; border-color: rgba(255,255,255,0.45); color: #fff; }
.section--deep .progress .node.done .dot { background: #fff; border-color: #fff; color: var(--violet-deep); }
.section--deep .progress .node.active .dot { border-color: #fff; color: #fff; }
.section--deep .progress .node.active { color: #fff; }
.section--deep .progress .bar { background: rgba(255,255,255,0.3); }

/* Visible stand-in for the survey embed until the GHL form is built */
.survey-placeholder { min-height: 540px; display: grid; place-items: center; text-align: center; padding: 48px 28px; }
.survey-placeholder .ph-badge { display: inline-block; background: var(--lavender-100); color: var(--violet-deep); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; padding: 7px 14px; border-radius: 999px; }
.survey-placeholder .ph-title { font-family: "Poppins", sans-serif; font-weight: 700; font-size: 1.4rem; color: var(--ink); margin-top: 16px; }
.survey-placeholder .ph-sub { color: var(--muted); font-size: 0.95rem; max-width: 46ch; margin: 10px auto 0; }
