/* RgentAI website. A lab-notebook look: warm paper, ink, one violet, figure captions. */
:root {
  --paper: #f4f1ea;
  --paper-2: #ebe6da;
  --card: #fbfaf6;
  --ink: #1d1c19;
  --ink-2: #4e4a43;
  --ink-3: #807a70;
  --rule: #d8d1c2;
  --rule-2: #c9c1af;
  --accent: #4f37b8;
  --accent-ink: #ffffff;
  --accent-soft: #e6e0f6;
  --ok: #2d6a3e;
  --ok-soft: #e1eedf;
  --bad: #a3392a;
  --bad-soft: #f6e1dc;
  --warn-soft: #f7ecd2;
  --night: #17161b;
  --night-2: #222128;
  --night-ink: #ece6ee;
  --night-ink-2: #b4adba;
  --grid: rgba(29, 28, 25, 0.055);
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius: 10px;
  --wrap: 1180px;
  --shadow: 0 1px 0 rgba(29, 28, 25, 0.04), 0 18px 40px -24px rgba(29, 28, 25, 0.35);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #141317; --paper-2: #1b1a1f; --card: #1d1c22; --ink: #ece8e1; --ink-2: #bdb7ad; --ink-3: #8d877d;
    --rule: #2f2d35; --rule-2: #3b3942; --accent: #a594ff; --accent-ink: #141317; --accent-soft: #2a2540;
    --ok: #8fd19e; --ok-soft: #1d2e22; --bad: #f19a8a; --bad-soft: #3a211d; --warn-soft: #352d1a;
    --night: #0e0d11; --night-2: #18171d; --grid: rgba(236, 232, 225, 0.045);
    --shadow: 0 1px 0 rgba(0, 0, 0, 0.3), 0 18px 40px -24px rgba(0, 0, 0, 0.8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #141317; --paper-2: #1b1a1f; --card: #1d1c22; --ink: #ece8e1; --ink-2: #bdb7ad; --ink-3: #8d877d;
  --rule: #2f2d35; --rule-2: #3b3942; --accent: #a594ff; --accent-ink: #141317; --accent-soft: #2a2540;
  --ok: #8fd19e; --ok-soft: #1d2e22; --bad: #f19a8a; --bad-soft: #3a211d; --warn-soft: #352d1a;
  --night: #0e0d11; --night-2: #18171d; --grid: rgba(236, 232, 225, 0.045);
  --shadow: 0 1px 0 rgba(0, 0, 0, 0.3), 0 18px 40px -24px rgba(0, 0, 0, 0.8);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--sans); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video, iframe { max-width: 100%; display: block; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent-soft); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 450; letter-spacing: -0.015em; line-height: 1.08; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6.2vw, 5.1rem); font-weight: 400; letter-spacing: -0.025em; }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: 1.45rem; line-height: 1.2; }
h4 { font-family: var(--sans); font-size: 1rem; font-weight: 600; letter-spacing: 0; }
p { margin: 0 0 1em; text-wrap: pretty; }
em.hand { font-style: italic; position: relative; white-space: nowrap; }
em.hand::after { content: ""; position: absolute; left: -2%; right: -2%; bottom: -0.12em; height: 0.32em; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'%3E%3Cpath d='M2 8 C 40 3, 70 10, 104 6 S 168 2, 198 7' fill='none' stroke='%234f37b8' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%; }
code, pre, kbd { font-family: var(--mono); font-size: 0.86em; }
:not(pre) > code { background: var(--paper-2); border: 1px solid var(--rule); border-radius: 5px; padding: 0.05em 0.35em; overflow-wrap: anywhere; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 12px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--rule); }
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
.wordmark { display: block; height: 34px; aspect-ratio: 678 / 354; background: var(--ink); -webkit-mask: url("rgent-wordmark.png") no-repeat left center / contain; mask: url("rgent-wordmark.png") no-repeat left center / contain; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a, .nav button.nav-more { font: 500 15px/1 var(--sans); color: var(--ink-2); text-decoration: none; padding: 9px 12px; border-radius: 8px; background: none; border: 0; cursor: pointer; }
.nav a:hover, .nav button.nav-more:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--paper-2); }
.nav .drop { position: relative; }
.nav .drop-menu { position: absolute; top: calc(100% + 6px); right: 0; min-width: 210px; background: var(--card); border: 1px solid var(--rule); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; display: none; }
.nav .drop.open .drop-menu { display: block; }
.nav .drop-menu a { display: block; padding: 10px 12px; }
.nav .drop-menu small { display: block; color: var(--ink-3); font-size: 13px; margin-top: 3px; }
.nav a.nav-cta { margin-left: 8px; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 999px; }
.nav a.nav-cta:hover { background: var(--ink); color: var(--paper); }
.menu-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--rule); border-radius: 8px; width: 42px; height: 38px; color: var(--ink); cursor: pointer; }
@media (max-width: 880px) {
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 1px solid var(--rule); padding: 8px 16px 16px; margin: 0; }
  .site-header.menu-open .nav { display: flex; }
  .nav a, .nav button.nav-more { padding: 13px 8px; font-size: 16px; text-align: left; }
  .nav .drop-menu { position: static; display: block; box-shadow: none; border: 0; background: none; padding: 0 0 0 12px; }
  .nav .drop > button { display: none; }
  .nav-cta { margin: 10px 0 0; text-align: center; }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 550 15px/1 var(--sans); padding: 13px 20px; border-radius: 999px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); text-decoration: none; cursor: pointer; transition: transform .15s, background .15s, color .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--rule-2); }
.btn.ghost:hover { border-color: var(--ink); }
.btn.accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.small { padding: 9px 14px; font-size: 14px; }
.btn.block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; }
.btn .arrow { transition: transform .15s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- type helpers ---------- */
.eyebrow { font: 500 12.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink-2); max-width: 38em; }
.muted { color: var(--ink-3); }
.fig { font: 400 13px/1.45 var(--mono); color: var(--ink-3); margin-top: 12px; }
.fig b { color: var(--ink-2); font-weight: 500; }

/* ---------- sections ---------- */
section { padding: 96px 0; }
section.tight { padding: 64px 0; }
.rule-top { border-top: 1px solid var(--rule); }
.graph { background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 28px 28px; background-position: -1px -1px; }
.night { background: var(--night); color: var(--night-ink); }
.night .muted, .night .lede, .night p { color: var(--night-ink-2); }
.night .eyebrow { color: var(--night-ink-2); }
.night .wordmark { background: var(--night-ink); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: end; margin-bottom: 48px; }
.section-head p { margin: 0; }
@media (max-width: 820px) { section { padding: 64px 0; } .section-head { grid-template-columns: minmax(0, 1fr); gap: 12px; } }

/* ---------- hero ---------- */
.hero { padding: 56px 0 72px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr); gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero .lede { margin-bottom: 30px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--ink-3); }
.hero-grid { position: relative; z-index: 1; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; } }
/* stacked hero: short copy, then a real RStudio window with the live demo over its Viewer pane */
.hero-stack .hero-copy { max-width: 760px; margin: 0 auto 44px; text-align: center; }
.hero-stack .hero-copy .lede { margin-left: auto; margin-right: auto; }
.hero-stack .hero-actions { justify-content: center; }
.hero-stack .try-hint { justify-content: center; }
.hero-stack > .wrap > .pane { max-width: 560px; margin: 0 auto; }
.rs-window { position: relative; margin: 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--rule-2); box-shadow: 0 30px 80px -30px rgba(29, 28, 25, .45), var(--shadow); background: #fff; }
.rs-window img { display: block; width: 100%; height: auto; }
.rs-window iframe { position: absolute; border: 0; background: #fff; }
@media (max-width: 900px) { .rs-window iframe { display: none; } .hero-stack .try-hint { display: none; } }

/* the demo pane, framed like the Viewer pane it lives in (not a copy of RStudio) */
.pane { background: var(--card); border: 1px solid var(--rule-2); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.pane-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--rule); font: 500 12.5px/1 var(--mono); color: var(--ink-3); background: var(--paper-2); }
.pane-bar .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.pane-bar .grow { flex: 1; }
.pane iframe { width: 100%; height: 640px; border: 0; background: #fff; }
.pane.tall iframe { height: 720px; }
@media (max-width: 600px) { .pane iframe, .pane.tall iframe { height: 560px; } }
.try-hint { display: flex; gap: 8px; align-items: center; font: 400 13px/1.4 var(--mono); color: var(--ink-3); margin-top: 12px; }
.try-hint svg { flex: none; }


/* ---------- feature rows ---------- */
.feature { display: grid; grid-template-columns: 90px minmax(0, 1fr) minmax(0, 1.1fr); gap: 32px; padding: 56px 0; border-top: 1px solid var(--rule); align-items: start; }
.feature:last-child { border-bottom: 1px solid var(--rule); }
.feature .num { font: 400 15px/1 var(--mono); color: var(--ink-3); padding-top: 10px; }
.feature h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom: 14px; }
.feature ul { margin: 18px 0 0; padding: 0; list-style: none; }
.feature li { padding: 8px 0 8px 26px; position: relative; border-top: 1px dashed var(--rule); color: var(--ink-2); }
.feature li::before { content: "→"; position: absolute; left: 0; color: var(--accent); font-family: var(--mono); }
@media (max-width: 900px) { .feature { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 44px 0; } .feature .num { padding: 0; } }
/* a feature whose demo spans the full width under its text (the Data Explorer in an RStudio window) */
.feature-wide .feature-full { grid-column: 1 / -1; margin-top: 8px; }
.rs-phone { display: none; }
@media (max-width: 900px) { .rs-wide-only { display: none; } .rs-phone { display: block; } }

/* specimen cards: small, honest drawings of the product's own UI */
.specimen { background: var(--card); border: 1px solid var(--rule-2); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; font-size: 14px; }
.specimen-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--rule); font: 500 12.5px/1 var(--mono); color: var(--ink-3); background: var(--paper-2); }
.specimen-body { padding: 14px; }
.diff { font: 400 13px/1.7 var(--mono); }
.diff div { padding: 0 12px; white-space: pre-wrap; word-break: break-word; }
.diff .del { background: var(--bad-soft); color: var(--ink); }
.diff .add { background: var(--ok-soft); color: var(--ink); }
.diff .ln { display: inline-block; width: 2.4em; color: var(--ink-3); user-select: none; }
.specimen-actions { display: flex; gap: 8px; justify-content: flex-end; padding: 10px 14px; border-top: 1px solid var(--rule); }
.pill { font: 550 12.5px/1 var(--sans); padding: 7px 12px; border-radius: 7px; border: 1px solid var(--rule-2); background: var(--card); color: var(--ink); }
.pill.solid { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.log { font: 400 13px/1.75 var(--mono); color: var(--ink-2); }
.log .ok { color: var(--ok); }
.log .bad { color: var(--bad); }
.log .dim { color: var(--ink-3); }
.ctx { display: grid; gap: 8px; }
.ctx div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; border: 1px solid var(--rule); border-radius: 8px; background: var(--paper); font-size: 14px; }
.ctx span:last-child { font: 400 12.5px/1.6 var(--mono); color: var(--ink-3); text-align: right; }
.shot { border-radius: 12px; border: 1px solid var(--rule-2); box-shadow: var(--shadow); background: var(--card); width: 100%; height: auto; }

/* ---------- code block ---------- */
.code { position: relative; background: var(--night); color: #e9e5ee; border-radius: 12px; padding: 22px 22px; font: 400 14.5px/1.75 var(--mono); overflow-x: auto; border: 1px solid #2b2930; }
.code > div { white-space: pre; }
.code .c { color: #8f8a99; }
.code .s { color: #c7b8ff; }
.code .f { color: #ffd59e; }
.code .copy { position: absolute; top: 12px; right: 12px; font: 500 12px/1 var(--sans); color: #e9e5ee; background: #2b2930; border: 1px solid #3a3842; border-radius: 6px; padding: 7px 10px; cursor: pointer; }
.code .copy:hover { background: #3a3842; }
@media (max-width: 520px) { .code { padding: 50px 16px 18px; font-size: 13px; } .code > div { white-space: pre-wrap; overflow-wrap: anywhere; } }

/* ---------- quotes ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--rule); }
.quote { padding: 36px 32px 8px 0; margin: 0; }
.quote + .quote { padding-left: 32px; border-left: 1px solid var(--rule); }
.quote p { font: italic 400 1.45rem/1.35 var(--serif); color: var(--ink); margin-bottom: 18px; }
.quote footer { font-size: 14px; color: var(--ink-3); }
@media (max-width: 860px) { .quotes { grid-template-columns: minmax(0, 1fr); } .quote, .quote + .quote { padding: 28px 0 4px; border-left: 0; border-top: 1px solid var(--rule); } .quote:first-child { border-top: 0; } }

/* ---------- pricing ---------- */
.toggle { display: inline-flex; padding: 4px; background: var(--paper-2); border: 1px solid var(--rule); border-radius: 999px; gap: 2px; }
.toggle button { font: 550 14px/1 var(--sans); border: 0; background: none; color: var(--ink-2); padding: 10px 16px; border-radius: 999px; cursor: pointer; }
.toggle button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.toggle .save { font-size: 12px; color: var(--ok); margin-left: 6px; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 36px; }
.plan { background: var(--card); border: 1px solid var(--rule-2); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; position: relative; }
.plan.featured { border-color: var(--ink); box-shadow: var(--shadow); }
.plan .tag { position: absolute; top: -11px; left: 24px; font: 500 11.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; background: var(--ink); color: var(--paper); padding: 6px 9px; border-radius: 6px; }
.plan h3 { font-size: 1.6rem; margin-bottom: 4px; }
.plan .model { font: 400 13px/1.4 var(--mono); color: var(--ink-3); margin-bottom: 22px; }
.price { font: 400 3.2rem/1 var(--serif); letter-spacing: -0.02em; }
.price small { font: 400 15px/1 var(--sans); color: var(--ink-3); letter-spacing: 0; margin-left: 4px; }
.price-note { font-size: 13.5px; color: var(--ok); min-height: 20px; margin: 8px 0 20px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 26px; flex: 1; }
.plan li { padding: 9px 0 9px 24px; border-top: 1px dashed var(--rule); position: relative; font-size: 15px; color: var(--ink-2); }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.plan .fine { font-size: 12.5px; color: var(--ink-3); margin: 12px 0 0; }
.enterprise { margin-top: 18px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding: 26px 28px; border: 1px dashed var(--rule-2); border-radius: 16px; }
.enterprise h3 { margin: 0 0 4px; }
.enterprise p { margin: 0; color: var(--ink-2); }
@media (max-width: 920px) { .plans { grid-template-columns: minmax(0, 1fr); } }

/* ---------- FAQ ---------- */
.faq details { border-top: 1px solid var(--rule); padding: 4px 0; }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 36px 18px 0; font: 500 1.08rem/1.4 var(--sans); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 10px; top: 14px; font: 300 1.6rem/1 var(--sans); color: var(--ink-3); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 20px; color: var(--ink-2); max-width: 46em; }

/* ---------- forms / account ---------- */
.card { background: var(--card); border: 1px solid var(--rule-2); border-radius: 16px; padding: 28px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--rule); margin-bottom: 28px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { font: 550 15px/1 var(--sans); background: none; border: 0; color: var(--ink-3); padding: 14px 14px; cursor: pointer; box-shadow: inset 0 -2px 0 transparent; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--ink); }
.tabs a { font: 550 15px/1 var(--sans); color: var(--ink-3); padding: 14px 14px; text-decoration: none; box-shadow: inset 0 -2px 0 transparent; white-space: nowrap; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--ink); }
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field label { font-size: 14px; font-weight: 550; }
.field .hint { font-size: 13px; color: var(--ink-3); }
.input-row { display: flex; gap: 8px; }
input[type="email"], input[type="text"], input[type="password"], select, textarea { width: 100%; font: 400 16px/1.4 var(--sans); color: var(--ink); background: var(--paper); border: 1px solid var(--rule-2); border-radius: 10px; padding: 12px 14px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
textarea { min-height: 120px; resize: vertical; }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border: 1px solid var(--rule); border-radius: 12px; background: var(--paper); cursor: pointer; margin-bottom: 10px; font-size: 15px; color: var(--ink-2); }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.check b { color: var(--ink); }
.notice { border-radius: 10px; padding: 13px 15px; font-size: 15px; margin: 14px 0 0; border: 1px solid transparent; }
.notice.ok { background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 30%, transparent); }
.notice.bad { background: var(--bad-soft); border-color: color-mix(in srgb, var(--bad) 30%, transparent); }
.notice.info { background: var(--paper-2); border-color: var(--rule); }
.notice[hidden] { display: none; }
.meter { height: 10px; background: var(--paper-2); border-radius: 99px; overflow: hidden; border: 1px solid var(--rule); }
.meter > div { height: 100%; background: var(--ink); border-radius: 99px; width: 0; transition: width .6s ease; }
.meter.warn > div { background: #b7791f; }
.meter.full > div { background: var(--bad); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 18px 0; }
.stat { border: 1px solid var(--rule); border-radius: 12px; padding: 14px; background: var(--paper); }
.stat span { display: block; font-size: 12.5px; color: var(--ink-3); font-family: var(--mono); text-transform: uppercase; letter-spacing: .05em; }
.stat b { font: 400 1.7rem/1.2 var(--serif); }
@media (max-width: 560px) { .stats { grid-template-columns: minmax(0, 1fr); } .card { padding: 20px; } }

/* ---------- prose (legal, security, changelog) ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.9rem; margin-top: 2.2em; }
.prose h3 { font-size: 1.3rem; margin-top: 1.8em; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: 0.35em 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 1em 0 1.6em; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-top: 1px solid var(--rule); vertical-align: top; }
.prose th { font-weight: 600; color: var(--ink); background: var(--paper-2); }
.toc { position: sticky; top: 92px; font-size: 14px; }
.toc a { display: block; padding: 6px 0; color: var(--ink-3); text-decoration: none; }
.toc a:hover { color: var(--ink); }
.doc-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; }
/* comparison tables (compare.html, vs-positron.html) */
.table-scroll { overflow-x: auto; margin: 1em 0 1.6em; border: 1px solid var(--rule); border-radius: 12px; background: var(--card); }
.table-scroll .cmp { margin: 0; min-width: 640px; font-size: 14px; }
.cmp th, .cmp td { border-top: 1px solid var(--rule); }
.cmp tr:first-child th { border-top: 0; }
.cmp th:nth-child(2), .cmp td:nth-child(2) { background: color-mix(in srgb, var(--accent) 7%, transparent); }
.cmp td:first-child { color: var(--ink); font-weight: 500; }
.cmp-yes { color: var(--ok); font-weight: 600; }
.cmp-no { color: var(--ink-3); }
.small { font-size: 13px; }
@media (max-width: 640px) {
  .table-scroll { overflow: visible; border: 0; background: none; border-radius: 0; }
  .table-scroll .cmp { min-width: 0; display: block; }
  .cmp tbody { display: block; }
  .cmp tr:first-child { display: none; }
  .cmp tr { display: block; margin: 0 0 12px; border: 1px solid var(--rule); border-radius: 12px; background: var(--card); overflow: hidden; }
  .cmp td { display: grid; grid-template-columns: minmax(0, 40%) minmax(0, 1fr); gap: 12px; padding: 9px 14px; }
  .cmp td:first-child { display: block; border-top: 0; background: var(--paper-2); font-weight: 600; }
  .cmp td::before { content: attr(data-label); color: var(--ink-3); font-size: 13px; }
  .cmp td:first-child::before { content: none; }
  .cmp td:nth-child(2) { background: color-mix(in srgb, var(--accent) 7%, transparent); }
}
@media (max-width: 900px) { .doc-grid { grid-template-columns: minmax(0, 1fr); } .toc { display: none; } }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 24px; padding: 26px 0; border-top: 1px solid var(--rule); }
.timeline .ver { font: 500 14px/1.6 var(--mono); color: var(--ink-3); }
.timeline h3 { font-size: 1.3rem; margin-bottom: 8px; }
.timeline p { margin: 0; color: var(--ink-2); }
@media (max-width: 640px) { .timeline li { grid-template-columns: minmax(0, 1fr); gap: 6px; } }

/* ---------- people / press ---------- */
.people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.person img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; border-radius: 14px; filter: grayscale(1) contrast(1.05); border: 1px solid var(--rule-2); }
.person h3 { margin: 18px 0 6px; font-size: 1.7rem; }
.person p { color: var(--ink-2); }
.person .links { display: flex; gap: 16px; font-size: 15px; }
.press { display: grid; gap: 0; }
.press article { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 28px; padding: 34px 0; border-top: 1px solid var(--rule); }
.press .meta { font: 400 13px/1.6 var(--mono); color: var(--ink-3); }
.press iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 12px; margin-top: 14px; }
@media (max-width: 720px) { .people { grid-template-columns: minmax(0, 1fr); } .press article { grid-template-columns: minmax(0, 1fr); gap: 6px; } }

/* ---------- footer ---------- */
.site-footer { background: var(--night); color: var(--night-ink-2); padding: 72px 0 36px; font-size: 15px; }
.site-footer .wordmark { background: var(--night-ink); height: 40px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); gap: 32px; }
.foot-grid h4 { color: var(--night-ink); font-size: 13px; font-family: var(--mono); font-weight: 500; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.foot-grid a, .foot-grid button.linkish { display: block; color: var(--night-ink-2); text-decoration: none; padding: 5px 0; background: none; border: 0; font: inherit; cursor: pointer; text-align: left; }
.foot-grid a:hover, .foot-grid button.linkish:hover { color: var(--night-ink); }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 24px; border-top: 1px solid #2c2a31; font-size: 13.5px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* ---------- modal ---------- */
dialog.modal { border: 1px solid var(--rule-2); border-radius: 16px; padding: 0; width: min(560px, calc(100vw - 32px)); background: var(--card); color: var(--ink); box-shadow: 0 30px 80px -20px rgba(0,0,0,.45); }
dialog.modal::backdrop { background: rgba(20, 19, 23, .45); backdrop-filter: blur(2px); }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--rule); }
.modal-head h3 { margin: 0; }
.modal-body { padding: 22px 24px 24px; }
.icon-btn { background: none; border: 1px solid var(--rule); width: 36px; height: 36px; border-radius: 8px; cursor: pointer; color: var(--ink); font-size: 18px; line-height: 1; }
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; opacity: 0; pointer-events: none; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- misc ---------- */
.cta-band { text-align: center; }
.cta-band h2 { max-width: 16em; margin: 0 auto 18px; }
.cta-band .hero-actions { justify-content: center; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
.split > * { min-width: 0; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; position: relative; padding: 0 0 26px 52px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--rule-2); display: grid; place-items: center; font: 500 14px/1 var(--mono); color: var(--ink-2); background: var(--card); }
.steps h4 { margin: 4px 0 6px; }
.steps p { color: var(--ink-2); margin: 0; }
.tick-list { list-style: none; padding: 0; margin: 0; }
.tick-list li { padding: 10px 0 10px 28px; position: relative; border-top: 1px dashed var(--rule); color: var(--ink-2); }
.tick-list li::before { content: "✓"; position: absolute; left: 2px; color: var(--ok); font-weight: 700; }
.cross-list li::before { content: "✕"; color: var(--bad); }
.badge { display: inline-block; font: 500 11.5px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; padding: 5px 8px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); vertical-align: middle; }
.agree-points { margin: 0 0 16px; padding: 0 0 0 20px; display: grid; gap: 10px; font-size: 15px; color: var(--ink-2); }
.agree-points b { color: var(--ink); }
