/* =======================================================================
   SITE THEME (2026-11-09): brings every styles.css page in line with the
   homepage (index.html).

   Loaded on every page that loads styles.css, AFTER styles.css and
   site-chrome.css. It does not add components; it re-skins the existing
   ones so the product pages, blog, FAQ and 404 read as the same site:

   - Instrument Sans for headlines and reading text, IBM Plex Mono for data
     and labels (no serif anywhere).
   - Headlines in one color: no accent-colored words.
   - Left-aligned heroes on a faint dot grid; no cursor glow, no gradients,
     no glowing dots, no lift-on-hover cards.
   - Buttons, cards, code blocks, inputs and rules use the homepage values.
   - Product colors (Lupine violet, P95 coral, NinetyFive mint) stay as
     small marks only: the kicker square, code labels, list bullets.

   If you change a value here, bump ?v= on this file's <link> everywhere.
   ======================================================================= */

:root {
  --font-serif: "Instrument Sans", "Helvetica Neue", Helvetica, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-sans:  "Instrument Sans", "Helvetica Neue", Helvetica, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-mono:  "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --color-blue:  #4B8DE0;
  --color-blue-rgb: 75, 141, 224;
  --color-slate: #A29D94;   /* reading text, as on the homepage */
  --color-dim:   #6E6A63;
  --color-hair:  #2A2A26;
  --color-quote: #DCD8D0;

  --t-muted: #8A867E;       /* captions and labels */
  --t-rule:  #1E1E1B;       /* section rules */
  --t-card:  #0F0F0E;
  --t-card-2:#161614;
  --t-link:  #7FADEC;

  --page-max: 1280px;
  --page-pad: clamp(20px, 4vw, 56px);
  --radius: 8px;
  --rd-radius: 10px;
  --rd-radius-lg: 14px;
  --rd-radius-pill: 8px;
}
@media (max-width: 720px) { :root { --page-pad: 20px; } }

body {
  background-image: none;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: rgba(75, 141, 224, 0.35); }
.serif, .serif-italic { font-family: var(--font-sans); font-style: normal; }

/* ---------- Headlines: one family, one color, tight ---------- */
.hero-headline, .rd-title, .rd-cta-title, .rd-wedge-title, .post-title,
.post-body h2, .post-body h3, .modal-heading, .card-name {
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--color-paper);
}
:is(.hero-headline, .rd-title, .rd-cta-title, .rd-wedge-title, .post-title, .post-body h2, .modal-heading)
  :is(.accent, .accent-page, em) { color: inherit; font-style: normal; }

/* ---------- Hero: left-aligned, dot grid, no glow ---------- */
.hero, .hero.rd-hero-interior {
  text-align: left;
  max-width: var(--page-max);
  padding: clamp(56px, 8vw, 104px) var(--page-pad) clamp(48px, 6vw, 80px);
}
.hero::before {
  background: radial-gradient(circle, #24231F 1px, transparent 1.2px) -11px -11px / 22px 22px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.55) 45%, transparent 85%);
          mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.55) 45%, transparent 85%);
}
.hero-v2::after, .rd-perimeter-glow, .rd-box-glow { display: none; }
.hero-headline, .hero.rd-hero-interior .hero-headline, .hero-v2 .hero-headline {
  font-size: clamp(42px, 6.4vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  max-width: 18ch;
  margin: 0 0 28px;
  text-wrap: balance;
}
.hero-sub, .hero-v2 .hero-sub {
  margin: 0 0 32px;
  max-width: 36em;
  color: var(--color-slate);
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.5;
  text-wrap: pretty;
}
.hero-ctas, .rd-cta .hero-ctas { justify-content: flex-start; gap: 12px; }
.hero-note { font-size: 12px; letter-spacing: 0.02em; color: var(--t-muted); text-align: left; }
.hero-note a { color: var(--color-paper); }

/* ---------- Kickers and eyebrows: small mono label + colored square ---------- */
.rd-hero-chip, .eyebrow, .rd-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 400;
  letter-spacing: 0.08em; color: var(--t-muted);
  border: 0; border-radius: 0; padding: 0; background: none;
}
.eyebrow.accent, .eyebrow.muted { color: var(--t-muted); }
.rd-hero-chip::before, .eyebrow::before, .rd-eyebrow::before,
.rd-head.is-centered .rd-eyebrow::before {
  content: ""; display: block; flex: none;
  width: 8px; height: 8px; border-radius: 2px;
  background: var(--accent, var(--color-blue)); opacity: 1;
}
.rd-hero-chip .pulse-dot { display: none; }
.hero .eyebrow, .hero .rd-hero-chip, .hero.rd-hero-interior .rd-hero-chip { margin: 0 0 24px; }
.rd-eyebrow { margin: 0 0 20px; }

/* ---------- Sections ---------- */
.rd-section { padding: clamp(72px, 9vw, 120px) var(--page-pad); }
.product-section { padding: clamp(56px, 7vw, 96px) var(--page-pad); }
.rd-divider, .product-section + .product-section { border-top-color: var(--t-rule); }
.rd-head, .rd-head.is-centered { max-width: 820px; margin: 0 0 clamp(36px, 4vw, 56px); text-align: left; }
.rd-head.is-centered .rd-sub { margin-left: 0; }
.rd-title {
  font-size: clamp(32px, 4.2vw, 52px); line-height: 1.04; letter-spacing: -0.035em;
  max-width: 20ch; margin: 0 0 18px;
}
.rd-sub { color: var(--color-slate); font-size: 18px; line-height: 1.55; max-width: 36em; }

/* ---------- Buttons: homepage values ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 22px; border-radius: 8px;
  font-family: var(--font-sans); font-weight: 600; font-size: 16px; letter-spacing: 0; line-height: 1;
  box-shadow: none; transform: none;
  transition: background-color 120ms ease, border-color 120ms ease;
}
.btn:hover { transform: none; box-shadow: none; }
.btn-lg { height: 52px; padding: 0 26px; font-size: 16px; }
.btn-primary, .btn-primary-page {
  background: var(--color-paper); color: var(--color-ink); border-color: transparent; box-shadow: none; opacity: 1;
}
.btn-primary:hover, .btn-primary-page:hover { background: #FFFFFF; opacity: 1; box-shadow: none; transform: none; }
.btn-secondary {
  background: transparent; color: var(--color-paper); border-color: var(--color-hair);
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.btn-secondary:hover { border-color: var(--color-dim); transform: none; }
.btn:focus-visible { outline: 2px solid var(--color-blue); outline-offset: 3px; }

/* ---------- Cards: flat, one border, no lift ---------- */
.feature-card, .post-card, .faq-item, .rd-usecase, .rd-box-feature, .rd-wedge-inner, .rd-figure-card {
  background: var(--t-card);
  border: 1px solid var(--color-hair);
  border-radius: var(--rd-radius);
  box-shadow: none;
  transform: none;
  transition: border-color 120ms ease;
}
.feature-card:hover, .post-card:hover, .rd-usecase:hover, .rd-box-feature:hover {
  border-color: var(--color-dim); box-shadow: none; transform: none;
}
.feature-card { padding: 26px 24px; }
.feature-title, .rd-usecase-title, .step-title, .rd-box-item-t {
  font-family: var(--font-sans); font-weight: 600; font-size: 19px; line-height: 1.3;
  letter-spacing: -0.01em; color: var(--color-paper); text-transform: none;
}
.feature-desc, .rd-usecase-desc, .step-desc, .rd-box-item-d, .card-desc { color: var(--color-slate); font-size: 15.5px; line-height: 1.55; }
.rd-node-dot, .rd-box-dot { box-shadow: none; }
.rd-node { border-radius: 8px; }

/* Stats */
.stat-num, .stat-title { font-family: var(--font-sans); }
.stat-num { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.stat-line { color: var(--color-slate); font-style: normal; }
.rd-stats { background: none; border-color: var(--t-rule); }
.rd-stat-num {
  background: none; -webkit-background-clip: border-box; background-clip: border-box;
  color: var(--color-paper); -webkit-text-fill-color: currentColor; font-weight: 500;
}

/* Steps and spec rows */
.step-item, .step-item:last-child, .spec-row, .spec-row:last-child { border-color: var(--t-rule); }
.step-num { font-weight: 400; color: var(--t-muted); }
.spec-key { color: var(--color-paper); }

/* Closing CTA band */
.rd-cta-inner {
  background: var(--t-card); border: 1px solid var(--color-hair); border-radius: var(--rd-radius-lg);
  text-align: left; padding: clamp(32px, 5vw, 56px); box-shadow: none;
}
.rd-cta-inner::before, .rd-cta-inner::after { display: none; }
.rd-cta-title { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.06; letter-spacing: -0.03em; }
.rd-cta-sub { margin: 0 0 28px; max-width: 36em; color: var(--color-slate); }
.rd-compare-wrap { background: var(--t-card); border-radius: var(--rd-radius); }
.rd-compare th, .rd-compare td { border-color: var(--t-rule); }

/* ---------- Code ---------- */
.code-block {
  background: var(--t-card-2); border: 1px solid var(--color-hair); border-radius: 8px;
  font-size: 13px; line-height: 1.65; color: #DCD8D0;
}
.code-label { font-size: 12px; letter-spacing: 0.02em; }

/* ---------- Blog listing ---------- */
.post-grid { max-width: none; gap: 16px; }
.post-card { padding: 22px 24px; }
.post-date { font-size: 12px; letter-spacing: 0.02em; color: var(--t-muted); }
.post-title { font-size: 22px; line-height: 1.22; letter-spacing: -0.02em; }
.post-excerpt { color: var(--color-slate); font-size: 15px; }
.post-read-more { font-family: var(--font-sans); font-weight: 600; font-size: 14.5px; color: var(--t-link); }
.post-card-graphic { background: var(--t-card-2); }

/* ---------- Blog posts ---------- */
.post-meta { font-size: 12px; letter-spacing: 0.02em; color: var(--t-muted); }
.post-body p, .post-body ul, .post-body ol { color: var(--color-slate); font-size: 17px; line-height: 1.7; }
.post-body h2 { font-size: clamp(26px, 2.6vw, 32px); line-height: 1.15; letter-spacing: -0.025em; margin: 56px 0 18px; }
.post-body h3 { font-size: 20px; letter-spacing: -0.01em; }
.post-body a { color: var(--t-link); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: rgba(127, 173, 236, 0.45); }
.post-body a:hover { text-decoration-color: var(--t-link); }
.post-body code, .faq-answer code { background: var(--t-card-2); border: 1px solid var(--color-hair); border-radius: 4px; }
.post-figure svg { background: var(--t-card); border-color: var(--color-hair); border-radius: var(--rd-radius); }
.post-figcaption { font-size: 12px; color: var(--t-muted); }
.post-table-wrap { border-color: var(--color-hair); border-radius: var(--rd-radius); }
.post-table-wrap thead { background: var(--t-card); }
.post-table-wrap th { color: var(--t-muted); letter-spacing: 0.06em; }
.post-table-wrap th, .post-table-wrap td { border-color: var(--t-rule); }
.post-table-wrap tbody tr:nth-child(even) { background: rgba(240, 238, 232, 0.02); }

/* ---------- FAQ ---------- */
.faq-category-title { font-size: 12px; letter-spacing: 0.08em; color: var(--t-muted); }
.faq-item { padding: 0 24px; }
.faq-item[open] { border-color: var(--color-dim); }
.faq-question { font-family: var(--font-sans); font-size: 17.5px; letter-spacing: -0.01em; }
.faq-icon::before, .faq-icon::after { background: var(--t-muted); }
.faq-answer { color: var(--color-slate); font-size: 16px; }

/* ---------- Signup modal: matches the homepage beta form ---------- */
.modal-overlay { background: rgba(11, 11, 10, 0.8); }
.modal { background: var(--t-card); border: 1px solid var(--color-hair); border-radius: 14px; padding: 32px; }
.modal-heading { font-size: 24px; letter-spacing: -0.02em; margin: 0 0 22px; }
.modal-label { font-family: var(--font-sans); font-size: 13.5px; font-weight: 500; letter-spacing: 0; color: var(--color-paper); }
.modal-input {
  height: 46px; padding: 0 14px; font-size: 16px;
  background: var(--color-ink); border: 1px solid var(--color-hair); border-radius: 8px;
}
.modal-input:focus { border-color: var(--color-blue); box-shadow: 0 0 0 1px var(--color-blue); }
.modal-submit { width: 100%; }

/* ---------- Layout alignment: everything hangs off the left edge, as on
   the homepage. The reading column stays 720px but is no longer centered,
   so it lines up under the hero headline. ---------- */
.hero + .product-section { padding-top: 8px; }
.post-meta, .post-body, .post-figure, .post-table-wrap { margin-left: 0; margin-right: auto; }
.post-body { max-width: 740px; }
#post .feature-grid { margin: 8px 0 48px; }

/* ---------- Blog posts: one centered reading column. The eyebrow, title,
   meta line, body, figures and tables all share the same 740px column,
   centered on the page. The hero stays full width so the dot grid does. ---------- */
.hero:has(+ #post) { padding-bottom: clamp(32px, 4vw, 48px); }
.hero:has(+ #post) > *,
#post .post-meta, #post .post-body, #post .post-figure, #post .post-table-wrap {
  max-width: 740px;
  margin-left: auto;
  margin-right: auto;
}
.hero:has(+ #post) .eyebrow { display: flex; }
.hero:has(+ #post) .hero-headline {
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.02;
  margin-bottom: 0;
}
#post .feature-grid { max-width: 740px; margin: 8px auto 48px; }
