/* King AI website. Dark, calm, one accent: the app's sun yellow. */

@font-face { font-family: "Bricolage"; font-weight: 800; font-display: swap; src: url("../fonts/BricolageGrotesque-ExtraBold.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 400; font-display: swap; src: url("../fonts/DMSans-Regular.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 500; font-display: swap; src: url("../fonts/DMSans-Medium.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 700; font-display: swap; src: url("../fonts/DMSans-Bold.woff2") format("woff2"); }

:root {
  --bg: #0b0b0f;
  --ink: #0f0f13;
  --card: #15151b;
  --card-2: #1c1c24;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #ffffff;
  --soft: #c9c9d6;
  --mist: #9a9aab;
  --sun: #ffd23f;
  --sun-deep: #c99e14;
  --tomato: #ff5a36;
  --mint: #2be3a0;
  --radius: 24px;
  --wrap: 1120px;
  --gutter: 24px;
  --display: "Bricolage", "Helvetica Neue", Arial, sans-serif;
  --body: "DM Sans", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background:
    radial-gradient(900px 600px at 85% -10%, rgba(255, 210, 63, 0.13), transparent 70%),
    radial-gradient(700px 500px at -10% 30%, rgba(255, 90, 54, 0.07), transparent 70%),
    var(--bg);
  background-repeat: no-repeat;
  color: var(--text);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; }
::selection { background: var(--sun); color: var(--ink); }
:focus-visible { outline: 2px solid var(--sun); outline-offset: 3px; border-radius: 8px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--sun); color: var(--ink); padding: 8px 14px; border-radius: 10px; z-index: 50; }
.skip:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(11, 11, 15, 0.72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.wordmark { display: inline-flex; align-items: center; gap: 4px; font: 800 21px/1 var(--display); letter-spacing: -0.01em; }
.wordmark .ai { background: var(--sun); color: var(--ink); font-size: 13px; padding: 3px 6px 4px; border-radius: 7px; transform: rotate(-4deg) translateY(-1px); }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { color: var(--soft); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav a:hover { color: var(--text); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: 999px;
  font: 700 15px/1 var(--body); text-decoration: none; white-space: nowrap;
  transition: transform 0.15s, background 0.15s;
}
.btn:active { transform: scale(0.97); }
.btn-sun { background: var(--sun); color: var(--ink); }
.btn-sun:hover { background: #ffdc5f; }
.btn-ghost { border: 1px solid var(--line-2); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.05); }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -0.025em; margin: 0; }
h1 { font-size: clamp(44px, 6.4vw, 78px); line-height: 1.0; }
h2 { font-size: clamp(32px, 4.2vw, 50px); line-height: 1.05; }
h3 { font-size: 21px; line-height: 1.2; letter-spacing: -0.01em; }
.sun { color: var(--sun); }
.lead { color: var(--soft); font-size: clamp(18px, 1.6vw, 20px); line-height: 1.55; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--soft); font-size: 14px; font-weight: 500;
  padding: 6px 12px 6px 8px; border: 1px solid var(--line-2); border-radius: 999px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(43, 227, 160, 0.15); }
.section { padding: 120px 0; }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head p { margin: 16px 0 0; }
.kicker { color: var(--sun); font-weight: 700; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 14px; display: block; }

/* ---------- Store buttons ---------- */
.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.store-apple img { height: 52px; width: auto; }
.store-soon {
  display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 18px;
  border: 1px dashed var(--line-2); border-radius: 12px; color: var(--mist); font-size: 14px; font-weight: 500;
}
.store-soon svg { width: 20px; height: 20px; opacity: 0.75; }
.store-soon b { color: var(--soft); font-weight: 700; }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero h1 { margin: 22px 0 22px; }
.hero .lead { max-width: 520px; margin: 0 0 34px; }
.hero-note { margin-top: 18px; color: var(--mist); font-size: 14px; }
.hero-art { position: relative; height: 640px; }

.phone {
  position: absolute; left: 50%; top: 0; width: 300px; transform: translateX(-50%);
  padding: 9px; border-radius: 52px; background: #22222a;
  box-shadow: 0 0 0 1px #34343f inset, 0 40px 90px rgba(0, 0, 0, 0.6);
}
.phone img { width: 100%; border-radius: 44px; aspect-ratio: 1008 / 2162; object-fit: cover; object-position: top; }
.float {
  position: absolute; width: 168px; border-radius: 20px; overflow: hidden;
  background: var(--card); border: 1px solid var(--line-2);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}
.float video, .float img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.float span {
  position: absolute; left: 10px; bottom: 10px; right: 10px;
  font-size: 12px; font-weight: 700; line-height: 1.3; color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
}
.float-a { left: 0; top: 86px; transform: rotate(-7deg); }
.float-b { right: 0; top: 330px; transform: rotate(6deg); }
.sticker {
  position: absolute; z-index: 3; padding: 8px 13px; border-radius: 12px;
  font: 800 15px/1 var(--display); color: var(--ink); background: var(--sun);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
}
.sticker-a { right: 34px; top: 54px; transform: rotate(7deg); }
.sticker-b { left: 36px; bottom: 74px; transform: rotate(-6deg); background: var(--mint); }

/* ---------- Showcase ---------- */
.showcase { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.clip { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.clip video, .clip img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; background: var(--card-2); }
.clip figcaption { padding: 18px 20px 22px; color: var(--soft); font-size: 15px; line-height: 1.5; }
.tag {
  display: inline-block; margin-bottom: 8px; padding: 3px 9px; border-radius: 999px;
  font-size: 12px; font-weight: 700; color: var(--ink); background: var(--sun);
}
.tag.photo { background: var(--mint); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { padding: 30px 28px 32px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 22px;
  border-radius: 12px; background: var(--sun); color: var(--ink); font: 800 19px/1 var(--display);
}
.step p { margin: 10px 0 0; color: var(--soft); font-size: 16px; }

/* ---------- Split features ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split + .split { margin-top: 120px; }
.split.flip .split-art { order: -1; }
.split p { color: var(--soft); margin: 18px 0 0; }
.split ul { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.split li { display: flex; gap: 12px; color: var(--soft); }
.split li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 3px; border-radius: 6px; background: rgba(255, 210, 63, 0.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23FFD23F' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }
.split-art {
  position: relative; display: grid; place-items: center; min-height: 560px;
  border-radius: 32px; overflow: hidden;
  background: radial-gradient(420px 300px at 50% 0%, rgba(255, 210, 63, 0.16), transparent 70%), var(--card);
  border: 1px solid var(--line);
}
.split-art .phone { position: relative; left: auto; transform: none; width: 270px; margin: 48px 0 -140px; }

/* ---------- Feature grid ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { padding: 28px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.card p { margin: 10px 0 0; color: var(--soft); font-size: 16px; }
.icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 20px; border-radius: 13px; background: rgba(255, 210, 63, 0.12); }
.icon svg { width: 22px; height: 22px; stroke: var(--sun); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Plans ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.plan { padding: 30px 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.plan.best { border-color: rgba(255, 210, 63, 0.45); background: linear-gradient(180deg, rgba(255, 210, 63, 0.08), transparent 60%), var(--card); }
.plan .label { color: var(--mist); font-size: 14px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.plan h3 { margin: 10px 0 0; font-size: 26px; }
.plan p { margin: 12px 0 0; color: var(--soft); font-size: 16px; }
.plans-note { margin-top: 22px; color: var(--mist); font-size: 14px; }

/* ---------- Safety ---------- */
.safety { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; padding: 56px; border-radius: 32px; background: var(--card); border: 1px solid var(--line); }
.safety ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.safety li { padding-left: 34px; position: relative; color: var(--soft); }
.safety li b { color: var(--text); font-weight: 700; display: block; }
.safety li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: rgba(43, 227, 160, 0.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%232BE3A0' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 24px 44px 24px 0; position: relative;
  font: 700 19px/1.35 var(--body);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 22px; height: 22px; margin-top: -11px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M5 12h14' stroke='%23FFD23F' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center / 22px no-repeat;
  transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p, .faq details ul { margin: -6px 0 24px; color: var(--soft); max-width: 700px; }

/* ---------- CTA ---------- */
.cta {
  text-align: center; padding: 88px 32px; border-radius: 36px;
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(255, 210, 63, 0.22), transparent 70%),
    var(--card);
  border: 1px solid var(--line);
}
.cta img.app-icon { width: 84px; height: 84px; border-radius: 20px; margin: 0 auto 26px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5); }
.cta p { margin: 16px auto 34px; max-width: 520px; }
.cta .stores { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 120px; padding: 64px 0 48px; border-top: 1px solid var(--line); color: var(--mist); font-size: 15px; }
.foot { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.foot h4 { margin: 0 0 14px; color: var(--text); font-size: 15px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot a { color: var(--mist); text-decoration: none; }
.foot a:hover { color: var(--text); }
.foot .about p { margin: 16px 0 0; max-width: 320px; }
.legal-line { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; }

/* ---------- Documents (privacy, terms, support) ---------- */
.doc { max-width: 780px; padding: 64px 0 0; }
.doc h1 { font-size: clamp(36px, 5vw, 54px); margin-bottom: 18px; }
.doc h2 { font-size: 26px; margin: 48px 0 14px; letter-spacing: -0.01em; }
.doc h3 { font-size: 19px; margin: 30px 0 10px; }
.doc p, .doc li { color: var(--soft); }
.doc strong { color: var(--text); }
.doc a { color: var(--sun); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 18px 0 26px; font-size: 15px; display: block; overflow-x: auto; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.doc th { color: var(--text); font-weight: 700; background: var(--card); }
.doc td { color: var(--soft); }
.doc td:first-child { color: var(--text); font-weight: 500; min-width: 140px; }
.doc .meta { color: var(--mist); font-size: 15px; }
.box { margin: 26px 0; padding: 24px 26px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); }
.box p:first-child, .box h3:first-child { margin-top: 0; }
.box p:last-child { margin-bottom: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { height: 600px; max-width: 520px; width: 100%; margin: 0 auto; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split.flip .split-art { order: 0; }
  .safety { grid-template-columns: 1fr; padding: 40px 32px; gap: 32px; }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot .about { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .nav { display: none; }
  .site-header .wrap { justify-content: space-between; }
  .section { padding: 84px 0; }
  .section-head { margin-bottom: 36px; }
  .showcase, .steps, .grid, .plans { grid-template-columns: 1fr; }
  .showcase { grid-auto-flow: column; grid-auto-columns: 78%; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; margin: 0 calc(-1 * var(--gutter)); padding-left: var(--gutter); padding-right: var(--gutter); scrollbar-width: none; }
  .showcase::-webkit-scrollbar { display: none; }
  .clip { scroll-snap-align: center; }
  .hero { padding-top: 40px; }
  .hero-art { height: 520px; }
  .phone { width: 250px; border-radius: 44px; padding: 8px; }
  .phone img { border-radius: 37px; }
  .float { width: 128px; border-radius: 16px; }
  .float-a { top: 70px; }
  .float-b { top: 270px; }
  .sticker-a { right: 6px; top: 30px; }
  .sticker-b { left: 4px; bottom: 60px; }
  .split + .split { margin-top: 84px; }
  .split-art { min-height: 480px; }
  .split-art .phone { width: 240px; }
  .cta { padding: 64px 22px; border-radius: 28px; }
  .foot { grid-template-columns: 1fr 1fr; gap: 32px; }
  .site-footer { margin-top: 84px; }
  .store-apple img, .store-soon { height: 48px; }
}
