/* Mindflow MD — mindflow.com */

@font-face {
  font-family: "Playfair Display";
  src: url("fonts/playfair-display.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("fonts/dm-sans.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --charcoal: #23292b;
  --charcoal-2: #2f383b;
  --teal: #0e6a6e;
  --teal-deep: #0a5357;
  --teal-tint: #dcebea;
  --gold: #b8925a;
  --gold-soft: #d8bb85;
  --cream: #f6f1e7;
  --white: #ffffff;
  --ink: #23292b;
  --muted: #566265;
  --line: #e2dccf;
  --on-dark: #e9e4da;
  --on-dark-muted: #b4b9b6;

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --wrap: 1160px;
  --gutter: clamp(20px, 4vw, 40px);
  --section-y: clamp(64px, 9vw, 112px);
  --radius: 6px;

  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
*, *::before, *::after { box-sizing: inherit; }
html { scroll-behavior: smooth; scroll-padding-top: calc(76px + env(safe-area-inset-top, 0px)); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--teal); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--teal-deep); }
sup { font-size: .55em; line-height: 0; vertical-align: .9em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.012em; margin: 0; }
h1 { font-size: clamp(2.35rem, 5.2vw, 3.9rem); line-height: 1.06; }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.65rem); line-height: 1.12; margin-bottom: .55em; }
h3 { font-family: var(--sans); font-size: 1.0625rem; font-weight: 600; line-height: 1.35; margin: 0 0 .5em; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.prose { max-width: 40rem; }
.prose p { color: var(--muted); }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--charcoal); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; }

/* Crisis bar */
.crisis { background: var(--charcoal); color: var(--on-dark-muted); font-size: .8125rem; line-height: 1.45; padding: 9px 0; }
.crisis a { color: var(--gold-soft); font-weight: 600; }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(1.4) blur(8px);
  -webkit-backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 24px; }
.wordmark { font-family: var(--serif); font-size: 1.6rem; font-weight: 500; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; line-height: 1; }
.wordmark span { font-family: var(--sans); font-size: .62rem; font-weight: 600; letter-spacing: .08em; color: var(--gold); margin-left: 5px; vertical-align: .9em; }
.wordmark:hover { color: var(--ink); }
.wordmark-light { color: var(--on-dark); }
.wordmark-light:hover { color: #fff; }

.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a { color: var(--ink); text-decoration: none; font-size: .9375rem; }
.site-nav a:not(.btn):hover { color: var(--teal); }
.menu-btn { display: none; }

/* Buttons */
.btn {
  display: inline-block; font-family: var(--sans); font-weight: 600; font-size: 1rem; line-height: 1.2;
  background: var(--teal); color: #fff; text-decoration: none;
  padding: 15px 24px; border-radius: var(--radius); border: 1px solid var(--teal); cursor: pointer;
}
.btn:hover { background: var(--teal-deep); border-color: var(--teal-deep); color: #fff; }
.site-nav .btn-small { color: #fff; padding: 10px 16px; font-size: .9375rem; }
.btn-quiet { background: transparent; color: var(--teal); }
.btn-quiet:hover { background: var(--teal-tint); color: var(--teal-deep); border-color: var(--teal); }
.btn-gold { background: var(--gold-soft); border-color: var(--gold-soft); color: var(--charcoal); }
.btn-gold:hover { background: #e6cd9d; border-color: #e6cd9d; color: var(--charcoal); }

/* Placeholder tokens to replace before launch */
.fill { background: rgba(184,146,90,.12); outline: 1px dashed var(--gold); outline-offset: 1px; padding: 0 4px; border-radius: 3px; font-weight: 500; }
.section-dark .fill { background: rgba(216,187,133,.12); }

/* Hero */
.hero { padding: clamp(36px, 6vw, 80px) 0 clamp(8px, 2vw, 24px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy h1 { max-width: 13em; }
.lead { font-size: clamp(1.125rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 34em; margin: 28px 0 32px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin: 28px 0 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: .9375rem; color: var(--muted); max-width: 34em; }
.hero-photo { margin: 0; position: relative; }
.hero-photo img { position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 88% center; border-radius: var(--radius); }

/* Sections */
.section { padding: var(--section-y) 0; }
.section-cream { background: var(--cream); }
.section-dark { background: var(--charcoal); color: var(--on-dark); }
.section-dark h2 { color: #fff; }
.section-dark .prose p { color: var(--on-dark-muted); }
.section-dark a { color: var(--gold-soft); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.split-text { align-items: start; }
.side-photo { margin: 0; }
.side-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }

/* Who it's for */
.fit { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(32px, 5vw, 72px); margin-top: clamp(48px, 6vw, 72px); padding-top: 40px; border-top: 1px solid var(--line); }
.fit-note { grid-column: 1 / -1; margin: 24px 0 0; color: var(--muted); font-size: .9375rem; }
ul.ticks, ul.dashes { list-style: none; margin: 0; padding: 0; }
ul.ticks li, ul.dashes li { position: relative; padding: 0 0 0 30px; margin-bottom: 12px; }
ul.ticks li::before { content: ""; position: absolute; left: 2px; top: .42em; width: 13px; height: 7px; border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg); }
ul.dashes li::before { content: ""; position: absolute; left: 2px; top: .8em; width: 14px; height: 1px; background: var(--gold); }

/* Treatment day */
.dayline { margin: clamp(36px, 5vw, 56px) 0 12px; }
.dayline-bar { display: flex; height: 64px; border-radius: var(--radius); overflow: hidden; }
.seg { font-variant-numeric: lining-nums; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 1.35rem; color: var(--charcoal); flex: none; }
.seg-check { width: 9.1%; background: var(--teal-tint); }
.seg-dose { width: 9.1%; background: var(--teal); color: #fff; }
.seg-rest { width: 72.7%; justify-content: flex-start; gap: 16px; padding: 0 22px; background: repeating-linear-gradient(135deg, #efe6d4 0 10px, #f3ecdf 10px 20px); border-top: 1px solid var(--gold); border-bottom: 1px solid var(--gold); }
.seg-rest em { font-family: var(--sans); font-style: normal; font-size: .9375rem; font-weight: 500; color: var(--ink); line-height: 1.25; }
.seg-out { width: 9.1%; background: var(--charcoal); color: var(--gold-soft); }
.dayline-ticks { position: relative; height: 24px; font-size: .8125rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.dayline-ticks span { position: absolute; top: 6px; }
.dayline-ticks span:not(:first-child):not(.tick-r) { transform: translateX(-50%); }
.dayline-ticks .tick-r { transform: translateX(50%); }

ol.day-steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; counter-reset: step; }
ol.day-steps li { counter-increment: step; padding-top: 18px; border-top: 1px solid var(--charcoal); }
ol.day-steps li::before { font-variant-numeric: lining-nums; content: counter(step); display: block; font-family: var(--serif); font-size: 1.5rem; line-height: 1; color: var(--gold); margin-bottom: 12px; }
ol.day-steps p { color: var(--muted); font-size: .9875rem; margin: 0; }

.before { margin-top: clamp(48px, 6vw, 64px); background: var(--white); padding: clamp(24px, 3.5vw, 36px); border-radius: var(--radius); max-width: 46rem; border-left: 3px solid var(--teal); }
.before ul li:last-child { margin-bottom: 0; }

/* Course calendar */
.cal {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr)) minmax(0, 1.7fr);
  column-gap: clamp(6px, 1.4vw, 16px);
  row-gap: 0;
  margin-top: clamp(40px, 5vw, 64px);
  max-width: 920px;
}
.cal-week { display: flex; flex-direction: column; align-items: center; gap: clamp(8px, 1.2vw, 14px); padding: clamp(14px, 2vw, 22px) 0; border-radius: var(--radius); background: var(--charcoal-2); }
.cal-on { background: transparent; outline: 1px dashed rgba(216,187,133,.5); outline-offset: -1px; }
.cal-n { font-family: var(--serif); font-size: clamp(1rem, 2vw, 1.5rem); color: #fff; line-height: 1; margin-bottom: 4px; font-variant-numeric: lining-nums; }
.dot, .slot { display: block; width: clamp(12px, 2.2vw, 22px); height: clamp(12px, 2.2vw, 22px); border-radius: 50%; }
.dot { background: var(--gold-soft); }
.slot { border: 1px solid rgba(233,228,218,.22); }
.slot-maybe { border: 1px dashed var(--gold-soft); }
.cal-phase { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--gold); font-size: .875rem; color: var(--on-dark); line-height: 1.3; }
.cal-note { margin: 32px 0 0; max-width: 40rem; color: var(--on-dark); }

/* One orchestrated moment: sessions fill in when the calendar scrolls into view */
.cal.will-animate .dot { transform: scale(0); opacity: 0; transition: transform .45s cubic-bezier(.2,.8,.3,1.2), opacity .3s ease; transition-delay: var(--d, 0ms); }
.cal.will-animate.is-in .dot { transform: scale(1); opacity: 1; }

/* Cost */
.plans { background: var(--cream); border-radius: var(--radius); padding: clamp(24px, 3.5vw, 36px); border-top: 3px solid var(--gold); }
.fill-block { font-size: 1.0625rem; }
.plans-note { margin: 0; font-size: .9375rem; color: var(--muted); }

/* Providers */
dl.channels { margin: 28px 0 0; display: grid; gap: 0; }
dl.channels > div { display: grid; grid-template-columns: 8.5rem 1fr; padding: 12px 0; border-top: 1px solid var(--line); }
dl.channels > div:last-child { border-bottom: 1px solid var(--line); }
dl.channels dt { font-weight: 600; }
dl.channels dd { margin: 0; }
.refer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); margin-top: clamp(48px, 6vw, 72px); }
ol.next { margin: 0; padding: 0; list-style: none; counter-reset: n; }
ol.next li { counter-increment: n; position: relative; padding: 0 0 14px 40px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
ol.next li:last-child { border-bottom: 0; margin-bottom: 0; }
ol.next li::before { font-variant-numeric: lining-nums; content: counter(n); position: absolute; left: 0; top: 0; font-family: var(--serif); font-size: 1.25rem; line-height: 1.3; color: var(--teal); }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 44px 20px 0; position: relative; font-weight: 600; font-size: 1.0625rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; border-right: 1.5px solid var(--teal); border-bottom: 1.5px solid var(--teal); transform: translateY(-70%) rotate(45deg); transition: transform .2s ease; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { color: var(--muted); max-width: 40rem; padding-right: 44px; margin: -4px 0 22px; }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
.contact-lead { color: var(--on-dark-muted); font-size: 1.125rem; }
dl.contact-list { margin: 32px 0 0; }
dl.contact-list > div { display: grid; grid-template-columns: 6.5rem 1fr; padding: 14px 0; border-top: 1px solid rgba(233,228,218,.16); }
dl.contact-list dt { color: var(--on-dark-muted); }
dl.contact-list dd { margin: 0; color: #fff; }

.request { background: var(--charcoal-2); border-radius: var(--radius); padding: clamp(24px, 3.5vw, 40px); }
.request h3 { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; color: #fff; margin-bottom: 20px; }
.request label { display: block; font-size: .875rem; font-weight: 500; margin: 16px 0 6px; color: var(--on-dark); }
.request .opt { color: var(--on-dark-muted); font-weight: 400; }
.request input, .request select {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1px solid transparent; border-radius: 4px; padding: 12px 14px; min-height: 48px;
}
.request select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--teal) 50%), linear-gradient(135deg, var(--teal) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.request input:focus-visible, .request select:focus-visible { outline: 3px solid var(--gold-soft); outline-offset: 1px; }
.request input[aria-invalid="true"] { border-color: #e8a493; box-shadow: 0 0 0 1px #e8a493; }
.form-hint { font-size: .875rem; color: var(--on-dark-muted); margin: 18px 0 18px; }
.request .btn { width: 100%; }
.form-status { margin: 14px 0 0; font-size: .9375rem; min-height: 1.4em; color: var(--gold-soft); }
.form-status:empty { margin: 0; min-height: 0; }
.form-crisis { margin: 16px 0 0; font-size: .8125rem; color: var(--on-dark-muted); }

/* Safety */
.isi { border: 1px solid var(--charcoal); border-radius: var(--radius); padding: clamp(24px, 4vw, 48px); }
.isi h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.isi-lead { font-weight: 600; }
.isi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px clamp(28px, 4vw, 56px); margin: 28px 0 20px; }
.isi-grid p, .isi > p { font-size: .9688rem; color: var(--muted); }
.isi-grid h3 { margin-bottom: .35em; }
.isi .isi-lead { color: var(--ink); }
.isi-links { margin: 0; }

/* Footer */
.site-footer { background: var(--charcoal); color: var(--on-dark-muted); padding: 56px 0 40px; font-size: .9375rem; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1.6fr; gap: 40px; }
.site-footer p { margin: 14px 0 0; }
.site-footer nav { display: flex; flex-direction: column; gap: 8px; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-fine p { font-size: .8125rem; margin: 0 0 10px; }
.footer-fine a { color: var(--gold-soft); }

/* Responsive */
@media (max-width: 980px) {
  ol.day-steps { grid-template-columns: 1fr 1fr; gap: 28px 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-fine { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .menu-btn {
    display: inline-flex; align-items: center; font: inherit; font-weight: 600; font-size: .9375rem;
    background: transparent; border: 1px solid var(--line); border-radius: var(--radius); padding: 9px 14px; color: var(--ink); cursor: pointer;
  }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .site-nav .btn-small { margin-top: 16px; border-bottom: 0; text-align: center; padding: 14px 16px; }
  .header-row { position: relative; min-height: 64px; }

  .hero-grid, .split, .fit, .refer-grid, .faq-wrap, .contact-grid, .isi-grid { grid-template-columns: 1fr; }
  .hero-photo { order: -1; }
  .hero-photo img { aspect-ratio: 16 / 10; }
  .fit-col + .fit-col { margin-top: 28px; }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .actions .btn { flex: 1 1 100%; text-align: center; }
  ol.day-steps { grid-template-columns: 1fr; gap: 22px; }
  .dayline-bar { height: 56px; }
  .seg { font-size: 1.1rem; }
  .seg-rest { padding: 0 12px; gap: 10px; }
  .seg-rest em { font-size: .8125rem; }
  .cal-phase { font-size: .75rem; }
  dl.channels > div, dl.contact-list > div { grid-template-columns: 1fr; gap: 2px; }
  .footer-grid { grid-template-columns: 1fr; }
}
