/* onaiqur brand: Ink #15171B · Paper #F7F5EF · Accent #0E8F82 (on dark #3FD1BE) · Sora SemiBold for the wordmark */
:root {
  --ink: #15171b;
  --paper: #f7f5ef;
  --bg: var(--paper);
  --bg-alt: #efece3;
  --surface: #ffffff;
  --text: var(--ink);
  --muted: #5b5f66;
  --line: #e4dfd2;
  --accent: #0e8f82;
  --accent-strong: #0b7a6f;
  --accent-soft: #dcefeb;
  --on-accent: #ffffff;
  --mark: var(--ink);
  --panel: #15171b;
  --panel-text: #f2f0ea;
  --panel-muted: #9a9ea6;
  --panel-raised: #20232a;
  --panel-accent: #3fd1be;
  --radius: 16px;
  --shadow: 0 1px 2px rgb(21 23 27 / 5%), 0 10px 30px rgb(21 23 27 / 7%);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --brand: "Sora", "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111317;
    --bg-alt: #15171b;
    --surface: #1b1e23;
    --text: #f2f0ea;
    --muted: #a3a7ae;
    --line: #2a2e35;
    --accent: #3fd1be;
    --accent-strong: #6fe0d1;
    --accent-soft: #143430;
    --on-accent: #0b2420;
    --mark: #f2f0ea;
    --panel: #0b0c0f;
    --panel-raised: #1a1d22;
    --shadow: 0 1px 2px rgb(0 0 0 / 35%), 0 14px 36px rgb(0 0 0 / 40%);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.035em; margin: 0 0 0.5em; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.7rem); }
h2 { font-size: clamp(1.7rem, 3.3vw, 2.5rem); }
h3 { font-size: 1.12rem; font-weight: 650; letter-spacing: -0.015em; }
p { margin: 0 0 1em; }
code { font-family: var(--mono); font-size: 0.9em; }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }

/* brand */
.mark { width: 22px; height: 30px; color: var(--mark); flex: none; }
.wordmark { font-family: var(--brand); font-weight: 600; letter-spacing: -0.035em; color: var(--text); }
.wordmark b { font-weight: 600; color: var(--accent); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 1.35rem; line-height: 1; }
.logo .mark { margin-top: 6px; }

/* header: floating card, as in the brand sheet */
.top { position: sticky; top: 0; z-index: 10; padding: 12px 0; background: linear-gradient(var(--bg) 60%, transparent); }
.top-in {
  display: flex; align-items: center; gap: 24px; height: 60px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  padding: 0 12px 0 18px; box-shadow: var(--shadow);
  max-width: calc(1140px - 56px);
}
@media (max-width: 719px) { .top { padding: 8px 8px; } .top-in { padding: 0 8px 0 14px; } }
.nav { display: none; gap: 24px; margin-left: 16px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; font-weight: 500; }
.nav a:hover { color: var(--text); }
@media (min-width: 900px) { .nav { display: flex; } }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.lang { font-size: 0.78rem; font-weight: 600; color: var(--muted); border: 1px solid var(--line); border-radius: 8px; padding: 3px 8px; }
@media (max-width: 420px) { .top-actions .lang { display: none; } }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.8em 1.4em; border-radius: 12px; border: 1px solid transparent;
  background: var(--accent); color: var(--on-accent);
  font: 600 1rem var(--font); text-decoration: none; cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}
.btn:hover { background: var(--accent-strong); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 40%, transparent); outline-offset: 2px;
}
.btn-small { padding: 0.55em 1em; font-size: 0.9rem; border-radius: 10px; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* hero */
.hero { padding: 48px 0 48px; overflow: hidden; }
.hero-in { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .hero { padding: 72px 0 72px; } .hero-in { grid-template-columns: 1.05fr 1fr; gap: 56px; } }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; color: var(--accent); background: var(--accent-soft); font-weight: 600; font-size: 0.85rem; padding: 5px 12px; border-radius: 999px; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: currentColor; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 36em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 16px; }
.note { color: var(--muted); font-size: 0.92rem; }
.kz { color: var(--text); font-weight: 500; }

/* chat mock — ink panel */
.chat {
  margin: 0; background: var(--panel); color: var(--panel-text);
  border-radius: 22px; padding: 0 0 20px; box-shadow: var(--shadow);
  font-size: 0.95rem; min-width: 0; position: relative;
}
.chat::after { /* the q-tail: accent bar under the panel */
  content: ""; position: absolute; right: 28px; bottom: -18px; width: 44px; height: 54px;
  background: var(--panel-accent); border-radius: 10px; z-index: -1;
}
.chat-bar { display: flex; align-items: center; gap: 6px; padding: 14px 18px; border-bottom: 1px solid rgb(255 255 255 / 7%); margin-bottom: 16px; }
.chat-bar span { width: 10px; height: 10px; border-radius: 3px; background: #2c3038; }
.chat-bar b { margin-left: 8px; font-weight: 600; color: var(--panel-muted); font-size: 0.85rem; }
.msg { margin: 0 16px 14px; padding: 12px 14px; border-radius: 14px; overflow-wrap: anywhere; }
.msg p { margin: 0 0 0.5em; }
.msg p:last-child { margin: 0; }
.msg-user { background: var(--panel-raised); margin-left: 15%; }
.msg-ai { background: rgb(255 255 255 / 3%); border: 1px solid rgb(255 255 255 / 6%); }
.tools { list-style: none; padding: 0; margin: 0 0 0.6em; display: grid; gap: 6px; font-size: 0.88rem; color: var(--panel-muted); }
.tools li { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.tools code { color: var(--panel-accent); background: rgb(63 209 190 / 10%); padding: 1px 6px; border-radius: 6px; }
.tools i { font-style: normal; color: var(--panel-accent); margin-left: auto; }
.fake-link { color: var(--panel-accent); text-decoration: underline; cursor: default; }
.typing { display: flex; gap: 5px; margin: 0 16px; padding: 8px 14px; }
.typing span { width: 7px; height: 7px; border-radius: 2px; background: var(--panel-muted); animation: blink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: 0.2s; }
.typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .typing span { animation: none; } html { scroll-behavior: auto; } }

/* clients strip */
.clients-in {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 28px;
  padding: 18px 16px; color: var(--muted); font-size: 0.95rem;
  border-block: 1px solid var(--line);
}
.clients-in b { color: var(--text); font-weight: 600; }

/* sections */
.section { padding: 76px 0; }
.section-alt { background: var(--bg-alt); }
.section-lead { color: var(--muted); max-width: 40em; font-size: 1.05rem; }

.steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 18px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; min-width: 0; }
.steps p { color: var(--muted); }
.step-n { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--ink); color: var(--paper); font: 600 1rem var(--brand); margin-bottom: 14px; position: relative; }
.step-n::after { content: ""; position: absolute; right: -5px; bottom: -6px; width: 9px; height: 16px; border-radius: 3px; background: var(--accent); }
@media (prefers-color-scheme: dark) { .step-n { background: var(--paper); color: var(--ink); } }
.code { margin: 0; background: var(--panel); color: var(--panel-text); border-radius: 12px; padding: 12px 14px; font-size: 0.8rem; white-space: pre-wrap; overflow-wrap: anywhere; }

.grid { display: grid; gap: 18px; margin-top: 32px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.card, .who { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card p, .who p { color: var(--muted); margin: 0; }
.card h3::before { content: ""; display: block; width: 12px; height: 22px; border-radius: 4px; background: var(--accent); margin-bottom: 14px; }

/* pricing */
.plans { display: grid; gap: 18px; margin-top: 32px; }
@media (min-width: 860px) { .plans { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }
.plan { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; }
.plan-main { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.badge { position: absolute; top: -12px; left: 24px; background: var(--accent); color: var(--on-accent); font-size: 0.78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.price { color: var(--muted); margin: 0 0 16px; }
.price b { font: 600 2.5rem var(--brand); color: var(--text); letter-spacing: -0.04em; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.plan li::before { content: "✓"; color: var(--accent); font-weight: 700; margin-right: 8px; }
.trial { margin-top: 24px; color: var(--muted); }

/* faq */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); margin: 12px 0 0; }

/* waitlist — ink block */
.section-cta { background: var(--panel); color: var(--panel-text); }
.section-cta h2 { color: var(--panel-text); }
.cta-in { display: grid; gap: 32px; }
@media (min-width: 900px) { .cta-in { grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; } }
.cta-in > div p { color: var(--panel-muted); font-size: 1.05rem; }
.form { background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 20px; padding: 24px; display: grid; gap: 14px; box-shadow: var(--shadow); min-width: 0; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 0.92rem; }
.opt { color: var(--muted); font-weight: 400; }
.form input[type="email"], .form input[type="text"], .form select, .form textarea {
  width: 100%; font: 400 1rem var(--font); color: var(--text);
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 0.7em 0.85em;
}
.form textarea { resize: vertical; }
.check { display: flex !important; gap: 10px !important; align-items: flex-start; font-weight: 400 !important; color: var(--muted); }
.check input { margin-top: 0.3em; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { margin: 0; min-height: 1.4em; font-size: 0.95rem; }
.form-msg.ok { color: var(--accent); }
.form-msg.err { color: #c43d3d; }
@media (prefers-color-scheme: dark) { .form-msg.err { color: #ff8a8a; } }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: 0.9rem; }
.foot-in { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
.foot a { color: var(--muted); }
.foot .wordmark { font-size: 1.05rem; }

/* legal page */
.legal { max-width: 760px; padding-block: 40px 72px; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.legal h2 { font-size: 1.25rem; margin-top: 1.8em; }
.legal p, .legal li { color: var(--muted); }

/* why + comparison */
.compare-wrap { margin-top: 40px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.compare-wrap:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 40%, transparent); outline-offset: 2px; }
.compare { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 0.93rem; }
.compare th, .compare td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare thead th { font-weight: 650; font-size: 0.92rem; vertical-align: bottom; }
.compare thead small { display: block; font-weight: 400; color: var(--muted); font-size: 0.8rem; margin-top: 2px; }
.compare tbody th { font-weight: 500; color: var(--text); width: 26%; }
.compare .us { background: var(--accent-soft); }
.compare thead .us { font-size: 1.15rem; }
.compare .yes, .compare .no, .compare .part { display: inline-flex; gap: 6px; align-items: baseline; }
.compare .yes { color: var(--text); font-weight: 600; }
.compare .yes::before { content: "✓"; color: var(--accent); font-weight: 700; }
.compare .no { color: var(--muted); }
.compare .no::before { content: "✕"; color: #c0574f; }
.compare .part { color: var(--muted); }
.compare .part::before { content: "~"; color: #b7862a; font-weight: 700; }
.compare-note { color: var(--muted); font-size: 0.85rem; margin-top: 12px; }
