/* Health Black Belt — leafy green in all shades */
:root {
  --g-950: #0b2a0f;
  --g-900: #113d17;
  --g-850: #17501f;
  --g-800: #1e6427;   /* deep leaf */
  --g-700: #2a7d32;
  --g-600: #3a9a3f;
  --g-500: #52b448;   /* fresh leaf */
  --g-400: #7ccb5f;
  --g-300: #a8de8a;
  --g-200: #d0efbf;
  --g-100: #e8f7df;
  --g-50:  #f5fcf0;

  --ink: #0f1d10;
  --ink-soft: #3b5238;

  --font-head: 'Montserrat', system-ui, sans-serif;
  --font-body: 'Source Sans 3', system-ui, sans-serif;

  --radius: 14px;
  --shadow: 0 1px 2px rgba(11, 42, 15, .06), 0 8px 28px rgba(11, 42, 15, .08);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--g-50);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0; }

.container { width: min(1120px, 100% - 32px); margin-inline: auto; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 16px; top: 16px; z-index: 100; transform: translateY(-200%);
  background: var(--g-800); color: #fff; padding: 10px 16px; border-radius: 8px;
  text-decoration: none; transition: transform .15s;
}
.skip-link:focus { transform: none; }

:focus-visible { outline: 3px solid var(--g-400); outline-offset: 3px; }

/* ---------- Top bar: hidden over the hero, slides down once the visitor scrolls ---------- */
:root { --bar-h: 64px; --fade-h: 22px; }
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: calc(var(--bar-h) + var(--fade-h));
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 0 max(16px, calc((100% - 1120px) / 2));
  background: linear-gradient(180deg,
    rgba(245, 252, 240, .99) 0,
    rgba(245, 252, 240, .98) var(--bar-h),
    rgba(245, 252, 240, 0) 100%);
  pointer-events: none;                 /* the faded tail never blocks clicks… */
  transform: translateY(-100%); opacity: 0; visibility: hidden;
  transition: transform .35s ease, opacity .35s ease, visibility 0s linear .35s;
}
.topbar > * { pointer-events: auto; }  /* …but the logo and links do */
.topbar.is-visible, .topbar:focus-within {
  transform: none; opacity: 1; visibility: visible;
  transition: transform .35s ease, opacity .35s ease, visibility 0s;
}
@media (prefers-reduced-motion: reduce) { .topbar, .topbar.is-visible { transition: none; } }

/* Logo keeps its size and may hang into the fade; links are centred on the solid bar */
.brand { display: flex; align-items: center; gap: 14px; margin-top: 4px; text-decoration: none; }
.brand-mark { width: auto; height: 72px; }
.brand-word { width: auto; height: 48px; }
.topbar nav { display: flex; align-items: center; gap: 24px; height: var(--bar-h); }
.topbar nav a { text-decoration: none; font: 600 .9rem/1 var(--font-head); color: var(--g-900); }
.topbar nav a:hover { color: var(--g-600); }
.topbar .nav-cta {
  background: var(--g-700); color: #fff !important;
  padding: 11px 16px; border-radius: 999px;
}
.topbar .nav-cta:hover { background: var(--g-600); }
@media (max-width: 640px) {
  :root { --bar-h: 56px; --fade-h: 18px; }
  .brand { gap: 8px; margin-top: 3px; }
  .brand-mark { height: 50px; }
  .brand-word { height: 32px; }
  .topbar nav a:not(.nav-cta) { display: none; }
  .topbar .nav-cta { padding: 9px 12px; font-size: .78rem; }
}

/* ---------- 1. Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center;
  overflow: hidden;
  background: var(--g-900);
  isolation: isolate;
}
.hero-backdrop {
  position: absolute; inset: -40px; z-index: -1;
  background: url('/img/hero-blur.jpg') center / cover no-repeat;
  filter: blur(30px) saturate(1.05) brightness(.97);
}
.hero-backdrop::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(30, 100, 39, .22), rgba(30, 100, 39, 0) 50%, rgba(30, 100, 39, .22));
}
.hero-frame {
  position: relative;
  width: min(100vw, 100svh);
  aspect-ratio: 1;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.hero-img { width: 100%; height: 100%; object-fit: cover; }

/* Transparent link over the painted "Start your journey" button (measured on the 1254px artwork) */
.hero-hotspot {
  position: absolute;
  left: 5.58%; top: 43.38%; width: 31.42%; height: 5.82%;
  border-radius: 6px;
  color: transparent; font-size: 0; text-decoration: none;
  transition: box-shadow .2s, background-color .2s;
}
.hero-hotspot:hover { background: rgba(124, 203, 95, .14); box-shadow: 0 0 0 3px rgba(124, 203, 95, .6), 0 10px 30px rgba(11, 42, 15, .3); }

.scroll-cue {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  width: 28px; height: 44px; border: 2px solid rgba(255, 255, 255, .85); border-radius: 16px;
  background: rgba(17, 61, 23, .4);
}
.scroll-cue span {
  position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  border-radius: 2px; background: #fff; animation: cue 1.8s infinite;
}
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) { .scroll-cue span { animation: none; } }

.hero-mobile { display: none; }

/* 16:9 artwork on 4:3-and-wider screens. The frame keeps the image's own aspect ratio
   (so the hotspot percentages stay valid) and is cropped mostly from the right, away from the copy. */
.hero-wide { display: none; }
@media (min-aspect-ratio: 4/3) {
  .hero { min-height: 0; height: 100vh; height: 100svh; display: block; }
  .hero-frame { display: none; }
  .hero-backdrop { background-image: url('/img/hero-wide-blur.jpg'); }
  .hero-backdrop::after { background: none; }
  .hero-wide {
    --w: calc(100svh * 16 / 9);
    display: block; position: absolute; top: 0;
    width: var(--w); height: 100%;
    /* narrower than 16:9 → crop mostly from the right (away from the copy); wider → centre it */
    left: max(calc((100% - var(--w)) * .3), calc((100% - var(--w)) * .5));
  }
  .hero-wide .hero-hotspot { left: 11.35%; top: 67.5%; width: 25.36%; height: 6.94%; border-radius: 999px; }
}
@media (min-aspect-ratio: 16/9) {
  .hero-wide {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
  }
}

/* Portrait / phones: text-free photo with live copy over the empty wall, real button below */
@media (max-aspect-ratio: 1/1) {
  .hero { min-height: 0; display: block; background: var(--g-900); }
  .hero-frame, .hero-backdrop, .scroll-cue { display: none; }
  .hero-mobile { display: block; }
  .hero-mobile-media { position: relative; }
  .hero-mobile-media img { width: 100%; height: auto; }
  .hero-mobile-copy {
    position: absolute; inset: 0 0 auto 0;
    padding: 5vw 6vw 0;
    text-align: center;
  }
  .hero-mobile-media .wordmark { width: 58vw; max-width: 420px; height: auto; margin: 0 auto; }
  .tagline {
    margin: 2.4vw 0 0;
    font: 500 clamp(.95rem, 4.1vw, 1.8rem)/1.2 var(--font-head);
    color: var(--ink);
  }
  .hero-mobile-cta {
    text-align: center;
    padding: 24px 16px 32px;
    color: var(--g-200);
  }
  .hero-mobile-cta p { margin: 12px 0 0; font-size: .95rem; }
  .hero-mobile-cta .pillars { font: 600 .68rem var(--font-head); letter-spacing: .12em; text-transform: uppercase; color: var(--g-300); margin-top: 16px; }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 10px;
  background: var(--g-500); color: var(--g-950);
  font: 700 .95rem var(--font-head); letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; border: 0; cursor: pointer;
  transition: background-color .2s, transform .2s;
}
.btn:hover { background: var(--g-400); }

/* ---------- Shared section bits ---------- */
section { scroll-margin-top: var(--bar-h); }
.eyebrow {
  margin: 0 0 12px;
  font: 700 .8rem var(--font-head); letter-spacing: .28em; text-transform: uppercase;
  color: var(--g-700);
}
.eyebrow::before {
  content: ''; display: block; width: 44px; height: 4px; margin-bottom: 14px;
  background: var(--g-800); border-radius: 2px;
}
.eyebrow-light { color: var(--g-300); }
.eyebrow-light::before { background: var(--g-400); margin-inline: auto; }
h2 { font-size: clamp(2rem, 4.5vw, 3.1rem); font-weight: 800; letter-spacing: -.01em; color: var(--g-950); }
.lede { max-width: 60ch; margin: 16px 0 0; color: var(--ink-soft); font-size: 1.2rem; }

/* ---------- 2. Principles: six pillars on one foundation, sized to fit one screen ---------- */
.principles {
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--bar-h) + 28px) 0 40px;
  background: var(--g-50);
}
#principles { scroll-margin-top: 0; }   /* the section's own top padding clears the header */
.principles-head { margin-bottom: 28px; }
.principles-head .lede { margin-top: 10px; font-size: 1.1rem; }

.principle-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
}
.principle {
  --belt: var(--g-300);
  position: relative;
  padding: 22px 22px 22px 28px;
  background: #fff;
  border: 1px solid var(--g-100);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
/* Belt stripe darkens from white-belt mint to black-belt forest */
.principle::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 6px; background: var(--belt); }
.principle:nth-child(1) { --belt: var(--g-200); }
.principle:nth-child(2) { --belt: var(--g-300); }
.principle:nth-child(3) { --belt: var(--g-400); }
.principle:nth-child(4) { --belt: var(--g-500); }
.principle:nth-child(5) { --belt: var(--g-600); }
.principle:nth-child(6) { --belt: var(--g-700); }

.num { display: block; font: 800 1.05rem/1 var(--font-head); color: var(--g-500); letter-spacing: .04em; margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.principle h3 { font-size: 1.15rem; font-weight: 700; color: var(--g-950); margin-bottom: 6px; }
.principle p { margin: 0; color: var(--ink-soft); font-size: 1.02rem; line-height: 1.45; }

/* The foundation: full width, dark, holding up the six above */
.principle-foundation {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 22px;
  margin-top: 4px; padding: 22px 28px 22px 32px;
  background: var(--g-900); border-color: var(--g-800); color: var(--g-100);
  box-shadow: 0 -6px 0 0 var(--g-200) inset, var(--shadow);
}
.principle-foundation::before { background: #000; }
.principle-foundation .num { font-size: 2.2rem; color: var(--g-400); margin: 0; }
.principle-foundation h3 { color: #fff; font-size: 1.35rem; margin-bottom: 2px; }
.principle-foundation p { color: var(--g-200); }
.principle-foundation .foundation-label {
  font: 700 .72rem var(--font-head); letter-spacing: .24em; text-transform: uppercase;
  color: var(--g-400); margin-bottom: 4px;
}

/* Short laptop screens: tighten so all seven still fit without scrolling */
@media (max-height: 820px) and (min-width: 641px) {
  .principles { padding-top: calc(var(--bar-h) + 16px); padding-bottom: 24px; }
  .principles-head { margin-bottom: 18px; }
  .principles h2 { font-size: 2.2rem; }
  .principle { padding: 16px 18px 16px 24px; }
  .num { margin-bottom: 6px; }
}
@media (max-width: 900px) and (min-width: 641px) { .principle-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Phones: two columns of short cards so the set fits on one screen */
@media (max-width: 640px) {
  .principles { padding: calc(var(--bar-h) + 14px) 0 24px; }
  .principles-head { margin-bottom: 14px; }
  .principles .eyebrow::before { margin-bottom: 8px; }
  .principles h2 { font-size: 1.7rem; }
  .principles-head .lede { font-size: .95rem; margin-top: 6px; }
  .principle-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .principle { padding: 12px 12px 12px 16px; }
  .principle::before { width: 4px; }
  .num { font-size: .85rem; margin-bottom: 5px; }
  .principle h3 { font-size: .92rem; margin-bottom: 4px; }
  .principle p { font-size: .8rem; line-height: 1.35; }
  .principle-foundation { padding: 12px 14px 12px 18px; gap: 14px; margin-top: 0; }
  .principle-foundation .num { font-size: 1.5rem; }
  .principle-foundation h3 { font-size: 1.05rem; }
  .principle-foundation .foundation-label { font-size: .62rem; }
}

/* ---------- 3. Countdown ---------- */
.countdown {
  padding: clamp(72px, 10vw, 120px) 0;
  text-align: center;
  color: var(--g-100);
  background:
    linear-gradient(180deg, rgba(11, 42, 15, .72), rgba(11, 42, 15, .86)),
    url('/img/countdown-bg.jpg') center / cover no-repeat,
    var(--g-950);
}
@media (max-width: 960px) {
  .countdown {
    background:
      linear-gradient(180deg, rgba(11, 42, 15, .72), rgba(11, 42, 15, .86)),
      url('/img/countdown-bg-960.jpg') center / cover no-repeat,
      var(--g-950);
  }
}
.countdown h2 { color: #fff; }
.timer {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(8px, 2vw, 20px);
  max-width: 760px; margin: 44px auto 0;
}
.unit {
  padding: clamp(16px, 3vw, 28px) 8px;
  background: rgba(11, 42, 15, .55);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(124, 203, 95, .28);
  border-radius: var(--radius);
}
.value {
  display: block;
  font: 800 clamp(2.2rem, 7vw, 4.4rem)/1 var(--font-head);
  font-variant-numeric: tabular-nums; color: #fff;
}
.label {
  display: block; margin-top: 10px;
  font: 600 clamp(.66rem, 1.6vw, .8rem) var(--font-head); letter-spacing: .22em; text-transform: uppercase;
  color: var(--g-300);
}
.timer-note { margin: 28px 0 0; color: var(--g-300); font-style: italic; }

/* ---------- 4. Join ---------- */
.join {
  padding: clamp(72px, 10vw, 120px) 0;
  background: linear-gradient(180deg, var(--g-100), var(--g-200));
}
.join-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
@media (max-width: 860px) { .join-inner { grid-template-columns: 1fr; } }
.perks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.perks li { position: relative; padding-left: 32px; color: var(--ink-soft); }
.perks li::before {
  content: ''; position: absolute; left: 0; top: .32em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--g-700) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%23e8f7df' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.join-form {
  padding: clamp(24px, 4vw, 36px);
  background: var(--g-900); color: var(--g-100);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: 0 20px 50px rgba(11, 42, 15, .25);
}
.join-form .field-label { display: block; font: 700 .8rem var(--font-head); letter-spacing: .2em; text-transform: uppercase; color: var(--g-300); margin-bottom: 10px; }
.field-row { display: flex; gap: 10px; }
@media (max-width: 480px) { .field-row { flex-direction: column; } }
.join-form input[type="email"] {
  flex: 1; min-width: 0; min-height: 54px; padding: 0 16px;
  border: 2px solid var(--g-700); border-radius: 10px;
  background: var(--g-950); color: #fff;
  font: 400 1.05rem var(--font-body);
}
.join-form input[type="email"]::placeholder { color: var(--g-600); }
.join-form input[type="email"]:focus { outline: none; border-color: var(--g-400); }
.join-form input[aria-invalid="true"] { border-color: #d9a441; }
.join-form button {
  min-height: 54px; padding: 0 22px; border: 0; border-radius: 10px; cursor: pointer;
  background: var(--g-500); color: var(--g-950);
  font: 700 .9rem var(--font-head); letter-spacing: .1em; text-transform: uppercase;
  transition: background-color .2s;
}
.join-form button:hover { background: var(--g-400); }
.join-form button:disabled { opacity: .6; cursor: progress; }

.consent { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; font-size: .98rem; color: var(--g-200); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 3px 0 0; flex: none; accent-color: var(--g-500); }

.form-status { min-height: 1.6em; margin: 16px 0 0; font-weight: 600; }
.form-status.is-error { color: #f0c36a; }
.form-status.is-success { color: var(--g-300); }
.join-form.is-done .field-row,
.join-form.is-done .consent,
.join-form.is-done .field-label { display: none; }
.join-form.is-done .form-status { font: 700 1.3rem/1.4 var(--font-head); color: #fff; margin: 0; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.footer {
  background: var(--g-50); color: var(--ink-soft);
  border-top: 1px solid var(--g-200);
  padding: 48px 0 40px; text-align: center; font-size: .95rem;
}
.footer p { margin: 4px 0; }
.footer-logo { width: 200px; height: auto; margin: 0 auto 18px; }
.fine { color: var(--g-700); font-size: .85rem; }
