/* Shared inner-page layout: MindFlow's spacious structure in Betterself navy and teal. */
.mf-subpage {
  --mf-ground: #0b1a2e;
  --mf-raised: #10223a;
  --mf-card: #13233b;
  --mf-ink: #f4fafa;
  --mf-muted: #c1d0dd;
  --mf-subtle: #a0b3cc;
  --mf-accent: #00bfa5;
  --mf-line: rgba(151, 214, 207, .14);
  background: var(--mf-ground);
  color: var(--mf-ink);
  overflow-x: hidden;
}
.mf-subpage #main-nav,
.mf-subpage #main-nav.scrolled {
  background: rgba(11, 26, 46, .96) !important;
  border-color: var(--mf-line);
  box-shadow: none;
}
.mf-subpage #main-nav > div,
.mf-subpage footer > div { max-width: 1296px; }
.mf-subpage #main-nav img[src$="betterself-logo.png"],
.mf-subpage footer img[src$="betterself-logo.png"] {
  filter: brightness(3);
  mix-blend-mode: normal !important;
}
.mf-subpage #main-nav a[aria-current="page"] { color: #90e8d8; }
.mf-subpage #menu-toggle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border-color: rgba(0, 191, 165, .45);
  background: var(--mf-accent);
  color: var(--mf-ground);
}
.mf-subpage #mobile-menu { background: var(--mf-card); border-color: var(--mf-line); }
.mf-subpage #mobile-menu a[aria-current="page"] { color: #90e8d8; }
.mf-subpage a:focus-visible,
.mf-subpage button:focus-visible,
.mf-subpage input:focus-visible {
  outline: 3px solid var(--mf-accent);
  outline-offset: 3px;
}
.mf-subpage .btn-primary {
  min-height: 50px;
  border-radius: 12px;
  background: var(--mf-accent);
  color: var(--mf-ground);
  font-weight: 700;
  border: 1px solid rgba(93, 231, 208, .75);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2);
}
.mf-subpage .btn-primary:hover { background: #07b3a2; }
.mf-subpage .btn-ghost {
  min-height: 50px;
  border-radius: 12px;
  border-color: rgba(0, 191, 165, .36);
  background: rgba(0, 191, 165, .08);
  color: var(--mf-ink);
}
.mf-subpage .btn-ghost:hover { border-color: var(--mf-accent); }

/* Every destination starts with the same wide hero rhythm as the homepage. */
.mf-page-hero {
  position: relative;
  overflow: hidden;
  padding: 110px 24px 90px;
  background:
    radial-gradient(ellipse 42% 62% at 84% 38%, rgba(0,191,165,.18), transparent 72%),
    repeating-linear-gradient(90deg, transparent 0 83px, rgba(255,255,255,.023) 84px 85px),
    repeating-linear-gradient(0deg, transparent 0 83px, rgba(255,255,255,.023) 84px 85px),
    var(--mf-ground);
}
.mf-page-hero-inner {
  max-width: 1296px;
  margin: 0 auto;
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(0,1.02fr) minmax(0,.98fr);
  align-items: center;
  gap: clamp(42px, 6vw, 100px);
}
.mf-page-eyebrow,
.mf-section-eyebrow {
  display: inline-block;
  color: #90e8d8;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.mf-page-eyebrow {
  padding: 9px 15px;
  border: 1px solid rgba(0,191,165,.3);
  border-radius: 99px;
  background: rgba(0,191,165,.1);
  margin: 0 0 25px;
}
.mf-page-hero h1,
.mf-subpage .blog-wrap .mf-page-hero h1 {
  max-width: 740px;
  margin: 0 0 23px;
  color: var(--mf-ink);
  font-size: clamp(3rem, 5.4vw, 5.4rem);
  font-weight: 500;
  letter-spacing: -.055em;
  line-height: 1.06;
}
.mf-page-hero .text-gradient { color: var(--mf-accent); }
.mf-page-hero .lede,
.mf-page-hero .mf-hero-lede {
  max-width: 625px;
  margin: 0 0 27px;
  color: var(--mf-muted);
  font-size: clamp(1rem, 1.5vw, 1.16rem);
  line-height: 1.65;
}
.mf-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.mf-hero-art {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(0,191,165,.22), transparent 65%);
}
.mf-hero-art > img {
  width: clamp(220px, 24vw, 290px);
  height: auto;
  border: 8px solid #081324;
  border-radius: 37px;
  box-shadow: 0 36px 76px rgba(0,0,0,.5);
  outline: 1px solid rgba(114,233,208,.4);
  transform: rotate(5deg);
}
.mf-art-note {
  position: absolute;
  left: 0;
  bottom: 11%;
  max-width: 225px;
  padding: 18px 20px;
  border: 1px solid rgba(0,191,165,.3);
  border-radius: 18px;
  background: rgba(19,35,59,.94);
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
}
.mf-art-note span { display: block; color: #90e8d8; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.mf-art-note strong { display: block; margin: 5px 0 0; color: var(--mf-ink); font-size: 18px; line-height: 1.3; }

/* About */
.mf-about .awrap { max-width: 1296px; padding: 90px 24px 105px; }
.mf-about .awrap h2 {
  margin: 90px 0 22px;
  color: var(--mf-ink);
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  font-weight: 500;
  letter-spacing: -.04em;
  line-height: 1.12;
}
.mf-about .awrap h3 { color: var(--mf-ink); font-size: 1.3rem; font-weight: 600; }
.mf-about .awrap p { color: var(--mf-muted); }
.mf-about-story {
  max-width: 1060px;
  margin: 0 auto 90px;
  padding: clamp(30px, 5vw, 64px);
  border: 1px solid var(--mf-line);
  border-radius: 28px;
  background: var(--mf-card);
}
.mf-about .mf-about-story h2 { margin: 14px 0 27px; }
.mf-about-story > p:not(.mf-section-eyebrow) { max-width: 820px; }
.mf-about .values,
.mf-about .work-row { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; margin: 30px 0 0; }
.mf-about .value-card,
.mf-about .work-card,
.mf-about .trust-card {
  background: var(--mf-card);
  border: 1px solid var(--mf-line);
  border-radius: 22px;
  padding: 28px;
}
/* Oct 2026: the beliefs were numbered 01-03, but they are not a sequence.
   Each now wears its role chip (app-pieces.css): privacy is a boundary
   (blue), no judgement is about you (mint), real change is progress
   (gold). */
.mf-about .value-card { min-height: 245px; }
.mf-about .value-card .mf-chip,
.mf-about .work-card .mf-chip { margin-bottom: 22px; }
.mf-about .trust-card .mf-chip { margin: 0 auto 14px; }
.mf-about .value-card p,
.mf-about .work-card p,
.mf-about .trust-card p { color: var(--mf-muted); }
.mf-about .pledge {
  margin-top: 28px;
  padding: clamp(32px, 5vw, 60px);
  border-radius: 26px;
  background: radial-gradient(ellipse at 100% 0, rgba(0,191,165,.19), transparent 55%), var(--mf-card);
}
.mf-about .pledge h3 { font-size: clamp(1.6rem,2.5vw,2.5rem); }
.mf-about .trust-row { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; margin: 30px 0; }
.mf-about .trust-card { min-height: 162px; }
.mf-about .cta-block { margin-top: 90px; padding: clamp(42px,6vw,80px) 24px; border-radius: 28px; }

/* Professionals */
.mf-professionals .pwrap { max-width: 1296px; padding: 92px 24px 108px; }
.mf-professionals .mf-audience-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; }
.mf-professionals .aud-card {
  display: flex;
  flex-direction: column;
  min-height: 540px;
  margin: 0;
  padding: 32px;
  border: 1px solid var(--mf-line);
  border-radius: 24px;
  background: var(--mf-card);
}
/* Oct 2026: 01-03 numbered three audiences that are not a sequence; each
   now wears its role chip beside its name (app-pieces.css). */
.mf-professionals .aud-card > .mf-card-num { display: flex; align-items: center; gap: 12px; color: var(--mf-ink); font-size: 13px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; margin-bottom: 32px; }
.mf-professionals .aud-card h2 { color: var(--mf-ink); font-size: clamp(1.6rem,2.2vw,2.25rem); font-weight: 600; line-height: 1.2; margin: 0 0 18px; }
.mf-professionals .aud-card p,
.mf-professionals .aud-card ul { color: var(--mf-muted); }
.mf-professionals .aud-card ul { padding-left: 18px; }
.mf-professionals .aud-card .aud-cta { margin-top: auto; padding-top: 30px; line-height: 2; }
.mf-professionals .indep-block { padding: 40px; border-radius: 24px; margin-top: 32px; background: var(--mf-card); }
.mf-professionals .cta-block { margin-top: 28px; padding: clamp(40px,6vw,76px) 24px; border-radius: 26px; background: radial-gradient(ellipse at 0 0,rgba(0,191,165,.18),transparent 58%),var(--mf-card); }
.mf-professionals .cta-block .btn-primary { max-width: 100%; overflow-wrap: anywhere; }

/* Support */
.mf-support .mf-page-hero-inner { min-height: 500px; }
.mf-support .mf-help-card {
  max-width: 480px;
  justify-self: center;
  padding: clamp(30px,4vw,50px);
  border: 1px solid rgba(0,191,165,.3);
  border-radius: 28px;
  background: radial-gradient(ellipse at 100% 0,rgba(0,191,165,.18),transparent 60%),var(--mf-card);
  box-shadow: 0 28px 60px rgba(0,0,0,.25);
}
.mf-help-card .mf-section-eyebrow { margin-bottom: 20px; }
.mf-help-card h2 { color: var(--mf-ink); font-size: clamp(1.8rem,2.8vw,2.6rem); line-height: 1.18; font-weight: 600; margin: 0 0 14px; }
.mf-help-card p { color: var(--mf-muted); font-size: 15px; line-height: 1.65; margin: 0 0 25px; }
.mf-help-card .btn-primary { width: 100%; justify-content: center; text-align: center; }
.mf-support .swrap { max-width: 1296px; padding: 90px 24px 110px; }
.mf-support .mf-topic-heading { margin: 10px 0 32px; color: var(--mf-ink); font-size: clamp(2.25rem,4vw,3.5rem); font-weight: 500; letter-spacing: -.04em; line-height: 1.12; }
.mf-support .cat-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; margin-bottom: 110px; }
.mf-support .cat-card { display: block; min-height: 230px; padding: 28px; border: 1px solid var(--mf-line); border-radius: 22px; background: var(--mf-card); }
.mf-support .cat-card .mf-chip { margin-bottom: 25px; }
.mf-support .cat-card h3 { color: var(--mf-ink); font-size: 1.25rem; font-weight: 600; }
.mf-support .cat-card p { color: var(--mf-muted); font-size: 14px; }
.mf-support #faq { max-width: 980px; margin: 0 auto; }
.mf-support .faq-h2 { color: var(--mf-ink); font-size: clamp(2.25rem,4vw,3.5rem); font-weight: 500; letter-spacing: -.04em; margin-bottom: 35px; }
.mf-support .faq-item { margin-bottom: 12px; padding: 26px 30px; border: 1px solid var(--mf-line); border-radius: 18px; background: var(--mf-card); }
.mf-support .faq-item:last-of-type { border-bottom: 1px solid var(--mf-line); }
.mf-support .faq-item h3 { color: var(--mf-ink); font-size: 1.12rem; }
.mf-support .faq-item p { color: var(--mf-muted); }
.mf-support .crisis-banner { max-width: 980px; margin: 90px auto 0; padding: clamp(36px,5vw,64px); border-radius: 26px; }

/* Learn */
.mf-learn .blog-wrap { max-width: 1296px; padding: 0 24px 110px; }
.mf-learn .mf-page-hero { padding-left: 0; padding-right: 0; }
.mf-learn .mf-page-hero-inner { min-height: 500px; }
.mf-learn .mf-topic-map { width: 100%; padding: 30px; border: 1px solid var(--mf-line); border-radius: 26px; background: var(--mf-card); }
.mf-topic-map > p { margin: 0 0 18px; color: #90e8d8; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.mf-topic-map a { display: flex; gap: 17px; align-items: center; min-height: 75px; padding: 16px 8px; border-top: 1px solid var(--mf-line); color: var(--mf-ink); text-decoration: none; font-size: 20px; font-weight: 600; line-height: 1.25; }
.mf-topic-map a:hover { color: #90e8d8; }
.mf-topic-map a span { color: var(--mf-accent); font-size: 13px; font-weight: 700; letter-spacing: .1em; }
.mf-learn .mf-post-section { margin: 78px 0 0; }
.mf-learn .cat-head { margin: 0 0 25px; padding: 0 0 16px; border-color: var(--mf-line); color: #90e8d8; font-size: 13px; }
.mf-learn .mf-post-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; }
.mf-learn .mf-post-grid--two { grid-template-columns: repeat(2,minmax(0,1fr)); }
.mf-learn .mf-post-grid--one { grid-template-columns: minmax(0,1fr); }
.mf-learn .post-card { display: flex; flex-direction: column; min-height: 380px; margin: 0; padding: 32px; border: 1px solid var(--mf-line); border-radius: 24px; background: var(--mf-card); }
.mf-learn .post-card:hover { border-color: rgba(0,191,165,.5); }
.mf-learn .post-card h2 { color: var(--mf-ink); font-size: clamp(1.4rem,1.9vw,1.8rem); font-weight: 600; line-height: 1.25; }
.mf-learn .post-card p { color: var(--mf-muted); }
.mf-learn .post-card .meta { margin-top: auto; padding-top: 25px; color: var(--mf-subtle); }
.mf-learn .post-card .read-more { margin-top: 12px; }
.mf-learn .post-card .pill { align-self: flex-start; color: #90e8d8; }

.mf-subpage footer { background: #081324 !important; border-color: var(--mf-line) !important; margin-top: 0 !important; }

@media (max-width: 991px) {
  .mf-page-hero-inner { grid-template-columns: 1fr; min-height: 0; text-align: center; gap: 20px; }
  .mf-page-hero h1,
  .mf-page-hero .lede,
  .mf-page-hero .mf-hero-lede { margin-left: auto; margin-right: auto; }
  .mf-hero-actions { justify-content: center; }
  .mf-hero-art { min-height: 440px; }
  .mf-art-note { left: calc(50% - 230px); bottom: 8%; }
  .mf-professionals .mf-audience-grid { grid-template-columns: 1fr 1fr; }
  .mf-professionals .aud-card:last-child { grid-column: 1 / -1; min-height: 0; }
  .mf-support .cat-grid { grid-template-columns: 1fr 1fr; }
  .mf-learn .mf-post-grid { grid-template-columns: 1fr 1fr; }
  .mf-learn .mf-post-grid--one { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .mf-page-hero { padding: 78px 16px 55px; }
  .mf-page-hero h1,
  .mf-subpage .blog-wrap .mf-page-hero h1 { font-size: clamp(2.4rem,8vw,3.4rem); }
  .mf-hero-art { min-height: 390px; }
  .mf-hero-art > img { width: 210px; }
  .mf-art-note { left: 0; bottom: 0; max-width: 180px; padding: 13px 15px; }
  .mf-art-note strong { font-size: 15px; }
  .mf-about .awrap,
  .mf-professionals .pwrap,
  .mf-support .swrap { padding: 65px 16px 80px; }
  .mf-about .mf-about-story { padding: 28px 24px; }
  .mf-about .awrap h2 { margin-top: 70px; }
  .mf-about .values,
  .mf-about .work-row,
  .mf-about .trust-row,
  .mf-professionals .mf-audience-grid,
  .mf-support .cat-grid,
  .mf-learn .mf-post-grid,
  .mf-learn .mf-post-grid--two { grid-template-columns: 1fr; }
  .mf-professionals .aud-card,
  .mf-professionals .aud-card:last-child { min-height: 0; grid-column: auto; }
  .mf-support .cat-card { min-height: 0; }
  .mf-learn .blog-wrap { padding: 0 16px 80px; }
  .mf-learn .mf-page-hero { padding-top: 78px; }
  .mf-learn .post-card { min-height: 0; }
}
@media (max-width: 360px) {
  .mf-professionals .cta-block .btn-primary { font-size: 14px; padding-inline: 12px; }
  .mf-professionals .cta-block .btn-primary svg { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .mf-subpage .btn-primary,
  .mf-subpage .btn-ghost,
  .mf-subpage .cat-card,
  .mf-subpage .post-card { transition: none !important; }
}
