/* WavyCloud — design tokens
   Direction: Ramp-style. White canvas, one regular-weight grotesk, two-tone headlines,
   warm-gray product panels, lime reserved for primary CTAs. */
:root {
  --ink: #0c0a08;
  --ink-60: rgb(12 10 8 / 0.6);
  --ink-45: rgb(12 10 8 / 0.45);
  --ink-30: rgb(12 10 8 / 0.3);
  --line: rgb(12 10 8 / 0.1);
  --line-strong: rgb(12 10 8 / 0.18);
  --canvas: #ffffff;
  --surface: #f4f2f0;
  --surface-2: #ebe8e4;
  --lime: #e4f222;        /* primary CTA + highlighted plan only */
  --lime-hover: #d6e40e;
  --dark: #1a1919;
  --footer: #1f1f1d;
  --good: #1f7a45;
  --good-bg: #e3f1e8;
  --bad: #b8321c;
  --bad-bg: #fbe8e3;

  --font: "Geist", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --gutter: 64px;
  --section: 136px;
  --r-btn: 6px;
  --r-input: 8px;
  --r-panel: 12px;
  --shadow-float: 0 1px 2px rgb(12 10 8 / 0.05), 0 18px 40px -16px rgb(12 10 8 / 0.18);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; background: var(--canvas); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; }
a { color: inherit; }
p, h1, h2, h3, h4, ul, ol, dl, dd, blockquote, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-weight: 400; text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -48px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--r-btn); text-decoration: none; }
.skip:focus { top: 12px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.wrap { width: min(1312px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.center { text-align: center; margin-inline: auto; }

/* ---------- Type ---------- */
.display, .h-xl { font-size: 64px; line-height: 64px; letter-spacing: -0.02em; }
.h-lg { font-size: 48px; line-height: 50px; letter-spacing: -0.015em; }
.h-md { font-size: 28px; line-height: 32px; letter-spacing: -0.01em; }
.h-sm { font-size: 24px; line-height: 28px; letter-spacing: -0.01em; }
.h-xs { font-size: 20px; line-height: 26px; }
.two-tone span { color: var(--ink-60); }
.two-tone .block { display: block; }
.lede { font-size: 20px; line-height: 28px; color: var(--ink-60); max-width: 640px; margin-top: 20px; }
.sub { font-size: 16px; line-height: 22px; color: var(--ink-60); margin-top: 16px; max-width: 560px; }
.sub-lg { font-size: 20px; line-height: 28px; }
.muted { color: var(--ink-60); }
.fine { font-size: 14px; line-height: 20px; color: var(--ink-60); margin-top: 14px; }
.eyebrow { font-size: 14px; line-height: 20px; color: var(--ink-60); margin-bottom: 12px; }
.mono-label { font-family: var(--mono); font-size: 11px; line-height: 16px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-45); }
.link { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; color: var(--ink-60); text-decoration: none; transition: color .15s; }
.link:hover { color: var(--ink); }
.link svg { transition: transform .15s; }
.link:hover svg { transform: translateX(3px); }
.chip {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.02em;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2px 6px;
  font-variant-numeric: tabular-nums;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px;
  border: 0; border-radius: var(--r-btn);
  font-size: 14px; line-height: 1; white-space: nowrap;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-lg { height: 48px; padding: 0 20px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-lime:hover { background: var(--lime-hover); }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-gray { background: var(--surface); color: var(--ink); }
.btn-gray:hover { background: var(--surface-2); }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }

/* ---------- Sheet + announce + nav ---------- */
.sheet { position: relative; z-index: 1; background: var(--canvas); border-radius: 0 0 24px 24px; }
.announce {
  position: relative;
  background: var(--dark); color: #fff;
  font-size: 14px; line-height: 20px;
  padding: 10px 48px; text-align: center;
}
.announce a { color: #fff; text-underline-offset: 3px; margin-left: 6px; }
.announce-close {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  display: grid; place-items: center; width: 32px; height: 32px;
  background: none; border: 0; color: rgb(255 255 255 / 0.7); cursor: pointer; border-radius: var(--r-btn);
}
.announce-close:hover { color: #fff; }
.announce[hidden] { display: none; }

.nav { position: sticky; top: 0; z-index: 50; background: rgb(255 255 255 / 0.92); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; gap: 32px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; color: var(--ink); }
.logo-word { font-size: 23px; line-height: 1; font-weight: 500; letter-spacing: -0.045em; }
.logo-mark { margin-top: -2px; transform-origin: 30% 90%; }
.logo:hover .logo-mark, .logo-mark.is-waving { animation: wave 1.1s ease-in-out; }
@keyframes wave {
  0%, 100% { transform: rotate(0); }
  15% { transform: rotate(-14deg); }
  35% { transform: rotate(10deg); }
  55% { transform: rotate(-9deg); }
  75% { transform: rotate(6deg); }
}
.nav-links { display: flex; gap: 4px; margin-right: auto; }
.nav-links a { font-size: 14px; line-height: 14px; padding: 10px 12px; border-radius: var(--r-btn); text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current="page"] { background: var(--surface); }
.nav-cta { display: flex; align-items: center; gap: 8px; }
.nav-menu { display: none; place-items: center; width: 40px; height: 40px; background: var(--surface); border: 0; border-radius: var(--r-btn); cursor: pointer; }
.mobile-menu { border-top: 1px solid var(--line); padding: 8px var(--gutter) 16px; background: #fff; }
.mobile-menu a { display: block; padding: 12px 0; font-size: 18px; text-decoration: none; border-bottom: 1px solid var(--line); }

/* ---------- Hero ---------- */
.hero { padding-top: 72px; }
.meter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 28px; }
.meter-label { font-family: var(--mono); font-size: 11px; line-height: 16px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-60); }
.meter .chip { min-width: 92px; text-align: center; }

.combo {
  position: relative;
  display: flex; align-items: center; gap: 8px;
  width: min(520px, 100%);
  margin-top: 32px; padding: 4px 4px 4px 0;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-input);
}
.combo input[type="email"] {
  flex: 1; min-width: 0; height: 48px; padding: 0 16px;
  background: transparent; border: 0; outline: 0; font-size: 16px;
}
.combo input::placeholder { color: var(--ink-45); }
.combo:focus-within { border-color: var(--ink-60); box-shadow: 0 0 0 3px rgb(12 10 8 / 0.08); }
.combo-center { margin-inline: auto; }
.form-status { position: absolute; left: 0; top: calc(100% + 8px); font-size: 14px; line-height: 20px; }
.form-status.is-ok { color: var(--good); }
.form-status.is-error { color: var(--bad); }
.combo + .fine { margin-top: 16px; }
.combo.is-sent + .fine, .combo.is-error + .fine { margin-top: 40px; }

.stage {
  position: relative;
  margin-top: 56px;
  height: 640px;
  padding: 40px 24px 0;
  background: var(--surface);
  border-radius: var(--r-panel);
  overflow: hidden;
}
.waves { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--ink); opacity: 0.13; pointer-events: none; }

.chat {
  position: relative; z-index: 2;
  width: min(620px, 100%); height: 548px;
  margin: 0 auto;
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  box-shadow: var(--shadow-float);
}
.chat-bar { display: flex; align-items: center; height: 44px; padding: 0 14px; border-bottom: 1px solid var(--line); flex: none; }
.lights { display: flex; gap: 6px; width: 120px; }
.lights i { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-2); }
.chat-title { flex: 1; text-align: center; font-size: 13px; color: var(--ink-60); }
.chat-conn { width: 120px; display: inline-flex; align-items: center; justify-content: flex-end; gap: 6px; font-family: var(--mono); font-size: 11px; color: var(--ink-60); }
.chat-body {
  flex: 1; min-height: 0;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 12px;
  padding: 20px; overflow: hidden;
  font-size: 14px; line-height: 21px;
}
.msg-user { align-self: flex-end; max-width: 80%; background: var(--surface); border-radius: 14px 14px 4px 14px; padding: 9px 14px; }
.msg-ai { display: grid; gap: 10px; }
.msg-ai b { font-weight: 500; }
.toolcall {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11.5px; line-height: 16px; color: var(--ink-60);
  border: 1px solid var(--line); border-radius: var(--r-btn); padding: 6px 10px;
}
.toolcall b { font-weight: 500; color: var(--ink); }
.tc-time { margin-left: 10px; color: var(--ink-45); }
.mini-table { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 18px; font-variant-numeric: tabular-nums; }
.mini-table th { text-align: left; font-weight: 400; color: var(--ink-45); font-size: 12px; padding: 0 0 6px; }
.mini-table td { border-top: 1px solid var(--line); padding: 7px 0; }
.mini-table th:not(:first-child), .mini-table td:not(:first-child) { text-align: right; }
.bad { display: inline-block; white-space: nowrap; font-family: var(--mono); font-size: 11.5px; line-height: 16px; font-style: normal; color: var(--bad); background: var(--bad-bg); border-radius: 4px; padding: 0 6px; }
.ok-text { color: var(--good); font-weight: 500; }
.preview { border: 1px solid var(--line-strong); border-radius: var(--r-input); padding: 14px; display: grid; gap: 10px; }
.preview-head { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--ink-60); }
.preview ul { display: grid; gap: 4px; font-size: 13px; }
.preview li { display: flex; justify-content: space-between; }
.preview li b { font-weight: 500; font-variant-numeric: tabular-nums; }
.preview-actions { display: flex; gap: 6px; }
.fake-btn { display: inline-block; font-size: 12px; line-height: 16px; padding: 6px 10px; border-radius: var(--r-btn); background: var(--surface); }
.fake-btn-dark { background: var(--dark); color: #fff; transition: transform .15s, box-shadow .15s; }
.fake-btn-dark.is-pressed { transform: scale(0.94); box-shadow: 0 0 0 4px rgb(12 10 8 / 0.12); }

.float {
  position: absolute; z-index: 3; width: 248px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 14px 16px; box-shadow: var(--shadow-float);
  font-size: 13px; line-height: 18px;
}
.float-left { top: 88px; left: 48px; }
.float-right { top: 208px; right: 48px; }
.float-title { display: flex; justify-content: space-between; align-items: center; font-weight: 500; margin-bottom: 10px; }
.tag { font-family: var(--mono); font-size: 10.5px; line-height: 14px; letter-spacing: 0.02em; color: var(--ink-45); font-weight: 400; }
.conn { display: grid; gap: 8px; }
.conn li { display: flex; align-items: center; gap: 8px; }
.conn .tag { margin-left: auto; }
.dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.dot.ok { background: var(--good); box-shadow: 0 0 0 3px var(--good-bg); }
.dot.off { background: var(--ink-30); box-shadow: 0 0 0 3px var(--surface); }
.pulse { display: grid; gap: 7px; }
.pulse div { display: flex; justify-content: space-between; align-items: center; }
.pulse dt { color: var(--ink-60); }
.pulse dd { font-variant-numeric: tabular-nums; }
.up { font-size: 11.5px; color: var(--good); margin-left: 4px; }

/* JS-driven chat reveal */
.js [data-demo] [data-step] { display: none; }
.js [data-demo] [data-step].is-in { display: grid; animation: rise .35s ease-out both; }
.js [data-demo] .msg-user[data-step].is-in { display: block; }
.js [data-demo] .toolcall[data-step].is-in { display: inline-flex; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Ticker */
.ticker {
  position: relative; z-index: 4;
  margin-top: -52px;
  border-block: 1px solid var(--line);
  background: rgb(255 255 255 / 0.9);
  backdrop-filter: blur(8px);
  overflow: hidden;
}
.ticker-track { display: flex; width: max-content; animation: marquee 70s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-list { display: flex; flex: none; gap: 32px; padding: 13px 16px; font-family: var(--mono); font-size: 11.5px; line-height: 16px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-60); }
.ticker-list li { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.ticker-list .chip { font-size: 11px; padding: 1px 6px; }
@keyframes marquee { to { transform: translateX(-50%); } }
.footnote { font-family: var(--mono); font-size: 11px; line-height: 16px; color: var(--ink-45); margin-top: 14px; }

/* ---------- Sections ---------- */
.section { padding-top: var(--section); }
.final { padding-bottom: var(--section); }

/* Works with */
.works .h-md { max-width: 640px; }
.wall { display: grid; grid-template-columns: 2fr 1fr; gap: 0; margin-top: 48px; }
.wall-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line); border-right: 0;
  border-radius: 8px 0 0 8px;
}
.wall-grid li {
  position: relative;
  display: grid; place-items: center;
  height: 148px; padding: 12px;
  border-right: 1px solid var(--line);
  font-size: 20px; line-height: 24px; letter-spacing: -0.02em; font-weight: 500;
  color: var(--ink-45);
  text-align: center;
}
.wall-grid li:nth-child(-n + 4) { border-bottom: 1px solid var(--line); }
.wall-grid li:nth-child(-n + 3)::after {
  content: ""; position: absolute; right: -5px; bottom: -5px; width: 9px; height: 9px; z-index: 1;
  background:
    linear-gradient(var(--ink-30), var(--ink-30)) center / 1px 9px no-repeat,
    linear-gradient(var(--ink-30), var(--ink-30)) center / 9px 1px no-repeat;
  background-color: #fff;
}
.wall-stat {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 24px; border-radius: 8px;
  background: var(--dark); color: #fff;
}
.wall-stat .waves { color: #fff; opacity: 0.16; }
.wall-kicker { position: absolute; top: 20px; left: 24px; display: flex; align-items: center; gap: 8px; font-size: 13px; color: rgb(255 255 255 / 0.8); }
.stat { position: relative; font-size: 64px; line-height: 64px; letter-spacing: -0.02em; }
.stat-sub { position: relative; color: rgb(255 255 255 / 0.6); margin-top: 6px; }

/* Monday chaos */
.chaos { position: relative; max-width: 1100px; height: 560px; margin: 56px auto 0; }
.chaos-lines { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--ink-30); }
.bit {
  position: absolute;
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  box-shadow: var(--shadow-float);
  font-size: 13px; line-height: 18px;
  padding: 10px 12px;
}
.bit-tabs { left: 1%; top: 3%; width: 340px; padding: 0; overflow: hidden; }
.tabs { display: flex; background: var(--surface); border-bottom: 1px solid var(--line); font-size: 11.5px; }
.tabs span { padding: 8px 10px; border-right: 1px solid var(--line); white-space: nowrap; color: var(--ink-60); }
.tabs .on { background: #fff; color: var(--ink); }
.tabs-body { padding: 14px 12px; display: grid; gap: 8px; }
.tabs-body i { height: 8px; border-radius: 4px; background: var(--surface); }
.tabs-body .short { width: 60%; }
.bit-file { left: 41%; top: 27%; display: flex; align-items: center; gap: 10px; transform: rotate(-2deg); }
.file-ico { font-family: var(--mono); font-size: 10px; color: #fff; background: var(--good); border-radius: 3px; padding: 6px 5px; }
.bit-sheet { left: 4%; top: 44%; padding: 0; overflow: hidden; transform: rotate(1.5deg); }
.bit-sheet table { border-collapse: collapse; font-family: var(--mono); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.bit-sheet th, .bit-sheet td { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 6px 12px; text-align: left; font-weight: 400; }
.bit-sheet th { background: var(--surface); color: var(--ink-60); }
.na { color: var(--bad); }
.formula { font-family: var(--mono); font-size: 11px; color: var(--ink-60); padding: 8px 12px; }
.bit-msg { left: 75%; top: 16%; display: flex; gap: 10px; align-items: center; }
.bit-msg b { display: block; font-weight: 500; font-size: 12px; }
.avatar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--surface-2); font-size: 11px; font-weight: 500; flex: none; }
.bit-cal { left: 68%; top: 70%; border-left: 0; display: grid; gap: 2px; background: var(--surface); transform: rotate(2deg); }
.cal-time { font-family: var(--mono); font-size: 11px; color: var(--ink-60); }
.bit-invoice { left: 33%; top: 76%; display: grid; gap: 2px; }
.bit-invoice b { font-weight: 500; font-size: 16px; }
.bit-mail { left: 49%; top: 4%; display: flex; gap: 10px; align-items: center; }
.mail-from { font-weight: 500; }
.mail-time { font-size: 11.5px; color: var(--ink-45); }
.bit-wait { left: 46%; top: 50%; display: flex; gap: 10px; align-items: center; color: var(--ink-60); }
.spinner { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-strong); border-top-color: var(--ink); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.bit-note { left: 83%; top: 44%; background: #fff6bf; border-color: transparent; font-family: var(--mono); font-size: 12px; transform: rotate(-4deg); }
.after { font-size: 28px; line-height: 32px; letter-spacing: -0.01em; max-width: 760px; margin-top: 48px; }
.after span { display: block; }

/* Product tiles */
.tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: 56px; }
.tile {
  grid-column: span 2;
  display: flex; flex-direction: column;
  min-height: 400px; padding: 28px 28px 0;
  background: var(--surface); border-radius: 8px; overflow: hidden;
}
.tile-wide { grid-column: span 3; min-height: 440px; }
.tile-title { font-size: 24px; line-height: 28px; letter-spacing: -0.01em; max-width: 420px; }
.tile-visual { margin-top: auto; padding-top: 32px; }
.ui {
  background: #fff; border: 1px solid var(--line); border-bottom: 0;
  border-radius: 8px 8px 0 0; padding: 16px;
  font-size: 13px; line-height: 18px; font-variant-numeric: tabular-nums;
}
.ui-table > div { display: grid; grid-template-columns: 2.2fr 1fr .8fr .8fr; gap: 8px; padding: 9px 0; border-top: 1px solid var(--line); }
.ui-table > div span:not(:first-child) { text-align: right; }
.ui-table .ui-head { border-top: 0; padding-top: 0; color: var(--ink-45); font-size: 12px; }
.ui-table .dim { opacity: 0.5; }
.ui-cover { display: grid; gap: 14px; }
.cover-row { display: grid; grid-template-columns: 116px 1fr 64px; gap: 12px; align-items: center; }
.sku { font-family: var(--mono); font-size: 11.5px; }
.bar { height: 8px; border-radius: 4px; background: var(--surface); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 4px; background: var(--ink); }
.bar i.low { background: var(--bad); }
.days { text-align: right; font-size: 12px; white-space: nowrap; }
.days.bad { justify-self: end; }
.cover-lead { font-family: var(--mono); font-size: 11px; color: var(--ink-45); padding-top: 4px; border-top: 1px solid var(--line); }
.ui-fall { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; height: 190px; padding-bottom: 34px; }
.fall { position: relative; }
.fall i { position: absolute; left: 0; right: 0; bottom: var(--o, 0); height: var(--h); background: var(--ink); border-radius: 3px; }
.fall.neg i { background: repeating-linear-gradient(135deg, var(--bad) 0 3px, #d9573f 3px 6px); opacity: 0.85; }
.fall span { position: absolute; left: 50%; bottom: -24px; transform: translateX(-50%); font-size: 10.5px; color: var(--ink-60); white-space: nowrap; }
.ui-diff { display: grid; gap: 9px; }
.diff { display: grid; grid-template-columns: 1fr auto auto auto; align-items: center; gap: 8px; padding-top: 9px; border-top: 1px solid var(--line); }
.diff .was { color: var(--ink-45); text-decoration: line-through; }
.diff b { font-weight: 500; }
.diff svg { color: var(--ink-45); }
.ui-diff .preview-actions { padding-top: 4px; padding-bottom: 6px; }
.ui-slack { display: grid; gap: 8px; padding-bottom: 22px; }
.slack-head { display: flex; align-items: center; gap: 8px; }
.slack-head b { font-weight: 500; }
.slack-ava { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 6px; background: var(--ink); color: #fff; }
.slack-time { font-size: 11.5px; color: var(--ink-45); }
.ui-slack p b { font-weight: 500; }
.ui-slack ul { display: grid; gap: 4px; padding-left: 16px; list-style: disc; color: var(--ink-60); }
.ui-slack li b { color: var(--ink); font-weight: 500; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 56px; }
.step-visual { display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; height: 280px; padding: 24px; background: var(--surface); border-radius: 8px; margin-bottom: 24px; }
.step-num { font-family: var(--mono); font-size: 12px; color: var(--ink-45); margin-bottom: 8px; }
.step .muted { margin-top: 10px; max-width: 380px; }
.ui-toggles, .ui-ask { width: min(340px, 100%); border-radius: 10px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-float); }
.ui-toggles { display: grid; gap: 0; padding: 4px 16px; }
.tg { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.tg:first-child { border-top: 0; }
.sw { position: relative; width: 30px; height: 18px; border-radius: 999px; background: var(--surface-2); flex: none; }
.sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgb(12 10 8 / 0.2); transition: transform .2s; }
.sw.on { background: var(--ink); }
.sw.on::after { transform: translateX(12px); }
.ui-url { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; width: min(380px, 100%); border-radius: 10px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-float); }
.url-row { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 12px; background: var(--surface); border-radius: var(--r-btn); }
.url-row code { flex: 1; min-width: 0; font-family: var(--mono); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copy { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; font-size: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-btn); cursor: pointer; }
.copy:hover { border-color: var(--line-strong); }
.url-hint { font-size: 11.5px; color: var(--ink-45); }
.ui-ask { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; font-size: 14px; }
.ask-text { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; }
.ask-text::after { content: ""; display: inline-block; width: 1.5px; height: 16px; margin-left: 1px; vertical-align: -3px; background: var(--ink); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.ask-send { display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--r-btn); background: var(--dark); color: #fff; flex: none; }

/* Prompt rows */
.rows { display: grid; gap: 16px; margin-top: 56px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.row { overflow: hidden; }
.row-track { display: flex; gap: 16px; width: max-content; padding-inline: 8px; }
.js .row-track { animation: marquee 80s linear infinite; }
.js .row-rev .row-track { animation-direction: reverse; animation-duration: 90s; }
.rows:hover .row-track { animation-play-state: paused; }
.q {
  width: 340px; flex: none;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-panel);
  padding: 18px 20px 20px; font-size: 16px; line-height: 22px;
}
.q .mono-label { display: block; margin-bottom: 10px; }

/* Pricing */
.billing { display: flex; width: max-content; margin: 36px auto 0; padding: 4px; gap: 4px; background: var(--surface); border-radius: var(--r-input); }
.seg { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border: 1px solid transparent; border-radius: var(--r-btn); background: transparent; font-size: 14px; cursor: pointer; color: var(--ink-60); }
.seg.is-on { background: #fff; border-color: var(--line); color: var(--ink); box-shadow: 0 1px 2px rgb(12 10 8 / 0.06); }
.seg-note { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--good); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; align-items: start; }
.plan { position: relative; border: 1px solid var(--line-strong); border-radius: 8px; padding: 44px 28px 32px; }
.plan-tab {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  padding: 4px 24px; border-radius: var(--r-btn);
  background: var(--surface); font-size: 14px; line-height: 20px; white-space: nowrap;
}
.plan-hot { border: 2px solid var(--lime); padding: 43px 27px 31px; }
.plan-hot .plan-tab { background: var(--lime); }
.plan-tab-dark { background: var(--dark); color: #fff; }
.plan-name { font-size: 28px; line-height: 32px; letter-spacing: -0.01em; }
.plan-price { font-size: 28px; line-height: 32px; letter-spacing: -0.01em; color: var(--ink-60); font-variant-numeric: tabular-nums; }
.plan-note { font-size: 13px; line-height: 18px; color: var(--ink-60); margin-top: 6px; min-height: 18px; }
.plan-for { margin: 32px 0 20px; min-height: 48px; }
.plan hr { border: 0; border-top: 1px solid var(--line-strong); margin: 32px 0 28px; }
.plan-lead { margin-bottom: 4px; }
.plan h4 { font-size: 15px; line-height: 20px; margin-top: 22px; margin-bottom: 8px; }
.checks { display: grid; gap: 8px; }
.checks li { position: relative; padding-left: 24px; font-size: 14px; line-height: 20px; color: rgb(12 10 8 / 0.72); }
.checks li::before {
  content: ""; position: absolute; left: 2px; top: 3px; width: 14px; height: 14px;
  background: var(--ink-45);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3.5 8.5 3 3 6-7' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3.5 8.5 3 3 6-7' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
#pricing .fine { margin-top: 32px; }

/* Split layouts */
.split { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; }
.split-text { display: flex; flex-direction: column; }
.split-text .muted { margin-top: 16px; max-width: 440px; }
.aside { margin-top: auto; padding-top: 48px; max-width: 420px; }
.aside p { font-size: 16px; line-height: 22px; }
.aside footer { font-size: 14px; color: var(--ink-60); margin-top: 12px; }
.receipt-stage { position: relative; display: grid; place-items: center; min-height: 560px; padding: 56px 24px; background: var(--surface); border-radius: var(--r-panel); overflow: hidden; }
.receipt {
  position: relative;
  width: min(400px, 100%);
  padding: 28px 28px 32px;
  background: #fff;
  font-family: var(--mono); font-size: 12.5px; line-height: 18px; letter-spacing: 0.01em;
  filter: drop-shadow(0 18px 30px rgb(12 10 8 / 0.12));
  transform: rotate(-1.5deg);
}
.receipt::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 10px;
  background:
    linear-gradient(-45deg, transparent 7px, #fff 0) 0 0 / 14px 10px repeat-x,
    linear-gradient(45deg, transparent 7px, #fff 0) 0 0 / 14px 10px repeat-x;
}
.r-head { text-align: center; font-size: 14px; letter-spacing: 0.12em; font-weight: 500; }
.r-meta { display: flex; justify-content: space-between; color: var(--ink-60); margin: 10px 0 14px; padding-bottom: 14px; border-bottom: 1px dashed var(--ink-30); }
.r-lines { display: grid; gap: 8px; }
.r-lines li, .r-total li { display: flex; justify-content: space-between; gap: 16px; }
.r-lines b, .r-total b { font-weight: 500; }
.r-lines .bonus span { color: var(--good); }
.r-total { display: grid; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--ink-30); }
.r-total s { color: var(--ink-45); }
.r-total .pay { font-size: 15px; }
.r-foot { text-align: center; color: var(--ink-45); font-size: 11px; letter-spacing: 0.1em; margin-top: 20px; padding-top: 14px; border-top: 1px dashed var(--ink-30); }

/* Guarantees */
.guarantees { display: grid; grid-template-columns: 1fr 1fr; margin-top: 56px; border-top: 1px solid var(--line-strong); }
.g { padding: 32px 48px 32px 0; display: grid; gap: 10px; align-content: start; }
.g + .g { padding: 32px 0 32px 48px; border-left: 1px solid var(--line); }
.g .muted { max-width: 520px; }
.banner {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  margin-top: 32px; padding: 40px 48px;
  background: var(--surface); border-radius: 8px;
}
.banner .waves { left: 45%; width: 55%; -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); mask-image: linear-gradient(90deg, transparent, #000 60%); opacity: 0.2; }
.banner > div, .banner .btn { position: relative; }
.banner-title { font-size: 20px; line-height: 26px; }
.banner .muted { font-size: 14px; margin-top: 4px; }

/* Facts */
.narrow { max-width: 680px; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 56px; }
.fact { border-top: 1px solid var(--ink); padding-top: 20px; }
.fact .muted { margin-top: 10px; font-size: 15px; line-height: 22px; }

/* Apply form */
.split-form { align-items: start; }
.process { display: grid; margin-top: 32px; max-width: 460px; }
.process li { display: grid; grid-template-columns: 40px 1fr; gap: 8px; padding: 16px 0; border-top: 1px solid var(--line); color: var(--ink-60); }
.process .mono-label { padding-top: 4px; }
.process b { font-weight: 400; color: var(--ink); }
.apply { position: relative; display: grid; gap: 16px; padding: 32px; background: var(--surface); border-radius: var(--r-panel); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; font-size: 14px; line-height: 20px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 14px; font-size: 16px; line-height: 22px;
  background: #fff; border: 1px solid var(--line-strong); border-radius: var(--r-btn);
  outline: 0; transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 92px; }
.field select { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%230c0a08' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") right 14px center no-repeat; padding-right: 36px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink-60); box-shadow: 0 0 0 3px rgb(12 10 8 / 0.08); }
.apply .btn { justify-self: start; }
.apply .form-status { position: static; }

/* FAQ */
.split-faq { grid-template-columns: 4fr 8fr; align-items: start; }
.split-faq > h2 { position: sticky; top: 104px; }
.faq details { border-top: 1px solid var(--line-strong); }
.faq details:last-child { border-bottom: 1px solid var(--line-strong); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 0; font-size: 20px; line-height: 26px; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 14px; height: 14px; flex: none;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 14px 1.5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 1.5px 14px no-repeat;
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-60); max-width: 640px; padding-bottom: 24px; margin-top: -6px; }

/* Final */
.final .combo { margin-top: 28px; }
.final .fine { margin-top: 16px; }

/* ---------- Footer ---------- */
.footer { margin-top: -24px; padding: calc(24px + 88px) 0 48px; background: var(--footer); color: rgb(255 255 255 / 0.6); font-size: 14px; line-height: 20px; }
.footer-top { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.logo-light { color: #fff; }
.footer-slogan { margin-top: 16px; font-size: 20px; line-height: 26px; color: rgb(255 255 255 / 0.6); max-width: 320px; }
.footer-cols { display: grid; grid-template-columns: repeat(4, minmax(120px, auto)); gap: 40px; }
.footer-cols p { color: #fff; margin-bottom: 10px; }
.footer-cols a { display: block; text-decoration: none; padding: 4px 0; }
.footer-cols a:hover { color: #fff; }
.footer-legal { display: grid; gap: 10px; margin-top: 72px; padding-top: 28px; border-top: 1px solid rgb(255 255 255 / 0.12); font-size: 13px; line-height: 19px; }
.footer-legal p { max-width: 900px; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  :root { --gutter: 32px; }
  .float-left { left: 24px; }
  .float-right { right: 24px; }
  .chat { width: min(560px, 100%); }
}
@media (max-width: 1040px) {
  .float { display: none; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .tile, .tile-wide { grid-column: span 1; }
  .tile:last-child { grid-column: span 2; }
  .facts { grid-template-columns: 1fr 1fr; }
  .chaos { height: 620px; }
  .bit-tabs { width: 300px; }
  .bit-msg { left: 66%; top: 18%; }
  .bit-note { left: 78%; top: 46%; }
}
@media (max-width: 900px) {
  :root { --section: 96px; }
  .nav-links, .nav-hide-sm { display: none; }
  .nav-menu { display: grid; }
  .nav-inner { justify-content: space-between; }
  .display, .h-xl { font-size: 44px; line-height: 46px; }
  .h-lg { font-size: 36px; line-height: 38px; }
  .wall { grid-template-columns: 1fr; gap: 16px; }
  .wall-grid { border-right: 1px solid var(--line); border-radius: 8px; }
  .wall-grid li:nth-child(4n) { border-right: 0; }
  .wall-grid li:nth-child(4)::after { display: none; }
  .wall-stat { min-height: 220px; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .plans { grid-template-columns: 1fr; gap: 40px; max-width: 520px; margin-inline: auto; }
  .split, .split-faq { grid-template-columns: 1fr; gap: 40px; }
  .split-faq > h2 { position: static; }
  .aside { padding-top: 32px; }
  .guarantees { grid-template-columns: 1fr; }
  .g, .g + .g { padding: 28px 0; border-left: 0; }
  .g + .g { border-top: 1px solid var(--line); }
  .banner { flex-direction: column; align-items: flex-start; padding: 32px; }
  .banner .waves { left: 0; width: 100%; opacity: 0.12; }

  /* The chaos collage becomes a scattered stack */
  .chaos { height: auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
  .chaos-lines { display: none; }
  .bit { position: relative; left: auto; top: auto; }
  .bit-tabs { width: 100%; max-width: 360px; }
}
@media (max-width: 600px) {
  :root { --gutter: 16px; --section: 80px; }
  .hero { padding-top: 48px; }
  .display, .h-xl { font-size: 40px; line-height: 42px; }
  .h-lg { font-size: 32px; line-height: 34px; }
  .h-md, .after { font-size: 24px; line-height: 28px; }
  .lede { font-size: 18px; line-height: 26px; }
  .announce { text-align: left; padding: 10px 48px 10px 16px; font-size: 13px; }
  .nav-cta .btn-lime { height: 36px; padding: 0 12px; font-size: 13px; }
  .combo { flex-direction: column; align-items: stretch; padding: 4px; }
  .combo input[type="email"] { height: 48px; }
  .combo .btn { width: 100%; }
  .stage { height: 560px; padding: 16px 12px 0; margin-top: 40px; }
  .chat { height: 492px; }
  .chat-body { padding: 14px; }
  .lights, .chat-conn { width: auto; }
  .chat-title { text-align: left; padding-left: 12px; }
  .wall-grid { grid-template-columns: 1fr 1fr; }
  .wall-grid li { height: 96px; font-size: 17px; }
  .wall-grid li:nth-child(-n + 4) { border-bottom: 0; }
  .wall-grid li:nth-child(-n + 6) { border-bottom: 1px solid var(--line); }
  .wall-grid li:nth-child(2n) { border-right: 0; }
  .wall-grid li::after { display: none; }
  .stat { font-size: 52px; line-height: 52px; }
  .tiles { grid-template-columns: 1fr; }
  .tile, .tile-wide, .tile:last-child { grid-column: span 1; min-height: 0; }
  .tile { padding: 24px 20px 0; }
  .tile-title { font-size: 21px; line-height: 26px; }
  .ui-table > div { grid-template-columns: 1.8fr 1fr .7fr; }
  .ui-table > div span:last-child { display: none; }
  .cover-row { grid-template-columns: 96px 1fr 64px; gap: 8px; }
  .step-visual { height: 240px; }
  .q { width: 280px; font-size: 15px; }
  .billing { width: 100%; }
  .seg { flex: 1; justify-content: center; padding: 0 8px; }
  .facts { grid-template-columns: 1fr; gap: 24px; }
  .apply { padding: 20px; }
  .field-row { grid-template-columns: 1fr; }
  .apply .btn { width: 100%; }
  .faq summary { font-size: 18px; line-height: 24px; }
  .receipt-stage { min-height: 0; padding: 40px 12px; }
  .receipt { padding: 22px 18px 26px; font-size: 11.5px; transform: none; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .ticker { overflow-x: auto; }
  .js .row-track { animation: none; }
  .row { overflow-x: auto; }
}

/* 404 */
.lost { padding-block: 160px; }

/* ---------- Subpages ---------- */
.page-hero { padding-top: 64px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; font-family: var(--mono); font-size: 11px; line-height: 16px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-45); }
.crumbs a { color: var(--ink-60); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--ink-30); }
.page-hero .display { max-width: 960px; }
.page-hero .lede { max-width: 720px; }
.section-head { max-width: 880px; }
.section-head .sub { max-width: 640px; }
.prose { max-width: 680px; }
.prose p { font-size: 18px; line-height: 28px; color: var(--ink-60); }
.prose p + p { margin-top: 16px; }
.prose b { color: var(--ink); font-weight: 500; }
.text-link { color: var(--ink); text-decoration: underline; text-decoration-color: var(--ink-30); text-underline-offset: 3px; }
.text-link:hover { text-decoration-color: var(--ink); }

/* Related pages */
.related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.related a { display: grid; gap: 6px; align-content: start; padding: 20px 22px; border: 1px solid var(--line-strong); border-radius: 8px; text-decoration: none; transition: border-color .15s, background-color .15s; }
.related a:hover { border-color: var(--ink-60); background: var(--surface); }
.related b { font-weight: 400; font-size: 18px; line-height: 24px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.related span { color: var(--ink-60); font-size: 14px; line-height: 20px; }

/* Capability tables */
.cap { width: 100%; border-collapse: collapse; margin-top: 40px; font-size: 15px; line-height: 22px; }
.cap caption { text-align: left; font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-45); padding-bottom: 12px; }
.cap th, .cap td { text-align: left; vertical-align: top; padding: 14px 16px 14px 0; border-top: 1px solid var(--line); }
.cap thead th { border-top: 1px solid var(--ink); font-weight: 400; font-size: 13px; color: var(--ink-60); padding-top: 12px; }
.cap thead th:last-child { text-align: right; }
.cap tbody th { font-weight: 400; width: 24%; }
.cap td:nth-child(2) { color: var(--ink-60); }
.cap td:last-child { width: 132px; white-space: nowrap; padding-right: 0; text-align: right; }
.access { display: inline-block; font-family: var(--mono); font-size: 11px; line-height: 16px; letter-spacing: 0.04em; text-transform: uppercase; padding: 2px 8px; border-radius: 4px; background: var(--surface); color: var(--ink-60); border: 1px solid var(--line); }
.access-write { background: var(--dark); color: #fff; border-color: var(--dark); }

/* Prompt grid (static version of the marquee cards) */
.q-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.q-grid .q { width: auto; }

/* Code blocks */
.code { position: relative; margin-top: 16px; background: var(--dark); color: #f4f2f0; border-radius: 8px; padding: 50px 18px 16px; font-family: var(--mono); font-size: 13px; line-height: 20px; overflow-x: auto; }
.code code { white-space: pre; }
.code .copy { position: absolute; top: 10px; right: 10px; background: rgb(255 255 255 / 0.08); border-color: rgb(255 255 255 / 0.16); color: #fff; }
.code .copy:hover { border-color: rgb(255 255 255 / 0.4); }
.kbd { font-family: var(--mono); font-size: 13px; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 1px 6px; color: var(--ink); white-space: nowrap; }
.clients { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; margin-top: 40px; }
.client { padding: 28px 0; border-top: 1px solid var(--line-strong); min-width: 0; }
.client h3 { margin-bottom: 10px; }
.client ol { list-style: decimal; padding-left: 20px; color: var(--ink-60); display: grid; gap: 6px; margin-top: 12px; }
.note { margin-top: 24px; font-size: 14px; line-height: 20px; color: var(--ink-60); }

/* ---------- Marketing visuals ---------- */
/* Charts use emphasis: one ink series, everything else in a 3:1 warm gray. */
:root {
  --chart-accent: #1a1919;
  --chart-muted: #9a9188;
  --chart-grid: rgb(12 10 8 / 0.08);
}
.diagram { position: relative; margin-top: 40px; padding: 40px; background: var(--surface); border-radius: var(--r-panel); overflow: hidden; }
.diagram > .waves { opacity: 0.08; }
.diagram figcaption, .chart figcaption { position: relative; margin-top: 24px; max-width: 720px; font-size: 14px; line-height: 20px; color: var(--ink-60); }
.panel-title { font-family: var(--mono); font-size: 11px; line-height: 16px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-45); }

/* Hub: your AI ⇄ WavyCloud ⇄ your Amazon data */
.hub { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px) minmax(0, 1fr); column-gap: 72px; }
.hub-side { display: flex; flex-direction: column; gap: 10px; }
.hub-side ul { display: flex; flex-direction: column; justify-content: space-between; gap: 8px; flex: 1; }
.hub-side li { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 46px; padding: 10px 16px; background: #fff; border: 1px solid var(--line); border-radius: 8px; font-size: 15px; line-height: 20px; box-shadow: 0 1px 2px rgb(12 10 8 / 0.05); }
.hub-side li small { font-size: 12.5px; color: var(--ink-45); text-align: right; }
.hub-left li::after, .hub-right li::before { content: ""; position: absolute; top: 50%; width: 72px; border-top: 2px dotted var(--ink-30); }
.hub-left li::after { left: 100%; }
.hub-right li::before { right: 100%; }
.hub-core { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 18px; margin-top: 26px; padding: 32px 28px; background: var(--dark); color: #fff; border-radius: var(--r-panel); box-shadow: var(--shadow-float); }
.hub-core .logo-word { font-size: 28px; }
.hub-core ul { display: grid; gap: 12px; }
.hub-core li { position: relative; padding-left: 28px; font-size: 16px; line-height: 22px; }
.hub-core li::before { content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; background: #fff; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3.5 8.5 3 3 6-7' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3.5 8.5 3 3 6-7' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.hub-core small { color: rgb(255 255 255 / 0.6); font-size: 13px; line-height: 18px; }
.hub-out { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; margin-top: 0; }
.hub-out::before { content: ""; width: 0; height: 40px; border-left: 2px dotted var(--ink-30); }
.hub-out p { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; align-items: center; padding: 10px 16px; background: #fff; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; }
.hub-out .panel-title { margin-right: 4px; }

/* Ask → See → Approve */
.snap-steps .step-visual { height: 300px; position: relative; }
.snap-steps .step + .step .step-visual::before {
  content: ""; position: absolute; left: -24px; top: 50%; z-index: 2; width: 32px; height: 32px; margin: -16px 0 0 -4px;
  border-radius: 50%; background: #fff; border: 1px solid var(--line-strong);
  box-shadow: 0 1px 2px rgb(12 10 8 / 0.06);
}
.snap-steps .step + .step .step-visual::after {
  content: ""; position: absolute; left: -24px; top: 50%; z-index: 3; width: 14px; height: 14px; margin: -7px 0 0 5px; background: var(--ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8h10m-4-4 4 4-4 4' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8h10m-4-4 4 4-4 4' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.snap { width: min(340px, 100%); background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 16px; box-shadow: var(--shadow-float); font-size: 13.5px; line-height: 19px; display: grid; gap: 12px; }
.snap .msg-user { max-width: 92%; font-size: 14px; }
.snap-typing { display: inline-flex; gap: 4px; padding: 10px 12px; background: var(--surface); border-radius: 12px; justify-self: start; }
.snap-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-30); }
.snap-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.snap-head b { font-weight: 500; font-size: 14px; }
.mini-bars { display: grid; gap: 10px; }
.mini-bar { display: grid; gap: 4px; }
.mini-bar span { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--ink-60); }
.mini-bar span b { font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.mini-bar i { display: block; height: 10px; border-radius: 0 4px 4px 0; background: var(--chart-accent); }
.snap-total { display: flex; justify-content: space-between; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-60); }
.snap-total b { font-weight: 500; color: var(--ink); }

/* Charts (shared) */
.chart { position: relative; margin-top: 40px; padding: 32px; background: #fff; border: 1px solid var(--line-strong); border-radius: var(--r-panel); }
.chart-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 32px; margin-bottom: 28px; }
.chart-title { font-size: 16px; line-height: 22px; }
.chart-sub { font-size: 14px; line-height: 20px; color: var(--ink-60); margin-top: 2px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; line-height: 18px; color: var(--ink-60); }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 12px; height: 12px; border-radius: 3px; background: var(--chart-muted); }
.legend i.is-accent { background: var(--chart-accent); }
.hero-num { font-size: 64px; line-height: 64px; letter-spacing: -0.02em; }
.hero-num-sub { color: var(--ink-60); margin-top: 6px; }
.table-view { margin-top: 20px; font-size: 14px; }
.table-view summary { cursor: pointer; color: var(--ink-60); width: max-content; }
.table-view summary:hover { color: var(--ink); }
.table-view table { width: 100%; margin-top: 12px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.table-view th, .table-view td { text-align: left; padding: 8px 12px 8px 0; border-top: 1px solid var(--line); font-weight: 400; }
.table-view thead th { color: var(--ink-60); font-size: 13px; }
.table-view td:not(:first-child), .table-view th:not(:first-child) { text-align: right; }
.tip { position: fixed; z-index: 80; pointer-events: none; padding: 8px 10px; background: #fff; border: 1px solid var(--line-strong); border-radius: 6px; box-shadow: var(--shadow-float); font-size: 13px; line-height: 18px; display: grid; gap: 2px; min-width: 140px; }
.tip b { font-weight: 500; font-size: 15px; font-variant-numeric: tabular-nums; }
.tip span { color: var(--ink-60); }
.tip[hidden] { display: none; }
[data-tip] { cursor: default; }
[data-tip]:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* Paired horizontal bars: minutes per task */
.pbars { display: grid; gap: 18px; }
.pbar { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 16px; align-items: center; }
.pbar-label { font-size: 14px; line-height: 20px; }
.pbar-track { position: relative; display: grid; gap: 2px; padding: 2px 0; }
.pbar-row { display: flex; align-items: center; gap: 8px; min-height: 16px; }
.pbar-row i { display: block; height: 14px; min-width: 3px; border-radius: 0 4px 4px 0; background: var(--chart-muted); }
.pbar-row.is-accent i { background: var(--chart-accent); }
.pbar-row span { font-size: 12.5px; line-height: 16px; color: var(--ink-60); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pbar-row.is-accent span { color: var(--ink); }
.pbar-grid { position: relative; }
.pbar-grid::before { content: ""; position: absolute; inset: -6px 0 -6px 256px; background: linear-gradient(var(--chart-grid), var(--chart-grid)) 0 0 / 1px 100% no-repeat, linear-gradient(var(--chart-grid), var(--chart-grid)) 33.333% 0 / 1px 100% no-repeat, linear-gradient(var(--chart-grid), var(--chart-grid)) 66.666% 0 / 1px 100% no-repeat, linear-gradient(var(--chart-grid), var(--chart-grid)) 100% 0 / 1px 100% no-repeat; pointer-events: none; }
.axis-x { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 16px; margin-top: 12px; }
.axis-x ol { position: relative; height: 16px; font-size: 11.5px; color: var(--ink-45); font-variant-numeric: tabular-nums; }
.axis-x li { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.axis-x li:first-child { transform: none; }
.axis-x li:last-child { transform: translateX(-100%); }
.time-summary { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 40px; margin-bottom: 32px; }

/* ROI calculator */
.calc { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px; margin-top: 40px; }
.calc-in { display: grid; gap: 22px; align-content: start; padding: 28px; background: var(--surface); border-radius: var(--r-panel); }
.calc-field { display: grid; gap: 8px; }
.calc-field label, .calc-field .calc-label { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; line-height: 20px; }
.calc-field output { font-variant-numeric: tabular-nums; font-weight: 500; }
.calc-field small { font-size: 12.5px; line-height: 17px; color: var(--ink-60); }
.calc input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 24px; background: transparent; cursor: pointer; }
.calc input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(var(--ink), var(--ink)) 0 / var(--fill, 50%) 100% no-repeat, var(--surface-2); }
.calc input[type="range"]::-moz-range-track { height: 4px; border-radius: 2px; background: var(--surface-2); }
.calc input[type="range"]::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--ink); }
.calc input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -8px; border-radius: 50%; background: #fff; border: 1.5px solid var(--ink); box-shadow: 0 1px 3px rgb(12 10 8 / 0.2); }
.calc input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 1.5px solid var(--ink); }
.calc input[type="range"]:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 4px; }
.calc-plans { display: flex; gap: 4px; padding: 4px; background: #fff; border-radius: var(--r-input); width: max-content; }
.calc-plans label { cursor: pointer; }
.calc-plans input { position: absolute; opacity: 0; pointer-events: none; }
.calc-plans span { display: inline-flex; height: 34px; align-items: center; padding: 0 14px; border-radius: var(--r-btn); font-size: 14px; color: var(--ink-60); border: 1px solid transparent; }
.calc-plans input:checked + span { background: var(--surface); color: var(--ink); border-color: var(--line); }
.calc-plans input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.calc-out { padding: 28px 32px; border: 1px solid var(--line-strong); border-radius: var(--r-panel); background: #fff; display: grid; gap: 28px; align-content: start; }
.calc-out .hero-num b { font-weight: 400; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.stat-tile { padding: 16px 16px 0 0; }
.stat-tile + .stat-tile { padding-left: 16px; border-left: 1px solid var(--line); }
.stat-tile p { font-size: 13px; line-height: 18px; color: var(--ink-60); }
.stat-tile b { display: block; margin-top: 4px; font-size: 24px; line-height: 28px; font-weight: 500; letter-spacing: -0.01em; }
.cmp { display: grid; gap: 14px; }
.cmp-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; align-items: center; font-size: 14px; }
.cmp-bar { display: flex; align-items: center; gap: 8px; min-width: 0; }
.cmp-bar i { display: block; height: 20px; min-width: 3px; border-radius: 0 4px 4px 0; background: var(--chart-muted); transition: width .25s ease; }
.cmp-row.is-accent .cmp-bar i { background: var(--chart-accent); }
.cmp-bar span { white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--ink-60); font-size: 13px; }
.cmp-row.is-accent .cmp-bar span { color: var(--ink); }
.calc-note { font-size: 13px; line-height: 18px; color: var(--ink-60); }

/* Profit waterfall */
.wf { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; margin-top: 36px; }
.wf-y { position: relative; height: 300px; font-size: 11.5px; color: var(--ink-45); font-variant-numeric: tabular-nums; }
.wf-y li { position: absolute; right: 0; transform: translateY(50%); }
.wf-plot { position: relative; height: 300px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); background: linear-gradient(var(--chart-grid), var(--chart-grid)) 0 0 / 100% 1px no-repeat, linear-gradient(var(--chart-grid), var(--chart-grid)) 0 25% / 100% 1px no-repeat, linear-gradient(var(--chart-grid), var(--chart-grid)) 0 50% / 100% 1px no-repeat, linear-gradient(var(--chart-grid), var(--chart-grid)) 0 75% / 100% 1px no-repeat; border-bottom: 1px solid var(--line-strong); }
.wf-col { position: relative; }
.wf-col i { position: absolute; left: 50%; width: 24px; margin-left: -12px; bottom: var(--o, 0%); height: var(--h); background: var(--chart-muted); border-radius: 4px 4px 0 0; }
.wf-col.is-neg i { border-radius: 0 0 4px 4px; }
.wf-col.is-total i { background: var(--chart-accent); }
.wf-col em { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(var(--o, 0%) + var(--h) + 6px); font-style: normal; font-size: 12.5px; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--ink-60); }
.wf-col.is-total em { color: var(--ink); font-weight: 500; }
.wf-x { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 10px 0 0 68px; font-size: 12.5px; color: var(--ink-60); text-align: center; }

/* Reports panel */
.report-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; margin-top: 40px; }
.report-list { display: grid; gap: 0; }
.report-list li { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); color: var(--ink-60); }
.report-list li b { font-weight: 400; color: var(--ink); }
.report-stage { display: grid; place-items: center; min-height: 380px; padding: 40px 24px; background: var(--surface); border-radius: var(--r-panel); position: relative; overflow: hidden; }
.report-stage .ui { position: relative; width: min(420px, 100%); border-radius: 10px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-float); padding: 18px; }

@media (max-width: 1040px) {
  .hub { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .hub-side ul { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .hub-side li { min-height: 0; padding: 8px 12px; font-size: 14px; }
  .hub-side li small { display: none; }
  .hub-left li::after, .hub-right li::before { display: none; }
  .hub-side .panel-title { text-align: center; }
  .hub-brands { justify-content: center; }
  .hub-core { margin: 0; }
  .hub-core::before, .hub-core::after { content: ""; position: absolute; left: 50%; height: 36px; border-left: 2px dotted var(--ink-30); }
  .hub-core::before { bottom: 100%; }
  .hub-core::after { top: 100%; }
  .hub-left { padding-bottom: 36px; }
  .hub-right { padding-top: 36px; }
  .calc, .report-split { grid-template-columns: minmax(0, 1fr); }
  .related { grid-template-columns: 1fr; }
  .q-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .snap-steps .step + .step .step-visual::before, .snap-steps .step + .step .step-visual::after { display: none; }
}
@media (max-width: 760px) {
  .diagram, .chart { padding: 24px 16px; }
  .pbar, .axis-x { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .axis-x > span { display: none; }
  .pbar-grid::before { display: none; }
  .hero-num { font-size: 48px; line-height: 50px; }
  .stats { grid-template-columns: minmax(0, 1fr); }
  .stat-tile + .stat-tile { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .stat-tile { padding: 12px 0; }
  .cmp-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .calc-in, .calc-out { padding: 20px; }
  .wf { grid-template-columns: 44px minmax(0, 1fr); gap: 6px; }
  .wf-x { margin-left: 50px; font-size: 11px; }
  .wf-col i { width: 18px; margin-left: -9px; }
  .wf-col em { font-size: 10.5px; }
  .q-grid, .clients { grid-template-columns: 1fr; }
  .cap thead { display: none; }
  .cap tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 14px 0; border-top: 1px solid var(--line); }
  .cap th, .cap td { border: 0; padding: 0; width: auto !important; }
  .cap td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .cap td:last-child { grid-column: 2; grid-row: 1; }
}

/* ---------- App icons (brand marks for compatibility) ---------- */
.app-ico { --s: 32px; display: inline-grid; place-items: center; width: var(--s); height: var(--s); flex: none; background: #fff; border: 1px solid var(--line); border-radius: calc(var(--s) * 0.28); box-shadow: 0 1px 2px rgb(12 10 8 / 0.06); color: var(--ink); }
.app-ico svg { width: 58%; height: 58%; }
.app-ico-sm { --s: 30px; }
.app-ico-lg { --s: 44px; }
.app-ico-muted { background: var(--surface); box-shadow: none; color: var(--ink-60); }
.works-row { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; max-width: 100%; margin: 28px 40px 0 0; vertical-align: top; }
.works-row ul { display: flex; flex-wrap: wrap; gap: 6px; }
.works-row-hero { margin-top: 24px; }

/* Amazon press-center logos: unaltered, each alone on a white tile, never recolored or cropped */
.brand-tile { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; flex: none; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 1px 2px rgb(12 10 8 / 0.06); }
.brand-tile img { width: auto; height: 18px; }
.connects-row ul { gap: 8px 18px; }
.connects-row li { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; line-height: 20px; color: var(--ink-60); }
.hub-brands { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.hub-brands .panel-title { flex-basis: 100%; }
.hub-brands .brand-tile { height: 30px; padding: 0 10px; }
.hub-brands .brand-tile img { height: 16px; }
@media (max-width: 600px) {
  .works-row { margin-right: 0; }
  .connects-row ul { column-gap: 14px; }
}
.wall-grid li { display: flex; flex-direction: column; gap: 12px; }
.hub-app { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.hub-side li .app-ico { --s: 28px; }
.hub-out p { gap: 14px; }
.hub-out .app-ico { --s: 24px; }
.client-head { display: flex; align-items: center; gap: 12px; }

/* ---------- Blog and docs ---------- */
.section-tight { padding-top: 64px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 0; font-family: var(--mono); font-size: 11px; line-height: 16px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-45); }
.post-meta span + span::before { content: "·"; margin: 0 8px; color: var(--ink-30); }
.page-hero .post-meta { margin-bottom: 16px; }
.post-title { max-width: 960px; }
.answer { max-width: 760px; margin-top: 32px; padding: 22px 24px; background: var(--surface); border-radius: var(--r-panel); }
.answer .mono-label { margin-bottom: 8px; }
.answer p:last-child { font-size: 18px; line-height: 28px; }

/* Long-form reading column with a sticky table of contents */
.read { display: grid; grid-template-columns: 220px minmax(0, 720px); gap: 64px; padding-top: 64px; align-items: start; }
.toc { position: sticky; top: 104px; font-size: 14px; line-height: 20px; }
.toc summary, .docs-nav summary { display: none; }
.toc ol, .docs-toc ol { display: grid; gap: 2px; border-left: 1px solid var(--line-strong); }
.toc a, .docs-toc a { display: block; padding: 5px 0 5px 14px; margin-left: -1px; border-left: 1px solid transparent; color: var(--ink-60); text-decoration: none; }
.toc a:hover, .docs-toc a:hover { color: var(--ink); border-left-color: var(--ink); }

.article { min-width: 0; }
.article > * + * { margin-top: 20px; }
.article > h2 { margin-top: 56px; font-size: 28px; line-height: 32px; letter-spacing: -0.01em; }
.article > h3 { margin-top: 36px; font-size: 20px; line-height: 26px; }
.article > h2:first-child { margin-top: 0; }
.article > h2 + *, .article > h3 + * { margin-top: 14px; }
.article > p, .article > ul, .article > ol { font-size: 18px; line-height: 30px; }
.article b { font-weight: 500; }
.article > ul { list-style: disc; padding-left: 22px; }
.article > ol { list-style: decimal; padding-left: 22px; }
.article li + li { margin-top: 8px; }
.article li::marker { color: var(--ink-45); }
.article .kbd { font-size: 0.85em; white-space: normal; overflow-wrap: anywhere; }
.article > .code, .article > .prompt { margin-top: 24px; }
.article > .chart, .article > .calc { margin-top: 32px; }
.article .calc { grid-template-columns: minmax(0, 1fr); }
.callout { padding: 18px 20px; border-left: 2px solid var(--ink); background: var(--surface); border-radius: 0 8px 8px 0; }
.callout p { font-size: 16px; line-height: 26px; }
.callout p + p { margin-top: 8px; }
.prompt { position: relative; padding: 18px 20px; padding-right: 96px; border: 1px solid var(--line-strong); border-radius: var(--r-panel); background: #fff; }
.prompt .mono-label { margin-bottom: 6px; }
.prompt-text { font-size: 17px; line-height: 26px; }
.prompt .copy { position: absolute; top: 14px; right: 14px; }
.article > .prompt + .prompt { margin-top: 12px; }
.table-wrap { overflow-x: auto; }
.md-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 22px; font-variant-numeric: tabular-nums; }
.md-table th, .md-table td { text-align: left; vertical-align: top; padding: 11px 16px 11px 0; border-top: 1px solid var(--line); }
.md-table thead th { border-top: 1px solid var(--ink); font-weight: 400; font-size: 13px; color: var(--ink-60); }
.md-table td:first-child { min-width: 140px; }
.md-table td { color: var(--ink-60); }
.md-table td:first-child, .md-table b { color: var(--ink); }
.article-faq { margin-top: 64px; }
.article-faq h2 { font-size: 28px; line-height: 32px; letter-spacing: -0.01em; margin-bottom: 16px; }
.article-faq summary { font-size: 18px; line-height: 24px; }

/* Blog index and home teaser */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; margin-top: 40px; }
.section-tight .post-grid { margin-top: 0; }
.post-card { display: grid; gap: 10px; align-content: start; text-decoration: none; }
.post-card .post-meta { margin-top: 10px; }
.post-card:hover .cover { background: var(--surface-2); }
.post-card:hover h2, .post-card:hover h3 { text-decoration: underline; text-decoration-color: var(--ink-30); text-underline-offset: 4px; }
.cover { position: relative; overflow: hidden; display: grid; align-content: space-between; gap: 32px; aspect-ratio: 16 / 10; padding: 22px 24px; background: var(--surface); border-radius: var(--r-panel); transition: background-color .15s; }
.cover .waves { opacity: 0.1; }
.cover > :not(.waves) { position: relative; }
.cover-big { font-family: var(--mono); font-size: 34px; line-height: 38px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.cover-small { margin-top: -24px; font-size: 14px; line-height: 20px; color: var(--ink-60); }
#blog .link { margin-top: 32px; }

/* Docs: menu, article, on-page contents */
.docs { display: grid; grid-template-columns: 220px minmax(0, 1fr) 200px; gap: 56px; padding-top: 56px; align-items: start; }
.docs-nav { position: sticky; top: 96px; font-size: 14px; line-height: 20px; }
.docs-nav nav { display: grid; gap: 4px; }
.docs-nav .mono-label { margin: 20px 0 6px; }
.docs-nav a { display: block; padding: 5px 10px; margin-left: -10px; border-radius: var(--r-btn); color: var(--ink-60); text-decoration: none; }
.docs-nav a:hover { color: var(--ink); background: var(--surface); }
.docs-nav a[aria-current="page"] { color: var(--ink); background: var(--surface); }
.docs-main { min-width: 0; max-width: 760px; }
.docs-main .lede { margin-top: 16px; }
.docs-updated { margin-top: 16px; font-size: 13px; line-height: 18px; color: var(--ink-45); }
.docs-main .answer { margin-top: 28px; }
.docs-main .article { margin-top: 48px; }
.docs-toc { position: sticky; top: 104px; font-size: 13px; line-height: 18px; }
.docs-toc .mono-label { margin-bottom: 12px; }
.related-title { margin-top: 64px; font-size: 20px; line-height: 26px; }
.related-title + .related { margin-top: 16px; }
.related-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line-strong); }
.pager a { display: grid; gap: 4px; padding: 14px 18px; border: 1px solid var(--line-strong); border-radius: 8px; text-decoration: none; transition: border-color .15s; }
.pager a:hover { border-color: var(--ink-60); }
.pager-next { grid-column: 2; text-align: right; }
.docs-help { margin-top: 32px; font-size: 15px; color: var(--ink-60); }
.docs-url { max-width: 560px; margin-top: 32px; }
.docs-url .code { margin-top: 8px; }
.docs-groups { display: grid; gap: 56px; }
.docs-group .related { margin-top: 20px; }

@media (max-width: 1180px) {
  .docs { grid-template-columns: 200px minmax(0, 1fr); }
  .docs-toc { display: none; }
}
@media (max-width: 900px) {
  .read, .docs { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 40px; }
  .toc, .docs-nav { position: static; border: 1px solid var(--line-strong); border-radius: 8px; }
  .toc summary, .docs-nav summary { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; cursor: pointer; list-style: none; font-size: 15px; }
  .toc summary::-webkit-details-marker, .docs-nav summary::-webkit-details-marker { display: none; }
  .toc summary::after, .docs-nav summary::after { content: ""; width: 8px; height: 8px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
  .toc[open] summary::after, .docs-nav[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
  .toc ol { margin: 0 16px 14px; }
  .docs-nav nav { padding: 0 16px 14px 26px; }
  .docs-nav .mono-label:first-of-type { margin-top: 8px; }
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .related-2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .post-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .article > p, .article > ul, .article > ol { font-size: 17px; line-height: 28px; }
  .article > h2, .article-faq h2 { font-size: 24px; line-height: 28px; }
  .answer { padding: 18px; }
  .answer p:last-child { font-size: 17px; line-height: 26px; }
  .prompt { padding: 16px; padding-top: 48px; }
  .prompt .copy { top: 12px; right: 12px; }
  .pager { grid-template-columns: minmax(0, 1fr); }
  .pager-next { grid-column: 1; }
  .cover-big { font-size: 30px; line-height: 34px; }
}
