/* ============================================================
   LUNA — 90-Day CALM Framework landing page
   Tokens transcribed verbatim from the LUNA Management Design
   System bundle. Do not re-theme without checking the brand bible.
   ============================================================ */

/* ---- Fonts -------------------------------------------------
   Brand primary is Proxima Nova (licensed — NOT bundled).
   Substitute is Mulish, a variable font: one file per subset
   covers weights 300–800. Fallback ends in Arial per the bible.
   ------------------------------------------------------------ */
@font-face {
  font-family: 'Mulish';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("/assets/fonts/mulish-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Mulish';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("/assets/fonts/mulish-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---- Colour tokens ---- */
:root {
  --luna-copper: #b88068;
  --luna-copper-600: #a06b53;
  --luna-copper-700: #895a45;
  --luna-copper-300: #d3a892;
  --luna-copper-200: #e6cabb;
  --luna-copper-100: #f4e6dd;
  --luna-copper-50:  #faf3ee;

  --luna-navy: #1c2b3a;
  --luna-navy-800: #24384b;
  --luna-navy-700: #33495d;
  --luna-navy-600: #4b6072;
  --luna-navy-300: #9aa8b4;

  --white: #ffffff;
  --grey-50: #f7f6f5;
  --grey-100: #f5f5f5;
  --grey-200: #e8e6e4;
  --grey-300: #d6d3d0;
  --grey-400: #b3aeaa;
  --grey-500: #8a847f;
  --grey-600: #635d58;
  --grey-700: #454140;
  --grey-800: #333333;
  --grey-900: #1f1d1c;

  --danger: #b3543f;
  --success: #4f7d5c;

  --text-heading: var(--luna-navy);
  --text-body: var(--grey-800);
  --text-muted: var(--grey-600);
  --text-faint: var(--grey-500);
  --text-inverse: var(--white);
  --text-on-copper: var(--white);

  --border-default: var(--grey-200);
  --border-strong: var(--grey-300);

  --action-accent: var(--luna-copper);
  --action-accent-hover: var(--luna-copper-600);

  /* ---- Type ---- */
  --font-sans: "Mulish", "Proxima Nova", Arial, "Helvetica Neue", sans-serif;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-md: 1.125rem;

  --fw-semibold: 600;
  --fw-bold: 700;

  /* ---- Space & radius ---- */
  --space-2: 0.5rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --radius-md: 10px;
  --radius-lg: 14px;

  /* ---- Elevation & motion ---- */
  --shadow-xl: 0 24px 48px rgba(28, 43, 58, 0.16);
  --shadow-focus: 0 0 0 3px rgba(184, 128, 104, 0.30);
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-calm: cubic-bezier(0.2, 0, 0, 1);
  --dur-base: 200ms;

  /* ---- Layout ---- */
  --container: 1160px;
  --gutter: 32px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text-body);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, blockquote, figure { margin: 0; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button, input { font: inherit; }

:focus-visible {
  outline: 2px solid var(--luna-copper);
  outline-offset: 2px;
}

/* ============================================================
   Buttons — transcribed from the design system's Button
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-sans);
  font-weight: var(--fw-bold);
  line-height: 1;
  border: 1.5px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--dur-base) var(--ease-standard),
              border-color var(--dur-base) var(--ease-standard),
              box-shadow var(--dur-base) var(--ease-standard),
              opacity var(--dur-base) var(--ease-standard);
}
.btn--accent {
  background: var(--action-accent);
  border-color: var(--action-accent);
  color: var(--text-on-copper);
}
.btn--accent:hover {
  background: var(--action-accent-hover);
  border-color: var(--action-accent-hover);
}
.btn--sm { height: 38px; padding: 0 18px; font-size: 14px; }
.btn--lg { height: 52px; padding: 0 var(--space-6); font-size: var(--text-md); }
.btn--xl { height: 56px; padding: 0 34px; font-size: 17px; border-radius: var(--radius-md); }
.btn--full { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-default);
}
.site-header__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-header__logo { height: 30px; width: auto; }
.site-header__right { display: flex; align-items: center; gap: 24px; }
.site-header__eyebrow {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: var(--fw-semibold);
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  background: var(--luna-navy);
  color: var(--white);
  padding: 88px var(--gutter) 96px;
}
.hero__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 72px;
  align-items: start;
}
.eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.eyebrow__rule { width: 28px; height: 2px; background: var(--luna-copper); display: block; }
.eyebrow__text {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--luna-copper-300);
  font-weight: var(--fw-bold);
}
.hero__title {
  font-size: 60px;
  line-height: 1.04;
  letter-spacing: -0.02em;
  font-weight: var(--fw-bold);
  color: var(--white);
  text-wrap: balance;
}
.hero__lede {
  margin-top: 28px;
  font-size: 19px;
  line-height: 1.65;
  color: var(--luna-navy-300);
  max-width: 46ch;
  text-wrap: pretty;
}
.stats { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 40px; }
.stat__value {
  font-size: 30px;
  font-weight: var(--fw-bold);
  color: var(--white);
  letter-spacing: -0.01em;
}
.stat__suffix { color: var(--luna-copper); font-size: 20px; }
.stat__label {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--luna-navy-600);
  font-weight: var(--fw-semibold);
  margin-top: 6px;
}

/* ---- Lead capture card ---- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 34px 32px 30px;
  box-shadow: var(--shadow-xl);
  color: var(--text-body);
  scroll-margin-top: 90px;
}
.card__flag {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--luna-copper);
  font-weight: var(--fw-bold);
}
.card__title {
  margin: 12px 0 10px;
  font-size: 26px;
  line-height: 1.2;
  font-weight: var(--fw-bold);
  color: var(--text-heading);
  letter-spacing: -0.01em;
}
.card__lede { margin-bottom: 22px; font-size: 15px; line-height: 1.6; color: var(--text-muted); }
.card__note { margin-top: 16px; font-size: 13px; line-height: 1.5; color: var(--text-faint); }
.card__note--ok { color: var(--success); }
.card__note--error { color: var(--danger); }

/* ---- Form fields — transcribed from the design system's Input ---- */
.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: var(--space-2); }
.field__label {
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--text-heading);
}
.field__input {
  height: 44px;
  padding: 0 var(--space-4);
  font-size: var(--text-base);
  color: var(--text-body);
  background: var(--white);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color var(--dur-base) var(--ease-standard),
              box-shadow var(--dur-base) var(--ease-standard);
}
.field__input:focus {
  border-color: var(--luna-copper);
  box-shadow: var(--shadow-focus);
}
.field--error .field__input { border-color: var(--danger); box-shadow: none; }
.form__actions { margin-top: 4px; }

/* honeypot — off-screen, never focusable by tabbing */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ============================================================
   Photo band
   ============================================================ */
.photo-band { position: relative; width: 100%; height: 300px; background: var(--grey-100); }
.photo-band img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   Section intro
   ============================================================ */
.section-intro { max-width: var(--container); margin: 0 auto; padding: 96px var(--gutter) 40px; }
.section-intro__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: end; }
.section-intro__title {
  font-size: 44px;
  line-height: 1.1;
  font-weight: var(--fw-bold);
  color: var(--text-heading);
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.section-intro__text { font-size: 17px; line-height: 1.7; color: var(--text-muted); text-wrap: pretty; }

/* ============================================================
   CALM phase strip
   ============================================================ */
.calm { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter) 48px; }
.calm__strip {
  display: flex;
  gap: 8px;
  height: 540px;
  border-radius: 16px;
  overflow: hidden;
}
.phase {
  flex: 1 1 0%;
  min-width: 0;
  overflow: hidden;
  position: relative;
  border: 0;
  padding: 0;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  background: var(--luna-navy);
  transition: flex 560ms var(--ease-calm);
}
.phase.is-active { flex: 3.2 1 0%; }
.phase__inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 36px 32px;
  position: relative;
}
/* The strip lives inside <button>s, so every part is a <span>.
   They need explicit block display for the box model to apply. */
.phase__weeks,
.phase__letter,
.phase__foot,
.phase__title,
.phase__detail,
.phase__question { display: block; }

.phase__weeks {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: var(--fw-bold);
  color: rgba(255, 255, 255, 0.65);
  white-space: nowrap;
}
.phase__letter {
  font-size: 96px;
  line-height: 0.9;
  font-weight: var(--fw-bold);
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: -0.04em;
  margin-top: 18px;
  transition: font-size 560ms var(--ease-calm), color 560ms var(--ease-calm);
}
.phase.is-active .phase__letter { font-size: 150px; color: rgba(255, 255, 255, 0.95); }
.phase__foot { margin-top: auto; min-width: 0; }
.phase__title {
  font-size: 25px;
  font-weight: var(--fw-bold);
  color: var(--white);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.phase__detail {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 420ms var(--ease-calm), opacity 180ms var(--ease-calm);
}
.phase.is-active .phase__detail {
  max-height: 320px;
  opacity: 1;
  transition: max-height 560ms var(--ease-calm), opacity 420ms var(--ease-calm) 180ms;
}
.phase__question {
  margin: 14px 0 18px;
  font-size: 17px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.85);
  font-weight: var(--fw-semibold);
  max-width: 40ch;
}
.phase__items { display: flex; flex-direction: column; gap: 10px; max-width: 46ch; }
.phase__item { display: flex; gap: 12px; align-items: flex-start; }
.phase__bullet {
  width: 14px;
  height: 2px;
  background: rgba(255, 255, 255, 0.55);
  margin-top: 10px;
  flex-shrink: 0;
}
.phase__item span:last-child { font-size: 15px; line-height: 1.5; color: rgba(255, 255, 255, 0.92); }

.calm__rail-wrap { margin-top: 28px; }
.calm__rail {
  position: relative;
  height: 4px;
  border-radius: 999px;
  background: var(--grey-200);
  overflow: hidden;
}
.calm__rail-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 16.6667%;
  background: var(--luna-copper);
  border-radius: 999px;
  transition: width 560ms var(--ease-calm);
}
.calm__marks { display: flex; justify-content: space-between; margin-top: 12px; }
.calm__mark {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: var(--fw-bold);
  color: var(--text-faint);
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
  transition: color 300ms var(--ease-calm);
}
.calm__mark.is-active { color: var(--luna-copper-600); }

/* ============================================================
   Pull quote
   ============================================================ */
.pullquote { max-width: var(--container); margin: 0 auto; padding: 56px var(--gutter) 96px; }
.pullquote__inner {
  border-left: 3px solid var(--luna-copper);
  padding: 8px 0 8px 32px;
  max-width: 900px;
  margin: 0;
}
.pullquote__inner p {
  font-size: 27px;
  line-height: 1.45;
  font-weight: var(--fw-bold);
  color: var(--text-heading);
  letter-spacing: -0.01em;
  text-wrap: pretty;
}

/* ============================================================
   Closing CTA + footer
   ============================================================ */
.cta { background: var(--luna-navy); color: var(--white); padding: 84px var(--gutter); }
.cta__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 56px;
  align-items: center;
}
.cta__title {
  margin-bottom: 14px;
  font-size: 40px;
  line-height: 1.12;
  font-weight: var(--fw-bold);
  color: var(--white);
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.cta__text { font-size: 18px; line-height: 1.6; color: var(--luna-navy-300); max-width: 52ch; }

.site-footer { background: var(--luna-navy-800); color: var(--luna-navy-300); padding: 28px var(--gutter); }
.site-footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 13px;
}
.site-footer__brand { letter-spacing: 0.14em; text-transform: uppercase; font-weight: var(--fw-semibold); }

/* ============================================================
   Reveal-on-scroll (JS adds .is-armed, then .is-in)
   ============================================================ */
[data-reveal].is-armed {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 420ms var(--ease-calm), transform 420ms var(--ease-calm);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* ============================================================
   Responsive — the bundle was desktop-only; these are additive
   ============================================================ */
@media (max-width: 1080px) {
  .hero__inner { gap: 48px; }
  .hero__title { font-size: 52px; }
  .section-intro__inner { gap: 40px; }
  .section-intro__title { font-size: 38px; }
}

@media (max-width: 900px) {
  :root { --gutter: 24px; }

  .site-header__eyebrow { display: none; }

  .hero { padding: 56px var(--gutter) 64px; }
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__title { font-size: 40px; }
  .hero__lede { font-size: 17px; margin-top: 20px; }
  .stats { gap: 28px 40px; margin-top: 32px; }

  .photo-band { height: 220px; }

  .section-intro { padding: 64px var(--gutter) 32px; }
  .section-intro__inner { grid-template-columns: 1fr; gap: 20px; align-items: start; }
  .section-intro__title { font-size: 32px; }

  /* Phases stack vertically; the active one opens downward. */
  .calm__strip { flex-direction: column; height: auto; }
  .phase, .phase.is-active { flex: 0 0 auto; }
  .phase__inner { padding: 24px; }
  .phase__letter { font-size: 56px; margin-top: 10px; }
  .phase.is-active .phase__letter { font-size: 72px; }
  .phase__foot { margin-top: 16px; }
  .phase__title { font-size: 22px; white-space: normal; }
  .phase.is-active .phase__detail { max-height: 460px; }
  .calm__marks { display: none; }
  .calm__rail-wrap { display: none; }

  .pullquote { padding: 40px var(--gutter) 64px; }
  .pullquote__inner { padding-left: 20px; }
  .pullquote__inner p { font-size: 21px; }

  .cta { padding: 56px var(--gutter); }
  .cta__inner { grid-template-columns: 1fr; gap: 28px; align-items: start; }
  .cta__title { font-size: 30px; }
  .cta__text { font-size: 16px; }

  .site-footer__inner { flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media (max-width: 480px) {
  .hero__title { font-size: 33px; }
  .card { padding: 26px 22px 24px; }
  .card__title { font-size: 22px; }
  .stats { gap: 20px 32px; }
  .stat__value { font-size: 26px; }
}

/* ============================================================
   Reduced motion — no reveals, no auto-rotation transitions
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal].is-armed { opacity: 1; transform: none; }
}
