/* KiyaBot marketing site. No external fonts, libraries or trackers. */
:root {
  --bg: #ffffff;
  --bg-soft: #f6f7fb;
  --card: #ffffff;
  --fg: #0f172a;
  --muted: #5b6475;
  --border: #e4e7ef;
  --brand: #4f46e5;
  --brand-2: #06b6d4;
  --brand-ink: #ffffff;
  --code-bg: #0f172a;
  --code-fg: #e2e8f0;
  --shadow: 0 10px 30px rgba(15, 23, 42, .08);
  --radius: 16px;
  --max: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1020;
    --bg-soft: #11172b;
    --card: #141b31;
    --fg: #e8ebf4;
    --muted: #9aa3b8;
    --border: #232b45;
    --brand: #818cf8;
    --brand-ink: #0b1020;
    --code-bg: #060a16;
    --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }   /* component display rules must not override the hidden attribute */
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.grad {
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 16px;
  border: 1px solid transparent; cursor: pointer; transition: transform .12s, box-shadow .12s, background .12s;
  font-family: inherit;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: var(--brand-ink); box-shadow: 0 8px 20px rgba(79, 70, 229, .3); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--border); }
.btn-ghost:hover { background: var(--bg-soft); }
.btn-sm { padding: 8px 16px; font-size: 15px; }

/* Header */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--fg); }
.logo:hover { text-decoration: none; }
.logo img { width: 32px; height: 32px; }
.nav-links { display: flex; gap: 22px; margin-left: 12px; }
.nav-links a { color: var(--muted); font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--fg); text-decoration: none; }
.nav-cta { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; color: var(--fg); cursor: pointer; }

/* Hero */
.hero { padding: 72px 0 56px; background:
  radial-gradient(900px 400px at 85% -10%, color-mix(in srgb, var(--brand-2) 18%, transparent), transparent),
  radial-gradient(700px 380px at 0% 0%, color-mix(in srgb, var(--brand) 16%, transparent), transparent); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
/* Grid items default to min-width:auto, so wide content (code blocks) would stretch the page on phones. */
.hero-grid > *, .install > *, .grid-3 > *, .steps > *, .pricing-card > * { min-width: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600;
  color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, transparent);
  padding: 6px 12px; border-radius: 999px;
}
h1 { font-size: clamp(36px, 5.2vw, 58px); line-height: 1.08; letter-spacing: -.02em; margin: 18px 0 18px; }
.lead { font-size: 19px; color: var(--muted); max-width: 560px; margin: 0 0 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--muted); }
.hero-trial { margin: 14px 0 0; font-size: 14px; font-weight: 600; color: var(--muted); }

/* Hero chat mock */
.chat-mock {
  background: var(--card); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow);
  overflow: hidden; max-width: 420px; margin-left: auto;
}
.chat-head { background: linear-gradient(90deg, var(--brand), var(--brand-2)); color: #fff; padding: 14px 18px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.chat-head small { display: block; font-weight: 400; opacity: .85; font-size: 12px; }
.chat-dot { width: 10px; height: 10px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 3px rgba(255,255,255,.3); }
.chat-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; background: var(--bg-soft); }
.bubble { max-width: 85%; padding: 10px 14px; border-radius: 16px; font-size: 15px; line-height: 1.45; }
.bubble.bot { background: var(--card); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.bubble.user { align-self: flex-end; background: var(--brand); color: var(--brand-ink); border-bottom-right-radius: 4px; }
.bubble .src { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); }
.chat-input { border-top: 1px solid var(--border); padding: 12px 16px; color: var(--muted); font-size: 14px; background: var(--card); }

/* Sections */
section { padding: 84px 0; }
section.soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 700px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.15; letter-spacing: -.01em; margin: 10px 0 12px; }
.kicker { font-size: 14px; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: .08em; }

/* Logos strip */
.platforms { padding: 26px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.platforms .wrap { display: flex; flex-wrap: wrap; gap: 14px 34px; justify-content: center; align-items: center; color: var(--muted); font-weight: 600; font-size: 15px; }
.platforms span.label { font-weight: 500; }

/* Clients ("Trusted by") */
section.clients { padding: 40px 0 8px; }
.client-logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 22px 44px; margin-top: 18px; }
.client-logos a, .client-logos span.client { display: flex; align-items: center; color: var(--muted); font-weight: 700; font-size: 18px; }
.client-logos a:hover { text-decoration: none; color: var(--fg); }
.client-logos img { height: 40px; max-width: 160px; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .2s, opacity .2s; }
.client-logos a:hover img, .client-logos span.client:hover img { filter: none; opacity: 1; }
@media (prefers-color-scheme: dark) { .client-logos img { background: rgba(255,255,255,.9); border-radius: 8px; padding: 4px 8px; } }

/* Feature grid */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px;
  box-shadow: 0 1px 0 rgba(0,0,0,.02);
}
.card h3 { margin: 14px 0 8px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand);
}
.icon svg { width: 24px; height: 24px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding-top: 58px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 24px; left: 26px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; font-weight: 700; font-size: 15px;
}

/* Install code */
.install { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: center; }
.install ul { padding-left: 20px; color: var(--muted); }
.install li { margin: 6px 0; }
.tabs { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.tab { background: var(--card); border: 1px solid var(--border); color: var(--muted); padding: 7px 14px; border-radius: 999px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.tab[aria-selected="true"] { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
pre.code {
  margin: 0; background: var(--code-bg); color: var(--code-fg); border-radius: 14px; padding: 20px;
  font: 14px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-x: auto; white-space: pre;
}
pre.code .c { color: #7c8aa5; }
pre.code .s { color: #86efac; }
pre.code .k { color: #93c5fd; }

/* Pricing */
.pricing-card { max-width: 760px; margin: 0 auto; display: grid; grid-template-columns: 1.2fr .8fr; gap: 0; padding: 0; overflow: hidden; }
.pricing-card .left { padding: 34px; }
.pricing-card .right { padding: 34px; background: linear-gradient(160deg, var(--brand), var(--brand-2)); color: #fff; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.pricing-card .right h3 { margin: 0; font-size: 26px; }
.pricing-card .right p { margin: 0; opacity: .9; }
.pricing-card .right .btn { background: #fff; color: #312e81; align-self: flex-start; }
.check { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.check li { display: flex; gap: 10px; align-items: flex-start; }
.check li::before { content: "✓"; color: var(--brand); font-weight: 800; flex: none; }

/* Pricing plans (from the admin panel) */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px 24px 24px; min-width: 0; }
.plan.featured { border: 2px solid var(--brand); box-shadow: 0 16px 40px color-mix(in srgb, var(--brand) 22%, transparent); }
.plan-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); white-space: nowrap;
  background: var(--brand); color: var(--brand-ink); font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.plan-name { font-size: 14px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.plan-price { font-size: 38px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; margin-top: 10px; overflow-wrap: anywhere; }
.plan-price.long { font-size: 28px; }
.plan-save { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 700; color: #15803d; background: #dcfce7; padding: 2px 10px; border-radius: 999px; align-self: flex-start; }
.period-toggle { display: flex; width: max-content; margin: 0 auto 34px; background: var(--card); border: 1px solid var(--border); border-radius: 999px; padding: 4px; }
.period-toggle button { border: 0; background: none; color: var(--muted); font: inherit; font-weight: 600; font-size: 15px; padding: 8px 18px; border-radius: 999px; cursor: pointer; }
.period-toggle button span { font-size: 12px; color: #15803d; margin-left: 4px; }
.period-toggle button.sel { background: var(--brand); color: var(--brand-ink); }
.period-toggle button.sel span { color: inherit; opacity: .9; }
.plan-period { color: var(--muted); font-size: 15px; margin-top: 2px; }
.plan-tagline { color: var(--muted); font-size: 15px; margin: 14px 0 0; }
.plan .check { margin: 18px 0 22px; font-size: 15px; }
.plan-cta { margin-top: auto; width: 100%; }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
details { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 4px 20px; }
summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--brand); font-size: 22px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin: 0 0 16px; color: var(--muted); }

/* CTA band + contact */
.cta-band { text-align: center; }
.cta-box {
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; border-radius: 24px;
  padding: 56px 24px; box-shadow: var(--shadow);
}
.cta-box h2 { font-size: clamp(26px, 3.4vw, 38px); margin: 0 0 12px; }
.cta-box p { margin: 0 auto 26px; max-width: 560px; opacity: .92; }
.cta-box .btn-primary { background: #fff; color: #312e81; box-shadow: none; }
.cta-box .btn-ghost { color: #fff; border-color: rgba(255,255,255,.5); }
.cta-box .btn-ghost:hover { background: rgba(255,255,255,.12); }

/* Footer */
footer.site { padding: 36px 0; border-top: 1px solid var(--border); color: var(--muted); font-size: 15px; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
footer.site nav { display: flex; gap: 20px; margin-left: auto; flex-wrap: wrap; }
footer.site a { color: var(--muted); }

/* Legal pages */
.legal { max-width: 760px; padding: 56px 20px 80px; }
.legal h1 { font-size: 38px; }
.legal h2 { font-size: 22px; margin-top: 34px; }
.legal p, .legal li { color: var(--muted); }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid, .install { grid-template-columns: 1fr; }
  .chat-mock { margin: 0 auto; }
  .grid-3, .steps { grid-template-columns: 1fr 1fr; }
  .pricing-card { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav-links, .nav-cta { display: none; }
  .menu-btn { display: block; }
  header.site.open .nav { flex-wrap: wrap; height: auto; padding: 14px 0; }
  header.site.open .nav-links, header.site.open .nav-cta { display: flex; flex-direction: column; width: 100%; margin: 6px 0 0; gap: 12px; }
  header.site.open .nav-cta { flex-direction: row; }
  .grid-3, .steps { grid-template-columns: 1fr; }
  section { padding: 60px 0; }
  .hero { padding: 48px 0 40px; }
  footer.site nav { margin-left: 0; }
}
