/* textagent.io identity system (2026-12-03). One grid, one blue, one face.
   White coated stock, near-black ink, corporate blue that owns whole regions. Square corners.
   Pages that use it: /, /features/, /teams/, /about/, /security/, /blog/ and every article page (blog posts, vs-*),
   the articles through tools/site_chrome.py. Pages still on their old inline styles: realtors, home-services, faq,
   ai-*-*, privacy, terms, welcome/*. DESIGN.md is the record of the system. */

@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --ink: #0B0D12;
  --ink-2: #3D4350;
  --ink-3: #5F6573;
  --paper: #FFFFFF;
  --paper-2: #F4F5F7;
  --rule: #E3E5E9;
  --rule-strong: #0B0D12;
  --blue: #0047BB;
  --blue-deep: #00348C;
  --blue-ink: #DCE6F7;   /* secondary text on blue */
  --bubble-in: #E9EBEF;

  --face: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --max: 1320px;
  --pad: clamp(20px, 4vw, 60px);
  --gut: 24px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 18px/1.55 var(--face); font-stretch: 100%;
  font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--blue); }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.on-blue :focus-visible { outline-color: #fff; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; font-weight: 640; }
p { text-wrap: pretty; }

/* ---------- The grid: twelve columns, visible as hairlines behind every plate ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.cols { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gut); }
.gridlines { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.gridlines .cols { height: 100%; }
.gridlines i { border-left: 1px solid #F0F1F4; transform-origin: top; animation: draw 1.1s var(--ease) both; }
.gridlines i:last-child { border-right: 1px solid #F0F1F4; }
.gridlines i:nth-child(2n) { animation-delay: .06s; }
.gridlines i:nth-child(3n) { animation-delay: .12s; }
@keyframes draw { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* ---------- Header ---------- */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--rule); }
.top .wrap { display: flex; align-items: center; height: 68px; gap: 32px; }
.top .logo { display: block; height: 30px; }
.top .logo img { height: 100%; width: auto; }
.top nav { display: flex; gap: 28px; font-size: 15px; font-weight: 520; }
.top nav a { text-decoration: none; color: var(--ink-2); }
.top nav a:hover, .top nav a[aria-current] { color: var(--ink); }
.top .acts { margin-left: auto; display: flex; align-items: center; gap: 20px; font-size: 15px; font-weight: 560; }
.top .acts .team { text-decoration: none; color: var(--ink); }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--rule); background: #fff; padding: 0 12px; cursor: pointer; }
.burger span { display: block; height: 2px; background: var(--ink); margin: 4px 0; transition: transform .2s var(--ease), opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.drawer { border-top: 1px solid var(--rule); background: #fff; }
.drawer[hidden] { display: none; }
.drawer a { display: block; padding: 14px var(--pad); border-bottom: 1px solid var(--rule); text-decoration: none; font-size: 17px; font-weight: 540; }
@media (max-width: 960px) {
  .top nav, .top .acts .team { display: none; }
  .burger { display: block; }
  .top .wrap { gap: 12px; }
  .top .acts { gap: 10px; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 24px; border: 0;
  background: var(--blue); color: #fff; font: 600 17px/1 var(--face); text-decoration: none; cursor: pointer;
  transition: background .2s var(--ease); }
.btn:hover { background: var(--blue-deep); color: #fff; }
.btn .num { font-weight: 450; opacity: .82; padding-left: 12px; border-left: 1px solid rgba(255,255,255,.35); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; white-space: nowrap; }
@media (max-width: 420px) { .top .btn-sm { padding: 0 12px; font-size: 14px; } .top .logo { height: 26px; } }
.btn-line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.on-blue .btn { background: #fff; color: var(--blue); }
.on-blue .btn:hover { background: var(--blue-ink); color: var(--blue-deep); }
.btn:disabled { opacity: .55; cursor: default; }
.arrow { font-weight: 600; text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }

/* ---------- Plates (sections) ---------- */
.plate { padding: clamp(72px, 9vw, 128px) 0; border-top: 1px solid var(--rule-strong); }
.plate-head { margin-bottom: clamp(36px, 5vw, 64px); align-items: start; }
.plate-no { grid-column: 1 / span 2; font-size: 15px; font-weight: 560; color: var(--ink-3); padding-top: .55em; }
.plate-no b { display: block; color: var(--ink); font-weight: 640; }
.plate-head h2 { grid-column: 3 / span 8; font-size: clamp(32px, 3.6vw, 54px); line-height: 1.02; letter-spacing: -.032em; }
.plate-head p { grid-column: 3 / span 7; margin-top: 18px; font-size: 19px; color: var(--ink-2); max-width: 60ch; }
.on-blue { background: var(--blue); color: #fff; border-top: 0; }
.on-blue .plate-no, .on-blue .plate-head p { color: var(--blue-ink); }
.on-blue .plate-no b { color: #fff; }
.on-blue a:hover { color: #fff; }
@media (max-width: 760px) {
  .plate-head h2, .plate-head p { grid-column: 1 / -1; }
  .plate-no { display: none; }
}

/* ---------- Spec tables: the manual's way of listing facts ---------- */
.spec { border-top: 1.5px solid var(--ink); }
.spec-row { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); column-gap: var(--gut);
  padding: 18px 0; border-bottom: 1px solid var(--rule); }
.spec-row dt { font-weight: 620; }
.spec-row dd { margin: 0; color: var(--ink-2); }
.on-blue .spec { border-color: #fff; }
.on-blue .spec-row { border-color: rgba(255,255,255,.28); }
.on-blue .spec-row dd { color: var(--blue-ink); }
@media (max-width: 760px) { .spec-row { grid-template-columns: 1fr; row-gap: 4px; } }

/* ---------- The text thread (product figure) ---------- */
.thread { background: #fff; color: var(--ink); padding: 20px 18px 22px; font-size: 15.5px; line-height: 1.4; }
.thread .who { font-size: 13px; color: var(--ink-3); text-align: center; margin-bottom: 14px; }
.b { max-width: 84%; padding: 10px 14px; border-radius: 18px; margin: 6px 0; width: fit-content; }
.b.in { background: var(--bubble-in); border-bottom-left-radius: 5px; }
.b.out { background: var(--blue); color: #fff; margin-left: auto; border-bottom-right-radius: 5px; }
.b.draft { border: 1.5px dashed var(--ink); background: #fff; }
.b .lbl { display: block; font-size: 12px; font-weight: 620; color: var(--blue); margin-bottom: 2px; }
.cal { display: flex; gap: 10px; align-items: baseline; margin-top: 10px; padding: 10px 12px; border: 1.5px solid var(--ink); font-size: 14px; }
.cal b { font-weight: 640; }

/* ---------- Footer ---------- */
.foot { background: var(--ink); color: #C9CDD5; padding: 72px 0 40px; font-size: 15px; }
.foot a { color: #C9CDD5; text-decoration: none; }
.foot a:hover { color: #fff; }
.foot .logo { height: 30px; width: auto; }
.foot .about { grid-column: 1 / span 4; }
.foot .about p { margin-top: 18px; max-width: 34ch; }
.foot .col { grid-column: span 2; display: flex; flex-direction: column; gap: 10px; }
.foot .col h3 { font-size: 14px; color: #fff; font-weight: 620; margin-bottom: 4px; }
.foot .legal { margin-top: 56px; padding-top: 20px; border-top: 1px solid #2A2E37; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; color: #9AA0AC; }
@media (max-width: 960px) { .foot .about { grid-column: 1 / -1; margin-bottom: 36px; } .foot .col { grid-column: span 6; margin-bottom: 28px; } }

/* ---------- Consent fine print (wording is frozen; style only) ---------- */
.fine { font-size: 13px; line-height: 1.5; color: var(--ink-3); }
.fine a { color: inherit; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Demo figure: a blue plate holding one real-looking text thread (Teams, Product) ---------- */
.demo { margin: 0; background: var(--blue); color: #fff; display: grid; grid-template-columns: 1fr minmax(0, 340px) 1fr; padding-top: 28px; overflow: hidden; }
.demo .cap { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 16px; padding: 0 24px 24px; font-size: 14px; color: var(--blue-ink); }
.demo .cap b { color: #fff; font-weight: 640; }
.demo .what { grid-column: 1 / -1; padding: 0 24px 24px; font-size: 17px; line-height: 1.45; color: #fff; max-width: 46ch; }
.demo .phone { grid-column: 2; background: #fff; border: 10px solid var(--ink); border-bottom: 0; border-radius: 40px 40px 0 0; overflow: hidden; align-self: end; }
.demo .thread { padding-top: 24px; }
@media (max-width: 520px) { .demo { grid-template-columns: 16px minmax(0, 1fr) 16px; } .demo .cap, .demo .what { padding-left: 16px; padding-right: 16px; } }
