/* ============================================================
   ENTILLA — Design System
   The living knowledge graph for your company
   Editorial · Monochrome · Typography-first · Flat · Zero shadow
   ============================================================ */

/* -------- Tokens -------- */
:root {
  /* Color — Paper & Ink */
  --paper:        #F4F2EC;
  --paper-2:      #ECEAE3;
  --paper-3:      #E4E2DA;
  --ink:          #0E0E0D;
  --ink-2:        #1B1B19;
  --graphite:     #2A2A27;
  --muted:        #6B6A65;
  --muted-2:      #8A8983;
  --line:         #D9D6CC;
  --line-2:       #C9C5B9;
  --signal:       #1F3BFF;   /* cobalt — used sparingly */
  --signal-ink:   #0A1FCC;
  --ok:           #1F7A4D;
  --warn:         #B05A00;
  --err:          #B0321F;

  /* Type */
  --font-sans: "Inter", "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-serif: "Newsreader", "Tiempos", "Iowan Old Style", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  /* Scale (4px) */
  --s-1:  4px;
  --s-2:  8px;
  --s-3:  12px;
  --s-4:  16px;
  --s-5:  20px;
  --s-6:  24px;
  --s-7:  32px;
  --s-8:  40px;
  --s-9:  56px;
  --s-10: 72px;
  --s-11: 96px;
  --s-12: 128px;

  /* Radius */
  --r-0: 0px;
  --r-1: 2px;
  --r-2: 4px;
  --r-3: 8px;

  /* Container */
  --container: 1240px;
  --container-narrow: 880px;

  /* Lines */
  --bw: 1px;
}

/* -------- Reset -------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
a { color: inherit; text-decoration: none; }
hr { border: 0; border-top: var(--bw) solid var(--line); margin: 0; }
input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* -------- Base -------- */
body {
  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* -------- Typography -------- */
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 500; letter-spacing: -0.022em; line-height: 1.08; color: var(--ink); }
h1 { font-size: clamp(40px, 6.4vw, 84px); letter-spacing: -0.03em; }
h2 { font-size: clamp(30px, 4.2vw, 52px); letter-spacing: -0.028em; }
h3 { font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -0.022em; }
h4 { font-size: 20px; }
h5 { font-size: 16px; }
h6 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }

p { margin: 0 0 var(--s-4) 0; color: var(--graphite); }
.lead { font-size: clamp(18px, 1.6vw, 22px); color: var(--graphite); line-height: 1.5; letter-spacing: -0.012em; max-width: 60ch; }
.eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.serif { font-family: var(--font-serif); font-weight: 400; letter-spacing: -0.018em; }
.mono { font-family: var(--font-mono); }

.display {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(48px, 7.4vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.035em;
}
.display em { font-style: italic; color: var(--graphite); }

/* -------- Layout -------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--s-6); }
.container--narrow { max-width: var(--container-narrow); }
.section { padding: var(--s-11) 0; border-top: var(--bw) solid var(--line); }
.section--first { border-top: 0; }
.section--tight { padding: var(--s-9) 0; }
.section--hero { padding: var(--s-10) 0 var(--s-11); border-top: 0; }

.grid { display: grid; gap: var(--s-6); }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.grid-12 { grid-template-columns: repeat(12, minmax(0,1fr)); }
.col-span-4 { grid-column: span 4; }
.col-span-5 { grid-column: span 5; }
.col-span-6 { grid-column: span 6; }
.col-span-7 { grid-column: span 7; }
.col-span-8 { grid-column: span 8; }

.row { display: flex; gap: var(--s-4); align-items: center; flex-wrap: wrap; }
.row--between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: var(--s-4); }
.stack-2 { display: flex; flex-direction: column; gap: var(--s-2); }
.stack-6 { display: flex; flex-direction: column; gap: var(--s-6); }
.stack-8 { display: flex; flex-direction: column; gap: var(--s-8); }

/* -------- Section headers -------- */
.section-head { display: grid; grid-template-columns: 1fr 2fr; gap: var(--s-8); align-items: end; margin-bottom: var(--s-9); }
.section-head__label { display: flex; align-items: center; gap: var(--s-3); }
.section-head__label::before { content: ""; width: 10px; height: 10px; border: var(--bw) solid var(--ink); border-radius: 50%; }
.section-head h2 { max-width: 18ch; }

/* -------- Navbar -------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: var(--bw) solid var(--line);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav__brand { display: flex; align-items: center; gap: var(--s-2); font-weight: 500; letter-spacing: -0.02em; font-size: 18px; }
.nav__brand-mark {
  width: 22px; height: 22px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  position: relative;
}
.nav__brand-mark::after {
  content: ""; position: absolute; inset: 4px;
  border-top: 1.5px solid var(--ink);
  border-right: 1.5px solid var(--ink);
  border-radius: 50%;
  transform: rotate(35deg);
}
.nav__links { display: flex; gap: var(--s-7); align-items: center; }
.nav__links a {
  font-size: 14px; color: var(--graphite); letter-spacing: -0.005em;
  position: relative; padding: 4px 0;
}
.nav__links a:hover { color: var(--ink); }
.nav__links a.is-active { color: var(--ink); }
.nav__links a.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--ink);
}
.nav__cta { display: flex; gap: var(--s-3); align-items: center; }
.nav__toggle {
  display: none; width: 36px; height: 36px;
  border: var(--bw) solid var(--ink);
  border-radius: var(--r-1);
  align-items: center; justify-content: center;
}
.nav__toggle span { display: block; width: 16px; height: 1.5px; background: var(--ink); position: relative; }
.nav__toggle span::before, .nav__toggle span::after {
  content: ""; position: absolute; left: 0; width: 16px; height: 1.5px; background: var(--ink);
}
.nav__toggle span::before { top: -5px; }
.nav__toggle span::after  { top: 5px; }

/* -------- Buttons -------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  height: 40px; padding: 0 var(--s-5);
  font-size: 14px; font-weight: 500; letter-spacing: -0.005em;
  border: var(--bw) solid var(--ink);
  border-radius: var(--r-1);
  background: transparent; color: var(--ink);
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: var(--graphite); border-color: var(--graphite); }
.btn--ghost { border-color: transparent; padding: 0 var(--s-3); }
.btn--ghost:hover { background: var(--paper-2); color: var(--ink); }
.btn--lg { height: 48px; padding: 0 var(--s-6); font-size: 15px; }
.btn--sm { height: 32px; padding: 0 var(--s-3); font-size: 13px; }

.btn .arrow { display: inline-block; transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--ink); font-weight: 500;
  border-bottom: 1px solid var(--ink); padding-bottom: 2px;
}
.link-arrow:hover { color: var(--signal); border-color: var(--signal); }

/* -------- Tag / Badge / Chip -------- */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  height: 24px; padding: 0 10px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--graphite);
  border: var(--bw) solid var(--line-2);
  border-radius: 999px;
  background: var(--paper);
}
.tag--ink { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tag--signal { color: var(--signal); border-color: var(--signal); }
.tag-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ink); display: inline-block; }
.tag-dot--signal { background: var(--signal); }
.tag-dot--ok { background: var(--ok); }

/* -------- Card -------- */
.card {
  background: var(--paper);
  border: var(--bw) solid var(--line);
  border-radius: var(--r-2);
  padding: var(--s-7);
}
.card--ink { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.card--ink p, .card--ink h3 { color: var(--paper); }
.card--flush { padding: 0; overflow: hidden; }
.card__header { padding: var(--s-5) var(--s-6); border-bottom: var(--bw) solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.card__body { padding: var(--s-6); }
.card__footer { padding: var(--s-5) var(--s-6); border-top: var(--bw) solid var(--line); display: flex; align-items: center; justify-content: space-between; }

/* -------- Hero -------- */
.hero { padding: var(--s-11) 0 var(--s-10); }
.hero__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--s-9); align-items: end; }
.hero__title { margin-bottom: var(--s-6); }
.hero__sub { max-width: 48ch; margin-bottom: var(--s-7); }
.hero__cta { display: flex; gap: var(--s-3); flex-wrap: wrap; }
.hero__meta { display: flex; gap: var(--s-6); flex-wrap: wrap; align-items: center; margin-top: var(--s-7); color: var(--muted); font-size: 13px; }
.hero__meta span { display: inline-flex; align-items: center; gap: 6px; }

/* Graph visual — pure SVG */
.hero__visual {
  border: var(--bw) solid var(--line);
  border-radius: var(--r-2);
  background: var(--paper-2);
  aspect-ratio: 5 / 4;
  position: relative;
  overflow: hidden;
}
.hero__visual-meta {
  position: absolute; top: var(--s-4); left: var(--s-4); right: var(--s-4);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
}

/* -------- Logo Strip -------- */
.logos {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: var(--s-7);
  padding: var(--s-7) 0;
  border-top: var(--bw) solid var(--line);
  border-bottom: var(--bw) solid var(--line);
}
.logos__label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.logos__list { display: flex; gap: var(--s-9); align-items: center; flex-wrap: wrap; }
.logos__list span { font-family: var(--font-serif); font-size: 22px; letter-spacing: -0.02em; color: var(--graphite); }

/* -------- Bento / Feature Grid -------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--s-4); }
.bento__cell {
  border: var(--bw) solid var(--line);
  border-radius: var(--r-2);
  padding: var(--s-7);
  background: var(--paper);
  display: flex; flex-direction: column;
  min-height: 280px;
}
.bento__cell h3 { margin-bottom: var(--s-3); }
.bento__cell .eyebrow { margin-bottom: var(--s-5); }
.bento__cell p { color: var(--muted); margin: 0; }
.bento__cell--w3 { grid-column: span 3; }
.bento__cell--w2 { grid-column: span 2; }
.bento__cell--w4 { grid-column: span 4; }
.bento__cell--w6 { grid-column: span 6; }
.bento__cell--ink { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.bento__cell--ink h3, .bento__cell--ink p { color: var(--paper); }

/* -------- Stat / Metric -------- */
.metric { padding: var(--s-6) 0; border-top: var(--bw) solid var(--ink); }
.metric__value { font-family: var(--font-serif); font-size: clamp(40px, 4.5vw, 64px); line-height: 1; letter-spacing: -0.03em; margin-bottom: var(--s-3); }
.metric__label { font-size: 14px; color: var(--muted); max-width: 28ch; }

/* -------- Pricing -------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: var(--bw) solid var(--line); border-radius: var(--r-2); overflow: hidden; }
.plan { padding: var(--s-8) var(--s-7); border-right: var(--bw) solid var(--line); display: flex; flex-direction: column; }
.plan:last-child { border-right: 0; }
.plan--featured { background: var(--ink); color: var(--paper); }
.plan--featured h3, .plan--featured p, .plan--featured li { color: var(--paper); }
.plan--featured .plan__price { color: var(--paper); }
.plan--featured .plan__features li::before { background: var(--paper); }
.plan__name { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s-4); }
.plan__price { font-family: var(--font-serif); font-size: 48px; line-height: 1; margin: var(--s-3) 0; letter-spacing: -0.03em; }
.plan__price small { font-family: var(--font-sans); font-size: 14px; color: var(--muted); letter-spacing: 0; }
.plan__desc { color: var(--muted); margin-bottom: var(--s-6); min-height: 48px; }
.plan__features { list-style: none; padding: 0; margin: var(--s-5) 0 var(--s-7); display: flex; flex-direction: column; gap: var(--s-3); }
.plan__features li { font-size: 14px; padding-left: 22px; position: relative; color: var(--graphite); }
.plan__features li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 10px; height: 1.5px; background: var(--ink);
}
.plan__cta { margin-top: auto; }

/* -------- Testimonial / Quote -------- */
.quote {
  border: var(--bw) solid var(--line);
  border-radius: var(--r-2);
  padding: var(--s-8);
  background: var(--paper);
}
.quote__text { font-family: var(--font-serif); font-size: clamp(22px, 2.2vw, 30px); line-height: 1.3; letter-spacing: -0.018em; margin-bottom: var(--s-6); color: var(--ink); }
.quote__person { display: flex; align-items: center; gap: var(--s-3); font-size: 14px; }
.quote__avatar { width: 36px; height: 36px; border-radius: 50%; border: var(--bw) solid var(--ink); background: var(--paper-2); display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 12px; }
.quote__person strong { font-weight: 500; }
.quote__person span { color: var(--muted); }

/* -------- FAQ / Accordion -------- */
.faq { border-top: var(--bw) solid var(--ink); }
.faq__item { border-bottom: var(--bw) solid var(--line); }
.faq__btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: var(--s-6) 0; text-align: left;
  font-size: 18px; font-weight: 500; letter-spacing: -0.015em;
}
.faq__icon { width: 14px; height: 14px; position: relative; flex-shrink: 0; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; background: var(--ink); }
.faq__icon::before { left: 0; right: 0; top: 50%; height: 1.5px; transform: translateY(-50%); }
.faq__icon::after { top: 0; bottom: 0; left: 50%; width: 1.5px; transform: translateX(-50%); transition: transform .2s ease; }
.faq__item.is-open .faq__icon::after { transform: translateX(-50%) scaleY(0); }
.faq__panel { display: none; padding: 0 0 var(--s-6); max-width: 70ch; color: var(--graphite); }
.faq__item.is-open .faq__panel { display: block; }

/* -------- Tabs -------- */
.tabs { display: flex; gap: 0; border-bottom: var(--bw) solid var(--line); margin-bottom: var(--s-7); }
.tabs__btn {
  padding: var(--s-3) var(--s-5);
  font-size: 14px; color: var(--muted);
  border-bottom: 1.5px solid transparent; margin-bottom: -1px;
}
.tabs__btn.is-active { color: var(--ink); border-bottom-color: var(--ink); }
.tabs__panel { display: none; }
.tabs__panel.is-active { display: block; }

/* -------- Code block -------- */
.code {
  border: var(--bw) solid var(--line);
  border-radius: var(--r-2);
  background: var(--paper-2);
  overflow: hidden;
}
.code__head { display: flex; align-items: center; justify-content: space-between; padding: var(--s-3) var(--s-5); border-bottom: var(--bw) solid var(--line); font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.code pre { margin: 0; padding: var(--s-5) var(--s-6); font-family: var(--font-mono); font-size: 13px; line-height: 1.7; color: var(--ink); overflow-x: auto; }
.code .k { color: var(--signal); }
.code .s { color: var(--ok); }
.code .c { color: var(--muted); }

/* -------- Workflow / Step list -------- */
.steps { display: grid; gap: var(--s-4); grid-template-columns: repeat(4, 1fr); counter-reset: step; }
.step {
  border: var(--bw) solid var(--line);
  border-radius: var(--r-2);
  padding: var(--s-6);
  background: var(--paper);
  position: relative;
  counter-increment: step;
}
.step__num { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--s-5); }
.step__num::before { content: counter(step, decimal-leading-zero) " · "; }
.step h4 { margin-bottom: var(--s-2); }
.step p { color: var(--muted); margin: 0; font-size: 14px; }

/* -------- Comparison table -------- */
.compare { width: 100%; border-collapse: collapse; }
.compare th, .compare td { padding: var(--s-5) var(--s-4); border-bottom: var(--bw) solid var(--line); text-align: left; font-size: 14px; }
.compare th { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 400; }
.compare td:first-child { color: var(--graphite); }
.compare td.yes::before { content: "✓"; color: var(--ink); font-weight: 500; }
.compare td.no::before { content: "—"; color: var(--muted); }
.compare tr.row--highlight td { background: var(--paper-2); }

/* -------- Forms -------- */
.field { display: flex; flex-direction: column; gap: var(--s-2); margin-bottom: var(--s-5); }
.field label { font-size: 13px; color: var(--graphite); font-weight: 500; }
.field input, .field textarea, .field select {
  width: 100%; height: 44px; padding: 0 var(--s-4);
  background: var(--paper);
  border: var(--bw) solid var(--line-2);
  border-radius: var(--r-1);
  font-size: 14px; color: var(--ink);
  transition: border-color .15s ease;
}
.field textarea { padding: var(--s-3) var(--s-4); height: auto; min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--ink);
}
.field__hint { font-size: 12px; color: var(--muted); }
.field__error { font-size: 12px; color: var(--err); display: none; }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--err); }
.field.is-invalid .field__error { display: block; }

.checkbox { display: flex; gap: var(--s-3); align-items: flex-start; font-size: 14px; color: var(--graphite); cursor: pointer; }
.checkbox input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--ink); }

/* -------- Dashboard preview -------- */
.dash {
  border: var(--bw) solid var(--ink);
  border-radius: var(--r-2);
  overflow: hidden;
  background: var(--paper);
}
.dash__top { display: flex; align-items: center; justify-content: space-between; padding: var(--s-3) var(--s-5); border-bottom: var(--bw) solid var(--line); background: var(--paper-2); }
.dash__dots { display: flex; gap: 6px; }
.dash__dots span { width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--line-2); }
.dash__body { display: grid; grid-template-columns: 220px 1fr; min-height: 480px; }
.dash__side { border-right: var(--bw) solid var(--line); padding: var(--s-5); background: var(--paper-2); }
.dash__side h6 { margin-bottom: var(--s-3); }
.dash__side ul { list-style: none; padding: 0; margin: 0 0 var(--s-5); display: flex; flex-direction: column; gap: 2px; }
.dash__side li { font-size: 13px; color: var(--graphite); padding: 6px 8px; border-radius: var(--r-1); display: flex; align-items: center; gap: 8px; }
.dash__side li.is-active { background: var(--ink); color: var(--paper); }
.dash__side li .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .6; }
.dash__main { padding: var(--s-6); }
.dash__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); margin-bottom: var(--s-6); }
.dash__stat { border: var(--bw) solid var(--line); border-radius: var(--r-2); padding: var(--s-5); }
.dash__stat .k { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--s-2); }
.dash__stat .v { font-family: var(--font-serif); font-size: 32px; line-height: 1; letter-spacing: -0.02em; }
.dash__stat .d { font-size: 12px; color: var(--ok); margin-top: var(--s-2); }
.dash__panel { border: var(--bw) solid var(--line); border-radius: var(--r-2); padding: var(--s-6); }
.dash__panel h5 { margin-bottom: var(--s-5); }
.dash__list { list-style: none; padding: 0; margin: 0; }
.dash__list li { display: flex; align-items: center; justify-content: space-between; padding: var(--s-3) 0; border-bottom: var(--bw) solid var(--line); font-size: 14px; }
.dash__list li:last-child { border-bottom: 0; }
.dash__list .meta { color: var(--muted); font-size: 12px; font-family: var(--font-mono); }

/* Bar chart (pure CSS) */
.bars { display: flex; align-items: flex-end; gap: 6px; height: 100px; padding: var(--s-3) 0; }
.bars span { flex: 1; background: var(--ink); border-radius: 1px 1px 0 0; }

/* -------- Footer -------- */
.footer { border-top: var(--bw) solid var(--ink); padding: var(--s-10) 0 var(--s-7); margin-top: var(--s-10); }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: var(--s-7); margin-bottom: var(--s-9); }
.footer__brand h4 { font-family: var(--font-serif); font-size: 28px; letter-spacing: -0.02em; margin-bottom: var(--s-3); }
.footer__brand p { color: var(--muted); max-width: 32ch; }
.footer__col h6 { margin-bottom: var(--s-4); }
.footer__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--s-3); }
.footer__col a { font-size: 14px; color: var(--graphite); }
.footer__col a:hover { color: var(--ink); }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; padding-top: var(--s-6); border-top: var(--bw) solid var(--line); font-size: 13px; color: var(--muted); flex-wrap: wrap; gap: var(--s-4); }
.footer__bottom .row a { color: var(--muted); }
.footer__bottom .row a:hover { color: var(--ink); }

/* -------- Auth pages -------- */
.auth { min-height: calc(100vh - 64px); display: grid; grid-template-columns: 1fr 1fr; }
.auth__panel { padding: var(--s-10); display: flex; flex-direction: column; justify-content: center; max-width: 480px; margin: 0 auto; width: 100%; }
.auth__aside { background: var(--ink); color: var(--paper); padding: var(--s-10); display: flex; flex-direction: column; justify-content: space-between; border-left: var(--bw) solid var(--ink); }
.auth__aside h2 { color: var(--paper); }
.auth__aside p { color: var(--paper-3); }
.auth__divider { display: flex; align-items: center; gap: var(--s-3); margin: var(--s-5) 0; color: var(--muted); font-size: 12px; }
.auth__divider::before, .auth__divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* -------- Article / Docs -------- */
.doc-layout { display: grid; grid-template-columns: 260px 1fr 220px; gap: var(--s-8); padding: var(--s-9) 0; }
.doc-side { border-right: var(--bw) solid var(--line); padding-right: var(--s-6); }
.doc-side h6 { margin: var(--s-5) 0 var(--s-3); }
.doc-side ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.doc-side a { font-size: 14px; color: var(--graphite); padding: 4px 0; display: block; }
.doc-side a:hover { color: var(--ink); }
.doc-side a.is-active { color: var(--ink); font-weight: 500; border-left: 2px solid var(--ink); padding-left: 10px; margin-left: -12px; }
.doc-content h1 { font-size: clamp(36px, 4vw, 52px); margin-bottom: var(--s-4); }
.doc-content h2 { font-size: 28px; margin: var(--s-9) 0 var(--s-4); }
.doc-content h3 { font-size: 20px; margin: var(--s-7) 0 var(--s-3); }
.doc-content p { font-size: 17px; line-height: 1.65; max-width: 70ch; color: var(--graphite); }
.doc-content ul { padding-left: var(--s-5); }
.doc-content ul li { margin-bottom: var(--s-2); }
.doc-content code { font-family: var(--font-mono); font-size: 13px; background: var(--paper-2); padding: 2px 6px; border: var(--bw) solid var(--line); border-radius: var(--r-1); }

.toc { position: sticky; top: 88px; }
.toc h6 { margin-bottom: var(--s-3); }
.toc ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.toc a { font-size: 13px; color: var(--muted); }
.toc a:hover { color: var(--ink); }

/* -------- Blog grid -------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-7); }
.post { border-top: var(--bw) solid var(--ink); padding-top: var(--s-5); display: flex; flex-direction: column; gap: var(--s-4); }
.post .meta { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.post h3 { font-size: 24px; letter-spacing: -0.018em; }
.post p { color: var(--muted); }
.post:hover h3 { color: var(--signal); }

/* -------- Roadmap / Changelog -------- */
.timeline { border-left: var(--bw) solid var(--ink); padding-left: var(--s-7); display: flex; flex-direction: column; gap: var(--s-8); }
.tl-item { position: relative; }
.tl-item::before {
  content: ""; position: absolute; left: calc(-1 * var(--s-7) - 5px); top: 8px;
  width: 10px; height: 10px; border: var(--bw) solid var(--ink); border-radius: 50%; background: var(--paper);
}
.tl-item.is-now::before { background: var(--ink); }
.tl-item .date { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.tl-item h3 { font-size: 22px; margin: 6px 0 var(--s-2); }

/* -------- Page header -------- */
.page-head { padding: var(--s-10) 0 var(--s-8); border-bottom: var(--bw) solid var(--line); }
.page-head .eyebrow { margin-bottom: var(--s-5); }
.page-head h1 { font-family: var(--font-serif); font-size: clamp(44px, 6vw, 80px); letter-spacing: -0.03em; line-height: 1.02; max-width: 18ch; margin-bottom: var(--s-5); }
.page-head .lead { max-width: 56ch; }

/* -------- Utility -------- */
.muted { color: var(--muted); }
.center { text-align: center; }
.hide-mobile { }
.show-mobile { display: none; }
.divider { height: 1px; background: var(--line); margin: var(--s-7) 0; }
.spacer { flex: 1; }
.no-wrap { white-space: nowrap; }

/* -------- Animations -------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px);} to { opacity: 1; transform: none; } }
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }

@keyframes pulseRing {
  0% { transform: scale(.95); opacity: .8; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* -------- Responsive -------- */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; gap: var(--s-8); }
  .doc-layout { grid-template-columns: 220px 1fr; }
  .toc { display: none; }
  .section-head { grid-template-columns: 1fr; gap: var(--s-5); }
  .bento { grid-template-columns: repeat(4, 1fr); }
  .bento__cell--w3 { grid-column: span 2; }
  .bento__cell--w2 { grid-column: span 2; }
  .bento__cell--w4 { grid-column: span 4; }
  .bento__cell--w6 { grid-column: span 4; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer__brand { grid-column: span 3; }
}
@media (max-width: 720px) {
  :root { --s-11: 64px; --s-10: 48px; --s-9: 40px; }
  .nav__links { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav.is-open .nav__links {
    display: flex; flex-direction: column; align-items: flex-start;
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--paper); border-bottom: var(--bw) solid var(--line);
    padding: var(--s-5) var(--s-6); gap: var(--s-3);
  }
  .nav.is-open .nav__cta { display: none; }
  .nav__cta .btn:not(.nav__toggle) { display: none; }
  .nav__cta .nav__toggle { display: inline-flex; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .bento__cell--w3, .bento__cell--w2, .bento__cell--w4, .bento__cell--w6 { grid-column: span 1; }
  .pricing { grid-template-columns: 1fr; }
  .plan { border-right: 0; border-bottom: var(--bw) solid var(--line); }
  .plan:last-child { border-bottom: 0; }
  .steps { grid-template-columns: 1fr; }
  .posts { grid-template-columns: 1fr; }
  .auth { grid-template-columns: 1fr; }
  .auth__aside { display: none; }
  .doc-layout { grid-template-columns: 1fr; }
  .doc-side { border-right: 0; border-bottom: var(--bw) solid var(--line); padding-right: 0; padding-bottom: var(--s-5); }
  .dash__body { grid-template-columns: 1fr; }
  .dash__side { display: none; }
  .dash__row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: span 2; }
  .hide-mobile { display: none !important; }
  .show-mobile { display: initial; }
  h1 { font-size: 44px; }
  .display { font-size: 56px; }
}

/* ============================================================
   Shim layer — aliases & components added during page build.
   Kept additive to avoid touching the original token system.
   ============================================================ */

/* --- Layout aliases --- */
.grid--2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 1024px){
  .grid--4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 720px){
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

.section--alt { background: var(--paper-2); }
.section--cta { padding: var(--s-11) 0; border-top: var(--bw) solid var(--line); }

/* --- Eyebrow / kicker --- */
.kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-block;
  margin-bottom: var(--s-3);
}
.kicker--inv { color: rgba(244,242,236,0.7); }

/* --- Nav additions --- */
.nav__row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-6); padding: var(--s-4) 0; }
.nav__brand-name { font-weight: 500; }
.nav__link {
  font-size: 14px; color: var(--muted); text-decoration: none;
  padding: 6px 0; transition: color .15s ease;
}
.nav__link:hover, .nav__link.is-active { color: var(--ink); }
.nav__link--quiet { color: var(--muted); }

/* --- Hero additions --- */
.hero__copy { display: flex; flex-direction: column; gap: var(--s-5); }
.hero__lede { font-size: clamp(17px, 1.5vw, 20px); color: var(--graphite); line-height: 1.55; max-width: 56ch; }
.hero__points { list-style: none; padding: 0; margin: var(--s-5) 0 0; display: flex; flex-direction: column; gap: var(--s-2); }
.hero__points li { position: relative; padding-left: var(--s-5); font-size: 14px; color: var(--graphite); }
.hero__points li::before { content: ""; position: absolute; left: 0; top: 9px; width: 10px; height: 1px; background: var(--ink); }
.hero__visual { display: flex; align-items: center; justify-content: center; }
.hero__visual svg { width: 100%; max-width: 480px; height: auto; }
.hero__logos { margin-top: var(--s-10); padding-top: var(--s-7); border-top: var(--bw) solid var(--line); display: flex; flex-direction: column; gap: var(--s-4); align-items: center; }
.hero__logos-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.hero__logos-row { display: flex; gap: var(--s-8); flex-wrap: wrap; justify-content: center; align-items: center; }
.hero__logos-row span { font-family: var(--font-serif); font-size: 20px; color: var(--graphite); letter-spacing: -0.01em; }
.hero__logos-row--lg span { font-size: 26px; }

/* --- Bento additions --- */
.bento__list { list-style: none; padding: 0; margin: var(--s-3) 0 0; display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.bento__list li::before { content: "— "; color: var(--line); }

/* --- Pricing additions --- */
.pricing--full { margin-top: var(--s-6); }
.plan__lede { color: var(--muted); font-size: 14px; margin: 0 0 var(--s-5); }
.plan__list { list-style: none; padding: 0; margin: var(--s-5) 0; display: flex; flex-direction: column; gap: var(--s-2); font-size: 14px; }
.plan__list li { padding-left: var(--s-5); position: relative; }
.plan__list li::before { content: ""; position: absolute; left: 0; top: 10px; width: 10px; height: 1px; background: var(--ink); }
.plan__price { font-family: var(--font-serif); font-size: 36px; letter-spacing: -0.02em; margin: var(--s-3) 0 var(--s-2); }
.plan__per { font-family: var(--font-sans); font-size: 14px; color: var(--muted); margin-left: 4px; }

/* --- Page head --- */
.page-head__lede { font-size: clamp(17px, 1.5vw, 20px); color: var(--graphite); max-width: 64ch; margin-top: var(--s-4); line-height: 1.55; }

/* --- Quotes / cases --- */
.quote__by { display: flex; flex-direction: column; gap: 2px; margin-top: var(--s-5); }
.quote__name { font-weight: 500; }
.quote__role { color: var(--muted); font-size: 13px; }
.case { padding: var(--s-7); border: var(--bw) solid var(--line); background: var(--paper); display: flex; flex-direction: column; gap: var(--s-3); }
.case h3 { font-family: var(--font-serif); font-size: 28px; letter-spacing: -0.02em; margin: 0; }
.case__meta { font-family: var(--font-mono); font-size: 12px; color: var(--muted); border-top: var(--bw) solid var(--line); padding-top: var(--s-3); margin-top: var(--s-3); }

/* --- CTA --- */
.cta { text-align: center; display: flex; flex-direction: column; gap: var(--s-4); align-items: center; }
.cta h2 { font-family: var(--font-serif); font-size: clamp(32px, 4vw, 56px); letter-spacing: -0.02em; max-width: 22ch; margin: 0; }
.cta p { color: var(--muted); max-width: 56ch; }
.cta__row { display: flex; gap: var(--s-3); flex-wrap: wrap; justify-content: center; }

/* --- Metrics --- */
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: var(--s-7); }
@media (max-width:1024px){ .metrics { grid-template-columns: repeat(2,1fr); } }
@media (max-width:720px){ .metrics { grid-template-columns: 1fr; } }
.metric { display: flex; flex-direction: column; gap: var(--s-2); padding: var(--s-5) 0; border-top: var(--bw) solid var(--line); }
.metric__n { font-family: var(--font-serif); font-size: clamp(40px, 4.5vw, 64px); letter-spacing: -0.03em; line-height: 1; color: var(--ink); }
.metric__l { font-size: 13px; color: var(--muted); }

/* --- Tabs --- */
.tabs__bar { display: flex; gap: var(--s-2); flex-wrap: wrap; border-bottom: var(--bw) solid var(--line); margin-bottom: var(--s-7); }
.tabs__bar button {
  appearance: none; background: transparent; border: 0; cursor: pointer;
  padding: var(--s-3) var(--s-4); font: inherit; font-size: 14px;
  color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tabs__bar button.is-active { color: var(--ink); border-bottom-color: var(--ink); }
.tabs__panels > div { display: none; }
.tabs__panels > div.is-active { display: block; }

/* --- Steps --- */
.step__n { font-family: var(--font-mono); font-size: 12px; color: var(--muted); letter-spacing: 0.18em; }

/* --- Compare zebra --- */
.compare--zebra tbody tr:nth-child(even) { background: var(--paper-2); }

/* --- Ticks --- */
.ticks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--s-2); }
.ticks li { position: relative; padding-left: var(--s-6); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 10px; width: 12px; height: 1px; background: var(--ink); }

/* --- Forms --- */
.form { display: flex; flex-direction: column; gap: var(--s-4); max-width: 480px; }
.form__note { font-size: 12px; color: var(--muted); }
.btn--full { width: 100%; justify-content: center; display: inline-flex; align-items: center; }
.rule { border: 0; border-top: var(--bw) solid var(--line); margin: var(--s-4) 0; }

/* --- Contact aside --- */
.contact-aside { padding: var(--s-7); border: var(--bw) solid var(--line); display: flex; flex-direction: column; gap: var(--s-3); background: var(--paper); }
.contact-aside h3 { font-family: var(--font-serif); font-size: 22px; letter-spacing: -0.01em; margin: 0 0 var(--s-2); }
.contact-aside p { color: var(--graphite); font-size: 14px; }

/* --- Posts --- */
.post__meta { font-size: 12px; color: var(--muted); font-family: var(--font-mono); margin-top: var(--s-3); }

/* --- Card meta --- */
.card__meta { font-family: var(--font-mono); font-size: 12px; color: var(--muted); letter-spacing: 0.12em; text-transform: uppercase; }

/* --- Footer --- */
.footer { border-top: var(--bw) solid var(--line); margin-top: var(--s-11); padding: var(--s-10) 0 var(--s-6); background: var(--paper); }
.footer__grid { display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: var(--s-8); }
@media (max-width:1024px){ .footer__grid { grid-template-columns: repeat(3,1fr); } .footer__brand { grid-column: 1 / -1; } }
@media (max-width:720px){ .footer__grid { grid-template-columns: 1fr 1fr; } }
.footer__col { display: flex; flex-direction: column; gap: var(--s-2); font-size: 14px; }
.footer__col a { color: var(--muted); text-decoration: none; }
.footer__col a:hover { color: var(--ink); }
.footer__h { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink); margin: 0 0 var(--s-2); }
.footer__brand { display: flex; flex-direction: column; gap: var(--s-3); }
.footer__tag { color: var(--graphite); max-width: 32ch; }
.footer__meta { color: var(--muted); font-size: 12px; font-family: var(--font-mono); }
.footer__base { display: flex; justify-content: space-between; align-items: center; padding-top: var(--s-7); margin-top: var(--s-8); border-top: var(--bw) solid var(--line); font-size: 12px; color: var(--muted); font-family: var(--font-mono); }
.footer__ip::before { content: "●  "; color: var(--ok, #2a6f3a); }

/* --- Auth --- */
.auth__lede { color: var(--muted); margin: 0 0 var(--s-5); }
.auth__alt { font-size: 13px; color: var(--muted); margin-top: var(--s-5); }
.auth__quote { padding: var(--s-9); background: var(--ink); color: var(--paper); display: flex; flex-direction: column; justify-content: flex-end; gap: var(--s-4); }
.auth__quote .quote__text { color: var(--paper); font-family: var(--font-serif); font-size: 28px; line-height: 1.3; letter-spacing: -0.01em; }
.auth__quote .quote__role { color: rgba(244,242,236,0.6); }

/* --- Docs body --- */
.doc-body { padding: var(--s-9) var(--s-7); max-width: 760px; }
.doc-body h1 { font-family: var(--font-serif); font-size: clamp(32px, 3.6vw, 48px); letter-spacing: -0.02em; margin: var(--s-2) 0 var(--s-4); }
.doc-body h2 { font-family: var(--font-serif); font-size: 24px; margin: var(--s-8) 0 var(--s-3); letter-spacing: -0.01em; }
.doc-body p { color: var(--graphite); line-height: 1.6; }
.doc-body__lede { font-size: 18px; color: var(--graphite); margin-bottom: var(--s-6); }
.doc-side__inner { position: sticky; top: var(--s-7); display: flex; flex-direction: column; gap: 6px; padding: var(--s-7) var(--s-5); border-right: var(--bw) solid var(--line); min-height: 100%; }
.doc-side__inner h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin: var(--s-4) 0 var(--s-2); }
.doc-side__inner a { color: var(--graphite); text-decoration: none; font-size: 14px; padding: 4px 0; }
.doc-side__inner a:hover, .doc-side__inner a.is-active { color: var(--ink); }

/* --- Prose (legal) --- */
.prose { max-width: 70ch; }
.prose h2 { font-family: var(--font-serif); font-size: 22px; margin: var(--s-7) 0 var(--s-3); letter-spacing: -0.01em; }
.prose p, .prose li { color: var(--graphite); line-height: 1.65; font-size: 16px; }
.prose ul { padding-left: var(--s-5); display: flex; flex-direction: column; gap: var(--s-2); }

/* --- Dashboard --- */
.dash__nav { padding: var(--s-7) var(--s-5); border-right: var(--bw) solid var(--line); display: flex; flex-direction: column; gap: 4px; background: var(--paper); }
.dash__nav h4 { font-family: var(--font-serif); font-size: 18px; margin: var(--s-2) 0 var(--s-4); }
.dash__nav a { color: var(--muted); font-size: 14px; padding: 6px 8px; text-decoration: none; border-radius: 4px; }
.dash__nav a:hover, .dash__nav a.is-active { color: var(--ink); background: var(--paper-2); }
.dash__main { padding: var(--s-7); display: flex; flex-direction: column; gap: var(--s-6); }
.dash__row { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: var(--s-5); }
@media (max-width:1024px){ .dash__row { grid-template-columns: 1fr; } }
.dash__card { padding: var(--s-5); border: var(--bw) solid var(--line); background: var(--paper); display: flex; flex-direction: column; gap: var(--s-3); }
.dash__card h2 { font-family: var(--font-serif); font-size: 32px; letter-spacing: -0.02em; margin: 0; }
.dash__pct { font-family: var(--font-sans); font-size: 14px; color: var(--muted); }
.dash__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--s-2); font-size: 13px; }
.dash__list li { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: var(--bw) solid var(--line); }
.dash__panel { border: var(--bw) solid var(--line); background: var(--paper); }
.dash__panel-head { padding: var(--s-4) var(--s-5); display: flex; justify-content: space-between; align-items: center; border-bottom: var(--bw) solid var(--line); }
.dash__panel-head a { color: var(--muted); font-size: 13px; text-decoration: none; }
.dash__panel table { width: 100%; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 60px; }
.bars span { display: block; width: 14px; background: var(--ink); height: var(--h); }
.spark svg { width: 100%; height: 60px; display: block; }
.tag--warn { color: #8a5a00; border-color: #d9c69c; background: #fff7e2; }

/* --- Roles --- */
.roles { display: grid; grid-template-columns: 1fr; gap: 0; border-top: var(--bw) solid var(--line); }
.role { display: grid; grid-template-columns: 140px 1fr auto; gap: var(--s-5); padding: var(--s-5) 0; border-bottom: var(--bw) solid var(--line); text-decoration: none; color: var(--ink); align-items: center; }
.role__team { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.role__title { font-family: var(--font-serif); font-size: 20px; letter-spacing: -0.01em; }
.role__loc { color: var(--muted); font-size: 13px; }
.role:hover { background: var(--paper-2); }
@media (max-width:720px){ .role { grid-template-columns: 1fr; gap: var(--s-2); padding: var(--s-4) 0; } }

/* --- Timeline date --- */
.tl-item__date { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; color: var(--muted); }

/* --- Logos grid (integrations) --- */
.logos-grid { margin-top: var(--s-6); }

/* --- Tabs panels container baseline --- */
.tabs { display: block; }
