/* ══════════════════════════════════════════════════════════
   NOAH WIRE — light editorial design system ("daylight wire")
   Warm newsprint, telegraph blue, wire red. No near-black pages.
   Self-contained: does NOT load alongside style.css.
   ══════════════════════════════════════════════════════════ */

:root {
  /* paper & ink */
  --paper:      #F7F3EB;   /* page background — warm newsprint */
  --paper-hi:   #FDFBF6;   /* cards, raised surfaces */
  --paper-mid:  #F2EDE2;   /* alternating bands */
  --ink:        #1C1A15;   /* headline ink — warm black, never pure */
  --ink-body:   #453F35;   /* body text */
  --ink-mute:   #8A8175;   /* captions, metadata */
  --rule:       #DDD4C3;   /* hairlines */
  --rule-soft:  #E9E2D3;

  /* accents */
  --accent:      #17456E;  /* telegraph blue */
  --accent-ink:  #FFFFFF;
  --accent-soft: #E4EBF1;
  --accent-line: #D3DEE7;
  --red:         #B23A1E;  /* wire-service red — live marks, flashes */
  --red-deep:    #932F16;

  /* type */
  --display: 'Libre Caslon Text', Georgia, 'Times New Roman', serif;
  --sans:    'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono:    'IBM Plex Mono', ui-monospace, 'SF Mono', monospace;

  /* metrics */
  --max: 1240px;
  --nav-height: 68px;
  --section-pad: clamp(72px, 9vw, 116px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* ── legacy token aliases ──
     chat.css and docs.css are entirely token-driven with no hardcoded colours,
     so re-pointing these at the paper palette themes both widgets for free. */
  --font-display: var(--display);
  --font-body:    var(--sans);
  --font-mono:    var(--mono);
  --font-logo:    var(--sans);

  --bg-primary:   var(--paper);
  --bg-secondary: var(--paper-hi);
  --bg-tertiary:  var(--paper-mid);
  --bg-card:      var(--paper-hi);
  --bg-card-hover: var(--paper-mid);
  --surface:      var(--paper-hi);
  --surface-muted: var(--paper-mid);

  --text-primary:   var(--ink);
  --text-secondary: var(--ink-body);
  --text-tertiary:  var(--ink-mute);
  --text-inverse:   var(--paper-hi);

  --border:        var(--rule);
  --border-light:  var(--rule-soft);
  --border-accent: var(--accent-line);

  --accent-light:  var(--accent);
  --accent-dark:   #10334F;
  --accent-subtle: var(--accent-soft);
  --accent-glow:   rgba(23, 69, 110, .12);

  /* the old type scale, kept verbatim — interior pages and the generated
     article template use these inside clamp() and would break without them */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;
  --text-7xl: 4.5rem;
  --text-hero: clamp(2.5rem, 6vw, 5rem);
  --text-stat: clamp(2.5rem, 5vw, 4.5rem);
  --section-padding: var(--section-pad);
  --content-narrow: 820px;

  --gradient-hero:    linear-gradient(180deg, var(--paper) 0%, var(--paper-hi) 100%);
  --gradient-section: linear-gradient(180deg, var(--paper-hi) 0%, var(--paper) 100%);
  --gradient-accent:  linear-gradient(135deg, #10334F 0%, var(--accent) 100%);
  --shadow-glow: 0 0 40px var(--accent-glow);

  --duration-fast: .3s;
  --duration-normal: .6s;
  --duration-slow: .9s;
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --content-max: var(--max);
  --shadow-sm: 0 1px 2px rgba(28, 26, 21, .08);
  --shadow-md: 0 6px 18px -10px rgba(28, 26, 21, .3);
  --shadow-lg: 0 18px 50px -24px rgba(28, 26, 21, .4);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 16px);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  background: var(--paper);
  color: var(--ink-body);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: var(--accent-ink); }

/* faint paper grain over the whole page — this is what stops it reading as a SaaS site */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 999; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .028 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, video { max-width: 100%; display: block; }
a { color: var(--accent); }


/* ─────────────────────────  TYPE  ───────────────────────── */

h1, h2, h3 { font-family: var(--display); color: var(--ink); font-weight: 700; }
h1 { font-size: clamp(40px, 5.2vw, 68px); line-height: 1.04; letter-spacing: -.015em; }
h2 { font-size: clamp(29px, 3.4vw, 46px); line-height: 1.12; letter-spacing: -.01em; }
h3 { font-size: clamp(20px, 2vw, 25px); line-height: 1.25; }
h1 em, h2 em, h3 em { font-style: italic; font-weight: 400; color: var(--accent); }

p { margin-bottom: 1.1em; }
p:last-child { margin-bottom: 0; }
strong { color: var(--ink); font-weight: 600; }

.eyebrow {
  font-family: var(--mono); font-size: 11.5px; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; color: var(--accent);
  display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 26px; height: 1.5px; background: var(--accent); flex: none; }
.eyebrow--center { display: flex; justify-content: center; }

.lede { font-size: 17.5px; line-height: 1.7; color: var(--ink-body); max-width: 580px; }
.lede strong { color: var(--ink); }

.text-accent { color: var(--accent); }
.text-muted  { color: var(--ink-mute); }
.text-center { text-align: center; }


/* ─────────────────────────  LAYOUT  ───────────────────────── */

.container { max-width: var(--max); margin: 0 auto; padding: 0 32px; }
@media (max-width: 640px) { .container { padding: 0 20px; } }

.section { padding: var(--section-pad) 0; }
.section--band {
  background: var(--paper-hi);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.section--tint { background: var(--paper-mid); }

.grid { display: grid; gap: 26px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid--2, .grid--3 { grid-template-columns: 1fr; } }

.flex { display: flex; }
.flex--between { display: flex; justify-content: space-between; align-items: flex-end; }
.flex--center { display: flex; justify-content: center; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}


/* ─────────────────────────  BUTTONS  ───────────────────────── */

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-weight: 600; font-size: 14px; line-height: 1;
  padding: 14px 24px; border-radius: 4px;   /* squared-ish: editorial, not SaaS pill */
  text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; transition: all .18s ease;
}
.btn svg { flex: none; }
.btn--primary { background: var(--ink); color: var(--paper-hi); border-color: var(--ink); }
.btn--primary:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn--accent { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn--accent:hover { background: #10334f; border-color: #10334f; }
.btn--ghost, .btn--secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover, .btn--secondary:hover { border-color: var(--accent); color: var(--accent); }


/* ─────────────────────────  NAV  ───────────────────────── */

/* Default state is the PAPER nav — ink on newsprint. Most pages (contact,
   legal, docs, news, articles) have no video behind the bar, and a cream nav
   would be invisible on them. The light-on-dark variant is opted into further
   down, only by pages that actually open with footage. */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--nav-height);
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
  background: rgba(247, 243, 235, .94);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.nav__inner {
  max-width: var(--max); height: 100%; margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.nav__logo {
  font-family: var(--sans); font-weight: 700; font-size: 14px;
  letter-spacing: .26em; text-transform: uppercase;
  text-decoration: none; color: var(--ink); white-space: nowrap;
  transition: color .3s ease;
}
.nav__links { display: flex; align-items: center; gap: 26px; list-style: none; }
.nav__link {
  font-size: 13.5px; font-weight: 500; text-decoration: none;
  color: var(--ink); opacity: .88; transition: opacity .18s, color .3s ease;
}
.nav__link:hover { opacity: 1; }
.nav__link.active { color: var(--accent); opacity: 1; }
.nav__ext-mark { font-size: 10px; opacity: .7; }
.nav__login {
  font-size: 13.5px; font-weight: 500; text-decoration: none;
  color: var(--ink); opacity: .88; transition: color .3s ease;
}
.nav__cta {
  font-size: 13.5px; font-weight: 600; text-decoration: none;
  padding: 9px 18px; border-radius: 4px;
  background: var(--ink); color: var(--paper-hi);
  border: 1.5px solid var(--ink); transition: all .18s ease;
}
.nav__cta:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.nav.scrolled { box-shadow: 0 6px 24px -18px rgba(28, 26, 21, .5); }

/* Light-on-dark nav — ONLY while a video hero is still under the bar.
   Keyed off the hero itself so a page can never opt in by accident:
   `header.hero` is the homepage, `.hero--video` the interior product pages. */
body:has(> header.hero) .nav:not(.scrolled),
body:has(.hero--video) .nav:not(.scrolled) {
  background: transparent; border-bottom-color: transparent;
  backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none;
}
body:has(> header.hero) .nav:not(.scrolled) .nav__logo,
body:has(> header.hero) .nav:not(.scrolled) .nav__link,
body:has(> header.hero) .nav:not(.scrolled) .nav__login,
body:has(.hero--video) .nav:not(.scrolled) .nav__logo,
body:has(.hero--video) .nav:not(.scrolled) .nav__link,
body:has(.hero--video) .nav:not(.scrolled) .nav__login { color: #F5F1E8; }
body:has(> header.hero) .nav:not(.scrolled) .nav__cta,
body:has(.hero--video) .nav:not(.scrolled) .nav__cta {
  background: #F5F1E8; color: var(--ink); border-color: #F5F1E8;
}
body:has(> header.hero) .nav:not(.scrolled) .nav__toggle span,
body:has(.hero--video) .nav:not(.scrolled) .nav__toggle span { background: #F5F1E8; }

.nav__toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 30px; height: 22px; flex-direction: column; justify-content: space-between; padding: 3px 0;
}
.nav__toggle span { display: block; height: 1.5px; width: 100%; background: var(--ink); transition: all .25s ease; }
.nav__toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.active span:nth-child(2) { opacity: 0; }
.nav__toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
  position: fixed; top: var(--nav-height); left: 0; right: 0;
  background: var(--paper); border-bottom: 1px solid var(--rule);
  padding: 12px 24px 24px; display: none; flex-direction: column; gap: 2px;
  max-height: calc(100vh - var(--nav-height)); overflow-y: auto;
}
.nav__mobile.open { display: flex; }
.nav__mobile a {
  padding: 13px 0; text-decoration: none; color: var(--ink);
  font-size: 15px; font-weight: 500; border-bottom: 1px solid var(--rule-soft);
}
@media (max-width: 1080px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
}


/* ─────────────────────────  HERO  ───────────────────────── */

header.hero {
  position: relative; min-height: 660px; height: 96vh;
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden; color: #F5F1E8;
}
header.hero .hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }

/* warm grade so the footage sits inside the paper palette */
header.hero .hero__grade {
  position: absolute; inset: 0; z-index: 1;
  background: rgba(180, 140, 90, .12); mix-blend-mode: multiply;
}
/* the daylight wash — dark only at the very top, dissolving into paper at the foot */
header.hero .hero__wash {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg,
    rgba(20, 26, 32, .52) 0%,
    rgba(20, 26, 32, .17) 34%,
    rgba(20, 26, 32, .10) 55%,
    rgba(247, 243, 235, 0) 72%,
    rgba(247, 243, 235, .92) 96%,
    var(--paper) 100%);
}
header.hero .hero__inner {
  position: relative; z-index: 2;
  max-width: var(--max); width: 100%; margin: 0 auto; padding: 0 32px;
}
header.hero .eyebrow { color: #F0E9DB; }
header.hero .eyebrow::before { background: #F0E9DB; }
header.hero .hero__headline {
  color: #FBF8F1; max-width: 14ch; margin-top: 18px;
  text-shadow: 0 2px 30px rgba(15, 18, 22, .38);
}
/* the italic word is the one deliberate warm accent in the hero — beige, not
   white. It carries a heavier shadow than the roman text because it sits over
   the brightest part of the footage, where beige has the least contrast. */
header.hero .hero__headline em { color: #E8D9B8; text-shadow: 0 2px 22px rgba(15, 18, 22, .62); }
header.hero .hero__subtitle {
  font-size: 17.5px; line-height: 1.7; color: #EDE8DC; max-width: 600px;
  margin: 22px 0 30px; text-shadow: 0 1px 18px rgba(15, 18, 22, .55);
}
header.hero .hero__subtitle strong { color: #FBF8F1; font-weight: 600; }
/* bottom margin must clear the stats plate, which is lifted 76px over the hero foot */
header.hero .hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 118px; }
header.hero .btn--primary { background: #F5F1E8; color: var(--ink); border-color: #F5F1E8; }
header.hero .btn--primary:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
header.hero .btn--ghost { color: #F5F1E8; border-color: rgba(245, 241, 232, .7); }
header.hero .btn--ghost:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }

/* Stats plate straddles the video/paper hand-off.
   It lives OUTSIDE <header class="hero"> — the hero needs overflow:hidden to crop
   the video, which would otherwise clip the bottom half of the plate and eat the
   labels. A negative margin lifts it back over the foot of the hero instead. */
.hero__stats-rail {
  position: relative; z-index: 3;
  width: 100%; max-width: var(--max); margin: -76px auto 0; padding: 0 32px;
}
.stats-bar {
  background: var(--paper-hi); border: 1px solid var(--rule); border-radius: 6px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  box-shadow: 0 18px 50px -18px rgba(28, 26, 21, .28);
}
.stat { padding: 26px 30px; border-right: 1px solid var(--rule-soft); }
.stat:last-child { border-right: none; }
.stat__number {
  font-family: var(--display); font-weight: 700; color: var(--ink);
  font-size: clamp(28px, 3vw, 38px); line-height: 1; display: block;
}
.stat__number .unit { font-style: normal; color: var(--accent); }
.stat__label { display: block; margin-top: 9px; font-size: 12.5px; line-height: 1.5; color: var(--ink-mute); }
@media (max-width: 900px) {
  header.hero { height: auto; min-height: 0; padding-top: 140px; }
  .hero__stats-rail { margin-top: -48px; }
  .stats-bar { grid-template-columns: 1fr 1fr; }
  .stat { border-bottom: 1px solid var(--rule-soft); }
  .stat:nth-child(2n) { border-right: none; }
  .stat:nth-last-child(-n+2) { border-bottom: none; }
}
@media (max-width: 480px) {
  .stats-bar { grid-template-columns: 1fr; }
  .stat { border-right: none; }
  .stat:nth-child(3) { border-bottom: 1px solid var(--rule-soft); }
}


/* ── plain paper hero — terms, SLA, privacy, bot-info ──
   These are <section class="hero section--dark"> with no video behind them.
   They must NOT pick up the video hero's light-on-dark colours or its 96vh
   height, and they carry no .container of their own, so the horizontal
   padding has to come from here. */
section.hero:not(.hero--video) {
  display: block; height: auto; min-height: 0; overflow: visible; color: var(--ink-body);
  max-width: var(--max); margin: 0 auto; padding-left: 32px; padding-right: 32px;
}
section.hero:not(.hero--video) .hero__headline {
  color: var(--ink); max-width: none; margin-top: 16px; text-shadow: none;
}
section.hero:not(.hero--video) .hero__headline em { color: var(--accent); }
section.hero:not(.hero--video) .hero__subtitle {
  font-size: 17.5px; line-height: 1.7; color: var(--ink-body);
  margin: 18px 0 0; text-shadow: none;
}
@media (max-width: 640px) {
  section.hero:not(.hero--video) { padding-left: 20px; padding-right: 20px; }
}

/* ─────────────────────────  LIVE WIRE SHEET  ───────────────────────── */

.wire-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; margin-top: 44px; }
@media (max-width: 1000px) { .wire-layout { grid-template-columns: 1fr; gap: 34px; } }

.wire-sheet {
  background: var(--paper-hi); border: 1px solid var(--rule); border-radius: 6px;
  padding: 10px 30px 18px; box-shadow: 0 14px 40px -20px rgba(28, 26, 21, .2);
}
@media (max-width: 640px) { .wire-sheet { padding: 10px 18px 14px; } }

.wire-sheet__head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 14px 0 10px; border-bottom: 2px solid var(--ink);
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-mute);
}
.live-badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 10.5px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--red);
}
.live-badge__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: pulse-live 1.6s infinite; }
@keyframes pulse-live { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.wire-sheet__stamp { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); }

.wire-filters { display: flex; gap: 8px; flex-wrap: wrap; padding: 14px 0 6px; }
.fchip {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 3px; border: 1px solid var(--rule);
  background: transparent; color: var(--ink-mute); cursor: pointer; transition: all .15s;
}
.fchip:hover { border-color: var(--ink-mute); color: var(--ink); }
.fchip.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.feed-item {
  display: grid; grid-template-columns: 88px 1fr; gap: 14px;
  padding: 14px 0; border-bottom: 1px solid var(--rule-soft);
  animation: feed-rise .45s ease both;
}
.feed-item:last-child { border-bottom: none; }
@keyframes feed-rise { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.feed-item__ts { font-family: var(--mono); font-size: 11px; color: var(--ink-mute); padding-top: 3px; white-space: nowrap; }
.feed-item__meta { display: flex; gap: 8px; margin-bottom: 5px; flex-wrap: wrap; }
.tag {
  font-family: var(--mono); font-size: 9.5px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; padding: 2.5px 8px; border-radius: 3px;
  color: var(--accent); border: 1px solid currentColor; opacity: .9;
}
.tag--flash { color: var(--red); }
.tag--ok { color: var(--ink-mute); }
.feed-item__title { font-family: var(--sans); font-size: 14px; font-weight: 600; line-height: 1.5; color: var(--ink); }
.feed-item__title a { color: inherit; text-decoration: none; }
.feed-item__title a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.feed-item__src { font-family: var(--mono); font-size: 10.5px; color: var(--ink-mute); margin-top: 3px; }
@media (max-width: 640px) {
  .feed-item { grid-template-columns: 1fr; gap: 4px; }
  .feed-item__ts { padding-top: 0; }
}

.wire-side { display: flex; flex-direction: column; gap: 24px; }
.note-card { background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: 6px; padding: 26px 28px; }
.note-card h3 { font-size: 21px; margin-bottom: 10px; }
.note-card p { font-size: 14px; color: var(--ink-body); margin-bottom: 14px; }
.note-card a { font-size: 13.5px; font-weight: 600; color: var(--accent); text-decoration: none; }
.note-card a:hover { text-decoration: underline; text-underline-offset: 3px; }

.pull-quote blockquote {
  font-family: var(--display); font-style: italic; font-size: 20px; line-height: 1.5;
  color: var(--ink); border-left: 3px solid var(--accent); padding-left: 20px;
}
.pull-quote cite {
  display: block; margin-top: 12px; padding-left: 23px; font-style: normal;
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--ink-mute);
}


/* ─────────────────────────  WHAT PUBLISHERS BUY  ───────────────────────── */

.buy-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 0;
  margin-top: 44px; border: 1px solid var(--rule); border-radius: 6px; overflow: hidden;
  background: var(--paper-hi);
}
.buy-cell { padding: 28px 24px; border-right: 1px solid var(--rule-soft); transition: background .18s; text-decoration: none; display: block; }
.buy-cell:last-child { border-right: none; }
.buy-cell:hover { background: var(--accent-soft); }
.buy-cell__num { font-family: var(--mono); font-size: 11px; color: var(--accent); letter-spacing: .14em; }
.buy-cell h4 { font-family: var(--display); font-size: 17.5px; color: var(--ink); margin: 10px 0 8px; line-height: 1.25; }
.buy-cell p { font-size: 12.5px; line-height: 1.6; color: var(--ink-mute); margin: 0; }
@media (max-width: 1000px) { .buy-grid { grid-template-columns: 1fr 1fr; } .buy-cell:nth-child(2n) { border-right: none; } .buy-cell { border-bottom: 1px solid var(--rule-soft); } }
@media (max-width: 560px) { .buy-grid { grid-template-columns: 1fr; } .buy-cell { border-right: none; } }


/* ─────────────────────────  SPLIT FEATURE ROWS  ───────────────────────── */

.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature-row--reverse .feature-row__visual { order: -1; }
@media (max-width: 900px) {
  .feature-row { grid-template-columns: 1fr; gap: 32px; }
  .feature-row--reverse .feature-row__visual { order: 0; }
}
.feature-row__content h2 { margin: 16px 0 18px; }
.feature-row__content p { color: var(--ink-body); }

.media-frame {
  position: relative; border-radius: 6px; overflow: hidden;
  border: 1px solid var(--rule); background: var(--paper-hi);
  box-shadow: 0 18px 50px -24px rgba(28, 26, 21, .35);
}
.media-frame video, .media-frame img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 10; }
.media-frame--tall video, .media-frame--tall img { aspect-ratio: 4 / 5; }
.media-frame__caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 20px 16px;
  background: linear-gradient(180deg, rgba(20, 26, 32, 0) 0%, rgba(20, 26, 32, .82) 65%);
  color: #F5F1E8;
}
.media-frame__caption p { font-size: 13px; margin: 8px 0 0; color: #EDE8DC; }
.media-frame__caption .live-badge { color: #FFC9B8; }
.media-frame__caption .live-badge__dot { background: #FF7A57; }

/* numbered process beats */
.beats { list-style: none; margin: 26px 0 0; counter-reset: beat; }
.beats li {
  counter-increment: beat; position: relative; padding: 12px 0 12px 46px;
  border-bottom: 1px solid var(--rule-soft); font-size: 14.5px; color: var(--ink-body);
}
.beats li::before {
  content: counter(beat, decimal-leading-zero);
  position: absolute; left: 0; top: 13px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--accent);
}
.beats li strong { color: var(--ink); font-weight: 600; }


/* ─────────────────────────  DICTIONARY RULE  ───────────────────────── */

.dictionary {
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  padding-bottom: 18px; border-bottom: 2px solid var(--ink);
}
.dictionary__word { font-family: var(--display); font-size: clamp(30px, 4vw, 46px); font-weight: 700; color: var(--ink); }
.dictionary__pron { font-family: var(--mono); font-size: 13px; color: var(--ink-mute); }
.dictionary__type { font-family: var(--display); font-style: italic; font-size: 15px; color: var(--accent); }
.dictionary__def { font-size: 14.5px; color: var(--ink-body); flex: 1 1 340px; min-width: 260px; }


/* ─────────────────────────  ECOSYSTEM RAIL  ───────────────────────── */

.rail { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; background: var(--paper-hi); }
@media (max-width: 900px) { .rail { grid-template-columns: 1fr; } }
.rail__cell {
  padding: 30px 28px; border-right: 1px solid var(--rule-soft);
  text-decoration: none; display: block; transition: background .18s;
}
.rail__cell:last-child { border-right: none; }
.rail__cell:hover { background: var(--accent-soft); }
.rail__cell--here { background: var(--paper-mid); }
.rail__mark {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-mute); display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.rail__mark .here { color: var(--red); }
.rail__cell h3 { font-size: 20px; margin: 12px 0 8px; }
.rail__cell p { font-size: 13.5px; color: var(--ink-mute); margin-bottom: 14px; }
.rail__cta { font-size: 13px; font-weight: 600; color: var(--accent); font-family: var(--sans); }


/* ─────────────────────────  PROOF STRIP  ───────────────────────── */

.proof-line {
  font-family: var(--display); font-size: clamp(20px, 2.4vw, 28px); line-height: 1.45;
  color: var(--ink); max-width: 760px; margin: 20px auto 34px;
}
.trust-row { display: flex; align-items: center; justify-content: center; gap: 40px; flex-wrap: wrap; }
/* client marks render as supplied — no grayscale filter, these are real brands */
.trust-row img { height: 42px; width: auto; }

.edge-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 22px; border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; background: var(--paper-hi); }
.edge-stat { padding: 18px 16px; border-right: 1px solid var(--rule-soft); }
.edge-stat:last-child { border-right: none; }
.edge-stat__num { font-family: var(--display); font-weight: 700; font-size: 26px; color: var(--ink); line-height: 1; }
.edge-stat__lbl { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); margin-top: 7px; }
@media (max-width: 640px) { .edge-stats { grid-template-columns: 1fr 1fr; } }


/* ─────────────────────────  NEWS CARDS  ───────────────────────── */

.news-card {
  background: var(--paper-hi); border: 1px solid var(--rule); border-radius: 6px;
  overflow: hidden; transition: border-color .2s, transform .2s var(--ease-out), box-shadow .2s;
}
.news-card:hover { border-color: var(--accent-line); transform: translateY(-2px); box-shadow: 0 14px 34px -22px rgba(28, 26, 21, .45); }
.news-card__image { aspect-ratio: 16 / 9; overflow: hidden; background: var(--paper-mid); }
.news-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.news-card:hover .news-card__image img { transform: scale(1.03); }
.news-card__body { padding: 20px 22px 24px; }
.news-card__date { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); }
.news-card__title { font-family: var(--display); font-size: 18px; line-height: 1.3; margin: 8px 0 10px; }
.news-card__title a { color: var(--ink); text-decoration: none; }
.news-card__title a:hover { color: var(--accent); }
.news-card__excerpt {
  font-size: 13.5px; color: var(--ink-mute); line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}


/* ─────────────────────────  CLOSING CTA  ───────────────────────── */

.cta { padding: clamp(84px, 10vw, 130px) 0; text-align: center; }
.cta h2 { max-width: 17ch; margin: 18px auto 16px; }
.cta p { color: var(--ink-mute); max-width: 560px; margin: 0 auto 34px; }
.cta__alt { font-family: var(--mono); font-size: 11.5px; color: var(--ink-mute); margin-top: 18px; }
.cta__alt a { color: var(--accent); text-decoration: none; }
.cta__alt a:hover { text-decoration: underline; text-underline-offset: 3px; }


/* ─────────────────────────  FOOTER  ───────────────────────── */

.footer { background: var(--paper-hi); border-top: 1px solid var(--rule); padding: 64px 0 28px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__brand .nav__logo { color: var(--ink); }
.footer__brand-desc { font-size: 13.5px; color: var(--ink-mute); margin-top: 14px; max-width: 340px; }
.footer__heading {
  font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink); margin-bottom: 14px;
}
.footer__links { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer__links a { font-size: 13.5px; color: var(--ink-mute); text-decoration: none; }
.footer__links a:hover { color: var(--accent); }
.footer__bottom {
  margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--rule);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 11px; color: var(--ink-mute);
}


/* ─────────────────────────  CHAT WIDGET  ─────────────────────────
   chat.css inherits the aliases above, so it lands on paper automatically.
   These are only the few places that need more contrast on a light page. */

.chat-trigger { box-shadow: 0 10px 30px -12px rgba(28, 26, 21, .55); }
.chat-panel { box-shadow: 0 24px 70px -30px rgba(28, 26, 21, .5); }
.chat-message--user .chat-message__bubble { background: var(--accent); color: #fff; }
.chat-send { color: var(--accent-ink); }


/* ══════════════════════════════════════════════════════════════════════
   LEGACY COMPATIBILITY LAYER
   The interior pages (wire, intelligence, agent, about, contact, legal,
   docs) still carry the BEM markup written for the old dark style.css.
   Everything below re-homes those class names on paper so a page converts
   by swapping one stylesheet link — no markup surgery required.

   Rule of thumb when editing: dark-era names describe POSITION in the old
   page rhythm (section--dark / --darker alternated bands), not colour.
   Here they alternate paper / raised paper / tint instead.
   ══════════════════════════════════════════════════════════════════════ */

/* ── section bands ── */
.section--dark    { background: var(--paper); }
.section--darker  { background: var(--paper-hi); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.section--grain   { background: var(--paper-mid); }
.section--darker.section--grain { background: var(--paper-mid); }
.section--accent  { background: var(--accent-soft); border-top: 1px solid var(--accent-line); border-bottom: 1px solid var(--accent-line); padding: var(--section-pad) 0; }
.container--narrow { max-width: 820px; margin: 0 auto; padding: 0 32px; }

/* the old sheet used white as "bright text on black" — on paper that is ink */
.text-white { color: var(--ink); }
.accent, .text-accent { color: var(--accent); }
.subtitle { font-size: 17.5px; line-height: 1.7; color: var(--ink-body); }
.divider { border: 0; border-top: 1px solid var(--rule); }
.divider--accent { border: 0; border-top: 2px solid var(--ink); margin: 0 auto; max-width: var(--max); }

/* ── generated news article pages ── */
.article-body { max-width: 720px; margin: 0 auto; }
.article-body p { font-size: 17.5px; line-height: 1.8; color: var(--ink-body); }
.article-body strong { color: var(--ink); }
.article-hero-img { width: 100%; max-height: 480px; object-fit: cover; border-radius: 6px; border: 1px solid var(--rule); margin-bottom: 2.5rem; }
.article-meta, .article-back { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); text-decoration: none; }
.article-back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 2rem; }
.article-back:hover { color: var(--accent); }
.stagger > * { transition-delay: 0s; }

/* ── subpage video heroes ── */
.hero--video { position: relative; min-height: 620px; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding: calc(var(--nav-height) + 40px) 0 90px; color: #F5F1E8; }
.hero-video { position: absolute; inset: 0; z-index: 0; }
.hero-video__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* same daylight wash as the homepage: dark at the top, dissolving into paper */
.hero-video__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(20, 26, 32, .54) 0%,
    rgba(20, 26, 32, .20) 34%,
    rgba(20, 26, 32, .12) 55%,
    rgba(247, 243, 235, 0) 74%,
    rgba(247, 243, 235, .90) 95%,
    var(--paper) 100%);
}
.hero-video__grain { position: absolute; inset: 0; background: rgba(180, 140, 90, .12); mix-blend-mode: multiply; }
.hero--video .hero__inner { position: relative; z-index: 2; max-width: var(--max); width: 100%; margin: 0 auto; padding: 0 32px; }
.hero--video .eyebrow { color: #F0E9DB; }
.hero--video .eyebrow::before { background: #F0E9DB; }
.hero--video .hero__headline { color: #FBF8F1; max-width: 16ch; margin-top: 18px; text-shadow: 0 2px 30px rgba(15, 18, 22, .38); }
.hero--video .hero__headline em { color: #E8D9B8; text-shadow: 0 2px 22px rgba(15, 18, 22, .62); }
.hero--video .hero__subtitle { font-size: 17.5px; line-height: 1.7; color: #EDE8DC; max-width: 620px; margin: 22px 0 30px; text-shadow: 0 1px 18px rgba(15, 18, 22, .55); }
.hero--video .hero__subtitle strong, .hero--video .text-white { color: #FBF8F1; }
.hero--video .hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero--video .btn--primary { background: #F5F1E8; color: var(--ink); border-color: #F5F1E8; }
.hero--video .btn--primary:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.hero--video .btn--secondary, .hero--video .btn--ghost { color: #F5F1E8; border-color: rgba(245, 241, 232, .7); }
.hero--video .btn--secondary:hover, .hero--video .btn--ghost:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }
.hero__inline-link { color: #FFE9C7; text-decoration: underline; text-underline-offset: 3px; }
.hero__inline-link:hover { color: #fff; }
.hero__scroll-hint {
  position: relative; z-index: 2; margin-top: 44px; max-width: var(--max);
  width: 100%; margin-left: auto; margin-right: auto; padding: 0 32px;
  display: flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .18em;
  text-transform: uppercase; color: rgba(245, 241, 232, .8);
}
/* the inline chevron carries no width/height attributes — without this it
   renders at its natural size and stretches the hero to several thousand px */
.hero__scroll-hint svg { width: 15px; height: 15px; flex: none; }

/* ── cards ── */
.card {
  background: var(--paper-hi); border: 1px solid var(--rule); border-radius: 6px;
  padding: 28px 26px; transition: border-color .2s, transform .2s var(--ease-out), box-shadow .2s;
  text-decoration: none; display: block;
}
.card:hover { border-color: var(--accent-line); box-shadow: 0 14px 34px -22px rgba(28, 26, 21, .45); }
.card__icon {
  width: 40px; height: 40px; border-radius: 5px; margin-bottom: 16px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-line);
}
.card__title { font-family: var(--display); font-size: 19px; font-weight: 700; color: var(--ink); margin-bottom: 9px; line-height: 1.25; }
.card__text  { font-size: 13.5px; line-height: 1.6; color: var(--ink-mute); }

.buy-card__title { font-family: var(--display); font-size: 18px; font-weight: 700; color: var(--ink); margin-bottom: 9px; line-height: 1.25; }
.buy-card__text  { font-size: 13.5px; line-height: 1.6; color: var(--ink-mute); }
.buy-card__cta   { display: inline-block; margin-top: 14px; font-size: 13px; font-weight: 600; color: var(--accent); }
.buy-card--cta   { background: var(--accent-soft); border-color: var(--accent-line); }

/* ── ecosystem cards ── */
.ecosystem-card { background: var(--paper-hi); border: 1px solid var(--rule); border-radius: 6px; padding: 28px 26px; text-decoration: none; display: block; transition: background .18s, border-color .18s; }
.ecosystem-card:hover { background: var(--accent-soft); border-color: var(--accent-line); }
.ecosystem-card--current { background: var(--paper-mid); }
.ecosystem-card__brand { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.ecosystem-card__mark { font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: .16em; color: var(--accent); }
.ecosystem-card__name { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute); }
.ecosystem-card__tag  { font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.ecosystem-card__tag--ext { color: var(--ink-mute); }
.ecosystem-card__title { font-family: var(--display); font-size: 20px; color: var(--ink); margin-bottom: 9px; }
.ecosystem-card__text  { font-size: 13.5px; line-height: 1.6; color: var(--ink-mute); margin-bottom: 14px; }
.ecosystem-card__cta   { font-size: 13px; font-weight: 600; color: var(--accent); }
.architecture-line { font-family: var(--display); font-size: clamp(19px, 2.2vw, 26px); line-height: 1.5; color: var(--ink); }

/* ── dictionary rule (legacy name) ── */
.dictionary-header { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; padding-bottom: 18px; border-bottom: 2px solid var(--ink); }
.dictionary-header__word { font-family: var(--display); font-size: clamp(30px, 4vw, 46px); font-weight: 700; color: var(--ink); }
.dictionary-header__pron { font-family: var(--mono); font-size: 13px; color: var(--ink-mute); }
.dictionary-header__type { font-family: var(--display); font-style: italic; font-size: 15px; color: var(--accent); }
.dictionary-header__def  { font-size: 14.5px; color: var(--ink-body); flex: 1 1 340px; min-width: 260px; }

/* ── video cards / framed media ── */
.video-card, .img-frame {
  position: relative; border-radius: 6px; overflow: hidden;
  border: 1px solid var(--rule); background: var(--paper-hi);
  box-shadow: 0 18px 50px -24px rgba(28, 26, 21, .35);
}
.video-card__media, .img-frame img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 10; display: block; }
.video-card--tall .video-card__media, .img-frame--tall img { aspect-ratio: 4 / 5; }
.video-card__overlay, .img-overlay::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(20, 26, 32, 0) 45%, rgba(20, 26, 32, .55) 100%);
}
.video-card__caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 20px 16px; color: #F5F1E8; z-index: 2; }
.video-card__caption p { font-size: 13px; margin: 8px 0 0; color: #EDE8DC; }
.video-card__caption .live-badge, .video-card__caption .ecosystem-card__tag { color: #FFC9B8; }
.video-card__caption .live-badge__dot { background: #FF7A57; }

/* ── lists used on the product pages ── */
.agent-list, .docs-list { list-style: none; margin-top: 18px; }
.agent-list li, .docs-list li { position: relative; padding: 9px 0 9px 22px; border-bottom: 1px solid var(--rule-soft); font-size: 14.5px; color: var(--ink-body); }
.agent-list li::before, .docs-list li::before { content: "\2014"; position: absolute; left: 0; color: var(--accent); }
.pipeline-beats { list-style: none; margin: 26px 0 0; counter-reset: beat; }
.pipeline-beats li { counter-increment: beat; position: relative; padding: 12px 0 12px 46px; border-bottom: 1px solid var(--rule-soft); font-size: 14.5px; color: var(--ink-body); }
.pipeline-beats li::before { content: counter(beat, decimal-leading-zero); position: absolute; left: 0; top: 13px; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--accent); }
.pipeline-beats li span { color: var(--ink); font-weight: 600; }

/* ── tiles & small stat blocks used across product pages ── */
.config-grid, .content-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.config-tile { flex: 1 1 190px; background: var(--paper-hi); border: 1px solid var(--rule); border-radius: 6px; padding: 16px 18px; }
.config-tile--more { background: var(--accent-soft); border-color: var(--accent-line); }
.config-tile__num  { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; color: var(--accent); }
.config-tile__name { font-family: var(--display); font-size: 15.5px; color: var(--ink); margin-top: 6px; line-height: 1.3; }

.surface-card { background: var(--paper-hi); border: 1px solid var(--rule); border-radius: 6px; padding: 22px 24px; }
.surface-card__head { display: flex; align-items: baseline; gap: 10px; justify-content: space-between; flex-wrap: wrap; }
.surface-card__num  { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; color: var(--accent); }
.surface-card__status { font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.surface-card__title { font-family: var(--display); font-size: 18px; color: var(--ink); margin: 10px 0 8px; }
.surface-card__txt   { font-size: 13.5px; line-height: 1.6; color: var(--ink-mute); }

.layer-card { background: var(--paper-hi); border: 1px solid var(--rule); border-radius: 6px; padding: 22px 24px; }
.layer-card__num  { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; color: var(--accent); }
.layer-card__name { font-family: var(--display); font-size: 18px; color: var(--ink); margin: 10px 0 8px; }
.layer-card__txt  { font-size: 13.5px; line-height: 1.6; color: var(--ink-mute); }

.why-stat { padding: 18px 0; border-bottom: 1px solid var(--rule-soft); }
.why-stat__lbl { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); margin-top: 6px; display: block; }

.signal-tag, .content-tag {
  display: inline-block; font-family: var(--mono); font-size: 10px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; padding: 4px 10px; border-radius: 3px;
  border: 1px solid var(--accent-line); background: var(--accent-soft); color: var(--accent);
}
.quote-line { font-family: var(--display); font-size: clamp(20px, 2.4vw, 28px); line-height: 1.45; color: var(--ink); max-width: 760px; margin: 20px auto 34px; }
.edge-showcase__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .edge-showcase__grid { grid-template-columns: 1fr; gap: 32px; } }
.cta-section h2 { margin-bottom: 14px; }

/* ── pricing / bundle cards ── */
.bundle-card { background: var(--paper-hi); border: 1px solid var(--rule); border-radius: 6px; padding: 26px 28px; }
.bundle-card--upgrade { background: var(--accent-soft); border-color: var(--accent-line); }
.bundle-card__head  { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.bundle-card__label { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute); }
.bundle-card__price { font-family: var(--display); font-size: 30px; font-weight: 700; color: var(--ink); }
.bundle-card__list  { list-style: none; margin-top: 16px; }
.bundle-card__list li { padding: 8px 0 8px 22px; position: relative; font-size: 13.5px; color: var(--ink-body); border-bottom: 1px solid var(--rule-soft); }
.bundle-card__list li::before { content: "\2713"; position: absolute; left: 0; color: var(--accent); }
.bundle-card__list-strong { color: var(--ink); font-weight: 600; }
.bundle-card__cta { margin-top: 18px; display: inline-block; }
.upgrade-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 900px) { .upgrade-row { grid-template-columns: 1fr; gap: 26px; } }

/* ── forms ── */
.form-group { margin-bottom: 18px; }
.form-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.form-label { display: block; font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 7px; }
.form-input, .form-textarea, .form-select {
  width: 100%; background: var(--paper); border: 1.5px solid var(--rule); border-radius: 4px;
  padding: 12px 14px; font: inherit; font-size: 14.5px; color: var(--ink);
  outline: none; transition: border-color .18s;
}
.form-input:focus, .form-textarea:focus, .form-select:focus { border-color: var(--accent); }
.form-textarea { min-height: 130px; resize: vertical; }

/* ── legal & SLA pages ── */
.terms-body { max-width: 780px; }
.terms-body h2 { font-size: clamp(22px, 2.4vw, 30px); margin: 40px 0 14px; }
.terms-body h3 { font-size: 18px; margin: 26px 0 10px; }
.terms-body li { margin-left: 20px; margin-bottom: 7px; }
.terms-meta { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); }
.terms-divider { border: 0; border-top: 1px solid var(--rule); margin: 34px 0; }
.sla-table-wrap, .docs-table-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: 6px; margin: 22px 0; }
.sla-table, .docs-table { width: 100%; border-collapse: collapse; background: var(--paper-hi); font-size: 13.5px; }
.sla-table th, .docs-table th {
  text-align: left; padding: 12px 16px; background: var(--paper-mid);
  font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink); border-bottom: 1px solid var(--rule);
}
.sla-table td, .docs-table td { padding: 12px 16px; border-bottom: 1px solid var(--rule-soft); color: var(--ink-body); vertical-align: top; }
.sla-table tr:last-child td, .docs-table tr:last-child td { border-bottom: none; }
.sla-uptime { font-family: var(--display); font-size: 30px; font-weight: 700; color: var(--accent); }
.bot-ua { font-family: var(--mono); font-size: 13px; background: var(--paper-mid); border: 1px solid var(--rule); border-radius: 4px; padding: 10px 14px; display: inline-block; color: var(--ink); }

/* ── chat context buttons that sit inline in page copy ── */
.chat-ask-group { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.chat-ask-btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans); font-size: 13px; font-weight: 600; cursor: pointer;
  padding: 10px 16px; border-radius: 4px; border: 1.5px solid var(--rule);
  background: var(--paper-hi); color: var(--ink); transition: all .18s;
}
/* these speech-bubble icons ship with no width/height attributes */
.chat-ask-btn svg { width: 15px; height: 15px; flex: none; fill: var(--accent); }
.chat-ask-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

/* ── docs page ──
   docs.css is token-driven except for a handful of semantic status colours
   picked to glow on black. These are the paper-legible equivalents. */
.docs-layout { display: grid; grid-template-columns: 260px 1fr; gap: 48px; }
@media (max-width: 1000px) { .docs-layout { grid-template-columns: 1fr; } }
.docs-risk--none   { color: #1F6B45 !important; }
.docs-risk--low    { color: #1F6B45 !important; }
.docs-risk--medium { color: #8A5A08 !important; }
.docs-risk--high   { color: var(--red) !important; }
.docs-tag--green   { color: #1F6B45 !important; border-color: #1F6B45 !important; }
.docs-tag--amber, .docs-tag--orange { color: #8A5A08 !important; border-color: #8A5A08 !important; }
.docs-tag--red     { color: var(--red) !important; border-color: var(--red) !important; }
.docs-tag--blue    { color: var(--accent) !important; border-color: var(--accent) !important; }
.docs-example--good { border-left: 3px solid #1F6B45; }
.docs-example--bad  { border-left: 3px solid var(--red); }
.docs-code { background: var(--paper-mid); border: 1px solid var(--rule); color: var(--ink); border-radius: 4px; }
.docs-callout--info    { border-left: 3px solid var(--accent); background: var(--accent-soft); }
.docs-callout--tip     { border-left: 3px solid #1F6B45; background: #EAF3ED; }
.docs-callout--warning { border-left: 3px solid #8A5A08; background: #F7F0DF; }
.docs-callout--danger  { border-left: 3px solid var(--red); background: #F7EAE5; }
.docs-mistake__problem { color: var(--red); }
.docs-mistake__solution { color: #1F6B45; }
