/* ============================================================
   FOLIO — design tokens + component styles
   The only stylesheet for Folio-rendered pages.
   ============================================================ */

/* --- Tokens --- */
:root {
  --brand-black: #0A0A0A;
  --brand-red: #DC2626;
  --text: #6B6B6B;
  --text-dark: #171717;
  --text-light: #8A8A8A;
  --text-secondary: #6B6B6B;
  --text-tertiary: #8A8A8A;
  --brand-red-dark: #991B1B;
  --brand-red-light: #FEE2E2;
  --bg: #FFFFFF;
  --bg-faint: #FAFAFA;
  --bg-secondary: #F5F5F5;
  --border: #E5E5E5;
  --success: #16A34A;
  --warning: #CA8A04;

  --font-sans: 'IBM Plex Sans', -apple-system, system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --t-xs: 0.7rem;
  --t-sm: 0.875rem;
  --t-base: 1rem;
  --t-lg: 1.125rem;
  --t-xl: 1.375rem;
  --t-2xl: 1.75rem;
  --t-3xl: clamp(2.25rem, 4vw, 3.5rem);

  --w-normal: 400;
  --w-medium: 500;
  --w-bold: 600;
  --w-heavy: 700;

  --width: 1280px;
  --pad: 24px;
  --pad-xs: 8px;
  --pad-sm: 16px;
  --radius: 8px;
  --anchor: 328px;  /* vertical left edge for hero + body text (aside-left 280 + gap 48) */
}

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

/* --- Base --- */
body {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: var(--w-normal);
  color: var(--text);
  line-height: 1.6;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container, .cn-inner, .footer .container { background: var(--bg); }

a { color: var(--brand-black); text-decoration: none; }
strong { color: var(--text-dark); }
main { flex: 1; }

/* Fonts: /fonts/locale.css?lang=… (per-page subsets, see fonts.go) */

/* --- Layout --- */
.container {
  max-width: var(--width);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* --- Hero --- */
.hero {
  padding: 64px 0 56px;
  text-align: left;
}

.hero.container {
  padding-left: calc(var(--pad) + var(--anchor));
}
@media (max-width: 900px) { .hero.container { padding-left: var(--pad); } }


.hero-header {
  font-size: var(--t-3xl);
  font-weight: var(--w-heavy);
  letter-spacing: -0.022em;
  line-height: 1.1;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.hero-body { max-width: 65ch; line-height: 1.8; margin-top: 16px; }

.hero-large { padding: 80px 0 48px; }
.hero-large .hero-header { font-size: clamp(2.5rem, 6vw, 4.5rem); letter-spacing: -0.028em; max-width: 16ch; }

.hero-lead {
  font-size: var(--t-lg);
  color: var(--text);
  max-width: 52ch;
  line-height: 1.75;
  margin-bottom: 24px;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}

.hero.hero-center {
  text-align: center;
  padding-left: var(--pad);
}

.hero.hero-center .hero-header {
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

.hero.hero-center .hero-lead {
  margin-left: auto;
  margin-right: auto;
}

.hero.hero-center .hero-buttons {
  justify-content: center;
}

/* --- Section --- */
.section {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  font-weight: var(--w-medium);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-red);
  margin-bottom: 12px;
}

.hero-center .section-eyebrow { text-align: center; }

.section-header {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: var(--w-bold);
  letter-spacing: -0.022em;
  line-height: 1.2;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.section-subheader {
  font-size: var(--t-xl);
  font-weight: var(--w-bold);
  color: var(--text-dark);
  margin-top: 40px;
  margin-bottom: 16px;
}

/* --- Dark section --- */
.section-dark {
  padding: 80px 0;
  background: var(--brand-black);
  color: #fff;
}
.section-dark .container { background: transparent; }

.section-dark .section-header { color: #fff; }
.section-dark .section-subheader { color: #fff; }
.section-dark .section-eyebrow { color: var(--brand-red); }
.section-dark p { color: rgba(255,255,255,0.7); }
.section-dark strong { color: #fff; }

/* Cards keep their own visual context: light background → dark text,
 * even when the parent section is dark. Without this, .section-dark p
 * paints body text white inside the light card and it disappears. */
.section-dark .card-feature p,
.section-dark .card-label p,
.section-dark .card-callout p,
.section-dark .card-feature li,
.section-dark .card-label li,
.section-dark .card-callout li { color: var(--text-secondary); }
.section-dark .card-feature strong,
.section-dark .card-label strong,
.section-dark .card-callout strong { color: var(--text-dark); }

/* --- auth-email widget --- */
.auth-email .form-group { margin-bottom: 1rem; }
.auth-email .btn-primary { width: 100%; margin-top: 0.5rem; }
.auth-email-error {
  color: var(--brand-red);
  font: 400 13px/1.4 var(--font-sans);
  margin: 0.25rem 0 0.75rem;
}
.auth-email-sent {
  font: 400 14px/1.5 var(--font-sans);
  color: var(--text);
  margin: 0 0 1rem;
}
.auth-email-sent strong { color: var(--text-dark); }
.auth-email-verified-line {
  font: 500 15px/1.5 var(--font-sans);
  color: var(--text-dark);
  margin: 0 0 0.5rem;
}
.auth-email-tick {
  display: inline-block;
  width: 22px; height: 22px; line-height: 22px;
  text-align: center;
  background: var(--brand-black);
  color: #fff;
  border-radius: 50%;
  font-size: 13px;
  margin-right: 6px;
  vertical-align: middle;
}
.auth-email-edit { font-size: 13px; }

.section-alt {
  background: var(--bg-secondary);
  padding: 2rem;
  border-radius: 8px;
  margin: 1.5rem 0;
}
.section-alt .container { padding: 0; background: transparent; }
.section-alt .section-header {
  font-size: var(--t-xl);
  margin: 0 0 1.25rem;
}
.section-alt .card-feature { background: var(--bg); }
.section-alt .grid-2,
.section-alt .grid-3 { margin-bottom: 0; }

/* --- CTA --- */
.cta { text-align: center; }

.cta-header {
  font-size: clamp(1.5rem, 4vw, 3rem);
  font-weight: var(--w-heavy);
  letter-spacing: -0.015em;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.cta-body {
  font-size: var(--t-lg);
  color: var(--text);
  max-width: 50ch;
  margin: 0 auto 16px;
}

.cta-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
}

.section-buttons { display: flex; gap: 12px; margin-top: 24px; margin-left: var(--anchor); }
@media (max-width: 900px) { .section-buttons { margin-left: 0; } }

/* --- Body content --- */
.section p {
  max-width: 65ch;
  margin-left: var(--anchor);
  margin-bottom: 1rem;
  line-height: 1.8;
}
.cta p { margin-left: 0; max-width: none; }

.section ul {
  max-width: 65ch;
  margin-left: var(--anchor);
  margin-bottom: 1rem;
  padding-left: 1.5em;
  line-height: 1.8;
  list-style-type: square;
}

.section-header, .section-subheader {
  max-width: 65ch;
  margin-left: auto;
  margin-right: auto;
}

/* Prose links only ( :not([class]) excludes .btn-primary/.btn-ghost etc.) */
.section a:not([class]) {
  color: var(--brand-red);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--brand-red);
}

.section a:not([class]):hover {
  color: var(--brand-red-dark);
  text-decoration-color: var(--brand-red-dark);
}

/* --- Inline elements --- */
strong { font-weight: var(--w-bold); }
code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--bg-secondary);
  padding: 2px 6px;
  border-radius: 4px;
}

.accent { color: var(--brand-red); }
.status-positive { color: var(--success); font-family: var(--font-mono); font-size: var(--t-xs); font-weight: var(--w-bold); letter-spacing: 0.05em; }
.status-warning { color: var(--warning); font-family: var(--font-mono); font-size: var(--t-xs); font-weight: var(--w-bold); letter-spacing: 0.05em; }
.status-negative { color: var(--brand-red); font-family: var(--font-mono); font-size: var(--t-xs); font-weight: var(--w-bold); letter-spacing: 0.05em; }
/* Unified "upcoming feature" pill — emitted by Folio [[text]] inline syntax. */
.badge-soon { display: inline-block; font: var(--w-bold) 0.6875rem/1.1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 10px; border-radius: 9999px; background: var(--brand-red-light); color: var(--brand-red-dark); vertical-align: middle; white-space: nowrap; }

/* --- Buttons --- */
.btn-primary, .btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: var(--t-base);
  font-weight: var(--w-medium);
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--brand-black);
  color: #fff;
}

.btn-primary:hover { background: #262626; }

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--brand-black);
}

.btn-ghost:hover { border-color: var(--brand-black); }

/* --- Tables --- */
/* Tables — outlined block with an inverted header. Uses existing tokens
   (--pad horizontal, --t-xs vertical, --border outline). No row dividers
   inside; the outer border and the inverted header define the block. */
table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border);
  margin: 1.25em 0 1.75em;
}

th {
  text-align: left;
  vertical-align: middle;
  padding: var(--pad-xs) var(--pad);
  background: var(--brand-black);
  color: #fff;
  font-family: var(--font-sans);
  font-weight: var(--w-bold);
  font-size: var(--t-base);
  white-space: nowrap;
}

td {
  padding: var(--pad-xs) var(--pad);
  font-size: var(--t-base);
  vertical-align: top;
  color: var(--text);
  line-height: 1.5;
}


/* --- Aside --- */
.aside {
  padding: 28px 0;
  border-top: 1px solid var(--border);
}
.aside + .aside:has(.aside-left:empty) { border-top: none; padding-top: 0; }

.aside-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: flex-start;
}

.aside-left {
  position: sticky;
  top: 80px;
}

.aside-eyebrow {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  font-weight: var(--w-medium);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-red);
  margin-bottom: 4px;
}

.aside-header {
  font-size: var(--t-xl);
  font-weight: var(--w-heavy);
  line-height: 1.15;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.aside-subtitle {
  font-size: var(--t-sm);
  color: var(--text);
  line-height: 1.5;
}

.aside-body {
  padding-top: 22px;
  padding-bottom: 16px;
}

.aside-body p {
  line-height: 1.8;
  margin-bottom: 1rem;
}

.aside-body p:has(+ ul) {
  margin-bottom: 0;
}

.aside-body ul {
  margin: 0 0 1rem 0;
  padding: 0 0 0 1.2em;
  line-height: 1.8;
  list-style-type: square;
}

.aside-body a:not([class]) {
  color: var(--brand-red);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--brand-red);
}

.aside-body a:not([class]):hover {
  color: var(--brand-red-dark);
  text-decoration-color: var(--brand-red-dark);
}

@media (max-width: 800px) {
  .aside-layout { grid-template-columns: 1fr; gap: 24px; }
  .aside-left { position: static; }
}

/* --- Grid --- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-bottom: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-bottom: 24px; }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* --- Card feature --- */
.card-feature {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.card-feature .section-header,
.card-feature .section-subheader,
.card-label .section-header,
.card-label .section-subheader {
  font-size: 1.25rem;
  font-weight: var(--w-bold);
  color: var(--text-dark);
  margin-top: 0;
  margin-bottom: 8px;
  margin-left: 0;
  margin-right: 0;
}

.card-feature p, .card-label p { margin-left: 0; margin-bottom: 0.75rem; max-width: none; }
.card-feature .code-block, .card-label .code-block, .tab-text .code-block, .aside-body .code-block { margin-left: 0; }
.card-feature p:last-child, .card-label p:last-child { margin-bottom: 0; }
.card-feature ul, .card-label ul, .card-callout ul { margin-left: 0; max-width: none; }

/* --- Card label --- */
.card-label {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
}

.card-label-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.04em;
  color: var(--text-light);
}


/* --- Card callout --- */
.card-callout {
  padding: var(--pad);
  border-left: 3px solid var(--brand-red);
  background: rgba(220, 38, 38, 0.025);
}

.card-callout-header {
  font-size: var(--t-lg);
  font-weight: var(--w-bold);
  color: var(--brand-black);
  margin-bottom: var(--pad-xs);
}

.card-callout p, .card-callout-body { line-height: 1.6; margin-left: 0; max-width: none; color: var(--text); }

/* --- Card color modifiers --- */
.card-red { border-color: var(--brand-red); background: rgba(220,38,38,0.02); }
.card-red .section-header { color: var(--brand-red); }
.card-alt { background: var(--bg-secondary); }
.card-gold { border-color: #D4AF37; background: rgba(212,175,55,0.04); }
.card-featured { border-color: var(--brand-black); background: var(--brand-black); color: #fff; }
.card-feature.card-featured .section-header,
.card-feature.card-featured .section-subheader { color: #fff; }
.card-feature.card-featured p { color: rgba(255,255,255,0.75); }
.card-feature.card-featured li { color: rgba(255,255,255,0.75); }
.card-feature.card-featured strong { color: #fff; }
.card-feature.card-featured .btn-primary { background: #fff; color: var(--brand-black); }
.card-feature.card-featured .btn-primary:hover { background: #f0f0f0; }

.card-feature .btn-primary,
.card-feature .btn-ghost { display: flex; justify-content: center; width: 100%; margin: 16px 0; }

/* --- List --- */
.folio-list {
  list-style-type: square;
  margin: 0 0 1rem 1.5em;
  padding: 0;
}

.folio-list-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 32px;
}

@media (max-width: 600px) { .folio-list-2 { grid-template-columns: 1fr; } }

/* --- Pricing --- */
.pricing { padding: 0 0 48px; }
.pricing-header { display: flex; align-items: baseline; gap: 32px; margin-bottom: 32px; margin-left: var(--anchor); }
.pricing-header-wide { margin-left: 0; }
.pricing-header .section-header { margin-bottom: 0; }
.pricing-controls { display: flex; align-items: center; gap: 32px; }
.pricing-toggle { display: inline-flex; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius); }
.pricing-toggle-btn { padding: 10px 24px; font: 500 15px/1 var(--font-sans); color: var(--text); text-decoration: none; transition: background 150ms, color 150ms; }
.pricing-toggle-btn.active { background: #fff; color: var(--brand-black); box-shadow: 0 1px 3px rgba(0,0,0,0.08); border-radius: calc(var(--radius) - 1px); }
.pricing-audience { display: inline-flex; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 999px; padding: 4px; }
.pricing-audience-btn { padding: 8px 24px; font: 500 14px/1 var(--font-sans); color: var(--text); background: transparent; border: 0; border-radius: 999px; cursor: pointer; transition: background 150ms, color 150ms; }
.pricing-audience-btn.active { background: var(--brand-black); color: #fff; }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.pricing-grid[hidden] { display: none; }
.pricing-grid-narrow { margin-left: var(--anchor); }
@media (max-width: 900px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .pricing-grid { grid-template-columns: 1fr; } }

.plan { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; position: relative; }
.plan-featured { background: var(--brand-black); border-color: var(--brand-black); border-width: 2px; color: #fff; }
.plan-ribbon { position: absolute; top: -1px; right: 24px; background: var(--brand-red); color: #fff; font: 500 11px/1 var(--font-mono); letter-spacing: 0.05em; text-transform: uppercase; padding: 6px 12px; border-radius: 0 0 6px 6px; }
.plan-tier { font: 600 20px/1.2 var(--font-sans); color: var(--brand-black); margin-bottom: 4px; }
.plan-featured .plan-tier { color: #fff; }
.plan-sub { font-size: 13px; color: var(--text-light); min-height: 38px; margin-bottom: 16px; }
.plan-featured .plan-sub { color: rgba(255,255,255,0.7); }
.plan-price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.plan-amt { font: 700 56px/1 var(--font-sans); color: var(--brand-black); }
.plan-featured .plan-amt { color: #fff; }
.plan-per { font-size: 15px; color: var(--text-light); white-space: nowrap; }
.plan-featured .plan-per { color: rgba(255,255,255,0.6); }
.plan-pfl { font-size: 12px; color: var(--text-light); margin-bottom: 16px; }
.plan-featured .plan-pfl { color: rgba(255,255,255,0.6); }
.plan-cta { display: flex; justify-content: center; padding: 12px 16px; border-radius: var(--radius); font: 500 14px/1 var(--font-sans); text-decoration: none; }
.plan-cta-ghost { background: #fff; border: 1px solid var(--border); color: var(--brand-black); }
.plan-cta-ghost:hover { border-color: var(--brand-black); }
.plan-cta-primary { background: #fff; border: 1px solid #fff; color: var(--brand-black); }
.plan-cta-primary:hover { background: #f0f0f0; }
.plan-highlights { list-style: none; padding: 20px 0 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.plan-highlights li { font-size: 13.5px; display: flex; align-items: center; gap: 10px; }
.plan-highlights li::before { content: ''; width: 5px; height: 5px; background: var(--brand-black); border-radius: 50%; flex: none; }
.plan-featured .plan-highlights li::before { background: #fff; }
.plan-featured strong { color: #fff; }

/* --- Country picker --- */
.country-picker { font-size: 13px; color: var(--text-light); display: flex; align-items: center; gap: 8px; }
.country-picker .country-selector-trigger { padding: 8px 12px; }
.country-picker .country-selector { max-width: none; }

/* --- Compare --- */
.compare { margin: 0; padding: 0; }
.compare-table { width: 100%; border-collapse: collapse; font: 400 14px/1.5 var(--font-sans); border: 1px solid var(--border); overflow: hidden; background: #fff; }
.compare-table thead th { position: sticky; top: 0; z-index: 2; background: #fff; border-bottom: 1px solid var(--border); padding: 20px 16px; text-align: center; font: 600 15px/1.2 var(--font-sans); color: var(--brand-black); vertical-align: bottom; }
.compare-table thead th:first-child { text-align: left; width: 36%; }
.compare-col { width: 16%; }
.compare-group td { background: var(--bg-secondary); font: 600 13px/1 var(--font-sans); color: var(--brand-black); padding: 16px; text-transform: uppercase; letter-spacing: 0.04em; }
.compare-feature { font-weight: 500; padding: 14px 16px; color: var(--text-dark); }
.compare-hint { display: block; font: 400 12px/1.4 var(--font-sans); color: var(--text-light); margin-top: 2px; }
.compare-cell { text-align: center; padding: 14px 16px; color: var(--text); font-variant-numeric: tabular-nums; }
.compare-table tbody tr { border-top: 1px solid var(--border); }
.compare-cell.compare-featured { background: rgba(10,10,10,0.02); }
.compare-table thead .compare-featured { background: rgba(10,10,10,0.02); }
.chk, .x { display: inline-block; width: 18px; height: 18px; position: relative; }
.chk::before, .chk::after { content: ''; position: absolute; background: var(--brand-black); border-radius: 1px; }
.chk::before { width: 6px; height: 2px; left: 2px; top: 8px; transform: rotate(45deg); }
.chk::after { width: 12px; height: 2px; left: 5px; top: 6px; transform: rotate(-45deg); }
.x::before, .x::after { content: ''; position: absolute; width: 2px; height: 14px; background: var(--border); top: 2px; left: 8px; border-radius: 1px; }
.x::before { transform: rotate(45deg); }
.x::after { transform: rotate(-45deg); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin: 0 2px; }
.dot-on { background: var(--brand-black); }
.dot-half { background: var(--text-light); }
.dot-off { border: 1.5px solid var(--border); background: none; }
@media (max-width: 768px) { .compare { overflow-x: auto; } }

/* --- Map --- */
.hp-map { padding: 80px 0; }
.hp-map-wrap { margin: 0 auto; position: relative; }
.hp-map-wrap svg { width: 100%; height: auto; display: block; }
.hp-map-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin: 24px 0 0; font-size: 0.875rem; color: var(--text); }
.hp-map-stats { display: flex; gap: 32px; }
.hp-map-stat { display: flex; flex-direction: column; gap: 2px; }
.hp-map-stat .num { font-family: var(--font-mono); font-size: 1.5rem; font-weight: 700; color: var(--brand-black); line-height: 1; }
.hp-map-stat .lbl { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-light); }
@media (max-width: 700px) { .hp-map-stats { gap: 20px; } }

/* --- Code --- */
.code-block { background: var(--brand-black); border-radius: var(--radius); padding: 1.5rem; font-family: var(--font-mono); font-size: 0.9375rem; overflow-x: auto; line-height: 1.7; color: #d1d5db; margin-left: var(--anchor); margin-bottom: 1.5rem; }
.code-block pre { margin: 0; color: #d1d5db; white-space: pre-wrap; word-break: break-word; }

/* --- FAQ --- */
.faq { padding: 48px 0; border-top: 1px solid var(--border); }
.faq-header { font: 700 clamp(1.5rem, 3vw, 2.25rem)/1.1 var(--font-sans); letter-spacing: -0.015em; color: var(--brand-black); margin-bottom: 32px; }
.faq details { border-top: 1px solid var(--border); padding: 20px 0; }
.faq details:last-child { border-bottom: 1px solid var(--border); }
.faq summary { font: 500 16px/1.4 var(--font-sans); color: var(--brand-black); cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font: 400 24px/1 var(--font-sans); color: var(--text-light); transition: transform 180ms; }
.faq details[open] summary::after { content: '−'; }
.faq details p { font: 400 15px/1.7 var(--font-sans); color: var(--text); margin-top: 16px; max-width: 70ch; }

/* --- POP cards --- */
.pop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.pop-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; transition: transform 0.15s; }
.pop-card-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; }
.pop-card-city { font-size: var(--t-lg); font-weight: var(--w-bold); color: var(--text-dark); line-height: 1.3; }
.pop-card-country { font-family: var(--font-mono); font-size: var(--t-xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-light); margin-top: 2px; }
.pop-card-badge { font-family: var(--font-mono); font-size: var(--t-xs); font-weight: var(--w-bold); letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 10px; border-radius: 4px; white-space: nowrap; }
.pop-card-live { background: var(--brand-black); color: #fff; }
.pop-card-planned { background: var(--bg-secondary); color: var(--text-light); }
.pop-card-outage { background: var(--brand-red); color: #fff; }
.pop-card-latency { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 16px; }
.pop-card-latency-left { display: flex; flex-direction: column; gap: 2px; }
.pop-card-latency-title { font-size: var(--t-sm); color: var(--text); }
.pop-card-latency-hint { font-size: var(--t-xs); color: var(--text-light); }
.pop-card-latency-value { font-size: 1.5rem; font-weight: var(--w-heavy); line-height: 1; }
.pop-card-details { border-top: 1px solid var(--border); padding-top: 12px; }
.pop-card-row { display: flex; justify-content: space-between; font-size: var(--t-sm); padding: 4px 0; }
.pop-card-row span:last-child { font-family: var(--font-mono); color: var(--text-light); }
.pop-fast { color: var(--success); }
.pop-ok { color: var(--warning); }
.pop-slow { color: var(--brand-red); }
.pop-picker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.pop-picker { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; cursor: pointer; transition: border-color 0.15s; }
.pop-picker:hover { border-color: var(--brand-black); }
.pop-picker.selected { border-color: var(--brand-black); background: var(--bg-secondary); }
.pop-picker-city { font-weight: var(--w-bold); color: var(--text-dark); }
.pop-picker-country { font-size: var(--t-sm); color: var(--text-light); }
.pop-picker-latency { font-size: 1.25rem; font-weight: var(--w-heavy); margin-top: 8px; }
@media (max-width: 900px) { .pop-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .pop-grid { grid-template-columns: 1fr; } }

/* --- Tabs --- */
.tabs { border-top: 1px solid var(--border); padding: 48px 0; }
.tabs-triggers { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin-bottom: 40px; }
.tabs-trigger { display: flex; flex-direction: column; gap: 6px; padding: 20px 24px; text-align: left; background: none; border: none; border-bottom: 2px solid var(--border); cursor: pointer; transition: background 0.15s, border-color 0.15s; font-family: var(--font-sans); }
.tabs-trigger:hover { background: var(--bg-secondary); }
.tabs-trigger.active { border-bottom-color: var(--brand-red); background: var(--bg-secondary); }
.tabs-trigger-title { font-size: var(--t-base); font-weight: var(--w-bold); color: var(--text-dark); }
.tabs-trigger-blurb { font-size: var(--t-sm); color: var(--text); line-height: 1.45; }
.tabs-panel { display: none; }
.tabs-panel.active { display: block; }
.tab-content { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 0 var(--pad); max-width: var(--width); margin: 0 auto; }
.tab-text { padding: 0; }
.tab-text .section-header { margin-left: 0; margin-bottom: 16px; }
.tab-text .section-eyebrow { margin-bottom: 8px; }
.tab-text p { margin-left: 0; max-width: none; }
.tab-text ul { margin-left: 0; max-width: none; }
.tab-text .section-buttons { margin-left: 0; }
.tab-visual { display: flex; align-items: center; justify-content: center; }
.tab-visual svg { width: 100%; height: auto; max-height: 400px; }
@media (max-width: 900px) { .tabs-triggers { grid-template-columns: repeat(3, 1fr); } .tab-content { grid-template-columns: 1fr; } .tab-visual { order: -1; } }
@media (max-width: 600px) { .tabs-triggers { grid-template-columns: 1fr 1fr; } }

/* --- Blog --- */
.blog-card { text-decoration: none; color: inherit; transition: transform 0.2s, box-shadow 0.2s; }
.blog-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,0,0,0.08); }
.blog-summary { color: var(--text); font-size: var(--t-sm); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-empty { text-align: center; padding: 80px 0; color: var(--text-light); font-size: var(--t-lg); }

/* --- Illustration (named static SVG via :::illustration name=…) --- */
.illustration { margin: 0 auto; max-width: 800px; padding: 0; }
.illustration > svg { display: block; width: 100%; height: auto; max-width: 100%; }
.illustration-caption { margin-top: 12px; font-family: var(--font-mono); font-size: var(--t-xs); color: var(--text-light); text-align: center; letter-spacing: 0.06em; text-transform: uppercase; }
.illustration-error { padding: 16px; border: 1px dashed var(--brand-red); color: var(--brand-red); font-family: var(--font-mono); font-size: var(--t-sm); text-align: center; }

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero { padding: 48px 0 32px; }
  .section { padding: 40px 0; }
  .hero-header { font-size: 1.75rem; }
  .hero-buttons, .cta-buttons { flex-direction: column; align-items: center; }
}
/* === BRAND / VAULTNAME === */
.vaultname         { font-family: var(--font-mono); font-weight: 700; color: var(--text); }

/* === LOGO LOCKUP === */
/* :::mark and :::logo — verbatim carry-over of the original working lockup,
   only the class names changed. Authored at 80px square (the known-good
   visual). For other sizes, transform: scale() is applied via inline style. */
.mark          { display: inline-block; width: 80px; height: 80px; background: var(--brand-black); flex-shrink: 0; transform-origin: left center; }
.logo          { display: inline-flex; gap: 20px; align-items: stretch; text-decoration: none; color: inherit; transform-origin: left center; }
.logo-text     { display: flex; flex-direction: column; justify-content: space-between; height: 80px; }
.logo-wordmark { font-family: var(--font-sans); font-size: 56px; font-weight: 700; letter-spacing: 0.25em; text-transform: uppercase; color: var(--brand-black); line-height: 1; }
.logo-tagline  { font-family: var(--font-sans); font-size: 16px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-tertiary); line-height: 1; margin-bottom: -2px; }

/* Legacy `.logo-lockup-*` classes — still used by templates/signup.tmpl. */
.logo-lockup            { display: inline-flex; gap: 20px; align-items: stretch; }
.logo-lockup-square     { width: 80px; height: 80px; background: var(--brand-black); flex-shrink: 0; }
.logo-lockup-text       { display: flex; flex-direction: column; justify-content: space-between; height: 80px; }
.logo-lockup-wordmark   { font-family: var(--font-sans); font-size: 56px; font-weight: 700; letter-spacing: 0.25em; text-transform: uppercase; color: var(--brand-black); line-height: 1; }
.logo-lockup-tagline    { font-size: 16px; font-weight: 500; color: var(--text-tertiary); letter-spacing: 0.22em; text-transform: uppercase; line-height: 1; margin-bottom: -2px; }
.logo-lockup-nav        { transform: scale(0.50); transform-origin: left center; }

/* === NAV (Bold) === */
.cn { font-family: var(--font-sans); color: var(--text); }
/* Top utility bar: announcement (left) + utility links (right) */
.cn-utility { background: var(--brand-black); color: #fff; }
.cn-utility-inner { max-width: var(--width); margin: 0 auto; padding: 0 24px; min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 24px; font: 500 13px/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; }
.cn-utility-announce { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; color: rgba(255,255,255,0.92); }
.cn-utility-announce:empty { display: none; }
.cn-utility-announce .tag { font: 500 11px/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand-red); padding: 4px 8px; border: 1px solid rgba(220,38,38,0.4); border-radius: 9999px; }
.cn-utility-announce a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.3); padding-bottom: 1px; }
.cn-utility-announce a:hover { border-bottom-color: #fff; }
.cn-utility-links { display: flex; align-items: center; gap: 28px; }
.cn-utility-links a { color: rgba(255,255,255,0.92); text-decoration: none; transition: color 100ms; }
.cn-utility-links a:hover { color: #fff; }
@media (max-width: 720px) { .cn-utility-announce { display: none; } .cn-utility-inner { justify-content: flex-end; } .cn-utility-links { gap: 18px; font-size: 11px; } }
.cn-nav { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--border); }
.cn-inner { max-width: var(--width); margin: 0 auto; padding: 0 24px; height: 64px; display: flex; align-items: center; gap: 0; }
.cn-brand { display: inline-flex; align-items: center; text-decoration: none; flex: none; width: var(--anchor); overflow: visible; }
.cn-links { display: flex; align-items: center; gap: 4px; margin-left: 0; }
.cn-links > * { position: relative; }
.cn-links > :first-child .cn-trigger,
.cn-links > :first-child.cn-link { padding-left: 0; }
.cn-link, .cn-trigger { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 8px; font: 500 14px/1 var(--font-sans); color: var(--text); text-decoration: none; background: none; border: 0; cursor: pointer; transition: background 100ms; }
.cn-link:hover, .cn-trigger:hover { background: rgba(10,10,10,0.04); }
.cn-trigger .chev { width: 10px; height: 10px; border-right: 1.5px solid var(--text-tertiary); border-bottom: 1.5px solid var(--text-tertiary); transform: rotate(45deg) translate(-1px, -1px); transition: transform 150ms; }
.cn-trigger[aria-expanded="true"] { background: rgba(10,10,10,0.04); }
.cn-trigger[aria-expanded="true"] .chev { transform: rotate(-135deg) translate(-1px, -1px); }
.cn-trigger.active { font-weight: 600; }
.cn-link.active { font-weight: 600; }
.cn-link.has-dot::before { content: ''; width: 6px; height: 6px; background: var(--success); border-radius: 50%; margin-right: 2px; }
.cn-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.cn-lang { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 8px; background: none; border: 0; cursor: pointer; font: 500 13px/1 var(--font-sans); color: var(--text-secondary); }
.cn-lang:hover { background: rgba(10,10,10,0.04); color: var(--text); }
.cn-lang .chev { width: 8px; height: 8px; border-right: 1.5px solid var(--text-tertiary); border-bottom: 1.5px solid var(--text-tertiary); transform: rotate(45deg) translate(-1px, -1px); }
.cn-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 8px; font: 500 14px/1 var(--font-sans); letter-spacing: -0.003em; border: 1px solid transparent; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background 100ms, border-color 100ms, transform 100ms; }
.cn-btn .price { white-space: nowrap; }
.cn-btn-ghost { color: var(--text); background: none; }
.cn-btn-ghost:hover { background: rgba(10,10,10,0.04); }
.cn-btn-user { color: var(--text-dark); background: transparent; border-color: transparent; padding: 10px 4px; max-width: 18rem; overflow: hidden; text-overflow: ellipsis; margin-left: auto; }
.cn-btn-user:hover { color: var(--brand-black); }
.cn-btn-primary { background: var(--brand-black); color: #fff; }
.cn-btn-primary:hover { background: #262626; }
.cn-btn-primary:active { background: #000; transform: translateY(1px); }
.cn-btn-primary .price { font: 500 11px/1 var(--font-mono); letter-spacing: 0.05em; color: rgba(255,255,255,0.7); padding-left: 8px; margin-left: 4px; border-left: 1px solid rgba(255,255,255,0.25); }
.cn-btn-2line { flex-direction: column; gap: 2px; padding: 8px 16px; line-height: 1.2; }
.cn-btn-2line .price { border-left: 0; padding-left: 0; margin-left: 0; }
.cn-hamburger { display: none; padding: 10px; border-radius: 8px; background: none; border: 0; cursor: pointer; }
.cn-hamburger span { display: block; width: 22px; height: 1.5px; background: var(--text); margin: 5px 0; transition: transform 200ms; }

/* Mega-menu */
.cn-mega-wrap { position: absolute; top: calc(100% + 10px); left: 0; opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity 150ms, transform 150ms, visibility 150ms; pointer-events: none; z-index: 60; padding-top: 10px; margin-top: -10px; }
.cn-has-mega:hover .cn-mega-wrap, .cn-has-mega:focus-within .cn-mega-wrap { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
.cn-has-mega.cn-has-mega.open > .cn-mega-wrap { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
.cn-mega { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 24px; min-width: 420px; display: grid; gap: 24px; }
.cn-mega.wide { min-width: 720px; grid-template-columns: 1.2fr 1fr; }
.cn-mega.cn-mega-3col { min-width: 860px; grid-template-columns: 1fr 1fr 1fr; }
.cn-mega-list-single { grid-template-columns: 1fr; }
.cn-mega-list-2col { grid-template-columns: 1fr 1fr; gap: 8px 24px; }
.cn-mega .sec-label { font: 500 10px/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand-red); margin-bottom: 12px; }
.cn-mega .sec-blurb { font: 400 13px/1.5 var(--font-sans); color: var(--text-secondary); margin: 0 0 16px; max-width: 44ch; }
.cn-mega-list { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.cn-mega-item { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 8px; text-decoration: none; color: inherit; transition: background 100ms; }
.cn-mega-item:hover { background: var(--bg-secondary); }
.cn-mega-item .sq { width: 28px; height: 28px; background: var(--brand-black); flex: none; display: flex; align-items: center; justify-content: center; color: #fff; font: 600 11px/1 var(--font-mono); }
.cn-mega-item.new .sq { background: var(--brand-red); }
.cn-mega-item .text { min-width: 0; }
.cn-mega-item .t { font: 500 13.5px/1.3 var(--font-sans); color: var(--text); margin: 0 0 2px; display: flex; align-items: center; gap: 6px; }
.cn-mega-item .t .pill { font: 500 9px/1 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; padding: 2px 6px; border-radius: 9999px; background: var(--brand-red-light); color: var(--brand-red-dark); }
.cn-mega-item .d { font: 400 12px/1.4 var(--font-sans); color: var(--text-tertiary); margin: 0; }
.cn-mega .rail { background: var(--bg-secondary); border-radius: 8px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.cn-mega .rail .sec-label { color: var(--text-tertiary); }
.cn-mega .rail .headline { font: 600 18px/1.3 var(--font-sans); color: var(--brand-black); margin: 0; letter-spacing: -0.01em; }
.cn-mega .rail .blurb { font: 400 13px/1.55 var(--font-sans); color: var(--text-secondary); margin: 0; }
.cn-mega .rail .cta { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font: 500 13px/1 var(--font-sans); color: var(--brand-black); text-decoration: none; padding-top: 8px; }
.cn-mega .rail .cta:hover { text-decoration: underline; text-underline-offset: 3px; }
.cn-mega .rail .cta::after { content: '\2192'; }
.cn-nav.cn-bold .cn-mega.wide { min-width: 820px; grid-template-columns: 1.3fr 1fr; padding: 32px; }
.cn-nav.cn-bold .cn-mega.cn-mega-3col { min-width: 920px; padding: 32px; }
.cn-mega-wrap:has(.cn-mega-3col) { left: 50%; transform: translateX(-50%) translateY(-4px); }
.cn-has-mega:hover .cn-mega-wrap:has(.cn-mega-3col),
.cn-has-mega:focus-within .cn-mega-wrap:has(.cn-mega-3col),
.cn-has-mega.open > .cn-mega-wrap:has(.cn-mega-3col) { transform: translateX(-50%) translateY(0); }
.cn-mega.cn-mega-4col { min-width: 900px; grid-template-columns: 1fr 1fr 1fr 1fr; }
.cn-nav.cn-bold .cn-mega.cn-mega-4col { min-width: 960px; padding: 32px; }
.cn-mega-wrap:has(.cn-mega-4col) { left: 50%; transform: translateX(-50%) translateY(-4px); }
.cn-has-mega:hover .cn-mega-wrap:has(.cn-mega-4col),
.cn-has-mega:focus-within .cn-mega-wrap:has(.cn-mega-4col),
.cn-has-mega.open > .cn-mega-wrap:has(.cn-mega-4col) { transform: translateX(-50%) translateY(0); }
.cn-mega.cn-mega-clean { gap: 40px; }
.cn-mega.cn-mega-clean .sec-label { font-size: 11px; letter-spacing: 0.08em; margin-bottom: 16px; }
.cn-mega.cn-mega-clean .cn-mega-item { padding: 8px 0; }
.cn-mega.cn-mega-clean .cn-mega-item .t { font-size: 14px; font-weight: 500; margin-bottom: 4px; }
.cn-mega.cn-mega-clean .cn-mega-item .d { font-size: 12px; line-height: 1.5; }
.cn-mega.cn-mega-3col { min-width: 980px; grid-template-columns: 1fr 1fr 1.2fr; }
.cn-nav.cn-bold .cn-mega.cn-mega-3col { min-width: 1040px; padding: 32px; }
.cn-mega-wrap:has(.cn-mega-3col) { left: 50%; transform: translateX(-50%) translateY(-4px); }
.cn-has-mega:hover .cn-mega-wrap:has(.cn-mega-3col),
.cn-has-mega:focus-within .cn-mega-wrap:has(.cn-mega-3col),
.cn-has-mega.open > .cn-mega-wrap:has(.cn-mega-3col) { transform: translateX(-50%) translateY(0); }
.cn-mega.cn-mega-deep { gap: 32px; }
.cn-mega.cn-mega-deep .sec-label { font-size: 11px; letter-spacing: 0.08em; margin-bottom: 16px; }
.cn-mega.cn-mega-deep .cn-mega-item { padding: 6px 0; }
.cn-mega.cn-mega-deep .cn-mega-item .t { font-size: 13.5px; font-weight: 500; margin-bottom: 2px; }
.cn-mega.cn-mega-deep .cn-mega-item .d { font-size: 11.5px; line-height: 1.45; color: var(--text-tertiary); }
.cn-mega-map-col { display: flex; flex-direction: column; }
.cn-mega-map { position: relative; display: block; width: 100%; aspect-ratio: 1000/460; border-radius: 8px; overflow: hidden; background: var(--bg-secondary); margin-bottom: 8px; text-decoration: none; }
.cn-mega-map svg { width: 100%; height: 100%; display: block; }
.cn-mega-map-stat { position: absolute; bottom: 12px; left: 12px; display: flex; align-items: baseline; gap: 6px; }
.cn-mega-map-stat .num { font: 600 24px/1 var(--font-sans); color: #DC2626; }
.cn-mega-map-stat .lbl { font: 500 11px/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-secondary); }
.cn-has-mega:has(.cn-mega-deep) { position: static; }
.cn-mega-wrap:has(.cn-mega-deep) { position: absolute; left: 50%; transform: translateX(-50%) translateY(-4px); top: 56px; }
.cn-has-mega:hover .cn-mega-wrap:has(.cn-mega-deep),
.cn-has-mega:focus-within .cn-mega-wrap:has(.cn-mega-deep),
.cn-has-mega.open > .cn-mega-wrap:has(.cn-mega-deep) { transform: translateX(-50%) translateY(0); }
.cn-mega.cn-mega-2col { min-width: 860px; grid-template-columns: 1.2fr 1fr; }
.cn-nav.cn-bold .cn-mega.cn-mega-2col { min-width: 920px; padding: 32px; }
.cn-mega-wrap:has(.cn-mega-2col) { left: 50%; transform: translateX(-50%) translateY(-4px); }
.cn-has-mega:hover .cn-mega-wrap:has(.cn-mega-2col),
.cn-has-mega:focus-within .cn-mega-wrap:has(.cn-mega-2col),
.cn-has-mega.open > .cn-mega-wrap:has(.cn-mega-2col) { transform: translateX(-50%) translateY(0); }
.cn-nav.cn-bold .cn-mega-item .sq { width: 32px; height: 32px; }
.cn-nav.cn-bold .cn-mega-item .t { font-size: 14.5px; font-weight: 600; }

/* Language menu */
/* User menu — same hover/open mechanics as .cn-lang-wrap, narrower panel. */
.cn-user-wrap { position: relative; display: inline-block; }
.cn-user-menu { position: absolute; top: calc(100% + 10px); right: 0; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 6px; min-width: 200px; opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity 150ms, transform 150ms, visibility 150ms; z-index: 60; }
.cn-user-wrap:hover .cn-user-menu, .cn-user-wrap:focus-within .cn-user-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.cn-user-item { display: block; padding: 8px 12px; border-radius: 8px; font: 500 14px/1.2 var(--font-sans); color: var(--text); text-decoration: none; }
.cn-user-item:hover { background: var(--bg-alt, #FAFAF7); }

.cn-lang-wrap { position: relative; }
.cn-lang-menu { position: absolute; top: calc(100% + 10px); right: 0; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 12px; min-width: 280px; opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity 150ms, transform 150ms, visibility 150ms; z-index: 60; }
.cn-lang-wrap:hover .cn-lang-menu, .cn-lang-wrap:focus-within .cn-lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.cn-lang-wrap.cn-lang-wrap.open > .cn-lang-menu { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
.cn-lang-menu-label { font: 500 10px/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-tertiary); padding: 6px 10px 10px; }
.cn-lang-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.cn-lang-item { padding: 8px 10px; border-radius: 8px; font: 400 13px/1 var(--font-sans); color: var(--text); text-decoration: none; cursor: pointer; }
.cn-lang-item:hover { background: var(--bg-secondary); }
.cn-lang-item.active { background: rgba(10,10,10,0.06); font-weight: 500; }

/* Mobile drawer */
.cn-drawer { position: fixed; inset: 0; z-index: 100; background: #fff; display: none; flex-direction: column; }
.cn-drawer.open { display: flex; }
.cn-drawer-head { height: 64px; padding: 0 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.cn-drawer-close { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: none; border: 0; cursor: pointer; border-radius: 8px; position: relative; }
.cn-drawer-close::before, .cn-drawer-close::after { content: ''; position: absolute; width: 18px; height: 1.5px; background: var(--text); }
.cn-drawer-close::before { transform: rotate(45deg); }
.cn-drawer-close::after { transform: rotate(-45deg); }
.cn-drawer-body { flex: 1; overflow: auto; padding: 16px 20px 32px; }
.cn-drawer-section { border-top: 1px solid var(--border); padding: 12px 0; }
.cn-drawer-section:first-child { border-top: 0; }
.cn-drawer-section .label { font: 500 10px/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand-red); padding: 8px 0; }
.cn-drawer-link, .cn-drawer-sub { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 4px; font: 500 16px/1 var(--font-sans); color: var(--text); text-decoration: none; border-bottom: 1px solid var(--border); }
.cn-drawer-link:last-child, .cn-drawer-sub:last-child { border-bottom: 0; }
.cn-drawer-sub .d { font: 400 12px/1.4 var(--font-mono); color: var(--text-tertiary); margin-top: 3px; }
.cn-drawer-foot { padding: 16px 20px; border-top: 1px solid var(--border); display: flex; gap: 10px; }
.cn-drawer-foot .cn-btn { flex: 1; justify-content: center; }

/* Nav mobile collapse */
@media (max-width: 900px) {
  .cn-inner { height: 64px; }
  .cn-links, .cn-right > :not(.cn-hamburger):not(.cn-btn-primary) { display: none; }
  .cn-right > .cn-btn-primary { padding: 8px 12px; font-size: 13px; }
  .cn-right > .cn-btn-primary .price { display: none; }
  .cn-hamburger { display: inline-flex; flex-direction: column; }
}

/* === CHECKOUT — Step 1 layout ===
   Adapted from clavitor-design-system/ui_kits/checkout/checkout.css.
   Class names live under .co-* to keep the scope local to the page. */
:root {
  --fg1: var(--text-dark);
  --fg2: var(--text);
  --fg3: var(--text-light);
  --border-strong: #D4D4D4;
  --bg-tertiary: #EEEEEE;
}

.co { min-height: 100vh; background: var(--bg-secondary); font-family: var(--font-sans); color: var(--fg1); }
.co *, .co *::before, .co *::after { box-sizing: border-box; }
.co [hidden] { display: none !important; }

/* Top bar with brand + secure indicator */
.co-nav { background: #fff; border-bottom: 1px solid var(--border); padding: 14px 24px; }
.co-nav-inner { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.co-nav-brand { display: inline-flex; align-items: center; text-decoration: none; color: var(--brand-black); }
.co-secure { font: 400 12px/1.4 var(--font-sans); color: var(--fg2); display: inline-flex; align-items: center; gap: 8px; }
.co-secure .dot { width: 6px; height: 6px; background: var(--success); border-radius: 50%; box-shadow: 0 0 0 2px rgba(22,163,74,0.20); }

.checkout-free .paid-only {
    display: none;
}
.co-secure .mono { font-family: var(--font-mono); color: var(--fg1); }
@media (max-width: 700px) { .co-secure { font-size: 11px; } }

/* Forms inside checkout don't get the narrow form max-width */
.co .folio-form { max-width: none; margin: 0; }

/* Checkout uses centered hero layout — buttons in body, "or" divider. */
.co .section-buttons + p { display: flex; align-items: center; gap: 14px; margin: 24px auto; max-width: 360px; text-align: center; font: 500 11px/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg3); }
.co .form-actions { display: block; margin: 0; padding: 0; margin-left: var(--anchor); }
@media (max-width: 900px) { .co .form-actions { margin-left: 0; } }
.co .form-actions .btn-primary { display: block; width: 100%; padding: 14px 28px; border-radius: 8px; font: 500 15px/1 var(--font-sans); text-align: center; }
.co .form-actions .btn-primary:disabled { background: var(--bg-tertiary); color: var(--text-light); border-color: var(--bg-tertiary); cursor: default; }
@media (max-width: 900px) { .co .form-actions { margin-left: 0; } }
.co .section-buttons + p::before, .co .section-buttons + p::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* === Button extensions === */

/* signin:// scheme — provider sign-in buttons (Google, etc.). */
.btn-signin { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 24px; border-radius: var(--radius); font-size: var(--t-base); font-weight: var(--w-medium); text-decoration: none; cursor: pointer; border: 1px solid var(--border); background: #fff; color: var(--brand-black); }
.btn-signin:hover { border-color: var(--brand-black); }
.btn-signin svg { width: 18px; height: 18px; flex-shrink: 0; }

/* === Field-type extensions === */

/* :::field otp — N-box verification code */
.form-otp { display: flex; flex-direction: column; gap: 6px; }
.form-otp-label { font: 500 11px/1 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg2); text-align: center; }
.form-otp-target { font-family: var(--font-mono); text-transform: none; letter-spacing: 0; color: var(--brand-black); }
.form-otp-row { display: flex; gap: 8px; justify-content: center; margin: 8px 0; }
.form-otp-box { width: 44px; height: 52px; padding: 0; text-align: center; text-indent: 0; font: 600 22px/1 var(--font-mono); color: var(--brand-black); border: 1px solid var(--border-strong); border-radius: 8px; background: #fff; flex: 0 0 auto; -webkit-appearance: none; appearance: none; }
.form-otp-box:focus { outline: none; border-color: var(--brand-black); box-shadow: 0 0 0 3px rgba(10,10,10,0.08); }
/* autocomplete="one-time-code" on the first box adds a WebKit autofill
   affordance inside the input — it eats a few px of inline padding and
   pushes the digit left. Hide it; SMS autofill still works. */
.form-otp-box::-webkit-credentials-auto-fill-button,
.form-otp-box::-webkit-contacts-auto-fill-button,
.form-otp-box::-webkit-strong-password-auto-fill-button { display: none !important; visibility: hidden; pointer-events: none; }
.form-otp-hint { font: 400 12.5px/1.4 var(--font-sans); color: var(--fg3); margin: 4px 0 0; text-align: center; }
.form-otp-hint a { color: var(--brand-black); text-decoration: underline; }

/* :::field checkbox — `desc=` opt-in to consent-card visual (title + description). */
.form-check-card { display: grid; grid-template-columns: 24px 1fr; gap: 16px; align-items: flex-start; padding: 24px; background: #fff; border: 1px solid var(--border); border-radius: 8px; cursor: pointer; transition: border-color 100ms; }
.form-check-card input[type=checkbox] { position: absolute; opacity: 0; pointer-events: none; width: 0; height: 0; }
.form-check-card .form-check-mark { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; background: #fff; border: 1.5px solid var(--border-strong); border-radius: 4px; flex-shrink: 0; margin-top: 1px; }
.form-check-card:has(input:checked) { border-color: var(--brand-black); }
.form-check-card:has(input:checked) .form-check-mark { background: var(--brand-black); border-color: var(--brand-black); }
.form-check-card:has(input:checked) .form-check-mark::after { content: '✓'; color: #fff; font-size: 13px; line-height: 1; }
.form-check-card .form-check-body { display: flex; flex-direction: column; gap: 4px; }
.form-check-card .form-check-label { font: 500 14px/1.4 var(--font-sans); color: var(--brand-black); }
.form-check-card .form-check-desc { font: 400 12.5px/1.5 var(--font-sans); color: var(--fg2); }
.form-check-card .form-check-body a { color: var(--brand-black); text-decoration: underline; }
.form-check-card + .form-check-card { margin-top: 16px; }

/* :::pops picker — checkout DC picker (continent groups, 2-col, latency) */
.pop-picker-alert { display: flex; gap: 14px; align-items: flex-start; padding: 14px 18px; background: rgba(220,38,38,0.04); border: 1px solid var(--brand-red); border-radius: 8px; margin-bottom: 20px; }
.pop-picker-alert-mark { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; background: var(--brand-red); color: #fff; font: 700 14px/1 var(--font-mono); border-radius: 3px; flex-shrink: 0; margin-top: 1px; }
.pop-picker-alert p { margin: 0; font: 400 13px/1.5 var(--font-sans); color: var(--text-dark); }
.pop-picker-alert a { color: var(--brand-red); text-decoration: underline; }
.pop-picker-continents { display: flex; flex-direction: column; gap: 18px; }
.pop-picker-group { font: 500 10px/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg3); margin: 0 0 8px; }
.pop-picker-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--border-strong); border-radius: 6px; background: #fff; overflow: hidden; }
.pop-picker-card { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px; padding: 12px 16px; background: #fff; border: 0; border-bottom: 1px solid var(--border); cursor: pointer; text-align: left; font: inherit; transition: background 100ms, color 100ms; }
.pop-picker-card:nth-child(odd) { border-right: 1px solid var(--border); }
.pop-picker-card:hover { background: rgba(10,10,10,0.018); }
.pop-picker-card-selected { background: var(--brand-black); color: #fff; border-bottom-color: var(--brand-black); }
.pop-picker-card-selected:hover { background: var(--brand-black); }
.pop-picker-card-offline { opacity: 0.55; cursor: not-allowed; }
.pop-picker-card-offline:hover { background: #fff; }
.pop-picker-card-info { font: 400 13px/1.4 var(--font-sans); color: var(--fg1); }
.pop-picker-card-city { font-weight: 600; color: var(--brand-black); }
.pop-picker-card-country { color: var(--fg2); }
.pop-picker-card-selected .pop-picker-card-city { color: #fff; }
.pop-picker-card-selected .pop-picker-card-country { color: rgba(255,255,255,0.7); }
.pop-picker-card-ms { font-variant-numeric: tabular-nums; display: flex; align-items: baseline; gap: 3px; white-space: nowrap; }
.pop-picker-card-ms-n { font: 600 15px/1 var(--font-sans); color: var(--fg1); }
.pop-picker-card-ms-u { font: 500 11px/1 var(--font-mono); color: var(--fg3); letter-spacing: 0.04em; }
.pop-picker-card-ms-fast .pop-picker-card-ms-n { color: var(--success); }
.pop-picker-card-ms-mid .pop-picker-card-ms-n { color: var(--warning); }
.pop-picker-card-ms-slow .pop-picker-card-ms-n { color: var(--brand-red); }
.pop-picker-card-selected .pop-picker-card-ms-n { color: #fff; }
.pop-picker-card-selected .pop-picker-card-ms-u { color: rgba(255,255,255,0.65); }
.pop-picker-card-ms-offline { font: 500 11px/1 var(--font-mono); color: var(--fg3); letter-spacing: 0.08em; text-transform: uppercase; }
.pop-picker-foot { font: 400 12.5px/1.5 var(--font-sans); color: var(--fg2); margin: 14px 0 0; display: flex; justify-content: space-between; gap: 16px; }
.pop-picker-foot-hint { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg3); white-space: nowrap; }
@media (max-width: 700px) {
  .pop-picker-grid { grid-template-columns: 1fr; }
  .pop-picker-card:nth-child(odd) { border-right: 0; }
}

/* Page wrapper */
.co-page { max-width: 1280px; margin: 0 auto; padding: 40px 24px 96px; }

/* Progress stepper (5-step bar) */
.co-steps { display: flex; align-items: flex-start; justify-content: center; gap: 0; margin: 16px auto 48px; max-width: 720px; }
.co-step { display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 56px; text-align: center; }
.co-step .sq { width: 36px; height: 36px; background: var(--bg-tertiary); color: var(--fg3); display: flex; align-items: center; justify-content: center; font: 600 14px/1 var(--font-sans); }
.co-step.done .sq { background: var(--success); color: #fff; }
.co-step.active .sq { background: var(--brand-black); color: #fff; }
.co-step .lbl { font: 600 10px/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg3); }
.co-step.active .lbl { color: var(--brand-black); }
.co-step.done .lbl { color: var(--fg2); }
a.co-step { text-decoration: none; cursor: pointer; }
a.co-step:hover .sq { filter: brightness(0.9); }
a.co-step:hover .lbl { color: var(--brand-black); }
.co-step-line { flex: 1; height: 1px; background: var(--border-strong); margin: 18px 6px 0; min-width: 24px; }
.co-step-line.done { background: var(--success); }

/* Step header */
.co-head { text-align: center; margin: 0 0 40px; }
.co-head .eyebrow { font: 500 11px/1 var(--font-mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg3); margin-bottom: 16px; }
.co-head h1 { font: 700 48px/1.05 var(--font-sans); letter-spacing: -0.022em; color: var(--brand-black); margin: 0 0 16px; }
.co-head .sub { font: 400 16px/1.55 var(--font-sans); color: var(--fg2); max-width: 54ch; margin: 0 auto; }
@media (max-width: 768px) { .co-head h1 { font-size: 32px; } }

/* Section inside a step */
.co-section { margin: 0 0 32px; }
.co-section + .co-section { border-top: 1px solid var(--border); padding-top: 32px; }
.co-section-title { font: 600 15px/1 var(--font-sans); color: var(--brand-black); margin: 0 0 16px; letter-spacing: -0.005em; }
.co-section-title .req-star { color: var(--brand-red); font-weight: 600; }

/* Step nav buttons (back/continue) */
.co-nav-row { display: flex; gap: 16px; align-items: center; justify-content: space-between; margin-top: 24px; }
.co-btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 22px; border-radius: 8px; font: 500 15px/1 var(--font-sans); cursor: pointer; border: 1px solid transparent; text-decoration: none; }
.co-btn-primary { background: var(--brand-black); color: #fff; border-color: var(--brand-black); }
.co-btn-primary:hover { background: #262626; }
.co-btn-ghost { background: transparent; color: var(--brand-black); border-color: var(--border-strong); }
.co-btn-ghost:hover { border-color: var(--brand-black); }

/* Promo notice shown above the plan grid when a valid promo code is on
   the cart. No box, no left bar — just a mono red eyebrow (same shape
   as .aside-eyebrow) followed by a plain sentence. Same typography
   rhythm as .licenses-group so it reads as part of the section. */
.licenses-notice             { display: flex; align-items: baseline; gap: 0.75rem; margin-bottom: 14px; flex-wrap: wrap; }
.licenses-notice-eyebrow     { font: 500 11px/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand-red); white-space: nowrap; }
.licenses-notice-body        { font: 400 13.5px/1.55 var(--font-sans); color: var(--text-dark); }
.licenses-notice-body a      { color: var(--fg2); text-decoration: underline; text-decoration-color: var(--border); margin-left: 0.5em; }
.licenses-notice-body a:hover { color: var(--text-dark); }

/* "Have a code?" input row, shown below the Due-today bar when no
   promo is yet on the cart. Subdued styling — present but not pushy. */
.licenses-code               { display: flex; align-items: center; gap: 0.5rem; margin-top: 14px; flex-wrap: wrap; }
.licenses-code-label         { font: 500 11px/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg3); margin-right: 4px; }
.licenses-code-input         { font: 600 16px/1 var(--font-mono); letter-spacing: 0.04em; text-transform: uppercase; padding: 0.65rem 0.9rem; border: 1px solid var(--border-strong); border-radius: 4px; background: #fff; flex: 1 1 22rem; min-width: 16rem; }
.licenses-code-input:focus   { outline: 2px solid var(--brand-red); outline-offset: -1px; }
.licenses-code-apply         { font: 500 13px/1 var(--font-sans); padding: 0.5rem 0.875rem; border: 1px solid var(--text-dark); background: var(--text-dark); color: #fff; border-radius: 4px; cursor: pointer; }
.licenses-code-apply:hover   { background: black; }
.licenses-code-apply:disabled { opacity: 0.6; cursor: wait; }
.licenses-code-err           { width: 100%; font: 400 12.5px/1.4 var(--font-sans); color: var(--brand-red); }

/* === LICENSES BLOCK (single-pick plan grid) ===
   One radio per row. Whole row is a <label> so click-anywhere selects.
   Two columns at a fixed split so prices align vertically across rows. */
.licenses { width: 100%; }
.licenses-group { font: 500 11px/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg3); margin: 0 0 12px; }
.licenses-grid { display: grid; grid-template-columns: 1fr; gap: 0; border: 1px solid var(--border-strong); border-radius: 6px; background: #fff; overflow: hidden; margin-bottom: 24px; width: 100%; }
.licenses-row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 260px; align-items: center; gap: 24px; padding: 20px 24px; border-bottom: 1px solid var(--border); transition: background 100ms, color 100ms; cursor: pointer; }
.licenses-row:last-child { border-bottom: 0; }
.licenses-row:hover { background: rgba(10,10,10,0.022); }

/* Inverse highlight on the selected row. `:has(input:checked)` is the
   primary path (modern browsers); `.selected` is the JS-synced fallback. */
.licenses-row.selected,
.licenses-row:has(.licenses-radio:checked) {
  background: var(--brand-black);
  color: #fff;
  border-bottom-color: var(--brand-black);
}
.licenses-row.selected:hover,
.licenses-row:has(.licenses-radio:checked):hover { background: var(--brand-black); }

/* Hide the actual radio — selection is conveyed by the row inversion +
   the visible square indicator. The input remains keyboard-focusable. */
.licenses-radio { position: absolute; opacity: 0; pointer-events: none; width: 0; height: 0; }
.licenses-radio:focus-visible + .licenses-info .licenses-indicator { outline: 2px solid var(--brand-red); outline-offset: 2px; }

.licenses-info { min-width: 0; display: flex; align-items: center; gap: 14px; }
.licenses-info-text { min-width: 0; }
.licenses-indicator { display: inline-block; width: 16px; height: 16px; border: 1.5px solid var(--border-strong); border-radius: 2px; flex-shrink: 0; background: #fff; transition: background 100ms, border-color 100ms, box-shadow 100ms; }
.licenses-row.selected .licenses-indicator,
.licenses-row:has(.licenses-radio:checked) .licenses-indicator {
  background: #fff; border-color: #fff; box-shadow: inset 0 0 0 3px var(--brand-black);
}

.licenses-name { font: 700 19px/1.15 var(--font-sans); color: var(--brand-black); letter-spacing: -0.012em; display: flex; align-items: baseline; gap: 10px; }
.licenses-row.selected .licenses-name,
.licenses-row:has(.licenses-radio:checked) .licenses-name { color: #fff; }

.licenses-tag { font: 500 10px/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg3); padding: 3px 6px; border: 1px solid var(--border-strong); border-radius: 2px; }
.licenses-row.selected .licenses-tag,
.licenses-row:has(.licenses-radio:checked) .licenses-tag { color: rgba(255,255,255,0.65); border-color: rgba(255,255,255,0.25); }

.licenses-desc { font: 400 13px/1.45 var(--font-sans); color: var(--fg2); margin: 6px 0 0; }
.licenses-row.selected .licenses-desc,
.licenses-row:has(.licenses-radio:checked) .licenses-desc { color: rgba(255,255,255,0.72); }

.licenses-price { min-width: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; }
.licenses-hero { font: 700 36px/1 var(--font-sans); letter-spacing: -0.025em; color: var(--brand-black); font-variant-numeric: tabular-nums; }
.licenses-row.selected .licenses-hero,
.licenses-row:has(.licenses-radio:checked) .licenses-hero { color: #fff; }

.licenses-per { font: 500 12px/1 var(--font-sans); color: var(--fg2); letter-spacing: 0; }
.licenses-row.selected .licenses-per,
.licenses-row:has(.licenses-radio:checked) .licenses-per { color: rgba(255,255,255,0.65); }

.licenses-sub { margin-top: 4px; font: 400 12.5px/1.4 var(--font-sans); color: var(--fg2); text-align: right; }
.licenses-row.selected .licenses-sub,
.licenses-row:has(.licenses-radio:checked) .licenses-sub { color: rgba(255,255,255,0.7); }

/* === DATACENTER PICKER (checkout step 1) === */
.dc-alert { display: flex; gap: 14px; align-items: flex-start; padding: 14px 18px; background: rgba(220,38,38,0.04); border: 1px solid var(--brand-red); border-radius: 8px; margin-bottom: 20px; }
.dc-alert-mark { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; background: var(--brand-red); color: #fff; font: 700 14px/1 var(--font-mono); border-radius: 3px; flex-shrink: 0; margin-top: 1px; }
.dc-alert p { margin: 0; font: 400 13px/1.5 var(--font-sans); color: var(--text-dark); }
.dc-alert a { color: var(--brand-red); text-decoration: underline; }

.dc-group { font: 500 10px/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg3); margin: 18px 0 8px; }
.dc-group:first-of-type { margin-top: 0; }

.dc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--border-strong); border-radius: 6px; background: #fff; overflow: hidden; }
.dc-card { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px; padding: 12px 16px; background: #fff; border: 0; border-bottom: 1px solid var(--border); cursor: pointer; text-align: left; font: inherit; transition: background 100ms, color 100ms; }
.dc-card:nth-child(odd) { border-right: 1px solid var(--border); }
.dc-card:hover { background: rgba(10,10,10,0.018); }
.dc-card-selected { background: var(--brand-black); color: #fff; border-bottom-color: var(--brand-black); }
.dc-card-selected:hover { background: var(--brand-black); }
.dc-card-offline { opacity: 0.55; cursor: not-allowed; }
.dc-card-offline:hover { background: #fff; }
.dc-card-info { font: 400 13px/1.4 var(--font-sans); color: var(--fg1); }
.dc-card-city { font-weight: 600; color: var(--brand-black); }
.dc-card-country { color: var(--fg2); }
.dc-card-selected .dc-card-city { color: #fff; }
.dc-card-selected .dc-card-country { color: rgba(255,255,255,0.7); }
.dc-card-ms { font-variant-numeric: tabular-nums; display: flex; align-items: baseline; gap: 3px; white-space: nowrap; }
.dc-card-ms-n { font: 600 15px/1 var(--font-sans); color: var(--fg1); }
.dc-card-ms-u { font: 500 11px/1 var(--font-mono); color: var(--fg3); letter-spacing: 0.04em; }
.dc-card-ms-fast .dc-card-ms-n { color: var(--success); }
.dc-card-ms-mid .dc-card-ms-n { color: var(--warning); }
.dc-card-ms-slow .dc-card-ms-n { color: var(--brand-red); }
.dc-card-selected .dc-card-ms-n { color: #fff; }
.dc-card-selected .dc-card-ms-u { color: rgba(255,255,255,0.65); }
.dc-card-ms-offline { font: 500 11px/1 var(--font-mono); color: var(--fg3); letter-spacing: 0.08em; text-transform: uppercase; }
.dc-foot { font: 400 12.5px/1.5 var(--font-sans); color: var(--fg2); margin: 14px 0 0; display: flex; justify-content: space-between; gap: 16px; }
.dc-foot-hint { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg3); white-space: nowrap; }

@media (max-width: 700px) {
  .dc-grid { grid-template-columns: 1fr; }
  .dc-card:nth-child(odd) { border-right: 0; }
}

/* Total bar */
.licenses-total { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; background: #fff; border: 1px solid var(--border-strong); border-radius: 8px; margin-top: 8px; }
.licenses-total-label { font: 700 19px/1.15 var(--font-sans); color: var(--brand-black); letter-spacing: -0.012em; margin-bottom: 4px; }
.licenses-total-note { font: 400 13px/1.4 var(--font-sans); color: var(--fg2); }
.licenses-total-right { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.licenses-total-amount { font: 700 36px/1 var(--font-sans); color: var(--brand-black); letter-spacing: -0.025em; font-variant-numeric: tabular-nums; }
.licenses-total-sub { font: 400 13px/1.4 var(--font-sans); color: var(--fg2); text-align: right; }

@media (max-width: 768px) {
  .licenses-row { grid-template-columns: 1fr; gap: 12px; }
  .licenses-price { align-items: flex-start; text-align: left; }
  .licenses-sub { text-align: left; }
}

/* === FOCUSED PAGES (onboarding, checkout) ===
   Single-task layout, no chrome. Cream-ish background.
   Inspired by Claude's focused single-page flows: lots of breathing room,
   one task per screen, clear hierarchy, no distraction. */
body.page-focused { background: #FAFAF7; }
body.page-focused main { padding: 0; }
.page-focused .focused-shell { max-width: 560px; margin: 0 auto; padding: 56px 24px 160px; }
.page-focused .focused-shell.wide { max-width: 880px; }
.page-focused .focused-brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--brand-black); margin-bottom: 56px; font-family: var(--font-sans); font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; font-size: 0.875rem; }
.page-focused .focused-brand-square { width: 14px; height: 14px; background: var(--brand-black); border-radius: 2px; display: inline-block; }
.page-focused .focused-head { margin-bottom: 40px; }
.page-focused .focused-head h1 { font-size: clamp(1.875rem, 3vw, 2.5rem); line-height: 1.1; letter-spacing: -0.02em; color: var(--text-dark); margin: 0 0 12px; font-weight: 600; }
.page-focused .focused-head p { color: var(--text); font-size: 1rem; line-height: 1.55; margin: 0; max-width: 56ch; }
.page-focused .focused-back { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8125rem; color: var(--text-light); text-decoration: none; margin-bottom: 32px; font-family: var(--font-mono); letter-spacing: 0.05em; }
.page-focused .focused-back:hover { color: var(--text-dark); }
.page-focused .focused-back::before { content: '←'; }

/* On focused pages the hero/section blocks should not stack their normal padding. */
.page-focused .hero, .page-focused section.section, .page-focused section.section-dark { padding: 0; background: transparent; }
.page-focused .hero.container, .page-focused .section .container { padding-left: 24px; padding-right: 24px; }

/* === PROGRESS INDICATOR === */
.folio-progress { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.folio-progress-label { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-light); }
.folio-progress-dots { display: inline-flex; gap: 6px; }
.folio-progress-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--border); transition: background 100ms, transform 100ms; }
.folio-progress-dot-done { background: var(--text-dark); }
.folio-progress-dot-active { background: var(--brand-red); transform: scale(1.4); }

/* === STEPS (multi-step container) === */
.folio-steps { display: flex; flex-direction: column; gap: 32px; }
.folio-stepper { display: flex; gap: 0; align-items: center; padding: 0; margin: 0 auto 16px; max-width: 600px; }
.folio-stepper-item { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 1; background: none; border: 0; padding: 0; cursor: default; font: inherit; color: var(--text-light); position: relative; }
.folio-stepper-item + .folio-stepper-item::before { content: ''; position: absolute; left: -50%; right: 50%; top: 14px; height: 1px; background: var(--border); z-index: 0; }
.folio-stepper-item.done + .folio-stepper-item::before, .folio-stepper-item.active + .folio-stepper-item.done::before, .folio-stepper-item.done.active::before { background: var(--text-dark); }
.folio-stepper-num { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--bg-secondary); border: 1px solid var(--border); color: var(--text-light); font-family: var(--font-mono); font-size: 0.8125rem; font-weight: var(--w-medium); position: relative; z-index: 1; }
.folio-stepper-item.active { color: var(--text-dark); }
.folio-stepper-item.active .folio-stepper-num { background: var(--brand-black); border-color: var(--brand-black); color: #fff; }
.folio-stepper-item.done { color: var(--text); cursor: pointer; }
.folio-stepper-item.done .folio-stepper-num { background: var(--text-dark); border-color: var(--text-dark); color: #fff; }
.folio-stepper-item.done .folio-stepper-num::after { content: '✓'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 0.875rem; }
.folio-stepper-item.done .folio-stepper-num > * { display: none; }
.folio-stepper-label { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; }
.folio-step-panel[hidden] { display: none; }
.folio-step-panel { animation: folioStepIn 200ms ease-out; }
@keyframes folioStepIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* === FORMS === */
.folio-form { display: flex; flex-direction: column; gap: 16px; max-width: 560px; margin: 0 auto; }
.folio-form.form-wide { max-width: 880px; }

.form-error-banner { display: block; padding: 12px 14px; border-radius: var(--radius); background: var(--brand-red-light); color: var(--brand-red-dark); font-size: var(--t-sm); }
.form-error-banner[hidden] { display: none; }

.form-summary { display: flex; gap: 10px; align-items: baseline; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-secondary); font-size: 0.8125rem; color: var(--text-dark); }
.form-summary[hidden] { display: none; }
.form-summary-label { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-light); flex-shrink: 0; }
.form-summary-items { color: var(--text-dark); line-height: 1.5; }
.form-summary-item { color: var(--text-dark); text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 2px; }
.form-summary-item:hover { text-decoration-color: var(--text-dark); }
.form-summary.form-summary-error { background: var(--brand-red-light); border-color: var(--brand-red); }
.form-summary.form-summary-error .form-summary-label { color: var(--brand-red); }
.form-summary.form-summary-error .form-summary-item { color: var(--brand-red-dark); text-decoration-color: var(--brand-red); }

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-light); font-weight: var(--w-medium); }
.form-required { color: var(--brand-red); }

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text-dark);
  background: var(--bg);
  transition: border-color 120ms;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { outline: none; border-color: var(--brand-black); }
.form-input::placeholder { color: var(--text-light); }
.form-input.is-invalid, .form-select.is-invalid, .form-textarea.is-invalid {
  border-color: var(--brand-red);
  background: var(--brand-red-light);
}
.form-input.is-invalid:focus, .form-select.is-invalid:focus, .form-textarea.is-invalid:focus { border-color: var(--brand-red); }
.form-group.is-invalid .form-label { color: var(--brand-red); }
.form-error { color: var(--brand-red); font-size: 0.8125rem; margin-top: 4px; }
.form-check.is-invalid .form-check-label { color: var(--brand-red); }
.form-check.is-invalid input[type=checkbox] { outline: 2px solid var(--brand-red); outline-offset: 2px; }
.form-radio-group.is-invalid legend { color: var(--brand-red); }
.form-radio-group.is-invalid .form-radio-card { border-color: var(--brand-red); }
.form-input-upper { text-transform: uppercase; }
.form-textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.form-select { appearance: none; -webkit-appearance: none; padding-right: 36px; background-image: linear-gradient(45deg, transparent 50%, var(--text-light) 50%), linear-gradient(-45deg, transparent 50%, var(--text-light) 50%); background-position: calc(100% - 18px) center, calc(100% - 12px) center; background-size: 6px 6px; background-repeat: no-repeat; }

.form-hint { font-size: 0.8125rem; color: var(--text-light); }

.form-radio-group { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.form-radio-group legend { padding: 0; margin-bottom: 8px; }
.form-radio-card { display: grid; grid-template-columns: 18px 1fr; gap: 12px; align-items: start; padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); cursor: pointer; transition: border-color 100ms, background 100ms; }
.form-radio-card:hover { border-color: var(--text-light); }
.form-radio-card input[type=radio] { position: absolute; opacity: 0; pointer-events: none; width: 0; height: 0; }
.form-radio-marker { display: block; width: 18px; height: 18px; border: 1.5px solid var(--border); border-radius: 50%; background: var(--bg); margin-top: 2px; position: relative; transition: border-color 100ms; }
.form-radio-card:has(input:checked) { border-color: var(--brand-black); background: rgba(0,0,0,0.02); }
.form-radio-card:has(input:checked) .form-radio-marker { border-color: var(--brand-black); }
.form-radio-card:has(input:checked) .form-radio-marker::after { content:''; position: absolute; inset: 3px; background: var(--brand-black); border-radius: 50%; }
.form-radio-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.form-radio-title { font-size: 0.9375rem; font-weight: var(--w-medium); color: var(--text-dark); }
.form-radio-subtitle { font-size: 0.8125rem; color: var(--text); line-height: 1.45; }
.form-radio-footer { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-light); margin-top: 6px; }

.form-check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; padding: 4px 0; }
.form-check.form-check-card { display: grid; grid-template-columns: 24px 1fr; gap: 14px; padding: 16px 18px; }
.form-check input[type=checkbox] { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brand-black); flex-shrink: 0; }
.form-check-label { font-size: 0.9rem; color: var(--text-dark); line-height: 1.5; }

.form-row { display: grid; gap: 14px; }
@media (max-width: 768px) {
  .form-row { grid-template-columns: 1fr !important; }
}

.form-actions { display: flex; gap: 12px; margin-top: 8px; }
.form-actions .btn-primary, .form-actions .btn-ghost { padding: 12px 20px; justify-content: center; flex: 0 0 auto; cursor: pointer; font-family: inherit; }
.form-actions .btn-primary { flex: 1 1 auto; }
.form-actions button { font-size: var(--t-base); font-weight: var(--w-medium); }
@media (max-width: 600px) {
  .form-actions { flex-direction: column-reverse; }
  .form-actions .btn-primary, .form-actions .btn-ghost { width: 100%; }
}

/* === FOOTER === */
.footer                { padding: 1.5rem 0 1rem; margin-top: auto; border-top: 1px solid var(--border); }
.footer-head           { padding-bottom: 1rem; margin-bottom: 1rem; border-bottom: 1px solid var(--border); }
.footer-grid           { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); align-items: start; }
.footer-brand          { font-family: var(--font-sans); font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; font-size: 1rem; color: var(--text); display: inline-flex; align-items: center; gap: 8px; text-decoration: none; line-height: 1; }
.footer-brand-square   { display: inline-block; width: 14px; height: 14px; background: var(--brand-black); border-radius: 2px; }
.footer-contact-row    { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 0.8125rem; }
.footer-contact-region { color: var(--text-tertiary); font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.06em; text-transform: uppercase; }
.footer-contact-row a  { color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.footer-contact-row a:hover { color: var(--text); }
.footer-col-label      { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-tertiary); margin: 0 0 12px; }
.footer-col-links      { display: flex; flex-direction: column; gap: 8px; font-size: 0.8125rem; }
.footer-col-links a    { color: var(--text-secondary); text-decoration: none; transition: color 100ms ease; }
.footer-col-links a:hover { color: var(--text); }
.footer-col-links span { color: var(--text-tertiary); }
.footer-bottom         { display: flex; justify-content: space-between; align-items: center; padding-top: 0.875rem; flex-wrap: wrap; gap: 1rem; }
.footer-copy           { font-size: 0.8125rem; color: var(--text-tertiary); margin: 0; }
.footer-social         { display: flex; gap: 1rem; font-size: 0.8125rem; }
.footer-social a       { color: var(--text-tertiary); text-decoration: none; transition: color 100ms ease; }
.footer-social a:hover { color: var(--text-secondary); }


/* === FOOTER ===
 */
.footer                { padding: 1.5rem 0 1rem; margin-top: auto; border-top: 1px solid var(--border); }
.footer-head           { padding-bottom: 1rem; margin-bottom: 1rem; border-bottom: 1px solid var(--border); }
.footer-grid           { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); align-items: start; }
.footer-brand          { font-family: var(--font-sans); font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; font-size: 1rem; color: var(--text); display: inline-flex; align-items: center; gap: 8px; text-decoration: none; line-height: 1; }
.footer-brand-square   { display: inline-block; width: 14px; height: 14px; background: var(--brand-black); border-radius: 2px; }
.footer-contact-row    { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 0.8125rem; }
.footer-contact-region { color: var(--text-tertiary); font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.06em; text-transform: uppercase; }
.footer-contact-row a  { color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.footer-contact-row a:hover { color: var(--text); }
.footer-col-label      { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-tertiary); margin: 0 0 12px; }
.footer-col-links      { display: flex; flex-direction: column; gap: 8px; font-size: 0.8125rem; }
.footer-col-links a    { color: var(--text-secondary); text-decoration: none; transition: color 100ms ease; }
.footer-col-links a:hover { color: var(--text); }
.footer-col-links span { color: var(--text-tertiary); }
.footer-bottom         { display: flex; justify-content: space-between; align-items: center; padding-top: 0.875rem; flex-wrap: wrap; gap: 1rem; }
.footer-copy           { font-size: 0.8125rem; color: var(--text-tertiary); margin: 0; }
.footer-social         { display: flex; gap: 1rem; font-size: 0.8125rem; }
.footer-social a       { color: var(--text-tertiary); text-decoration: none; transition: color 100ms ease; }
.footer-social a:hover { color: var(--text-secondary); }



/* --- Docs TOC (minimal; never touches content styles) --- */
.docs-toc-scroll       { max-height: calc(100vh - 6rem); overflow-y: auto; padding-right: 0.5rem; }
.docs-toc-title        { font-weight: var(--w-medium); font-size: var(--t-sm); color: var(--text-dark); margin-bottom: 1rem; }
.docs-toc              { list-style: none; padding: 0; margin: 0; }
.docs-toc-item         { margin-bottom: 2px; }
.docs-toc-item a       { display: block; padding: 0.3125rem 0.75rem; font-size: var(--t-sm); color: var(--text); text-decoration: none; border-left: 2px solid transparent; border-radius: 0 var(--radius) var(--radius) 0; transition: all 100ms ease; line-height: 1.4; }
.docs-toc-item a:hover { color: var(--text-dark); background: var(--bg-secondary); }
.docs-toc-active a     { color: var(--text-dark); border-left-color: var(--text-dark); font-weight: var(--w-medium); }
.docs-toc-nested a     { padding-left: 1.5rem; }
.docs-toc-section      { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-light); margin-top: 1rem; padding: 0.25rem 0.75rem; }
.docs-toc-scroll::-webkit-scrollbar       { width: 4px; }
.docs-toc-scroll::-webkit-scrollbar-track { background: transparent; }
.docs-toc-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* --- Docs layout (3-column: file-tree | content | heading-TOC) --- */
.docs-layout        { display: grid; grid-template-columns: 280px 1fr 200px; gap: 48px; }
.docs-layout-notoc  { grid-template-columns: 280px 1fr; }
.docs-layout-notoc  .docs-nav-right { display: none; }
.docs-nav-left      { position: sticky; top: 80px; align-self: start; }
.docs-nav-right     { position: sticky; top: 80px; align-self: start; }
.docs-body          { min-width: 0; }

@media (max-width: 1100px) {
  .docs-layout      { grid-template-columns: 280px 1fr; }
  .docs-nav-right   { display: none; }
}

@media (max-width: 800px) {
  .docs-layout      { grid-template-columns: 1fr; }
  .docs-nav-left    { position: relative; top: 0; }
  .docs-nav-left .docs-toc-scroll { max-height: none; padding: 0 0 1.5rem; border-bottom: 1px solid var(--border); margin-bottom: 1.5rem; }
}

/* --- /account slot table ---
   Inherits the global Folio table style (inverted header, outlined block).
   Per-cell padding tightened slightly because every row carries inputs
   and icon buttons that benefit from a denser layout than prose tables. */
.acct-slots td               { padding: var(--pad-xs) var(--pad); vertical-align: middle; }
.acct-slots tr:hover td      { background: var(--bg-alt, #FAFAF7); }
/* Action column shrinks to fit its buttons; everything else expands. */
.acct-slots td.acct-cell-actions { width: 1%; white-space: nowrap; }
/* Unused-slot assign form: email + display-name on ONE line, 50/50
   split inside the "Assigned to" cell. The Assign & invite icon-button
   lives in the action column on the right (see actionCell in
   account.go) — same shape as pending/active rows. */
.acct-assign                 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0.5rem; align-items: center; }
.acct-assign .acct-input,
.acct-assign .acct-assign-email { min-width: 0; width: 100%; }

/* Icon-button variant used in the action column for all row statuses
   (claim / invite / reassign / revoke / open vault). Tight square button,
   glyph centered, tooltip via the native title= attribute. */
.acct-btn-icon               { width: 2rem; height: 2rem; padding: 0; font: 700 1rem/1 var(--font-sans); display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.acct-actions                { display: inline-flex; gap: 0.4rem; align-items: center; flex-wrap: nowrap; }
.acct-actions .acct-btn      { white-space: nowrap; flex-shrink: 0; }
.acct-input                  { font: inherit; padding: 0.3125rem 0.5rem; border: 1px solid var(--border); border-radius: var(--radius); background: white; }
.acct-input:focus            { outline: 2px solid var(--brand-red); outline-offset: -1px; }
.acct-btn                    { font: inherit; padding: 0.3125rem 0.75rem; border: 1px solid var(--text-dark); background: var(--text-dark); color: white; border-radius: var(--radius); cursor: pointer; }
.acct-btn:hover              { background: black; }
.acct-btn-ghost              { background: transparent; color: var(--text-dark); }
.acct-btn-ghost:hover        { background: var(--bg-alt, #FAFAF7); }
.acct-muted                  { color: var(--text-light); }
.acct-badge                  { display: inline-block; padding: 0.125rem 0.5rem; border-radius: var(--radius); font-size: var(--t-xs); font-weight: var(--w-medium); text-transform: uppercase; letter-spacing: 0.05em; }
.acct-badge-unused           { background: #F0F0F0; color: var(--text); }
.acct-badge-pending          { background: #FEF3C7; color: #92400E; }
.acct-badge-active           { background: #DCFCE7; color: #166534; }
.acct-badge-archived         { background: #F0F0F0; color: var(--text-light); }

/* --- Notices (active maintenance / known-issue banners) --- */
.notices       { padding: 16px var(--pad) 0; }
.notice        { display: flex; gap: 12px; align-items: flex-start; padding: 16px; background: rgba(220,38,38,0.04); border: 1px solid rgba(220,38,38,0.15); border-radius: var(--radius-sm); margin-bottom: 12px; }
.notice-icon   { width: 24px; height: 24px; background: var(--brand-red); color: #fff; font: var(--w-bold) 14px/24px var(--font-sans); text-align: center; flex: none; }
.notice-body   { font: 400 14px/1.6 var(--font-sans); color: var(--text-secondary); }

/* --- /network: map foot + HQ/closest cards --- */
.hp-map-foot p           { margin: 0; flex: 1 1 320px; font-size: var(--t-base); color: var(--text); line-height: 1.55; }
.hp-map-actions          { display: flex; gap: 8px; flex-wrap: wrap; }
.hp-map-actions .btn     { white-space: nowrap; }
.network-dc-grid         { margin-top: 48px; gap: 16px; }
.network-dc-card         { display: grid; grid-template-rows: auto auto auto auto auto; gap: 8px; align-content: start; text-align: center; }
.network-dc-icon         { font-size: 2rem; line-height: 1; }
.network-dc-name         { font: var(--w-bold) 1.125rem/1.2 var(--font-sans); color: var(--text-dark); }
.network-dc-sub          { font: 400 0.875rem/1.4 var(--font-sans); color: var(--text-light); }
.network-dc-status       { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: 400 0.8125rem/1 var(--font-sans); color: var(--text); }
.network-dc-dot          { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-red); display: inline-block; }
.card-gold .network-dc-dot { background: #D4AF37; }

/* --- /network: disaster recovery backup groups --- */
.network-backup-grid     { gap: 24px; }
.network-dist            { font-family: var(--font-mono); color: var(--text-light); text-align: right; }
.network-dist-mi         { font-size: 0.8125rem; }
.network-down            { color: var(--text-light); font-size: 0.8125rem; }

/* --- Blog post (single-post layout for /blog/{slug}) --- */
.bp-hero                 { display: flex; align-items: center; justify-content: center; overflow: hidden; }
.bp-hero-image           { height: 280px; }
.bp-hero-image img       { width: 100%; height: 100%; object-fit: cover; }
.bp-hero-band            { height: 96px; background: var(--brand-black); }
.bp-hero-label           { color: #fff; font-family: var(--font-sans); font-weight: var(--w-bold); font-size: var(--t-base); text-transform: uppercase; letter-spacing: 0.25em; }
.bp-title                { font-size: var(--t-2xl); }
.bp-back                 { font-size: var(--t-sm); color: var(--text-light); margin-top: 24px; }
.bp-back a               { color: inherit; text-decoration: none; }
.bp-back a:hover         { color: var(--text-dark); }
.bp-summary              { font-size: var(--t-lg); color: var(--text); line-height: 1.55; margin-bottom: 24px; }
.bp-langs                { font-size: var(--t-xs); color: var(--text-light); margin-top: 16px; }
.bp-langs a              { color: var(--text); text-decoration: underline; text-underline-offset: 2px; margin: 0 4px; }
.bp-langs a:hover        { color: var(--text-dark); }
.bp-content              { padding-bottom: 80px; }
.bp-content h1           { font-size: 1.875rem; margin: 48px 0 16px; letter-spacing: -0.01em; color: var(--text-dark); }
.bp-content h2           { font-size: 1.5rem; margin: 40px 0 14px; letter-spacing: -0.01em; color: var(--text-dark); }
.bp-content h3           { font-size: 1.25rem; margin: 32px 0 12px; color: var(--text-dark); }
.bp-content h4, .bp-content h5, .bp-content h6 { font-size: 1.0625rem; margin: 28px 0 10px; color: var(--text-dark); }
.bp-content p            { margin-bottom: 1.25em; line-height: 1.7; color: var(--text); }
.bp-content strong       { font-weight: 600; }
.bp-content a            { color: var(--text-dark); text-decoration: underline; text-underline-offset: 3px; }
.bp-content ul, .bp-content ol { margin: 0 0 1.25em 1.5em; line-height: 1.7; }
.bp-content li           { margin-bottom: 0.4em; }
.bp-content code         { font-family: var(--font-mono); font-size: 0.875em; background: var(--bg-alt, #FAFAF7); padding: 2px 6px; border-radius: 4px; }
.bp-content pre          { background: var(--text-dark); color: #fff; padding: 20px 24px; border-radius: var(--radius-sm); overflow-x: auto; margin: 0 0 1.5em; line-height: 1.5; }
.bp-content pre code     { background: none; padding: 0; font-size: 0.8125rem; color: inherit; }
.bp-content img          { max-width: 100%; border-radius: var(--radius-sm); margin: 1.5em 0; }
.bp-content blockquote   { border-left: 3px solid var(--border); margin: 0 0 1.5em; padding: 0 0 0 20px; color: var(--text-light); }
@media (max-width: 768px) {
    .bp-hero  { height: 180px; }
    .bp-title { font-size: 1.75rem; }
    .bp-summary { font-size: 1rem; }
}

/* Issues + Releases — see issues.go, releases.go. Mirrors blog-card patterns. */
.issues-toolbar      { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.issues-filters      { display: flex; gap: 8px; flex-wrap: wrap; }
.issues-filter       { padding: 6px 12px; border-radius: var(--radius-sm); border: 1px solid var(--border); color: var(--text); text-decoration: none; font-size: var(--t-sm); }
.issues-filter:hover { background: var(--bg-alt, #FAFAF7); }
.issues-filter-active{ background: var(--text-dark); color: #fff; border-color: var(--text-dark); }
.issues-list         { display: grid; gap: 16px; }
.issue-card          { display: block; text-decoration: none; color: inherit; transition: transform 0.2s, box-shadow 0.2s; }
.issue-card:hover    { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0,0,0,0.08); }
.issue-card-head     { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.issue-status        { display: inline-block; color: #fff; font-size: 0.75rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; letter-spacing: 0.02em; }
.issue-form          { display: flex; flex-direction: column; gap: 12px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border); }
.issue-form label    { display: block; font-weight: 600; color: var(--text-dark); }
.issue-form input,
.issue-form textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); font: inherit; font-weight: 400; color: var(--text); background: #fff; box-sizing: border-box; }
.issue-form button   { align-self: flex-start; }
.issue-form-error    { color: #b91c1c; font-size: var(--t-sm); }
.issue-comments      { margin-top: 32px; }
.issue-comments-header { font-size: 1.125rem; margin: 0 0 16px; color: var(--text-dark); }
.issue-comment       { padding: 16px 0; border-top: 1px solid var(--border); }
.issue-comment-meta  { font-size: var(--t-sm); color: var(--text-light); margin-bottom: 8px; }
.issue-comment-body p:last-child { margin-bottom: 0; }
.issue-login-prompt  { color: var(--text-light); }
