/* ==========================================================================
   Intaiq — Components
   ========================================================================== */

/* ---- Buttons ----------------------------------------------------------- */
.btn {
  --_bg: var(--green-700);
  --_fg: var(--on-brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15.5px;
  letter-spacing: -0.01em;
  line-height: 1;
  padding: 14px 22px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  background: var(--_bg);
  color: var(--_fg);
  cursor: pointer;
  transition: transform 0.18s cubic-bezier(0.16,1,0.3,1), box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary { box-shadow: 0 1px 2px oklch(0.3 0.02 264/.12), inset 0 1px 0 oklch(0.97 0.02 247/.18); }
.btn--primary:hover { background: var(--green-600); box-shadow: var(--sh-md); }

.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: oklch(0.3 0.02 264); box-shadow: var(--sh-md); }

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

.btn--light { background: var(--white); color: var(--ink); border-color: var(--line); }
.btn--light:hover { box-shadow: var(--sh-md); border-color: transparent; }

.btn--on-dark { background: var(--green-50); color: var(--green-950); }
.btn--on-dark:hover { background: var(--white); box-shadow: var(--sh-md); }

.btn--ghost-dark { background: transparent; color: var(--green-50); border-color: oklch(0.97 0.02 247/.25); }
.btn--ghost-dark:hover { border-color: var(--green-50); background: oklch(0.97 0.02 247/.08); }

.btn--lg { padding: 17px 28px; font-size: 16.5px; }
.btn--sm { padding: 10px 16px; font-size: 14px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  color: var(--green-700);
  font-size: 15.5px;
  cursor: pointer;
  transition: gap 0.2s ease, color 0.2s ease;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform 0.2s ease; }
.link-arrow:hover { gap: 11px; color: var(--green-600); }

/* ---- Logo -------------------------------------------------------------- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.logo__mark {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: linear-gradient(150deg, var(--green-600), var(--green-900));
  display: grid;
  place-items: center;
  box-shadow: inset 0 1px 0 oklch(0.97 0.02 247/.25), var(--sh-xs);
  flex: none;
}
.logo__mark svg { width: 17px; height: 17px; }
.logo--light { color: var(--paper); }

/* ---- Nav --------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: oklch(0.985 0.005 240 / 0.78);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 70px;
}
.nav__links { display: flex; align-items: center; gap: 4px; margin-left: 14px; }
.nav__link {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 9px 14px;
  border-radius: var(--r-pill);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.18s ease, background 0.18s ease;
}
.nav__link:hover { color: var(--ink); background: oklch(0.93 0.05 248/.5); }
.nav__link.active { color: var(--green-800); background: var(--green-50); }

/* Features mega-menu */
.nav__dd { position: relative; }
.nav__link--dd { display: inline-flex; align-items: center; gap: 5px; }
.nav__mega {
  position: absolute;
  top: calc(100% + 10px);
  left: -8px;
  width: min(880px, 92vw);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-xl);
  padding: 10px;
  display: grid;
  grid-template-columns: 232px 1fr;
  gap: 10px;
  z-index: 120;
  animation: ddIn .16s cubic-bezier(0.16,1,0.3,1);
}
.nav__mega::before { content: ""; position: absolute; top: -16px; left: 0; right: 0; height: 16px; }
@keyframes ddIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.nav__mega-rail {
  background: linear-gradient(165deg, var(--green-50), var(--green-100));
  border-radius: var(--r-lg);
  padding: 22px 20px;
  display: flex; flex-direction: column;
}
.nav__mega-eyebrow { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--green-700); font-weight: 600; }
.nav__mega-tag { margin-top: 12px; font-size: 14px; line-height: 1.45; color: var(--ink-soft); flex: 1; }
.nav__mega-rail .link-arrow { margin-top: 18px; font-size: 14.5px; }
.nav__mega-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 6px; }
.nav__mega-col { display: flex; flex-direction: column; gap: 18px; }
.nav__mega-group h6 {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-mute); font-weight: 500; margin: 0 0 6px; padding-left: 10px;
}
.nav__mega-grouphead {
  display: flex; align-items: center; gap: 6px;
  cursor: pointer; border-radius: 7px; padding: 4px 10px; margin: 0 0 6px -0px;
  transition: color .14s ease, background .14s ease;
}
.nav__mega-grouphead svg { opacity: 0; transform: translateX(-3px); transition: opacity .15s ease, transform .15s ease; color: var(--green-700); }
.nav__mega-grouphead:hover { color: var(--green-800); background: var(--green-50); }
.nav__mega-grouphead:hover svg { opacity: 1; transform: none; }
.nav__mega-grouphead.active { color: var(--green-800); }
.nav__mega-link {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 10px;
  font-size: 14px; font-weight: 500; color: var(--ink);
  cursor: pointer; transition: background .14s ease, color .14s ease;
}
.nav__mega-link:hover { background: var(--green-50); color: var(--green-800); }
.nav__mega-link.active { background: var(--green-50); color: var(--green-800); }
.nav__mega-ic {
  display: grid; place-items: center; width: 28px; height: 28px; flex: none;
  border-radius: 8px; background: var(--green-50); color: var(--green-700);
}
.nav__mega-link:hover .nav__mega-ic { background: var(--white); }

@media (max-width: 1080px) { .nav__mega { width: min(720px, 92vw); } }

/* Features dropdown */
.nav__dd { position: relative; }
.nav__link--dd { display: inline-flex; align-items: center; gap: 5px; }
.nav__menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 340px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 120;
  animation: ddIn .16s cubic-bezier(0.16,1,0.3,1);
}
.nav__menu::before {
  content: ""; position: absolute; top: -16px; left: 0; right: 0; height: 16px;
}
@keyframes ddIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.nav__menu-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 11px 12px; border-radius: var(--r-md);
  cursor: pointer; transition: background .15s ease;
}
.nav__menu-item:hover { background: var(--green-50); }
.nav__menu-item.active { background: var(--green-50); }
.nav__menu-ic {
  display: grid; place-items: center; width: 36px; height: 36px; flex: none;
  border-radius: 10px; background: var(--green-50); color: var(--green-700);
}
.nav__menu-item:hover .nav__menu-ic { background: var(--white); }
.nav__menu-t { display: block; font-weight: 600; font-size: 14.5px; color: var(--ink); }
.nav__menu-d { display: block; font-size: 12.5px; color: var(--ink-mute); margin-top: 2px; line-height: 1.35; }
.nav__spacer { flex: 1; }
.nav__cta { display: flex; align-items: center; gap: 10px; }
.nav__burger { display: none; }

@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__burger {
    display: grid; place-items: center;
    width: 42px; height: 42px; border-radius: 11px;
    border: 1px solid var(--line); background: var(--white); cursor: pointer;
  }
  .nav__cta .btn--ghost { display: none; }
}

/* ---- Pills / badges ---------------------------------------------------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink-soft);
}
.pill svg { width: 14px; height: 14px; color: var(--green-600); }
.pill--green { background: var(--green-50); border-color: var(--green-100); color: var(--green-800); }
.pill--dark { background: oklch(0.97 0.02 247/.10); border-color: oklch(0.97 0.02 247/.18); color: var(--green-100); }

/* ---- Cards ------------------------------------------------------------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}
.card--hover:hover { box-shadow: var(--sh-lg); transform: translateY(-3px); border-color: transparent; }

/* ---- Section scaffolding ----------------------------------------------- */
.section { padding-block: clamp(72px, 11vh, 140px); }

/* ---- Kicker (section label inside feature pages) ----------------------- */
.kicker {
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  color: var(--green-700);
  display: inline-flex; align-items: center; gap: 8px;
}
.kicker::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--green-500); }
.kicker--prob { color: var(--ink-mute); }
.kicker--prob::before { background: var(--ink-mute); }

/* ---- Screenshot placeholder (obvious "to swap") ------------------------ */
.shot-ph__body {
  aspect-ratio: 16 / 10;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; text-align: center; padding: 24px;
  background:
    repeating-linear-gradient(45deg, oklch(0.95 0.02 250/.5) 0 12px, transparent 12px 24px),
    var(--paper-2);
  border-top: 1px dashed var(--green-300);
}
.shot-ph__tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: oklch(0.5 0.11 70); background: var(--amber-100); border: 1px solid oklch(0.85 0.08 80);
  padding: 5px 11px; border-radius: var(--r-pill);
}
.shot-ph__title { font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--ink-soft); letter-spacing: -0.01em; }
.shot-ph__sub { font-size: 13.5px; color: var(--ink-mute); max-width: 280px; }

/* ---- Platform overview group links ------------------------------------- */
.plat-link { transition: background .15s ease; }
.plat-link:hover { background: var(--green-50); }

/* ---- Placeholder card (swap-ready content) ----------------------------- */
.ph-card { border-style: dashed !important; border-color: var(--green-300) !important; }

/* ==========================================================================
   PATIENT FLOW — How-it-works serpentine
   ========================================================================== */
.flow2 { max-width: 1080px; margin-inline: auto; display: flex; flex-direction: column; align-items: center; }

/* intake strip */
.flow2__intake { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center; margin-bottom: 26px; padding: 12px 18px; border: 1px solid var(--line); background: var(--white); border-radius: var(--r-pill); box-shadow: var(--sh-sm); }
.flow2__intake-label { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); }
.flow2__intake-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.flow2__src { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--r-pill); background: var(--green-50); border: 1px solid var(--green-100); color: var(--green-800); font-size: 12.5px; font-weight: 600; }
.flow2__src svg { color: var(--green-700); }
.flow2__intake-arrow { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--green-600); color: var(--white); }

/* rows */
.flow2__rows { width: 100%; display: flex; flex-direction: column; }
.flow2__row { display: flex; align-items: stretch; justify-content: center; gap: 0; }
.flow2__row.is-rev { flex-direction: row-reverse; }

/* card */
.flow2__card { flex: 1 1 0; min-width: 0; max-width: 240px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 16px 14px; display: flex; flex-direction: column; gap: 4px; opacity: .6; transition: opacity .3s ease, box-shadow .3s ease, transform .3s ease, border-color .3s ease; cursor: default; }
.flow2__card-top { display: flex; align-items: center; justify-content: space-between; }
.flow2__ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--green-50); color: var(--green-700); transition: background .3s ease, color .3s ease, transform .3s ease; }
.flow2__n { font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--ink-mute); transition: color .3s ease; }
.flow2__t { font-family: var(--font-display); font-weight: 600; font-size: 1rem; letter-spacing: -0.01em; margin-top: 8px; }
.flow2__d { color: var(--ink-soft); font-size: 13px; line-height: 1.4; }
.flow2__tag { align-self: flex-start; margin-top: 8px; font-family: var(--font-mono); font-size: 10px; font-weight: 500; letter-spacing: .03em; color: var(--green-800); background: var(--green-50); border: 1px solid var(--green-100); border-radius: var(--r-pill); padding: 3px 9px; }
.flow2__tag.is-branch { color: var(--indigo-700); background: var(--indigo-100); border-color: oklch(0.88 0.05 290); }

/* done + active states */
.flow2__card.is-done { opacity: .92; }
.flow2__card.is-done .flow2__ic { background: var(--green-100); }
.flow2__card.is-active { opacity: 1; border-color: var(--green-500); box-shadow: var(--sh-lg); transform: translateY(-3px); }
.flow2__card.is-active .flow2__ic { background: var(--green-700); color: var(--white); transform: scale(1.06); }
.flow2__card.is-active .flow2__n { color: var(--green-800); }

/* horizontal connector between cards */
.flow2__hx { flex: 0 0 38px; display: grid; place-items: center; color: var(--green-500); align-self: center; }
.flow2__row.is-rev .flow2__hx { transform: rotate(180deg); }

/* down-turn between rows */
.flow2__turn { display: flex; padding: 0; height: 30px; align-items: center; }
.flow2__turn.is-right { justify-content: flex-end; padding-right: calc((100% - 240px) / 8); }
.flow2__turn.is-left { justify-content: flex-start; padding-left: calc((100% - 240px) / 8); }
.flow2__turn-arrow { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--green-500); color: var(--white); }

/* outcome */
.flow2__outcome { margin-top: 26px; display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; letter-spacing: -0.01em; color: var(--green-900); background: var(--green-50); border: 1px solid var(--green-100); border-radius: var(--r-pill); padding: 12px 22px; }
.flow2__outcome svg { color: var(--green-600); }

@media (max-width: 1000px) {
  .flow2__turn.is-right { padding-right: calc((100% - 240px) / 4); }
  .flow2__turn.is-left { padding-left: calc((100% - 240px) / 4); }
}
@media (max-width: 640px) {
  .flow2__card { max-width: none; }
  .flow2__row, .flow2__row.is-rev { flex-direction: column; align-items: stretch; gap: 0; }
  .flow2__hx { transform: rotate(90deg) !important; flex-basis: 30px; }
  .flow2__turn { justify-content: center !important; padding: 0 !important; }
}

/* ==========================================================================
   RESOURCE GUIDES — hub cards + reader
   ========================================================================== */
.guide-card { display: flex; gap: 18px; align-items: flex-start; cursor: pointer; border-radius: var(--r-lg); text-decoration: none; }
.guide-card__ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 13px; background: var(--green-50); color: var(--green-700); flex: none; }
.guide-card:hover .guide-card__ic { background: var(--green-100); }

/* breadcrumb */
.gd-crumb { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--ink-mute); font-family: var(--font-mono); }
.gd-crumb a { color: var(--green-700); cursor: pointer; }
.gd-crumb a:hover { text-decoration: underline; }

/* reader layout */
.gd-layout { display: grid; grid-template-columns: minmax(0,1fr) 248px; gap: clamp(32px,5vw,72px); align-items: start; }
.gd-content { max-width: 720px; }

/* typographic rhythm */
.gd-content .gd-h2 {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(1.4rem,2.4vw,1.75rem);
  letter-spacing: -0.02em; margin: 48px 0 0; scroll-margin-top: 90px; padding-top: 24px; border-top: 1px solid var(--line);
}
.gd-content .gd-h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.gd-content .gd-h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.18rem; letter-spacing: -0.01em; margin: 30px 0 0; color: var(--ink); }
.gd-content .gd-p { margin-top: 16px; font-size: 16.5px; line-height: 1.65; color: var(--ink-soft); }
.gd-content .gd-h2 + .gd-p, .gd-content .gd-h3 + .gd-p { margin-top: 14px; }
.gd-content strong { color: var(--ink); font-weight: 600; }
.gd-content .gd-ul, .gd-content .gd-ol { margin: 16px 0 0; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.gd-content .gd-ul li, .gd-content .gd-ol li { position: relative; padding-left: 28px; font-size: 16px; line-height: 1.6; color: var(--ink-soft); }
.gd-content .gd-ul li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 7px; height: 7px; border-radius: 2px; background: var(--green-500); }
.gd-content .gd-ol { counter-reset: gd; }
.gd-content .gd-ol li { counter-increment: gd; }
.gd-content .gd-ol li::before { content: counter(gd); position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 6px; background: var(--green-50); color: var(--green-800); font-family: var(--font-mono); font-size: 11px; font-weight: 600; display: grid; place-items: center; }

/* callout (blockquote) */
.gd-note { display: flex; gap: 14px; margin: 24px 0 0; padding: 18px 20px; border-radius: var(--r-md); background: var(--green-50); border: 1px solid var(--green-100); }
.gd-note__ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--white); color: var(--green-700); flex: none; }
.gd-note p { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--green-950); }

/* toc */
.gd-toc { position: sticky; top: 90px; }
.gd-toc__inner { display: flex; flex-direction: column; }
.gd-toc__label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 12px; }
.gd-toc nav { display: flex; flex-direction: column; gap: 2px; border-left: 2px solid var(--line); }
.gd-toc__link { font-size: 13.5px; color: var(--ink-mute); padding: 7px 0 7px 16px; margin-left: -2px; border-left: 2px solid transparent; cursor: pointer; line-height: 1.35; transition: color .15s ease, border-color .15s ease; }
.gd-toc__link:hover { color: var(--ink); }
.gd-toc__link.active { color: var(--green-700); border-left-color: var(--green-600); font-weight: 600; }
.gd-toc__help { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.gd-toc__help p { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 8px; }
.gd-toc__help .link-arrow { font-size: 14px; }

/* prev / next */
.gd-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); max-width: 720px; }
.gd-nav__card { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r-md); cursor: pointer; transition: border-color .18s ease, box-shadow .18s ease; background: var(--white); }
.gd-nav__card:hover { border-color: transparent; box-shadow: var(--sh-md); }
.gd-nav__card--next { text-align: right; align-items: flex-end; }
.gd-nav__dir { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--green-700); font-weight: 600; }
.gd-nav__title { font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--ink); }

@media (max-width: 920px) {
  .gd-layout { grid-template-columns: 1fr; }
  .gd-toc { display: none; }
}
@media (max-width: 560px) {
  .gd-nav { grid-template-columns: 1fr; }
}
.section--tight { padding-block: clamp(56px, 8vh, 96px); }
.section-head { max-width: 760px; }
.section-head .lede { margin-top: 18px; }
.section-head h2 { margin-top: 16px; }

/* ---- Stat -------------------------------------------------------------- */
.stat__num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--green-800);
  font-feature-settings: 'tnum' 1;
}
.stat__label { margin-top: 10px; color: var(--ink-soft); font-size: 15.5px; }

/* ========================================================================== */
/*  PRODUCT UI MOCK CHROME — the "show the quality" centerpiece               */
/* ========================================================================== */
.ui {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--sh-xl);
  font-size: 13px;
  color: var(--ink);
  --ui-line: oklch(0.92 0.01 252);
}
.ui__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--ui-line);
  background: oklch(0.985 0.005 240);
}
.ui__dots { display: flex; gap: 6px; }
.ui__dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); display: block; }
.ui__addr {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-mute);
  background: var(--white);
  border: 1px solid var(--ui-line);
  border-radius: var(--r-pill);
  padding: 4px 12px;
}
.ui__live {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  color: var(--green-700);
}
.ui__live i { width: 7px; height: 7px; border-radius: 50%; background: var(--green-500); display: inline-block; animation: livePulse 1.8s ease-in-out infinite; }
@keyframes livePulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .ui__live i { animation: none; } }
.ui__body { display: grid; }

/* app shell inside the mock */
.app { display: grid; grid-template-columns: 196px 1fr; min-height: 380px; }
.app__side {
  border-right: 1px solid var(--ui-line);
  padding: 16px 12px;
  background: oklch(0.99 0.004 240);
  display: flex; flex-direction: column; gap: 3px;
}
.app__brand { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 700; font-size: 15px; padding: 4px 8px 14px; }
.app__navitem {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 9px;
  color: var(--ink-soft); font-weight: 500; font-size: 12.5px;
  cursor: default;
}
.app__navitem svg { width: 15px; height: 15px; opacity: .7; }
.app__navitem.active { background: var(--green-50); color: var(--green-800); }
.app__navitem.active svg { opacity: 1; color: var(--green-700); }
.app__main { padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; overflow: hidden; }
.app__h { display: flex; align-items: center; justify-content: space-between; }
.app__title { font-family: var(--font-display); font-weight: 600; font-size: 17px; letter-spacing: -0.02em; }

/* generic ui atoms */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 500;
  padding: 3px 9px; border-radius: var(--r-pill); letter-spacing: .02em;
}
.chip::before { content:""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip--ok   { background: var(--green-50); color: var(--green-700); }
.chip--wait { background: var(--amber-100); color: oklch(0.5 0.11 70); }
.chip--info { background: var(--indigo-100); color: var(--indigo-700); }
.chip--idle { background: oklch(0.95 0.008 250); color: var(--ink-mute); }

.bar-track { height: 7px; border-radius: var(--r-pill); background: oklch(0.94 0.008 252); overflow: hidden; }
.bar-fill { height: 100%; border-radius: var(--r-pill); background: linear-gradient(90deg, var(--green-600), var(--aqua)); }

/* data rows */
.drow { display: grid; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 11px; border: 1px solid var(--ui-line); background: var(--white); }
.drow + .drow { margin-top: 8px; }
.avatar { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(150deg, var(--green-100), var(--green-300)); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 12px; color: var(--green-900); flex: none; }
.avatar--i { background: linear-gradient(150deg, var(--indigo-100), oklch(0.78 0.09 268)); color: var(--indigo-700); }

/* mini stat tiles inside product */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tile { border: 1px solid var(--ui-line); border-radius: 12px; padding: 12px 14px; background: var(--white); }
.tile__k { font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-mute); }
.tile__v { font-family: var(--font-display); font-weight: 600; font-size: 22px; letter-spacing: -0.03em; margin-top: 4px; }
.tile__d { font-size: 11px; margin-top: 2px; font-weight: 600; }
.up { color: var(--green-600); } .down { color: oklch(0.6 0.13 25); }

/* sparkline / chart frame */
.chartbox { border: 1px solid var(--ui-line); border-radius: 12px; padding: 14px; background: var(--white); }

/* ---- Homepage integration band ---------------------------------------- */
.intband { padding-block: clamp(40px, 6vh, 64px); background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); cursor: pointer; transition: background .2s ease; }
.intband:hover { background: var(--green-50); }
.intband__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(20px, 3.5vw, 44px); margin-top: 28px; }
.intband__logo { font-family: var(--font-display); font-weight: 700; font-size: clamp(17px, 2vw, 21px); letter-spacing: -0.02em; color: var(--ink-mute); filter: grayscale(1); opacity: .72; transition: opacity .2s ease, color .2s ease; }
.intband:hover .intband__logo { opacity: .9; }
.intband__pill { display: inline-flex; align-items: center; font-family: var(--font-body); font-weight: 600; font-size: 14px; color: var(--on-brand); background: var(--green-700); border-radius: var(--r-pill); padding: 9px 18px; white-space: nowrap; box-shadow: var(--sh-sm); transition: background .2s ease; }
.intband:hover .intband__pill { background: var(--green-600); }

/* ---- Integrations page category blocks -------------------------------- */
.intblock { display: flex; flex-direction: column; gap: 20px; }
.intblock__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.intblock__name { display: flex; align-items: center; min-height: 50px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper); font-family: var(--font-display); font-weight: 600; font-size: 14.5px; letter-spacing: -0.01em; color: var(--ink-soft); filter: grayscale(1); }
@media (max-width: 520px) { .intblock__grid { grid-template-columns: 1fr; } }

/* ---- Logo strip -------------------------------------------------------- */
.logostrip { display: flex; align-items: center; gap: clamp(28px, 5vw, 60px); flex-wrap: wrap; justify-content: center; }
.logostrip .glogo {
  font-family: var(--font-display); font-weight: 700; font-size: 19px;
  color: var(--ink-mute); letter-spacing: -0.02em; opacity: .8;
  display: inline-flex; align-items: center; gap: 8px;
  filter: grayscale(1);
}

/* ---- Footer ------------------------------------------------------------ */
.footer { background: var(--green-50); color: var(--ink-soft); padding-block: 72px 36px; position: relative; border-top: 1px solid var(--green-100); }
.footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--brand-gradient); }
.footer a { color: var(--ink-soft); transition: color .18s ease; cursor: pointer; }
.footer a:hover { color: var(--green-700); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer__col h5 { color: var(--green-700); font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; margin-bottom: 16px; }
.footer__links { display: flex; flex-direction: column; gap: 11px; font-size: 15px; }
.footer__bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--green-100); display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 13.5px; color: var(--ink-mute); font-family: var(--font-mono); flex-wrap: wrap; }
.social-link { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; color: var(--ink-mute); transition: color .18s ease; }
.social-link:hover { color: var(--green-700); }
.social-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 11px; background: var(--white); border: 1px solid var(--green-100); color: var(--green-700); transition: background .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.social-link:hover .social-btn { background: var(--green-700); color: var(--white); border-color: transparent; transform: translateY(-2px); box-shadow: var(--sh-md); }
.social-btn svg { width: 19px; height: 19px; }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; } }

/* ---- Marquee ----------------------------------------------------------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: 60px; width: max-content; animation: marquee 32s linear infinite; }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---- Generic grids ----------------------------------------------------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
