/* ════════════════════════════════════════════════════════════════════
   Shared styles for the static offer pages, Oct 2026:
     /breakthrough      public/breakthrough/index.html
     /ymp               public/ymp/index.html          (The Intensive)
     /ymp/membership    public/ymp/membership/index.html (Ongoing Practice)

   Every colour below is a token already live on the site: app/home.css
   (.mhp scope) and public/teachers/index.html. Do not add new hex values;
   reach for one of these. The nav and footer reproduce the homepage's
   HomeNav / HomeFooter so a visitor crossing from / to these pages sees the
   same frame.

   Mobile first. Everything is laid out for a 375px phone and widened at
   701px and 901px. Grid children carry min-width:0 so one long word can
   never widen a track past the viewport.
   ════════════════════════════════════════════════════════════════════ */

:root {
  --forest: #45062E;
  --forest-deep: #380523;
  --plum: #923562;
  --gold: #C9920A;          /* home --m-gold. Too light for text on light grounds (2.7:1 on cream) */
  /* Gold for words on light grounds: the darker gold the carousels use since
     Sush could not read #C9920A on cream (13 Oct 2026). 4.73:1 on cream and
     4.91:1 on white, but only 4.26:1 on --warm and 4.497:1 on --blush, so
     accents inside warm or blush bands fall back to forest (see h2 em below). */
  --gold-text: #966804;
  --gold-ui: #D4A84B;       /* accent on dark backgrounds (home --m-gold-ui) */
  --gold-bright: #F4BA2F;   /* primary action (home --m-gold-bright) */
  --gold-pale: #FDF3D0;
  --cream: #FBFBF7;
  --warm: #F5EEE4;
  --warm-mid: #E8DDD0;
  --blush: #FAF4EE;
  --ink: #2A1520;
  --muted: #7A6058;
  --light: rgba(253, 240, 220, 0.93);
  --light-dim: rgba(253, 240, 220, 0.66);
  --border: rgba(69, 6, 46, 0.1);

  --display: 'DM Serif Display', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
  --quote: 'Lora', Georgia, serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0; }
p + p { margin-top: 1em; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 3px; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 22px; }
.wrap-sm { max-width: 760px; margin: 0 auto; padding: 0 22px; }
@media (min-width: 701px) { .wrap, .wrap-sm { padding: 0 40px; } }

.sec { padding: 68px 0; }
.sec.warm { background: var(--warm); }
.sec.blush { background: var(--blush); }
@media (min-width: 901px) { .sec { padding: 100px 0; } }

/* ── Type ─────────────────────────────────────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--plum);
}
.eyebrow::before { content: ''; width: 26px; height: 1px; background: currentColor; flex-shrink: 0; }
.on-dark .eyebrow { color: var(--gold-ui); }

h1, h2, h3 { font-family: var(--display); font-weight: 400; color: var(--forest); margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.35rem, 7.4vw, 4.1rem); line-height: 1.04; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.9rem, 5vw, 2.85rem); line-height: 1.1; letter-spacing: -0.01em; }
h3 { font-size: 1.35rem; line-height: 1.2; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--gold-text); }
.sec.warm h2 em, .sec.warm h3 em, .sec.blush h2 em, .sec.blush h3 em { color: var(--forest); }
.on-dark h1, .on-dark h2, .on-dark h3 { color: var(--light); }
.on-dark h1 em, .on-dark h2 em, .on-dark h3 em { color: var(--gold-ui); }

.sec-head { max-width: 680px; margin-bottom: 36px; }
.sec-head h2 { margin-top: 14px; }
.sec-head .intro { margin-top: 16px; color: var(--muted); }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.center .eyebrow { justify-content: center; }

.lede { font-family: var(--quote); font-size: clamp(1.08rem, 2.6vw, 1.3rem); line-height: 1.6; color: var(--forest); }
.prose { max-width: 680px; }
.prose p { color: var(--ink); }
.prose .big { font-family: var(--quote); font-size: clamp(1.1rem, 2.4vw, 1.25rem); line-height: 1.7; }
.prose strong { color: var(--forest); font-weight: 700; }
.muted { color: var(--muted); }
.small { font-size: 14.5px; }

/* Placeholders that need Sush's real value before launch. Visible on
   purpose, so nothing ships with one still in it unnoticed. */
.ph {
  background: var(--gold-pale); color: var(--forest); border-radius: 4px;
  padding: 0 4px; font-weight: 600; white-space: nowrap;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
a.ph { text-decoration: underline dotted; text-underline-offset: 3px; white-space: normal; }

/* ── Buttons ──────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--sans); font-size: 13px; font-weight: 700;
  letter-spacing: 0.09em; text-transform: uppercase; line-height: 1.3; text-align: center;
  padding: 17px 30px; border-radius: 100px; border: 0; cursor: pointer;
  text-decoration: none; max-width: 100%;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease), color 0.25s var(--ease);
}
.btn .arrow { display: inline-block; transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary { background: var(--gold-bright); color: var(--forest); }
.btn-primary:hover { background: var(--gold); transform: translateY(-1px); box-shadow: 0 12px 28px rgba(201, 146, 10, 0.3); }
.btn-ghost { background: transparent; color: var(--forest); border: 1.5px solid rgba(69, 6, 46, 0.26); }
.btn-ghost:hover { background: var(--forest); color: var(--gold-ui); border-color: var(--forest); }
.on-dark .btn-ghost { color: var(--gold-ui); border-color: rgba(212, 168, 75, 0.45); }
.on-dark .btn-ghost:hover { background: rgba(212, 168, 75, 0.1); color: var(--gold-ui); }
.btn-block { width: 100%; }
@media (min-width: 560px) { .btn { padding: 18px 34px; } }
/* Keeps "Book your Breakthrough · £50" on one line on a 375px phone. */
@media (max-width: 400px) { .btn { font-size: 12px; letter-spacing: 0.06em; padding: 16px 20px; } }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 28px; }
.cta-note { font-size: 14px; color: var(--muted); margin-top: 12px; }
.on-dark .cta-note { color: var(--light-dim); }
.facts {
  display: flex; flex-wrap: wrap; gap: 6px 0; margin-top: 22px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--forest);
}
.facts span { white-space: nowrap; }
/* The dot trails each item, so a wrapped line never starts with a separator. */
.facts span:not(:last-child)::after { content: '\00B7'; margin: 0 10px; color: var(--gold-text); }
.on-dark .facts { color: var(--gold-ui); }
.on-dark .facts span:not(:last-child)::after { color: var(--light-dim); }

/* ── Nav (mirrors components/home/HomeNav.tsx) ────────────────────── */
.m-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 251, 247, 0.97);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--gold-bright);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 1400px; margin: 0 auto; padding: 12px 22px;
}
@media (min-width: 701px) { .nav-inner { padding: 15px 40px; } }
.m-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.logo-badge {
  width: 34px; height: 34px; border-radius: 50%; background: var(--forest);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: var(--gold-ui); flex-shrink: 0;
}
.logo-text { font-family: var(--display); font-size: 21px; color: var(--forest); }
.nav-links {
  display: none; align-items: center; gap: 26px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
}
.nav-links a { color: var(--muted); text-decoration: none; transition: color 0.2s; white-space: nowrap; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--forest); }
.nav-links a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--gold-bright); padding-bottom: 2px; }
.m-nav .nav-cta { display: none; padding: 12px 22px; font-size: 11px; white-space: nowrap; }
.nav-toggle {
  display: flex; flex-direction: column; gap: 5px; align-items: center; justify-content: center;
  background: none; border: 0; cursor: pointer; padding: 10px; min-width: 44px; min-height: 44px;
}
.nav-toggle span { display: block; width: 22px; height: 1.6px; background: var(--forest); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }
@media (min-width: 1080px) {
  .nav-links { display: flex; }
  .m-nav .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
}
/* While the drawer is open the header is pinned to the viewport top, so its
   close button sits above the drawer instead of floating mid-page. */
body.menu-open { overflow: hidden; }
body.menu-open .m-nav { position: fixed; top: 0; left: 0; right: 0; }
body.menu-open .eb { display: none !important; }
.nav-drawer {
  display: none; position: fixed; inset: 0; z-index: 99;
  padding: 84px 24px 32px; background: var(--forest);
  flex-direction: column; gap: 2px; overflow-y: auto;
}
.nav-drawer.open { display: flex; }
.nav-drawer a {
  font-family: var(--display); font-size: 1.3rem; color: var(--light); text-decoration: none;
  padding: 13px 0; border-bottom: 1px solid rgba(212, 168, 75, 0.14); min-height: 48px;
}
.nav-drawer a[aria-current="page"] { color: var(--gold-ui); }
.nav-drawer .btn { margin-top: 22px; font-family: var(--sans); font-size: 12px; border-bottom: 0; }

/* ── Hero ─────────────────────────────────────────────────────────── */
/* Cream, not the warm gradient the teachers page uses: the H1's gold accent
   needs a cream ground to reach 4.5:1. The gold glow sits behind the photo
   column only, so it never lands under the headline. */
.hero {
  padding: 44px 0 56px;
  background: var(--cream);
  border-bottom: 1px solid var(--warm-mid);
}
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 36px; align-items: center; }
.hero-grid > * { min-width: 0; }
.hero h1 { margin-top: 16px; }
.hero .lede { margin-top: 20px; max-width: 600px; }
.hero .sub { margin-top: 16px; max-width: 580px; color: var(--ink); }
.hero-photo { max-width: 420px; margin: 0 auto; width: 100%; }
.hero-photo img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 200px 200px 18px 18px; box-shadow: 0 26px 60px rgba(69, 6, 46, 0.2);
}
.hero-photo figcaption { margin-top: 12px; font-size: 13px; color: var(--muted); text-align: center; }
@media (min-width: 901px) {
  .hero {
    padding: 72px 0 84px;
    background: radial-gradient(700px 420px at 92% 0%, rgba(244, 186, 47, 0.16), transparent 62%), var(--cream);
  }
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 56px; }
}

/* ── Lists ────────────────────────────────────────────────────────── */
.ticks { list-style: none; }
.ticks li { position: relative; padding-left: 30px; margin-top: 12px; }
.ticks li::before {
  content: ''; position: absolute; left: 2px; top: 0.55em; width: 14px; height: 8px;
  border-left: 2px solid var(--gold-text); border-bottom: 2px solid var(--gold-text); transform: rotate(-45deg);
}
.on-dark .ticks li::before { border-color: var(--gold-ui); }
.dots { list-style: none; }
.dots li { position: relative; padding-left: 22px; margin-top: 10px; }
.dots li::before { content: ''; position: absolute; left: 2px; top: 0.62em; width: 7px; height: 7px; border-radius: 50%; background: var(--gold-bright); }

/* ── Steps: numbered because the order is real ───────────────────── */
.steps { list-style: none; counter-reset: step; display: grid; gap: 14px; }
.step {
  counter-increment: step; position: relative; background: #fff;
  border: 1px solid var(--warm-mid); border-radius: 16px; padding: 24px 22px 24px 74px;
}
.step::before {
  content: counter(step); position: absolute; left: 20px; top: 22px;
  width: 38px; height: 38px; border-radius: 50%; background: var(--forest); color: var(--gold-ui);
  font-family: var(--display); font-size: 19px; display: flex; align-items: center; justify-content: center;
}
.step h3 { font-size: 1.25rem; }
.step .when { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--plum); margin-bottom: 6px; }
.step p { margin-top: 8px; color: var(--ink); font-size: 16px; }
.step p + p { margin-top: 10px; }
@media (min-width: 901px) {
  .steps.four { grid-template-columns: repeat(4, 1fr); }
  .steps.four .step { padding: 70px 22px 24px; }
  .steps.four .step::before { left: 22px; top: 22px; }
}
.steps > * { min-width: 0; }

/* ── Cards and panels ────────────────────────────────────────────── */
.panel { background: #fff; border: 1px solid var(--warm-mid); border-radius: 18px; padding: 26px 22px; }
@media (min-width: 701px) { .panel { padding: 32px 30px; } }
.panel.dark { background: var(--forest); border-color: var(--forest); color: var(--light); }
.panel.dark h3 { color: var(--light); }

.two-col { display: grid; grid-template-columns: 1fr; gap: 20px; }
.two-col > * { min-width: 0; }
@media (min-width: 901px) { .two-col { grid-template-columns: 1fr 1fr; gap: 28px; } }

/* Price box */
.price-box { text-align: left; }
.price-box .pb-name { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-ui); }
.price-box .pb-price { font-family: var(--display); font-size: 3.4rem; line-height: 1; margin-top: 10px; color: #fff; }
.price-box .pb-per { font-size: 14px; color: var(--light-dim); margin-top: 6px; }
.price-box .btn { margin-top: 22px; width: 100%; }
.price-box .pb-notes { list-style: none; margin-top: 20px; border-top: 1px solid rgba(212, 168, 75, 0.2); padding-top: 14px; }
.price-box .pb-notes li { font-size: 14px; color: var(--light-dim); margin-top: 8px; line-height: 1.5; }
.price-box .pb-notes a { color: var(--gold-ui); }
.price-box .ph { background: rgba(253, 243, 208, 0.16); color: var(--gold-ui); }

/* Teacher block */
.teacher-grid { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
.teacher-grid > * { min-width: 0; }
.teacher-photo img { width: 100%; max-width: 380px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 18px; box-shadow: 0 20px 50px rgba(69, 6, 46, 0.16); margin: 0 auto; }
@media (min-width: 901px) { .teacher-grid { grid-template-columns: 0.8fr 1.2fr; gap: 64px; } }
.sign { font-family: var(--display); font-style: italic; font-size: 1.6rem; color: var(--forest); margin-top: 18px; }

/* Quote list ("you've thought...") */
.thoughts { list-style: none; display: grid; grid-template-columns: 1fr; gap: 12px; }
.thoughts > * { min-width: 0; }
.thoughts li {
  font-family: var(--quote); font-style: italic; font-size: 1.08rem; line-height: 1.5; color: var(--forest);
  background: #fff; border: 1px solid var(--warm-mid); border-radius: 14px; padding: 18px 20px;
}
@media (min-width: 701px) { .thoughts { grid-template-columns: 1fr 1fr; } }

/* Schedule rows */
.sched { border-top: 1px solid var(--warm-mid); }
.sched-row { display: grid; grid-template-columns: 1fr; gap: 4px; padding: 18px 0; border-bottom: 1px solid var(--warm-mid); }
.sched-row > * { min-width: 0; }
.sched-row h3 { font-size: 1.25rem; }
.sched-row .time { font-size: 15px; font-weight: 600; color: var(--forest); }
.sched-row p { color: var(--muted); font-size: 15.5px; }
@media (min-width: 701px) { .sched-row { grid-template-columns: 1.1fr 0.9fr 1.6fr; gap: 20px; align-items: baseline; } }

/* Included list with titles */
.incl { list-style: none; display: grid; grid-template-columns: 1fr; gap: 0; }
.incl li { padding: 18px 0 18px 32px; border-bottom: 1px solid var(--warm-mid); position: relative; }
.incl li:first-child { border-top: 1px solid var(--warm-mid); }
.incl li::before {
  content: ''; position: absolute; left: 3px; top: 26px; width: 14px; height: 8px;
  border-left: 2px solid var(--gold-text); border-bottom: 2px solid var(--gold-text); transform: rotate(-45deg);
}
.incl b { display: block; font-family: var(--display); font-weight: 400; font-size: 1.2rem; color: var(--forest); line-height: 1.25; }
.incl span { display: block; margin-top: 6px; color: var(--muted); font-size: 15.5px; }

.incl-grid { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: start; }
.incl-grid > * { min-width: 0; }
@media (min-width: 901px) {
  .incl-grid { grid-template-columns: 1.35fr 0.65fr; gap: 48px; }
  .incl-grid .price-box { position: sticky; top: 96px; }
}

/* FAQ: native details/summary, works without JS */
.faq { max-width: 780px; }
.faq details { border-bottom: 1px solid var(--warm-mid); }
.faq details:first-of-type { border-top: 1px solid var(--warm-mid); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative;
  font-family: var(--display); font-size: 1.2rem; line-height: 1.3; color: var(--forest);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-family: var(--sans); font-size: 24px; font-weight: 400; color: var(--gold-text); transition: transform 0.25s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq .a { padding: 0 0 22px; color: var(--ink); max-width: 680px; }

/* Health note */
.note {
  max-width: 780px; border-left: 3px solid var(--gold-bright); background: var(--warm);
  border-radius: 0 12px 12px 0; padding: 18px 20px; font-size: 15px; color: var(--ink);
}
.note b { color: var(--forest); }

/* Closing band */
.close-band { background: var(--forest); color: var(--light); text-align: center; position: relative; overflow: hidden; }
.close-band::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 70% 80% at 50% 50%, rgba(212, 168, 75, 0.14) 0%, transparent 65%);
}
.close-band .wrap-sm { position: relative; }
.close-band p { color: var(--light-dim); }
.close-band .lede { color: var(--light); }
.close-band .facts { justify-content: center; }
.close-band .cta-row { justify-content: center; }

/* ── Footer (mirrors components/home/HomeFooter.tsx) ─────────────── */
.m-footer { background: var(--forest-deep); color: var(--cream); padding: 72px 0 32px; }
.foot-grid { display: grid; grid-template-columns: 1fr; gap: 36px; margin-bottom: 44px; }
.foot-grid > * { min-width: 0; }
.foot-brand .logo-text { color: var(--cream); font-size: 24px; }
.foot-tag { font-family: var(--quote); font-style: italic; font-size: 15px; color: rgba(253, 240, 220, 0.55); margin: 18px 0 22px; line-height: 1.6; max-width: 280px; }
.foot-socials { display: flex; gap: 12px; }
.foot-soc {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(212, 168, 75, 0.25);
  color: var(--gold-ui); display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; text-decoration: none; transition: background 0.25s, color 0.25s;
}
.foot-soc:hover { background: var(--gold-ui); color: var(--forest); }
.foot-col h2 {
  font-family: var(--sans); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(212, 168, 75, 0.7); margin-bottom: 16px; font-weight: 700;
}
.foot-col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.foot-col a { font-size: 14px; color: rgba(253, 240, 220, 0.66); text-decoration: none; }
.foot-col a:hover { color: var(--gold-ui); }
.foot-bottom {
  padding-top: 26px; border-top: 1px solid rgba(212, 168, 75, 0.12);
  font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(253, 240, 220, 0.42);
}
@media (min-width: 600px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: span 2; } }
@media (min-width: 901px) { .foot-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; } .foot-brand { grid-column: span 1; } }

/* ── Scroll reveal: the .sr pattern from the old /ymp page ─────────
   Content is hidden only once offer.js has marked <html class="js">, so a
   page whose script never runs shows everything instead of nothing. */
html.js .sr { opacity: 0; transform: translateY(22px); transition: opacity 0.65s var(--ease), transform 0.65s var(--ease); }
html.js .sr.up { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .sr { opacity: 1; transform: none; transition: none; }
  .btn, .btn .arrow { transition: none; }
}

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip { position: absolute; left: -9999px; top: 8px; z-index: 200; background: var(--gold-bright); color: var(--forest); padding: 10px 16px; border-radius: 100px; font-weight: 700; }
.skip:focus { left: 12px; }
