/* ============================================================
   Attilio — Longevity landing  ·  phase1
   Dark, fluid, responsive build of the Figma concept (node 1:175)
   ============================================================ */

:root {
  --bg:           #0c0c0d;
  --black:        #000;

  --text-bright:  #f2f3f5;
  --text-off:     #ecf1f7;
  --text-1:       #b5bac0;   /* primary highlight on body copy */
  --text-2:       #989ba0;   /* body / titles base */
  --text-3:       #696d72;   /* muted, captions, numbers */

  --border:       rgba(255,255,255,.12);
  --border-soft:  rgba(255,255,255,.10);
  --border-faint: rgba(255,255,255,.07);

  --accent-blue:  #0b34ea;
  --accent-green: #34c759;
  --btn:          #ecf1f7;

  --radius:       44px;
  --maxw:         1456px;
  --gutter:       clamp(20px, 5vw, 72px);
  --font:         'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-1);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
/* logos must never distort, whatever box they land in */
.nav__brand img, .caption img, .footer__mark { object-fit: contain; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
b { font-weight: 500; color: var(--text-1); }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---- shared bits -------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
  border-radius: 100px;
  background: var(--btn);
  border: 1px solid #f2f3f5;
  color: #000;
  font-size: clamp(17px, 1.4vw, 20px);
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(236,241,247,.18);
}

.accent { color: var(--text-1); }

.section-title {
  font-weight: 600;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.0;
  letter-spacing: -.01em;
  color: var(--text-2);
}
.section-title .accent { color: var(--text-1); }

.display-title {
  font-weight: 600;
  font-size: clamp(38px, 5.6vw, 72px);
  line-height: .95;
  letter-spacing: -.02em;
  color: var(--text-bright);
}
.display-sub {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.4;
  color: var(--text-1);
}
.display-sub b { color: var(--text-off); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  inset: 24px 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding-inline: 16px;
  pointer-events: none;
}
.nav > * { pointer-events: auto; }
.nav__brand img { height: 56px; width: auto; }

.nav__pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 12px 12px 20px;
  border-radius: 16px;
  background: rgba(29,29,31,.85);
  border: 1px solid var(--border-soft);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.nav__pill a {
  padding: 0 12px;
  font-size: 18px;
  color: var(--text-bright);
  white-space: nowrap;
  transition: color .15s ease;
}
.nav__pill a:hover { color: #fff; }
.nav__cta {
  padding: 4px 12px !important;
  border-radius: 28px;
  background: rgba(255,255,255,.1);
  font-size: 16px !important;
  font-weight: 500;
}
.nav__cta:hover { background: rgba(255,255,255,.18); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: clamp(680px, 100svh, 1000px);
  background: var(--black);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  left: -12%; bottom: 26%;            /* sits higher/right so the bloom clears the score + rings */
  width: 138%;
  aspect-ratio: 1 / 1;
  transform: rotate(90deg);
  z-index: 3;                         /* ON TOP of the phone (z-2), under the text (z-4) — Figma layer order */
  pointer-events: none;
}
.hero__glow img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: screen; }
.hero__glow img + img { mix-blend-mode: plus-lighter; opacity: .65; }
.hero__phone {
  position: absolute;
  top: -10%; left: 50%;
  width: min(72%, 1060px);
  transform: translateX(-28%);
  z-index: 2;
}
.hero__fader {
  position: absolute;
  inset: auto 0 -1px 0;
  height: 62%;
  z-index: 3;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 22%, var(--black) 63%);
}
.hero__content {
  position: relative;
  z-index: 4;
  min-height: clamp(680px, 100svh, 1000px);
  display: grid;
  grid-template-columns: 1.1fr minmax(0, 480px);
  align-items: end;
  gap: 40px;
  padding-block: 140px 80px;
}
.hero__title {
  display: flex;
  flex-direction: column;
  font-weight: 500;
  font-size: clamp(46px, 9vw, 100px);
  line-height: .92;
  letter-spacing: -.02em;
  color: var(--text-bright);
}
.hero__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
  padding-bottom: 8px;
}
.hero__sub {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.4;
  color: var(--text-1);
}
.hero__sub b { color: var(--text-off); }

/* ============================================================
   THE INDEX & THE FOUR BANKS
   ============================================================ */
.banks {
  position: relative;
  padding-block: clamp(96px, 13vw, 200px) clamp(80px, 9vw, 130px);
  background: radial-gradient(120% 70% at 50% 0%, #1b1b1d 0%, var(--bg) 66%);
}
.banks__intro {
  max-width: 700px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  margin-bottom: clamp(12px, 1.5vw, 24px);
}
.banks__intro .section-title { color: var(--text-2); }
.section-lede {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.4;
  color: var(--text-2);
}

.bank-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(79deg, #111112 7%, #000 86%);
  overflow: hidden;
  isolation: isolate;
  --accent: #34c759;
}
.bank-card:focus-visible { outline: 2px solid var(--text-1); outline-offset: 4px; }
.bank-scroll { position: relative; }
.bank-card__track { position: relative; }
.bank-slide {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
}
/* Crossfade between banks. JS stacks every bank into the SAME grid cell, so the
   track always sizes to the tallest bank and its height never changes slide-to-slide
   (no reflow jump). Gated on .js so a no-JS page just stacks all four vertically. */
.js .bank-card__track { display: grid; }
.js .bank-slide {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s ease, transform .5s ease;
}
.js .bank-slide:not(.is-active) { pointer-events: none; }
.js .bank-slide.is-active { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .bank-slide { transition: none; transform: none; }
}
.bank-card__left {
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 4vw, 52px);
  padding: clamp(36px, 5vw, 72px);
  z-index: 2;
}
.bank-card__logo { width: clamp(84px, 9vw, 120px); aspect-ratio: 1; height: auto; }
.bank-logo-tile {
  display: grid;
  place-items: center;
  border-radius: 28px;
  background: color-mix(in srgb, var(--accent) 14%, #000);
  border: 1px solid color-mix(in srgb, var(--accent) 38%, transparent);
  color: var(--accent);
  font-size: clamp(42px, 5vw, 64px);
}
.bank-card__text { display: flex; flex-direction: column; gap: 32px; }
.bank-card__title {
  font-weight: 500;
  font-size: clamp(36px, 4.6vw, 56px);
  line-height: 1.0;
  letter-spacing: -.01em;
  color: #fff;
}
.bank-card__title .accent { color: var(--text-1); }
.bank-card__body {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.4;
  color: var(--text-1);
}
.bank-card__body b { color: #fff; }

.info-note { display: flex; gap: 16px; align-items: flex-start; }
.info-note__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border: 1px solid rgba(181,186,192,.25);
  border-radius: 12px;
  color: var(--text-1);
  font-size: 22px;
}
.info-note p { font-size: 16px; line-height: 1.25; color: var(--text-1); font-weight: 500; }

.bank-card__right { position: relative; min-height: 420px; z-index: 1; }
.bank-card__phone {
  position: absolute;
  right: -5%; bottom: 0%;
  height: 100%;
  max-width: none;
  filter: drop-shadow(0 40px 90px rgba(0,0,0,.6));
}
.bank-card__glow {
  position: absolute;
  left: 50%; top: -12%;
  width: 150%; aspect-ratio: 1;
  transform: translateX(-50%);
  background: url(assets/green-light-vfx.webp) center / contain no-repeat;
  filter: hue-rotate(var(--phone-hue, 0deg)) saturate(1.05);
  mix-blend-mode: screen;
  opacity: .85;
  z-index: 0;
  pointer-events: none;
}
.bank-card__indicator {
  position: absolute;
  right: 23px; top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
  z-index: 3;
}
.bank-card__indicator button {
  appearance: none;
  -webkit-appearance: none;
  border: 0; padding: 0; margin: 0;
  cursor: pointer;
  height: 2px; width: 16px;
  border-radius: 2px;
  background: var(--text-1);
  opacity: .5;
  transition: width .3s ease, opacity .3s ease, background .3s ease;
}
.bank-card__indicator button:hover { opacity: .85; }
.bank-card__indicator button.is-active { width: 24px; background: #fff; opacity: 1; }
.bank-card__indicator button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; opacity: 1; }
.bank-card__body em { color: var(--text-3); font-style: italic; font-weight: 400; }

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

/* Four Banks pins on desktop; scroll progress advances the active bank (JS-driven).
   --bank-steps = slide count − 1; each step gets ~70vh of scroll travel. */
@media (min-width: 1100px) and (min-height: 820px) {
  .js .bank-scroll { --bank-steps: 3; height: calc(100vh + var(--bank-steps) * 70vh); }
  .js .bank-sticky { position: sticky; top: 0; height: 100vh; display: grid; align-items: start; padding-top: clamp(84px, 11vh, 128px); }
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how {
  position: relative;
  overflow: hidden;
  padding-block: clamp(52px, 6vw, 104px) clamp(80px, 9vw, 120px);
  background: radial-gradient(70% 50% at 50% 50%, #1b1b1d 0%, var(--bg) 66%);
  text-align: center;
}
.how__title { display: inline-block; margin-bottom: clamp(48px, 7vw, 110px); }

.how__stage {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto clamp(40px, 6vw, 90px);
  height: clamp(220px, 30vw, 360px);
}
.how__hand {
  position: absolute;
  bottom: 0;
  width: clamp(150px, 24vw, 390px);
  opacity: .5;
  pointer-events: none;
}
.how__hand--left  { left: 2%;  -webkit-mask-image: linear-gradient(90deg, #000 55%, transparent); mask-image: linear-gradient(90deg, #000 55%, transparent); }
.how__hand--right { right: 2%; -webkit-mask-image: linear-gradient(0deg, transparent, #000 60%); mask-image: linear-gradient(0deg, transparent, #000 60%); }

.how__trail {
  position: absolute;
  top: 50%;
  width: clamp(260px, 34vw, 453px);
  z-index: 1;                        /* behind the icon cluster (z-3) */
  pointer-events: none;
}
.how__trail--left  { right: 50%; margin-right: 18px; transform: translateY(-50%); }
.how__trail--right { left: 50%;  margin-left: 18px;  transform: translateY(-50%); }

.health-bar {
  position: absolute;
  top: 34%; left: 39%;
  transform: translateX(-28vw);   /* viewport-relative so the pill tracks the wrist as the stage scales */
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 10px 4px 4px;
  border-radius: 11px;
  background: rgba(0,0,0,.7);
  border: 1px solid var(--border-soft);
  white-space: nowrap;
}
.health-bar__app { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 500; color: var(--text-1); }
.health-bar__app img { width: 28px; height: 28px; }
.toggle {
  flex: none;
  display: flex;
  justify-content: flex-end;
  width: 28px;
  padding: 2px;
  border-radius: 50px;
  background: var(--accent-green);
}
.toggle__knob { width: 12px; height: 12px; border-radius: 50%; background: #fff; }

.how__icons {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;                       /* sits on top of the light beam */
  width: clamp(240px, 32vw, 440px); /* full fanned cluster, exported from Figma w/ blur */
}
.how__icons img { width: 100%; height: auto; display: block; }

.how__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 48px);
}
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  max-width: 320px;
  margin-inline: auto;
  text-align: center;
}
.step__num {
  display: grid;
  place-items: center;
  min-width: 48px;
  padding: 12px 20px;
  border-radius: 100px;
  border: 1px solid rgba(105,109,114,.25);
  color: var(--text-3);
  font-size: 18px;
}
.step p { font-size: 18px; line-height: 1.33; color: var(--text-2); }
.step p b { color: var(--text-1); }

/* ============================================================
   BRAND CARD
   ============================================================ */
.brand {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--black);
  margin-block: clamp(40px, 6vw, 72px);
}
.brand__glow {
  position: absolute;
  left: -30%; bottom: -120%;
  width: 150%;
  opacity: .9;
  pointer-events: none;
}
.brand__glow img { width: 100%; mix-blend-mode: screen; }
.brand__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  text-align: center;
  padding: clamp(80px, 12vw, 180px) var(--gutter);
}
.brand__inner .display-title,
.footer__inner .display-title { text-align: center; }

.logo-badge {
  display: grid;
  place-items: center;
  width: 60px; height: 60px;
  border-radius: 16px;
  border: 1px solid #fff;
  background: linear-gradient(135deg, #fff 0%, #dfe7f1 100%);
}
.logo-badge img { width: 41px; height: auto; }

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  position: relative;
  padding-block: clamp(110px, 15vw, 248px);
  background: radial-gradient(80% 50% at 50% 50%, #1b1b1d 0%, var(--bg) 66%);
}
.about__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  text-align: center;
}
.caption { display: flex; align-items: center; gap: 12px; color: var(--text-3); font-size: clamp(18px, 2vw, 24px); font-weight: 500; }
/* crane recolored to match the caption text (grey), via mask — no distortion */
.caption__mark {
  flex: none; width: 41px; height: 28px;
  background: currentColor;
  -webkit-mask: url(assets/attilio-mark.svg) center / contain no-repeat;
  mask: url(assets/attilio-mark.svg) center / contain no-repeat;
}

.about__statement {
  max-width: 955px;
  font-weight: 500;
  font-size: clamp(34px, 6vw, 80px);
  line-height: .9;
  letter-spacing: -.01em;
  color: var(--text-2);
}
.about__statement b { color: var(--text-1); }

/* shared icon cluster (overlapping tiles) */
.cluster { display: flex; align-items: center; gap: clamp(12px, 1.6vw, 20px); }
.cluster__tile {
  display: grid;
  place-items: center;
  width: clamp(64px, 8vw, 92px);
  aspect-ratio: 1;
  border-radius: clamp(16px, 2.4vw, 28px);
  background: rgba(0,0,0,.7);
  border: 1px solid var(--border-faint);
  color: var(--tile, var(--text-1));
  font-size: clamp(30px, 4vw, 56px);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  position: relative;
  overflow: hidden;
  background: var(--black);
  border-top: 1px solid var(--border);
  padding-block: clamp(360px, 40vw, 560px) clamp(60px, 7vw, 90px);
}
.footer__phone {
  position: absolute;
  top: -30px; left: 50%;
  width: min(70%, 787px);
  transform: translateX(-55%);
  z-index: 1;
  filter: drop-shadow(0 52px 120px rgba(0,0,0,.75));
}
.footer__glow {
  position: absolute;
  left: -40%; bottom: -90%;
  width: 150%;
  opacity: .85;
  z-index: 0;
  pointer-events: none;
}
.footer__glow img { width: 100%; mix-blend-mode: screen; }
.footer__topfade {
  position: absolute;
  inset: 0 0 auto 0;
  height: 260px;
  z-index: 1;
  background: linear-gradient(180deg, #000001 16%, rgba(0,0,1,.75) 48%, rgba(0,0,1,0) 66%);
}
.footer__inner {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  text-align: center;
  padding-inline: var(--gutter);
  margin-bottom: clamp(48px, 6vw, 80px);
}
.footer__links {
  position: relative;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
  opacity: .75;
}
.footer__links a { font-size: 16px; font-weight: 500; color: var(--text-bright); }
.footer__links a:hover { opacity: .8; }
.footer__contact { padding: 4px 12px; border: 1px solid rgba(255,255,255,.5); border-radius: 28px; }
/* shared sign-off bar — identical on the homepage footer and every inner page */
.footer__bar {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
  padding-inline: var(--gutter);
}
.footer__mark { height: 28px; width: auto; }
.footer__copy { font-size: 13px; color: var(--text-3); }

/* slim footer for doc / legal / team pages: same bar, no CTA + phone */
.footer.footer--bare {
  padding-block: clamp(48px, 7vw, 90px);
  flex-shrink: 0;           /* hold full height inside the .doc-page flex column */
}

/* anchor targets clear the fixed nav */
section[id], [id="cta"] { scroll-margin-top: 120px; }

/* reveal-on-scroll — fail-safe: only hides once JS confirms it can reveal */
.reveal { transition: opacity .7s ease, transform .7s ease; }
.js .reveal { opacity: 0; transform: translateY(24px); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* ---- Laptop (1101px – 1730px) --------------------------------
   Targets mid-size laptop screens where the full desktop scale
   reads as oversized. Tightens type, spacing, and the hero
   phone image without touching tablet/mobile or wide-desktop. */
@media (min-width: 1101px) and (max-width: 1730px) {

  /* Nav: smaller pill text so it doesn't crowd at ~1200px */
  .nav__pill a { font-size: 16px; }

  /* Hero: tighten the title and shrink the phone so the layout
     feels balanced rather than filling edge-to-edge */
  .hero__title {
    font-size: clamp(46px, 7vw, 80px);
  }
  .hero__phone {
    width: min(60%, 860px);
    transform: translateX(-22%);
  }
  .hero__content {
    grid-template-columns: 1.2fr minmax(0, 420px);
    gap: 32px;
    padding-block: 120px 64px;
  }

  /* Banks section: reduce the card title and body padding so the
     card doesn't feel like it belongs on a 27" display */
  .bank-card__title {
    font-size: clamp(32px, 3.8vw, 48px);
  }
  .bank-card__left {
    padding: clamp(32px, 4vw, 56px);
    gap: clamp(24px, 3vw, 40px);
  }
  .bank-card__body {
    font-size: clamp(16px, 1.3vw, 18px);
  }

  /* About: the statement is the most oversized element on laptop —
     bring it back from its 80px ceiling to something readable */
  .about__statement {
    font-size: clamp(30px, 4.8vw, 62px);
  }

  /* Footer: scale the display headline down a step */
  .display-title {
    font-size: clamp(36px, 4.8vw, 60px);
  }

  /* Section titles: very slightly tighter */
  .section-title {
    font-size: clamp(30px, 4.2vw, 46px);
  }
}

@media (max-width: 1100px), (max-height: 819px) {
  /* Flow layout — used below desktop width AND on short viewports (e.g. a laptop
     with a tall browser chrome / lots of toolbars, which is what was breaking the
     site for some users). The hero stacks (phone in-flow ABOVE the copy) and the
     Four Banks become a horizontal swipe row instead of the pinned scroll-jack,
     so nothing relies on a tall viewport and nothing clips. */
  .hero { min-height: auto; padding-top: 150px; }
  .hero__content {
    display: flex; flex-direction: column;
    min-height: auto; align-items: flex-start; gap: 28px;
    padding-block: 0 64px;
  }
  .hero__title { order: -1; }
  .hero__phone { position: relative; left: auto; transform: none; width: min(560px, 100%); margin: 0 auto 8px; }
  .hero__aside { max-width: 600px; }
  .hero__fader { display: none; }
  .hero__glow {
    left: 50%; right: auto; bottom: auto; top: 0;
    width: min(720px, 130%); aspect-ratio: 1 / 1;
    transform: translate(-50%, -56%) rotate(90deg);
    opacity: .7;
  }

  .bank-slide { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  /* mobile/tablet: native horizontal swipe carousel (the desktop pin + crossfade
     don't apply below 1100px, so make the track a scroll-snap row) */
  .js .bank-card__track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .js .bank-card__track::-webkit-scrollbar { display: none; }
  .js .bank-slide {
    grid-area: auto;
    position: static;
    min-width: 100%;
    opacity: 1;
    transform: none;
    scroll-snap-align: center;
    pointer-events: auto;
  }


  .bank-card__logo
  {
    max-width: clamp(44px, 12vw, 120px);
  }

  .bank-card__logo.bank-logo-tile {
    border-radius: clamp(12px, 4vw, 24px);
  }

  .bank-card__logo.bank-logo-tile > .ph {
    font-size: clamp(20px, 5vw, 64px);
  }

  .bank-card__right {
    min-height: 0;
    overflow: hidden;
    display: grid;
    place-items: center;
  }
  /* size by the box height (not width) so the whole portrait screenshot
     is visible top-to-bottom; contain guards against any sideways clip */
  .bank-card__phone {
    position: static;
    height: 100%;
    width: auto;
    max-width: clamp(200px, 90vw, 490px);
    object-fit: cover;
    object-position: bottom center;
   
  }

  /* fade the top edge of the last two banks so the phone doesn't clip into the viewport */
  .bank-card__track .bank-slide:nth-child(3) .bank-card__right,
  .bank-card__track .bank-slide:nth-child(4) .bank-card__right {
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 20%);
    -webkit-mask-image:linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 20%);
  }


  .bank-card__indicator {
    right: auto; left: 50%; top: auto; bottom: 14px;
    transform: translateX(-50%);
    flex-direction: row; align-items: center;
    gap: 14px;
  }
  
  /* bigger touch targets — keep the thin line visible, pad the hit area */
  .bank-card__indicator button { height: 20px; padding-block: 8px; background-clip: content-box; }
  .bank-card__left { padding-bottom: 8px; }
  /* the How stage stays whole here and scales via its vw-based sizes (see ≤720 for the stacked layout) */
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav { inset: 12px 0 auto 0; flex-direction: column; gap: 10px; }
  .nav__brand img { height: 44px; }
  .nav__pill { flex-wrap: wrap; justify-content: center; max-width: calc(100vw - 20px); gap: 4px 2px; padding: 8px 10px; }
  .nav__pill a { font-size: 14px; padding: 4px 8px; }
  .nav__pill .nav__cta { font-size: 13px !important; }

  /* hero stack inherited from the ≤1100 block; just widen the phone + bloom on phones */
  .hero__phone { width: 100%; }
  .hero__glow { width: 135%; transform: translate(-50%, -58%) rotate(90deg); }

  .how__stage { height: auto; display: flex; flex-direction: column; align-items: center; gap: 24px; margin-bottom: 48px; }
  .how__hand, .how__trail { display: none; }            /* no room for the side hands/beam once stacked */
  .health-bar, .how__icons { position: static; transform: none; width: auto; }
  .how__steps { grid-template-columns: 1fr; }

  .about__statement br { display: none; }

  .footer__phone { width: 92%; top: -60px; }
  .footer__topfade { height: 200px; }                 /* shorter so it doesn't blanket the smaller phone */
  .footer__glow {                                      /* was off-screen on mobile — bring it into view */
    left: 50%; right: auto; top: -4%; bottom: auto;
    width: 170%; transform: translateX(-50%); opacity: .7;
  }
  .footer__links { gap: 12px 16px; }                     /* wrap centered, tighter on phones */
}

/* ============================================================
   DOC / LEGAL / STANDARDS PAGES  (privacy, terms, hipaa,
   standards, team, support) — same dark system, simple column.
   ============================================================ */
.doc-page { background: var(--bg); min-height: 100vh; display: flex; flex-direction: column; }
.doc-page main { flex: 1 0 auto; }

.container-narrow {
  width: 100%;
  max-width: 820px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.doc { padding-block: clamp(124px, 17vh, 210px) clamp(56px, 9vh, 110px); }
.doc__header { border-bottom: 1px solid var(--border); padding-bottom: 28px; margin-bottom: 44px; }
.doc__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500; color: var(--text-3);
  margin-bottom: 18px;
}
.doc__eyebrow img { height: 18px; width: auto; }
.doc__title {
  font-weight: 600;
  font-size: clamp(34px, 5.2vw, 56px);
  line-height: 1.04;
  letter-spacing: -.02em;
  color: var(--text-bright);
}
.doc__meta { margin-top: 14px; font-size: 15px; color: var(--text-3); }
.doc__lede { margin-top: 22px; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; color: var(--text-1); }

.doc__body > *:first-child { margin-top: 0; }
.doc__body h2 {
  font-weight: 600;
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.3;
  letter-spacing: -.01em;
  color: var(--text-bright);
  margin: 44px 0 12px;
}
.doc__body h3 { font-weight: 500; font-size: 17px; color: var(--text-off); margin: 26px 0 6px; }
.doc__body p { font-size: 16px; line-height: 1.72; color: var(--text-2); margin-bottom: 14px; }
.doc__body p b, .doc__body li b, .doc__body strong { color: var(--text-off); font-weight: 500; }
.doc__body a { color: var(--text-1); text-decoration: underline; text-underline-offset: 3px; }
.doc__body a:hover { color: #fff; }

/* numbered standards list */
.doc__body ol.doc-list { list-style: none; counter-reset: item; margin: 8px 0 16px; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.doc__body ol.doc-list > li {
  counter-increment: item; position: relative; padding-left: 52px;
  font-size: 16px; line-height: 1.6; color: var(--text-1); min-height: 32px;
  display: flex; align-items: center;
}
.doc__body ol.doc-list > li::before {
  content: counter(item); position: absolute; left: 0; top: 0;
  width: 32px; height: 32px; display: grid; place-items: center;
  border: 1px solid var(--border); border-radius: 100px;
  font-size: 14px; color: var(--text-3);
}
/* term + description list (transparency standards) */
.doc__body dl.doc-defs { margin: 8px 0 16px; display: flex; flex-direction: column; gap: 24px; }
.doc__body dl.doc-defs dt { font-weight: 500; font-size: 17px; color: var(--text-bright); margin-bottom: 4px; }
.doc__body dl.doc-defs dd { margin: 0; font-size: 16px; line-height: 1.65; color: var(--text-2); }

/* slim footer for doc pages */
.site-footer { flex-shrink: 0; border-top: 1px solid var(--border); background: var(--black); padding-block: 36px; }
.site-footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.site-footer__brand img { height: 38px; width: auto; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.site-footer__links a { font-size: 14px; color: var(--text-2); }
.site-footer__links a:hover { color: var(--text-bright); }
.site-footer__links a[aria-current="page"] { color: var(--text-bright); }
.site-footer__copy { font-size: 12px; color: var(--text-3); }

/* simple contact form (support page) */
.contact-form { display: flex; flex-direction: column; gap: 16px; max-width: 520px; margin-top: 8px; }
.contact-form label { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--text-2); }
.contact-form input, .contact-form textarea {
  font-family: var(--font); font-size: 16px; color: var(--text-bright);
  background: rgba(255,255,255,.04); border: 1px solid var(--border-soft);
  border-radius: 12px; padding: 14px 16px; width: 100%;
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--text-2); }
.contact-form .btn { align-self: flex-start; margin-top: 4px; }

@media (max-width: 720px) {
  .site-footer__inner { flex-direction: column; align-items: flex-start; }
}

/* team grid (photo cards) */
.team-grid {
  list-style: none; margin: 8px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 32px 22px;
}
.team-card { display: flex; flex-direction: column; }
.team-card img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: 16px; background: rgba(255,255,255,.04);
  border: 1px solid var(--border-faint);
}
.team-card__name { margin-top: 14px; font-size: 16px; font-weight: 500; color: var(--text-bright); line-height: 1.3; }
.team-card__role { margin-top: 3px; font-size: 14px; color: var(--text-3); line-height: 1.4; }
@media (max-width: 480px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 18px; }
}
/* clickable team cards (link to member pages) */
a.team-card { text-decoration: none; }
a.team-card img { transition: border-color .2s ease, transform .2s ease; }
a.team-card:hover img { border-color: var(--text-3); transform: translateY(-3px); }
a.team-card:hover .team-card__name { color: #fff; }

/* team member detail (drill-in) pages — compact header (avatar beside name/role),
   then the bio in one readable column below (no tall empty photo column) */
.member {
  max-width: 780px; margin-inline: auto; padding-inline: var(--gutter);
  padding-block: clamp(120px, 16vh, 200px) clamp(56px, 9vh, 110px);
}
.member__head { display: flex; align-items: center; gap: clamp(20px, 3.5vw, 40px); }
.member__photo {
  flex: none; width: clamp(128px, 20vw, 200px); aspect-ratio: 1; object-fit: cover;
  border-radius: 22px; border: 1px solid var(--border-faint); background: rgba(255,255,255,.04);
}
.member__name { font-weight: 600; font-size: clamp(30px, 4.4vw, 48px); line-height: 1.05; letter-spacing: -.02em; color: var(--text-bright); }
.member__role { margin-top: 8px; font-size: clamp(16px, 1.5vw, 19px); color: var(--text-1); }

.member__body { margin-top: clamp(34px, 5vw, 52px); }
.member__bio { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.member__bio li { position: relative; padding-left: 22px; font-size: 16px; line-height: 1.55; color: var(--text-2); }
.member__bio li::before { content: ''; position: absolute; left: 3px; top: 10px; width: 5px; height: 5px; border-radius: 50%; background: var(--text-3); }
.member__prose { display: flex; flex-direction: column; gap: 16px; }
.member__prose p { font-size: 16px; line-height: 1.72; color: var(--text-2); }

.member__back { margin-top: clamp(36px, 5vw, 56px); }
.btn-ghost { background: transparent; border: 1px solid var(--border); color: var(--text-1); }
.btn-ghost:hover { background: rgba(255,255,255,.05); box-shadow: none; color: var(--text-bright); }

@media (max-width: 560px) {
  .member__head { flex-direction: column; align-items: flex-start; gap: 20px; }
}

/* ============================================================
   WAITLIST MODAL
   ============================================================ */
.waitlist {
  width: min(92vw, 460px);
  margin: auto;                       /* center within the dialog viewport */
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--border);
  border-radius: 28px;
  background: linear-gradient(160deg, #161618 0%, #0a0a0b 100%);
  color: var(--text-bright);
  box-shadow: 0 40px 120px rgba(0,0,0,.6);
  position: relative;
}
.waitlist::backdrop {
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.waitlist[open] { animation: waitlist-in .24s ease both; }
@keyframes waitlist-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }

.waitlist__close {
  position: absolute; top: 14px; right: 16px;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: rgba(255,255,255,.06);
  color: var(--text-2);
  font-size: 22px; line-height: 1; cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.waitlist__close:hover { background: rgba(255,255,255,.12); color: var(--text-bright); }

.waitlist__title { font-weight: 600; font-size: clamp(26px, 4vw, 34px); letter-spacing: -.01em; }
.waitlist__lede { margin-top: 8px; color: var(--text-2); font-size: 16px; }

.waitlist__form { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
.waitlist__field { display: flex; flex-direction: column; gap: 6px; }
.waitlist__field span { font-size: 13px; font-weight: 500; color: var(--text-3); }
.waitlist__field input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
  color: var(--text-bright);
  font: inherit; font-size: 16px;
  transition: border-color .15s ease, background .15s ease;
}
.waitlist__field input::placeholder { color: var(--text-3); }
.waitlist__field input:focus {
  outline: none;
  border-color: rgba(255,255,255,.55);
  background: rgba(255,255,255,.07);
}
.waitlist__submit { width: 100%; margin-top: 6px; }

.waitlist__success {
  margin-top: 8px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--accent-green) 40%, transparent);
  background: color-mix(in srgb, var(--accent-green) 12%, transparent);
  color: var(--text-bright); font-weight: 500;
  display: flex; align-items: center; gap: 10px;
}
.waitlist__success::before { content: '\2713'; color: var(--accent-green); font-weight: 700; }

/* the display rules above otherwise beat the [hidden] attribute when toggling */
.waitlist__form[hidden], .waitlist__success[hidden] { display: none; }

.waitlist__error { margin-top: 8px; font-size: 14px; color: #ff6b6b; }
.waitlist__error a { color: inherit; text-decoration: underline; }
