/* ============================================================
   THE AESTHETIC FRAME — landing page
   Recreated from the Claude Design handoff. The app's design
   system: warm-paper light surfaces, electric ice-blue accent,
   cobalt CTA, hairline cards, Bebas Neue display.
   ============================================================ */

@font-face {
  font-family: "Bebas Neue";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/BebasNeue-Regular.woff2") format("woff2"),
       url("assets/fonts/BebasNeue-Regular.ttf") format("truetype");
}

:root {
  /* ---- Light theme (body) ---- */
  --bg: #F2F0EA;          /* warm paper */
  --surface: #FFFFFF;
  --hair: rgba(20, 22, 27, 0.10);
  --text: #17181D;
  --text-2: #585E68;
  --accent-text-light: #0B7FB8;

  /* ---- Dark theme (nav / hero / approach / footer) ---- */
  --dark-bg: #0B0C0F;      /* near-black */
  --dark-surface: #14161B;
  --dark-hair: rgba(255, 255, 255, 0.08);
  --dark-text: #F3F4F6;
  --dark-text-2: #9BA1AC;
  --micro-dark: #949BA6;   /* microcopy on dark surfaces — lightened to pass WCAG AA contrast */
  --accent-text-dark: #46B6EE;

  /* ---- Accent & action (both themes) ---- */
  --accent: #0F9FE0;                                   /* electric fill */
  --accent-soft-light: rgba(15, 159, 224, 0.12);
  --accent-soft-dark: rgba(15, 159, 224, 0.18);
  --action: linear-gradient(135deg, #2FB0EE, #0F86D0); /* cobalt CTA */
  --action-ink: #06121C;
  --cta-shadow: 0 6px 20px rgba(15, 159, 224, 0.34);
  --cta-shadow-hover: 0 12px 30px rgba(15, 159, 224, 0.5);
  --guide-panel: linear-gradient(160deg, #0E3350, #0B1722);

  /* ---- Motion ---- */
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --t-fast: 180ms;
  --t-reveal: 600ms;
  --stagger: 80ms;

  /* ---- Type ---- */
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  --font-display: "Bebas Neue", "Oswald", "Arial Narrow", sans-serif;
  --font-mono: "Courier New", monospace;

  /* ---- Layout ---- */
  --maxw: 1180px;
  --gutter: 24px;
  --section-pad: clamp(72px, 9vw, 120px);
  --nav-h: 76px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

::selection { background: rgba(15, 159, 224, 0.28); }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

/* ---- Accessibility: visible keyboard focus ---- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--dark-surface);
  color: var(--dark-text);
  padding: 12px 18px;
  border-radius: 0 0 12px 0;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* Visually-hidden but available to screen readers */
.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;
}

/* Honeypot — off-screen; real users never see or fill it */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Anchor jumps shouldn't tuck headings under the sticky nav */
#guide, #approach, #founder, #app, #club, #get-started { scroll-margin-top: 88px; }

/* ---- Shared display / label primitives ---- */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: 0.5px;
  margin: 0;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin: 0 0 18px;
}
.eyebrow--light { color: var(--accent-text-light); }
.eyebrow--dark { color: var(--accent-text-dark); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  font-family: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform var(--t-fast) ease, box-shadow 200ms ease, border-color var(--t-fast) ease, background var(--t-fast) ease;
}

.btn--cta {
  height: 54px;
  padding: 0 26px;
  border-radius: 14px;
  font-size: 16px;
  color: var(--action-ink);
  background: var(--action);
  box-shadow: var(--cta-shadow);
}
.btn--cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--cta-shadow-hover);
}
.btn--cta:hover .btn__arrow {
  transform: translateX(3px);
}
.btn--cta:disabled {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}

.btn--ghost {
  height: 54px;
  padding: 0 26px;
  border-radius: 14px;
  font-size: 16px;
  color: var(--dark-text);
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
}
.btn--ghost:hover {
  border-color: rgba(70, 182, 238, 0.7);
  background: rgba(70, 182, 238, 0.08);
}

.btn--ghost-light {
  height: 54px;
  padding: 0 26px;
  border-radius: 14px;
  font-size: 16px;
  color: var(--text);
  background: transparent;
  border: 1.5px solid var(--hair);
}
.btn--ghost-light:hover {
  border-color: rgba(11, 127, 184, 0.55);
  background: var(--accent-soft-light);
}

.btn--on-light { /* same cobalt CTA on light surfaces */ }

.btn__arrow {
  flex: none;
  transition: transform var(--t-fast) ease;
}
.btn__label { display: inline; }

/* ============================================================
   1 · NAV (transparent overlay on the hero)
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .28s ease, border-color .28s ease;
}
.nav.is-scrolled {
  background: rgba(11, 12, 15, 0.85);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  min-width: 0;
  flex: 0 1 auto;
}
.wordmark__tile {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--action);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
  flex: none;
}
.wordmark__name {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--dark-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: none;
}
.nav__menu {
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--dark-text);
  cursor: pointer;
  flex: none;
}
.nav__toggle:hover { background: rgba(255, 255, 255, 0.08); }

.navlink {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--dark-text-2);
  text-decoration: none;
  transition: color var(--t-fast) ease;
  position: relative;
}
.navlink:hover { color: var(--dark-text); }
.nav__menu .navlink.is-active {
  color: var(--dark-text);
}
.nav__menu .navlink.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent-text-dark);
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 11px 16px;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--action-ink);
  text-decoration: none;
  border-radius: 12px;
  white-space: nowrap;
  background: var(--action);
  box-shadow: var(--cta-shadow);
  transition: transform var(--t-fast) ease, box-shadow 200ms ease;
  flex: none;
}
.nav__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(15, 159, 224, 0.5);
}

/* ============================================================
   2 · HERO (dark)
   ============================================================ */
.hero {
  position: relative;
  background: var(--dark-bg);
  color: var(--dark-text);
  overflow: clip;
  margin-top: calc(var(--nav-h) * -1);
  padding-top: var(--nav-h);
}
.hero__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 78% 8%, rgba(15, 159, 224, 0.20), transparent 55%);
  pointer-events: none;
}
.hero__grain {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  pointer-events: none;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero__inner {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(40px, 5vw, 80px) var(--gutter) clamp(40px, 5vw, 64px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(36px, 5vw, 72px);
}

.hero__copy { flex: 1 1 440px; min-width: min(100%, 300px); }

.hero__title {
  font-size: clamp(52px, 9vw, 116px);
  line-height: 0.86;
  letter-spacing: 1px;
  margin: 0 0 24px;
  text-wrap: balance;
  display: flex;
  flex-direction: column;
  gap: 0.06em;
}
.hero__title .accent { color: var(--accent-text-dark); }
.hero__line { display: block; }

.hero__subhead {
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.6;
  color: var(--dark-text-2);
  max-width: 480px;
  margin: 0 0 34px;
  text-wrap: pretty;
}

.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.hero__microcopy {
  font-size: 13px;
  color: var(--micro-dark);
  margin: 0;
  line-height: 1.5;
}

/* Hero photo + duotone treatment */
.hero__media {
  flex: 1 1 360px;
  min-width: min(100%, 280px);
  display: flex;
  justify-content: center;
}
.hero-photo {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 4 / 5;
}
.hero-photo__halo {
  position: absolute;
  inset: -8%;
  background: radial-gradient(circle at 50% 40%, rgba(15, 159, 224, 0.30), transparent 65%);
  animation: afGlow 5s ease-in-out infinite;
  pointer-events: none;
}
.hero-photo__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 22px;
}
.hero-photo__duotone {
  position: absolute;
  inset: 0;
  border-radius: 22px;
  pointer-events: none;
  mix-blend-mode: multiply;
  /* Lighter than before so a real face/physique stays recognisable */
  background: linear-gradient(150deg, rgba(14, 51, 80, 0.38), rgba(30, 155, 230, 0.18));
}
.hero-photo__scrim {
  position: absolute;
  inset: 0;
  border-radius: 22px;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  background: linear-gradient(0deg, rgba(11, 12, 15, 0.45), transparent 45%);
}
.hero-photo__caption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  pointer-events: none;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.6px;
  color: rgba(255, 255, 255, 0.78);
  text-transform: uppercase;
}

/* Credibility / value strip */
.proof {
  position: relative;
  border-top: 1px solid var(--dark-hair);
  background: rgba(255, 255, 255, 0.02);
}
.proof__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-items: center;
  justify-content: center;
}
.proof__item {
  margin: 0;
  font-size: 13.5px;
  color: var(--dark-text-2);
  line-height: 1.35;
}
.proof__item strong {
  color: var(--accent-text-dark);
  font-weight: 800;
}

/* ============================================================
   3 · THE FREE GUIDE — email capture (light)
   ============================================================ */
.guide {
  position: relative;
  padding: var(--section-pad) var(--gutter);
}
.guide__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(36px, 5vw, 64px);
  align-items: stretch;
}
.guide__copy {
  flex: 1 1 420px;
  min-width: min(100%, 300px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.guide__title {
  font-size: clamp(46px, 6vw, 80px);
  margin: 0 0 20px;
  color: var(--text);
}
.guide__lead {
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.6;
  color: var(--text-2);
  max-width: 470px;
  margin: 0 0 30px;
  text-wrap: pretty;
}

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--text);
  line-height: 1.4;
}
.checklist .check {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--accent-soft-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.guide__aside {
  flex: 1 1 380px;
  min-width: min(100%, 290px);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* Guide cover mockup — secondary to the form */
.guide-mock {
  display: flex;
  justify-content: center;
  order: 2;
}
.guide-mock__stack {
  position: relative;
  width: min(180px, 46vw);
  aspect-ratio: 320 / 420;
  transform-style: preserve-3d;
  transition: transform 220ms var(--ease-out);
}
.guide-mock__page {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: #E7E4DC;
  border: 1px solid rgba(20, 22, 27, 0.08);
}
.guide-mock__page:nth-child(1) {
  transform: translate(10px, 8px) rotate(3deg);
}
.guide-mock__page:nth-child(2) {
  transform: translate(5px, 4px) rotate(1.5deg);
  background: #EEEBE3;
}
.guide-mock__cover {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(16, 18, 29, 0.18);
  z-index: 1;
}

@media (hover: hover) and (pointer: fine) {
  .guide-mock__stack:hover {
    transform: rotate(-2deg) translateY(-4px);
  }
}

.guide__form-wrap {
  display: flex;
  order: 1; /* form stays more prominent than the mockup */
}
.form-panel {
  position: relative;
  width: 100%;
  border-radius: 24px;
  padding: clamp(28px, 4vw, 42px);
  background: var(--guide-panel);
  color: var(--dark-text);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(11, 23, 34, 0.32);
}
.form-panel__highlight {
  position: absolute;
  inset: 0;
  background: radial-gradient(100% 80% at 85% 0%, rgba(47, 176, 238, 0.28), transparent 60%);
  pointer-events: none;
}
.form-panel__body { position: relative; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(47, 176, 238, 0.16);
  margin-bottom: 22px;
}
.badge span {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: var(--accent-text-dark);
}

.form-panel__title {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 8px;
  letter-spacing: -0.3px;
}
.form-panel__sub {
  font-size: 14px;
  color: var(--dark-text-2);
  margin: 0 0 24px;
  line-height: 1.5;
}

.signup-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.signup-form input[type="email"] {
  height: 54px;
  border-radius: 13px;
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  background: #FFFFFF;
  color: var(--text);
  font-size: 16px;
  font-family: inherit;
  padding: 0 18px;
  outline: none;
  width: 100%;
}
.signup-form input[type="email"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.signup-form button {
  height: 54px;
  border-radius: 13px;
  font-size: 16px;
  color: var(--action-ink);
  background: var(--action);
  box-shadow: 0 6px 20px rgba(15, 159, 224, 0.40);
  width: 100%;
}
.signup-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(15, 159, 224, 0.55);
}

.form-error {
  font-size: 13px;
  color: #FFB4B4;
  margin: 4px 0 0;
  min-height: 0;
}

.form-micro {
  font-size: 12px;
  color: var(--micro-dark);
  margin: 16px 0 0;
  text-align: center;
}

.form-success {
  position: relative;
  text-align: center;
  padding: 18px 0;
}
.form-success__icon {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  margin: 0 auto 22px;
  background: rgba(47, 176, 238, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
}
.form-success__title {
  font-size: 46px;
  margin: 0 0 14px;
}
.form-success__body {
  font-size: 15px;
  color: var(--dark-text-2);
  margin: 0 auto;
  line-height: 1.55;
  max-width: 280px;
}
[hidden] { display: none !important; }

/* ============================================================
   4 · THE APPROACH (dark)
   ============================================================ */
.approach {
  background: var(--dark-bg);
  color: var(--dark-text);
  padding: var(--section-pad) var(--gutter);
}
.approach__intro {
  max-width: 640px;
  margin-bottom: clamp(44px, 5vw, 64px);
}
.approach__title {
  font-size: clamp(46px, 6vw, 80px);
  margin: 0 0 20px;
}
.approach__lead {
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.6;
  color: var(--dark-text-2);
  margin: 0;
  text-wrap: pretty;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 18px;
}
.pillar {
  background: var(--dark-surface);
  border: 1px solid var(--dark-hair);
  border-radius: 22px;
  padding: 30px;
  transition: transform var(--t-fast) ease, border-color var(--t-fast) ease;
}
@media (hover: hover) and (pointer: fine) {
  .pillar:hover {
    transform: translateY(-4px);
    border-color: rgba(70, 182, 238, 0.28);
  }
}
.pillar__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.pillar__num {
  font-family: var(--font-display);
  font-size: 34px;
  color: var(--accent-text-dark);
  letter-spacing: 1px;
}
.pillar__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pillar__title {
  font-size: 19px;
  font-weight: 800;
  margin: 0 0 10px;
  letter-spacing: -0.2px;
}
.pillar__body {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--dark-text-2);
  margin: 0;
  text-wrap: pretty;
}

/* ============================================================
   5 · FOUNDER (light)
   ============================================================ */
.founder {
  padding: var(--section-pad) var(--gutter);
}
.founder__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.founder__media {
  flex: 0 1 320px;
  min-width: min(100%, 240px);
}
.founder__photo {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 22px;
  border: 1px solid var(--hair);
  background: var(--surface);
}
.founder__copy {
  flex: 1 1 420px;
  min-width: min(100%, 300px);
}
.founder__title {
  font-size: clamp(42px, 5.5vw, 72px);
  margin: 0 0 20px;
  color: var(--text);
  max-width: 16ch;
}
.founder__lead {
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.65;
  color: var(--text-2);
  max-width: 520px;
  margin: 0 0 16px;
  text-wrap: pretty;
}
.founder__cred {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-2);
  margin: 0 0 28px;
  max-width: 480px;
}
.founder__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ============================================================
   6 · THE APP — product story (light)
   ============================================================ */
.app {
  padding: var(--section-pad) 0;
  border-top: 1px solid var(--hair);
}
.app__intro {
  margin-bottom: clamp(36px, 5vw, 56px);
}
.app__title {
  font-size: clamp(46px, 6vw, 80px);
  margin: 0 0 20px;
  color: var(--text);
}
.app__lead {
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.6;
  color: var(--text-2);
  max-width: 560px;
  margin: 0;
  text-wrap: pretty;
}

/* Horizontal snap rail — mobile/tablet browsing; user-controlled */
.screen-rail {
  margin: 0 0 clamp(48px, 6vw, 80px);
  padding: 0 var(--gutter);
}
.screen-rail__track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  padding: 8px 4px 18px;
  -webkit-overflow-scrolling: touch;
  outline: none;
}
.screen-rail__track:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.screen-rail__item {
  flex: 0 0 auto;
  width: min(220px, 62vw);
  margin: 0;
  scroll-snap-align: start;
}
.screen-rail__item figcaption {
  margin-top: 12px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-2);
}
.screen-rail__hint {
  margin: 0;
  font-size: 12px;
  color: var(--text-2);
  text-align: center;
}
@media (min-width: 900px) {
  .screen-rail { display: none; }
}

.chapters {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  flex-direction: column;
  gap: clamp(56px, 8vw, 96px);
}
.chapter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}
.chapter--flip { flex-direction: row-reverse; }
.chapter__copy {
  flex: 1 1 380px;
  min-width: min(100%, 280px);
}
.chapter__title {
  font-size: clamp(40px, 5vw, 64px);
  margin: 0 0 16px;
  color: var(--text);
}
.chapter__lead {
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.6;
  color: var(--text-2);
  max-width: 440px;
  margin: 0 0 22px;
  text-wrap: pretty;
}
.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
}
.feature-list li {
  font-size: 14.5px;
  font-weight: 650;
  color: var(--text);
  padding-left: 14px;
  position: relative;
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
}
.chapter__media {
  flex: 1 1 280px;
  min-width: min(100%, 240px);
  display: flex;
  justify-content: center;
}
@media (max-width: 899px) {
  .chapter__media { display: none; } /* rail covers screens on smaller viewports */
  .chapter--flip { flex-direction: row; }
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 0 20px;
  min-height: 56px;
  border-radius: 14px;
  text-decoration: none;
  background: var(--text);
  color: #FFFFFF;
  transition: transform var(--t-fast) ease;
}
.store-btn:hover { transform: translateY(-2px); }
.store-btn__label {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.store-btn__label small {
  font-size: 10px;
  font-weight: 500;
  opacity: 0.7;
}
.store-btn__label strong {
  font-size: 17px;
  font-weight: 700;
}
.store-note {
  font-size: 13px;
  color: var(--text-2);
}
.app__download {
  margin-top: clamp(48px, 6vw, 72px);
}

/* Phone mockup */
.device {
  position: relative;
  transition: transform 220ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .device:hover {
    transform: perspective(900px) rotateY(-2deg) translateY(-2px);
  }
}
.device__halo {
  position: absolute;
  inset: -14% -8%;
  background: radial-gradient(circle at 50% 35%, rgba(15, 159, 224, 0.20), transparent 62%);
  pointer-events: none;
}
.device__bezel {
  position: relative;
  width: 270px;
  max-width: 100%;
  padding: 11px;
  border-radius: 46px;
  background: linear-gradient(150deg, #2A2E38, #101218);
  box-shadow: 0 30px 70px rgba(16, 18, 29, 0.30), inset 0 0 0 1.5px rgba(255, 255, 255, 0.06);
}
.device--rail .device__bezel {
  width: 100%;
  border-radius: 36px;
  padding: 8px;
}
.device--rail .device__notch {
  width: 72px;
  height: 20px;
  top: 16px;
}
.device--rail .device__screen { border-radius: 28px; }
.device__notch {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 92px;
  height: 26px;
  background: var(--dark-bg);
  border-radius: 999px;
  z-index: 3;
}
.device__screen {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 19.2;
  border-radius: 36px;
  object-fit: cover;
  background: var(--bg);
}

/* ============================================================
   7 · CLUB (dark)
   ============================================================ */
.club {
  background: var(--dark-bg);
  color: var(--dark-text);
  padding: var(--section-pad) var(--gutter);
}
.club__inner {
  max-width: 720px;
}
.club__title {
  font-size: clamp(42px, 5.5vw, 72px);
  margin: 0 0 18px;
}
.club__lead {
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.6;
  color: var(--dark-text-2);
  margin: 0 0 12px;
  text-wrap: pretty;
}
.club__meta {
  font-size: 14px;
  color: var(--accent-text-dark);
  margin: 0;
  font-weight: 700;
}

/* ============================================================
   8 · FINAL CTA (dark)
   ============================================================ */
.final {
  background: var(--dark-bg);
  color: var(--dark-text);
  padding: var(--section-pad) var(--gutter);
  border-top: 1px solid var(--dark-hair);
  text-align: center;
}
.final__inner {
  max-width: 720px;
}
.final__title {
  font-size: clamp(48px, 7vw, 88px);
  margin: 0 0 18px;
}
.final__lead {
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.6;
  color: var(--dark-text-2);
  margin: 0 auto 28px;
  max-width: 480px;
  text-wrap: pretty;
}
.final__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 20px;
}
.final__note {
  font-size: 13px;
  color: var(--micro-dark);
  margin: 0 auto;
  max-width: 460px;
  line-height: 1.5;
}

/* ============================================================
   9 · FOOTER (dark)
   ============================================================ */
.footer {
  background: var(--dark-bg);
  color: var(--dark-text);
  padding: clamp(56px, 7vw, 84px) var(--gutter) 40px;
  border-top: 1px solid var(--dark-hair);
}
.footer__top {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-end;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--dark-hair);
}
.footer__tagline {
  font-size: clamp(40px, 6vw, 64px);
  line-height: 0.86;
  letter-spacing: 1px;
  margin: 0 0 4px;
}
.footer__sub {
  font-size: 14px;
  color: var(--micro-dark);
  margin: 0;
}
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}
.footer__bottom {
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
}
.footer__mini {
  display: flex;
  align-items: center;
  gap: 9px;
}
.footer__mini-tile {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: var(--action);
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer__mini-name {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: var(--dark-text-2);
}
.footer__copyright {
  font-size: 12.5px;
  color: var(--micro-dark);
  margin: 0;
}

/* ============================================================
   Motion system
   ============================================================ */
@keyframes afGlow {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.85; }
}

/* Hero entrance — opacity/transform only; settles ~900ms */
.js .hero [data-hero] {
  opacity: 0;
  transform: translateY(18px);
}
.js .hero [data-hero="photo"] {
  transform: scale(1.03);
  clip-path: inset(8% 8% 8% 8% round 22px);
}
.js .hero.is-hero-ready [data-hero] {
  opacity: 1;
  transform: none;
  clip-path: inset(0 0 0 0 round 22px);
  transition:
    opacity 700ms var(--ease-out),
    transform 900ms var(--ease-out),
    clip-path 900ms var(--ease-out);
}
.js .hero.is-hero-ready [data-hero="eyebrow"] { transition-delay: 0ms; }
.js .hero.is-hero-ready [data-hero="line"]:nth-of-type(1) { transition-delay: 70ms; }
.js .hero.is-hero-ready .hero__title [data-hero="line"]:nth-child(1) { transition-delay: 70ms; }
.js .hero.is-hero-ready .hero__title [data-hero="line"]:nth-child(2) { transition-delay: 140ms; }
.js .hero.is-hero-ready [data-hero="sub"] { transition-delay: 220ms; }
.js .hero.is-hero-ready [data-hero="cta"] { transition-delay: 320ms; }
.js .hero.is-hero-ready [data-hero="micro"] { transition-delay: 400ms; }
.js .hero.is-hero-ready [data-hero="photo"] { transition-delay: 120ms; }

/* Only hide reveal elements when JS is present to bring them back */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity var(--t-reveal) var(--ease-out), transform var(--t-reveal) var(--ease-out);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}
.pillars .pillar[data-reveal]:nth-child(2) { transition-delay: var(--stagger); }
.pillars .pillar[data-reveal]:nth-child(3) { transition-delay: calc(var(--stagger) * 2); }

/* ============================================================
   Responsive
   ============================================================ */

/* Hamburger earlier (~840px) so desktop links don't crush */
@media (max-width: 860px) {
  .nav__actions { gap: 10px; }
  .js .nav__toggle { display: inline-flex; }
  .nav__menu {
    position: absolute;
    top: calc(var(--nav-h) - 4px);
    right: max(12px, env(safe-area-inset-right, 0px));
    left: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    min-width: 200px;
    max-width: min(280px, calc(100vw - 24px));
    padding: 10px;
    background: rgba(11, 12, 15, 0.96);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    backdrop-filter: blur(16px) saturate(1.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.45);
    z-index: 60;
  }
  .js .nav__menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 200ms ease, transform 200ms ease, visibility 200ms ease;
  }
  .nav__menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }
  .nav__menu .navlink {
    padding: 12px 14px;
    min-height: 44px;
    display: flex;
    align-items: center;
    border-radius: 9px;
  }
  .nav__menu .navlink:hover { background: rgba(255, 255, 255, 0.06); }
  .nav__menu .navlink.is-active::after { display: none; }
  .nav__menu .navlink.is-active {
    color: var(--accent-text-dark);
    background: rgba(70, 182, 238, 0.08);
  }
}

/* Ultra-narrow: keep logo tile + Free Guide + menu; hide wordmark text
   (also avoids ellipsis truncation between ~360–400px) */
@media (max-width: 400px) {
  .wordmark__name { display: none; }
  .nav__inner {
    padding-left: 12px;
    padding-right: 12px;
    gap: 8px;
  }
  .nav__actions { gap: 8px; }
  .nav__cta {
    padding: 11px 12px;
    font-size: 13px;
  }
  .nav__cta svg { display: none; }
  .hero__copy { min-width: 0; }
  .hero__title { font-size: clamp(44px, 14vw, 58px); }
  :root { --gutter: 16px; }
}

@media (max-width: 640px) {
  .feature-list { grid-template-columns: 1fr; }
  .guide-mock { display: none; } /* keep form dominant on small phones */
}

/* ============================================================
   Reduced motion — render everything visible and final
   ============================================================ */
@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;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .hero [data-hero] {
    opacity: 1;
    transform: none;
    clip-path: none;
  }
  .hero-photo__halo { animation: none; }
  .device:hover,
  .pillar:hover,
  .guide-mock__stack:hover {
    transform: none;
  }
}
