/* limber.life — marketing site in the LimberLife app's design language.
   Tokens mirror LimberDesign.swift: bg 080a10→05060a, ink f4f7fb,
   teal 5fb6c9 / bfeaf2, gold e3bd7a / f0d49a, glass white 5% + 10% border. */

:root {
  --bg0: #080a10;
  --bg1: #05060a;
  --ink: #f4f7fb;
  --dim: rgba(244, 247, 251, .55);
  --faint: rgba(244, 247, 251, .34);
  --teal: #5fb6c9;
  --teal-bright: #bfeaf2;
  --gold: #e3bd7a;
  --gold-bright: #f0d49a;
  --orange: #d98a45;
  --pink: #e5a4b4;
  --blush: #e0694a;
  --blush-bright: #f0a186;
  --lavender: #cdb9ec;
  --glass: rgba(255, 255, 255, .05);
  --glass-brd: rgba(255, 255, 255, .10);
  --radius: 26px;
  --display: 'Manrope', system-ui, sans-serif;
  --body: 'Poppins', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg1);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-family: var(--display); font-weight: 300; letter-spacing: -.03em; text-wrap: balance; }
h1 { font-size: clamp(3.2rem, 8vw, 5.6rem); line-height: 1.02; }
h2 { font-size: clamp(2rem, 4.5vw, 3.1rem); line-height: 1.12; }
h3 { font-size: 1.25rem; font-weight: 500; letter-spacing: -.01em; }
h1 em, h2 em { font-style: normal; color: var(--teal-bright); }

.kicker {
  font-family: var(--display);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--dim);
}
.kicker-teal { color: var(--teal); }
.kicker-gold { color: var(--gold); }
.lede { color: var(--dim); font-size: 1.1rem; max-width: 34em; }

.section-inner { max-width: 1140px; margin: 0 auto; padding: clamp(4rem, 10vw, 7.5rem) 24px; }

/* ---------- pills / buttons ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .8rem 1.7rem; border-radius: 999px;
  font-family: var(--display); font-size: .95rem; font-weight: 600;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.pill:hover { transform: translateY(-1px); }
.pill-solid { background: var(--ink); color: #10141c; }
.pill-solid:hover { background: #fff; }
.pill-ghost { border: 1px solid var(--glass-brd); background: var(--glass); color: var(--ink); backdrop-filter: blur(10px); }
.pill-ghost:hover { border-color: rgba(255,255,255,.25); }
.pill-gold { background: var(--gold); color: #241a08; }
.pill-gold:hover { background: var(--gold-bright); }

/* ---------- glass card ---------- */
.glass-card {
  background: var(--glass);
  border: 1px solid var(--glass-brd);
  border-radius: var(--radius);
  padding: 28px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(5, 6, 10, .6);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav-inner {
  max-width: 1140px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; gap: 2rem;
}
.wordmark { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--display); font-size: 1.45rem; font-weight: 500; letter-spacing: -.04em; }
.logo-mark2 { height: 24px; width: auto; display: block; }
.logo-word { height: 18px; width: auto; display: block; }
.logo-mark2-sm { height: 20px; }
.logo-word-sm { height: 15px; }
.nav-links { display: flex; gap: 1.8rem; margin-left: auto; }
.nav-links a { font-family: var(--display); font-size: .92rem; font-weight: 500; color: var(--dim); transition: color .2s ease; }
.nav-links a:hover { color: var(--ink); }
.nav .pill { padding: .55rem 1.25rem; font-size: .85rem; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  background: url('assets/scenes/SceneNeuro.jpg') center / cover no-repeat;
  opacity: .5;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(90% 70% at 70% 20%, transparent 0%, rgba(5,6,10,.55) 70%),
    linear-gradient(180deg, rgba(5,6,10,.55) 0%, rgba(5,6,10,.15) 45%, var(--bg1) 100%);
}
.hero-inner {
  position: relative; max-width: 1140px; margin: 0 auto;
  padding: clamp(7rem, 16vh, 10rem) 24px 0;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: end;
}
.hero-copy { padding-bottom: clamp(4rem, 10vh, 7rem); }
.hero-copy h1 { margin: 1.1rem 0 1.3rem; }
.hero-ctas { display: flex; gap: .9rem; margin-top: 2.2rem; flex-wrap: wrap; }
.hero-phone { display: flex; justify-content: center; }

/* ---------- phone frame ---------- */
.phone {
  width: min(320px, 78vw);
  border-radius: 46px;
  border: 1px solid rgba(255,255,255,.14);
  background: #05060a;
  padding: 10px;
  box-shadow:
    0 40px 90px rgba(0, 0, 0, .65),
    0 0 120px rgba(95, 182, 201, .12);
}
.phone img { border-radius: 37px; width: 100%; }
.phone-sm { width: 250px; border-radius: 38px; padding: 8px; }
.phone-sm img { border-radius: 31px; }

/* ---------- quote ---------- */
.quote { padding: clamp(5rem, 12vw, 8rem) 24px; }
.quote blockquote { max-width: 880px; margin: 0 auto; text-align: center; }
.quote p {
  font-family: var(--display); font-weight: 200;
  font-size: clamp(1.5rem, 3.4vw, 2.4rem); line-height: 1.35; letter-spacing: -.02em;
}
.quote p span { color: var(--teal-bright); }
.quote cite { display: block; margin-top: 1.6rem; font-style: normal; }
.quote cite { font-family: var(--display); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .22em; color: var(--dim); }

/* ---------- science ---------- */
.science { position: relative; background: var(--bg0); }
.two-col { display: grid; grid-template-columns: 1.15fr .85fr; gap: 4rem; align-items: center; }
.science-copy h2 { margin: 1rem 0 1.4rem; }
.science-copy > p { color: var(--dim); max-width: 36em; }
.science-copy > p + p { margin-top: 1rem; }
.science-cards { display: grid; gap: 1rem; margin-top: 2.4rem; }
.science-cards p:last-child { margin-top: .6rem; font-size: .95rem; color: var(--dim); }
.science-visual { display: flex; justify-content: center; }

/* ---------- how ---------- */
.how-head { max-width: 760px; }
.how-head h2 { margin-top: 1rem; }
.how-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3.5rem; align-items: center; margin-top: 3rem; }
.how-media { position: relative; }
.how-photo {
  width: 100%; border-radius: var(--radius);
  border: 1px solid var(--glass-brd);
  box-shadow: 0 30px 70px rgba(0,0,0,.5);
}
.how-watch {
  position: absolute; right: -24px; bottom: -34px;
  width: clamp(110px, 32%, 170px);
  border-radius: 22px;
  border: 1px solid var(--glass-brd);
  background: #fff;
  box-shadow: 0 24px 50px rgba(0,0,0,.55);
}
.steps { display: grid; gap: 2rem; }
.step { position: relative; padding-top: 34px; }
.step-num {
  position: absolute; top: -22px; left: 24px;
  display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--teal); color: #06222b;
  font-family: var(--display); font-weight: 700; font-size: 1.1rem;
  box-shadow: 0 8px 24px rgba(95,182,201,.35);
}
/* Each step takes the accent of its app domain: mobility teal, journal orange, sessions pink */
.step:nth-child(2) .step-num { background: var(--orange); color: #2b1605; box-shadow: 0 8px 24px rgba(217,138,69,.35); }
.step:nth-child(3) .step-num { background: var(--lavender); color: #241a3a; box-shadow: 0 8px 24px rgba(205,185,236,.35); }
.step h3 { margin-bottom: .6rem; }
.step p { font-size: .95rem; color: var(--dim); }

/* ---------- clinical measures ---------- */
.measures { background: var(--bg0); }
.measures-copy h2 { margin: 1rem 0 1.4rem; }
.measures-copy > p { color: var(--dim); max-width: 36em; }
.measures-copy > p + p { margin-top: 1rem; }
.measure-chips {
  list-style: none; padding: 0; margin: 2.2rem 0 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem;
}
.measure-chips li {
  display: flex; align-items: baseline; gap: .7rem;
  padding: .8rem 1rem; border-radius: 16px;
  border: 1px solid var(--glass-brd); background: var(--glass);
  font-size: .88rem; color: var(--dim);
}
.measure-chips strong {
  font-family: var(--display); font-size: .76rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; color: var(--teal);
  flex-shrink: 0;
}
.measures-visual { display: flex; justify-content: center; }

/* ---------- program ---------- */
/* Accents echo the Sessions screen's blush/terracotta palette. */
.program { background: radial-gradient(70% 55% at 50% 0%, rgba(224,105,74,.07), transparent 70%); }
.kicker-blush { color: var(--blush); }
.program-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3.5rem; align-items: center; }
.program-copy h2 { margin: 1rem 0 1.4rem; }
.program-copy > p { color: var(--dim); max-width: 34em; }
.program-points {
  list-style: none; padding: 0; margin: 2.2rem 0 0;
  display: grid; gap: .9rem;
}
.program-points li {
  padding: 1rem 1.2rem; border-radius: 18px;
  border: 1px solid rgba(224,105,74,.34); background: rgba(224,105,74,.09);
  font-size: .92rem; color: var(--dim); line-height: 1.55;
}
.program-points strong {
  display: block; margin-bottom: .2rem;
  font-family: var(--display); font-weight: 600; font-size: .98rem;
  color: var(--blush-bright);
}
.program-shots { display: flex; flex-wrap: wrap; gap: 1.2rem; justify-content: center; }
.program-shots .phone-sm { width: 210px; }
.program-shots figcaption { max-width: 210px; }

/* ---------- guide ---------- */
.guide { background: var(--bg0); }
.guide .two-col { grid-template-columns: .85fr 1.15fr; }
.guide-visual { display: flex; justify-content: center; }
.guide-copy h2 { margin: 1rem 0 1.4rem; }
.guide-copy > p { color: var(--dim); max-width: 34em; }
.chat-demo { display: flex; flex-direction: column; gap: .7rem; margin-top: 1.8rem; max-width: 30em; }
.chat-bubble { margin: 0; padding: .85rem 1.1rem; border-radius: 20px; font-size: .92rem; line-height: 1.55; }
.chat-user {
  align-self: flex-end; max-width: 85%;
  background: rgba(95,182,201,.14); border: 1px solid rgba(95,182,201,.3);
  color: var(--teal-bright); border-bottom-right-radius: 7px;
}
.chat-guide {
  align-self: flex-start; max-width: 92%;
  background: var(--glass); border: 1px solid var(--glass-brd);
  color: var(--ink); border-bottom-left-radius: 7px;
}

/* ---------- gallery ---------- */
.gallery { background: var(--bg0); }
.gallery .section-inner { padding-bottom: 1.5rem; }
.gallery-head h2 { margin: 1rem 0 1rem; }
.rail {
  display: flex; gap: 2.2rem;
  overflow-x: auto;
  padding: 2.5rem max(24px, calc((100vw - 1140px) / 2)) 5rem;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.shot { flex: 0 0 auto; scroll-snap-align: center; }
.shot figcaption { margin-top: 1.3rem; max-width: 250px; font-size: .88rem; color: var(--dim); line-height: 1.5; }
.shot figcaption strong { display: block; font-family: var(--display); font-weight: 600; font-size: 1rem; color: var(--ink); margin-bottom: .15rem; }

/* ---------- team ---------- */
.team .section-inner { text-align: center; }
.team-head { max-width: 760px; margin: 0 auto; }
.team-head h2 { margin: 1rem 0 1rem; }
.team-head .lede { margin-left: auto; margin-right: auto; }
.people { display: grid; grid-template-columns: repeat(2, minmax(0, 320px)); gap: 1.2rem; margin-top: 3rem; justify-content: center; }
.person { text-align: center; padding: 34px 28px; }
.person img {
  width: 130px; height: 130px; object-fit: cover; margin: 0 auto 1.2rem;
  border-radius: 50%; border: 1px solid var(--glass-brd);
  filter: grayscale(1);
}
.person .kicker { margin-top: .35rem; }
.backers { margin-top: 4rem; }
.backers ul {
  list-style: none; padding: 0; margin: .9rem 0 2rem;
  display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center;
}
.backers li {
  font-family: var(--display); font-size: .92rem; font-weight: 500; color: var(--dim);
  padding: .5rem 1.1rem; border-radius: 999px;
  border: 1px solid var(--glass-brd); background: var(--glass);
}

/* ---------- cta ---------- */
.cta { position: relative; overflow: hidden; text-align: center; }
.cta-bg {
  position: absolute; inset: 0;
  background: url('assets/scenes/SceneCell.jpg') center / cover no-repeat;
  opacity: .35;
}
.cta-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--bg0) 0%, rgba(5,6,10,.4) 50%, var(--bg1) 100%);
}
.cta .section-inner { position: relative; }
.cta h2 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
.cta h2 em { color: var(--gold-bright); }
.cta .lede { margin: 1.4rem auto 2.4rem; }
.join-form { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }
.join-form input {
  width: min(340px, 80vw);
  padding: .85rem 1.4rem; border-radius: 999px;
  border: 1px solid var(--glass-brd); background: rgba(255,255,255,.07);
  color: var(--ink); font-family: var(--body); font-size: .95rem;
  outline: none; backdrop-filter: blur(10px);
  transition: border-color .2s ease;
}
.join-form input::placeholder { color: var(--faint); }
.join-form input:focus { border-color: var(--teal); }

/* ---------- footer ---------- */
footer { border-top: 1px solid rgba(255,255,255,.06); }
.foot-inner {
  padding: 2.5rem 24px;
  display: flex; align-items: center; gap: 2rem; flex-wrap: wrap;
}
.foot-inner nav { display: flex; gap: 1.6rem; margin-left: auto; }
.foot-inner a { font-size: .85rem; color: var(--dim); }
.foot-inner a:hover { color: var(--ink); }
.foot-inner p { flex-basis: 100%; font-size: .8rem; color: var(--faint); }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: .12s; }
.delay-2 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; align-items: start; }
  .hero-copy { padding-bottom: 0; }
  .hero-phone { padding-bottom: 3.5rem; }
  .two-col { grid-template-columns: 1fr; }
  .how-grid { grid-template-columns: 1fr; gap: 3rem; }
  .how-media { margin-bottom: 1rem; }
  .how-watch { right: 8px; bottom: -24px; }
  .guide .two-col { grid-template-columns: 1fr; }
  .guide-visual { order: 2; }
  .measure-chips { grid-template-columns: 1fr; }
  .program-grid { grid-template-columns: 1fr; gap: 3rem; }
  .people { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
