/* KairSun marketing — tokens 1:1 app (DM Sans + Cinzel, splash #020D1A, mastery teal+gold).
 * Fase 0: self-host woff2 (latin) — CSP font-src 'self' only. font-display:swap.
 * System stack remains fallback if local fonts fail. */

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/dm-sans-latin-400-normal-subset.woff2?v=subset1") format("woff2")}
@font-face {
  font-family: "DM Sans";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/dm-sans-latin-400-italic-subset.woff2?v=subset1") format("woff2")}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/dm-sans-latin-500-normal-subset.woff2?v=subset1") format("woff2")}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/dm-sans-latin-600-normal-subset.woff2?v=subset1") format("woff2")}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/dm-sans-latin-700-normal-subset.woff2?v=subset1") format("woff2")}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/assets/fonts/dm-sans-latin-800-normal-subset.woff2?v=subset1") format("woff2")}
@font-face {
  font-family: "Cinzel";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/cinzel-latin-600-normal-subset.woff2?v=subset1") format("woff2")}
@font-face {
  font-family: "Cinzel";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/cinzel-latin-700-normal-subset.woff2?v=subset1") format("woff2")}

:root {
  --splash: #020D1A;
  --surface: #09090B;
  --elevated: #18181B;
  --glass: rgba(255,255,255,0.08);
  --glass-border: rgba(255,255,255,0.12);
  ;
  ;
  ;
  --mastery: #2DD4BF;
  --mastery-deep: #0F766E;
  --gold: #F5C451;
  --gold-hi: #FFE9B8;
  --gold-base: #FFD777;
  --gold-deep: #E8A93E;
  --gold-ink: #2B1D00;
  --danger: #EF4444;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;
  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --display: "Cinzel", "Times New Roman", Georgia, serif;
  --max: 1120px;
  /* Motion tokens — una sola física para el marketing (nav conserva la suya) */
  --dur-1: 140ms;      /* hover / press */
  --dur-2: 240ms;      /* elevación de cards */
  --dur-3: 420ms;      /* reveals largos */
  --ease-out: cubic-bezier(.22,.9,.24,1);
  --ease-spring: cubic-bezier(.2,.85,.25,1);
  --ease-press: cubic-bezier(.3,.7,.4,1);
  --lift-1: -1px;
  --lift-2: -2px;
  --lift-3: -5px;
  --press-scale: .97;
  color-scheme: dark}

*, *::before, *::after { box-sizing: border-box}
html { -webkit-text-size-adjust: 100%}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth}
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--splash);
  background-image:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(45,212,191,0.12), transparent),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(245,196,81,0.08), transparent),
    linear-gradient(180deg, var(--splash) 0%, var(--surface) 40%, var(--surface) 100%);
  min-height: 100vh}
img { max-width: 100%; height: auto; display: block}
a { color: var(--mastery); text-decoration: none}
a:hover { color: var(--gold)}

/* A-01: gold/mastery focus ring — never outline:none without replacement */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.35)}
a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
.btn:focus:not(:focus-visible) {
  outline: none;
  box-shadow: none}
.btn-primary:focus-visible {
  outline: 2px solid var(--mastery);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(245, 196, 81, 0.4)}

/* A-04 skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 18px;
  background: var(--gold);
  color: var(--gold-ink);
  font-weight: 700;
  border-radius: 0 0 var(--radius-md) 0;
  text-decoration: none}
.skip-link:focus,
.skip-link:focus-visible {
  color: var(--gold-ink);
  outline: 2px solid var(--mastery);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(245, 196, 81, 0.45)}

.aviso-prelaunch {
  margin: 0 0 24px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(245, 196, 81, 0.45);
  background: rgba(245, 196, 81, 0.1);
  color: var(--text-2);
  font-size: 0.95rem}
.aviso-prelaunch strong { color: var(--gold)}

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(2,13,26,0.94); /* solid fallback first */
  border-bottom: 1px solid var(--glass-border);
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header {
    background: rgba(2,13,26,0.62);
    backdrop-filter: blur(28px) saturate(1.35);
    -webkit-backdrop-filter: blur(28px) saturate(1.35);
    box-shadow: 0 1px 0 rgba(255,255,255,0.04), 0 12px 40px rgba(0,0,0,0.22);
  }
}
.site-header .wrap {
  max-width: var(--max); margin: 0 auto;
  padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  color: var(--text); font-weight: 700; letter-spacing: -0.02em}
.logo img { width: 36px; height: 36px; border-radius: 10px}
.nav-links { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; font-size: .92rem; }
.nav-links a {
  color: var(--text-2);
  min-height: 44px; display: inline-flex; align-items: center;
  padding: 8px 10px; border-radius: var(--radius-md);
  transition: color .15s ease, background .15s ease;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.nav-links a:active { background: rgba(255,255,255,0.08); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; min-width: 44px; padding: 0 22px;
  border-radius: var(--radius-pill);
  font-family: var(--font); font-weight: 700; font-size: 1rem; letter-spacing: 0.02em;
  border: none; cursor: pointer; text-decoration: none;
  position: relative; overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease, color .15s ease}
.btn:hover { transform: translateY(-2px)}
.btn:active { transform: translateY(0) scale(0.98)}
.btn-primary {
  background: linear-gradient(180deg, var(--gold-hi) 0%, var(--gold-base) 52%, var(--gold-deep) 100%);
  color: var(--gold-ink);
  box-shadow: 0 8px 28px rgba(245,196,81,0.28), inset 0 1px 0 rgba(255,255,255,0.4)}
.btn-primary:hover { color: var(--gold-ink); box-shadow: 0 12px 36px rgba(245,196,81,0.45)}
.btn-primary:active { box-shadow: 0 4px 16px rgba(245,196,81,0.3)}
.btn-ghost {
  background: var(--glass); color: var(--text);
  border: 1px solid var(--glass-border)}
.btn-ghost:hover {
  border-color: rgba(45,212,191,0.45);
  background: rgba(255,255,255,0.1);
  color: var(--text)}
.btn-sm { min-height: 44px; padding: 0 16px; font-size: .9rem}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px}

/* Hero */
.hero {
  padding: 64px 0 48px;
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center}
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 40px; gap: 28px}
  .hero-visual { order: -1}
  .hero-cta { justify-content: center}

  .nav-links .hide-sm { display: none; }
}
.eyebrow {
  font-family: var(--font);
  font-size: .75rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  ; margin: 0 0 12px}
.hero h1 {
  font-size: clamp(2.2rem, 4.8vw, 3.35rem);
  ;
  margin: 0 0 16px; color: var(--text);
  }

.lead {
  font-size: 1.125rem; line-height: 1.65; color: var(--text-2);
  max-width: 36ch; margin: 0 0 28px;
  text-wrap: pretty}
@media (max-width: 860px) {
  .lead { margin-inline: auto}
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px}


.hero-visual {
  display: flex; justify-content: center; align-items: center;
  ; }
.fox-stage { position: relative}
.fox-stage::before {
  content: ""; position: absolute; inset: 8% 0% 0%;
  ;
  ; z-index: 0;
  pointer-events: none}
.fox-stage picture,
.fox-stage img {
  position: relative; z-index: 1; width: 100%; height: auto;
  filter: drop-shadow(0 24px 48px rgba(0,0,0,0.5))}
@keyframes kitsune-float {
  0%, 100% { transform: translateY(0) scale(1)}
  50% { transform: translateY(-10px) scale(1.015)}
}
@keyframes kitsune-glow {
  0%, 100% { opacity: 0.85; transform: scale(1)}
  50% { opacity: 1; transform: scale(1.04)}
}
/* transform/opacity only — el drop-shadow estático de .ph-kitsune-stage img mantiene la profundidad */
@keyframes kitsune-breath {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.92}
  50% { transform: translateY(-4px) scale(1.03); opacity: 1}
}
@media (prefers-reduced-motion: no-preference) {
  .fox-stage picture,
  .fox-stage > img {
    animation: kitsune-float 5.8s ease-in-out infinite}
  .fox-stage::before {
    animation: kitsune-glow 5.8s ease-in-out infinite}

}

/* Glass cards — solid elevated fallback, blur when supported (T-04) */
.glass {
  background: rgba(24, 24, 27, 0.92); /* --elevated-ish solid */
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl)}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass {
    background: var(--glass);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px)}
}


.section-title { font-size: clamp(1.45rem, 2.8vw, 1.85rem);
  ; margin: 0 0 10px; }
.section-sub { color: var(--muted); margin: 0 0 36px; max-width: 42ch; font-size: 1.05rem; line-height: 1.6; text-wrap: pretty}

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px}
@media (max-width: 720px) { .pillars { grid-template-columns: 1fr} }
.pillar { padding: 24px}
.pillar .icon {
  width: 44px; height: 44px; margin-bottom: 10px;
  display: flex; align-items: center; justify-content: center}
.pillar .icon img { width: 40px; height: 40px; object-fit: contain}
.pillar-label {
  margin: 0 0 6px; font-size: .72rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--gold); font-weight: 700}
.pillar h3 { margin: 0 0 8px; font-size: 1.1rem; font-weight: 700}
.pillar p { margin: 0; color: var(--text-2); font-size: .95rem}
/* CSS marks — no emoji */
.mark-arbol {
  width: 28px; height: 28px; display: block; position: relative;
  background: linear-gradient(180deg, var(--mastery) 0%, var(--mastery-deep) 100%);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  border-radius: 2px}
.mark-local {
  width: 26px; height: 26px; display: block;
  border: 2px solid var(--gold); border-radius: 6px;
  box-shadow: inset 0 0 0 4px rgba(245,196,81,0.15);
  position: relative}
.mark-local::after {
  content: ""; position: absolute; left: 50%; top: 4px;
  width: 6px; height: 10px; margin-left: -3px;
  border: 2px solid var(--gold); border-top: none; border-radius: 0 0 3px 3px}

/* Phone UI recreations — HTML/CSS aesthetic of the Flutter app (not device photos) */
.phones {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 12px;
  align-items: start}
@media (max-width: 1100px) {
  .phones { grid-template-columns: repeat(2, minmax(0, 1fr))}
}
@media (max-width: 560px) {
  .phones { grid-template-columns: 1fr; max-width: 300px; margin-inline: auto}
}
.phone {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px}

.phone-bezel {
  position: relative;
  aspect-ratio: 9 / 19.2;
  border-radius: 28px;
  padding: 10px 9px 12px;
  background: linear-gradient(160deg, #1a1d24 0%, #0a0c10 55%, #05070b 100%);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.55),
    0 18px 40px rgba(0,0,0,0.45),
    inset 0 1px 0 rgba(255,255,255,0.08)}
.phone-island {
  position: absolute;
  top: 16px; left: 50%; transform: translateX(-50%);
  width: 28%; height: 10px; border-radius: 999px;
  ; z-index: 3;
  }
.phone-screen {
  position: relative;
  ;
  border-radius: 20px;
  ;
  ;
  ;
  font-size: 10px;
  ;
  ;
  isolation: isolate}


.phone-home > *:not(.ph-ambient),
.phone-flow > *:not(.ph-ambient) { position: relative; z-index: 1}

/* Home */


/* Kitsune */


/* Flow */


/* Sanctuary */


.seal-gold {
  font-family: var(--display);
  font-size: 10px; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--gold-hi), var(--gold-base) 52%, var(--gold-deep));
  -webkit-background-clip: text; background-clip: text;
  color: transparent}


.phone figcaption {
  display: flex; flex-direction: column; gap: 6px}
.phone .vista-kicker {
  margin: 0; font-size: .7rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold)}
.phone figcaption h3 {
  margin: 0; font-size: 1.05rem; font-weight: 750; letter-spacing: -0.02em}
.phone figcaption > p:not(.vista-kicker):not(.vista-note) {
  margin: 0; color: var(--text-2); font-size: .9rem}
.vista-note {
  margin: 0; font-size: .75rem; color: var(--muted);
  border-top: 1px solid var(--glass-border); padding-top: 10px}
.vistas-footnote {
  margin: 22px 0 0; text-align: center; font-size: .85rem; color: var(--muted)}
.vistas-footnote code {
  font-size: .8em; color: var(--text-2);
  background: rgba(255,255,255,0.06); padding: 1px 5px; border-radius: 4px}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {

}


/* ========== Wave 4 craft — living scroll / micro / glow (0 JS) ========== */
/* Golden bar: CSS-only. animation-timeline scroll()/view() when supported;
   graceful no-timeline fallbacks. prefers-reduced-motion kills everything. */

:root {
  --glow-teal: rgba(45, 212, 191, 0.22);
  --glow-gold: rgba(245, 196, 81, 0.18);
  --measure: 36ch;
  }

/* Richer ambient canvas */
body.marketing {
  background-image:
    radial-gradient(ellipse 90% 55% at 12% -8%, rgba(45,212,191,0.16), transparent 55%),
    radial-gradient(ellipse 70% 45% at 92% 4%, rgba(245,196,81,0.12), transparent 50%),
    radial-gradient(ellipse 50% 35% at 70% 60%, rgba(15,118,110,0.08), transparent 60%),
    linear-gradient(180deg, var(--splash) 0%, var(--surface) 38%, #07070a 100%);
  background-attachment: fixed, fixed, scroll, scroll}

/* Scroll progress: un solo keyframe, compartido por barra y trail. */
@keyframes scroll-progress {
  from { transform: scaleX(0)}
  to { transform: scaleX(1)}
}

@keyframes cta-shimmer {
  0% { transform: translateX(-130%) skewX(-18deg); opacity: 0}
  25% { opacity: 0.65}
  100% { transform: translateX(230%) skewX(-18deg); opacity: 0}
}


@keyframes flow-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(45,212,191,0)}
  50% { box-shadow: 0 0 10px 2px rgba(45,212,191,0.6)}
}
@keyframes dock-breathe {
  0%, 100% { box-shadow: 0 -8px 24px rgba(0,0,0,0.35)}
  50% { box-shadow: 0 -8px 28px rgba(45,212,191,0.12), 0 -8px 24px rgba(0,0,0,0.35)}
}
@keyframes meadow-drift {
  0%, 100% { background-position: 50% 40%, 30% 70%, 70% 60%}
  50% { background-position: 52% 38%, 28% 72%, 72% 58%}
}
@keyframes seal-gleam {
  0%, 100% { filter: brightness(1)}
  50% { filter: brightness(1.15)}
}


/* CTA shimmer */
.btn-primary::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 32%, rgba(255,255,255,0.5) 50%, transparent 68%);
  pointer-events: none;
  opacity: 0}
@media (prefers-reduced-motion: no-preference) {
  .btn-primary:hover::after {
    animation: cta-shimmer 1.05s ease;
    opacity: 1}
}

/* Card / phone microinteractions */
.pillar, .step, .guide-card, .phone, .tag {
  transition:
    transform .24s cubic-bezier(.2,.8,.2,1),
    border-color .22s ease,
    box-shadow .24s ease,
    background .2s ease,
    color .15s ease}
@media (prefers-reduced-motion: no-preference) {
  .pillar:hover, .step:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 44px rgba(0,0,0,0.32), 0 0 0 1px rgba(45,212,191,0.18);
    border-color: rgba(45,212,191,0.35)}

  .phone:hover {
    transform: translateY(-8px)}
  .phone:hover .phone-bezel {
    box-shadow:
      0 0 0 1px rgba(255,255,255,0.12),
      0 32px 64px rgba(0,0,0,0.58),
      0 0 48px rgba(45,212,191,0.16),
      0 0 80px rgba(245,196,81,0.08)}
  .tag:hover {
    transform: translateY(-2px);
    border-color: rgba(245,196,81,0.35);
    color: var(--text);
    background: rgba(24,24,27,0.95)}
}

/* Sticky parallax kitsune column (desktop) */
@media (min-width: 861px) and (prefers-reduced-motion: no-preference) {
  .hero-visual {
    align-self: stretch;
    min-height: 420px}
  .fox-stage {
    position: sticky;
    top: calc(var(--header-h) + 28px)}
}

/* Hero load rise (always; reduced-motion kills via global rule) */
@media (prefers-reduced-motion: no-preference) {
  .hero > div:first-child > * {
    animation: soft-rise-x 0.75s cubic-bezier(.2,.8,.2,1) both}
  .hero > div:first-child > *:nth-child(1) { animation-delay: 0.02s}
  .hero > div:first-child > *:nth-child(2) { animation-delay: 0.08s}
  .hero > div:first-child > *:nth-child(3) { animation-delay: 0.14s}
  .hero > div:first-child > *:nth-child(4) { animation-delay: 0.2s}
  .hero > div:first-child > *:nth-child(5) { animation-delay: 0.26s}
  .hero-visual {
    animation: soft-rise 0.9s cubic-bezier(.2,.8,.2,1) both;
    animation-delay: 0.12s}
}

/* Living scroll — section / phone / pillar reveals via view() timeline */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .section .eyebrow,
    .section .section-title,
    .section .section-sub {
      animation: soft-rise linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 22%}
    .pillar, .step {
      animation: soft-rise linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 32%}
    .pillar:nth-child(2), .step:nth-child(2) { animation-range: entry 8% cover 36%}
    .pillar:nth-child(3), .step:nth-child(3) { animation-range: entry 16% cover 40%}

    .phone {
      animation: soft-rise linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 38%}
    .phone:nth-child(1) { animation-range: entry 2% cover 38%}
    .phone:nth-child(2) { animation-range: entry 10% cover 40%}
    .phone:nth-child(3) { animation-range: entry 18% cover 42%}
    .phone:nth-child(4) { animation-range: entry 26% cover 44%}

    .cta-band {
      animation: soft-rise linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 35%}
    .tag {
      animation: tag-pop linear both;
      animation-timeline: view();
      animation-range: entry 10% cover 40%}
    .tag:nth-child(odd) { animation-range: entry 14% cover 42%}
    .vistas-footnote {
      animation: soft-rise linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 30%}
  }
}

/* Fallback reveals when scroll-timeline unsupported (one-shot on load) */
@supports not (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .pillars, .phones, .steps, .cta-band, .tags {
      animation: soft-rise 0.8s cubic-bezier(.2,.8,.2,1) both}
    .phones { animation-delay: 0.12s}
    .cta-band { animation-delay: 0.08s}
  }
}

/* Phone micro-living */
@media (prefers-reduced-motion: no-preference) {


}

/* CTA band richer glow */
.cta-band {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 80% at 20% 0%, rgba(45,212,191,0.22), transparent 55%),
    radial-gradient(ellipse 50% 70% at 90% 100%, rgba(245,196,81,0.16), transparent 50%),
    linear-gradient(135deg, rgba(15,118,110,0.4), rgba(245,196,81,0.1));
  }
.cta-band::before {
  content: "";
  position: absolute; inset: -40% -20%;
  background: radial-gradient(circle at 50% 50%, rgba(245,196,81,0.08), transparent 45%);
  pointer-events: none}
@media (prefers-reduced-motion: no-preference) {
  .cta-band::before {
    animation: kitsune-glow 8s ease-in-out infinite}
}
.cta-band > * { position: relative; z-index: 1}

/* Hero fox stage richer halo */
.fox-stage::before {
  background:
    radial-gradient(circle at 50% 55%, rgba(45,212,191,0.34), transparent 68%),
    radial-gradient(circle at 55% 40%, rgba(245,196,81,0.2), transparent 55%),
    radial-gradient(circle at 40% 70%, rgba(168,85,247,0.08), transparent 50%);
  filter: blur(32px)}

/* Typography rhythm */


.answer-first { max-width: 60ch}
.site-footer a {
  min-height: 44px; display: inline-flex; align-items: center;
  padding: 4px 0;
  transition: color .15s ease}
.logo {
  min-height: 44px;
  transition: opacity .15s ease, transform .15s ease}
.logo:hover { opacity: 0.92; color: var(--text)}
@media (prefers-reduced-motion: no-preference) {
  .logo:hover { transform: translateY(-1px)}
}

.phone-bezel {
  transition: box-shadow .28s cubic-bezier(.2,.8,.2,1), transform .28s ease}
.phone figcaption h3 { transition: color .18s ease}
.phone:hover figcaption h3 { color: var(--gold-base)}

/* Cross-document view transitions (Chromium) — page feel without JS */
@view-transition { navigation: auto}
::view-transition-old(root) {
  animation: 0.22s ease both fade-out-vt}
::view-transition-new(root) {
  animation: 0.28s ease both fade-in-vt}
@keyframes fade-out-vt { to { opacity: 0} }
@keyframes fade-in-vt { from { opacity: 0} }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none}
}

/* ========== /Wave 4 craft ========== */

/* Loop 3 pasos */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step}
@media (max-width: 720px) { .steps { grid-template-columns: 1fr} }
.step {
  padding: 24px; position: relative}
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--display); font-size: .85rem; letter-spacing: 0.15em;
  color: var(--gold); display: block; margin-bottom: 10px}
.step h3 { margin: 0 0 8px; font-size: 1.05rem}
.step p { margin: 0; color: var(--text-2); font-size: .95rem}

/* CTA band */
.cta-band {
  margin: 24px 0 0; padding: 40px 32px;
  text-align: center;
  ;
  border-radius: var(--radius-xl);
  /* background/glow set in Wave 4 craft block */
}
.cta-band h2 { font-family: var(--font); font-weight: 800; margin: 0 0 10px; font-size: 1.5rem; letter-spacing: -0.02em}
.cta-band p { color: var(--text-2); margin: 0 0 22px}
.cta-note { font-size: .85rem; color: var(--muted); margin-top: 14px}

/* Local-first wedge */

@media (max-width: 720px) {  }


/* Tags marquee */
.tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 28px 0 0}
.tag {
  padding: 8px 14px; border-radius: var(--radius-pill);
  background: var(--elevated); border: 1px solid var(--glass-border);
  color: var(--text-2); font-size: .88rem; font-weight: 500}

/* Page (inner marketing) */
.page-hero { padding: 48px 0 24px; max-width: 720px}
.page-hero h1 {
  font-family: var(--display); font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  margin: 0 0 14px; line-height: 1.15}
.answer-first {
  font-size: 1.2rem; color: var(--text); font-weight: 500;
  padding: 18px 20px; margin: 0 0 28px;
  border-left: 3px solid var(--gold);
  background: var(--glass); border-radius: 0 var(--radius-md) var(--radius-md) 0}
.prose { max-width: 720px}
.prose h2 { font-size: 1.25rem; margin: 36px 0 10px}
.prose p, .prose li { color: var(--text-2)}
.prose ul { padding-left: 1.2rem}


.ladder { display: grid; gap: 8px; max-width: 520px}


.site-footer {
  margin-top: 72px; padding: 40px 0 48px;
  border-top: 1px solid var(--glass-border);
  font-size: .88rem; color: var(--muted)}
.site-footer .wrap {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px}
@media (max-width: 720px) { .site-footer .wrap { grid-template-columns: 1fr} }
.site-footer a { color: var(--text-2)}
.site-footer a:hover { color: var(--gold)}
.site-footer h4 {
  margin: 0 0 12px; font-size: .75rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted); font-weight: 600}
.site-footer ul { list-style: none; margin: 0; padding: 0}
.site-footer li { margin: 0 0 8px}


/* Play mode (hidden until data-cta-mode="play") */
[data-cta-mode="waitlist"] .cta-play { display: none !important}
[data-cta-mode="play"] .cta-waitlist { display: none !important}


.coming-soon { color: var(--muted); font-size: .9rem}
.btn-soon,
span.btn-soon {
  background: var(--elevated);
  color: var(--muted);
  border: 1px dashed var(--glass-border);
  box-shadow: none;
  cursor: default;
  pointer-events: none;
  font-weight: 650}
.btn-soon:hover { transform: none; color: var(--muted); box-shadow: none}
.cta-play-stack {
  display: flex; flex-direction: column; align-items: center; gap: 10px}

@media (prefers-reduced-motion: reduce) {
  
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important}
  .btn:hover, .btn:active, .pillar:hover, .phone:hover, .guide-card:hover, .step:hover {
    transform: none !important}
  .fox-stage picture,
  .fox-stage > img,
  .fox-stage::before,
  .ph-kitsune-stage img,
  .btn-primary::after { animation: none !important}


}


/* ========== Wave 5a — long-scroll foundation (RULES_KAIRSUN_WEB.md) ==========
 * Contract (N beats, full catalog — not 4):
 *   main.story > .story-beat | .story-pair[data-feature=home|water|routine|…]
 * Ambient fauna/particles: OUTSIDE phones only (see 5c + hard bans below).
 * Inside .phone-screen: closed UI only — never fauna/trees/fake sanctuary.
 * Snap: NONE. Long scroll is never hijacked (PASS 2 — 2026-10-03).
 * Motion CSS-only; prefers-reduced-motion honored.
 * ========================================================================= */

/* Catalog beat accents (5b adds achievements/routine/plant/widgets/settings) */
.story-beat,
.story-pair {
  --beat-accent: var(--mastery);
  --beat-accent-soft: rgba(45, 212, 191, 0.16)}
.story-beat[data-feature="home"],
.story-pair[data-feature="home"] {
  --beat-accent: var(--mastery);
  --beat-accent-soft: rgba(45, 212, 191, 0.18)}
.story-beat[data-feature="water"],
.story-pair[data-feature="water"] {
  --beat-accent: #0EA5E9;
  --beat-accent-soft: rgba(14, 165, 233, 0.18)}
.story-beat[data-feature="notes"],
.story-pair[data-feature="notes"] {
  --beat-accent: #A78BFA;
  --beat-accent-soft: rgba(167, 139, 250, 0.16)}
.story-beat[data-feature="mood"],
.story-pair[data-feature="mood"] {
  --beat-accent: #B06EFF;
  --beat-accent-soft: rgba(176, 110, 255, 0.16)}
.story-beat[data-feature="skills"],
.story-pair[data-feature="skills"] {
  --beat-accent: var(--gold-base);
  --beat-accent-soft: rgba(245, 196, 81, 0.16)}
.story-beat[data-feature="meals"],
.story-pair[data-feature="meals"] {
  --beat-accent: #FB923C;
  --beat-accent-soft: rgba(251, 146, 60, 0.16)}
.story-beat[data-feature="flow"],
.story-pair[data-feature="flow"] {
  --beat-accent: var(--mastery);
  --beat-accent-soft: rgba(45, 212, 191, 0.2)}
.story-beat[data-feature="sanctuary"],
.story-beat[data-feature="mastery"],
.story-pair[data-feature="sanctuary"],
.story-pair[data-feature="mastery"],
.story-pair[data-feature="tree"] {
  --beat-accent: var(--gold);
  --beat-accent-soft: rgba(245, 196, 81, 0.18)}
.story-beat[data-feature="kitsune"],
.story-pair[data-feature="kitsune"],
.story-pair[data-feature="mascota"] {
  --beat-accent: #2DD4BF;
  --beat-accent-soft: rgba(45, 212, 191, 0.2)}
.story-beat[data-feature="limits"],
.story-pair[data-feature="limits"] {
  --beat-accent: #F87171;
  --beat-accent-soft: rgba(248, 113, 113, 0.14)}
.story-beat[data-feature="seeds"],
.story-pair[data-feature="seeds"],
.story-pair[data-feature="currency"] {
  --beat-accent: var(--gold-base);
  --beat-accent-soft: rgba(255, 215, 119, 0.18)}

/* Particle-ish CSS dots — page chrome ONLY (never inside phone) */
main.story { position: relative; isolation: isolate}
main.story > .story-dots {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden}
main.story > .story-dots::before,
main.story > .story-dots::after {
  content: "";
  position: absolute;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--gold-base);
  opacity: 0;
  box-shadow:
    8vw 10vh 0 0 rgba(45, 212, 191, 0.32),
    16vw 26vh 0 1px rgba(245, 196, 81, 0.24),
    30vw 16vh 0 0 rgba(45, 212, 191, 0.2),
    48vw 40vh 0 1px rgba(245, 196, 81, 0.18),
    62vw 12vh 0 0 rgba(14, 165, 233, 0.22),
    78vw 34vh 0 0 rgba(45, 212, 191, 0.28),
    88vw 20vh 0 1px rgba(245, 196, 81, 0.2),
    10vw 58vh 0 0 rgba(167, 139, 250, 0.2),
    36vw 72vh 0 0 rgba(244, 114, 182, 0.16),
    54vw 64vh 0 1px rgba(45, 212, 191, 0.22),
    70vw 82vh 0 0 rgba(245, 196, 81, 0.16),
    90vw 70vh 0 0 rgba(14, 165, 233, 0.18),
    22vw 90vh 0 0 rgba(45, 212, 191, 0.14),
    66vw 94vh 0 1px rgba(251, 146, 60, 0.14)}
main.story > .story-dots::after {
  background: var(--mastery);
  box-shadow:
    12vw 18vh 0 0 rgba(245, 196, 81, 0.18),
    26vw 44vh 0 0 rgba(45, 212, 191, 0.16),
    42vw 8vh 0 1px rgba(14, 165, 233, 0.2),
    58vw 28vh 0 0 rgba(176, 110, 255, 0.14),
    74vw 52vh 0 0 rgba(245, 196, 81, 0.18),
    86vw 14vh 0 0 rgba(45, 212, 191, 0.2),
    18vw 76vh 0 0 rgba(45, 212, 191, 0.14),
    50vw 88vh 0 0 rgba(14, 165, 233, 0.14)}
@media (max-width: 600px) {
  /* Fewer dots on small screens — craft without clutter */
  main.story > .story-dots::after { display: none}
  main.story > .story-dots::before {
    box-shadow:
      10vw 14vh 0 0 rgba(45, 212, 191, 0.28),
      28vw 32vh 0 1px rgba(245, 196, 81, 0.2),
      72vw 18vh 0 0 rgba(14, 165, 233, 0.2),
      84vw 48vh 0 0 rgba(45, 212, 191, 0.22),
      18vw 68vh 0 0 rgba(167, 139, 250, 0.16),
      56vw 82vh 0 1px rgba(245, 196, 81, 0.14)}
}
main.story > .story-beat,
main.story > .hero,
main.story > .section,
main.story > .story-rail {
  position: relative;
  z-index: 1}

/* HARD BAN — ambient never leaks into phone chrome / screens */
.phone-screen .story-fauna,
.phone-screen .story-dots,
.phone-screen .bug,
.phone-screen .sil-tree,
.phone-screen .ambient-tree,
.phone-bezel > .story-fauna,
.phone-bezel > .story-dots,
.phone-frame > .story-fauna,
.phone-frame .bug,
.phone-frame .sil-tree,
.ph-ambient .bug,
.ph-ambient .sil-tree {
  display: none !important;
  animation: none !important;
  content: none !important}

/* Magnetic CTA (CSS pull-field; pointer-follow magnet = Phase 1 JS) */
.btn-primary.magnetic,
#cta-primary,
.cta-band .btn-primary.cta-waitlist,
.hero-cta .btn-primary {
  --mag-lift: 0px;
  --mag-scale: 1;
  transform: translateY(var(--mag-lift)) scale(var(--mag-scale));
  transition:
    transform var(--dur-2, .28s) var(--ease-spring, cubic-bezier(.2,.9,.2,1)),
    box-shadow var(--dur-2, .28s) var(--ease-out, ease),
    background var(--dur-1, .18s) var(--ease-out, ease),
    border-color var(--dur-1, .18s) var(--ease-out, ease),
    color var(--dur-1, .15s) var(--ease-out, ease)}
@media (prefers-reduced-motion: no-preference) {
  .btn-primary.magnetic:hover,
  #cta-primary:hover,
  .cta-band .btn-primary.cta-waitlist:hover,
  .hero-cta .btn-primary:hover {
    --mag-lift: var(--lift-3, -5px);
    --mag-scale: 1.03;
    box-shadow:
      0 16px 42px rgba(245, 196, 81, 0.5),
      0 0 28px rgba(245, 196, 81, 0.32),
      0 0 56px rgba(45, 212, 191, 0.16),
      0 0 0 1px rgba(255, 255, 255, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.45)}
  .btn-primary.magnetic:active,
  #cta-primary:active,
  .cta-band .btn-primary.cta-waitlist:active,
  .hero-cta .btn-primary:active {
    --mag-lift: var(--lift-1, -1px);
    --mag-scale: var(--press-scale, 0.97)}
}
@media (hover: none) {
  /* Touch: no hover-magnet; keep press feedback via :active only */
  .btn-primary.magnetic:hover,
  #cta-primary:hover,
  .cta-band .btn-primary.cta-waitlist:hover,
  .hero-cta .btn-primary:hover {
    --mag-lift: 0px;
    --mag-scale: 1}
}

/* Phone tilt — device chrome only; screens stay honest UI */

.phone .phone-bezel,
.story-phone .phone-bezel {
  transform: rotateX(0) rotateY(0);
  transform-style: preserve-3d}
@media (min-width: 601px) and (prefers-reduced-motion: no-preference) {
  .phone:nth-child(4n+1) .phone-bezel,
  .story-pair:nth-child(4n+1) .story-phone .phone-bezel {
    transform: rotateY(-2.2deg) rotateX(1deg)}
  .phone:nth-child(4n+2) .phone-bezel,
  .story-pair:nth-child(4n+2) .story-phone .phone-bezel {
    transform: rotateY(2.2deg) rotateX(1deg)}
  .phone:nth-child(4n+3) .phone-bezel,
  .story-pair:nth-child(4n+3) .story-phone .phone-bezel {
    transform: rotateY(-1.4deg) rotateX(0.6deg)}
  .phone:nth-child(4n+4) .phone-bezel,
  .story-pair:nth-child(4n+4) .story-phone .phone-bezel {
    transform: rotateY(1.6deg) rotateX(0.7deg)}
  .phone:hover .phone-bezel,
  .story-phone:hover .phone-bezel {
    transform: rotateY(-8deg) rotateX(4deg) translateZ(10px) scale(1.015)}
  .phone:nth-child(even):hover .phone-bezel,
  .story-pair:nth-child(even) .story-phone:hover .phone-bezel {
    transform: rotateY(8deg) rotateX(4deg) translateZ(10px) scale(1.015)}
}
@media (max-width: 600px) {
  .phone .phone-bezel,
  .story-phone .phone-bezel {
    transform: none !important}
  @media (prefers-reduced-motion: no-preference) {
    .phone:hover .phone-bezel,
    .story-phone:hover .phone-bezel {
      transform: translateY(-3px) !important}
  }
}

/* Richer view() — cyclic stagger scales to full catalog */


@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    /* P0 opacity: NEVER view()-fade the kilometric .story-rail (ghost catalog).
       Animate compact beats + pairs only; from-opacity stays readable. */
    main.story > .story-beat {
      animation: story-enter linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 28%}
    main.story > .story-beat:nth-child(4n+2) { animation-range: entry 4% cover 30%}
    main.story > .story-beat:nth-child(4n+3) { animation-range: entry 8% cover 32%}
    main.story > .story-beat:nth-child(4n+4) { animation-range: entry 12% cover 34%}

    
    main.story .story-pair:nth-child(4n+1) .story-copy {
      animation-name: story-enter-left}
    main.story .story-pair:nth-child(4n+2) .story-copy,
    main.story .story-pair:nth-child(4n+4) .story-copy {
      animation-name: story-enter-right}
  }
}
@supports not (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    main.story > .story-beat,
    main.story .story-pair {
      animation: soft-rise 0.8s cubic-bezier(.2,.8,.2,1) both}
  }
}

@media (prefers-reduced-motion: reduce) {
  main.story > .story-dots,
  main.story > .story-dots::before,
  main.story > .story-dots::after {
    display: none !important;
    animation: none !important}
  .phone .phone-bezel,
  .story-phone .phone-bezel,
  .phone:hover .phone-bezel,
  .story-phone:hover .phone-bezel {
    transform: none !important}
  .btn-primary.magnetic:hover,
  #cta-primary:hover,
  .cta-band .btn-primary.cta-waitlist:hover,
  .hero-cta .btn-primary:hover {
    --mag-lift: 0px !important;
    --mag-scale: 1 !important}
}
/* ========== /Wave 5a ========== */

/* ========== Wave 5b — FULL CATALOG story pairs + logros + denser P0 ==========
 * Overrides Wave 5 forced 100svh (empty black). Phones start FILLED (no long blur).
 * Achievements medals match app MedallaDeLogro + vitrina anillo oro.
 * ========================================================================= */

/* P0 denser: kill forced full-viewport empty beats */
@media (min-width: 900px) and (min-height: 700px) {
  main.story > .story-beat,
  main.story > .hero.story-beat {
    min-height: 0 !important;
    justify-content: flex-start !important}
}
.section { padding: 48px 0}
.section + .section { padding-top: 36px}
.section-sub.story-sub-dense,
.story-sub-dense { margin: 0 0 18px; max-width: 62ch; font-size: 1rem}
.story-rail { padding: 28px 0 12px}

.story-rail-foot { margin-top: 8px}

.story-beat[data-feature="achievements"] {
  --beat-accent: var(--gold-base);
  --beat-accent-soft: rgba(255, 215, 119, 0.2)}
.story-beat[data-feature="routine"] {
  --beat-accent: #FFB800;
  --beat-accent-soft: rgba(255, 184, 0, 0.16)}
.story-beat[data-feature="plant"] {
  --beat-accent: #5DBE8E;
  --beat-accent-soft: rgba(93, 190, 142, 0.16)}
.story-beat[data-feature="widgets"] {
  --beat-accent: #6E7BFF;
  --beat-accent-soft: rgba(110, 123, 255, 0.16)}
.story-beat[data-feature="settings"] {
  --beat-accent: #9BA3B0;
  --beat-accent-soft: rgba(155, 163, 176, 0.14)}

/* Story pair: device + copy — sticky phone on desktop */
.story-pair {
  padding: 28px 0;
  border-top: 1px solid rgba(255,255,255,0.04)}
.story-pair-inner {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: 28px 40px;
  align-items: center}
.story-pair-rev .story-pair-inner {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px)}
.story-pair-rev .story-device { order: 2}
.story-pair-rev .story-copy { order: 1}
@media (max-width: 820px) {
  .story-pair-inner,
  .story-pair-rev .story-pair-inner {
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 420px;
    margin-inline: auto}
  .story-pair-rev .story-device,
  .story-pair-rev .story-copy { order: unset}
  .story-device { max-width: 280px; margin-inline: auto}
}
@media (min-width: 821px) {
  .story-device {
    position: sticky;
    top: calc(var(--header-h, 64px) + 120px);
    align-self: start}
}

.story-copy .vista-kicker {
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--beat-accent, var(--mastery))}
.story-copy h3 {
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15}
.story-copy > p { margin: 0 0 10px; color: var(--text-2); font-size: 1.02rem}
.cause-effect {
  margin: 12px 0 0 !important;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid color-mix(in srgb, var(--beat-accent, var(--mastery)) 35%, transparent);
  background: var(--beat-accent-soft, rgba(45,212,191,0.1));
  font-size: 0.92rem !important;
  color: var(--text) !important}
.story-proof {
  margin: 10px 0;
  padding: 0 0 0 1.1em;
  color: var(--text-2);
  font-size: 0.95rem}
.story-proof li { margin: 0 0 4px}
.story-exception {
  margin-top: 12px !important;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(245,196,81,0.45);
  background: rgba(245,196,81,0.08);
  font-size: 0.95rem !important;
  color: var(--text) !important}
.story-more {
  margin-top: 10px;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  background: var(--glass);
  padding: 8px 12px}
.story-more summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--gold);
  min-height: 44px;
  display: flex;
  align-items: center}
.story-more[open] summary { color: var(--mastery)}
.story-more p { margin: 6px 0 4px; font-size: 0.88rem; color: var(--muted)}

.story-device { margin: 0}
.story-device .vista-note {
  margin: 10px 0 0;
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted)}


/* Faster view() entrances for story pairs */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {

    .story-pair .story-copy {
      animation: soft-rise linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 28%}
  }
}


/* --- Module phone screens --- */


/* Water tank */


/* Routine extras */


/* Streak card on flow */


/* Mood picker — checkbox/radio CSS interactivity */


/* Notes */


/* Skills hub / card */


/* Timer ring — conic-gradient */


/* === LOGROS — MedallaDeLogro + Vitrina === */


/* Economy wallet */


/* Tree real art */


/* Widgets */


/* Settings */


/* Stronger mid-page CTA proof */
.cta-band {
  border: 1px solid rgba(245,196,81,0.28);
  box-shadow: 0 0 40px rgba(45,212,191,0.08), 0 20px 50px rgba(0,0,0,0.35)}

@media (prefers-reduced-motion: reduce) {
  .story-pair .story-phone,
  .story-pair .story-copy {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important}

}
/* ========== /Wave 5b ========== */

/* ========== Wave 5c — ambient OUTSIDE phones + full responsive ========== */
.story-rail { position: relative; overflow: clip}
.story-fauna {
  position: absolute; inset: 0;
  }
.story-fauna .bug {
  position: absolute;
  ;
  ;
  }
.story-fauna .bug.bee { background: linear-gradient(90deg, #1a1a1a 0 20%, #f5c451 20% 40%, #1a1a1a 40% 60%, #f5c451 60% 80%, #1a1a1a 80%); height: 7px; border-radius: 6px}
.story-fauna .bug.bf { height: 10px;
  background:
    radial-gradient(circle at 30% 50%, rgba(167,139,250,0.9) 0 35%, transparent 36%),
    radial-gradient(circle at 70% 50%, rgba(244,114,182,0.85) 0 35%, transparent 36%)}
.story-fauna .bug:nth-child(1) { left: 6%; top: 12%}
.story-fauna .bug:nth-child(2) { left: 18%; top: 48%}
.story-fauna .bug:nth-child(3) { right: 10%; top: 22%}
.story-fauna .bug:nth-child(4) { right: 22%; top: 62%}
.story-fauna .bug:nth-child(5) { left: 40%; top: 78%}
.story-fauna .bug:nth-child(6) { left: 72%; top: 8%}


.story-rail > .wrap,
.story-rail > .story-pair { position: relative; z-index: 1}

/* Responsive phone sizing */

.story-pair-inner { width: 100%}
@media (max-width: 600px) {
  .story-pair { padding: 20px 0}
  .story-pair-inner { gap: 14px; padding: 0 4px}
  .story-device { max-width: 260px}
  .story-copy h3 { font-size: 1.25rem}
  .hero { padding: 40px 0 28px; gap: 24px}
  .pillars { gap: 12px}
  .pillar { padding: 18px}
  .section { padding: 36px 0}

}
@media (min-width: 601px) and (max-width: 900px) {
  .story-pair-inner {
    grid-template-columns: minmax(200px, 260px) minmax(0, 1fr) !important;
    gap: 22px}
  .story-pair-rev .story-pair-inner {
    grid-template-columns: minmax(0, 1fr) minmax(200px, 260px) !important}
  .story-device { max-width: 260px; position: sticky; top: calc(var(--header-h, 64px) + 120px)}
}
@media (min-width: 1100px) {
  .story-pair-inner {
    grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
    gap: 48px;
    max-width: 1080px}
  .story-pair-rev .story-pair-inner {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 320px)}
}

/* Tree art used OUTSIDE phone as atmosphere — never claim inside fake sanctuary UI */


.badge-dev {
  display: inline-block; margin-left: 6px;
  padding: 2px 8px; border-radius: 999px;
  font-size: 0.7rem; font-weight: 700;
  background: rgba(148,163,184,0.2); color: var(--muted);
  vertical-align: middle}

/* Fauna density by breakpoint — full responsive craft */
@media (max-width: 600px) {
  .story-fauna .bug:nth-child(n+4) { display: none}
  .story-fauna .bug { opacity: 0.4; width: 8px; height: 6px}
  .story-fauna .bug.bf { width: 11px; height: 8px}
  /* Mobile scroll story: tighter pairs, phone first readability */
  main.story .story-pair {
    scroll-margin-top: calc(var(--header-h, 64px) + 6px)}
  .story-copy > p { font-size: 0.98rem}
  .cause-effect, .story-exception { font-size: 0.88rem !important}
  .cta-band { padding: 28px 18px}
  .hero h1 { font-size: clamp(1.85rem, 8vw, 2.4rem)}
}
@media (min-width: 601px) and (max-width: 900px) {
  .story-fauna .bug:nth-child(n+6) { display: none}
  .story-pair { scroll-margin-top: calc(var(--header-h, 64px) + 8px)}
}
@media (min-width: 901px) {
  .story-pair { scroll-margin-top: calc(var(--header-h, 64px) + 10px)}
}

/* Guarantee: fauna layer cannot paint over/into device frame interiors */
.story-device,
.story-phone,
.phone-frame {
  position: relative;
  z-index: 2}
.story-fauna {
  z-index: 0}

@media (prefers-reduced-motion: reduce) {
  .story-fauna .bug,
  .story-fauna .sil-tree {
    animation: none !important}
  .story-fauna .bug { opacity: 0.35}
}
/* ========== /Wave 5c ========== */

/* ========== Wave 5d — 320–1440+ golden responsive + SVG ambient ==========
 * Nav / hero / story / phones / footer. Fauna = assets OUTSIDE phones only.
 * ========================================================================= */

html { overflow-x: clip}
body.marketing { overflow-x: clip}

.site-header .wrap {
  gap: 10px;
  padding-inline: max(12px, env(safe-area-inset-left, 0px)) max(12px, env(safe-area-inset-right, 0px));
}
.wrap {
  padding-inline: max(12px, env(safe-area-inset-left, 0px) + 12px)
                  max(12px, env(safe-area-inset-right, 0px) + 12px)}
.nav-cta .cta-short { display: none; }
.nav-cta .cta-full { display: inline; }

/* Hero fauna — outside any device frame */
.hero-visual { position: relative; isolation: isolate}


.hero-visual .fox-stage { z-index: 1} /* P0 sticky: do NOT reset position (relative killed sticky fox) */
@media (min-width: 861px) and (prefers-reduced-motion: no-preference) {
  .hero-visual .fox-stage {
    position: sticky;
    top: calc(var(--header-h) + 28px)}
}

/* SVG fauna inside .story-fauna — replace CSS blob sizing */
.story-fauna .bug {
  background: none !important;
  border-radius: 0;
  filter: drop-shadow(0 3px 8px rgba(0,0,0,0.35));
  }


.story-fauna .bug.moth {
  width: 20px; left: 55%; top: 36%}


/* HARD BAN extended — hero fauna never inside phones */
.phone-screen .hero-fauna,
.phone-bezel .hero-fauna,
.phone-frame .hero-fauna,
.phone-screen img.bug,
.phone-screen img.sil-tree {
  display: none !important}

/* ---- 320px golden (narrow phones) ---- */
@media (max-width: 380px) {
  .site-header .wrap { padding-block: 10px; }
  .logo { font-size: 0.95rem; gap: 8px}
  .logo img { width: 30px; height: 30px}
  .nav-cta { padding-inline: 12px; font-size: 0.82rem; min-height: 40px; }
  .nav-cta .cta-full { display: none; }
  .nav-cta .cta-short { display: inline; }
  .wrap { padding-inline: 12px}
  .hero { padding: 28px 0 20px; gap: 18px}
  .hero h1 { font-size: clamp(1.65rem, 9vw, 2rem)}
  .lead { font-size: 1rem; max-width: 100%}
  .hero-cta { flex-direction: column; align-items: stretch}
  .hero-cta .btn { width: 100%}


  .hero-visual { min-height: 220px}
  .fox-stage { width: min(280px, 78vw)}


  .story-device { max-width: 240px}
  .story-pair { padding: 16px 0}
  .story-copy h3 { font-size: 1.15rem}
  .story-rail-head .section-title { font-size: 1.35rem}
  .section-title { font-size: 1.3rem}
  .pillar h3 { font-size: 1.02rem}
  .site-footer { margin-top: 48px; padding: 28px 0 36px}
  .site-footer .wrap { gap: 20px}

  .cta-band h2 { font-size: 1.25rem}
  .btn { min-height: 48px; padding-inline: 16px; font-size: 0.95rem}
}

/* ---- 381–600 phone / large phone ---- */
@media (min-width: 381px) and (max-width: 600px) {
  .hero-cta .btn { flex: 1 1 auto; min-width: min(100%, 200px)}
  .story-device { max-width: 268px}
  .nav-cta { max-width: 100%; }
}

/* ---- tablet 601–900: stack story when sticky fights ---- */
@media (min-width: 601px) and (max-width: 820px) {
  .story-pair-inner,
  .story-pair-rev .story-pair-inner {
    grid-template-columns: 1fr !important;
    gap: 16px;
    max-width: 480px;
    margin-inline: auto}
  .story-pair-rev .story-device,
  .story-pair-rev .story-copy { order: unset}
  .story-device {
    max-width: 280px;
    margin-inline: auto;
    position: static}
  .hero { gap: 32px}
}

/* ---- desktop 901–1099 ---- */
@media (min-width: 901px) and (max-width: 1099px) {
  .story-pair-inner {
    max-width: 960px;
    margin-inline: auto}
}

/* ---- wide 1440+ ---- */
@media (min-width: 1440px) {
  .wrap { max-width: var(--max)}
  
  .hero { padding-block: 72px 56px; gap: 56px}
  .story-fauna .bug { opacity: 0.78}

}

/* Phone frame scale on tiny widths — keep bezel readable */
@media (max-width: 360px) {
  .phone-bezel,
  .story-phone.phone-bezel,
  .story-device .phone-bezel {
    border-radius: 22px;
    padding: 8px 7px 10px}

}

/* Footer 2-col mid before 1-col */
@media (max-width: 900px) and (min-width: 721px) {
  .site-footer .wrap { grid-template-columns: 1.2fr 1fr 1fr; gap: 20px}
}

@media (prefers-reduced-motion: reduce) {

}
/* ========== /Wave 5d ========== */

/* Wire real mood / logros art inside closed phone UIs */


/* ========== Wave 5e — per-beat ambient (scroll-local) OUTSIDE phones ========== */
.story-pair {
  position: relative;
  isolation: isolate}
.story-pair::before,
.story-pair::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
  width: 28px;
  height: 20px;
  background-repeat: no-repeat;
  background-size: contain;
  ;
  filter: drop-shadow(0 3px 8px rgba(0,0,0,0.35))}
.story-pair::before {
  left: max(4px, 2%);
  top: 18px;
  background-image: url("/assets/images/app/ambient/fauna/butterfly-violet-pink.svg")}
.story-pair::after {
  right: max(4px, 2%);
  top: 42%;
  width: 22px;
  height: 16px;
  background-image: url("/assets/images/app/ambient/fauna/bee-02.svg")}
.story-pair-rev::before {
  background-image: url("/assets/images/app/ambient/fauna/butterfly-gold-orange.svg");
  left: auto; right: max(4px, 2%)}
.story-pair-rev::after {
  background-image: url("/assets/images/app/ambient/fauna/bee-01.svg");
  right: auto; left: max(4px, 2%);
  top: 22%}
.story-pair > .wrap,
.story-pair > .story-pair-inner,
.story-pair .story-copy {
  position: relative;
  z-index: 1}
/* P0 sticky: story-device keeps sticky from ≥821px rule — only raise z-index here */
.story-pair .story-device {
  z-index: 1}
@media (min-width: 821px) {
  .story-pair .story-device {
    position: sticky;
    top: calc(var(--header-h, 64px) + 120px);
    align-self: start}
}
/* never paint pseudo fauna into phone chrome */
.phone-bezel::before,
.phone-bezel::after,
.phone-screen::before,
.phone-screen::after,
.story-phone::before,
.story-phone::after {
  content: none !important;
  background: none !important}
@media (max-width: 600px) {
  .story-pair::before { width: 20px; height: 14px; opacity: 0.42; top: 8px}
  .story-pair::after { width: 16px; height: 12px; opacity: 0.4}
  /* hide every other beat's fauna to avoid clutter */
  .story-pair:nth-of-type(even)::after { display: none}
}
@media (min-width: 1100px) {
  .story-pair::before { width: 32px; height: 24px; opacity: 0.65}
  .story-pair::after { width: 26px; height: 18px; opacity: 0.6}
}
@media (prefers-reduced-motion: reduce) {
  .story-pair::before,
  .story-pair::after { animation: none !important; opacity: 0.35}
}
/* ========== /Wave 5e ========== */

/* ========== Phase 1 — Founder waitlist embed (iframe + embed.js dynamicHeight) ========== */
.founder-waitlist {
  position: relative;
  scroll-margin-top: 88px}
.founder-waitlist-shell {
  position: relative;
  isolation: isolate;
  /* Full wrap width — no narrow 560/600 card */
  ;
  ;
  margin: 0 auto;
  padding: 28px 0 20px;
  text-align: center}


.founder-waitlist-shell > .fw-header,
.founder-waitlist-shell > .tally-embed-shell,
.founder-waitlist-shell > .fw-outbound,
.founder-waitlist-shell > .fw-fallback {
  position: relative;
  z-index: 1}
.fw-header {
  margin: 0 auto 18px;
  max-width: 42rem}
.fw-header .eyebrow {
  margin-bottom: 10px}
.fw-header h2 {
  font-family: var(--font);
  font-weight: 800;
  margin: 0 0 12px;
  font-size: clamp(1.55rem, 4.2vw, 2rem);
  letter-spacing: -0.02em;
  color: var(--text);
  text-wrap: balance}


.fw-assurances {
  margin: 12px 0 0;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mastery);
  font-weight: 600}

.tally-embed-shell {
  position: relative;
  width: 100%;
  max-width: none;
  margin-inline: auto;
  /* CLS fix: reserve measured Tally final height BEFORE the iframe shows, so
   * dynamicHeight growth (611→1158 mobile) never pushes .fw-after+footer.
   * Mobile-first 1160px (= 1158 iframe + 2px shell border); desktop override
   * below. min- (not fixed) height so a taller-than-measured form still grows
   * instead of clipping. */
  min-height: 1160px;
  overflow: clip; /* clip, not hidden: no scroll container, no inner scroll chrome */
  padding: 10px 12px 8px;
  border: 1px solid rgba(245, 196, 81, 0.3);
  border-radius: 18px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.07),
    0 18px 44px rgba(0,0,0,0.34);
  /* Dark glass shell — never a white slab while the embed loads */
  background:
    linear-gradient(165deg, rgba(245,196,81,0.12), rgba(45,212,191,0.08) 52%, rgba(9,12,20,0.94)),
    rgba(9, 12, 20, 0.94);
  backdrop-filter: none;
  -webkit-backdrop-filter: none}
.tally-embed-shell::before {
  content: none}
.tally-embed-shell > .tally-embed {
  position: relative;
  z-index: 1}
.tally-embed {
  display: block !important;
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100%;
  /* Sane reserve; embed.js dynamicHeight adjusts — do not !important-lock height */
  min-height: 640px;
  height: 640px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color-scheme: light}
.fw-outbound {
  margin: 18px auto 0;
  max-width: none;
  width: 100%;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(245,196,81,0.35);
  background:
    linear-gradient(160deg, rgba(245,196,81,0.12), rgba(45,212,191,0.06)),
    rgba(18, 18, 22, 0.92);
  text-align: center}
.fw-outbound-kicker {
  margin: 0 0 10px;
  font-size: 0.82rem;
  ;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-base)}
.fw-outbound-btn {
  width: 100%;
  max-width: 320px;
  margin-inline: auto}
.fw-fallback {
  margin: 10px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5}
.fw-fallback a {
  color: var(--mastery);
  text-decoration: underline;
  text-underline-offset: 3px}
.fw-fallback a:hover { color: var(--gold-base)}
.fw-outbound a:focus-visible,
.tally-embed-shell:focus-within {
  outline: 2px solid var(--mastery);
  outline-offset: 3px;
  border-radius: var(--radius-md)}
.tally-embed:focus-visible {
  outline: 2px solid var(--gold-base);
  outline-offset: 2px}

/* Play mode inside #waitlist keeps existing cta-band look */
.founder-waitlist > .cta-band.cta-play {
  margin-top: 8px}

@media (min-width: 600px) {
  .founder-waitlist-shell { padding: 36px 0 24px}
  .tally-embed-shell { padding: 12px 14px 10px}

}
@media (min-width: 900px) {
  .founder-waitlist-shell { padding: 44px 0 28px}
  /* CLS fix (desktop): measured Tally final ≈978px iframe + 2px border. */
  .tally-embed-shell { min-height: 980px}


}
@media (prefers-reduced-motion: no-preference) {
  /* CLS fix: overshoot beyond the reserve (taller-than-measured form) grows
   * smoothly via the JS-pinned min-height instead of jumping. Reduced-motion
   * keeps the instant jump (global kill). */
  .tally-embed-shell { transition: min-height 0.35s ease }
}
@media (max-width: 480px) {
  .founder-waitlist-shell { padding: 22px 0 16px}
  .tally-embed-shell { padding: 8px}


}
@media (prefers-reduced-motion: reduce) {

  .tally-embed-shell::before { display: none}
}
/* ========== /Phase 1 Founder waitlist ========== */

/* ========== P0 hotfix — phone size + filled screens + fauna discipline ==========
 * Caps giant empty black bezels; densifies sparse module UIs; fauna stays
 * intentional low-opacity decoration (never orphan mid-page giants).
 * ========================================================================= */
.story-device {
  width: 100%;
  max-width: min(280px, 100%);
  margin-inline: auto}
.phone-bezel,
.story-phone,
.story-phone.phone-bezel,
.story-device .phone-bezel {
  width: 100%;
  max-width: 280px;
  max-height: 600px;
  margin-inline: auto;
  aspect-ratio: 9 / 19.2;
  /* Prefer height cap over runaway aspect growth on ultrawide */
  height: auto}
@supports (height: 1lh) {
  .phone-bezel,
  .story-phone.phone-bezel,
  .story-device .phone-bezel {
    max-height: min(600px, 72vh)}
}
@media (min-width: 901px) {
  
  
  
}
@media (min-width: 1440px) {
  .story-device,
  .phone-bezel,
  .story-phone.phone-bezel,
  .story-device .phone-bezel {
    max-width: 280px;
    max-height: 600px}
}

/* Kill residual full-viewport empty black story beats */
main.story > .story-beat,
main.story > .hero.story-beat {
  min-height: 0 !important}
.phone-screen {
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden}


/* Ambient: low opacity, clip to rail, never giant orphans */
.story-fauna {
  opacity: 0.7;
  pointer-events: none;
  overflow: hidden}
.story-fauna .bug {
  max-width: 28px !important;
  width: 18px !important;
  height: auto !important;
  opacity: 0.38 !important}
.story-fauna .bug.bf { width: 22px !important}
.story-fauna .bug.bee { width: 16px !important}

.story-pair::before,
.story-pair::after {
  opacity: 0.35 !important;
  max-width: 28px;
  max-height: 22px}


/* Never let kitsune / pet art escape phone chrome as page-level orphan */
.story-pair > img,
.story-device > img:not(.ambient-tree),
.story-phone > img,
.phone-bezel > img {
  display: none !important}


/* ========== P0b — contrast + tighter home phone ========== */
.story-device,
.phone-bezel,
.story-phone.phone-bezel,
.story-device .phone-bezel {
  max-width: 260px !important;
  max-height: 560px !important}
@media (min-width: 901px) {
  
  
  
}
.phone-screen {
  color: #f4f4f5 !important}


/* ========== P0c — hero prize cluster + no orphan props near kitsune ========== */
/* PASS 2: scoped <1440px — ≥1440 los gutters vuelven a respirar (ver 42). */
@media (max-width: 1439px) {

}
.hero-prize {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  ;
  margin: 0 0 12px;
  ;
  max-width: 42rem;
  ;
  ;
  ;
  }
.hero-prize-label {
  margin: 0;
  ;
  ;
  ;
  ;
  }
.hero-prize-pills {
  display: flex;
  flex-wrap: wrap;
  ;
  margin: 0;
  padding: 0;
  list-style: none;
  width: 100%}
.hero-prize-pills li {
  display: inline-flex;
  align-items: center;
  ;
  ;
  ;
  ;
  ;
  ;
  ;
  line-height: 1.2}
.hero-prize-pills li img {
  ;
  flex-shrink: 0}


.fw-prize {
  margin: 14px auto 12px;
  max-width: 36rem;
  text-align: left}
.fw-prize .hero-prize-pills { justify-content: center}
.fw-prize .hero-prize-label,
.fw-prize .hero-prize-earn { text-align: center; width: 100%}

@media (max-width: 860px) {
  .hero-prize { align-items: center; text-align: center}
  .hero-prize-pills { justify-content: center}
  .hero-prize-earn { text-align: center}
}
/* Keep kitsune hero large and clean */
.fox-stage {
  width: min(400px, 88vw)}
.hero-visual { min-height: 340px}

/* ========== Companion kitsune speech (scroll story, CSS-only) ==========
 * Onboarding-tone bubbles that accompany each beat. No JS.
 * animation-timeline: view() when supported; static if reduced-motion.
 * ===================================================================== */


@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {

  }
}
@media (prefers-reduced-motion: reduce) {

}
@media (max-width: 600px) {


}

/* ========== P0d — kill waitlist/story orphan floaters + brighter phones ==========
 * PASS 2: guards scoped <1440px; ≥1440 el ambient vuelve SOLO en gutters (42). */
@media (max-width: 1439px) {

  .story-pair::before,
  .story-pair::after {
    display: none !important}
}
.story-fauna .bug,
.story-fauna .sil-tree {
  opacity: 0.18 !important;
  max-width: 22px !important}


/* Brighter closed UI inside phones — less muddy void */
.phone-screen {
  background: #0c0e14 !important}


/* ========== Language switch (ES | EN) — premium, zero JS ========== */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin: 0 4px 0 2px;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid rgba(245,196,81,0.28);
  background:
    linear-gradient(180deg, rgba(245,196,81,0.10), rgba(45,212,191,0.04)),
    rgba(9,9,11,0.55);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06)}
.lang-switch-sep {
  color: rgba(244,244,245,0.28);
  font-size: 0.75rem;
  font-weight: 600;
  user-select: none;
  padding: 0 1px}
.lang-opt {
  min-height: 32px !important;
  min-width: 36px;
  padding: 4px 10px !important;
  border-radius: 999px !important;
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase;
  color: var(--muted) !important;
  background: transparent !important;
  line-height: 1}
.lang-opt:hover {
  color: var(--text) !important;
  background: rgba(255,255,255,0.06) !important}
.lang-opt.is-active,
.lang-opt[aria-current="page"] {
  color: var(--gold-ink) !important;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold-base) 55%, var(--gold-deep)) !important;
  box-shadow: 0 4px 14px rgba(245,196,81,0.28), inset 0 1px 0 rgba(255,255,255,0.35)}
.lang-opt.is-active:hover,
.lang-opt[aria-current="page"]:hover {
  color: var(--gold-ink) !important;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold-base) 55%, var(--gold-deep)) !important}
@media (max-width: 860px) {
  .lang-switch { margin-right: 2px}
  .lang-opt { min-width: 34px; padding: 4px 8px !important}
}

/* ========== P0e — scroll opacity safety + sticky kitsune + contrast + waitlist + desktop icons ==========
 * 1) Scroll-driven fades no longer leave content wrongly transparent mid-view.
 * 2) Kitsune dialogue docks under sticky header; lines swap with premium crossfade.
 * 3) Home contrast tokens raised (mobile+desktop).
 * 4) Waitlist shell ~640–720 + tall iframe (no inner scroll).
 * 5) Desktop Seeds/Suns/medalla/mood icons forced visible + correct box.
 * ==================================================================================================== */

/* --- Contrast (home marketing) --- */
:root {
  --text: #FAFAFA;
  --text-2: #E2E8F0;
  --muted: #B8C4D6}
.section-sub,
.story-sub-dense,
.cta-note,
.fw-fallback,
.fw-note,
.hero-prize-earn,
.coming-soon,
.footer-proof,
.vistas-footnote,
.vista-note,
.story-more p,
.ph-econ-note {
  color: var(--muted)}
.lead,
.pillar p,
.step p,
.story-copy > p,
.cta-band p,
.prose p,
.prose li {
  color: var(--text-2)}
.eyebrow {
  color: var(--mastery)}

/* --- Scroll opacity polish: parents transform-only; children stay opaque once entered --- */
@keyframes story-enter {
  from { opacity: 1; transform: translateY(18px) scale(0.992); filter: none}
  to { opacity: 1; transform: none; filter: none}
}
@keyframes story-enter-left {
  from { opacity: 1; transform: translateX(-14px)}
  to { opacity: 1; transform: none}
}
@keyframes story-enter-right {
  from { opacity: 1; transform: translateX(14px)}
  to { opacity: 1; transform: none}
}


@keyframes tag-pop {
  0% { opacity: 0.001; transform: translateY(6px)}
  20% { opacity: 1; transform: none}
  100% { opacity: 1; transform: none}
}
@keyframes ks-speak-in {
  0% { opacity: 0.001; transform: translateY(8px)}
  22% { opacity: 1; transform: none}
  100% { opacity: 1; transform: none}
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    /* Full visible lifetime — no mid-scroll opacity collapse */
    main.story > .story-beat,
    main.story > .story-rail {
      animation-range: entry 0% exit 100%}
    .section .eyebrow,
    .section .section-title,
    .section .section-sub,
    .pillar, .step,
    .phone,
    .cta-band,
    .tag,
    .vistas-footnote,
    .story-pair .ks-speak,
    .ks-speak--lead {
      animation-range: entry 0% exit 100%}
    /* Avoid compounding: copy/phone inside beats don't double-fade opacity */
    main.story .story-pair .story-copy,
    main.story .story-pair .story-device,
    main.story .story-pair .story-phone {
      animation-name: story-enter-left;
      animation-timeline: view();
      animation-range: entry 0% exit 100%;
      animation-fill-mode: both}
    main.story .story-pair:nth-child(4n+2) .story-copy,
    main.story .story-pair:nth-child(4n+4) .story-copy,
    main.story .story-pair-rev .story-copy {
      animation-name: story-enter-right}
    main.story .story-pair .story-device,
    main.story .story-pair .story-phone {
      animation-name: story-enter}
  }
}
@media (prefers-reduced-motion: reduce) {
  main.story > .story-beat,
  main.story > .story-rail,
  main.story .story-pair .story-copy,
  main.story .story-pair .story-device,
  main.story .story-pair .story-phone,
  .section .eyebrow,
  .section .section-title,
  .section .section-sub,
  .pillar, .step, .phone, .tag, .cta-band,
  .ks-speak, .ks-speak-face, .ks-speak-bubble,
  .ks-companion {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important}
  /* HARD: companion shows ONE line — never opacity:1 dump of all dialogues */
  .ks-companion-line {
    animation: none !important;
    transition: none !important;
    filter: none !important}
  .ks-companion-line:not(.is-on) {
    ;
    ;
    pointer-events: none !important}
  .ks-companion-line.is-on {
    ;
    transform: none !important}
}

/* --- Sticky kitsune companion (under appbar) --- */
.ks-companion {
  position: sticky;
  top: var(--header-h, 64px);
  z-index: 45;
  margin: 0;
  padding: 0;
  pointer-events: none;
  isolation: isolate}
.ks-companion-inner {
  pointer-events: none;
  display: flex;
  ;
  ;
  max-width: var(--max);
  margin: 0 auto;
  ;
  ;
  ;
  backdrop-filter: blur(16px) saturate(1.15);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  }
.ks-companion-face {
  ;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
  ;
  ;
  }

.ks-companion-line {
  position: absolute;
  inset: 0;
  margin: 0;
  font-size: 0.92rem;
  font-weight: 560;
  line-height: 1.35;
  color: #f4f4f5;
  text-wrap: pretty;
  opacity: 0;
  transform: translateY(8px);
  visibility: hidden;
  pointer-events: none;
  }
.ks-companion-line.is-on {
  ;
  ;
  transform: none;
  }
@media (prefers-reduced-motion: no-preference) {
  
}
@keyframes ks-dock-in {
  from { opacity: 0; transform: translateY(10px); filter: blur(2px)}
  to { opacity: 1; transform: none; filter: none}
}
.ks-companion--static .ks-companion-line,
.ks-companion--static .ks-companion-line.is-on {
  animation: none !important;
  transition: none !important;
  filter: none !important}
/* Hide old mid-page floating bubbles — dialogue lives in the dock */

@media (max-width: 600px) {
  
  
  .ks-companion-line { font-size: 0.84rem}
  
}
@media (max-width: 400px) {
  .ks-companion-line { font-size: 0.8rem}
}

/* --- Waitlist: full wrap width; height via embed.js dynamicHeight (no !important lock) --- */
.founder-waitlist-shell {
  max-width: none !important;
  width: 100% !important;
  padding-inline: 0}
.tally-embed-shell,
.fw-outbound {
  max-width: none !important;
  width: 100% !important}
 /* trimmed in HTML */
.fw-assurances { display: block !important}

/* --- Desktop economy / icon / asset render fixes --- */
.phone-screen img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
  opacity: 1 !important;
  visibility: visible !important}

.ph-wallet-big img,
.ph-reward img,
.hero-prize-pills li img,
.ph-medalla.art img,
.ph-mood-chip.art img,
.ph-rank,
.ph-rank-lg,
.phone-home .ph-pet,
.phone-widgets .ph-widget.pet img {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  filter: none}


/* Desktop: give phones a touch more room so wallet/icons aren't clipped */
@media (min-width: 901px) {
  .story-device,
  .phone-bezel,
  .story-phone.phone-bezel,
  .story-device .phone-bezel {
    max-width: 260px !important;
    max-height: 580px !important}
  .story-pair-inner {
    grid-template-columns: minmax(200px, 260px) minmax(0, 1fr) !important}
  .story-pair-rev .story-pair-inner {
    grid-template-columns: minmax(0, 1fr) minmax(200px, 260px) !important}


}
/* ========== /P0e ========== */


/* ========== Mobile nav menu (details/summary, zero JS) — P0-NAV-MOBILE ========== */
.nav-menu {
  display: none;
  position: relative;
  margin: 0;
}
.nav-menu > summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  min-width: 44px;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  background: var(--glass);
  color: var(--text);
  font-family: var(--font);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  user-select: none;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.nav-menu > summary::-webkit-details-marker { display: none; }
.nav-menu > summary::marker { content: ""; }
.nav-menu > summary:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(45,212,191,0.35);
}
.nav-menu > summary:focus-visible {
  outline: 2px solid var(--gold-base);
  outline-offset: 2px;
}
.nav-menu-icon {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 18px;
}
.nav-menu-icon span {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 1px;
  background: currentColor;
}
.nav-menu[open] > summary {
  border-color: rgba(245,196,81,0.45);
  background: rgba(245,196,81,0.10);
  color: var(--gold-base);
}
.nav-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 80;
  min-width: min(260px, calc(100vw - 32px));
  padding: 8px;
  border-radius: var(--radius-lg, 14px);
  border: 1px solid var(--glass-border);
  background:
    linear-gradient(180deg, rgba(24,28,38,0.98), rgba(12,14,20,0.98));
  box-shadow: 0 16px 40px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.06);
  display: none;
  flex-direction: column;
  gap: 2px;
}
.nav-menu[open] .nav-menu-panel {
  display: flex;
}
.site-header .nav-links:has(.nav-menu[open]) {
  z-index: 7 !important;
}
.nav-menu-panel a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  color: var(--text-2);
  font-weight: 600;
  text-decoration: none;
}
.nav-menu-panel a:hover,
.nav-menu-panel a:focus-visible {
  color: var(--text);
  background: rgba(255,255,255,0.06);
}
.nav-menu-panel a:focus-visible {
  outline: 2px solid var(--gold-base);
  outline-offset: -2px;
}
@media (max-width: 860px) {
  .nav-menu { display: inline-block; }
}
@media (min-width: 861px) {
  .nav-menu { display: none !important; }
}


/* ========== Gamify Joy — premium pills / chips / guides / mastery ==========
 * Joyful but premium. No orphan seed/tree/fauna outside phone or hero kitsune.
 * ============================================================= */

/* HARD: no desktop left-column / floating trees or loose props (PASS 2: <1440) */
@media (max-width: 1439px) {

}
/* Soften story fauna — atmosphere, not clutter (desktop especially) */
@media (min-width: 901px) {
  .story-fauna .bug { opacity: 0.28}
  .story-fauna .bug:nth-child(n+5) { display: none}
}
@media (max-width: 900px) {
  .story-fauna .bug:nth-child(n+4) { display: none}
  .story-fauna .bug { opacity: 0.32}
}

/* superseded by P0-NAV-CTA-MOBILE — keep exclusivity, not contents */
/* .nav-cta .cta-full,.nav-cta .cta-short { display: contents; } */
.nav-cta {
  white-space: nowrap;
  max-width: min(100%, 16rem);
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 520px) {
  .nav-cta { font-size: 0.78rem; padding-inline: 10px; max-width: 11.5rem; }
}

/* Section chips — beat markers, not confetti */
.section-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none}
.section-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(45, 212, 191, 0.28);
  background:
    linear-gradient(180deg, rgba(45, 212, 191, 0.12), rgba(45, 212, 191, 0.04)),
    rgba(9, 9, 11, 0.55);
  color: var(--text-2);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase}
.section-chip--gold {
  border-color: rgba(245, 196, 81, 0.35);
  background:
    linear-gradient(180deg, rgba(245, 196, 81, 0.14), rgba(245, 196, 81, 0.04)),
    rgba(9, 9, 11, 0.55);
  color: var(--gold-base)}
.section-chip--soft {
  border-color: var(--glass-border);
  background: var(--glass);
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  font-size: 0.8rem}

/* Premium separator — thin gold/teal hairline, not glitter */
.joy-sep {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 28px 0 8px;
  max-width: 42rem;
  border: 0;
  height: auto;
  background: none}
.joy-sep::before,
.joy-sep::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(45, 212, 191, 0.35),
    rgba(245, 196, 81, 0.45),
    rgba(45, 212, 191, 0.35),
    transparent
  );
  opacity: 0.85}
.joy-sep-mark {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #FFE9B8, var(--gold-base) 55%, var(--mastery-deep));
  box-shadow: 0 0 10px rgba(245, 196, 81, 0.35);
  flex-shrink: 0}
.joy-sep--center { margin-inline: auto}

/* Economy pills — Seeds/Suns visible on desktop copy, not only in phone */
.eco-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 4px;
  padding: 0;
  list-style: none}
.eco-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(24, 28, 38, 0.88);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.2}
.eco-pill img {
  ;
  ;
  ;
  visibility: visible !important;
  flex-shrink: 0}
.eco-pill strong { font-weight: 800; letter-spacing: -0.01em}
.eco-pill span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase}
.eco-pill--seeds {
  border-color: rgba(245, 196, 81, 0.32);
  background:
    linear-gradient(145deg, rgba(245, 196, 81, 0.12), transparent 60%),
    rgba(24, 28, 38, 0.9)}
.eco-pill--suns {
  border-color: rgba(45, 212, 191, 0.35);
  background:
    linear-gradient(145deg, rgba(45, 212, 191, 0.12), transparent 60%),
    rgba(24, 28, 38, 0.9)}
.eco-pill--mastery {
  border-color: rgba(45, 212, 191, 0.4)}
.eco-pill--gp {
  border-color: rgba(255, 255, 255, 0.12)}
@media (min-width: 901px) {


}

/* Founder prize — restore earn framing + icon polish */
.hero-prize-earn {
  margin: 2px 0 0;
  ;
  ;
  ;
  ;
  text-wrap: pretty}
.hero-prize-pills li img {
  ;
  ;
  ;
  opacity: 1 !important;
  visibility: visible !important}
.fw-prize .hero-prize-earn { text-align: center; width: 100%; max-width: none}
.cta-note.cta-waitlist {
  margin: 0 0 8px;
  max-width: 42rem;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5}

/* ----- Guías: expandable categories ----- */


@media (prefers-reduced-motion: no-preference) {

}
.page-hero .section-chips { margin-top: 4px}

/* ----- Mastery board (not plain prose) ----- */

@media (min-width: 760px) {

}


.mastery-note {
  margin: 0 0 22px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(245, 196, 81, 0.28);
  background: rgba(245, 196, 81, 0.06);
  color: var(--text-2);
  font-size: 0.92rem;
  line-height: 1.5}


.page-hero--mastery .answer-first {
  border-left-color: var(--mastery)}

@media (prefers-reduced-motion: reduce) {


}
/* ========== /Gamify Joy ========== */

/* ========== P0g — KILL orphan ambient + CTA collision + progress bar PC ==========
 * PASS 2: guard completo scoped <1440px; ≥1440 gutters reactivan sutil (ver 42),
 * y 42 vuelve a apagar dots/fw-ambient sin sumar tokens forzados. */
@media (max-width: 1439px) {
  
}

.nav-cta .cta-short { display: none !important; }
.nav-cta .cta-full { display: inline !important; }
@media (max-width: 860px) {
  .nav-cta .cta-full { display: none !important; }
  .nav-cta .cta-short { display: inline !important; }
}

/* --ks-scroll lives on :root; do not shadow on body (QM32) */
:root { --ks-scroll: 0}
body.marketing::before {
  content: "";
  display: block;
  position: fixed;
  top: 0; left: 0;
  z-index: 200;
  height: 3px;
  width: 100%;
  pointer-events: none;
  transform-origin: 0 50%;
  /* El !important del transform congela la animación nativa a propósito:
   * el probe de ks-scroll-progress.js decide CSS vs JS (contrato wave 33). */
  transform: scaleX(var(--ks-scroll, 0)) !important;
  opacity: 1;
  background: linear-gradient(90deg, #2DD4BF 0%, #5EEAD4 22%, #F5C451 52%, #FFD777 78%, #FFE9B8 100%);
  box-shadow: 0 0 14px rgba(45,212,191,0.55), 0 0 28px rgba(245,196,81,0.3);
  animation: none !important}
@media (prefers-reduced-motion: reduce) {
  body.marketing::before { display: none !important}
}
/* ========== /P0g ========== */


/* ========== Perf/a11y guardrails — no layout work in scroll motion ========== */
/* Scroll timelines only interpolate compositor-friendly opacity/transform. */
@keyframes soft-rise {
  from { opacity: 1; transform: translateY(16px) scale(.99)}
  to { opacity: 1; transform: none}
}
@keyframes soft-rise-x {
  from { opacity: 1; transform: translateX(-12px)}
  to { opacity: 1; transform: none}
}
@keyframes story-phone-in {
  from { opacity: 1; transform: translateY(12px) scale(.985)}
  to { opacity: 1; transform: none}
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important}
  *, *::before, *::after {
    animation: none !important;
    transition: none !important}
}

/* ========== P0h — Seeds/Suns desktop crisp + home chip + missing icon boxes ==========
 * Assets icon_mastery.svg / icon_founder.svg now shipped (were 404).
 * No fauna reintroduction — P0g kill stays.
 * ================================================================================ */


.hero-prize-pills li img,
.eco-pill img,
.ph-wallet-big img,
.ph-reward img {
  image-rendering: crisp-edges;
  object-fit: contain;
  flex-shrink: 0}
.hero-prize-pills li img {
  width: 18px !important;
  height: 18px !important;
  max-width: 18px !important;
  display: inline-block !important}
.eco-pill img {
  width: 18px !important;
  height: 18px !important;
  display: block !important;
  opacity: 1 !important}


@media (min-width: 901px) {


  .hero-prize-pills li {
    font-size: 0.9rem;
    padding: 8px 14px}
  .eco-pills {
    gap: 10px}
}
/* ========== /P0h ========== */

/* ========== Motion Wow — feel layer (2026-10-02) ==========
 * Complements P0g progress bar + companion JS pulse.
 * Prize shimmer, phone entrances, button/pill press, dock pulse CSS,
 * story beat glow, progress trail. prefers-reduced-motion via global kill above.
 * Tiny JS: ks-companion.js + ks-scroll-progress.js (already on main).
 * ========================================================= */

:root {
  --motion-spring: cubic-bezier(.2, .85, .25, 1);
  --motion-press: cubic-bezier(.3, .7, .4, 1);
  --motion-fast: 160ms;
  --motion-med: 280ms}

@media (prefers-reduced-motion: no-preference) {
  html.ks-scroll--css body.marketing::before,
  html:not(.ks-scroll--js) body.marketing::before {
    background-size: 200% 100%}
}

/* Buttons / pills — spring hover + press */
@media (prefers-reduced-motion: no-preference) {
  .btn {
    transition:
      transform var(--motion-fast) var(--motion-spring),
      box-shadow var(--motion-med) ease,
      background var(--motion-fast) ease,
      border-color var(--motion-fast) ease,
      color var(--motion-fast) ease,
      filter var(--motion-fast) ease}
  .btn:hover { transform: translateY(-2px) scale(1.015)}
  .btn:active {
    transform: translateY(1px) scale(0.97);
    transition-duration: 90ms;
    transition-timing-function: var(--motion-press)}
  .btn-primary:hover {
    filter: saturate(1.06) brightness(1.03);
    box-shadow:
      0 14px 40px rgba(245, 196, 81, 0.48),
      inset 0 1px 0 rgba(255, 255, 255, 0.45)}
  .btn-primary:active {
    filter: saturate(1.02) brightness(0.98);
    box-shadow:
      0 3px 12px rgba(245, 196, 81, 0.28),
      inset 0 2px 4px rgba(0, 0, 0, 0.12)}
  .btn-ghost:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(45, 212, 191, 0.28)}
  .btn-ghost:active { transform: translateY(0) scale(0.98)}

  .nav-links a,
  .tag,
  .lang-opt,
  .hero-prize-pills li {
    transition:
      transform var(--motion-fast) var(--motion-spring),
      background var(--motion-fast) ease,
      border-color var(--motion-fast) ease,
      color var(--motion-fast) ease,
      box-shadow var(--motion-med) ease;
  }
  .nav-links a:hover,
  .tag:hover,
  .lang-opt:hover { transform: translateY(-1px); }
  .nav-links a:active,
  .tag:active,
  .lang-opt:active { transform: translateY(0) scale(0.97); }

  .hero-prize-pills li:hover {
    ;
    ;
    color: var(--text)}
  .hero-prize-pills li:active { transform: translateY(0) scale(0.98)}
}

/* Founder prize cluster — tasteful shimmer */
.hero-prize {
  ;
  isolation: isolate;
  transition:
    border-color var(--motion-med) ease,
    box-shadow var(--motion-med) ease,
    transform var(--motion-med) var(--motion-spring)}
.hero-prize::after {
  ;
  ;
  ;
  ;
  ;
  transform: translateX(-120%) skewX(-12deg);
  opacity: 0}

@media (prefers-reduced-motion: no-preference) {
  .hero-prize:hover {
    border-color: rgba(245, 196, 81, 0.58);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.1),
      0 16px 40px rgba(0, 0, 0, 0.32),
      0 0 32px rgba(245, 196, 81, 0.12)}
  .fw-prize:hover { transform: translateY(-2px)}
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero-prize-pills li {
      animation: prize-pill-in linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 36%}
    .hero-prize-pills li:nth-child(2) { animation-range: entry 6% cover 40%}
    .hero-prize-pills li:nth-child(3) { animation-range: entry 12% cover 44%}
    .hero-prize-pills li:nth-child(4) { animation-range: entry 18% cover 48%}
  }
}
@keyframes prize-pill-in {
  0% { opacity: 1; transform: translateY(8px) scale(0.96)}
  28% { opacity: 1; transform: none}
  100% { opacity: 1; transform: none}
}

/* Sticky kitsune dialogue — CSS for JS pulse class */
.ks-companion-inner {
  transition:
    border-color var(--motion-med) ease,
    box-shadow var(--motion-med) ease,
    background var(--motion-med) ease}
.ks-companion-face {
  transition:
    transform var(--motion-med) var(--motion-spring),
    box-shadow var(--motion-med) ease,
    filter var(--motion-med) ease}
.ks-companion-line {
  transition:
    opacity 0.38s var(--motion-spring),
    transform 0.38s var(--motion-spring),
    visibility 0.38s,
    filter 0.38s ease}
@media (prefers-reduced-motion: no-preference) {
  .ks-companion-line:not(.is-on) {
    transform: translateY(6px);
    filter: blur(1px)}
  .ks-companion-line.is-on {
    animation: ks-dock-in 0.44s var(--motion-spring) both}
  .ks-companion--pulse .ks-companion-face {
    animation: ks-face-nudge 0.48s var(--motion-spring) both}
  .ks-companion--pulse .ks-companion-inner {
    animation: ks-dock-glow 0.5s ease both}
}
@keyframes ks-face-nudge {
  0% { transform: scale(1) rotate(0deg); filter: brightness(1)}
  35% { transform: scale(1.08) rotate(-3deg); filter: brightness(1.12)}
  100% { transform: scale(1) rotate(0deg); filter: brightness(1)}
}
@keyframes ks-dock-glow {
  0% { box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28)}
  40% {
    box-shadow:
      0 12px 32px rgba(0, 0, 0, 0.3),
      0 0 24px rgba(45, 212, 191, 0.22),
      inset 0 -1px 0 rgba(245, 196, 81, 0.25);
    border-bottom-color: rgba(245, 196, 81, 0.4)}
  100% { box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28)}
}

/* Phone mock entrances + story beat glow */


@keyframes story-beat-glow {
  0% { filter: none}
  35% { filter: drop-shadow(0 0 18px rgba(45, 212, 191, 0.08))}
  100% { filter: none}
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    main.story .story-pair .story-phone,
    main.story .story-pair .story-device {
      animation-name: story-phone-wow;
      animation-timing-function: linear;
      animation-fill-mode: both;
      animation-timeline: view();
      animation-range: entry 0% cover 42%}
    
    main.story .story-pair {
      animation: story-beat-glow linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 55%}
    main.story > .hero.story-beat,
    main.story > .section.story-beat {
      animation: story-enter linear both;
      ;
      }
  }
}
@media (min-width: 861px) and (prefers-reduced-motion: no-preference) {
  .story-phone.phone-bezel,
  .story-device .phone-bezel {
    transition: transform 0.35s var(--motion-spring), box-shadow 0.35s ease}
  .story-pair:hover .story-phone.phone-bezel,
  .story-pair:hover .story-device .phone-bezel {
    transform: translateY(-6px) scale(1.015);
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.12),
      0 28px 56px rgba(0, 0, 0, 0.5),
      0 0 40px rgba(45, 212, 191, 0.14)}
}

@media (prefers-reduced-motion: reduce) {
  body.marketing::after { display: none !important}
  
}

/* ========== /Motion Wow ========== */

/* ========== /Gamify Joy CTA lock — DISABLED by P0-NAV-CTA-MOBILE (need short/full) ========== */
/* .nav-cta .cta-full,.nav-cta .cta-short { display: contents !important; } */
.nav-cta {
  white-space: nowrap;
  max-width: min(100%, 16rem);
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 520px) {
  .nav-cta { font-size: 0.78rem; padding-inline: 10px; max-width: 11.5rem; }
}

/* ========== P0i — desktop layout contrast (Agustin P0 leftover) ==========
 * After P0g (orphans/CTA/progress): pillars were muddy on black + snap left
 * cards half-clipped with an empty void before #producto.
 * ======================================================================== */

/* Opaque elevated glass — never wash into splash/surface */
.pillars .glass.pillar,
.pillars .pillar.glass,
.steps .glass.step {
  background: #1c1f2a !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  color: var(--text)}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .pillars .glass.pillar,
  .pillars .pillar.glass,
  .steps .glass.step {
    background:
      linear-gradient(165deg, rgba(52, 58, 78, 0.94), rgba(24, 28, 40, 0.97)) !important;
    backdrop-filter: var(--lg-blur, blur(18px) saturate(1.12));
    -webkit-backdrop-filter: var(--lg-blur, blur(18px) saturate(1.12))}
}
.pillars .pillar h3,
.steps .step h3 { color: #FAFAFA !important}
.pillars .pillar p,
.steps .step p { color: #E2E8F0 !important}
.pillars .pillar-label { color: var(--gold-base) !important}

/* Cards always fully opaque — no view()-ghost mid scroll */
.pillars .pillar,
.steps .step {
  opacity: 1 !important;
  filter: none !important}

/* Tighten pillars → story-rail: kill empty black band */
.section.story-beat[data-feature="kitsune"] {
  padding-top: 36px;
  padding-bottom: 16px}
.section.story-beat[data-feature="kitsune"] .section-sub,
.section.story-beat[data-feature="kitsune"] .story-sub-dense {
  margin-bottom: 16px}
.story-rail {
  padding-top: 8px !important;
  padding-bottom: 12px}
.story-rail-head {
  margin-bottom: 4px !important;
  padding-top: 4px}

/* Desktop: don't snap-align the intermediate pillars beat (half-clip + void) */
@media (min-width: 901px) {
  main.story > .story-beat[data-feature="kitsune"] {
    min-height: 0 !important}
  .pillars {
    gap: 18px;
    align-items: stretch}
  .pillars .pillar {
    padding: 26px 24px;
    min-height: 100%}
}

@media (max-width: 720px) {
  .section.story-beat[data-feature="kitsune"] {
    padding-top: 28px;
    padding-bottom: 12px}
}
/* ========== /P0i ========== */

/* ========== P0h — phone density/contrast + single Founder CTA (keep P0g fauna dead) ==========
 * - Stack ALL phone UI above ambient (not only home/flow)
 * - Densify sparse module screens; brighten copy/chips
 * - Force currency/mastery/founder icons visible on 1280+
 * - Desktop: one Founder CTA (nav). Mobile: hero primary keeps conversion.
 * - NEVER re-enable .story-fauna / trees / pair ::before orphans
 * ============================================================================================ */

/* Stacking: every closed UI child above ambient/sky */
.phone-screen > *:not(.ph-ambient):not(.ph-sky) {
  position: relative;
  z-index: 1}

/* Module subtitle + denser lists */


/* Contrast: lift ALL module phones (not only home/water) */


/* Desktop 1280+: currency / mastery / founder icons never collapse */
@media (min-width: 1280px) {
  .hero-prize-pills li img,
  .eco-pill img,
  .ph-wallet-big img,
  .ph-reward img {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    flex-shrink: 0 !important}
  .hero-prize-pills li img { width: 18px !important; height: 18px !important}
  .eco-pill img { width: 18px !important; height: 18px !important}

}

/* Mobile: hero keeps primary Founder; nav stays sticky short access */
@media (max-width: 860px) {
  .hero-cta.cta-waitlist > a.btn-primary {
    display: flex !important}
}

/* HARD: keep P0g orphan kill — never revive fauna outside phones (PASS 2: <1440) */
@media (max-width: 1439px) {
  .story-fauna,
  .story-fauna .bug,
  .story-fauna .sil-tree,
  .hero-fauna,
  .fw-ambient,
  .ambient-tree,
  .story-pair::before,
  .story-pair::after {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    animation: none !important}
}
/* ========== /P0h ========== */


/* ========== Gamify Joy hub — guide-group + mastery-compare + expandable ========== */


/* Expandable: details.guide-cat wraps a group */


@media (min-width: 760px) {

}


.honest-chip {
  ;
  margin-right: 6px;
  ;
  ;
  ;
  ;
  ;
  ;
  ;
  ;
  }

.help-next {
  ;
  ;
  ;
  ;
  ;
  ;
  ;
  ;
  color: var(--muted);
  }

/* ========== /Gamify Joy hub ========== */


/* ========== UX Help / Delight (user-help pass) ========== */
 * Clear CTAs, waitlist orientation, skip/focus, guide hub, mastery, help-next.
 * ============================================================= */
.skip-link + .skip-link { top: 48px}
.skip-link:focus, .skip-link:focus-visible { left: 0; z-index: 200}
#contenido, #waitlist, main[id] { scroll-margin-top: calc(var(--header-h, 64px) + 56px)}
#contenido:focus, #contenido:focus-visible, #waitlist:focus, #waitlist:focus-visible { outline: none}
.nav-menu-panel a:focus-visible, .guide-card:focus-visible, .help-rail a:focus-visible,
.help-next a:focus-visible, .page-cta-row a:focus-visible {
  outline: 2px solid var(--gold-base); outline-offset: 2px;
}
.fw-orient {
  display: block !important; margin: 10px 0 0; max-width: 36rem;
  color: #334155; font-size: 0.95rem; line-height: 1.45; text-wrap: pretty}
.fw-orient strong { color: #0f172a; font-weight: 700}
.fw-orient-list {
  margin: 8px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap;
  gap: 8px 14px; font-size: 0.88rem; color: #475569}
.fw-orient-list li::before { content: "·"; margin-right: 8px; color: #0d9488; font-weight: 700}
.founder-waitlist-shell .fw-header { text-align: left}
.fw-outbound-kicker { font-weight: 600}
.help-rail {
  margin: 8px 0 28px; padding: 22px 22px 20px; border-radius: var(--radius-lg, 14px);
  border: 1px solid rgba(45, 212, 191, 0.28);
  background: linear-gradient(160deg, rgba(45, 212, 191, 0.08), rgba(245, 196, 81, 0.05)), rgba(24, 24, 27, 0.55)}
.help-rail .eyebrow { margin-bottom: 6px}
.help-rail h2 { margin: 0 0 8px; font-size: clamp(1.25rem, 2.4vw, 1.55rem); letter-spacing: -0.02em}


@media (max-width: 720px) {  }


.help-next {
  display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center;
  margin: 28px 0 8px; padding: 14px 16px; border-radius: var(--radius-md);
  border: 1px solid var(--glass-border); background: rgba(24, 24, 27, 0.55); font-size: 0.92rem}
.help-next a { font-weight: 650}
.page-cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 28px}


@media (max-width: 700px) {  }
.honest-chip {
  display: inline-flex; align-items: center; gap: 6px; margin: 0 0 12px; padding: 4px 10px;
  border-radius: 999px; border: 1px solid rgba(245, 196, 81, 0.4);
  background: rgba(245, 196, 81, 0.1); color: var(--gold-base);
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase}
/* ========== /UX Help / Delight ========== */

/* ========== P0k — economy phone densify (Seeds/Suns dead-zone) ==========
 * Fills sparse Cartera mock: wallet + chips + claims feed + seal.
 * Icons forced crisp; no lazy blank; no fauna; leave contrast-a11y alone.
 * ===================================================================== */

.phone-economy > *:not(.ph-ambient) {
  position: relative;
  z-index: 2}


@media (min-width: 901px) {


}
/* ========== /P0k ========== */


/* ========== P0-NAV-CTA-MOBILE — header layout + gold CTA contrast (2026-10-02) ==========
 * Bugs: Menu+ES|EN stacked over gold Founder CTA; light .nav-links a color washed CTA text.
 * Fix: hamburger owns nav+lang on ≤860; cta-full/short exclusivity; dark ink on gold.
 * Fonts unchanged (Cinzel display / guide titles kept).
 * ===================================================================================== */

/* Force readable dark text on gold primary — .nav-links a was winning (light ink) */
.btn-primary,
.btn-primary:hover,
.btn-primary:active,
.btn-primary:focus-visible,
.nav-links a.btn-primary,
.nav-links a.btn-primary:hover,
.nav-links a.btn-primary:active,
.nav-links a.nav-cta,
.nav-links a.nav-cta:hover,
a.nav-cta,
a.nav-cta:hover,
.nav-cta .cta-full,
.nav-cta .cta-short {
  color: var(--gold-ink, #2B1D00) !important;
}

/* CTA short/full exclusivity — last word wins over earlier contents locks */
.nav-cta .cta-short { display: none !important; }
.nav-cta .cta-full { display: inline !important; }

.nav-cta {
  white-space: nowrap;
  max-width: none;
  overflow: visible;
  text-overflow: clip;
  flex: 0 0 auto;
}

/* Header row: logo | spacer | actions — never wrap/overlap CTA under menu/lang */
.site-header .wrap {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}
.site-header .logo {
  flex: 0 1 auto;
  min-width: 0;
}
.site-header .nav-links {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex: 0 0 auto;
  min-width: 0;
}

/* Icon-only hamburger (aria-label carries name) */
.nav-menu > summary {
  font-size: 0;
  letter-spacing: 0;
  gap: 0;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
}

/* Lang in menu panel */
.nav-menu-panel .lang-switch,
.lang-switch--in-menu {
  display: inline-flex;
  align-self: stretch;
  justify-content: center;
  margin: 8px 6px 4px;
  padding: 4px;
}
.nav-menu-panel .lang-opt {
  flex: 1 1 auto;
  justify-content: center;
}

/* Desktop (≥861): bar lang visible; menu (and in-menu lang) hidden by existing rules */
.lang-switch--bar { display: inline-flex}

@media (max-width: 860px) {
  /* Mobile: bar lang hidden — lang lives inside hamburger */
  .lang-switch--bar { display: none !important}

  /* Short CTA label */
  /* Compact CTA: mirror §P0 exclusivity (visibility/clip/font) up to 1100px */
  .site-header .nav-links a.nav-cta .cta-full,
  .site-header a.nav-cta .cta-full,
  .nav-cta .cta-full {
    display: none !important;
    visibility: hidden !important;
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    border: 0 !important;
    white-space: nowrap !important;
    font-size: 0 !important;
    line-height: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
  .site-header .nav-links a.nav-cta .cta-short,
  .site-header a.nav-cta .cta-short,
  .nav-cta .cta-short {
    display: inline !important;
    visibility: visible !important;
    position: static !important;
    width: auto !important;
    height: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    clip: auto !important;
    clip-path: none !important;
    border: 0 !important;
    white-space: nowrap !important;
    font-size: inherit !important;
    line-height: inherit !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    color: inherit !important;
    -webkit-text-fill-color: inherit !important;
  }

  .site-header .nav-links a.nav-cta,
  .site-header a.nav-cta,
  .nav-cta {
    padding-inline: 12px;
    font-size: 0.82rem;
    min-height: 40px;
    max-width: none;
  }

  .site-header .wrap {
    padding-block: 10px;
    gap: 8px;
  }
  .nav-links { gap: 6px; }
  .nav-menu { display: inline-block; }
}

/* Narrow phones 320–430: keep single row, no collide */
@media (max-width: 430px) {
  .site-header .wrap {
    padding-inline: max(10px, env(safe-area-inset-left, 0px))
                    max(10px, env(safe-area-inset-right, 0px));
    gap: 6px;
  }
  .logo { font-size: 0.92rem; gap: 6px}
  .logo img { width: 28px; height: 28px}
  .nav-cta {
    padding-inline: 10px;
    font-size: 0.78rem;
    min-height: 40px;
  }
  .nav-menu > summary {
    min-width: 40px;
    min-height: 40px;
    padding: 6px;
  }
}

@media (max-width: 320px) {
  .nav-cta .cta-full { display: none !important; }
  .nav-cta .cta-short { display: inline !important; }
}

/* ========== /P0-NAV-CTA-MOBILE ========== */

/* ========== P0k CTA DESKTOP — single label + ink fill (Agustin 2026-10-02) ========== */
.nav-cta .cta-full { display: inline !important; }
.nav-cta .cta-short { display: none !important; }
@media (max-width: 860px) {
  .nav-cta .cta-full { display: none !important; }
  .nav-cta .cta-short { display: inline !important; }
}
.site-header a.btn-primary.nav-cta,
.site-header a.btn-primary.nav-cta:link,
.site-header a.btn-primary.nav-cta:visited,
.site-header a.btn-primary.nav-cta:hover,
.site-header a.btn-primary.nav-cta:active,
.site-header a.btn-primary.nav-cta .cta-full,
.site-header a.btn-primary.nav-cta .cta-short {
  color: #2B1D00 !important;
  -webkit-text-fill-color: #2B1D00 !important;
  text-shadow: none !important;
  opacity: 1 !important;
  filter: none !important;
  background-clip: border-box !important;
  -webkit-background-clip: border-box !important;
}
.site-header a.btn-primary.nav-cta::after { display: none !important; content: none !important; }
/* ========== /P0k ========== */

/* ========== HARD: KITSUNE ONCE — hero fox + sticky dock only ==========
 * Guide face appears: (1) hero .fox-stage big kitsune, (2) sticky #ks-companion.
 * Mid-page .ks-speak faces/bubbles REMOVED from HTML. CSS belt remains.
 * Companion stage swaps ONE .is-on line per beat — never a laundry dump.
 * ============================================================= */


.ks-companion-line:not(.is-on) {
  ;
  ;
  ;
  ;
  ;
  clip: rect(0 0 0 0);
  ;
  white-space: nowrap;
  }

.ks-companion-line.is-on {
  ;
  ;
  ;
  ;
  ;
  ;
  ;
  pointer-events: none}

@media (prefers-reduced-motion: reduce) {
  .ks-companion-line:not(.is-on) {
    ;
    transform: none !important;
    filter: none !important}
  .ks-companion-line.is-on {
    ;
    animation: none !important}
}
/* ========== /HARD KITSUNE ONCE ========== */

/* ========== 31 HERO CRAFT — premium start (2026-10-02 ART) ==========
 * Agustin: hero/start felt half-done / laundry paragraphs.
 * Cinzel titles · DM Sans body · prize pills · sticky dock = dialogue bubble.
 * Kitsune-once stands: NO mid-page .ks-speak revival. Founder CTA = dark ink on gold.
 * ================================================================== */

/* Titles: Cinzel ceremonial (H1 already --display; section titles were DM Sans 800) */
.hero h1 {
  font-weight: 700;
  letter-spacing: -0.018em;
  line-height: 1.08;
  text-wrap: balance}
.hero h1 em {
  font-style: normal;
  ;
  background: linear-gradient(135deg, var(--gold-hi), var(--gold-base) 55%, var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero h1 em {
    color: var(--gold-base);
    -webkit-text-fill-color: var(--gold-base);
    background: none}
}
.section-title {
  ;
  letter-spacing: -0.012em;
  line-height: 1.15;
  color: var(--text);
  text-wrap: balance}
.section.story-beat[data-feature="kitsune"] .section-title {
  font-size: clamp(1.55rem, 3.2vw, 2.05rem);
  margin-bottom: 12px}

/* Body: DM Sans lead — short, warm, readable */
.hero .lead,
.lead {
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  ;
  line-height: 1.62;
  letter-spacing: 0.005em;
  color: var(--text-2);
  ;
  margin: 0 0 22px;
  text-wrap: pretty}
.section.story-beat[data-feature="kitsune"] .section-sub,
.section.story-beat[data-feature="kitsune"] .story-sub-dense {
  font-family: var(--font);
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.55;
  color: var(--muted);
  max-width: 38ch}

/* Prize pills — denser gold craft */
.hero-prize {
  position: relative;
  gap: 12px;
  padding: 16px 18px 14px;
  border-radius: 18px;
  border: 1px solid rgba(245, 196, 81, 0.5);
  background:
    linear-gradient(145deg, rgba(245, 196, 81, 0.2), rgba(45, 212, 191, 0.08) 48%, rgba(18, 18, 22, 0.96)),
    rgba(9, 9, 11, 0.94);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 16px 40px rgba(0, 0, 0, 0.32),
    0 0 0 1px rgba(245, 196, 81, 0.08);
  overflow: hidden}
.hero-prize::after {
  content: "";
  position: absolute;
  inset: -40% auto auto -20%;
  width: 55%;
  height: 70%;
  background: radial-gradient(circle, rgba(245, 196, 81, 0.18), transparent 70%);
  pointer-events: none;
  z-index: 0}
.hero-prize > * { position: relative; z-index: 1}
.hero-prize-label {
  font-family: var(--font);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-base)}
.hero-prize-pills {
  gap: 10px}
.hero-prize-pills li {
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(245, 196, 81, 0.55);
  background:
    linear-gradient(180deg, rgba(245, 196, 81, 0.26), rgba(245, 196, 81, 0.08)),
    rgba(9, 9, 11, 0.9);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 560;
  color: var(--text-2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease}
.hero-prize-pills li img {
  width: 18px;
  height: 18px}
.hero-prize-pills strong {
  font-weight: 750;
  ;
  letter-spacing: 0.01em}
@media (prefers-reduced-motion: no-preference) {
  .hero-prize-pills li:hover {
    transform: translateY(-1px);
    border-color: rgba(245, 196, 81, 0.75);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.12),
      0 8px 18px rgba(245, 196, 81, 0.18)}
}
.hero-prize-earn {
  font-family: var(--font);
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--muted);
  max-width: 42ch}

/* Sticky dock = the dialogue bubble (Kitsune-once: only dialogue surface) */
.ks-companion-inner {
  align-items: stretch;
  ;
  ;
  ;
  ;
  }
.ks-companion-face {
  align-self: center;
  ;
  ;
  ;
  }


.ks-companion-line,
.ks-companion-line.is-on {
  font-family: var(--font);
  ;
  ;
  ;
  letter-spacing: 0.005em;
  ;
  text-wrap: pretty}
@media (max-width: 600px) {
  .ks-companion-inner { gap: 10px; padding: 8px 14px 10px}
  .ks-companion-face { width: 38px; height: 38px}
  .ks-companion-stage { padding: 8px 12px; min-height: 3em}
  .ks-companion-stage::before { left: -5px; width: 8px; height: 8px; margin-top: -4px}
  .ks-companion-line,
  .ks-companion-line.is-on { font-size: 0.86rem}
}

/* Founder CTA: keep readable dark ink on gold (do not regress P0k) */
.hero-cta .btn-primary,
.hero-cta .btn-primary:hover,
.hero-cta .btn-primary:active,
.hero-cta .btn-primary:focus-visible,
.btn-primary.magnetic,
.btn-primary.magnetic:hover,
a.btn-primary.cta-waitlist,
a.btn-primary.cta-waitlist:hover {
  color: var(--gold-ink, #2B1D00) !important;
  -webkit-text-fill-color: var(--gold-ink, #2B1D00) !important}

/* Hero optical polish */
.hero .eyebrow {
  font-family: var(--font);
  color: var(--gold-base);
  margin-bottom: 14px}
@media (max-width: 860px) {
  .hero .lead { margin-inline: auto; text-align: center}
  .ks-companion-stage::before { display: none} /* centered mobile dock — no dangling tail */
}

/* ========== /31 HERO CRAFT ========== */

/* ========== P0k2 — nuclear ink + exclusivity + no shimmer (2026-10-02) ==========
 * Live fail after 5d882e9/91ffafe: light/gray CTA on gold; PC full+short overlap.
 * CF CSS max-age=86400 kept stale sheets — bust ?v=p0k2 + short cache.
 * ============================================================================== */

.site-header .nav-links a.btn-primary.nav-cta,
.site-header .nav-links a.btn-primary.nav-cta:link,
.site-header .nav-links a.btn-primary.nav-cta:visited,
.site-header .nav-links a.btn-primary.nav-cta:hover,
.site-header .nav-links a.btn-primary.nav-cta:active,
.site-header .nav-links a.btn-primary.nav-cta:focus,
.site-header .nav-links a.btn-primary.nav-cta:focus-visible,
.site-header a.btn-primary,
.site-header a.btn-primary:link,
.site-header a.btn-primary:visited,
.site-header a.btn-primary:hover,
.site-header a.btn-primary:active,
.site-header a.btn-primary:focus-visible,
.site-header .nav-links a.btn-primary.nav-cta .cta-full,
.site-header .nav-links a.btn-primary.nav-cta .cta-short,
.site-header a.btn-primary .cta-full,
.site-header a.btn-primary .cta-short {
  color: var(--gold-ink, #2B1D00) !important;
  -webkit-text-fill-color: var(--gold-ink, #2B1D00) !important;
  text-shadow: none !important;
  opacity: 1 !important;
  filter: none !important;
  mix-blend-mode: normal !important;
  background-image: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
}

.site-header a.btn-primary::before,
.site-header a.btn-primary::after,
.site-header a.btn-primary.nav-cta::before,
.site-header a.btn-primary.nav-cta::after,
.site-header .nav-links a.btn-primary.nav-cta::before,
.site-header .nav-links a.btn-primary.nav-cta::after {
  display: none !important;
  content: none !important;
  opacity: 0 !important;
  background: none !important;
  animation: none !important;
}

.site-header .nav-links a.nav-cta .cta-full,
.site-header a.nav-cta .cta-full {
  display: inline !important;
  visibility: visible !important;
  position: static !important;
  width: auto !important;
  height: auto !important;
  max-width: none !important;
  overflow: visible !important;
  clip: auto !important;
  clip-path: none !important;
  font-size: inherit !important;
  color: inherit !important;
  -webkit-text-fill-color: inherit !important;
}
.site-header .nav-links a.nav-cta .cta-short,
.site-header a.nav-cta .cta-short {
  display: none !important;
  visibility: hidden !important;
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  border: 0 !important;
  white-space: nowrap !important;
  font-size: 0 !important;
  line-height: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

@media (max-width: 860px) {
  .site-header .nav-links a.nav-cta .cta-full,
  .site-header a.nav-cta .cta-full {
    display: none !important;
    visibility: hidden !important;
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    border: 0 !important;
    white-space: nowrap !important;
    font-size: 0 !important;
    line-height: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
  .site-header .nav-links a.nav-cta .cta-short,
  .site-header a.nav-cta .cta-short {
    display: inline !important;
    visibility: visible !important;
    position: static !important;
    width: auto !important;
    height: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    clip: auto !important;
    clip-path: none !important;
    font-size: inherit !important;
    line-height: inherit !important;
    opacity: 1 !important;
    white-space: nowrap !important;
    color: inherit !important;
    -webkit-text-fill-color: inherit !important;
    pointer-events: auto !important;
  }
}

.site-header .wrap {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  min-width: 0 !important;
}
.site-header .logo {
  flex: 0 1 auto !important;
  min-width: 0 !important;
  position: relative !important;
  z-index: 2 !important;
}
.site-header .nav-links {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 6px !important;
  flex: 0 0 auto !important;
  min-width: 0 !important;
  position: relative !important;
  z-index: 3 !important;
}
.site-header .nav-links a.nav-cta {
  position: relative !important;
  z-index: 4 !important;
  flex: 0 0 auto !important;
  white-space: nowrap !important;
}
/* ========== /P0k2 ========== */

/* ========== Quality Motion — wave 32 (2026-10-02) ==========
 * Polish: scroll story, progress bar, phone entrances, reduced-motion.
 * Sticky-safe: never transform/filter sticky .story-device or pair ancestors
 *   (filter/transform on sticky or its ancestor kills position:sticky).
 * Opacity floor stays 1 on story entrances (no mid-scroll ghosts).
 * P0g orphan fauna kill stays. No new kitsune assets / no duplicate hero.
 * Tiny JS unchanged contract: ks-scroll-progress.js + ks-companion.js.
 * ============================================================ */

/* --- Progress bar + trail: one scroll truth, static kill --- */
html.ks-scroll--static body.marketing::before,
html.ks-scroll--static body.marketing::after {
  display: none !important;
  animation: none !important;
  transform: scaleX(0) !important;
  opacity: 0 !important}

/* Trail: glow suave bajo la barra multicolor; misma fuente de escala (--ks-scroll).
 * Una sola definición (base + marca) — el JS/static siguen mandando con !important. */
body.marketing::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  z-index: 199;
  height: 10px;
  width: 100%;
  pointer-events: none;
  transform-origin: 0 50%;
  transform: scaleX(var(--ks-scroll, 0));
  background: linear-gradient(
    180deg,
    rgba(45, 212, 191, 0.22) 0%,
    rgba(245, 196, 81, 0.1) 42%,
    transparent 78%
  );
  opacity: 0.85}

@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    html.ks-scroll--css body.marketing::before,
    html:not(.ks-scroll--js):not(.ks-scroll--static) body.marketing::before {
      animation: scroll-progress linear !important;
      animation-timeline: scroll(root) !important;
      animation-range: 0% 100% !important}
    html.ks-scroll--css body.marketing::after,
    html:not(.ks-scroll--js):not(.ks-scroll--static) body.marketing::after {
      animation: scroll-progress linear !important;
      animation-timeline: scroll(root) !important;
      animation-range: 0% 100% !important}
  }
}

html.ks-scroll--js body.marketing::before,
html.ks-scroll--js body.marketing::after {
  animation: none !important;
  transform: scaleX(var(--ks-scroll, 0)) !important}

/* --- Sticky-safe phone entrances (animate bezel only) --- */
@keyframes story-phone-wow {
  0% { opacity: 1; transform: translateY(16px) scale(0.975) rotateX(2.5deg)}
  58% { opacity: 1; transform: translateY(-1px) scale(1.008) rotateX(0deg)}
  100% { opacity: 1; transform: none}
}
@keyframes story-copy-wow {
  0% { opacity: 1; transform: translateY(12px)}
  45% { opacity: 1; transform: none}
  100% { opacity: 1; transform: none}
}

/* Kill Motion Wow filter/transform on sticky figure + pair (sticky breakers) */
main.story .story-pair,
main.story .story-pair .story-device {
  animation: none !important;
  filter: none !important}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    /* Bezel only — .story-device stays sticky-clean */


    main.story .story-pair .story-copy {
      animation-name: story-copy-wow !important;
      animation-timing-function: linear !important;
      animation-fill-mode: both !important;
      animation-timeline: view() !important;
      animation-range: entry 6% cover 38% !important}

    /* Compact non-pair beats: transform-only, opacity floor 1 */
    main.story > .hero.story-beat,
    main.story > .section.story-beat {
      animation-name: story-enter !important;
      animation-timing-function: linear !important;
      animation-fill-mode: both !important;
      animation-timeline: view() !important;
      animation-range: entry 0% cover 28% !important;
      filter: none !important}
  }
}

@supports not (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {

    main.story .story-pair .story-copy {
      animation: story-copy-wow 0.65s var(--motion-spring, cubic-bezier(.2,.85,.25,1)) both !important}
  }
}

/* Desktop hover lift — bezel only (sticky figure untouched) */
@media (min-width: 861px) and (prefers-reduced-motion: no-preference) {
  .story-pair .story-device {
    transform: none !important;
    filter: none !important}


}

/* --- Reduced-motion: hard stop for quality layer --- */
@media (prefers-reduced-motion: reduce) {
  body.marketing::before,
  body.marketing::after {
    display: none !important;
    animation: none !important;
    opacity: 0 !important}
  main.story .story-pair,
  main.story .story-pair .story-device,
  main.story .story-pair .story-phone,
  main.story .story-pair .story-copy,
  main.story > .hero.story-beat,
  main.story > .section.story-beat {
    animation: none !important;
    transform: none !important;
    filter: none !important;
    transition: none !important}
  .story-pair:hover .story-phone.phone-bezel,
  .story-pair:hover .phone-bezel.story-phone,
  .phone .phone-bezel,
  .story-phone.phone-bezel {
    transform: none !important;
    box-shadow: none}
  .ks-companion-line,
  .ks-companion-line.is-on,
  .ks-companion-line:not(.is-on),
  .ks-companion-face,
  .ks-companion-inner {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    filter: none !important}
  .hero-prize::after { display: none !important; animation: none !important}
  .btn:hover,
  .btn:active,
  .btn-primary:hover,
  .btn-ghost:hover,
  .hero-prize-pills li:hover {
    transform: none !important;
    filter: none !important}
}

/* --- Orphan fauna: reaffirm P0g kill (PASS 2: <1440 only) --- */
@media (max-width: 1439px) {
  .story-fauna,
  .story-fauna .bug,
  .story-fauna .sil-tree,
  .hero-fauna,
  .fw-ambient,
  .ambient-tree,
  main.story > .story-dots,
  main.story > .story-dots::before,
  main.story > .story-dots::after,
  .story-pair::before,
  .story-pair::after {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    animation: none !important}
}

/* ========== /Quality Motion ========== */


/* ========== P0 CTA FORTIFY — final (Agustin PC 2026-10-02) ==========
 * After P0k2: restore gold gradient (P0k2 set background-image:none),
 * broaden ink to all .btn-primary + spans, reaffirm exclusivity globally.
 * ==================================================================== */

/* Restore gold fill on header primary CTAs */
.site-header a.btn-primary,
.site-header a.btn-primary:link,
.site-header a.btn-primary:visited,
.site-header a.btn-primary:hover,
.site-header a.btn-primary:active,
.site-header a.btn-primary.nav-cta,
.site-header a.btn-primary.nav-cta:link,
.site-header a.btn-primary.nav-cta:visited,
.site-header a.btn-primary.nav-cta:hover,
.site-header a.btn-primary.nav-cta:active,
.site-header .nav-links a.btn-primary.nav-cta,
.site-header .nav-links a.btn-primary.nav-cta:link,
.site-header .nav-links a.btn-primary.nav-cta:visited,
.site-header .nav-links a.btn-primary.nav-cta:hover,
.site-header .nav-links a.btn-primary.nav-cta:active {
  background-image: linear-gradient(
    180deg,
    var(--gold-hi) 0%,
    var(--gold-base) 52%,
    var(--gold-deep) 100%
  ) !important;
  background-color: var(--gold-base) !important;
}

/* Global exclusivity — desktop ≥861 full only; ≤860 short only */
.nav-cta .cta-full { display: inline !important; }
.nav-cta .cta-short { display: none !important; }
@media (max-width: 860px) {
  .nav-cta .cta-full { display: none !important; }
  .nav-cta .cta-short { display: inline !important; }
}
@media (min-width: 861px) {
  .nav-cta .cta-full { display: inline !important; }
  .nav-cta .cta-short { display: none !important; }
}

/* Dark ink everywhere primary gold lives */
.btn-primary,
.btn-primary:link,
.btn-primary:visited,
.btn-primary:hover,
.btn-primary:active,
.btn-primary:focus,
.btn-primary:focus-visible,
a.btn-primary,
a.btn-primary:link,
a.btn-primary:visited,
a.btn-primary:hover,
a.btn-primary:active,
a.btn-primary:focus,
a.btn-primary:focus-visible,
.nav-cta,
.nav-cta:link,
.nav-cta:visited,
.nav-cta:hover,
.nav-cta:active,
.nav-cta:focus,
.nav-cta:focus-visible,
a.nav-cta,
a.nav-cta:link,
a.nav-cta:visited,
a.nav-cta:hover,
a.nav-cta:active,
a.nav-cta:focus,
a.nav-cta:focus-visible,
.btn-primary span,
.nav-cta span,
.nav-cta .cta-full,
.nav-cta .cta-short,
a.btn-primary span,
a.nav-cta span,
.nav-links a.btn-primary,
.nav-links a.btn-primary:visited,
.nav-links a.btn-primary:hover,
.nav-links a.btn-primary:active,
.nav-links a.nav-cta,
.nav-links a.nav-cta:visited,
.nav-links a.nav-cta:hover,
.nav-links a.nav-cta:active {
  color: var(--gold-ink) !important;
  -webkit-text-fill-color: var(--gold-ink) !important;
  text-shadow: none !important;
}

/* Kill shimmer ::after on nav CTA */
.nav-cta::after,
a.nav-cta::after,
.nav-cta.btn-primary::after,
a.nav-cta.btn-primary::after,
.btn-primary.nav-cta::after,
.site-header a.btn-primary::after,
.site-header a.btn-primary.nav-cta::after {
  display: none !important;
  content: none !important;
  animation: none !important;
  opacity: 0 !important;
  background: none !important;
}

/* ========== /P0 CTA FORTIFY ========== */


/* ========== 31 HERO CRAFT LOCK (cascade end · 2026-10-02) ==========
 * Reassert premium hero/start after concurrent P0/QM appends.
 * ================================================================ */
.section-title { font-family: var(--display) !important; font-weight: 700}
.hero h1 { font-family: var(--display) !important}
.hero .lead, .lead {
  font-family: var(--font) !important;
  font-weight: 500;
  max-width: 34ch}
.ks-companion-stage {
  display: flex !important;
  align-items: center;
  ;
  ;
  ;
  ;
  ;
  overflow: visible !important; /* allow speech tail */
}
.ks-companion-face {
  width: 44px !important;
  height: 44px !important;
  border: 1.5px solid rgba(245, 196, 81, 0.55) !important;
  }
.ks-companion-line.is-on {
  color: #FAFAFA !important;
  font-family: var(--font) !important;
  font-weight: 560}

.hero-prize-pills strong { color: var(--gold-hi, #FFE9B8) !important}
.hero-cta .btn-primary,
.hero-cta a.btn-primary,
a.btn-primary.cta-waitlist,
.btn-primary.magnetic {
  color: var(--gold-ink, #2B1D00) !important;
  -webkit-text-fill-color: var(--gold-ink, #2B1D00) !important}
/* ========== /31 HERO CRAFT LOCK ========== */

/* ========== 33 FOUNDER PILL DOCK (cascade end · 2026-10-02) ==========
 * Nav: micro-pills glued under gold Founder CTA (liquid-glass dock).
 * Hero/waitlist: same glass language + teal outline glow on hover.
 * Ink on gold CTA untouched (contrast OK — do not restyle --gold-ink).
 * ================================================================== */

.site-header,
.site-header .wrap,
.site-header .nav-links {
  overflow: visible;
}

.nav-cta-dock {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  z-index: 5;
  /* Keep flex row alignment on the gold button, not the hanging pills */
  min-height: 44px;
}

.nav-cta-dock > .nav-cta {
  position: relative;
  z-index: 2;
  /* Soft join into dock — bottom radius eased so glass feels glued */
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
}

/* Liquid-glass tray glued under gold CTA */
.founder-pill-dock {
  ;
  ;
  ;
  ;
  ;
  flex-wrap: nowrap;
  ;
  justify-content: center;
  ;
  ;
  ;
  ;
  ;
  ;
  ;
  ;
  ;
  ;
  }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  
}

/* Tiny gold stem — visually welds tray to button */
.founder-pill-dock::before {
  position: absolute;
  top: -4px;
  left: 50%;
  width: 28%;
  max-width: 48px;
  height: 6px;
  transform: translateX(-50%);
  border-radius: 0 0 8px 8px;
  background: linear-gradient(180deg, rgba(245, 196, 81, 0.55), rgba(245, 196, 81, 0.08));
  opacity: 0.85;
  pointer-events: none;
  z-index: -1}

.founder-pill-dock li,
.hero-prize-pills.founder-micro-pills li,
.founder-micro-pills li {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.02) 55%, rgba(45, 212, 191, 0.05)),
    rgba(9, 12, 20, 0.55);
  color: var(--text-2);
  line-height: 1.15;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 2px 8px rgba(0, 0, 0, 0.22);
  transition:
    transform var(--motion-fast, 0.18s) var(--motion-spring, ease),
    border-color var(--motion-fast, 0.18s) ease,
    box-shadow var(--motion-med, 0.28s) ease,
    color var(--motion-fast, 0.18s) ease,
    background var(--motion-fast, 0.18s) ease}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .founder-pill-dock li,
  .hero-prize-pills.founder-micro-pills li,
  .founder-micro-pills li {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02) 55%, rgba(45, 212, 191, 0.06)),
      rgba(9, 12, 20, 0.42);
    backdrop-filter: blur(12px) saturate(1.4);
    -webkit-backdrop-filter: blur(12px) saturate(1.4)}
}


/* Hero / waitlist cluster — same glass DNA, slightly larger */
.hero-prize-pills.founder-micro-pills li,
.founder-micro-pills li {
  padding: 7px 12px;
  font-size: 0.86rem;
  border-color: rgba(255, 255, 255, 0.16)}
.hero-prize-pills.founder-micro-pills strong,
.founder-micro-pills strong {
  color: var(--gold-hi, #FFE9B8) !important;
  font-weight: 750}

/* Hover: green-outlined glow (mastery teal) — nav + hero unified */
@media (prefers-reduced-motion: no-preference) {
  .founder-pill-dock li:hover,
  .hero-prize-pills.founder-micro-pills li:hover,
  .founder-micro-pills li:hover {
    transform: translateY(-1px) scale(1.03);
    border-color: rgba(45, 212, 191, 0.95);
    color: var(--text);
    box-shadow:
      0 0 0 1px rgba(45, 212, 191, 0.55),
      0 0 18px rgba(45, 212, 191, 0.42),
      0 0 28px rgba(45, 212, 191, 0.18),
      inset 0 1px 0 rgba(255, 255, 255, 0.22)}
  .founder-pill-dock li:active,
  .hero-prize-pills.founder-micro-pills li:active,
  .founder-micro-pills li:active {
    transform: translateY(0) scale(0.98)}
  .founder-pill-dock:hover {
    border-color: rgba(45, 212, 191, 0.35);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.22),
      0 12px 32px rgba(0, 0, 0, 0.4),
      0 0 24px rgba(45, 212, 191, 0.16),
      0 0 0 1px rgba(245, 196, 81, 0.14)}
}

/* Hero prize shell — echo dock glass so cluster feels one system with nav */
.hero-prize.cta-waitlist {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(45, 212, 191, 0.06) 48%, rgba(245, 196, 81, 0.08)),
    rgba(12, 16, 26, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 14px 36px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(245, 196, 81, 0.16)}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .hero-prize.cta-waitlist {
    background:
      linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(45, 212, 191, 0.07) 48%, rgba(245, 196, 81, 0.07)),
      rgba(12, 16, 26, 0.55);
    backdrop-filter: blur(20px) saturate(1.35);
    -webkit-backdrop-filter: blur(20px) saturate(1.35)}
}

/* Clear sticky companion under hanging dock (~18px hang) */

@media (max-width: 860px) {
  :root { --header-h: 80px}
  .founder-pill-dock {
    gap: 2px;
    padding: 2px 3px 3px;
    max-width: min(96vw, 18.5rem)}
  .founder-pill-dock li {
    padding: 2px 6px;
    font-size: 0.58rem}
  .founder-pill-dock li img {
    width: 10px;
    height: 10px}
}
@media (max-width: 380px) {
  .founder-pill-dock li strong {
    /* keep labels — Agustin wants the three prizes visible */
    font-size: inherit}
  .founder-pill-dock {
    max-width: 96vw}
}

/* Do NOT restyle gold CTA ink — fortify stays authoritative */
.nav-cta-dock > .nav-cta,
.nav-cta-dock > .nav-cta:link,
.nav-cta-dock > .nav-cta:visited,
.nav-cta-dock > .nav-cta:hover,
.nav-cta-dock > .nav-cta:active,
.nav-cta-dock > .nav-cta .cta-full,
.nav-cta-dock > .nav-cta .cta-short {
  color: var(--gold-ink, #2B1D00) !important;
  -webkit-text-fill-color: var(--gold-ink, #2B1D00) !important;
}

/* ========== /33 FOUNDER PILL DOCK ========== */

/* ========== 35 AGUA CLONE — neumorphic tank (HTML/CSS ≠ Flutter) ==========
 * Source of truth (READ-ONLY app): neumorphic_water_tank.dart + water_tokens.dart
 * Tokens: accent #0EA5E9 · soft #38BDF8 · ink #0284C7 · success #10B981
 * Radius 40 / border 3 / gauge left / habitat pill / liquid glass ml / % pill
 * Overrides prior oval tank + muddy zinc !important from density pass.
 * ======================================================================= */


/* Kill muddy zinc wash on sip/undo only — tank keeps glass fill */


/* Liquid column — fills from bottom */


/* Idle bubbles */


/* Gloss plate + rim light */


/* Left calibrated gauge */


/* Habitat pill — TEMPLO DE HIDRATACIÓN */


/* Giant liquid-glass ml */


/* Bottom % pill */


/* Sip row + undo — restore water chrome (after kill above) */


@keyframes ks-agua-wave {
  from { transform: translateX(0)}
  to { transform: translateX(-48px)}
}
@keyframes ks-agua-sheen {
  0%, 100% { transform: translateX(-12%); opacity: 0.55}
  50% { transform: translateX(18%); opacity: 0.9}
}
@keyframes ks-agua-bub {
  0% { transform: translate(0, 0) scale(0.7); opacity: 0}
  15% { opacity: 0.75}
  100% { transform: translate(4px, -72px) scale(1); opacity: 0}
}
@keyframes ks-agua-radar {
  0%, 100% { box-shadow: 0 0 5px rgba(16,185,129,0.55), 0 0 0 1px rgba(16,185,129,0.3)}
  50% { box-shadow: 0 0 10px rgba(16,185,129,0.95), 0 0 0 2px rgba(16,185,129,0.45)}
}

@media (prefers-reduced-motion: reduce) {


}

/* Compact phones: keep tank readable */
@media (max-width: 420px) {


}

/* ========== /35 AGUA CLONE ========== */

/* ========== 34 LIQUID GLASS · soft neomorphism (2026-10-02 ART) ==========
 * App mirrors (READ-ONLY): LiquidGlass sigma 24 / radius 20; white@8%→0 dark tint;
 * border white@10%; KairSurfaces cardShadow + neumoHighlight.
 * Elevate ONLY: glass cards, companion dock, pills, phone chrome.
 * Prefer CSS. Kitsune-once + no orphan fauna stand. Never Dart.
 * Sticky-safe: no filter/transform on #ks-companion / .story-device sticky roots.
 * ======================================================================== */

:root {
  --lg-fill: rgba(255, 255, 255, 0.08);
  --lg-fill-deep: rgba(255, 255, 255, 0.02);
  --lg-border: rgba(255, 255, 255, 0.12);
  --lg-border-hi: rgba(255, 255, 255, 0.18);
  --lg-sheen: rgba(255, 255, 255, 0.22);
  --lg-inset: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  --lg-neumo-hi: inset 1px 1px 0 rgba(255, 255, 255, 0.06);
  --lg-neumo-lo: 0 10px 28px rgba(0, 0, 0, 0.38), 0 2px 6px rgba(0, 0, 0, 0.28);
  --lg-blur: blur(22px) saturate(1.35);
  --lg-radius: 20px}

/* ----- Cards: pillars / steps / guide / help / CTA band ----- */
.glass,
.guide-card,
.help-rail-card,
.cta-band.glass {
  position: relative;
  isolation: isolate;
  border-radius: var(--lg-radius);
  border: 1px solid var(--lg-border);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.12), var(--lg-fill-deep) 42%, rgba(45, 212, 191, 0.05)),
    rgba(24, 24, 27, 0.78);
  box-shadow: var(--lg-inset), var(--lg-neumo-hi), var(--lg-neumo-lo);
  overflow: hidden}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass,
  .guide-card,
  .help-rail-card,
  .cta-band.glass {
    background:
      linear-gradient(165deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.02) 45%, rgba(45, 212, 191, 0.06)),
      rgba(18, 20, 28, 0.48);
    backdrop-filter: var(--lg-blur);
    -webkit-backdrop-filter: var(--lg-blur)}
}
/* Specular rim — premium, not clutter */
.glass::before,
.guide-card::before,
.help-rail-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--lg-sheen), transparent);
  opacity: 0.7;
  pointer-events: none;
  z-index: 1}
.pillar.glass,
.step.glass {
  transition:
    transform 0.22s cubic-bezier(.2,.8,.2,1),
    border-color 0.22s ease,
    box-shadow 0.28s ease}
@media (prefers-reduced-motion: no-preference) {
  .pillar.glass:hover,
  .step.glass:hover,
  .guide-card:hover,
  .help-rail-card:hover {
    transform: translateY(-2px);
    border-color: rgba(45, 212, 191, 0.42);
    box-shadow:
      var(--lg-inset),
      0 16px 36px rgba(0, 0, 0, 0.42),
      0 0 0 1px rgba(45, 212, 191, 0.12)}
}

/* ----- Companion dock (inner + bubble only — sticky root untouched) ----- */
.ks-companion-inner {
  border-bottom-color: rgba(45, 212, 191, 0.28) !important;
  ;
  box-shadow:
    inset 0 -1px 0 rgba(245, 196, 81, 0.08),
    0 12px 32px rgba(0, 0, 0, 0.32) !important}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .ks-companion-inner {
    backdrop-filter: var(--dock-blur, blur(20px) saturate(1.4)) !important;
    -webkit-backdrop-filter: var(--dock-blur, blur(20px) saturate(1.4)) !important}
}
.ks-companion-stage {
  border: 1px solid rgba(45, 212, 191, 0.36) !important;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.12), rgba(45, 212, 191, 0.1) 40%, rgba(245, 196, 81, 0.05)),
    rgba(24, 24, 27, 0.72) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 1px 1px 0 rgba(255, 255, 255, 0.05),
    0 10px 24px rgba(0, 0, 0, 0.28) !important}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  
}
.ks-companion-face {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.02)),
    rgba(24, 24, 27, 0.9) !important;
  box-shadow:
    0 0 0 3px rgba(245, 196, 81, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 8px 20px rgba(0, 0, 0, 0.4) !important}

/* ----- Pills: tags, hero rewards, prize, flow ----- */
.tag,
.hero-rewards li,
.hero-prize-pills li,
.founder-micro-pills li,
.ph-flow-pill,
.ph-chip:not(.gold) {
  border: 1px solid var(--lg-border-hi);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02) 55%, rgba(45, 212, 191, 0.05)),
    rgba(12, 16, 24, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 4px 14px rgba(0, 0, 0, 0.22)}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .tag,
  .hero-rewards li,
  .hero-prize-pills li,
  .founder-micro-pills li,
  .ph-flow-pill {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02) 55%, rgba(45, 212, 191, 0.05)),
      rgba(12, 16, 24, 0.38);
    backdrop-filter: blur(14px) saturate(1.4);
    -webkit-backdrop-filter: blur(14px) saturate(1.4)}
}
.hero-prize-pills li {
  border-color: rgba(245, 196, 81, 0.4) !important}

/* ----- Phone chrome: bezel, cards, dock, message ----- */
.phone-bezel,
.story-phone.phone-bezel,
.story-device .phone-bezel {
  background:
    linear-gradient(160deg, #22262f 0%, #12151c 42%, #07090d 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.55),
    0 22px 48px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(255, 255, 255, 0.04) !important}
.phone-island {
  background: #05070b;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.04)}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {

}


/* Soft neumo leaf mark (no emoji) for Agua habitat pill */


/* Reduced motion — freeze glass hover lifts only (Agua waves owned by §35) */
@media (prefers-reduced-motion: reduce) {
  .pillar.glass:hover,
  .step.glass:hover,
  .guide-card:hover,
  .help-rail-card:hover {
    transform: none !important}
}

/* Reaffirm kitsune-once + no orphan fauna (quality bar)
 * PASS 2: bloque entero scoped <1440px. ≥1440: ks-speak sigue muerto por P0e
 * (main.story .ks-speak) y 42 re-apaga fw-ambient sin sumar tokens forzados. */
@media (max-width: 1439px) {
  .ks-speak,
  .ks-speak-face,
  figure.ks-speak,
  .story-fauna,
  .story-fauna .bug,
  .story-fauna .sil-tree,
  .hero-fauna,
  .fw-ambient,
  .ambient-tree {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important}
}

/* ========== /34 LIQUID GLASS ========== */

/* ========== 36 KITSUNE GLASS STAGE + HOME/RUTINA FIDELITY (2026-10-02 ART) ==========
 * HARD: kitsune face still ONLY hero .fox-stage (1 big) + sticky #ks-companion mark.
 * No new face imgs. Glass/lighting = CSS petals under the SAME hero asset.
 * Home/Rutina phones: clone read-only app chrome (squircle bar, Flow segs, week strip,
 * habit cards with tags) — HTML/CSS ≠ Flutter. Never Dart.
 * ================================================================================ */

.fox-stage[data-stage="glass"],
.fox-stage {
  position: relative;
  width: min(420px, 90vw);
  ;
  isolation: isolate}
.fox-stage-bloom,
.fox-stage-rim,
.fox-stage-glass,
.fox-stage-shadow {
  pointer-events: none;
  position: absolute}
.fox-stage-bloom {
  z-index: 0;
  ;
  ;
  }
.fox-stage-rim {
  z-index: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 55%, transparent 42%, rgba(255, 255, 255, 0.07) 58%, transparent 72%);
  mix-blend-mode: screen;
  }
.fox-stage[data-stage="glass"]::before {
  inset: 10% 4% 16%;
  background:
    radial-gradient(circle at 50% 58%, rgba(45, 212, 191, 0.22), transparent 68%),
    radial-gradient(circle at 55% 38%, rgba(245, 196, 81, 0.14), transparent 55%);
  filter: blur(28px);
  z-index: 0}
.fox-stage picture,
.fox-stage > img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
  }
.fox-stage-glass {
  ;
  ;
  ;
  z-index: 1;
  ;
  ;
  ;
  ;
  ;
  ;
  ;
  transform-origin: center bottom;
  overflow: hidden}
.fox-stage-sheen {
  position: absolute;
  ;
  ;
  ;
  }
.fox-stage-edge {
  position: absolute;
  left: 8%;
  right: 8%;
  ;
  ;
  }
.fox-stage-shadow {
  ;
  ;
  ;
  z-index: 0;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.55), transparent 70%);
  filter: blur(6px)}
@media (prefers-reduced-motion: no-preference) {
  .fox-stage-sheen { animation: fox-sheen-sweep 7.2s ease-in-out infinite}
}
@keyframes fox-sheen-sweep {
  0%, 100% { transform: translateX(-12%); opacity: 0.35}
  50% { transform: translateX(14%); opacity: 0.65}
}
@media (prefers-reduced-motion: reduce) {
  .fox-stage-bloom,
  .fox-stage-sheen,
  .fox-stage[data-stage="glass"]::before,
  .fox-stage picture,
  .fox-stage > img { animation: none !important}
}
@media (max-width: 860px) {
  .fox-stage[data-stage="glass"],
  .fox-stage { width: min(300px, 82vw); }
  
}


/* ========== /36 KITSUNE GLASS + HOME/RUTINA ========== */

/* ========== 37 REFERIDOS + MASTERY PRESENCE ==========
 * Referidos: nav discoverability + soft attn (not spam).
 * Mastery: liquid-glass gold+teal pill in nav + /mastery/ hero.
 * Ladder LOCKED · no $ in referral UI · never Dart.
 * ============================================================ */

/* --- Mastery nav / page chip: liquid glass gold + teal --- */
.nav-chip--mastery,
.mastery-presence-chip {
  --m-gold: rgba(245, 196, 81, 0.55);
  --m-teal: rgba(45, 212, 191, 0.5);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: #F8E7B0 !important;
  -webkit-text-fill-color: #F8E7B0;
  border: 1px solid transparent;
  background:
    linear-gradient(135deg, rgba(24, 28, 38, 0.72), rgba(12, 18, 28, 0.55)) padding-box,
    linear-gradient(135deg, var(--m-gold), var(--m-teal), rgba(245, 196, 81, 0.35)) border-box;
  box-shadow:
    0 0 0 1px rgba(245, 196, 81, 0.08),
    0 6px 18px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -8px 16px rgba(45, 212, 191, 0.06);
  backdrop-filter: blur(14px) saturate(1.35);
  -webkit-backdrop-filter: blur(14px) saturate(1.35);
  overflow: hidden;
  isolation: isolate;
}
.nav-chip--mastery::before,
.mastery-presence-chip::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(245, 196, 81, 0.16) 28%,
    rgba(45, 212, 191, 0.14) 52%,
    transparent 72%
  );
  opacity: 0.85;
  pointer-events: none;
  z-index: 0;
}
.nav-chip--mastery > *,
.mastery-presence-chip > * { position: relative; z-index: 1; }
.nav-chip--mastery:hover,
.nav-chip--mastery:focus-visible,
.mastery-presence-chip:hover {
  color: #FFF6D6 !important;
  -webkit-text-fill-color: #FFF6D6;
  box-shadow:
    0 0 0 1px rgba(45, 212, 191, 0.22),
    0 8px 22px rgba(0, 0, 0, 0.4),
    0 0 22px rgba(245, 196, 81, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.nav-links > a.nav-chip--mastery.hide-sm {
  /* keep desktop row alignment with sibling text links */
  margin-inline: 2px;
}
.nav-menu-panel a.nav-chip--mastery {
  justify-content: center;
  min-height: 44px;
  margin: 2px 0 4px;
  color: #F8E7B0 !important;
  -webkit-text-fill-color: #F8E7B0;
}
.nav-menu-panel a.nav-chip--mastery:hover {
  background:
    linear-gradient(135deg, rgba(32, 36, 48, 0.85), rgba(16, 22, 34, 0.7)) padding-box,
    linear-gradient(135deg, var(--m-gold), var(--m-teal), rgba(245, 196, 81, 0.35)) border-box;
}

/* Page hero Mastery presence (larger) */
.page-hero--mastery .mastery-presence-chip {
  margin: 0 0 14px;
  padding: 8px 16px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase}
.page-hero--mastery .mastery-presence-chip .mpc-teal {
  color: #7EE8D8;
  -webkit-text-fill-color: #7EE8D8;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: none;
  opacity: 0.95}
.page-hero--mastery .mastery-presence-chip .mpc-sep {
  opacity: 0.45;
  margin: 0 2px}

/* --- Referidos nav: soft attention (slow, sparse — not spam) --- */
.nav-link--referidos {
  position: relative;
}
.nav-link--referidos::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(45, 212, 191, 0.55), rgba(245, 196, 81, 0.45), transparent);
  opacity: 0.35;
  transform: scaleX(0.55);
  transform-origin: center;
  pointer-events: none;
}
.nav-menu-panel a.nav-link--referidos::after {
  left: 14px;
  right: 14px;
  bottom: 8px;
}
@keyframes ks-ref-attn {
  0%, 78%, 100% {
    opacity: 0.28;
    transform: scaleX(0.5);
    filter: brightness(1)}
  86% {
    opacity: 0.85;
    transform: scaleX(1);
    filter: brightness(1.25)}
  92% {
    opacity: 0.45;
    transform: scaleX(0.7)}
}
@media (prefers-reduced-motion: no-preference) {
  .nav-link--referidos::after {
    animation: ks-ref-attn 7.5s ease-in-out infinite;
  }
}
.nav-link--referidos:hover::after,
.nav-link--referidos:focus-visible::after {
  opacity: 0.9;
  transform: scaleX(1);
  animation: none;
}
.nav-menu-panel a.nav-link--referidos {
  color: var(--text);
  font-weight: 700;
}

/* Referidos page presence strip */


/* Help-rail Mastery card uses same chip language when marked */
.help-rail-card .nav-chip--mastery,
.help-rail-card .mastery-presence-chip {
  margin-bottom: 6px;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .nav-link--referidos::after {
    animation: none !important;
    opacity: 0.55;
    transform: scaleX(0.85);
  }
}

/* Help-rail: chip inside strong shouldn't inherit link weight weirdness */

.help-rail-card strong.nav-link--referidos {
  display: inline-block;
  position: relative;
  padding-bottom: 4px;
}
.help-rail-card strong.nav-link--referidos::after {
  bottom: 0;
}
/* ========== /37 REFERIDOS + MASTERY PRESENCE ========== */


/* 35b — density zinc must not paint Agua neumo tank */


/* 36 glass stage lock — stronger pedestal read */
.fox-stage-glass {
  ;
  ;
  border-color: rgba(255,255,255,0.4) !important;
  }


/* 36 glass disk v2 — readable elliptical pedestal (no extreme rotateX crush) */
.fox-stage-glass {
  ;
  ;
  ;
  ;
  ;
  ;
  ;
  ;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important}
.fox-stage-sheen {
  inset: 0 auto auto 0 !important;
  width: 100% !important;
  height: 55% !important;
  border-radius: 50% !important;
  background: linear-gradient(180deg, rgba(255,255,255,0.55), transparent 70%) !important;
  opacity: 0.7 !important}
.fox-stage-edge {
  top: 28% !important;
  height: 1.5px !important;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.75), transparent) !important}


/* ========== 38 NAV PILLS + COMPANION FIX (2026-10-02 ART) ==========
 * Prize dock NO LONGER absolute-hangs under CTA (clipped + fought companion).
 * Markup: .founder-prize-ribbon inside sticky .site-header (normal flow).
 * Mobile: full-width 3 equal micro-pills; short companion; clear --header-h.
 * Narrow desktop (~1024): compact nav (hamburger + short CTA) — no CTA clip.
 * Companion: one .is-on line, premium glass, never under pills.
 * Hero fox-stage: stronger soft aura / pedestal (same face assets).
 * Never Dart. Gold CTA ink untouched (#2B1D00 / --gold-ink). No $.
 * ================================================================== */

/* --- Sticky header = column: nav row + prize ribbon --- */
.site-header {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  overflow: visible;
}
.site-header .wrap {
  overflow: visible;
  width: 100%;
  box-sizing: border-box;
}

/* CTA dock is button-only now (pills live in ribbon) */
.nav-cta-dock {
  position: relative;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 0;
  z-index: 5;
}
.nav-cta-dock > .nav-cta {
  border-bottom-left-radius: var(--radius-pill, 999px);
  border-bottom-right-radius: var(--radius-pill, 999px);
}

/* Slim full-width prize ribbon — stays inside sticky header footprint */
.founder-prize-ribbon {
  display: block;
  width: 100%;
  flex: 0 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(180deg, rgba(245, 196, 81, 0.06), rgba(45, 212, 191, 0.04) 55%, transparent),
    rgba(2, 13, 26, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05)}
.founder-prize-ribbon-inner,
.site-header .wrap.founder-prize-ribbon-inner {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: center !important; /* beat .site-header .wrap space-between */
  gap: 8px;
  padding-block: 5px 6px;
  padding-inline: max(12px, env(safe-area-inset-left, 0px))
                  max(12px, env(safe-area-inset-right, 0px));
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
  min-height: 0;
}

/* Kill absolute hang from §33 — pills are in-flow, never clip viewport */
.founder-pill-dock {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
  z-index: 1;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  justify-items: stretch;
  gap: 4px;
  margin: 0;
  padding: 3px 4px;
  list-style: none;
  width: 100%;
  max-width: min(36rem, 100%);
  box-sizing: border-box;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.03) 42%, rgba(45, 212, 191, 0.07)),
    rgba(8, 14, 24, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 6px 18px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(245, 196, 81, 0.1);
  pointer-events: auto}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .founder-pill-dock {
    background:
      linear-gradient(165deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02) 45%, rgba(45, 212, 191, 0.08)),
      rgba(8, 14, 24, 0.4);
    backdrop-filter: blur(16px) saturate(1.5);
    -webkit-backdrop-filter: blur(16px) saturate(1.5)}
}
/* No gold stem — ribbon is not glued under CTA */
.founder-pill-dock::before {
  content: none !important;
  display: none !important}

.founder-pill-dock li {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  width: 100%;
  padding: 4px 6px;
  font-size: 0.68rem; /* ~11px */
  font-weight: 650;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-radius: 999px;
  box-sizing: border-box}
.founder-pill-dock li img {
  width: 11px;
  height: 11px;
  flex-shrink: 0}
.founder-pill-dock li strong {
  color: var(--gold-hi, #FFE9B8);
  font-weight: 750;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis}

/* Desktop: slightly roomier pills, ribbon can sit a touch narrower/centered */
@media (min-width: 1101px) {
  .founder-prize-ribbon-inner,
  .site-header .wrap.founder-prize-ribbon-inner {
    padding-block: 6px 7px;
    justify-content: flex-end !important; /* under CTA side */
  }
  .founder-pill-dock {
    width: auto;
    max-width: min(28rem, 100%);
    grid-template-columns: repeat(3, max-content);
    justify-content: end;
    gap: 5px;
    padding: 4px 5px}
  .founder-pill-dock li {
    width: auto;
    padding: 4px 10px;
    font-size: 0.7rem}
}

/* --- Compact nav earlier (~1024): no Founder CTA clip --- */
@media (max-width: 1100px) {
  .nav-links .hide-sm { display: none !important; }
  .lang-switch--bar { display: none !important}
  .nav-menu { display: inline-block !important; }

  /* Compact CTA: mirror §P0 exclusivity (visibility/clip/font) up to 1100px */
  .site-header .nav-links a.nav-cta .cta-full,
  .site-header a.nav-cta .cta-full,
  .nav-cta .cta-full {
    display: none !important;
    visibility: hidden !important;
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    border: 0 !important;
    white-space: nowrap !important;
    font-size: 0 !important;
    line-height: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
  .site-header .nav-links a.nav-cta .cta-short,
  .site-header a.nav-cta .cta-short,
  .nav-cta .cta-short {
    display: inline !important;
    visibility: visible !important;
    position: static !important;
    width: auto !important;
    height: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    clip: auto !important;
    clip-path: none !important;
    border: 0 !important;
    white-space: nowrap !important;
    font-size: inherit !important;
    line-height: inherit !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    color: inherit !important;
    -webkit-text-fill-color: inherit !important;
  }

  .site-header .nav-links a.nav-cta,
  .site-header a.nav-cta,
  .nav-cta {
    padding-inline: 12px;
    font-size: 0.82rem;
    min-height: 40px;
    max-width: none;
  }

  .site-header .wrap {
    padding-block: 10px;
    gap: 8px;
  }
  .site-header .nav-links {
    gap: 6px;
    flex-wrap: nowrap;
  }

  .founder-prize-ribbon-inner,
  .site-header .wrap.founder-prize-ribbon-inner {
    justify-content: center !important;
    padding-block: 3px 4px;
  }
  .founder-pill-dock {
    max-width: 100%;
    width: auto;
    margin-inline: auto;
    grid-template-columns: repeat(3, max-content);
    justify-content: center;
    gap: 3px;
    padding: 2px 3px}
  .founder-pill-dock li {
    width: auto;
    max-width: none;
    padding: 3px 6px;
    font-size: 0.66rem; /* ≥11px-ish on most phones */
    gap: 3px}
  .founder-pill-dock li img {
    width: 10px;
    height: 10px}
}

@media (max-width: 380px) {
  .founder-pill-dock li {
    font-size: 0.62rem;
    padding: 3px 3px}
}

/* Override §33 header-h — companion clears FULL header + ribbon */
:root {
  /* Measured sticky footprint: nav row + prize ribbon (wave 38) */
  --header-h: 124px}
@media (max-width: 1100px) {
  :root { --header-h: 102px}
}
@media (max-width: 430px) {
  :root { --header-h: 102px}
}

/* --- Companion: clear ribbon, premium glass, ONE visible line --- */
#ks-companion.ks-companion,
.ks-companion {
  top: var(--header-h, 108px) !important;
  z-index: 45}
.ks-companion-inner {
  gap: 10px;
  padding: 6px 18px 7px;
  border-bottom: 1px solid rgba(45, 212, 191, 0.2);
  background:
    linear-gradient(180deg, rgba(2, 13, 26, 0.92), rgba(8, 14, 22, 0.86)) !important;
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.05)}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .ks-companion-inner {
    backdrop-filter: blur(18px) saturate(1.25);
    -webkit-backdrop-filter: blur(18px) saturate(1.25)}
}
.ks-companion-face {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(245, 196, 81, 0.45);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.35),
    0 0 12px rgba(45, 212, 191, 0.18)}
.ks-companion-stage {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0 !important;
  padding: 6px 12px 6px 14px !important;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02) 50%, rgba(45, 212, 191, 0.06)),
    rgba(6, 12, 20, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 4px 14px rgba(0, 0, 0, 0.22);
  overflow: hidden}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .ks-companion-stage {
    backdrop-filter: blur(12px) saturate(1.35);
    -webkit-backdrop-filter: blur(12px) saturate(1.35)}
}
.ks-companion-stage::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  background: inherit;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  transform: rotate(45deg);
  border-radius: 1px;
  z-index: 0;
  pointer-events: none}
.ks-companion-line,
.ks-companion-line.is-on {
  font-size: 0.86rem !important;
  line-height: 1.3 !important;
  font-weight: 560;
  color: #FAFAFA !important}
/* HARD: only .is-on visible — one clean line (ellipsis if long) */
.ks-companion-line:not(.is-on) {
  position: absolute !important;
  inset: 0 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  height: 0 !important;
  width: 0 !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important}
.ks-companion-line.is-on {
  position: relative !important;
  inset: auto !important;
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
  height: auto !important;
  width: auto !important;
  max-width: 100%;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  clip-path: none !important;
  clip: auto !important}

@media (max-width: 1100px) {
  
  
  
  .ks-companion-stage::before {
    display: none; /* centered mobile — no dangling tail */
  }
  
}

@media (prefers-reduced-motion: reduce) {
  .ks-companion-line,
  .ks-companion-line.is-on,
  .ks-companion-line:not(.is-on) {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    filter: none !important}
  /* Keep HARD one-line visibility even when motion is off */
  .ks-companion-line:not(.is-on) {
    opacity: 0 !important;
    visibility: hidden !important}
  .ks-companion-line.is-on {
    opacity: 1 !important;
    visibility: visible !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important}
}

/* Gold CTA ink fortify (ribbon era) — do not lighten */
.nav-cta-dock > .nav-cta,
.nav-cta-dock > .nav-cta:link,
.nav-cta-dock > .nav-cta:visited,
.nav-cta-dock > .nav-cta:hover,
.nav-cta-dock > .nav-cta:active,
.nav-cta-dock > .nav-cta .cta-full,
.nav-cta-dock > .nav-cta .cta-short,
.site-header a.btn-primary.nav-cta,
.site-header a.btn-primary.nav-cta .cta-full,
.site-header a.btn-primary.nav-cta .cta-short {
  color: var(--gold-ink, #2B1D00) !important;
  -webkit-text-fill-color: var(--gold-ink, #2B1D00) !important;
}

/* Teal hover glow on ribbon pills (keep) */
@media (prefers-reduced-motion: no-preference) {
  .founder-pill-dock li:hover {
    transform: translateY(-1px);
    border-color: rgba(45, 212, 191, 0.95);
    box-shadow:
      0 0 0 1px rgba(45, 212, 191, 0.5),
      0 0 16px rgba(45, 212, 191, 0.35),
      inset 0 1px 0 rgba(255, 255, 255, 0.2)}
}

/* --- Hero kitsune aura polish (same face — stronger soft bloom/disk) --- */
.fox-stage[data-stage="glass"],
.fox-stage {
  padding-bottom: 32px}
.fox-stage-bloom {
  inset: -2% -14% 12% -14% !important;
  opacity: 1 !important;
  filter: blur(44px) !important;
  background:
    radial-gradient(ellipse 58% 50% at 50% 42%, rgba(45, 212, 191, 0.55), transparent 72%),
    radial-gradient(ellipse 42% 38% at 64% 26%, rgba(245, 196, 81, 0.36), transparent 68%),
    radial-gradient(ellipse 38% 32% at 30% 60%, rgba(168, 85, 247, 0.22), transparent 65%) !important}
.fox-stage-rim {
  opacity: 0.9 !important;
  inset: 6% 8% 20% 8% !important}
.fox-stage-glass {
  left: 9% !important;
  right: 9% !important;
  bottom: 2px !important;
  height: 40px !important;
  border-radius: 50% !important;
  transform: none !important;
  border: 1.5px solid rgba(255, 255, 255, 0.48) !important;
  background:
    radial-gradient(ellipse 70% 85% at 50% 32%, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.1) 42%, rgba(45, 212, 191, 0.2) 68%, rgba(2, 13, 26, 0.4) 100%) !important;
  box-shadow:
    0 20px 44px rgba(0, 0, 0, 0.58),
    0 0 40px rgba(45, 212, 191, 0.34),
    0 0 60px rgba(245, 196, 81, 0.12),
    inset 0 2px 0 rgba(255, 255, 255, 0.6),
    inset 0 -8px 16px rgba(2, 13, 26, 0.48) !important}
.fox-stage-shadow {
  bottom: -14px !important;
  height: 26px !important;
  opacity: 0.95 !important;
  left: 14% !important;
  right: 14% !important}
.fox-stage picture,
.fox-stage > img {
  filter:
    drop-shadow(0 24px 44px rgba(0, 0, 0, 0.58))
    drop-shadow(0 0 42px rgba(45, 212, 191, 0.36))
    drop-shadow(0 -10px 26px rgba(245, 196, 81, 0.2))
    drop-shadow(0 0 18px rgba(168, 85, 247, 0.12)) !important}
@media (max-width: 860px) {
  .fox-stage[data-stage="glass"],
  .fox-stage { padding-bottom: 24px}
  .fox-stage-glass { height: 32px !important}
  .fox-stage-bloom {
    inset: 0% -10% 16% -10% !important;
    /* paint liviano en mobile: halo estático más barato, mismo look */
    filter: blur(24px) !important}
}

/* ========== /38 NAV PILLS + COMPANION FIX ========== */

/* ========== 38b COMPANION MOBILE FULL DIALOGUE (2026-10-02 ART) ==========
 * Residual FAIL after nav38 live mobile: one-line ellipsis ate welcome
 * ("¡Hola! … yo te…"). Desktop ellipsis stays. Ribbon/pills/CTA untouched.
 * Mobile ≤1100: wrap 2–3 lines, NO ellipsis. Still ONE .is-on (kitsune-once).
 * Tighten face/padding so multi-line does not explode sticky height.
 * ======================================================================== */

/* Sticky companion root: allow height to grow with wrapped dialogue */
@media (max-width: 1100px) {
  #ks-companion.ks-companion,
  .ks-companion {
    overflow: visible !important;
    height: auto !important;
    max-height: none !important}
}

/* Desktop ≥1101: keep compact single-line ellipsis (already PASS) */
@media (min-width: 1101px) {
  .ks-companion-line.is-on {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important}
}

/* Mobile / tablet / ~1024: FULL dialogue readable — wrap, no ellipsis */
@media (max-width: 1100px) {
  .ks-companion-inner {
    align-items: flex-start; /* face tops when text wraps */
    padding: 5px 10px 6px;
    gap: 7px;
    overflow: visible !important}
  .ks-companion-face {
    width: 26px;
    height: 26px;
    margin-top: 3px; /* optical align with first line */
    flex-shrink: 0}
  .ks-companion-stage {
    padding: 6px 10px 7px !important;
    border-radius: 12px;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important; /* never clip wrapped dialogue */
  }
  .ks-companion-line,
  .ks-companion-line.is-on {
    font-size: 0.74rem !important;
    line-height: 1.3 !important}
  /* HARD override of wave-38 nowrap+ellipsis on mobile */
  .ks-companion-line.is-on {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    display: block !important;
    height: auto !important;
    max-height: none !important;
    /* Soft cap ~3 lines without ellipsis eating mid-sentence:
       allow natural wrap; longest beat fits ~2–3 lines at 390. */
    -webkit-line-clamp: unset !important;
    line-clamp: unset !important}
}

@media (max-width: 430px) {
  .ks-companion-inner {
    padding: 3px 8px 4px;
    gap: 6px}
  .ks-companion-face {
    width: 24px;
    height: 24px}
  .ks-companion-line,
  .ks-companion-line.is-on {
    font-size: 0.72rem !important;
    line-height: 1.27 !important}
}

/* Reduced-motion: still ONE .is-on; mobile wrap, desktop ellipsis */
@media (prefers-reduced-motion: reduce) and (max-width: 1100px) {
  .ks-companion-line.is-on {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important}
}
@media (prefers-reduced-motion: reduce) and (min-width: 1101px) {
  .ks-companion-line.is-on {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important}
}

/* ========== /38b COMPANION MOBILE FULL DIALOGUE ========== */

/* ========== 39 MOBILE HEADER COMPACT (2026-10-02) ==========
 * ≤560: one nav row + prize ribbon in a single line (CTA + 3 pills),
 * header token matches measured height. */
@media (max-width: 560px) {
  :root:root {
    --header-h: 134px}
  .site-header .nav-founder-dock.cta-waitlist {
    flex-direction: row;
    width: auto;
    max-width: calc(100% - 16px);
    gap: 4px;
    padding: 4px;
    border-radius: 999px;
  }
  .site-header .nav-founder-dock.cta-waitlist .nav-cta {
    width: auto;
    flex: 0 0 auto;
    min-width: 0;
    padding-inline: 10px;
    font-size: 0.76rem;
  }
  .site-header .nav-founder-dock.cta-waitlist > .founder-pill-dock {
    display: flex !important; /* replaces ks-nav-v2 grid !important at ≤560 */
    grid-template-columns: none;
    width: auto;
    flex: 0 1 auto;
    min-width: 0;
    gap: 3px;
  }
  .site-header .nav-founder-dock.cta-waitlist .founder-pill-dock > li {
    width: auto;
    flex: 0 1 auto;
    min-width: 0;
    padding: 0 5px;
    font-size: 0.56rem;
    letter-spacing: 0;
    gap: 3px;
  }
  .site-header .nav-founder-dock.cta-waitlist .founder-pill-dock > li strong {
    white-space: nowrap;
  }
  .site-header .nav-founder-dock.cta-waitlist .founder-pill-dock > li img {
    width: 9px;
    height: 9px;
    max-width: 9px;
  }
}
@media (max-width: 380px) {
  .site-header .nav-founder-dock.cta-waitlist .nav-cta {
    font-size: 0.7rem;
    padding-inline: 8px;
  }
  .site-header .nav-founder-dock.cta-waitlist .founder-pill-dock > li {
    font-size: 0.52rem;
    padding: 0 3px;
    gap: 2px;
  }
  .site-header .nav-founder-dock.cta-waitlist .founder-pill-dock > li img {
    display: none;
  }
}
@media (max-width: 340px) {
  .site-header .nav-founder-dock.cta-waitlist .nav-cta {
    font-size: 0.66rem;
    padding-inline: 7px;
  }
  .site-header .nav-founder-dock.cta-waitlist .founder-pill-dock > li {
    font-size: 0.5rem;
    padding: 0 2px;
    gap: 2px;
  }
}

/* ========== /39 MOBILE HEADER COMPACT ========== */

/* ========== 41 FLUIDEZ — tokens en uso, reveals ricos, mobile calm (2026-10-03) ==========
 * Pass fuerte de fluidez SOLO en marketing.css. Nav intacto (ks-nav-v2.css manda).
 * Reglas: scroll-linked = transform/opacity (0 filter/box-shadow animados);
 * backdrop-filter liviano ≤560 donde hay capas anidadas; hero sigue con 3 loops
 * (float + glow + sheen). 0 !important nuevos. Reduced-motion: hereda el kill global.
 * ==================================================================================== */

:root {
  --dock-blur: blur(20px) saturate(1.4)}

/* --- CTA/botones marketing (scope main: la CTA del nav conserva su física) --- */
@media (prefers-reduced-motion: no-preference) {
  main .btn {
    transition:
      transform var(--dur-1) var(--ease-spring),
      box-shadow var(--dur-2) var(--ease-out),
      background var(--dur-1) var(--ease-out),
      border-color var(--dur-1) var(--ease-out),
      color var(--dur-1) var(--ease-out),
      filter var(--dur-1) var(--ease-out)}
  main .btn:hover { transform: translateY(var(--lift-2))}
  main .btn:active {
    transform: translateY(1px) scale(var(--press-scale));
    transition-duration: 90ms;
    transition-timing-function: var(--ease-press)}
}

/* --- Chips / cards: una sola física (lift + press) --- */
@media (prefers-reduced-motion: no-preference) {
  .section-chip,
  .eco-pill,
  .mastery-card,
  .help-rail-card,
  .guide-card {
    transition:
      transform var(--dur-1) var(--ease-spring),
      border-color var(--dur-1) var(--ease-out),
      box-shadow var(--dur-2) var(--ease-out),
      background var(--dur-1) var(--ease-out),
      color var(--dur-1) var(--ease-out)}
  .section-chip:hover,
  .eco-pill:hover,
  .mastery-card:hover,
  .help-rail-card:hover,
  .guide-card:hover { transform: translateY(var(--lift-2))}
  .section-chip:active,
  .eco-pill:active {
    transform: translateY(0) scale(var(--press-scale));
    transition-duration: 90ms;
    transition-timing-function: var(--ease-press)}
}

/* --- Reveals ricos por view(): contenedores (no pisan hover de hijos) --- */
@keyframes joy-line-in {
  from { transform: scaleX(0.35); opacity: 0.3}
  to { transform: scaleX(1); opacity: 0.85}
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .story-rail-head,
    .kob-step,
    .ladder-row,
    .mastery-board,
    .guide-cats,
    .eco-pills {
      animation: soft-rise linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 30%}
    .kob-step:nth-child(2) { animation-range: entry 6% cover 34%}
    .kob-step:nth-child(3) { animation-range: entry 12% cover 38%}


    .section-chips li {
      animation: tag-pop linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 24%}
    .section-chips li:nth-child(2) { animation-range: entry 5% cover 28%}
    .section-chips li:nth-child(3) { animation-range: entry 10% cover 32%}
    .section-chips li:nth-child(n+4) { animation-range: entry 15% cover 36%}

    .joy-sep::before,
    .joy-sep::after {
      transform-origin: 50% 50%;
      animation: joy-line-in linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 34%}
  }
}
@supports not (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .story-rail-head,
    .kob-steps,
    .ladder,
    .mastery-board,
    .guide-cats,
    .eco-pills,
    .section-chips {
      animation: soft-rise 0.7s var(--ease-out) both}
    .kob-steps { animation-delay: 0.06s}
  }
}

/* --- Mobile ≤560: aliviar blur anidado + calmar loops que pintan por frame --- */
@media (max-width: 560px) {
  :root {
    --lg-blur: blur(9px) saturate(1.18);
    /* Dock sticky sobre contenido en movimiento: su fondo ya es ~92% opaco,
     * así que sin blur se ve igual y no se re-difumina cada frame. */
    --dock-blur: none}
  .ks-companion-stage {
    backdrop-filter: none;
    -webkit-backdrop-filter: none}
  .ph-flow-pill,
  .ph-dock,
  .glass-ui,
  .ph-message,
  .phone-home .ph-message,
  .ph-mastery-seal,
  .hero-prize.cta-waitlist,
  .hero-prize-pills li,
  .hero-rewards li,
  .tag {
    backdrop-filter: none;
    -webkit-backdrop-filter: none}
}
@media (max-width: 560px) and (prefers-reduced-motion: no-preference) {
  /* Los loops de sombra/filtro/background-position se apagan; quedan los de transform */

}

/* --- Reduced-motion: tokens en cero (el kill global remata anim/transition) --- */
@media (prefers-reduced-motion: reduce) {
  :root {
    --dur-1: 0s;
    --dur-2: 0s;
    --dur-3: 0s;
    --lift-1: 0px;
    --lift-2: 0px;
    --lift-3: 0px;
    --press-scale: 1}
}

/* ========== /41 FLUIDEZ ========== */

/* ========== 42 PASS 2 — ultrawide + ambient gutters + fluidez + perf (2026-10-03) ==========
 * SOLO marketing.css. Nav (site-header, nav-*, nav-founder-dock, founder-pill-dock) intacto.
 * Ultrawide: --max 1280@≥1440 / 1360@≥1920 / 1680@≥2000; guards de fauna re-scopados <1440px (arriba);
 * ≥1440 ambient vuelve SOLO en gutters (transform/opacity estáticos, 0 loops nuevos).
 * Bandas full-bleed waitlist/hub; hero asimétrico con aura; wrap padding fluido.
 * Perf: content-visibility en beats fuera de viewport (intrinsic medido), menos backdrop
 * en mobile, 0 scroll-snap. Reduced-motion: ambient apagado + kill global existente.
 * 0 declaraciones forzadas nuevas (885 antes = 885 después).
 * ========================================================================================= */

/* --- 42.1 Ultrawide: ancho útil + gutters --- */
@media (min-width: 1440px) {
  :root { --max: 1280px}

  .wrap { padding-inline: clamp(20px, 1.8vw, 44px)}
  footer.site-footer .ksf-wrap { padding-inline: clamp(20px, 1.8vw, 48px)}

  .story-pair-inner {
    max-width: min(1180px, var(--max));
    margin-inline: auto;
    gap: 56px}

  /* Hero asimétrico + aura (estática: sin filter/box-shadow animados) */
  main.story > .hero.story-beat {
    grid-template-columns: minmax(0, 1.34fr) minmax(0, 0.66fr);
    gap: clamp(40px, 5vw, 88px);
    padding-block: 84px 64px}
  /* Colocación explícita: robusta ante hijos nuevos (ambient/cue/sentinels) */
  main.story > .hero.story-beat > div:not([class]) { grid-column: 1; grid-row: 1}
  main.story > .hero.story-beat > .hero-visual { grid-column: 2; grid-row: 1}
  .hero-visual { min-height: clamp(440px, 42vw, 560px)}
  .hero-visual::before {
    content: "";
    position: absolute;
    inset: -12% -20% -8% -30%;
    z-index: 0;
    pointer-events: none;
    background:
      radial-gradient(ellipse 56% 50% at 64% 40%, rgba(45, 212, 191, 0.16), transparent 70%),
      radial-gradient(ellipse 40% 38% at 36% 64%, rgba(245, 196, 81, 0.1), transparent 72%)}

  /* Bandas full-bleed: el fondo cruza el viewport, el contenido sigue en .wrap */
  #waitlist,
  .hub-cards { position: relative}
  #waitlist::before,
  .hub-cards::before {
    content: "";
    position: absolute;
    inset-block: 0;
    inset-inline: calc(50% - 50vw);
    z-index: -1;
    pointer-events: none;
    background:
      radial-gradient(ellipse 62% 130% at 50% 0%, rgba(45, 212, 191, 0.06), transparent 68%),
      radial-gradient(ellipse 46% 90% at 82% 100%, rgba(245, 196, 81, 0.05), transparent 70%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.022), rgba(0, 0, 0, 0.14));
    border-block: 1px solid rgba(255, 255, 255, 0.05)}

  /* Ambient sutil SOLO en gutters (re-activado por los guards <1440) */
  .story-fauna {
    --gut: max(10px, calc((100vw - var(--max)) / 2));
    display: block;
    animation: none}
  .story-fauna .bug { animation: none}
  .story-fauna .bug:nth-child(1) { left: calc(var(--gut) * 0.1); top: 6%}
  .story-fauna .bug:nth-child(2) { left: auto; right: calc(var(--gut) * 0.14); top: 24%}
  .story-fauna .bug:nth-child(3) { left: calc(var(--gut) * 0.32); top: 45%}
  .story-fauna .bug:nth-child(4) { left: auto; right: calc(var(--gut) * 0.36); top: 66%}


  .story-pair::before,
  .story-pair::after { animation: none}

  /* Legado P0g que debe seguir muerto en todo ancho (sin sumar tokens) */
  .fw-ambient,
  main.story > .story-dots { display: none}


  /* Sticky story más suave: offset fluido bajo el header */
  .story-pair .story-device { top: calc(var(--header-h, 64px) + clamp(32px, 8vh, 112px))}
  .hero-visual .fox-stage { top: calc(var(--header-h, 64px) + clamp(16px, 5vh, 40px))}
}

@media (min-width: 1920px) {
  :root { --max: 1360px}
  .story-pair-inner { max-width: min(1240px, var(--max))}
}

/* Ultrawide real (3440): 1360 dejaba ~60% del ancho sin usar. A 1680 las
 * bandas siguen full-bleed (inset-inline 50vw) y story conserva su tope
 * (1240) para no estirar el phone ni la copy. */
@media (min-width: 2000px) {
  :root { --max: 1680px}
}

/* --- 42.2 Medida de lectura: párrafos nunca >80ch --- */
main p { max-inline-size: 80ch}
.founder-waitlist p { margin-inline: auto}

/* --- 42.3 Fluidez: hover/press con tokens + stagger donde faltaba --- */
@media (prefers-reduced-motion: no-preference) {
  .pillar,
  .step,
  .help-rail-card,
  .kob-step {
    transition:
      transform var(--dur-2) var(--ease-spring),
      box-shadow var(--dur-2) var(--ease-out),
      border-color var(--dur-1) var(--ease-out),
      background var(--dur-1) var(--ease-out)}
  .pillar:active,
  .step:active,
  .help-rail-card:active,
  .kob-step:active {
    transform: translateY(0) scale(var(--press-scale));
    transition-duration: 90ms;
    transition-timing-function: var(--ease-press)}
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    #waitlist .fw-header,
    #waitlist .tally-embed-shell,
    #waitlist .fw-outbound {
      animation: soft-rise linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 30%}
    #waitlist .tally-embed-shell { animation-range: entry 6% cover 34%}
    #waitlist .fw-outbound { animation-range: entry 12% cover 38%}

    .hub-doors > *,
    .hub-brand > * {
      animation: tag-pop linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 26%}
    .hub-doors > *:nth-child(2) { animation-range: entry 5% cover 30%}
    .hub-doors > *:nth-child(3) { animation-range: entry 10% cover 34%}
    .hub-brand > *:nth-child(2) { animation-range: entry 6% cover 30%}

    .story-copy > * {
      animation: soft-rise linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 30%}
    .story-copy > *:nth-child(2) { animation-range: entry 5% cover 32%}
    .story-copy > *:nth-child(3) { animation-range: entry 10% cover 34%}
    .story-copy > *:nth-child(4) { animation-range: entry 15% cover 36%}
  }
}

/* --- 42.4 Eficiencia: menos backdrop en mobile + beats fuera de viewport --- */
@media (max-width: 600px) {
  .glass,
  .cta-band,
  .hero-prize,
  .ks-companion-inner,
  .ks-companion-stage,
  .tally-embed-shell,
  .fw-outbound,
  .tag,
  .lang-switch {
    backdrop-filter: none;
    -webkit-backdrop-filter: none}
}
.story-pair.story-beat,
.section.story-beat:not(.founder-waitlist) {
  content-visibility: auto}
/* CLS 2026-10-03: placeholder por breakpoint. Un valor fijo (1020px) producía
 * CLS 0.83–0.95 en mobile: las alturas reales de los beats van 431–1195px según
 * pantalla. Se mide por beat/rango y, en 561–860, el primer ARTICLE se renderiza
 * eager (su revelado dentro del viewport era el único shift de CV medido). */
.story-pair.story-beat { contain-intrinsic-size: auto 677px} /* medido: 677 @1280–3440 */
.section.story-beat:not(.founder-waitlist) { contain-intrinsic-size: auto 960px} /* fallback */
#primer-minuto.story-beat { contain-intrinsic-size: auto 960px}
.section.story-beat[data-feature="kitsune"] { contain-intrinsic-size: auto 470px}
.section.story-beat.ksdir-loop { contain-intrinsic-size: auto 550px}
.section.story-beat.ksdir-faq { contain-intrinsic-size: auto 565px}
/* Secciones mobile: alturas muy dispares (476–2281px); sin CV no hay placeholder
 * que pueda fallar y el costo de layout es bajo (sin wires adentro). */
@media (max-width: 860px) {
  .section.story-beat:not(.founder-waitlist) {
    content-visibility: visible}
}
/* Placeholders mobile por beat (content-box, medidos @390–560 y @768–860). */
@media (max-width: 560px) {
  .story-pair.story-beat[data-ks="home"] { contain-intrinsic-size: auto 823px}
  .story-pair.story-beat[data-ks="water"] { contain-intrinsic-size: auto 800px}
  .story-pair.story-beat[data-ks="routine"] { contain-intrinsic-size: auto 694px}
  .story-pair.story-beat[data-ks="limits"] { contain-intrinsic-size: auto 721px}
  .story-pair.story-beat[data-ks="skills"] { contain-intrinsic-size: auto 719px}
  .story-pair.story-beat[data-ks="skill-session"] { contain-intrinsic-size: auto 721px}
  .story-pair.story-beat[data-ks="mood"] { contain-intrinsic-size: auto 791px}
  .story-pair.story-beat[data-ks="notes"] { contain-intrinsic-size: auto 721px}
  .story-pair.story-beat[data-ks="flow"] { contain-intrinsic-size: auto 798px}
  .story-pair.story-beat[data-ks="achievements"] { contain-intrinsic-size: auto 1147px}
  .story-pair.story-beat[data-ks="mastery"] { contain-intrinsic-size: auto 832px}
  .story-pair.story-beat[data-ks="sanctuary"] { contain-intrinsic-size: auto 771px}
  .story-pair.story-beat[data-ks="settings"] { contain-intrinsic-size: auto 721px}
  .story-pair.story-beat[data-ks="widgets"] { contain-intrinsic-size: auto 719px}
}
@media (min-width: 561px) and (max-width: 860px) {
  article.story-pair.story-beat:nth-of-type(1) { content-visibility: visible}
  .story-pair.story-beat[data-ks="home"] { contain-intrinsic-size: auto 807px}
  .story-pair.story-beat[data-ks="water"] { contain-intrinsic-size: auto 780px}
  .story-pair.story-beat[data-ks="routine"] { contain-intrinsic-size: auto 699px}
  .story-pair.story-beat[data-ks="limits"] { contain-intrinsic-size: auto 699px}
  .story-pair.story-beat[data-ks="skills"] { contain-intrinsic-size: auto 725px}
  .story-pair.story-beat[data-ks="skill-session"] { contain-intrinsic-size: auto 725px}
  .story-pair.story-beat[data-ks="mood"] { contain-intrinsic-size: auto 771px}
  .story-pair.story-beat[data-ks="notes"] { contain-intrinsic-size: auto 699px}
  .story-pair.story-beat[data-ks="flow"] { contain-intrinsic-size: auto 780px}
  .story-pair.story-beat[data-ks="achievements"] { contain-intrinsic-size: auto 1093px}
  .story-pair.story-beat[data-ks="mastery"] { contain-intrinsic-size: auto 811px}
  .story-pair.story-beat[data-ks="sanctuary"] { contain-intrinsic-size: auto 752px}
  .story-pair.story-beat[data-ks="settings"] { contain-intrinsic-size: auto 699px}
  .story-pair.story-beat[data-ks="widgets"] { contain-intrinsic-size: auto 699px}
}
@media (min-width: 861px) and (max-width: 1023px) {
  .story-pair.story-beat { contain-intrinsic-size: auto 644px} /* medido: 644 @900 */
}

/* --- 42.5 Reduced-motion: sin ambient decorativo (el kill global remata anims) --- */
@media (prefers-reduced-motion: reduce) {
  .story-fauna,
  .story-fauna .bug,
  .story-fauna .sil-tree,
  .story-pair::before,
  .story-pair::after { display: none}
}

/* ========== /42 PASS 2 ========== */

/* ========== 43 MARKETING v3 — scroll notable + fluidez + progreso (2026-10-03) ==========
 * Alcance: solo este archivo. La cabecera y la navegacion quedan intactas
 * (las manda ks-nav-v2.css). Cero declaraciones forzadas nuevas, cero captura
 * de scroll, movimiento siempre bajo no-preference mas 43.8.
 * Scroll-linked = transform y opacity unicamente. El glow de completado es un
 * velo cuya opacity se anima (nada de blur o sombra animados por frame).
 * Sticky-safe: nunca se anima el par ni el dispositivo (rompen el sticky);
 * se animan copias, bezels en mobile, cabeceras y tarjetas.
 * Fallback: sin view(), todo queda visible con reveals de una pasada al cargar.
 * Nota: las tarjetas de pilares y pasos conservan su piso de opacidad previo,
 * asi que el recorrido se lee por desplazamiento + escala + velo de aura.
 * ===================================================================================== */

/* --- 43.1 Fluido: tipografia y ritmo con clamp --- */
.hero h1 { font-size: clamp(1.7rem, 1.15rem + 4.8vw, 3.4rem) }
.section-title { font-size: clamp(1.35rem, 1.02rem + 2.4vw, 2.05rem) }
.section-sub { font-size: clamp(0.98rem, 0.92rem + 0.5vw, 1.1rem) }
.pillar h3, .step h3 { font-size: clamp(1.02rem, 0.96rem + 0.5vw, 1.18rem) }
.pillar p, .step p { font-size: clamp(0.9rem, 0.87rem + 0.3vw, 0.98rem) }
.story-copy h3 { font-size: clamp(1.25rem, 1.02rem + 1.9vw, 1.8rem) }
.story-copy > p { font-size: clamp(0.95rem, 0.9rem + 0.45vw, 1.05rem) }
.cta-band h2 { font-size: clamp(1.3rem, 1.08rem + 1.6vw, 1.7rem) }
.cta-band p { font-size: clamp(0.95rem, 0.9rem + 0.4vw, 1.05rem) }
.prose h2 { font-size: clamp(1.15rem, 1.05rem + 0.8vw, 1.35rem) }
.vista-note { font-size: clamp(0.74rem, 0.7rem + 0.4vw, 0.82rem) }
.vistas-footnote { font-size: clamp(0.8rem, 0.76rem + 0.35vw, 0.88rem) }
.mastery-note { font-size: clamp(0.88rem, 0.84rem + 0.35vw, 0.95rem) }

.section { padding-block: clamp(34px, 4.6vw, 60px) }
.section + .section { padding-top: clamp(20px, 3vw, 36px) }
.hero { padding-block: clamp(40px, 6vw, 76px) clamp(28px, 4vw, 52px) }
.story-pair { padding-block: clamp(18px, 3vw, 32px) }
.cta-band { padding: clamp(26px, 4vw, 44px) clamp(18px, 4vw, 36px) }
.pillar, .step { padding: clamp(18px, 2.6vw, 28px) }
.story-rail { padding-block: clamp(20px, 3.4vw, 36px) clamp(10px, 2vw, 16px) }
.story-rail-head { margin-bottom: clamp(4px, 1.4vw, 12px) }

/* --- 43.2 Pildoras: kickers, etiquetas y notas con el mismo lenguaje --- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0) 60%),
    rgba(9, 9, 11, 0.5);
  font-size: 0.72rem}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  background: radial-gradient(circle at 35% 35%, #FFE9B8, var(--gold-base) 60%, var(--mastery-deep));
  box-shadow: 0 0 8px rgba(245, 196, 81, 0.5)}
.phone .vista-kicker,
.story-copy .vista-kicker {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(45, 212, 191, 0.35);
  border: 1px solid color-mix(in srgb, var(--beat-accent, var(--mastery)) 42%, transparent);
  background: var(--beat-accent-soft, rgba(45, 212, 191, 0.1));
  font-size: 0.68rem}
.pillar-label {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(245, 196, 81, 0.32);
  background: rgba(245, 196, 81, 0.08)}
.step::before {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(245, 196, 81, 0.32);
  background: rgba(245, 196, 81, 0.08)}
.section-chip {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08)}
.vista-note {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(13, 17, 26, 0.72);
  padding: 10px 12px 10px 30px;
  line-height: 1.55}
.vista-note::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 17px;
  width: 7px;
  height: 7px;
  transform: rotate(45deg);
  border: 1px solid rgba(245, 196, 81, 0.6);
  background: rgba(245, 196, 81, 0.18)}
.story-device .vista-note { text-align: left }
.vistas-footnote {
  position: relative;
  z-index: 2;
  max-width: 62ch;
  margin-inline: auto;
  margin-top: clamp(18px, 3vw, 28px);
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  background: rgba(13, 17, 26, 0.6);
  text-wrap: pretty}
.story-proof li::marker { color: var(--gold-base) }

/* --- 43.3 Separador: base mas visible con el mismo gesto --- */
div.joy-sep {
  margin-block: clamp(30px, 5vw, 52px) clamp(10px, 2vw, 18px);
  margin-inline: auto;
  max-width: min(56rem, 100% - 24px);
  gap: clamp(10px, 2vw, 18px)}
div.joy-sep::before,
div.joy-sep::after {
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(45, 212, 191, 0.12) 18%,
    rgba(45, 212, 191, 0.55) 38%,
    rgba(245, 196, 81, 0.7) 50%,
    rgba(45, 212, 191, 0.55) 62%,
    rgba(45, 212, 191, 0.12) 82%,
    transparent
  );
  opacity: 1}
.joy-sep .joy-sep-mark {
  position: relative;
  width: 10px;
  height: 10px;
  background: radial-gradient(circle at 35% 30%, #FFF6D6, var(--gold-base) 45%, var(--gold-deep) 75%, var(--mastery-deep));
  box-shadow:
    0 0 10px rgba(245, 196, 81, 0.55),
    0 0 26px rgba(45, 212, 191, 0.3)}
.joy-sep .joy-sep-mark::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(245, 196, 81, 0.4);
  opacity: 0.8;
  pointer-events: none}

/* --- 43.4 Contenedores unificados: una superficie conectada, no bloques sueltos --- */
.section-shell,
.section-unified,
.section-card,
.story-shell,
section.section-shell,
section.section-unified {
  position: relative;
  isolation: isolate;
  max-width: var(--max);
  margin-inline: auto;
  margin-block: clamp(10px, 2.4vw, 22px);
  padding: clamp(20px, 3.4vw, 40px) clamp(14px, 3vw, 32px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: clamp(18px, 3vw, 28px);
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(45, 212, 191, 0.07), transparent 60%),
    radial-gradient(100% 80% at 50% 100%, rgba(245, 196, 81, 0.05), transparent 62%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0) 40%, rgba(0, 0, 0, 0.12)),
    rgba(13, 17, 26, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 18px 44px rgba(0, 0, 0, 0.28);
  overflow: clip}
@media (min-width: 561px) {
  @supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .section-shell,
    .section-unified,
    .section-card,
    .story-shell,
    section.section-shell,
    section.section-unified {
      backdrop-filter: blur(14px) saturate(1.2);
      -webkit-backdrop-filter: blur(14px) saturate(1.2)}
  }
}
.section-shell::before,
.section-unified::before,
.section-card::before,
.story-shell::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  opacity: 0.6;
  pointer-events: none}
/* Secciones dentro del shell: sin caja doble, divididas por hairline */
.section-shell > .section,
.section-shell .section.wrap,
.section-unified > .section,
.section-unified .section.wrap,
.section-card > .section,
.story-shell > .section {
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  max-width: none;
  margin: 0;
  padding: clamp(10px, 2vw, 20px) clamp(2px, 1vw, 10px)}
.section-shell > .section + .section,
.section-unified > .section + .section,
.section-card > .section + .section,
.story-shell > .section + .section {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  margin-top: clamp(10px, 2vw, 18px);
  padding-top: clamp(16px, 3vw, 28px)}
/* Notas al pie: franja propia con separacion real, nunca sobre el telefono */
.story-rail > .wrap.story-rail-foot {
  margin-top: clamp(16px, 3vw, 28px);
  padding-top: clamp(12px, 2.4vw, 20px);
  border-top: 1px solid rgba(255, 255, 255, 0.08)}
.story-device .vista-note,
.phone figcaption .vista-note {
  margin-top: 14px}

/* --- 43.5 Progreso: brillo, tramos de color y marcas de seccion ---
 * Solo visual (alto, fondos, sombra). El transform y la linea temporal siguen
 * mandados por el contrato JS/CSS previo; el movimiento queda apagado en 43.8. */
body.marketing::before {
  height: 4px;
  border-radius: 0 4px 4px 0;
  background:
    repeating-linear-gradient(90deg, transparent 0 118px, rgba(2, 13, 26, 0.55) 118px 120px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 55%),
    linear-gradient(90deg, #2DD4BF 0%, #38BDF8 20%, #A78BFA 40%, #F5C451 62%, #FFD777 80%, #FFE9B8 100%);
  box-shadow:
    0 0 12px rgba(45, 212, 191, 0.65),
    0 0 30px rgba(245, 196, 81, 0.35),
    0 1px 0 rgba(255, 255, 255, 0.22);
  will-change: transform}
body.marketing::after {
  height: 12px;
  background: linear-gradient(
    180deg,
    rgba(45, 212, 191, 0.28) 0%,
    rgba(245, 196, 81, 0.12) 45%,
    transparent 80%
  );
  opacity: 0.9;
  will-change: transform}

/* --- 43.6 Reveals notables: recorrido largo, escala y velo de completado --- */
@keyframes ks-v3-rise {
  from { opacity: 0; transform: translateY(46px) scale(0.962) }
  55% { opacity: 1; transform: translateY(-3px) scale(1.004) }
  to { opacity: 1; transform: none }
}
@keyframes ks-v3-phone {
  from { opacity: 0; transform: translateY(58px) scale(0.93) }
  60% { opacity: 1; transform: translateY(-3px) scale(1.012) }
  to { opacity: 1; transform: none }
}
@keyframes ks-v3-pop {
  from { opacity: 0; transform: translateY(16px) scale(0.88) }
  55% { opacity: 1; transform: translateY(-2px) scale(1.05) }
  to { opacity: 1; transform: none }
}
@keyframes ks-v3-veil {
  from { opacity: 0 }
  to { opacity: 1 }
}
.pillar { position: relative }
.pillar::after,
.step::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(85% 60% at 50% 0%, rgba(45, 212, 191, 0.16), transparent 70%);
  opacity: 0;
  pointer-events: none}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .section .eyebrow,
    .section .section-title,
    .section .section-sub,
    .story-rail-head {
      animation: ks-v3-rise linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 42%}
    .section .section-sub { animation-range: entry 6% cover 46% }
    .pillar,
    .step,
    .kob-step {
      animation: ks-v3-rise linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 48%}
    .pillar:nth-child(2),
    .step:nth-child(2),
    .kob-step:nth-child(2) { animation-range: entry 8% cover 52% }
    .pillar:nth-child(3),
    .step:nth-child(3),
    .kob-step:nth-child(3) { animation-range: entry 16% cover 56% }
    .pillar:nth-child(n+4),
    .step:nth-child(n+4) { animation-range: entry 20% cover 58% }
    .pillar::after,
    .step::after {
      animation: ks-v3-veil linear both;
      animation-timeline: view();
      animation-range: entry 12% cover 50%}
    .phones .phone {
      animation: ks-v3-phone linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 50%}
    .phones .phone:nth-child(2) { animation-range: entry 8% cover 54% }
    .phones .phone:nth-child(3) { animation-range: entry 16% cover 58% }
    .phones .phone:nth-child(n+4) { animation-range: entry 24% cover 62% }
    .story-copy > * {
      animation: ks-v3-rise linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 40%}
    .story-copy > *:nth-child(2) { animation-range: entry 6% cover 44% }
    .story-copy > *:nth-child(3) { animation-range: entry 12% cover 48% }
    .story-copy > *:nth-child(n+4) { animation-range: entry 18% cover 52% }
    .cta-band {
      animation: ks-v3-rise linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 45%}
    .tag,
    .section-chips li,
    .eco-pills li,
    .hub-doors > *,
    .hub-brand > * {
      animation: ks-v3-pop linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 38%}
    .section-chips li:nth-child(2),
    .eco-pills li:nth-child(2) { animation-range: entry 6% cover 42% }
    .section-chips li:nth-child(3),
    .eco-pills li:nth-child(3) { animation-range: entry 12% cover 46% }
    .section-chips li:nth-child(n+4),
    .eco-pills li:nth-child(n+4),
    .hub-doors > *:nth-child(n+2) { animation-range: entry 18% cover 50% }
    #waitlist .fw-header,
    #waitlist .tally-embed-shell,
    #waitlist .fw-outbound {
      animation: ks-v3-rise linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 42%}
    #waitlist .tally-embed-shell { animation-range: entry 6% cover 46% }
    #waitlist .fw-outbound { animation-range: entry 12% cover 50% }
  }
}
@media (max-width: 820px) {
  @supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
      .story-device .phone-bezel {
        animation: ks-v3-phone linear both;
        animation-timeline: view();
        animation-range: entry 0% cover 50%}
    }
  }
}
@supports not (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .section .eyebrow,
    .section .section-title,
    .section .section-sub,
    .story-rail-head,
    .pillar,
    .step,
    .kob-step,
    .phones .phone,
    .cta-band,
    .story-copy > *,
    #waitlist .fw-header,
    #waitlist .tally-embed-shell,
    #waitlist .fw-outbound {
      animation: ks-v3-rise 0.75s cubic-bezier(0.2, 0.8, 0.2, 1) both}
    .tag,
    .section-chips li,
    .eco-pills li {
      animation: ks-v3-pop 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both}
    .pillar::after,
    .step::after { opacity: 1 }
  }
}
@media (max-width: 820px) {
  @supports not (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
      .story-device .phone-bezel {
        animation: ks-v3-phone 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both}
    }
  }
}

/* --- 43.7 Fluidez mobile: menos pintura por frame ---
 * Auditoria: la capa scroll-linked viva es transform/opacity (los brillos de
 * filtro y sombra por scroll quedaron anulados en bloques previos). Sin nuevos
 * content-visibility: los intrinsecos medidos por beat se conservan tal cual
 * para no reintroducir CLS. will-change solo en la barra de progreso (43.5),
 * que reescala su transform en cada frame de scroll. */
@media (max-width: 560px) {
  body.marketing {
    background-attachment: scroll, scroll, scroll, scroll}
  .guide-card,
  .help-rail-card,
  .help-rail,
  .section-chip,
  .eco-pill,
  .story-more,
  .cause-effect,
  .story-exception,
  .mastery-note,
  .vista-note,
  .vistas-footnote,
  .section-shell,
  .section-unified,
  .section-card,
  .story-shell {
    backdrop-filter: none;
    -webkit-backdrop-filter: none}
}

/* --- 43.8 Movimiento reducido: todo quieto y visible --- */
@media (prefers-reduced-motion: reduce) {
  .section .eyebrow,
  .section .section-title,
  .section .section-sub,
  .story-rail-head,
  .pillar,
  .step,
  .kob-step,
  .phones .phone,
  .story-copy > *,
  .story-device .phone-bezel,
  .cta-band,
  .tag,
  .section-chips li,
  .eco-pills li,
  .hub-doors > *,
  .hub-brand > *,
  #waitlist .fw-header,
  #waitlist .tally-embed-shell,
  #waitlist .fw-outbound,
  .pillar::after,
  .step::after,
  div.joy-sep::before,
  div.joy-sep::after,
  .joy-sep .joy-sep-mark,
  .joy-sep .joy-sep-mark::after {
    animation: none;
    transition: none;
    opacity: 1;
    transform: none;
    filter: none}
  .pillar::after,
  .step::after { opacity: 0 }
  .joy-sep .joy-sep-mark::after { opacity: 0.8 }
}

/* ========== /43 MARKETING v3 ========== */

/* --- KairSun social video · lightweight, click-to-load YouTube --- */
.ks-media-section { position: relative; isolation: isolate }
.ks-media-heading { max-width: 650px; margin: 0 auto clamp(22px, 3vw, 34px); text-align: center }
.ks-media-heading .section-sub { margin: 0 auto; max-width: 50ch }
.ks-media-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(290px, .8fr); gap: clamp(14px, 2vw, 22px); align-items: stretch }
.ks-video-card,
.ks-social-card { min-width: 0; padding: clamp(14px, 2vw, 22px); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-xl); background: linear-gradient(145deg, rgba(255,255,255,.075), rgba(7,16,31,.84) 58%, rgba(13,30,46,.9)); box-shadow: 0 22px 60px rgba(0,0,0,.24), inset 0 1px rgba(255,255,255,.08); backdrop-filter: blur(16px) }
.ks-media-player { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border: 1px solid rgba(245,196,81,.2); border-radius: 18px; background: radial-gradient(ellipse at 50% 35%, rgba(45,212,191,.13), transparent 48%), #080d18; isolation: isolate }
.ks-media-player > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; filter: saturate(.94); transition: transform var(--dur-3) var(--ease-out), filter var(--dur-2) ease }
.ks-media-player::after { position: absolute; z-index: 0; inset: 0; content: ""; pointer-events: none; background: linear-gradient(180deg, rgba(2,13,26,.03) 25%, rgba(2,13,26,.55) 100%) }
.ks-media-player iframe { position: absolute; z-index: 2; inset: 0; display: block; width: 100%; height: 100%; border: 0; background: #020d1a }
.ks-media-play { position: absolute; z-index: 1; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: #fff; text-decoration: none; outline-offset: -5px }
.ks-media-play__icon { display: grid; width: 70px; height: 70px; place-items: center; padding-left: 4px; border: 1px solid rgba(255,255,255,.66); border-radius: 50%; color: var(--gold-ink); background: linear-gradient(145deg, #ffe9b8, #f5c451 72%, #e8a93e); box-shadow: 0 0 0 9px rgba(245,196,81,.12), 0 12px 34px rgba(0,0,0,.38); font-size: 1.25rem; transition: transform var(--dur-2) var(--ease-spring), box-shadow var(--dur-2) ease }
.ks-media-play__label { padding: 6px 12px; border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius-pill); color: rgba(255,255,255,.94); background: rgba(2,13,26,.72); font-size: .8rem; font-weight: 700; letter-spacing: .02em; backdrop-filter: blur(10px) }
.ks-media-play:focus-visible { border-radius: 18px; outline: 3px solid var(--gold-hi) }
.ks-video-meta { display: flex; align-items: end; justify-content: space-between; gap: 18px; padding: 18px 2px 2px }
.ks-media-kicker { margin: 0 0 5px; color: var(--mastery); font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase }
.ks-video-meta h3,
.ks-social-card h3 { margin: 0; color: #fff; font-family: var(--display); font-size: clamp(1.02rem, 1rem + .4vw, 1.25rem); line-height: 1.3 }
.ks-video-meta p:not(.ks-media-kicker) { margin: 6px 0 0; color: rgba(232,239,248,.73); font-size: .88rem; line-height: 1.5 }
.ks-media-channel { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; color: var(--gold-hi); font-size: .82rem; font-weight: 700; text-decoration: none }
.ks-media-channel:hover { color: #fff }
.ks-media-channel:focus-visible,
.ks-social-links a:focus-visible { border-radius: 12px; outline: 2px solid var(--gold-hi); outline-offset: 3px }
.ks-social-card > .eyebrow { margin: 2px 0 8px }
.ks-social-intro { margin: 8px 0 18px; color: rgba(232,239,248,.73); font-size: .9rem; line-height: 1.5 }
.ks-social-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin: 0; padding: 0; list-style: none }
.ks-social-links li { min-width: 0 }
.ks-social-links a { display: grid; min-height: 58px; grid-template-columns: 34px minmax(0, 1fr) 14px; align-items: center; gap: 9px; padding: 8px 9px; border: 1px solid rgba(255,255,255,.09); border-radius: 14px; color: #fff; background: rgba(255,255,255,.035); text-decoration: none; transition: transform var(--dur-1) var(--ease-out), border-color var(--dur-1) ease, background var(--dur-1) ease }
.ks-social-mark { display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid rgba(245,196,81,.25); border-radius: 11px; color: var(--gold-hi); background: linear-gradient(145deg, rgba(245,196,81,.13), rgba(45,212,191,.08)); font-size: .72rem; font-weight: 800 }
.ks-social-copy { display: grid; min-width: 0; gap: 1px }
.ks-social-name { overflow: hidden; color: #fff; font-size: .79rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap }
.ks-social-handle { overflow: hidden; color: rgba(220,231,243,.64); font-size: .68rem; text-overflow: ellipsis; white-space: nowrap }
.ks-social-arrow { color: rgba(255,233,184,.72); font-size: .82rem }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .ks-media-player:hover > img { transform: scale(1.025); filter: saturate(1.05) }
  .ks-media-play:hover .ks-media-play__icon { transform: scale(1.06); box-shadow: 0 0 0 12px rgba(245,196,81,.15), 0 15px 38px rgba(0,0,0,.42) }
  .ks-social-links a:hover { transform: translateY(-2px); border-color: rgba(245,196,81,.3); background: rgba(255,255,255,.075) }
}
@media (max-width: 860px) {
  .ks-media-layout { grid-template-columns: minmax(0, 1fr) }
  .ks-social-links { grid-template-columns: repeat(3, minmax(0, 1fr)) }
}
@media (max-width: 600px) {
  .ks-video-meta { align-items: start; flex-direction: column; gap: 12px; padding-top: 15px }
  .ks-social-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px }
  .ks-social-links a { min-height: 54px; grid-template-columns: 30px minmax(0, 1fr) 11px; gap: 7px; padding: 7px }
  .ks-social-mark { width: 29px; height: 29px }
}
@media (max-width: 360px) {
  .ks-social-links { grid-template-columns: minmax(0, 1fr) }
}
@media (prefers-reduced-motion: reduce) {
  .ks-media-player > img,
  .ks-media-play__icon,
  .ks-social-links a { transition: none }
}
/* Decorative play/social marks stay out of the generated Markdown link text. */
.ks-media-play__icon::before { content: "▶" }
.ks-social-mark::before { content: attr(data-mark) }
.ks-social-arrow::before,
.ks-media-channel > span[aria-hidden="true"]::before { content: "↗" }
/* Keep the floating companion and Founder docks clear of the video/social
   section. They resume as soon as it leaves view; focused Founder CTAs remain
   visible and usable. The class is toggled by the page's IntersectionObserver. */
body.ks-media-section-in-view #ks-companion {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
body[data-cta-mode="waitlist"].ks-media-section-in-view .ksc-sticky-cta,
body[data-cta-mode="waitlist"].ks-media-section-in-view .ksc-desk-cta {
  animation: none;
  opacity: 0;
  pointer-events: none;
}
body[data-cta-mode="waitlist"].ks-media-section-in-view .ksc-sticky-cta:focus-within,
body[data-cta-mode="waitlist"].ks-media-section-in-view .ksc-desk-cta:focus-within {
  animation: none;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}

/* Real published Shorts: discoverable horizontal rail, no downloaded media. */
.ks-video-rail {
  display: flex;
  min-width: 0;
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 3px 3px 13px;
  scroll-padding-inline: 3px;
  scroll-snap-type: x mandatory;
  overscroll-behavior-inline: contain;
  scrollbar-color: rgba(245,196,81,.48) rgba(255,255,255,.07);
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch
}
.ks-video-rail > .ks-video-card {
  flex: 0 0 min(100%, 356px);
  min-width: 0;
  scroll-snap-align: start
}
.ks-video-rail:focus-visible {
  border-radius: 20px;
  outline: 2px solid var(--gold-hi);
  outline-offset: 4px
}
.ks-media-rail-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: -8px auto clamp(18px, 2vw, 25px);
  color: rgba(232,239,248,.64);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .035em
}
.ks-media-rail-hint span { color: var(--gold-hi) }
.ks-video-social-nav {
  margin-top: 13px;
  padding: 12px 2px 1px;
  border-top: 1px solid rgba(255,255,255,.09)
}
.ks-video-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none
}
.ks-video-socials li { min-width: 0 }
.ks-video-socials a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid rgba(245,196,81,.2);
  border-radius: var(--radius-pill);
  color: rgba(255,255,255,.88);
  background: rgba(255,255,255,.035);
  font-size: .73rem;
  font-weight: 750;
  text-decoration: none;
  transition: border-color var(--dur-1) ease, background var(--dur-1) ease, color var(--dur-1) ease
}
.ks-video-socials a::after { content: "↗"; color: var(--gold-hi); font-size: .68rem }
.ks-video-socials a:focus-visible { border-radius: var(--radius-pill); outline: 2px solid var(--gold-hi); outline-offset: 3px }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .ks-video-socials a:hover { border-color: rgba(245,196,81,.45); color: #fff; background: rgba(245,196,81,.09) }
}
@media (prefers-reduced-motion: reduce) {
  .ks-video-socials a { transition: none }
}
@media (min-width: 861px) {
  .ks-media-layout { grid-template-columns: minmax(0, 1.45fr) minmax(270px, .75fr) }
}
