/* KairSun Web · premium identity and conversion refresh (2026-10-04)
 * Layered last so the shared brand and responsive refinements are consistent
 * across ES/EN pages without changing the free Tally form itself. */

:root {
  --ks-spectrum: linear-gradient(108deg,
    #ffe5a8 0%, #f6c3d2 18%, #d7baff 39%, #a7c9ff 57%,
    #86e8ef 73%, #a7edcf 87%, #ffe2a0 100%);
  --ks-spectrum-edge: linear-gradient(135deg,
    rgba(255, 229, 168, .82), rgba(215, 186, 255, .72) 43%,
    rgba(134, 232, 239, .78) 72%, rgba(255, 226, 160, .78));
  --ks-header-glass: rgba(4, 12, 25, .86);
}

/* The mark pairs the site's existing Kairós symbol with the real Suns icon. */
.site-header .logo.ks-brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  min-width: 0;
  padding: 5px 8px 5px 5px;
  border: 1px solid transparent;
  border-radius: 18px;
  color: #f5f7fb;
  text-decoration: none;
  transition: background-color .22s ease, border-color .22s ease, transform .22s ease;
}
.ks-brand-emblem {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 1px;
  width: 58px;
  height: 58px;
  overflow: hidden;
  border: 1px solid rgba(194, 226, 239, .22);
  border-radius: 18px;
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 231, 178, .18), transparent 54%),
    linear-gradient(145deg, rgba(45, 212, 191, .13), rgba(12, 20, 36, .94) 68%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 5px 18px rgba(0,0,0,.24);
}
.ks-brand-emblem::before {
  position: absolute;
  inset: 2px;
  border: 1px solid rgba(255,255,255,.055);
  border-radius: 12px;
  content: "";
  pointer-events: none;
}
.ks-brand-emblem img {
  position: relative;
  z-index: 1;
  display: block;
  width: 50px;
  height: 50px;
  object-fit: contain;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,.22);
}
.ks-brand-word-stack {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  line-height: 1;
}
.ks-brand-word {
  display: block;
  font-family: var(--display, "Cinzel", Georgia, serif);
  font-size: clamp(1.05rem, .88rem + .36vw, 1.27rem);
  font-weight: 700;
  letter-spacing: .018em;
  white-space: nowrap;
  color: #f5e5c6;
  background: var(--ks-spectrum);
  background-size: 185% 100%;
  background-position: 12% 50%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 22px rgba(143, 208, 226, .1);
}
.ks-brand-descriptor {
  display: block;
  color: rgba(197, 210, 226, .78);
  font-family: var(--font, "DM Sans", sans-serif);
  font-size: .53rem;
  font-weight: 700;
  letter-spacing: .21em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}
.ks-brand-descriptor i {
  color: #f3d99e;
  font-style: normal;
  padding-inline: .18em;
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .ks-brand-word { color: #f3d99e; -webkit-text-fill-color: #f3d99e; }
}
@media (prefers-reduced-motion: no-preference) {
  .ks-brand-word { animation: ks-spectrum-drift 18s ease-in-out infinite alternate; }
  @keyframes ks-spectrum-drift {
    from { background-position: 12% 50%; }
    to { background-position: 88% 50%; }
  }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .site-header .logo.ks-brand-lockup:hover {
    transform: translateY(-1px);
    border-color: rgba(172, 217, 231, .17);
    background: rgba(255,255,255,.035);
  }
  .site-header .logo.ks-brand-lockup:hover .ks-brand-emblem {
    border-color: rgba(180, 226, 239, .38);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 7px 22px rgba(45,212,191,.12);
  }
}
.site-header .logo.ks-brand-lockup:active { transform: scale(.98); }
.site-header .logo.ks-brand-lockup:focus-visible {
  outline: 2px solid #d7f7ef;
  outline-offset: 3px;
}

/* A quieter glass rail gives the existing navigation room to read. */
.site-header {
  background: var(--ks-header-glass);
  border-bottom-color: rgba(188, 218, 231, .12);
  box-shadow: 0 10px 32px rgba(0, 0, 0, .18);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header {
    background: rgba(4, 12, 25, .72);
    backdrop-filter: blur(24px) saturate(1.35);
    -webkit-backdrop-filter: blur(24px) saturate(1.35);
  }
}
.site-header[data-ks-nav="v2"] > .wrap {
  min-height: 78px;
  gap: clamp(7px, 1vw, 15px);
}
.site-header[data-ks-nav="v2"] .nav-links {
  gap: 2px;
  font-size: .82rem;
}
.site-header[data-ks-nav="v2"] .nav-links > a:not(.btn) {
  min-height: 42px;
  padding-inline: 8px;
  border-radius: 12px;
  white-space: nowrap;
  transition: color .18s ease, background-color .18s ease, transform .18s ease;
}
.site-header[data-ks-nav="v2"] .nav-links > a:not(.btn):active { transform: scale(.97); }
.site-header[data-ks-nav="v2"] .nav-links .nav-chip--mastery {
  border: 1px solid rgba(45,212,191,.2);
  background: linear-gradient(145deg, rgba(45,212,191,.1), rgba(45,212,191,.025));
}
.site-header .nav-founder-dock {
  border-color: rgba(216, 224, 236, .14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 10px 26px rgba(0,0,0,.28);
}
@media (min-width: 1100px) and (max-width: 1439px) {
  .site-header[data-ks-nav="v2"] .ks-brand-emblem { width: 50px; height: 50px; border-radius: 16px; }
  .site-header[data-ks-nav="v2"] .ks-brand-emblem img { width: 43px; height: 43px; border-radius: 12px; }
  .site-header[data-ks-nav="v2"] .ks-brand-descriptor { font-size: .48rem; letter-spacing: .17em; }
  .site-header[data-ks-nav="v2"] .nav-links { font-size: .77rem; }
  .site-header[data-ks-nav="v2"] .nav-links > a:not(.btn) { padding-inline: 6px; }
}
@media (max-width: 1099px) {
  .site-header[data-ks-nav="v2"] > .wrap {
    min-height: 72px;
    padding-block: 8px;
  }
  .site-header[data-ks-nav="v2"] .ks-brand-emblem { width: 48px; height: 48px; border-radius: 15px; }
  .site-header[data-ks-nav="v2"] .ks-brand-emblem img { width: 41px; height: 41px; border-radius: 11px; }
  .site-header[data-ks-nav="v2"] .ks-brand-descriptor { font-size: .49rem; letter-spacing: .17em; }
}
@media (max-width: 420px) {
  .site-header[data-ks-nav="v2"] > .wrap { gap: 5px; }
  .site-header .logo.ks-brand-lockup { gap: 7px; padding-inline: 2px; }
  .site-header[data-ks-nav="v2"] .ks-brand-emblem { width: 44px; height: 44px; border-radius: 14px; }
  .site-header[data-ks-nav="v2"] .ks-brand-emblem img { width: 37px; height: 37px; border-radius: 10px; }
  .site-header[data-ks-nav="v2"] .ks-brand-word { font-size: 1rem; }
  .site-header[data-ks-nav="v2"] .ks-brand-descriptor { font-size: .43rem; letter-spacing: .13em; }
}
@media (max-width: 359px) {
  .site-header[data-ks-nav="v2"] .ks-brand-emblem { width: 40px; height: 40px; border-radius: 13px; }
  .site-header[data-ks-nav="v2"] .ks-brand-emblem img { width: 34px; height: 34px; border-radius: 9px; }
  .site-header[data-ks-nav="v2"] .ks-brand-descriptor { display: none; }
  .site-header[data-ks-nav="v2"] .ks-brand-word { font-size: .95rem; }
  .site-header[data-ks-nav="v2"] .wrap > .nav-founder-dock .nav-cta { padding-inline: 7px; font-size: .68rem; }
  .site-header[data-ks-nav="v2"] .nav-menu > summary { min-width: 42px; min-height: 44px; }
}

/* Mobile reads the promise and action before the hero art. The same Kitsune
 * stays prominent, but no longer consumes the first viewport by itself. */
@media (max-width: 860px) {
  main.story > .hero.story-beat {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding-block: clamp(24px, 6vw, 42px) 28px;
  }
  main.story > .hero.story-beat > div:not([class]) { order: 0; }
  main.story > .hero.story-beat > .hero-visual {
    order: 1;
    min-height: 0;
    max-height: 280px;
    overflow-x: clip;
    overflow-y: visible;
  }
  main.story > .hero.story-beat .fox-stage {
    width: min(260px, 66vw);
    margin-inline: auto;
  }
  main.story > .hero.story-beat .hero-cta { margin-bottom: 14px; }
  main.story > .hero.story-beat .hero-prize { max-width: 520px; margin-inline: auto; }
}

/* Keep the soft stage bloom inside its grid track at compact desktop widths;
 * this avoids a page-wide horizontal scroll area without clipping vertically. */
main.story > .hero.story-beat > .hero-visual {
  overflow-x: clip;
  overflow-y: visible;
}
@media (max-width: 600px) {
  main.story > .hero.story-beat { gap: 12px; padding-top: 22px; }
  main.story > .hero.story-beat .eyebrow { margin-bottom: 10px; }
  main.story > .hero.story-beat h1 { max-width: 13ch; margin-inline: auto; font-size: clamp(2rem, 8.7vw, 2.6rem); }
  main.story > .hero.story-beat .lead { max-width: 34ch; margin-bottom: 16px; font-size: 1rem; line-height: 1.55; }
  main.story > .hero.story-beat .hero-cta { gap: 9px; }
  main.story > .hero.story-beat .hero-cta .btn { min-height: 48px; }
  main.story > .hero.story-beat .hero-visual { max-height: 224px; }
  main.story > .hero.story-beat .fox-stage { width: min(218px, 58vw); }
  main.story > .hero.story-beat .hero-prize { padding: 12px 12px 11px; gap: 8px; }
  main.story > .hero.story-beat .hero-prize-earn { font-size: .78rem; line-height: 1.4; }
}
@media (max-width: 380px) {
  main.story > .hero.story-beat h1 { font-size: clamp(1.88rem, 8.4vw, 2.2rem); }
  main.story > .hero.story-beat .fox-stage { width: min(194px, 56vw); }
}

/* Waitlist: the side panel explains exactly what the external, free form does. */
#waitlist.founder-waitlist {
  isolation: isolate;
  scroll-margin-top: calc(var(--header-h, 76px) + 18px);
}
#waitlist.founder-waitlist::before {
  position: absolute;
  z-index: -1;
  inset-block: 0;
  inset-inline: calc(50% - 50vw);
  border-block: 1px solid rgba(177, 216, 231, .08);
  background:
    radial-gradient(ellipse 56% 55% at 12% 44%, rgba(45,212,191,.085), transparent 72%),
    radial-gradient(ellipse 48% 70% at 92% 8%, rgba(196,181,253,.075), transparent 70%),
    linear-gradient(180deg, rgba(255,255,255,.018), rgba(4,10,22,.35));
  content: "";
  pointer-events: none;
}
.founder-waitlist-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  max-width: 1260px;
  margin-inline: auto;
  padding: clamp(24px, 4vw, 48px) 0;
  gap: 0;
  text-align: left;
}
.founder-waitlist-shell > .fw-header { grid-column: 1 / -1; max-width: none; margin: 0 0 24px; }
.founder-waitlist-shell .fw-header .eyebrow { margin-bottom: 12px; }
.founder-waitlist-shell .fw-header h2 {
  margin: 0 0 10px;
  font-family: var(--display, "Cinzel", Georgia, serif);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  letter-spacing: .005em;
  line-height: 1.1;
}
.founder-waitlist-shell .fw-prize {
  display: flex;
  max-width: none;
  margin: 14px 0 0;
  padding: 11px 14px;
  flex-direction: row;
  align-items: center;
  gap: 10px 16px;
  border-color: rgba(221, 199, 143, .22);
  border-radius: 16px;
  background: linear-gradient(110deg, rgba(245,196,81,.075), rgba(45,212,191,.045) 62%, rgba(255,255,255,.022));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.founder-waitlist-shell .fw-prize .hero-prize-label { width: auto; margin: 0; color: #d8c99f; font-size: .72rem; }
.founder-waitlist-shell .fw-prize .hero-prize-pills { flex: 1 1 auto; justify-content: flex-start; gap: 7px; }
.founder-waitlist-shell .fw-prize .hero-prize-pills li { min-height: 34px; padding: 5px 9px; }
.founder-waitlist-shell .fw-prize .hero-prize-earn { width: auto; max-width: 27ch; margin: 0; color: #b8c4d6; font-size: .74rem; text-align: right; }
.fw-conversion-grid {
  display: grid;
  grid-template-columns: minmax(250px, .72fr) minmax(0, 1.28fr);
  align-items: stretch;
  gap: clamp(14px, 2vw, 24px);
}
.founder-waitlist-shell .fw-after {
  display: flex;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: clamp(20px, 2.5vw, 30px);
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  border: 1px solid rgba(166, 211, 225, .17);
  border-radius: 24px;
  background:
    radial-gradient(circle at 4% 0%, rgba(45,212,191,.15), transparent 38%),
    radial-gradient(circle at 100% 100%, rgba(245,196,81,.1), transparent 45%),
    linear-gradient(155deg, rgba(16,27,45,.96), rgba(7,14,27,.94));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 22px 50px rgba(0,0,0,.23);
}
.fw-side-mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 66px;
  height: 66px;
  margin: 0 0 20px;
  border: 1px solid rgba(195,224,235,.2);
  border-radius: 21px;
  background: linear-gradient(145deg, rgba(45,212,191,.17), rgba(12,20,36,.96) 70%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.17), 0 10px 24px rgba(0,0,0,.25);
}
.fw-side-mark img:first-child { width: 38px; height: 42px; object-fit: contain; }
.fw-side-mark img:last-child {
  position: absolute;
  right: 5px;
  bottom: 6px;
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(255,215,119,.55));
}
.hub-card--brand .hub-card__icon { width: 56px; height: 56px; border-radius: 17px; }
.hub-card--brand .hub-card__icon img {
  position: relative;
  z-index: 1;
  display: block;
  width: 38px;
  height: 38px;
  object-fit: contain;
}
.hub-card--brand:active .hub-card__icon { transform: scale(.94); }
.hub-card--brand:focus-visible { outline-offset: 4px; }
.hub-card--brand .hub-card__title { font-family: var(--display, "Cinzel", Georgia, serif); }
.ksk-lockup .ksk-node__icon img { filter: drop-shadow(0 8px 20px rgba(45,212,191,.18)); }
.ksk-card--kairos .ksk-card__icon,
.ksk-card--sun .ksk-card__icon { box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 12px 28px rgba(0,0,0,.24); }
.fw-side-kicker {
  margin: 0 0 8px;
  color: #a6eee0;
  font-size: .72rem;
  font-weight: 750;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.fw-side-title {
  margin: 0 0 10px;
  color: #f4f2ec;
  font-family: var(--display, "Cinzel", Georgia, serif);
  font-size: clamp(1.35rem, 1.1rem + .8vw, 1.8rem);
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.25;
  text-wrap: balance;
}
.founder-waitlist-shell .fw-assurances {
  margin: 2px 0 12px;
  padding: 7px 10px;
  border: 1px solid rgba(45,212,191,.2);
  border-radius: 999px;
  background: rgba(45,212,191,.06);
  color: #91e3d6;
  font-size: .68rem;
  letter-spacing: .12em;
}
.founder-waitlist-shell .fw-orient {
  max-width: 38ch;
  margin: 0;
  color: #c2ccda;
  font-size: .93rem;
  line-height: 1.55;
}
.founder-waitlist-shell .fw-orient strong { color: #fff0c7; }
.founder-waitlist-shell .fw-orient em { color: #e4d4ff; }
.founder-waitlist-shell .fw-orient-list {
  display: grid;
  width: 100%;
  margin: 16px 0 0;
  gap: 9px;
  color: #d2dbe7;
  font-size: .82rem;
}
.founder-waitlist-shell .fw-orient-list li { display: flex; align-items: flex-start; line-height: 1.4; }
.founder-waitlist-shell .fw-orient-list li::before {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 17px;
  height: 17px;
  margin: 0 9px 0 0;
  border: 1px solid rgba(45,212,191,.4);
  border-radius: 50%;
  background: rgba(45,212,191,.1);
  color: #8af1df;
  content: "✓";
  font-size: .64rem;
  line-height: 1;
}
.founder-waitlist-shell .fw-outbound {
  margin: 20px 0 0;
  padding: 16px 0 0;
  border: 0;
  border-top: 1px solid rgba(194,216,229,.14);
  border-radius: 0;
  background: transparent;
  text-align: left;
}
.founder-waitlist-shell .fw-outbound-kicker { margin-bottom: 9px; color: #b6c3d3; font-size: .77rem; letter-spacing: .015em; text-transform: none; }
.founder-waitlist-shell .fw-outbound-btn { min-height: 48px; max-width: none; width: 100%; font-size: .9rem; }
.founder-waitlist-shell .fw-fallback { margin-top: 8px; font-size: .76rem; }
.founder-waitlist-shell .tally-embed-shell {
  min-width: 0;
  min-height: 980px;
  margin: 0;
  padding: 0;
  border-color: rgba(201,215,229,.2);
  border-radius: 24px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.11), 0 24px 54px rgba(0,0,0,.3);
}
.founder-waitlist-shell .tally-embed,
.founder-waitlist-shell .fw-facade { border-radius: 23px; }
.founder-waitlist-shell .fw-facade {
  background:
    radial-gradient(ellipse 75% 50% at 50% 0%, rgba(45,212,191,.08), transparent 75%),
    linear-gradient(180deg, rgba(15,25,41,.98), rgba(8,15,28,.99));
}
.founder-waitlist-shell .fw-facade-spinner { border-color: rgba(45,212,191,.2); border-top-color: #ffe2a0; border-right-color: #78e3d2; }
.founder-waitlist-shell .fw-facade-copy { max-width: 32ch; color: #c4cfdd; line-height: 1.55; }
.founder-waitlist-shell .tally-embed-shell.is-delayed {
  min-height: 220px !important;
  height: 220px;
  border-color: rgba(255,226,160,.25);
}
.founder-waitlist-shell .tally-embed-shell.is-delayed .fw-facade {
  position: relative;
  min-height: 218px;
  padding: 22px;
  background: linear-gradient(145deg, rgba(17,29,47,.98), rgba(8,15,28,.98));
}
.founder-waitlist-shell .tally-embed-shell.is-delayed .fw-facade-spinner { display: none; }
.founder-waitlist-shell .tally-embed-shell.is-delayed .tally-embed { display: none !important; }
.founder-waitlist-shell .tally-embed-shell.is-loaded { border-color: rgba(45,212,191,.3); }
@media (min-width: 900px) {
  .founder-waitlist-shell .tally-embed-shell { min-height: 980px; }
}
@media (max-width: 899px) {
  .fw-conversion-grid { grid-template-columns: minmax(0, 1fr); }
  .founder-waitlist-shell .fw-after { order: 0; }
  .founder-waitlist-shell .tally-embed-shell { order: 1; min-height: 1160px; }
  .founder-waitlist-shell .fw-prize { flex-wrap: wrap; }
  .founder-waitlist-shell .fw-prize .hero-prize-earn { flex-basis: 100%; max-width: none; text-align: left; }
  .founder-waitlist-shell .fw-after { padding: 22px; }
}
@media (max-width: 600px) {
  #waitlist.founder-waitlist { padding-top: 24px; }
  .founder-waitlist-shell { padding-block: 20px 16px; }
  .founder-waitlist-shell > .fw-header { margin-bottom: 14px; }
  .founder-waitlist-shell .fw-header h2 { font-size: clamp(1.8rem, 8vw, 2.35rem); }
  .founder-waitlist-shell .fw-prize { gap: 7px; padding: 10px; }
  .founder-waitlist-shell .fw-prize .hero-prize-pills { flex-basis: 100%; flex-wrap: wrap; }
  .founder-waitlist-shell .fw-prize .hero-prize-pills li { min-height: 32px; font-size: .7rem; }
  .founder-waitlist-shell .fw-prize .hero-prize-earn { font-size: .72rem; }
  .fw-conversion-grid { gap: 12px; }
  .fw-side-mark { width: 54px; height: 54px; margin-bottom: 14px; border-radius: 17px; }
  .fw-side-mark img:first-child { width: 32px; height: 35px; }
  .fw-side-mark img:last-child { width: 17px; height: 17px; }
  .founder-waitlist-shell .fw-after { padding: 18px; border-radius: 20px; }
  .founder-waitlist-shell .fw-orient { font-size: .88rem; }
  .founder-waitlist-shell .fw-orient-list { margin-top: 12px; }
  .founder-waitlist-shell .fw-outbound { margin-top: 16px; padding-top: 13px; }
  .founder-waitlist-shell .tally-embed-shell { min-height: 1160px; border-radius: 20px; }
  .founder-waitlist-shell .tally-embed-shell.is-delayed { min-height: 220px !important; height: 220px; }
  .hub-card--brand .hub-card__icon { width: 52px; height: 52px; }
  .hub-card--brand .hub-card__icon img { width: 35px; height: 35px; }
}

/* The persistent reservation dock gets out of the way while the real form is
 * on screen, so it never covers the iframe or its controls. */
body.ks-waitlist-active .ksc-sticky-cta,
body.ks-waitlist-active .ksc-desk-cta,
body:has(#waitlist:target) .ksc-sticky-cta,
body:has(#waitlist:target) .ksc-desk-cta {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);
}
/* The companion's fixed dialogue also yields while the Founder decision is
 * on screen, especially on small phones where it would cover the section title. */
body.ks-waitlist-active .ks-companion,
body:has(#waitlist:target) .ks-companion {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
}
@media (prefers-reduced-motion: reduce) {
  .ks-brand-word { animation: none; background-position: 50% 50%; }
  .site-header .logo.ks-brand-lockup,
  .site-header .logo.ks-brand-lockup:active,
  body.ks-waitlist-active .ksc-sticky-cta,
  body.ks-waitlist-active .ksc-desk-cta,
  body.ks-waitlist-active .ks-companion { transition: none; transform: none; }
}

/* ---------- Founder, Mastery y Referidos: segunda pasada responsive ---------- */

/* El navbar solo tiene ancho para CTA + tres recompensas + enlaces desde 1240px.
 * Entre 1100–1239 refluye el dock completo a una segunda franja dentro del
 * header; ningún premio desaparece ni queda debajo de otro control. */
@media (min-width: 1100px) and (max-width: 1239px) {
  html:has(.site-header[data-ks-nav="v2"]) {
    --header-h: calc(80px + var(--ksn-band, 64px));
  }
  .site-header[data-ks-nav="v2"] {
    padding-bottom: var(--ksn-band, calc(var(--dock-h) + 16px));
  }
  .site-header[data-ks-nav="v2"] .wrap > .nav-founder-dock {
    position: absolute;
    left: 50%;
    bottom: 8px;
    transform: translateX(-50%);
    width: max-content;
    max-width: calc(100% - 24px);
    margin: 0;
    z-index: auto;
  }
}

/* Founder: título y beneficio son el centro de la decisión, a cualquier ancho.
 * El formulario de Tally sigue siendo externo y conserva su URL y su iframe. */
.founder-waitlist-shell > .fw-header {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 0;
}
.founder-waitlist-shell .fw-header .eyebrow {
  margin-inline: auto;
  letter-spacing: .18em;
}
.founder-waitlist-shell .fw-header h2 {
  width: 100%;
  max-width: 20ch;
  margin-inline: auto;
  font-size: clamp(2rem, 4.5vw, 3.35rem);
  line-height: 1.06;
  text-align: center;
  text-wrap: balance;
}
.founder-waitlist-shell .fw-prize {
  position: relative;
  display: grid;
  width: 100%;
  max-width: 100%;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: 11px;
  margin-top: 18px;
  padding: 18px clamp(12px, 2.2vw, 28px) 16px;
  overflow: hidden;
  border: 1px solid rgba(235, 204, 126, .28);
  border-radius: 21px;
  background:
    radial-gradient(ellipse 52% 110% at 8% 0%, rgba(245,196,81,.13), transparent 75%),
    radial-gradient(ellipse 48% 110% at 92% 0%, rgba(45,212,191,.1), transparent 72%),
    linear-gradient(118deg, rgba(22,25,31,.96), rgba(11,20,31,.96));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 14px 34px rgba(0,0,0,.18);
  text-align: center;
}
.founder-waitlist-shell .fw-prize::before {
  position: absolute;
  top: 0;
  left: 8%;
  width: 84%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,225,160,.8) 22%, rgba(117,226,211,.72) 72%, transparent);
  content: "";
  pointer-events: none;
}
.founder-waitlist-shell .fw-prize .hero-prize-label {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 11px;
  margin: 0;
  color: #e8d7aa;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .19em;
  line-height: 1.3;
  text-transform: uppercase;
}
.founder-waitlist-shell .fw-prize .hero-prize-label::before,
.founder-waitlist-shell .fw-prize .hero-prize-label::after {
  width: clamp(14px, 4vw, 54px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,221,153,.6));
  content: "";
}
.founder-waitlist-shell .fw-prize .hero-prize-label::after {
  transform: rotate(180deg);
}
.founder-waitlist-shell .fw-prize .hero-prize-pills {
  display: flex;
  width: 100%;
  flex: none;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  margin: 0;
  padding: 0;
}
.founder-waitlist-shell .fw-prize .hero-prize-pills li {
  min-height: 42px;
  padding: 7px 13px;
  border: 1px solid rgba(245,196,81,.34);
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(245,196,81,.13), rgba(17,25,34,.78));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 6px 16px rgba(0,0,0,.16);
  color: #f6e7c4;
}
.founder-waitlist-shell .fw-prize .hero-prize-pills li:nth-child(2) {
  border-color: rgba(45,212,191,.32);
  background: linear-gradient(145deg, rgba(45,212,191,.13), rgba(17,25,34,.8));
}
.founder-waitlist-shell .fw-prize .hero-prize-pills li img {
  width: 17px;
  height: 17px;
}
.founder-waitlist-shell .fw-prize .hero-prize-earn {
  width: min(100%, 58ch);
  max-width: 58ch;
  margin: 0 auto;
  padding-top: 9px;
  border-top: 1px solid rgba(210,220,232,.11);
  color: #c5cfdd;
  font-size: .78rem;
  line-height: 1.45;
  text-align: center;
  text-wrap: balance;
}
.founder-waitlist-shell .fw-after {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.founder-waitlist-shell .fw-after::before {
  position: absolute;
  top: 6%;
  right: -22%;
  width: min(84%, 360px);
  aspect-ratio: 1;
  border: 1px solid rgba(121,225,211,.13);
  border-radius: 50%;
  background:
    radial-gradient(circle at 40% 35%, rgba(45,212,191,.13), transparent 46%),
    radial-gradient(circle, transparent 56%, rgba(245,196,81,.075) 57%, transparent 58%);
  box-shadow: 0 0 0 18px rgba(45,212,191,.018), 0 0 0 38px rgba(245,196,81,.018);
  content: "";
  pointer-events: none;
}
.founder-waitlist-shell .fw-after > * { position: relative; z-index: 1; }
.fw-side-mark { width: 76px; height: 76px; border-radius: 24px; }
.fw-side-mark::before {
  position: absolute;
  inset: -7px;
  border: 1px solid rgba(212,231,239,.2);
  border-radius: 29px;
  content: "";
  pointer-events: none;
}
.fw-side-mark img:first-child { width: 44px; height: 47px; }
.fw-side-mark img:last-child { width: 22px; height: 22px; }

/* Un espacio más generoso deja que los ejemplos de Mastery respiren y elimina
 * el gran vacío que quedaba a la derecha del contenido en escritorio. */
.ksm-hero,
.ksm-page { max-width: min(1160px, 100%); }
.ksm-hero h1 {
  max-width: 20ch;
  font-size: clamp(2.1rem, 4.8vw, 3.7rem);
  line-height: 1.07;
}
.ksm-hero .answer-first { max-width: 68ch; }
.ksm-cmp {
  position: relative;
  padding: clamp(12px, 2vw, 22px);
  border: 1px solid rgba(173,208,224,.15);
  border-radius: 25px;
  background:
    radial-gradient(ellipse 58% 75% at 4% 0%, rgba(45,212,191,.08), transparent 72%),
    linear-gradient(150deg, rgba(15,24,39,.75), rgba(7,13,24,.68));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.055), 0 18px 42px rgba(0,0,0,.16);
}
.ksm-cmp__tabs { gap: 8px; }
.ksm-cmp__tabs label {
  min-height: 44px;
  padding-inline: 17px;
  border-color: rgba(182,205,220,.16);
  background: rgba(8,15,27,.72);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.045);
  touch-action: manipulation;
}
.ksm-pane { gap: 16px; }
.ksm-col {
  min-height: 172px;
  padding: clamp(16px, 2vw, 22px);
  background: linear-gradient(145deg, rgba(19,35,48,.92), rgba(10,17,29,.9));
}
.ksm-col--mastery {
  background:
    radial-gradient(ellipse 75% 100% at 100% 0%, rgba(245,196,81,.1), transparent 70%),
    linear-gradient(145deg, rgba(29,29,38,.94), rgba(11,19,30,.94));
}
.ksm-col p { color: #d0d9e5; }
.ksm-eg { color: #b6c5d7; }

/* Cinco hitos por fila en desktop: la escalera se lee como sistema, no como
 * una tira de miniaturas. minmax mantiene una sola columna legible en teléfonos. */
.rf-ladder {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 14px;
}
.rf-card {
  min-height: 188px;
  padding: 18px;
  border-radius: 21px;
  background-color: #0a1321;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.055), 0 14px 30px rgba(0,0,0,.18);
}
.rf-card__top { align-items: center; }
.rf-card__num { width: 44px; height: 44px; font-size: 1.18rem; }
.rf-card__icons { min-height: 66px; }
.rf-card__medal { width: 64px; height: 64px; }
.rf-card__reward { font-size: 1rem; line-height: 1.35; text-wrap: balance; }
.rf-card__note { font-size: .8rem; }
.rf-card--legend {
  min-height: 0;
  padding: clamp(18px, 2.4vw, 28px);
  border-radius: 24px;
}
.rf-cta { padding: clamp(30px, 4vw, 48px) 24px; }

@media (max-width: 899px) {
  .founder-waitlist-shell .fw-prize { grid-template-columns: minmax(0, 1fr); }
  .founder-waitlist-shell .fw-prize .hero-prize-earn { text-align: center; }
}
@media (max-width: 600px) {
  .founder-waitlist-shell .fw-prize { gap: 9px; padding: 14px 10px 12px; border-radius: 18px; }
  .founder-waitlist-shell .fw-prize .hero-prize-label { font-size: .64rem; }
  .founder-waitlist-shell .fw-prize .hero-prize-pills { gap: 7px; }
  .founder-waitlist-shell .fw-prize .hero-prize-pills li { min-height: 38px; padding: 6px 10px; font-size: .72rem; }
  .founder-waitlist-shell .fw-prize .hero-prize-earn { padding-top: 8px; font-size: .73rem; }
  .fw-side-mark { width: 58px; height: 58px; border-radius: 18px; }
  .fw-side-mark::before { inset: -5px; border-radius: 23px; }
  .fw-side-mark img:first-child { width: 34px; height: 37px; }
  .fw-side-mark img:last-child { width: 18px; height: 18px; }
  .ksm-cmp { padding: 12px; border-radius: 20px; }
  .ksm-cmp__tabs { gap: 6px; }
  .ksm-cmp__tabs label { min-height: 42px; padding-inline: 12px; font-size: .82rem; }
  .ksm-col { min-height: 0; }
  .rf-ladder { gap: 11px; }
  .rf-card { min-height: 176px; padding: 15px; border-radius: 18px; }
  .rf-card__num { width: 40px; height: 40px; }
  .rf-card__medal { width: 56px; height: 56px; border-radius: 16px; }
  .rf-card__medal img { width: 35px; height: 35px; }
  .rf-card__reward { font-size: .93rem; }
}
@media (max-width: 360px) {
  .founder-waitlist-shell .fw-prize .hero-prize-pills li { padding-inline: 8px; font-size: .68rem; }
  .rf-ladder { grid-template-columns: minmax(0, 1fr); }
}

/* Tactile feedback replaces hover on touch screens without implying cards
 * are links. The selected Mastery module stays visibly selected after tapping. */
@media (hover: none) {
  .ksm-cmp__tabs label:active { transform: scale(.97); }
  .rf-card,
  .rf-step,
  .rf-how__item {
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
  }
  .rf-card:active,
  .rf-step:active,
  .rf-how__item:active {
    transform: scale(.99);
    border-color: rgba(245,196,81,.48);
    box-shadow: 0 12px 28px rgba(0,0,0,.34), 0 0 20px rgba(45,212,191,.14);
  }
}
@media (prefers-reduced-motion: reduce) {
  .ksm-cmp__tabs label,
  .rf-card,
  .rf-step,
  .rf-how__item { transition: none; }

  /* The site-wide reduced-motion fallback restores opacity on the companion.
   * Keep it hidden while the waitlist is in view so it cannot cover the form. */
  body.ks-waitlist-active .ks-companion,
  body:has(#waitlist:target) .ks-companion {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}


/* ==========================================================================
   WAVE 20: 20-AGENT RED TEAM AUDIT FIXES 
   ========================================================================== */

/* 1. Prevent Container Clipping in Story Scroll */
.story-pair {
  /* Give enough padding so the phone and bottom captions never hit the next divider */
  padding-bottom: 80px !important;
  margin-bottom: 32px !important;
  overflow: visible !important;
}
.story-device .vista-note, .phone figcaption.vista-note {
  overflow: visible !important;
  /* Push it slightly down so it breathes and never clips */
  margin-top: 24px !important;
  margin-bottom: 32px !important;
  /* Add a premium glass effect to the container */
  background: rgba(13, 17, 26, 0.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 16px !important;
  padding: 16px 20px !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5), inset 0 2px 4px rgba(255,255,255,0.05) !important;
}
/* Ensure the pills inside the note are spaced nicely and never overlap vertically */
.vista-tabs {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 12px !important;
}
.vista-tabs span {
  white-space: nowrap !important;
  word-break: keep-all !important;
  padding: 6px 16px !important;
  font-size: 0.85rem !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4) !important;
}
@media (prefers-reduced-motion: no-preference) {
  .vista-tabs span {
    transition: all 0.3s ease !important;
  }
  .vista-tabs span:hover {
    transform: translateY(-2px) !important;
  }
}
.vista-tabs span:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: rgba(45, 212, 191, 0.5) !important;
}

/* 2. Ultimate App Bar Responsiveness (Navbar Pills Overlap Fix) */
/* Between 861px and 1200px, hide the rewards pills so they don't squish */
@media (max-width: 1220px) {
  .site-header .founder-pill-dock {
    display: none !important;
  }
}
@media (max-width: 600px) {
  .site-header .nav-founder-dock .cta-full { display: none !important; }
  .site-header .nav-founder-dock .cta-short { display: inline-block !important; }
}

/* 3. Referidos: Supreme Vertical Connected Timeline */
/* Force both ladders to be a single vertical column */
.rf-ladder, .rf-ladder--guest {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 60px !important; /* Space for the line to show */
  position: relative !important;
  margin: 60px auto !important;
  max-width: 600px !important;
  padding: 0 !important;
}
/* The central glowing spine connecting all steps */
.rf-ladder::before, .rf-ladder--guest::before {
  content: "" !important;
  position: absolute !important;
  top: 40px !important;
  bottom: 40px !important;
  left: 50% !important;
  width: 4px !important;
  background: linear-gradient(180deg, transparent, rgba(45, 212, 191, 0.8), rgba(245, 196, 81, 0.8), transparent) !important;
  transform: translateX(-50%) !important;
  z-index: 0 !important;
  border-radius: 2px !important;
  box-shadow: 0 0 20px rgba(45, 212, 191, 0.6) !important;
  display: block !important;
}
/* The cards themselves */
.rf-ladder .rf-card, .rf-ladder--guest .rf-card {
  width: 100% !important;
  max-width: 500px !important;
  z-index: 1 !important;
  background: rgba(13, 17, 26, 0.95) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 32px !important;
  padding: 48px 32px !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), inset 0 2px 4px rgba(255,255,255,0.05) !important;
  transform: scale(1.02) !important;
}
@media (prefers-reduced-motion: no-preference) {
  .rf-ladder .rf-card, .rf-ladder--guest .rf-card {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.4s ease, box-shadow 0.4s ease !important;
  }
  .rf-ladder .rf-card:hover, .rf-ladder--guest .rf-card:hover {
    transform: scale(1.05) translateY(-4px) !important;
  }
}
/* Hover effect for the cards */
.rf-ladder .rf-card:hover, .rf-ladder--guest .rf-card:hover {
  border-color: rgba(45, 212, 191, 0.6) !important;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), 0 0 32px rgba(45, 212, 191, 0.3) !important;
}
/* Timeline Card Content Polish */
.rf-card__top {
  font-size: 1.3rem !important;
  margin-bottom: 24px !important;
}
.rf-card__num {
  font-size: 1.6rem !important;
  font-weight: 900 !important;
  color: var(--gold-hi, #FFD777) !important;
  text-shadow: 0 2px 8px rgba(245, 196, 81, 0.4) !important;
}
.rf-card__icons img {
  width: 80px !important;
  height: 80px !important;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,0.6)) !important;
  margin: 20px 0 !important;
}
@media (prefers-reduced-motion: no-preference) {
  .rf-card__icons img {
    transition: transform 0.4s ease !important;
  }
  .rf-card:hover .rf-card__icons img {
    transform: scale(1.1) rotate(5deg) !important;
  }
}
.rf-card__reward {
  font-size: 1.5rem !important;
  font-weight: 800 !important;
  color: #fff !important;
  margin-top: 12px !important;
}
.rf-card__note {
  font-size: 1.1rem !important;
  color: rgba(255,255,255,0.8) !important;
  margin-top: 8px !important;
}

/* 4. Extra Polish / Red Team Improvements */
/* Elevate the hero buttons and make them glassmorphic */
.hero-cta .btn-primary {
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.4), 0 8px 24px rgba(0,0,0,0.6), 0 0 20px rgba(45, 212, 191, 0.4) !important;
  border: 1px solid rgba(255,255,255,0.5) !important;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5) !important;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-cta .btn-primary {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  }
  .hero-cta .btn-primary:hover {
    transform: translateY(-4px) scale(1.02) !important;
  }
}
.hero-cta .btn-primary:hover {
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.6), 0 16px 32px rgba(0,0,0,0.8), 0 0 32px rgba(45, 212, 191, 0.8) !important;
}
/* Deepen story phone shadows to pop more */
.story-device .phone-bezel {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.2),
    0 40px 80px rgba(0, 0, 0, 0.8),
    inset 0 2px 4px rgba(255, 255, 255, 0.15) !important;
}
/* Title spacing for elegance */
.section-title {
  letter-spacing: -0.04em !important;
  text-shadow: 0 4px 12px rgba(0,0,0,0.5) !important;
}





/* ==========================================================================
   WAVE 28: ULTIMATE RED TEAM FIX - THE WIREFRAME GLITCH
   ========================================================================== */

/* 1. Global Fluidity & Logo Fix */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth !important; }
}
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

.ks-brand-type {
  font-family: "Cinzel", serif !important;
  font-size: 1.6rem !important;
  letter-spacing: -0.02em !important;
  font-weight: 700 !important;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4) !important;
}

/* 2. Houdini Property for Flawless Spinning Gradients */
@property --ks-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
@keyframes ks-spin-gradient {
  to { --ks-angle: 360deg; }
}

/* 3. Referidos: Guaranteed Grid-Based Zigzag & Massive Cards */
.rf-ladder, .rf-ladder--guest {
  max-width: 1100px !important;
  margin: 80px auto !important;
}
.rf-ladder .rf-card, .rf-ladder--guest .rf-card {
  width: 100% !important;
  max-width: none !important;
  padding: 40px !important;
  border-radius: 26px !important;
  position: relative !important;
  will-change: transform, box-shadow;
}
@media (prefers-reduced-motion: no-preference) {
  .rf-ladder .rf-card, .rf-ladder--guest .rf-card {
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease !important;
  }
}

/* Base Hover */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .rf-ladder .rf-card:hover {
    transform: translateY(-8px) scale(1.02) !important;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6), 0 0 40px rgba(45, 212, 191, 0.15) !important;
    z-index: 10 !important;
  }
}

@media (min-width: 900px) {
  /* Spine line for zigzag */
  .rf-ladder {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 40px 80px !important;
    position: relative !important;
    padding-bottom: 80px !important; /* Make room for the translated even cards */
  }
  .rf-ladder::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important; bottom: 0 !important; left: 50% !important;
    width: 4px !important;
    background: linear-gradient(180deg, #2DD4BF, #F5C451) !important;
    transform: translateX(-50%) !important;
    z-index: 0 !important;
    border-radius: 2px !important;
    box-shadow: 0 0 20px rgba(245, 196, 81, 0.4) !important;
  }
  
  /* RED TEAM FIX: Interleaved Grid using translateY instead of inflated margins */
  .rf-ladder .rf-card:nth-child(even) {
    transform: translateY(80px) !important;
  }
  @media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .rf-ladder .rf-card:nth-child(even):hover {
      transform: translateY(72px) scale(1.02) !important;
    }
  }

  /* Elegant Connectors to spine */
  .rf-ladder .rf-card::after {
    content: "" !important;
    position: absolute !important;
    top: 60px !important;
    width: 40px !important;
    height: 4px !important;
    background: linear-gradient(90deg, rgba(45, 212, 191, 0.8), rgba(245, 196, 81, 0.8)) !important;
    z-index: -3 !important;
    border-radius: 2px !important;
    box-shadow: 0 0 10px rgba(45, 212, 191, 0.4) !important;
  }
  .rf-ladder .rf-card:nth-child(odd)::after {
    right: -40px !important;
  }
  .rf-ladder .rf-card:nth-child(even)::after {
    left: -40px !important;
    background: linear-gradient(90deg, rgba(245, 196, 81, 0.8), rgba(45, 212, 191, 0.8)) !important;
  }
  
  /* Guest Timeline (Horizontal Minimal) */
  .rf-ladder--guest {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    gap: 40px !important;
  }
  .rf-ladder--guest::before { display: none !important; }
  .rf-ladder--guest .rf-card {
    flex: 1 !important;
    max-width: 400px !important;
    margin: 0 !important;
    transform: none !important;
  }
  .rf-ladder--guest .rf-card::after { display: none !important; }
}

/* Mobile Layout Refinements */
@media (max-width: 899px) {
  .rf-ladder {
    display: flex !important;
    flex-direction: column !important;
    gap: 32px !important;
    position: relative !important;
  }
  .rf-ladder::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important; bottom: 0 !important; left: 24px !important;
    width: 4px !important;
    background: linear-gradient(180deg, #2DD4BF, #F5C451) !important;
    z-index: -1 !important;
  }
  .rf-ladder .rf-card {
    margin-left: 48px !important;
    max-width: calc(100% - 48px) !important;
    padding: 24px !important;
  }
  .rf-ladder .rf-card::after {
    content: "" !important;
    position: absolute !important;
    top: 40px !important;
    left: -24px !important;
    width: 24px !important;
    height: 4px !important;
    background: #2DD4BF !important;
    z-index: -3 !important;
  }
}

/* 4. Flawless Aurora Rainbow Border */
.rf-ladder .rf-card.rf-aurora {
  overflow: visible !important;
  background: linear-gradient(180deg, #111726 0%, #0a0f1a 100%) !important;
  border: none !important;
  box-shadow: 0 16px 32px rgba(0,0,0,0.6), inset 0 2px 0 rgba(255,255,255,0.05) !important;
}

.rf-ladder .rf-card.rf-aurora::before {
  content: "" !important;
  position: absolute !important;
  inset: -2px !important;
  border-radius: 28px !important;
  background: conic-gradient(from var(--ks-angle, 0deg) at 50% 50%, #2DD4BF 0deg, #38BDF8 60deg, #A78BFA 120deg, #F5C451 180deg, #FFD777 240deg, #FFE9B8 300deg, #2DD4BF 360deg) !important;
  z-index: -2 !important;
  opacity: 0.6 !important;
  
  /* THIS WAS CAUSING THE GLITCH! The original CSS applied translate: -50% -50%;
     Because we use inset: -2px, we MUST reset translate so the mask aligns with the card. */
  translate: none !important;
  width: auto !important;
  height: auto !important;
  max-width: none !important;
  aspect-ratio: auto !important;
  
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0) !important;
  -webkit-mask-composite: xor !important;
  mask-composite: exclude !important;
  padding: 2px !important;
  pointer-events: none !important;
}
@media (prefers-reduced-motion: no-preference) {
  .rf-ladder .rf-card.rf-aurora::before {
    animation: ks-spin-gradient 6s linear infinite !important;
  }
}
@media (hover: hover) {
  .rf-ladder .rf-card.rf-aurora:hover::before {
    opacity: 1 !important;
    filter: blur(2px) !important;
  }
}

/* ONLY hide ::after for the cards! Do NOT globally hide .rf-aurora::after, 
   otherwise the Hero section gets completely broken! */
.rf-ladder .rf-card.rf-aurora > .rf-aurora::after,
.rf-ladder .rf-card.rf-aurora::after {
  display: none !important; /* But wait, the card's ::after is the CONNECTOR! */
}
/* WAIT! If I hide .rf-card.rf-aurora::after, I hide the connector line I just built in section 3!
   Ah! The original aurora uses ::after to draw the dark inner cover. 
   But I replaced it entirely with -webkit-mask, so I don't need the inner cover on the cards.
   However, my connector line is drawn with `.rf-ladder .rf-card::after`. 
   If I do `.rf-ladder .rf-card.rf-aurora::after { display: none !important; }`, I KILL THE CONNECTOR.
   Let's NOT hide the ::after of the card. Let's just let the connector use it!
   The original aurora ::after has inset: 2px. My connector overrides that with top: 60px, width: 40px, etc.
   So I don't need to hide it at all! */

/* 5. Kitsune Legendary Card */
.rf-card--legend {
  display: flex !important;
  flex-direction: column !important;
  text-align: center !important;
  gap: 24px !important;
  box-shadow: 0 0 60px rgba(245, 196, 81, 0.15), 0 20px 40px rgba(0,0,0,0.6) !important;
}
.rf-card--legend .rf-legend__visual {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 16px !important;
}
.rf-card--legend .rf-card__pet {
  width: 160px !important;
  height: auto !important;
  filter: drop-shadow(0 20px 30px rgba(0,0,0,0.7)) !important;
}
@media (prefers-reduced-motion: no-preference) {
  .rf-card--legend .rf-card__pet {
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
  }
}
@media (max-width: 899px) {
  .rf-card--legend .rf-card__pet {
    width: 120px !important;
  }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .rf-card--legend:hover .rf-card__pet {
    transform: translateY(-10px) scale(1.05) !important;
  }
}
.rf-card--legend .rf-legend__copy h3 {
  font-size: 1.8rem !important;
  color: var(--gold-hi) !important;
  text-shadow: 0 2px 10px rgba(245, 196, 81, 0.4) !important;
}
@media (max-width: 899px) {
  .rf-card--legend .rf-legend__copy h3 {
    font-size: 1.4rem !important;
  }
}

/* 6. Flex Context for Assets */
.rf-card__icons {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
  gap: 16px !important;
  min-height: 80px !important;
  margin: 24px 0 !important;
}
@media (min-width: 900px) {
  .rf-card__icons { justify-content: flex-start !important; }
}

/* Primary Medal */
.rf-card__medal {
  width: 80px !important;
  height: 80px !important;
  overflow: visible !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
.rf-card__medal img {
  width: 80px !important;
  height: 80px !important;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,0.6)) !important;
}
@media (prefers-reduced-motion: no-preference) {
  .rf-card__medal img {
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
  }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .rf-card:hover .rf-card__medal img {
    transform: scale(1.15) rotate(5deg) !important;
  }
}

/* Secondary Small Medal */
.rf-card__medal--sm {
  width: 48px !important;
  height: 48px !important;
  margin-left: -20px !important;
  position: relative !important;
  z-index: 2 !important;
}
.rf-card__medal--sm img {
  width: 48px !important;
  height: 48px !important;
}

/* Tree Medal */
.rf-card__medal--tree {
  width: 110px !important;
  height: 110px !important;
}
.rf-card__medal--tree img {
  width: 110px !important;
  height: 110px !important;
  filter: drop-shadow(0 20px 30px rgba(0,0,0,0.8)) !important;
}

/* 7. Number Contrast */
.rf-card__num {
  background: linear-gradient(180deg, var(--gold-hi), var(--gold-deep)) !important;
  color: #4a3300 !important;
  font-weight: 900 !important;
  font-size: 1.2rem !important;
  width: 48px !important;
  height: 48px !important;
  display: grid !important;
  place-items: center !important;
  text-shadow: 0 1px 0 rgba(255,255,255,0.4) !important;
  box-shadow: 0 8px 16px rgba(245, 196, 81, 0.4), inset 0 2px 0 rgba(255,255,255,0.5) !important;
  border-radius: 50% !important;
}

/* 8. Fix Navbar Overlap */
.nav-founder-dock {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}
.nav-founder-dock::after { display: none !important; }

@media (min-width: 900px) and (max-width: 1250px) {
  .site-header[data-ks-nav="v2"] .nav-founder-dock > .founder-pill-dock {
    display: none !important;
  }
}

.site-header[data-ks-nav="v2"] .nav-founder-dock {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex-wrap: nowrap !important;
  max-width: 100% !important;
  overflow: visible !important;
}

/* Premium CTA Shimmer */
@keyframes ks-shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}
.hero-cta .btn-primary::after, a.cta-waitlist::after, button.cta-waitlist::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0) 100%);
  background-size: 200% 100%;
  animation: ks-shimmer 4s infinite linear;
  pointer-events: none;
}
.hero-cta .btn-primary, a.cta-waitlist, button.cta-waitlist {
  position: relative; overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.4), 0 8px 24px rgba(0,0,0,0.6), 0 0 20px rgba(45, 212, 191, 0.4) !important;
}

/* 9. Kill the Container Clipping */
.story-pair.story-beat, .section.story-beat {
  content-visibility: visible !important;
  contain: none !important;
  overflow: visible !important;
  padding-bottom: 80px !important;
}
.story-device, .phone-block, .phone {
  overflow: visible !important;
}

/* Vista-note visually merged */
.story-device .vista-note, .phone figcaption.vista-note {
  margin-top: 24px !important;
  border-radius: 24px !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  background: linear-gradient(180deg, rgba(20, 24, 34, 0.95) 0%, rgba(9, 12, 18, 0.98) 100%) !important;
  padding: 24px 32px !important;
  box-shadow: 0 24px 48px rgba(0,0,0,0.8), inset 0 2px 0 rgba(255,255,255,0.05) !important;
  position: relative !important;
  z-index: 10 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

/* 10. Scrollytelling Rainbow Line */
@supports (animation-timeline: scroll(root)) {
  @keyframes ks-rainbow-fill {
    0% { transform: scaleY(0); }
    100% { transform: scaleY(1); }
  }
  main.story {
    position: relative;
  }
  main.story::before {
    content: "";
    position: absolute;
    top: 0; bottom: 0; left: 50%;
    width: 2px;
    background: rgba(255,255,255,0.05);
    transform: translateX(-50%);
    z-index: -2;
  }
  main.story::after {
    content: "";
    position: absolute;
    top: 0; bottom: 0; left: 50%;
    width: 6px;
    background: linear-gradient(180deg, #2DD4BF 0%, #38BDF8 20%, #A78BFA 40%, #F5C451 62%, #FFD777 80%, #FFE9B8 100%);
    transform: translateX(-50%) scaleY(0);
    transform-origin: top;
    z-index: -1;
    border-radius: 3px;
    box-shadow: 0 0 32px rgba(45, 212, 191, 0.6), 0 0 60px rgba(245, 196, 81, 0.4);
    animation: ks-rainbow-fill linear;
    animation-timeline: scroll(root);
  }
  
  @keyframes ks-glow-box {
    0% { border-color: rgba(255,255,255,0.05); box-shadow: none; }
    100% { border-color: rgba(245, 196, 81, 0.6); box-shadow: 0 0 80px rgba(245, 196, 81, 0.3); }
  }
  #waitlist {
    animation: ks-glow-box linear both;
    animation-timeline: view();
    animation-range: cover 0% cover 50%;
    border: 2px solid transparent;
    border-radius: 32px;
  }
}
