/* =============================================================================
   theme.css — pdf2excel v4 Design System
   -----------------------------------------------------------------------------
   Canonical theme file. Load trong bất kỳ page nào:
     <link rel="stylesheet" href="/theme.css">
   -----------------------------------------------------------------------------
   Design tokens: xem test/design-tokens-v4.json
   Component spec: xem test/DESIGN-SYSTEM-v4.md
   ============================================================================= */

/* -----------------------------------------------------------------------------
   1. Design tokens (CSS variables)
   ----------------------------------------------------------------------------- */
:root {
  /* Surfaces */
  --bg: #FAFAF9;
  --bg-2: #F5F5F4;
  --panel: #FFFFFF;
  --soft: #F5F5F4;
  --line: #E7E5E4;
  --line-2: #D6D3D1;

  /* Ink */
  --ink: #18181B;
  --ink-2: #3F3F46;
  --ink-3: #52525B;
  --muted: #71717A;
  --muted-2: #A1A1AA;

  /* Accent (emerald) */
  --accent: #047857;
  --accent-2: #065F46;
  --accent-soft: #D1FAE5;
  --accent-fg: #FFFFFF;
  --accent-glow: rgba(4, 120, 87, 0.10);
  --accent-glow-2: rgba(4, 120, 87, 0.18);

  /* Semantic */
  --ok: #047857;
  --warn: #B45309;
  --warn-soft: #FEF3C7;
  --err: #B91C1C;
  --err-soft: #FEE2E2;
  --info: #1D4ED8;
  --info-soft: #DBEAFE;
  --admin: #8b5cf6;
  --admin-soft: #EDE9FE;

  /* Bank states */
  --bank-auto: #10b981;
  --bank-auto-soft: #ECFDF5;
  --bank-manual: #f59e0b;
  --bank-manual-soft: #FEF3C7;
  --bank-unknown: #94a3b8;
  --bank-unknown-soft: #F1F5F9;

  /* Typography */
  --font-display: 'Outfit', system-ui, -apple-system, sans-serif;
  --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Spacing (4px grid) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px;
  --s-6: 24px; --s-8: 32px; --s-10: 40px; --s-12: 48px; --s-16: 64px; --s-20: 80px;

  /* Radii */
  --r-sm: 6px; --r-md: 10px; --r-lg: 14px; --r-xl: 20px; --r-2xl: 28px; --r-full: 999px;

  /* Shadows (tinted, subtle) */
  --sh-1: 0 1px 2px rgba(24, 24, 27, 0.04);
  --sh-2: 0 2px 8px -2px rgba(24, 24, 27, 0.05), 0 1px 2px rgba(24, 24, 27, 0.04);
  --sh-3: 0 8px 24px -8px rgba(24, 24, 27, 0.08), 0 2px 4px rgba(24, 24, 27, 0.04);
  --sh-4: 0 16px 40px -12px rgba(24, 24, 27, 0.10), 0 4px 8px rgba(24, 24, 27, 0.04);
  --sh-glow: 0 0 0 4px var(--accent-glow);

  /* Motion */
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast: 120ms;
  --dur: 220ms;
  --dur-slow: 380ms;

  /* z-index */
  --z-base: 0;
  --z-raised: 10;
  --z-sticky: 20;
  --z-overlay: 100;
  --z-modal: 1000;
  --z-toast: 1100;
}

/* -----------------------------------------------------------------------------
   2. Reset & base
   ----------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 14px/1.55 var(--font-body);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}
h1 { font-size: 32px; font-weight: 700; letter-spacing: -0.025em; }
h2 { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
h3 { font-size: 19px; font-weight: 600; }
h4 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
h5 { font-size: 14px; font-weight: 600; }
h6 { font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
p { margin: 0; }
a { color: var(--accent); text-decoration: none; transition: color var(--dur-fast); }
a:hover { color: var(--accent-2); }
code, pre, kbd, .mono { font-family: var(--font-mono); }
kbd {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 11px;
  color: var(--ink-2);
}
::selection { background: var(--accent-glow-2); color: var(--accent-2); }
img, svg { max-width: 100%; height: auto; display: block; }
button { font: inherit; cursor: pointer; }

/* Screen-reader only */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.sr-only-focusable:focus {
  position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; white-space: normal;
}

/* -----------------------------------------------------------------------------
   3. Layout primitives
   ----------------------------------------------------------------------------- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--s-6);
}
.section {
  padding: var(--s-16) 0;
}
.section-tight {
  padding: var(--s-10) 0;
}
.grid {
  display: grid;
  gap: var(--s-4);
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@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; }
}

/* -----------------------------------------------------------------------------
   4. Top nav
   ----------------------------------------------------------------------------- */
.topnav {
  position: sticky; top: 0; z-index: var(--z-sticky);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border-bottom: 1px solid var(--line);
}
.topnav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.topnav-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 700; font-size: 16px;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.topnav-brand .logo {
  width: 32px; height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, #18181B 0%, #27272A 100%);
  display: grid; place-items: center;
  color: var(--accent);
}
.topnav-brand .logo svg { width: 18px; height: 18px; }
.topnav-links {
  display: flex; align-items: center; gap: var(--s-2);
  list-style: none; padding: 0; margin: 0;
}
.topnav-links a {
  display: inline-flex; align-items: center;
  padding: 8px 12px;
  font-size: 13.5px; font-weight: 500;
  color: var(--ink-2);
  border-radius: var(--r-md);
  transition: background var(--dur-fast), color var(--dur-fast);
}
.topnav-links a:hover { background: var(--bg-2); color: var(--ink); }
.topnav-cta {
  display: flex; align-items: center; gap: var(--s-2);
}
@media (max-width: 760px) {
  .topnav-links { display: none; }
}

/* -----------------------------------------------------------------------------
   5. Hero
   ----------------------------------------------------------------------------- */
.hero {
  position: relative;
  text-align: center;
  padding: var(--s-16) var(--s-6) var(--s-12);
  background:
    radial-gradient(ellipse at 50% 0%, var(--accent-glow), transparent 50%),
    linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(24, 24, 27, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 24, 27, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  position: relative; max-width: 760px; margin: 0 auto;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px;
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border: 1px solid #6ee7b7;
  border-radius: var(--r-full);
  font-size: 12.5px;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: var(--s-5);
}
.hero-badge .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow-2);
}
.hero-title {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0 0 var(--s-5);
}
.hero-accent {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-3);
  max-width: 620px;
  margin: 0 auto var(--s-8);
}
.hero-ctas {
  display: flex; gap: var(--s-3); justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--s-8);
}
.hero-trust {
  display: flex; align-items: center; justify-content: center;
  gap: var(--s-5);
  flex-wrap: wrap;
  padding-top: var(--s-6);
  border-top: 1px solid var(--line);
}
.trust-item {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  text-align: center;
}
.trust-num {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.trust-label {
  font-size: 11px; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.04em;
  font-weight: 500;
}
.trust-divider {
  width: 1px; height: 24px; background: var(--line);
}

/* -----------------------------------------------------------------------------
   6. Buttons
   ----------------------------------------------------------------------------- */
.btn {
  appearance: none; border: 0;
  background: var(--ink);
  color: #FFFFFF;
  font: 500 14px/1 var(--font-body);
  padding: 11px 18px;
  border-radius: var(--r-md);
  cursor: pointer;
  transition:
    background var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out);
  display: inline-flex; align-items: center; gap: 7px;
  letter-spacing: -0.005em;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  text-decoration: none;
}
.btn:hover { background: #27272A; transform: translateY(-1px); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--accent-glow); }
.btn:disabled { background: var(--muted-2); cursor: not-allowed; transform: none; box-shadow: none; }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.btn.large { padding: 14px 24px; font-size: 15px; }
.btn.small { padding: 7px 12px; font-size: 12px; }

.btn.primary {
  background: var(--accent);
  color: var(--accent-fg);
  box-shadow: 0 1px 2px rgba(4, 120, 87, 0.3), 0 4px 12px rgba(4, 120, 87, 0.15);
}
.btn.primary:hover { background: var(--accent-2); box-shadow: 0 2px 4px rgba(4, 120, 87, 0.4), 0 8px 16px rgba(4, 120, 87, 0.2); }
.btn.primary:focus-visible { box-shadow: 0 0 0 4px var(--accent-glow); }

.btn.ghost {
  background: var(--panel);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--sh-1);
}
.btn.ghost:hover { background: var(--bg-2); border-color: var(--line-2); }
.btn.ghost:active { background: var(--line); }

.btn.danger { background: var(--err); color: white; }
.btn.danger:hover { background: #991B1B; }

/* Hero CTA variant — gradient + lift */
.btn-hero {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border: none;
  box-shadow: 0 1px 2px rgba(16, 185, 129, 0.3), 0 4px 12px rgba(16, 185, 129, 0.15);
}
.btn-hero:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(16, 185, 129, 0.4), 0 8px 16px rgba(16, 185, 129, 0.2);
}

/* -----------------------------------------------------------------------------
   7. Cards
   ----------------------------------------------------------------------------- */
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  transition: border-color var(--dur), transform var(--dur) var(--ease-spring);
}
.card:hover { border-color: var(--line-2); }
.card.raised { box-shadow: var(--sh-2); }
.card.featured {
  border-color: var(--accent);
  position: relative;
  box-shadow: 0 0 0 4px var(--accent-glow);
}
.card.featured::before {
  content: 'Phổ biến nhất';
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: white;
  font-size: 10.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: var(--r-full);
  white-space: nowrap;
}

.feature-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--s-5);
  transition: border-color var(--dur), transform var(--dur) var(--ease-spring);
}
.feature-card:hover {
  border-color: var(--line-2);
  transform: translateY(-2px);
}
.feature-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: var(--s-3);
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-title {
  font-size: 15px; font-weight: 600;
  color: var(--ink); margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.feature-desc {
  font-size: 13px; line-height: 1.5;
  color: var(--muted);
}

/* -----------------------------------------------------------------------------
   8. Bank showcase
   ----------------------------------------------------------------------------- */
.bank-showcase {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-5) var(--s-6);
}
.showcase-title {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: var(--s-3);
  flex-wrap: wrap; gap: var(--s-2);
}
.showcase-title h3 {
  font-size: 14px; font-weight: 600;
  color: var(--ink); margin: 0;
}
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--s-2);
}
.bank-chip {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: background var(--dur-fast), border-color var(--dur-fast);
}
.bank-chip:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
}
.bank-chip .bank-short {
  font-size: 11px; font-weight: 700;
  color: var(--ink);
  background: var(--panel);
  padding: 3px 7px;
  border-radius: 4px;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  min-width: 38px; text-align: center;
}
.bank-chip:hover .bank-short { background: white; }
.bank-chip .bank-full {
  font-size: 13px; color: var(--ink-2);
  font-weight: 500;
}

/* -----------------------------------------------------------------------------
   9. Step / How-it-works
   ----------------------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-6);
  position: relative;
}
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; }
}
.step {
  text-align: center;
  position: relative;
}
.step-num {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: inline-grid; place-items: center;
  font-family: var(--font-display);
  font-size: 18px; font-weight: 700;
  margin-bottom: var(--s-3);
  box-shadow: 0 4px 12px rgba(4, 120, 87, 0.25);
  position: relative;
  z-index: 1;
}
.step-title {
  font-size: 15px; font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.step-desc {
  font-size: 13px; line-height: 1.5;
  color: var(--muted);
  max-width: 240px; margin: 0 auto;
}

/* -----------------------------------------------------------------------------
   10. Pricing
   ----------------------------------------------------------------------------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
  max-width: 980px; margin: 0 auto;
}
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; max-width: 400px; } }
.pricing-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: var(--s-8);
  display: flex; flex-direction: column;
  transition: border-color var(--dur);
}
.pricing-card:hover { border-color: var(--line-2); }
.pricing-card.featured {
  border: 2px solid var(--accent);
  position: relative;
  box-shadow: 0 0 0 4px var(--accent-glow);
}
.pricing-card.featured::before {
  content: 'Phổ biến nhất';
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: white;
  font-size: 10.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: var(--r-full);
  white-space: nowrap;
}
.pricing-name {
  font-size: 14px; font-weight: 600;
  color: var(--ink-2);
  margin-bottom: var(--s-2);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.pricing-price {
  font-family: var(--font-display);
  font-size: 36px; font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.025em;
  line-height: 1;
  margin-bottom: 2px;
}
.pricing-price .unit { font-size: 14px; font-weight: 500; color: var(--muted); }
.pricing-sub {
  font-size: 13px; color: var(--muted);
  margin-bottom: var(--s-5);
}
.pricing-features {
  list-style: none; padding: 0; margin: 0 0 var(--s-6);
  display: flex; flex-direction: column; gap: var(--s-2);
}
.pricing-features li {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 13px; color: var(--ink-2);
  line-height: 1.4;
}
.pricing-features li svg {
  width: 16px; height: 16px;
  color: var(--ok);
  flex-shrink: 0; margin-top: 1px;
}
.pricing-cta { margin-top: auto; }
.pricing-cta .btn { width: 100%; justify-content: center; }

/* -----------------------------------------------------------------------------
   11. FAQ accordion
   ----------------------------------------------------------------------------- */
.faq {
  max-width: 760px; margin: 0 auto;
  display: flex; flex-direction: column;
  gap: var(--s-2);
}
.faq details {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color var(--dur);
}
.faq details:hover { border-color: var(--line-2); }
.faq details[open] {
  border-color: var(--accent);
  box-shadow: var(--sh-2);
}
.faq summary {
  cursor: pointer;
  padding: var(--s-4) var(--s-5);
  font-size: 14.5px; font-weight: 600;
  color: var(--ink);
  display: flex; align-items: center; justify-content: space-between;
  list-style: none;
  user-select: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '';
  width: 16px; height: 16px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2371717A' stroke-width='2'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  transition: transform var(--dur) var(--ease-spring);
  flex-shrink: 0;
}
.faq details[open] summary::after { transform: rotate(180deg); }
.faq details > div {
  padding: 0 var(--s-5) var(--s-5);
  font-size: 13.5px; line-height: 1.6;
  color: var(--ink-3);
}

/* -----------------------------------------------------------------------------
   12. CTA strip
   ----------------------------------------------------------------------------- */
.cta-strip {
  text-align: center;
  padding: var(--s-16) var(--s-6);
  background:
    radial-gradient(ellipse at center, var(--accent-glow), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cta-strip h2 {
  font-size: clamp(24px, 4vw, 36px);
  margin-bottom: var(--s-3);
  letter-spacing: -0.025em;
}
.cta-strip p {
  font-size: 15px; color: var(--ink-3);
  max-width: 480px; margin: 0 auto var(--s-6);
}

/* -----------------------------------------------------------------------------
   13. Footer
   ----------------------------------------------------------------------------- */
.footer {
  background: var(--ink);
  color: #d4d4d8;
  padding: var(--s-12) 0 var(--s-6);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: var(--s-8);
  margin-bottom: var(--s-8);
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
.footer-brand {
  display: flex; flex-direction: column; gap: var(--s-3);
  max-width: 320px;
}
.footer-brand .logo {
  width: 32px; height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, #27272A 0%, #3f3f46 100%);
  display: grid; place-items: center;
  color: var(--accent);
}
.footer-brand .logo svg { width: 18px; height: 18px; }
.footer-brand p {
  font-size: 13px; line-height: 1.5;
  color: #a1a1aa;
}
.footer-col h4 {
  font-size: 12px; font-weight: 600;
  color: white;
  text-transform: uppercase; letter-spacing: 0.04em;
  margin-bottom: var(--s-3);
}
.footer-col ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: var(--s-2);
}
.footer-col a {
  color: #a1a1aa;
  font-size: 13px;
  transition: color var(--dur-fast);
}
.footer-col a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid #27272a;
  padding-top: var(--s-5);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: #71717a;
  flex-wrap: wrap; gap: var(--s-2);
}
.footer-bottom .meta { display: flex; gap: var(--s-4); }

/* -----------------------------------------------------------------------------
   14. Badge (status)
   ----------------------------------------------------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--bg-2);
  color: var(--ink-2);
  font-size: 11.5px; font-weight: 500;
  padding: 4px 9px;
  border-radius: var(--r-full);
  border: 1px solid var(--line);
  font-family: var(--font-body);
  letter-spacing: 0.01em;
}
.badge.ok { background: #ECFDF5; color: var(--ok); border-color: rgba(4, 120, 87, 0.18); }
.badge.warn { background: var(--warn-soft); color: var(--warn); border-color: rgba(180, 83, 9, 0.18); }
.badge.err { background: var(--err-soft); color: var(--err); border-color: rgba(185, 28, 28, 0.18); }
.badge.info { background: var(--info-soft); color: var(--info); border-color: rgba(29, 78, 216, 0.18); }

/* -----------------------------------------------------------------------------
   15. Toast
   ----------------------------------------------------------------------------- */
.toast {
  position: fixed; top: 20px; right: 20px;
  z-index: var(--z-toast);
  max-width: 400px;
  background: var(--ink);
  color: white;
  padding: 12px 18px;
  border-radius: var(--r-md);
  font-size: 13.5px;
  box-shadow: var(--sh-4);
  opacity: 0; transform: translateY(-12px);
  pointer-events: none;
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-spring);
}
.toast.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.toast.ok { background: var(--ok); }
.toast.warn { background: var(--warn); }
.toast.err { background: var(--err); }
.toast.info { background: var(--info); }

/* -----------------------------------------------------------------------------
   16. Section headers
   ----------------------------------------------------------------------------- */
.section-eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 600;
  color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.04em;
  margin-bottom: var(--s-2);
}
.section-title {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: var(--s-3);
  line-height: 1.15;
}
.section-sub {
  font-size: 15.5px; line-height: 1.6;
  color: var(--ink-3);
  max-width: 620px;
  margin: 0 auto;
}
.section-head {
  text-align: center;
  margin-bottom: var(--s-10);
}

/* -----------------------------------------------------------------------------
   17. Animations
   ----------------------------------------------------------------------------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
}
@keyframes shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}
.animate-in {
  animation: fadeUp var(--dur-slow) var(--ease-spring) both;
}
.animate-in-1 { animation-delay: 100ms; }
.animate-in-2 { animation-delay: 200ms; }
.animate-in-3 { animation-delay: 300ms; }

@media (prefers-reduced-motion: no-preference) {
  .animate-in { animation: fadeUp var(--dur-slow) var(--ease-spring) both; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* -----------------------------------------------------------------------------
   18. Mobile responsive
   ----------------------------------------------------------------------------- */
@media (max-width: 760px) {
  body { font-size: 13.5px; }
  h1 { font-size: 28px; }
  h2 { font-size: 22px; }
  .container { padding: 0 var(--s-4); }
  .section { padding: var(--s-10) 0; }
  .hero { padding: var(--s-10) var(--s-4) var(--s-8); }
  .hero-trust { gap: var(--s-3); }
  .btn { padding: 11px 16px; min-height: 42px; }
  .feature-card, .card { padding: var(--s-4); }
  .pricing-card { padding: var(--s-6); }
}
