/* King AI website. Plain CSS, no build step. Fonts are self-hosted (SIL OFL), no outside requests. */
/* Type matches the Aditor portal email templates: one system sans stack, no web fonts. */

:root {
  /* Midnight court: inky blue-violet grounds, champagne gold for the crown, royal violet for light. */
  --bg: oklch(13.5% 0.022 278);
  --bg-2: oklch(16.5% 0.028 280);
  --card: oklch(19% 0.03 281);
  --card-hi: oklch(23% 0.036 282);
  --line: oklch(100% 0 0 / 0.08);
  --line-hi: oklch(100% 0 0 / 0.16);
  --text: oklch(96.5% 0.008 285);
  --muted: oklch(72% 0.025 282);
  --faint: oklch(56% 0.028 282);
  --gold: oklch(84% 0.125 84);
  --gold-deep: oklch(70% 0.13 70);
  --gold-ink: oklch(20% 0.03 70);
  --royal: oklch(60% 0.19 292);
  --royal-soft: oklch(60% 0.19 292 / 0.18);
  --grad-royal: linear-gradient(170deg, oklch(27% 0.14 292), oklch(16% 0.06 286));
  --ok: oklch(78% 0.15 155);
  --warn: oklch(72% 0.17 30);

  --grad-gold: linear-gradient(176deg, oklch(95% 0.07 92) 0%, oklch(85% 0.13 84) 45%, oklch(70% 0.13 68) 100%);
  --shadow-gold: 0 10px 40px -12px oklch(84% 0.125 84 / 0.55);

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto, sans-serif;
  --r: 12px;
  --r-sm: 12px;
  --r-btn: 8px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 6rem; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-sans); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ol, ul { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--gold); color: var(--gold-ink); }

/* layout + type */
.wrap { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 1.5rem; }
.narrow { max-width: 48rem; }
.section { padding: 7.5rem 0; position: relative; }
.display { font-family: var(--font-sans); font-weight: 700; letter-spacing: -0.035em; line-height: 1.04; text-wrap: balance; }
.h2 { font-size: clamp(2rem, 4.4vw, 3.25rem); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-sans); font-size: .75rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--gold);
}
.lede { color: var(--muted); font-size: 1.125rem; max-width: 38rem; text-wrap: pretty; }
.muted { color: var(--muted); }
.gold { background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.link { color: var(--gold); text-decoration: underline; text-decoration-color: oklch(84% 0.125 84 / 0.35); text-underline-offset: 4px; }
.link:hover { text-decoration-color: var(--gold); }
.head { display: grid; gap: 1.1rem; margin-bottom: 3.5rem; }
.head.center { justify-items: center; text-align: center; }
.head.center .lede { margin: 0 auto; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  height: 3.25rem; padding: 0 1.6rem; border-radius: var(--r-btn);
  font-weight: 600; font-size: 1rem; letter-spacing: -0.01em; white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--grad-gold); color: var(--gold-ink); box-shadow: var(--shadow-gold), inset 0 1px 0 oklch(100% 0 0 / .45); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 16px 48px -12px oklch(84% 0.125 84 / 0.7), inset 0 1px 0 oklch(100% 0 0 / .45); }
.btn-ghost { border: 1px solid var(--line-hi); background: oklch(100% 0 0 / .03); }
.btn-ghost:hover { background: oklch(100% 0 0 / .07); border-color: oklch(100% 0 0 / .28); }
.btn-sm { height: 2.5rem; padding: 0 1.1rem; font-size: .9rem; }
.btn-block { width: 100%; }
.btn[aria-disabled="true"] { opacity: .5; pointer-events: none; box-shadow: none; }
.btn svg { width: 1.1em; height: 1.1em; }

/* nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; padding: .9rem 0; transition: background-color .25s ease, border-color .25s ease; border-bottom: 1px solid transparent; }
.nav.scrolled { background: oklch(13.5% 0.022 278 / .78); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--font-sans); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.03em; }
.brand svg { width: auto; height: 1.35rem; flex: none; }
.brand span { line-height: 1; position: relative; top: .12em; }
.brand b { font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: .25rem; }
.nav-links a:not(.btn) { padding: .5rem .85rem; border-radius: 8px; color: var(--muted); font-size: .95rem; transition: color .15s, background-color .15s; }
.nav-links a:not(.btn):hover, .nav-links a[aria-current="page"] { color: var(--text); background: oklch(100% 0 0 / .05); }
.nav-links .btn { margin-left: .6rem; }
.menu-btn { display: none; width: 2.75rem; height: 2.75rem; border-radius: var(--r-btn); border: 1px solid var(--line-hi); align-items: center; justify-content: center; }
.menu-btn svg { width: 1.2rem; height: 1.2rem; }
@media (max-width: 860px) {
  .menu-btn { display: inline-flex; }
  .nav-links { position: absolute; top: calc(100% + .25rem); left: 1rem; right: 1rem; flex-direction: column; align-items: stretch; padding: .75rem;
    background: var(--card); border: 1px solid var(--line-hi); border-radius: var(--r); box-shadow: 0 30px 60px -20px #000; display: none; }
  .nav.open .nav-links { display: flex; }
  .nav-links a:not(.btn) { padding: .8rem 1rem; }
  .nav-links .btn { margin: .4rem 0 0; }
}

/* hero */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; padding: 9rem 0 6rem; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-bg::before { /* royal light from above */
  content: ""; position: absolute; inset: -20% -10% auto; height: 90%;
  background:
    radial-gradient(50% 55% at 50% 30%, oklch(60% 0.19 292 / .34), transparent 70%),
    radial-gradient(30% 35% at 78% 62%, oklch(84% 0.125 84 / .13), transparent 70%),
    radial-gradient(28% 30% at 18% 70%, oklch(60% 0.19 292 / .16), transparent 70%);
  filter: blur(10px);
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 4rem; align-items: center; }
.hero-copy { display: grid; gap: 1.75rem; justify-items: start; }
.hero h1 { font-size: clamp(2.75rem, 6.6vw, 5.4rem); }
.hero .lede { font-size: 1.2rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.trust { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; color: var(--faint); font-size: .9rem; }
.trust span { display: inline-flex; align-items: center; gap: .45rem; }
.trust svg { width: 1rem; height: 1rem; color: var(--gold); }

/* hero visual: phone playing a gameplay loop */
.hero-visual { position: relative; display: grid; place-items: center; }
.phone { position: relative; width: min(18rem, 78%); aspect-ratio: 9 / 19.5; border-radius: 3rem; padding: .55rem;
  background: linear-gradient(145deg, oklch(42% 0.015 280), oklch(20% 0.01 280) 30%, oklch(14% 0.01 280) 65%, oklch(36% 0.015 280));
  box-shadow: 0 0 0 1px oklch(100% 0 0 / .14), inset 0 0 0 1.5px oklch(100% 0 0 / .08), inset 0 0 0 6px oklch(8% 0.005 280),
    0 60px 120px -40px #000, 0 30px 60px -30px oklch(0% 0 0 / .8), 0 0 140px -40px oklch(60% 0.19 292 / .55);
  transform: perspective(1400px) rotateY(-14deg) rotateX(4deg) rotateZ(1deg); }
.phone .btn-side { position: absolute; width: 3px; border-radius: 2px; background: linear-gradient(90deg, oklch(30% 0.01 280), oklch(48% 0.015 280)); }
.phone .vol-up { left: -3px; top: 20%; height: 9%; } .phone .vol-down { left: -3px; top: 31%; height: 9%; } .phone .power { right: -3px; top: 25%; height: 13%; }
.phone .screen { position: relative; height: 100%; border-radius: 2.5rem; overflow: hidden; background: #000; }
.phone .clip { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.phone .placeholder { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 1rem; text-align: center;
  background: radial-gradient(80% 50% at 50% 30%, oklch(40% 0.17 292 / .6), transparent 70%), var(--grad-royal); color: oklch(85% 0.05 292); font-size: .95rem; }
.phone .placeholder small { color: oklch(68% 0.05 292); font-size: .75rem; }
.phone .play { width: 3.6rem; height: 3.6rem; border-radius: 50%; display: grid; place-items: center; background: var(--grad-gold); color: var(--gold-ink); box-shadow: 0 10px 30px -8px oklch(84% 0.125 84 / .6); }
.phone .play svg { width: 1.4rem; height: 1.4rem; margin-left: 2px; }
.phone .island { position: absolute; z-index: 3; top: .7rem; left: 50%; transform: translateX(-50%); width: 30%; height: 1.55rem; border-radius: 999px; background: #000; }
.phone .glare { position: absolute; z-index: 2; inset: 0; pointer-events: none; background: linear-gradient(115deg, oklch(100% 0 0 / .12) 0%, oklch(100% 0 0 / .03) 30%, transparent 45%); }
.live-chip { position: absolute; z-index: 4; right: calc(50% - 13.5rem); bottom: 9%; display: inline-flex; align-items: center; gap: .55rem; padding: .6rem 1rem; border-radius: var(--r-sm);
  background: oklch(19% 0.03 281 / .92); border: 1px solid var(--line-hi); backdrop-filter: blur(12px); box-shadow: 0 20px 40px -16px #000; font-size: .88rem; font-weight: 500; }
.live-chip i { width: .5rem; height: .5rem; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px oklch(78% 0.15 155 / .18); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
@media (max-width: 520px) { .live-chip { right: .5rem; } }


/* pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; gap: 1.5rem; padding: 2rem; border-radius: var(--r); background: var(--bg-2); border: 1px solid var(--line); }
.plan.featured { background: var(--grad-royal); border-color: oklch(55% 0.16 292 / .4);
  box-shadow: 0 40px 90px -35px oklch(55% 0.2 292 / .75), inset 0 1px 0 oklch(100% 0 0 / .18); }
.plan.featured .price span { color: oklch(85% 0.05 292); }
.plan .tag { position: absolute; top: -0.8rem; left: 2rem; padding: .25rem .75rem; border-radius: 999px; background: var(--grad-gold); color: var(--gold-ink); font-family: var(--font-sans); font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.plan h3 { font-family: var(--font-sans); font-weight: 600; font-size: 1.5rem; letter-spacing: -0.025em; margin-top: .35rem; }
.price { display: flex; align-items: baseline; gap: .5rem; }
.price strong { font-family: var(--font-sans); font-weight: 600; font-size: 3.25rem; letter-spacing: -0.04em; line-height: 1; }
.price span { color: var(--muted); font-size: .9rem; }
.plan p.note { color: var(--muted); font-size: .95rem; }
.ticks { display: grid; gap: .7rem; flex: 1; align-content: start; font-size: .98rem; }
.ticks li { display: grid; grid-template-columns: 1.25rem 1fr; gap: .65rem; align-items: start; }
.ticks svg { width: 1.1rem; height: 1.1rem; margin-top: .22rem; color: var(--gold); }
.fine { margin-top: 2rem; text-align: center; color: var(--faint); font-size: .9rem; display: grid; gap: .25rem; }
.paused { margin: 2rem auto 0; max-width: 36rem; text-align: center; padding: 1rem 1.25rem; border-radius: var(--r-sm); border: 1px solid oklch(72% 0.17 30 / .4); background: oklch(72% 0.17 30 / .08); }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; max-width: 28rem; margin: 0 auto; } }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; position: relative; }
.steps::before { content: ""; position: absolute; top: 2.25rem; left: 12%; right: 12%; height: 1px; z-index: 0;
  background: linear-gradient(90deg, transparent, oklch(84% 0.125 84 / .6) 15%, oklch(60% 0.19 292 / .6) 85%, transparent); }
.step { position: relative; z-index: 1; display: grid; align-content: start; justify-items: center; text-align: center; gap: .7rem; padding: 0 1.25rem 2rem; }
.step .ico { width: 4.5rem; height: 4.5rem; border-radius: 18px; display: grid; place-items: center; margin-bottom: .5rem;
  background: var(--grad-royal); border: 1px solid oklch(55% 0.16 292 / .4); box-shadow: inset 0 1px 0 oklch(100% 0 0 / .14); color: var(--gold);
  transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s; }
.step .ico { position: relative; }
.step .ico svg { width: 1.9rem; height: 1.9rem; }
.step .ico .n { position: absolute; top: -.5rem; left: -.5rem; width: 1.45rem; height: 1.45rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--grad-gold); color: var(--gold-ink); font-size: .75rem; font-weight: 700; box-shadow: 0 0 0 3px var(--bg); }
.step:hover .ico { transform: translateY(-4px) rotate(-3deg); box-shadow: 0 18px 40px -14px oklch(60% 0.19 292 / .7); }
.step h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.015em; }
.step p { color: var(--muted); font-size: .98rem; max-width: 18rem; }
.step h3 { white-space: nowrap; }
details.more { margin-top: .1rem; font-size: .9rem; color: var(--muted); max-width: 18rem; }
details.more summary { cursor: pointer; list-style: none; color: var(--gold); font-weight: 500; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::after { content: " +"; }
details.more[open] summary::after { content: " −"; }
details.more p { margin-top: .5rem; font-size: .88rem; }
details.more b { color: var(--text); }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 1.25rem; } .steps::before { display: none; } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } }

/* faq / details */
.faq { display: grid; gap: .6rem; }
details.qa { border-radius: var(--r-sm); background: var(--bg-2); border: 1px solid var(--line); transition: border-color .2s, background-color .2s; }
details.qa[open] { border-color: var(--line-hi); background: var(--card); }
details.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.15rem 1.35rem; font-weight: 500; font-size: 1.02rem; }
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary::after { content: ""; flex: none; width: 1.6rem; height: 1.6rem; border-radius: 50%; border: 1px solid var(--line-hi);
  background: linear-gradient(var(--gold), var(--gold)) center/9px 1.5px no-repeat, linear-gradient(var(--gold), var(--gold)) center/1.5px 9px no-repeat; transition: transform .25s ease; }
details.qa[open] summary::after { transform: rotate(45deg); }
details.qa .answer { padding: 0 1.35rem 1.3rem; color: var(--muted); }
.answer ol { padding-left: 1.25rem; display: grid; gap: .45rem; }
.answer a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.answer b, .answer strong { color: var(--text); font-weight: 600; }

/* FAQ: big numbered questions */
.faq-big { border-top: 1px solid var(--line-hi); }
details.qa-big { border-bottom: 1px solid var(--line-hi); }
details.qa-big summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 3.5rem 1fr auto; align-items: baseline; gap: 1rem; padding: 1.6rem 0;
  font-size: clamp(1.2rem, 2.4vw, 1.6rem); font-weight: 600; letter-spacing: -0.02em; transition: color .15s; }
details.qa-big summary::-webkit-details-marker { display: none; }
details.qa-big summary::after { content: "+"; color: var(--gold); font-weight: 400; transition: transform .25s; }
details.qa-big[open] summary::after { transform: rotate(45deg); }
details.qa-big summary:hover { color: var(--gold); }
details.qa-big .num { font-size: .9rem; color: var(--gold); font-weight: 500; }
details.qa-big .answer { padding: 0 0 1.75rem 4.5rem; color: var(--muted); max-width: 42rem; }

/* closing section */
.tight { letter-spacing: -0.05em; }
.cta-split { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.75rem; padding: 4.5rem 2rem; max-width: 52rem; margin: 0 auto; border-radius: 20px;
  background: var(--grad-royal); border: 1px solid oklch(55% 0.16 292 / .4); box-shadow: 0 40px 90px -35px oklch(55% 0.2 292 / .6), inset 0 1px 0 oklch(100% 0 0 / .14); }
.cta-split .lede { margin-top: .75rem; color: oklch(82% 0.04 292); }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
@media (max-width: 600px) { .cta-split { padding: 2rem; } }

/* help page closing box */
.help-cta { margin-top: 4rem; padding: 3.5rem 1.5rem; border-radius: 20px; text-align: center; display: grid; justify-items: center; gap: 1.25rem;
  background: radial-gradient(60% 90% at 50% 0%, oklch(60% 0.19 292 / .3), transparent 70%), var(--bg-2); border: 1px solid var(--line-hi); }

/* footer */
.footer { padding: 3rem 0 3.5rem; color: var(--faint); font-size: .9rem; margin-top: 7.5rem; }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; align-items: center; }
.footer nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer nav a:hover { color: var(--text); }
.footer .brand { font-size: 1rem; color: var(--text); }

/* inner pages */
.page { padding: 9.5rem 0 0; }
.page-head { display: grid; gap: 1rem; margin-bottom: 3rem; }
.page-head h1 { font-size: clamp(2.4rem, 5vw, 3.75rem); }
.panel { padding: 1.75rem; border-radius: var(--r); background: var(--bg-2); border: 1px solid var(--line); }
.panel + .panel { margin-top: 1.25rem; }
.panel h2 { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; margin-bottom: .5rem; }
.notice { padding: 1rem 1.25rem; border-radius: var(--r-sm); border: 1px solid oklch(84% 0.125 84 / .35); background: oklch(84% 0.125 84 / .07); color: var(--text); }
.notice.warn { border-color: oklch(72% 0.17 30 / .45); background: oklch(72% 0.17 30 / .08); }
.field { display: flex; gap: .6rem; margin-top: 1rem; }
.field input { flex: 1; min-width: 0; height: 3.25rem; padding: 0 1.1rem; border-radius: var(--r-btn); border: 1px solid var(--line-hi); background: var(--bg); font-family: var(--font-sans); letter-spacing: .05em; }
.field input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px oklch(84% 0.125 84 / .15); }
.server-line { display: flex; align-items: center; gap: .65rem; }
.server-line i { width: .6rem; height: .6rem; border-radius: 50%; background: var(--faint); }
.server-line.up i { background: var(--ok); box-shadow: 0 0 0 4px oklch(78% 0.15 155 / .18); }
.server-line.down i { background: var(--warn); }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 760px) { .cols { grid-template-columns: 1fr; } }
.section-title { font-family: var(--font-sans); font-weight: 600; font-size: 1.5rem; letter-spacing: -0.03em; margin: 3.5rem 0 1.25rem; }

/* buy */
.buy { display: grid; grid-template-columns: 1.1fr .9fr; gap: 1.25rem; align-items: start; }
@media (max-width: 860px) { .buy { grid-template-columns: 1fr; } }

/* motion */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .live-chip i { animation: none; }
}

[hidden] { display: none !important; }
