/* ============================================================
   Cherryrise — marketing site
   Type:  Source Serif 4 (display) · Public Sans (body) · JetBrains Mono (UI/API)
   Brand: #0F766E teal · accents #0EA5E9 sky / #7C3AED violet (sparingly)
   ============================================================ */

:root {
  /* brand + accents (tweakable) */
  --teal: #0F766E;
  --teal-700: color-mix(in srgb, var(--teal) 80%, #06231F);
  --teal-600: var(--teal);
  --teal-50: color-mix(in srgb, var(--teal) 9%, #FFFFFF);
  --sky: #0EA5E9;
  --violet: #7C3AED;
  --spark: #7CF0C9;
  --wash: 4%;

  /* neutrals */
  --bg: #FAFAFA;
  --bg-wash: color-mix(in srgb, var(--teal) var(--wash), #FAFAFA);
  --bg-wash-strong: color-mix(in srgb, var(--teal) calc(var(--wash) + 3%), #FAFAFA);
  --surface: #FFFFFF;
  --ink: #0B1220;
  --ink-2: #303A4B;
  --ink-3: #5B6675;
  --ink-4: #8A93A1;
  --line: #E7E9EC;
  --line-2: #EFF0F2;

  /* dark section */
  --dark: #07120F;
  --dark-2: #0C1A16;
  --dark-line: rgba(255,255,255,0.10);
  --dark-line-2: rgba(255,255,255,0.06);
  --cream: #F4F2EC;
  --cream-2: rgba(244,242,236,0.66);
  --cream-3: rgba(244,242,236,0.42);

  /* type */
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* shape */
  --r-sm: 7px;
  --r-md: 11px;
  --r-lg: 16px;
  --r-xl: 22px;
  --shadow-sm: 0 1px 2px rgba(11,18,32,0.06), 0 1px 1px rgba(11,18,32,0.04);
  --shadow-md: 0 6px 22px -8px rgba(11,18,32,0.16), 0 2px 6px rgba(11,18,32,0.06);
  --shadow-lg: 0 26px 64px -28px rgba(11,18,32,0.34), 0 8px 22px -12px rgba(11,18,32,0.18);
  --shadow-card: 0 1px 0 rgba(11,18,32,0.04), 0 2px 8px rgba(11,18,32,0.05);

  --maxw: 1200px;
  --gutter: 32px;
  --sec-pad: 104px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv01";
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: color-mix(in srgb, var(--teal) 22%, transparent); }

/* ---------- layout helpers ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-wide { max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--sec-pad) 0; position: relative; }
.section--tight { padding: 72px 0; }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.eyebrow::before {
  content: "";
  width: 18px; height: 1px;
  background: var(--teal);
  opacity: 0.7;
}
.dark .eyebrow { color: color-mix(in srgb, var(--teal) 40%, var(--cream)); }
.dark .eyebrow::before { background: currentColor; opacity: 0.5; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.018em; margin: 0; color: var(--ink); }
h1 { font-size: clamp(40px, 5.2vw, 62px); line-height: 1.02; letter-spacing: -0.028em; }
h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.06; }
h3 { font-size: 22px; line-height: 1.2; }
p { margin: 0; text-wrap: pretty; }
.lead { font-size: 19px; line-height: 1.6; color: var(--ink-2); }

.section-head { max-width: 660px; }
.section-head h2 { margin-top: 16px; }
.section-head p { margin-top: 16px; color: var(--ink-3); font-size: 17px; }

/* ---------- buttons ---------- */
.btn {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14.5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 17px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background .15s ease, box-shadow .15s ease, border-color .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: scale(1.012); }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset, var(--shadow-sm); }
.btn-primary:hover { background: var(--teal-700); box-shadow: 0 6px 18px -8px color-mix(in srgb, var(--teal) 70%, transparent); }
.btn-ghost { background: transparent; color: var(--ink-2); border-color: var(--line); }
.btn-ghost:hover { border-color: #d6d9dd; background: #fff; color: var(--ink); }
.btn-light { background: var(--cream); color: var(--dark); }
.btn-light:hover { background: #fff; }
.btn-lg { padding: 13px 22px; font-size: 15.5px; border-radius: 9px; }
.btn .arr { transition: transform .15s ease; }
.btn:hover .arr { transform: translateX(2px); }

.link-arrow {
  font-weight: 600; font-size: 14.5px; color: var(--teal);
  display: inline-flex; align-items: center; gap: 6px;
}
.link-arrow .arr { transition: transform .15s ease; }
.link-arrow:hover .arr { transform: translateX(3px); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease, backdrop-filter .25s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(250,250,250,0.86);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom-color: var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 600; font-size: 19px; letter-spacing: -0.02em; }
.brand .mark { width: 26px; height: 26px; flex: none; }
.nav-links { display: flex; align-items: center; gap: 4px; margin: 0 auto; }
.nav-links a {
  font-size: 14.5px; font-weight: 500; color: var(--ink-3);
  padding: 7px 12px; border-radius: var(--r-sm); transition: color .14s ease, background .14s ease;
}
.nav-links a:hover { color: var(--ink); background: rgba(11,18,32,0.04); }
.nav-cta { display: flex; align-items: center; gap: 6px; }
.nav-signin { font-size: 14.5px; font-weight: 600; color: var(--ink-2); padding: 9px 12px; border-radius: var(--r-sm); white-space: nowrap; }
.nav-signin:hover { color: var(--ink); }
.nav-toggle { display: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: 150px 0 96px;
  background:
    radial-gradient(1100px 540px at 78% -8%, color-mix(in srgb, var(--teal) 9%, transparent), transparent 60%),
    linear-gradient(180deg, var(--bg-wash) 0%, var(--bg) 62%);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 56px;
  align-items: center;
}
.hero-copy { max-width: 540px; }
.hero h1 { margin-top: 22px; }
.hero h1 .accent { font-style: italic; color: var(--teal); }
.hero-sub { margin-top: 22px; font-size: 18.5px; line-height: 1.62; color: var(--ink-2); max-width: 460px; }
.hero-actions { margin-top: 30px; display: flex; align-items: center; gap: 18px; }
.hero-meta {
  margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; gap: 30px; flex-wrap: wrap;
}
.hero-meta .stat { display: flex; flex-direction: column; gap: 2px; }
.hero-meta .stat b { font-family: var(--serif); font-size: 25px; font-weight: 600; letter-spacing: -0.02em; }
.hero-meta .stat span { font-size: 13px; color: var(--ink-3); }

/* hero announcement pill */
.hero-pill {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13px; font-weight: 500; color: var(--ink-2);
  background: #fff; border: 1px solid var(--line); border-radius: 30px;
  padding: 5px 14px 5px 6px; box-shadow: var(--shadow-sm);
  transition: border-color .15s ease, transform .12s ease; margin-bottom: 22px;
}
.hero-pill:hover { border-color: #d2d6db; transform: translateY(-1px); }
.hero-pill .tag { font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: 0.04em; color: var(--teal-700); background: var(--teal-50); border: 1px solid color-mix(in srgb,var(--teal) 20%,var(--line)); border-radius: 20px; padding: 2px 8px; }
.hero-pill .arr { color: var(--ink-4); transition: transform .15s ease, color .15s ease; }
.hero-pill:hover .arr { transform: translateX(3px); color: var(--teal); }

/* hero live-proof ledger (replaces generic stat row) */
.hero-proof { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.hero-proof .cap { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 16px; }
.hero-proof .cap .dot { width: 7px; height: 7px; border-radius: 50%; background: #34D399; box-shadow: 0 0 0 3px rgba(52,211,153,0.2); }
.hero-proof .hero-meta { margin-top: 0; padding-top: 0; border-top: 0; gap: 0; }
.hero-proof .hero-meta .stat { padding-right: 26px; }
.hero-proof .hero-meta .stat + .stat { border-left: 1px solid var(--line); padding-left: 26px; }

/* ---------- annotated product frame ---------- */
.shot {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.shot-bar {
  height: 38px; display: flex; align-items: center; gap: 7px; padding: 0 14px;
  border-bottom: 1px solid var(--line-2); background: #fff;
}
.shot-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: #E2E5E9; }
.shot-bar .url {
  margin-left: 10px; font-family: var(--mono); font-size: 11.5px; color: var(--ink-4);
  background: var(--bg); border: 1px solid var(--line-2); border-radius: 5px; padding: 3px 10px;
}

.hero-shot-wrap { position: relative; }

/* floating annotation callouts */
.callout {
  position: absolute; z-index: 5;
  font-family: var(--mono); font-size: 11.5px; font-weight: 500;
  background: var(--ink); color: #fff;
  padding: 7px 10px; border-radius: 7px; line-height: 1.35;
  box-shadow: var(--shadow-md);
  white-space: nowrap;
}
.callout b { color: color-mix(in srgb, var(--teal) 55%, #fff); font-weight: 600; }
.callout::after {
  content: ""; position: absolute; width: 7px; height: 7px; background: var(--ink); transform: rotate(45deg);
}
.callout.tl::after { left: 16px; bottom: -3px; }
.callout.tr::after { right: 16px; bottom: -3px; }
.callout.bl::after { left: 16px; top: -3px; }
.callout-dot {
  position: absolute; z-index: 4; width: 11px; height: 11px; border-radius: 50%;
  background: var(--teal); box-shadow: 0 0 0 4px color-mix(in srgb, var(--teal) 22%, transparent);
}

/* ============================================================
   TICKET WORKSPACE MOCK (hero)
   ============================================================ */
.tw { display: grid; grid-template-columns: 184px 1fr 168px; height: 416px; font-size: 13px; }
.tw-col { border-right: 1px solid var(--line-2); overflow: hidden; }
.tw-col:last-child { border-right: 0; }
.tw-rail-head { padding: 11px 13px 8px; display: flex; align-items: center; justify-content: space-between; }
.tw-rail-head .t { font-weight: 700; font-size: 12px; letter-spacing: -0.01em; }
.tw-rail-head .c { font-family: var(--mono); font-size: 10.5px; color: var(--ink-4); background: var(--bg); padding: 1px 6px; border-radius: 20px; }
.tw-item { padding: 8px 13px; border-top: 1px solid var(--line-2); display: grid; gap: 3px; cursor: default; }
.tw-item.active { background: var(--teal-50); box-shadow: inset 2px 0 0 var(--teal); }
.tw-item .who { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.tw-item .who b { font-weight: 600; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tw-item .who time { font-size: 10px; color: var(--ink-4); font-family: var(--mono); flex: none; }
.tw-item .pre { color: var(--ink-3); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.tw-tag { font-family: var(--mono); font-size: 9.5px; padding: 1px 6px; border-radius: 4px; background: var(--bg); color: var(--ink-3); border: 1px solid var(--line); align-self: start; }

.tw-thread { display: flex; flex-direction: column; background: linear-gradient(180deg,#fff,#fcfdfd); }
.tw-thread-head { padding: 11px 16px; border-bottom: 1px solid var(--line-2); }
.tw-thread-head .subj { font-weight: 600; font-size: 13.5px; letter-spacing: -0.01em; }
.tw-thread-head .crumbs { font-size: 11px; color: var(--ink-4); margin-top: 2px; display: flex; gap: 8px; align-items: center; font-family: var(--mono); }
.tw-msgs { padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
.tw-msg { display: flex; gap: 10px; }
.tw-av { width: 26px; height: 26px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 10.5px; font-weight: 700; color: #fff; }
.tw-bub { background: #fff; border: 1px solid var(--line); border-radius: 4px 10px 10px 10px; padding: 9px 11px; font-size: 12.5px; color: var(--ink-2); line-height: 1.5; }
.tw-msg.me .tw-bub { background: var(--teal-50); border-color: color-mix(in srgb, var(--teal) 22%, var(--line)); border-radius: 10px 4px 10px 10px; }
.tw-bub .nm { font-weight: 600; color: var(--ink); font-size: 11.5px; margin-bottom: 3px; display: flex; gap: 8px; align-items: center; }
.tw-bub .nm time { font-weight: 400; color: var(--ink-4); font-family: var(--mono); font-size: 10px; }
.tw-reply { margin-top: auto; border-top: 1px solid var(--line-2); padding: 10px 16px; display: flex; align-items: center; gap: 8px; }
.tw-reply .field { flex: 1; background: var(--bg); border: 1px solid var(--line); border-radius: 7px; padding: 8px 11px; font-size: 12px; color: var(--ink-4); }
.tw-reply .send { width: 30px; height: 30px; border-radius: 7px; background: var(--teal); display: grid; place-items: center; flex: none; }

.tw-meta { padding: 12px 13px; display: flex; flex-direction: column; gap: 13px; background: #fcfcfd; }
.tw-meta .blk .lab { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 5px; }
.tw-cust { display: flex; align-items: center; gap: 8px; }
.tw-cust .av { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg,var(--violet),var(--sky)); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 11px; }
.tw-cust .nm { font-weight: 600; font-size: 12.5px; }
.tw-cust .sub { font-size: 10.5px; color: var(--ink-4); }
.sla {
  display: flex; align-items: center; justify-content: space-between;
  background: color-mix(in srgb, var(--teal) 8%, #fff); border: 1px solid color-mix(in srgb, var(--teal) 22%, var(--line));
  border-radius: 8px; padding: 8px 10px;
}
.sla .v { font-family: var(--mono); font-weight: 600; color: var(--teal-700); font-size: 13px; }
.sla .l { font-size: 10px; color: var(--ink-3); }
.sla-bar { height: 4px; border-radius: 3px; background: var(--line); margin-top: 7px; overflow: hidden; }
.sla-bar i { display: block; height: 100%; width: 64%; background: linear-gradient(90deg,var(--teal),var(--sky)); }
.chips { display: flex; flex-wrap: wrap; gap: 5px; }
.chip {
  font-family: var(--mono); font-size: 10px; padding: 2px 8px; border-radius: 5px;
  background: var(--bg); border: 1px solid var(--line); color: var(--ink-2);
}
.chip.teal { background: var(--teal-50); border-color: color-mix(in srgb,var(--teal) 22%,var(--line)); color: var(--teal-700); }
.chip.violet { background: #F4EEFE; border-color: #E3D5FB; color: #6D28D9; }
.chip.sky { background: #E8F6FE; border-color: #CDEAFB; color: #0369A1; }

/* tiny sparkline */
.spark { display: block; width: 100%; height: 34px; }

/* ============================================================
   LOGO WALL
   ============================================================ */
.logowall { padding: 56px 0 64px; border-bottom: 1px solid var(--line); }
.logowall .cap { text-align: center; font-size: 13px; color: var(--ink-4); font-family: var(--mono); letter-spacing: 0.06em; }
.logo-row {
  margin-top: 28px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; align-items: center;
}
.logo-row .mk {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  color: #9AA1AC; filter: grayscale(1); opacity: 0.8;
  font-family: var(--serif); font-weight: 600; font-size: 17px; letter-spacing: -0.01em;
  transition: opacity .18s ease, color .18s ease;
}
.logo-row .mk:hover { opacity: 1; color: var(--ink-2); }
.logo-row .mk svg { width: 22px; height: 22px; }
.pullquote {
  margin: 44px auto 0; max-width: 720px; text-align: center;
}
.pullquote blockquote {
  font-family: var(--serif); font-size: clamp(22px, 2.6vw, 29px); line-height: 1.28; font-weight: 500;
  letter-spacing: -0.02em; margin: 0; color: var(--ink);
}
.pullquote .by { margin-top: 18px; font-size: 13.5px; color: var(--ink-3); display: inline-flex; gap: 8px; align-items: center; }
.pullquote .by .av { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg,var(--teal),var(--sky)); color:#fff; font-size:10px; font-weight:700; display:grid; place-items:center; }

/* ============================================================
   FEATURE TRIPLETS
   ============================================================ */
.feature { overflow: hidden; }
.feature.light { background: var(--bg-wash); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feature.dark { background: var(--dark); color: var(--cream); }
.feature.dark h2, .feature.dark h3 { color: var(--cream); }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.feature-grid.flip .feature-copy { order: 2; }
.feature-copy { max-width: 480px; }
.feature-copy h2 { margin-top: 18px; }
.feature-copy .desc { margin-top: 18px; font-size: 17.5px; line-height: 1.6; color: var(--ink-3); }
.feature.dark .feature-copy .desc { color: var(--cream-2); }
.feature-points { margin: 26px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.feature-points li { display: flex; gap: 11px; font-size: 15px; color: var(--ink-2); line-height: 1.5; }
.feature.dark .feature-points li { color: var(--cream-2); }
.feature-points .ic { flex: none; width: 19px; height: 19px; margin-top: 2px; color: var(--teal); }
.feature.dark .feature-points .ic { color: color-mix(in srgb, var(--teal) 45%, var(--cream)); }
.feature-cta { margin-top: 28px; }
.feature.dark .link-arrow { color: color-mix(in srgb, var(--teal) 42%, var(--cream)); }

/* inbox mock (feature 1) */
.inbox { font-size: 13px; }
.inbox-list { display: grid; }
.inbox-row { display: grid; grid-template-columns: 22px 1fr auto; gap: 11px; align-items: start; padding: 12px 16px; border-top: 1px solid var(--line-2); }
.inbox-row:first-child { border-top: 0; }
.inbox-row .un { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); margin: 6px auto 0; }
.inbox-row.read .un { background: transparent; border: 1px solid var(--line); }
.inbox-row .subj { font-weight: 600; font-size: 13px; }
.inbox-row .snip { color: var(--ink-3); font-size: 12px; margin-top: 2px; }
.inbox-row .meta { text-align: right; display: grid; gap: 4px; justify-items: end; }
.inbox-row .meta time { font-family: var(--mono); font-size: 10.5px; color: var(--ink-4); }
.inbox-thread { border-top: 1px solid var(--line); background: #fcfdfd; }
.inbox-thread .head { padding: 13px 16px 10px; }
.inbox-thread .head .s { font-weight: 600; font-size: 14px; }
.inbox-thread .head .p { display: flex; gap: 8px; margin-top: 4px; font-size: 11px; color: var(--ink-4); font-family: var(--mono); }
.email { margin: 0 16px 12px; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.email .eh { display: flex; align-items: center; gap: 9px; padding: 9px 12px; background: #fff; border-bottom: 1px solid var(--line-2); }
.email .eh .av { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; font-weight: 700; color: #fff; }
.email .eh .nm { font-weight: 600; font-size: 12px; }
.email .eh .ad { font-size: 10.5px; color: var(--ink-4); font-family: var(--mono); }
.email .eh time { margin-left: auto; font-size: 10px; color: var(--ink-4); font-family: var(--mono); }
.email .eb { padding: 11px 13px; font-size: 12.5px; color: var(--ink-2); line-height: 1.55; }
.email.collapsed .eb { display: none; }
.email.collapsed { opacity: 0.85; }
.email .quote { border-left: 2px solid var(--line); padding-left: 9px; margin-top: 7px; color: var(--ink-4); font-size: 11.5px; }

/* automation mock (feature 3) */
.flow { display: flex; flex-direction: column; gap: 0; }
.flow-node {
  background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
  box-shadow: var(--shadow-card);
}
.flow-node .nh { display: flex; align-items: center; gap: 8px; font-size: 11px; font-family: var(--mono); color: var(--ink-4); text-transform: uppercase; letter-spacing: 0.06em; }
.flow-node .nb { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.flow-conn { width: 1px; height: 16px; background: var(--line); margin-left: 26px; }
.rule {
  font-family: var(--mono); font-size: 12px; padding: 5px 10px; border-radius: 7px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 6px;
}
.rule.k { background: var(--bg); border: 1px solid var(--line); color: var(--ink-2); }
.rule.teal { background: var(--teal-50); color: var(--teal-700); border: 1px solid color-mix(in srgb,var(--teal) 24%,var(--line)); }
.rule.violet { background: #F4EEFE; color: #6D28D9; border: 1px solid #E3D5FB; }
.rule.sky { background: #E8F6FE; color: #0369A1; border: 1px solid #CDEAFB; }
.rule.amber { background: #FEF3E2; color: #B45309; border: 1px solid #FBE2BD; }
.flow-op { font-size: 11px; color: var(--ink-4); padding: 0 2px; }
.flow-foot { margin-top: 14px; display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--ink-3); font-family: var(--mono); }
.flow-foot .ok { width: 16px; height: 16px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; }

/* ============================================================
   LIVE CHAT WIDGET (feature 2, dark)
   ============================================================ */
.widget {
  width: 360px; max-width: 100%; margin-left: auto;
  background: #fff; border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); color: var(--ink); font-size: 13px;
}
.widget-head { background: linear-gradient(135deg, var(--teal), var(--teal-700)); color: #fff; padding: 18px 18px 16px; }
.widget-head .agents { display: flex; align-items: center; }
.widget-head .agents .av { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--teal); margin-left: -8px; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff; }
.widget-head .agents .av:first-child { margin-left: 0; }
.widget-head h4 { margin: 12px 0 2px; font-family: var(--serif); font-weight: 600; font-size: 19px; letter-spacing: -0.01em; }
.widget-head .status { font-size: 12px; opacity: 0.9; display: flex; align-items: center; gap: 6px; }
.widget-head .status .d { width: 7px; height: 7px; border-radius: 50%; background: #7CF0C9; box-shadow: 0 0 0 3px rgba(124,240,201,0.3); }
.widget-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; height: 268px; overflow-y: auto; background: var(--bg); scroll-behavior: smooth; }
.wmsg { max-width: 84%; }
.wmsg .bub { padding: 9px 12px; border-radius: 12px; font-size: 13px; line-height: 1.45; }
.wmsg.bot { align-self: flex-start; }
.wmsg.bot .bub { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; color: var(--ink-2); }
.wmsg.user { align-self: flex-end; }
.wmsg.user .bub { background: var(--teal); color: #fff; border-bottom-right-radius: 4px; }
.wmsg .who { font-size: 10.5px; color: var(--ink-4); margin: 0 0 4px 4px; font-family: var(--mono); }
.wmsg .typing { display: inline-flex; gap: 4px; padding: 12px 13px; }
.wmsg .typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-4); animation: blink 1.2s infinite; }
.wmsg .typing i:nth-child(2){ animation-delay: .2s; } .wmsg .typing i:nth-child(3){ animation-delay: .4s; }
@keyframes blink { 0%,60%,100%{ opacity:.25; transform: translateY(0);} 30%{ opacity:1; transform: translateY(-2px);} }
.widget-foot { border-top: 1px solid var(--line-2); padding: 10px 12px; display: flex; align-items: center; gap: 8px; background: #fff; }
.widget-foot input { flex: 1; border: 0; outline: 0; font-family: var(--sans); font-size: 13.5px; color: var(--ink); background: transparent; }
.widget-foot input::placeholder { color: var(--ink-4); }
.widget-foot .send { width: 32px; height: 32px; border-radius: 8px; background: var(--teal); border: 0; cursor: pointer; display: grid; place-items: center; transition: transform .12s, background .15s; }
.widget-foot .send:hover { background: var(--teal-700); transform: scale(1.04); }
.widget-foot .send:active { transform: scale(0.94); }
.widget-brand { text-align: center; font-size: 10px; color: var(--ink-4); padding: 7px; font-family: var(--mono); letter-spacing: 0.04em; background: #fff; }
.quick-replies { display: flex; flex-wrap: wrap; gap: 6px; align-self: flex-start; max-width: 100%; }
.quick-replies button {
  font-family: var(--sans); font-size: 12px; font-weight: 500; cursor: pointer;
  background: #fff; border: 1px solid color-mix(in srgb,var(--teal) 26%,var(--line)); color: var(--teal-700);
  padding: 6px 11px; border-radius: 20px; transition: background .14s, transform .12s;
}
.quick-replies button:hover { background: var(--teal-50); }
.quick-replies button:active { transform: scale(0.96); }

/* ============================================================
   PARALLAX MOSAIC
   ============================================================ */
.mosaic { background: var(--bg-wash-strong); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 120px 0; }
.mosaic-head { text-align: center; max-width: 620px; margin: 0 auto 12px; }
.mosaic-head h2 { margin-top: 16px; }
.mosaic-head p { margin-top: 14px; color: var(--ink-3); font-size: 17px; }
.mosaic-stage { position: relative; height: 560px; max-width: 1040px; margin: 36px auto 0; }
.m-card {
  position: absolute; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); overflow: hidden; will-change: transform;
}
.m-card.c1 { width: 460px; left: 0; top: 70px; z-index: 2; }
.m-card.c2 { width: 420px; right: 0; top: 0; z-index: 3; }
.m-card.c3 { width: 380px; left: 230px; top: 290px; z-index: 4; }
.m-card .cap { font-family: var(--mono); font-size: 10.5px; color: var(--ink-4); padding: 9px 13px; border-top: 1px solid var(--line-2); display: flex; justify-content: space-between; }

/* analytics card content */
.an { padding: 14px 16px; }
.an .top { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 12px; }
.an .top .big { font-family: var(--serif); font-size: 30px; font-weight: 600; letter-spacing: -0.02em; }
.an .top .delta { font-family: var(--mono); font-size: 11px; color: var(--teal-700); background: var(--teal-50); padding: 3px 7px; border-radius: 5px; }
.an .lab { font-family: var(--mono); font-size: 10px; color: var(--ink-4); text-transform: uppercase; letter-spacing: 0.06em; }
.bars { display: flex; align-items: flex-end; gap: 7px; height: 92px; margin-top: 8px; }
.bars .b { flex: 1; background: color-mix(in srgb, var(--teal) 22%, #fff); border-radius: 4px 4px 0 0; position: relative; }
.bars .b.hi { background: linear-gradient(180deg,var(--teal),var(--teal-700)); }

.report { padding: 14px 16px; }
.report .r-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line-2); font-size: 12px; }
.report .r-row:first-of-type { border-top: 0; }
.report .r-row .nm { flex: 1; font-weight: 500; }
.report .r-row .tr { width: 70px; }
.report .r-row .pct { font-family: var(--mono); font-weight: 600; font-size: 12px; width: 38px; text-align: right; }
.report .donut { width: 86px; height: 86px; }

/* ============================================================
   INTEGRATIONS
   ============================================================ */
.integ { text-align: center; }
.integ-grid { margin: 40px auto 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; max-width: 1040px; }
.integ-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px 14px;
  display: flex; flex-direction: column; align-items: center; gap: 11px;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.integ-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: #dcdfe3; }
.integ-card .ico { width: 34px; height: 34px; }
.integ-card .nm { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.integ-card.more { background: var(--bg-wash); border-style: dashed; justify-content: center; }
.integ-card.more .nm { color: var(--teal-700); }
.integ-card.more .big { font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--teal); }

/* ============================================================
   PRICING TEASER
   ============================================================ */
.pricing { background: var(--bg-wash); border-top: 1px solid var(--line); }
.pricing-head { text-align: center; max-width: 600px; margin: 0 auto; }
.tiers { margin: 48px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 1020px; align-items: start; }
.tier { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px 24px; box-shadow: var(--shadow-card); }
.tier.feat { border: 1.5px solid var(--teal); box-shadow: 0 18px 50px -26px color-mix(in srgb,var(--teal) 60%,transparent); position: relative; }
.tier .tname { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.tier.feat .tname { color: var(--teal); }
.tier .price { margin-top: 14px; font-family: var(--serif); font-size: 40px; font-weight: 600; letter-spacing: -0.02em; display: flex; align-items: baseline; gap: 4px; }
.tier .price span { font-family: var(--sans); font-size: 14px; font-weight: 500; color: var(--ink-4); letter-spacing: 0; }
.tier .pdesc { margin-top: 8px; font-size: 13.5px; color: var(--ink-3); min-height: 38px; }
.tier .btn { width: 100%; justify-content: center; margin-top: 18px; }
.tier-feats { list-style: none; margin: 22px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line-2); display: grid; gap: 11px; }
.tier-feats li { display: flex; gap: 9px; font-size: 13.5px; color: var(--ink-2); }
.tier-feats .ic { flex: none; width: 17px; height: 17px; color: var(--teal); margin-top: 1px; }
.pricing-foot { text-align: center; margin-top: 30px; }

/* ============================================================
   SECURITY
   ============================================================ */
.security { }
.sec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.sec-badges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.sec-badge {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px 14px;
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
}
.sec-badge .shield { width: 42px; height: 42px; }
.sec-badge .t { font-weight: 700; font-size: 13px; }
.sec-badge .s { font-size: 11px; color: var(--ink-4); font-family: var(--mono); }
.sec-copy h2 { margin-top: 16px; }
.sec-copy .desc { margin-top: 16px; font-size: 16.5px; color: var(--ink-3); line-height: 1.6; }
.sec-residency { margin-top: 22px; display: grid; gap: 12px; }
.sec-residency .row { display: flex; gap: 11px; align-items: flex-start; font-size: 14.5px; color: var(--ink-2); }
.sec-residency .row .ic { flex: none; width: 18px; height: 18px; color: var(--teal); margin-top: 2px; }

/* ============================================================
   CTA CLOSER
   ============================================================ */
.closer { background: var(--dark); color: var(--cream); padding: 120px 0; text-align: center; position: relative; overflow: hidden; }
.closer::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(680px 340px at 50% -20%, color-mix(in srgb,var(--teal) 30%, transparent), transparent 70%);
}
.closer-inner { position: relative; }
.closer h2 { color: var(--cream); font-size: clamp(32px, 4.4vw, 54px); letter-spacing: -0.028em; }
.closer p { margin-top: 16px; color: var(--cream-2); font-size: 17px; }
.closer .btn { margin-top: 30px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--dark-2); color: var(--cream-2); padding: 64px 0 30px; border-top: 1px solid var(--dark-line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 36px; }
.footer .brand { color: var(--cream); margin-bottom: 14px; }
.footer .blurb { font-size: 13.5px; line-height: 1.6; color: var(--cream-3); max-width: 230px; }
.footer-col h5 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cream-3); margin: 0 0 14px; font-weight: 500; }
.footer-col a { display: block; font-size: 13.5px; color: var(--cream-2); padding: 5px 0; transition: color .14s; }
.footer-col a:hover { color: var(--cream); }
.footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--dark-line); display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.footer-bottom .cr { font-size: 12.5px; color: var(--cream-3); font-family: var(--mono); }
.footer-social { display: flex; gap: 8px; }
.footer-social a { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--dark-line); display: grid; place-items: center; color: var(--cream-2); transition: background .14s, border-color .14s; }
.footer-social a:hover { background: rgba(255,255,255,0.05); border-color: var(--dark-line); color: var(--cream); }
.status-pill {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px;
  color: var(--cream-2); border: 1px solid var(--dark-line); border-radius: 20px; padding: 6px 13px;
}
.status-pill .d { width: 8px; height: 8px; border-radius: 50%; background: #34D399; box-shadow: 0 0 0 3px rgba(52,211,153,0.22); }

/* ============================================================
   SKELETON PAGES
   ============================================================ */
.page-hero { padding: 140px 0 56px; background: linear-gradient(180deg, var(--bg-wash), var(--bg)); border-bottom: 1px solid var(--line); }
.page-hero .eyebrow { margin-bottom: 16px; }
.page-hero h1 { font-size: clamp(36px,4.4vw,52px); max-width: 720px; }
.page-hero p { margin-top: 18px; font-size: 18px; color: var(--ink-3); max-width: 560px; }
.skeleton-note {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 22px;
  font-family: var(--mono); font-size: 12px; color: var(--ink-3);
  background: var(--teal-50); border: 1px solid color-mix(in srgb,var(--teal) 22%,var(--line));
  border-radius: 20px; padding: 6px 13px;
}

/* ============================================================
   STATS BAND
   ============================================================ */
.stats { background: var(--dark); color: var(--cream); padding: 84px 0; position: relative; overflow: hidden; }
.stats::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(700px 360px at 18% 120%, color-mix(in srgb,var(--teal) 26%, transparent), transparent 65%);
  pointer-events: none;
}
.stats-inner { position: relative; }
.stats-head { max-width: 560px; }
.stats-head h2 { color: var(--cream); margin-top: 16px; }
.stats-head p { margin-top: 14px; color: var(--cream-2); font-size: 16.5px; }
.stats-grid { margin-top: 44px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--dark-line); border: 1px solid var(--dark-line); border-radius: var(--r-lg); overflow: hidden; }
.stat-cell { background: var(--dark); padding: 28px 26px; }
.stat-cell .n { font-family: var(--serif); font-size: clamp(34px, 3.6vw, 46px); font-weight: 600; letter-spacing: -0.025em; color: var(--cream); line-height: 1; }
.stat-cell .n .u { font-size: 0.55em; color: color-mix(in srgb,var(--teal) 42%,var(--cream)); margin-left: 2px; }
.stat-cell .l { margin-top: 12px; font-size: 13.5px; color: var(--cream-2); line-height: 1.45; }
.stat-cell .src { margin-top: 6px; font-family: var(--mono); font-size: 10.5px; color: var(--cream-3); letter-spacing: 0.03em; }

/* ============================================================
   REVIEWS
   ============================================================ */
.reviews { background: var(--bg-wash); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.reviews-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.rating-badge { display: flex; align-items: center; gap: 14px; }
.rating-badge .score { font-family: var(--serif); font-size: 44px; font-weight: 600; letter-spacing: -0.02em; line-height: 1; }
.stars { display: inline-flex; gap: 2px; }
.stars svg { width: 16px; height: 16px; color: #F5A623; }
.rating-badge .meta { font-size: 13px; color: var(--ink-3); }
.rating-badge .meta b { color: var(--ink); font-weight: 600; }
.review-grid { margin-top: 40px; columns: 3; column-gap: 20px; }
.review-card {
  break-inside: avoid; margin-bottom: 20px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 22px 22px 20px; box-shadow: var(--shadow-card);
  transition: transform .16s ease, box-shadow .16s ease;
}
.review-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.review-card .stars { margin-bottom: 12px; }
.review-card .src-tag { float: right; font-family: var(--mono); font-size: 10px; color: var(--ink-4); border: 1px solid var(--line); border-radius: 5px; padding: 2px 7px; }
.review-card .body { font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.review-card .body .h { font-weight: 600; color: var(--ink); display: block; margin-bottom: 5px; font-size: 14.5px; }
.review-card .who { margin-top: 16px; display: flex; align-items: center; gap: 10px; }
.review-card .who .av { width: 30px; height: 30px; border-radius: 50%; color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; flex: none; }
.review-card .who .nm { font-weight: 600; font-size: 13px; }
.review-card .who .ti { font-size: 11.5px; color: var(--ink-4); }

/* ============================================================
   FAQ
   ============================================================ */
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: start; }
.faq-aside { position: sticky; top: 96px; }
.faq-aside h2 { margin-top: 16px; }
.faq-aside p { margin-top: 16px; color: var(--ink-3); font-size: 16px; }
.faq-aside .ask { margin-top: 22px; display: inline-flex; }
.faq-list { display: grid; gap: 0; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  font-family: var(--serif); font-size: 19px; font-weight: 500; letter-spacing: -0.01em; color: var(--ink);
  padding: 22px 44px 22px 0; position: relative; display: block;
}
.faq-q .pm { position: absolute; right: 4px; top: 24px; width: 18px; height: 18px; color: var(--teal); transition: transform .25s ease; }
.faq-item[open] .faq-q .pm { transform: rotate(45deg); }
.faq-a { overflow: hidden; }
.faq-a .inner { padding: 0 44px 24px 0; font-size: 15.5px; line-height: 1.62; color: var(--ink-3); }
.faq-a .inner code { font-family: var(--mono); font-size: 0.88em; background: var(--teal-50); border: 1px solid color-mix(in srgb,var(--teal) 18%,var(--line)); border-radius: 4px; padding: 1px 5px; color: var(--teal-700); }
/* native details animation via grid trick */
.faq-item { }
details.faq-item > summary { list-style: none; }
details.faq-item > summary::-webkit-details-marker { display: none; }

/* ============================================================
   SCROLL REVEAL + DECOR PARALLAX
   ============================================================ */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal][data-reveal-d="1"] { transition-delay: .08s; }
[data-reveal][data-reveal-d="2"] { transition-delay: .16s; }
[data-reveal][data-reveal-d="3"] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
}
.decor { position: absolute; pointer-events: none; will-change: transform; z-index: 0; }
.hero > .wrap-wide { position: relative; z-index: 1; }
.decor-ring { width: 320px; height: 320px; border-radius: 50%; border: 1px solid color-mix(in srgb,var(--teal) 16%, transparent); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .review-grid { columns: 2; }
  .faq-grid { grid-template-columns: 1fr; gap: 32px; }
  .faq-aside { position: static; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-copy { max-width: 620px; }
  .feature-grid { grid-template-columns: 1fr; gap: 40px; }
  .feature-grid.flip .feature-copy { order: 0; }
  .sec-grid { grid-template-columns: 1fr; gap: 36px; }
  .integ-grid, .logo-row { grid-template-columns: repeat(3, 1fr); }
  .mosaic-stage { height: auto; display: grid; gap: 18px; max-width: 480px; }
  .m-card { position: static; width: 100% !important; transform: none !important; }
  .widget { margin: 0 auto; }
}
@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-grid; }
  .tiers { grid-template-columns: 1fr; max-width: 420px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .section { padding: 72px 0; }
}
@media (max-width: 720px) {
  .tw { grid-template-columns: 1fr 150px; }
  .tw-col.tw-rail { display: none; }
}
@media (max-width: 560px) {
  :root { --gutter: 20px; }
  .integ-grid, .logo-row { grid-template-columns: repeat(2, 1fr); }
  .hero-meta { gap: 22px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 120px; }
  .tw { grid-template-columns: 1fr 150px; }
  .tw-col.tw-rail { display: none; }
  .review-grid { columns: 1; }
  .stats-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   v3 — MEGA NAV DROPDOWNS
   ============================================================ */
.nav-links .has-menu { position: relative; }
.nav-trigger {
  font-size: 14.5px; font-weight: 500; color: var(--ink-3); padding: 7px 12px; border-radius: var(--r-sm);
  display: inline-flex; align-items: center; gap: 5px; cursor: pointer; background: none; border: 0; font-family: var(--sans);
  transition: color .14s ease, background .14s ease;
}
.nav-trigger svg { transition: transform .2s ease; opacity: .6; }
.has-menu:hover .nav-trigger, .has-menu:focus-within .nav-trigger { color: var(--ink); background: rgba(11,18,32,0.04); }
.has-menu:hover .nav-trigger svg, .has-menu:focus-within .nav-trigger svg { transform: rotate(180deg); }
.mega {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(6px);
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  padding: 14px; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .18s ease, transform .18s ease;
  z-index: 120;
}
.has-menu:hover .mega, .has-menu:focus-within .mega { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.mega::before { content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
.mega-grid { display: grid; gap: 2px; }
.mega.cols2 { width: 560px; }
.mega.cols2 .mega-grid { grid-template-columns: 1fr 1fr; gap: 4px; }
.mega.cols1 { width: 290px; }
.mega-item { display: flex; gap: 11px; padding: 11px 12px; border-radius: var(--r-md); transition: background .13s ease; }
.mega-item:hover { background: var(--bg-wash); }
.mega-item .mi-ic { flex: none; width: 32px; height: 32px; border-radius: 8px; background: var(--teal-50); color: var(--teal); display: grid; place-items: center; }
.mega-item .mi-ic svg { width: 17px; height: 17px; }
.mega-item .mi-t { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.mega-item .mi-d { display: block; font-size: 12px; color: var(--ink-4); line-height: 1.4; margin-top: 3px; }
.mega-foot { margin-top: 6px; padding: 13px 12px 1px; border-top: 1px solid var(--line-2); display: flex; align-items: center; justify-content: space-between; }
.mega-foot .mf-l { font-size: 12.5px; color: var(--ink-3); }
.mega-foot .link-arrow { font-size: 13px; }

/* mobile drawer */
.mnav { display: none; }
.mnav.open { display: block; }
.mnav { position: fixed; inset: 64px 0 0; z-index: 99; background: var(--bg); overflow-y: auto; padding: 22px var(--gutter) 60px; border-top: 1px solid var(--line); }
.mnav .grp { border-bottom: 1px solid var(--line); padding: 14px 0; }
.mnav .grp > .h { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 10px; }
.mnav a { display: block; font-size: 16px; font-weight: 500; color: var(--ink-2); padding: 9px 0; }
.mnav .m-cta { display: flex; gap: 10px; margin-top: 20px; }
.mnav .m-cta .btn { flex: 1; justify-content: center; }
body.mnav-lock { overflow: hidden; }

/* ============================================================
   BREADCRUMBS
   ============================================================ */
.crumbbar { padding: 96px 0 0; }
.crumbs-nav { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-4); font-family: var(--mono); flex-wrap: wrap; }
.crumbs-nav a { color: var(--ink-3); transition: color .13s ease; }
.crumbs-nav a:hover { color: var(--teal); }
.crumbs-nav .sep { opacity: .5; }
.crumbs-nav [aria-current] { color: var(--ink-2); }

/* generic page shell */
.page-main { min-height: 50vh; }
.prose { max-width: 720px; }
.prose h2 { font-size: 30px; margin-top: 48px; }
.prose h3 { font-size: 21px; margin-top: 34px; }
.prose p { font-size: 17px; line-height: 1.68; color: var(--ink-2); margin-top: 18px; }
.prose ul, .prose ol { margin: 18px 0 0; padding-left: 22px; color: var(--ink-2); font-size: 17px; line-height: 1.68; }
.prose li { margin-top: 9px; }
.prose li::marker { color: var(--teal); }
.prose a:not(.btn):not(.link-arrow) { color: var(--teal-700); text-decoration: underline; text-decoration-color: color-mix(in srgb,var(--teal) 35%,transparent); text-underline-offset: 2px; }
.prose a:not(.btn):not(.link-arrow):hover { text-decoration-color: var(--teal); }
.prose blockquote { margin: 28px 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--teal); font-family: var(--serif); font-size: 21px; line-height: 1.4; color: var(--ink); font-style: italic; }
.prose code { font-family: var(--mono); font-size: 0.86em; background: var(--teal-50); border: 1px solid color-mix(in srgb,var(--teal) 18%,var(--line)); border-radius: 4px; padding: 1px 5px; color: var(--teal-700); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.callout-box { margin: 28px 0; background: var(--bg-wash); border: 1px solid var(--line); border-left: 3px solid var(--teal); border-radius: 0 var(--r-md) var(--r-md) 0; padding: 18px 20px; }
.callout-box .ct { font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.callout-box p { margin-top: 4px; font-size: 15px; }

/* ============================================================
   DELIVERABILITY — DNS → green check
   ============================================================ */
.deliver { background: var(--bg-wash); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dns-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.dns-card .dh { padding: 14px 18px; border-bottom: 1px solid var(--line-2); display: flex; align-items: center; justify-content: space-between; }
.dns-card .dh .t { font-weight: 600; font-size: 14px; display: flex; gap: 9px; align-items: center; }
.dns-card .dh .dom { font-family: var(--mono); font-size: 12px; color: var(--ink-4); }
.dns-row { display: grid; grid-template-columns: 56px 1fr 26px; gap: 12px; align-items: center; padding: 14px 18px; border-top: 1px solid var(--line-2); }
.dns-row:first-of-type { border-top: 0; }
.dns-row .ty { font-family: var(--mono); font-size: 10.5px; font-weight: 600; color: var(--ink-3); background: var(--bg); border: 1px solid var(--line); border-radius: 5px; padding: 3px 0; text-align: center; }
.dns-row .val { font-family: var(--mono); font-size: 11.5px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dns-row .val .k { color: var(--ink-4); }
.dns-check { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); position: relative; transition: border-color .3s ease, background .3s ease; }
.dns-check svg { position: absolute; inset: 0; margin: auto; width: 12px; height: 12px; color: #fff; opacity: 0; transform: scale(.4); transition: opacity .3s ease, transform .3s ease; }
.dns-row.verified .dns-check { border-color: var(--teal); background: var(--teal); }
.dns-row.verified .dns-check svg { opacity: 1; transform: scale(1); }
.dns-foot { padding: 14px 18px; border-top: 1px solid var(--line-2); display: flex; align-items: center; gap: 10px; background: #fcfdfd; }
.dns-foot .pill { font-family: var(--mono); font-size: 11.5px; padding: 5px 11px; border-radius: 20px; display: inline-flex; align-items: center; gap: 7px; transition: background .3s, color .3s, border-color .3s; border: 1px solid var(--line); color: var(--ink-3); }
.dns-foot .pill.ok { background: var(--teal-50); border-color: color-mix(in srgb,var(--teal) 26%,var(--line)); color: var(--teal-700); }
.dns-foot .pill .d { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.dns-foot .replay { margin-left: auto; font-family: var(--sans); font-size: 12.5px; font-weight: 600; color: var(--teal-700); background: none; border: 0; cursor: pointer; }

/* ============================================================
   CLICKABLE MINI-INBOX (table ↔ 3-pane)
   ============================================================ */
.demo-toggle { display: inline-flex; background: var(--bg); border: 1px solid var(--line); border-radius: 9px; padding: 3px; gap: 2px; }
.demo-toggle button { font-family: var(--sans); font-size: 12.5px; font-weight: 600; color: var(--ink-3); background: none; border: 0; padding: 7px 14px; border-radius: 6px; cursor: pointer; transition: background .14s, color .14s; }
.demo-toggle button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.tbl { width: 100%; font-size: 13px; border-collapse: collapse; }
.tbl thead th { text-align: left; font-family: var(--mono); font-size: 10px; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-4); font-weight: 500; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.tbl tbody tr { border-bottom: 1px solid var(--line-2); cursor: pointer; transition: background .12s; }
.tbl tbody tr:hover { background: var(--bg-wash); }
.tbl tbody tr.sel { background: var(--teal-50); box-shadow: inset 2px 0 0 var(--teal); }
.tbl td { padding: 11px 14px; vertical-align: middle; }
.tbl .c-chk { width: 18px; }
.tbl .c-chk input { accent-color: var(--teal); }
.tbl .who { font-weight: 600; }
.tbl .subj { color: var(--ink-2); }
.tbl .subj .sn { color: var(--ink-4); font-weight: 400; }
.tbl td time { font-family: var(--mono); font-size: 11px; color: var(--ink-4); }
.st-pill { font-family: var(--mono); font-size: 10px; padding: 2px 8px; border-radius: 20px; white-space: nowrap; }
.st-open { background: var(--teal-50); color: var(--teal-700); }
.st-pending { background: #FEF3E2; color: #B45309; }
.st-closed { background: var(--bg); color: var(--ink-4); border: 1px solid var(--line); }
.demo-bulk { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--ink); color: #fff; border-radius: 8px; margin: 0 0 0; font-size: 12.5px; opacity: 0; height: 0; overflow: hidden; transition: opacity .2s; }
.demo-bulk.show { opacity: 1; height: auto; padding: 10px 14px; margin-bottom: 12px; }
.demo-bulk .ba { font-family: var(--sans); font-size: 12px; font-weight: 600; background: rgba(255,255,255,.12); border: 0; color: #fff; padding: 5px 10px; border-radius: 6px; cursor: pointer; }
.demo-bulk .ba:hover { background: rgba(255,255,255,.2); }
[data-demo-inbox] .demo-pane { display: none; }
[data-demo-inbox].view-pane .demo-table { display: none; }
[data-demo-inbox].view-pane .demo-pane { display: block; }

/* ============================================================
   SPLIT FEATURE (capability rows)
   ============================================================ */
.cap-row { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.cap-row + .cap-row { margin-top: 96px; }
.cap-row.flip .cap-copy { order: 2; }
.cap-copy { max-width: 470px; }
.cap-copy h3 { font-size: 27px; margin-top: 14px; letter-spacing: -0.02em; }
.cap-copy .d { margin-top: 14px; font-size: 16.5px; line-height: 1.6; color: var(--ink-3); }
.cap-copy .pts { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 11px; }
.cap-copy .pts li { display: flex; gap: 10px; font-size: 14.5px; color: var(--ink-2); }
.cap-copy .pts .ic { flex: none; width: 18px; height: 18px; color: var(--teal); margin-top: 1px; }
.cap-copy .cap-cta { margin-top: 22px; }

/* ============================================================
   ROI / DEFLECTION CALCULATOR
   ============================================================ */
.calc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-lg); overflow: hidden; display: grid; grid-template-columns: 1fr 0.9fr; }
.calc-in { padding: 32px 34px; }
.calc-in h3 { font-size: 22px; }
.calc-in .sub { margin-top: 8px; font-size: 14px; color: var(--ink-3); }
.calc-field { margin-top: 22px; }
.calc-field .row { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.calc-field label { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.calc-field .out { font-family: var(--mono); font-size: 14px; font-weight: 600; color: var(--teal-700); }
.calc-field input[type=range] { width: 100%; -webkit-appearance: none; appearance: none; height: 5px; border-radius: 4px; background: var(--line); outline: none; }
.calc-field input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 19px; height: 19px; border-radius: 50%; background: var(--teal); cursor: pointer; border: 3px solid #fff; box-shadow: var(--shadow-sm); }
.calc-field input[type=range]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--teal); cursor: pointer; border: 3px solid #fff; }
.calc-out { background: var(--dark); color: var(--cream); padding: 32px 34px; display: flex; flex-direction: column; justify-content: center; }
.calc-out .lab { font-family: var(--mono); font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--cream-3); }
.calc-out .big { font-family: var(--serif); font-size: 50px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; margin-top: 8px; color: var(--cream); }
.calc-out .big .u { font-size: .4em; color: color-mix(in srgb,var(--teal) 45%,var(--cream)); }
.calc-out .sub2 { margin-top: 10px; font-size: 13.5px; color: var(--cream-2); line-height: 1.5; }
.calc-out .split { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--dark-line); display: grid; gap: 14px; }
.calc-out .split .li { display: flex; align-items: baseline; justify-content: space-between; }
.calc-out .split .li .k { font-size: 13px; color: var(--cream-2); }
.calc-out .split .li .v { font-family: var(--mono); font-size: 15px; font-weight: 600; color: var(--cream); }
.calc-note { text-align: center; margin-top: 18px; font-size: 12.5px; color: var(--ink-4); font-family: var(--mono); }

/* ============================================================
   COMPARE TABLE
   ============================================================ */
.cmp-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.cmp-vs { display: inline-flex; align-items: center; gap: 14px; font-family: var(--mono); font-size: 13px; color: var(--ink-3); margin-bottom: 18px; }
.cmp-vs .a, .cmp-vs .b { padding: 6px 13px; border-radius: 8px; font-weight: 600; }
.cmp-vs .a { background: var(--teal); color: #fff; }
.cmp-vs .b { background: var(--bg); border: 1px solid var(--line); color: var(--ink-2); }
.cmp-vs .x { color: var(--ink-4); }
.cmp-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.cmp-table th, .cmp-table td { padding: 15px 20px; text-align: left; border-bottom: 1px solid var(--line-2); font-size: 14.5px; }
.cmp-table thead th { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-4); font-weight: 500; }
.cmp-table thead th.us { color: var(--teal-700); }
.cmp-table td.us { background: color-mix(in srgb,var(--teal) 4%,#fff); font-weight: 600; color: var(--ink); }
.cmp-table td.feat { font-weight: 600; color: var(--ink-2); }
.cmp-table tr:last-child td { border-bottom: 0; }
.cmp-yes { color: var(--teal); }
.cmp-no { color: var(--ink-4); }

/* ============================================================
   BLOG / ARTICLE
   ============================================================ */
.post-head { max-width: 760px; margin: 0 auto; text-align: center; }
.post-head .chip { margin-bottom: 16px; }
.post-head h1 { font-size: clamp(34px, 4.4vw, 50px); }
.post-meta { margin-top: 22px; display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 13.5px; color: var(--ink-3); flex-wrap: wrap; }
.post-meta .av { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg,var(--teal),var(--sky)); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.post-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-4); }
.post-cover { max-width: 980px; margin: 40px auto 0; height: 360px; border-radius: var(--r-lg); position: relative; overflow: hidden; border: 1px solid var(--line); }
.post-body { max-width: 720px; margin: 48px auto 0; }
.related { margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--line); }
.related h4 { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-4); font-weight: 500; }
.related-grid { margin-top: 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.related-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px; box-shadow: var(--shadow-card); transition: transform .16s, box-shadow .16s; }
.related-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.related-card .chip { margin-bottom: 10px; }
.related-card h5 { font-family: var(--serif); font-size: 17px; font-weight: 500; margin: 0; line-height: 1.25; letter-spacing: -0.01em; }
.related-card .rd { margin-top: 10px; font-family: var(--mono); font-size: 11px; color: var(--ink-4); }

/* table of contents */
.article-layout { display: grid; grid-template-columns: 200px 1fr; gap: 56px; max-width: 980px; margin: 48px auto 0; }
.toc { position: sticky; top: 96px; align-self: start; }
.toc .h { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 12px; }
.toc a { display: block; font-size: 13.5px; color: var(--ink-3); padding: 5px 0 5px 12px; border-left: 2px solid var(--line); transition: color .13s, border-color .13s; }
.toc a:hover, .toc a.active { color: var(--teal-700); border-color: var(--teal); }

/* ============================================================
   GLOSSARY
   ============================================================ */
.glossary-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.gl-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px 24px; box-shadow: var(--shadow-card); transition: transform .16s, box-shadow .16s, border-color .16s; }
.gl-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: #dcdfe3; }
.gl-card .term { font-family: var(--serif); font-size: 20px; font-weight: 600; letter-spacing: -0.01em; display: flex; align-items: baseline; gap: 10px; }
.gl-card .term .abbr { font-family: var(--mono); font-size: 11px; color: var(--teal-700); background: var(--teal-50); border-radius: 5px; padding: 2px 7px; }
.gl-card .def { margin-top: 10px; font-size: 14.5px; color: var(--ink-3); line-height: 1.55; }
.gl-card .more { margin-top: 14px; }
.gl-alpha { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 32px; }
.gl-alpha a { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 7px; border: 1px solid var(--line); font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--ink-3); background: #fff; }
.gl-alpha a:hover { border-color: var(--teal); color: var(--teal-700); }

/* ============================================================
   DOCS INDEX
   ============================================================ */
.docs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.docs-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow-card); transition: transform .16s, box-shadow .16s; }
.docs-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.docs-card .di { width: 38px; height: 38px; border-radius: 9px; background: var(--teal-50); color: var(--teal); display: grid; place-items: center; margin-bottom: 14px; }
.docs-card h3 { font-size: 18px; }
.docs-card p { margin-top: 8px; font-size: 14px; color: var(--ink-3); line-height: 1.5; }
.docs-card .links { margin-top: 14px; display: grid; gap: 7px; }
.docs-card .links a { font-size: 13.5px; color: var(--teal-700); display: flex; align-items: center; gap: 7px; }
.docs-card .links a:hover { text-decoration: underline; }

/* ============================================================
   AI ASSIST (control story) — toggles
   ============================================================ */
.ai-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.ai-panel .ah { padding: 16px 20px; border-bottom: 1px solid var(--line-2); display: flex; align-items: center; justify-content: space-between; }
.ai-panel .ah .t { font-weight: 600; font-size: 14.5px; }
.ai-panel .ah .who { font-family: var(--mono); font-size: 11px; color: var(--ink-4); }
.ai-toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; border-top: 1px solid var(--line-2); }
.ai-toggle-row:first-of-type { border-top: 0; }
.ai-toggle-row .info .t { font-size: 14px; font-weight: 600; color: var(--ink); }
.ai-toggle-row .info .d { font-size: 12.5px; color: var(--ink-4); margin-top: 2px; line-height: 1.4; max-width: 320px; }
.switch { flex: none; width: 42px; height: 24px; border-radius: 20px; background: var(--line); position: relative; cursor: pointer; transition: background .2s ease; border: 0; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .2s ease; }
.switch[aria-checked="true"] { background: var(--teal); }
.switch[aria-checked="true"]::after { transform: translateX(18px); }
.ai-foot { padding: 13px 20px; background: var(--bg-wash); font-size: 12px; color: var(--ink-3); font-family: var(--mono); display: flex; align-items: center; gap: 8px; }

/* ============================================================
   BLOG/CHANGELOG TEASER (homepage pull-deeper)
   ============================================================ */
.teaser-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; }
.teaser-col h4 { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-4); font-weight: 500; display: flex; align-items: center; justify-content: space-between; }
.teaser-list { margin-top: 16px; display: grid; gap: 2px; }
.teaser-item { display: block; padding: 14px 16px; border-radius: var(--r-md); border: 1px solid transparent; transition: background .13s, border-color .13s; }
.teaser-item:hover { background: #fff; border-color: var(--line); box-shadow: var(--shadow-card); }
.teaser-item .ti-top { display: flex; align-items: center; gap: 10px; margin-bottom: 5px; }
.teaser-item .ti-date { font-family: var(--mono); font-size: 11px; color: var(--ink-4); }
.teaser-item .ti-t { font-weight: 600; font-size: 14.5px; color: var(--ink); }
.teaser-item .ti-d { font-size: 13px; color: var(--ink-3); line-height: 1.45; }

/* ============================================================
   v3 RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .calc { grid-template-columns: 1fr; }
  .cap-row { grid-template-columns: 1fr; gap: 36px; }
  .cap-row.flip .cap-copy { order: 0; }
  .cmp-hero { grid-template-columns: 1fr; gap: 28px; }
  .article-layout { grid-template-columns: 1fr; gap: 24px; }
  .toc { position: static; display: none; }
  .related-grid, .docs-grid { grid-template-columns: 1fr 1fr; }
  .teaser-grid { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 820px) {
  .nav-links { display: none; }
  .glossary-grid, .related-grid, .docs-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   DOCS ARTICLE (reusable template)
   ============================================================ */
.docs-shell { display: grid; grid-template-columns: 244px minmax(0, 1fr); gap: 52px; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); align-items: start; }
.docs-side { position: sticky; top: 88px; align-self: start; font-size: 13.5px; max-height: calc(100vh - 110px); overflow-y: auto; padding-right: 4px; }
.docs-side .grp { margin-bottom: 22px; }
.docs-side .grp > .h { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-4); margin: 0 0 8px 10px; }
.docs-side a { display: block; padding: 6px 10px; border-radius: 7px; color: var(--ink-3); transition: background .12s ease, color .12s ease; line-height: 1.35; }
.docs-side a:hover { background: var(--bg-wash); color: var(--ink); }
.docs-side a.active { background: var(--teal-50); color: var(--teal-700); font-weight: 600; box-shadow: inset 2px 0 0 var(--teal); }
.docs-side a .soon { font-family: var(--mono); font-size: 9px; color: var(--ink-4); margin-left: 5px; }
.docs-content { min-width: 0; }
.docs-content .prose { max-width: 760px; }
.docs-content .prose h1 { font-size: clamp(30px, 3.6vw, 40px); margin: 0; }
.docs-lede { font-size: 18px; line-height: 1.6; color: var(--ink-2); margin-top: 16px; max-width: 760px; }
.docs-meta { margin-top: 14px; display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; color: var(--ink-4); }
.docs-meta .pill { background: var(--teal-50); color: var(--teal-700); border: 1px solid color-mix(in srgb,var(--teal) 20%,var(--line)); border-radius: 20px; padding: 3px 10px; }

/* code blocks */
.code { background: var(--dark); border-radius: var(--r-md); overflow: hidden; margin: 22px 0; box-shadow: var(--shadow-card); border: 1px solid var(--dark-2); }
.code-head { display: flex; align-items: center; justify-content: space-between; padding: 9px 14px; border-bottom: 1px solid var(--dark-line); }
.code-head .lang { font-family: var(--mono); font-size: 11px; color: var(--cream-3); letter-spacing: 0.05em; }
.code-head .copy { font-family: var(--sans); font-size: 11.5px; font-weight: 600; color: var(--cream-2); background: rgba(255,255,255,0.08); border: 0; border-radius: 6px; padding: 4px 10px; cursor: pointer; transition: background .14s, color .14s; }
.code-head .copy:hover { background: rgba(255,255,255,0.16); color: var(--cream); }
.code-head .copy.done { color: #7CF0C9; }
.code pre { margin: 0; padding: 15px 16px; overflow-x: auto; }
.code code { font-family: var(--mono); font-size: 12.5px; line-height: 1.65; color: var(--cream); background: none; border: 0; padding: 0; white-space: pre; }
.code .c-key { color: #7CF0C9; }
.code .c-str { color: #9ECBFF; }
.code .c-com { color: var(--cream-3); font-style: italic; }
.code .c-num { color: #E0A458; }
.code .c-fn { color: #C9A8FF; }

/* API endpoint + params */
.endpoint { display: flex; align-items: center; gap: 11px; background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 11px 14px; font-family: var(--mono); font-size: 13.5px; margin: 18px 0; box-shadow: var(--shadow-card); }
.endpoint .verb { font-weight: 700; font-size: 11px; padding: 3px 9px; border-radius: 5px; letter-spacing: 0.03em; }
.verb-get { background: var(--teal-50); color: var(--teal-700); }
.verb-post { background: #E8F6FE; color: #0369A1; }
.verb-del { background: #FEECEC; color: #B42318; }
.endpoint .path { color: var(--ink-2); }
.params-table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 13.5px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.params-table th { text-align: left; font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-4); font-weight: 500; padding: 9px 14px; border-bottom: 1px solid var(--line); }
.params-table td { padding: 11px 14px; border-bottom: 1px solid var(--line-2); vertical-align: top; color: var(--ink-2); }
.params-table tr:last-child td { border-bottom: 0; }
.params-table td:first-child code { font-size: 12px; color: var(--teal-700); }
.params-table .req { font-family: var(--mono); font-size: 10px; color: #B45309; }

/* step list */
.steps { list-style: none; counter-reset: step; margin: 26px 0 0; padding: 0; }
.steps > li { position: relative; padding: 0 0 28px 48px; }
.steps > li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; border-radius: 50%; background: var(--teal); color: #fff; font-family: var(--mono); font-weight: 600; font-size: 13px; display: grid; place-items: center; }
.steps > li::after { content: ""; position: absolute; left: 14.5px; top: 32px; bottom: 4px; width: 1px; background: var(--line); }
.steps > li:last-child { padding-bottom: 0; }
.steps > li:last-child::after { display: none; }
.steps > li h3 { font-size: 18px; margin: 2px 0 0; }
.steps > li p { font-size: 15px; line-height: 1.6; color: var(--ink-3); margin-top: 8px; }

/* docs footer prev/next */
.docs-foot { margin-top: 52px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.docs-foot a { display: flex; flex-direction: column; gap: 3px; font-size: 14.5px; max-width: 48%; }
.docs-foot a.next { text-align: right; align-items: flex-end; margin-left: auto; }
.docs-foot .lab { font-family: var(--mono); font-size: 10.5px; color: var(--ink-4); text-transform: uppercase; letter-spacing: 0.06em; }
.docs-foot .ttl { font-weight: 600; color: var(--teal-700); }
.docs-cta { margin-top: 40px; }

@media (max-width: 1080px) {
  .docs-shell { grid-template-columns: 1fr; gap: 8px; }
  .docs-side { position: static; max-height: none; border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 24px; columns: 2; }
}

/* ============================================================
   RESPONSIVE HARDENING  (mobile · tablet · laptop · large)
   Many generated sections set grid-template-columns INLINE, which
   media queries can't override — so override by attribute + !important.
   ============================================================ */
html, body { max-width: 100%; overflow-x: clip; }

/* tablet: 3-up inline grids -> 2-up */
@media (max-width: 960px) {
  [style*="grid-template-columns:repeat(3"],
  [style*="grid-template-columns: repeat(3"],
  [style*="grid-template-columns:1fr 1fr 1fr"] { grid-template-columns: repeat(2, 1fr) !important; }
}
/* phone: any 2-up / 3-up inline grid -> single column */
@media (max-width: 620px) {
  [style*="grid-template-columns:repeat(2"],
  [style*="grid-template-columns: repeat(2"],
  [style*="grid-template-columns:repeat(3"],
  [style*="grid-template-columns: repeat(3"],
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns:1.1fr 1fr"],
  [style*="grid-template-columns: 1.1fr 1fr"] { grid-template-columns: 1fr !important; }
  /* article/customer split covers with fixed image panels: let them stack cleanly */
  .review-card[style*="grid-template-columns"] > div:first-child { min-height: 150px !important; }
}

/* wide data tables: scroll instead of squishing on small screens */
.demo-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl { min-width: 580px; }
@media (max-width: 760px) {
  .cmp-table { display: block; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
  .params-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .pricing-cmp-scroll, .tbl-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* hero proof ledger: tighten dividers on small screens */
@media (max-width: 560px) {
  .hero-proof .hero-meta { flex-wrap: wrap; gap: 14px 0; }
  .hero-proof .hero-meta .stat { padding-right: 16px; }
  .hero-proof .hero-meta .stat + .stat { padding-left: 16px; }
  .hero-pill { white-space: normal; align-items: flex-start; }
  .docs-side { columns: 1; }
  .docs-foot a { max-width: 100%; }
}

/* large screens: keep content from feeling sparse / over-wide */
@media (min-width: 1600px) {
  .wrap { max-width: 1280px; }
  .wrap-wide { max-width: 1400px; }
}
