@charset "UTF-8";
/* ==========================================================================
   SwitchGate AI static site stylesheet
   Brand: accent #0e9fe8 - ink #0c1220 - paper #f7f9fb
   ========================================================================== */

:root {
  --accent: #0e9fe8;
  --accent-dark: #0b7fc0;
  --accent-light: #7fd0f4;
  --ink: #0c1220;
  --ink-2: #0d1526;
  --paper: #f7f9fb;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --content: 1100px;
  --radius: 12px;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: #fff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

main { flex: 1; }

img { max-width: 100%; display: block; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--accent);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.container {
  max-width: var(--content);
  margin: 0 auto;
  padding: 0 1.5rem;
}
@media (max-width: 640px) { .container { padding: 0 1rem; } }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  transition: box-shadow 300ms var(--ease-out);
}
.site-header.is-scrolled { box-shadow: 0 8px 24px -16px rgba(12, 18, 32, 0.25); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.brand .accent { color: var(--accent); }

.brand-logo {
  display: block;
  height: 28px;
  width: auto;
}
.site-footer .brand-logo { height: 25px; }
@media (max-width: 380px) { .brand-logo { height: 24px; } }

.nav-links { display: flex; align-items: center; gap: 0.25rem; }

.nav-link {
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate-600);
  text-decoration: none;
  transition: background 200ms, color 200ms;
}
.nav-link:hover { background: var(--slate-100); color: var(--ink); }
.nav-link[aria-current="page"] { color: var(--accent-dark); }

.btn {
  display: inline-block;
  border-radius: 8px;
  padding: 0.7rem 1.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 200ms, color 200ms, border-color 200ms, transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 1px 2px rgba(12, 18, 32, 0.1); }
.btn-primary:hover { background: var(--accent-dark); box-shadow: 0 10px 24px -10px rgba(14, 159, 232, 0.55); }
.btn-ghost-dark { border-color: rgba(255, 255, 255, 0.25); color: #fff; }
.btn-ghost-dark:hover { background: rgba(255, 255, 255, 0.1); }
.btn-ghost-light { border-color: var(--slate-300); color: var(--ink); }
.btn-ghost-light:hover { background: var(--slate-100); }
.btn-sm { padding: 0.5rem 1rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 0.5rem;
  border-radius: 8px;
  color: var(--slate-700);
  cursor: pointer;
}
.nav-toggle:hover { background: var(--slate-100); }

.mobile-nav {
  display: none;
  overflow: hidden;
  max-height: 0;
  transition: max-height 300ms var(--ease-out);
  border-top: 0 solid var(--slate-200);
}
.mobile-nav.is-open { max-height: 320px; border-top-width: 1px; }
.mobile-nav .inner { padding: 0.75rem 1rem 1rem; display: grid; gap: 0.25rem; }
.mobile-nav a {
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  color: var(--slate-700);
}
.mobile-nav a:hover { background: var(--slate-100); }
.mobile-nav .btn-primary { color: #fff; text-align: center; margin-top: 0.4rem; }

@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .mobile-nav { display: block; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
}
.hero::before {
  /* faint animated glow drifting behind the content */
  content: "";
  position: absolute;
  inset: -40% -20%;
  background:
    radial-gradient(600px 420px at 22% 30%, rgba(14, 159, 232, 0.22), transparent 60%),
    radial-gradient(520px 380px at 80% 65%, rgba(11, 127, 192, 0.18), transparent 60%);
  animation: hero-drift 16s ease-in-out infinite alternate;
  pointer-events: none;
}
.hero::after {
  /* subtle grid, masked to the top */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 75%);
  pointer-events: none;
}
@keyframes hero-drift {
  from { transform: translate3d(-3%, -2%, 0) scale(1); }
  to   { transform: translate3d(3%, 3%, 0) scale(1.06); }
}

.hero .container { position: relative; z-index: 1; padding-top: 5.5rem; padding-bottom: 4rem; }
@media (max-width: 640px) { .hero .container { padding-top: 3.5rem; } }

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1fr 1fr; } }

.hero h1 {
  margin: 0;
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 700;
}
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span {
  display: inline-block;
  transform: translateY(110%);
  animation: rise 700ms var(--ease-out) forwards;
}
.hero h1 .line:nth-child(2) > span { animation-delay: 110ms; }
.hero h1 .line:nth-child(3) > span { animation-delay: 220ms; }
@keyframes rise { to { transform: translateY(0); } }

.hero-sub {
  margin: 1.25rem 0 0;
  max-width: 28rem;
  font-size: 1.125rem;
  color: var(--slate-300);
  opacity: 0;
  animation: fade-up 700ms var(--ease-out) 350ms forwards;
}
.hero-ctas {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  opacity: 0;
  animation: fade-up 700ms var(--ease-out) 480ms forwards;
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Code window */
.code-window {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--ink-2);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  opacity: 0;
  animation: fade-up 700ms var(--ease-out) 300ms forwards;
}
.code-window .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.code-tabs { display: flex; gap: 0.25rem; }
.code-tab {
  border: 0;
  background: none;
  color: var(--slate-400);
  font: 500 0.75rem var(--font-sans);
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 200ms, color 200ms;
}
.code-tab:hover { color: var(--slate-200); }
.code-tab[aria-pressed="true"] { background: rgba(255, 255, 255, 0.1); color: #fff; }
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 0;
  background: none;
  color: var(--slate-300);
  font: 500 0.75rem var(--font-sans);
  padding: 0.4rem 0.65rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 200ms, color 200ms;
}
.copy-btn:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }

.code-window pre {
  margin: 0;
  padding: 1rem 1.1rem;
  min-height: 264px;
  font: 400 13px/1.85 var(--font-mono);
  color: var(--slate-200);
  white-space: pre-wrap;
  word-break: break-word;
}
.code-window .hl {
  display: inline-block;
  width: 100%;
  background: rgba(14, 159, 232, 0.15);
  color: var(--accent-light);
  border-radius: 4px;
}
.code-window .cm { color: rgba(52, 211, 153, 0.9); }
.code-window .caret {
  display: inline-block;
  width: 8px;
  height: 1.1em;
  vertical-align: text-bottom;
  background: var(--accent-light);
  animation: caret-blink 1s step-end infinite;
}
@keyframes caret-blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

/* Routing diagram: the signature animation */
.diagram-wrap {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: center;
}
.diagram-wrap svg { width: 100%; max-width: 620px; height: auto; }

.sg-gateway-ring {
  transform-box: view-box;
  transform-origin: 300px 170px;
  animation: spin 14s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.sg-gateway-pulse {
  transform-box: view-box;
  transform-origin: 300px 170px;
  animation: gw-pulse 3s var(--ease-out) infinite;
}
@keyframes gw-pulse {
  0%   { transform: scale(0.85); opacity: 0.5; }
  70%  { transform: scale(1.5);  opacity: 0; }
  100% { transform: scale(1.5);  opacity: 0; }
}
/* Section shells */
.section { padding: 5rem 0; }
.section.alt { background: var(--paper); }
.section.dark { background: var(--ink); color: #fff; }
.section-tight { padding: 2.5rem 0; }

.eyebrow {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}
.section h2 {
  margin: 0.5rem 0 0;
  font-size: clamp(1.6rem, 3vw, 1.95rem);
  letter-spacing: -0.025em;
  font-weight: 700;
}
.section .lede {
  margin: 0.85rem 0 0;
  max-width: 42rem;
  color: var(--slate-600);
}
.section.dark .lede { color: var(--slate-300); }

/* Scroll reveal (JS adds .is-visible; without JS everything is visible) */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 650ms var(--ease-out), transform 650ms var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Feature cards */
.cards {
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px)  { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(3, 1fr); } }

.card {
  height: 100%;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 1.5rem;
  background: #fff;
  position: relative;
  transition: transform 300ms var(--ease-out), box-shadow 300ms var(--ease-out), border-color 300ms;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(14, 159, 232, 0.45);
  box-shadow: 0 18px 40px -18px rgba(14, 159, 232, 0.35);
}
.card .icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(14, 159, 232, 0.1);
  color: var(--accent);
  transition: transform 300ms var(--ease-out), background 300ms;
}
.card:hover .icon { transform: scale(1.08) rotate(-3deg); background: rgba(14, 159, 232, 0.16); }
.card h3 { margin: 1rem 0 0; font-size: 1rem; }
.card p { margin: 0.5rem 0 0; font-size: 0.875rem; line-height: 1.6; color: var(--slate-600); }

/* Tables */
.table-wrap {
  margin-top: 2rem;
  overflow-x: auto;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  background: #fff;
}
table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 0.875rem; text-align: left; }
thead tr { background: var(--slate-50); border-bottom: 1px solid var(--slate-200); }
th, td { padding: 0.8rem 1rem; }
th { font-weight: 600; color: var(--slate-700); white-space: nowrap; }
tbody tr { border-bottom: 1px solid var(--slate-100); transition: background 200ms; }
tbody tr:last-child { border-bottom: 0; }
tbody tr:hover { background: var(--slate-50); }
td.mono { font-family: var(--font-mono); font-size: 13px; }
td.num, th.num { text-align: right; }
td.muted { color: var(--slate-500); }
td.strong { font-weight: 600; }
th.brand-col { color: var(--accent); }

.sort-btn {
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0;
}
.sort-btn:hover { color: var(--accent); }
.sort-btn .arrow { font-size: 10px; color: var(--slate-400); }

.search-row { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.search-box { position: relative; flex: 1; min-width: 220px; }
.search-box svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--slate-400); pointer-events: none; }
.search-box input, .select {
  width: 100%;
  border: 1px solid var(--slate-300);
  border-radius: 10px;
  background: #fff;
  padding: 0.65rem 0.85rem;
  font: inherit;
  font-size: 0.875rem;
  color: var(--ink);
  transition: border-color 200ms, box-shadow 200ms;
}
.search-box input { padding-left: 2.3rem; }
.search-box input:focus, .select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(14, 159, 232, 0.15);
}
.select { width: auto; cursor: pointer; }

.table-note { margin-top: 1.25rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem; align-items: center; }
.note-muted { font-size: 0.75rem; font-style: italic; color: var(--slate-400); margin: 0; }
.link-cta { font-size: 0.875rem; font-weight: 600; color: var(--accent); text-decoration: none; }
.link-cta:hover { color: var(--accent-dark); }
.link-cta .arr { display: inline-block; transition: transform 250ms var(--ease-out); }
.link-cta:hover .arr { transform: translateX(4px); }

/* Stat band */
.stat-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem; }
.stat-num { margin: 0; font-size: 3.25rem; font-weight: 700; color: var(--accent-light); letter-spacing: -0.02em; }
.stat-cap { margin: 0.25rem 0 0; max-width: 20rem; font-size: 0.875rem; color: var(--slate-400); }

/* Trust strip */
.trust-list {
  margin: 0; padding: 0; list-style: none;
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 0.85rem 2rem;
  font-size: 0.875rem; font-weight: 500; color: var(--slate-600);
}
.trust-list li { display: flex; align-items: center; gap: 0.5rem; }
.trust-list .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* CTA */
.cta-final { text-align: center; padding: 6rem 0; }
.cta-final h2 { font-size: clamp(1.8rem, 3.5vw, 2.35rem); margin: 0; letter-spacing: -0.03em; }
.cta-final p { margin: 1rem auto 0; max-width: 34rem; color: var(--slate-600); }
.cta-final .hero-ctas { justify-content: center; opacity: 1; animation: none; }

/* Page hero (interior pages) */
.page-hero { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.page-hero::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(480px 240px at 85% 10%, rgba(14, 159, 232, 0.25), transparent 65%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; padding-top: 3.5rem; padding-bottom: 3.5rem; }
.page-hero h1 { margin: 0; font-size: clamp(1.9rem, 4vw, 2.6rem); letter-spacing: -0.03em; }
.page-hero p { margin: 0.85rem 0 0; max-width: 38rem; color: var(--slate-300); }

/* Pricing plans */
.plans { margin-top: 2.5rem; display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 700px)  { .plans { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .plans { grid-template-columns: repeat(4, 1fr); } }
.plan {
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 1.5rem;
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: transform 300ms var(--ease-out), box-shadow 300ms var(--ease-out), border-color 300ms;
}
.plan:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -18px rgba(12, 18, 32, 0.2); }
.plan.featured { border-color: var(--accent); box-shadow: 0 12px 34px -16px rgba(14, 159, 232, 0.4); position: relative; }
.plan.featured .flag {
  position: absolute; top: -11px; left: 1.25rem;
  background: var(--accent); color: #fff;
  font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 0.2rem 0.6rem; border-radius: 99px;
}
.plan h3 { margin: 0; font-size: 1rem; }
.plan .price { margin: 0.6rem 0 0; font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; }
.plan .note { margin: 0.15rem 0 0; font-size: 0.75rem; color: var(--slate-500); }
.plan .desc { margin: 0.75rem 0 0; font-size: 0.875rem; color: var(--slate-600); }
.plan ul { margin: 1rem 0 1.5rem; padding: 0; list-style: none; display: grid; gap: 0.55rem; font-size: 0.85rem; color: var(--slate-600); }
.plan ul li { display: flex; gap: 0.5rem; align-items: flex-start; }
.plan ul svg { flex: none; margin-top: 2px; color: var(--accent); }
.plan .btn { margin-top: auto; text-align: center; }

/* Volume tiers */
.tiers { margin-top: 2rem; display: grid; gap: 0.85rem; }
.tier { display: grid; grid-template-columns: 130px 1fr 64px; gap: 1rem; align-items: center; font-size: 0.875rem; }
.tier .spend { color: var(--slate-600); font-weight: 500; }
.tier .bar { height: 10px; border-radius: 99px; background: var(--slate-100); overflow: hidden; }
.tier .bar > span {
  display: block; height: 100%;
  width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent-light), var(--accent));
  transition: width 900ms var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.tier.is-visible .bar > span { width: var(--w); }
.tier .fee { font-weight: 700; text-align: right; color: var(--accent-dark); }
@media (max-width: 520px) { .tier { grid-template-columns: 100px 1fr 56px; } }

/* FAQ */
.faq { margin-top: 2rem; display: grid; gap: 0.75rem; }
.faq details {
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
  transition: border-color 250ms;
}
.faq details[open] { border-color: rgba(14, 159, 232, 0.5); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 1.25rem;
  font-weight: 600;
  font-size: 0.9375rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { flex: none; transition: transform 300ms var(--ease-out); color: var(--slate-400); }
.faq details[open] summary .chev { transform: rotate(180deg); color: var(--accent); }
.faq .answer { padding: 0 1.25rem 1.1rem; font-size: 0.875rem; line-height: 1.65; color: var(--slate-600); }

/* Docs */
.docs-layout { display: grid; gap: 3rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .docs-layout { grid-template-columns: 210px 1fr; } }
.docs-toc { position: sticky; top: 84px; display: none; }
@media (min-width: 900px) { .docs-toc { display: block; } }
.docs-toc h2 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--slate-500); margin: 0 0 0.75rem; }
.docs-toc ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.15rem; }
.docs-toc a {
  display: block; padding: 0.4rem 0.7rem; border-left: 2px solid var(--slate-200);
  font-size: 0.85rem; color: var(--slate-600); text-decoration: none;
  transition: color 200ms, border-color 200ms;
}
.docs-toc a:hover, .docs-toc a.active { color: var(--accent-dark); border-color: var(--accent); }

.docs-body h2 { font-size: 1.3rem; letter-spacing: -0.02em; margin: 0; }
.docs-body section, .docs-body h2 { scroll-margin-top: 90px; }
.docs-body section + section { margin-top: 3.25rem; }
.docs-body p { color: var(--slate-600); font-size: 0.9375rem; line-height: 1.7; }
.docs-body code:not(pre code) {
  font-family: var(--font-mono); font-size: 0.85em;
  background: var(--slate-100); border: 1px solid var(--slate-200);
  padding: 0.1em 0.4em; border-radius: 6px;
}
.code-block {
  margin: 1.25rem 0 0;
  border-radius: var(--radius);
  background: var(--ink-2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.code-block .bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.45rem 0.5rem 0.45rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--slate-400); font-size: 0.75rem; font-weight: 500;
}
.code-block pre { margin: 0; padding: 1rem 1.1rem; overflow-x: auto; font: 400 13px/1.75 var(--font-mono); color: var(--slate-200); }
.code-block .k { color: #93c5fd; }
.code-block .s { color: #86efac; }
.code-block .c { color: var(--slate-500); }
.code-block .a { color: var(--accent-light); }

.callout {
  margin-top: 1.25rem;
  border: 1px solid rgba(14, 159, 232, 0.35);
  background: rgba(14, 159, 232, 0.06);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
  color: var(--slate-700);
}

/* Status page */
.status-banner {
  display: flex; align-items: center; gap: 0.85rem;
  border: 1px solid rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.07);
  border-radius: var(--radius);
  padding: 1.1rem 1.35rem;
  margin-top: 2rem;
  font-weight: 600;
}
.status-dot {
  width: 12px; height: 12px; border-radius: 50%; background: #10b981; position: relative; flex: none;
}
.status-dot::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%;
  border: 2px solid rgba(16, 185, 129, 0.5);
  animation: gw-pulse 2.2s var(--ease-out) infinite;
}
.uptime-row { margin-top: 1.75rem; }
.uptime-row .head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; font-size: 0.875rem; }
.uptime-row .head .name { font-weight: 600; }
.uptime-row .head .pct { color: var(--slate-500); font-variant-numeric: tabular-nums; }
.uptime-bars { margin-top: 0.5rem; display: flex; gap: 3px; }
.uptime-bars span {
  flex: 1; height: 28px; border-radius: 3px; background: #10b981;
  transform: scaleY(0); transform-origin: bottom;
  animation: bar-in 500ms var(--ease-out) forwards;
  animation-delay: calc(var(--i) * 14ms);
}
.uptime-bars span.warn { background: #f59e0b; }
.uptime-bars span.down { background: #ef4444; }
@keyframes bar-in { to { transform: scaleY(1); } }
.status-meta { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--slate-400); margin-top: 0.4rem; }

/* Legal pages */
.legal-body { max-width: 760px; }
.legal-body h2 { font-size: 1.2rem; margin: 2.5rem 0 0; letter-spacing: -0.02em; }
.legal-body p, .legal-body li { color: var(--slate-600); font-size: 0.9375rem; line-height: 1.75; }
.legal-body .updated { font-size: 0.8125rem; color: var(--slate-400); }

/* 404 */
.nf { text-align: center; padding: 7rem 0; }
.nf .big {
  font-size: clamp(5rem, 16vw, 9rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
  margin: 0;
  background: linear-gradient(120deg, var(--ink) 30%, var(--accent) 50%, var(--ink) 70%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 4s linear infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }
.nf h1 { margin: 1rem 0 0; font-size: 1.5rem; }
.nf p { color: var(--slate-600); margin: 0.75rem auto 2rem; max-width: 26rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--slate-200); background: var(--paper); }
.site-footer .container { padding-top: 3rem; padding-bottom: 3rem; }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.site-footer h2 { font-size: 0.875rem; margin: 0 0 0.85rem; }
.site-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.55rem; }
.site-footer a { font-size: 0.875rem; color: var(--slate-600); text-decoration: none; transition: color 200ms; }
.site-footer a:hover { color: var(--accent); }
.footer-tag { margin: 0.75rem 0 0; max-width: 18rem; font-size: 0.875rem; color: var(--slate-500); }
.footer-legal {
  margin-top: 2.5rem; padding-top: 1.5rem;
  border-top: 1px solid var(--slate-200);
  font-size: 0.875rem; color: var(--slate-400);
}

/* --------------------------------------------------------------------------
   Reduced motion: everything settles instantly, nothing is lost
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal, .hero-sub, .hero-ctas, .code-window { opacity: 1; transform: none; }
  .hero h1 .line > span { transform: none; }
  .tier .bar > span { width: var(--w); }
  .uptime-bars span { transform: scaleY(1); }
}

/* ==========================================================================
   Discover / Rankings / Benchmarks / Chat / Blog additions
   ========================================================================== */

/* Provider icon badge: used everywhere a model appears */
.pico {
  --pc: var(--accent);
  --pt: #fff;
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--pc);
  color: var(--pt);
  font: 700 11px/1 var(--font-sans);
  flex: none;
  vertical-align: -5px;
  letter-spacing: -0.02em;
  -webkit-user-select: none;
  user-select: none;
}
.pico.lg { width: 34px; height: 34px; border-radius: 9px; font-size: 15px; vertical-align: middle; }
.pico.sm { width: 18px; height: 18px; border-radius: 5px; font-size: 9px; vertical-align: -4px; }
.model-cell { display: inline-flex; align-items: center; gap: 0.55rem; }
.model-cell .sub { display: block; font-size: 0.75rem; color: var(--slate-500); font-weight: 400; }

/* Discover layout */
.discover-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem; }
.discover-grid { margin-top: 2rem; display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 980px) { .discover-grid { grid-template-columns: 1.6fr 1fr 1fr; } }

.panel {
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  background: #fff;
  padding: 1.5rem;
  transition: border-color 300ms, box-shadow 300ms var(--ease-out);
}
.panel:hover { border-color: rgba(14, 159, 232, 0.4); box-shadow: 0 14px 34px -20px rgba(12, 18, 32, 0.25); }
.panel .eyebrow { font-size: 0.75rem; }
.panel h3 { margin: 0.35rem 0 0; font-size: 1.25rem; letter-spacing: -0.02em; }
.panel .sub { margin: 0.5rem 0 0; font-size: 0.875rem; color: var(--slate-600); }
.panel.frontier { grid-row: span 2; }

.frontier-list { margin: 1.5rem 0 0; padding: 0; list-style: none; display: grid; }
.frontier-list li {
  display: grid;
  grid-template-columns: 1.25rem auto 1fr 2.4rem;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--slate-100);
  font-size: 0.875rem;
}
.frontier-list .rank { color: var(--slate-400); font-variant-numeric: tabular-nums; }
.frontier-list .name { font-weight: 600; }
.frontier-list .name .sub { font-weight: 400; }
.frontier-list .score { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.meter { height: 6px; border-radius: 99px; background: var(--slate-100); overflow: hidden; min-width: 60px; }
.meter > span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent-light), var(--accent)); width: var(--w, 0%); }

.stat-card .k { display: flex; align-items: center; gap: 0.4rem; font-size: 0.8125rem; font-weight: 600; color: var(--slate-600); margin: 0; }
.stat-card .model-cell { margin-top: 0.9rem; font-weight: 600; font-size: 0.9375rem; }
.stat-card .big { margin: 0.9rem 0 0; font-size: 2rem; font-weight: 700; letter-spacing: -0.03em; }
.stat-card .big small { font-size: 0.8125rem; font-weight: 500; color: var(--slate-500); letter-spacing: 0; margin-left: 0.3rem; }

/* Featured model cards */
.featured-grid { margin-top: 2rem; display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .featured-grid { grid-template-columns: repeat(3, 1fr); } }
.model-card { display: block; text-decoration: none; }
.model-card .top { display: flex; align-items: center; gap: 0.75rem; padding-bottom: 1rem; border-bottom: 1px solid var(--slate-100); }
.model-card .top h3 { margin: 0; font-size: 1.05rem; }
.model-card .top .by { margin: 0.1rem 0 0; font-size: 0.8125rem; color: var(--slate-500); }
.model-card .new-flag {
  margin-left: auto; font-size: 0.6875rem; font-weight: 700;
  background: rgba(14, 159, 232, 0.12); color: var(--accent-dark);
  padding: 0.2rem 0.6rem; border-radius: 99px;
}
.model-card .meta { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1rem; font-size: 0.8125rem; }
.model-card .meta .lbl { color: var(--slate-500); margin: 0; }
.model-card .meta .val { margin: 0.15rem 0 0; font-size: 1.05rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.trend-up { color: #059669; }
.trend-down { color: #dc2626; }
.trend-flat { color: var(--slate-500); }

/* Two-up ranking tables (value leaders / fastest) */
.duo-grid { margin-top: 2.5rem; display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 980px) { .duo-grid { grid-template-columns: 1fr 1fr; } }
.panel .mini-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.panel .mini-head h3 { font-size: 1.05rem; }
.rank-table { width: 100%; min-width: 0; margin-top: 0.75rem; font-size: 0.875rem; }
.rank-table th, .rank-table td { padding: 0.65rem 0.5rem; }
.rank-table thead tr { background: none; border-bottom: 1px solid var(--slate-200); }
.rank-table th { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--slate-500); }

/* Rankings page */
.rank-tabs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 2rem; }
.rank-tab {
  border: 1px solid var(--slate-200); background: #fff; cursor: pointer;
  font: 500 0.8125rem var(--font-sans); color: var(--slate-600);
  padding: 0.45rem 0.9rem; border-radius: 99px;
  transition: background 200ms, color 200ms, border-color 200ms;
  text-decoration: none;
}
.rank-tab:hover { border-color: var(--accent); color: var(--accent-dark); }
.rank-tab[aria-current="true"] { background: rgba(14,159,232,0.1); border-color: var(--accent); color: var(--accent-dark); font-weight: 600; }
.chart-wrap { margin-top: 2rem; }
.chart-wrap svg { width: 100%; height: auto; display: block; }
.chart-legend { margin: 1rem 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; font-size: 0.8125rem; color: var(--slate-600); }
.chart-legend li { display: flex; align-items: center; gap: 0.45rem; }
.chart-legend .swatch { width: 10px; height: 10px; border-radius: 3px; flex: none; }

.lb-grid { margin-top: 1.5rem; display: grid; gap: 0 3rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .lb-grid { grid-template-columns: 1fr 1fr; } }
.lb-row {
  display: grid; grid-template-columns: 1.6rem auto 1fr; gap: 0.85rem; align-items: center;
  padding: 0.9rem 0.25rem; border-bottom: 1px solid var(--slate-100);
}
.lb-row .pos { color: var(--slate-400); font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.lb-row .who { min-width: 0; }
.lb-row .who .id { margin: 0; font-weight: 600; font-size: 0.9375rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-row .who .by { margin: 0.05rem 0 0; font-size: 0.8125rem; color: var(--slate-500); }
.lb-row .qty { text-align: right; }
.lb-row .qty .tok { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; font-size: 0.9375rem; }
.lb-row .qty .chg { margin: 0.05rem 0 0; font-size: 0.8125rem; font-weight: 600; }

/* Benchmarks page */
.bench-layout { margin-top: 2.5rem; display: grid; gap: 2.5rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .bench-layout { grid-template-columns: 200px 1fr; } }
.bench-nav { position: sticky; top: 84px; display: none; margin: 0; padding: 0; list-style: none; gap: 0.25rem; }
@media (min-width: 900px) { .bench-nav { display: grid; } }
.bench-nav a {
  display: flex; align-items: center; gap: 0.55rem;
  padding: 0.55rem 0.85rem; border-radius: 10px;
  font-size: 0.875rem; font-weight: 500; color: var(--slate-600); text-decoration: none;
  transition: background 200ms, color 200ms;
}
.bench-nav a:hover { background: var(--slate-100); color: var(--ink); }
.bench-nav a.active { background: rgba(14,159,232,0.1); color: var(--accent-dark); font-weight: 600; }
.bench-cat { scroll-margin-top: 90px; }
.bench-cat + .bench-cat { margin-top: 3rem; }
.bench-cat > h2 { display: flex; align-items: center; gap: 0.6rem; font-size: 1.35rem; margin: 0; }
.bench-cat > h2 .cat-ico { color: var(--accent); display: inline-flex; }
.bench-card { margin-top: 1.25rem; padding: 1.35rem 1.5rem; }
.bench-card .cols { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .bench-card .cols { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.bench-card h3 { margin: 0; font-size: 1.05rem; display: flex; align-items: center; gap: 0.35rem; }
.bench-card h3 .arr { color: var(--slate-400); font-size: 0.9em; }
.bench-card .desc { margin: 0.5rem 0 0; font-size: 0.8125rem; color: var(--slate-600); line-height: 1.55; }
.bench-card .run { margin: 0.85rem 0 0; font-size: 0.75rem; color: var(--slate-400); }
.bench-metric .k { display: flex; align-items: center; gap: 0.35rem; margin: 0; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--slate-500); }
.bench-metric .v { margin: 0.5rem 0 0; font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.bench-metric .winner { display: flex; align-items: center; gap: 0.45rem; margin-top: 0.5rem; font-size: 0.8125rem; font-weight: 600; color: var(--slate-700); }

/* Chat page */
.chat-shell {
  margin-top: 2.5rem;
  border: 1px solid var(--slate-200);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 24px 60px -30px rgba(12, 18, 32, 0.3);
}
.chat-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem;
  padding: 0.75rem 1rem; border-bottom: 1px solid var(--slate-200); background: var(--slate-50);
}
.chat-bar .lbl { font-size: 0.8125rem; font-weight: 600; color: var(--slate-600); }
.chat-log { padding: 1.5rem; min-height: 320px; max-height: 440px; overflow-y: auto; display: grid; gap: 1rem; align-content: start; }
.msg { display: flex; gap: 0.75rem; max-width: 44rem; }
.msg .who { flex: none; margin-top: 2px; }
.msg .bubble {
  padding: 0.7rem 1rem; border-radius: 14px; font-size: 0.9375rem; line-height: 1.6;
}
.msg.user { justify-self: end; flex-direction: row-reverse; }
.msg.user .bubble { background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.msg.bot .bubble { background: var(--slate-100); color: var(--ink); border-bottom-left-radius: 4px; }
.msg .bubble .meta { display: block; margin-top: 0.4rem; font-size: 0.6875rem; color: var(--slate-500); }
.msg.user .bubble .meta { color: rgba(255,255,255,0.75); }
.chat-input { display: flex; gap: 0.6rem; padding: 1rem; border-top: 1px solid var(--slate-200); }
.chat-input input {
  flex: 1; border: 1px solid var(--slate-300); border-radius: 10px;
  padding: 0.7rem 0.9rem; font: inherit; font-size: 0.9375rem;
}
.chat-input input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(14,159,232,0.15); }
.typing { display: inline-flex; gap: 4px; align-items: center; }
.typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--slate-400); animation: t-b 1s ease-in-out infinite; }
.typing span:nth-child(2) { animation-delay: 0.15s; }
.typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes t-b { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-4px); opacity: 1; } }

/* Blog */
.blog-grid { margin-top: 2.5rem; display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }
.post-card { display: flex; flex-direction: column; text-decoration: none; }
.post-card .tag {
  align-self: flex-start; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--accent-dark); background: rgba(14,159,232,0.1); padding: 0.25rem 0.6rem; border-radius: 99px;
}
.post-card h3 { margin: 0.9rem 0 0; font-size: 1.05rem; line-height: 1.4; letter-spacing: -0.01em; }
.post-card p { margin: 0.55rem 0 0; font-size: 0.875rem; line-height: 1.6; color: var(--slate-600); flex: 1; }
.post-card .date { margin-top: 1.1rem; font-size: 0.8125rem; color: var(--slate-400); }
.section-head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem; }

/* Footer, OpenRouter-inspired but SwitchGate-flavored */
.footer-grid.wide { grid-template-columns: 1fr; }
@media (min-width: 860px) { .footer-grid.wide { grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; } }
.footer-social { margin-top: 1.25rem; display: flex; gap: 0.5rem; }
.footer-social a {
  display: grid; place-items: center; width: 34px; height: 34px;
  border: 1px solid var(--slate-200); border-radius: 9px; color: var(--slate-500);
  transition: color 200ms, border-color 200ms, transform 200ms var(--ease-out);
}
.footer-social a:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.hiring-flag {
  font-size: 0.6875rem; font-weight: 700; color: var(--accent-dark);
  background: rgba(14,159,232,0.12); padding: 0.15rem 0.5rem; border-radius: 99px; margin-left: 0.4rem;
}

/* Wider nav needs more room before collapsing */
@media (max-width: 1023px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .mobile-nav { display: block; }
}

/* ==========================================================================
   Models browse page (sidebar filters + list/table views)
   ========================================================================== */
.browse-layout { margin-top: 2.5rem; display: grid; gap: 2.5rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 940px) { .browse-layout { grid-template-columns: 230px 1fr; } }
.filter-rail { display: grid; gap: 1.5rem; }
@media (min-width: 940px) { .filter-rail { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow-y: auto; padding-right: 0.5rem; } }
.filter-group h3 {
  margin: 0 0 0.6rem; font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--slate-500);
  display: flex; align-items: center; gap: 0.45rem;
}
.filter-group h3 svg { color: var(--slate-400); }
.filter-group label {
  display: flex; align-items: center; gap: 0.55rem;
  font-size: 0.875rem; color: var(--slate-600); padding: 0.3rem 0; cursor: pointer;
}
.filter-group label:hover { color: var(--ink); }
.filter-group input { accent-color: var(--accent); }
.chip-row { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip {
  border: 1px solid var(--slate-200); background: #fff; border-radius: 99px;
  font: 500 0.8125rem var(--font-sans); color: var(--slate-600);
  padding: 0.3rem 0.75rem; cursor: pointer;
  transition: border-color 200ms, color 200ms, background 200ms;
}
.chip:hover { border-color: var(--accent); color: var(--accent-dark); }
.chip[aria-pressed="true"] { background: rgba(14,159,232,0.1); border-color: var(--accent); color: var(--accent-dark); font-weight: 600; }

.browse-top { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.browse-top .search-box { flex: 1; min-width: 220px; }
.view-toggle { display: inline-flex; border: 1px solid var(--slate-200); border-radius: 10px; overflow: hidden; margin-left: auto; }
.view-toggle button {
  border: 0; background: #fff; cursor: pointer;
  font: 500 0.8125rem var(--font-sans); color: var(--slate-600);
  padding: 0.55rem 0.9rem; display: inline-flex; align-items: center; gap: 0.4rem;
}
.view-toggle button + button { border-left: 1px solid var(--slate-200); }
.view-toggle button[aria-pressed="true"] { background: rgba(14,159,232,0.1); color: var(--accent-dark); font-weight: 600; }

.modality-tabs { display: flex; flex-wrap: wrap; gap: 0.25rem; margin-top: 1.25rem; border-bottom: 1px solid var(--slate-200); }
.modality-tab {
  border: 0; background: none; cursor: pointer;
  font: 500 0.875rem var(--font-sans); color: var(--slate-600);
  padding: 0.65rem 0.9rem; border-bottom: 2px solid transparent; margin-bottom: -1px;
  display: inline-flex; align-items: center; gap: 0.4rem;
}
.modality-tab .cnt { color: var(--slate-400); font-size: 0.8125rem; }
.modality-tab:hover { color: var(--ink); }
.modality-tab[aria-pressed="true"] { color: var(--accent-dark); border-color: var(--accent); font-weight: 600; }

.model-list { margin-top: 0.5rem; display: grid; }
.model-row {
  padding: 1.35rem 0.25rem; border-bottom: 1px solid var(--slate-100);
  display: grid; gap: 0.5rem 1.5rem; grid-template-columns: 1fr auto; align-items: start;
  transition: background 200ms;
}
.model-row:hover { background: var(--slate-50); }
.model-row .headline { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.model-row .headline h3 { margin: 0; font-size: 1rem; letter-spacing: -0.01em; }
.badge-free {
  font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.03em;
  color: #047857; background: rgba(16,185,129,0.12); padding: 0.15rem 0.5rem; border-radius: 99px;
}
.badge-mod {
  display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 5px;
  background: rgba(14,159,232,0.12); color: var(--accent-dark); font-size: 10px; font-weight: 700;
}
.model-row .tok { text-align: right; font-size: 0.875rem; font-weight: 600; color: var(--slate-600); white-space: nowrap; font-variant-numeric: tabular-nums; }
.model-row .desc { grid-column: 1 / -1; margin: 0; font-size: 0.875rem; line-height: 1.6; color: var(--slate-600); max-width: 62rem; }
.model-row .facts {
  grid-column: 1 / -1; margin: 0.15rem 0 0; padding: 0; list-style: none;
  display: flex; flex-wrap: wrap; gap: 0.4rem 0; font-size: 0.8125rem; color: var(--slate-500);
}
.model-row .facts li { display: flex; align-items: center; }
.model-row .facts li + li::before { content: ""; width: 1px; height: 12px; background: var(--slate-200); margin: 0 0.75rem; }
.model-row .facts a { color: var(--slate-600); text-decoration: underline; text-underline-offset: 2px; }
.browse-empty { padding: 3rem 1rem; text-align: center; color: var(--slate-500); font-size: 0.9375rem; }

/* ==========================================================================
   Workflow builder simulation
   ========================================================================== */
.wf-shell {
  margin-top: 2.5rem; border: 1px solid var(--slate-200); border-radius: 16px;
  background: #fff; overflow: hidden; box-shadow: 0 24px 60px -30px rgba(12,18,32,0.3);
}
.wf-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem;
  padding: 0.85rem 1.25rem; border-bottom: 1px solid var(--slate-200); background: var(--slate-50);
}
.wf-toolbar .grp { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8125rem; color: var(--slate-600); }
.wf-toolbar .grp strong { font-variant-numeric: tabular-nums; color: var(--ink); }
.wf-toolbar input[type="range"] { accent-color: var(--accent); width: 130px; }
.switch { position: relative; display: inline-flex; align-items: center; gap: 0.5rem; cursor: pointer; font-size: 0.8125rem; color: var(--slate-600); }
.switch input { position: absolute; opacity: 0; }
.switch .track {
  width: 34px; height: 20px; border-radius: 99px; background: var(--slate-300);
  transition: background 200ms; flex: none;
}
.switch .track::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px;
  border-radius: 50%; background: #fff; transition: transform 200ms var(--ease-out);
}
.switch input:checked + .track { background: var(--accent); }
.switch input:checked + .track::after { transform: translateX(14px); }
.switch input:focus-visible + .track { outline: 2px solid var(--accent); outline-offset: 2px; }

.wf-canvas {
  padding: 2rem 1.5rem;
  display: flex; flex-wrap: nowrap; align-items: stretch; justify-content: flex-start; gap: 0.25rem;
  overflow-x: auto;
  background:
    linear-gradient(rgba(12,18,32,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(12,18,32,0.03) 1px, transparent 1px);
  background-size: 22px 22px;
}
@media (min-width: 1180px) { .wf-canvas { justify-content: center; } }
.wf-node {
  width: 160px; flex: none; border: 1.5px solid var(--slate-200); border-radius: 12px; background: #fff;
  padding: 0.85rem 0.9rem; position: relative;
  transition: border-color 250ms, box-shadow 250ms, transform 250ms var(--ease-out), opacity 250ms;
  display: flex; flex-direction: column; gap: 0.35rem;
}
.wf-node .nico {
  width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
  background: rgba(14,159,232,0.1); color: var(--accent);
}
.wf-node h3 { margin: 0.15rem 0 0; font-size: 0.8125rem; letter-spacing: -0.01em; }
.wf-node .sub { margin: 0; font-size: 0.6875rem; line-height: 1.45; color: var(--slate-500); }
.wf-node .status {
  position: absolute; top: 0.7rem; right: 0.7rem;
  width: 8px; height: 8px; border-radius: 50%; background: var(--slate-300);
  transition: background 200ms, box-shadow 200ms;
}
.wf-node select { margin-top: 0.25rem; width: 100%; border: 1px solid var(--slate-300); border-radius: 8px; padding: 0.35rem 0.4rem; font: 500 0.75rem var(--font-sans); }
.wf-node.active { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(14,159,232,0.14), 0 12px 28px -14px rgba(14,159,232,0.5); transform: translateY(-2px); }
.wf-node.active .status { background: var(--accent); box-shadow: 0 0 0 4px rgba(14,159,232,0.2); }
.wf-node.done .status { background: #10b981; }
.wf-node.blocked { border-color: #ef4444; box-shadow: 0 0 0 4px rgba(239,68,68,0.12); }
.wf-node.blocked .status { background: #ef4444; box-shadow: 0 0 0 4px rgba(239,68,68,0.18); }
.wf-node.off { opacity: 0.45; border-style: dashed; }
.wf-link { align-self: center; display: flex; align-items: center; color: var(--slate-300); padding: 0 0.1rem; }
.wf-link svg { display: block; }
.wf-link .flow { transition: color 200ms; }
.wf-link.on { color: var(--accent); }
.wf-link.on .dash { stroke-dasharray: 4 5; animation: wf-dash 700ms linear infinite; }
@keyframes wf-dash { to { stroke-dashoffset: -9; } }
@media (max-width: 900px) {
  .wf-canvas { flex-direction: column; align-items: center; overflow-x: visible; }
  .wf-node, .wf-node.mini, .wf-council { width: min(100%, 340px); }
  .wf-council { align-items: stretch; }
  /* Horizontal arrows/fans become simple dashed vertical connectors */
  .wf-link svg, .wf-fan svg { display: none; }
  .wf-link, .wf-fan { padding: 0; }
  .wf-link::after, .wf-fan::after {
    content: ""; display: block; width: 2px; height: 26px; margin: 2px auto;
    border-radius: 2px;
    background: repeating-linear-gradient(180deg, var(--slate-300) 0 4px, transparent 4px 9px);
  }
  .wf-link.on::after, .wf-fan.on::after {
    background: repeating-linear-gradient(180deg, var(--accent) 0 4px, transparent 4px 9px);
  }
}

.wf-log {
  border-top: 1px solid var(--slate-200); background: var(--ink-2);
  padding: 1rem 1.25rem; min-height: 148px; max-height: 220px; overflow-y: auto;
  font: 400 12.5px/1.8 var(--font-mono); color: var(--slate-300);
}
.wf-log .t { color: var(--slate-500); }
.wf-log .ok { color: #34d399; }
.wf-log .warn { color: #fbbf24; }
.wf-log .err { color: #f87171; }
.wf-log .hl { color: var(--accent-light); }
.wf-log p { margin: 0; }

/* ==========================================================================
   Login page
   ========================================================================== */
.auth-hero { background: var(--ink); position: relative; overflow: hidden; flex: 1; display: grid; align-items: start; }
.auth-hero::before {
  content: ""; position: absolute; inset: -30%;
  background:
    radial-gradient(560px 400px at 25% 25%, rgba(14,159,232,0.22), transparent 60%),
    radial-gradient(500px 360px at 78% 70%, rgba(11,127,192,0.18), transparent 60%);
  pointer-events: none;
}
.auth-wrap { position: relative; z-index: 1; display: grid; justify-items: center; padding: 4.5rem 1rem 5.5rem; }
.auth-card {
  width: min(100%, 400px); background: #fff; border-radius: 16px;
  border: 1px solid var(--slate-200); box-shadow: 0 40px 80px -30px rgba(0,0,0,0.5);
  padding: 2rem;
}
.auth-card h1 { margin: 1.1rem 0 0; font-size: 1.35rem; letter-spacing: -0.02em; }
.auth-card .sub { margin: 0.4rem 0 0; font-size: 0.875rem; color: var(--slate-600); }
.auth-card form { margin-top: 1.5rem; display: grid; gap: 0.85rem; }
.auth-card label { font-size: 0.8125rem; font-weight: 600; color: var(--slate-700); display: grid; gap: 0.35rem; }
.auth-card input {
  border: 1px solid var(--slate-300); border-radius: 10px;
  padding: 0.65rem 0.85rem; font: inherit; font-size: 0.9375rem;
}
.auth-card input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(14,159,232,0.15); }
.auth-card .btn { width: 100%; text-align: center; }
.auth-div { display: flex; align-items: center; gap: 0.85rem; margin: 1.25rem 0; color: var(--slate-400); font-size: 0.75rem; }
.auth-div::before, .auth-div::after { content: ""; flex: 1; height: 1px; background: var(--slate-200); }
.sso-btn {
  display: flex; align-items: center; justify-content: center; gap: 0.6rem;
  width: 100%; border: 1px solid var(--slate-300); border-radius: 10px; background: #fff;
  padding: 0.65rem; font: 600 0.875rem var(--font-sans); color: var(--ink); cursor: pointer;
  transition: background 200ms, border-color 200ms;
}
.sso-btn + .sso-btn { margin-top: 0.6rem; }
.sso-btn:hover { background: var(--slate-50); border-color: var(--slate-400); }
.auth-note { margin: 1.4rem 0 0; font-size: 0.8125rem; color: var(--slate-500); text-align: center; }
.auth-note a { color: var(--accent-dark); font-weight: 600; text-decoration: none; }
.auth-msg {
  margin-top: 1rem; border: 1px solid rgba(14,159,232,0.35); background: rgba(14,159,232,0.07);
  border-radius: 10px; padding: 0.75rem 0.9rem; font-size: 0.8125rem; color: var(--slate-700);
}
.auth-foot { position: relative; z-index: 1; text-align: center; padding-bottom: 2.5rem; font-size: 0.8125rem; color: var(--slate-400); }
.auth-foot a { color: var(--slate-300); }

/* ==========================================================================
   404 scene: the packet nobody wants
   ========================================================================== */
.nf { padding: 4.5rem 0 6rem; }
.nf-scene { max-width: 620px; margin: 2rem auto 0; }
.nf-scene svg { width: 100%; height: auto; display: block; overflow: visible; }
/* The routing loop lasts 7.5s; providers shake and stamp a red X the moment
   the packet arrives (negative delays sync CSS to the SMIL journey). */
.nf-prov { transform-box: fill-box; transform-origin: center; }
.nf-prov.p1 { animation: nf-shake 7.5s linear infinite; animation-delay: -5.64s; }
.nf-prov.p2 { animation: nf-shake 7.5s linear infinite; animation-delay: -3.83s; }
.nf-prov.p3 { animation: nf-shake 7.5s linear infinite; animation-delay: -2.04s; }
@keyframes nf-shake {
  0%, 1.5% { transform: translateX(0) rotate(0); }
  2.5% { transform: translateX(-3px) rotate(-1.2deg); }
  3.5% { transform: translateX(3px) rotate(1.2deg); }
  4.5% { transform: translateX(-2px) rotate(-0.8deg); }
  5.5% { transform: translateX(0) rotate(0); }
  100% { transform: translateX(0) rotate(0); }
}
.nf-x { transform-box: fill-box; transform-origin: center; opacity: 0; transform: scale(0.4); }
.nf-x.p1 { animation: nf-pop 7.5s linear infinite; animation-delay: -5.64s; }
.nf-x.p2 { animation: nf-pop 7.5s linear infinite; animation-delay: -3.83s; }
.nf-x.p3 { animation: nf-pop 7.5s linear infinite; animation-delay: -2.04s; }
@keyframes nf-pop {
  0%, 1.8% { opacity: 0; transform: scale(0.4); }
  3.2% { opacity: 1; transform: scale(1.15); }
  4.2% { transform: scale(1); }
  16% { opacity: 1; transform: scale(1); }
  22%, 100% { opacity: 0; transform: scale(0.4); }
}
.nf-huh { transform-box: fill-box; transform-origin: bottom center; opacity: 0; }
.nf-huh { animation: nf-huh 7.5s linear infinite; animation-delay: -1.05s; }
@keyframes nf-huh {
  0%, 1% { opacity: 0; transform: scale(0.5); }
  3% { opacity: 1; transform: scale(1.1); }
  4.5% { transform: scale(1); }
  12% { opacity: 1; }
  16%, 100% { opacity: 0; transform: scale(0.5); }
}
.nf-fallen { transform-box: fill-box; transform-origin: 20% 90%; animation: nf-teeter 4s ease-in-out infinite alternate; }
@keyframes nf-teeter { from { transform: rotate(-1.6deg); } to { transform: rotate(1.4deg); } }
.nf-quip {
  margin: 1.75rem auto 0; max-width: 34rem; min-height: 1.6em;
  font: 400 13px/1.7 var(--font-mono); color: var(--slate-500);
}
.nf-quip .ok { color: #059669; }
.nf-quip .err { color: #dc2626; }
@media (prefers-reduced-motion: reduce) {
  .nf-prov, .nf-x, .nf-huh, .nf-fallen { animation: none !important; }
  .nf-x.p3 { opacity: 1; transform: scale(1); }
}

/* ==========================================================================
   Comparison (/vs/) pages
   ========================================================================== */
.vs-hero-badges { display: flex; align-items: center; justify-content: flex-start; gap: 1rem; margin-top: 1.5rem; }
.vs-hero-badges .pico.xl {
  width: 52px; height: 52px; border-radius: 14px; font-size: 22px;
  box-shadow: 0 12px 28px -12px rgba(0,0,0,0.5);
}
.vs-hero-badges .vs-word { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.1em; color: var(--slate-400); text-transform: uppercase; }
.vs-table td.yes { color: #047857; font-weight: 600; }
.vs-table td.no { color: var(--slate-400); }
.vs-table td.part { color: #b45309; font-weight: 500; }
.vs-prose { max-width: 760px; }
.vs-prose h2 { font-size: 1.3rem; letter-spacing: -0.02em; margin: 2.75rem 0 0; }
.vs-prose h2:first-child { margin-top: 0; }
.vs-prose p { color: var(--slate-600); font-size: 0.9375rem; line-height: 1.75; }
.vs-prose ul { color: var(--slate-600); font-size: 0.9375rem; line-height: 1.75; padding-left: 1.2rem; }
.vs-cards { margin-top: 2rem; }
.vs-note { font-size: 0.8125rem; color: var(--slate-400); font-style: italic; margin-top: 1rem; }

/* ==========================================================================
   Dropdown navigation
   ========================================================================== */
.nav-dd { position: relative; }
/* Invisible bridge over the gap between the button and the panel, so the
   dropdown doesn't close while the pointer crosses it. */
.nav-dd::after { content: ""; position: absolute; left: -12px; right: -12px; top: 100%; height: 14px; }
.dd-btn { display: inline-flex; align-items: center; gap: 0.3rem; border: 0; background: none; cursor: pointer; font: 500 0.875rem var(--font-sans); }
.dd-btn svg { transition: transform 200ms var(--ease-out); }
.dd-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.dd-btn[data-open] { color: var(--accent-dark); }
.dd-panel {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(-6px);
  min-width: 288px; background: #fff; border: 1px solid var(--slate-200); border-radius: 14px;
  box-shadow: 0 24px 50px -18px rgba(12, 18, 32, 0.28);
  padding: 0.5rem; display: grid; gap: 0.1rem;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out), visibility 180ms;
  z-index: 60;
}
.nav-dd.open .dd-panel { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
@media (hover: hover) {
  .nav-dd:hover .dd-panel, .nav-dd:focus-within .dd-panel {
    opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0);
  }
}
.dd-item {
  display: flex; gap: 0.7rem; align-items: flex-start;
  padding: 0.55rem 0.75rem; border-radius: 9px;
  text-decoration: none; transition: background 150ms;
}
.dd-item .ico {
  flex: none; width: 30px; height: 30px; border-radius: 8px; margin-top: 1px;
  display: grid; place-items: center;
  background: rgba(14, 159, 232, 0.1); color: var(--accent);
}
.dd-item .ico svg { width: 15px; height: 15px; }
.dd-item .txt { display: grid; gap: 0.1rem; min-width: 0; }
.dd-item:hover { background: var(--slate-100); }
.dd-item .t { font-size: 0.875rem; font-weight: 600; color: var(--ink); }
.dd-item .d { font-size: 0.75rem; color: var(--slate-500); }
.dd-item[aria-current="page"] .t { color: var(--accent-dark); }
.mnav-h {
  margin: 0.9rem 0 0.15rem; padding: 0 0.75rem;
  font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate-400);
}
.mobile-nav.is-open { max-height: calc(100vh - 64px); overflow-y: auto; }

/* ==========================================================================
   Council workflow (n8n-style branch)
   ========================================================================== */
.wf-branch { display: flex; align-items: center; flex: none; }
.wf-council { display: flex; flex-direction: column; gap: 0.6rem; }
.wf-node.mini { width: 172px; padding: 0.6rem 0.7rem; flex-direction: row; align-items: center; gap: 0.55rem; }
.wf-node.mini .nico { width: 24px; height: 24px; border-radius: 7px; flex: none; }
.wf-node.mini h3 { margin: 0; font-size: 0.75rem; }
.wf-node.mini .sub { font-size: 0.625rem; }
.wf-node.mini .verdict {
  margin-left: auto; flex: none; width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #fff;
  background: var(--slate-300); transition: background 200ms, transform 200ms var(--ease-out);
}
.wf-node.mini.approve .verdict { background: #10b981; transform: scale(1.12); }
.wf-node.mini.reject .verdict { background: #f59e0b; transform: scale(1.12); }
.wf-node.warn { border-color: #f59e0b; box-shadow: 0 0 0 4px rgba(245,158,11,0.13); }
.wf-node.warn .status { background: #f59e0b; box-shadow: 0 0 0 4px rgba(245,158,11,0.18); }
.wf-fan { color: var(--slate-300); flex: none; }
.wf-fan.on { color: var(--accent); }
.wf-fan.on .dash { stroke-dasharray: 4 5; animation: wf-dash 700ms linear infinite; }
.wf-loop {
  position: absolute; top: -10px; right: -8px;
  font-size: 0.625rem; font-weight: 700; color: #b45309;
  background: #fef3c7; border: 1px solid #fcd34d; border-radius: 99px; padding: 0.1rem 0.45rem;
  opacity: 0; transform: scale(0.6); transition: opacity 200ms, transform 200ms var(--ease-out);
}
.wf-node .wf-loop.show { opacity: 1; transform: scale(1); }
@media (max-width: 900px) {
  .wf-branch { flex-direction: column; }
  .wf-fan svg { transform: rotate(90deg); }
  .wf-node.mini { width: min(100%, 320px); }
}

/* ==========================================================================
   Enterprise page
   ========================================================================== */
.ent-diagram { margin-top: 2.5rem; }
.ent-diagram svg { width: 100%; max-width: 860px; height: auto; display: block; margin: 0 auto; }
.spec-list { margin: 1.25rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.7rem; }
.spec-list li { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.9375rem; line-height: 1.65; color: var(--slate-600); }
.spec-list li svg { flex: none; margin-top: 4px; color: var(--accent); }
.spec-list li strong { color: var(--ink); }
.split { display: grid; gap: 2.5rem; align-items: start; grid-template-columns: 1fr; }
@media (min-width: 920px) { .split { grid-template-columns: 1fr 1fr; } }
.step-flow { margin: 1.5rem 0 0; padding: 0; list-style: none; counter-reset: st; display: grid; gap: 1rem; }
.step-flow li { counter-increment: st; display: flex; gap: 0.9rem; align-items: flex-start; }
.step-flow li::before {
  content: counter(st); flex: none; width: 26px; height: 26px; border-radius: 8px;
  display: grid; place-items: center; font-size: 0.8125rem; font-weight: 700;
  background: rgba(14,159,232,0.12); color: var(--accent-dark);
}
.step-flow h3 { margin: 0; font-size: 0.9375rem; }
.step-flow p { margin: 0.25rem 0 0; font-size: 0.875rem; line-height: 1.6; color: var(--slate-600); }

/* ==========================================================================
   Team page
   ========================================================================== */
.team-grid { margin-top: 2.5rem; display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 620px) { .team-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .team-grid { grid-template-columns: repeat(4, 1fr); } }
.person { text-align: left; }
.person .avatar {
  width: 62px; height: 62px; border-radius: 18px; display: grid; place-items: center;
  font-size: 1.25rem; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--av1, #0e9fe8), var(--av2, #0b7fc0));
}
.person h3 { margin: 1rem 0 0; font-size: 1rem; }
.person .role { margin: 0.15rem 0 0; font-size: 0.8125rem; font-weight: 600; color: var(--accent-dark); }
.person p { margin: 0.55rem 0 0; font-size: 0.8125rem; line-height: 1.6; color: var(--slate-600); }

/* ==========================================================================
   Interactive workflow nodes + hero neuron canvas
   ========================================================================== */
.wf-node.clickable { cursor: pointer; }
.wf-node.clickable:hover { border-color: var(--accent); box-shadow: 0 6px 18px -8px rgba(14,159,232,0.45); }
.wf-node.clickable:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wf-node.mini.off { opacity: 0.42; border-style: dashed; }
.wf-node.mini.off .verdict { background: var(--slate-200); color: var(--slate-400); }
.wf-node .seat-hint {
  position: absolute; bottom: -7px; left: 50%; transform: translateX(-50%);
  font-size: 0.5625rem; font-weight: 700; letter-spacing: 0.04em; white-space: nowrap;
  background: #fff; border: 1px solid var(--slate-200); border-radius: 99px;
  padding: 0.05rem 0.45rem; color: var(--slate-400);
}
.wf-node.mini.off .seat-hint { color: #b45309; border-color: #fcd34d; background: #fffbeb; }
.wf-speed { display: inline-flex; border: 1px solid var(--slate-200); border-radius: 99px; overflow: hidden; background: #fff; }
.wf-speed button {
  border: 0; background: none; cursor: pointer; padding: 0.3rem 0.65rem;
  font: 600 0.75rem var(--font-sans); color: var(--slate-500);
}
.wf-speed button + button { border-left: 1px solid var(--slate-200); }
.wf-speed button[aria-pressed="true"] { background: rgba(14,159,232,0.12); color: var(--accent-dark); }

/* Hero neuron background */
.hero { isolation: isolate; }
.hero-canvas {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0; transition: opacity 1.4s ease;
  -webkit-mask-image: radial-gradient(130% 110% at 60% 42%, #000 58%, transparent 96%);
  mask-image: radial-gradient(130% 110% at 60% 42%, #000 58%, transparent 96%);
}
.hero-canvas.is-live { opacity: 1; }
.hero-canvas canvas { width: 100%; height: 100%; display: block; }
.hero::before { z-index: 0; }
.hero::after { z-index: 0; }
.hero .container { z-index: 2; }

/* Made-in-Canada badge in the footer legal bar */
.footer-legal { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.footer-legal p { margin: 0; }
.made-in-ca { display: inline-flex; flex: none; }
.made-in-ca img { display: block; width: 64px; height: auto; }

/* ==========================================================================
   Split login (Cloudflare-style)
   ========================================================================== */
.cf-page { min-height: 100vh; display: grid; grid-template-columns: 1fr; background: #fff; }
@media (min-width: 900px) { .cf-page { grid-template-columns: minmax(420px, 44%) 1fr; } }
.cf-left { display: flex; flex-direction: column; padding: 1.5rem clamp(1.25rem, 5vw, 4rem); }
.cf-left .cf-logo { align-self: flex-start; }
.cf-left .cf-logo img { display: block; height: 26px; width: auto; }
.cf-form-wrap { flex: 1; display: grid; align-content: center; justify-content: center; padding: 2.5rem 0 4rem; }
.cf-form { width: min(360px, 100%); }
.cf-form h1 { margin: 0 0 1.5rem; font-size: 1.45rem; letter-spacing: -0.02em; text-align: center; }
.sso-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.sso-row .sso-btn { margin: 0; padding: 0.55rem 0.5rem; font-size: 0.8125rem; }
.sso-wide { margin-top: 0.6rem; }
.sso-wide .sso-btn { margin: 0; padding: 0.55rem; font-size: 0.8125rem; }
.cf-or { display: flex; align-items: center; gap: 0.85rem; margin: 1.4rem 0; color: var(--slate-400); font-size: 0.6875rem; letter-spacing: 0.12em; }
.cf-or::before, .cf-or::after { content: ""; flex: 1; height: 1px; background: var(--slate-200); }
.cf-form form { display: grid; gap: 1rem; }
.cf-form label { font-size: 0.8125rem; font-weight: 600; color: var(--slate-700); display: grid; gap: 0.35rem; }
.cf-form input[type="email"], .cf-form input[type="password"], .cf-form input[type="text"] {
  border: 1px solid var(--slate-300); border-radius: 8px; padding: 0.6rem 0.8rem;
  font: inherit; font-size: 0.9375rem; width: 100%;
}
.cf-form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(14,159,232,0.15); }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 2.6rem; }
.pw-eye {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  border: 0; background: none; cursor: pointer; color: var(--slate-500);
  padding: 0.4rem; border-radius: 8px; display: grid; place-items: center;
}
.pw-eye:hover { color: var(--ink); background: var(--slate-100); }
.cf-check { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8125rem; font-weight: 400; color: var(--slate-700); }
.cf-check input { accent-color: var(--ink); width: 15px; height: 15px; }
.cf-form .btn-primary { width: 100%; text-align: center; }
.cf-links { margin-top: 1.4rem; text-align: center; font-size: 0.8125rem; color: var(--slate-600); display: grid; gap: 0.4rem; }
.cf-links a { color: var(--accent-dark); font-weight: 600; text-decoration: none; }
.cf-links a.u { font-weight: 400; text-decoration: underline; text-underline-offset: 2px; }
.cf-terms { margin-top: 2.5rem; text-align: center; font-size: 0.75rem; color: var(--slate-500); line-height: 1.7; }
.cf-terms a { color: var(--slate-600); }

.cf-right {
  position: relative; display: none; overflow: hidden; color: #fff;
  background: linear-gradient(160deg, #0b7fc0 0%, #0e9fe8 55%, #0c86ca 100%);
}
@media (min-width: 900px) { .cf-right { display: block; } }
.cf-right::before {
  /* halftone globe, brand-blue take on the Cloudflare dot sphere */
  content: ""; position: absolute; right: -14%; top: 50%; transform: translateY(-50%);
  width: 62vmin; height: 62vmin; border-radius: 50%;
  background-image: radial-gradient(rgba(255,255,255,0.85) 1.3px, transparent 1.4px);
  background-size: 11px 11px;
  -webkit-mask-image: radial-gradient(circle at 38% 42%, transparent 22%, #000 34%, #000 62%, transparent 74%);
  mask-image: radial-gradient(circle at 38% 42%, transparent 22%, #000 34%, #000 62%, transparent 74%);
  opacity: 0.75;
}
.cf-right-top { position: absolute; top: 1.5rem; right: 1.75rem; display: flex; gap: 0.75rem; align-items: center; z-index: 1; }
.cf-lang { font-size: 0.8125rem; color: rgba(255,255,255,0.85); display: inline-flex; align-items: center; gap: 0.35rem; }
.cf-signup-btn {
  background: #fff; color: var(--ink); border-radius: 8px; text-decoration: none;
  font-size: 0.8125rem; font-weight: 600; padding: 0.5rem 0.9rem;
}
.cf-promo { position: relative; z-index: 1; max-width: 30rem; padding: 0 3.5rem; top: 50%; transform: translateY(-50%); }
.cf-promo .kicker { font: 600 0.8125rem/1 var(--font-mono); letter-spacing: 0.04em; color: rgba(255,255,255,0.85); margin: 0; }
.cf-promo h2 { margin: 1rem 0 0; font-size: clamp(1.8rem, 2.6vw, 2.4rem); line-height: 1.15; letter-spacing: -0.02em; }
.cf-promo .when { margin: 1rem 0 0; font-size: 0.9375rem; color: rgba(255,255,255,0.9); }
.cf-promo .btn {
  margin-top: 1.5rem; display: inline-flex; align-items: center; gap: 0.5rem;
  background: #fff; color: var(--ink); border-radius: 8px;
}
.cf-promo .btn:hover { background: var(--slate-100); }
.cf-dots { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); display: flex; gap: 0.5rem; z-index: 1; }
.cf-dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.45); }
.cf-dots span.on { background: #fff; }

/* ==========================================================================
   Bento feature grid (homepage governance section)
   ========================================================================== */
.bento { margin-top: 2.5rem; display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 920px) {
  .bento {
    grid-template-columns: 1.15fr 1fr 1fr;
    grid-template-areas:
      "a b  d1"
      "a b2 d2"
      "c c  d3";
  }
  .b-a { grid-area: a; } .b-b { grid-area: b; } .b-b2 { grid-area: b2; }
  .b-d1 { grid-area: d1; } .b-d2 { grid-area: d2; } .b-d3 { grid-area: d3; }
  .b-c { grid-area: c; }
}
.bcard {
  border: 1px solid var(--slate-200); border-radius: 16px; background: #fff;
  padding: 1.75rem; display: flex; flex-direction: column;
  transition: transform 300ms var(--ease-out), box-shadow 300ms var(--ease-out), border-color 300ms;
}
.bcard:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -20px rgba(12, 18, 32, 0.25); }
.bcard h3 { margin: 0; font-size: 1.15rem; letter-spacing: -0.015em; }
.bcard p { margin: 0.7rem 0 0; font-size: 0.9rem; line-height: 1.7; color: var(--slate-600); }
.bcard .art {
  border: 1px solid var(--slate-200); border-radius: 12px; background: var(--slate-50);
  display: grid; place-items: center; padding: 1.75rem 1rem; margin: 0 0 1.5rem;
}
.bcard .art svg { width: 100%; max-width: 280px; height: auto; color: var(--slate-700); }
.bcard.dark { background: var(--ink); border-color: var(--ink); }
.bcard.dark:hover { box-shadow: 0 18px 40px -18px rgba(12, 18, 32, 0.6); }
.bcard.dark h3 { color: #fff; }
.bcard.dark p { color: #94a3b8; }
.bcard .icon-circle {
  width: 54px; height: 54px; border-radius: 50%; margin-bottom: 1.5rem;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.08); color: #e2e8f0;
}
.pill-row { display: flex; gap: 0.5rem; margin-bottom: 1.4rem; }
.pill-row .pill {
  border-radius: 99px; padding: 0.45rem 1.1rem; font-size: 0.8125rem; font-weight: 600;
}
.pill-row .pill.on { background: var(--ink); color: #fff; }
.pill-row .pill.offp { background: var(--slate-50); border: 1px solid var(--slate-200); color: var(--slate-500); }
.app-row {
  display: flex; align-items: center; gap: 0.75rem;
  border: 1px solid var(--slate-200); border-radius: 12px; background: var(--slate-50);
  padding: 0.8rem 0.9rem; margin-bottom: 1.4rem;
}
.app-row .app-ico {
  width: 38px; height: 38px; border-radius: 10px; flex: none;
  background: var(--ink); color: #fff; display: grid; place-items: center;
}
.app-row .app-name { min-width: 0; }
.app-row .app-name .n { margin: 0; font: 600 0.8125rem/1.3 var(--font-mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-row .app-name .s { margin: 0; font-size: 0.75rem; color: var(--slate-500); }
.app-row .app-btn {
  margin-left: auto; flex: none; background: var(--ink); color: #fff;
  border-radius: 99px; font-size: 0.75rem; font-weight: 600; padding: 0.4rem 0.95rem;
}
.b-c { flex-direction: row; flex-wrap: wrap; gap: 2rem; align-items: center; }
.b-c > div { flex: 1 1 260px; }
.b-c .art { margin: 0; flex: 1 1 260px; align-self: stretch; }

/* Blog cover art */
.post-cover {
  margin: -1.5rem -1.5rem 1.1rem;
  border-radius: 11px 11px 0 0;
  overflow: hidden;
  border-bottom: 1px solid var(--slate-200);
}
.post-cover svg { display: block; width: 100%; height: auto; }
.post-card .tag { margin-top: 0.1rem; }


/* Language switcher (globe in the nav) */
.nav-dd.lang .dd-btn { padding: 0.45rem 0.5rem; }
.nav-dd.lang .dd-panel { min-width: 200px; }
.lang-item {
  display: flex; align-items: center; gap: 0.6rem; width: 100%;
  border: 0; background: none; cursor: pointer; text-align: left;
  padding: 0.55rem 0.75rem; border-radius: 9px;
  font: 500 0.875rem var(--font-sans); color: var(--ink);
  transition: background 150ms;
}
.lang-item:hover { background: var(--slate-100); }
.lang-item .check { margin-left: auto; color: var(--accent-dark); font-weight: 700; }
.lang-item .soon { margin-left: auto; font-size: 0.6875rem; font-weight: 700; color: var(--slate-400); }
.sg-toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(8px);
  z-index: 200; background: var(--ink); color: #fff;
  border-radius: 12px; padding: 0.8rem 1.2rem; font-size: 0.875rem;
  box-shadow: 0 20px 50px -15px rgba(0,0,0,0.5);
  opacity: 0; transition: opacity 250ms var(--ease-out), transform 250ms var(--ease-out);
  max-width: min(92vw, 30rem); text-align: center;
}
.sg-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Signup page (centered, Cloudflare-style) */
.su-page { min-height: 100vh; background: #fff; display: flex; flex-direction: column; }
.su-top { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem clamp(1rem, 4vw, 2rem); }
.su-top .right { display: flex; align-items: center; gap: 1rem; font-size: 0.8125rem; color: var(--slate-600); }
.su-top .right a.btn-lite { border: 1px solid var(--slate-300); border-radius: 8px; padding: 0.45rem 0.9rem; color: var(--ink); font-weight: 600; text-decoration: none; }
.su-wrap { flex: 1; display: grid; justify-content: center; align-content: start; padding: clamp(2rem, 7vh, 5rem) 1rem 4rem; }
.su-form { width: min(440px, 100%); }
.su-form h1 { margin: 0 0 1.75rem; font-size: clamp(1.5rem, 3vw, 1.9rem); letter-spacing: -0.02em; line-height: 1.25; }
.su-form .sso-btn { margin: 0 0 0.7rem; }
.su-hr { height: 1px; background: var(--slate-200); margin: 1.4rem 0; }
.sg-verify {
  display: flex; align-items: center; gap: 0.8rem;
  border: 1px solid var(--slate-300); border-radius: 6px; background: #fafafa;
  padding: 0.85rem 1rem; margin-top: 0.5rem;
}
.sg-verify .box {
  width: 24px; height: 24px; flex: none; border: 2px solid var(--slate-400); border-radius: 4px;
  background: #fff; cursor: pointer; display: grid; place-items: center; color: #fff;
  transition: background 200ms, border-color 200ms;
}
.sg-verify.checking .box { border-color: var(--accent); }
.sg-verify.checking .box::after {
  content: ""; width: 12px; height: 12px; border: 2px solid var(--accent);
  border-top-color: transparent; border-radius: 50%; animation: su-spin 700ms linear infinite;
}
@keyframes su-spin { to { transform: rotate(360deg); } }
.sg-verify.ok .box { background: #10b981; border-color: #10b981; }
.sg-verify .lbl { font-size: 0.875rem; color: var(--ink); }
.sg-verify .brand { margin-left: auto; text-align: right; }
.sg-verify .brand .n { font: 800 0.5625rem/1.1 var(--font-sans); letter-spacing: 0.12em; color: var(--slate-500); display: flex; align-items: center; gap: 0.3rem; justify-content: flex-end; }
.sg-verify .brand .links { font-size: 0.5625rem; color: var(--slate-400); }
.sg-verify .brand .links a { color: inherit; }
.su-legal { margin: 1.25rem 0 0; font-size: 0.8125rem; color: var(--slate-600); line-height: 1.7; }
.su-legal a { color: var(--slate-700); }
.su-opt { display: flex; gap: 0.6rem; align-items: flex-start; margin-top: 0.9rem; font-size: 0.8125rem; color: var(--slate-600); }
.su-opt input { margin-top: 2px; accent-color: var(--ink); }
.su-form .btn-primary { width: 100%; text-align: center; margin-top: 1.25rem; }
.su-login { margin-top: 1.4rem; text-align: center; font-size: 0.875rem; color: var(--slate-600); }
.su-login a { color: var(--ink); font-weight: 700; text-decoration: none; }


/* ==========================================================================
   Mobile & tablet hardening
   ========================================================================== */
/* Belt-and-braces against accidental horizontal scroll */
body { overflow-x: clip; }

@media (max-width: 720px) {
  /* iOS zooms the page when focusing inputs below 16px */
  input, select, textarea { font-size: 16px !important; }
  /* Wide fixed-detail SVGs become swipeable instead of microscopic */
  .ent-diagram { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .ent-diagram svg { min-width: 640px; }
  .chart-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .chart-wrap svg { min-width: 560px; }
  /* Signup top bar can wrap on narrow phones */
  .su-top { flex-wrap: wrap; gap: 0.75rem; }
  /* Hero neuron: keep the copy readable over the scene */
  .hero-canvas { opacity: 0; }
  .hero-canvas.is-live { opacity: 0.65; }
  /* Bento wide-card art shouldn't force height on tiny screens */
  .b-c .art { min-height: 150px; }
  /* Council seat hints don't collide with the next node */
  .wf-node .seat-hint { bottom: -8px; }
}

@media (max-width: 420px) {
  .sso-row { grid-template-columns: 1fr; }
  .browse-top .view-toggle { margin-left: 0; }
  .wf-toolbar .grp input[type="range"] { width: 100px; }
}

/* ==========================================================================
   Careers page (Intruder-style)
   ========================================================================== */
.gallery-strip { margin-top: 2.5rem; display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .gallery-strip { grid-template-columns: repeat(4, 1fr); } }
.gallery-strip .tile { border-radius: 14px; overflow: hidden; border: 1px solid var(--slate-200); }
.gallery-strip .tile svg { display: block; width: 100%; height: auto; }
.gallery-strip .tile:nth-child(2) { transform: translateY(14px); }
.gallery-strip .tile:nth-child(4) { transform: translateY(14px); }
@media (max-width: 759px) { .gallery-strip .tile { transform: none !important; } }

.values-list { margin: 2rem 0 0; padding: 0; list-style: none; display: grid; gap: 0; max-width: 780px; }
.values-list li { padding: 1.5rem 0; border-top: 1px solid var(--slate-200); display: grid; gap: 0.4rem; }
.values-list li:first-child { border-top: 0; }
.values-list h3 { margin: 0; font-size: 1.1rem; letter-spacing: -0.01em; }
.values-list p { margin: 0; font-size: 0.9375rem; line-height: 1.7; color: var(--slate-600); }
.values-list .num { font: 700 0.75rem/1 var(--font-mono); color: var(--accent-dark); }

.perk-col .perk-head { display: flex; align-items: center; gap: 0.75rem; }
.perk-col .perk-ico {
  width: 46px; height: 46px; border-radius: 14px; flex: none;
  background: rgba(14, 159, 232, 0.1); color: var(--accent);
  display: grid; place-items: center;
}
.perk-col h3 { margin: 0; font-size: 1.1rem; }
.perk-col ul { margin: 1.1rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.8rem; }
.perk-col li { display: flex; gap: 0.7rem; font-size: 0.9rem; line-height: 1.6; color: var(--slate-600); }
.perk-col li .e { flex: none; font-size: 1.05rem; line-height: 1.4; }

.job-list { margin-top: 1.5rem; display: grid; }
.job-dept { margin: 1.75rem 0 0.25rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate-500); }
.job-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.25rem;
  padding: 1.1rem 0.25rem; border-bottom: 1px solid var(--slate-200);
  text-decoration: none; transition: background 200ms;
}
.job-row:hover { background: var(--slate-50); }
.job-row .jt { margin: 0; font-size: 1.05rem; font-weight: 600; color: var(--ink); flex: 1 1 260px; }
.job-row .jm { font-size: 0.8125rem; color: var(--slate-500); }
.job-row .apply { margin-left: auto; color: var(--accent-dark); font-weight: 600; font-size: 0.875rem; white-space: nowrap; }
.facts-row { display: flex; flex-wrap: wrap; gap: 1rem 3rem; margin-top: 2rem; }
.facts-row .fact .k { margin: 0; font-size: 0.8125rem; color: var(--slate-500); }
.facts-row .fact .v { margin: 0.15rem 0 0; font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; }
.loc-line { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.loc-line .chip { cursor: default; }
.loc-line .chip:hover { border-color: var(--slate-200); color: var(--slate-600); }

/* ==========================================================================
   Contact page
   ========================================================================== */
.contact-grid { margin-top: 2.5rem; display: grid; gap: 2.5rem; align-items: start; grid-template-columns: 1fr; }
@media (min-width: 920px) { .contact-grid { grid-template-columns: 1.15fr 1fr; } }
.contact-cards { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .contact-cards { grid-template-columns: 1fr 1fr; } }
.contact-card { padding: 1.35rem; }
.contact-card .cico {
  width: 42px; height: 42px; border-radius: 12px; margin-bottom: 1rem;
  background: rgba(14, 159, 232, 0.1); color: var(--accent);
  display: grid; place-items: center;
}
.contact-card h3 { margin: 0; font-size: 1rem; }
.contact-card p { margin: 0.45rem 0 0; font-size: 0.8438rem; line-height: 1.65; color: var(--slate-600); }
.contact-card .link-cta { display: inline-block; margin-top: 0.8rem; font-size: 0.8438rem; }
.contact-form { padding: 1.75rem; }
.contact-form h2 { margin: 0; font-size: 1.2rem; }
.contact-form .sub { margin: 0.4rem 0 1.25rem; font-size: 0.875rem; color: var(--slate-600); }
.contact-form form { display: grid; gap: 1rem; }
.contact-form label { font-size: 0.8125rem; font-weight: 600; color: var(--slate-700); display: grid; gap: 0.35rem; }
.contact-form input, .contact-form select, .contact-form textarea {
  border: 1px solid var(--slate-300); border-radius: 8px;
  padding: 0.6rem 0.8rem; font: inherit; font-size: 0.9375rem; width: 100%; background: #fff;
}
.contact-form textarea { min-height: 130px; resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(14, 159, 232, 0.15);
}
.contact-form .row2 { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .contact-form .row2 { grid-template-columns: 1fr 1fr; } }
.contact-meta { margin-top: 1.5rem; padding: 0; list-style: none; display: grid; gap: 0.75rem; font-size: 0.875rem; color: var(--slate-600); }
.contact-meta li { display: flex; gap: 0.6rem; align-items: flex-start; }
.contact-meta svg { flex: none; margin-top: 3px; color: var(--accent); }
