/* ======================================================================
   LUNAMAT RESPONSIVE DESIGN SYSTEM v2
   One palette, one typography system, one spacing system, one product stage.
   Product renders are finished assets (AVIF/WebP/PNG/video); no bezel injection.
   ====================================================================== */
:root {
  color-scheme: light;

  /* Maddening Caravan */
  --mc-cream: #FAD089;
  --mc-orange: #FF9C5B;
  --mc-coral: #F5634A;
  --mc-red: #ED303C;
  --mc-teal: #3B8183;

  /* Semantic brand roles */
  --brand-cream: var(--mc-cream);
  --brand-orange: var(--mc-orange);
  --brand-coral: var(--mc-coral);
  --brand-red: var(--mc-red);
  --brand-teal: var(--mc-teal);
  --accent-primary: var(--brand-coral);
  --accent-strong: var(--brand-red);
  --accent-warm: var(--brand-orange);
  --accent-soft: var(--brand-cream);
  --accent-secondary: var(--brand-teal);

  /* Text / surfaces */
  --text-primary: #2F2926;
  --text-secondary: #655A54;
  --text-muted: #7A6F69;
  --text-on-accent: #FFFFFF;
  --surface-page: #FFFBF7;
  --surface-card: #FFFDFB;
  --surface-soft: #FFF7F0;
  --surface-warm: #FFF1E7;
  --surface-cream: #FFF4DD;
  --surface-teal: #EEF7F6;
  --surface-tint-strong: #FFE1D2;
  --border-subtle: rgba(59,129,131,.16);
  --border-warm: rgba(245,99,74,.18);

  /* Typography */
  --font-display: Georgia, 'Times New Roman', serif;
  --font-ui: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --fs-nav: clamp(15px, .9vw, 17px);
  --fs-body: clamp(16px, 1vw, 18px);
  --fs-small: clamp(14px, .88vw, 16px);
  --fs-body-small: var(--fs-small);
  --fs-card-title: clamp(20px, 1.45vw, 26px);
  --fs-section-title: clamp(34px, 3.35vw, 56px);
  --fs-page-title: clamp(40px, 4.6vw, 72px);
  --fs-hero-title: clamp(46px, 5.2vw, 82px);
  --lh-body: 1.55;
  --lh-heading: 1.08;

  /* 8px rhythm */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  /* Layout */
  --header-h: 82px;
  --page-gutter: clamp(18px, 4vw, 64px);
  --content-max: 1640px;
  --content-narrow: 1120px;
  --product-card-max: 250px;
  --product-stage-ratio: 938 / 1446;
  --device-phone-card-width: var(--product-card-max); /* legacy Kids alias only */

  /* Shape + elevation */
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-xl: 34px;
  --radius-pill: 999px;
  --shadow-soft: 0 12px 32px rgba(69,47,36,.08);
  --shadow-card: 0 18px 46px rgba(69,47,36,.09);
  --shadow-float: 0 24px 70px rgba(47,41,38,.12);

  /* Legacy aliases used by legal/x CSS */
  --color-ink: var(--text-primary);
  --color-muted: var(--text-secondary);
  --color-paper: var(--surface-page);
  --color-surface: var(--surface-card);
  --color-warm: var(--surface-warm);
  --color-copper: var(--accent-primary);
  --color-copper-hover: var(--accent-secondary);
  --button-dark: #292727;
  --color-night: var(--button-dark);
  --color-line: var(--border-subtle);
}

/* ---------- Reset / accessibility ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; text-size-adjust: 100%; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--surface-page);
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, picture, video, svg { max-width: 100%; }
img, video { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
summary { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--brand-teal); outline-offset: 4px; }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }
::selection { background: rgba(250,208,137,.72); color: var(--text-primary); }

h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

.skip-link {
  position: fixed;
  left: 14px;
  top: -100px;
  z-index: 1000;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: #fff;
  box-shadow: var(--shadow-soft);
}
.skip-link:focus { top: 12px; }
.sr-only {
  position: absolute !important;
  width: 1px !important; height: 1px !important;
  padding: 0 !important; margin: -1px !important;
  overflow: hidden !important; clip: rect(0,0,0,0) !important;
  white-space: nowrap !important; border: 0 !important;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255,251,247,.94);
  border-bottom: 1px solid rgba(59,129,131,.11);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.header-inner {
  width: min(100%, 1920px);
  height: 100%;
  margin: 0 auto;
  padding-inline: var(--page-gutter);
  display: grid;
  grid-template-columns: minmax(220px,1fr) auto minmax(210px,1fr);
  align-items: center;
  gap: clamp(18px, 2.2vw, 38px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: max-content;
  min-width: 0;
}
.brand img { display: block; object-fit: contain; flex: 0 0 auto; }
.brand-symbol { width: 52px; height: 52px; }
.brand-wordmark { width: clamp(150px, 11vw, 206px); height: auto; }
.primary-nav, .header-actions { display: flex; align-items: center; }
.primary-nav { justify-content: center; gap: clamp(16px, 1.55vw, 30px); white-space: nowrap; }
.header-actions { justify-content: flex-end; gap: clamp(14px, 1.5vw, 26px); white-space: nowrap; }
.primary-nav a, .login-link, .signup-link { font-size: var(--fs-nav); }
.primary-nav a, .login-link {
  position: relative;
  font-weight: 620;
  color: var(--text-primary);
  transition: color .18s ease;
}
.primary-nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -9px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand-teal);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .18s ease;
}
.primary-nav a:hover, .primary-nav a[aria-current='page'], .login-link:hover { color: var(--brand-teal); }
.primary-nav a:hover::after, .primary-nav a[aria-current='page']::after { transform: scaleX(1); }
.signup-link {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border-radius: var(--radius-pill);
  color: #fff;
  background: linear-gradient(115deg, var(--brand-coral), var(--brand-orange));
  box-shadow: 0 8px 22px rgba(245,99,74,.16);
  font-weight: 760;
  letter-spacing: .01em;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.signup-link:hover { background: var(--brand-teal); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(59,129,131,.2); }
.mobile-menu-button, .mobile-nav { display: none; }

/* ---------- Universal product-media engine ---------- */
.product-stage {
  --media-scale: 1;
  --media-x: 0%;
  --media-y: 0%;
  --media-position: center;
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: var(--product-card-max);
  aspect-ratio: var(--product-stage-ratio);
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(59,129,131,.16);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 18% 18%, rgba(59,129,131,.18), transparent 34%),
    radial-gradient(circle at 85% 82%, rgba(250,208,137,.43), transparent 34%),
    linear-gradient(145deg, #FFFCF8 0%, #FFF3E9 48%, #F2FAF9 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85);
}
.product-stage::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(140deg, rgba(255,255,255,.30), transparent 42%);
}
.product-media {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}
.product-media-element,
.product-stage > img,
.product-stage > video {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  transform: translate(var(--media-x), var(--media-y)) scale(var(--media-scale));
  transform-origin: center;
}
/* Optional modifier kept for compatibility, but never crops product renders. */
.product-media-element--cover,
.product-stage > .product-media-element--cover {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transform: none;
}
.product-stage video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
}
.product-stage--hero {
  max-width: 450px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-float);
}

/* ---------- Home ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: calc(100svh - var(--header-h));
  padding: clamp(38px, 4vw, 64px) var(--page-gutter) clamp(48px, 5vw, 76px);
  background: #FFF8F2;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(255,250,246,.78), rgba(255,250,246,.52) 50%, rgba(255,250,246,.74)),
    url('../assets/images/hero-room.webp') center / cover no-repeat;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 16% 65%, rgba(59,129,131,.12), transparent 28%),
    radial-gradient(circle at 86% 68%, rgba(250,208,137,.18), transparent 31%);
}
.hero-light { display: none; }
.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 1120px;
  margin: 0 auto clamp(30px, 3.2vw, 48px);
  text-align: center;
}
.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--fs-hero-title);
  line-height: 1.015;
  letter-spacing: -.045em;
  font-weight: 400;
}
.hero-title em { color: var(--brand-coral); font-style: normal; }
.hero-subtitle {
  max-width: 760px;
  margin: 14px auto 0;
  color: var(--text-secondary);
  font-size: clamp(17px, 1.25vw, 21px);
  line-height: 1.45;
  font-weight: 620;
}
.hero-showcase {
  width: min(100%, 1580px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(260px, .9fr) minmax(260px, .65fr) minmax(360px, 1.25fr);
  gap: clamp(24px, 3.2vw, 56px);
  align-items: center;
}
.hero-product-stage { justify-self: center; width: min(100%, 420px); }
.hero-product-stage .product-media-element { width: 100%; height: 100%; object-fit: contain; }
.hero-actions {
  position: static;
  width: min(100%, 320px);
  justify-self: center;
  display: grid;
  gap: 14px;
}
.hero-cta {
  min-height: 62px;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #fff;
  font-size: clamp(17px, 1.18vw, 20px);
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(69,47,36,.12);
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.hero-cta svg { width: 25px; height: 25px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.hero-cta:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(69,47,36,.16); }
.hero-cta--student { background: linear-gradient(110deg, var(--brand-coral), var(--brand-orange)); }
.hero-cta--student:hover { background: var(--brand-teal); }
.hero-cta--teacher { background: #292727; }
.hero-cta--teacher:hover { background: var(--brand-teal); }
.hero-teacher-stage {
  justify-self: end;
  width: min(100%, 660px);
  border-radius: var(--radius-xl);
  overflow: hidden;
  filter: drop-shadow(0 24px 38px rgba(69,47,36,.11));
}
.hero-teacher-stage img { display: block; width: 100%; height: auto; }
.hero-mobile-teacher { display: none; }

/* ---------- Interior pages ---------- */
.interior-main {
  min-height: calc(100svh - var(--header-h));
  padding: clamp(42px, 5vw, 76px) var(--page-gutter) clamp(56px, 6vw, 92px);
  background:
    radial-gradient(circle at 8% 10%, rgba(59,129,131,.08), transparent 26rem),
    radial-gradient(circle at 92% 22%, rgba(250,208,137,.24), transparent 28rem),
    linear-gradient(180deg, #FFF9F4, #FFFCF9);
}
.interior-main--technology { background: linear-gradient(155deg, #FFF7F0 0%, #F5FAF9 100%); }
.interior-main--pricing { background: linear-gradient(145deg, #FFF9F4, #F8FBFA); }
.interior-intro {
  width: min(100%, 1160px);
  margin: 0 auto clamp(32px, 4vw, 56px);
  text-align: center;
}
.interior-intro h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--fs-page-title);
  line-height: var(--lh-heading);
  letter-spacing: -.043em;
  font-weight: 400;
}
.interior-lede, .interior-subtitle {
  max-width: 880px;
  margin: 14px auto 0;
  color: var(--text-secondary);
  font-size: var(--fs-body);
  line-height: 1.55;
}
.process-line {
  margin: 20px auto 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 14px;
  color: var(--text-secondary);
  font-size: var(--fs-small);
  font-weight: 650;
}
.process-line b { color: var(--brand-teal); font-weight: 600; }

.journey-grid,
.technology-grid,
.business-tools-grid {
  width: min(100%, var(--content-max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, var(--product-card-max)));
  justify-content: center;
  align-items: stretch;
  gap: clamp(20px, 2vw, 30px);
}
.journey-card,
.platform-flow-card,
.business-tool-card {
  width: 100%;
  max-width: var(--product-card-max);
  min-width: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: rgba(255,253,251,.9);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.journey-copy {
  min-height: 128px;
  padding: 24px 22px 20px;
  display: flex;
  align-items: flex-start;
}
.journey-copy > div { width: 100%; }
.journey-copy h2,
.platform-flow-card h2,
.business-tool-head h3 {
  margin: 0;
  font-family: var(--font-ui);
  font-size: var(--fs-card-title);
  line-height: 1.2;
  letter-spacing: -.025em;
  font-weight: 730;
}
.journey-copy p,
.platform-flow-copy p,
.business-tool-copy p {
  margin: 8px 0 0;
  color: var(--text-secondary);
  font-size: var(--fs-small);
  line-height: 1.48;
}
.journey-card .product-stage,
.platform-flow-card .product-stage,
.business-tool-card .product-stage {
  margin-top: auto;
  max-width: none;
  border-inline: 0;
  border-bottom: 0;
  border-radius: 0;
  box-shadow: none;
}

/* Platform: heading, media, description. Number badges intentionally removed. */
.technology-grid--platform { margin-top: 8px; }
.platform-flow-card { padding-top: 0; }
.platform-flow-card h2 {
  min-height: 92px;
  display: grid;
  place-items: center;
  padding: 22px 20px 16px;
  text-align: center;
  color: var(--brand-teal);
}
.platform-flow-media { order: 2; }
.platform-flow-copy {
  order: 3;
  min-height: 92px;
  padding: 18px 20px 22px;
  text-align: center;
}
.platform-flow-copy p { margin: 0; }

.interior-end {
  margin: clamp(34px, 4vw, 56px) auto 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.text-action, .outline-action {
  font-size: var(--fs-nav);
  font-weight: 720;
  color: var(--brand-teal);
}
.text-action:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.outline-action {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border: 1px solid rgba(59,129,131,.35);
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,.7);
}
.outline-action:hover { color: #fff; background: var(--brand-teal); border-color: var(--brand-teal); }

/* ---------- Teacher CTA ---------- */
.teacher-tools-cta {
  width: min(100%, 1240px);
  margin: clamp(48px, 5vw, 76px) auto 0;
}
.teacher-tools-cta-inner {
  position: relative;
  overflow: hidden;
  padding: clamp(34px, 4.5vw, 60px);
  text-align: center;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 10% 10%, rgba(59,129,131,.13), transparent 34%),
    radial-gradient(circle at 90% 90%, rgba(250,208,137,.32), transparent 34%),
    rgba(255,255,255,.78);
  box-shadow: var(--shadow-card);
}
.teacher-tools-eyebrow {
  margin: 0 0 10px;
  color: var(--brand-teal);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .16em;
}
.teacher-tools-cta h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--fs-section-title);
  line-height: 1.05;
  letter-spacing: -.04em;
  font-weight: 400;
}
.teacher-tools-chips {
  margin: 22px auto 26px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.teacher-tools-chips span {
  padding: 8px 12px;
  border: 1px solid rgba(59,129,131,.18);
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
}
.teacher-tools-primary, .teacher-tools-pricing {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 11px 20px;
  border-radius: var(--radius-pill);
  font-weight: 760;
  font-size: var(--fs-nav);
}
.teacher-tools-primary { color: #fff; background: var(--brand-teal); }
.teacher-tools-primary:hover { background: var(--brand-teal); filter: brightness(.92); }
.teacher-tools-pricing { margin-left: 8px; color: var(--brand-teal); border: 1px solid rgba(59,129,131,.28); background: #fff; }
.teacher-tools-pricing:hover { color: #fff; background: var(--brand-teal); }

/* ---------- Business tools ---------- */
.business-tools-section {
  width: min(100%, var(--content-max));
  margin: 0 auto;
}
.business-tools-heading {
  max-width: 940px;
  margin: 0 auto 34px;
  text-align: center;
}
.business-tools-heading h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--fs-section-title);
  line-height: 1.05;
  letter-spacing: -.04em;
  font-weight: 400;
}
.business-tools-heading p { margin: 12px 0 0; color: var(--text-secondary); font-size: var(--fs-body); }
.business-tool-card { align-items: stretch; text-align: center; }
.business-tool-head { min-height: 84px; display: grid; place-items: center; padding: 20px 18px 14px; }
.business-tool-copy { min-height: 86px; padding: 18px 18px 22px; display: grid; place-items: center; }
.business-tool-copy p { margin: 0; }

/* ---------- Pricing ---------- */
.pricing-section { width: min(100%, 1700px); margin: 0 auto; }
.pricing-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.78);
  box-shadow: var(--shadow-card);
  font-size: var(--fs-small);
}
.pricing-table th, .pricing-table td {
  padding: 15px 14px;
  border-right: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  text-align: center;
  vertical-align: middle;
}
.pricing-table tr > *:last-child { border-right: 0; }
.pricing-table tbody tr:last-child > * { border-bottom: 0; }
.pricing-table tbody th { width: 20%; text-align: left; color: var(--text-primary); font-weight: 720; background: rgba(255,247,240,.72); }
.pricing-table thead th { padding: 0; vertical-align: top; background: rgba(255,255,255,.84); }
.pricing-label-top { width: 20%; padding: 22px !important; text-align: left !important; vertical-align: middle !important; }
.pricing-label-title { font-family: var(--font-display); font-size: clamp(30px,2.5vw,42px); font-weight: 400; }
.price-card { height: 100%; display: flex; flex-direction: column; padding: 22px 16px 18px; background: transparent; }
.price-card-name { margin: 0; color: var(--brand-teal); font-size: clamp(20px,1.45vw,25px); line-height: 1.15; font-weight: 750; }
.price-card-meta { flex: 1; }
.price-number { margin: 18px 0 0; font-size: clamp(29px,2.3vw,42px); line-height: 1; font-weight: 780; letter-spacing: -.035em; }
.price-number span { font-size: 14px; font-weight: 600; color: var(--text-secondary); }
.price-year, .price-tagline { margin: 8px 0 0; color: var(--text-secondary); font-size: 13px; line-height: 1.4; }
.price-cta {
  min-height: 44px;
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  color: #fff;
  background: var(--brand-orange);
  font-size: 14px;
  font-weight: 760;
}
.price-cta:hover,
.price-cta:focus-visible,
.price-cta:active { background: var(--brand-teal); filter: brightness(.92); }
.beta-tag { display: inline-block; margin-left: 6px; padding: 3px 6px; border-radius: var(--radius-pill); background: var(--brand-cream); color: #6a5330; font-size: 9px; letter-spacing: .08em; vertical-align: middle; }
.plan-check { color: var(--brand-teal); font-size: 22px; font-weight: 900; }
.plan-absent { color: #A79C96; }
.feature-detail { display: block; margin-top: 2px; color: var(--text-muted); font-size: 11px; }
.mobile-price-cards { display: none; }
.mobile-feature-list { margin: 20px 0 0; }
.mobile-feature-list > div { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--border-subtle); }
.mobile-feature-list dt { color: var(--text-secondary); }
.mobile-feature-list dd { margin: 0; text-align: right; font-weight: 650; }

/* ---------- FAQ ---------- */
.help-page {
  min-height: calc(100svh - var(--header-h));
  padding: clamp(44px, 5vw, 78px) var(--page-gutter) clamp(64px, 7vw, 100px);
  background:
    radial-gradient(circle at 10% 10%, rgba(59,129,131,.08), transparent 26rem),
    radial-gradient(circle at 90% 20%, rgba(250,208,137,.22), transparent 26rem),
    var(--surface-page);
}
.help-intro { max-width: 900px; margin: 0 auto 42px; text-align: center; }
.help-eyebrow { margin: 0 0 10px; color: var(--brand-teal); font-size: 12px; font-weight: 850; letter-spacing: .16em; }
.help-intro h1 { margin: 0; font-family: var(--font-display); font-size: var(--fs-page-title); line-height: 1.04; letter-spacing: -.043em; font-weight: 400; }
.help-intro > p:last-child { max-width: 720px; margin: 14px auto 0; color: var(--text-secondary); }
.help-grid { width: min(100%, 1380px); margin: 0 auto; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; }
.help-card { min-width: 0; padding: 26px; border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); background: rgba(255,255,255,.84); box-shadow: var(--shadow-card); }
.help-card-heading { display: grid; grid-template-columns: 56px minmax(0,1fr); gap: 16px; align-items: start; margin-bottom: 20px; }
.help-card-icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 16px; background: var(--surface-teal); color: var(--brand-teal); }
.help-card-icon svg { width: 38px; height: 40px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.help-card-heading h2 { margin: 0; font-size: var(--fs-card-title); line-height: 1.2; }
.help-card-heading p { margin: 6px 0 0; color: var(--text-secondary); font-size: var(--fs-small); }
.help-topics { display: grid; gap: 8px; }
.help-topic { border: 1px solid rgba(59,129,131,.13); border-radius: 14px; background: #FFFDFC; overflow: hidden; }
.help-topic summary { list-style: none; padding: 11px 12px; font-size: var(--fs-small); font-weight: 700; transition: color .18s ease, background .18s ease; }
.help-topic summary::-webkit-details-marker { display: none; }
.help-topic summary:hover { color: var(--brand-teal); background: var(--surface-teal); }
.help-topic[open] summary { color: var(--brand-teal); background: rgba(238,247,246,.8); }
.help-topic p { margin: 0; padding: 0 14px 14px 52px; color: var(--text-secondary); font-size: 14px; line-height: 1.5; }
.topic-arrow { color: var(--brand-teal); font-size: 22px; transition: transform .18s ease; }
.help-topic[open] .topic-arrow { transform: rotate(90deg); }
.help-contact { margin: 40px auto 0; display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; }
.help-contact p { margin: 0; font-weight: 700; }
.help-contact-button { min-height: 48px; display: inline-flex; align-items: center; padding: 10px 18px; border-radius: var(--radius-pill); background: var(--brand-teal); color: #fff; font-weight: 760; }
.help-contact-button:hover { background: var(--brand-teal); filter: brightness(.92); }

/* ---------- Partnerships ---------- */
.partnerships-main {
  min-height: calc(100svh - var(--header-h));
  padding: clamp(48px, 5vw, 82px) var(--page-gutter) clamp(72px, 7vw, 112px);
  background:
    radial-gradient(circle at 10% 8%, rgba(59,129,131,.09), transparent 26rem),
    radial-gradient(circle at 90% 18%, rgba(250,208,137,.25), transparent 26rem),
    var(--surface-page);
}
.partnerships-hero { width: min(100%, 1050px); margin: 0 auto 48px; text-align: center; }
.partnerships-kicker { margin: 0 0 10px; color: var(--brand-teal); font-size: 12px; font-weight: 850; letter-spacing: .16em; }
.partnerships-hero h1 { margin: 0; font-family: var(--font-display); font-size: var(--fs-page-title); line-height: 1.05; letter-spacing: -.043em; font-weight: 400; }
.partnerships-lede { max-width: 760px; margin: 14px auto 0; color: var(--text-secondary); font-size: var(--fs-body); }
.partnerships-grid { width: min(100%, 1320px); margin: 0 auto; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; }
.partnership-card { min-height: 300px; padding: 28px; border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); background: rgba(255,255,255,.82); box-shadow: var(--shadow-card); }
.partnership-card-mark { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-teal); color: var(--brand-teal); font-size: 12px; font-weight: 850; }
.partnership-card h2 { margin: 22px 0 12px; font-size: clamp(23px,1.8vw,31px); line-height: 1.12; }
.partnership-card p { margin: 0; color: var(--text-secondary); font-size: var(--fs-small); }
.partnerships-cta { width: min(100%, 1320px); margin: 26px auto 0; padding: 30px; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 28px; align-items: center; border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); background: var(--surface-teal); }
.partnerships-cta h2 { margin: 0; font-family: var(--font-display); font-size: clamp(30px,3vw,46px); line-height: 1.08; font-weight: 400; }
.partnerships-cta p:not(.partnerships-kicker) { margin: 10px 0 0; color: var(--text-secondary); }
.partnerships-contact { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 10px 18px; border-radius: var(--radius-pill); color: #fff; background: var(--brand-teal); font-weight: 760; white-space: nowrap; }
.partnerships-contact:hover { background: var(--brand-teal); filter: brightness(.92); }

/* ---------- Footer ---------- */
.site-footer {
  padding: 24px var(--page-gutter) 18px;
  border-top: 1px solid rgba(59,129,131,.12);
  background: var(--surface-soft);
}
.footer-inner {
  width: min(100%, 1540px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: center;
}
.footer-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 18px; }
.footer-nav a { font-size: clamp(13px,.92vw,16px); font-weight: 560; transition: color .18s ease; }
.footer-nav a:hover, .footer-nav a[aria-current='page'] { color: var(--brand-teal); }
.footer-nav .dot { color: #9B8E87; user-select: none; }
.app-store-link { width: 166px; display: inline-flex; border-radius: 10px; overflow: hidden; }
.app-store-link img { display: block; width: 100%; height: auto; }
.footer-copyright { margin: 10px 0 0; text-align: center; color: var(--text-muted); font-size: 12px; }

/* ---------- Notice ---------- */
.link-notice {
  position: fixed;
  left: 50%; bottom: 22px;
  z-index: 200;
  transform: translateX(-50%);
  width: min(calc(100% - 32px), 620px);
  padding: 12px 16px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.97);
  box-shadow: var(--shadow-float);
  color: var(--text-primary);
  text-align: center;
  font-size: 14px;
}

/* ---------- FAQ icon styling moved out of inline HTML ---------- */
.help-topic summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.topic-label { display: inline-flex; align-items: center; gap: 11px; min-width: 0; }
.topic-source-icon { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 9px; display: inline-grid; place-items: center; box-shadow: 0 2px 7px rgba(57,37,27,.08); }
.topic-source-icon svg { width: 19px; height: 19px; display: block; }
.topic-source-icon--youtube { background: #ff0033; }
.topic-source-icon--youtube svg { fill: #fff; }
.topic-source-icon--instagram { background: linear-gradient(135deg,#feda75 0%,#fa7e1e 28%,#d62976 58%,#962fbf 82%,#4f5bd5 100%); }
.topic-source-icon--instagram svg { fill: none; stroke: #fff; stroke-width: 2.4; }
.topic-source-icon--mindbody { background: #c8f8df; color: #222; font: 800 16px/1 var(--font-ui); letter-spacing: -.04em; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  :root { --product-card-max: 280px; }
  .hero-showcase { grid-template-columns: minmax(240px,.9fr) minmax(240px,.65fr) minmax(300px,1.1fr); gap: 24px; }
  .partnerships-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .partnership-card:last-child { grid-column: 1 / -1; }
}

@media (max-width: 1040px) {
  :root { --header-h: 72px; --product-card-max: 300px; }
  .site-header { height: var(--header-h); }
  .header-inner { grid-template-columns: 1fr auto; gap: 14px; }
  .brand-symbol { width: 46px; height: 46px; }
  .brand-wordmark { width: 160px; }
  .header-actions, .primary-nav { display: none; }
  .mobile-menu-button {
    width: 46px; height: 46px;
    display: grid; place-items: center;
    border: 1px solid rgba(59,129,131,.2);
    border-radius: 50%;
    background: rgba(255,255,255,.8);
    color: var(--brand-teal);
    cursor: pointer;
  }
  .mobile-menu-button svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
  .mobile-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: var(--page-gutter); right: var(--page-gutter);
    max-height: calc(100svh - var(--header-h) - 20px);
    overflow-y: auto;
    padding: 12px;
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    background: rgba(255,253,251,.98);
    box-shadow: var(--shadow-float);
  }
  .mobile-nav.is-open { display: grid; }
  .mobile-nav a { min-height: 46px; display: flex; align-items: center; padding: 9px 12px; border-radius: 12px; font-size: 15px; font-weight: 650; }
  .mobile-nav a:hover, .mobile-nav a[aria-current='page'] { color: var(--brand-teal); background: var(--surface-teal); }
  .mobile-nav .signup-link { justify-content: center; color: #fff; background: var(--brand-teal); }

  .hero { min-height: 0; }
  .hero-showcase { grid-template-columns: minmax(250px, .85fr) minmax(250px, .65fr); max-width: 760px; }
  .hero-teacher-stage { display: none; }
  .hero-mobile-teacher {
    width: min(100%, 760px);
    margin: 42px auto 0;
    display: grid;
    grid-template-columns: minmax(0,.72fr) minmax(260px,1.28fr);
    gap: 20px;
    align-items: center;
    padding: 22px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    background: rgba(255,255,255,.8);
    box-shadow: var(--shadow-card);
  }
  .mobile-teacher-copy h2 { margin: 0; font-family: var(--font-display); font-size: 30px; font-weight: 400; }
  .mobile-teacher-copy p { margin: 8px 0 0; color: var(--text-secondary); font-size: 15px; }
  .hero-mobile-teacher img { display: block; width: 100%; border-radius: 18px; }

  .pricing-table { display: none; }
  .mobile-price-cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
  .mobile-price-cards .price-card { border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); background: rgba(255,255,255,.86); box-shadow: var(--shadow-card); padding: 24px; }
  .mobile-price-cards .price-card-name { font-size: 25px; }
  .mobile-price-cards .price-number { font-size: 40px; }

  .help-grid { grid-template-columns: 1fr; max-width: 780px; }
  .partnerships-cta { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; justify-items: center; }
}

@media (max-width: 640px) {
  :root {
    --page-gutter: 18px;
    --fs-body: 16px;
    --fs-small: 14px;
    --fs-card-title: 21px;
    --fs-section-title: clamp(30px, 9vw, 42px);
    --fs-page-title: clamp(34px, 10.5vw, 48px);
    --fs-hero-title: clamp(36px, 11vw, 50px);
    --product-card-max: 320px;
  }
  .brand-symbol { width: 42px; height: 42px; }
  .brand-wordmark { width: 142px; }

  .hero { padding-top: 34px; }
  .hero-copy { margin-bottom: 28px; }
  .hero-subtitle { font-size: 16px; }
  .hero-showcase { grid-template-columns: 1fr; max-width: 390px; gap: 24px; }
  .hero-product-stage { width: min(88vw, 350px); }
  .hero-actions { width: min(100%, 350px); }
  .hero-mobile-teacher { grid-template-columns: 1fr; padding: 18px; margin-top: 30px; }
  .mobile-teacher-copy { text-align: center; }

  .interior-main { padding-top: 36px; }
  .interior-intro { margin-bottom: 30px; }
  .process-line { gap: 6px 9px; }
  .journey-grid, .technology-grid, .business-tools-grid { grid-template-columns: minmax(0,1fr); max-width: 320px; gap: 20px; }
  .journey-card, .platform-flow-card, .business-tool-card { max-width: 100%; }
  .journey-copy { min-height: 0; padding: 22px 20px 18px; }
  .platform-flow-card h2 { min-height: 0; padding: 22px 18px 16px; }
  .platform-flow-copy, .business-tool-copy { min-height: 0; }
  .product-stage { max-width: none; }

  .teacher-tools-primary, .teacher-tools-pricing { width: 100%; }
  .teacher-tools-pricing { margin: 10px 0 0; }

  .mobile-price-cards { grid-template-columns: 1fr; }
  .help-card { padding: 20px; }
  .help-card-heading { grid-template-columns: 48px minmax(0,1fr); }
  .help-card-icon { width: 46px; height: 46px; border-radius: 14px; }
  .help-topic p { padding-left: 14px; }
  .topic-source-icon { width: 28px; height: 28px; flex-basis: 28px; border-radius: 8px; }

  .partnerships-grid { grid-template-columns: 1fr; }
  .partnership-card:last-child { grid-column: auto; }
  .partnership-card { min-height: 0; }
  .partnerships-cta { padding: 24px; }
  .partnerships-contact { width: 100%; }

  .footer-nav { gap: 8px 12px; }
  .footer-nav .dot { display: none; }
  .footer-nav a { flex: 1 1 42%; text-align: center; }
}

/* Short landscape phones: reduce vertical padding without changing composition. */
@media (max-height: 500px) and (orientation: landscape) and (max-width: 950px) {
  :root { --header-h: 64px; }
  .hero, .interior-main, .help-page, .partnerships-main { padding-top: 24px; padding-bottom: 36px; }
  .hero-copy { margin-bottom: 20px; }
  .hero-showcase { grid-template-columns: minmax(200px,.8fr) minmax(220px,.7fr); max-width: 660px; }
  .hero-product-stage { max-width: 250px; }
  .hero-cta { min-height: 48px; font-size: 15px; }
  .hero-mobile-teacher { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}


/* ======================================================================
   LUNAMAT v4 micro-polish
   - Pricing plan names use a full teal header band.
   - Student/Teacher card headings use teal for clearer hierarchy.
   ====================================================================== */

/* Student + Teacher journey-card hierarchy:
   headings carry the brand accent; body copy stays neutral for readability. */
.journey-card .journey-copy h2 {
  color: var(--brand-teal);
}

/* Pricing: restore the strong plan-header treatment, now in Maddening Caravan teal. */
.pricing-table .price-card-name {
  margin: -22px -16px 0;
  padding: 18px 12px;
  background: var(--brand-teal);
  color: #fff;
  line-height: 1.15;
}

/* Keep the BETA badge readable inside the teal title band. */
.pricing-table .price-card-name .beta-tag {
  vertical-align: middle;
}

/* Mobile pricing uses the same visual language rather than a plain text heading. */
.mobile-price-cards .price-card {
  overflow: hidden;
}

.mobile-price-cards .price-card-name {
  margin: -24px -24px 0;
  padding: 18px 20px;
  background: var(--brand-teal);
  color: #fff;
  line-height: 1.15;
}

/* Pricing CTAs remain warm orange before interaction and turn teal on interaction. */
.price-cta {
  background: var(--brand-orange);
}

.price-cta:hover,
.price-cta:focus-visible,
.price-cta:active {
  background: var(--brand-teal);
  filter: brightness(.92);
}
