:root {
  --navy: #0b1f4d;
  --blue: #0a6cf5;
  --blue-hover: #0858cc;
  --cyan: #19c3ff;
  /* Focus ring: blue passes 3:1 on white and the band; cyan only on dark. */
  --focus: #0a6cf5;
  --bg: #ffffff;
  --band: #f4f6fb;
  --surface: #ffffff;
  --border: #dde3ee;
  --text: #0f1b33;
  --text-2: #3d4a63;
  --muted: #5a6780;
  --ok: #157a3f;
  --ok-bg: #e5f5ec;
  --warn: #8a5a00;
  --warn-bg: #fff3d6;
  --bad: #b33a00;
  --bad-bg: #ffe8dc;
  --crit: #b4123a;
  --crit-bg: #ffe3ea;
  --radius: 12px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1430;
    --band: #0d1a3c;
    --surface: #102049;
    --border: #22356a;
    --text: #e8eefc;
    --text-2: #c2cde6;
    --muted: #98a7c9;
    --blue: #3d8bff;
    --focus: #19c3ff;
    --blue-hover: #5d9dff;
    --ok: #5fd38d;
    --ok-bg: #123a29;
    --warn: #f3c45a;
    --warn-bg: #3a2f12;
    --bad: #ff9a66;
    --bad-bg: #3d2416;
    --crit: #ff7a99;
    --crit-bg: #42162a;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue-hover); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 750; }
h3 { font-size: 1.12rem; font-weight: 700; }
p { margin: 0 0 1em; }
code, pre { font-family: var(--mono); font-size: 0.9em; }
pre {
  background: var(--band);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  overflow-x: auto;
  line-height: 1.5;
}
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.small { font-size: 0.88rem; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 12px; z-index: 10; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

/* Header */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 1.15rem; }
.top nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.top nav a { color: var(--text-2); text-decoration: none; font-size: 0.95rem; }
.top nav a:hover { color: var(--text); }
@media (max-width: 760px) {
  .top nav a:not(.btn) { display: none; }
  .top nav a[href="/download.html"] { display: inline; }
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--blue);
  color: #fff !important;
  border: 1px solid var(--blue);
  padding: 11px 18px;
  border-radius: 10px;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  font-size: 0.98rem;
}
.btn:hover { background: var(--blue-hover); border-color: var(--blue-hover); }
.btn-ghost { background: transparent; color: var(--blue) !important; }
.btn-ghost:hover { background: color-mix(in srgb, var(--blue) 10%, transparent); color: var(--blue) !important; }
.btn-small { padding: 7px 14px; font-size: 0.9rem; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* Hero */
.hero { padding: 72px 0 56px; background: radial-gradient(1200px 500px at 85% -10%, color-mix(in srgb, var(--cyan) 18%, transparent), transparent 60%); }
.hero-in { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.eyebrow { color: var(--blue); font-weight: 650; font-size: 0.92rem; letter-spacing: 0.02em; }
.lead { font-size: 1.15rem; color: var(--text-2); max-width: 38em; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
@media (max-width: 900px) { .hero-in { grid-template-columns: 1fr; } }

.stack-card {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 20px 50px -24px rgba(11, 31, 77, 0.35);
  padding: 18px 18px 6px;
}
.stack-card figcaption { font-weight: 700; display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.stack-card .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); display: inline-block; }
.stack-card ol { list-style: none; margin: 0; padding: 0; }
.stack-card li {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 4px;
  border-top: 1px solid var(--border);
  font-size: 0.93rem;
}
.stack-card .layer { color: var(--muted); font-size: 0.82rem; }
.stack-card .name { font-family: var(--mono); font-size: 0.86rem; }
.tag { font-size: 0.78rem; font-weight: 650; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.tag.ok { color: var(--ok); background: var(--ok-bg); }
.tag.warn { color: var(--warn); background: var(--warn-bg); }
.tag.bad { color: var(--bad); background: var(--bad-bg); }
.tag.crit { color: var(--crit); background: var(--crit-bg); }
.stack-card .next { border-top: 1px solid var(--border); padding-top: 12px; font-size: 0.92rem; color: var(--text-2); }
@media (max-width: 520px) { .stack-card li { grid-template-columns: 1fr auto; } .stack-card .layer { display: none; } }

/* Sections */
.band { background: var(--band); padding: 72px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.features, .trust { padding: 72px 24px; }
.sub { color: var(--text-2); max-width: 44em; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 28px; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.step p { color: var(--text-2); margin: 0; }
.num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 750; margin-bottom: 12px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.grid article { border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; background: var(--surface); }
.grid p { color: var(--text-2); margin: 0; }
@media (max-width: 900px) { .steps, .grid { grid-template-columns: 1fr; } }
@media (min-width: 600px) and (max-width: 900px) { .steps, .grid { grid-template-columns: 1fr 1fr; } }

.editions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; align-items: stretch; }
.edition { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; }
.edition.featured { border: 2px solid var(--blue); box-shadow: 0 16px 40px -24px rgba(10, 108, 245, 0.55); }
.edition .price { color: var(--muted); margin-top: -4px; }
.edition ul { padding-left: 18px; margin: 0 0 20px; color: var(--text-2); flex: 1; }
.edition li { margin-bottom: 6px; }
.edition .btn { align-self: flex-start; }
@media (max-width: 900px) { .editions { grid-template-columns: 1fr; } }

.trust { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.trust p { color: var(--text-2); }
@media (max-width: 800px) { .trust { grid-template-columns: 1fr; } }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
.form { display: grid; gap: 14px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 0.93rem; }
.form input, .form select, .form textarea {
  font: inherit;
  font-weight: 400;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 10px 12px;
  width: 100%;
}
.form textarea { resize: vertical; }
.form .btn { justify-self: start; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; min-height: 1.4em; font-weight: 600; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--crit); }

/* Feedback */
.feedback-form { max-width: 640px; margin-top: 28px; }
.kinds { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.kinds legend { font-weight: 600; font-size: 0.93rem; margin-bottom: 8px; padding: 0; }
.form .kinds label { display: block; font-weight: 400; }
.kinds input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.kinds span { display: inline-block; padding: 8px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text-2); cursor: pointer; }
.kinds input:checked + span { border-color: var(--blue); background: color-mix(in srgb, var(--blue) 12%, transparent); color: var(--text); font-weight: 600; }
.kinds input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
@media (max-width: 480px) { .kinds label { flex: 1 1 100%; } .kinds span { display: block; } }
.sent-note { display: none; scroll-margin-top: 96px; }
.sent-note:target, .sent-note.show { display: block; color: var(--ok); font-weight: 600; }

/* Pages */
.page { padding: 56px 24px 72px; max-width: 860px; }
.page h2 { margin-top: 1.6em; font-size: 1.45rem; }
.page li { margin-bottom: 6px; color: var(--text-2); }
.page p { color: var(--text-2); }
.note { border-left: 4px solid var(--blue); background: var(--band); padding: 12px 16px; border-radius: 0 8px 8px 0; }

/* Footer */
.foot { border-top: 1px solid var(--border); padding: 28px 0; color: var(--muted); font-size: 0.92rem; }
.foot-in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.foot a { color: var(--muted); }

/* Analytics consent */
.consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 20;
  max-width: 560px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 16px 40px -16px rgba(11, 31, 77, 0.45);
  padding: 14px 16px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  font-size: 0.93rem;
}
.consent p { margin: 0; color: var(--text-2); flex: 1 1 260px; }
.linklike { background: none; border: 0; padding: 0; color: var(--blue); font: inherit; text-decoration: underline; cursor: pointer; }

/* Screenshots */
.shots-section { padding: 72px 24px 24px; }
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 28px; }
.shot { margin: 0; }
.shot a { display: block; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: 0 18px 40px -26px rgba(11, 31, 77, 0.45); background: var(--surface); }
.shot img { display: block; width: 100%; height: auto; }
.shot a:hover { border-color: var(--blue); }
.shot figcaption { margin-top: 12px; color: var(--text-2); font-size: 0.95rem; }
@media (max-width: 860px) { .shots { grid-template-columns: 1fr; } }

/* What's new */
.changelog h2 { margin-top: 2em; padding-top: 0.6em; border-top: 1px solid var(--border); }
.changelog h3 { margin-top: 1.4em; font-size: 1.05rem; }
.changelog ul { padding-left: 20px; }
.changelog li { margin-bottom: 8px; }
.changelog code { background: var(--band); border: 1px solid var(--border); border-radius: 5px; padding: 1px 5px; font-size: 0.85em; overflow-wrap: anywhere; }

/* Tables in text pages (the providers list in the privacy policy). */
.page table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: 0.95rem; }
.page th, .page td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.page th { color: var(--muted); font-weight: 600; }
@media (max-width: 600px) { .page table { display: block; overflow-x: auto; } }

/* ---- 2026-10 redesign ---- */

/* Header: primary links plus a call to action. */
.top nav .nav-cta { display: flex; gap: 10px; align-items: center; }
.top nav a.active { color: var(--text); font-weight: 650; }
@media (max-width: 760px) { .top nav a[href="/pricing.html"] { display: inline; } }

/* Hero with a product screenshot. */
.hero-v2 { padding: 64px 0 40px; text-align: center; }
.hero-v2 .hero-text { max-width: 820px; margin: 0 auto; }
.hero-v2 h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
.hero-v2 .lead { margin: 0 auto 1.2em; }
.hero-v2 .cta { justify-content: center; }
.hero-v2 .fineprint { margin-top: 14px; color: var(--muted); font-size: 0.9rem; }
.hero-shot { margin: 44px auto 0; max-width: 1080px; }

/* A screenshot in a browser-like frame. Clicking opens it larger. */
.frame { display: block; margin: 0; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--surface);
  box-shadow: 0 30px 70px -30px rgba(11, 31, 77, 0.45); cursor: zoom-in; }
.frame::before { content: ""; display: block; height: 30px; border-bottom: 1px solid var(--border);
  background: radial-gradient(circle at 16px 15px, #ff5f57 5px, transparent 6px), radial-gradient(circle at 34px 15px, #febc2e 5px, transparent 6px),
    radial-gradient(circle at 52px 15px, #28c840 5px, transparent 6px), var(--band); }
.frame img { display: block; width: 100%; height: auto; }
.frame:hover { border-color: var(--blue); }
.frame.phone { max-width: 300px; border-radius: 30px; padding: 10px; }
.frame.phone::before { display: none; }
.frame.phone img { border-radius: 22px; }

/* Proof strip. */
.proof { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--band); padding: 26px 0; }
.proof ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; text-align: center; }
.proof strong { display: block; font-size: 1.5rem; font-weight: 800; color: var(--text); line-height: 1.2; }
.proof span { color: var(--muted); font-size: 0.9rem; }
@media (max-width: 860px) { .proof ul { grid-template-columns: repeat(2, 1fr); } }

/* Section headings. */
.section { padding: 80px 0; }
.section-head { max-width: 760px; margin: 0 auto 36px; text-align: center; }
.section-head .sub { margin: 0 auto; }
.kicker { color: var(--blue); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 8px; }

/* Feature rows: text beside a screenshot, alternating sides. */
.feature-row { display: grid; grid-template-columns: 0.85fr 1.4fr; gap: 48px; align-items: center; padding: 44px 0; }
.feature-row:nth-child(even) { grid-template-columns: 1.4fr 0.85fr; }
.feature-row:nth-child(even) .feature-text { order: 2; }
.feature-text h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); font-weight: 750; }
.feature-text p { color: var(--text-2); }
.feature-text ul { padding-left: 0; list-style: none; margin: 0 0 1em; }
.feature-text li { color: var(--text-2); padding-left: 26px; position: relative; margin-bottom: 8px; }
.feature-text li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 14px; height: 14px; border-radius: 50%;
  background: color-mix(in srgb, var(--blue) 16%, transparent); box-shadow: inset 0 0 0 4px color-mix(in srgb, var(--blue) 70%, transparent); }
.badge { display: inline-block; font-size: 0.75rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; vertical-align: middle;
  color: var(--blue); background: color-mix(in srgb, var(--blue) 12%, transparent); margin-left: 6px; }
@media (max-width: 900px) { .feature-row, .feature-row:nth-child(even) { grid-template-columns: 1fr; gap: 24px; } .feature-row:nth-child(even) .feature-text { order: 0; } }

/* Small capability cards. */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cards article { border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; background: var(--surface); }
.cards h3 { font-size: 1rem; }
.cards p { color: var(--text-2); margin: 0; font-size: 0.95rem; }
@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }

/* AI assistant setup tabs. Without JavaScript every panel shows. */
.ai { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.tabs [role="tablist"] { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.tabs [role="tab"] { font: inherit; font-size: 0.92rem; font-weight: 600; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text-2); cursor: pointer; }
.tabs [role="tab"][aria-selected="true"] { border-color: var(--blue); color: var(--text); background: color-mix(in srgb, var(--blue) 12%, transparent); }
.tabs [role="tabpanel"] h4 { margin: 0 0 6px; font-size: 0.95rem; }
.js .tabs [role="tabpanel"] h4 { display: none; }
.tabs pre { margin: 0 0 16px; white-space: pre-wrap; overflow-wrap: anywhere; }
.ask { list-style: none; padding: 0; margin: 0; }
.ask li { background: var(--surface); border: 1px solid var(--border); border-radius: 12px 12px 12px 4px; padding: 10px 14px; margin-bottom: 10px; color: var(--text-2); }
@media (max-width: 900px) { .ai { grid-template-columns: 1fr; } }

/* Integrations. */
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; list-style: none; padding: 0; margin: 0; }
.chips li { border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: 0.95rem; color: var(--text-2); }
.chips li small { font-weight: 400; color: var(--muted); }

/* Pricing. */
.billing-toggle { display: flex; width: max-content; max-width: 100%; border: 1px solid var(--border); border-radius: 999px; padding: 4px; background: var(--surface); margin: 0 auto 28px; }
.billing-toggle button { font: inherit; font-weight: 650; font-size: 0.92rem; border: 0; background: none; padding: 7px 16px; border-radius: 999px; color: var(--text-2); cursor: pointer; }
.billing-toggle button[aria-pressed="true"] { background: var(--blue); color: #fff; }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; text-align: left; }
.plan.featured { border: 2px solid var(--blue); box-shadow: 0 16px 40px -24px rgba(10, 108, 245, 0.55); position: relative; }
.plan.featured::after { content: "Most popular"; position: absolute; top: -12px; left: 24px; background: var(--blue); color: #fff; font-size: 0.75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.plan h3 { margin-bottom: 4px; }
.plan .for { color: var(--muted); font-size: 0.92rem; min-height: 3.2em; }
.plan .amount { font-size: 2.3rem; font-weight: 800; line-height: 1.1; margin: 8px 0 2px; }
.plan .amount small { font-size: 0.95rem; font-weight: 500; color: var(--muted); }
.plan .alt { color: var(--muted); font-size: 0.85rem; min-height: 1.4em; }
.plan .limits { font-weight: 650; margin: 14px 0 10px; }
.plan ul { padding-left: 18px; margin: 0 0 20px; color: var(--text-2); flex: 1; font-size: 0.95rem; }
.plan li { margin-bottom: 6px; }
.plan .btn { text-align: center; }
[data-period="yearly"] .monthly, [data-period="monthly"] .yearly { display: none; }
/* Currency: dollars unless the page chose rupees (site.js sets data-currency on <html>). */
html:not([data-currency="inr"]) .inr, html[data-currency="inr"] .usd { display: none; }
.pricing-toggles { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 0 auto 28px; }
.pricing-toggles .billing-toggle { margin: 0; }
.pricing-toggles .billing-toggle[hidden] { display: none; }
@media (max-width: 1000px) { .plans { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .plans { grid-template-columns: 1fr; } }
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--border); padding: 14px 0; }
.faq summary { font-weight: 650; cursor: pointer; }
.faq details p { color: var(--text-2); margin: 10px 0 0; }

/* Closing call to action. */
.cta-band { text-align: center; padding: 72px 0; background: linear-gradient(135deg, var(--navy), #13358a); color: #fff; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #c9d6f5; max-width: 40em; margin: 0 auto 1.2em; }
.cta-band .cta { justify-content: center; }
.cta-band .btn-ghost { color: #fff !important; border-color: rgba(255, 255, 255, 0.6); }
.cta-band .btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }

/* Lightbox for screenshots. */
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1600px, 96vw); max-height: 94vh; overflow: visible; }
dialog.lightbox::backdrop { background: rgba(5, 12, 30, 0.82); }
dialog.lightbox img { display: block; max-width: min(1600px, 96vw); max-height: 88vh; width: auto; height: auto; border-radius: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); }
dialog.lightbox p { color: #e8eefc; text-align: center; margin: 10px 0 0; font-size: 0.95rem; }
dialog.lightbox button { position: absolute; top: -14px; right: -14px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: #fff; color: #0f1b33;
  font-size: 1.3rem; line-height: 1; cursor: pointer; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35); }

.plans-note { margin-top: 22px; }
.community { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; align-items: start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; }
.community ul { padding-left: 18px; color: var(--text-2); margin: 0; }
.community li { margin-bottom: 6px; }
@media (max-width: 860px) { .community { grid-template-columns: 1fr; gap: 16px; } }

/* Long screens are cut to a readable height on the page; the lightbox shows them whole. */
.feature-row .frame, .frame.crop-tall { position: relative; max-height: 560px; }
.frame.crop-tall { max-height: 700px; }
.feature-row .frame::after, .frame.crop-tall::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 64px;
  background: linear-gradient(to bottom, transparent, var(--surface)); pointer-events: none; }

/* Phones: logo, Pricing and the call to action only; the rest is in the footer. */
@media (max-width: 760px) {
  .top nav { flex-wrap: nowrap; gap: 14px; }
  .top nav a[href="/download.html"] { display: none; }
  .top nav .btn-small { padding: 6px 12px; font-size: 0.85rem; white-space: nowrap; }
  dialog.lightbox button { top: 6px; right: 6px; }
}

/* API reference (api.html): Redoc draws its own layout below the site header. */
.api-intro { padding: 32px 24px 8px; }
.api-intro p { color: var(--text-2); max-width: 52em; }
#redoc { border-top: 1px solid var(--border); background: #fff; }

/* Documentation (/docs/): sidebar, article and "on this page". On phones
   the two lists fold away above the text (site.js opens them on wide screens). */
.docs { display: grid; grid-template-columns: 220px minmax(0, 1fr) 210px; grid-template-areas: "side body toc";
  gap: 40px; max-width: 1360px; margin: 0 auto; padding: 32px 24px 72px; }
.docs-side { grid-area: side; }
.docs-toc { grid-area: toc; }
.docs-body { grid-area: body; min-width: 0; max-width: 820px; }
.docs-side, .docs-toc { position: sticky; top: 88px; align-self: start; max-height: calc(100vh - 104px); overflow-y: auto; font-size: 0.9rem; }
.docs-fold > summary { cursor: pointer; font-weight: 650; color: var(--text); padding: 10px 14px; border: 1px solid var(--border);
  border-radius: 10px; background: var(--band); list-style-position: inside; }
.docs-side ul, .docs-toc ul { list-style: none; margin: 0 0 14px; padding: 0; }
.docs-side li, .docs-toc li { margin: 0; }
.docs-side a, .docs-toc a { display: block; padding: 4px 10px; border-left: 2px solid transparent; color: var(--text-2); text-decoration: none; line-height: 1.35; }
.docs-side a:hover, .docs-toc a:hover { color: var(--blue); }
.docs-side a[aria-current="page"] { color: var(--blue); border-left-color: var(--blue); font-weight: 650;
  background: color-mix(in srgb, var(--blue) 8%, transparent); border-radius: 0 6px 6px 0; }
.docs-group { margin: 0 0 4px; padding: 0 10px; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.docs-toc .toc-3 a { padding-left: 22px; font-size: 0.85rem; }
.docs-toc summary { font-size: 0.8rem; }
@media (min-width: 900px) {
  .docs-side .docs-fold[open] > summary { display: none; }
}
@media (min-width: 1181px) {
  .docs-toc .docs-fold > summary { border: 0; background: none; padding: 4px 10px; }
  .docs-toc .docs-fold[open] > summary { display: block; pointer-events: none; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-size: 0.74rem; list-style: none; }
  .docs-toc .docs-fold[open] > summary::-webkit-details-marker { display: none; }
}
@media (max-width: 1180px) {
  .docs { grid-template-columns: 220px minmax(0, 1fr); grid-template-areas: "side toc" "side body"; row-gap: 20px; }
  .docs-toc { position: static; max-height: none; max-width: 820px; }
  .docs-toc .docs-fold > summary { font-size: 0.9rem; }
  .docs-toc ul { columns: 2; column-gap: 24px; padding-top: 10px; }
  .docs-toc li { break-inside: avoid; }
}
@media (max-width: 899px) {
  .docs { grid-template-columns: minmax(0, 1fr); grid-template-areas: "side" "toc" "body"; gap: 12px; padding: 20px 16px 56px; }
  .docs-side { position: static; max-height: none; }
  .docs-fold[open] > summary { margin-bottom: 10px; }
  .docs-toc ul { columns: 1; }
  .docs-body { padding-top: 12px; }
}

.crumbs { margin: 0 0 6px; font-size: 0.88rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.docs-body h1 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: 0.3em; }
.docs-meta { color: var(--muted); font-size: 0.9rem; margin: 0 0 1.6em; }
.docs-meta a { color: var(--muted); }
.prose { font-size: 1rem; line-height: 1.7; }
.prose p, .prose li { color: var(--text-2); }
.prose h2, .prose h3, .prose h4 { scroll-margin-top: 84px; color: var(--text); }
.prose h2 { font-size: 1.5rem; margin: 2em 0 0.6em; padding-top: 0.8em; border-top: 1px solid var(--border); }
.prose h3 { font-size: 1.18rem; margin: 1.7em 0 0.5em; }
.prose h4 { font-size: 1rem; margin: 1.4em 0 0.4em; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1em; }
.prose li { margin-bottom: 0.35em; }
.prose li > p { margin-bottom: 0.4em; }
.prose strong { color: var(--text); }
.prose code { background: var(--band); border: 1px solid var(--border); border-radius: 5px; padding: 1px 5px; font-size: 0.86em; overflow-wrap: anywhere; }
.prose pre { margin: 0 0 1.2em; font-size: 0.86rem; max-width: 100%; }
.prose pre code { background: none; border: 0; padding: 0; font-size: inherit; overflow-wrap: normal; white-space: pre; }
.prose blockquote { margin: 0 0 1em; border-left: 4px solid var(--blue); background: var(--band); padding: 10px 16px; border-radius: 0 8px 8px 0; }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 2em 0; }
/* Wide tables scroll inside their box instead of widening the page. */
.prose table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 0 0 1.4em; font-size: 0.9rem; line-height: 1.5; }
.prose th, .prose td { text-align: left; padding: 8px 12px; border: 1px solid var(--border); vertical-align: top; min-width: 7em; }
.prose th { background: var(--band); color: var(--text); font-weight: 650; }
.prose td code { overflow-wrap: normal; word-break: normal; }

.docs-pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); }
.docs-pager a { display: block; padding: 12px 16px; border: 1px solid var(--border); border-radius: 10px; text-decoration: none; font-weight: 650; max-width: 48%; }
.docs-pager a:hover { border-color: var(--blue); }
.docs-pager small { display: block; color: var(--muted); font-weight: 400; font-size: 0.8rem; }
.docs-pager .next { margin-left: auto; text-align: right; }

.docs-index { max-width: 1120px; }
.docs-index section { margin-top: 2.2em; }
.docs-index h2 { font-size: 1.3rem; margin-top: 0; }
.docs-cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 14px; }
.docs-cards li { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; background: var(--surface); margin: 0; }
.docs-cards a { font-weight: 700; text-decoration: none; }
.docs-cards a:hover { text-decoration: underline; }
.docs-cards p { margin: 6px 0 0; font-size: 0.92rem; color: var(--text-2); }

/* Phone menu (site.js adds the button). */
.nav-toggle { display: none; }
@media (max-width: 760px) {
  .nav-toggle { display: inline-block; margin-left: 4px; padding: 6px 12px; font: inherit; font-size: 0.9rem; font-weight: 600;
    color: var(--text); background: transparent; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; }
  .top nav.open { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 20px 16px; background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: 0 12px 24px rgba(11, 31, 77, 0.08); }
  .top nav.open a:not(.btn) { display: block; padding: 12px 0; font-size: 1rem; border-bottom: 1px solid var(--border); }
  .top nav.open .btn { margin-top: 12px; text-align: center; }
}
@media (max-width: 420px) {
  .top nav:not(.open) a[href="/pricing.html"] { display: none; }
  .top-in { gap: 8px; }
}
@media (max-width: 360px) {
  .wrap { padding: 0 16px; }
  .top .brand span { display: none; }
}
/* Long commands and image names in running text wrap instead of widening the page. */
p code, li code, td code { overflow-wrap: anywhere; }

/* Comparison pages (static/compare). Wide tables scroll inside their box. */
.compare .table-scroll { overflow-x: auto; margin: 0 0 1.2em; border: 1px solid var(--border); border-radius: var(--radius); }
.compare .table-scroll table { margin: 0; min-width: 640px; display: table; }
.compare .table-scroll th[scope="row"] { color: var(--text); font-weight: 650; min-width: 9em; }
.compare .table-scroll thead th { background: var(--band); }
.compare .table-scroll tr:last-child td, .compare .table-scroll tr:last-child th { border-bottom: 0; }
.compare sup a { text-decoration: none; font-size: 0.8em; }
.compare .sources li { font-size: 0.92rem; overflow-wrap: anywhere; }
.compare .faq { margin-top: 1.6em; }
.compare .cta { margin: 1em 0 0; }
.compare-list { list-style: none; padding: 0; display: grid; gap: 14px; }
.compare-list li { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; background: var(--surface); margin: 0; }
.compare-list a { font-weight: 700; text-decoration: none; }
.compare-list p { margin: 6px 0 0; font-size: 0.95rem; }
.compare .note p:last-child { margin-bottom: 0; }
.compare .table-hint { display: none; margin: 0 0 6px; }
@media (max-width: 700px) { .compare .table-hint { display: block; } }
