/* Marketing site — extends tokens.css. Loaded on homepage only. */

.cl-site * { box-sizing: border-box; }
.cl-site {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink); background: var(--page-bg);
  font-size: 15px; line-height: 1.5;
  font-feature-settings: 'ss01','cv11'; -webkit-font-smoothing: antialiased;
}
.cl-site a { color: inherit; text-decoration: none; }
.cl-site button { font-family: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }

.cl-site .wrap { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.cl-site .eyebrow { font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.cl-site .eyebrow .bar { display: inline-block; width: 18px; height: 1px; background: var(--muted-2); }
.cl-site h1, .cl-site h2, .cl-site h3, .cl-site h4 { letter-spacing: -0.02em; margin: 0; text-wrap: pretty; font-weight: 600; font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; }
.cl-site h1 { font-size: 56px; line-height: 1.05; letter-spacing: -0.03em; }
.cl-site h2 { font-size: 36px; line-height: 1.1; }
.cl-site .dim { color: var(--muted); }

/* ——— Buttons ——— */
.cl-site .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 6px; border: 1px solid transparent; font-size: 13px; font-weight: 500; transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease); white-space: nowrap; cursor: pointer; }
.cl-site .btn-primary { background: var(--ink); color: var(--surface); }
.cl-site .btn-primary:hover { background: var(--graphite); }
.cl-site .btn-outline { border-color: var(--line); background: var(--surface); color: var(--ink); }
.cl-site .btn-outline:hover { background: var(--surface-2); border-color: var(--graphite); }
.cl-site .btn-ghost { color: var(--graphite); }
.cl-site .btn-ghost:hover { color: var(--ink); background: var(--surface-2); }
.cl-site .btn-on-ink { background: var(--surface); color: var(--ink); }
.cl-site .btn-on-ink:hover { background: rgba(255,255,255,0.92); }
.cl-site .btn-ghost-on-ink { color: rgba(255,255,255,0.7); border-color: rgba(255,255,255,0.18); }
.cl-site .btn-ghost-on-ink:hover { color: var(--surface); border-color: rgba(255,255,255,0.4); }
.cl-site .btn-lg { height: 40px; padding: 0 18px; font-size: 14px; }

/* ——— Top nav with mega-menu ——— */
/* Constrained to 1200px (same as content .wrap), centered. */
.cl-site .nav { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line-soft); background: rgba(250,251,252,0.85); backdrop-filter: saturate(140%) blur(8px); -webkit-backdrop-filter: saturate(140%) blur(8px); }
.cl-site .nav-inner { max-width: 1200px; margin: 0 auto; height: 60px; display: flex; align-items: center; padding: 0 28px; gap: 18px; }
.cl-site .brand { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 14px; letter-spacing: -0.01em; cursor: pointer; color: var(--ink); }
.cl-site .brand-mark { width: 26px; height: 26px; display: block; }
.cl-site .foot .brand-mark { width: 28px; height: 28px; }
.cl-site .nav-links { display: flex; gap: 2px; flex: 1; margin-left: 14px; position: relative; align-items: center; }
.cl-site .nav-link { padding: 8px 12px; border-radius: 6px; font-size: 13px; color: var(--graphite); cursor: pointer; display: inline-flex; align-items: center; gap: 5px; transition: background var(--dur) var(--ease), color var(--dur) var(--ease); background: transparent; border: 0; font-family: inherit; text-decoration: none; }
.cl-site .nav-link:hover, .cl-site .nav-link.open, .cl-site .nav-link.active, .cl-site .nav-link-group.open .nav-link { background: var(--surface-2); color: var(--ink); }
.cl-site .nav-link .car { font-size: 9px; color: var(--muted-2); }
.cl-site .nav-cta { display: flex; gap: 8px; align-items: center; }
/* Auth-aware swap (header.php inline JS adds .cl-logged-in to <html> on cl_loggedin cookie). */
.cl-site .nav-cta-logged-in { display: none; }
.cl-logged-in .cl-site .nav-cta-logged-out { display: none; }
.cl-logged-in .cl-site .nav-cta-logged-in { display: inline-flex; }

/* hamburger */
.cl-site .nav-burger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 38px; height: 38px; padding: 0 9px; background: transparent; border: 1px solid var(--line-soft); border-radius: 8px; cursor: pointer; margin-left: auto; }
.cl-site .nav-burger span { display: block; height: 1.5px; width: 100%; background: var(--ink); border-radius: 1px; transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease); }
.cl-site .nav-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.cl-site .nav-burger.open span:nth-child(2) { opacity: 0; }
.cl-site .nav-burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* mobile drawer */
.cl-site .nav-mobile { position: fixed; top: 60px; left: 0; right: 0; bottom: 0; background: var(--surface); border-top: 1px solid var(--line-soft); overflow-y: auto; z-index: 49; display: none; flex-direction: column; padding: 8px 0 24px; }
.cl-site .nav-mobile.open { display: flex; }
.cl-site .nav-mobile-list { display: flex; flex-direction: column; padding: 8px 20px; }
.cl-site .nav-mobile-group { border-bottom: 1px solid var(--line-soft); }
.cl-site .nav-mobile-section { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 16px 4px; background: transparent; border: 0; font-family: inherit; font-size: 16px; font-weight: 500; color: var(--ink); cursor: pointer; text-align: left; text-decoration: none; }
.cl-site .nav-mobile-section--leaf { border-bottom: 1px solid var(--line-soft); display: flex; }
.cl-site .nav-mobile-chev { font-size: 18px; color: var(--muted); font-weight: 400; }
.cl-site .nav-mobile-sub { padding: 4px 0 18px; display: flex; flex-direction: column; gap: 18px; }
.cl-site .nav-mobile-sub[hidden] { display: none; }
.cl-site .nav-mobile-sec { display: flex; flex-direction: column; gap: 4px; }
.cl-site .nav-mobile-h5 { font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.cl-site .nav-mobile-link { padding: 10px 12px; font-size: 14px; color: var(--graphite); border-radius: 6px; text-decoration: none; }
.cl-site .nav-mobile-link:hover { background: var(--surface-2); color: var(--ink); }
.cl-site .nav-mobile-cta { display: flex; flex-direction: column; gap: 8px; padding: 20px 20px 0; margin-top: auto; border-top: 1px solid var(--line-soft); padding-top: 20px; }
.cl-site .nav-mobile-cta .btn { justify-content: center; }

/* mega menu */
.cl-site .nav-link-group { position: static; }
.cl-site .nav-link-group .mega { display: none; }
.cl-site .nav-link-group.open .mega { display: block; }
.cl-site .mega { position: absolute; top: calc(100% + 8px); left: 0; right: 0; max-width: 1100px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-pop); padding: 22px; z-index: 60; animation: cl-pop-in 140ms var(--ease); }
@keyframes cl-pop-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.cl-site .mega-grid { display: grid; gap: 22px; }
.cl-site .mega-grid.cols-2 { grid-template-columns: 1fr 1fr; }
.cl-site .mega-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.cl-site .mega-grid.cols-4 { grid-template-columns: 1.2fr 1fr 1fr 1.2fr; }
.cl-site .mega-col h5 { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin: 0 0 10px; }
.cl-site .mega-link { display: flex; gap: 10px; padding: 8px 10px; border-radius: 6px; cursor: pointer; transition: background var(--dur) var(--ease); align-items: flex-start; text-decoration: none; }
.cl-site .mega-link:hover { background: var(--surface-2); }
.cl-site .mega-link .ml-t { font-size: 13px; font-weight: 500; color: var(--ink); }
.cl-site .mega-link .ml-d { font-size: 11px; color: var(--muted); margin-top: 1px; line-height: 1.4; }
.cl-site .mega-feature { background: var(--surface-2); border: 1px solid var(--line-soft); border-radius: 8px; padding: 14px; }
.cl-site .mega-feature .l { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.cl-site .mega-feature .t { font-size: 13px; font-weight: 500; margin-top: 8px; line-height: 1.4; color: var(--ink); }
.cl-site .mega-feature .a { font-size: 12px; color: var(--ink); margin-top: 10px; border-bottom: 1px solid var(--ink); padding-bottom: 1px; display: inline-block; text-decoration: none; }

/* mega-v3 — per-menu layouts (list / split / logos / editorial) */
.cl-site .mega-v3 { padding: 14px; }
.cl-site .mega-v3 h5 { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }
.cl-site .mcount { font-family: 'JetBrains Mono', monospace; font-size: 9px; color: var(--muted-2); background: var(--surface-2); padding: 1px 6px; border-radius: 99px; letter-spacing: 0; font-weight: 500; }

/* shared right rail */
.cl-site .mrail { display: flex; flex-direction: column; gap: 8px; padding: 16px; background: var(--surface-2); border: 1px solid var(--line-soft); border-radius: 10px; text-decoration: none; transition: border-color var(--dur) var(--ease); }
.cl-site .mrail:hover { border-color: var(--line); }
.cl-site .mrail-l { font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand-2, var(--ink)); }
.cl-site .mrail-t { font-size: 13px; font-weight: 500; color: var(--ink); line-height: 1.45; }
.cl-site .mrail-a { font-size: 12px; color: var(--ink); margin-top: auto; padding-top: 4px; font-weight: 500; }

/* Product — single column of rich rows + right rail */
.cl-site .mega--list { padding: 14px; }
.cl-site .mlist-wrap { display: grid; grid-template-columns: 1fr 240px; gap: 22px; }
.cl-site .mlist { display: flex; flex-direction: column; gap: 2px; }
.cl-site .mlist-row { display: grid; grid-template-columns: 38px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 8px; text-decoration: none; color: inherit; transition: background var(--dur) var(--ease); }
.cl-site .mlist-row:hover { background: var(--surface-2); }
.cl-site .mlist-mark { width: 32px; height: 32px; display: grid; place-items: center; background: var(--ink); color: var(--surface); border-radius: 6px; font-size: 10px; font-weight: 700; letter-spacing: 0.06em; font-family: 'JetBrains Mono', monospace; }
.cl-site .mlist-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cl-site .mlist-t { font-size: 14px; font-weight: 600; color: var(--ink); letter-spacing: -0.005em; }
.cl-site .mlist-d { font-size: 12px; color: var(--muted); line-height: 1.45; }
.cl-site .mlist-arrow { color: var(--muted-2); font-size: 14px; transition: transform var(--dur) var(--ease), color var(--dur) var(--ease); }
.cl-site .mlist-row:hover .mlist-arrow { color: var(--ink); transform: translateX(2px); }

/* Solutions — 2 columns + right rail */
.cl-site .msplit { display: grid; grid-template-columns: 1fr 1fr 240px; gap: 24px; }
.cl-site .msplit-col { display: flex; flex-direction: column; gap: 1px; }

/* Integrations — logo tiles + category chips + rail */
.cl-site .mlogos { display: grid; grid-template-columns: 1fr 240px; gap: 22px; }
.cl-site .mlogos-main { display: flex; flex-direction: column; gap: 4px; }
.cl-site .mlogos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 4px; }
.cl-site .mlogo-tile { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: 8px; text-decoration: none; transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease); }
.cl-site .mlogo-tile:hover { border-color: var(--line); transform: translateY(-1px); }
.cl-site .mlogo-tile img { width: 22px; height: 22px; object-fit: contain; flex: none; }
.cl-site .mlogo-tile span { font-size: 13px; font-weight: 500; color: var(--ink); }
.cl-site .mchips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.cl-site .mchip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; background: var(--surface-2); border: 1px solid var(--line-soft); border-radius: 99px; font-size: 12px; color: var(--graphite); text-decoration: none; transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease); }
.cl-site .mchip:hover { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.cl-site .mchip-n { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--muted-2); }
.cl-site .mchip:hover .mchip-n { color: rgba(255,255,255,0.6); }
.cl-site .mall { font-size: 13px; color: var(--ink); font-weight: 500; padding: 8px 0 4px; border-top: 1px dashed var(--line-soft); text-decoration: none; display: inline-block; }
.cl-site .mall:hover { text-decoration: underline; }

/* Resources — featured hero + 2 columns */
.cl-site .medit { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cl-site .medit-hero { display: flex; flex-direction: column; gap: 8px; padding: 18px 18px 16px; background: linear-gradient(165deg, var(--surface-2), var(--page-bg)); border: 1px solid var(--line-soft); border-radius: 10px; text-decoration: none; transition: border-color var(--dur) var(--ease); }
.cl-site .medit-hero:hover { border-color: var(--ink); }
.cl-site .medit-hero-tag { font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand-2); }
.cl-site .medit-hero-t { font-size: 16px; font-weight: 600; color: var(--ink); line-height: 1.35; letter-spacing: -0.01em; }
.cl-site .medit-hero-d { font-size: 12px; color: var(--muted); line-height: 1.5; }
.cl-site .medit-hero-a { font-size: 12px; color: var(--ink); margin-top: auto; padding-top: 6px; font-weight: 500; }
.cl-site .medit-col { display: flex; flex-direction: column; gap: 1px; }

/* skip link */
.cl-site .skip-link { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; z-index: 9999; }
.cl-site .skip-link:focus { position: fixed; top: 0.5rem; left: 0.5rem; width: auto; height: auto; overflow: visible; background: var(--surface); padding: 8px 14px; font-size: 13px; font-weight: 500; border-radius: 6px; box-shadow: var(--shadow-pop); color: var(--ink); text-decoration: none; outline: 2px solid var(--brand); outline-offset: 2px; }

/* footer */
.cl-site .foot { padding: 56px 0 40px; background: var(--page-bg); border-top: 1px solid var(--line-soft); margin-top: 0; }
.cl-site .foot-grid { display: grid; grid-template-columns: 1.4fr repeat(5, 1fr); gap: 32px; }
.cl-site .foot h4 { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.cl-site .foot ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.cl-site .foot ul a { color: var(--graphite); font-size: 13px; cursor: pointer; text-decoration: none; }
.cl-site .foot ul a:hover { color: var(--ink); }
.cl-site .foot .baseline { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line-soft); display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); flex-wrap: wrap; gap: 12px; }
.cl-site .foot .foot-tag { font-size: 13px; color: var(--muted); max-width: 36ch; margin: 8px 0 0; line-height: 1.5; }
.cl-site .foot .foot-trust { display: grid; grid-template-columns: max-content max-content; gap: 6px 32px; margin-top: 18px; font-size: 12px; color: var(--muted); }
.cl-site .foot .foot-trust span { white-space: nowrap; }
.cl-site .foot .foot-social { display: flex; gap: 8px; margin-top: 14px; }
.cl-site .foot .foot-social a { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--line-soft); border-radius: 6px; color: var(--graphite); transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.cl-site .foot .foot-social a:hover { color: var(--ink); border-color: var(--line); }
.cl-site .foot .baseline-links { display: flex; gap: 16px; flex-wrap: wrap; }
.cl-site .foot .baseline-links a { color: var(--muted); }
.cl-site .foot .baseline-links a:hover { color: var(--ink); }

/* ——— Hero (homepage) ——— */
.cl-site .hero { padding: 80px 0 56px; background: radial-gradient(60% 80% at 20% 0%, rgba(14,16,19,0.03), transparent 60%), var(--page-bg); border-bottom: 1px solid var(--line-soft); }
.cl-site .hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.cl-site .hero h1 em { font-style: normal; border-bottom: 2px solid var(--ink); padding-bottom: 2px; }
.cl-site .hero .lede { margin-top: 18px; font-size: 17px; color: var(--graphite); max-width: 52ch; }
.cl-site .hero-actions { margin-top: 26px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.cl-site .hero-meta { margin-top: 22px; display: flex; align-items: center; gap: 14px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.cl-site .hero-meta .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.cl-site .hero-meta .sep { width: 1px; height: 14px; background: var(--line); }

/* Insights mock */
.cl-site .insights-mock { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 30px 60px -30px rgba(14,16,19,0.18), 0 12px 24px -12px rgba(14,16,19,0.08); overflow: hidden; }
.cl-site .im-bar { height: 36px; background: var(--surface-2); border-bottom: 1px solid var(--line-soft); display: flex; align-items: center; gap: 10px; padding: 0 12px; }
.cl-site .im-bar .dots { display: flex; gap: 5px; }
.cl-site .im-bar .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); display: inline-block; }
.cl-site .im-bar .crumbs { font-size: 11px; color: var(--muted); display: flex; gap: 6px; align-items: center; flex-wrap: nowrap; white-space: nowrap; min-width: 0; overflow: hidden; margin: 0; }
.cl-site .im-bar .crumbs .cur { color: var(--ink); font-weight: 500; }
.cl-site .im-metrics { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line-soft); }
.cl-site .im-metric { padding: 12px 14px; border-right: 1px solid var(--line-soft); }
.cl-site .im-metric:last-child { border-right: 0; }
.cl-site .im-metric .l { font-size: 9px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-weight: 600; }
.cl-site .im-metric .v { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.cl-site .im-metric .d { font-size: 11px; color: var(--muted); margin-top: 1px; }
.cl-site .im-metric.warn { background: var(--warn-bg); }
.cl-site .im-row { display: grid; grid-template-columns: 1fr auto auto; padding: 12px 14px; border-bottom: 1px solid var(--line-soft); align-items: center; gap: 12px; font-size: 12px; }
.cl-site .im-row > div:first-child { display: none; }
.cl-site .im-row > div:nth-child(2) { min-width: 0; }
.cl-site .im-row .sev { display: none; }
.cl-site .im-row:last-child { border-bottom: 0; }
.cl-site .im-row .ttl { color: var(--ink); font-weight: 450; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-site .im-row .snip { color: var(--muted); font-size: 11px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-site .cat { font-size: 10px; padding: 2px 6px; border-radius: 4px; border: 1px solid var(--line-soft); white-space: nowrap; }
.cl-site .cat.bug { background: #FEE2E2; color: #991B1B; border-color: #FECACA; }
.cl-site .cat.feat { background: #DBEAFE; color: #1E40AF; border-color: #BFDBFE; }
.cl-site .cat.ux { background: #E0E7FF; color: #3730A3; border-color: #C7D2FE; }
.cl-site .cat.imp { background: #DCFCE7; color: #166534; border-color: #BBF7D0; }
.cl-site .sev { font-size: 11px; display: inline-flex; align-items: center; gap: 5px; }
.cl-site .sev i { width: 7px; height: 7px; border-radius: 50%; }
.cl-site .sev.bad i { background: var(--bad); }
.cl-site .sev.warn i { background: var(--warn); }
.cl-site .sev.info i { background: var(--info); }
.cl-site .im-row .meta { font-size: 11px; color: var(--muted); font-family: 'JetBrains Mono', monospace; text-align: right; }

/* ——— Sections ——— */
.cl-site .section { padding: 80px 0; border-bottom: 1px solid var(--line-soft); }
.cl-site .section--alt { background: var(--surface); }
.cl-site .section-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: end; margin-bottom: 32px; }
.cl-site .section-head .lede { font-size: 17px; color: var(--muted); max-width: 46ch; }

/* sources */
.cl-site .sources { padding: 28px 0; border-bottom: 1px solid var(--line-soft); background: var(--surface); }
.cl-site .sources-head { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.14em; font-weight: 600; text-align: center; margin-bottom: 18px; }
.cl-site .sources-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 28px 40px; filter: grayscale(1) opacity(0.7); }
.cl-site .src-logo { display: inline-flex; align-items: center; gap: 10px; }
.cl-site .src-logo img { width: 22px; height: 22px; object-fit: contain; flex: none; }
.cl-site .sources-row span { font-size: 14px; font-weight: 600; color: var(--graphite); letter-spacing: -0.01em; }

/* ——— "Same Monday" comparison ——— */
.cl-site .vs-frame { display: grid; grid-template-columns: 1fr auto 1fr; gap: 0; align-items: stretch; }
.cl-site .vs-rail { display: flex; flex-direction: column; min-height: 580px; }
.cl-site .vs-head { display: flex; align-items: baseline; justify-content: space-between; padding: 0 4px 14px; }
.cl-site .vs-tag { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; color: var(--muted); }
.cl-site .vs-tag--brand { color: var(--brand-2); }
.cl-site .vs-time { font-size: 11px; color: var(--muted-2); }

.cl-site .vs-stage { flex: 1; border: 1px solid var(--line); border-radius: 14px; position: relative; overflow: hidden; }
.cl-site .vs-stage--chaos { background:
    radial-gradient(circle at 30% 20%, rgba(194,68,42,0.04), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(196,138,31,0.05), transparent 55%),
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(14,16,19,0.018) 14px 15px),
    var(--surface-2);
}
.cl-site .vs-stage--calm { background: var(--surface); padding: 22px; display: flex; flex-direction: column; gap: 18px; }

/* chaos windows */
.cl-site .chaos-window { position: absolute; width: 230px; background: var(--surface); border: 1px solid var(--line); border-radius: 7px; box-shadow: 0 8px 22px rgba(14,16,19,0.07), 0 1px 0 rgba(14,16,19,0.04); overflow: hidden; }
.cl-site .cw-bar { display: flex; align-items: center; gap: 5px; padding: 7px 10px; background: var(--surface-3); border-bottom: 1px solid var(--line-soft); }
.cl-site .cw-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted-2); opacity: 0.5; }
.cl-site .cw-dot:nth-child(1) { background: #E76F51; opacity: 0.7; }
.cl-site .cw-dot:nth-child(2) { background: #E9C46A; opacity: 0.7; }
.cl-site .cw-dot:nth-child(3) { background: #8AB17D; opacity: 0.7; }
.cl-site .cw-title { margin-left: 6px; font-size: 11px; color: var(--muted); font-weight: 500; }
.cl-site .cw-body { padding: 11px 12px; font-size: 12px; line-height: 1.45; }
.cl-site .cw-list > div { padding: 3px 0; color: var(--graphite); }
.cl-site .cw-list .dim { color: var(--muted-2); font-style: italic; padding-top: 5px; }
.cl-site .cw-counter { text-align: center; padding: 14px 12px 12px; }
.cl-site .cw-counter .big { font-size: 38px; font-weight: 700; color: var(--bad); letter-spacing: -0.02em; line-height: 1; }
.cl-site .cw-counter .lbl { font-size: 11px; color: var(--muted); margin-top: 6px; }
.cl-site .cw-slack > div { padding: 4px 0; }
.cl-site .cw-slack b { font-weight: 600; }
.cl-site .cw-slack .muted { color: var(--muted-2); font-size: 10px; margin-left: 4px; }
.cl-site .cw-slack > div + div { border-top: 1px solid var(--line-soft); margin-top: 4px; padding-top: 6px; }
.cl-site .cw-doc .line { height: 6px; background: var(--surface-3); border-radius: 3px; margin: 5px 0; }
.cl-site .cw-doc .line.w70 { width: 70%; } .cl-site .cw-doc .line.w90 { width: 90%; } .cl-site .cw-doc .line.w50 { width: 50%; } .cl-site .cw-doc .line.w80 { width: 80%; }
.cl-site .cw-doc .cw-stamp { margin-top: 10px; font-size: 10px; color: var(--bad); font-style: italic; }
.cl-site .cw-notion > div { padding: 4px 0; color: var(--graphite); font-size: 11.5px; }
.cl-site .cw-notion > div + div { border-top: 1px dashed var(--line-soft); }

.cl-site .chaos-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to top, rgba(255,255,255,0.96) 30%, transparent); padding: 50px 22px 18px; display: flex; gap: 28px; pointer-events: none; }
.cl-site .chaos-stat { display: flex; flex-direction: column; }
.cl-site .chaos-stat-n { font-family: 'JetBrains Mono', monospace; font-size: 22px; font-weight: 600; color: var(--bad); letter-spacing: -0.02em; }
.cl-site .chaos-stat-l { font-size: 11.5px; color: var(--graphite); margin-top: 3px; max-width: 18ch; line-height: 1.35; }

/* divider */
.cl-site .vs-divider { display: flex; flex-direction: column; align-items: center; padding: 36px 18px 0; gap: 10px; }
.cl-site .vs-divider-line { width: 1px; flex: 1; background: linear-gradient(to bottom, transparent, var(--line) 20%, var(--line) 80%, transparent); }
.cl-site .vs-divider-chip { width: 32px; height: 32px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; font-size: 11px; color: var(--muted); font-weight: 500; box-shadow: 0 1px 0 rgba(14,16,19,0.04); font-family: 'JetBrains Mono', monospace; }

/* calm side — brief mock */
.cl-site .calm-brief { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--surface); box-shadow: 0 4px 18px rgba(14,16,19,0.04); }
.cl-site .cb-bar { display: flex; align-items: center; justify-content: space-between; padding: 9px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line-soft); }
.cl-site .cb-app { font-size: 12px; font-weight: 600; letter-spacing: -0.01em; color: var(--brand-2); }
.cl-site .cb-route { font-size: 11px; color: var(--muted); font-family: 'JetBrains Mono', monospace; }
.cl-site .cb-body { padding: 18px 20px 20px; }
.cl-site .cb-kicker { font-size: 10px; color: var(--brand-2); letter-spacing: 0.16em; margin-bottom: 8px; font-family: 'JetBrains Mono', monospace; }
.cl-site .cb-title { font-size: 19px; line-height: 1.3; margin: 0 0 18px; letter-spacing: -0.01em; }
.cl-site .cb-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.cl-site .cb-list li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--line-soft); }
.cl-site .cb-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.cl-site .cb-list li.cb-dim { opacity: 0.55; }
.cl-site .cb-rank { font-size: 11px; color: var(--muted-2); padding-top: 2px; font-family: 'JetBrains Mono', monospace; }
.cl-site .cb-h { font-size: 13.5px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.cl-site .cb-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 10.5px; color: var(--muted); font-family: 'JetBrains Mono', monospace; }
.cl-site .cb-pill { padding: 2px 7px; border: 1px solid var(--line); border-radius: 3px; background: var(--surface-2); color: var(--graphite); }
.cl-site .cb-pill--alert { color: var(--bad); border-color: rgba(194,68,42,0.25); background: var(--bad-bg); }
.cl-site .cb-quote { font-size: 12px; color: var(--graphite); font-style: italic; margin-top: 8px; padding: 8px 10px; background: var(--brand-tint); border-left: 2px solid var(--brand); border-radius: 0 4px 4px 0; line-height: 1.5; }
.cl-site .cb-attr { color: var(--muted); font-style: normal; font-size: 11px; }

/* trace log under the brief */
.cl-site .calm-trace { display: flex; flex-direction: column; gap: 7px; padding: 0 4px; }
.cl-site .ct-row { display: grid; grid-template-columns: 8px 56px 1fr; gap: 10px; align-items: center; font-size: 11.5px; color: var(--muted); }
.cl-site .ct-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--muted-2); }
.cl-site .ct-dot--brand { background: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.cl-site .ct-time { font-size: 10.5px; color: var(--muted-2); font-family: 'JetBrains Mono', monospace; }
.cl-site .ct-row span:last-child { color: var(--graphite); }

/* outcome footer */
.cl-site .vs-foot { margin-top: 16px; padding: 14px 16px; border-radius: 8px; display: flex; flex-direction: column; gap: 4px; }
.cl-site .vs-foot--bad { background: var(--bad-bg); border: 1px solid rgba(194,68,42,0.18); }
.cl-site .vs-foot--good { background: var(--brand-soft); border: 1px solid rgba(95,103,187,0.32); border-left: 3px solid var(--brand); }
.cl-site .vs-foot-label { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; opacity: 0.7; }
.cl-site .vs-foot--bad .vs-foot-label { color: var(--bad); }
.cl-site .vs-foot--good .vs-foot-label { color: var(--brand-2); }
.cl-site .vs-foot-text { font-size: 13px; line-height: 1.45; color: var(--ink); }

/* pipeline — 3 alternating rows with real visuals */
.cl-site .pipe-row {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  padding: 56px 0;
  border-top: 1px solid var(--line-soft);
}
.cl-site .pipe-row:first-of-type { border-top: 0; padding-top: 32px; }
.cl-site .pipe-row--reverse .pipe-copy { order: 2; }
.cl-site .pipe-row--reverse .pipe-visual { order: 1; }
.cl-site .pipe-copy .step-n { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--muted); letter-spacing: 0.05em; }
.cl-site .pipe-copy h3 { font-size: 28px; line-height: 1.15; letter-spacing: -0.01em; margin: 8px 0 14px; }
.cl-site .pipe-copy p { font-size: 15px; color: var(--graphite); line-height: 1.6; margin: 0 0 18px; max-width: 46ch; }
.cl-site .pipe-bullets { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.cl-site .pipe-bullets li { font-size: 13.5px; color: var(--graphite); display: flex; gap: 12px; align-items: flex-start; }
.cl-site .pb-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--ink); margin-top: 8px; flex: none; }
.cl-site .pipe-visual { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 22px; box-shadow: 0 1px 0 rgba(0,0,0,0.02); }

/* 01 — Ingest network */
.cl-site .ingest-frame { display: flex; flex-direction: column; gap: 16px; }
.cl-site .ingest-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); }
.cl-site .ingest-head .mono { font-size: 11px; color: var(--muted); letter-spacing: 0.05em; }
.cl-site .ingest-status { display: inline-flex; align-items: center; gap: 8px; color: var(--ok) !important; }
.cl-site .ingest-pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(74,155,110,0.45); animation: cl-ingest-pulse 1.6s infinite; }
@keyframes cl-ingest-pulse { 0% { box-shadow: 0 0 0 0 rgba(74,155,110,0.45); } 70% { box-shadow: 0 0 0 8px rgba(74,155,110,0); } 100% { box-shadow: 0 0 0 0 rgba(74,155,110,0); } }
.cl-site .ingest-net { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cl-site .source-node { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line-soft); border-radius: 8px; background: var(--surface); position: relative; }
.cl-site .source-node--pending { background: var(--surface-2); border-style: dashed; }
.cl-site .source-logo { width: 26px; height: 26px; border-radius: 6px; background: transparent; display: grid; place-items: center; flex: none; padding: 0; }
.cl-site .source-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.cl-site .source-text { flex: 1; min-width: 0; }
.cl-site .source-label { font-size: 13px; font-weight: 500; color: var(--ink); }
.cl-site .source-meta { font-size: 10.5px; color: var(--muted); font-family: 'JetBrains Mono', monospace; }
.cl-site .source-check { font-size: 12px; color: var(--ok); font-weight: 600; }
.cl-site .source-node--pending .source-check { color: var(--muted); }

/* 02 — Analyze clusters */
.cl-site .analyze-frame { display: flex; flex-direction: column; gap: 14px; }
.cl-site .analyze-head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); }
.cl-site .analyze-head .mono { font-size: 11px; letter-spacing: 0.05em; font-family: 'JetBrains Mono', monospace; }
.cl-site .analyze-head .mono:first-child { color: var(--ink); font-weight: 500; }
.cl-site .analyze-cluster { display: flex; flex-direction: column; gap: 8px; }
.cl-site .cluster-card { padding: 12px 14px; border: 1px solid var(--line-soft); border-radius: 8px; background: var(--surface); display: flex; flex-direction: column; gap: 8px; }
.cl-site .cluster-top { display: flex; justify-content: space-between; align-items: center; }
.cl-site .cluster-tag { font-family: 'JetBrains Mono', monospace; font-size: 10px; padding: 2px 7px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.05em; }
.cl-site .cluster-card--bug .cluster-tag { background: rgba(194,68,42,0.12); color: var(--bad); }
.cl-site .cluster-card--feat .cluster-tag { background: rgba(95,103,187,0.12); color: var(--brand-2); }
.cl-site .cluster-card--ux .cluster-tag { background: var(--surface-2); color: var(--graphite); }
.cl-site .cluster-n { font-size: 13px; color: var(--ink); font-weight: 600; font-family: 'JetBrains Mono', monospace; }
.cl-site .cluster-title { font-size: 13px; color: var(--ink); }
.cl-site .cluster-bar { height: 4px; background: var(--surface-2); border-radius: 2px; overflow: hidden; }
.cl-site .cluster-bar > span { display: block; height: 100%; background: var(--ink); }
.cl-site .cluster-card--bug .cluster-bar > span { background: var(--bad); }
.cl-site .cluster-card--feat .cluster-bar > span { background: var(--brand-2); }
.cl-site .cluster-meta { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--muted); font-family: 'JetBrains Mono', monospace; }
.cl-site .cluster-meta .up { color: var(--bad); font-weight: 600; }
.cl-site .cluster-meta .flat { color: var(--muted); }
.cl-site .analyze-foot { display: flex; gap: 14px; flex-wrap: wrap; padding-top: 10px; border-top: 1px solid var(--line-soft); font-size: 10.5px; color: var(--muted); font-family: 'JetBrains Mono', monospace; }

/* 03 — Act stack (Slack + Linear) */
.cl-site .act-stack { display: flex; flex-direction: column; gap: 12px; }
.cl-site .act-card { border: 1px solid var(--line-soft); border-radius: 8px; background: var(--surface); overflow: hidden; }
.cl-site .act-card-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line-soft); background: var(--surface-2); }
.cl-site .act-card-head img { width: 16px; height: 16px; object-fit: contain; }
.cl-site .act-card-title { font-size: 12.5px; font-weight: 500; color: var(--ink); flex: 1; }
.cl-site .act-card-time { font-size: 10.5px; color: var(--muted); font-family: 'JetBrains Mono', monospace; }
.cl-site .act-msg { display: flex; gap: 10px; padding: 12px 14px; }
.cl-site .act-msg-avatar { width: 28px; height: 28px; border-radius: 6px; background: var(--ink); color: var(--surface); display: grid; place-items: center; font-size: 11px; font-weight: 700; font-family: 'JetBrains Mono', monospace; flex: none; }
.cl-site .act-msg-body { flex: 1; min-width: 0; }
.cl-site .act-msg-name { font-size: 12.5px; font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 6px; margin-bottom: 2px; }
.cl-site .act-msg-app { font-size: 9px; padding: 1px 5px; background: var(--surface-2); color: var(--muted); border-radius: 3px; letter-spacing: 0.05em; font-weight: 500; font-family: 'JetBrains Mono', monospace; }
.cl-site .act-msg-text { font-size: 13px; color: var(--graphite); line-height: 1.5; }
.cl-site .act-msg-text mark { background: rgba(194,68,42,0.14); color: var(--bad); padding: 0 4px; border-radius: 3px; font-weight: 600; }
.cl-site .act-msg-text a { color: var(--ink); border-bottom: 1px solid var(--ink); cursor: pointer; }
.cl-site .act-tickets { display: flex; flex-direction: column; }
.cl-site .act-ticket { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line-soft); font-size: 12.5px; }
.cl-site .act-ticket:last-child { border-bottom: 0; }
.cl-site .act-tk-id { color: var(--muted); font-size: 11px; font-family: 'JetBrains Mono', monospace; }
.cl-site .act-tk-title { color: var(--ink); }
.cl-site .act-tk-tag { font-size: 10.5px; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--graphite); font-weight: 500; }
.cl-site .act-tk-tag--feat { background: rgba(95,103,187,0.12); color: var(--brand-2); }

/* MCP demo card */
.cl-site .mcp-demo { display: flex; flex-direction: column; gap: 8px; font-size: 12px; }
.cl-site .mcp-demo-head { display: flex; align-items: center; gap: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line-soft); }
.cl-site .mcp-demo-head img { width: 16px; height: 16px; object-fit: contain; }
.cl-site .mcp-demo-app { font-size: 12px; font-weight: 500; color: var(--ink); }
.cl-site .mcp-demo-badge { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 10px; padding: 2px 7px; background: var(--surface-2); border-radius: 999px; color: var(--graphite); font-family: 'JetBrains Mono', monospace; }
.cl-site .mcp-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.cl-site .mcp-demo-msg { font-size: 12.5px; line-height: 1.5; color: var(--ink); padding: 4px 0; }
.cl-site .mcp-demo-msg--ai { color: var(--graphite); }
.cl-site .mcp-link { color: var(--ink); border-bottom: 1px solid var(--ink); cursor: pointer; margin-left: 4px; }

/* capability cards */
.cl-site .cap-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.cl-site .cap { background: var(--surface); border: 1px solid var(--line-soft); border-radius: 10px; padding: 22px 22px 24px; transition: border-color var(--dur) var(--ease); }
.cl-site .cap:hover { border-color: var(--line); }
.cl-site .cap .kicker { font-size: 10px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; font-family: 'JetBrains Mono', monospace; }
.cl-site .cap h3 { font-size: 17px; margin-bottom: 6px; }
.cl-site .cap p { color: var(--muted); font-size: 13px; margin: 0; line-height: 1.5; }
.cl-site .cap .demo { margin-top: 16px; }
.cl-site .chip-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; padding: 3px 9px; border-radius: 100px; background: var(--surface-3); color: var(--graphite); border: 1px solid var(--line-soft); }
.cl-site .chip-pill.ink { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.cl-site .outcomes { display: flex; flex-direction: column; gap: 4px; }
.cl-site .outcome-row { display: grid; grid-template-columns: 90px 1fr 36px; gap: 10px; align-items: center; font-size: 11px; }
.cl-site .outcome-row .ol { color: var(--muted); }
.cl-site .outcome-row .ot { height: 4px; border-radius: 2px; background: var(--line-soft); overflow: hidden; }
.cl-site .outcome-row .ot span { display: block; height: 100%; background: var(--ink); }
.cl-site .outcome-row .ov { font-family: 'JetBrains Mono', monospace; color: var(--ink); text-align: right; font-size: 11px; }

/* roles */
.cl-site .roles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.cl-site .role { background: var(--surface); border: 1px solid var(--line-soft); border-radius: 10px; padding: 24px; cursor: pointer; transition: border-color var(--dur) var(--ease); display: flex; flex-direction: column; }
.cl-site .role:hover { border-color: var(--line); }
.cl-site .role .kicker { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.cl-site .role h3 { font-size: 19px; margin: 8px 0 10px; }
.cl-site .role p { color: var(--muted); font-size: 13px; margin: 0 0 16px; line-height: 1.55; flex: 1; }
.cl-site .role-link { font-size: 13px; font-weight: 500; color: var(--ink); border-bottom: 1px solid var(--ink); padding-bottom: 1px; align-self: flex-start; }

/* CTA */
.cl-site .cta { background: var(--ink); color: var(--surface); border-radius: 14px; padding: 40px 44px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.cl-site .cta h3 { font-size: 28px; color: var(--surface); margin: 0; }
.cl-site .cta .sub { color: rgba(255,255,255,0.6); font-size: 14px; margin-top: 6px; }
.cl-site .cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ============ BLOG INDEX ============ */

/* Filter bar */
.cl-site .blog-filter-bar { border-bottom: 1px solid var(--line-soft); background: var(--surface); position: sticky; top: 60px; z-index: 5; }
.cl-site .blog-filter-row { display: flex; gap: 18px; align-items: center; padding: 14px 0; flex-wrap: wrap; }
.cl-site .blog-cats { display: flex; gap: 4px; flex-wrap: wrap; padding: 3px; background: var(--surface-2); border: 1px solid var(--line-soft); border-radius: 8px; }
.cl-site .blog-cat { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; font-size: 12px; font-weight: 500; color: var(--muted); border-radius: 5px; cursor: pointer; background: transparent; border: 0; font-family: inherit; transition: background var(--dur) var(--ease), color var(--dur) var(--ease); }
.cl-site .blog-cat:hover { color: var(--ink); }
.cl-site .blog-cat.is-active, .cl-site .blog-cat.active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(14,16,19,0.06); }
.cl-site .blog-cat-count { font-size: 10px; color: var(--muted-2); font-family: 'JetBrains Mono', monospace; padding: 1px 6px; background: var(--surface-3); border-radius: 999px; min-width: 20px; text-align: center; }
.cl-site .blog-cat.is-active .blog-cat-count, .cl-site .blog-cat.active .blog-cat-count { background: var(--ink); color: var(--surface); }
.cl-site .blog-search { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 220px; max-width: 320px; padding: 0 12px; height: 34px; background: var(--surface-2); border: 1px solid var(--line-soft); border-radius: 8px; color: var(--muted); }
.cl-site .blog-search:focus-within { background: var(--surface); border-color: var(--line); color: var(--ink); }
.cl-site .blog-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font-size: 13px; font-family: inherit; color: var(--ink); }
.cl-site .blog-search-clear { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 18px; line-height: 1; padding: 0 4px; }
.cl-site .blog-search-clear:hover { color: var(--ink); }

.cl-site .section--tight { padding: 36px 0; }
.cl-site .blog-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }

/* Post badges */
.cl-site .post-badge { display: inline-flex; align-items: center; font-size: 10px; padding: 3px 8px; border-radius: 4px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.cl-site .post-badge--lg { font-size: 11px; padding: 4px 10px; margin-bottom: 18px; }
.cl-site .badge-integration { background: rgba(95, 103, 187, 0.10); color: var(--brand-2); }
.cl-site .badge-case { background: rgba(74, 155, 110, 0.14); color: var(--ok); }
.cl-site .badge-eng { background: var(--ink); color: var(--surface); }
.cl-site .badge-strategy { background: rgba(196, 138, 31, 0.14); color: var(--warn); }

/* Post cards */
.cl-site .post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cl-site .post-card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: 10px; cursor: pointer; transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.cl-site .post-card:hover { border-color: var(--line); transform: translateY(-2px); }
.cl-site .post-card-art { aspect-ratio: 16 / 9; position: relative; overflow: hidden; background: var(--surface-2); display: grid; place-items: center; }
.cl-site .post-card-art[data-cat="integration"], .cl-site .post-card[data-categories~="integrations"] .post-card-art {
  background:
    radial-gradient(circle at 25% 30%, rgba(95, 103, 187, 0.22), transparent 55%),
    radial-gradient(circle at 75% 75%, rgba(196, 138, 31, 0.12), transparent 55%),
    var(--surface-2);
}
.cl-site .post-card-art[data-cat="case-study"], .cl-site .post-card[data-categories~="case-studies"] .post-card-art {
  background:
    radial-gradient(circle at 30% 30%, rgba(74, 155, 110, 0.22), transparent 55%),
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(14,16,19,0.025) 14px 15px),
    var(--surface-2);
}
.cl-site .post-card-art[data-cat="engineering"], .cl-site .post-card[data-categories~="ai-dev"] .post-card-art {
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 100%);
}
.cl-site .post-card-art[data-cat="engineering"] .post-card-mark, .cl-site .post-card[data-categories~="ai-dev"] .post-card-mark { color: var(--surface); border-color: rgba(255,255,255,0.18); background: rgba(255,255,255,0.06); }
.cl-site .post-card-art[data-cat="strategy"], .cl-site .post-card[data-categories~="strategy"] .post-card-art {
  background:
    radial-gradient(circle at 70% 30%, rgba(196, 138, 31, 0.22), transparent 55%),
    repeating-linear-gradient(45deg, transparent 0 16px, rgba(14,16,19,0.025) 16px 17px),
    var(--surface-2);
}
.cl-site .post-card-mark { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; padding: 8px 14px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: 4px; color: var(--graphite); font-family: 'JetBrains Mono', monospace; }
.cl-site .post-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.cl-site .post-card-meta { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--muted); flex-wrap: wrap; }
.cl-site .post-card-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--muted-2); }
.cl-site .post-card h3 { font-size: 16px; line-height: 1.3; letter-spacing: -0.015em; }
.cl-site .post-card p { font-size: 13px; line-height: 1.5; color: var(--muted); margin: 0; flex: 1; }
.cl-site .post-card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 4px; gap: 8px; }
.cl-site .post-card-foot--sm { font-size: 11px; color: var(--muted); gap: 8px; }
.cl-site .post-card-author { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--graphite); }
.cl-site .post-card-av { width: 24px; height: 24px; border-radius: 50%; background: var(--surface-3); color: var(--graphite); display: grid; place-items: center; font-size: 10px; font-weight: 600; flex-shrink: 0; }
.cl-site .post-card-arrow { font-size: 12px; color: var(--ink); font-weight: 500; white-space: nowrap; }
.cl-site .post-card:hover .post-card-arrow { text-decoration: underline; }

/* Featured / large card */
.cl-site .post-card--lg { grid-template-columns: 1.1fr 1fr; display: grid; grid-column: 1 / -1; }
.cl-site .post-card--lg .post-card-art { aspect-ratio: auto; min-height: 320px; }
.cl-site .post-card--lg .post-card-art--lg { aspect-ratio: auto; min-height: 320px; }
.cl-site .post-card--lg .post-card-body { padding: 36px 40px; gap: 14px; justify-content: center; }
.cl-site .post-card--lg h2, .cl-site .post-card--lg h3 { font-size: 32px; line-height: 1.18; letter-spacing: -0.02em; }
.cl-site .post-card--lg p { font-size: 15px; line-height: 1.55; }
.cl-site .post-card--lg .post-card-mark { font-size: 14px; padding: 12px 18px; }

/* Empty state */
.cl-site .blog-empty { text-align: center; padding: 60px 20px; border: 1px dashed var(--line-soft); border-radius: 12px; }
.cl-site .blog-empty h3 { font-size: 18px; margin-bottom: 6px; }
.cl-site .blog-empty p { color: var(--muted); font-size: 13px; margin-bottom: 18px; }

/* Newsletter */
.cl-site .blog-newsletter { display: grid; grid-template-columns: 1.2fr 1fr; gap: 36px; padding: 36px 40px; background: var(--surface-2); border: 1px solid var(--line-soft); border-radius: 12px; align-items: center; grid-column: 1 / -1; }
.cl-site .blog-newsletter h3 { font-size: 24px; margin: 10px 0 8px; letter-spacing: -0.02em; }
.cl-site .blog-newsletter p { color: var(--muted); font-size: 14px; margin: 0; line-height: 1.5; }
.cl-site .blog-newsletter-form { display: flex; flex-direction: column; gap: 8px; }
.cl-site .blog-newsletter-form > div:first-of-type { display: flex; gap: 8px; }
.cl-site .blog-newsletter-form input { flex: 1; height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 6px; font-size: 13px; font-family: inherit; background: var(--surface); color: var(--ink); outline: none; }
.cl-site .blog-newsletter-form input:focus { border-color: var(--ink); }

/* ============ ARTICLE READER ============ */
.cl-site .article-progress { position: fixed; top: 0; left: 0; height: 2px; background: var(--ink); z-index: 100; transition: width 80ms linear; }

.cl-site .article-v2 { background: var(--surface); }
.cl-site .article-head { padding: 56px 0 40px; border-bottom: 1px solid var(--line-soft); }
.cl-site .article-crumbs { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--muted); margin-bottom: 22px; }
.cl-site .article-crumbs a { color: var(--muted); }
.cl-site .article-crumbs a:hover { color: var(--ink); }
.cl-site .article-crumbs span { color: var(--muted-2); }
.cl-site .article-head h1 { font-size: 46px; line-height: 1.1; letter-spacing: -0.025em; max-width: 880px; margin: 6px 0 18px; }
.cl-site .article-lede-head { font-size: 19px; line-height: 1.55; color: var(--muted); max-width: 720px; margin-bottom: 28px; }
.cl-site .article-byline { display: flex; align-items: center; gap: 12px; }
.cl-site .article-byline-name { font-size: 13px; font-weight: 500; color: var(--ink); }
.cl-site .article-byline-meta { font-size: 11px; color: var(--muted); }
.cl-site .article-byline-share { margin-left: auto; display: flex; gap: 6px; }
.cl-site .article-byline-share button, .cl-site .article-byline-share a { width: 32px; height: 32px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line-soft); border-radius: 6px; color: var(--graphite); cursor: pointer; transition: all var(--dur) var(--ease); }
.cl-site .article-byline-share button:hover, .cl-site .article-byline-share a:hover { color: var(--ink); border-color: var(--line); background: var(--surface-2); }

.cl-site .article-frame { display: grid; grid-template-columns: 220px 1fr; gap: 56px; max-width: 1140px; margin: 0 auto; padding: 48px 28px 64px; align-items: start; }

.cl-site .article-toc { position: sticky; top: 130px; font-size: 12px; }
.cl-site .article-toc-h { font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.cl-site .article-toc ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; border-left: 1px solid var(--line-soft); }
.cl-site .article-toc li { padding: 0; margin: 0; }
.cl-site .article-toc li a { display: block; padding: 6px 12px; color: var(--muted); font-size: 12px; line-height: 1.4; border-left: 2px solid transparent; margin-left: -1px; transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease); text-decoration: none; }
.cl-site .article-toc li a:hover { color: var(--ink); }
.cl-site .article-toc li.is-active a, .cl-site .article-toc li.active a { color: var(--ink); border-left-color: var(--ink); font-weight: 500; }
.cl-site .article-toc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.cl-site .article-tag { font-size: 11px; padding: 3px 8px; background: var(--surface-2); border: 1px solid var(--line-soft); border-radius: 4px; color: var(--graphite); }

.cl-site .article-body { max-width: 720px; }
.cl-site .article-body p { font-size: 16px; line-height: 1.75; color: var(--ink-2); margin: 0 0 18px; }
.cl-site .article-body h2 { font-size: 26px; margin: 44px 0 14px; letter-spacing: -0.02em; scroll-margin-top: 130px; }
.cl-site .article-body h3 { font-size: 18px; margin: 28px 0 10px; letter-spacing: -0.015em; }
.cl-site .article-body ul { padding-left: 22px; line-height: 1.7; color: var(--ink-2); margin: 0 0 18px; }
.cl-site .article-body ul li { margin-bottom: 6px; }
.cl-site .article-body a { color: var(--ink); border-bottom: 1px solid var(--line); }
.cl-site .article-body a:hover { border-bottom-color: var(--ink); }
.cl-site .article-body code { font-family: 'JetBrains Mono', monospace; font-size: 0.92em; background: var(--surface-2); padding: 1px 5px; border-radius: 3px; color: var(--ink); }
.cl-site .article-body pre { background: var(--ink); color: #d9dbe0; padding: 16px 18px; border-radius: 8px; overflow: auto; font-family: 'JetBrains Mono', monospace; font-size: 13px; line-height: 1.6; margin: 0 0 18px; }
.cl-site .article-body pre code { background: transparent; padding: 0; color: inherit; }
.cl-site .article-lede { font-size: 19px; line-height: 1.6; color: var(--ink); margin: 0 0 26px; padding: 0 0 22px; border-bottom: 1px solid var(--line-soft); font-weight: 500; }

.cl-site .article-pullquote { margin: 32px 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--ink); font-size: 22px; line-height: 1.4; letter-spacing: -0.015em; color: var(--ink); font-style: normal; font-weight: 500; }
.cl-site .article-quote { margin: 28px 0; padding: 22px 26px; background: var(--surface-2); border: 1px solid var(--line-soft); border-radius: 10px; }
.cl-site .article-quote p { font-size: 17px; line-height: 1.5; color: var(--ink); margin: 0 0 8px; font-style: italic; }
.cl-site .article-quote footer { font-size: 12px; color: var(--muted); }

.cl-site .article-stat { display: flex; align-items: stretch; margin: 28px 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); }
.cl-site .article-stat-half { flex: 1; padding: 22px 26px; }
.cl-site .article-stat-half .n { font-size: 36px; font-weight: 600; letter-spacing: -0.03em; color: var(--ink); line-height: 1; margin-bottom: 6px; font-family: 'JetBrains Mono', monospace; }
.cl-site .article-stat-half .l { font-size: 12px; color: var(--muted); }
.cl-site .article-stat-divider { width: 1px; background: var(--line-soft); }

.cl-site .article-kpi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 28px 0; }
.cl-site .article-kpi { padding: 22px 22px; border: 1px solid var(--line-soft); border-radius: 10px; background: var(--surface); }
.cl-site .article-kpi .n { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); line-height: 1; margin-bottom: 8px; }
.cl-site .article-kpi .l { font-size: 13px; color: var(--ink); font-weight: 500; margin-bottom: 4px; }
.cl-site .article-kpi .d { font-size: 11px; color: var(--muted); }

.cl-site .article-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 28px 0; }
.cl-site .article-compare-col { padding: 18px 20px; border-radius: 10px; border: 1px solid var(--line-soft); }
.cl-site .article-compare-col.before { background: rgba(194, 68, 42, 0.04); border-color: rgba(194, 68, 42, 0.18); }
.cl-site .article-compare-col.after { background: rgba(74, 155, 110, 0.04); border-color: rgba(74, 155, 110, 0.18); }
.cl-site .article-compare-h { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 12px; }
.cl-site .article-compare-col.before .article-compare-h { color: var(--bad); }
.cl-site .article-compare-col.after .article-compare-h { color: var(--ok); }
.cl-site .article-compare-item { display: flex; gap: 10px; align-items: flex-start; padding: 5px 0; font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.cl-site .article-compare-item .x { color: var(--bad); font-weight: 600; flex: none; width: 14px; }
.cl-site .article-compare-item .ok { color: var(--ok); font-weight: 700; flex: none; width: 14px; }

.cl-site .article-cta { margin: 44px 0 32px; padding: 32px 36px; background: var(--ink); color: var(--surface); border-radius: 12px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; }
.cl-site .article-cta .eyebrow { color: rgba(255,255,255,0.7); }
.cl-site .article-cta .eyebrow .bar { background: rgba(255,255,255,0.5); }
.cl-site .article-cta h3 { font-size: 22px; margin: 12px 0 8px; letter-spacing: -0.02em; color: var(--surface); }
.cl-site .article-cta p { font-size: 14px; color: rgba(255,255,255,0.75); margin: 0; line-height: 1.5; }
.cl-site .article-cta-buttons { display: flex; flex-direction: column; gap: 8px; }
.cl-site .article-cta .btn-primary { background: var(--surface); color: var(--ink); }
.cl-site .article-cta .btn-primary:hover { background: rgba(255,255,255,0.92); }
.cl-site .article-cta .btn-outline { background: transparent; color: var(--surface); border-color: rgba(255,255,255,0.3); }
.cl-site .article-cta .btn-outline:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.6); }

.cl-site .article-author { margin-top: 36px; padding: 24px; border: 1px solid var(--line-soft); border-radius: 10px; background: var(--surface-2); display: flex; gap: 16px; align-items: flex-start; }
.cl-site .article-author-av { width: 44px; height: 44px; font-size: 13px; flex: none; border-radius: 50%; background: var(--surface-3); color: var(--graphite); display: grid; place-items: center; font-weight: 600; }
.cl-site .article-author-name { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.cl-site .article-author-bio { font-size: 13px; color: var(--muted); line-height: 1.5; margin-bottom: 8px; }
.cl-site .article-author-link { font-size: 12px; color: var(--ink); font-weight: 500; }

/* responsive */
@media (max-width: 980px) {
  .cl-site .nav-links, .cl-site .nav-cta { display: none; }
  .cl-site .nav-burger { display: flex; }
  .cl-site .foot-grid { grid-template-columns: 1fr 1fr; }
  .cl-site .mega-grid.cols-3, .cl-site .mega-grid.cols-4 { grid-template-columns: 1fr; }
  .cl-site .hero-grid, .cl-site .section-head, .cl-site .cta { grid-template-columns: 1fr; }
  .cl-site .post-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .cl-site .post-card--lg { grid-template-columns: 1fr; }
  .cl-site .post-card--lg .post-card-art { aspect-ratio: 16 / 9; min-height: 0; }
  .cl-site .post-card--lg .post-card-body { padding: 24px; }
  .cl-site .post-card--lg h2, .cl-site .post-card--lg h3 { font-size: 24px; }
  .cl-site .article-frame { grid-template-columns: 1fr; gap: 24px; padding: 32px 28px 48px; }
  .cl-site .article-toc { position: static; }
  .cl-site .article-head h1 { font-size: 32px; }
  .cl-site .article-cta { grid-template-columns: 1fr; padding: 24px; }
  .cl-site .article-kpi-grid, .cl-site .article-compare, .cl-site .blog-newsletter { grid-template-columns: 1fr; }
  .cl-site .blog-newsletter { padding: 24px; }
  .cl-site .blog-filter-row { flex-direction: column; align-items: stretch; }
  .cl-site .blog-search { max-width: none; }
  .cl-site .pipe-row { grid-template-columns: 1fr; gap: 28px; padding: 36px 0; }
  .cl-site .pipe-row--reverse .pipe-copy { order: 1; }
  .cl-site .pipe-row--reverse .pipe-visual { order: 2; }
  .cl-site .vs-frame { grid-template-columns: 1fr; gap: 24px; }
  .cl-site .vs-divider { flex-direction: row; padding: 0; }
  .cl-site .vs-divider-line { width: auto; height: 1px; flex: 1; background: linear-gradient(to right, transparent, var(--line) 20%, var(--line) 80%, transparent); }
  .cl-site .vs-rail { min-height: 0; }
  .cl-site .vs-stage--chaos { min-height: 460px; }
  .cl-site .chaos-window { width: 44%; }
  .cl-site .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .cl-site .roles-grid { grid-template-columns: 1fr; }
  .cl-site h1 { font-size: 38px; } .cl-site h2 { font-size: 28px; }
}

@media (max-width: 600px) {
  .cl-site .nav-inner { padding: 0 18px; }
  .cl-site .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .cl-site .foot .baseline { flex-direction: column; align-items: flex-start; }
  .cl-site .wrap { padding: 0 18px; }
  .cl-site h1 { font-size: 32px; }
  .cl-site h2 { font-size: 24px; }
  .cl-site .hero { padding: 36px 0 28px; }
  .cl-site .insights-mock { font-size: 11px; }
  .cl-site .im-metrics { grid-template-columns: repeat(2, 1fr); }
  .cl-site .im-metric { border-bottom: 1px solid var(--line-soft); }
  .cl-site .cap-grid { grid-template-columns: 1fr; }
  .cl-site .cta { padding: 28px; }
  .cl-site .cta h3 { font-size: 22px; }
}

/* ——— Split (2-col content layout) ——— */
.cl-site .split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.cl-site .split--reverse .split-copy { order: 2; }
.cl-site .split--reverse .split-visual { order: 1; }
.cl-site .split-copy h2 { font-size: 32px; line-height: 1.12; margin-bottom: 14px; }
.cl-site .split-copy h3 { font-size: 24px; line-height: 1.18; margin-bottom: 10px; }
.cl-site .split-copy .lede { font-size: 16px; color: var(--graphite); line-height: 1.6; max-width: 46ch; margin-bottom: 22px; }
.cl-site .split-copy .lede + p, .cl-site .split-copy p { font-size: 15px; color: var(--graphite); line-height: 1.6; max-width: 46ch; margin: 0 0 16px; }

/* ——— Feature list (numbered rows) ——— */
.cl-site .feat-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.cl-site .feat-row { display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding: 24px 0; border-top: 1px solid var(--line-soft); align-items: start; }
.cl-site .feat-row:first-child { border-top: 0; padding-top: 8px; }
.cl-site .feat-row .feat-n { font-family: 'JetBrains Mono', monospace; font-size: 14px; color: var(--muted-2); letter-spacing: 0.04em; padding-top: 2px; font-weight: 500; }
.cl-site .feat-row .feat-body h4 { font-size: 17px; font-weight: 600; color: var(--ink); margin: 0 0 6px; letter-spacing: -0.01em; }
.cl-site .feat-row .feat-body p { font-size: 14px; color: var(--graphite); line-height: 1.55; margin: 0; max-width: 60ch; }

/* ——— Quote block ——— */
.cl-site .quote-block { background: var(--brand-tint); border: 1px solid var(--line-soft); border-left: 3px solid var(--brand); border-radius: 8px; padding: 24px 28px; max-width: 720px; }
.cl-site .quote-block blockquote { margin: 0; font-size: 18px; line-height: 1.5; color: var(--ink); font-style: italic; letter-spacing: -0.005em; }
.cl-site .quote-block .quote-attr { display: block; margin-top: 14px; font-size: 12px; color: var(--muted); font-style: normal; font-family: 'JetBrains Mono', monospace; letter-spacing: 0.02em; }

/* ——— KPI card ——— */
.cl-site .kpi-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 22px 24px; box-shadow: 0 1px 0 rgba(14,16,19,0.02); display: flex; flex-direction: column; gap: 6px; }
.cl-site .kpi-card .kpi-label { font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.cl-site .kpi-card .kpi-value { font-size: 36px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1; margin-top: 4px; }
.cl-site .kpi-card .kpi-sub { font-size: 13px; color: var(--graphite); line-height: 1.45; }
.cl-site .kpi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ——— 4-up roles grid override (for solutions index) ——— */
.cl-site .roles-grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 980px) {
  .cl-site .page-hd { padding: 48px 0 36px; }
  .cl-site .page-hd h1 { font-size: 36px; }
  .cl-site .split { grid-template-columns: 1fr; gap: 36px; }
  .cl-site .split--reverse .split-copy { order: 1; }
  .cl-site .split--reverse .split-visual { order: 2; }
  .cl-site .roles-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .cl-site .kpi-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .cl-site .page-hd h1 { font-size: 30px; }
  .cl-site .split-copy h2 { font-size: 24px; }
  .cl-site .feat-row { grid-template-columns: 1fr; gap: 8px; padding: 18px 0; }
  .cl-site .feat-row .feat-n { padding-top: 0; }
  .cl-site .roles-grid--4 { grid-template-columns: 1fr; }
}

/* ——— Page header (subpage hero) ——— */
.cl-site .page-hd { padding: 64px 0 36px; border-bottom: 1px solid var(--line-soft); background: radial-gradient(60% 80% at 20% 0%, rgba(14,16,19,0.03), transparent 60%), var(--page-bg); }
.cl-site .page-hd .wrap { max-width: 920px; }
.cl-site .page-hd .crumbs { font-size: 12px; color: var(--muted); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.cl-site .page-hd .crumbs a { color: var(--muted); text-decoration: none; border-bottom: 1px solid transparent; transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.cl-site .page-hd .crumbs a:hover { color: var(--ink); border-bottom-color: var(--line); }
.cl-site .page-hd .crumbs .sep { color: var(--muted-2); }
.cl-site .page-hd .crumbs .cur { color: var(--ink); font-weight: 500; }
.cl-site .page-hd h1 { font-size: 44px; line-height: 1.08; margin-top: 14px; max-width: 22ch; }
.cl-site .page-hd .lede { margin-top: 16px; font-size: 17px; color: var(--graphite); max-width: 60ch; }

/* ——— Category tabs ——— */
.cl-site .cat-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: 10px; margin-bottom: 28px; }
.cl-site .cat-tab { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 6px; font-size: 13px; color: var(--graphite); background: transparent; border: 0; cursor: pointer; font-family: inherit; transition: background var(--dur) var(--ease), color var(--dur) var(--ease); white-space: nowrap; }
.cl-site .cat-tab:hover { color: var(--ink); background: var(--surface-2); }
.cl-site .cat-tab.is-active { background: var(--ink); color: var(--surface); }
.cl-site .cat-tab .count { font-size: 11px; font-family: 'JetBrains Mono', monospace; opacity: 0.7; }
.cl-site .cat-tab.is-active .count { opacity: 0.85; }

/* ——— Integration cards grid ——— */
.cl-site .int-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.cl-site .int-card { display: flex; flex-direction: column; gap: 12px; padding: 20px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: 10px; text-decoration: none; color: inherit; transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.cl-site .int-card:hover { border-color: var(--line); transform: translateY(-1px); box-shadow: 0 6px 20px -10px rgba(14,16,19,0.12); }
.cl-site .int-card-head { display: flex; align-items: center; gap: 12px; }
.cl-site .int-card-logo { width: 36px; height: 36px; flex: none; border-radius: 8px; background: var(--surface-2); display: grid; place-items: center; padding: 6px; }
.cl-site .int-card-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.cl-site .int-card-name { font-size: 14px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.cl-site .int-card-cat { font-size: 10.5px; color: var(--muted); font-family: 'JetBrains Mono', monospace; letter-spacing: 0.04em; margin-top: 2px; }
.cl-site .int-card-desc { font-size: 13px; color: var(--graphite); line-height: 1.5; flex: 1; margin: 0; }
.cl-site .int-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 4px; }
.cl-site .int-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; padding: 2px 8px; border-radius: 999px; font-family: 'JetBrains Mono', monospace; letter-spacing: 0.04em; }
.cl-site .int-pill--available { background: var(--ok-bg); color: var(--ok); }
.cl-site .int-pill--beta { background: var(--warn-bg); color: var(--warn); }
.cl-site .int-pill--soon { background: var(--surface-2); color: var(--muted); }
.cl-site .int-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.cl-site .int-card-arrow { font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; transition: color var(--dur) var(--ease), transform var(--dur) var(--ease); }
.cl-site .int-card:hover .int-card-arrow { color: var(--ink); transform: translateX(2px); }
.cl-site .int-empty { padding: 60px 20px; text-align: center; color: var(--muted); font-size: 14px; border: 1px dashed var(--line); border-radius: 10px; }

@media (max-width: 980px) {
  .cl-site .int-cards { grid-template-columns: repeat(2, 1fr); }
  .cl-site .page-hd { padding: 44px 0 28px; }
  .cl-site .page-hd h1 { font-size: 34px; }
}
@media (max-width: 600px) {
  .cl-site .int-cards { grid-template-columns: 1fr; }
  .cl-site .page-hd h1 { font-size: 28px; }
  .cl-site .page-hd .lede { font-size: 15px; }
  .cl-site .cat-tabs { padding: 4px; }
  .cl-site .cat-tab { padding: 8px 10px; font-size: 12.5px; }
}

/* ——— Assessment quiz (assessment.php) ——— */
.cl-site .assess-wrap { max-width: 720px; margin: 0 auto; }
.cl-site .assess-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 32px; box-shadow: 0 1px 0 rgba(14,16,19,0.02); }
.cl-site .assess-card + .assess-card { margin-top: 16px; }
.cl-site .assess-prog { height: 4px; background: var(--surface-3); border-radius: 2px; margin-bottom: 18px; overflow: hidden; }
.cl-site .assess-prog-fill { height: 100%; background: var(--ink); border-radius: 2px; transition: width 0.4s var(--ease); }
.cl-site .assess-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; font-size: 12px; color: var(--muted); font-family: 'JetBrains Mono', monospace; letter-spacing: 0.04em; }
.cl-site .assess-dim { display: inline-flex; align-items: center; gap: 8px; font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.cl-site .assess-q { font-size: 22px; line-height: 1.35; color: var(--ink); margin: 0 0 24px; letter-spacing: -0.01em; font-weight: 600; }
.cl-site .assess-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cl-site .assess-opts .assess-opt:nth-child(5) { grid-column: 1 / -1; }
@media (max-width: 600px) { .cl-site .assess-opts { grid-template-columns: 1fr; } }
.cl-site .assess-opt { display: flex; align-items: flex-start; gap: 12px; width: 100%; text-align: left; padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); cursor: pointer; color: var(--ink); line-height: 1.4; transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease); font-family: inherit; }
.cl-site .assess-opt:hover { border-color: var(--ink); background: var(--surface-2); }
.cl-site .assess-opt-letter { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: var(--surface-3); font-size: 11px; font-weight: 600; color: var(--muted); flex: none; margin-top: 1px; font-family: 'JetBrains Mono', monospace; }
.cl-site .assess-opt:hover .assess-opt-letter { background: var(--ink); color: var(--surface); }
.cl-site .assess-opt-body { flex: 1; min-width: 0; }
.cl-site .assess-opt-h { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 3px; letter-spacing: -0.005em; }
.cl-site .assess-opt-d { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.cl-site .assess-channels { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 22px; }
@media (max-width: 600px) { .cl-site .assess-channels { grid-template-columns: 1fr; } }
.cl-site .assess-channel { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 6px; cursor: pointer; transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease); }
.cl-site .assess-channel:has(input:checked) { border-color: var(--ink); background: var(--surface-2); }
.cl-site .assess-channel input { accent-color: var(--ink); width: 16px; height: 16px; flex: none; }
.cl-site .assess-channel label { font-size: 13px; color: var(--graphite); cursor: pointer; line-height: 1.4; }
.cl-site .assess-level { display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; border-radius: 999px; font-size: 13px; font-weight: 600; border: 1px solid; }
.cl-site .assess-dim-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line-soft); font-size: 13px; }
.cl-site .assess-dim-row:last-child { border-bottom: 0; }
.cl-site .assess-dim-dots { display: flex; gap: 4px; }
.cl-site .assess-dim-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--line); }
.cl-site .assess-dim-dot.filled { background: var(--ink); }
.cl-site .assess-dim-dot.lowest { background: var(--bad); }
.cl-site .assess-bottleneck { background: var(--warn-bg); border: 1px solid rgba(196,138,31,0.32); border-radius: 10px; padding: 18px 20px; margin: 16px 0; }
.cl-site .assess-bottleneck-l { font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--warn); margin-bottom: 6px; font-family: 'JetBrains Mono', monospace; }
.cl-site .assess-stat { background: var(--surface-2); border: 1px solid var(--line-soft); border-radius: 10px; padding: 14px 18px; }

/* ——— Contact form (contact.php) ——— */
.cl-site .contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 980px) { .cl-site .contact-grid { grid-template-columns: 1fr; gap: 32px; } }
.cl-site .contact-form { display: flex; flex-direction: column; gap: 16px; }
.cl-site .field { display: flex; flex-direction: column; gap: 6px; }
.cl-site .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 600px) { .cl-site .field-row { grid-template-columns: 1fr; } }
.cl-site .field label { font-size: 12px; font-weight: 500; color: var(--graphite); letter-spacing: -0.005em; }
.cl-site .field input, .cl-site .field select, .cl-site .field textarea { width: 100%; padding: 10px 14px; border: 1px solid var(--line); border-radius: 6px; font-size: 14px; color: var(--ink); background: var(--surface); outline: none; transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); font-family: inherit; line-height: 1.4; }
.cl-site .field input:focus, .cl-site .field select:focus, .cl-site .field textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(14,16,19,0.06); }
.cl-site .field textarea { resize: vertical; min-height: 120px; font-family: inherit; }
.cl-site .field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B6F77' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.cl-site .field-error { background: var(--bad-bg); border: 1px solid rgba(194,68,42,0.32); color: var(--bad); border-radius: 6px; padding: 10px 14px; font-size: 13px; }
.cl-site .reach-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.cl-site .reach-row { display: flex; flex-direction: column; gap: 4px; padding-bottom: 16px; border-bottom: 1px solid var(--line-soft); }
.cl-site .reach-row:last-child { border-bottom: 0; padding-bottom: 0; }
.cl-site .reach-row .reach-l { font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-family: 'JetBrains Mono', monospace; }
.cl-site .reach-row .reach-h { font-size: 14px; font-weight: 600; color: var(--ink); }
.cl-site .reach-row .reach-p { font-size: 13px; color: var(--graphite); line-height: 1.5; }
.cl-site .reach-row a { color: var(--ink); border-bottom: 1px solid var(--ink); padding-bottom: 1px; font-weight: 500; }
.cl-site .reach-row a:hover { color: var(--graphite); border-color: var(--graphite); }

/* ——— Code blocks (mcp-server.php, mcp-docs.php) ——— */
.cl-site .code { background: var(--ink); color: rgba(255,255,255,0.92); border-radius: 10px; padding: 18px 20px; font-family: 'JetBrains Mono', monospace; font-size: 13px; line-height: 1.6; overflow-x: auto; border: 1px solid var(--ink-2); }
.cl-site .code pre { margin: 0; white-space: pre; font-family: inherit; color: inherit; }
.cl-site .code .c-key { color: #93c5fd; }
.cl-site .code .c-str { color: #86efac; }
.cl-site .code .c-num { color: #fdba74; }
.cl-site .code .c-com { color: #6b7280; font-style: italic; }
.cl-site .code .c-acc { color: #fde047; }
.cl-site .code-row { display: flex; align-items: center; gap: 8px; }
.cl-site .code-prompt { color: #6b7280; font-family: 'JetBrains Mono', monospace; user-select: none; }
.cl-site .code-copy { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; background: var(--ink-2); color: rgba(255,255,255,0.7); border: 1px solid rgba(255,255,255,0.12); border-radius: 6px; font-size: 11px; font-family: 'JetBrains Mono', monospace; cursor: pointer; transition: background var(--dur) var(--ease), color var(--dur) var(--ease); }
.cl-site .code-copy:hover { background: rgba(255,255,255,0.08); color: var(--surface); }
.cl-site .code-copy.copied { color: #86efac; }

/* ——— Glossary (glossary.php) ——— */
.cl-site .gloss-search { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 24px; }
.cl-site .gloss-search input { flex: 1; min-width: 220px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 6px; font-size: 14px; color: var(--ink); background: var(--surface); outline: none; font-family: inherit; transition: border-color var(--dur) var(--ease); }
.cl-site .gloss-search input:focus { border-color: var(--ink); }
.cl-site .gloss-list { display: flex; flex-direction: column; }
.cl-site .gloss-row { display: grid; grid-template-columns: minmax(200px, 1fr) 2fr; gap: 32px; padding: 22px 0; border-top: 1px solid var(--line-soft); align-items: start; }
.cl-site .gloss-row:first-child { border-top: 0; padding-top: 8px; }
@media (max-width: 720px) { .cl-site .gloss-row { grid-template-columns: 1fr; gap: 6px; padding: 16px 0; } }
.cl-site .gloss-row h3 { font-size: 17px; font-weight: 600; color: var(--ink); margin: 0 0 6px; letter-spacing: -0.01em; }
.cl-site .gloss-row .gloss-cat { font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-family: 'JetBrains Mono', monospace; }
.cl-site .gloss-row p { font-size: 14px; color: var(--graphite); line-height: 1.6; margin: 0; max-width: 60ch; }
.cl-site .gloss-empty { padding: 60px 20px; text-align: center; color: var(--muted); font-size: 14px; border: 1px dashed var(--line); border-radius: 10px; }

/* ——— MCP install pill (mcp-server.php) ——— */
.cl-site .mcp-install { display: inline-flex; align-items: center; gap: 8px; padding: 6px 6px 6px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 1px 0 rgba(14,16,19,0.02); max-width: 100%; }
.cl-site .mcp-install code { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-site .mcp-install .mcp-install-prompt { color: var(--muted); user-select: none; }
.cl-site .mcp-install .mcp-install-copy { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; background: var(--ink); color: var(--surface); border: 0; border-radius: 999px; font-size: 12px; font-weight: 500; cursor: pointer; font-family: inherit; flex: none; transition: background var(--dur) var(--ease); }
.cl-site .mcp-install .mcp-install-copy:hover { background: var(--graphite); }
.cl-site .mcp-install .mcp-install-copy.copied { background: var(--ok); }
.cl-site .mcp-trust { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; margin-top: 22px; font-size: 12px; color: var(--muted); }
.cl-site .mcp-trust-item { display: inline-flex; align-items: center; gap: 6px; }
.cl-site .mcp-trust-item .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }

/* ——— Docs sidebar (mcp-docs.php) ——— */
.cl-site .docs-grid { display: grid; grid-template-columns: 220px 1fr; gap: 56px; align-items: start; }
@media (max-width: 980px) { .cl-site .docs-grid { grid-template-columns: 1fr; gap: 24px; } }
.cl-site .docs-toc { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 4px; }
@media (max-width: 980px) { .cl-site .docs-toc { position: static; flex-direction: row; flex-wrap: wrap; gap: 6px; padding: 12px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: 10px; } }
.cl-site .docs-toc a { padding: 8px 12px; font-size: 13px; color: var(--graphite); border-radius: 6px; transition: background var(--dur) var(--ease), color var(--dur) var(--ease); border-left: 2px solid transparent; }
.cl-site .docs-toc a:hover { background: var(--surface-2); color: var(--ink); }
.cl-site .docs-toc h5 { font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; padding: 0 12px; }
@media (max-width: 980px) { .cl-site .docs-toc h5 { display: none; } }
.cl-site .docs-body { display: flex; flex-direction: column; gap: 56px; }
.cl-site .docs-section h2 { font-size: 28px; line-height: 1.18; margin: 0 0 12px; letter-spacing: -0.015em; }
.cl-site .docs-section h3 { font-size: 18px; font-weight: 600; margin: 24px 0 10px; letter-spacing: -0.005em; }
.cl-site .docs-section h4 { font-size: 14px; font-weight: 600; margin: 18px 0 8px; color: var(--ink); }
.cl-site .docs-section p { font-size: 15px; color: var(--graphite); line-height: 1.6; margin: 0 0 12px; max-width: 64ch; }
.cl-site .docs-section ul { font-size: 14px; color: var(--graphite); line-height: 1.6; padding-left: 22px; margin: 0 0 14px; }
.cl-site .docs-callout { background: var(--warn-bg); border: 1px solid rgba(196,138,31,0.32); border-radius: 8px; padding: 14px 18px; display: flex; gap: 12px; align-items: flex-start; }
.cl-site .docs-callout .docs-callout-l { font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--warn); margin-bottom: 4px; font-family: 'JetBrains Mono', monospace; }
.cl-site .docs-callout p { font-size: 13px; color: var(--graphite); margin: 0; max-width: none; }

/* ——— Code: header subcomponents + .tk-* token aliases ——— */
/* Used by api.php, developers/api.php, developers/mcp-server.php with the .code--lg modifier. */
.cl-site .code--lg { padding: 22px 24px; border-radius: 12px; border: 0; display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
.cl-site .code--lg pre { margin: 0; white-space: pre; overflow-x: auto; font-family: 'JetBrains Mono', monospace; font-size: 12.5px; line-height: 1.65; }
.cl-site .code--lg code { color: inherit; background: transparent; padding: 0; font-size: inherit; }
.cl-site .code-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.cl-site .code-title { font-size: 13px; font-weight: 600; color: var(--surface); letter-spacing: -0.005em; }
.cl-site .code-tag { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; padding: 2px 8px; border-radius: 4px; background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.7); letter-spacing: 0.04em; }
.cl-site .code .tk-cmt { color: #9ca3af; }
.cl-site .code .tk-key { color: #60a5fa; }
.cl-site .code .tk-str { color: #4ade80; }
.cl-site .code .tk-num { color: #fb923c; }
.cl-site .code .tk-bool { color: #fb923c; }
.cl-site .code .tk-url { color: #fde047; }
.cl-site .code .tk-cmd { color: #22d3ee; }

/* ——— Developer hero (api.php, developers/api.php, developers/mcp-server.php) ——— */
.cl-site .dev-hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: stretch; }

/* ——— Endpoint cards (api.php, developers/api.php) ——— */
.cl-site .endpoint-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.cl-site .endpoint-card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: 10px; padding: 22px; display: flex; flex-direction: column; gap: 12px; transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease); }
.cl-site .endpoint-card:hover { border-color: var(--line); transform: translateY(-1px); }
.cl-site .endpoint-method { display: inline-flex; align-items: center; gap: 6px; font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 4px; letter-spacing: 0.04em; align-self: flex-start; }
.cl-site .endpoint-method.get { background: var(--info-bg); color: var(--info); }
.cl-site .endpoint-method.post { background: var(--ok-bg); color: var(--ok); }
.cl-site .endpoint-card h3 { font-size: 15px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; margin: 0; }
.cl-site .endpoint-card p { font-size: 13px; color: var(--graphite); line-height: 1.5; margin: 0; flex: 1; }
.cl-site .endpoint-path { font-family: 'JetBrains Mono', monospace; font-size: 11.5px; color: var(--ink); background: var(--surface-2); padding: 4px 8px; border-radius: 4px; align-self: flex-start; border: 1px solid var(--line-soft); }
.cl-site .endpoint-card .endpoint-link { font-size: 12.5px; color: var(--ink); border-bottom: 1px solid var(--ink); padding-bottom: 1px; align-self: flex-start; }

/* ——— MCP client snippets (developers/mcp-server.php) ——— */
.cl-site .client-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cl-site .client-card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: 12px; padding: 0; overflow: hidden; }
.cl-site .client-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--line-soft); background: var(--surface-2); }
.cl-site .client-head h3 { font-size: 14px; font-weight: 600; color: var(--ink); margin: 0; letter-spacing: -0.005em; }
.cl-site .client-path { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--muted); }
.cl-site .client-card .code--lg { border-radius: 0; padding: 18px 20px; }
.cl-site .client-card .code-head { padding-bottom: 0; border-bottom: 0; margin-bottom: 4px; }

/* ——— MCP tool cards (developers/mcp-server.php) ——— */
.cl-site .tool-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.cl-site .tool-card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: 10px; padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.cl-site .tool-name { font-family: 'JetBrains Mono', monospace; font-size: 12.5px; color: var(--ink); font-weight: 500; }
.cl-site .tool-desc { font-size: 13px; color: var(--graphite); line-height: 1.5; margin: 0; }

/* ——— Trust strip (api.php, pricing.php, developers/*) ——— */
.cl-site .trust-row { display: flex; flex-wrap: wrap; gap: 18px 28px; font-size: 13px; color: var(--graphite); }
.cl-site .trust-row span { display: inline-flex; align-items: center; gap: 8px; }
.cl-site .trust-row svg { width: 14px; height: 14px; color: var(--ok); flex: none; }
.cl-site .trust-row--center { justify-content: center; margin-top: 26px; }
.cl-site .trust-row--center svg { width: 16px; height: 16px; }

/* ——— Deprecation badge (developers/cli.php) ——— */
.cl-site .dep-meta { display: inline-flex; align-items: center; gap: 8px; font-family: 'JetBrains Mono', monospace; font-size: 11px; padding: 4px 10px; border-radius: 999px; background: var(--warn-bg); color: var(--warn); letter-spacing: 0.04em; text-transform: uppercase; font-weight: 600; margin-bottom: 14px; }
.cl-site .dep-meta .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ——— KPI grid 3-up override (developers/api.php) ——— */
.cl-site .kpi-grid--3 { grid-template-columns: repeat(3, 1fr); }

/* ——— Responsive (developer + api consolidation) ——— */
@media (max-width: 980px) {
  .cl-site .dev-hero { grid-template-columns: 1fr; gap: 36px; }
  .cl-site .endpoint-grid { grid-template-columns: 1fr 1fr; }
  .cl-site .client-grid { grid-template-columns: 1fr; }
  .cl-site .tool-grid { grid-template-columns: 1fr; }
  .cl-site .kpi-grid--3 { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .cl-site .endpoint-grid { grid-template-columns: 1fr; }
}


/* ============================================================
   Design-audit overrides (appended). Apply globally to all pages.
   ============================================================ */

/* Brand mark in nav, slightly larger */
.cl-site .brand-mark { width: 32px !important; height: 32px !important; }
.cl-site .nav .brand { font-size: 15px; }

/* Real card hover — lift, soft shadow, brand-tinted border, brand-2 arrow */
.cl-site .cap,
.cl-site .role,
.cl-site .feat-card,
.cl-site .int-card,
.cl-site .calc-card,
.cl-site .res-post,
.cl-site .res-tool,
.cl-site .prob-card,
.cl-site .metric-card,
.cl-site .price-card,
.cl-site .feat-more-card,
.cl-site .feat-value-card,
.cl-site .feat-where-tile,
.cl-site .out-art,
.cl-site .feat-hero-art {
  transition: border-color 180ms cubic-bezier(.2,.8,.2,1),
              transform 180ms cubic-bezier(.2,.8,.2,1),
              box-shadow 180ms cubic-bezier(.2,.8,.2,1);
}
.cl-site .cap:hover,
.cl-site .role:hover,
.cl-site .feat-card:hover,
.cl-site .int-card:hover,
.cl-site .res-post:hover,
.cl-site .res-tool:hover,
.cl-site .prob-card:hover,
.cl-site .feat-more-card:hover {
  border-color: var(--brand-soft);
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -22px rgba(95,103,187,0.32), 0 4px 12px -6px rgba(14,16,19,0.06);
}
.cl-site .feat-card:hover .feat-card-arrow,
.cl-site .feat-more-card:hover .arrow,
.cl-site .res-post:hover .read,
.cl-site .res-tool:hover .arrow,
.cl-site .int-card:hover .int-card-arrow {
  color: var(--brand-2);
}

/* Hero buttons noticeably weightier */
.cl-site .hero .btn-lg,
.cl-site .feat-hero .btn-lg,
.cl-site .page-hd .btn-lg {
  height: 48px;
  padding: 0 22px;
  font-size: 14.5px;
}
.cl-site .hero .btn-primary { box-shadow: 0 6px 18px -8px rgba(14,16,19,0.45); }
.cl-site .hero .btn-primary:hover { box-shadow: 0 10px 24px -10px rgba(14,16,19,0.55); transform: translateY(-1px); }
.cl-site .btn { transition: background 140ms ease, color 140ms ease, border-color 140ms ease, transform 140ms ease, box-shadow 140ms ease; }

/* Integration grid — drop the noisy "Active" pill (it appears on every card) */
.cl-site .int-cards .int-pill--available { display: none; }
.cl-site .int-card-foot { justify-content: flex-end; }
/* Keep visible for beta + coming-soon so they actually inform */
.cl-site .int-pill--beta,
.cl-site .int-pill--soon { display: inline-flex !important; }
.cl-site .int-card:has(.int-pill--beta) .int-card-foot,
.cl-site .int-card:has(.int-pill--soon) .int-card-foot { justify-content: space-between; }

/* Eyebrow bar — slight variation */
.cl-site .hero .eyebrow .bar { width: 24px; }
.cl-site .page-hd .eyebrow .bar { width: 22px; }

/* Sources strip — more breathing room, slight float */
.cl-site .sources { padding: 36px 0; }

/* Footer accent — a brand-indigo signature line */
.cl-site .foot { position: relative; }
.cl-site .foot::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand-2) 40%, var(--brand-2) 60%, transparent);
  opacity: 0.55;
}

/* Customer-story panel — quote opening mark */
.cl-site .story-panel .story-quote::before,
.cl-site .sol-story h3::before {
  content: "\201C";
  display: inline-block;
  color: var(--brand-2);
  font-family: Georgia, serif;
  font-size: 1.6em;
  line-height: 0;
  margin-right: 0.08em;
  vertical-align: -0.18em;
}

/* Top nav — subtle bottom shadow on scroll feel */
.cl-site .nav { box-shadow: 0 1px 0 rgba(14,16,19,0.02); }


/* Audit fix #9 — CTA panel variants per page family */
.cl-site .cta--brand {
  background: var(--brand-2);
  color: var(--surface);
}
.cl-site .cta--brand h3 { color: var(--surface); }
.cl-site .cta--brand .sub { color: rgba(255,255,255,0.78); }
.cl-site .cta--brand .btn-ghost-on-ink { color: rgba(255,255,255,0.85); border-color: rgba(255,255,255,0.32); }
.cl-site .cta--brand .btn-ghost-on-ink:hover { color: var(--surface); border-color: rgba(255,255,255,0.55); }
.cl-site .cta--brand .btn-on-ink { background: var(--surface); color: var(--brand-2); }
.cl-site .cta--brand .btn-on-ink:hover { background: rgba(255,255,255,0.92); }

.cl-site .cta--quiet {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
}
.cl-site .cta--quiet h3 { color: var(--ink); }
.cl-site .cta--quiet .sub { color: var(--graphite); }
.cl-site .cta--quiet .btn-ghost-on-ink { color: var(--graphite); border-color: var(--line); }
.cl-site .cta--quiet .btn-on-ink { background: var(--ink); color: var(--surface); }


/* ============================================================
   Mega menu alignment (Option A) — canonical .mega-row component,
   normalized 880px widths, harmonized rail.
   ============================================================ */

/* Lock all desktop megas to a single max-width. The inline style="" still
   wins on the elements that have it, so this targets the structural max. */
.cl-site .mega-v3 { max-width: 880px !important; }

/* Canonical row component — Features, Solutions (when adopted), Resources cols */
.cl-site .mega-row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 11px 14px;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: background var(--dur) var(--ease);
}
.cl-site .mega-row:hover { background: var(--surface-2); }
.cl-site .mega-row .mr-mark {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--brand-tint); border: 1px solid var(--brand-soft);
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 11px; font-weight: 700; color: var(--brand-2);
  letter-spacing: 0.02em;
}
.cl-site .mega-row .mr-body { min-width: 0; }
.cl-site .mega-row .mr-t { font-size: 14px; font-weight: 600; color: var(--ink); letter-spacing: -0.005em; line-height: 1.3; }
.cl-site .mega-row .mr-d { font-size: 12.5px; color: var(--muted); line-height: 1.45; margin-top: 2px; }
.cl-site .mega-row .mr-arrow { color: var(--muted-2); font-size: 14px; transition: color var(--dur) var(--ease), transform var(--dur) var(--ease); }
.cl-site .mega-row:hover .mr-arrow { color: var(--brand-2); transform: translateX(2px); }

/* Rail — harmonised across all four megas */
.cl-site .mrail {
  background: var(--brand-tint);
  border: 1px solid var(--brand-soft);
  border-radius: 10px;
  padding: 18px 20px;
  display: flex; flex-direction: column; gap: 8px;
  text-decoration: none; color: inherit;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.cl-site .mrail:hover { background: var(--brand-soft); border-color: var(--brand-2); }
.cl-site .mrail-l {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--brand-2); font-weight: 600;
}
.cl-site .mrail-t { font-size: 13.5px; line-height: 1.45; color: var(--ink); font-weight: 500; }
.cl-site .mrail-a { font-family: var(--mono); font-size: 11px; color: var(--brand-2); margin-top: 4px; }

/* Count badge — extend to Resources columns */
.cl-site .medit-col h5 .mcount,
.cl-site .msplit-col h5 .mcount {
  display: inline-block; margin-left: 6px; padding: 1px 6px;
  font-family: var(--mono); font-size: 10px; color: var(--muted);
  background: var(--surface-3); border: 1px solid var(--line-soft);
  border-radius: 100px; font-weight: 500;
}


/* ============================================================
   Mega menu alignment v2 — visually unify Features, Solutions,
   Resources on a single row pattern. Integrations keeps logos.
   ============================================================ */

/* Drop the leading letter-mark from Features (it makes Features look unlike
   Solutions/Resources, which have no marks). */
.cl-site .mlist-mark { display: none !important; }

/* Reshape .mlist-row to drop the mark column and gain a right arrow that
   matches .mega-link's pattern. */
.cl-site .mlist-row {
  grid-template-columns: 1fr auto !important;
  gap: 14px !important;
  padding: 11px 14px !important;
}
.cl-site .mlist-row .mlist-body { min-width: 0; }
.cl-site .mlist-row .mlist-t { font-size: 14px; font-weight: 600; color: var(--ink); letter-spacing: -0.005em; line-height: 1.3; }
.cl-site .mlist-row .mlist-d { font-size: 12.5px; color: var(--muted); margin-top: 2px; line-height: 1.45; }

/* Bring .mega-link (Solutions + Resources columns) to the same row shape */
.cl-site .mega-link {
  display: grid !important;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 11px 14px !important;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: background var(--dur) var(--ease);
}
.cl-site .mega-link:hover { background: var(--surface-2); }
.cl-site .mega-link::after {
  content: "→";
  color: var(--muted-2);
  font-size: 13px;
  font-family: var(--mono);
  transition: color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.cl-site .mega-link:hover::after {
  color: var(--brand-2);
  transform: translateX(2px);
}
.cl-site .mega-link .ml-t { font-size: 14px; font-weight: 600; color: var(--ink); letter-spacing: -0.005em; line-height: 1.3; }
.cl-site .mega-link .ml-d { font-size: 12.5px; color: var(--muted); margin-top: 2px; line-height: 1.45; }

/* Harmonize section heads (h5) across Solutions and Resources */
.cl-site .msplit-col h5,
.cl-site .medit-col h5,
.cl-site .mlogos-main h5 {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Featured-essay panel in Resources — match brand-tint of .mrail for visual rhythm */
.cl-site .medit-hero {
  background: var(--brand-tint);
  border: 1px solid var(--brand-soft);
  border-radius: 10px;
  padding: 18px 20px;
  display: flex; flex-direction: column; gap: 8px;
  text-decoration: none; color: inherit;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.cl-site .medit-hero:hover { background: var(--brand-soft); border-color: var(--brand-2); }
.cl-site .medit-hero-tag {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--brand-2); font-weight: 600;
}
.cl-site .medit-hero-t { font-size: 13.5px; line-height: 1.45; color: var(--ink); font-weight: 500; }
.cl-site .medit-hero-d { font-size: 12px; color: var(--graphite); line-height: 1.5; margin-top: 2px; }
.cl-site .medit-hero-a { font-family: var(--mono); font-size: 11px; color: var(--brand-2); margin-top: 4px; }

/* mlogo-tile (Integrations) — keep but harmonize hover */
.cl-site .mlogo-tile:hover { background: var(--surface-2); }
.cl-site .mlogo-tile span { font-size: 13px; font-weight: 500; }

/* Outer container padding consistency */
.cl-site .mlist-wrap,
.cl-site .msplit,
.cl-site .mlogos,
.cl-site .medit {
  padding: 14px !important;
  gap: 14px !important;
}

/* The Features mega's "Most loved" footer rail vs the per-section rails:
   ensure they all align vertically with same border-radius + padding */
.cl-site .mrail { padding: 18px 20px !important; border-radius: 10px !important; }


/* Resources featured to right — keep the brand-tinted highlight on the right
   side, matching Features/Solutions/Integrations rail placement. */
.cl-site .medit-hero { order: 99 !important; }


/* ============================================================
   Mobile safety-net — handles page-local custom layouts at <768px
   ============================================================ */
@media (max-width: 768px) {
  /* Generic — prevent horizontal scroll */
  .cl-site { overflow-x: hidden; }
  .cl-site .wrap { padding: 0 18px; }

  /* All hero variants stack & shrink */
  .cl-site .hero-grid,
  .cl-site .feat-hero-grid,
  .cl-site .section-head { grid-template-columns: 1fr !important; gap: 24px !important; }
  .cl-site .hero h1 { font-size: 34px !important; }
  .cl-site .hero h1 .l1 { font-size: 38px !important; }
  .cl-site .feat-hero h1, .cl-site .page-hd h1, .cl-site .legal-hero h1 { font-size: 30px !important; line-height: 1.1 !important; }
  .cl-site h2 { font-size: 24px !important; }

  /* Stack any 2/3/4-col grids */
  .cl-site .out-row { grid-template-columns: 1fr !important; gap: 20px !important; padding: 32px 0 !important; }
  .cl-site .lev-grid,
  .cl-site .vs-frame,
  .cl-site .roles-grid,
  .cl-site .cap-grid,
  .cl-site .feat-value-grid,
  .cl-site .feat-where-grid,
  .cl-site .feat-more-grid,
  .cl-site .feat-cards,
  .cl-site .prob-grid,
  .cl-site .metric-grid,
  .cl-site .sol-grid,
  .cl-site .price-grid,
  .cl-site .calc,
  .cl-site .res-posts,
  .cl-site .res-tools,
  .cl-site .res-dev-tiles,
  .cl-site .res-feature,
  .cl-site .int-cards,
  .cl-site .contact-grid,
  .cl-site .plans-grid,
  .cl-site .pipe-row,
  .cl-site .split { grid-template-columns: 1fr !important; gap: 12px !important; }

  /* Story panels: stack vertically */
  .cl-site .story-panel,
  .cl-site .sol-story,
  .cl-site .calc-summary,
  .cl-site .res-dev,
  .cl-site .cta { grid-template-columns: 1fr !important; padding: 24px !important; gap: 18px !important; }
  .cl-site .story-right,
  .cl-site .sol-story .right { padding-left: 0 !important; border-left: 0 !important; padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.12); }
  .cl-site .cta-actions { flex-direction: column; align-items: stretch; }
  .cl-site .cta-actions .btn { width: 100%; justify-content: center; }

  /* Calculator: card sizing */
  .cl-site .calc-summary { padding: 24px !important; }
  .cl-site .calc-summary-price { font-size: 44px !important; }

  /* Pricing tier hierarchy: featured card should still pop */
  .cl-site .price-card--featured { transform: none !important; }

  /* Legal: hide sticky TOC, show mobile dropdown */
  .cl-site .legal-layout { grid-template-columns: 1fr !important; gap: 16px !important; padding: 24px 18px !important; }
  .cl-site .legal-toc { display: none !important; }
  .cl-site .legal-toc-mobile { display: block !important; }

  /* Legal hero spacing */
  .cl-site .legal-hero { padding: 36px 18px 24px !important; }
  .cl-site .page-hd { padding: 40px 0 24px !important; }

  /* Feature page artifact sections — full width */
  .cl-site .feat-art-wrap,
  .cl-site .feat-hero-art,
  .cl-site .out-art { max-width: 100%; }

  /* Section padding tightening */
  .cl-site .section { padding: 48px 0 !important; }
  .cl-site .stance { padding: 60px 0 !important; }
  .cl-site .stance h2 { font-size: 32px !important; }

  /* Tables: horizontal scroll instead of break layout */
  .cl-site .legal-prose .section-body table { display: block; overflow-x: auto; white-space: nowrap; }

  /* Footer columns stack */
  .cl-site .foot-grid { grid-template-columns: 1fr 1fr !important; gap: 24px !important; }

  /* Nav: mega menu hidden, burger visible (existing site.css handles this but ensure) */
  .cl-site .nav-links { display: none !important; }
  .cl-site .nav-burger { display: flex !important; }

  /* Long words/URLs don't overflow */
  .cl-site p, .cl-site h1, .cl-site h2, .cl-site h3, .cl-site h4 { overflow-wrap: anywhere; }

  /* Assessment opts stack tightly */
  .cl-site .assess-card { padding: 20px !important; }
  .cl-site .assess-opt { grid-template-columns: 32px 1fr; gap: 12px; padding: 12px 14px; }
  .cl-site .assess-channels { grid-template-columns: 1fr !important; }

  /* Glossary list stacks */
  .cl-site .gloss-row { grid-template-columns: 1fr !important; gap: 8px !important; padding: 14px 0 !important; }
}

@media (max-width: 480px) {
  .cl-site .hero h1 { font-size: 28px !important; }
  .cl-site .hero h1 .l1 { font-size: 32px !important; }
  .cl-site .feat-hero h1, .cl-site .page-hd h1 { font-size: 26px !important; }
  .cl-site h2 { font-size: 20px !important; }
  .cl-site .wrap { padding: 0 14px; }
  .cl-site .section { padding: 36px 0 !important; }
  .cl-site .foot-grid { grid-template-columns: 1fr !important; }
  .cl-site .cta { padding: 20px !important; }
  .cl-site .calc-summary-price { font-size: 36px !important; }
}
