@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Design tokens - dark default */
:root {
  /* Brand */
  --brand:          #5b7ef7;
  --brand-dark:     #4a6de6;
  --brand-tint:     rgba(91,126,247,.12);
  --brand-tint-md:  rgba(91,126,247,.22);
  /* Text */
  --text:   #e2e8f4;
  --text-2: #8095b4;
  --text-3: #4a5c78;
  /* Surfaces */
  --surface:   #0c0f1a;
  --surface-2: #111827;
  --surface-3: #0e1321;
  /* Borders */
  --border:      #1b2540;
  --border-soft: #131d34;
  /* Status */
  --ok:       #34d399;
  --warn:     #fbbf24;
  --danger:   #f87171;
  --ok-bg:    rgba(52,211,153,.1);
  --warn-bg:  rgba(251,191,36,.08);
  --danger-bg:rgba(248,113,113,.1);
  /* Shadows */
  --shadow-card:   0 1px 3px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.28);
  --shadow-raised: 0 4px 16px rgba(0,0,0,.5), 0 24px 48px rgba(0,0,0,.4);
  /* Radius */
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 24px;
  /* Site chrome */
  --header-bg:   rgba(12,15,26,.88);
  --header-link: #8095b4;
  /* Accents */
  --soft-accent-bg:   #0e1930;
  --soft-accent-text: #93b4ff;
  --card-blue-border: #1a3055;
  --card-blue-bg:     #0b1526;
  /* Code surfaces */
  --code-bg:     #070c14;
  --code-border: #141f32;
  /* Mono font */
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  /* Legacy aliases for backward compat */
  --panel:     var(--surface-2);
  --bg:        var(--surface);
  --elev:      var(--surface-2);
  --line:      var(--border);
  --muted:     var(--text-2);
  --faint:     var(--text-3);
  --shadow-sm: var(--shadow-card);
  --shadow-lg: var(--shadow-raised);
}

/* Light mode overrides */
html[data-theme="light"] {
  --brand:          #2457e6;
  --brand-dark:     #1a42c8;
  --brand-tint:     rgba(36,87,230,.08);
  --brand-tint-md:  rgba(36,87,230,.16);
  --text:   #0d1626;
  --text-2: #4a5568;
  --text-3: #718096;
  --surface:   #ffffff;
  --surface-2: #f7fafd;
  --surface-3: #f0f4f9;
  --border:      #e2e8f2;
  --border-soft: #edf2f9;
  --ok:       #059669;
  --warn:     #d97706;
  --danger:   #dc2626;
  --ok-bg:    #ecfdf5;
  --warn-bg:  #fffbeb;
  --danger-bg:#fef2f2;
  --shadow-card:   0 1px 3px rgba(0,0,0,.06), 0 8px 24px rgba(15,23,42,.06);
  --shadow-raised: 0 4px 12px rgba(0,0,0,.08), 0 20px 40px rgba(15,23,42,.10);
  --header-bg:   rgba(247,250,253,.92);
  --header-link: #4a5568;
  --soft-accent-bg:   #eaf1ff;
  --soft-accent-text: #1f3d7a;
  --card-blue-border: #d4e0f5;
  --card-blue-bg:     #f7faff;
  --code-bg:     #eef2f8;
  --code-border: #d0d9ea;
}

/* Base */
html, body {
  background: var(--surface);
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Accessibility */
.skip-link {
  position: absolute;
  left: 8px; top: -100px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text);
  font-weight: 600;
  border: 1px solid var(--border);
}
.skip-link:focus { top: 10px; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  padding: 0 1.5rem;
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 60px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text);
}
.logo-icon { width: 28px; height: 28px; flex-shrink: 0; }
.logo span { color: var(--brand); }
.logo:hover, .logo:focus { text-decoration: none; }

.nav-toggle { display: none; }
.nav-toggle-label {
  display: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  content: "";
  display: block;
  width: 20px; height: 2px;
  background: var(--text-2);
  border-radius: 2px;
  position: relative;
}
.nav-toggle-label span::before { top: -6px; position: absolute; }
.nav-toggle-label span::after  { top:  6px; position: absolute; }

.site-nav {
  display: flex;
  gap: 0.2rem;
  align-items: center;
}
.site-nav a {
  font-size: 0.875rem;
  color: var(--header-link);
  font-weight: 500;
  padding: 0.35rem 0.7rem;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  white-space: nowrap;
  transition: color 0.12s, background 0.12s, border-color 0.12s;
}
.site-nav a.active,
.site-nav a:hover {
  color: var(--text);
  text-decoration: none;
  background: var(--brand-tint);
}
.site-nav a.nav-priority {
  color: var(--brand);
  background: transparent;
  border: 1px solid transparent;
  font-weight: 600;
}
.site-nav a.nav-priority:hover {
  color: var(--text);
  background: var(--brand-tint);
  border-color: transparent;
}
.nav-login {
  display: inline-block;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 0.32rem 0.8rem;
  color: var(--text) !important;
  font-size: 0.875rem;
  font-weight: 600;
  margin-left: 0.35rem;
  background: var(--surface-2);
  transition: border-color 0.12s, background 0.12s;
}
.nav-login:hover {
  border-color: var(--brand);
  background: var(--brand-tint);
  text-decoration: none !important;
}
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  width: 36px;
  height: 36px;
  padding: 0;
  margin-right: 0.15rem;
  background: transparent;
  color: var(--text-2);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  line-height: 1;
  transition: color 0.12s, background 0.12s, border-color 0.12s;
}
.theme-toggle:hover {
  color: var(--text);
  background: var(--surface-2);
  border-color: var(--brand);
}
.theme-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.theme-toggle-text { display: none; }

/* Layout */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.page-pricing .container { max-width: 1360px; }
.page-body { padding: 2rem 0 5rem; }

/* Hero */
.hero {
  text-align: center;
  padding: 5rem 1rem 3.5rem;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-2);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  margin-bottom: 1.2rem;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.06;
  letter-spacing: -1.5px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 1rem;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}
.hero h1 span { color: var(--brand); }
.hero p {
  max-width: 640px;
  margin: 0 auto 1.8rem;
  color: var(--text-2);
  font-size: 1.05rem;
  line-height: 1.75;
}
.hero p code {
  background: var(--code-bg);
  border: 1px solid var(--code-border);
  border-radius: 4px;
  padding: 0.1em 0.35em;
  font-size: 0.9em;
  color: var(--soft-accent-text);
  font-family: var(--mono);
}
.hero-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.cta-btn {
  display: inline-block;
  border-radius: var(--r-md);
  padding: 0.72rem 1.4rem;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.12s, border-color 0.12s, box-shadow 0.12s;
}
.cta-btn-primary {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.cta-btn-primary:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(91,126,247,.35);
}
.cta-btn-secondary {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border);
}
.cta-btn-secondary:hover {
  border-color: var(--brand);
  background: var(--brand-tint);
  color: var(--text);
  text-decoration: none;
}
.cta-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Section labels / titles */
.section-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--brand);
  margin-bottom: 0.6rem;
}
h2.section-title {
  text-align: center;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin: 2rem 0 1.2rem;
  color: var(--text);
}

/* API showcase */
.showcase {
  margin: 1rem 0 3.5rem;
}
.showcase-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.showcase-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--brand);
}
.showcase-note {
  font-size: 0.8rem;
  color: var(--text-3);
}
.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 0;
  border: 1px solid var(--code-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--code-bg);
  box-shadow: var(--shadow-raised);
}
.showcase-pane {
  border-right: 1px solid var(--code-border);
  display: flex;
  flex-direction: column;
}
.showcase-pane:last-child { border-right: none; }
.showcase-pane-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem 1rem;
  background: #0b1021;
  border-bottom: 1px solid var(--code-border);
  flex-shrink: 0;
}
.showcase-pane-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-3);
}
.showcase-status {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ok);
}
.showcase-code {
  margin: 0;
  padding: 1.2rem 1.1rem;
  overflow-x: auto;
  flex: 1;
}
.showcase-code code {
  font-family: var(--mono);
  font-size: 0.815rem;
  line-height: 1.72;
  color: #b8c5d6;
}
/* Syntax tokens */
.t-key  { color: #88c0d0; }  /* steel blue  - JSON keys    */
.t-str  { color: #a3be8c; }  /* sage green  - strings      */
.t-num  { color: #ebcb8b; }  /* amber       - numbers      */
.t-bool { color: #81a1c1; }  /* muted blue  - booleans     */
.t-punc { color: #5a6a83; }  /* dim         - punctuation  */

@media (max-width: 700px) {
  .showcase-grid { grid-template-columns: 1fr; }
  .showcase-pane { border-right: none; border-bottom: 1px solid var(--code-border); }
  .showcase-pane:last-child { border-bottom: none; }
}

/* Value proposition */
.proposition {
  margin: 0 0 3.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem 3rem;
}
.prop-item {
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
.prop-item h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.55rem;
  letter-spacing: -0.1px;
}
.prop-item p {
  color: var(--text-2);
  font-size: 0.915rem;
  line-height: 1.75;
}
@media (max-width: 860px) {
  .proposition { grid-template-columns: 1fr; gap: 1.8rem; }
}

/* How it works (inline steps) */
.steps-inline {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 1.25rem 0 3rem;
  max-width: 680px;
}
.step-inline {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.step-num {
  min-width: 26px;
  min-height: 26px;
  border-radius: 999px;
  background: var(--brand-tint);
  border: 1px solid var(--brand-tint-md);
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.78rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
}
.step-inline strong {
  display: block;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.step-inline p {
  color: var(--text-2);
  font-size: 0.9rem;
  line-height: 1.65;
  margin: 0;
}

/* Works with strip */
.works-with {
  margin: 0 0 3.5rem;
  text-align: center;
}
.works-with-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 1rem;
}
.works-with-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 6px;
}
.ww-logo {
  display: inline-block;
  padding: 5px 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  background: var(--surface-2);
  letter-spacing: .01em;
  white-space: nowrap;
}

/* Home CTA block */
.home-cta {
  margin: 1rem 0 3rem;
  padding: 3rem 2rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  text-align: center;
}
.home-cta h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 0.55rem;
}
.home-cta p {
  color: var(--text-2);
  font-size: 0.97rem;
  margin-bottom: 1.5rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* Intro box */
.intro-box {
  background: var(--soft-accent-bg);
  border-left: 3px solid var(--brand);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 1rem 1.2rem;
  margin: 1rem 0 1.5rem;
  color: var(--soft-accent-text);
  font-size: 0.93rem;
  line-height: 1.7;
}
.intro-box a { color: var(--brand); font-weight: 600; }

/* Status strip */
.status-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
  margin: 0.4rem 0 1.8rem;
}
.status-item {
  border: 1px solid var(--card-blue-border);
  border-radius: var(--r-md);
  background: var(--card-blue-bg);
  padding: 0.85rem 1rem;
}
.status-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--brand);
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.status-value {
  display: block;
  font-size: 0.87rem;
  color: var(--text);
  font-weight: 600;
}

/* Cards / panels / splits */
.features-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 1rem 0 2rem;
}
.architecture-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 1rem 0 2rem;
}
.feature-card, .arch-card {
  border: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: var(--r-lg);
  padding: 1.2rem;
}
.feature-card h3, .arch-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--text);
}
.feature-card p, .arch-card p {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.65;
}
.feature-card p code, .panel p code, .panel li code, .faq-item p code {
  background: var(--code-bg);
  border: 1px solid var(--code-border);
  border-radius: 4px;
  padding: 0.1em 0.35em;
  font-size: 0.88em;
  color: var(--soft-accent-text);
  font-family: var(--mono);
}
.arch-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--brand);
  margin-bottom: 0.45rem;
}
.split {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
  margin: 1.3rem 0 2rem;
}
.split > * { min-width: 0; }
.panel {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.2rem;
  background: var(--surface-2);
}
.panel h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
  color: var(--text);
}
.panel p, .panel li {
  color: var(--text-2);
  font-size: 0.92rem;
  line-height: 1.65;
}
.panel ul { margin-left: 1.2rem; }

/* Step cards (old style - kept for compat) */
.step-card {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1rem;
  margin-bottom: 0.7rem;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  background: var(--surface-2);
}
.step-card .num {
  min-width: 28px; min-height: 28px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.82rem;
  flex-shrink: 0;
}

/* Pricing */
.pricing-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 1rem 0 2rem;
}
.pricing-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pricing-grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.pricing-switch {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0 0 1.25rem;
}
.switch-btn {
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-2);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.switch-btn.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.switch-note {
  font-size: 0.8rem;
  color: var(--text-3);
  margin-left: 0.3rem;
}
.price-card {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface-2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.price-card-body {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.price-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.6rem;
}
.price-card .price {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.2rem;
}
.price-card .period {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-2);
}
.billing-compare {
  font-size: 0.8rem;
  color: var(--text-3);
  min-height: 1.3rem;
  margin-bottom: 0.75rem;
}
.billing-compare .cross { text-decoration: line-through; color: var(--text-3); }
.billing-compare .save  { color: var(--ok); font-weight: 700; }
.price-card ul {
  margin-left: 0.9rem;
  flex: 1;
  padding-left: 0.6rem;
}
.price-card li {
  color: var(--text-2);
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
  line-height: 1.55;
}
.price-card-footer {
  border-top: 1px solid var(--border);
  background: var(--surface-3);
  padding: 0.85rem 1.2rem 1rem;
}
.plan-action { width: 100%; text-align: center; margin-top: 0; }
.price-highlight {
  border-color: var(--brand-tint-md);
  box-shadow: 0 0 0 1px var(--brand-tint-md), var(--shadow-card);
}
.checkout-status {
  margin: 0 auto 1rem;
  max-width: 560px;
  text-align: center;
  min-height: 1.2rem;
  color: var(--text-2);
  font-size: 0.82rem;
}

/* Code blocks */
.code-wrap {
  border: 1px solid var(--code-border);
  border-radius: var(--r-md);
  overflow: hidden;
  margin: 1rem 0 1.4rem;
  background: var(--code-bg);
}
.code-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #0b1021;
  border-bottom: 1px solid var(--code-border);
  padding: 0.5rem 0.8rem;
}
.code-label {
  color: var(--text-3);
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.copy-btn {
  border: 1px solid #2a3a52;
  border-radius: 6px;
  background: #141f32;
  color: var(--text-2);
  padding: 0.22rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.copy-btn:hover { background: #1a2842; color: var(--text); }
pre { margin: 0; overflow-x: auto; padding: 0.9rem 1rem; }
code {
  color: #b8c5d6;
  font-family: var(--mono);
  font-size: 0.83rem;
  line-height: 1.6;
}

/* FAQ layout */
.faq-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 0 3rem;
  align-items: start;
  margin-top: 1rem;
  margin-bottom: 3rem;
}
.faq-sidebar {
  position: sticky;
  top: 76px;
}
.faq-main { min-width: 0; }
.faq-group {
  margin-bottom: 2.5rem;
  scroll-margin-top: 72px;
}
.faq-group:last-child { margin-bottom: 0; }
.faq-group-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border);
  letter-spacing: -0.15px;
}

/* FAQ accordion items */
details.faq-item {
  border-bottom: 1px solid var(--border);
}
details.faq-item:first-of-type { border-top: 1px solid var(--border); }
details.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  user-select: none;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
  content: '+';
  flex-shrink: 0;
  font-size: 1.15rem;
  font-weight: 300;
  color: var(--text-3);
  line-height: 1.5;
  transition: transform 0.18s, color 0.18s;
}
details.faq-item[open] summary::after {
  transform: rotate(45deg);
  color: var(--brand);
}
details.faq-item summary:hover { color: var(--brand); }
.faq-answer {
  padding: 0 0 1rem;
}
.faq-answer p { font-size: 0.9rem; color: var(--text-2); line-height: 1.72; }
.faq-answer p + p { margin-top: 0.55rem; }
.faq-answer strong { color: var(--text); }
.faq-answer code {
  background: var(--code-bg);
  border: 1px solid var(--code-border);
  border-radius: 4px;
  padding: 0.1em 0.35em;
  font-size: 0.88em;
  color: var(--soft-accent-text);
  font-family: var(--mono);
}

/* Blog cards */
.blog-card-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 1rem 0 1.5rem;
}
.blog-card {
  border: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: var(--r-lg);
  padding: 1.2rem;
  transition: border-color 0.12s;
}
.blog-card:hover { border-color: var(--brand-tint-md); }
.blog-card-meta {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--brand);
  margin-bottom: 0.5rem;
}
.blog-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.blog-card h3 a { color: var(--text); }
.blog-card h3 a:hover { color: var(--brand); text-decoration: none; }
.blog-card p {
  color: var(--text-2);
  font-size: 0.88rem;
  line-height: 1.65;
}

/* Blog list pages */
.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 1.5rem;
  align-items: start;
  margin-top: 1rem;
}
.blog-main { min-width: 0; }
.blog-sidebar { display: flex; flex-direction: column; gap: 1rem; }
.blog-list { display: grid; gap: 1rem; }
.blog-post-card {
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: var(--surface-2);
  padding: 1.3rem;
}
.blog-post-card h2 {
  font-size: 1.15rem;
  line-height: 1.3;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--text);
}
.blog-post-card h2 a { color: var(--text); }
.blog-post-card h2 a:hover { color: var(--brand); text-decoration: none; }
.blog-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  font-size: 0.78rem;
  color: var(--text-2);
  margin-bottom: 0.65rem;
}
.blog-tag {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--card-blue-border);
  background: var(--card-blue-bg);
  color: var(--brand);
  border-radius: 999px;
  padding: 0.14rem 0.55rem;
  font-size: 0.73rem;
  font-weight: 700;
}
.blog-post-card p { color: var(--text-2); font-size: 0.93rem; }
.blog-read { display: inline-flex; margin-top: 0.8rem; font-weight: 600; font-size: 0.88rem; }
.blog-sidebar-card {
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: var(--surface-2);
  padding: 1rem;
}
.blog-sidebar-card h3 { font-size: 0.9rem; font-weight: 700; margin-bottom: 0.45rem; color: var(--text); }
.blog-sidebar-card p, .blog-sidebar-card li { color: var(--text-2); font-size: 0.88rem; }
.blog-sidebar-card ul { margin-left: 1rem; }

/* Article layout */
.article-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 1.5rem;
  margin-top: 1rem;
  align-items: start;
}
.article-main { min-width: 0; }
.article-body {
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: var(--surface-2);
  padding: 1.75rem;
}
.article-header { margin-bottom: 1.2rem; }
.article-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.3px;
  font-weight: 800;
  margin-bottom: 0.65rem;
  color: var(--text);
}
.article-standfirst {
  font-size: 1rem;
  color: var(--text-2);
  max-width: 760px;
}
.article-body h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 1.75rem 0 0.6rem;
  color: var(--text);
}
.article-body p, .article-body li { color: var(--text-2); font-size: 0.96rem; line-height: 1.75; }
.article-body ul, .article-body ol { margin: 0.6rem 0 1rem 1.2rem; }
.article-callout {
  border-left: 3px solid var(--brand);
  background: var(--soft-accent-bg);
  color: var(--soft-accent-text);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 0.9rem 1rem;
  margin: 1rem 0 1.2rem;
}
.article-aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: sticky;
  top: 76px;
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.8rem;
  color: var(--text-2);
  font-size: 0.83rem;
}
.breadcrumbs a { color: var(--text-2); }
.breadcrumbs a:hover { color: var(--brand); text-decoration: none; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 0 1.5rem;
  background: var(--surface-2);
}
.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2rem 0 2.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.8fr);
  gap: 2rem 3rem;
  margin-bottom: 1.5rem;
}
.footer-brand {
  max-width: 360px;
}
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: var(--text);
  margin-bottom: 0.7rem;
}
.footer-logo span { color: var(--brand); }
.footer-logo:hover { text-decoration: none; }
.footer-brand p {
  color: var(--text-2);
  font-size: 0.9rem;
  line-height: 1.7;
}
.footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem 2rem;
}
.footer-column {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.footer-heading {
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}
.footer-links a {
  color: var(--text-3);
  font-size: 0.85rem;
  padding: 0.2rem 0;
  border-radius: var(--r-sm);
  transition: color 0.1s;
}
.footer-links a:hover { color: var(--text); text-decoration: none; }
.footer-copy {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  color: var(--text-3);
  font-size: 0.8rem;
  line-height: 1.6;
}

/* Notices */
.notice {
  border-radius: var(--r-sm);
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  line-height: 1.6;
}
.notice-info {
  background: var(--soft-accent-bg);
  border: 1px solid var(--card-blue-border);
  color: var(--soft-accent-text);
}

/* Forms */
label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.3rem;
}
input[type=text],
input[type=email],
input[type=url],
input[type=tel],
select,
textarea {
  display: block;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 0.56rem 0.75rem;
  font-size: 0.93rem;
  font-family: inherit;
  color: var(--text);
  background: var(--surface-2);
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
  appearance: none;
}
input::placeholder, textarea::placeholder { color: var(--text-3); }
input[type=text]:focus,
input[type=email]:focus,
input[type=url]:focus,
input[type=tel]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-tint);
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 10'%3E%3Cpath stroke='%236b7a9a' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round' d='M2 2l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.65rem center;
  background-size: 12px 8px;
  padding-right: 2rem;
  cursor: pointer;
}
textarea { resize: vertical; line-height: 1.6; }
fieldset { border: none; padding: 0; margin: 0; }
.req { color: var(--danger); font-style: normal; }

/* Enterprise contact */
.ent-layout {
  display: grid;
  grid-template-columns: 1fr 290px;
  gap: 1.75rem;
  align-items: start;
  margin-bottom: 2rem;
}
.ent-form-panel {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  background: var(--surface-2);
}
.form-section { margin-bottom: 2rem; }
.form-section:last-of-type { margin-bottom: 0; }
.form-section-hd {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border);
}
.form-section-num {
  width: 22px; height: 22px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.form-section-title { font-size: 0.92rem; font-weight: 700; color: var(--text); }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
.form-field { margin-bottom: 1rem; }
.form-field:last-child { margin-bottom: 0; }
.check-legend { display: block; font-size: 0.875rem; font-weight: 600; color: var(--text); margin-bottom: 0.5rem; }
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.45rem 1rem; }
.check-item {
  display: flex; align-items: center; gap: 0.5rem;
  cursor: pointer; font-size: 0.9rem; font-weight: 400;
  color: var(--text-2); user-select: none; margin-bottom: 0;
}
.check-item input[type=checkbox] {
  width: 16px; height: 16px; min-width: 16px;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  -webkit-appearance: none; appearance: none;
  background: var(--surface-2);
  cursor: pointer; flex-shrink: 0;
  transition: background 0.1s, border-color 0.1s;
  margin: 0; padding: 0;
}
.check-item input[type=checkbox]:checked {
  background: var(--brand); border-color: var(--brand);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpolyline points='1.5,5 4.5,8.5 10.5,1.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: 10px 8px;
}
.check-item input[type=checkbox]:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.ent-sidebar { display: flex; flex-direction: column; gap: 1rem; }
.sidebar-card {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.1rem;
  background: var(--surface-2);
}
.sidebar-card h3 { font-size: 0.9rem; font-weight: 700; margin-bottom: 0.6rem; color: var(--text); }
.sidebar-card p { font-size: 0.88rem; color: var(--text-2); line-height: 1.55; }
.sidebar-card ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.sidebar-card li { font-size: 0.88rem; color: var(--text-2); display: flex; align-items: flex-start; gap: 0.5rem; line-height: 1.45; }
.sidebar-card li .si { color: var(--brand); font-weight: 700; flex-shrink: 0; min-width: 16px; }
.sidebar-contact { background: var(--soft-accent-bg); border-color: var(--card-blue-border); }
.sidebar-contact h3 { color: var(--soft-accent-text); }
.sidebar-contact p  { color: var(--soft-accent-text); }
.sidebar-contact a  { color: var(--brand); font-weight: 600; }
.form-submit-row {
  display: flex; align-items: center; gap: 1rem;
  padding-top: 0.75rem; border-top: 1px solid var(--border); margin-top: 0.5rem;
}
.form-success { display: none; text-align: center; padding: 3rem 1rem; }
.success-icon {
  width: 56px; height: 56px; border-radius: 999px;
  background: var(--ok-bg);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.1rem;
}
.form-success h3 { font-size: 1.25rem; margin-bottom: 0.5rem; color: var(--text); }
.form-success p { color: var(--text-2); font-size: 0.95rem; }
.form-success .form-success-actions { margin-top: 1.25rem; }

/* Public docs layout */
.docs-pub-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 0 3rem;
  align-items: start;
  margin-top: 1.5rem;
}
.docs-pub-sidebar {
  position: sticky;
  top: 76px;
  max-height: calc(100vh - 90px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.docs-pub-nav-card {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1rem;
  background: var(--surface-2);
}
.docs-pub-nav-title {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 700;
  color: var(--text-3);
  margin-bottom: 0.65rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.docs-pub-nav-links { list-style: none; }
.docs-pub-nav-links li a {
  display: block;
  padding: 0.3rem 0.6rem;
  font-size: 0.82rem;
  color: var(--text-2);
  text-decoration: none;
  border-radius: var(--r-sm);
  transition: color 0.1s, background 0.1s;
  line-height: 1.5;
}
.docs-pub-nav-links li a:hover,
.docs-pub-nav-links li a.active {
  color: var(--brand);
  background: var(--brand-tint);
}
.docs-pub-nav-sub a { padding-left: 1.2rem !important; font-size: 0.78rem !important; }
.docs-pub-main { min-width: 0; padding-bottom: 3rem; }
.pub-section {
  border-bottom: 1px solid var(--border);
  padding: 2.2rem 0;
  scroll-margin-top: 72px;
}
.pub-section:last-child { border-bottom: none; }
.pub-section-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 0.4rem;
}
.pub-section-title {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 0.75rem;
  color: var(--text);
}
.pub-method-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.pub-method {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
  padding: 2px 8px; border-radius: 4px; background: var(--brand); color: #fff;
}
.pub-method.get { background: var(--ok); }
.pub-route {
  font-family: var(--mono);
  font-size: 0.9rem; color: var(--text); font-weight: 600;
}
.pub-code-block {
  background: var(--code-bg);
  border: 1px solid var(--code-border);
  border-radius: var(--r-md);
  padding: 1rem 1.1rem;
  margin: 0.85rem 0;
  overflow-x: auto;
  position: relative;
}
.pub-code-block pre { margin: 0; }
.pub-code-block code {
  font-family: var(--mono);
  font-size: 0.81rem;
  line-height: 1.68;
  color: #b8c5d6;
}
.pub-response-label {
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.5px;
  font-weight: 700; color: var(--ok); margin: 1rem 0 0.3rem;
}
.pub-field-table { width: 100%; border-collapse: collapse; margin: 0.75rem 0; font-size: 0.82rem; }
.pub-field-table th {
  text-align: left; padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--border);
  color: var(--text-3); font-weight: 600; font-size: 0.7rem;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.pub-field-table td { padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--border); vertical-align: top; color: var(--text-2); }
.pub-field-table tr:last-child td { border-bottom: none; }
.pub-field-table code {
  background: var(--soft-accent-bg); color: var(--soft-accent-text);
  padding: 1px 5px; border-radius: 3px; font-size: 0.86em;
  font-family: var(--mono);
}
.pub-note {
  background: var(--soft-accent-bg);
  border-left: 3px solid var(--brand);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 0.75rem 0.9rem;
  font-size: 0.88rem;
  margin: 0.75rem 0;
  color: var(--soft-accent-text);
}
.pub-lang-block { display: none; }
.pub-lang-block[data-plang="curl"] { display: block; }

/* Per-section language tabs (docs) */
.pub-code-tabs {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}
.pub-code-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 5px 12px;
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  margin-bottom: -1px;
  border-radius: 4px 4px 0 0;
  transition: color 0.1s;
}
.pub-code-tab:hover { color: var(--text); }
.pub-code-tab.active { color: var(--brand); border-bottom-color: var(--brand); }

/* Public docs response accordion */
.pub-responses { border-top: 1px solid var(--border); margin-top: 12px; }
.pub-responses-heading { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 10px 0 5px; }
.pub-resp-row { border-top: 1px solid var(--border); }
.pub-resp-trigger { display: flex; align-items: center; gap: 8px; padding: 9px 4px; cursor: pointer; list-style: none; color: var(--text); font-size: 13px; user-select: none; }
.pub-resp-trigger::-webkit-details-marker { display: none; }
.pub-resp-trigger:hover { color: var(--brand); }
.pub-resp-trigger::after { content: '▶'; margin-left: auto; font-size: 9px; color: var(--muted); transition: transform .15s; }
details[open] > summary.pub-resp-trigger::after { transform: rotate(90deg); }
.pub-status-pill { font-size: 11px; font-weight: 700; font-family: monospace; padding: 2px 7px; border-radius: 4px; flex-shrink: 0; }
.pub-status-2xx { background: rgba(34,197,94,.12); color: #16a34a; }
.pub-status-4xx { background: rgba(239,68,68,.1); color: #dc2626; }
.pub-resp-body { padding: 6px 0 4px; }
.pub-resp-body .pub-code-block { margin-top: 0; }

/* Responsive */
@media (max-width: 1200px) {
  .pricing-grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .features-grid    { grid-template-columns: 1fr 1fr; }
  .architecture-grid{ grid-template-columns: 1fr 1fr; }
  .blog-card-grid   { grid-template-columns: 1fr 1fr; }
  .status-strip     { grid-template-columns: 1fr 1fr; }
  .pricing-grid     { grid-template-columns: 1fr; }
  .pricing-grid-4   { grid-template-columns: 1fr 1fr; }
  .pricing-grid-5   { grid-template-columns: 1fr 1fr; }
  .blog-layout      { grid-template-columns: 1fr; }
  .article-shell    { grid-template-columns: 1fr; }
  .article-aside    { position: static; }
  .faq-layout       { grid-template-columns: 1fr; }
  .faq-sidebar      { display: none; }
  .ent-layout       { grid-template-columns: 1fr; }
  .ent-sidebar      { flex-direction: row; flex-wrap: wrap; }
  .ent-sidebar > *  { flex: 1 1 220px; }
  .docs-pub-layout  { grid-template-columns: 1fr; }
  .docs-pub-sidebar { display: none; }
}
@media (max-width: 700px) {
  .nav-toggle-label { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    padding: 0.75rem 1rem;
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-raised);
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
    z-index: 200;
  }
  .site-nav a { width: 100%; }
  .site-nav a.nav-priority { text-align: left; }
  .theme-toggle,
  .nav-login {
    display: block;
    width: 100%;
    margin-left: 0;
    text-align: left;
  }
  .theme-toggle {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.55rem;
    width: 100%;
    height: auto;
    padding: 0.5rem 0.7rem;
    margin-right: 0;
  }
  .theme-toggle-icon { width: auto; height: auto; }
  .theme-toggle-text { display: inline; font-size: 0.875rem; }
  .header-inner { position: relative; }
  .nav-toggle:checked ~ .site-nav { display: flex; }
  .hero { padding-top: 2.8rem; }
  .hero h1 { letter-spacing: -0.8px; }
  .split { grid-template-columns: 1fr; }
  .features-grid    { grid-template-columns: 1fr; }
  .architecture-grid{ grid-template-columns: 1fr; }
  .blog-card-grid   { grid-template-columns: 1fr; }
  .status-strip     { grid-template-columns: 1fr; }
  .pricing-grid-4   { grid-template-columns: 1fr; }
  .pricing-grid-5   { grid-template-columns: 1fr; }
  .article-body     { padding: 1.2rem; }
  .ent-form-panel   { padding: 1.25rem; }
  .form-row         { grid-template-columns: 1fr; }
  .check-grid       { grid-template-columns: 1fr; }
  .ent-sidebar      { flex-direction: column; }
  .home-cta         { padding: 2rem 1.2rem; }
  .proposition      { gap: 1.5rem; }
  .footer-grid      { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-links     { grid-template-columns: 1fr; gap: 1rem; }
}
