/* =========================================================================
   ASPIRE Health & Metabolic — styles.css
   Clean clinical base · brand blue primary (#0A60A4) · brand green accent (#36A841)
   Display: Fraunces (≈Tobias) · Body: Hanken Grotesk (≈Saans) · Labels: Overpass Mono — Everlab-style
   ========================================================================= */

/* ---------- Tokens ---------- */
:root {
  --paper:    #F1F5F9;
  --paper-2:  #E6EEF4;
  --paper-3:  #D7E3EC;
  --ink:      #0F2A40;
  --muted:    #4E6171;
  --forest:   #0D3E63;
  --forest-2: #082B45;
  --green:    #0A60A4;
  --green-lt: #2E80BF;
  --olive:    #2C8F36;
  --hair:     #C9D7E2;
  --hair-dk:  rgba(255,255,255,0.16);
  --white:    #FFFFFF;

  --maxw: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --radius: 20px;
  --radius-lg: 32px;

  /* fonts approximating everlab.com.au (Tobias serif + Saans grotesque + mono labels):
     Fraunces ≈ Tobias, Hanken Grotesk ≈ Saans, Overpass Mono = Everlab's actual data mono. */
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Hanken Grotesk", system-ui, -apple-system, Arial, sans-serif;
  --mono:  "Overpass Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* clip (not hidden) — hidden makes <body> a scroll container, which breaks
     the sticky header (it would scroll away instead of pinning to the top) */
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  font-optical-sizing: auto;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
}
h1 { font-size: clamp(2.6rem, 6.2vw, 5rem); }
h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); letter-spacing: -0.015em; }
h4 { font-size: 1.18rem; font-weight: 420; letter-spacing: -0.01em; }
p { color: var(--muted); }
strong { color: var(--ink); font-weight: 600; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--olive);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--olive);
  display: inline-block;
}
.eyebrow.center::before { display: none; }

.lead { font-size: clamp(1.1rem, 1.6vw, 1.32rem); color: var(--muted); line-height: 1.55; }
/* accent restraint: the green is the deliberate "pop" for inline links (primary actions stay blue) */
.lead a, .note-badge a { color: var(--olive); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(4.5rem, 9.5vw, 9.5rem); position: relative; }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--paper2 { background: var(--paper-2); }
.section--forest { background: var(--forest); color: var(--paper); }
.section--forest h1, .section--forest h2, .section--forest h3, .section--forest h4 { color: var(--white); }
.section--forest p { color: rgba(255,255,255,0.74); }
.section--forest .eyebrow,
.section--forest .eyebrow::before { color: #5FC06A; background-color: #5FC06A; }
.section--forest .eyebrow { background: none; }

.section-head { max-width: 760px; }
.section-head h2 { margin-top: 1rem; }
.section-head p { margin-top: 1.1rem; }
.center { text-align: center; }
.center.section-head { margin-inline: auto; }

.grid { display: grid; gap: clamp(1.25rem, 2.4vw, 2.25rem); }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 940px) { .g-3, .g-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .g-2, .g-3, .g-4 { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.split.rev { grid-template-columns: 0.95fr 1.05fr; }
@media (max-width: 880px) { .split, .split.rev { grid-template-columns: 1fr; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600; font-size: 0.96rem;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease), background-color 0.3s, color 0.3s, border-color 0.3s;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--green); color: var(--white); }
.btn--primary:hover { background: var(--forest); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--hair); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: var(--white); }
.btn--outline-light { background: transparent; color: var(--paper); border-color: var(--hair-dk); }
.btn--outline-light:hover { border-color: var(--paper); }
.btn .arr { transition: transform 0.35s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

.cta-row { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2rem; }

/* ---------- Focus ---------- */
:focus-visible { outline: 2.5px solid var(--green); outline-offset: 3px; border-radius: 4px; }
.section--forest :focus-visible { outline-color: #5FC06A; }

/* ---------- Header / Nav ---------- */
.skip {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--ink); color: var(--paper); padding: 0.7rem 1.2rem; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background-color 0.3s;
}
.site-header.scrolled { border-bottom-color: var(--hair); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 84px; }

.brand { display: inline-flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.brand__logo { height: 64px; width: auto; display: block; }
@media (max-width: 540px) { .brand__logo { height: 52px; } }
.brand__mark {
  font-family: var(--serif); font-weight: 420; font-size: 1.5rem; letter-spacing: 0.01em;
  color: var(--ink);
}
.brand__mark .dot { color: var(--green); }
.brand__sub { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--olive); }
@media (max-width: 540px) { .brand__sub { display: none; } }

.nav__links { display: flex; align-items: center; gap: 0.15rem; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: 0.32rem;
  padding: 0.55rem 0.7rem; border-radius: 999px;
  font-size: 0.93rem; font-weight: 500; color: var(--ink);
  transition: background-color 0.25s, color 0.25s;
  white-space: nowrap;
}
.nav__link:hover { background: var(--paper-3); }
.nav__link[aria-current="page"] { color: var(--green); }
.nav__link .caret { width: 9px; height: 9px; transition: transform 0.3s var(--ease); opacity: 0.6; }
.nav__item[data-open="true"] .caret { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(6px);
  min-width: 250px; background: var(--white);
  border: 1px solid var(--hair); border-radius: var(--radius);
  box-shadow: 0 24px 50px -24px rgba(15,42,64,0.32);
  padding: 0.5rem; opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
}
/* invisible bridge across the gap so the menu stays open while the pointer
   travels from the trigger to the panel (prevents the hover dead zone) */
.dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.nav__item[data-open="true"] .dropdown { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.dropdown a {
  display: block; padding: 0.62rem 0.8rem; border-radius: 9px;
  font-size: 0.92rem; font-weight: 500; color: var(--ink);
  transition: background-color 0.2s, color 0.2s;
}
.dropdown a span { display: block; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.1em; color: var(--muted); font-weight: 400; margin-top: 0.1rem; text-transform: uppercase; }
.dropdown a:hover { background: var(--paper); color: var(--green); }

.nav__cta { display: flex; align-items: center; gap: 0.6rem; }
.nav__cta .btn { padding: 0.62rem 1.25rem; }

/* hamburger */
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--hair); border-radius: 10px; background: transparent; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 1.6px; background: var(--ink); transition: transform 0.3s var(--ease), opacity 0.2s; }
.burger span:nth-child(1) { top: 16px; } .burger span:nth-child(2) { top: 21.5px; } .burger span:nth-child(3) { top: 27px; }
body.menu-open .burger span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; }
body.menu-open .burger span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

@media (max-width: 1024px) {
  .burger { display: block; }
  .nav__links {
    /* The header's backdrop-filter makes .site-header the containing block for
       this position:fixed panel, so `bottom`/`inset` would resolve against the
       ~85px header (not the viewport) and collapse the open menu to a sliver.
       Size it by the viewport height instead so it always fills below the bar. */
    position: fixed; top: 84px; left: 0; right: 0;
    height: calc(100vh - 84px); height: calc(100dvh - 84px);
    flex-direction: column; align-items: stretch; gap: 0.15rem;
    background: var(--paper); padding: 1.25rem var(--gutter) 3rem; overflow-y: auto;
    transform: translateX(100%); transition: transform 0.4s var(--ease);
  }
  body.menu-open .nav__links { transform: translateX(0); }
  .nav__link { padding: 0.9rem 0.4rem; font-size: 1.15rem; border-radius: 0; border-bottom: 1px solid var(--hair); justify-content: space-between; }
  .nav__link:hover { background: transparent; }
  .dropdown {
    position: static; transform: none; opacity: 1; visibility: visible; pointer-events: auto;
    box-shadow: none; border: none; border-radius: 0;
    min-width: 0; padding: 0 0 0.6rem; max-height: 0; overflow: hidden; transition: max-height 0.35s var(--ease);
    background: transparent;
  }
  /* Reset the desktop open-state translateX(-50%) (it out-specifies the static
     override above) so the in-menu submenu doesn't shift off the left edge. */
  .nav__item[data-open="true"] .dropdown { max-height: 480px; transform: none; border-bottom: 1px solid var(--hair); }
  .nav__cta { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--forest); color: var(--paper); overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(120% 90% at 80% -10%, rgba(54,168,65,0.35), transparent 60%),
    linear-gradient(180deg, var(--forest) 0%, var(--forest-2) 100%);
}
.hero__media {
  position: absolute; inset: 0; z-index: 1;
  background-size: cover; background-position: center;
}
/* Scrim: keeps the photo full-colour and prominent on the right while the
   headline sits over near-solid navy on the left; fresh green glow + a darkened
   base so the stats stay legible. */
.hero__media::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(55% 75% at 97% 92%, rgba(46,128,191,0.22), transparent 60%),
    linear-gradient(110deg, rgba(8,43,69,0.9) 0%, rgba(8,43,69,0.7) 42%, rgba(8,43,69,0.46) 72%, rgba(8,43,69,0.36) 100%),
    linear-gradient(0deg, rgba(8,43,69,0.52) 0%, transparent 30%);
}
/* ambient "breathing" green glow behind the headline */
.hero__media::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(58% 78% at 9% 7%, rgba(95,192,106,0.42), transparent 56%);
  transform-origin: 12% 12%;
  animation: heroGlow 7s ease-in-out infinite;
}
@keyframes heroGlow {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%      { opacity: 1; transform: scale(1.12); }
}
.hero__inner { position: relative; z-index: 2; padding-block: clamp(3rem, 6.5vw, 5.25rem) clamp(2.5rem, 4.5vw, 4rem); }
/* keep the signature pulse line above the now full-opacity hero photo */
.hero .pulse { position: relative; z-index: 2; color: #5FC06A; }
/* page-load entrance: hero content rises in sequence */
@keyframes heroRise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.hero__inner > * { animation: heroRise 0.85s var(--ease) both; }
.hero__inner > *:nth-child(1) { animation-delay: 0.10s; }
.hero__inner > *:nth-child(2) { animation-delay: 0.22s; }
.hero__inner > *:nth-child(3) { animation-delay: 0.36s; }
.hero__inner > *:nth-child(4) { animation-delay: 0.50s; }
.hero__inner > *:nth-child(5) { animation-delay: 0.64s; }
@media (prefers-reduced-motion: reduce) {
  .hero__inner > * { animation: none; }
  .hero__media::before { animation: none; opacity: 0.85; }
}
.hero h1 { color: var(--white); max-width: 16ch; font-size: clamp(2.9rem, 6.8vw, 5.6rem); letter-spacing: -0.025em; }
.hero h1 em { font-style: italic; color: #5FC06A; }
.hero__lead { color: rgba(255,255,255,0.82); font-size: clamp(1.08rem, 1.6vw, 1.3rem); max-width: 52ch; margin-top: 1.4rem; }
.hero .cta-row { margin-top: 2rem; }
.hero__stats { display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 5vw, 4rem); margin-top: clamp(2.25rem, 4vw, 3.25rem); padding-top: 1.6rem; border-top: 1px solid var(--hair-dk); }
.hero__stat .n { font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.6rem); color: var(--white); line-height: 1; }
.hero__stat .l { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.6); margin-top: 0.5rem; }

/* ---------- ECG pulse line (signature) ---------- */
.pulse { width: 100%; height: 46px; overflow: hidden; color: var(--olive); }
.pulse svg { width: 100%; height: 100%; }
.pulse path { fill: none; stroke: currentColor; stroke-width: 2; vector-effect: non-scaling-stroke; }
.pulse--dash path {
  stroke-dasharray: 1400; stroke-dashoffset: 1400;
  animation: ecg 3.6s var(--ease) forwards;
}
.pulse--loop path { stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: ecg 4s linear infinite; }
@keyframes ecg { to { stroke-dashoffset: 0; } }
.section--forest .pulse { color: #5FC06A; }
.pulse-divider { background: transparent; padding-block: 1.5rem; }

/* ---------- Cards ---------- */
.card {
  background: var(--white); border: 1px solid var(--hair); border-radius: var(--radius);
  padding: clamp(1.7rem, 2.7vw, 2.4rem);
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
  height: 100%;
}
.card:hover { border-color: var(--green-lt); }
.card h3, .card h4 { margin-bottom: 0.6rem; }
.card p { font-size: 0.98rem; }
.card__num { font-family: var(--mono); font-size: 0.78rem; color: var(--olive); letter-spacing: 0.1em; }
.card__icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: var(--paper-2); color: var(--green); margin-bottom: 1.1rem;
}
.card__icon svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.section--forest .card { background: rgba(255,255,255,0.04); border-color: var(--hair-dk); }
.section--forest .card .card__icon { background: rgba(255,255,255,0.08); color: #5FC06A; }
.section--forest .card p { color: rgba(255,255,255,0.7); }

.card--link { display: flex; flex-direction: column; }
.card--link .more { margin-top: auto; padding-top: 1.2rem; font-weight: 600; color: var(--green); display: inline-flex; align-items: center; gap: 0.4rem; }
.card--link:hover .more .arr { transform: translateX(4px); }
.more .arr { transition: transform 0.35s var(--ease); }

/* feature list with ticks */
.ticks li { position: relative; padding-left: 1.9rem; margin-bottom: 0.72rem; color: var(--muted); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.34em; width: 16px; height: 16px;
  background: var(--green); border-radius: 50%;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2l-3.5-3.5L4 14.2l5 5 11-11-1.5-1.5z'/%3E%3C/svg%3E") center/72% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2l-3.5-3.5L4 14.2l5 5 11-11-1.5-1.5z'/%3E%3C/svg%3E") center/72% no-repeat;
}
.ticks li strong { color: var(--ink); }
.section--forest .ticks li { color: rgba(255,255,255,0.78); }
.section--forest .ticks li::before { background: #5FC06A; }
.section--forest .ticks li strong { color: var(--white); }

/* risk / chip lists */
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chip {
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.02em;
  padding: 0.5rem 0.95rem; border-radius: 999px; border: 1px solid var(--hair);
  background: var(--white); color: var(--ink);
}
.section--forest .chip { border-color: var(--hair-dk); background: rgba(255,255,255,0.05); color: var(--paper); }

/* ---------- Image / placeholder slots ---------- */
.media {
  border-radius: var(--radius-lg); overflow: hidden; background: var(--paper-3);
  position: relative; aspect-ratio: 4/3;
}
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--tall { aspect-ratio: 3/4; }
.media--wide { aspect-ratio: 16/10; }
.slot {
  position: absolute; inset: 0; display: grid; place-content: center; gap: 0.4rem; text-align: center;
  background:
    repeating-linear-gradient(135deg, rgba(54,168,65,0.06) 0 14px, transparent 14px 28px),
    var(--paper-3);
  color: var(--muted);
}
.slot svg { width: 34px; height: 34px; stroke: var(--olive); fill: none; stroke-width: 1.4; margin-inline: auto; }
.slot b { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--olive); font-weight: 500; }
.slot small { font-size: 0.78rem; color: var(--muted); max-width: 26ch; }

/* ---------- Pricing / Program cards ---------- */
.plan {
  background: var(--white); border: 1px solid var(--hair); border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 3vw, 2.6rem); display: flex; flex-direction: column; height: 100%;
  position: relative; overflow: hidden;
}
.plan--feature { background: var(--forest); color: var(--paper); border-color: var(--forest); }
.plan--feature h3, .plan--feature .plan__price { color: var(--white); }
.plan--feature p, .plan--feature .ticks li { color: rgba(255,255,255,0.78); }
.plan--feature .ticks li::before { background: #5FC06A; }
.plan--feature .ticks li strong { color: var(--white); }
.plan__tag { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--olive); }
.plan--feature .plan__tag { color: #5FC06A; }
.plan__badge { position: absolute; top: 1.4rem; right: 1.4rem; font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; background: #5FC06A; color: var(--forest-2); padding: 0.3rem 0.7rem; border-radius: 999px; }
.plan__price { font-family: var(--serif); font-size: clamp(2.4rem, 4vw, 3.2rem); line-height: 1; margin: 0.6rem 0 0.2rem; }
.plan__price span { font-family: var(--sans); font-size: 1rem; color: var(--muted); }
.plan--feature .plan__price span { color: rgba(255,255,255,0.7); }
.plan__desc { margin-bottom: 1.4rem; }
.plan .ticks { margin: 0.4rem 0 1.8rem; }
.plan .btn { margin-top: auto; justify-content: center; }

/* ---------- Comparison table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--hair); border-radius: var(--radius); background: var(--white); }
table.compare { width: 100%; border-collapse: collapse; min-width: 540px; }
table.compare th, table.compare td { text-align: left; padding: 1rem 1.3rem; border-bottom: 1px solid var(--hair); font-size: 0.96rem; }
table.compare thead th { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
table.compare tbody th { font-weight: 500; color: var(--ink); }
table.compare td { color: var(--muted); }
table.compare td.yes { color: var(--green); font-weight: 600; }
table.compare tr:last-child td, table.compare tr:last-child th { border-bottom: none; }
table.compare thead th:not(:first-child) { color: var(--green); font-family: var(--serif); font-size: 1.05rem; letter-spacing: -0.01em; text-transform: none; }

/* ---------- Timeline (protocol) ---------- */
.timeline { position: relative; margin-top: 2.5rem; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--green), var(--hair)); }
.tl-item { position: relative; padding: 0 0 2rem 3rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: 4px; top: 5px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--paper); border: 3px solid var(--green); z-index: 1;
}
.tl-week { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--olive); }
.tl-item h4 { margin: 0.2rem 0 0.35rem; }
.tl-item p { font-size: 0.96rem; }
.section--forest .tl-item::before { background: var(--forest); border-color: #5FC06A; }
.section--forest .timeline::before { background: linear-gradient(#5FC06A, var(--hair-dk)); }

/* horizontal step roadmap */
.roadmap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.5rem; counter-reset: step; }
@media (max-width: 760px) { .roadmap { grid-template-columns: 1fr; } }
.road-step { position: relative; padding-top: 2.2rem; }
.road-step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--mono); font-size: 0.8rem; color: var(--olive);
  position: absolute; top: 0; left: 0;
}
.road-step::after { content: ""; position: absolute; top: 0.55rem; left: 2.6rem; right: -1.5rem; height: 1px; background: var(--hair); }
.road-step:last-child::after { display: none; }
@media (max-width: 760px) { .road-step::after { display: none; } }
.section--forest .road-step::after { background: var(--hair-dk); }
.road-step h4 { margin-bottom: 0.5rem; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--hair); }
.faq__item { border-bottom: 1px solid var(--hair); }
.faq__q {
  width: 100%; background: none; border: none; text-align: left;
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding: 1.5rem 0.2rem; font-family: var(--serif); font-size: clamp(1.1rem, 1.8vw, 1.4rem); color: var(--ink);
}
.faq__q .ic { flex-shrink: 0; width: 26px; height: 26px; position: relative; }
.faq__q .ic::before, .faq__q .ic::after { content: ""; position: absolute; background: var(--green); transition: transform 0.3s var(--ease); }
.faq__q .ic::before { top: 12px; left: 4px; right: 4px; height: 2px; }
.faq__q .ic::after { left: 12px; top: 4px; bottom: 4px; width: 2px; }
.faq__item[data-open="true"] .ic::after { transform: scaleY(0); }
.faq__a { overflow: hidden; max-height: 0; transition: max-height 0.4s var(--ease); }
.faq__item[data-open="true"] .faq__a { max-height: 320px; }
.faq__a p { padding: 0 0.2rem 1.6rem; max-width: 68ch; }

/* ---------- Form ---------- */
.form { display: grid; gap: 1.15rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font-size: 0.86rem; font-weight: 600; color: var(--ink); }
.field label .req { color: var(--green); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; padding: 0.85rem 1rem; border-radius: 10px;
  border: 1px solid var(--hair); background: var(--white); color: var(--ink); width: 100%;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(10,96,164,0.14); }
.field .err { font-size: 0.78rem; color: #9C3B2E; display: none; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #9C3B2E; }
.field.invalid .err { display: block; }
.form__note { font-size: 0.82rem; color: var(--muted); }
.form-success { display: none; padding: 1.1rem 1.3rem; border-radius: 10px; background: rgba(10,96,164,0.1); border: 1px solid var(--green); color: var(--forest); font-weight: 500; }
.form-success.show { display: block; }
.form-error { display: none; padding: 1.1rem 1.3rem; border-radius: 10px; background: rgba(156,59,46,0.08); border: 1px solid #9C3B2E; color: #7A2E24; font-weight: 500; }
.form-error.show { display: block; }
.form-error a { color: inherit; text-decoration: underline; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (min-width: 620px) { .form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; } }

/* ---------- Contact strip ---------- */
.contact-card { display: grid; gap: 1.4rem; }
.contact-line { display: flex; gap: 0.9rem; align-items: flex-start; }
.contact-line svg { width: 22px; height: 22px; stroke: var(--green); fill: none; stroke-width: 1.6; flex-shrink: 0; margin-top: 0.15rem; }
.section--forest .contact-line svg { stroke: #5FC06A; }
.contact-line .k { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--olive); }
.contact-line .v { font-size: 1.05rem; color: var(--ink); }
.section--forest .contact-line .v { color: var(--white); }
.section--forest .contact-line .v a:hover { color: #5FC06A; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { max-width: 18ch; margin-inline: auto; }
.cta-band p { max-width: 52ch; margin: 1.2rem auto 0; }
.cta-band .cta-row { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest-2); color: rgba(255,255,255,0.72); padding-block: clamp(3.5rem, 7vw, 5.5rem) 2.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: clamp(2rem, 4vw, 3rem); }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: #5FC06A; font-weight: 500; margin-bottom: 1.1rem; }
.site-footer .brand__mark { color: var(--white); }
/* Reversed (white) treatment of the brand logo for the dark navy footer — there
   is no native white asset, so the colour lockup is knocked out to white. */
.footer-logo { height: 54px; width: auto; display: block; filter: brightness(0) invert(1); }
.site-footer ul li { margin-bottom: 0.6rem; }
.site-footer a { color: rgba(255,255,255,0.72); transition: color 0.2s; }
.site-footer a:hover { color: var(--white); }
.footer-contact li { display: flex; align-items: flex-start; gap: 0.6rem; }
.footer-contact svg { width: 15px; height: 15px; stroke: #5FC06A; fill: none; stroke-width: 1.7; flex-shrink: 0; margin-top: 0.22rem; }
.footer-tag { margin: 1rem 0 1.5rem; max-width: 30ch; font-family: var(--serif); font-size: 1.15rem; color: rgba(255,255,255,0.9); line-height: 1.3; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.75rem 1.5rem; margin-top: 3rem; padding-top: 1.8rem; border-top: 1px solid var(--hair-dk); font-size: 0.82rem; }
.footer-bottom .mono { font-family: var(--mono); letter-spacing: 0.04em; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.footer-legal a { font-size: 0.82rem; }

/* ---------- Page hero (interior) — dark photographic style, like the home hero ---------- */
.page-hero {
  position: relative; display: flex; flex-direction: column; justify-content: center;
  /* uniform height across all interior pages (content is vertically centred); the
     tighter padding stops CTA pages from growing taller than the rest */
  min-height: clamp(440px, 42vw, 540px);
  background:
    radial-gradient(70% 95% at 8% 6%, rgba(95,192,106,0.22), transparent 56%),
    radial-gradient(55% 80% at 98% 96%, rgba(46,128,191,0.18), transparent 60%),
    linear-gradient(165deg, var(--forest) 0%, var(--forest-2) 100%);
  color: var(--paper);
  padding-block: clamp(3rem, 4.5vw, 3.75rem);
  overflow: hidden;
}
.page-hero h1 { color: var(--white); max-width: 18ch; margin-top: 1.1rem; }
.page-hero .lead { color: rgba(255,255,255,0.82); max-width: 60ch; margin-top: 1.3rem; }
.page-hero .legal__meta { color: rgba(255,255,255,0.6); margin-top: 0.7rem; }
.page-hero .breadcrumb { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; color: rgba(255,255,255,0.62); text-transform: uppercase; }
.page-hero .breadcrumb a:hover { color: #5FC06A; }
.page-hero .btn--ghost { color: var(--paper); border-color: var(--hair-dk); }
.page-hero .btn--ghost:hover { border-color: var(--paper); }

/* interior hero with a photo: full-bleed image behind a navy scrim + glow */
.page-hero--media .wrap { display: block; }
.page-hero--media .page-hero__text { position: relative; z-index: 2; }
.page-hero--media .page-hero__media { position: absolute; inset: 0; z-index: 0; margin: 0; }
.page-hero--media .page-hero__media img {
  width: 100%; height: 100%; max-height: none; aspect-ratio: auto;
  object-fit: cover; border-radius: 0; display: block;
}
.page-hero--media .page-hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(72% 92% at 9% 6%, rgba(95,192,106,0.26), transparent 56%),
    radial-gradient(55% 75% at 98% 95%, rgba(46,128,191,0.2), transparent 60%),
    linear-gradient(110deg, rgba(8,43,69,0.93) 0%, rgba(8,43,69,0.74) 46%, rgba(8,43,69,0.58) 100%),
    linear-gradient(0deg, rgba(8,43,69,0.5) 0%, transparent 34%);
}

/* the Kieser partner credit now sits in a dark hero — keep it readable */
.page-hero .partner__label { color: #5FC06A; }
.page-hero .partner__text { color: rgba(255,255,255,0.78); }
.page-hero .partner__logo { background: #fff; padding: 7px 12px; border-radius: 9px; }

/* ---------- Partner credit (Kieser on the exercise page hero) ----------
   Seamless: logo + line sit directly on the hero background, no card/box. */
.partner { margin-top: clamp(2rem, 4.5vw, 3rem); max-width: 600px; }
.partner__label { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--olive); }
.partner__row { display: flex; align-items: center; gap: clamp(1.2rem, 3.2vw, 2rem); margin-top: 1rem; }
.partner__logo { height: 42px; width: auto; flex-shrink: 0; display: block; }
.partner__text { color: var(--muted); font-size: 0.92rem; line-height: 1.55; margin: 0; }
@media (max-width: 560px) { .partner__row { flex-direction: column; align-items: flex-start; gap: 1rem; } }

/* ---------- Legal / policy pages ---------- */
.legal { max-width: 820px; }
.legal__meta { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.04em; color: var(--muted); margin-top: 0.6rem; }
.legal h2 { font-size: clamp(1.25rem, 2.3vw, 1.65rem); margin-top: 2.8rem; }
.legal > h2:first-child { margin-top: 0; }
.legal p { margin-top: 0.9rem; }
.legal ul { margin: 0.9rem 0 0; padding-left: 1.35rem; list-style: disc; }
.legal li { margin-top: 0.45rem; color: var(--muted); }
.legal li::marker { color: var(--olive); }
.legal a { color: var(--olive); text-decoration: underline; text-underline-offset: 2px; }
.legal strong { color: var(--ink); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: 0.08s; }
.reveal[data-d="2"] { transition-delay: 0.16s; }
.reveal[data-d="3"] { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- Misc utilities ---------- */
.muted { color: var(--muted); }
.mt-1 { margin-top: 0.6rem; } .mt-2 { margin-top: 1.2rem; } .mt-3 { margin-top: 2rem; } .mt-4 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; }
.maxch { max-width: 60ch; }
.note-badge {
  display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--mono);
  font-size: 0.72rem; letter-spacing: 0.06em; color: var(--muted);
  background: var(--paper-2); border: 1px dashed var(--hair); padding: 0.4rem 0.8rem; border-radius: 999px;
}
.divider-rule { height: 1px; background: var(--hair); border: none; margin-block: clamp(2.5rem,5vw,4rem); }
