/* ============================================================
   BulkBook — Landing page styles
   MOBILE-FIRST: base rules target ~390px. Larger viewports are
   progressive enhancement via min-width media queries.
   Tokens (colors / type / spacing) come from tokens/*.css.
   ============================================================ */

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

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bb-black);
  color: var(--bb-text-body);
  font-family: var(--bb-font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(245, 200, 0, 0.28); }

img { max-width: 100%; display: block; }

a { color: inherit; }

.gold { color: var(--bb-gold); }
.ink { color: var(--bb-text-body); }

/* ---- Layout primitives ---- */
.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.section {
  border-top: 1px solid var(--bb-border);
  padding-top: 60px;
  padding-bottom: 60px;
}
#como { scroll-margin-top: 72px; }
#beta-section { scroll-margin-top: 72px; }

/* ---- Shared type ---- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: var(--bb-weight-bold);
  font-size: var(--bb-text-xs);
  line-height: 1;
  letter-spacing: var(--bb-tracking-label);
  text-transform: uppercase;
}
.eyebrow--muted  { color: var(--bb-text-muted); }
.eyebrow--gold   { color: var(--bb-gold); }
.eyebrow--effort { color: var(--bb-effort); }

.h2 {
  margin: 16px 0 0;
  max-width: 760px;
  font-weight: var(--bb-weight-extrabold);
  font-size: clamp(26px, 7vw, 42px);
  line-height: 1.12;
  letter-spacing: var(--bb-tracking-tight);
  color: var(--bb-text-strong);
}
.h2--tight { max-width: 640px; }
.h2--center { margin-left: auto; margin-right: auto; text-align: center; }

.lead {
  margin: 14px 0 0;
  max-width: 560px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--bb-text-muted);
}
.lead--tight { margin-top: 0; }
.lead--center { margin-left: auto; margin-right: auto; text-align: center; }

.fineprint {
  display: block;
  font-size: 13px;
  line-height: 1.4;
  color: var(--bb-text-faint);
}

.link {
  color: var(--bb-text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 13px;
  transition: color var(--bb-dur-fast) var(--bb-ease);
}
.link:hover { color: var(--bb-text-body); }
.link--faint { color: var(--bb-text-faint); line-height: 1.4; }
.link--plain { text-decoration: none; font-size: 14px; }

/* ---- Dots / legends ---- */
.dot { width: 9px; height: 9px; border-radius: 999px; flex-shrink: 0; }
.dot--gold   { background: var(--bb-gold); }
.dot--orange { background: var(--bb-orange); }
.dot--effort { background: var(--bb-effort); }
.dot--glow   { box-shadow: 0 0 8px currentColor; }
.eyebrow--effort .dot--effort { width: 7px; height: 7px; box-shadow: 0 0 10px var(--bb-effort); }

.legend {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: var(--bb-weight-bold);
  font-size: 13px;
  line-height: 1;
}
.legend--gold   { color: var(--bb-gold); }
.legend--orange { color: var(--bb-orange); }
.legend--effort { color: var(--bb-effort); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--bb-radius-md);
  font-weight: var(--bb-weight-bold);
  font-size: var(--bb-text-base);
  letter-spacing: var(--bb-tracking-tight);
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform var(--bb-dur-fast) var(--bb-ease),
              opacity var(--bb-dur-fast) var(--bb-ease),
              filter var(--bb-dur-fast) var(--bb-ease);
}
.btn--primary {
  background: var(--bb-gold);
  color: var(--bb-on-gold);
  border-color: var(--bb-gold);
}
.btn--primary:hover { filter: brightness(1.06); }
.btn:active { transform: scale(0.98); opacity: 0.82; }
.btn--lg { height: 52px; padding: 0 28px; border-radius: var(--bb-radius-pill); font-size: 16px; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 7, 8, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--bb-border);
}
.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 13px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { border-radius: 9px; }
.brand-word {
  font-weight: var(--bb-weight-extrabold);
  font-size: 19px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--bb-text-strong);
}
.nav { display: flex; align-items: center; gap: 16px; }
.navlink { display: none; }
.nav-cta {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--bb-gold);
  color: var(--bb-on-gold);
  font-weight: var(--bb-weight-bold);
  font-size: 14px;
  text-decoration: none;
  letter-spacing: -0.01em;
}

/* ============================================================
   HERO — instrument as protagonist (no floating phone mockup)
   ============================================================ */
.hero {
  position: relative;
  border-top: none;
}
/* Sober "instrument" backdrop: faint measurement rules fading downward + a
   restrained glow anchored to the instrument side. NOT a centered gradient blob. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(620px 420px at 88% 0%, rgba(245, 200, 0, 0.06), transparent 60%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 64px);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 58%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 58%, transparent 100%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-top: 44px;
  padding-bottom: 64px;
}
.hero-copy { display: flex; flex-direction: column; gap: 22px; }
.hero-title {
  margin: 0;
  font-weight: var(--bb-weight-extrabold);
  font-size: clamp(42px, 13vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--bb-text-strong);
}
/* Reveal por líneas (JS envuelve cada línea). Sin JS quedan visibles normales. */
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.02em; }
.hero-title .line-in { display: block; }
.hero-lead {
  margin: 0;
  max-width: 460px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--bb-text-muted);
}

/* ---- Waitlist ---- */
.waitlist { display: flex; flex-direction: column; gap: 12px; max-width: 480px; scroll-margin-top: 90px; }
.waitlist--center { margin: 28px auto 0; }
.waitlist-row { display: flex; flex-direction: column; gap: 10px; }
.waitlist .field { width: 100%; }
.waitlist .btn { width: 100%; min-height: 52px; }
.waitlist-ok {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  background: color-mix(in srgb, var(--bb-delta-up) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--bb-delta-up) 34%, transparent);
  border-radius: 12px;
  font-size: 15px;
  line-height: 1.4;
  color: var(--bb-text-body);
}
.waitlist-ok svg { flex-shrink: 0; }
.waitlist-ok--center { justify-content: center; }
.waitlist-error {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  color: var(--bb-danger);
}
.waitlist-error--center { text-align: center; }

/* ---- Field (Input) ---- */
.field {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 52px;
  padding: 0 14px;
  background: var(--bb-surface-3);
  border: 1px solid var(--bb-border-strong);
  border-radius: var(--bb-radius-sm);
  transition: border-color var(--bb-dur-fast) var(--bb-ease), box-shadow var(--bb-dur-fast) var(--bb-ease);
}
.field:focus-within {
  border-color: var(--bb-gold);
  box-shadow: 0 0 0 3px var(--bb-gold-12);
}
.field-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: var(--bb-text-body);
  font-family: var(--bb-font);
  font-size: var(--bb-text-base);
}
.field-input::placeholder { color: var(--bb-text-faint); }
/* Neutralize the browser autofill background (Chrome paints a light fill over
   the dark field). Paint the field surface back in via an inset shadow and
   force the text color; the long transition stops the white flash on fill. */
.field-input:-webkit-autofill,
.field-input:-webkit-autofill:hover,
.field-input:-webkit-autofill:focus,
.field-input:-webkit-autofill:active {
  -webkit-text-fill-color: var(--bb-text-body);
  -webkit-box-shadow: 0 0 0 1000px var(--bb-surface-3) inset;
  box-shadow: 0 0 0 1000px var(--bb-surface-3) inset;
  caret-color: var(--bb-text-body);
  transition: background-color 9999s ease-in-out 0s;
}

/* ---- Instrument card (the hero protagonist) ---- */
.hero-instrument { width: 100%; }
.instrument-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px 16px;
  background: var(--bb-surface);
  border: 1px solid var(--bb-border-strong);
  border-radius: var(--bb-radius-xl);
  box-shadow: var(--bb-glow-gold);
}
.instrument-head { display: flex; align-items: center; justify-content: space-between; }
.instrument-set { font-weight: var(--bb-weight-bold); font-size: 16px; color: var(--bb-text-strong); }
.instrument-effort { font-weight: var(--bb-weight-bold); font-size: 13px; color: var(--bb-delta-up); }
.instrument-hint { margin: -4px 0 0; font-size: 13px; line-height: 1.5; color: var(--bb-text-faint); }
.instrument-divider { height: 1px; background: var(--bb-border); }
.instrument-readout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}
.instrument-verdict { display: flex; flex-direction: column; gap: 6px; }
.instrument-verdict-title {
  font-weight: var(--bb-weight-extrabold);
  font-size: 19px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--bb-text-strong);
}
.instrument-verdict-caption { font-size: 13px; line-height: 1.5; color: var(--bb-text-faint); }

/* ============================================================
   RPE SELECTOR (component)
   ============================================================ */
.rpe-selector { display: flex; gap: 6px; }
.rpe-pill {
  flex: 1;
  height: 46px;
  min-width: 38px;
  border-radius: var(--bb-radius-sm);
  border: 1px solid var(--bb-border);
  background: var(--bb-surface-3);
  color: var(--bb-text-muted);
  font-family: var(--bb-font);
  font-weight: var(--bb-weight-bold);
  font-size: var(--bb-text-base);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background var(--bb-dur-fast) var(--bb-ease),
              border-color var(--bb-dur-fast) var(--bb-ease),
              color var(--bb-dur-fast) var(--bb-ease);
}
.rpe-pill[aria-checked="true"] {
  border-color: var(--rpe-c);
  background: color-mix(in srgb, var(--rpe-c) 16%, transparent);
  color: var(--rpe-c);
}

/* ============================================================
   BULKSCORE DIAL (component)
   ============================================================ */
.dial { display: inline-flex; flex-direction: column; align-items: center; gap: 12px; }
.dial-ring { position: relative; }
.dial-ring svg { transform: rotate(-90deg); display: block; }
.dial-track { stroke: var(--bb-surface-3); }
.dial-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.dial-num {
  font-weight: var(--bb-weight-extrabold);
  line-height: 1;
  letter-spacing: var(--bb-tracking-tight);
  font-variant-numeric: tabular-nums;
}
.dial-tag {
  font-weight: var(--bb-weight-bold);
  line-height: 1;
  letter-spacing: var(--bb-tracking-label);
  text-transform: uppercase;
  color: var(--bb-text-faint);
}
.dial-foot { display: flex; align-items: baseline; gap: 8px; }
.dial-label { font-weight: var(--bb-weight-bold); font-size: var(--bb-text-lg); line-height: 1; }
.dial-delta { font-weight: var(--bb-weight-bold); font-size: var(--bb-text-sm); line-height: 1; }

/* ============================================================
   CARDS (why / system / science / roadmap)
   ============================================================ */
.cards-3, .cards-2 {
  margin-top: 40px;
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
.card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  background: var(--bb-surface);
  border: 1px solid var(--bb-border);
  border-radius: var(--bb-radius-lg);
}
.card--top-gold   { border-top: 2px solid var(--bb-gold); }
.card--top-orange { border-top: 2px solid var(--bb-orange); }
.card--top-green  { border-top: 2px solid var(--bb-delta-up); }
.card--top-effort { border-top: 2px solid var(--bb-effort); }
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
}
.card-icon--gold   { background: color-mix(in srgb, var(--bb-gold) 16%, transparent); }
.card-icon--orange { background: color-mix(in srgb, var(--bb-orange) 16%, transparent); }
.card-icon--green  { background: color-mix(in srgb, var(--bb-delta-up) 16%, transparent); }
.card-title {
  margin: 0;
  font-weight: var(--bb-weight-bold);
  font-size: 19px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--bb-text-strong);
}
.card-body { margin: 0; font-size: 15px; line-height: 1.55; color: var(--bb-text-muted); }
.card-body--mt { margin-top: -2px; }
.claim {
  margin: 0;
  font-weight: var(--bb-weight-bold);
  font-size: 18px;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--bb-text-strong);
}

/* ============================================================
   WHY — editorial numbered rows (replaces the 3-card grid)
   ============================================================ */
.why-list { list-style: none; margin: 36px 0 0; padding: 0; }
.why-row {
  display: flex;
  gap: 18px;
  align-items: baseline;
  padding: 24px 0;
  border-top: 1px solid var(--bb-border);
}
.why-row:first-child { border-top: none; }
/* Marcador de color semántico (sustituye al número decorativo) */
.why-mark {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  margin-top: 0.5em;
  border-radius: 999px;
  background: var(--bb-text-faint);
}
.why-row--gold .why-mark { background: var(--bb-gold); box-shadow: 0 0 12px -2px var(--bb-gold); }
.why-row--orange .why-mark { background: var(--bb-orange); box-shadow: 0 0 12px -2px var(--bb-orange); }
.why-row--green .why-mark { background: var(--bb-delta-up); box-shadow: 0 0 12px -2px var(--bb-delta-up); }
.why-text { display: flex; flex-direction: column; gap: 8px; }
.why-q {
  margin: 0;
  font-weight: var(--bb-weight-extrabold);
  font-size: 21px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--bb-text-strong);
}
.why-a { margin: 0; max-width: 560px; font-size: 16px; line-height: 1.6; color: var(--bb-text-muted); }

/* ============================================================
   SIGNALS — single legend strip (3 señales), not 3 clone cards
   ============================================================ */
.signals {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  background: var(--bb-surface);
  border: 1px solid var(--bb-border);
  border-radius: var(--bb-radius-xl);
  overflow: hidden;
}
.signal { padding: 24px; display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--bb-border); }
.signal:first-child { border-top: none; }
.signal-desc { margin: 0; font-size: 15px; line-height: 1.55; color: var(--bb-text-muted); }

/* ============================================================
   REFS — numbered citation index (replaces science cards)
   ============================================================ */
.refs { list-style: none; margin: 32px 0 0; padding: 0; max-width: 820px; }
.ref {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 0;
  border-top: 1px solid var(--bb-border);
}
.ref:first-child { border-top: none; }
.ref-mark {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-top: 0.55em;
  border-radius: 999px;
  background: var(--bb-gold);
  box-shadow: 0 0 10px -2px var(--bb-gold);
}
.ref-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ref-claim {
  margin: 0;
  font-weight: var(--bb-weight-bold);
  font-size: 17px;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--bb-text-strong);
}
.ref-src {
  align-self: start;
  font-size: 13px;
  color: var(--bb-text-faint);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--bb-dur-fast) var(--bb-ease);
}
.ref-src:hover { color: var(--bb-text-muted); }

/* ============================================================
   HOW IT WORKS — scrollytelling
   Base (mobile / no-JS / reduced-motion): 3 escenas apiladas.
   .how-pinned (lo añade JS solo en desktop sin reduced-motion):
   escenas absolutas con cross-fade dentro de un panel pineado.
   ============================================================ */
.how-intro { padding-bottom: 0; }
.how-pin { position: relative; margin-top: 40px; }

/* Fondo "logbook" en streaming — oculto salvo en modo pineado (desktop). */
.how-bg { display: none; }

/* MÓVIL (base) = timeline vertical honesto.
   Una sola línea de recorrido: base tenue + relleno dorado que se DIBUJA con el
   scroll (scrub). Los puntos se encienden al pasar. */
.how-track { position: relative; display: flex; flex-direction: column; }
.how-line { position: absolute; left: 18px; top: 8px; bottom: 8px; width: 2px; border-radius: 999px; background: var(--bb-border-strong); overflow: hidden; pointer-events: none; }
.how-line-fill { position: absolute; inset: 0; background: var(--bb-gold); transform: scaleY(0); transform-origin: top center; box-shadow: 0 0 10px -1px var(--bb-gold); }
.how-scene { position: relative; }
.how-scene-grid {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 26px 0 26px 30px;
}
.scene-dot {
  position: absolute;
  left: -8px;
  top: 28px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--bb-black);
  border: 2px solid var(--bb-border-strong);
  transition: background var(--bb-dur) var(--bb-ease), border-color var(--bb-dur) var(--bb-ease), box-shadow var(--bb-dur) var(--bb-ease);
}
.how-scene.is-active .scene-dot { background: var(--bb-gold); border-color: var(--bb-gold); box-shadow: 0 0 12px -2px var(--bb-gold); }
.scene-text { display: flex; flex-direction: column; gap: 12px; }
.scene-visual { display: flex; justify-content: center; }
.scene-visual--center { flex-direction: column; align-items: center; gap: 16px; }

.step-num { font-weight: var(--bb-weight-extrabold); font-size: 13px; line-height: 1; letter-spacing: 0.08em; color: var(--bb-gold); }
.step-title {
  margin: 0;
  font-weight: var(--bb-weight-extrabold);
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--bb-text-strong);
}
.step-body { margin: 0; max-width: 400px; font-size: 16px; line-height: 1.6; color: var(--bb-text-muted); }
.step-caption { margin: 0; max-width: 320px; text-align: center; font-size: 13px; line-height: 1.5; color: var(--bb-text-faint); }

/* Columna desplazable + filas del fondo "logbook" (generadas por JS, desktop pin). */
.how-bg-col {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  padding: 0 5vw;
}
.how-bg .bgrow {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  font: var(--bb-weight-bold) 13px/1 var(--bb-font);
  white-space: nowrap;
  color: var(--bb-text-muted);
  border-bottom: 1px solid var(--bb-border);
  padding: 10px 0;
}
.how-bg .bgrow b { color: var(--bb-gold); }

/* Barra de progreso GLOBAL (desktop pineado): contador 0X/03 + fill continuo.
   Oculta por defecto; se muestra solo cuando .how-pinned está activo. */
.how-progress { display: none; align-items: center; gap: 14px; }
.how-step-label { font-weight: var(--bb-weight-bold); font-size: 12px; line-height: 1; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bb-gold); white-space: nowrap; }
.how-bar { position: relative; width: 200px; height: 3px; border-radius: 999px; background: var(--bb-border-strong); overflow: hidden; }
.how-bar-fill { position: absolute; inset: 0; background: var(--bb-gold); transform: scaleX(0); transform-origin: left center; }

/* Píldoras RPE estáticas (escena 1, presentacionales) */
.rpe-selector--static .rpe-pill { display: flex; align-items: center; justify-content: center; user-select: none; }

.rpe-panel {
  width: 100%;
  max-width: 400px;
  padding: 16px 14px;
  background: var(--bb-black);
  border: 1px solid var(--bb-border);
  border-radius: var(--bb-radius-lg);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.rpe-panel-head { display: flex; align-items: center; justify-content: space-between; }
.rpe-panel-set { font-weight: var(--bb-weight-bold); font-size: 16px; color: var(--bb-text-strong); }
.rpe-panel-effort { font-weight: var(--bb-weight-bold); font-size: 13px; color: var(--bb-delta-up); }
.rpe-panel-hint { font-size: 13px; line-height: 1.5; color: var(--bb-text-faint); }
.note-mount { width: 100%; max-width: 470px; }

/* ============================================================
   BULKNOTE CARD (component)
   ============================================================ */
.note {
  background: var(--bb-surface);
  border: 1px solid var(--bb-border);
  border-radius: var(--bb-radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.note-brand { display: flex; align-items: center; gap: 9px; }
.note-brand-label {
  font-weight: var(--bb-weight-bold);
  font-size: var(--bb-text-xs);
  line-height: 1;
  letter-spacing: var(--bb-tracking-label);
  text-transform: uppercase;
  color: var(--bb-gold);
}
.note-head { display: flex; flex-direction: column; gap: 6px; }
.note-title {
  margin: 0;
  font-weight: var(--bb-weight-extrabold);
  font-size: var(--bb-text-h3);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--bb-text-strong);
}
.note-body { margin: 0; font-size: var(--bb-text-base); line-height: 1.5; color: var(--bb-text-muted); }
.note-hls { display: flex; flex-direction: column; gap: 1px; border-top: 1px solid var(--bb-border); padding-top: 12px; }
.note-hl { display: flex; gap: 12px; padding: 10px 0; align-items: flex-start; }
.note-hl-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: var(--bb-radius-sm);
}
.note-hl-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.note-hl-name { font-weight: var(--bb-weight-bold); font-size: var(--bb-text-sm); line-height: 1; }
.note-hl-msg { font-size: var(--bb-text-sm); line-height: 1.45; color: var(--bb-text-body); }
.note-hl-msg strong { color: var(--bb-gold); font-weight: var(--bb-weight-bold); }

/* ============================================================
   SPLIT sections (text + product screenshot)
   ============================================================ */
.split { display: flex; flex-direction: column; gap: 32px; align-items: center; }
.split-text { display: flex; flex-direction: column; gap: 18px; }
.split-media { display: flex; justify-content: center; }

.phone-frame {
  padding: 7px;
  background: #0c0c0e;
  border: 1px solid var(--bb-border-strong);
  border-radius: 40px;
  box-shadow: 0 30px 80px -28px rgba(0, 0, 0, 0.9);
}
.phone-img { width: 280px; max-width: 78vw; border-radius: 34px; }
.phone-frame--sm { border-radius: 36px; }
.phone-frame--sm .phone-img { width: 240px; max-width: 70vw; border-radius: 30px; }

.callout {
  display: flex;
  gap: 14px;
  padding: 20px;
  background: var(--bb-gold-12);
  border: 1px solid color-mix(in srgb, var(--bb-gold) 28%, transparent);
  border-radius: 14px;
}
.callout-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 10px;
  background: color-mix(in srgb, var(--bb-gold) 18%, transparent);
}
.callout-text { display: flex; flex-direction: column; gap: 8px; }
.callout-lead { margin: 0; font-weight: var(--bb-weight-bold); font-size: 16px; line-height: 1.5; color: var(--bb-text-strong); }

/* ---- Combined chart (SVG recreado, se dibuja con el scroll) ---- */
.chart-wrap { margin-top: 40px; display: flex; justify-content: center; }
.chartcard {
  width: 100%;
  max-width: 560px;
  padding: 22px;
  background: var(--bb-surface-2);
  border: 1px solid var(--bb-border);
  border-radius: var(--bb-radius-xl);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.cc-title { font-weight: var(--bb-weight-bold); font-size: 17px; line-height: 1.25; letter-spacing: -0.01em; color: var(--bb-text-strong); }
.cc-sub { margin-top: 4px; font-size: 13px; color: var(--bb-text-muted); }
.cc-metrics { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex-shrink: 0; font-weight: var(--bb-weight-bold); font-size: 15px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.cc-tabs { display: flex; gap: 4px; padding: 4px; background: var(--bb-black); border: 1px solid var(--bb-border); border-radius: var(--bb-radius-md); }
.cc-tab { flex: 1; text-align: center; padding: 8px 4px; border-radius: var(--bb-radius-sm); font-weight: var(--bb-weight-bold); font-size: 13px; color: var(--bb-text-muted); }
.cc-tab.is-active { background: var(--bb-surface-3); color: var(--bb-text-strong); }
.cc-plot { width: 100%; }
.cc-plot svg { display: block; width: 100%; height: auto; overflow: visible; }
.cc-axis { display: flex; justify-content: space-between; font-size: 12px; color: var(--bb-text-faint); }
.cc-legend { display: flex; gap: 18px; justify-content: center; font-size: 13px; color: var(--bb-text-muted); }
.cc-legend span { display: inline-flex; align-items: center; gap: 7px; }
.cc-legend i { width: 8px; height: 8px; border-radius: 999px; }

/* ============================================================
   BULKNOTE flow (calendar → score+note)
   ============================================================ */
.note-flow { margin-top: 40px; display: flex; flex-direction: column; gap: 18px; align-items: center; }
.note-flow-step { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.note-flow-cap {
  font-weight: var(--bb-weight-bold);
  font-size: var(--bb-text-xs);
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bb-text-faint);
}
.note-flow-arrow { display: flex; align-items: center; color: var(--bb-gold); transform: rotate(90deg); }

.voice {
  margin: 40px 0 0;
  max-width: 680px;
  padding: 24px;
  background: var(--bb-surface);
  border: 1px solid var(--bb-border);
  border-left: 3px solid var(--bb-gold);
  border-radius: 14px;
}
.voice .eyebrow { color: var(--bb-gold); }
.voice-title { margin: 16px 0 0; font-weight: var(--bb-weight-extrabold); font-size: 22px; line-height: 1.3; letter-spacing: -0.01em; color: var(--bb-text-strong); }
.voice-body { margin: 10px 0 0; font-size: 17px; line-height: 1.6; color: var(--bb-text-muted); }

/* ============================================================
   PLANS
   ============================================================ */
.plans { margin-top: 40px; display: grid; gap: 20px; grid-template-columns: 1fr; align-items: start; }
.plan {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 28px 24px;
  background: var(--bb-surface);
  border: 1px solid var(--bb-border);
  border-radius: var(--bb-radius-xl);
}
.plan--premium { border-color: color-mix(in srgb, var(--bb-gold) 30%, transparent); box-shadow: var(--bb-glow-gold); }
.plan-head { display: flex; flex-direction: column; gap: 6px; }
.plan-head--row { flex-direction: row; align-items: flex-start; justify-content: space-between; gap: 12px; }
.plan-name { display: block; font-weight: var(--bb-weight-extrabold); font-size: 20px; line-height: 1; letter-spacing: -0.01em; color: var(--bb-text-strong); }
.plan-name--gold { color: var(--bb-gold); }
.plan-sub { display: block; margin-top: 6px; font-size: 14px; line-height: 1.4; color: var(--bb-text-muted); }
.plan-divider { height: 1px; background: var(--bb-border); }
.plan-feats { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.plan-feats li { display: flex; align-items: center; gap: 11px; font-size: 15px; line-height: 1.3; color: var(--bb-text-body); }
.feat-check { flex-shrink: 0; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 22px;
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: var(--bb-weight-bold);
  font-size: var(--bb-text-xs);
  line-height: 1;
  white-space: nowrap;
}
.badge--gold {
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bb-gold);
  background: color-mix(in srgb, var(--bb-gold) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--bb-gold) 32%, transparent);
}
.badge--adaptation {
  color: var(--bb-effort);
  background: color-mix(in srgb, var(--bb-effort) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--bb-effort) 26%, transparent);
}
.badge--green {
  color: var(--bb-delta-up);
  background: color-mix(in srgb, var(--bb-delta-up) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--bb-delta-up) 26%, transparent);
}

/* ---- Roadmap ---- */
.roadmap-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.roadmap-title { margin: 0; font-weight: var(--bb-weight-bold); font-size: 18px; line-height: 1.2; letter-spacing: -0.01em; color: var(--bb-text-strong); }

/* ============================================================
   FOUNDER
   ============================================================ */
.founder { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 22px; }
.founder-body { display: flex; flex-direction: column; gap: 18px; font-size: 17px; line-height: 1.7; color: var(--bb-text-muted); }
.founder-body p { margin: 0; }
.founder-sign { display: flex; align-items: center; gap: 14px; margin-top: 4px; }
.founder-monogram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--bb-gold) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--bb-gold) 30%, transparent);
  font-weight: var(--bb-weight-extrabold);
  font-size: 19px;
  color: var(--bb-gold);
}
.founder-name { display: block; font-weight: var(--bb-weight-bold); font-size: 15px; color: var(--bb-text-strong); }
.founder-role { display: block; margin-top: 4px; font-size: 13px; color: var(--bb-text-faint); }

/* ============================================================
   BETA CTA
   ============================================================ */
.beta-card {
  position: relative;
  padding: 40px 22px;
  text-align: center;
  background: var(--bb-surface);
  border: 1px solid color-mix(in srgb, var(--bb-gold) 24%, transparent);
  border-radius: 24px;
  box-shadow: var(--bb-glow-gold);
}
.beta-card .eyebrow { justify-content: center; }
.beta-title {
  margin: 16px auto 0;
  max-width: 680px;
  font-weight: var(--bb-weight-extrabold);
  font-size: clamp(28px, 8vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--bb-text-strong);
}

/* ============================================================
   FAQ
   ============================================================ */
.faq { margin-top: 36px; max-width: 780px; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  padding: 20px 22px;
  background: var(--bb-surface);
  border: 1px solid var(--bb-border);
  border-radius: 14px;
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  list-style: none;
  cursor: pointer;
  font-weight: var(--bb-weight-bold);
  font-size: 17px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--bb-text-strong);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p { margin: 16px 0 0; font-size: 15px; line-height: 1.6; color: var(--bb-text-muted); }
.chev { display: inline-flex; flex-shrink: 0; color: var(--bb-gold); transition: transform var(--bb-dur) var(--bb-ease); }
.faq-item[open] .chev { transform: rotate(180deg); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { border-top: 1px solid var(--bb-border); }
.footer-inner { padding-top: 56px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 40px; }
.footer-cta { display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.footer-divider { height: 1px; background: var(--bb-border); }
.footer-meta { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.brand--sm .brand-word { font-size: 17px; }

/* ============================================================
   SCROLL REVEAL — initial hidden state (JS removes via GSAP).
   If JS/GSAP never runs or reduced-motion is on, content stays visible.
   ============================================================ */
.js-anim [data-reveal] { opacity: 0; transform: translateY(18px); }

/* ============================================================
   RESPONSIVE — progressive enhancement from the mobile base
   ============================================================ */
@media (min-width: 600px) {
  .waitlist-row { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .waitlist .field { flex: 1; min-width: 220px; }
  .waitlist .btn { width: auto; flex: 0 0 auto; }
  .cards-2 { grid-template-columns: repeat(2, 1fr); }
  .note-flow { flex-direction: row; gap: 28px; }
  .note-flow-arrow { transform: none; }
}

@media (min-width: 760px) {
  .wrap { padding-left: 32px; padding-right: 32px; }
  .header-inner { padding: 15px 32px; gap: 24px; }
  .navlink {
    display: inline-flex;
    font-weight: var(--bb-weight-regular);
    font-size: 14px;
    color: var(--bb-text-muted);
    text-decoration: none;
  }
  .navlink:hover { color: var(--bb-text-body); }
  .nav { gap: 28px; }

  .section { padding-top: 88px; padding-bottom: 88px; }

  .hero-grid {
    flex-direction: row;
    align-items: center;
    gap: 48px;
    padding-top: 80px;
    padding-bottom: 84px;
  }
  .hero-copy { flex: 1 1 460px; min-width: 0; }
  .hero-instrument { flex: 0 1 420px; }
  .instrument-card { padding: 24px 22px; }
  .instrument-readout { flex-direction: row; justify-content: space-between; text-align: left; gap: 22px; }
  .instrument-verdict { text-align: left; }

  .cards-3 { grid-template-columns: repeat(3, 1fr); }

  /* WHY: más aire en escritorio */
  .why-row { gap: 24px; padding: 30px 0; }
  .why-mark { width: 14px; height: 14px; margin-top: 0.55em; }
  .why-q { font-size: 24px; }
  .why-a { font-size: 17px; }

  /* SIGNALS: una fila con divisores verticales */
  .signals { flex-direction: row; }
  .signal { flex: 1; border-top: none; border-left: 1px solid var(--bb-border); }
  .signal:first-child { border-left: none; }

  /* REFS: claim algo mayor */
  .ref-claim { font-size: 18px; }

  /* Escenas: 2 columnas (texto / visual) en pantallas anchas; sin timeline */
  .how-scene-grid { flex-direction: row; gap: 56px; align-items: center; padding: 36px 0; }
  .scene-dot { display: none; }
  .how-line { display: none; }
  .scene-text { flex: 1 1 340px; }
  .scene-visual { flex: 1 1 360px; }

  /* ---- Modo scrollytelling pineado (clase añadida por JS en desktop) ---- */
  .how.how-pinned { padding-top: 0; padding-bottom: 0; }
  .how-pinned .how-pin {
    margin-top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }
  .how-pinned .how-track { position: relative; z-index: 1; width: 100%; min-height: 460px; }
  .how-pinned .how-scene {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    background: transparent;
    border: none;
    border-radius: 0;
  }
  .how-pinned .how-scene-grid { width: 100%; padding: 0; border-left: none; }
  .how-pinned .how-progress { position: relative; z-index: 1; display: flex; margin-top: 44px; }

  /* Fondo "logbook": lista densa de registros que fluye hacia arriba con el
     scroll mientras la vista queda fija. Visible a los lados (nombres a la
     izquierda, pesos/score a la derecha), centro limpio para el contenido. */
  .how-pinned .how-bg {
    display: block;
    position: absolute;
    inset: 0;
    overflow: hidden;
    opacity: 0.32;
    pointer-events: none;
    z-index: 0;
    -webkit-mask-image: radial-gradient(ellipse 78% 92% at 50% 50%, transparent 40%, #000 74%);
    mask-image: radial-gradient(ellipse 78% 92% at 50% 50%, transparent 40%, #000 74%);
  }

  .split { flex-direction: row; gap: 56px; }
  .split-media { flex: 1 1 300px; }
  .split-text { flex: 1 1 440px; }
  .phone-img { width: 300px; }

  .plans { grid-template-columns: repeat(2, 1fr); }

  .beta-card { padding: 56px 40px; }
}

@media (min-width: 980px) {
  .split--media-right { flex-direction: row-reverse; }
}

/* ============================================================
   REDUCED MOTION — kill all non-essential animation
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js-anim [data-reveal] { opacity: 1 !important; transform: none !important; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
