/* =========================================================================
   Close Friends — styles
   Brand: Close Friends Master Brand Architecture v1.0 + Premium Visual
   System v2.2. Yellow leads (headings, tags); white carries the reading.
   ========================================================================= */

@font-face {
  font-family: "Albert Sans";
  src: url("../assets/fonts/AlbertSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Albert Sans";
  src: url("../assets/fonts/AlbertSans-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* Lets the divider position animate smoothly between snap points. */
@property --pos {
  syntax: "<number>";
  inherits: true;
  initial-value: 50;
}

:root {
  /* Approved brand colors. Do not add others. */
  --green: #005840;
  --yellow: #EEFB22;
  --charcoal: #242223;
  --white: #FFFFFF;

  --text-soft: rgba(255, 255, 255, 0.86);
  --rule: rgba(255, 255, 255, 0.2);
  --rule-strong: rgba(255, 255, 255, 0.34);

  /* Aeonik is the licensed production face; Albert Sans is the approved free match. */
  --font-display: "Aeonik", "Albert Sans", Arial, sans-serif;
  --font-body: "Aeonik", "Albert Sans", Arial, sans-serif;

  --margin: clamp(20px, 4vw, 56px);
  --radius: 14px;
  --header-h: 84px;
  --handle-gap: 44px;
  --ease: cubic-bezier(0.22, 0.8, 0.24, 1);
  --dur: 0.6s;

  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
html.is-locked { overflow: hidden; }

body {
  margin: 0;
  background: var(--charcoal);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 500; }
strong { font-weight: 500; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--yellow);
  color: var(--charcoal);
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
}
.skip-link:focus { top: 16px; }

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

.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 20;
  height: var(--header-h);
  display: flex;
  align-items: center;
  padding: 0 var(--margin);
  pointer-events: none;
}
.site-header__logo {
  pointer-events: auto;
  display: inline-block;
}
.site-header__logo img {
  height: 22px;
  width: auto;
}
.site-header__login {
  pointer-events: auto;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 20px;
  border: 1.5px solid var(--rule-strong);
  border-radius: 999px;
  color: var(--white);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.site-header__login:hover {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--charcoal);
}
.site-header__login:focus-visible { border-radius: 999px; }

/* ---------- Shared type pieces ---------- */

.label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--yellow);
  margin: 0 0 16px;
}

.icon-arrow {
  width: 22px;
  height: 22px;
  flex: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 14px 30px;
  border: 0;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--charcoal);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.6);
}
.btn:focus-visible {
  outline-color: var(--white);
  border-radius: 999px;
}

.explore {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 10px 14px 10px 22px;
  border: 1.5px solid var(--rule-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--white);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}
.explore:hover {
  border-color: var(--yellow);
  background: rgba(255, 255, 255, 0.06);
}
.explore:focus-visible { border-radius: 999px; }

/* =========================================================================
   THE SPLIT
   --pos (0–100) = width of the Free side in %. JS sets it; CSS animates it.
   ========================================================================= */

.split {
  --p: calc(var(--pos) * 1%);
  position: relative;
  display: grid;
  grid-template-columns: var(--p) minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  min-height: 100vh;
  min-height: 100svh;
  background: linear-gradient(90deg, var(--green) var(--p), var(--charcoal) var(--p));
  transition: --pos var(--dur) var(--ease);
}
.split.is-dragging { transition: none; }

/* Landing prompt + "Not sure" line, centered on the divider */
.split__intro {
  grid-column: 1 / -1;
  grid-row: 1;
  position: relative;
  z-index: 2;
  padding: calc(var(--header-h) + 28px) var(--margin) 8px;
  text-align: center;
  pointer-events: none;
}
.split__prompt {
  max-width: 17ch;
  margin: 0 auto;
  color: var(--yellow);
  font-size: clamp(34px, 4.4vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.not-sure {
  max-width: 34rem;
  margin: 20px auto 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-soft);
  text-wrap: balance;
}
.not-sure strong {
  display: block;
  color: var(--white);
}
.not-sure span { font-style: italic; }

/* ---------- Panels ---------- */

.panel {
  grid-row: 2;
  position: relative;
  display: flex; /* inner fills the row height so the strip teaser can stick */
  min-width: 0;
  overflow: hidden;
  overflow: clip; /* clips without breaking position: sticky */
}
.panel--free { grid-column: 1; }
.panel--premium { grid-column: 2; }

.panel__inner {
  flex: none;
  padding: 40px var(--margin) 112px;
  container-type: inline-size;
}
.panel--free .panel__inner { padding-right: calc(var(--margin) + var(--handle-gap)); }
.panel--premium .panel__inner { padding-left: calc(var(--margin) + var(--handle-gap)); }

.panel__tag {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--yellow);
}
.panel__tag::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 2px;
  margin-right: 12px;
  vertical-align: middle;
  background: var(--yellow);
}

.panel__headline {
  color: var(--yellow);
  font-size: clamp(36px, 4vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.panel__subhead {
  margin: 18px 0 0;
  max-width: 34ch;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.4;
  color: var(--white);
}

.panel__facts {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}
.panel__facts li {
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 16px;
}

.panel__teaser .explore { margin-top: 32px; }

.panel__full { display: none; }

/* --- Neutral: both sides show a teaser, clustered toward the divider --- */
.panel[data-mode="neutral"] .panel__inner {
  width: var(--half-w, 50vw);
  max-width: 100%;
}
.panel[data-mode="neutral"] .panel__teaser { max-width: 520px; }
.panel--free[data-mode="neutral"] .panel__teaser { margin-left: auto; }

/* --- Compressed: a slim strip with the headline and a way back in --- */
.panel[data-mode="compressed"] .panel__inner {
  width: var(--strip-w, 300px);
  padding-left: 28px;
  padding-right: 28px;
}
/* Keep clear of the handle, which sticks out ~56px either side of the line */
.panel--free[data-mode="compressed"] .panel__inner { padding-right: 76px; }
.panel--premium[data-mode="compressed"] .panel__inner { padding-left: 76px; }
.panel[data-mode="compressed"] .panel__teaser {
  position: sticky;
  top: 32px;
}
.panel[data-mode="compressed"] .panel__headline { font-size: clamp(26px, 2.3vw, 34px); }
.panel[data-mode="compressed"] .panel__subhead,
.panel[data-mode="compressed"] .panel__facts { display: none; }
.panel[data-mode="compressed"] .panel__teaser .explore {
  margin-top: 24px;
  padding: 8px 10px 8px 16px;
  gap: 10px;
  font-size: 15px;
  white-space: nowrap;
}
.panel--free[data-mode="compressed"] .panel__inner { padding-left: 20px; }
.panel--premium[data-mode="compressed"] .panel__inner { padding-right: 20px; }

/* --- Expanded: the full story --- */
.panel[data-mode="expanded"] .panel__inner { width: var(--expanded-w, 74vw); }
.panel[data-mode="expanded"] .panel__headline { font-size: clamp(40px, 5vw, 72px); }
.panel[data-mode="expanded"] .panel__subhead { font-size: clamp(19px, 1.8vw, 24px); }
.panel[data-mode="expanded"] .panel__facts,
.panel[data-mode="expanded"] .panel__teaser .explore { display: none; }
.panel[data-mode="expanded"] .panel__teaser,
.panel[data-mode="expanded"] .panel__full { max-width: 1040px; }
.panel[data-mode="expanded"] .panel__full {
  display: flex;
  flex-direction: column;
  gap: 44px;
  margin-top: 48px;
  animation: rise 0.55s var(--ease) both;
}

/* Narrow expanded panel: one column, in reading order */
.col { display: contents; }
.block--body { order: 1; }
.block--who { order: 2; }
.card--details { order: 3; }
.block--steps { order: 4; }
.card--app { order: 5; }
.cta { order: 6; }

/* Wide expanded panel: story on the left, facts on the right */
@container (min-width: 820px) {
  .panel__full {
    display: grid !important;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 56px !important;
    align-items: start;
  }
  .col {
    display: flex;
    flex-direction: column;
    gap: 44px;
  }
}

.block--body {
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-soft);
}
.block--body p { max-width: 62ch; }
.block--who p { color: var(--text-soft); max-width: 62ch; }

.card {
  padding: 28px 28px 24px;
  border-radius: var(--radius);
}
.panel--free .card { background: var(--charcoal); }
.panel--premium .card { background: var(--green); }

.details {
  list-style: none;
  margin: 0;
  padding: 0;
}
.details li {
  position: relative;
  padding: 11px 0 11px 22px;
  border-top: 1px solid var(--rule);
  font-size: 16px;
  line-height: 1.45;
}
.details li:first-child { border-top: 0; padding-top: 0; }
.details li::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(11px + 0.6em);
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--yellow);
}
.details li:first-child::before { top: 0.6em; }

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
}
.step {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 8px;
  padding: 16px 0;
  border-top: 1px solid var(--rule);
}
.step:last-child { border-bottom: 1px solid var(--rule); }
.step__num {
  color: var(--yellow);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
}
.step p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-soft);
}
.step strong { color: var(--white); }

.card--app p { color: var(--text-soft); font-size: 16px; }

.cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.cta__notes p {
  margin: 0 0 4px;
  font-size: 15px;
  color: var(--text-soft);
}

/* ---------- Divider ---------- */

.divider {
  grid-row: 2;
  grid-column: 1 / -1;
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--p) - 32px);
  width: 64px;
  z-index: 10;
  cursor: ew-resize;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
}
.divider:focus-visible { outline: none; }

.divider__line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  margin-left: -1px;
  background: var(--yellow);
  opacity: 0.85;
}

.divider__rail {
  position: absolute;
  inset: 0;
}
.divider__handle {
  position: sticky;
  top: calc(50vh - 28px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 112px;
  height: 56px;
  margin: 24px 0 0 -24px;
  border: 2px solid var(--yellow);
  border-radius: 999px;
  background: var(--charcoal);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.65);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.divider__handle img {
  width: 26px;
  height: 26px;
}
.divider__grip {
  width: 10px;
  height: 22px;
  border-left: 2px solid var(--rule-strong);
  border-right: 2px solid var(--rule-strong);
}
.divider:hover .divider__handle,
.split.is-dragging .divider__handle {
  transform: scale(1.06);
}
.divider:focus-visible .divider__handle {
  outline: 3px solid var(--white);
  outline-offset: 4px;
}

/* One gentle nudge on first load to show the handle moves */
.divider.is-hinting .divider__handle { animation: nudge 1.6s var(--ease) 0.8s 1; }

/* Mobile switch is hidden on larger screens */
.switch { display: none; }

/* =========================================================================
   MEET YOUR COACH
   ========================================================================= */

.coach {
  background: var(--green);
  padding: clamp(72px, 10vw, 140px) var(--margin);
}
.coach__inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 96px);
  max-width: 1240px;
  margin: 0 auto;
  align-items: start;
}
.coach__inner--no-photo { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.coach__photo {
  margin: 0;
  position: sticky;
  top: 32px;
}
.coach__photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 16px;
  background: #000;
}
.coach__headline {
  color: var(--yellow);
  font-size: clamp(36px, 4.4vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}
.coach__text p {
  max-width: 62ch;
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.7;
}
.coach__text .coach__lead {
  color: var(--white);
  font-size: clamp(20px, 1.9vw, 24px);
  line-height: 1.45;
}
.coach__quote {
  margin: 48px 0 0;
  padding: 32px 0 0;
  border-top: 3px solid var(--yellow);
  max-width: 640px;
}
.coach__quote p {
  max-width: 15em;
  color: var(--yellow) !important;
  font-family: var(--font-display);
  font-size: clamp(28px, 3.2vw, 44px) !important;
  font-weight: 500;
  line-height: 1.15 !important;
  letter-spacing: -0.015em;
}

/* =========================================================================
   FOOTER
   ========================================================================= */

.site-footer {
  background: var(--charcoal);
  padding: 64px var(--margin) 48px;
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px 40px;
  max-width: 1240px;
  margin: 0 auto;
}
.site-footer__logo {
  height: 24px;
  width: auto;
  margin-right: auto;
}
.site-footer__tagline {
  flex-basis: 100%;
  order: 1;
  margin: 0;
  color: var(--text-soft);
  font-size: 15px;
}

.social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--rule-strong);
  border-radius: 999px;
  color: var(--white);
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.social a:hover {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--charcoal);
}
.social a:focus-visible { border-radius: 999px; }
.social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
}
.site-footer__nav a {
  display: inline-block;
  padding: 10px 0;
  color: var(--white);
  font-size: 15px;
  text-decoration: none;
}
.site-footer__nav a:hover { color: var(--yellow); }

.site-footer__legal {
  flex-basis: 100%;
  order: 2;
  margin: 8px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  color: var(--text-soft);
  font-size: 13px;
}

/* =========================================================================
   APPLICATION POP-UPS
   ========================================================================= */

.modal {
  width: min(720px, calc(100vw - 32px));
  height: min(820px, calc(100dvh - 32px));
  max-width: none;
  max-height: none;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: var(--green);
  color: var(--white);
  overflow: hidden;
}
.modal[open] {
  display: flex;
  flex-direction: column;
  animation: pop 0.35s var(--ease);
}
.modal--premium {
  width: min(960px, calc(100vw - 32px));
  height: min(1000px, calc(100dvh - 32px));
  background: var(--charcoal);
}
.modal::backdrop {
  background: rgba(20, 19, 19, 0.74);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.modal[open]::backdrop { animation: fade 0.3s ease; }

.modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 20px 18px 28px;
  flex: none;
}
.modal__title {
  margin: 8px 0 0;
  max-width: 46ch;
  font-size: 18px;
  line-height: 1.45;
  color: var(--white);
}
h2.modal__title {
  color: var(--yellow);
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-top: 6px;
}
.modal__close {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--rule-strong);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}
.modal__close:hover {
  background: var(--yellow);
  border-color: var(--yellow);
}
.modal__close:hover svg { stroke: var(--charcoal); }
.modal__close:focus-visible { border-radius: 999px; }
.modal__close svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--white);
  stroke-width: 2;
  stroke-linecap: round;
}

.modal__body {
  flex: 1;
  min-height: 0;
  display: flex;
  padding: 0 16px 16px;
}
.modal__body iframe {
  flex: 1;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 12px;
  background: var(--white);
}
.modal__body--html {
  display: block;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.embed-placeholder {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 24px;
  border: 2px dashed var(--rule-strong);
  border-radius: 12px;
  text-align: center;
  color: var(--text-soft);
  font-size: 15px;
}
.embed-placeholder code {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--yellow);
  font-size: 14px;
}

.noscript {
  padding: 24px var(--margin);
  background: var(--green);
  text-align: center;
}

/* =========================================================================
   MOBILE (under 768px): stacked, with a Free / Premium switch
   ========================================================================= */

@media (max-width: 767px) {
  :root { --header-h: 68px; }

  .site-header { padding: 0 16px 0 20px; }
  .site-header__logo img { height: 18px; }
  .site-header__login { padding: 6px 14px; font-size: 14px; }

  .split {
    display: block;
    min-height: 0;
    background: none;
  }

  /* One solid color behind the header + prompt: green for Free (and the
     landing state), charcoal once Premium is chosen. */
  .split__intro {
    padding: calc(var(--header-h) + 8px) 20px 44px;
    background-color: var(--green);
    transition: background-color 0.4s var(--ease);
  }
  .split[data-state="premium"] .split__intro { background-color: var(--charcoal); }
  .split__prompt { font-size: clamp(32px, 9vw, 42px); }
  .not-sure { font-size: 15px; }

  .divider { display: none; }

  /* The switch stands in for the divider */
  .switch {
    position: sticky;
    top: 12px;
    z-index: 30;
    display: grid;
    --mid: 64px; /* width of the middle "show both" stop */
    grid-template-columns: 1fr var(--mid) 1fr;
    height: 56px;
    margin: -28px 16px 0;
    padding: 4px;
    border: 2px solid var(--yellow);
    border-radius: 999px;
    background: var(--charcoal);
    box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.7);
  }
  /* The thumb slides between three stops: left, middle (both), right */
  .switch__thumb {
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: calc(50% - var(--mid) / 2);
    width: var(--mid);
    border-radius: 999px;
    background: var(--yellow);
    transition: left 0.4s var(--ease), width 0.4s var(--ease);
  }
  .split[data-state="free"] .switch__thumb {
    left: 4px;
    width: calc(50% - var(--mid) / 2 - 4px);
  }
  .split[data-state="premium"] .switch__thumb {
    left: calc(50% + var(--mid) / 2);
    width: calc(50% - var(--mid) / 2 - 4px);
  }
  .switch__btn--both svg {
    width: 22px;
    height: 22px;
    margin: 0 auto;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .switch__btn {
    position: relative;
    z-index: 1;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--white);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.3s;
  }
  .switch__btn[aria-pressed="true"] { color: var(--charcoal); }
  .switch__btn:focus-visible { outline-offset: -2px; border-radius: 999px; }

  .panel { display: block; overflow: visible; }
  .panel--free { background: var(--green); margin-top: -28px; }
  .panel--premium { background: var(--charcoal); }

  .panel .panel__inner,
  .panel[data-mode] .panel__inner {
    width: auto;
    max-width: none;
    padding: 64px 20px 56px;
  }
  .panel--free[data-mode] .panel__inner { padding-top: 72px; }
  .panel--premium[data-mode] .panel__inner { padding-top: 48px; }
  .panel--free[data-mode] .panel__teaser { margin-left: 0; }

  .panel[data-mode="compressed"] .panel__inner { padding-top: 28px; padding-bottom: 32px; }
  .panel--free[data-mode="compressed"] .panel__inner { padding-top: 56px; }
  .panel[data-mode="compressed"] .panel__teaser { position: static; }
  .panel[data-mode="compressed"] .panel__headline { font-size: 26px; }

  .panel__headline,
  .panel[data-mode="expanded"] .panel__headline { font-size: clamp(36px, 10vw, 46px); }
  .panel[data-mode="expanded"] .panel__full { gap: 36px; margin-top: 36px; }

  .block--body { font-size: 17px; }
  .card { padding: 24px 20px 20px; }
  .btn { width: 100%; }

  .coach__inner { grid-template-columns: minmax(0, 1fr); }
  .coach__photo { position: static; max-width: 320px; }

  .site-footer__inner { flex-direction: column; align-items: flex-start; }
  .site-footer__logo { margin-right: 0; }

  .modal,
  .modal--premium {
    width: 100vw;
    height: 100dvh;
    border: 0;
    border-radius: 0;
  }
  .modal__head { padding: 16px 12px 14px 20px; }
  /* Edge to edge on phones: gives the form every pixel (its 300px
     anti-spam check needs ~364px of frame to fit without sideways scroll). */
  .modal__body { padding: 0; }
  .modal__body iframe { border-radius: 0; }
  .embed-placeholder { margin: 0 8px 8px; }
}

/* =========================================================================
   Motion
   ========================================================================= */

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@keyframes pop {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes nudge {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-10px); }
  40% { transform: translateX(10px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(4px); }
}

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