/* ============================================================
   Balance Academy - design system
   Palette: Brand Guidelines v3 2026 (exact hexes, light bg only)
   Headings: Fraunces (Canela stand-in)
   Body/UI: Inter (Area Normal stand-in)
   ============================================================ */

/* ------------------------------------------------------------
   FONT SWAP SLOT (licensed webfonts)
   When Canela and Area Normal licences are in place:
   1. Drop the woff2 files into ./fonts/
   2. Uncomment the @font-face blocks below
   3. Swap the font stacks in :root (--font-heading / --font-body)
   4. Remove the Google Fonts @import

@font-face {
  font-family: 'Canela';
  src: url('fonts/Canela-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Canela';
  src: url('fonts/Canela-Medium.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Area Normal';
  src: url('fonts/AreaNormal-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Area Normal';
  src: url('fonts/AreaNormal-Semibold.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
------------------------------------------------------------ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Inter:wght@400;500;600&display=swap');

:root {
  /* Brand palette (exact) */
  --morning-mist: #D1E0D7;
  --arctic-white: #EDF0ED;
  --forest-fern: #516E5A;
  --obsidian-night: #161F28;
  --desert-sage: #AFCCB8;
  --deep-juniper: #22372B;
  /* Accents - graphics only, never text */
  --glacier-blue: #D3DFE8;
  --orchid-whisper: #E5CEDB;
  --twilight-haze: #DAD7E0;

  /* Derived tints (brand colours mixed with white, backgrounds only) */
  --mist-tint: #E8F0EB;
  --card-white: #FFFFFF;
  /* Store-matched page background (sampled from balancecoffee.co.uk collection pages) */
  --page-bg: #F1F5F2;
  --card-sage: #E8EEE7;

  --font-heading: 'Fraunces', 'Canela', Georgia, serif;
  --font-body: 'Inter', 'Area Normal', -apple-system, BlinkMacSystemFont, sans-serif;

  --shadow-soft: 0 10px 30px rgba(22, 31, 40, 0.06);
  --shadow-lift: 0 14px 40px rgba(22, 31, 40, 0.10);
  --radius-card: 20px;
  --radius-field: 16px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--obsidian-night);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--deep-juniper);
  font-weight: 500;
  line-height: 1.15;
  margin: 0;
}

a { color: var(--deep-juniper); }

button { font-family: var(--font-body); }

:focus-visible {
  outline: 2px solid var(--forest-fern);
  outline-offset: 3px;
  border-radius: 4px;
}

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

/* ---------- Eyebrow labels ---------- */

.eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--forest-fern);
  margin: 0 0 10px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(241, 245, 242, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(22, 31, 40, 0.05);
}

.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 18px 28px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

/* centred wordmark, matching the main site */
.header-inner .brand { grid-column: 2; }

.header-inner .subscriber-link { grid-column: 3; justify-self: end; }

.brand { display: inline-flex; align-items: center; }

.brand img {
  width: 150px;
  height: auto;
  display: block;
}

.subscriber-link {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--deep-juniper);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(34, 55, 43, 0.18);
  transition: background 200ms var(--ease), border-color 200ms var(--ease);
}

.subscriber-link:hover {
  background: var(--morning-mist);
  border-color: transparent;
}

/* ---------- Hero ---------- */

main {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 28px;
}

.masthead {
  text-align: center;
  padding: 64px 0 28px;
}

.masthead-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--forest-fern);
  background: var(--card-white);
  border: 1px solid rgba(81, 110, 90, 0.35);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.masthead-badge svg {
  width: 13px;
  height: 13px;
}

.masthead h1 {
  font-family: var(--font-heading);
  font-size: clamp(38px, 6vw, 58px);
  letter-spacing: -0.01em;
  color: var(--deep-juniper);
  margin: 0 0 14px;
}

.masthead-sub {
  font-size: 17px;
  color: rgba(22, 31, 40, 0.68);
  max-width: 620px;
  margin: 0 auto;
  text-wrap: balance;
}

.journey-bridge {
  text-align: center;
  font-size: 14px;
  font-style: italic;
  color: rgba(22, 31, 40, 0.5);
  margin: 26px auto 0;
  max-width: 420px;
}

.hero {
  text-align: center;
  padding: 6px 0 26px;
}

/* 12-month journey strip: single horizontal row of month circles */
.journey-strip {
  margin-top: 40px;
  padding: 22px 8px 26px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.journey-strip::-webkit-scrollbar { display: none; }

/* Slider: 6 months visible, slide through to 12 */
.journey-viewport {
  position: relative;
  padding: 0 44px;
}

.journey-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.journey-track::-webkit-scrollbar { display: none; }

.journey-track .journey-month {
  flex: 0 0 25%;
  scroll-snap-align: start;
}

.journey-track .journey-month:first-child::before { display: none; }

.journey-arrow {
  position: absolute;
  top: 5px;
  transform: translateY(-50%);
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(34, 55, 43, 0.18);
  background: var(--card-white);
  color: var(--deep-juniper);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: opacity 200ms var(--ease), background 200ms var(--ease);
}

.journey-arrow:hover { background: var(--morning-mist); }

.journey-arrow[disabled] { opacity: 0.25; cursor: default; }

.journey-arrow.prev { left: 0; }

.journey-arrow.next { right: 0; }


/* level strip under the slider */
.journey-levels {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
  flex-wrap: wrap;
}

.journey-level {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--deep-juniper);
}

.journey-level em {
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  color: rgba(22, 31, 40, 0.55);
  margin-left: 4px;
}

.journey-level.is-here { color: var(--forest-fern); }

.journey-level-sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(34, 55, 43, 0.25);
}

.journey-heading {
  font-family: var(--font-heading);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--deep-juniper);
  text-align: center;
  margin: 0 0 6px;
}

.journey-intro {
  font-size: 13.5px;
  color: rgba(22, 31, 40, 0.6);
  text-align: center;
  margin: 0 0 26px;
}

.journey-month {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
}

/* connector line - a single straight spine through the ticks, always the same height */
.journey-month::before {
  content: '';
  position: absolute;
  top: 5px;
  left: -50%;
  width: 100%;
  height: 2px;
  background: rgba(34, 55, 43, 0.14);
  z-index: 0;
}

.journey-month.is-reached::before { background: var(--desert-sage); }

/* tick - the spine marker, uniform for every month regardless of gift count */
.journey-tick {
  position: relative;
  z-index: 1;
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--page-bg);
  border: 2px solid rgba(34, 55, 43, 0.22);
  margin-bottom: 4px;
}

.journey-month.is-reached .journey-tick { border-color: var(--desert-sage); }

.journey-month.is-current .journey-tick {
  background: var(--forest-fern);
  border-color: var(--forest-fern);
}

.journey-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.journey-gifts {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.journey-giftrow {
  display: flex;
  align-items: center;
  gap: 10px;
}

.journey-giftname {
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.3;
  color: rgba(22, 31, 40, 0.72);
  text-align: left;
  max-width: 104px;
}

.journey-circle {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 500;
  color: rgba(34, 55, 43, 0.55);
  background: var(--card-white);
  border: 2px solid rgba(34, 55, 43, 0.18);
  transition: transform 200ms var(--ease), border-color 200ms var(--ease);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.journey-circle .journey-icon {
  width: 15px;
  height: 15px;
  color: rgba(34, 55, 43, 0.5);
  opacity: 1;
}

.journey-circle.is-guide-circle,
.journey-circle.is-tbc-circle {
  border-style: dashed;
  box-shadow: none;
}

.journey-monthname {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--deep-juniper);
  margin-top: 2px;
}

.journey-levelname {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--forest-fern);
  text-align: center;
  line-height: 1.3;
}

.journey-cardlabel {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--deep-juniper);
  text-align: center;
}

.journey-cardsub {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 11px;
  line-height: 1.35;
  color: rgba(22, 31, 40, 0.55);
  text-align: center;
  margin-top: 4px;
}

.journey-cardsub > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.journey-icon {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  color: var(--forest-fern);
  opacity: 0.75;
}

.journey-cardlabel .journey-icon {
  width: 13px;
  height: 13px;
  opacity: 0.9;
}

.journey-item.is-tbc-note {
  font-size: 11px;
  color: rgba(22, 31, 40, 0.45);
  font-style: italic;
}


.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--deep-juniper);
  margin: 0 0 6px;
}

.hero-sub {
  font-size: 17px;
  color: rgba(22, 31, 40, 0.68);
  max-width: 480px;
  margin: 0 auto;
}

/* ---------- Controls: pill nav + search ---------- */

.controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  padding-bottom: 56px;
}

.pill-nav {
  display: inline-flex;
  background: var(--morning-mist);
  border-radius: 999px;
  padding: 5px;
  gap: 4px;
}

.pill-nav button {
  appearance: none;
  border: 0;
  background: transparent;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--deep-juniper);
  padding: 11px 34px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 200ms var(--ease), box-shadow 200ms var(--ease), color 200ms var(--ease);
}

.pill-nav button:hover { color: var(--obsidian-night); }

.pill-nav button[aria-pressed="true"] {
  background: var(--arctic-white);
  box-shadow: 0 4px 14px rgba(22, 31, 40, 0.10);
  font-weight: 600;
}

.search-wrap {
  position: relative;
  width: 100%;
  max-width: 560px;
}

.search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 19px;
  height: 19px;
  color: rgba(34, 55, 43, 0.5);
  pointer-events: none;
}

#search {
  width: 100%;
  border: 1px solid transparent;
  background: var(--card-white);
  border-radius: var(--radius-field);
  box-shadow: var(--shadow-soft);
  padding: 17px 22px 17px 52px;
  font-family: var(--font-body);
  font-size: 15.5px;
  color: var(--obsidian-night);
  transition: box-shadow 200ms var(--ease), border-color 200ms var(--ease);
}

#search::placeholder { color: rgba(22, 31, 40, 0.42); }

#search:focus {
  outline: none;
  border-color: var(--desert-sage);
  box-shadow: var(--shadow-lift);
}

#search::-webkit-search-cancel-button { -webkit-appearance: none; }

/* ---------- Views ---------- */

.view { padding-bottom: 96px; }

.view[hidden] { display: none; }

.empty-note {
  text-align: center;
  color: rgba(22, 31, 40, 0.55);
  padding: 40px 0;
  font-size: 15px;
}

.is-hidden { display: none !important; }

/* ---------- Loyalty banner ---------- */

.level-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--morning-mist);
  border-radius: var(--radius-field);
  padding: 16px 22px;
  margin-bottom: 44px;
  font-size: 14.5px;
  color: var(--deep-juniper);
}

.level-banner .banner-dot {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--forest-fern);
  box-shadow: 0 0 0 4px rgba(81, 110, 90, 0.18);
}

/* ---------- Level sections ---------- */

.level { margin-bottom: 56px; }

.level-head { margin-bottom: 22px; }

.level-head h2 {
  font-size: 30px;
  margin: 0 0 6px;
}

.level-tagline {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(22, 31, 40, 0.62);
  max-width: 680px;
  text-wrap: balance;
}

/* ---------- Lesson rows ---------- */

.lesson-list {
  background: var(--card-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.lesson-row { border-top: 1px solid rgba(22, 31, 40, 0.06); }

.lesson-row:first-child { border-top: 0; }

.lesson-head {
  appearance: none;
  border: 0;
  background: transparent;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 26px;
  text-align: left;
  cursor: pointer;
  transition: background 200ms var(--ease);
}

.lesson-head:hover { background: var(--mist-tint); }

.lesson-meta {
  flex: none;
  width: 92px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.lesson-mins {
  font-size: 14px;
  font-weight: 600;
  color: var(--deep-juniper);
  font-variant-numeric: tabular-nums;
}

.lesson-eyebrow {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(34, 55, 43, 0.55);
}

.lesson-bar {
  flex: none;
  width: 3px;
  height: 40px;
  border-radius: 3px;
  background: var(--desert-sage);
  transition: background 200ms var(--ease);
}

.lesson-title {
  flex: 1;
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 500;
  color: var(--deep-juniper);
  line-height: 1.3;
}

.lesson-chevron {
  flex: none;
  width: 18px;
  height: 18px;
  color: rgba(34, 55, 43, 0.45);
  transition: transform 200ms var(--ease);
}

/* Open state: outlined row, rotated chevron, fern bar */

.lesson-row.is-open {
  background: var(--mist-tint);
  box-shadow: inset 0 0 0 1.5px var(--desert-sage);
}

.lesson-row.is-open .lesson-bar { background: var(--forest-fern); }

.lesson-row.is-open .lesson-chevron { transform: rotate(180deg); }

.lesson-row.is-open .lesson-head:hover { background: transparent; }

/* Expanding detail panel (grid-rows animation) */

.lesson-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 200ms var(--ease);
}

.lesson-row.is-open .lesson-panel { grid-template-rows: 1fr; }

.lesson-panel-inner {
  overflow: hidden;
  min-height: 0;
}

.lesson-body {
  padding: 6px 26px 30px 139px; /* aligns with title column */
  max-width: 720px;
}

.lesson-body p {
  margin: 0 0 16px;
  font-size: 15.5px;
  color: var(--obsidian-night);
}

.lesson-body h3 {
  font-size: 19px;
  margin: 26px 0 12px;
}

.lesson-body ul, .lesson-body ol {
  margin: 0 0 16px;
  padding-left: 22px;
}

.lesson-body li {
  margin-bottom: 8px;
  font-size: 15.5px;
}

.lesson-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 4px 0 20px;
  font-size: 14.5px;
  background: var(--card-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.lesson-body th {
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--forest-fern);
  background: var(--morning-mist);
  padding: 10px 16px;
}

.lesson-body td {
  padding: 10px 16px;
  border-top: 1px solid rgba(22, 31, 40, 0.06);
  font-variant-numeric: tabular-nums;
}

.lesson-body h4 {
  font-size: 16px;
  margin: 20px 0 8px;
}

.lesson-body img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  margin: 4px 0 20px;
}

.lesson-body img.lesson-headshot {
  width: 84px;
  height: 84px;
  border-radius: 50%;
}

.lesson-body blockquote {
  margin: 0 0 16px;
  padding: 14px 18px;
  background: var(--morning-mist);
  border-left: 3px solid var(--forest-fern);
  border-radius: 0 12px 12px 0;
}

.lesson-body blockquote p:last-child,
.lesson-body blockquote ul:last-child {
  margin-bottom: 0;
}

.lesson-body a {
  color: var(--forest-fern);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Video embed (real video) */

.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  background: #000;
  margin: 4px 0 22px;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Video slot */

.video-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  aspect-ratio: 16 / 9;
  max-height: 260px;
  width: 100%;
  border-radius: 14px;
  background: var(--glacier-blue);
  margin: 4px 0 22px;
}

.video-slot svg {
  width: 44px;
  height: 44px;
  color: var(--deep-juniper);
  opacity: 0.75;
}

.video-slot span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--deep-juniper);
  opacity: 0.65;
}

/* CTA button */

.btn-primary {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  background: var(--forest-fern);
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: background 200ms var(--ease), transform 200ms var(--ease), box-shadow 200ms var(--ease);
}

.btn-primary:hover {
  background: var(--deep-juniper);
  box-shadow: 0 8px 20px rgba(34, 55, 43, 0.25);
  transform: translateY(-1px);
}

.btn-secondary {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--card-white);
  color: var(--forest-fern);
  border: 1px solid rgba(81, 110, 90, 0.35);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 200ms var(--ease), border-color 200ms var(--ease);
}

.btn-secondary:hover {
  background: var(--mist-tint);
  border-color: var(--forest-fern);
}

.perks-toggle-wrap {
  display: flex;
  justify-content: center;
  padding: 12px 0 56px;
}

.perks-chevron {
  width: 15px;
  height: 15px;
  transition: transform 200ms var(--ease);
}

#perks-toggle[aria-expanded="true"] .perks-chevron { transform: rotate(180deg); }

.perks-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 320ms var(--ease);
}

.perks-panel-inner { overflow: hidden; min-height: 0; }

.perks-panel.is-open { grid-template-rows: 1fr; }

/* Placeholder (coming soon) lessons */

.lesson-row.is-placeholder .lesson-head { cursor: default; }

.lesson-row.is-placeholder .lesson-head:hover { background: transparent; }

.lesson-row.is-placeholder .lesson-title { color: rgba(34, 55, 43, 0.5); }

.lesson-row.is-placeholder .lesson-bar { background: rgba(175, 204, 184, 0.45); }

/* ---------- Badges ---------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 13px;
  border-radius: 999px;
  white-space: nowrap;
}

.badge-soon {
  background: var(--twilight-haze);
  color: var(--deep-juniper);
}

.badge-locked {
  background: var(--twilight-haze);
  color: var(--deep-juniper);
}

/* ---------- Locked level cards ---------- */

.locked-card {
  display: block;
  width: 100%;
  background: var(--card-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  padding: 34px 36px;
  cursor: pointer;
  transition: box-shadow 200ms var(--ease), transform 200ms var(--ease);
}

.locked-card:hover {
  box-shadow: var(--shadow-lift);
  transform: translateY(-2px);
}

.locked-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.lock-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--twilight-haze);
}

.lock-glyph svg {
  width: 19px;
  height: 19px;
  color: var(--deep-juniper);
}

.locked-card h2 {
  font-size: 26px;
  margin: 0 0 6px;
}

.teaser-list {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  border-top: 1px solid rgba(22, 31, 40, 0.07);
}

.teaser-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(22, 31, 40, 0.07);
  font-size: 14.5px;
  color: rgba(22, 31, 40, 0.55);
}

.teaser-list svg {
  flex: none;
  width: 14px;
  height: 14px;
  color: rgba(34, 55, 43, 0.4);
}

/* ---------- Guides ---------- */

.guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.guide-card {
  display: flex;
  flex-direction: column;
  background: var(--card-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  padding: 30px;
  transition: box-shadow 200ms var(--ease), transform 200ms var(--ease);
}

.guide-card:not(.is-soon):hover {
  box-shadow: var(--shadow-lift);
  transform: translateY(-2px);
}

.guide-card h3 {
  font-size: 21px;
  margin: 0 0 10px;
}

.guide-blurb {
  margin: 0 0 22px;
  font-size: 14.5px;
  color: rgba(22, 31, 40, 0.65);
  flex: 1;
}

.guide-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
  color: var(--forest-fern);
  text-decoration: none;
  transition: gap 200ms var(--ease);
}

.guide-link:hover { gap: 11px; }

.guide-link svg { width: 15px; height: 15px; }

.guide-card.is-soon { opacity: 0.82; }

.guide-card .badge-soon { align-self: flex-start; }

/* ---------- Guide detail (in-app article view) ---------- */

.guide-detail {
  max-width: 720px;
  margin: 0 auto;
  padding: 8px 0 40px;
}

.guide-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--forest-fern);
  text-decoration: none;
  margin-bottom: 18px;
  transition: gap 200ms var(--ease);
}

.guide-back:hover { gap: 11px; }

.guide-back svg { width: 15px; height: 15px; }

.guide-detail h1 {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 38px);
  color: var(--deep-juniper);
  margin: 4px 0 20px;
}

.guide-detail .lesson-body {
  padding: 0;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid rgba(22, 31, 40, 0.06);
  text-align: center;
  padding: 44px 28px 56px;
}

.footer-line {
  margin: 0 0 8px;
  font-size: 14px;
  color: rgba(22, 31, 40, 0.6);
}

.footer-link {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--forest-fern);
  text-decoration: none;
}

.footer-link:hover { text-decoration: underline; }

/* ---------- Gate modal ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal[hidden] { display: none; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(22, 31, 40, 0.45);
  opacity: 0;
  transition: opacity 200ms var(--ease);
}

.modal.is-open .modal-backdrop { opacity: 1; }

.modal-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: var(--card-white);
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(22, 31, 40, 0.28);
  padding: 40px 38px 34px;
  text-align: center;
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  transition: opacity 200ms var(--ease), transform 200ms var(--ease);
}

.modal.is-open .modal-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  appearance: none;
  border: 0;
  background: transparent;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  color: rgba(22, 31, 40, 0.5);
  transition: background 200ms var(--ease), color 200ms var(--ease);
}

.modal-close:hover {
  background: var(--mist-tint);
  color: var(--obsidian-night);
}

.modal-close svg { width: 15px; height: 15px; }

.gate-lock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--twilight-haze);
  margin-bottom: 18px;
}

.gate-lock svg {
  width: 23px;
  height: 23px;
  color: var(--deep-juniper);
}

.modal-card h2 { font-size: 25px; margin: 0 0 12px; }

.gate-copy {
  margin: 0 0 24px;
  font-size: 14.5px;
  color: rgba(22, 31, 40, 0.68);
}

#gate-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#gate-email {
  width: 100%;
  border: 1px solid rgba(22, 31, 40, 0.14);
  border-radius: 14px;
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--obsidian-night);
  background: var(--arctic-white);
  transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}

#gate-email:focus {
  outline: none;
  border-color: var(--desert-sage);
  box-shadow: 0 0 0 3px rgba(175, 204, 184, 0.35);
}

#gate-email::placeholder { color: rgba(22, 31, 40, 0.38); }

.gate-error {
  margin: 0;
  font-size: 13px;
  color: var(--deep-juniper);
  font-weight: 500;
}

.gate-success {
  margin: 0 0 4px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--forest-fern);
}

.gate-fine {
  margin: 22px 0 0;
  font-size: 12.5px;
  color: rgba(22, 31, 40, 0.5);
}

/* ---------- Reduced motion ---------- */

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

/* ---------- Responsive (720px) ---------- */

@media (max-width: 720px) {
  .header-inner { padding: 14px 20px; }

  .brand img { width: 122px; }

  main { padding: 0 20px; }

  .hero { padding: 56px 0 32px; }

  .journey-strip { margin-top: 20px; padding-bottom: 18px; }

  /* 3 visible per slide on mobile */
  .journey-track .journey-month { flex: 0 0 50%; }

  .journey-viewport { padding: 0 36px; }

  .journey-circle { width: 30px; height: 30px; font-size: 12px; }

  .journey-giftname { font-size: 11px; max-width: 74px; }

  .journey-month::before { top: 5px; }

  .journey-arrow { top: 5px; width: 32px; height: 32px; }

  .masthead h1 { font-size: 34px; }

  .masthead { padding: 40px 0 22px; }

  .controls { gap: 20px; padding-bottom: 40px; }

  .pill-nav button { padding: 10px 26px; }

  .lesson-head { padding: 18px 18px; gap: 14px; }

  .lesson-meta { width: 64px; }

  .lesson-eyebrow { font-size: 9px; letter-spacing: 0.07em; overflow-wrap: anywhere; }

  .lesson-title { font-size: 17px; }

  .lesson-body { padding: 4px 18px 24px 18px; }

  .locked-card { padding: 26px 22px; }

  .modal-card { padding: 34px 24px 28px; }

  .level-banner { font-size: 13.5px; padding: 14px 18px; }
}

/* ============================================================
   Free Guides - public lead magnet pages (/free-guides/*)
   Public, email-gated via Klaviyo (not yet wired), indexed for SEO.
   ============================================================ */

.lm-header {
  border-bottom: 1px solid rgba(34, 55, 43, 0.1);
  padding: 18px 28px;
  text-align: center;
}

.lm-header img { width: 150px; height: auto; }

.lm-main {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px;
}

.lm-hero {
  text-align: center;
  padding: 56px 0 8px;
}

.lm-hero .eyebrow { justify-content: center; display: flex; }

.lm-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(30px, 5vw, 44px);
  color: var(--deep-juniper);
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}

.lm-hero p {
  font-size: 16px;
  color: rgba(22, 31, 40, 0.68);
  max-width: 480px;
  margin: 0 auto;
}

.lm-body {
  padding: 32px 0 8px;
  max-width: 100%;
}

.lm-capture {
  background: var(--card-white);
  border: 1px solid rgba(34, 55, 43, 0.12);
  border-radius: 20px;
  padding: 32px 28px;
  margin: 40px 0 56px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.lm-capture h2 {
  font-family: var(--font-heading);
  font-size: 24px;
  color: var(--deep-juniper);
  margin: 0 0 8px;
}

.lm-capture p {
  font-size: 14px;
  color: rgba(22, 31, 40, 0.65);
  margin: 0 0 20px;
}

/* Klaviyo embed slot - swap this block for the real Klaviyo form embed script.
   The form below is a visual placeholder only and does not submit anywhere yet. */
#klaviyo-embed-slot {
  display: flex;
  gap: 10px;
  max-width: 400px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

#klaviyo-embed-slot input[type="email"] {
  flex: 1 1 220px;
  padding: 13px 16px;
  border-radius: 999px;
  border: 1px solid rgba(34, 55, 43, 0.22);
  font-family: var(--font-body);
  font-size: 14px;
  background: var(--page-bg);
}

#klaviyo-embed-slot input[type="email"]:focus {
  outline: none;
  border-color: var(--forest-fern);
}

.lm-capture .lm-fineprint {
  font-size: 11.5px;
  color: rgba(22, 31, 40, 0.45);
  margin: 14px 0 0;
}

.lm-footer {
  text-align: center;
  padding: 24px 0 48px;
  font-size: 13px;
  color: rgba(22, 31, 40, 0.5);
}

.lm-footer a { color: var(--forest-fern); }

.lm-more {
  text-align: center;
  padding: 8px 0 40px;
  border-top: 1px solid rgba(34, 55, 43, 0.1);
  margin-top: 8px;
}

.lm-more a {
  color: var(--forest-fern);
  font-weight: 600;
  font-size: 14px;
}

.lm-unlock {
  background: var(--deep-juniper);
  border-radius: 24px;
  padding: 48px 32px;
  margin: 0 0 56px;
  text-align: center;
  color: #FFFFFF;
}

.lm-unlock .lock-glyph {
  background: rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
  margin-bottom: 18px;
}

.lm-unlock .eyebrow { color: var(--desert-sage); justify-content: center; display: flex; }

.lm-unlock h2 {
  font-family: var(--font-heading);
  font-size: clamp(24px, 4vw, 32px);
  margin: 0 0 8px;
}

.lm-unlock > p.lm-unlock-sub {
  color: rgba(255, 255, 255, 0.7);
  max-width: 440px;
  margin: 0 auto 28px;
  font-size: 15px;
}

.lm-unlock-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.lm-unlock-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.4;
}

.lm-unlock-list li svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  color: var(--desert-sage);
}

.lm-unlock .btn-primary {
  background: #FFFFFF;
  color: var(--deep-juniper);
}

.lm-unlock .btn-primary:hover {
  background: var(--desert-sage);
  color: var(--deep-juniper);
}

.lm-unlock .lm-fineprint {
  color: rgba(255, 255, 255, 0.55);
  margin: 14px 0 0;
}

@media (max-width: 640px) {
  .lm-hero { padding: 40px 0 8px; }
  .lm-capture { padding: 26px 20px; margin: 32px 0 40px; }
  .lm-unlock { padding: 36px 22px; }
}
