/* Shared Kailami brand pieces: floating pill nav and the navy photo hero.
   Used by the members home page. (/welcome keeps its own copy inline.) */
/* floating pill navigation */
.w-page > nav:not(.mobile-menu) { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); width: min(1160px, calc(100% - 24px)); border: 1px solid rgba(255,255,255,.55); border-radius: 999px; background: rgba(255,255,255,.84); box-shadow: 0 14px 40px -18px rgba(2,8,24,.55), 0 1px 0 rgba(255,255,255,.6) inset; transition: box-shadow .3s, background .3s; }
html[data-theme="dark"] .w-page > nav:not(.mobile-menu) { background: rgba(17,28,48,.84); border-color: rgba(127,166,255,.22); }
.w-page .nav-inner { max-width: none; padding: 9px 9px 9px 26px; gap: 14px; }
.w-page .nav-links { gap: 4px; margin: 0 auto; }
.w-page .nav-links a { padding: 9px 14px; border-radius: 999px; font-weight: 700; color: var(--body); }
.w-page .nav-links a:hover { background: var(--accent-wash); color: var(--accent); }
.w-page .nav-cta { border-radius: 999px; padding: 12px 20px; font-weight: 800; }
.w-page .theme-toggle { border-radius: 999px; }
.w-page .w-login-link { border-radius: 999px; padding: 9px 14px !important; }
.w-page .w-login-link:hover { background: var(--accent-wash); }
.w-page .mobile-menu { padding-top: 100px; }
@media (max-width: 860px) {
  .w-page .nav-inner { padding: 7px 7px 7px 18px; }
  .w-page .nav-burger { border-radius: 999px; }
  .w-page .w-login-link { display: none; }
  .w-page .theme-toggle { margin-left: auto; }
  .w-page .nav-burger { order: 3; }
}
/* Members' phones (360-400px): the account button makes the row 27px too wide and pushes the
   menu button out of the pill, so tighten the spacing. */
@media (max-width: 400px) { .w-page .nav-inner { gap: 6px; padding-left: 14px; } }
@media (max-width: 359px) { .w-page .powered { display: none; } }

/* hero: big line on top, Kyla in the middle, real Kailami pages fanned out behind */
.w-hero { position: relative; overflow: hidden; color: #fff; padding: 132px 0 0; isolation: isolate;
  background: radial-gradient(40% 50% at 88% 20%, rgba(124,92,255,.55) 0%, rgba(124,92,255,0) 70%), radial-gradient(40% 50% at 10% 30%, rgba(56,152,255,.45) 0%, rgba(56,152,255,0) 70%), linear-gradient(180deg, #0B1B33 0%, #13284A 38%, #1D3A8A 62%, #1D3A8A 100%); }
.w-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1.4px); background-size: 24px 24px; -webkit-mask-image: linear-gradient(180deg, #000 10%, transparent 75%); mask-image: linear-gradient(180deg, #000 10%, transparent 75%); }
.w-hero-in { max-width: 1240px; margin: 0 auto; padding: 0 32px; text-align: center; position: relative; }
.w-hero h1 { color: #fff; font-size: clamp(42px, 7.4vw, 104px); line-height: .98; letter-spacing: -.045em; font-weight: 900; text-wrap: balance; position: relative; z-index: 3; }
.w-hero h1 em { font-style: normal; font-weight: 900; font-family: inherit; background: linear-gradient(90deg, #A9C4FF, #D7C8FF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.w-stage { position: relative; height: 560px; margin-top: 8px; clip-path: inset(-200px -100vw 0 -100vw); }
.w-kyla { position: absolute; left: 50%; bottom: 0; height: 100%; width: auto; transform: translateX(-50%); z-index: 2; filter: drop-shadow(0 0 1.5px rgba(4,10,30,.35)) drop-shadow(0 30px 60px rgba(4,10,30,.6)); }
.w-fade { position: absolute; left: -50vw; right: -50vw; bottom: 0; height: 170px; z-index: 3; pointer-events: none; background: linear-gradient(180deg, rgba(29,58,138,0) 0%, rgba(29,58,138,.85) 60%, #1D3A8A 88%, #1D3A8A 100%); }
.w-glow { display: none; }
.w-shot { -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%); mask-image: linear-gradient(180deg, #000 70%, transparent 100%); position: absolute; width: 440px; border-radius: 14px; background: #fff; box-shadow: 0 30px 70px -20px rgba(2,8,24,.65), 0 0 0 1px rgba(255,255,255,.08); overflow: hidden; z-index: 1; will-change: transform; }
.w-shot-bar { height: 22px; background: #EEF2F8; display: flex; align-items: center; gap: 5px; padding: 0 10px; }
.w-shot-bar i { width: 8px; height: 8px; border-radius: 50%; background: #CBD3E1; }
.w-shot-bar i:nth-child(1) { background: #FF6B6B; } .w-shot-bar i:nth-child(2) { background: #FFC54D; } .w-shot-bar i:nth-child(3) { background: #3DD68C; }
.w-shot img { display: block; width: 100%; height: auto; }
.w-shot.s1 { left: -60px; top: 40px; --r: -9deg; width: 400px; opacity: .92; }
.w-shot.s2 { left: 30px; top: 270px; --r: -4deg; width: 430px; }
.w-shot.s3 { right: 30px; top: 270px; --r: 5deg; width: 430px; }
.w-shot.s4 { right: -60px; top: 40px; --r: 9deg; width: 400px; opacity: .92; }
.w-shot { transform: translate(var(--px, 0px), var(--py, 0px)) rotate(var(--r)); transition: transform .9s cubic-bezier(.2,.8,.2,1), opacity .9s; }
.w-hero:not(.go) .w-shot { opacity: 0; transform: translate(var(--fx, 0px), 60px) rotate(0deg) scale(.85); }
.w-shot.s1 { --fx: 330px; transition-delay: .15s; } .w-shot.s2 { --fx: 200px; transition-delay: .05s; } .w-shot.s3 { --fx: -200px; transition-delay: .05s; } .w-shot.s4 { --fx: -330px; transition-delay: .15s; }
.w-chip { position: absolute; z-index: 5; background: #fff; color: #0B1B33; border-radius: 16px; padding: 11px 14px; display: flex; gap: 10px; align-items: center; font-size: 14px; font-weight: 800; box-shadow: 0 18px 40px -14px rgba(2,8,24,.6); text-align: left; animation: wBob 6s ease-in-out infinite; }
.w-chip small { display: block; color: #56627A; font-weight: 600; font-size: 12px; }
.w-chip .dot { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; font-size: 15px; }
.w-chip.c1 { left: calc(50% - 400px); top: 120px; }
.w-chip.c2 { right: calc(50% - 400px); top: 360px; animation-delay: -3s; }
@keyframes wBob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
.w-hero-cta { position: relative; z-index: 4; margin-top: -64px; padding-bottom: 40px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.w-hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center; }
.w-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 16px 28px; border-radius: 16px; font-weight: 800; font-size: 17px; transition: transform .2s, background .2s, box-shadow .2s; }
.w-btn-light { background: #fff; color: #0B1B33; box-shadow: 0 0 0 6px rgba(255,255,255,.14), 0 18px 40px -10px rgba(2,8,24,.6); }
.w-btn-light:hover { transform: translateY(-2px); box-shadow: 0 0 0 9px rgba(255,255,255,.18), 0 22px 44px -10px rgba(2,8,24,.6); }
.w-btn-line { color: #fff; border: 1.5px solid rgba(255,255,255,.35); background: rgba(11,27,51,.35); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.w-btn-line:hover { border-color: #fff; }
.w-btn-navy { background: var(--accent); color: var(--on-accent); }
.w-btn-navy:hover { background: var(--accent-hover); transform: translateY(-2px); }
.w-hero-fine { font-size: 15.5px; color: rgba(255,255,255,.82); text-shadow: 0 1px 12px rgba(2,8,24,.6); max-width: 660px; line-height: 1.55; }
.w-hero-fine b { color: #fff; }

/* entrance */
.w-in { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.w-hero.go .w-in { opacity: 1; transform: none; }
.w-hero.go .w-in.d1 { transition-delay: .1s; } .w-hero.go .w-in.d2 { transition-delay: .25s; } .w-hero.go .w-in.d3 { transition-delay: .4s; }
.w-rv { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.w-rv.on { opacity: 1; transform: none; }

/* numbers */
.w-nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 32px 0 0; border: 1px solid var(--hairline); border-radius: 22px; background: var(--surface); }
.w-num { padding: 26px 28px; }
.w-num + .w-num { border-left: 1px solid var(--hairline); }
.w-num b { display: block; font-size: 40px; line-height: 1; font-weight: 800; color: var(--ink); letter-spacing: -.03em; }
.w-num span { display: block; margin-top: 8px; color: var(--muted); font-size: 15px; line-height: 1.45; }

@media (max-width: 1080px) {
  .w-stage { height: 470px; }
  .w-shot.s1, .w-shot.s4 { display: none; }
  .w-shot.s2 { left: 0; top: 150px; } .w-shot.s3 { right: 0; top: 150px; }
  .w-chip.c1 { left: 2%; top: 60px; } .w-chip.c2 { right: 2%; top: 90px; }
}
@media (max-width: 760px) {
  .w-hero { padding-top: 104px; }
  .w-hero-in { padding: 0 18px; }
  .w-stage { height: 380px; }
  .w-shot { width: 250px !important; }
  .w-shot.s2 { left: -70px; top: 120px; } .w-shot.s3 { right: -70px; top: 120px; }
  .w-chip { display: none; }
  .w-hero-cta { margin-top: -70px; padding-bottom: 40px; }
  .w-hero-ctas { width: 100%; } .w-hero-ctas .w-btn { flex: 1 1 100%; }
  .w-nums { grid-template-columns: 1fr 1fr; }
  .w-num { padding: 20px; } .w-num b { font-size: 32px; }
  .w-num:nth-child(3) { border-left: 0; }
  .w-num:nth-child(n+3) { border-top: 1px solid var(--hairline); }
}
@media (prefers-reduced-motion: reduce) {
  .w-in, .w-rv { opacity: 1 !important; transform: none !important; transition: none !important; }
  .w-chip { animation: none; }
  .w-shot { transition: none !important; }
}
