/* Keyda Business marketing site + docs hub.
   Its own identity, deliberately distinct from the consumer keyda.in site
   (spec R2): lighter, calmer, enterprise-leaning — but sharing the product's
   indigo so the two read as one company. */

:root{
  --ink:#101425; --ink-2:#3d4560; --ink-3:#626b86; --line:#e6e9f2;
  --bg:#ffffff; --bg-2:#f7f8fc; --brand:#3b4ee0; --brand-2:#eef0ff;
  --ok:#0d9b6c; --r:12px; --r-lg:18px;
  --shadow:0 1px 2px rgba(16,20,37,.05), 0 12px 34px -18px rgba(16,20,37,.28);
  /* Kept for the few regions that are bound by READING WIDTH rather than by
     the page — long-form legal and the docs article column. Layout no longer
     uses it. */
  --wrap:1120px;
  /* The one gutter every full-width region shares — nav, sections, footer.
     Content used to sit in a 1120px band while the nav ran edge to edge
     (~425px of dead margin either side at 1920px); the first fix went too far
     the other way and the owner marked the margin they actually wanted on a
     screenshot: ~13.4% per side on a 1728px MacBook display. This linear ramp
     passes through that mark — ≈24px on a 390px phone, ≈122px at 1024,
     ≈230px at 1728, ≈260px at 1920 — so phones keep their content width
     while desktops get the airy margins the screenshot asked for. Capped so
     an ultrawide does not run away with it. */
  --gutter:clamp(24px,calc(15.4vw - 36px),280px);
}
*{box-sizing:border-box}
body{
  margin:0; background:var(--bg); color:var(--ink);
  font:16px/1.6 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  -webkit-font-smoothing:antialiased;
}
a{color:inherit;text-decoration:none}
h1,h2,h3,h4{margin:0;line-height:1.18;letter-spacing:-.02em;font-weight:700}
p{margin:0}
.dim{color:var(--ink-3)}
.tiny{font-size:12.5px}
.small{font-size:14px}
.wrap{margin:0 auto;padding:0 var(--gutter)}

/* ── nav ─────────────────────────────────────────────────────────────── */
.snav{
  position:sticky;top:0;z-index:40;display:flex;align-items:center;gap:22px;
  padding:14px var(--gutter);background:rgba(255,255,255,.86);backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}
.sbrand{display:flex;align-items:center;gap:9px;font-weight:800;letter-spacing:-.02em}
.sbrand .dot{
  width:26px;height:26px;border-radius:8px;background:var(--brand);color:#fff;
  display:grid;place-items:center;font-size:14px;font-weight:800;
}
.sbrand .sub{color:var(--ink-3);font-weight:600}
.slinks{display:flex;gap:22px;margin-left:14px;font-size:14.5px;font-weight:500;color:var(--ink-2)}
.slinks a:hover{color:var(--brand)}
.sactions{margin-left:auto;display:flex;align-items:center;gap:12px}
.sactions a{white-space:nowrap}
/* Hamburger — only exists below 880px; "Sign in" is duplicated into the
   menu there because the header's own ghost link is dropped at phone width. */
.navtoggle{display:none;width:40px;height:40px;border:1px solid var(--line);border-radius:10px;background:var(--bg);color:var(--ink-2);cursor:pointer;place-items:center;padding:0}
.navtoggle:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.slinks .mobile-only{display:none}
.ghost{font-size:14.5px;font-weight:600;color:var(--ink-2)}
.cta,.btn-lg{
  display:inline-block;background:var(--brand);color:#fff;font-weight:600;
  padding:9px 16px;border-radius:10px;font-size:14.5px;
}
.cta:hover{filter:brightness(1.07)}
.btn-lg{padding:13px 22px;font-size:15.5px;border-radius:12px}
.btn-quiet{
  display:inline-block;padding:13px 22px;border-radius:12px;font-size:15.5px;
  font-weight:600;border:1px solid var(--line);color:var(--ink-2);background:#fff;
}

/* ── sections ────────────────────────────────────────────────────────── */
section{padding:clamp(56px,6.2vw,104px) 0}
section.tint{background:var(--bg-2);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.eyebrow{
  font-size:12px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;
  color:var(--brand);margin-bottom:12px;
}
.hero{padding:clamp(60px,7vw,116px) 0 clamp(48px,5vw,84px)}
.hero h1{font-size:clamp(34px,4.6vw,62px);max-width:15ch}
.hero p.lede{margin-top:18px;font-size:clamp(17px,1.15vw,21px);color:var(--ink-2);max-width:54ch}
.hero .row{margin-top:30px;display:flex;gap:12px;flex-wrap:wrap;align-items:center}
.hero .assure{margin-top:16px;font-size:13.5px;color:var(--ink-3)}
/* A hero with NOTHING beside it — pricing, contact, the legal pages — where
   the copy is the whole row rather than one column of two. The two-column
   measure (15ch/54ch) was tuned against artwork on the right; on a full-width
   page with no artwork it left the right half of the screen empty and the
   headline broke over three short lines. Child combinator so the two-column
   hero on the home page keeps its narrower column. */
.hero > .wrap > h1{max-width:24ch}
.hero > .wrap > p.lede{max-width:72ch}
h2.sec{font-size:clamp(25px,2.6vw,40px);max-width:20ch}
p.seclede{margin-top:12px;color:var(--ink-2);max-width:62ch;font-size:16.5px}

/* ── cards / grids ───────────────────────────────────────────────────── */
.grid{display:grid;gap:18px;margin-top:34px}
/* Exactly two columns, not auto-fit. auto-fit with a 300px min fitted THREE
   across the 1120px wrap, so a four-card section rendered 3+1 and orphaned
   its last card on every desktop width above ~940px. */
.g2{grid-template-columns:repeat(2,minmax(0,1fr))}
@media (max-width:760px){.g2{grid-template-columns:1fr}}
.g3{grid-template-columns:repeat(auto-fit,minmax(258px,1fr))}
.g1{grid-template-columns:1fr}
.card{
  background:#fff;border:1px solid var(--line);border-radius:var(--r-lg);
  padding:24px;box-shadow:var(--shadow);
}
.card h3{font-size:17.5px;margin-bottom:8px}
.card p{color:var(--ink-2);font-size:15px}
.pcard{display:flex;flex-direction:column;gap:10px}
.pcard .badge{
  align-self:flex-start;background:var(--brand-2);color:var(--brand);
  font-size:11.5px;font-weight:700;padding:4px 9px;border-radius:99px;
  letter-spacing:.04em;text-transform:uppercase;
}
.soonbox{
  border:1px dashed var(--line);border-radius:var(--r-lg);padding:24px;
  display:grid;place-items:center;text-align:center;color:var(--ink-3);
  background:repeating-linear-gradient(45deg,#fbfcfe,#fbfcfe 10px,#f7f8fc 10px,#f7f8fc 20px);
}
.steps{counter-reset:s}
.step{display:flex;gap:16px;align-items:flex-start;padding:18px 0;border-bottom:1px solid var(--line)}
.step:last-child{border-bottom:0}
.step .n{
  flex:0 0 auto;width:30px;height:30px;border-radius:9px;background:var(--brand-2);
  color:var(--brand);display:grid;place-items:center;font-weight:700;font-size:14px;
}
.step h3{font-size:16.5px;margin-bottom:4px}
.step p{color:var(--ink-2);font-size:14.8px}

/* ── code ────────────────────────────────────────────────────────────── */
pre.code{
  margin:16px 0;background:#101425;color:#e8ebff;border-radius:12px;
  padding:16px 18px;overflow-x:auto;font-size:13px;line-height:1.55;
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
}
code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.92em}
.prose :not(pre) > code{background:var(--bg-2);border:1px solid var(--line);border-radius:6px;padding:1px 5px}

/* ── pricing ─────────────────────────────────────────────────────────── */
.tiers{display:grid;gap:18px;grid-template-columns:repeat(auto-fit,minmax(266px,1fr));margin-top:36px}
.tier{background:#fff;border:1px solid var(--line);border-radius:var(--r-lg);padding:26px;display:flex;flex-direction:column}
.tier.hi{border-color:var(--brand);box-shadow:0 0 0 3px var(--brand-2);position:relative}
.tier.hi::after{
  content:"Most popular";position:absolute;top:-11px;left:26px;background:var(--brand);
  color:#fff;font-size:11px;font-weight:700;padding:3px 10px;border-radius:99px;letter-spacing:.04em;
}
.tier .price{font-size:34px;font-weight:800;letter-spacing:-.03em;margin:12px 0 2px}
.tier .price span{font-size:14px;font-weight:600;color:var(--ink-3)}
.tier ul{list-style:none;margin:18px 0 24px;padding:0;display:grid;gap:9px;font-size:14.6px;color:var(--ink-2)}
/* flex, not a margin on the marker: a wrapped feature line used to start back
   under the tick instead of hanging with the text above it. */
.tier li{display:flex;gap:9px;align-items:flex-start}
.tier li::before{content:"✓";color:var(--ok);font-weight:700;flex:0 0 auto;line-height:1.5}
.tier .cta,.tier .btn-quiet{margin-top:auto;text-align:center}
.tablewrap{overflow-x:auto;margin:24px 0}
/* Scroll containers on a phone: the clipped edge is the only clue that
   there is more, and a cut-off "SCAL" column reads as broken. Say so. */
@media(max-width:520px){
  .tablewrap::before,.flowbox::before,.lineage::before{content:"Scroll sideways to see the rest \2192";display:block;font-size:12.5px;color:var(--ink-3);margin-bottom:8px}
}
table{width:100%;border-collapse:collapse;font-size:14.5px}
th,td{text-align:left;padding:11px 14px;border-bottom:1px solid var(--line)}
th{font-size:12px;letter-spacing:.05em;text-transform:uppercase;color:var(--ink-3)}

/* ── FAQ ─────────────────────────────────────────────────────────────── */
details.faq{border-bottom:1px solid var(--line);padding:16px 0}
details.faq summary{cursor:pointer;font-weight:600;font-size:16px;list-style:none}
details.faq summary::-webkit-details-marker{display:none}
details.faq summary::after{content:"+";float:right;color:var(--ink-3);font-weight:400}
details.faq[open] summary::after{content:"–"}
details.faq p{margin-top:10px;color:var(--ink-2);font-size:15px}

/* ── docs ────────────────────────────────────────────────────────────── */
.docwrap{margin:0 auto;display:grid;grid-template-columns:238px minmax(0,1fr);gap:clamp(28px,4vw,72px);padding:34px var(--gutter) 80px}
/* Centred in the column, not left-jammed: the sidebar holds the left gutter
   and the measure is capped for readability, so left-aligning the article
   pushed all the leftover width into one dead strip down the right. */
.docwrap .prose{max-width:78ch;margin-inline:auto}
.docnav{position:sticky;top:78px;align-self:start;max-height:calc(100vh - 100px);overflow:auto}
/* The sidebar is a <details> so a phone can fold it (it used to push the
   article 1.5 screens down); on desktop the summary is hidden and the build
   ships it open. */
.docmenu>summary{display:none}
.dgroup{margin-bottom:22px}
.dlabel{font-size:11.5px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-3);margin-bottom:9px}
.ditem{display:block;padding:6px 10px;margin-left:-10px;border-radius:8px;font-size:14.5px;color:var(--ink-2)}
.ditem:hover{background:var(--bg-2)}
.ditem.on{background:var(--brand-2);color:var(--brand);font-weight:600}
.docmain{min-width:0}
.prose h1{font-size:33px;margin-bottom:14px}
.prose h2{font-size:22px;margin:34px 0 12px;padding-top:6px}
.prose h3{font-size:17px;margin:24px 0 8px}
.prose p{margin:12px 0;color:var(--ink-2)}
.prose ul,.prose ol{margin:12px 0;padding-left:22px;color:var(--ink-2)}
.prose li{margin:6px 0}
.prose hr{border:0;border-top:1px solid var(--line);margin:32px 0}
.prose a{color:var(--brand);font-weight:500}
.note{
  background:var(--brand-2);border-left:3px solid var(--brand);border-radius:0 10px 10px 0;
  padding:13px 16px;margin:18px 0;font-size:14.8px;color:var(--ink-2);
}
.nextlink{display:inline-block;margin-top:42px;font-weight:600;color:var(--brand)}

/* ── footer ──────────────────────────────────────────────────────────── */
.sfoot{border-top:1px solid var(--line);background:var(--bg-2);padding:52px var(--gutter) 30px}
.fcols{display:grid;gap:26px;grid-template-columns:repeat(auto-fit,minmax(190px,1fr))}
.fcols h4{font-size:12.5px;letter-spacing:.06em;text-transform:uppercase;color:var(--ink-3);margin-bottom:12px}
.fcols a{display:block;font-size:14.5px;color:var(--ink-2);margin-bottom:8px}
.fcols a:hover{color:var(--brand)}
.soon{font-size:13.5px;color:var(--ink-3)}
.fbase{margin:34px 0 0;padding-top:18px;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap}

@media(max-width:880px){
  .snav{flex-wrap:wrap;gap:12px}
  /* One header row: brand, then the actions pushed right, then the toggle at
     the far edge. Without an order on .sactions it kept its default 0 and
     came BEFORE the toggle, which wrapped onto a row of its own. */
  .sactions{order:1;margin-left:auto}
  .navtoggle{display:grid;order:2;margin-left:0;flex:0 0 auto}
  .slinks{display:none;order:3;flex-basis:100%;flex-direction:column;gap:0;margin:4px 0 0;padding-top:6px;border-top:1px solid var(--line);font-size:15.5px}
  .snav.open .slinks{display:flex}
  .slinks a{padding:10px 0}
  .slinks .mobile-only{display:block}
  .docwrap{grid-template-columns:1fr;gap:20px}
  .docnav{position:static;max-height:none;border-bottom:1px solid var(--line);padding-bottom:14px}
  .docmenu>summary{display:block;cursor:pointer;font-weight:600;font-size:14.5px;padding:8px 0;color:var(--ink-2)}
  .docmenu[open]>summary{margin-bottom:12px}
  section{padding:52px 0}
}
@media(max-width:520px){
  .sactions .ghost{display:none}
  /* 342px of header on a 390px phone: brand + CTA + toggle only fit with the
     gaps closed up, the "Business" sub-label dropped and a compact CTA —
     otherwise the toggle wrapped onto a second row. */
  .snav{gap:10px}
  .sbrand .sub{display:none}
  .sactions{gap:8px}
  .sactions .cta{padding:9px 13px;font-size:13.5px}
}
/* The narrowest phones (320px) still wrapped the toggle: keep the logo, drop
   the wordmark — the link keeps its name via aria-label in nav.html. */
@media(max-width:360px){
  .sbrand{font-size:0;gap:0}
}

/* Brand mark. The lettermark `.dot` remains the fallback when logo.png is not
   deployed (see the inline onerror in the nav/footer partials). */
.sbrand .logo{width:28px;height:28px;border-radius:8px;object-fit:contain;display:block}

/* Legal pages: a narrow measure. Long-form terms are read start to finish by
   somebody's compliance team, and full-width lines make that genuinely harder
   than it needs to be. */
.wrap.legal{max-width:820px}
.legal .prose h2{scroll-margin-top:80px}
.legal .prose table{width:100%;border-collapse:collapse;margin:16px 0;font-size:14.5px}
.legal .prose th,.legal .prose td{border:1px solid var(--line);padding:9px 11px;text-align:left;vertical-align:top}
.legal .prose th{background:var(--bg-2);font-weight:650}
.legal h1{max-width:none}

/* ─────────────────────────────────────────────────────────────────────────
   Product imagery.

   Built from HTML + CSS + inline SVG rather than screenshots, on purpose:
   a screenshot of the dashboard goes stale the moment the UI moves, and
   this site has no image pipeline (the build is a copy + minify). These
   also stay sharp on any display and cost no extra request.
   ───────────────────────────────────────────────────────────────────────── */

/* Hero: copy left, product shot right. */
.herogrid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.06fr);gap:clamp(36px,4vw,76px);align-items:center}
@media (max-width:960px){.herogrid{grid-template-columns:1fr;gap:38px}}

/* A browser window containing a site with the widget open. */
.shot{position:relative}
.browser{border:1px solid var(--line);border-radius:var(--r-lg);background:var(--bg);box-shadow:var(--shadow);overflow:hidden}
.browser .bar{display:flex;align-items:center;gap:6px;padding:10px 12px;background:var(--bg-2);border-bottom:1px solid var(--line)}
.browser .dot{width:9px;height:9px;border-radius:50%;background:#d9dde9}
.browser .addr{margin-left:8px;flex:1;height:20px;border-radius:999px;background:var(--bg);border:1px solid var(--line);display:flex;align-items:center;padding:0 9px;font-size:11px;color:var(--ink-3)}
.browser .body{position:relative;height:392px;padding:16px;background:
  linear-gradient(var(--bg-2) 0 0) padding-box}
/* Skeleton of "your website" behind the widget — deliberately abstract so it
   reads as any shop, not a specific one. */
.sk{background:#e9ecf4;border-radius:6px}
.sk.t{height:9px;width:38%;margin-bottom:9px}
.sk.l{height:7px;width:70%;margin-bottom:7px}
.sk.l2{width:56%}
.sk.img{height:74px;width:100%;margin:14px 0 12px;background:linear-gradient(135deg,#e9ecf4,#f3f5fa)}
.sk.row{display:flex;gap:9px}
.sk.row>span{flex:1;height:44px;border-radius:6px;background:#eef0f6;display:block}

/* The widget itself, matching the real one's shape. */
.wdg{position:absolute;right:14px;bottom:14px;width:236px;border-radius:14px;background:var(--bg);border:1px solid var(--line);box-shadow:0 10px 30px -12px rgba(16,20,37,.4);overflow:hidden}
.wdg .hd{display:flex;align-items:center;gap:8px;padding:9px 11px;background:var(--brand);color:#fff}
.wdg .av{width:20px;height:20px;border-radius:50%;background:rgba(255,255,255,.24);display:grid;place-items:center;font-size:11px;font-weight:700}
.wdg .hd b{font-size:12.5px;font-weight:650}
.wdg .msgs{padding:11px;display:flex;flex-direction:column;gap:7px;background:var(--bg)}
.wdg .m{max-width:84%;padding:7px 10px;border-radius:12px;font-size:11.5px;line-height:1.45}
.wdg .m.u{align-self:flex-end;background:var(--brand);color:#fff;border-bottom-right-radius:4px}
.wdg .m.b{align-self:flex-start;background:var(--bg-2);color:var(--ink);border:1px solid var(--line);border-bottom-left-radius:4px}
.wdg .ft{display:flex;align-items:center;gap:7px;padding:8px 11px;border-top:1px solid var(--line)}
.wdg .ft>span:first-child{flex:1;font-size:11px;color:var(--ink-3)}
.wdg .send{flex:0 0 22px;width:22px;height:22px;border-radius:50%;background:var(--brand);display:grid;place-items:center}
/* Floating "answered in 2s" tag. */
.tag{position:absolute;left:-14px;bottom:64px;background:var(--bg);border:1px solid var(--line);box-shadow:var(--shadow);border-radius:999px;padding:6px 12px;font-size:12px;font-weight:600;display:flex;align-items:center;gap:7px}
.tag i{width:7px;height:7px;border-radius:50%;background:var(--ok);display:block}
@media (max-width:520px){.tag{display:none}}

/* Mechanism diagram — how the bot actually answers. */
/* The diagram is bounded even though its card is not. width:100% on a
   full-bleed page scaled these SVGs to 1700px+ — every box the size of a
   fist, and the section taller than the fold it was meant to support.
   Centred at a fixed comfortable size; the min-width keeps it legible on
   a phone, where the card scrolls sideways instead of shrinking it. */
.flowbox{margin-top:30px;border:1px solid var(--line);border-radius:var(--r-lg);background:var(--bg);padding:22px;overflow-x:auto}
.flowbox svg{display:block;width:100%;max-width:880px;margin:0 auto;min-width:620px;height:auto}
.flowlegend{display:flex;flex-wrap:wrap;gap:18px;margin-top:16px;font-size:13px;color:var(--ink-3)}
.flowlegend span{display:flex;align-items:center;gap:7px}
.flowlegend i{width:10px;height:10px;border-radius:3px;display:block}

/* Step cards get an illustration strip. */
.step .ico{width:38px;height:38px;flex:0 0 38px;border-radius:10px;background:var(--brand-2);display:grid;place-items:center;margin-bottom:10px}
.step .ico svg{width:20px;height:20px;display:block}

/* Phone frame for the language section. */
.phone{width:212px;margin:0 auto;border:8px solid #101425;border-radius:28px;background:var(--bg);overflow:hidden;box-shadow:var(--shadow)}
.phone .nub{height:16px;background:#101425;display:flex;justify-content:center}
.phone .nub span{width:64px;height:16px;background:#101425;border-radius:0 0 9px 9px}
.phone .scr{padding:11px 11px 18px;display:flex;flex-direction:column;gap:7px;background:var(--bg-2);min-height:236px}
.phone .m{max-width:86%;padding:7px 10px;border-radius:12px;font-size:11.5px;line-height:1.45}
.phone .m.u{align-self:flex-end;background:var(--brand);color:#fff;border-bottom-right-radius:4px}
.phone .m.b{align-self:flex-start;background:var(--bg);color:var(--ink);border:1px solid var(--line);border-bottom-left-radius:4px}
.langgrid{display:grid;grid-template-columns:1fr 1.25fr;gap:44px;align-items:center}
@media (max-width:860px){.langgrid{grid-template-columns:1fr;gap:32px}}

/* Interactive sample conversation on the product page. */
.demo{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:34px;align-items:start;margin-top:28px}
@media (max-width:880px){.demo{grid-template-columns:1fr;gap:26px}}
.demowdg{border:1px solid var(--line);border-radius:var(--r-lg);background:var(--bg);box-shadow:var(--shadow);overflow:hidden}
.demowdg .hd{display:flex;align-items:center;gap:10px;padding:13px 15px;background:var(--brand);color:#fff}
.demowdg .hd .av{width:30px;height:30px;flex:0 0 30px;border-radius:50%;background:rgba(255,255,255,.22);display:grid;place-items:center;font-weight:700;font-size:14px}
.demowdg .hd b{display:block;font-size:14.5px;font-weight:650;line-height:1.3}
.demowdg .hd em{display:block;font-style:normal;font-size:11.5px;opacity:.82}
.demowdg .msgs{padding:15px;display:flex;flex-direction:column;gap:9px;min-height:250px;max-height:330px;overflow-y:auto;background:var(--bg-2)}
.demowdg .m{max-width:82%;padding:9px 13px;border-radius:14px;font-size:14px;line-height:1.5;white-space:pre-wrap}
.demowdg .m.u{align-self:flex-end;background:var(--brand);color:#fff;border-bottom-right-radius:5px}
.demowdg .m.b{align-self:flex-start;background:var(--bg);color:var(--ink);border:1px solid var(--line);border-bottom-left-radius:5px}
.demowdg .m.handoff{background:#fdf3e0;border-color:#e2b567}
.demowdg .unans{align-self:flex-start;font-size:11.5px;color:#b8760b;font-weight:600;margin:-2px 0 0 4px}
.demowdg .m.typing{display:flex;gap:4px;align-items:center;padding:12px 14px}
.demowdg .m.typing i{width:6px;height:6px;border-radius:50%;background:var(--ink-3);display:block;animation:blink 1.1s infinite}
.demowdg .m.typing i:nth-child(2){animation-delay:.18s}
.demowdg .m.typing i:nth-child(3){animation-delay:.36s}
@keyframes blink{0%,60%,100%{opacity:.25}30%{opacity:1}}
@media (prefers-reduced-motion:reduce){.demowdg .m.typing i{animation:none;opacity:.5}}
.demowdg .ask{display:flex;flex-wrap:wrap;gap:8px;padding:13px 15px;border-top:1px solid var(--line);background:var(--bg)}
.qbtn{font:inherit;font-size:13px;padding:8px 13px;border-radius:999px;border:1px solid var(--line);background:var(--bg-2);color:var(--ink-2);cursor:pointer;transition:border-color .12s,color .12s,background .12s}
.qbtn:hover:not(:disabled){border-color:var(--brand);color:var(--brand);background:var(--brand-2)}
.qbtn:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.qbtn:disabled{opacity:.42;cursor:default}
.demoside h3{font-size:19px;margin-bottom:12px}
.demosteps{margin:0;padding-left:20px;color:var(--ink-2)}
.demosteps li{margin:9px 0}

/* ─── Company homepage ──────────────────────────────────────────────────────
   Deliberately NOT product imagery. The storefront mockup and the answer-flow
   diagram belong to Keyda Bot and live on its page; the homepage's job is to
   say who builds this and what an account gives you, so its visuals are about
   the company and the platform. */

/* Hero: one account, and the surfaces it reaches. */
.reach{position:relative;border:1px solid var(--line);border-radius:var(--r-lg);background:var(--bg);box-shadow:var(--shadow);padding:22px}
.reach svg{display:block;width:100%;height:auto}

/* The lineage band — where the language work comes from. */
.lineage{border:1px solid var(--line);border-radius:var(--r-lg);background:var(--bg);padding:22px;margin-top:26px;overflow-x:auto}
.lineage svg{display:block;width:100%;max-width:840px;margin:0 auto;min-width:560px;height:auto}

/* Catalogue: one product, presented as a decision rather than a placeholder. */
.cat{display:grid;grid-template-columns:1.35fr 1fr;gap:0;border:1px solid var(--line);border-radius:var(--r-lg);overflow:hidden;background:var(--bg);box-shadow:var(--shadow);margin-top:28px}
@media (max-width:820px){.cat{grid-template-columns:1fr}}
.cat .main{padding:30px}
.cat .main h3{font-size:25px;margin-bottom:10px}
.cat .side{background:var(--bg-2);border-left:1px solid var(--line);padding:26px 24px}
@media (max-width:820px){.cat .side{border-left:0;border-top:1px solid var(--line)}}
.cat .side h4{font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--ink-3);margin-bottom:12px}
.catlist{list-style:none;margin:0;padding:0}
.catlist li{display:flex;gap:9px;align-items:flex-start;margin:9px 0;font-size:14px;color:var(--ink-2)}
.catlist svg{flex:0 0 15px;margin-top:3px}
.cat .row{margin-top:22px;display:flex;gap:11px;flex-wrap:wrap}

/* What one account carries — the platform under every product. */
.carries{display:grid;grid-template-columns:repeat(auto-fit,minmax(232px,1fr));gap:1px;background:var(--line);border:1px solid var(--line);border-radius:var(--r-lg);overflow:hidden;margin-top:28px}
.carries .c{background:var(--bg);padding:22px 20px}
.carries .c h4{font-size:15.5px;margin-bottom:7px}
.carries .c p{font-size:14px;color:var(--ink-2)}
.carries .c .ic{width:30px;height:30px;border-radius:9px;background:var(--brand-2);display:grid;place-items:center;margin-bottom:12px}
.carries .c .ic svg{width:16px;height:16px;display:block}

/* The standard we hold ourselves to. */
/* Two columns, not auto-fit: these are prose blocks, and auto-fit fitted
   four-ish across the wrap and orphaned the last one. */
.rules{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 34px;margin-top:26px}
@media (max-width:760px){.rules{grid-template-columns:1fr}}
.rule{border-left:3px solid var(--brand);padding:2px 0 2px 16px}
.rule h4{font-size:16px;margin-bottom:6px}
.rule p{font-size:14.5px;color:var(--ink-2)}
