/* Public landing. The dark panels (hero, story stage, lab screen, privacy, closing) stay navy in both themes,
   like the heroes inside the app; everything between them follows the theme tokens of styles.css. */

.landing-page {
  --lp-gutter: clamp(16px, 5vw, 64px);
  --lp-w: min(1160px, 100% - 2 * var(--lp-gutter));
  --lp-ink: #f2f1ec;
  --lp-soft: rgba(242, 241, 236, 0.66);
  --lp-faint: rgba(242, 241, 236, 0.42);
  --lp-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --lp-mint: #7fe0bd;
  --lp-gold: #f2b94b;
  /* The four bowls of the logo, from the top one (Para el mes) to the base (Jubilación), for dark surfaces. */
  --b0: #8cc8ff;
  --b1: #4e9bff;
  --b2: #2f6bf5;
  --b3: #3b40c9;
  --lp-blue: #2456d6;               /* the brand's blue on light surfaces */
}
html[data-theme="dark"] .landing-page { --lp-blue: #8cc8ff; }
html:has(.landing-page) { scroll-behavior: smooth; scroll-padding-top: 72px; }

.lp-dark {
  position: relative;
  isolation: isolate;
  color: var(--lp-ink);
  background:
    radial-gradient(circle at 88% 0%, rgba(78, 155, 255, 0.22), transparent 45%),
    radial-gradient(circle at 0% 100%, rgba(59, 64, 201, 0.32), transparent 50%),
    var(--navy);
}
.lp-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  border-radius: inherit;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 80%);
  pointer-events: none;
}

/* ----- nav: clear over the hero, smoked glass once the page scrolls ----- */

.lp-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  padding: 12px 0;
  color: var(--lp-ink);
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease, padding 0.35s ease;
}
.lp-nav.is-scrolled {
  padding: 8px 0;
  background: rgba(14, 21, 38, 0.84);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
}
.lp-nav-inner { display: flex; align-items: center; gap: 12px; width: var(--lp-w); margin: 0 auto; }
.lp-links { display: flex; gap: 4px; margin-right: 6px; }
.lp-links a { padding: 8px 12px; font-size: 0.86rem; font-weight: 550; color: var(--lp-soft); border-radius: 9px; transition: color 0.15s, background 0.15s; }
.lp-links a:hover { color: var(--lp-ink); background: rgba(255, 255, 255, 0.07); }
.lp-theme { color: rgba(242, 241, 236, 0.8); background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.12); }
.lp-nav-cta { color: var(--navy); background: var(--lp-ink); border-radius: 10px; }

/* The nav is dark in both themes: the logo always in its range for dark surfaces. */
.lp-nav .brand-mark .on-light { display: none; }
.lp-nav .brand-mark .on-dark { display: block; }

/* ----- buttons ----- */

.lp-cta { gap: 6px; height: 48px; padding: 0 22px; font-size: 0.95rem; color: var(--navy); background: var(--lp-ink); border-radius: 12px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2), 0 10px 30px -8px rgba(78, 155, 255, 0.5); }
.lp-cta [data-icon] svg { width: 16px; height: 16px; transition: transform 0.16s ease; }
.lp-cta:hover [data-icon] svg { transform: translateX(3px); }
.lp-cta-ghost { height: 48px; padding: 0 20px; font-size: 0.95rem; color: var(--lp-ink); background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.16); border-radius: 12px; }

/* ----- hero ----- */

/* The hero is a tall section whose panel stays pinned while the scroll plays the logo and the bowls into bars. */
.lp-scrolly { position: relative; height: 300svh; background: var(--navy); }
.lp-hero-pin {
  --lift: 0;
  --pitch-h: 0px;
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  height: 100svh;
  padding: 76px 0 28px;
  box-sizing: border-box;
  overflow: hidden;
}
.lp-hero-stage { position: relative; display: grid; min-width: 0; }
.lp-logo { position: absolute; inset: 0; z-index: 1; display: grid; place-content: center; justify-items: center; gap: 6px; pointer-events: none; }
/* The box the unfolding is drawn over (landing.js): the symbol's 260 × 254. */
.lp-logo-box { display: block; width: min(340px, 72vw); aspect-ratio: 260 / 254; }
.lp-logo-caption { margin: 0; font-size: 0.95rem; font-weight: 550; color: var(--lp-soft); opacity: 0; }
.lp-morph { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; overflow: visible; pointer-events: none; visibility: hidden; }
.lp-scrolly .lp-hero-cascade { opacity: 0; }
/* While the bowls are still on their way, the bars wait for them. */
.lp-hero-cascade.is-forming .wf-fill { visibility: hidden; }
.lp-scroll-cue { position: absolute; bottom: 22px; left: 50%; display: grid; justify-items: center; gap: 2px; font-size: 0.72rem; font-weight: 550; color: var(--lp-faint); transform: translateX(-50%); pointer-events: none; }
.lp-scroll-cue [data-icon] { width: 18px; height: 18px; transform: rotate(90deg); animation: lp-nudge 1.8s ease-in-out infinite; }
@keyframes lp-nudge { 0%, 100% { translate: 0 0; } 50% { translate: 0 4px; } }
.lp-hero-body {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
  width: var(--lp-w);
  margin: 0 auto;
}
.lp-pitch { display: grid; justify-items: start; gap: 20px; animation: lp-rise 0.7s var(--lp-ease) both; }
.lp-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 10px;
  font-size: 0.78rem; font-weight: 600; color: var(--b0);
  background: rgba(78, 155, 255, 0.12); border: 1px solid rgba(78, 155, 255, 0.32); border-radius: 999px;
}
.lp-eyebrow i { width: 7px; height: 7px; background: var(--b0); border-radius: 50%; animation: lp-ping 2.4s ease-out infinite; }
.lp-pitch h1 { max-width: 13ch; margin: 0; font-size: clamp(2.4rem, 5.2vw, 4.1rem); font-weight: 650; line-height: 1.02; letter-spacing: -0.045em; text-wrap: balance; }
.lp-pitch h1 span {
  background: linear-gradient(100deg, #b9ddff 0%, var(--b1) 55%, #7b80ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lp-pitch > p { max-width: 46ch; margin: 0; font-size: clamp(1rem, 1.4vw, 1.12rem); line-height: 1.55; color: var(--lp-soft); }
.lp-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.lp-trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 4px 0 0; padding: 0; list-style: none; font-size: 0.8rem; color: var(--lp-faint); }
.lp-trust li { display: inline-flex; align-items: center; gap: 6px; }
.lp-trust [data-icon] { color: var(--b0); }
.lp-trust [data-icon] svg { width: 14px; height: 14px; }

.lp-hero-cascade {
  position: relative;
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 20px 22px 22px;
  background: linear-gradient(155deg, rgba(30, 42, 72, 0.7) 0%, rgba(12, 18, 34, 0.62) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 40px 80px -30px rgba(0, 0, 0, 0.7);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  container-type: inline-size;
}
.lp-hero-cascade::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  z-index: -1;
  width: 70%;
  height: 80%;
  background: radial-gradient(circle, rgba(78, 155, 255, 0.32), transparent 65%);
  filter: blur(30px);
  pointer-events: none;
}
/* Today's sentence and the one after spreading share a cell, so swapping them never moves the card. */
.lp-wf-verdicts { display: grid; }
.lp-wf-verdicts p { grid-area: 1 / 1; margin: 0; font-size: clamp(1.05rem, 1.7vw, 1.3rem); font-weight: 600; line-height: 1.3; letter-spacing: -0.015em; text-wrap: balance; transition: opacity 0.35s cubic-bezier(0.2, 0, 0, 1); }
.lp-wf-verdicts b { color: var(--lp-gold); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lp-wf-verdicts em { font-style: normal; color: var(--b0); }
.lp-wf-verdicts [data-verdict-spread], .is-spread .lp-wf-verdicts [data-verdict-today] { opacity: 0; }
.is-spread .lp-wf-verdicts [data-verdict-spread] { opacity: 1; transition-delay: 0.9s; }

.lp-bowls-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.lp-road-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 0.76rem; }
.lp-road-title { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--lp-soft); }
.lp-road-title i { width: 6px; height: 6px; background: var(--b0); border-radius: 50%; box-shadow: 0 0 10px var(--b0); }
.lp-road-chip { padding: 4px 9px; font-size: 0.68rem; color: var(--lp-faint); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 999px; }


/* ----- the road (hero and lab) ----- */

.lp-road { position: relative; height: 250px; padding-bottom: 22px; touch-action: pan-y; }
.lp-road-svg,
.lp-road-overlay,
.lp-road-cursor { position: absolute; inset: 0 0 22px; }
.lp-road-svg { width: 100%; height: calc(100% - 22px); overflow: visible; clip-path: inset(0 100% 0 0); transition: clip-path 2.2s cubic-bezier(0.45, 0, 0.2, 1); }
.lp-road.is-drawn .lp-road-svg { clip-path: inset(-20px -2px -2px -2px); }
.lp-road-grid line { stroke: rgba(255, 255, 255, 0.06); stroke-dasharray: 2 6; vector-effect: non-scaling-stroke; }
.lp-road-edge { fill: none; stroke-width: 1.2; stroke-opacity: 0.75; vector-effect: non-scaling-stroke; }
.lp-road-line { fill: none; stroke: var(--lp-ink); stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.lp-road-glow { fill: none; stroke: rgba(140, 200, 255, 0.35); stroke-width: 9; stroke-linejoin: round; vector-effect: non-scaling-stroke; opacity: 0.55; }
.lp-road-base { fill: none; stroke: rgba(242, 241, 236, 0.5); stroke-width: 1.5; stroke-dasharray: 5 5; vector-effect: non-scaling-stroke; }

.lp-road-overlay { pointer-events: none; opacity: 0; transition: opacity 0.8s 1.6s ease; }
.lp-road.is-drawn .lp-road-overlay { opacity: 1; }
.lp-coin {
  --coin: 148, 163, 184;
  --coin-deep: 100, 116, 139;
  position: absolute;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  color: rgba(242, 241, 236, 0.85);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0.06) 48%, rgba(255, 255, 255, 0) 52%),
    radial-gradient(120% 120% at 50% 100%, rgba(var(--coin-deep), var(--coin-a1, 0.55)) 0%, rgba(var(--coin), var(--coin-a2, 0.24)) 60%, rgba(var(--coin), var(--coin-a3, 0.14)) 100%);
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28), 0 8px 18px -8px rgba(var(--coin-deep), 0.6), 0 0 18px rgba(var(--coin), 0.22);
  transform: translate(-50%, -50%);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: --coin 0.4s, box-shadow 0.4s ease, color 0.4s ease;
}
.lp-coin svg { width: 13px; height: 13px; }
.lp-coin.lit,
.lp-coins li.done .lp-coin {
  --coin: 74, 222, 128;
  --coin-deep: 21, 128, 61;
  --coin-a1: 0.92;
  --coin-a2: 0.68;
  --coin-a3: 0.45;
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4), 0 10px 22px -8px rgba(21, 128, 61, 0.7), 0 0 26px rgba(74, 222, 128, 0.35);
}
.lp-mark { position: absolute; top: 0; bottom: 0; border-left: 1px dashed rgba(255, 255, 255, 0.16); }
.lp-mark b { position: absolute; top: -2px; left: 0; padding: 2px 7px; font-size: 0.62rem; font-weight: 600; white-space: nowrap; color: var(--lp-soft); background: rgba(14, 21, 38, 0.85); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 999px; transform: translateX(-50%); }
.lp-mark.warn { border-left-color: rgba(224, 128, 100, 0.5); }
.lp-mark.warn b { color: #f0a58c; border-color: rgba(224, 128, 100, 0.4); }
.lp-pin { position: absolute; bottom: 4px; display: grid; place-items: center; width: 22px; height: 22px; color: var(--lp-gold); background: rgba(14, 21, 38, 0.9); border: 1px solid rgba(242, 185, 75, 0.5); border-radius: 7px; transform: translateX(-50%); }
.lp-pin svg { width: 12px; height: 12px; }
.lp-road-cursor { left: 0; right: auto; width: 1px; background: linear-gradient(180deg, transparent, rgba(242, 241, 236, 0.45) 30%, rgba(242, 241, 236, 0.15)); pointer-events: none; }
.lp-road-cursor i { position: absolute; left: 0; width: 11px; height: 11px; background: #fff; border-radius: 50%; box-shadow: 0 0 0 4px rgba(140, 200, 255, 0.25), 0 0 16px rgba(140, 200, 255, 0.9); transform: translate(-50%, -50%); }
.lp-road-axis { position: absolute; inset: auto 0 0; height: 16px; }
.lp-road-axis span { position: absolute; font-size: 0.66rem; color: var(--lp-faint); font-variant-numeric: tabular-nums; transform: translateX(-50%); }

/* ----- sections ----- */

.lp-section { width: var(--lp-w); margin: 0 auto; padding-top: clamp(72px, 10vw, 128px); }
.lp-head { display: grid; justify-items: center; gap: 12px; margin-bottom: clamp(28px, 4vw, 44px); text-align: center; }
.lp-kicker { font-size: 0.74rem; font-weight: 650; letter-spacing: 0.14em; text-transform: uppercase; color: var(--lp-blue); }
.lp-dark .lp-kicker { color: var(--b0); }
.lp-head h2,
.lp-privacy h2,
.lp-final h2 { max-width: 22ch; margin: 0; font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 650; line-height: 1.08; letter-spacing: -0.04em; text-wrap: balance; }
.lp-head p { max-width: 54ch; margin: 0; font-size: 1rem; line-height: 1.55; color: var(--text-soft); }

/* ----- story: the steps scroll, the stage stays and changes scene ----- */

.lp-story { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 72px); }
.lp-steps { margin: 0; padding: 0; list-style: none; }
.lp-step { display: flex; flex-direction: column; justify-content: center; gap: 12px; min-height: 76svh; opacity: 0.32; transition: opacity 0.5s ease; }
.lp-step.is-on { opacity: 1; }
.lp-step-n { display: inline-flex; align-items: center; gap: 10px; font-size: 0.78rem; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-variant-numeric: tabular-nums; }
/* A small bowl in the step's colour, the one of its layer in the logo. */
.lp-step-n i { width: 18px; height: 9px; background: var(--muted); border-radius: 0 0 9px 9px; opacity: 0.5; transition: background 0.5s ease, opacity 0.5s ease; }
.lp-step.is-on .lp-step-n { color: var(--lp-blue); }
.lp-step.is-on .lp-step-n i { background: var(--c); opacity: 1; box-shadow: 0 4px 12px -4px var(--c); }
.lp-saying { font-size: clamp(1rem, 1.5vw, 1.15rem); font-style: italic; font-weight: 500; color: var(--muted); }
.lp-step.is-on .lp-saying { color: var(--text-soft); }
.lp-step h3 { max-width: 18ch; margin: 0; font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 650; line-height: 1.12; letter-spacing: -0.035em; }
.lp-step p { max-width: 42ch; margin: 0; font-size: 1rem; line-height: 1.6; color: var(--text-soft); }

.lp-stage {
  position: sticky;
  top: max(80px, calc(50svh - 280px));
  align-self: start;
  height: min(560px, calc(100svh - 120px));
  min-height: 460px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 26px;
  box-shadow: 0 40px 80px -40px rgba(14, 21, 38, 0.6);
}
.lp-stage-rail { position: absolute; inset: 22px 28px auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.lp-stage-rail i { height: 3px; background: rgba(255, 255, 255, 0.12); border-radius: 99px; overflow: hidden; }
.lp-stage-rail i::before { content: ""; display: block; height: 100%; background: var(--c, var(--b0)); transform: scaleX(0); transform-origin: left; transition: transform 0.6s var(--lp-ease); }
.lp-stage-rail i.is-on::before { transform: scaleX(1); }
.lp-stage-rail i:nth-child(1) { --c: var(--b0); }
.lp-stage-rail i:nth-child(2) { --c: var(--b1); }
.lp-stage-rail i:nth-child(3) { --c: var(--b2); }
.lp-stage-rail i:nth-child(4) { --c: #6f74ff; }

.lp-scene {
  position: absolute;
  inset: 48px 28px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  opacity: 0;
  transform: translateY(16px) scale(0.985);
  filter: blur(6px);
  transition: opacity 0.6s ease, transform 0.7s var(--lp-ease), filter 0.6s ease;
  pointer-events: none;
}
.lp-scene.is-on { opacity: 1; transform: none; filter: none; }
.lp-scene-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 0.8rem; font-weight: 600; color: var(--lp-soft); }
.lp-scene-sub { font-weight: 500; color: var(--lp-faint); }
.lp-avatars { display: flex; }
.lp-avatars i { display: grid; place-items: center; width: 28px; height: 28px; margin-left: -6px; font-size: 0.64rem; font-style: normal; font-weight: 700; color: #fff; background: var(--c); border: 2px solid var(--navy); border-radius: 50%; }

/* scene 1: from income to what is left */
.lp-flow { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.lp-flow li { display: grid; grid-template-columns: 1fr auto; gap: 6px 8px; font-size: 0.82rem; color: var(--lp-soft); }
.lp-flow b { font-weight: 650; color: var(--lp-ink); font-variant-numeric: tabular-nums; }
.lp-flow em { grid-column: 1 / -1; height: 10px; background: rgba(255, 255, 255, 0.06); border-radius: 99px; overflow: hidden; }
.lp-flow em::before { content: ""; display: block; width: 0; height: 100%; background: var(--c); border-radius: inherit; box-shadow: 0 0 14px var(--c); transition: width 1s var(--lp-ease); }
.lp-scene.is-on .lp-flow em::before { width: var(--w); }
.lp-scene.is-on .lp-flow li:nth-child(2) em::before { transition-delay: 0.15s; }
.lp-scene.is-on .lp-flow li:nth-child(3) em::before { transition-delay: 0.3s; }
.lp-split { display: grid; gap: 8px; font-size: 0.72rem; color: var(--lp-faint); }
.lp-split-bar { display: flex; gap: 3px; }
.lp-split-bar i { flex: 0 0 var(--w); padding: 6px 10px; font-size: 0.7rem; font-style: normal; font-weight: 600; color: var(--lp-ink); background: color-mix(in srgb, var(--c) 30%, transparent); border: 1px solid color-mix(in srgb, var(--c) 55%, transparent); border-radius: 8px; }
.lp-scene-big { margin: 4px 0 0; font-size: clamp(1.1rem, 2vw, 1.35rem); color: var(--lp-soft); }
.lp-scene-big b { font-size: 1.5em; font-weight: 650; letter-spacing: -0.03em; color: var(--b0); font-variant-numeric: tabular-nums; }
.lp-transfers { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.lp-transfers li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px 12px; font-size: 0.8rem; color: var(--lp-soft); background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 12px; opacity: 0; transform: translateY(6px); transition: opacity 0.5s ease, transform 0.6s var(--lp-ease); }
.lp-transfers li:nth-child(2) { transition-delay: 0.12s; }
.lp-scene.is-on .lp-transfers li { opacity: 1; transform: none; transition-delay: 0.6s; }
.lp-scene.is-on .lp-transfers li:nth-child(2) { transition-delay: 0.72s; }
.lp-transfers [data-icon] { display: grid; place-items: center; width: 28px; height: 28px; color: var(--b0); background: rgba(78, 155, 255, 0.14); border-radius: 9px; }
.lp-transfers [data-icon] svg { width: 14px; height: 14px; }
.lp-transfers b { font-weight: 650; color: var(--lp-ink); font-variant-numeric: tabular-nums; }

/* scene 2: the cushion against its line, and the plans that share its bowl */
.lp-cushion { display: grid; gap: 10px; }
.lp-cushion .lp-scene-sub b { color: var(--lp-ink); font-variant-numeric: tabular-nums; }
.lp-cushion-track { height: 12px; background: rgba(255, 255, 255, 0.06); border-radius: 99px; overflow: hidden; }
.lp-cushion-track i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--b1), var(--b0)); border-radius: inherit; box-shadow: 0 0 14px rgba(78, 155, 255, 0.6); transition: width 1.1s var(--lp-ease); }
.lp-scene.is-on .lp-cushion-track i { width: calc(var(--l) * 100%); }

/* scene 3: what grows, by asset */
.lp-mix { display: flex; gap: 3px; height: 12px; }
.lp-mix i { flex: 0 0 calc(var(--w) - 2px); background: var(--c); border-radius: 4px; transform: scaleX(0); transform-origin: left; transition: transform 0.9s var(--lp-ease); }
.lp-mix i:nth-child(2) { transition-delay: 0.12s; }
.lp-mix i:nth-child(3) { transition-delay: 0.24s; }
.lp-scene.is-on .lp-mix i { transform: none; }
.lp-positions { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.lp-positions li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px 10px 12px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); border-left: 0; border-radius: 12px; box-shadow: inset 3px 0 0 var(--c); }
.lp-positions span { display: grid; gap: 1px; min-width: 0; }
.lp-positions span b { font-size: 0.88rem; font-weight: 600; }
.lp-positions small { font-size: 0.72rem; color: var(--lp-faint); }
.lp-positions li > b { font-size: 0.92rem; font-weight: 650; font-variant-numeric: tabular-nums; }

/* scene 4: the road, with the three scenarios */
.lp-scenarios { display: flex; gap: 3px; padding: 3px; background: rgba(255, 255, 255, 0.06); border-radius: 999px; }
.lp-scenarios i { padding: 3px 10px; font-size: 0.7rem; font-style: normal; font-weight: 600; color: var(--lp-faint); border-radius: 999px; }
.lp-scenarios i.on { color: var(--lp-ink); background: rgba(255, 255, 255, 0.14); }

/* scene 4: the five stages as coins with their year */
.lp-coins { position: relative; display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.lp-coins::before { content: ""; position: absolute; top: 20px; bottom: 20px; left: 19px; width: 2px; background: rgba(255, 255, 255, 0.1); }
.lp-coins li { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; gap: 14px; opacity: 0; transform: translateX(-8px); transition: opacity 0.5s ease, transform 0.6s var(--lp-ease); transition-delay: calc(var(--i) * 0.08s); }
.lp-scene.is-on .lp-coins li { opacity: 1; transform: none; }
.lp-coins .lp-coin { position: relative; width: 40px; height: 40px; transform: none; }
.lp-coins .lp-coin svg { width: 18px; height: 18px; }
.lp-coins li.current .lp-coin { box-shadow: inset 0 0 0 1px rgba(242, 185, 75, 0.7), 0 0 0 4px rgba(242, 185, 75, 0.12), 0 0 24px rgba(242, 185, 75, 0.3); }
.lp-coin-text { display: grid; gap: 1px; }
.lp-coin-text b { font-size: 0.92rem; font-weight: 600; }
.lp-coin-text small { font-size: 0.74rem; color: var(--lp-faint); font-variant-numeric: tabular-nums; }
.lp-coins li.current small { color: var(--lp-gold); }
.lp-coins li.done b { color: var(--lp-soft); }

/* scene 2: plans and what they move */
.lp-plans { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.lp-plans li { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 14px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 14px; }
.lp-plan-icon { display: grid; place-items: center; width: 40px; height: 40px; color: var(--lp-gold); background: rgba(242, 185, 75, 0.12); border-radius: 12px; }
.lp-plan-icon svg { width: 18px; height: 18px; }
.lp-plans b { display: block; font-size: 0.92rem; font-weight: 600; }
.lp-plans small { font-size: 0.74rem; color: var(--lp-faint); }
.lp-switch { position: relative; width: 36px; height: 22px; background: rgba(255, 255, 255, 0.14); border-radius: 99px; transition: background 0.4s ease; }
.lp-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; background: #fff; border-radius: 50%; transition: transform 0.4s var(--lp-ease); }
.lp-scene.is-on .lp-plans li:not(.off) .lp-switch { background: var(--b1); transition-delay: 0.5s; }
.lp-scene.is-on .lp-plans li:not(.off) .lp-switch::after { transform: translateX(14px); transition-delay: 0.5s; }
.lp-plans li.off { opacity: 0.55; }
.lp-impact { margin: 0; padding: 14px 16px; font-size: 0.95rem; line-height: 1.45; color: var(--lp-soft); background: linear-gradient(90deg, rgba(242, 185, 75, 0.12), rgba(242, 185, 75, 0.02)); border-left: 2px solid var(--lp-gold); border-radius: 0 12px 12px 0; opacity: 0; transition: opacity 0.6s 1.1s ease; }
.lp-scene.is-on .lp-impact { opacity: 1; }
.lp-impact b { color: var(--lp-gold); font-variant-numeric: tabular-nums; }
.lp-impact small { color: var(--lp-faint); font-size: 0.85em; }
.lp-catalog { display: grid; gap: 8px; font-size: 0.72rem; color: var(--lp-faint); }
.lp-catalog div { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; color: var(--lp-soft); font-size: 0.78rem; }
.lp-catalog i { display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: -8px; color: var(--lp-soft); background: rgba(255, 255, 255, 0.06); border-radius: 8px; }
.lp-catalog i svg { width: 13px; height: 13px; }

/* ----- lab: «Pruébalo» ----- */

.lp-lab { display: grid; grid-template-columns: minmax(250px, 300px) minmax(0, 1fr); gap: 0; padding: 0; overflow: hidden; border-radius: 24px; }
.lp-lab-controls { display: grid; align-content: start; gap: 26px; padding: 26px; }
.lp-saving { display: grid; gap: 8px; }
.lp-saving span,
.lp-lab-label { font-size: 0.8rem; font-weight: 600; color: var(--muted); }
.lp-saving output { font-size: 2rem; font-weight: 650; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.lp-saving input { --p: 50%; width: 100%; height: 6px; margin: 6px 0; appearance: none; -webkit-appearance: none; background: linear-gradient(90deg, var(--lp-blue) var(--p), var(--surface-2) var(--p)); border-radius: 99px; cursor: pointer; }
.lp-saving input::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; background: #fff; border: 0; border-radius: 50%; box-shadow: 0 0 0 1px rgba(14, 21, 38, 0.12), 0 4px 12px rgba(14, 21, 38, 0.25), 0 0 0 5px rgba(78, 155, 255, 0.2); }
.lp-saving input::-moz-range-thumb { width: 22px; height: 22px; background: #fff; border: 0; border-radius: 50%; box-shadow: 0 0 0 1px rgba(14, 21, 38, 0.12), 0 4px 12px rgba(14, 21, 38, 0.25), 0 0 0 5px rgba(78, 155, 255, 0.2); }
.lp-lab-plans { display: grid; gap: 10px; }
.lp-lab-plans > div { display: flex; flex-wrap: wrap; gap: 8px; }
.lp-toggle {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px 8px 9px;
  font: inherit; font-size: 0.84rem; font-weight: 550; color: var(--text-soft);
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px; cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.lp-toggle [data-icon] { display: grid; place-items: center; width: 24px; height: 24px; color: var(--muted); background: var(--surface-2); border-radius: 50%; transition: inherit; }
.lp-toggle [data-icon] svg { width: 13px; height: 13px; }
.lp-toggle small { font-size: 0.72rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.lp-toggle:hover { border-color: color-mix(in srgb, var(--lp-blue) 40%, var(--line)); }
.lp-toggle[aria-pressed="true"] { color: var(--text); background: color-mix(in srgb, var(--lp-blue) 12%, var(--surface)); border-color: color-mix(in srgb, var(--lp-blue) 55%, transparent); box-shadow: 0 6px 18px -8px rgba(47, 107, 245, 0.5); }
.lp-toggle[aria-pressed="true"] [data-icon] { color: #fff; background: #2f6bf5; }
.lp-toggle:focus-visible { outline: 3px solid color-mix(in srgb, var(--lp-blue) 40%, transparent); outline-offset: 2px; }

.lp-lab-main {
  display: grid;
  gap: 18px;
  padding: 24px;
  color: var(--lp-ink);
  background:
    radial-gradient(circle at 100% 0%, rgba(78, 155, 255, 0.2), transparent 45%),
    radial-gradient(circle at 0% 100%, rgba(59, 64, 201, 0.24), transparent 50%),
    var(--navy);
}
.lp-lab-read { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.lp-lab-read div { display: grid; align-content: start; gap: 3px; min-width: 0; }
.lp-lab-read span { font-size: 0.74rem; color: var(--lp-faint); }
.lp-lab-read strong { font-size: clamp(1.15rem, 2.2vw, 1.55rem); font-weight: 650; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.lp-lab-read strong.warn { color: #f0a58c; }
.lp-lab-read em { font-size: 0.74rem; font-style: normal; color: var(--lp-mint); }
.lp-lab-read em.late { color: var(--lp-gold); }
.lp-lab-read em.warn { color: #f0a58c; }
.lp-road-lab { height: 300px; cursor: crosshair; }
.lp-road-read { position: absolute; top: 18%; left: 0; display: grid; white-space: nowrap; transform: translateX(12px); transition: transform 0.2s ease; padding: 6px 10px; font-size: 0.8rem; font-weight: 650; font-variant-numeric: tabular-nums; background: rgba(14, 21, 38, 0.8); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 10px; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); pointer-events: none; }
.lp-road-read.flip { transform: translateX(calc(-100% - 12px)); }
.lp-road-read b { font-size: 0.68rem; color: var(--lp-faint); }
.lp-road-read small { font-size: 0.68rem; font-weight: 500; color: var(--b0); }
.lp-lab-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; font-size: 0.72rem; color: var(--lp-faint); }
.lp-key { display: inline-flex; align-items: center; gap: 7px; }
.lp-key::before { content: ""; width: 18px; border-top: 2px solid var(--lp-ink); }
.lp-key-base::before { border-top: 2px dashed rgba(242, 241, 236, 0.5); }
.lp-lab-hint { margin-left: auto; }
.lp-note { max-width: 70ch; margin: 14px auto 0; font-size: 0.8rem; line-height: 1.5; text-align: center; color: var(--muted); }

/* ----- bento ----- */

.lp-bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.lp-bento .dash-card { display: grid; align-content: start; gap: 10px; padding: 24px; transition: transform 0.3s var(--lp-ease), box-shadow 0.3s ease; }
.lp-bento .dash-card:hover { transform: translateY(-2px); }
.lp-bento h3 { margin: 6px 0 0; font-size: 1.05rem; font-weight: 650; letter-spacing: -0.02em; }
.lp-bento p { margin: 0; font-size: 0.9rem; line-height: 1.55; color: var(--text-soft); }
.lp-tile-icon { --c: #4e9bff; display: grid; place-items: center; width: 46px; height: 46px; color: #fff; background: linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0) 50%), var(--c); border-radius: 14px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25), 0 10px 22px -10px var(--c); }
.lp-tile-icon svg { width: 21px; height: 21px; }
.lp-bento .dash-card:nth-child(2) .lp-tile-icon,
.lp-bento .dash-card:nth-child(5) .lp-tile-icon { --c: #2f6bf5; }
.lp-bento .dash-card:nth-child(3) .lp-tile-icon,
.lp-bento .dash-card:nth-child(6) .lp-tile-icon { --c: #3b40c9; }

/* ----- privacy ----- */

.lp-privacy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(28px, 5vw, 64px); padding: clamp(28px, 5vw, 56px); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 26px; }
.lp-privacy-text { display: grid; gap: 14px; }
.lp-privacy-text p { max-width: 44ch; margin: 0; line-height: 1.6; color: var(--lp-soft); }
.lp-specs { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.lp-specs li { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 14px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 14px; }
.lp-specs [data-icon] { display: grid; place-items: center; width: 38px; height: 38px; color: var(--b0); background: rgba(78, 155, 255, 0.14); border-radius: 11px; }
.lp-specs [data-icon] svg { width: 18px; height: 18px; }
.lp-specs b { display: block; font-size: 0.9rem; font-weight: 600; }
.lp-specs small { font-size: 0.76rem; color: var(--lp-faint); }
.lp-specs em { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; font-size: 0.7rem; font-style: normal; font-weight: 650; color: var(--lp-mint); white-space: nowrap; background: rgba(29, 158, 117, 0.12); border-radius: 999px; font-variant-numeric: tabular-nums; }
.lp-specs li:first-child em::before { content: ""; width: 6px; height: 6px; background: var(--lp-mint); border-radius: 50%; animation: lp-ping 2.4s ease-out infinite; }

/* ----- what already works, and what is still filling up ----- */

.lp-next { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 16px; align-items: stretch; }
.lp-done { display: grid; align-content: start; gap: 14px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.lp-done ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.lp-done li { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; font-weight: 550; }
.lp-done [data-icon] { display: grid; place-items: center; flex: none; width: 30px; height: 30px; color: var(--lp-blue); background: color-mix(in srgb, var(--lp-blue) 12%, transparent); border-radius: 9px; }
.lp-done [data-icon] svg { width: 15px; height: 15px; }
.lp-roadmap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.lp-roadmap li { display: grid; align-content: start; gap: 8px; padding: 20px; border: 1px dashed color-mix(in srgb, var(--lp-blue) 40%, var(--line)); border-radius: 18px; }
.lp-roadmap b { font-size: 0.95rem; font-weight: 600; line-height: 1.35; }
.lp-roadmap small { font-size: 0.8rem; line-height: 1.45; color: var(--text-soft); }
/* Each piece still to come is a bowl below its line; it fills up to it the first time it is seen. */
.lp-next-bowl { width: 64px; height: 34px; margin-bottom: 4px; overflow: visible; }
.lp-nb-cup { fill: color-mix(in srgb, var(--lp-blue) 12%, transparent); stroke: color-mix(in srgb, var(--lp-blue) 55%, transparent); stroke-width: 1.5; stroke-dasharray: 3 4; }
.lp-nb-fill { fill: var(--lp-blue); transform: translateY(34px); transition: transform 1.4s var(--lp-ease); }
.lp-roadmap.is-seen .lp-nb-fill { transform: translateY(calc(34px - var(--l) * 32px)); }
.lp-roadmap.is-seen li:nth-child(2) .lp-nb-fill { transition-delay: 0.12s; }
.lp-roadmap.is-seen li:nth-child(3) .lp-nb-fill { transition-delay: 0.24s; }
.lp-roadmap.is-seen li:nth-child(4) .lp-nb-fill { transition-delay: 0.36s; }

/* ----- closing ----- */

.lp-final {
  display: grid;
  justify-items: center;
  gap: 16px;
  width: var(--lp-w);
  margin: clamp(72px, 10vw, 128px) auto 0;
  padding: clamp(48px, 7vw, 88px) 20px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  overflow: hidden;
}
.lp-final h2 { max-width: 16ch; }
/* The closing logo: the still symbol until landing.js is ready to draw the unfolding in its place. */
.lp-final-logo { position: relative; display: grid; place-items: center; width: 120px; height: 120px; margin-bottom: 4px; }
.lp-final-logo svg { display: none; width: 100%; height: 100%; overflow: visible; }
.lp-final-logo.is-ready svg { display: block; }
.lp-final-logo.is-ready .lp-final-mark { display: none; }
.lp-final-mark .brand-mark { display: block; width: 56px; height: 70px; }
.lp-final-mark .brand-mark img { width: 100%; height: 100%; }
.lp-final-mark .on-light { display: none; }
.lp-final-mark .on-dark { display: block; }
.lp-final p { max-width: 42ch; margin: 0 0 6px; line-height: 1.55; color: var(--lp-soft); }

@keyframes lp-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes lp-ping { 0% { box-shadow: 0 0 0 0 rgba(140, 200, 255, 0.55); } 80%, 100% { box-shadow: 0 0 0 8px rgba(140, 200, 255, 0); } }
@keyframes lp-flow { to { stroke-dashoffset: -16; } }

@media (prefers-reduced-motion: reduce) {
  html:has(.landing-page) { scroll-behavior: auto; }
  .landing-page *,
  .landing-page *::before,
  .landing-page *::after { animation: none !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .lp-scene { filter: none; transform: none; }
  .lp-scrolly { height: auto; }
  .lp-hero-pin { position: relative; height: auto; min-height: 100svh; }
  .lp-logo, .lp-morph, .lp-scroll-cue { display: none; }
  .lp-scrolly .lp-hero-cascade { opacity: 1; }
}

@media (max-width: 1020px) {
  .lp-hero-body { grid-template-columns: minmax(0, 1fr); }
  .lp-pitch { justify-items: center; text-align: center; }
  .lp-pitch h1 { max-width: 15ch; }
  .lp-ctas, .lp-trust { justify-content: center; }
  .lp-hero-cascade { width: min(100%, 640px); justify-self: center; text-align: left; }
  /* Stacked, the pitch fades up and out before the bowls turn into bars, and the stage takes its place. */
  .lp-hero-pin { align-items: flex-start; }
  .lp-hero-body { gap: 24px; }
  /* No entrance animation here: its fill would hold the opacity and transform the lift sets. */
  .lp-pitch { opacity: calc(1 - var(--lift)); transform: translateY(calc(var(--pitch-h) * var(--lift) * -1)); animation: none; }
  .lp-hero-stage { transform: translateY(calc(var(--pitch-h) * var(--lift) * -1)); }
  /* The logo fills the screen the pitch leaves, centred in it once the pitch has gone. */
  .lp-logo { inset: 0 0 auto; height: calc(100svh - 110px); }
  .lp-logo-box { width: min(300px, 72vw); }
  .lp-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-next { grid-template-columns: minmax(0, 1fr); }
  .lp-lab { grid-template-columns: minmax(0, 1fr); }
  .lp-privacy { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 899px) {
  /* The stage rides on top and the steps scroll beneath it. */
  .lp-story { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .lp-stage { order: -1; top: 64px; z-index: 2; height: 360px; min-height: 0; }
  .lp-scene { inset: 42px 18px 18px; gap: 12px; }
  .lp-stage-rail { inset: 18px 18px auto; }
  .lp-step { min-height: 46svh; justify-content: flex-end; }
  .lp-steps { padding-bottom: 24svh; }
  .lp-saying { font-size: 0.95rem; }
  .lp-transfers li { padding: 7px 10px; }
  .lp-positions li { padding: 8px 12px 8px 10px; }
  .lp-coins { gap: 4px; }
  .lp-coins::before { top: 16px; bottom: 16px; left: 15px; }
  .lp-coins li { grid-template-columns: 32px minmax(0, 1fr); gap: 10px; }
  .lp-coins .lp-coin { width: 32px; height: 32px; }
  .lp-coins .lp-coin svg { width: 15px; height: 15px; }
  .lp-coin-text b { font-size: 0.82rem; }
  .lp-coin-text small { font-size: 0.68rem; }
  .lp-plans li { padding: 10px 12px; }
  .lp-impact { padding: 10px 12px; font-size: 0.85rem; }
  .lp-catalog { display: none; }
  .lp-split { display: none; }
}

@media (max-width: 680px) {
  .lp-links { display: none; }
  .lp-nav-inner .landing-brand { margin-right: auto; }
  .lp-ctas .button { flex: 1 1 100%; }
  .lp-hero-cascade { padding: 16px 14px 16px; }
  .lp-road { height: 210px; }
  .lp-road-chip { display: none; }
  .lp-bento, .lp-roadmap { grid-template-columns: minmax(0, 1fr); }
  .lp-lab-controls { gap: 18px; padding: 20px 20px 18px; }
  .lp-saving output { font-size: 1.6rem; }
  /* The plans become one row that slides sideways, so the road stays close. */
  .lp-lab-plans > div { flex-wrap: nowrap; margin: 0 -20px; padding: 2px 20px 6px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
  .lp-lab-plans > div::-webkit-scrollbar { display: none; }
  .lp-toggle { flex: none; scroll-snap-align: start; }
  .lp-lab-main { padding: 18px 14px; }
  .lp-lab-read { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .lp-lab-read div:first-child { grid-column: 1 / -1; }
  .lp-road-lab { height: 240px; }
  .lp-lab-hint { margin-left: 0; }
  .lp-specs li { grid-template-columns: 38px minmax(0, 1fr); }
  .lp-specs em { display: none; }
  .lp-mark b { font-size: 0.56rem; padding: 1px 5px; }
}
.lp-demo-form { display: contents; }
