/* =====================================================================
   K3Bot — marketing site
   Layout: a dark navy spine (nav, hero, product, closing) with light
   working sections between, so the page reads as a product with rooms
   rather than one long gradient.
   ===================================================================== */

:root {
  /* Colour — founder's direction: midnight navy, electric purple,
     white/light grey, subtle lime. Neutrals are biased toward the navy
     so greys sit in the same world as the brand rather than beside it. */
  --navy-900: #080d26;
  --navy-800: #0d1533;
  --navy-700: #141e45;
  --navy-600: #1d2a5c;
  --ink:      #121428;
  --slate:    #51567a;
  --slate-2:  #7a7f9e;
  --line:     #e3e4ef;
  --paper:    #ffffff;
  --paper-2:  #f5f6fb;
  --violet:   #7c4dff;
  --violet-2: #9b7bff;
  --violet-d: #5b2fd6;
  --lime:     #c6f24e;
  --amber:    #f0a640;
  --teal:     #2dd4a7;

  /* Semantic, used by the feature-status chips. Separate from the
     accent on purpose: status must not read as branding. */
  --ok-bg:   #e7f8f1; --ok-fg:   #0c6b4e;
  --dev-bg:  #fdf1e0; --dev-fg:  #8a5208;
  --plan-bg: #eeeef6; --plan-fg: #51567a;

  /* Type */
  --display: "Sora", "Segoe UI", system-ui, sans-serif;
  --body:    "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, "Cascadia Mono", monospace;

  --radius: 14px;
  --maxw: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.15; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.1rem, 1.3rem + 3.4vw, 3.9rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 1.15rem + 1.8vw, 2.5rem); letter-spacing: -0.015em; }
h3 { font-size: 1.12rem; letter-spacing: -0.005em; }
p  { margin: 0; }
a  { color: inherit; }

:focus-visible { outline: 3px solid var(--violet-2); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.band { padding-block: clamp(56px, 7vw, 104px); }
.band--dark  { background: var(--navy-900); color: #e9ebf7; }
.band--deep  { background: var(--navy-800); color: #e9ebf7; }
.band--tint  { background: var(--paper-2); }
.band--dark h2, .band--deep h2, .band--dark h3, .band--deep h3 { color: #fff; }

.eyebrow {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--violet); margin: 0 0 14px;
}
.band--dark .eyebrow, .band--deep .eyebrow { color: var(--lime); }
.lede { font-size: 1.06rem; color: var(--slate); max-width: 62ch; margin-top: 14px; }
.band--dark .lede, .band--deep .lede { color: #a9b0d4; }

/* ── Skip link ───────────────────────────────────────────────────────── */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--violet); color: #fff; padding: 12px 18px; border-radius: 0 0 10px 0;
}
.skip:focus { left: 0; }

/* ── Navigation ──────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(8, 13, 38, .88);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.nav__in { display: flex; align-items: center; gap: 18px; min-height: 66px; }
.nav__links { display: flex; gap: 4px; margin-left: auto; }
.nav__links a {
  padding: 9px 13px; border-radius: 9px; font-size: .92rem; font-weight: 500;
  color: #c3c9e8; text-decoration: none;
}
.nav__links a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.nav__links a[aria-current="page"] { color: #fff; background: rgba(124, 77, 255, .22); }
.nav__cta { display: flex; gap: 10px; align-items: center; }
.nav__toggle {
  display: none; margin-left: auto; background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14); color: #fff;
  width: 42px; height: 42px; border-radius: 10px; cursor: pointer; font-size: 1.1rem;
}

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font-family: var(--display); font-weight: 700; font-size: 1.16rem; letter-spacing: -0.02em; }
.brand svg { display: block; }

@media (max-width: 900px) {
  .nav__toggle { display: block; }
  .nav__links, .nav__cta { display: none; }
  .nav--open .nav__links {
    display: flex; flex-direction: column; gap: 2px;
    width: 100%; order: 3; padding: 6px 0 14px; margin-left: 0;
  }
  .nav--open .nav__cta { display: flex; order: 4; width: 100%; padding-bottom: 16px; }
  .nav--open .nav__cta .btn { flex: 1; justify-content: center; }
  .nav__in { flex-wrap: wrap; }
}

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 10px; border: 1px solid transparent;
  font-family: var(--body); font-size: .95rem; font-weight: 700;
  text-decoration: none; cursor: pointer; transition: transform .12s ease, background .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--violet); color: #fff; }
.btn--primary:hover { background: var(--violet-d); }
.btn--ghost { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.2); }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--light { background: #fff; color: var(--navy-900); }
.btn--light:hover { background: #ece9ff; }
.btn--outline { background: transparent; color: var(--navy-900); border-color: var(--line); }
.btn--outline:hover { border-color: var(--violet); color: var(--violet); }
.btn--sm { padding: 9px 15px; font-size: .88rem; }

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero { background: var(--navy-900); color: #fff; position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: auto -10% -60% 30%; height: 520px;
  background: radial-gradient(closest-side, rgba(124,77,255,.26), transparent 70%);
  pointer-events: none;
}
.hero__in { position: relative; z-index: 1; display: grid; gap: clamp(32px, 4vw, 52px); grid-template-columns: 1fr; padding-block: clamp(44px, 6vw, 84px) clamp(56px, 7vw, 96px); }
@media (min-width: 1000px) { .hero__in { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); align-items: center; } }
.hero h1 { color: #fff; }
.hero__sub { margin-top: 18px; font-size: 1.08rem; color: #aab1d6; max-width: 54ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__note { margin-top: 18px; font-size: .84rem; color: #7f87b3; }

.pill {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px;
  padding: 6px 13px 6px 8px; border-radius: 999px;
  background: rgba(198, 242, 78, .12); border: 1px solid rgba(198, 242, 78, .32);
  color: var(--lime); font-size: .8rem; font-weight: 600;
}
.pill b { background: var(--lime); color: var(--navy-900); border-radius: 999px; padding: 2px 8px; font-size: .72rem; font-weight: 800; }

/* ── Product preview (hand-built, no screenshot) ─────────────────────── */
.shot {
  background: #0f1738; border: 1px solid rgba(255,255,255,.1); border-radius: 16px;
  box-shadow: 0 30px 70px -28px rgba(0,0,0,.8); overflow: hidden; min-width: 0;
}
.shot__bar { display: flex; align-items: center; gap: 8px; padding: 11px 14px; border-bottom: 1px solid rgba(255,255,255,.08); background: #0b1230; }
.shot__dot { width: 9px; height: 9px; border-radius: 50%; background: #2b3561; }
.shot__name { margin-left: 8px; font-family: var(--mono); font-size: .72rem; color: #7f87b3; }
.shot__body { display: grid; grid-template-columns: 1fr; }
@media (min-width: 640px) { .shot__body { grid-template-columns: 196px minmax(0, 1fr); } }
.shot__list { border-right: 1px solid rgba(255,255,255,.07); padding: 10px; display: grid; gap: 6px; align-content: start; }
.shot__tabs { display: flex; gap: 4px; margin-bottom: 4px; }
.shot__tab { font-size: .68rem; padding: 4px 8px; border-radius: 6px; color: #8089b5; background: rgba(255,255,255,.04); }
.shot__tab--on { background: var(--violet); color: #fff; font-weight: 700; }
.conv { padding: 9px 10px; border-radius: 9px; cursor: default; }
.conv--on { background: rgba(124,77,255,.18); border: 1px solid rgba(124,77,255,.4); }
.conv__top { display: flex; justify-content: space-between; gap: 6px; align-items: baseline; }
.conv__name { font-size: .78rem; font-weight: 700; color: #e9ebf7; }
.conv__time { font-family: var(--mono); font-size: .62rem; color: #6d76a3; }
.conv__msg { font-size: .7rem; color: #8089b5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv__badge { display: inline-block; margin-top: 5px; font-size: .6rem; font-weight: 700; padding: 2px 6px; border-radius: 5px; }
.badge--new { background: var(--lime); color: #17310a; }
.badge--you { background: rgba(45,212,167,.18); color: var(--teal); }
.badge--wait { background: rgba(240,166,64,.18); color: var(--amber); }

.shot__thread { padding: 12px; display: grid; gap: 9px; align-content: start; min-width: 0; }
.thread__head { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; align-items: center; padding-bottom: 9px; border-bottom: 1px solid rgba(255,255,255,.07); }
.thread__who { font-size: .82rem; font-weight: 700; color: #fff; }
.thread__meta { font-family: var(--mono); font-size: .64rem; color: #7f87b3; }
.assign { display: inline-flex; align-items: center; gap: 6px; font-size: .66rem; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); padding: 4px 9px; border-radius: 999px; color: #c3c9e8; }
.assign i { width: 16px; height: 16px; border-radius: 50%; background: var(--violet); color: #fff; display: grid; place-items: center; font-style: normal; font-size: .56rem; font-weight: 800; }
.bubble { max-width: 84%; padding: 8px 11px; border-radius: 11px; font-size: .76rem; line-height: 1.45; }
.bubble--in  { background: #18214a; color: #d7dcf2; border-bottom-left-radius: 3px; }
.bubble--out { background: var(--violet); color: #fff; margin-left: auto; border-bottom-right-radius: 3px; }
.bubble__t { display: block; margin-top: 4px; font-family: var(--mono); font-size: .58rem; opacity: .65; }

.shot__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: rgba(255,255,255,.07); border-top: 1px solid rgba(255,255,255,.07); }
.stat { background: #0f1738; padding: 10px 12px; }
.stat__n { font-family: var(--display); font-size: 1.12rem; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.stat__l { font-size: .62rem; color: #7f87b3; text-transform: uppercase; letter-spacing: .07em; }

/* ── Generic grids and cards ─────────────────────────────────────────── */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); }
.grid--2 { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; min-width: 0; }
.band--dark .card, .band--deep .card { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); color: #d7dcf2; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--slate); font-size: .94rem; }
.band--dark .card p, .band--deep .card p { color: #a9b0d4; }
.card__ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: #efeaff; color: var(--violet); margin-bottom: 14px; }
.band--dark .card__ico, .band--deep .card__ico { background: rgba(124,77,255,.2); color: var(--violet-2); }

/* ── Status chips ────────────────────────────────────────────────────── */
.chip {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 12px;
  font-size: .68rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 6px;
}
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip--ok   { background: var(--ok-bg);   color: var(--ok-fg); }
.chip--dev  { background: var(--dev-bg);  color: var(--dev-fg); }
.chip--plan { background: var(--plan-bg); color: var(--plan-fg); }
.band--dark .chip--ok   { background: rgba(45,212,167,.16);  color: #5fe3bd; }
.band--dark .chip--dev  { background: rgba(240,166,64,.16);  color: #f5bd75; }
.band--dark .chip--plan { background: rgba(255,255,255,.08); color: #a9b0d4; }

.legend { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 22px; font-size: .86rem; color: var(--slate); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 9px; height: 9px; border-radius: 50%; font-style: normal; }

/* ── Steps ───────────────────────────────────────────────────────────── */
.steps { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); counter-reset: s; }
.step { position: relative; padding-top: 10px; }
.step__n {
  font-family: var(--mono); font-size: .76rem; font-weight: 700; color: var(--violet);
  border: 1px solid var(--line); border-radius: 8px; padding: 3px 9px; display: inline-block; margin-bottom: 12px;
}
.band--dark .step__n { color: var(--lime); border-color: rgba(255,255,255,.18); }

/* ── Pricing ─────────────────────────────────────────────────────────── */
.toggle { display: inline-flex; gap: 3px; padding: 4px; background: var(--paper-2); border: 1px solid var(--line); border-radius: 11px; margin-top: 22px; }
.toggle button {
  border: 0; background: transparent; font-family: var(--body); font-weight: 700; font-size: .88rem;
  padding: 9px 17px; border-radius: 8px; cursor: pointer; color: var(--slate);
}
.toggle button[aria-pressed="true"] { background: var(--navy-900); color: #fff; }
.toggle em { font-style: normal; font-size: .72rem; color: var(--ok-fg); background: var(--ok-bg); padding: 2px 7px; border-radius: 5px; margin-left: 6px; }

.plans { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-top: 32px; align-items: start; }
.plan { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 26px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.plan--hot { border-color: var(--violet); box-shadow: 0 18px 44px -26px rgba(124,77,255,.6); position: relative; }
.plan__tag { position: absolute; top: -12px; left: 26px; background: var(--violet); color: #fff; font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 4px 11px; border-radius: 999px; }
.plan h3 { font-size: 1.26rem; }
.plan__price { font-family: var(--display); font-size: 2.15rem; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.plan__per { font-size: .86rem; color: var(--slate); font-weight: 500; font-family: var(--body); }
.plan__alt { font-size: .8rem; color: var(--slate-2); }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.plan li { font-size: .92rem; color: var(--slate); padding-left: 25px; position: relative; }
.plan li::before { content: "✓"; position: absolute; left: 0; top: -1px; color: var(--violet); font-weight: 800; }
.plan li.is-soon::before { content: "◦"; color: var(--amber); }

.notice {
  margin-top: 26px; padding: 16px 18px; border-radius: 12px;
  background: #fff8ec; border: 1px solid #f3dcb4; color: #6d4a0d; font-size: .9rem;
}
.notice strong { color: #4d340a; }

/* ── Tables (comparison, API) ────────────────────────────────────────── */
.scroller { overflow-x: auto; margin-top: 26px; border: 1px solid var(--line); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; min-width: 540px; font-size: .92rem; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); }
th { font-family: var(--display); font-size: .84rem; font-weight: 600; background: var(--paper-2); }
tbody tr:last-child td { border-bottom: 0; }
td code { font-family: var(--mono); font-size: .84rem; background: var(--paper-2); padding: 2px 6px; border-radius: 5px; }

/* ── FAQ ─────────────────────────────────────────────────────────────── */
.faq { display: grid; gap: 10px; margin-top: 28px; }
details {
  border: 1px solid var(--line); border-radius: 12px; background: var(--paper); overflow: hidden;
}
summary {
  cursor: pointer; padding: 17px 20px; font-family: var(--display); font-weight: 600;
  font-size: 1rem; list-style: none; display: flex; justify-content: space-between; gap: 14px; align-items: center;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--mono); font-size: 1.3rem; color: var(--violet); line-height: 1; }
details[open] summary::after { content: "–"; }
details > div { padding: 0 20px 18px; color: var(--slate); font-size: .95rem; }

/* ── Form ────────────────────────────────────────────────────────────── */
.form { display: grid; gap: 15px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.field { display: grid; gap: 6px; min-width: 0; }
.field--wide { grid-column: 1 / -1; }
.field label { font-size: .84rem; font-weight: 700; color: var(--ink); }
.field .hint { font-size: .76rem; color: var(--slate-2); }
.field input, .field select, .field textarea {
  font-family: var(--body); font-size: .95rem; padding: 11px 13px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink);
  width: 100%; min-width: 0;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--violet); outline: none; box-shadow: 0 0 0 3px rgba(124,77,255,.16); }
.field textarea { resize: vertical; min-height: 84px; }
.field .err { font-size: .78rem; color: #b4232a; font-weight: 600; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #b4232a; }
.consent { grid-column: 1 / -1; display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--slate); }
.consent input { width: 18px; height: 18px; margin-top: 2px; flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.formmsg { grid-column: 1 / -1; padding: 15px 17px; border-radius: 11px; font-size: .92rem; }
.formmsg--ok  { background: var(--ok-bg); color: var(--ok-fg); border: 1px solid #b7e6d3; }
.formmsg--bad { background: #fdeaea; color: #8e1b21; border: 1px solid #f3c6c8; }

/* ── Footer ──────────────────────────────────────────────────────────── */
.foot { background: var(--navy-900); color: #8d95bd; padding-block: 54px 30px; font-size: .9rem; }
.foot a { color: #b9c0e0; text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot__cols { display: grid; gap: 30px; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); }
.foot h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: #fff; margin-bottom: 13px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot__base { margin-top: 38px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: .82rem; }

.soon { font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--amber); border: 1px solid rgba(240,166,64,.4); padding: 1px 6px; border-radius: 5px; margin-left: 6px; white-space: nowrap; }

/* ── Legal pages ─────────────────────────────────────────────────────── */
.legal { max-width: 74ch; }
.legal h3 { margin: 38px 0 10px; font-size: 1.22rem; }
.legal h3:first-of-type { margin-top: 0; }
.legal h4 { margin: 22px 0 6px; font-size: 1rem; color: var(--violet); }
.legal p { margin-bottom: 13px; color: var(--slate); }
.legal .scroller { margin: 18px 0 26px; }
.legal table { min-width: 460px; font-size: .88rem; }
.legal a { color: var(--violet); font-weight: 600; }
.bullets { margin: 0 0 16px; padding-left: 20px; color: var(--slate); display: grid; gap: 7px; }
.bullets li { padding-left: 2px; }

/* ── Contact row (WhatsApp first) ────────────────────────────────────── */
.contactrow { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 26px; }
.contactrow__alt { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .92rem; color: #a9b0d4; }
.contactrow__alt a { color: #fff; font-weight: 600; }
