/* Club Mindful funnel, v2 (Oct 27 2026).
   One page colour top to bottom. Poppins for headings and actions, Newsreader for reading text.
   Section patterns adapted from 21st.dev (ids in comments), restyled to the brand. */
:root {
  --page: #F6F6FF;
  --ink: #000321;
  --body: #3E4263;
  --muted: #676B8A;
  --gold: #D9A030;
  --gold-hover: #E6B24C;
  --gold-soft: #F5E6C4;
  --navy: #1F2338;
  --navy-2: #2A2F4A;
  --mint: #7EE0C3;
  --line: #E2E3F1;
  --card: #FFFFFF;
  --display: "Poppins", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --wrap: 1120px;
  --radius: 18px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--page); color: var(--body);
  font-family: var(--serif); font-size: 19px; line-height: 1.6; font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 8px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); margin: 0; letter-spacing: -0.02em; }
h1, h2 { text-wrap: balance; }
h1 { font-size: clamp(36px, 5.4vw, 64px); line-height: 1.06; font-weight: 800; }
h2 { font-size: clamp(30px, 3.9vw, 46px); line-height: 1.1; font-weight: 800; }
h3 { font-size: 21px; line-height: 1.25; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
section { padding: clamp(64px, 9vw, 112px) 0 0; }
.head { text-align: center; max-width: 1040px; margin: 0 auto; }
.head h2 { max-width: 30ch; margin: 0 auto; }
.sub { font-size: clamp(19px, 2vw, 22px); line-height: 1.5; color: var(--body); max-width: 40em; margin: 16px auto 0; }
.head .sub { max-width: 34em; }
.small { font-family: var(--display); font-size: 14px; color: var(--muted); }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 40; background: rgba(246, 246, 255, .86); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.topbar.scrolled { border-bottom-color: var(--line); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 18px; color: var(--ink); letter-spacing: -0.01em; }
.brand img { width: 40px; height: 40px; }
.topbar .btn { min-height: 44px; padding: 10px 20px; font-size: 15px; }
@media (max-width: 640px) { .topbar .btn { display: none; } .topbar .wrap { justify-content: center; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 58px; padding: 15px 32px; border-radius: 12px; border: 0;
  background: var(--gold); color: var(--ink);
  font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; text-decoration: none; cursor: pointer;
  box-shadow: 0 1px 0 rgba(255,255,255,.45) inset, 0 10px 24px -12px rgba(217, 160, 48, .95);
  transition: background-color .15s, transform .15s, box-shadow .15s;
}
.btn:hover { background: var(--gold-hover); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-block { width: 100%; }

/* Hero */
.hero { padding-top: clamp(28px, 5vw, 56px); text-align: center; }
.kicker { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-family: var(--display); font-size: 14px; font-weight: 500; color: var(--ink); }
.kicker img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; }
.hero h1 { max-width: 25ch; margin: 22px auto 0; }
.hero .sub { max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 22px; margin-top: 30px; }
.next { text-align: left; font-family: var(--display); line-height: 1.35; }
.next b { display: block; color: var(--ink); font-size: 16px; font-weight: 600; }
.next span { font-size: 14px; color: var(--muted); }
@media (max-width: 560px) { .hero-actions { flex-direction: column; } .next { text-align: center; } }
.hero-media { margin: clamp(32px, 5vw, 52px) auto 0; max-width: 980px; }
.proof { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; margin-top: 22px; }
.proof img { width: 210px; height: auto; }
.proof span { font-family: var(--display); font-size: 14px; color: var(--muted); }

/* Logo marquee (21st #18221 Logo Marquee: masked edges, pause on hover) */
.press { padding-top: clamp(44px, 6vw, 72px); }
.press p { text-align: center; font-family: var(--display); font-size: 15px; font-weight: 500; color: var(--muted); }
.marquee { position: relative; overflow: hidden; margin-top: 20px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee var(--speed, 38s) linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; flex-shrink: 0; }
.logos .marquee-group { gap: clamp(48px, 7vw, 96px); padding-right: clamp(48px, 7vw, 96px); }
.logos img { height: 40px; width: auto; object-fit: contain; }
.logos img.tall { height: 50px; } .logos img.short { height: 26px; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee { -webkit-mask-image: none; mask-image: none; } .marquee-track { width: auto; flex-wrap: wrap; justify-content: center; } .marquee-group[aria-hidden="true"] { display: none; } .marquee-group { flex-wrap: wrap; justify-content: center; row-gap: 20px; } }

/* Video player */
.vid { position: relative; background: #0d0f1c; border-radius: var(--radius); overflow: hidden; isolation: isolate; box-shadow: 0 30px 60px -36px rgba(0, 3, 33, .55); }
.vid video { width: 100%; height: 100%; object-fit: cover; background: #0d0f1c; }
.vid-16x9 { aspect-ratio: 16 / 9; }
.vid-9x16 { aspect-ratio: 9 / 16; }
.vid-btn { position: absolute; inset: 0; width: 100%; border: 0; background: transparent; cursor: pointer; padding: 0; display: grid; place-items: center; color: #fff; }
.vid-pill { position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 11px; border-radius: 999px; background: rgba(0, 3, 33, .7); color: #fff; font: 600 14px/1 var(--display); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.vid-pill svg { width: 18px; height: 18px; }
.vid-play { width: 74px; height: 74px; border-radius: 50%; background: rgba(217, 160, 48, .96); color: var(--ink); display: grid; place-items: center; box-shadow: 0 12px 30px -10px rgba(0,0,0,.6); transition: transform .15s; }
.vid-btn:hover .vid-play { transform: scale(1.05); }
.vid-play svg { width: 30px; height: 30px; margin-left: 4px; }
.vid[data-state="playing-sound"] .vid-play, .vid[data-state="playing-sound"] .vid-pill,
.vid[data-state="muted"] .vid-play, .vid[data-state="idle"] .vid-pill, .vid[data-state="paused"] .vid-pill { display: none; }
.vid-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255,255,255,.18); z-index: 2; pointer-events: none; }
.vid-bar i { display: block; height: 100%; width: 0; background: var(--gold); }
.vid[data-state="idle"] .vid-bar { display: none; }

/* Student clip rail */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(210px, 1fr); gap: 18px; margin-top: 40px; padding: 4px 20px 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.rail::-webkit-scrollbar { display: none; }
.rail > figure { scroll-snap-align: center; margin: 0; }
@media (max-width: 760px) { .rail { grid-auto-columns: 70%; } }
@media (min-width: 1100px) { .rail { grid-auto-columns: calc((100% - 3 * 18px) / 4.3); padding: 4px 0 20px; scroll-snap-type: x mandatory; } .rail > figure { scroll-snap-align: start; } }
.voice figcaption { padding: 14px 4px 0; }
.voice .who { font-family: var(--display); font-weight: 700; color: var(--ink); font-size: 16px; }
.voice .len { font-weight: 500; font-size: 13px; color: var(--muted); margin-left: 4px; }
.voice .said { font-size: 17px; color: var(--body); line-height: 1.4; margin-top: 2px; font-style: italic; }
.rail-hint { display: none; text-align: center; margin-top: 4px; }
@media (max-width: 1099px) { .rail-hint { display: block; } }
/* Desktop: arrows under the rail, since a mouse wheel can't scroll sideways */
.rail-nav { display: none; justify-content: center; gap: 12px; margin-top: 8px; }
@media (min-width: 1100px) { .rail-nav { display: flex; } }
.rail-nav button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: border-color .2s, background .2s, opacity .2s; }
.rail-nav button:hover:not(:disabled) { border-color: var(--gold); background: var(--gold-soft); }
.rail-nav button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.rail-nav button:disabled { opacity: .35; cursor: default; }
.rail-nav svg { width: 20px; height: 20px; }

/* Problem: three cards with line icons */
.issues { display: grid; gap: 16px; margin-top: 40px; }
@media (min-width: 860px) { .issues { grid-template-columns: repeat(3, 1fr); } }
.issue { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; }
.issue .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--gold-soft); color: #9A6A10; display: grid; place-items: center; margin-bottom: 16px; }
.issue .ico svg { width: 22px; height: 22px; }
.issue p { font-size: 17.5px; margin-top: 8px; }

/* Class timeline (21st #19863 How It Works Timeline) */
.split { display: grid; gap: 40px; margin-top: 44px; align-items: start; }
@media (min-width: 940px) { .split { grid-template-columns: 1.05fr .95fr; gap: 56px; } }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 21px; top: 20px; bottom: 20px; width: 2px; background: linear-gradient(var(--gold), var(--line)); }
.timeline li { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 18px; padding-bottom: 28px; }
.timeline li:last-child { padding-bottom: 0; }
.step-dot { width: 44px; height: 44px; border-radius: 50%; background: var(--card); border: 2px solid var(--gold); display: grid; place-items: center; font-family: var(--display); font-weight: 700; color: var(--ink); position: relative; z-index: 1; }
.step-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; padding-top: 8px; }
.chip { font-family: var(--display); font-size: 13px; font-weight: 600; color: #8A5E0B; background: var(--gold-soft); border-radius: 999px; padding: 3px 10px; }
.timeline p { font-size: 17.5px; margin-top: 6px; }
.aside-card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 18px; }
.aside-card img.devices { width: 100%; height: auto; border-radius: 12px; }
.aside-quote { margin: 0; padding: 18px 8px 6px; }
.aside-quote blockquote { margin: 0; font-size: 21px; line-height: 1.45; color: var(--ink); font-style: italic; }
.aside-quote figcaption { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-family: var(--display); font-size: 14px; color: var(--muted); }
.aside-quote figcaption img { width: 36px; height: 36px; border-radius: 50%; }

/* Meet Tom */
.meet { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .meet { grid-template-columns: 420px 1fr; gap: 64px; } }
.meet-photo { border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 5; box-shadow: 0 30px 60px -36px rgba(0, 3, 33, .55); max-width: 460px; margin: 0 auto; width: 100%; }
.meet-photo img { width: 100%; height: 100%; object-fit: cover; }
.meet h2 { max-width: 22ch; }
.meet .sub { margin: 18px 0 0; }
.creds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 30px; }
.cred { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 14px; }
.cred b { display: block; font-family: var(--display); font-size: clamp(26px, 3vw, 34px); font-weight: 800; color: var(--ink); line-height: 1; letter-spacing: -0.02em; }
.cred span { display: block; font-family: var(--display); font-size: 13.5px; color: var(--muted); margin-top: 8px; line-height: 1.35; }
@media (max-width: 520px) { .creds { grid-template-columns: 1fr; } .cred { display: flex; align-items: center; gap: 14px; } .cred span { margin: 0; } .cred b { min-width: 2.6em; } }
.stanford-logo { display: block; margin-top: 28px; opacity: 0.75; }

/* Upcoming classes (21st #7483 Event Scheduler Card) */
.events { display: grid; gap: 16px; margin-top: 40px; }
@media (min-width: 820px) { .events { grid-template-columns: repeat(3, 1fr); } }
.event { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 22px; display: grid; gap: 18px; align-content: space-between; }
.event.first { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset, 0 24px 50px -34px rgba(217, 160, 48, .9); }
.event-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.event .day { font-family: var(--display); font-size: 14px; color: var(--muted); font-weight: 500; }
.event .date { font-family: var(--display); font-size: 34px; font-weight: 800; color: var(--ink); line-height: 1.05; letter-spacing: -0.02em; margin-top: 4px; }
.event .tag { font-family: var(--display); font-size: 12.5px; font-weight: 600; background: var(--gold-soft); color: #8A5E0B; border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.event .times { font-family: var(--display); font-size: 15px; color: var(--ink); line-height: 1.5; }
.event .times span { display: block; color: var(--muted); font-size: 14px; }
.event .btn { min-height: 50px; font-size: 16px; }
.empty { margin-top: 32px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 24px; text-align: center; }

/* Quote marquee (21st #24457 Testimonial Marquee) */
.quotes { margin-top: 40px; }
.quotes .marquee-group { gap: 18px; padding-right: 18px; align-items: stretch; }
.qcard { width: min(380px, 80vw); background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 24px; display: grid; align-content: space-between; gap: 18px; }
.qcard blockquote { margin: 0; font-size: 19px; line-height: 1.5; color: var(--ink); }
.qcard footer { font-family: var(--display); font-size: 14px; line-height: 1.4; }
.qcard footer b { color: var(--ink); display: block; }
.qcard footer span { color: var(--muted); }
.qcard .stars { color: var(--gold); letter-spacing: 2px; font-size: 15px; font-family: var(--display); }

/* Closing band (21st #28147 Gradient CTA Banner, kept quiet) */
.closing { padding-top: clamp(64px, 9vw, 112px); }
.closing-panel {
  position: relative; overflow: hidden; border-radius: 28px; background-color: var(--navy); color: #D3D6EA;
  padding: clamp(44px, 7vw, 80px) 24px; text-align: center;
  background-image: radial-gradient(60% 80% at 15% 0%, rgba(217, 160, 48, .22), transparent 60%), radial-gradient(55% 70% at 90% 100%, rgba(126, 224, 195, .16), transparent 60%);
}
.closing-panel h2 { color: #fff; max-width: 26ch; margin: 0 auto; }
.closing-panel .sub { color: #C9CCE2; }
.closing-panel .btn { margin-top: 30px; }
.closing-panel .small { color: #A9ADC8; margin-top: 14px; }

/* Stories, editorial rows (21st #18913 Testimonial Basic) */
.stories { display: grid; gap: 22px; margin-top: 44px; }
.story { display: grid; grid-template-columns: minmax(150px, 230px) 1fr; gap: clamp(18px, 4vw, 44px); align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 16px; margin: 0; }
.story:nth-child(even) { grid-template-columns: 1fr minmax(150px, 230px); }
.story:nth-child(even) .vid { order: 2; }
.story .vid { box-shadow: none; border-radius: 14px; }
.story blockquote { margin: 0; font-size: clamp(20px, 2.3vw, 27px); line-height: 1.38; color: var(--ink); }
.story .meta { font-family: var(--display); font-size: 15px; color: var(--muted); margin-top: 16px; }
.story .meta b { color: var(--ink); font-weight: 700; }
@media (max-width: 640px) {
  .story, .story:nth-child(even) { grid-template-columns: 1fr; padding: 14px; }
  .story:nth-child(even) .vid { order: 0; }
  .story .vid { max-width: 260px; margin: 0 auto; width: 100%; }
  .story .text { padding: 4px 6px 8px; }
}

/* Membership week + why */
.week { display: grid; gap: 40px; margin-top: 44px; align-items: start; }
@media (min-width: 940px) { .week { grid-template-columns: 1fr 1fr; gap: 56px; } }
.why { display: grid; gap: 14px; }
.why .issue { padding: 22px; }

/* Pricing (21st #28178 Single Plan Pricing Card) */
.plan { max-width: 560px; margin: 40px auto 0; background: var(--card); border: 1px solid var(--line); border-radius: 26px; overflow: hidden; box-shadow: 0 34px 70px -44px rgba(0, 3, 33, .6); }
.plan-top { padding: 32px 30px 26px; text-align: center; border-bottom: 1px solid var(--line); }
.plan-top .label { display: inline-block; font-family: var(--display); font-size: 13px; font-weight: 600; color: #8A5E0B; background: var(--gold-soft); border-radius: 999px; padding: 4px 12px; }
.plan-top .price { font-family: var(--display); color: var(--ink); font-size: 64px; font-weight: 800; line-height: 1; letter-spacing: -0.03em; margin-top: 14px; }
.plan-top .price span { font-size: 18px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.plan-top p { font-size: 17px; margin-top: 10px; }
.plan-body { padding: 26px 30px 30px; }
.plan ul, .facts { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 12px; }
.plan li, .facts li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; font-size: 17.5px; line-height: 1.45; }
.check { width: 22px; height: 22px; border-radius: 50%; background: var(--navy); color: var(--mint); display: grid; place-items: center; margin-top: 3px; }
.check svg { width: 12px; height: 12px; }
.secure { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 14px; font-family: var(--display); font-size: 13.5px; color: var(--muted); }
.secure svg { width: 14px; height: 14px; }

/* FAQ (21st #24907 Accordion with Plus/Minus Indicators) */
.faq { max-width: 780px; margin: 36px auto 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 4px; font-family: var(--display); font-weight: 600; font-size: 18px; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.pm { position: relative; width: 22px; height: 22px; flex-shrink: 0; }
.pm::before, .pm::after { content: ""; position: absolute; left: 3px; right: 3px; top: 10px; height: 2px; border-radius: 2px; background: var(--gold); transition: transform .2s; }
.pm::after { transform: rotate(90deg); }
.faq details[open] .pm::after { transform: rotate(0deg); }
.faq .answer { overflow: hidden; }
.faq .answer p { padding: 0 4px 22px; font-size: 18px; max-width: 40em; }

/* Calendar page (21st #38035 Meeting Booking Calendar layout) */
.book { display: grid; gap: 32px; align-items: start; padding-top: clamp(28px, 5vw, 56px); }
@media (min-width: 980px) { .book { grid-template-columns: 0.85fr 1.15fr; gap: 48px; } .book-info { position: sticky; top: 96px; } }
.book h1 { font-size: clamp(34px, 4.6vw, 54px); }
.book .sub { margin: 16px 0 0; }
.facts { margin: 26px 0 0; }
.mini-tom { display: flex; gap: 14px; align-items: center; margin-top: 28px; padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.mini-tom img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: 50% 25%; flex-shrink: 0; }
.mini-tom p { font-size: 16px; line-height: 1.45; }
.mini-tom b { font-family: var(--display); color: var(--ink); display: block; font-size: 15px; }
.cal-frame { background: var(--card); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; min-height: 660px; box-shadow: 0 34px 70px -48px rgba(0, 3, 33, .6); }
.cal-frame iframe { width: 100%; min-height: 660px; border: 0; display: block; }

/* Thank-you */
.ty { display: grid; gap: 36px; align-items: center; padding-top: clamp(28px, 5vw, 56px); }
@media (min-width: 900px) { .ty { grid-template-columns: 360px 1fr; gap: 64px; } }
.ty .vid { max-width: 360px; width: 100%; margin: 0 auto; }
.ty h1 { font-size: clamp(36px, 4.8vw, 56px); }
.ty .sub { margin: 16px 0 0; }
.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 40px 1fr; gap: 16px; counter-increment: s; }
.steps li::before { content: counter(s); width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: var(--mint); display: grid; place-items: center; font-family: var(--display); font-weight: 700; }
.steps b { font-family: var(--display); color: var(--ink); display: block; font-size: 17px; }
.steps span { font-size: 17.5px; }

/* Mobile sticky action bar */
.mbar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50; display: none; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 16px; background: rgba(31, 35, 56, .96); color: #fff; border-radius: 16px; box-shadow: 0 18px 40px -16px rgba(0, 3, 33, .7); transform: translateY(140%); transition: transform .25s ease; }
.mbar.show { transform: translateY(0); }
.mbar .t { font-family: var(--display); font-size: 13px; line-height: 1.3; color: #C9CCE2; }
.mbar .t b { display: block; color: #fff; font-size: 14.5px; }
.mbar .btn { min-height: 46px; padding: 10px 18px; font-size: 15.5px; white-space: nowrap; }
@media (max-width: 899px) { .mbar { display: flex; } body.has-mbar { padding-bottom: 88px; } }

/* Footer */
.foot { margin-top: clamp(64px, 9vw, 112px); padding: 36px 0 44px; border-top: 1px solid var(--line); }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; font-family: var(--display); font-size: 14px; color: var(--muted); }
.foot a { color: var(--ink); text-decoration: none; font-weight: 600; }
.foot a:hover { text-decoration: underline; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ===== Approved 21st additions (Milan, Oct 27) ===== */

/* Avatar Stack (21st #27756): real students, fan apart on hover with names */
.faces { display: inline-flex; padding: 4px; }
.face { position: relative; width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--page); margin-left: -12px; transition: margin .25s ease, transform .25s ease; outline: none; }
.face:first-child { margin-left: 0; }
.face img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.faces:hover .face, .faces:focus-within .face { margin-left: 4px; }
.faces:hover .face:first-child, .faces:focus-within .face:first-child { margin-left: 0; }
.face:hover, .face:focus-visible { transform: translateY(-3px); z-index: 2; }
.face::after { content: attr(data-name); position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translate(-50%, 4px); background: var(--navy); color: #fff; font: 600 12.5px/1 var(--display); padding: 6px 9px; border-radius: 8px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; }
.face:hover::after, .face:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
.face:not([data-name])::after { display: none; }
.face:focus-visible { box-shadow: 0 0 0 3px var(--gold); }

/* Text Cycle (21st #31386): words share one grid cell so nothing jumps */
.cycle { display: inline-grid; justify-items: center; vertical-align: bottom; color: var(--ink); font-style: italic; }
.cycle > .w { grid-area: 1 / 1; white-space: nowrap; padding: 0 .38em .04em; margin-left: -.06em; border: 2px solid var(--gold); border-radius: 10px; background: rgba(217, 160, 48, .1); transition: opacity .45s ease, filter .45s ease, transform .45s ease; }
.cycle > .w:not(.on) { opacity: 0; filter: blur(6px); transform: translateY(6px); }

/* Shimmer Button (21st #38278): slow sheen + pointer light on gold buttons */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120px circle at var(--mx, -200px) var(--my, -200px), rgba(255,255,255,.45), transparent 60%); opacity: 0; transition: opacity .2s; }
.btn:hover::before { opacity: 1; }
.btn.shine::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 28%; z-index: -1; background: linear-gradient(100deg, transparent, rgba(255,255,255,.38), transparent); transform: skewX(-18deg); animation: sheen 5s ease-in-out infinite; }
@keyframes sheen { 0%, 70% { left: -60%; } 100% { left: 130%; } }

/* Breathe Ring (21st #28403): calendar loading state */
.cal-frame { position: relative; }
.cal-loading { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 18px; background: var(--card); z-index: 1; transition: opacity .4s; text-align: center; padding: 20px; }
.cal-loading.done { opacity: 0; pointer-events: none; }
.ring { width: 64px; height: 64px; border-radius: 50%; border: 3px solid var(--gold); animation: breathe-ring 8s ease-in-out infinite; }
@keyframes breathe-ring { 0%, 100% { transform: scale(.7); border-width: 4px; opacity: .7; } 45%, 55% { transform: scale(1.15); border-width: 2px; opacity: 1; } }
.cal-loading p { font-family: var(--display); font-size: 15px; color: var(--muted); }

/* Sticky Scroll Reveal (21st #952) */
.ss { display: grid; gap: 32px; margin-top: 44px; }
@media (min-width: 940px) { .ss { grid-template-columns: 1fr 1fr; gap: 64px; } }
.ss-step { padding: 28px 0; }
@media (min-width: 940px) { .ss-step { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; padding: 0; opacity: .35; transition: opacity .35s; } .ss-step.on { opacity: 1; } }
.ss-step .num { font-family: var(--display); font-weight: 700; font-size: 14px; color: #8A5E0B; }
.ss-step h3 { font-size: clamp(24px, 2.8vw, 34px); margin-top: 8px; }
.ss-step p { font-size: 19px; margin-top: 12px; max-width: 32em; }
.ss-step img { margin-top: 18px; border-radius: 18px; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 940px) { .ss-step img { display: none; } }
.ss-media { display: none; }
@media (min-width: 940px) {
  .ss-media { display: block; position: sticky; top: 110px; align-self: start; aspect-ratio: 4 / 3; border-radius: 24px; overflow: hidden; background: var(--card); border: 1px solid var(--line); box-shadow: 0 30px 60px -40px rgba(0, 3, 33, .55); }
  .ss-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s ease; }
  .ss-media img.on { opacity: 1; }
}

/* Comparison Section (21st #26826) */
.compare { display: grid; gap: 16px; margin-top: 40px; }
@media (min-width: 860px) { .compare { grid-template-columns: 1fr 1fr; } }
.side { border-radius: 22px; padding: 26px; border: 1px solid var(--line); }
.side.alone { background: transparent; }
.side.with { background: var(--card); border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset, 0 30px 60px -44px rgba(217, 160, 48, .9); }
.side h3 { display: flex; align-items: center; gap: 10px; }
.side ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 14px; }
.side li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; font-size: 17.5px; line-height: 1.45; }
.side.alone li { color: var(--muted); }
.x { width: 22px; height: 22px; border-radius: 50%; background: var(--line); color: var(--muted); display: grid; place-items: center; margin-top: 3px; }
.x svg, .check svg { width: 12px; height: 12px; }

/* Globe (21st #27474, built on cobe) */
.globe-wrap { display: grid; gap: 28px; align-items: center; margin-top: 8px; }
@media (min-width: 900px) { .globe-wrap { grid-template-columns: 1fr 1fr; gap: 48px; } }
.globe { position: relative; width: min(100%, 520px); aspect-ratio: 1; margin: 0 auto; }
.globe canvas { width: 100%; height: 100%; opacity: 0; transition: opacity 1s ease; cursor: grab; contain: layout paint size; }
.globe canvas.ready { opacity: 1; }
.globe-quote blockquote { margin: 18px 0 0; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.35; color: var(--ink); font-style: italic; }
.globe-quote p.small { margin-top: 12px; }

/* Event Countdown (21st #2582) */
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.countdown div { background: var(--page); border: 1px solid var(--line); border-radius: 10px; padding: 8px 4px; text-align: center; font-family: var(--display); }
.countdown b { display: block; font-size: 20px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.1; }
.countdown span { font-size: 11.5px; color: var(--muted); }
.countdown-label { font-family: var(--display); font-size: 13px; color: var(--muted); margin-bottom: -10px; }

/* Spotlight (21st #35180): light follows the pointer on cards */
@media (hover: hover) and (pointer: fine) {
  .spot { position: relative; isolation: isolate; }
  .spot::before { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none; background: radial-gradient(360px circle at var(--sx, 50%) var(--sy, -40%), rgba(217, 160, 48, .14), transparent 65%); opacity: 0; transition: opacity .25s; }
  .spot:hover::before { opacity: 1; }
}

/* Problem cards. Desktop: lift on hover. Phone: Stacking Cards (21st #25275), each card pins and the next slides over it */
.issues.stack .issue { transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease; }
.issues.stack .issue .ico { transition: background .3s ease, color .3s ease; }
@media (min-width: 860px) and (hover: hover) {
  .issues.stack .issue:hover { transform: translateY(-6px); border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset, 0 28px 50px -34px rgba(217, 160, 48, .85); }
  .issues.stack .issue:hover .ico { background: var(--gold); color: #fff; }
}
@media (max-width: 859px) {
  .issues.stack { gap: 18px; }
  .issues.stack .issue { position: sticky; top: calc(84px + var(--i, 0) * 14px); transform-origin: 50% 0; box-shadow: 0 -10px 30px -18px rgba(0, 3, 33, .28); will-change: transform; }
}

/* Membership welcome */
.welcome-photo { max-width: 360px; }
.first-class { display: grid; gap: 2px; margin-top: 24px; padding: 16px 20px; border-radius: 16px; background: var(--card); border: 1px solid var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; font-family: var(--display); }
.first-class span { font-size: 14px; color: var(--muted); }
.first-class b { font-size: clamp(20px, 2.4vw, 24px); color: var(--ink); }
.steps a { color: #8A5E0B; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
