/* KingsWall SLTP Citadel website. Calm, warm, airy layout with smooth scroll motion; brand colours navy + neon green. */
:root {
  --bg: #f5f4ee;
  --bg-2: #ecebe3;
  --card: #ffffff;
  --ink: #12161f;
  --ink-2: #3c4250;
  --muted: #7c8190;
  --line: #e2e0d6;
  --green: #12b07a;
  --neon: #22e39b;
  --navy: #070b14;
  --red: #e5485f;
  --amber: #e9a23b;
  --cyan: #2bb7e6;
  --r: 28px;
  --shadow: 0 18px 50px rgba(18, 22, 31, .08);
  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font);
  font-size: 17px; line-height: 1.55; overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -.02em; line-height: 1.1; }
h2 { font-size: clamp(34px, 5vw, 60px); text-align: center; }
.accent { color: var(--green); }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .18em; color: var(--green); text-align: center; margin: 0 0 14px; font-weight: 700; }
.sub { max-width: 620px; margin: 18px auto 0; text-align: center; color: var(--muted); font-size: 18px; }
section { padding: 120px 24px; position: relative; }

/* ---------- buttons ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 14px 26px; border-radius: 999px;
  background: var(--navy); color: #fff; font-weight: 600; font-size: 15px; letter-spacing: .01em;
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s, background .35s;
  box-shadow: 0 10px 30px rgba(7, 11, 20, .18);
}
.pill:hover { transform: translateY(-2px); background: #0f1a2e; box-shadow: 0 16px 40px rgba(18, 176, 122, .28); }
.pill-sm { padding: 10px 18px; font-size: 14px; }
.pill-lg { padding: 18px 34px; font-size: 17px; }
.text-link { color: var(--ink-2); font-weight: 500; }
.text-link span { display: inline-block; transition: transform .3s; }
.text-link:hover span { transform: translateX(4px); }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 16px 16px auto; z-index: 50; display: flex; align-items: center; gap: 24px;
  padding: 10px 12px 10px 18px; border-radius: 999px; background: rgba(245, 244, 238, .72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(226, 224, 214, .8);
  transition: transform .45s cubic-bezier(.2, .8, .2, 1), box-shadow .3s;
}
.nav.scrolled { box-shadow: var(--shadow); }
.nav.hide { transform: translateY(-120%); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; }
.brand img { width: 34px; height: auto; }
.brand small { display: block; font-family: var(--mono); font-size: 9px; letter-spacing: .22em; color: var(--muted); font-weight: 700; margin-top: -2px; }
.links { display: flex; gap: 26px; margin-left: auto; font-size: 15px; color: var(--ink-2); }
.links a { position: relative; }
.links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform .35s; }
.links a:hover::after { transform: scaleX(1); }
.burger { display: none; margin-left: auto; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--navy); cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.burger span { width: 18px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s; }

/* ---------- hero ---------- */
.hero { min-height: 100vh; padding-top: 150px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; max-width: 1240px; margin: 0 auto; }
.hero h1 { font-size: clamp(44px, 6.4vw, 84px); line-height: 1.02; }
.hero h1 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; }
.hero h1 .w > span { display: inline-block; }
.lead { font-size: 20px; color: var(--muted); max-width: 480px; margin: 24px 0 34px; }
.cta-row { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.hero-stage { position: relative; height: 640px; display: grid; place-items: center; }
.phone {
  position: relative; width: 290px; height: 590px; border-radius: 46px; background: #0b0f17; padding: 12px; z-index: 2;
  box-shadow: 0 50px 90px rgba(7, 11, 20, .28), inset 0 0 0 2px #2a3140;
}
.notch { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 110px; height: 26px; background: #0b0f17; border-radius: 0 0 16px 16px; z-index: 3; }
.screen { height: 100%; border-radius: 36px; overflow: hidden; background: radial-gradient(120% 80% at 50% 0%, #13213a, var(--navy) 70%); padding: 44px 16px 18px; display: flex; flex-direction: column; gap: 12px; color: #e8eefc; }
.screen-head { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.screen-head img { width: 22px; }
.live-dot { margin-left: auto; width: 9px; height: 9px; border-radius: 50%; background: var(--neon); box-shadow: 0 0 0 0 rgba(34, 227, 155, .7); animation: ping 1.8s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(34, 227, 155, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 227, 155, 0); } }
.footprint { width: 100%; height: 300px; }
.footprint rect { rx: 3; }
.footprint .poc { stroke: var(--cyan); stroke-width: 2; stroke-dasharray: 5 5; }
.screen-card { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); border-radius: 18px; padding: 12px 14px; font-size: 12px; }
.screen-card span { color: #8a98b5; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.screen-card b { display: block; font-size: 15px; margin: 4px 0 8px; font-weight: 600; }
.bar { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--neon), var(--cyan)); border-radius: 6px; }
.screen-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.screen-tags em { font-style: normal; font-size: 10px; font-family: var(--mono); padding: 5px 8px; border-radius: 999px; background: rgba(34, 227, 155, .12); color: var(--neon); }
.chips { position: absolute; inset: 0; pointer-events: none; }
.chip {
  position: absolute; left: 50%; top: 50%; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px;
  background: var(--card); box-shadow: var(--shadow); font-size: 14px; font-weight: 500; white-space: nowrap; color: var(--ink);
  will-change: transform;
}
.chip i { width: 9px; height: 9px; border-radius: 50%; background: var(--green); }
.chip.c2 i { background: var(--cyan); } .chip.c3 i { background: var(--amber); } .chip.c4 i { background: var(--red); }

/* ---------- funnel ---------- */
.funnel { height: 260vh; padding: 0; }
.funnel .sticky { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 90px 24px 40px; overflow: hidden; }
.funnel h2 { margin-top: 0; }
.funnel-stage { position: relative; width: min(980px, 100%); height: 380px; margin-top: 30px; }
.funnel-core {
  position: absolute; left: 50%; top: 50%; width: 150px; height: 150px; margin: -75px 0 0 -75px; border-radius: 50%;
  background: var(--navy); display: grid; place-items: center; align-content: center; gap: 4px; color: #fff; z-index: 2;
  box-shadow: 0 0 0 14px rgba(18, 176, 122, .10), 0 0 0 30px rgba(18, 176, 122, .05), 0 30px 60px rgba(7, 11, 20, .25);
}
.funnel-core img { width: 56px; }
.funnel-core b { font-family: var(--mono); font-size: 13px; letter-spacing: .1em; color: var(--neon); }
.funnel-chips { position: absolute; inset: 0; }
.funnel-chips .chip { font-size: 13px; padding: 8px 14px; }

/* ---------- risk dome ---------- */
.risk { text-align: center; }
.dome-wrap { position: relative; max-width: 1000px; height: 520px; margin: 70px auto 0; }
.arc { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; z-index: 1; }
.arc path { fill: none; stroke: var(--green); stroke-width: 10; stroke-linecap: round; }
.dome {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 820px; max-width: 86%; height: 410px;
  border-radius: 410px 410px 0 0; background: linear-gradient(180deg, #fff 0%, var(--bg-2) 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding-top: 40px; z-index: 2;
  box-shadow: inset 0 2px 0 #fff, 0 -20px 60px rgba(18, 22, 31, .05);
}
.dome-mark { width: 92px; margin-bottom: 14px; filter: drop-shadow(0 12px 22px rgba(18, 176, 122, .35)); }
.dome h3 { font-size: clamp(42px, 6vw, 72px); font-weight: 700; color: var(--ink); }
.dome h3 span { color: var(--green); }
.dome p { margin: 6px 0 0; color: var(--muted); font-family: var(--mono); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.float { position: absolute; z-index: 3; padding: 10px 16px; border-radius: 14px; background: var(--card); box-shadow: var(--shadow); font-size: 14px; font-weight: 600; }
.float::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-right: 8px; vertical-align: middle; }
.f1 { left: 2%; top: 22%; } .f2 { right: 4%; top: 18%; } .f3 { left: 8%; top: 58%; }
.f4 { right: 0; top: 52%; } .f5 { left: 26%; top: 2%; } .f6 { right: 24%; top: -2%; }
.compare { max-width: 900px; margin: 70px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; text-align: left; }
.compare .col { background: var(--card); border-radius: var(--r); padding: 30px 32px; box-shadow: var(--shadow); }
.compare h4 { font-size: 20px; margin-bottom: 14px; }
.compare ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; color: var(--ink-2); }
.compare li { display: flex; gap: 10px; align-items: baseline; }
.compare .bad li::before { content: "×"; color: var(--red); font-weight: 700; }
.compare .good li::before { content: "✓"; color: var(--green); font-weight: 700; }
.compare .bad h4 { color: var(--red); } .compare .good h4 { color: var(--green); }

/* ---------- live ---------- */
.live { text-align: center; }
.pin { width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 50%; background: var(--navy); display: grid; place-items: center; box-shadow: 0 16px 34px rgba(7, 11, 20, .22); }
.pin img { width: 40px; }
.families { max-width: 940px; margin: 56px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.families span {
  width: 132px; height: 132px; border-radius: 50%; background: var(--card); box-shadow: var(--shadow); display: grid; place-items: center;
  padding: 16px; font-weight: 600; font-size: 14px; line-height: 1.2; text-align: center; color: var(--ink-2);
  transition: transform .4s cubic-bezier(.2, .8, .2, 1), color .3s;
}
.families span:hover { transform: translateY(-6px) scale(1.04); color: var(--green); }
.stats { max-width: 1040px; margin: 80px auto 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; border-top: 1px solid var(--line); padding-top: 50px; }
.stats b { display: block; font-size: clamp(36px, 4.2vw, 54px); font-weight: 500; letter-spacing: -.03em; }
.stats span { color: var(--muted); font-size: 15px; }

/* ---------- process marquee ---------- */
.process { overflow: hidden; }
.marquee { margin-top: 60px; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.track { display: flex; gap: 22px; width: max-content; padding: 10px 0 30px; }
.card { width: 300px; min-height: 330px; background: var(--card); border-radius: var(--r); padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card h4 { font-size: 21px; margin: 22px 0 10px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.ico { height: 120px; border-radius: 20px; background: var(--bg); position: relative; overflow: hidden; }
.ico::before, .ico::after { content: ""; position: absolute; }
.i1::before { left: 30px; top: 26px; width: 70px; height: 70px; border-radius: 10px; border: 3px solid var(--ink); }
.i1::after { left: 46px; top: 46px; width: 120px; height: 6px; border-radius: 6px; background: var(--green); box-shadow: 0 16px 0 var(--line), 0 32px 0 var(--line); }
.i2::before { left: 24px; right: 24px; bottom: 26px; height: 60px; background: linear-gradient(90deg, var(--green) 0 12%, transparent 12% 18%, var(--red) 18% 30%, transparent 30% 36%, var(--green) 36% 52%, transparent 52% 58%, var(--green) 58% 76%, transparent 76% 82%, var(--red) 82% 92%, transparent 92%); clip-path: polygon(0 60%, 12% 30%, 18% 80%, 30% 55%, 36% 20%, 52% 10%, 58% 40%, 76% 0, 82% 50%, 92% 30%, 100% 100%, 0 100%); }
.i3::before { left: 40px; top: 30px; width: 60px; height: 60px; border-radius: 50%; border: 3px solid var(--ink); }
.i3::after { left: 78px; top: 30px; width: 60px; height: 60px; border-radius: 50%; border: 3px solid var(--green); }
.i4::before { left: 50%; top: 22px; width: 80px; height: 80px; margin-left: -40px; border-radius: 12px; background: var(--card); border: 3px solid var(--ink); }
.i4::after { left: 50%; top: 44px; width: 40px; height: 5px; margin-left: -20px; background: var(--red); box-shadow: 0 14px 0 var(--line), 0 28px 0 var(--line); border-radius: 4px; }
.i5::before { left: 24px; right: 24px; top: 60px; height: 3px; background: var(--ink); }
.i5::after { left: 30px; top: 24px; width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 40px 20px 0 var(--cyan), 80px 8px 0 var(--amber), 120px 30px 0 var(--green), 160px 14px 0 var(--red); }
.i6::before { left: 36px; top: 30px; width: 60px; height: 60px; border-radius: 14px; background: var(--navy); }
.i6::after { left: 80px; top: 44px; width: 60px; height: 60px; border-radius: 14px; border: 3px dashed var(--green); }
.i7::before { left: 50%; top: 18px; margin-left: -60px; border-left: 60px solid transparent; border-right: 60px solid transparent; border-top: 84px solid var(--ink); opacity: .9; }
.i7::after { left: 50%; top: 82px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--green); }
.i8 { background: var(--navy) url(assets/mark.png) center / 64px no-repeat; }

/* ---------- risk school slider ---------- */
.school { overflow: hidden; }
.slider { margin-top: 56px; cursor: grab; user-select: none; }
.slider:active { cursor: grabbing; }
.slides { display: flex; gap: 22px; width: max-content; padding: 0 calc(50vw - 160px) 20px; will-change: transform; }
.slides img { width: 320px; height: 400px; object-fit: cover; border-radius: 22px; box-shadow: 0 24px 50px rgba(7, 11, 20, .18); pointer-events: none; }

/* ---------- early access ---------- */
.access { display: grid; place-items: center; }
.access-card {
  width: min(760px, 100%); text-align: center; background: var(--navy); color: #e8eefc; border-radius: 40px; padding: 64px 40px;
  box-shadow: 0 40px 80px rgba(7, 11, 20, .25); position: relative; overflow: hidden;
}
.access-card::before { content: ""; position: absolute; inset: -40% -20% auto; height: 70%; background: radial-gradient(closest-side, rgba(34, 227, 155, .22), transparent); pointer-events: none; }
.access-card .eyebrow { color: var(--neon); }
.access-card h2 { color: #fff; }
.checks { list-style: none; padding: 0; margin: 28px auto 0; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.checks li { padding: 10px 16px; border-radius: 999px; background: rgba(34, 227, 155, .1); color: var(--neon); font-weight: 600; font-size: 15px; }
.checks li::before { content: "✓ "; }
.fee { margin: 34px auto; max-width: 460px; padding: 26px; border-radius: 24px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .04); }
.fee p { margin: 0; color: #8a98b5; }
.fee b { display: block; font-size: 54px; font-weight: 600; color: #fff; margin: 6px 0; }
.fee b small { font-size: 16px; color: #8a98b5; font-weight: 500; }
.fee em { font-style: normal; color: var(--neon); font-weight: 700; }
.access .pill { background: var(--neon); color: var(--navy); }
.access .pill:hover { background: #48f0b0; }
.fine { margin: 22px auto 0; max-width: 520px; color: #8a98b5; font-size: 13px; }

/* ---------- faq ---------- */
.qa { max-width: 780px; margin: 50px auto 0; display: grid; gap: 12px; }
details { background: var(--card); border-radius: 22px; padding: 4px 26px; box-shadow: 0 8px 24px rgba(18, 22, 31, .05); }
summary { cursor: pointer; list-style: none; padding: 20px 0; font-weight: 600; font-size: 18px; display: flex; justify-content: space-between; gap: 20px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--green); transition: transform .3s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0 0 20px; color: var(--muted); }

/* ---------- footer ---------- */
.foot { padding: 70px 24px 40px; max-width: 1240px; margin: 0 auto; border-top: 1px solid var(--line); }
.foot-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.risk-note { color: var(--muted); font-size: 13px; max-width: 760px; margin: 28px 0; }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; font-size: 14px; color: var(--ink-2); }
.foot-links span { margin-left: auto; color: var(--muted); }

/* ---------- reveal base (JS animates) ---------- */
.js .reveal { opacity: 0; transform: translateY(40px); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .links, .nav > .pill-sm { display: none; }
  .burger { display: flex; }
  .nav.open .links { display: flex; position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg); border-radius: 24px; padding: 10px 20px; box-shadow: var(--shadow); }
  .nav.open .links a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .hero { grid-template-columns: 1fr; padding-top: 130px; text-align: center; }
  .lead { margin-left: auto; margin-right: auto; }
  .cta-row { justify-content: center; }
  .hero-stage { height: 600px; }
  .compare { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 34px 20px; }
  .float { display: none; }
  .dome-wrap { height: 380px; }
  .dome { height: 300px; max-width: 96%; }
}
@media (max-width: 560px) {
  section { padding: 90px 16px; }
  .nav { inset: 10px 10px auto; }
  .hero h1 { font-size: 42px; }
  .phone { width: 250px; height: 510px; }
  .families span { width: 104px; height: 104px; font-size: 12px; }
  .access-card { padding: 48px 22px; border-radius: 30px; }
  .fee b { font-size: 44px; }
  .foot-links span { margin-left: 0; width: 100%; }
  .slides img { width: 260px; height: 325px; }
  .slides { padding: 0 calc(50vw - 130px) 20px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* layout-check / reduced-motion mode: everything visible in its final state */
.static .reveal { opacity: 1 !important; transform: none !important; }
.static .funnel { height: auto; }
.static .funnel .sticky { position: relative; height: auto; }
.static .slides { padding-left: 24px; }
.static .hero { min-height: 820px; }
.static .hero-stage { height: 640px; }
@media (max-width: 560px) {
  .hero .chips { display: none; }
  .hero-stage { height: 560px; }
  .funnel-chips .chip { font-size: 11px; padding: 6px 10px; }
}

/* support link */
.foot-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.pill-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.pill-ghost:hover { background: var(--ink); color: #fff; }
a.inline { color: var(--green); font-weight: 600; border-bottom: 1px solid currentColor; }
a.inline.light { color: var(--neon); }
