/* Kliqzo styles. One file. Tokens first, no hard-coded colors inside components. */
:root {
  --bg: #0B0E14;
  --surface: #121620;
  --surface-2: #181D29;
  --line: #262C3A;
  --line-strong: #6B7487;
  --text: #F4F5F7;
  --muted: #A6ADBB;
  --brand: #8B7CFF;
  --brand-soft: rgba(139, 124, 255, .16);
  --cta: #E11D48;
  --cta-hover: #C81E4B;
  --cta-text: #FF4D7A;
  --light-bg: #F6F7FA;
  --light-surface: #FFFFFF;
  --light-text: #0B0E14;
  --light-muted: #4A5160;
  --light-line: #D9DDE5;
  --brand-on-light: #5B4BDB;
  --cta-text-on-light: #B91C45;
  --radius: 16px;
  --max: 1120px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; color: var(--muted); }
h1, h2, h3 { font-weight: 800; line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .5em; color: var(--text); }
h1 { font-size: clamp(2.2rem, 5.4vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.2rem; letter-spacing: -.01em; line-height: 1.3; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; color: var(--muted); }
li { margin-bottom: .45em; }
strong { color: var(--text); font-weight: 700; }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
section { padding: 88px 0; position: relative; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); margin-bottom: 16px; }
.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: #D5D9E0; max-width: 680px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* Buttons. CTA color is for CTAs only. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 14px 28px; border-radius: 999px; border: 0;
  background: var(--cta); color: #fff; font: 700 1rem/1.2 var(--font); text-decoration: none; cursor: pointer;
  box-shadow: 0 0 0 0 transparent, 0 10px 34px -10px var(--cta);
  transition: background-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { background: var(--cta-hover); transform: translateY(-1px); box-shadow: 0 12px 40px -8px var(--cta); }
.btn-sm { min-height: 44px; padding: 10px 20px; font-size: .95rem; }
.btn-alt { background: var(--surface-2); color: var(--text); border: 1px solid var(--line-strong); box-shadow: none; }
.btn-alt:hover { background: var(--surface); box-shadow: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(11, 14, 20, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 24px; min-height: 68px; flex-wrap: wrap; }
.logo { font-weight: 800; font-size: 1.45rem; letter-spacing: -.03em; text-decoration: none; color: var(--text); }
.logo .dot { color: var(--brand); }
.nav { display: flex; gap: 6px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: .95rem; padding: 12px 12px; border-radius: 8px; }
.nav a:hover { color: var(--text); }
.hdr-wa { color: var(--muted); font-size: .95rem; font-weight: 500; text-decoration: none; padding: 12px 6px; }
.hdr-wa:hover { color: var(--text); }
.bar .btn { flex: none; }

/* Hero */
.hero { padding: 96px 0 88px; overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: -260px; width: 900px; height: 900px; margin-left: -450px;
  background:
    radial-gradient(closest-side, rgba(255, 255, 255, .55), rgba(139, 124, 255, .55) 22%, rgba(91, 75, 219, .28) 48%, transparent 72%);
  filter: blur(60px); opacity: .55; pointer-events: none;
  animation: beam 9s ease-in-out infinite alternate;
}
.hero::after {
  content: ""; position: absolute; z-index: -1; left: 50%; top: -80px; width: 2px; height: 520px; margin-left: -1px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, .9), rgba(139, 124, 255, .5) 40%, transparent);
  filter: blur(6px); opacity: .5; pointer-events: none;
}
@keyframes beam { from { opacity: .4; transform: scale(.96); } to { opacity: .65; transform: scale(1.04); } }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 22px; }
.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.ticks li { margin: 0; font-size: .95rem; color: #D5D9E0; padding-left: 26px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 8px; border-left: 3px solid var(--brand); border-bottom: 3px solid var(--brand); transform: rotate(-45deg); }
.page-hero { padding: 72px 0 56px; overflow: hidden; isolation: isolate; }
.page-hero::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: -420px; width: 760px; height: 760px; margin-left: -380px;
  background: radial-gradient(closest-side, rgba(139, 124, 255, .45), rgba(91, 75, 219, .18) 55%, transparent 75%);
  filter: blur(50px); opacity: .6; pointer-events: none;
}

/* Breadcrumbs */
.crumbs { font-size: .9rem; margin-bottom: 22px; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li { margin: 0; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-strong); }
.crumbs a { color: var(--muted); }

/* Chat mockup (illustration) */
.mock { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px; box-shadow: 0 0 0 1px var(--brand-soft), 0 30px 80px -30px var(--brand); }
.mock-head { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); margin-bottom: 14px; gap: 12px; }
.bubble { background: var(--surface-2); border-radius: 14px 14px 14px 4px; padding: 12px 14px; font-size: .95rem; color: var(--text); margin-bottom: 10px; max-width: 92%; }
.bubble.me { background: var(--brand-soft); border-radius: 14px 14px 4px 14px; margin-left: auto; }
.mock-foot { font-size: .8rem; color: var(--muted); margin: 14px 0 0; }
.tag { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--brand-soft); color: var(--brand); padding: 3px 10px; border-radius: 999px; }

/* Bento grid and cards */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; margin-top: 40px; }
.card {
  --x: 50%; --y: 50%;
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; overflow: hidden;
  transition: transform .25s, border-color .25s;
}
.card::before {
  content: ""; position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .25s;
  background: radial-gradient(360px circle at var(--x) var(--y), var(--brand-soft), transparent 60%);
}
.card:hover { border-color: var(--brand); }
.card:hover::before { opacity: 1; }
.card > * { position: relative; }
.card p:last-child { margin-bottom: 0; }
.span-4 { grid-column: span 4; }
.span-6 { grid-column: span 6; }
.span-8 { grid-column: span 8; }
.card .num { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 10px; background: var(--brand-soft); color: var(--brand); font-weight: 800; margin-bottom: 14px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; counter-reset: s; }
.steps .card::after { counter-increment: s; content: "0" counter(s); position: absolute; right: 22px; top: 16px; font-weight: 800; font-size: 2rem; color: var(--line); }

/* Light section */
.light { background: var(--light-bg); color: var(--light-text); }
.light h2, .light h3, .light strong { color: var(--light-text); }
.light p, .light li, .light ul { color: var(--light-muted); }
.light .eyebrow { color: var(--brand-on-light); }
.light .card { background: var(--light-surface); border-color: var(--light-line); }
.light .card::before { background: radial-gradient(360px circle at var(--x) var(--y), rgba(91, 75, 219, .1), transparent 60%); }
.light .card:hover { border-color: var(--brand-on-light); }
.light a:not(.btn) { color: var(--cta-text-on-light); }
.light .ticks li { color: var(--light-muted); }
.light .ticks li::before { border-color: var(--brand-on-light); }

/* Two-column lists (fit / not fit) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 36px; }
.split h3 { margin-bottom: .7em; }
.mark { list-style: none; padding: 0; }
.mark li { padding-left: 28px; position: relative; }
.mark li::before { position: absolute; left: 0; top: 0; font-weight: 800; }
.mark.yes li::before { content: "+"; color: var(--brand); }
.mark.no li::before { content: "-"; color: var(--line-strong); }
.light .mark.yes li::before { color: var(--brand-on-light); }

/* Guarantee and callouts */
.callout { border: 1px solid var(--brand); background: var(--brand-soft); border-radius: var(--radius); padding: 28px; }
.callout h3 { margin-bottom: .4em; }
.callout p:last-child { margin-bottom: 0; }
.note { font-size: .9rem; color: var(--muted); }
.needs { display: inline-block; font-size: .8rem; font-weight: 700; color: var(--bg); background: #FFD166; padding: 2px 8px; border-radius: 6px; vertical-align: middle; }

/* Placeholders */
.placeholder { border: 2px dashed var(--line-strong); border-radius: var(--radius); padding: 36px 24px; text-align: center; background: var(--surface); }
.placeholder p { margin: 0 0 .6em; }
.video-ph { aspect-ratio: 16 / 9; display: flex; flex-direction: column; align-items: center; justify-content: center; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.08rem; padding: 18px 36px 18px 0; list-style: none; position: relative; color: var(--text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 14px; font-size: 1.6rem; color: var(--brand); font-weight: 400; }
.faq details[open] summary::after { content: "-"; }
.faq details p { padding-bottom: 14px; margin: 0; }
.light .faq details { border-color: var(--light-line); }
.light .faq summary { color: var(--light-text); }
.light .faq summary::after { color: var(--brand-on-light); }

/* CTA band */
.cta-band { text-align: center; background: var(--surface); border-top: 1px solid var(--line); overflow: hidden; isolation: isolate; }
.cta-band::before { content: ""; position: absolute; z-index: -1; left: 50%; bottom: -380px; width: 700px; height: 700px; margin-left: -350px; background: radial-gradient(closest-side, rgba(139, 124, 255, .4), transparent 70%); filter: blur(50px); }
.cta-band .lead { margin-left: auto; margin-right: auto; }
.cta-band .btn-row { justify-content: center; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 100px; font-size: .95rem; background: var(--bg); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer h2 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; font-weight: 700; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 4px; }
.site-footer a { color: var(--text); text-decoration: none; display: inline-block; padding: 6px 0; }
.site-footer a:hover { color: var(--brand); text-decoration: underline; }
.site-footer p { font-size: .95rem; }
.copy { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }

/* Sticky mobile CTA (leaves the right side free for the chat bubble) */
.sticky-cta { display: none; }

/* Prose pages (privacy) */
.prose h2 { font-size: 1.5rem; margin-top: 2em; }
.prose h3 { margin-top: 1.4em; }

/* Reveal (JS only) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .hero-grid, .split, .foot-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .span-4, .span-6, .span-8 { grid-column: span 12; }
  section { padding: 64px 0; }
  .hero { padding: 64px 0; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .bar { gap: 8px 12px; padding-top: 8px; padding-bottom: 4px; }
  .nav { order: 3; width: 100%; margin-left: 0; justify-content: space-between; }
  .hdr-wa { display: none; }
  .bar .btn { margin-left: auto; }
  .sticky-cta {
    display: flex; gap: 10px; position: fixed; left: 12px; bottom: 12px; z-index: 40;
    width: calc(100% - 96px);
  }
  .sticky-cta .btn { flex: 1; padding-left: 12px; padding-right: 12px; }
  .btn-row .btn { width: 100%; }
}
@media (hover: none), (pointer: coarse) { .card::before { display: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero::before { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .card, .btn, .card::before { transition: none; }
  .card::before { display: none; }
}
