/* ═══════════════════════════════════════════════════════════════
   AfriLink Pay — pages.css
   Shared stylesheet for all static info pages
   ═══════════════════════════════════════════════════════════════ */

/* ── Design tokens ─────────────────────────────────────────────── */
:root {
  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --accent:   #FFB800;
  --accent-2: #FF6B35;
  --accent-3: #00D9A3;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  --max-w: 1280px;
  --body-w: 900px;
  --gutter: clamp(1rem, 4vw, 2rem);

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-bounce: cubic-bezier(.34, 1.56, .64, 1);
}

/* ── Dark theme (default) ──────────────────────────────────────── */
[data-theme="dark"] {
  --bg:            #050508;
  --bg-2:          #0a0a12;
  --surface:       rgba(255,255,255,0.04);
  --surface-2:     rgba(255,255,255,0.07);
  --border:        rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.16);
  --t-hi:          #f5f5f7;
  --t-mid:         rgba(245,245,247,0.72);
  --t-low:         rgba(245,245,247,0.45);
  --glass-blur:    blur(20px) saturate(140%);
  --shadow:        0 20px 60px -20px rgba(0,0,0,0.6);
  --shadow-sm:     0 4px 20px rgba(0,0,0,0.4);
  --header-bg:     rgba(5,5,8,0.8);
  --code-bg:       rgba(255,255,255,0.06);
}

/* ── Light theme ───────────────────────────────────────────────── */
[data-theme="light"] {
  --bg:            #fafaf7;
  --bg-2:          #f0eee8;
  --surface:       rgba(255,255,255,0.7);
  --surface-2:     rgba(255,255,255,0.92);
  --border:        rgba(10,10,20,0.08);
  --border-strong: rgba(10,10,20,0.16);
  --t-hi:          #0a0a14;
  --t-mid:         rgba(10,10,20,0.70);
  --t-low:         rgba(10,10,20,0.45);
  --glass-blur:    blur(20px) saturate(160%);
  --shadow:        0 20px 60px -20px rgba(0,0,0,0.15);
  --shadow-sm:     0 4px 20px rgba(0,0,0,0.08);
  --header-bg:     rgba(250,250,247,0.85);
  --code-bg:       rgba(0,0,0,0.05);
}

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

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--t-hi);
  line-height: 1.65;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

/* ── Site header ───────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 var(--gutter);
  height: 60px;
  background: var(--header-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border);
}

/* ── Logo ──────────────────────────────────────────────────────── */
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--t-hi);
  letter-spacing: -0.01em;
  transition: opacity 0.2s;
}
.logo:hover { opacity: 0.85; }

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #050508;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
}

.logo-text { color: var(--t-hi); }
.logo-accent { color: var(--accent); }

/* ── Header nav ────────────────────────────────────────────────── */
.header-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ── Language dropdown ─────────────────────────────────────────── */
/* Reuses .nav-dd / .nav-dd-btn / .nav-dd-panel from the nav system */
.lang-dd-panel {
  right: 0;
  left: auto;
  min-width: 180px;
}
/* Button items inside the language dropdown (styled like .nav-dd-item anchors) */
.lang-dd-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.55rem 0.75rem;
  border-radius: calc(var(--r-sm) - 2px);
  font-size: 0.875rem;
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--t-mid);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.12s, color 0.12s;
}
.lang-dd-item:hover { background: var(--surface-2); color: var(--t-hi); }
.lang-dd-item.active { color: var(--accent); font-weight: 700; }
.lang-dd-item .lang-code { font-weight: 700; color: var(--t-hi); min-width: 1.6rem; }
.lang-dd-item.active .lang-code { color: var(--accent); }

/* ── Buttons ───────────────────────────────────────────────────── */
/* .btn-sm sizing rules are defined below, after btn-accent/btn-ghost,
   so two-class selectors (.btn-sm.btn-accent etc.) apply correct overrides. */

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.72rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: var(--font-body);
  border-radius: var(--r-md);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  white-space: nowrap;
  line-height: 1;
  background: transparent;
  color: var(--t-mid);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover {
  background: var(--surface);
  border-color: var(--accent);
  color: var(--t-hi);
}
.btn-ghost:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn-accent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-size: 0.9375rem;
  font-weight: 700;
  font-family: var(--font-body);
  border-radius: var(--r-md);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  white-space: nowrap;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #050508;
  border: none;
}
.btn-accent:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(255,184,0,0.35);
}
.btn-accent:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ── Small modifier — overrides btn-accent / btn-ghost / btn-outline / btn-primary sizing ── */
/* Two-class specificity wins over single-class, so .btn-sm.btn-accent etc. apply sm sizing */
.btn-sm,
.btn-accent.btn-sm,
.btn-ghost.btn-sm,
.btn-primary.btn-sm,
.btn-outline.btn-sm {
  padding: 0.4rem 0.9rem;
  font-size: 0.8125rem;
  border-radius: var(--r-sm);
}
.btn-sm {
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s var(--ease);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  white-space: nowrap;
  font-family: var(--font-body);
  line-height: 1;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-size: 0.9375rem;
  font-weight: 700;
  font-family: var(--font-body);
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #050508;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  white-space: nowrap;
}
.btn-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255,184,0,0.35);
}
.btn-primary:active { transform: translateY(0); }
.btn-primary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-body);
  border-radius: var(--r-md);
  background: transparent;
  color: var(--t-hi);
  border: 1px solid var(--border-strong);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.btn-outline:hover {
  background: var(--surface);
  border-color: var(--accent);
  color: var(--accent);
}
.btn-outline:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ── Page hero ─────────────────────────────────────────────────── */
.page-hero {
  padding: clamp(3rem, 8vw, 6rem) var(--gutter) clamp(2rem, 5vw, 4rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255,184,0,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(0,217,163,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero-inner {
  position: relative;
  max-width: var(--body-w);
  margin: 0 auto;
}

.page-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--t-hi);
  margin-bottom: 1.1rem;
}

.page-hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 50%, var(--accent-3) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-hero p {
  font-size: clamp(1rem, 2vw, 1.175rem);
  color: var(--t-mid);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

/* ── Page body ─────────────────────────────────────────────────── */
.page-body {
  max-width: var(--body-w);
  margin: 0 auto;
  padding: 2.5rem var(--gutter) 5rem;
  flex: 1;
  width: 100%;
}

.page-body-wide {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2.5rem var(--gutter) 5rem;
  flex: 1;
  width: 100%;
}

/* ── CMS body (rendered HTML from CMS API) ─────────────────────── */
.cms-body { color: var(--t-mid); }

.cms-body h2 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  color: var(--t-hi);
  letter-spacing: -0.02em;
  margin: 2.5rem 0 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.cms-body h2:first-child { margin-top: 0; }

.cms-body h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--t-hi);
  letter-spacing: -0.01em;
  margin: 1.75rem 0 0.6rem;
}

.cms-body h4 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--t-hi);
  margin: 1.25rem 0 0.4rem;
}

.cms-body p {
  margin-bottom: 1rem;
  line-height: 1.75;
}

.cms-body ul, .cms-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.cms-body li { margin-bottom: 0.4rem; line-height: 1.7; }
.cms-body ul li::marker { color: var(--accent); }
.cms-body ol li::marker { color: var(--accent); font-weight: 700; }

.cms-body a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(255,184,0,0.35);
  text-underline-offset: 3px;
  transition: color 0.15s, text-decoration-color 0.15s;
}
.cms-body a:hover {
  color: var(--accent-2);
  text-decoration-color: var(--accent-2);
}

.cms-body blockquote {
  border-left: 3px solid var(--accent);
  margin: 1.5rem 0;
  padding: 0.75rem 1.25rem;
  background: var(--surface);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  color: var(--t-mid);
  font-style: italic;
}

.cms-body code {
  font-family: var(--font-mono);
  font-size: 0.84em;
  background: var(--code-bg);
  color: var(--accent-3);
  padding: 0.15em 0.45em;
  border-radius: 5px;
  border: 1px solid var(--border);
}

.cms-body pre {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  margin: 1.25rem 0;
  line-height: 1.6;
}
.cms-body pre code {
  background: none;
  border: none;
  padding: 0;
  color: var(--t-hi);
  font-size: 0.875rem;
}

.cms-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}
.cms-body table th {
  text-align: left;
  padding: 0.7rem 1rem;
  background: var(--surface-2);
  color: var(--t-hi);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-strong);
}
.cms-body table td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--t-mid);
  vertical-align: top;
}
.cms-body table tr:last-child td { border-bottom: none; }
.cms-body table tr:hover td { background: var(--surface); }

.cms-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

/* ── Card grid ─────────────────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}
.card-grid-2 {
  grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
}
.card-grid-3 {
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
}

/* ── Glass card ────────────────────────────────────────────────── */
.glass-card {
  background: var(--surface);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  transition: border-color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s;
}
.glass-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.glass-card-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.glass-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--t-hi);
  margin: 0 0 0.4rem;
}
.glass-card p {
  font-size: 0.875rem;
  color: var(--t-mid);
  line-height: 1.65;
  margin: 0;
}

/* ── Card icon ─────────────────────────────────────────────────── */
.card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  background: var(--surface-2);
  flex-shrink: 0;
}
.card-icon-gold { background: rgba(255,184,0,0.12); }
.card-icon-teal { background: rgba(0,217,163,0.10); }
.card-icon-orange { background: rgba(255,107,53,0.10); }

/* ── Badge ─────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.725rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.badge-gold    { background: rgba(255,184,0,0.15);   color: var(--accent);   border: 1px solid rgba(255,184,0,0.25); }
.badge-teal    { background: rgba(0,217,163,0.12);   color: var(--accent-3); border: 1px solid rgba(0,217,163,0.2);  }
.badge-orange  { background: rgba(255,107,53,0.12);  color: var(--accent-2); border: 1px solid rgba(255,107,53,0.2); }
.badge-neutral { background: var(--surface-2);       color: var(--t-mid);    border: 1px solid var(--border); }
.badge-green   { background: rgba(34,197,94,0.12);   color: #22c55e;         border: 1px solid rgba(34,197,94,0.2);  }
.badge-red     { background: rgba(239,68,68,0.12);   color: #ef4444;         border: 1px solid rgba(239,68,68,0.2);  }

/* ── Section heading ───────────────────────────────────────────── */
.section-heading {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  font-weight: 700;
  color: var(--t-hi);
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}
.section-sub {
  color: var(--t-mid);
  font-size: 0.9375rem;
  margin-bottom: 1.5rem;
}

/* ── Divider ───────────────────────────────────────────────────── */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

/* ── Inline info strip ─────────────────────────────────────────── */
.info-strip {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  margin: 1.25rem 0;
  font-size: 0.875rem;
  color: var(--t-mid);
}
.info-strip.warning { border-color: rgba(255,184,0,0.3); background: rgba(255,184,0,0.06); }
.info-strip.danger  { border-color: rgba(239,68,68,0.3); background: rgba(239,68,68,0.06); }
.info-strip.success { border-color: rgba(0,217,163,0.3); background: rgba(0,217,163,0.06); }

/* ── Forms ─────────────────────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.1rem;
}
.form-group label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--t-mid);
  letter-spacing: 0.01em;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--t-hi);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255,184,0,0.12);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select { cursor: pointer; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* ── Steps ─────────────────────────────────────────────────────── */
.steps {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 1.25rem 0;
}
.step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #050508;
  font-weight: 800;
  font-size: 0.8125rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.step-content h4 {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--t-hi);
  margin-bottom: 0.25rem;
}
.step-content p { font-size: 0.875rem; color: var(--t-mid); margin: 0; }

/* ── FAQ accordion ─────────────────────────────────────────────── */
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  background: none;
  border: none;
  color: var(--t-hi);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s;
}
.faq-question:hover { color: var(--accent); }
.faq-chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  transition: transform 0.25s var(--ease), background 0.2s;
}
.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  background: rgba(255,184,0,0.15);
  color: var(--accent);
}
.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s var(--ease);
}
.faq-item.open .faq-answer {
  max-height: 2000px; /* large enough for any answer; CSS transitions from 0→2000px */
}
.faq-answer-inner {
  padding: 0 0 1.25rem;
  font-size: 0.9rem;
  color: var(--t-mid);
  line-height: 1.75;
}

/* ── Code block ────────────────────────────────────────────────── */
.code-block {
  position: relative;
  margin: 1.25rem 0;
}
.code-block pre {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  line-height: 1.7;
  color: var(--t-hi);
}
.code-block .code-lang {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--t-low);
  padding: 0.25rem 0.75rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: var(--r-sm) var(--r-sm) 0 0;
  margin-bottom: -1px;
}

/* ── Blog post card ────────────────────────────────────────────── */
.post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s;
}
.post-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}
.post-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.post-card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
  font-size: 0.775rem;
  color: var(--t-low);
}
.post-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--t-hi);
  letter-spacing: -0.01em;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}
.post-card p {
  font-size: 0.84rem;
  color: var(--t-mid);
  line-height: 1.65;
  flex: 1;
}
.post-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  margin-top: 1rem;
  transition: gap 0.15s;
}
.post-card-link:hover { gap: 0.5rem; }

/* ── Stat block ────────────────────────────────────────────────── */
.stat-block {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin: 1.5rem 0;
}
.stat {
  background: var(--bg);
  padding: 1.25rem 1.5rem;
  text-align: center;
}
.stat-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--t-hi);
  letter-spacing: -0.03em;
  line-height: 1;
}
.stat-label {
  font-size: 0.78rem;
  color: var(--t-low);
  margin-top: 0.3rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── Contact method ────────────────────────────────────────────── */
.contact-method {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: border-color 0.2s;
}
.contact-method:hover { border-color: var(--border-strong); }
.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: rgba(255,184,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.contact-info h4 { font-size: 0.9375rem; font-weight: 700; color: var(--t-hi); margin-bottom: 0.2rem; }
.contact-info p  { font-size: 0.84rem; color: var(--t-mid); margin: 0; }
.contact-info a  { color: var(--accent); text-decoration: none; }
.contact-info a:hover { text-decoration: underline; }

/* ── Skeleton loading ──────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg,
    var(--surface) 25%,
    var(--surface-2) 50%,
    var(--surface) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--r-sm);
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton-text  { height: 1em;    margin-bottom: 0.5rem; }
.skeleton-title { height: 1.75em; width: 60%; margin-bottom: 1rem; }
.skeleton-para  { height: 0.9em;  margin-bottom: 0.4rem; }
.skeleton-card  { height: 160px; }

/* ── Toast ─────────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  padding: 0.85rem 1.25rem;
  border-radius: var(--r-md);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--t-hi);
  background: var(--surface-2);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s var(--ease);
  max-width: 320px;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.success { border-color: rgba(0,217,163,0.4); }
.toast.error   { border-color: rgba(239,68,68,0.4); }

/* ── Page footer ───────────────────────────────────────────────── */
.page-footer {
  text-align: center;
  padding: 1.5rem var(--gutter);
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--t-low);
}
.page-footer a {
  color: var(--t-low);
  text-decoration: none;
  transition: color 0.15s;
}
.page-footer a:hover { color: var(--accent); }

/* ── Theme toggle ──────────────────────────────────────────────── */
.theme-toggle {
  width: 34px;
  height: 34px;
  border-radius: var(--r-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--t-mid);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.theme-toggle:hover {
  background: var(--surface-2);
  border-color: var(--border-strong);
  color: var(--t-hi);
}

/* ── Utilities ─────────────────────────────────────────────────── */
.text-accent  { color: var(--accent);   }
.text-teal    { color: var(--accent-3); }
.text-orange  { color: var(--accent-2); }
.text-muted   { color: var(--t-low);    }
.text-mid     { color: var(--t-mid);    }
.mt-xs  { margin-top: 0.5rem;  }
.mt-sm  { margin-top: 1rem;    }
.mt-md  { margin-top: 1.5rem;  }
.mt-lg  { margin-top: 2.5rem;  }
.mb-xs  { margin-bottom: 0.5rem; }
.mb-sm  { margin-bottom: 1rem;   }
.mb-md  { margin-bottom: 1.5rem; }
.mb-lg  { margin-bottom: 2.5rem; }
.gap-sm { gap: 0.5rem;  }
.gap-md { gap: 1rem;    }
.gap-lg { gap: 1.5rem;  }
.flex   { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.flex-wrap { flex-wrap: wrap; }
.w-full { width: 100%; }

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .site-header { height: 54px; }
  .header-nav .btn-ghost:not(:last-child) { display: none; }

  .page-hero { padding: 2.5rem var(--gutter) 1.5rem; }
  .page-hero h1 { font-size: 1.75rem; }

  .card-grid, .card-grid-2, .card-grid-3 {
    grid-template-columns: 1fr;
  }

  .form-row { grid-template-columns: 1fr; }

  .stat-block { grid-template-columns: repeat(2, 1fr); }

  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn-primary,
  .hero-actions .btn-outline { justify-content: center; }

  .toast {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    max-width: none;
  }
}

@media (max-width: 400px) {
  .stat-block { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════════════════════════
   CANONICAL NAV — dropdown + mobile drawer
   ════════════════════════════════════════════════════════════════ */

/* Main nav (desktop) */
.main-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex: 1;
  padding: 0 1rem;
}

/* Dropdown container */
.nav-dd { position: relative; }

.nav-dd-btn {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.45rem 0.75rem;
  background: transparent;
  border: none;
  color: var(--t-mid);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: var(--r-sm);
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}
.nav-dd-btn:hover,
.nav-dd.open .nav-dd-btn {
  color: var(--t-hi);
  background: var(--surface);
}

.nav-caret {
  font-size: 0.6rem;
  opacity: 0.55;
  transition: transform 0.2s var(--ease);
  line-height: 1;
}
.nav-dd.open .nav-caret { transform: rotate(180deg); }

.nav-dd-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  padding: 0.35rem;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.15s var(--ease), transform 0.15s var(--ease);
}
.nav-dd.open .nav-dd-panel {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.nav-dd-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.575rem 0.75rem;
  border-radius: calc(var(--r-sm) - 2px);
  font-size: 0.875rem;
  color: var(--t-mid);
  text-decoration: none;
  transition: background 0.12s, color 0.12s;
}
.nav-dd-item:hover {
  background: var(--surface-2);
  color: var(--t-hi);
}

/* Plain nav link */
.nav-link {
  padding: 0.45rem 0.75rem;
  color: var(--t-mid);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--r-sm);
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}
.nav-link:hover {
  color: var(--t-hi);
  background: var(--surface);
}

/* Right cluster */
.nav-right {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--t-hi);
  border-radius: 2px;
  transition: all 0.25s var(--ease);
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile drawer */
.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 300;
  pointer-events: none;
  visibility: hidden;
}
.nav-drawer.open {
  pointer-events: all;
  visibility: visible;
}
.nav-drawer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  opacity: 0;
  transition: opacity 0.25s;
}
.nav-drawer.open::before { opacity: 1; }

.nav-drawer-inner {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(300px, 90vw);
  background: var(--bg-2);
  border-left: 1px solid var(--border);
  padding: 1.5rem 1rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s var(--ease);
}
.nav-drawer.open .nav-drawer-inner { transform: translateX(0); }

.nav-drawer-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--t-low);
  padding: 0.85rem 0.6rem 0.3rem;
  margin: 0;
}

.nav-drawer-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.6rem;
  color: var(--t-mid);
  font-size: 0.9375rem;
  text-decoration: none;
  border-radius: var(--r-sm);
  transition: background 0.12s, color 0.12s;
}
.nav-drawer-item:hover {
  background: var(--surface-2);
  color: var(--t-hi);
}

.nav-drawer-divider {
  height: 1px;
  background: var(--border);
  margin: 0.5rem 0;
}

.nav-drawer-footer {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

/* Hide desktop nav on mobile */
@media (max-width: 900px) {
  .main-nav { display: none; }
  .nav-right .btn-ghost:not(.nav-keep) { display: none; }
  .nav-right .btn-accent:not(.nav-keep) { display: none; }
  .nav-hamburger { display: flex; }
}

/* ════════════════════════════════════════════════════════════════
   CANONICAL SITE FOOTER — 5-column rich footer
   ════════════════════════════════════════════════════════════════ */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  margin-top: auto;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3.5rem var(--gutter) 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr 1fr;
  gap: 2.5rem 2rem;
  margin-bottom: 3rem;
}

.footer-brand .logo {
  margin-bottom: 1rem;
  display: inline-flex;
}
.footer-brand > p {
  font-size: 0.82rem;
  line-height: 1.65;
  color: var(--t-mid);
  max-width: 260px;
  margin-bottom: 1.25rem;
}

.social-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.social-btn {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--t-mid);
  text-decoration: none;
  transition: all 0.2s var(--ease);
  flex-shrink: 0;
  font-family: var(--font-mono);
  line-height: 1;
}
.social-btn:hover {
  background: var(--surface-2);
  border-color: var(--border-strong);
  color: var(--accent);
  transform: translateY(-2px);
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--t-low);
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col ul li a {
  font-size: 0.855rem;
  color: var(--t-mid);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-col ul li a:hover { color: var(--t-hi); }

.badge-new {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.1em 0.45em;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 4px;
  font-size: 0.63rem;
  font-weight: 700;
  color: #050508;
  vertical-align: middle;
  line-height: 1.4;
}

.footer-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0 0 1.25rem;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-copy {
  font-size: 0.76rem;
  color: var(--t-low);
  line-height: 1.5;
}
.footer-copy strong { color: var(--t-mid); }

.footer-legal {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.footer-legal a {
  font-size: 0.76rem;
  color: var(--t-low);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-legal a:hover { color: var(--t-mid); }

.footer-compliance {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-size: 0.72rem;
  line-height: 1.6;
  color: var(--t-low);
}

/* Footer responsive */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand > p { max-width: 480px; }
}

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 380px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════════════════════════
   SANDBOX BANNER — thin amber strip above everything
   ════════════════════════════════════════════════════════════════ */

.sandbox-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  padding: .4rem 1rem;
  background: rgba(255,184,0,.10);
  border-bottom: 1px solid rgba(255,184,0,.28);
  font-size: .78rem;
  font-weight: 500;
  color: var(--accent);
  line-height: 1.4;
  position: relative;
}
.sandbox-banner a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}
.sandbox-banner a:hover { opacity: .75; }
.sandbox-banner-close {
  position: absolute;
  right: .75rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--accent);
  cursor: pointer;
  padding: .2rem .35rem;
  border-radius: var(--r-sm);
  line-height: 1;
  font-size: .85rem;
  opacity: .6;
  transition: opacity .15s;
}
.sandbox-banner-close:hover { opacity: 1; }

/* ════════════════════════════════════════════════════════════════
   NAV EXTENSIONS — wide dropdown + separator + login dropdown
   ════════════════════════════════════════════════════════════════ */

/* Wide 2-column dropdown for the Products mega-menu */
.nav-dd-panel.nav-dd-wide {
  min-width: 460px;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 520px) {
  .nav-dd-panel.nav-dd-wide { min-width: calc(100vw - 2rem); grid-template-columns: 1fr; }
}

/* Thin separator line within a dropdown panel */
.nav-dd-sep {
  grid-column: 1 / -1;
  height: 1px;
  background: var(--border);
  margin: .35rem 0;
}

/* Hide the Sign-In login dropdown on mobile (drawer handles it) */
@media (max-width: 900px) {
  .nav-right .nav-login-dd { display: none; }
}
