/* Keystone Desk — site styles */
:root {
  --ink: #0b0f14;
  --ink-2: #2a313c;
  --muted: #5d6673;
  --faint: #8b93a0;
  --line: #e7e9ed;
  --line-2: #d9dce2;
  --bg: #ffffff;
  --bg-alt: #f7f8fa;
  --accent: #0a7d62;
  --accent-ink: #075e4a;
  --accent-wash: #e8f5f1;
  --hot: #c2410c;
  --hot-wash: #fff1e9;
  --warm: #a16207;
  --warm-wash: #fdf6dd;
  --cold: #475569;
  --cold-wash: #eef1f5;
  --wa-bg: #efeae2;
  --wa-out: #d9fdd3;
  --radius: 14px;
  --max: 1160px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --deva: "Noto Sans Devanagari", "Nirmala UI", "Mangal", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 28px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; letter-spacing: -0.015em; }
.brand svg { width: 26px; height: 26px; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a.link { font-size: 15px; color: var(--muted); transition: color 0.15s ease; }
.nav a.link:hover { color: var(--ink); }
.menu-btn { display: none; background: none; border: 0; padding: 8px; margin-right: -8px; cursor: pointer; }
.menu-btn svg { width: 22px; height: 22px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 20px; border-radius: 10px;
  font-size: 15.5px; font-weight: 500; letter-spacing: -0.005em;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #1e2530; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: #b9bec8; }
.btn-sm { height: 38px; padding: 0 15px; font-size: 14.5px; border-radius: 9px; }
.btn svg { width: 17px; height: 17px; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 40px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 56px; align-items: center; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 500; color: var(--accent-ink);
  background: var(--accent-wash); border-radius: 999px; padding: 6px 12px; margin-bottom: 22px;
}
.kicker i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
h1 {
  font-size: clamp(38px, 5.2vw, 66px);
  line-height: 1.04; letter-spacing: -0.038em; font-weight: 600;
}
.hero p.lede { margin-top: 22px; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: var(--muted); max-width: 33em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--faint); }

/* ---------- Phone mock ---------- */
.stage { position: relative; display: flex; justify-content: center; padding: 8px 0 112px; }
.phone {
  width: 100%; max-width: 372px;
  background: #0b0f14; border-radius: 40px; padding: 10px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.08) inset, 0 30px 60px -22px rgba(11, 15, 20, 0.38), 0 12px 24px -14px rgba(11, 15, 20, 0.22);
}
.screen { background: var(--wa-bg); border-radius: 31px; overflow: hidden; }
.wa-top { display: flex; align-items: center; gap: 11px; padding: 14px 14px 12px; background: #fff; border-bottom: 1px solid rgba(0,0,0,0.06); }
.wa-top .av { width: 36px; height: 36px; border-radius: 50%; background: #0b0f14; color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 600; letter-spacing: 0.02em; }
.wa-top .who { line-height: 1.25; }
.wa-top .who b { display: block; font-size: 14.5px; font-weight: 600; }
.wa-top .who span { font-size: 12px; color: var(--muted); }
.chat { padding: 16px 12px 18px; display: flex; flex-direction: column; gap: 8px; min-height: 420px; }
.bubble { max-width: 86%; padding: 8px 10px 6px; border-radius: 10px; font-size: 13.6px; line-height: 1.42; color: #111b21; box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13); }
.bubble.in { background: #fff; align-self: flex-start; border-top-left-radius: 3px; }
.bubble.out { background: var(--wa-out); align-self: flex-end; border-top-right-radius: 3px; }
.bubble time { display: block; text-align: right; font-size: 10.5px; color: #667781; margin-top: 2px; }
.bubble.out time::after { content: " \2713\2713"; color: #53bdeb; letter-spacing: -2px; }
.day { align-self: center; font-size: 11px; color: #54656f; background: rgba(255,255,255,0.92); border-radius: 7px; padding: 4px 9px; margin-bottom: 4px; box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.1); }

.lead-chip {
  position: absolute; left: -12px; bottom: 0; width: min(292px, 82%);
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px;
  box-shadow: 0 22px 44px -22px rgba(11, 15, 20, 0.36);
}
.lead-chip .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lead-chip .name { font-weight: 600; font-size: 14.5px; }
.lead-chip .meta { margin-top: 6px; font-size: 13px; color: var(--muted); line-height: 1.45; }
.lead-chip .foot { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); }
.lead-chip .foot b { color: var(--ink); font-weight: 600; }

.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: 0.01em; }
.tag.hot { background: var(--hot-wash); color: var(--hot); }
.tag.warm { background: var(--warm-wash); color: var(--warm); }
.tag.cold { background: var(--cold-wash); color: var(--cold); }
.tag.status { background: var(--accent-wash); color: var(--accent-ink); }

/* ---------- Strip ---------- */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.strip .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.strip .cell { padding: 26px 22px 26px 0; }
.strip .cell + .cell { padding-left: 26px; border-left: 1px solid var(--line); }
.strip b { display: block; font-size: 15.5px; font-weight: 600; letter-spacing: -0.01em; }
.strip span { display: block; margin-top: 3px; font-size: 14px; color: var(--muted); line-height: 1.45; }

/* ---------- Sections ---------- */
section.block { padding: 104px 0; }
section.block.alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow { font-size: 13.5px; font-weight: 600; color: var(--accent-ink); letter-spacing: 0.01em; margin-bottom: 14px; }
h2 { font-size: clamp(29px, 3.5vw, 44px); line-height: 1.1; letter-spacing: -0.032em; font-weight: 600; max-width: 18em; }
.section-lede { margin-top: 16px; font-size: 18px; color: var(--muted); max-width: 36em; }

/* How it works */
.steps { margin-top: 56px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line-2); }
.step { padding: 28px 28px 4px 0; }
.step + .step { padding-left: 28px; border-left: 1px solid var(--line); }
.step .num { font-size: 13px; font-weight: 600; color: var(--faint); font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
.step h3 { margin-top: 12px; font-size: 20px; letter-spacing: -0.02em; font-weight: 600; }
.step p { margin-top: 8px; color: var(--muted); font-size: 16px; }

/* Split feature */
.split { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 64px; align-items: center; }
.split.rev { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
.checks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 30px; color: var(--ink-2); font-size: 16.5px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent-wash) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.6L13 6.6' fill='none' stroke='%23075e4a' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat;
}
.checks li span { color: var(--muted); }

/* Sheet mock */
.sheet { background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 60px -34px rgba(11, 15, 20, 0.3); }
.sheet-bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #fbfbfc; font-size: 13px; color: var(--muted); }
.sheet-bar b { color: var(--ink); font-weight: 600; }
.sheet-scroll { overflow-x: auto; }
table.leads { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 560px; }
table.leads th { text-align: left; font-weight: 500; color: var(--faint); font-size: 12px; letter-spacing: 0.03em; text-transform: uppercase; padding: 11px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.leads td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-2); }
table.leads tr:last-child td { border-bottom: 0; }
table.leads td.n { font-weight: 600; color: var(--ink); white-space: nowrap; }
table.leads td.s { font-variant-numeric: tabular-nums; color: var(--muted); }
table.leads td.sum { color: var(--muted); min-width: 200px; }
.why { padding: 14px 16px; background: #fbfbfc; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.why b { color: var(--ink); font-weight: 600; }
.why code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.3px; color: var(--ink-2); }

/* Languages */
.langs { display: grid; gap: 14px; }
.lang { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.lang .label { font-size: 12px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--faint); }
.lang .q { margin-top: 8px; font-size: 15px; color: var(--muted); }
.lang .a { margin-top: 6px; font-size: 15.5px; color: var(--ink); }
.lang .a.hi, .lang .q.hi { font-family: var(--deva); line-height: 1.7; }

/* Principles */
.principles { margin-top: 52px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; }
.principle { padding: 24px 0; border-top: 1px solid var(--line-2); }
.principle h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.015em; }
.principle p { margin-top: 6px; color: var(--muted); font-size: 16px; }

/* FAQ */
.faq { margin-top: 44px; border-top: 1px solid var(--line-2); max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative; font-size: 18px; font-weight: 500; letter-spacing: -0.012em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 1.6px solid var(--ink); border-bottom: 1.6px solid var(--ink); transform: translateY(-70%) rotate(45deg); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 40px 24px 0; color: var(--muted); font-size: 16.5px; max-width: 44em; }

/* CTA */
.cta { padding: 96px 0; }
.cta-card { background: var(--ink); color: #fff; border-radius: 24px; padding: 64px 56px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 40px; align-items: center; }
.cta-card h2 { color: #fff; }
.cta-card p { margin-top: 14px; color: #a9b1bd; font-size: 18px; max-width: 30em; }
.cta-actions { display: grid; gap: 12px; justify-items: start; }
.cta-card .btn-primary { background: #fff; color: var(--ink); }
.cta-card .btn-primary:hover { background: #eef0f3; }
.cta-card .btn-ghost { background: transparent; color: #fff; border-color: #333c49; }
.cta-card .btn-ghost:hover { border-color: #5a6575; }
.cta-card .where { font-size: 14px; color: #8b93a0; margin-top: 4px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 48px; font-size: 14.5px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 32px; align-items: center; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.site-footer a:hover { color: var(--ink); }

/* Legal page */
.legal { padding: 64px 0 96px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(34px, 4.4vw, 48px); }
.legal .updated { margin-top: 12px; color: var(--faint); font-size: 15px; }
.legal h2 { font-size: 22px; letter-spacing: -0.02em; margin-top: 44px; }
.legal p { margin-top: 12px; color: var(--ink-2); }
.legal ul { margin: 12px 0 0; padding-left: 22px; color: var(--ink-2); }
.legal li { margin: 6px 0; }
.legal a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }

[hidden] { display: none !important; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero { padding-top: 48px; }
  .hero-grid, .split, .split.rev, .cta-card { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .split.rev > :first-child { order: 2; }
  .stage { padding-bottom: 120px; }
  .lead-chip { left: 50%; transform: translateX(-50%); width: min(320px, 92%); }
  section.block { padding: 76px 0; }
  .cta-card { padding: 44px 30px; }
  .principles { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  body { font-size: 16.5px; }
  .wrap { padding: 0 20px; }
  .nav a.link, .nav .btn { display: none; }
  .menu-btn { display: inline-flex; }
  .nav.open { position: absolute; left: 0; right: 0; top: 68px; background: #fff; border-bottom: 1px solid var(--line); padding: 10px 20px 20px; flex-direction: column; align-items: stretch; gap: 4px; }
  .nav.open a.link { display: block; padding: 12px 0; font-size: 16px; color: var(--ink); border-bottom: 1px solid var(--line); }
  .nav.open .btn { display: inline-flex; margin-top: 14px; }
  .strip .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strip .cell { padding: 20px 14px 20px 0; }
  .strip .cell + .cell { padding-left: 16px; }
  .strip .cell:nth-child(3) { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .strip .cell:nth-child(4) { border-top: 1px solid var(--line); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step, .step + .step { padding: 24px 0 20px; border-left: 0; border-bottom: 1px solid var(--line); }
  .cta { padding: 64px 0; }
  .cta-row .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
