/* ==========================================================================
   Maxbot — design system
   Palette derived from the Maxbot mark: deep navy + signal yellow.
   Channel green is reserved for WhatsApp surfaces only.
   ========================================================================== */

:root {
  --ink: #0b1b33;
  --ink-2: #1c2b45;
  --navy: #002048;
  --body: #4e5a6b;
  --muted: #7b8798;
  --faint: #a6b0bf;

  --paper: #ffffff;
  --tint: #f4f6fa;
  --tint-2: #eaeef6;
  --line: #e3e7ee;
  --line-soft: #eef1f6;

  --signal: #fdd600;
  --signal-deep: #c9a800;
  --signal-tint: #fffae0;

  --green: #14704b;
  --green-ink: #0e5738;
  --green-tint: #edf4ef;
  --green-line: #cfe3d8;

  --sand: #fbf8f1;

  --r-xs: 6px;
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  --shadow-sm: 0 1px 2px rgba(11, 27, 51, .04), 0 4px 14px rgba(11, 27, 51, .04);
  --shadow: 0 2px 6px rgba(11, 27, 51, .05), 0 18px 44px rgba(11, 27, 51, .07);
  --shadow-lg: 0 30px 80px rgba(11, 27, 51, .14);

  --container: 1160px;
  --nav-h: 72px;

  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
}

/* --------------------------------------------------------------- reset -- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; }
.mb-i { width: 1em; height: 1em; flex: 0 0 auto; }
img { height: auto; border: 0; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4, h5 { margin: 0; color: var(--ink); font-weight: 650; letter-spacing: -.028em; line-height: 1.15; }
p { margin: 0; color: var(--body); }
p + p { margin-top: 1em; }
ul, ol { margin: 0; padding-left: 1.15rem; }
strong { font-weight: 600; color: var(--ink-2); }
hr { border: 0; height: 1px; background: var(--line); margin: 0; }

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

:focus-visible {
  outline: 3px solid rgba(253, 214, 0, .55);
  outline-offset: 2px;
  border-radius: 4px;
}

.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;
}

/* ---------------------------------------------------------------- type -- */
.h-display { font-size: clamp(2.3rem, 4.6vw, 3.6rem); letter-spacing: -.04em; line-height: 1.03; font-weight: 700; }
.h-1 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.035em; line-height: 1.08; font-weight: 700; }
.h-2 { font-size: clamp(1.55rem, 2.6vw, 2.15rem); letter-spacing: -.03em; line-height: 1.15; }
.h-3 { font-size: 1.2rem; letter-spacing: -.02em; line-height: 1.3; }
.h-4 { font-size: 1.02rem; letter-spacing: -.012em; line-height: 1.35; }

.lede { font-size: 1.12rem; line-height: 1.6; color: var(--ink-2); }
.small { font-size: .875rem; line-height: 1.6; color: var(--muted); }
.tiny { font-size: .78rem; line-height: 1.55; color: var(--muted); }

.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -.008em; }
.mono { font-family: var(--mono); font-size: .9em; }

.measure { max-width: 62ch; }
.measure-sm { max-width: 48ch; }

/* eyebrow — the shared signature of Maxbot marketing surfaces */
.eyebrow {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 16px;
  font-size: .69rem; font-weight: 650; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--signal); flex: 0 0 auto; border-radius: 2px; }
.eyebrow--green { color: var(--green); }
.eyebrow--green::before { background: var(--green); }
.eyebrow--light { color: rgba(255, 255, 255, .62); }
.eyebrow--center { justify-content: center; }

/* a yellow marker used sparingly to underline one phrase */
.mark {
  background-image: linear-gradient(to top, var(--signal) 0 29%, transparent 29%);
  padding: 0 .06em;
}

/* -------------------------------------------------------------- layout -- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 28px; }
.container--narrow { max-width: 880px; }

.band { width: 100%; }
.band--tint { background: var(--tint); }
.band--sand { background: var(--sand); }
.band--ink { background: var(--ink); color: #fff; }
.band--green { background: var(--green-tint); }
.band--line-top { border-top: 1px solid var(--line); }
.band--line-bottom { border-bottom: 1px solid var(--line); }

.band--ink h1, .band--ink h2, .band--ink h3, .band--ink h4 { color: #fff; }
.band--ink p { color: rgba(255, 255, 255, .74); }
.band--ink .lede { color: rgba(255, 255, 255, .82); }
.band--ink .small, .band--ink .tiny { color: rgba(255, 255, 255, .58); }

.section { padding: 84px 0; }
.section--lg { padding: 108px 0; }
.section--sm { padding: 56px 0; }
.section--flush-top { padding-top: 0; }

.stack > * + * { margin-top: 1rem; }
.stack-sm > * + * { margin-top: .5rem; }
.stack-lg > * + * { margin-top: 1.75rem; }

.center { text-align: center; }
.head-center { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.head { max-width: 640px; margin-bottom: 44px; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}
.split--wide-left { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.split--wide-right { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
.split--top { align-items: start; }

.grid { display: grid; gap: 20px; }
.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)); }

.orn { display: flex; align-items: center; gap: 12px; margin: 52px 0; }
.orn::before, .orn::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.orn i { width: 5px; height: 5px; background: var(--signal); transform: rotate(45deg); display: block; }

/* ------------------------------------------------------------- buttons -- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 22px;
  border: 1px solid transparent; border-radius: 999px;
  font-family: inherit; font-size: .93rem; font-weight: 600; letter-spacing: -.01em;
  cursor: pointer; transition: transform .16s ease, background .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; flex: 0 0 auto; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--ink); color: #fff; box-shadow: 0 6px 20px rgba(11, 27, 51, .16); }
.btn--primary:hover { background: #16294a; box-shadow: 0 10px 26px rgba(11, 27, 51, .22); }

.btn--signal { background: var(--signal); color: var(--ink); box-shadow: 0 6px 20px rgba(200, 168, 0, .25); }
.btn--signal:hover { background: #ffe23d; }

.btn--green { background: var(--green); color: #fff; box-shadow: 0 6px 20px rgba(20, 112, 75, .22); }
.btn--green:hover { background: var(--green-ink); }

.btn--ghost { background: var(--paper); color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--faint); background: var(--paper); }

.btn--onink { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .22); }
.btn--onink:hover { background: rgba(255, 255, 255, .15); }

.btn--sm { padding: 9px 16px; font-size: .85rem; }
.btn--block { display: flex; width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.textlink {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 600; font-size: .92rem; color: var(--ink);
  border-bottom: 2px solid var(--signal); padding-bottom: 2px;
  transition: gap .16s ease, color .16s ease;
}
.textlink svg { width: 15px; height: 15px; }
.textlink:hover { gap: 11px; color: var(--navy); }
.textlink--green { border-bottom-color: var(--green); color: var(--green); }
.textlink--light { color: #fff; border-bottom-color: var(--signal); }

/* -------------------------------------------------- chips / badges / pills */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--paper); font-size: .78rem; font-weight: 500; color: var(--body);
}
.chip svg { width: 13px; height: 13px; }
.chip--mono { font-family: var(--mono); font-size: .75rem; }
.chip--green { border-color: var(--green-line); background: var(--green-tint); color: var(--green-ink); }
.chip--onink { border-color: rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .06); color: rgba(255, 255, 255, .85); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }

.pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 14px 6px 11px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--paper);
  font-size: .78rem; font-weight: 550; color: var(--ink-2);
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--signal); flex: 0 0 auto; }
.pill--green .dot { background: var(--green); }
.pill--onink { border-color: rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .06); color: rgba(255, 255, 255, .88); }

.tag {
  display: inline-block; padding: 3px 9px; border-radius: 6px;
  font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.tag--live { background: var(--green-tint); color: var(--green-ink); border: 1px solid var(--green-line); }
.tag--soon { background: var(--tint-2); color: var(--muted); border: 1px solid var(--line); }
.tag--core { background: #eef2fb; color: var(--navy); border: 1px solid #d9e2f5; }
.tag--signal { background: var(--signal-tint); color: #7a6600; border: 1px solid #f0dfa0; }

/* ---------------------------------------------------------------- cards -- */
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  padding: 26px;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.card--hover:hover { border-color: #c9d3e3; transform: translateY(-3px); box-shadow: var(--shadow); }
.card--flush { padding: 0; overflow: hidden; }
.card--ink { background: #12233d; border-color: rgba(255, 255, 255, .09); }
.card--tint { background: var(--tint); }
.card h3 { margin-bottom: 8px; }
.card p { font-size: .93rem; }

.card-icon {
  display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 11px; background: var(--tint); color: var(--navy);
  margin-bottom: 16px; border: 1px solid var(--line-soft);
}
.card-icon svg { width: 19px; height: 19px; }
.card-icon--signal { background: var(--signal-tint); border-color: #f2e6b3; color: #8a7300; }
.card-icon--green { background: var(--green-tint); border-color: var(--green-line); color: var(--green); }
.card-icon--ink { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .12); color: #fff; }

/* feature list with hairline separators — used in dense capability grids */
.rulegrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.rulegrid > * {
  padding: 30px 28px 30px 0;
  border-bottom: 1px solid var(--line);
}
.rulegrid > *:not(:nth-child(3n)) { border-right: 1px solid var(--line); padding-right: 28px; }
.rulegrid > *:not(:nth-child(3n)) { padding-left: 0; }
.rulegrid > *:nth-child(3n-1) { padding-left: 28px; }
.rulegrid > *:nth-child(3n) { padding-left: 28px; }
.rulegrid h3 { font-size: 1.02rem; margin-bottom: 7px; }
.rulegrid p { font-size: .9rem; }
.rulegrid .card-icon { width: 34px; height: 34px; margin-bottom: 14px; }
.rulegrid .card-icon svg { width: 17px; height: 17px; }

/* ------------------------------------------------------- ticked lists --- */
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.ticks li { display: flex; gap: 11px; align-items: flex-start; font-size: .95rem; color: var(--body); }
.ticks li svg { width: 17px; height: 17px; flex: 0 0 auto; margin-top: 4px; color: var(--green); }
.ticks--signal li svg { color: var(--signal-deep); }
.ticks--light li { color: rgba(255, 255, 255, .78); }
.ticks--light li svg { color: var(--signal); }
.ticks b { color: var(--ink); font-weight: 600; }
.ticks--light b { color: #fff; }

/* numbered steps — used only where order genuinely matters */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps > li {
  counter-increment: step; position: relative;
  padding: 0 0 26px 52px; min-height: 40px;
}
.steps > li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: -2px;
  display: grid; place-items: center; width: 34px; height: 34px;
  border-radius: 50%; background: var(--ink); color: #fff;
  font-size: .72rem; font-weight: 700; letter-spacing: .02em;
}
.steps > li::after {
  content: ""; position: absolute; left: 16.5px; top: 40px; bottom: 4px; width: 1px; background: var(--line);
}
.steps > li:last-child { padding-bottom: 0; }
.steps > li:last-child::after { display: none; }
.steps h4 { margin-bottom: 5px; }
.steps p { font-size: .93rem; }
.steps--green > li::before { background: var(--green); }
.steps--light > li::before { background: var(--signal); color: var(--ink); }
.steps--light > li::after { background: rgba(255, 255, 255, .16); }

/* --------------------------------------------------------- stat strip --- */
.stats { display: flex; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--paper); }
.stats > div { flex: 1; padding: 22px 16px; text-align: center; }
.stats > div + div { border-left: 1px solid var(--line); }
.stats b {
  display: block; font-size: 1.85rem; line-height: 1; font-weight: 700; letter-spacing: -.035em; color: var(--ink);
}
.stats span {
  display: block; margin-top: 9px; font-size: .68rem; font-weight: 650; letter-spacing: .11em;
  text-transform: uppercase; color: var(--muted); line-height: 1.4;
}
.stats--onink { border-color: rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .04); }
.stats--onink > div + div { border-left-color: rgba(255, 255, 255, .16); }
.stats--onink b { color: #fff; }
.stats--onink span { color: rgba(255, 255, 255, .55); }

/* ============================================================== SIGNATURE
   The conversation is the product, so it is also the page's artwork.
   .thread  — what the customer sees
   .flowmap — what the builder sees
   ========================================================================= */

.artboard {
  position: relative;
  border-radius: var(--r-lg);
  padding: 26px;
  background:
    radial-gradient(120% 100% at 0% 0%, #fff 0%, var(--tint) 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.artboard--plain { background: var(--paper); }
.artboard--ink {
  background: linear-gradient(150deg, #142743 0%, #0b1b33 100%);
  border-color: rgba(255, 255, 255, .1);
  box-shadow: 0 40px 90px rgba(0, 0, 0, .35);
}
.artboard--green { background: linear-gradient(150deg, #f3f9f5 0%, #e9f2ec 100%); border-color: var(--green-line); }

.artboard-label {
  display: flex; align-items: center; gap: 8px;
  font-size: .68rem; font-weight: 650; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 16px;
}
.artboard-label .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--signal); }
.artboard--ink .artboard-label { color: rgba(255, 255, 255, .5); }

/* ---- chat thread ---- */
.thread {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  padding: 18px; display: grid; gap: 10px;
  box-shadow: var(--shadow-sm);
}
.thread--bare { border: 0; box-shadow: none; padding: 0; background: transparent; }

.thread-head {
  display: flex; align-items: center; gap: 11px;
  padding-bottom: 14px; margin-bottom: 4px; border-bottom: 1px solid var(--line-soft);
}
.thread-avatar {
  width: 34px; height: 34px; border-radius: 50%; flex: 0 0 auto;
  background: var(--navy); color: var(--signal);
  display: grid; place-items: center;
}
.thread-avatar svg { width: 17px; height: 17px; }
.thread-head .name { display: block; font-size: .88rem; font-weight: 650; color: var(--ink); line-height: 1.2; }
.thread-head .role { display: block; font-size: .74rem; color: var(--muted); line-height: 1.3; }
.thread-head .status { margin-left: auto; display: flex; align-items: center; gap: 6px; font-size: .7rem; color: var(--green); font-weight: 600; }
.thread-head .status i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); display: block; }

.bubble {
  max-width: 88%; padding: 11px 15px; border-radius: 16px;
  font-size: .9rem; line-height: 1.5; color: var(--ink-2);
  background: var(--tint); border: 1px solid var(--line-soft);
  border-bottom-left-radius: 5px;
}
.bubble + .bubble { margin-top: -2px; }
.bubble--user {
  margin-left: auto; background: var(--ink); color: #fff; border-color: var(--ink);
  border-bottom-left-radius: 16px; border-bottom-right-radius: 5px;
}
.bubble .tok { font-family: var(--mono); font-size: .84em; color: var(--navy); background: var(--signal-tint); padding: 1px 5px; border-radius: 4px; }

.replies { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; }
.reply {
  padding: 8px 14px; border-radius: 999px; font-size: .82rem; font-weight: 550;
  border: 1.5px solid var(--navy); color: var(--navy); background: var(--paper);
  transition: background .15s ease, color .15s ease;
  cursor: default;
}
.reply--picked { background: var(--navy); color: #fff; }
.reply--ghost { border-color: var(--line); color: var(--muted); }

.typing { display: inline-flex; gap: 4px; align-items: center; padding: 13px 16px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); display: block; animation: mb-blink 1.3s infinite; }
.typing i:nth-child(2) { animation-delay: .18s; }
.typing i:nth-child(3) { animation-delay: .36s; }
@keyframes mb-blink { 0%, 60%, 100% { opacity: .3; } 30% { opacity: 1; } }

.thread-input {
  display: flex; align-items: center; gap: 10px; margin-top: 6px;
  border: 1px solid var(--line); border-radius: 999px; padding: 9px 9px 9px 16px;
  color: var(--faint); font-size: .84rem;
}
.thread-input .send {
  margin-left: auto; width: 30px; height: 30px; border-radius: 50%;
  background: var(--tint); display: grid; place-items: center; color: var(--navy);
}
.thread-input .send svg { width: 14px; height: 14px; }

/* ---- flow map (builder view) ---- */
.flowmap { display: grid; gap: 0; }
.node {
  border: 1px solid var(--line); border-radius: 12px; background: var(--paper);
  padding: 12px 14px; box-shadow: var(--shadow-sm); position: relative;
}
.node .node-kind {
  font-size: .62rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 5px; display: flex; align-items: center; gap: 6px;
}
.node .node-kind::before { content: ""; width: 5px; height: 5px; border-radius: 1px; background: var(--signal); transform: rotate(45deg); }
.node .node-text { font-size: .85rem; color: var(--ink-2); line-height: 1.45; }
.node--root { border-color: #c9d3e3; }
.node--active { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(0, 32, 72, .07); }
.node--muted { opacity: .62; }

.node-children {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px;
  margin-top: 26px; position: relative;
}
.node-children::before {
  content: ""; position: absolute; top: -26px; left: 50%; width: 1px; height: 12px; background: var(--line);
}
.node-children > * { position: relative; }
.node-children > *::before {
  content: ""; position: absolute; top: -14px; left: 50%; width: 1px; height: 14px; background: var(--line);
}
.node-children::after {
  content: ""; position: absolute; top: -14px; left: 16.66%; right: 16.66%; height: 1px; background: var(--line);
}
.node-child {
  border: 1px solid var(--line); border-radius: 10px; background: var(--paper); padding: 10px 12px;
  font-size: .8rem; color: var(--ink-2); text-align: center; font-weight: 550;
  box-shadow: var(--shadow-sm);
}
.node-child span { display: block; font-size: .68rem; color: var(--muted); font-weight: 500; margin-top: 3px; }
.node-child--signal { border-color: #f0dfa0; background: var(--signal-tint); }

/* ---- browser / app window frame ---- */
.window {
  border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
  background: var(--paper); box-shadow: var(--shadow);
}
.window-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 14px; background: var(--tint); border-bottom: 1px solid var(--line);
}
.window-bar i { width: 9px; height: 9px; border-radius: 50%; background: #d7dde7; display: block; }
.window-bar .addr {
  margin-left: 8px; flex: 1; background: var(--paper); border: 1px solid var(--line);
  border-radius: 999px; padding: 4px 12px; font-size: .72rem; color: var(--muted);
  font-family: var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.window-body { padding: 18px; }

/* ---- phone frame (WhatsApp) ---- */
.phone {
  width: 100%; max-width: 340px; margin: 0 auto;
  border: 9px solid #10202f; border-radius: 34px; overflow: hidden;
  background: #0b141a; box-shadow: 0 30px 70px rgba(11, 27, 51, .3);
}
.phone-bar {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  background: #1f2c33; color: #fff;
}
.phone-bar .av {
  width: 30px; height: 30px; border-radius: 50%; background: var(--green); color: #fff;
  display: grid; place-items: center; flex: 0 0 auto;
}
.phone-bar .av svg { width: 16px; height: 16px; }
.phone-bar .nm { display: block; font-size: .84rem; font-weight: 600; line-height: 1.25; }
.phone-bar .st { display: block; font-size: .68rem; color: #8fa3ad; line-height: 1.3; }
.phone-body {
  padding: 14px 12px 16px;
  background-color: #0b141a;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, .022) 0 2px, transparent 2px),
    radial-gradient(circle at 70% 60%, rgba(255, 255, 255, .022) 0 2px, transparent 2px);
  background-size: 46px 46px;
  display: grid; gap: 8px;
}
.wa {
  max-width: 84%; padding: 8px 11px; border-radius: 9px;
  font-size: .81rem; line-height: 1.45; color: #e9edef;
  background: #202c33; position: relative;
}
.wa time { display: block; text-align: right; font-size: .6rem; color: #8696a0; margin-top: 3px; }
.wa--out { margin-left: auto; background: #005c4b; }
.wa--out time { color: #a7c4b9; }
.wa-btns { display: grid; gap: 1px; margin: 6px -11px -8px; border-top: 1px solid rgba(255, 255, 255, .12); }
.wa-btn {
  padding: 8px; text-align: center; font-size: .78rem; font-weight: 550; color: #53bdeb;
  border-top: 1px solid rgba(255, 255, 255, .09);
}
.wa-btn:first-child { border-top: 0; }
.phone-input {
  display: flex; align-items: center; gap: 8px; padding: 9px 12px; background: #1f2c33;
  color: #8696a0; font-size: .76rem;
}
.phone-input .snd { margin-left: auto; width: 26px; height: 26px; border-radius: 50%; background: var(--green); display: grid; place-items: center; color: #fff; }
.phone-input .snd svg { width: 13px; height: 13px; }

/* ---- captured data rows ---- */
.datarows { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; background: var(--paper); }
.datarow { display: flex; align-items: center; gap: 12px; padding: 12px 15px; border-bottom: 1px solid var(--line-soft); }
.datarow:last-child { border-bottom: 0; }
.datarow .key { font-family: var(--mono); font-size: .76rem; color: var(--navy); min-width: 92px; }
.datarow .val { font-size: .86rem; color: var(--ink-2); font-weight: 500; }
.datarow .ok { margin-left: auto; color: var(--green); display: grid; place-items: center; }
.datarow .ok svg { width: 15px; height: 15px; }
.datarow--head { background: var(--tint); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 650; }

/* ---- path / pipeline diagram ---- */
.path { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; }
.path-step {
  flex: 1 1 108px; border: 1px solid var(--line); border-radius: 11px; background: var(--paper);
  padding: 13px 14px; position: relative;
}
.path-step .n { font-size: .62rem; font-weight: 700; letter-spacing: .1em; color: var(--faint); text-transform: uppercase; }
.path-step .t { font-size: .84rem; font-weight: 600; color: var(--ink); margin-top: 4px; line-height: 1.3; }
.path-step .d { font-size: .74rem; color: var(--muted); margin-top: 3px; line-height: 1.4; }
.path-step--green { border-color: var(--green-line); background: var(--green-tint); }
.path-step--signal { border-color: #f0dfa0; background: var(--signal-tint); }
.path-arrow { display: grid; place-items: center; color: var(--faint); flex: 0 0 auto; }
.path-arrow svg { width: 15px; height: 15px; }

/* ---- comparison table ---- */
.cmp-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); }
.cmp { width: 100%; min-width: 620px; border-collapse: collapse; }
.cmp th, .cmp td { padding: 13px 16px; text-align: left; font-size: .88rem; border-bottom: 1px solid var(--line-soft); }
.cmp thead th {
  background: var(--tint); font-size: .7rem; letter-spacing: .09em; text-transform: uppercase;
  color: var(--muted); font-weight: 700; border-bottom: 1px solid var(--line);
}
.cmp thead th:last-child { color: var(--ink); }
.cmp tbody tr:last-child td { border-bottom: 0; }
.cmp td:first-child { color: var(--ink-2); font-weight: 500; }
.cmp td { color: var(--body); }
.cmp .col-mb { background: var(--signal-tint); }
.cmp thead .col-mb { background: #fdf3c9; }
.cmp .yes { color: var(--green); font-weight: 700; }
.cmp .no { color: var(--faint); font-weight: 700; }

/* ---- pull quote ---- */
.pull {
  font-family: var(--serif); font-size: clamp(1.35rem, 2.4vw, 1.75rem); line-height: 1.4;
  color: var(--ink); letter-spacing: -.01em;
  border-left: 3px solid var(--signal); padding: 4px 0 4px 22px; margin: 34px 0;
}
.pull--green { border-left-color: var(--green); }
.pull--light { color: #fff; }

/* ---- coming-soon channel card ---- */
.channel {
  border: 1px solid var(--line); border-radius: var(--r); background: var(--paper);
  padding: 24px; display: flex; flex-direction: column; gap: 14px;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.channel-top { display: flex; align-items: center; gap: 12px; }
.channel-logo {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: 0 0 auto;
  border: 1px solid var(--line); background: var(--tint); color: var(--ink);
}
.channel-logo svg { width: 21px; height: 21px; }
.channel-logo--whatsapp { background: var(--green-tint); border-color: var(--green-line); color: var(--green); }
.channel-logo--core { background: #eef2fb; border-color: #d9e2f5; color: var(--navy); }
.channel h3 { font-size: 1rem; }
.channel p { font-size: .89rem; }
.channel--live:hover { border-color: var(--green-line); transform: translateY(-3px); box-shadow: var(--shadow); }
.channel--soon { background: repeating-linear-gradient(135deg, var(--tint) 0 10px, #f7f9fc 10px 20px); }
.channel--soon .channel-logo { filter: grayscale(1); opacity: .55; }
.channel--soon h3 { color: var(--muted); }
.channel-foot { margin-top: auto; padding-top: 4px; }

/* ---- accordion (FAQ) ---- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative;
  font-size: .98rem; font-weight: 600; color: var(--ink); letter-spacing: -.012em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 11px; height: 11px;
  border-right: 2px solid var(--faint); border-bottom: 2px solid var(--faint);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); border-color: var(--navy); }
.faq .faq-body { padding: 0 40px 20px 0; font-size: .93rem; color: var(--body); line-height: 1.68; }
.faq .faq-body p + p { margin-top: .8em; }

/* ---- callout ---- */
.callout {
  border: 1px solid var(--line); border-left: 3px solid var(--navy); border-radius: 0 var(--r-sm) var(--r-sm) 0;
  background: var(--tint); padding: 16px 18px; font-size: .91rem; line-height: 1.65; color: var(--body);
}
.callout strong { color: var(--ink); }
.callout--warn { border-left-color: var(--signal-deep); background: var(--signal-tint); border-color: #f2e6b3; }
.callout--green { border-left-color: var(--green); background: var(--green-tint); border-color: var(--green-line); }
.callout--ink { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .12); border-left-color: var(--signal); color: rgba(255, 255, 255, .8); }

/* ============================================================== NAVBAR === */
.nav {
  position: sticky; top: 0; z-index: 90;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 26px; height: var(--nav-h); }
.nav-panel { display: contents; }
.nav-logo { display: flex; align-items: center; flex: 0 0 auto; }
.nav-logo img { height: 26px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 4px; }
.nav-link {
  padding: 8px 12px; border-radius: 8px; font-size: .91rem; font-weight: 550; color: var(--body);
  transition: color .15s ease, background .15s ease;
  position: relative;
}
.nav-link:hover { color: var(--ink); background: var(--tint); }
.nav-link.is-active { color: var(--ink); font-weight: 600; }
.nav-link.is-active::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px;
  background: var(--signal); border-radius: 2px;
}
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none; margin-left: auto; width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink);
  align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle svg { width: 19px; height: 19px; }

/* dropdown */
.nav-drop { position: relative; }
.nav-drop > .nav-link { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
.nav-drop > .nav-link svg { width: 13px; height: 13px; transition: transform .18s ease; }
.nav-drop:hover > .nav-link svg { transform: rotate(180deg); }
.nav-menu {
  position: absolute; top: calc(100% + 10px); left: -8px; min-width: 290px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow); padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.nav-drop:hover .nav-menu, .nav-drop:focus-within .nav-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-menu a { display: flex; gap: 11px; padding: 10px 11px; border-radius: 9px; transition: background .14s ease; }
.nav-menu a:hover { background: var(--tint); }
.nav-menu .mi { width: 30px; height: 30px; border-radius: 8px; background: var(--tint); color: var(--navy); display: grid; place-items: center; flex: 0 0 auto; }
.nav-menu a:hover .mi { background: var(--paper); }
.nav-menu .mi svg { width: 15px; height: 15px; }
.nav-menu strong { display: block; font-size: .88rem; color: var(--ink); font-weight: 600; }
.nav-menu span { display: block; font-size: .76rem; color: var(--muted); line-height: 1.45; }

/* ============================================================== FOOTER === */
.foot { background: var(--ink); color: #fff; padding: 72px 0 0; }
.foot a { color: rgba(255, 255, 255, .68); font-size: .9rem; transition: color .15s ease; }
.foot a:hover { color: #fff; }
.foot-cta {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px;
  align-items: center; padding-bottom: 44px; border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.foot-cta h2 { color: #fff; }
.foot-cta .lede { color: rgba(255, 255, 255, .82); }
.foot .foot-cta .btn--signal, .foot .foot-cta .btn--signal:hover { color: var(--ink); }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 36px; padding: 44px 0; }
.foot-logo img { height: 24px; width: auto; }
.foot h5 { color: #fff; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; font-weight: 650; }
.foot ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.foot-bottom {
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center;
  padding: 22px 0 28px; border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .82rem; color: rgba(255, 255, 255, .5);
}

/* ============================================================== HERO ===== */
.hero { padding: 72px 0 84px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(70% 60% at 78% 8%, rgba(253, 214, 0, .13) 0%, transparent 60%),
    radial-gradient(60% 55% at 8% 22%, rgba(0, 32, 72, .06) 0%, transparent 62%);
  pointer-events: none;
}
.hero > .container { position: relative; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: 60px; align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero .lede { max-width: 46ch; }

/* the paired artboard: builder view above, customer view below */
.duo { display: grid; gap: 0; position: relative; }
.duo-cap {
  display: flex; align-items: center; gap: 9px; margin: 0 0 12px;
  font-size: .68rem; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.duo-cap b { color: var(--ink); font-weight: 700; }
.duo-link { display: grid; place-items: center; padding: 14px 0; color: var(--faint); }
.duo-link svg { width: 18px; height: 18px; }

/* page header (interior pages) */
.pagehead { padding: 62px 0 52px; border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.pagehead::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 70% at 85% 10%, rgba(253, 214, 0, .12) 0%, transparent 62%);
  pointer-events: none;
}
.pagehead > .container { position: relative; }
.pagehead--green::before { background: radial-gradient(60% 70% at 85% 10%, rgba(20, 112, 75, .1) 0%, transparent 62%); }
.pagehead--ink { background: var(--ink); border-bottom: 0; }
.pagehead--ink::before { background: radial-gradient(60% 80% at 82% 0%, rgba(253, 214, 0, .16) 0%, transparent 60%); }

/* ============================================================ TEMPLATES == */
.tpl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.tpl {
  display: flex; flex-direction: column; gap: 14px;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--paper);
  padding: 22px; height: 100%;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.tpl:hover { border-color: #c9d3e3; transform: translateY(-3px); box-shadow: var(--shadow); }
.tpl-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.tpl-icon {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: var(--tint); border: 1px solid var(--line-soft); color: var(--navy);
}
.tpl-icon svg { width: 19px; height: 19px; }
.tpl:hover .tpl-icon { background: var(--signal-tint); border-color: #f0dfa0; color: #8a7300; }
.tpl h3 { font-size: 1.02rem; }
.tpl p { font-size: .88rem; }
.tpl-foot {
  margin-top: auto; padding-top: 6px; display: flex; align-items: center; gap: 7px;
  font-size: .82rem; font-weight: 600; color: var(--navy);
}
.tpl-foot svg { width: 14px; height: 14px; transition: transform .16s ease; }
.tpl:hover .tpl-foot svg { transform: translateX(3px); }

/* template detail preview shell */
.preview-shell { display: flex; flex-direction: column; height: 620px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--paper); box-shadow: var(--shadow); }
.preview-head { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--line); background: var(--tint); }
.preview-head .t { font-size: .86rem; font-weight: 650; color: var(--ink); }
.preview-head .btn { margin-left: auto; }
.preview-body { flex: 1 1 auto; min-height: 0; background: var(--paper); }
.preview-body iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ============================================================ TUTORIALS == */
.tut {
  display: flex; flex-direction: column; gap: 13px; height: 100%;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); padding: 22px;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.tut:hover { border-color: #c9d3e3; transform: translateY(-3px); box-shadow: var(--shadow); }
.tut-meta { display: flex; flex-wrap: wrap; gap: 7px; }
.tut h3 { font-size: 1rem; }
.tut p { font-size: .88rem; }
.tut-foot { margin-top: auto; padding-top: 8px; }
.tut-play {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: var(--tint); border: 1px solid var(--line-soft); color: var(--navy);
}
.tut-play svg { width: 19px; height: 19px; }
.tut--wa .tut-play { background: var(--green-tint); border-color: var(--green-line); color: var(--green); }

/* ============================================================== DOCS ===== */
.docs-shell { display: grid; grid-template-columns: 288px minmax(0, 1fr); align-items: start; }
.docs-aside {
  position: sticky; top: var(--nav-h); align-self: start;
  height: calc(100vh - var(--nav-h)); overflow-y: auto;
  border-right: 1px solid var(--line); background: #fbfcfe;
  padding: 26px 20px 60px;
}
.docs-aside::-webkit-scrollbar { width: 8px; }
.docs-aside::-webkit-scrollbar-thumb { background: #dde3ec; border-radius: 8px; }

.docs-switch { display: grid; gap: 6px; margin-bottom: 18px; }
.docs-switch a {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--paper);
  font-size: .85rem; font-weight: 600; color: var(--body);
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.docs-switch a svg { width: 15px; height: 15px; color: var(--faint); }
.docs-switch a:hover { border-color: #c9d3e3; color: var(--ink); }
.docs-switch a.is-active { border-color: var(--navy); background: #f2f6fd; color: var(--navy); }
.docs-switch a.is-active svg { color: var(--navy); }
.docs-switch a.is-active.is-wa { border-color: var(--green); background: var(--green-tint); color: var(--green-ink); }
.docs-switch a.is-active.is-wa svg { color: var(--green); }

.docs-search { position: relative; margin-bottom: 16px; }
.docs-search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--faint); }
.docs-search input {
  width: 100%; border: 1px solid var(--line); border-radius: 10px; background: var(--paper);
  padding: 10px 12px 10px 34px; font: inherit; font-size: .86rem; color: var(--ink);
}
.docs-search input::placeholder { color: var(--faint); }

.docs-empty { display: none; padding: 8px 4px; font-size: .82rem; color: var(--muted); }

.docs-group { border-bottom: 1px solid var(--line-soft); }
.docs-group summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  padding: 12px 6px 8px; font-size: .69rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #58657a;
}
.docs-group summary::-webkit-details-marker { display: none; }
.docs-group summary::after {
  content: ""; width: 8px; height: 8px; border-right: 1.6px solid var(--faint); border-bottom: 1.6px solid var(--faint);
  transform: rotate(45deg) translateY(-2px); transition: transform .2s ease;
}
.docs-group[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.docs-group .items { padding-bottom: 8px; }
.docs-link {
  display: block; padding: 7px 10px; margin: 1px 0; border-radius: 8px;
  font-size: .855rem; line-height: 1.35; color: #5b6678;
  transition: background .14s ease, color .14s ease;
}
.docs-link:hover { background: #eef2fb; color: var(--navy); }
.docs-link.is-active { background: #eef2fb; color: var(--navy); font-weight: 650; box-shadow: inset 2px 0 0 var(--signal); }
.docs-aside--wa .docs-link:hover, .docs-aside--wa .docs-link.is-active { background: var(--green-tint); color: var(--green-ink); }

.docs-main { min-width: 0; padding: 44px 56px 96px; max-width: 1000px; }

.docs-hero {
  border: 1px solid var(--line); border-radius: var(--r-lg); padding: 34px;
  background: linear-gradient(140deg, #fff 0%, var(--tint) 62%, var(--signal-tint) 100%);
  margin-bottom: 46px;
}
.docs-hero--wa { background: linear-gradient(140deg, #fff 0%, #f4f9f6 60%, var(--green-tint) 100%); border-color: var(--green-line); }
.docs-hero h1 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); letter-spacing: -.038em; line-height: 1.06; margin-bottom: 14px; }
.docs-hero p { font-size: 1.05rem; max-width: 66ch; }

.docs-mobile-toggle {
  display: none; width: 100%; margin-bottom: 18px; padding: 12px 16px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--paper);
  font: inherit; font-size: .9rem; font-weight: 600; color: var(--ink); text-align: left;
  align-items: center; gap: 10px; cursor: pointer;
}
.docs-mobile-toggle svg { width: 17px; height: 17px; }

.doc-sec { scroll-margin-top: calc(var(--nav-h) + 24px); padding-bottom: 46px; margin-bottom: 46px; border-bottom: 1px solid var(--line); }
.doc-sec:last-of-type { border-bottom: 0; }
.doc-sec-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 20px; }
.doc-sec-num {
  font-family: var(--mono); font-size: .75rem; font-weight: 600; color: var(--muted);
  padding-top: 4px; letter-spacing: .04em; flex: 0 0 auto;
}
.doc-sec h2 { font-size: 1.6rem; letter-spacing: -.03em; }
.doc-sec h3 { font-size: 1.05rem; margin: 26px 0 8px; }
.doc-sec p, .doc-sec li { color: var(--body); line-height: 1.72; font-size: .96rem; }
.doc-sec ul, .doc-sec ol { padding-left: 1.25rem; margin: .7rem 0; }
.doc-sec li + li { margin-top: .4rem; }
.doc-sec p + p, .doc-sec p + ul, .doc-sec p + ol { margin-top: .8rem; }
.docs-lead { font-size: 1.05rem !important; color: var(--ink-2) !important; }

.docs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 18px 0; }
.docs-card { border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--paper); padding: 18px; }
.docs-card h3 { margin-top: 0; font-size: .98rem; }
.docs-card p:last-child, .docs-card ul:last-child { margin-bottom: 0; }

.docs-callout {
  border: 1px solid var(--line); border-left: 3px solid var(--navy); border-radius: 0 var(--r-sm) var(--r-sm) 0;
  background: var(--tint); padding: 15px 18px; margin: 20px 0; font-size: .93rem; line-height: 1.65; color: var(--body);
}
.docs-callout strong { color: var(--ink); }
.docs-callout.warning { border-left-color: var(--signal-deep); background: var(--signal-tint); border-color: #f2e6b3; }
.docs-callout.success { border-left-color: var(--green); background: var(--green-tint); border-color: var(--green-line); }

.docs-steps { counter-reset: dstep; list-style: none; padding: 0 !important; margin: 20px 0; }
.docs-steps > li { counter-increment: dstep; position: relative; padding: 0 0 18px 46px; min-height: 32px; }
.docs-steps > li::before {
  content: counter(dstep); position: absolute; left: 0; top: -1px;
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--ink); color: #fff; font-size: .72rem; font-weight: 700;
}
.docs-steps > li::after { content: ""; position: absolute; left: 13.5px; top: 32px; bottom: 2px; width: 1px; background: var(--line); }
.docs-steps > li:last-child { padding-bottom: 0; }
.docs-steps > li:last-child::after { display: none; }

.docs-code {
  display: inline-block; padding: .1rem .4rem; border-radius: 5px;
  background: var(--tint-2); color: var(--navy);
  font-family: var(--mono); font-size: .86em; font-weight: 500;
}
.docs-license-note { margin-top: .9rem !important; font-size: .82rem !important; color: var(--muted) !important; line-height: 1.6 !important; }

.docs-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-sm); margin: 18px 0; }
.docs-table { width: 100%; min-width: 620px; border-collapse: collapse; }
.docs-table th, .docs-table td { padding: 12px 15px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-soft); font-size: .9rem; color: var(--body); }
.docs-table th { background: var(--tint); color: var(--ink); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }
.docs-table tr:last-child td { border-bottom: 0; }

/* -- documentation screenshots --------------------------------------------
   Layout is chosen from the image's real aspect ratio (set by JS on load),
   and images are never scaled beyond their natural width, so they stay sharp.
   ------------------------------------------------------------------------ */
.docs-figs { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 22px; align-items: flex-start; }
.docs-fig {
  margin: 0; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--tint); padding: 10px; flex: 1 1 100%; min-width: 0;
}
.docs-fig button {
  display: block; width: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in;
  border-radius: 8px; overflow: hidden;
}
.docs-fig img {
  display: block; width: 100%; height: auto; border-radius: 8px; background: var(--paper);
}
.docs-fig figcaption { padding: 9px 4px 2px; font-size: .8rem; line-height: 1.5; color: var(--muted); }
.docs-fig figcaption em { font-style: normal; color: var(--faint); }

/* tall / square screenshots sit beside the text they explain */
.docs-fig--tall { max-width: 300px; }
.docs-fig--square { max-width: 420px; }
.docs-fig--wide { flex-basis: 100%; }
.docs-fig--pair { flex: 1 1 300px; }

.doc-sec--aside .doc-sec-body { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 30px; align-items: start; }
.doc-sec--aside .docs-figs { margin-top: 6px; }
.doc-sec--aside .docs-fig { flex-basis: auto; }

.docs-next {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--tint);
  padding: 18px 22px; font-weight: 650; color: var(--ink); margin-top: 12px;
  transition: border-color .16s ease, background .16s ease;
}
.docs-next:hover { border-color: var(--navy); background: #f2f6fd; }
.docs-next svg { width: 18px; height: 18px; color: var(--navy); }

.lightbox { position: fixed; inset: 0; z-index: 200; display: none; place-items: center; padding: 32px; background: rgba(8, 15, 28, .9); }
.lightbox.is-open { display: grid; }
.lightbox img { max-width: min(1500px, 95vw); max-height: 90vh; border-radius: 10px; box-shadow: 0 30px 90px rgba(0, 0, 0, .5); }
.lightbox button {
  position: fixed; top: 18px; right: 18px; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .08); color: #fff;
  font-size: 1.4rem; line-height: 1; cursor: pointer; display: grid; place-items: center;
}

/* docs landing */
.docpick {
  display: flex; flex-direction: column; gap: 16px; height: 100%;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper); padding: 30px;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.docpick:hover { border-color: #c9d3e3; transform: translateY(-3px); box-shadow: var(--shadow); }
.docpick--wa:hover { border-color: var(--green-line); }
.docpick-foot { margin-top: auto; padding-top: 6px; }

/* ============================================================== MOTION === */
.reveal { opacity: 0; transform: translateY(14px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .3, 1); }

/* hero load sequence — the one orchestrated moment */
.seq > * { opacity: 0; animation: mb-rise .62s cubic-bezier(.2, .7, .3, 1) forwards; }
.seq > *:nth-child(1) { animation-delay: .05s; }
.seq > *:nth-child(2) { animation-delay: .16s; }
.seq > *:nth-child(3) { animation-delay: .27s; }
.seq > *:nth-child(4) { animation-delay: .38s; }
.seq > *:nth-child(5) { animation-delay: .49s; }
.seq > *:nth-child(6) { animation-delay: .60s; }
@keyframes mb-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .seq > * { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
  .typing i { animation: none; opacity: .55; }
  .btn:hover, .card--hover:hover, .tpl:hover, .tut:hover, .channel--live:hover { transform: none; }
}

/* ========================================================== RESPONSIVE === */
@media (max-width: 1080px) {
  .docs-shell { grid-template-columns: 250px minmax(0, 1fr); }
  .docs-main { padding: 36px 32px 80px; }
}

@media (max-width: 980px) {
  .split, .split--wide-left, .split--wide-right, .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3, .tpl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rulegrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rulegrid > * { padding: 26px 22px 26px 0 !important; border-right: 0 !important; }
  .rulegrid > *:nth-child(odd) { border-right: 1px solid var(--line) !important; padding-right: 22px !important; }
  .rulegrid > *:nth-child(even) { padding-left: 22px !important; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; }
  .foot-cta { grid-template-columns: minmax(0, 1fr); }

  .nav-panel { display: none; }
  .nav-toggle { display: flex; }
  .nav.is-open .nav-panel {
    display: block;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 12px 20px 22px; box-shadow: var(--shadow);
    max-height: calc(100vh - var(--nav-h)); overflow-y: auto;
  }
  .nav.is-open .nav-links {
    display: flex; flex-direction: column; align-items: stretch; gap: 2px; margin: 0;
  }
  .nav.is-open .nav-cta {
    display: flex; flex-direction: column; align-items: stretch; gap: 10px;
    margin: 16px 0 0; padding-top: 16px; border-top: 1px solid var(--line);
  }
  .nav.is-open .nav-cta .btn { padding: 13px 18px; font-size: .92rem; }
  .nav-link { padding: 11px 12px; font-size: .96rem; }
  .nav-link.is-active::after { display: none; }
  .nav-drop .nav-menu {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    border: 0; border-left: 2px solid var(--line); border-radius: 0; margin: 2px 0 6px 12px; padding: 0 0 0 6px; min-width: 0;
  }
  .nav-drop > .nav-link svg { display: none; }

  .docs-shell { grid-template-columns: minmax(0, 1fr); }
  .docs-aside { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 18px 20px; }
  .docs-nav { display: none; }
  .docs-nav.is-open { display: block; }
  .docs-mobile-toggle { display: flex; margin-bottom: 0; }
  .docs-nav.is-open { margin-top: 14px; }
  .docs-main { padding: 30px 20px 70px; }
  .doc-sec--aside .doc-sec-body { grid-template-columns: minmax(0, 1fr); }
  .doc-sec--aside .docs-figs { margin-top: 20px; }
  .doc-sec--aside .docs-fig { max-width: 100% !important; }
}

@media (max-width: 700px) {
  .container { padding: 0 20px; }
  .section { padding: 60px 0; }
  .section--lg { padding: 72px 0; }
  .hero { padding: 44px 0 60px; }
  .grid-3, .grid-4, .grid-2, .tpl-grid { grid-template-columns: minmax(0, 1fr); }
  .rulegrid { grid-template-columns: minmax(0, 1fr); }
  .rulegrid > * { padding: 24px 0 !important; border-right: 0 !important; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .stats { flex-direction: column; }
  .stats > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .stats--onink > div + div { border-top-color: rgba(255, 255, 255, .16); }
  .node-children { grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 16px; }
  .node-children::before, .node-children::after, .node-children > *::before { display: none; }
  .docs-grid { grid-template-columns: minmax(0, 1fr); }
  .docs-fig--tall, .docs-fig--square, .docs-fig--pair { max-width: 100%; flex-basis: 100%; }
  .head-center { margin-bottom: 38px; }
  .artboard { padding: 16px; }
  .path { flex-direction: column; }
  .path-arrow { transform: rotate(90deg); padding: 2px 0; }
  .lightbox { padding: 12px; }
}

/* inert form mock used to contrast a form with a conversation */
.mockfield {
  display: flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--tint);
  font-size: .84rem; color: var(--faint);
}
.mockfield span { margin-left: auto; }
.mockfield--area { height: 76px; align-items: flex-start; padding-top: 11px; }

/* WhatsApp carousel template mock */
.carousel { display: flex; gap: 10px; overflow: hidden; }
.ccard {
  flex: 0 0 46%; border: 1px solid var(--green-line); border-radius: 12px;
  background: var(--paper); padding: 10px; display: flex; flex-direction: column; gap: 4px;
}
.ccard--cut { flex: 0 0 26%; opacity: .55; }
.ccard-media {
  height: 62px; border-radius: 8px; background: var(--green-tint);
  display: grid; place-items: center; color: var(--green); margin-bottom: 6px;
}
.ccard-media svg { width: 20px; height: 20px; }
.ccard h4 { font-size: .82rem; letter-spacing: -.01em; }
.ccard p { font-size: .72rem; color: var(--muted); }
.ccard-btn {
  margin-top: 6px; text-align: center; padding: 6px; border-top: 1px solid var(--line-soft);
  font-size: .74rem; font-weight: 600; color: var(--green);
}
