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

:root {
  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --blue-200: #bfdbfe;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --blue-900: #1e3a5f;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.05), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.06), 0 4px 10px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 50px rgba(0,0,0,0.08);
  --transition: 0.2s ease;

  /* Financial semantic tokens */
  --color-positive:     #059669;
  --color-positive-bg:  #d1fae5;
  --color-negative:     #dc2626;
  --color-negative-bg:  #fee2e2;
  --color-warning:      #d97706;
  --color-warning-bg:   #fef3c7;

  /* UI icon palette */
  --color-purple:       #7c3aed;
  --color-purple-bg:    #ede9fe;
  --color-orange:       #ea580c;
  --color-orange-bg:    #ffedd5;
  --color-rose:         #e11d48;
  --color-rose-bg:      #ffe4e6;
  --color-teal:         #0d9488;
  --color-teal-bg:      #ccfbf1;
}

html { scroll-behavior: smooth; }

/* Offset anchors for the fixed navbar (64px + 16px breathing room) */
:target { scroll-margin-top: 80px; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Arial, sans-serif;
  color: var(--gray-800);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== Typography ===== */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; color: var(--gray-900); }
h1 { font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); letter-spacing: -0.02em; }
h3 { font-size: 1.25rem; }
p { color: var(--gray-600); }

a { color: var(--blue-600); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--blue-700); }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ===== Navbar ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gray-100);
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow-md); }
.navbar .container {
  display: flex; align-items: center;
  height: 64px; gap: 24px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 1.2rem; color: var(--gray-900);
  flex-shrink: 0;
}
.nav-logo svg { width: 32px; height: 32px; }
.nav-links { display: flex; align-items: center; justify-content: center; gap: 4px; list-style: none; flex: 1; min-width: 0; }
.nav-links a {
  font-size: 0.875rem; font-weight: 500; color: var(--gray-600);
  white-space: nowrap; padding: 6px 14px; border-radius: 999px;
  transition: all var(--transition);
}
.nav-links a:hover { color: var(--gray-900); background: var(--gray-100); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 16px; border-radius: 999px;
  background: var(--blue-600); color: #fff !important;
  font-size: 0.813rem; font-weight: 600;
  transition: all var(--transition); white-space: nowrap;
}
.nav-cta:hover { background: var(--blue-700); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.nav-cta svg { width: 16px; height: 16px; }

/* Language Switcher */
.lang-select {
  padding: 5px 26px 5px 10px;
  border: 1px solid var(--gray-200); border-radius: 999px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 7px center;
  color: var(--gray-700); font-weight: 600; font-size: 0.8rem;
  font-family: inherit; cursor: pointer; outline: none;
  -webkit-appearance: none; appearance: none;
  transition: border-color var(--transition); flex-shrink: 0;
}
.lang-select:hover { border-color: var(--gray-300); }
.lang-select:focus-visible { border-color: var(--blue-500); }
.mobile-lang-switcher {
  display: flex; justify-content: center;
  padding: 12px 0 4px;
}

.mobile-menu-btn {
  display: none; background: none; border: none; cursor: pointer;
  padding: 8px; border-radius: 8px; color: var(--gray-600);
}
.mobile-menu-btn:hover { background: var(--gray-100); }
.nav-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

/* ===== Mobile Menu ===== */
.mobile-nav {
  display: none;
  position: fixed; top: 64px; left: 0; right: 0;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gray-100);
  padding: 16px 24px;
  z-index: 99;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block; padding: 12px 0;
  font-size: 1rem; font-weight: 500; color: var(--gray-700);
  border-bottom: 1px solid var(--gray-100);
}
.mobile-nav a:last-child { border-bottom: none; }

/* ===== Footer ===== */
.footer {
  padding: 60px 0 40px;
  border-top: 1px solid var(--gray-100);
}
.footer-top {
  display: flex; justify-content: space-between; gap: 48px;
  margin-bottom: 48px;
}
.footer-brand p { color: var(--gray-500); font-size: 0.875rem; margin-top: 12px; max-width: 280px; }
.footer-cols { display: flex; gap: 64px; }
.footer-col h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gray-400); margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 0.9rem; color: var(--gray-600); }
.footer-col a:hover { color: var(--gray-900); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--gray-100);
  font-size: 0.8rem; color: var(--gray-400);
}
.footer-legal-links { display: flex; gap: 24px; }
.footer-legal-links a { color: var(--gray-400); }
.footer-legal-links a:hover { color: var(--gray-600); }

/* ===== Animations ===== */
.fade-up {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ===== Accessibility: Keyboard Focus ===== */
:focus-visible {
  outline: 2px solid var(--blue-500);
  outline-offset: 2px;
}
:focus:not(:focus-visible) { outline: none; }

/* ============================================
   PAGE: Index (Landing)
   ============================================ */

/* ===== Hero ===== */
.hero {
  padding: 140px 0 80px;
  text-align: center;
  background: linear-gradient(180deg, var(--blue-50) 0%, #fff 100%);
  overflow: hidden;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 999px;
  background: var(--blue-100); color: var(--blue-700);
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.02em;
  margin-bottom: 24px;
}
.hero-badge .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--blue-500);
  animation: pulse 2s ease-in-out infinite;
}
.hero-badge .dot-live {
  background: var(--color-positive);
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero h1 { margin-bottom: 20px; }
.hero h1 span { color: var(--blue-600); }
.hero p {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  max-width: 600px; margin: 0 auto 40px;
  color: var(--gray-500);
}
.hero-actions { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 999px;
  background: var(--blue-600); color: #fff;
  font-size: 1rem; font-weight: 600; border: none; cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 4px 14px rgba(37,99,235,0.3);
}
.btn-primary:hover { background: var(--blue-700); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37,99,235,0.35); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 999px;
  background: #fff; color: var(--gray-700);
  font-size: 1rem; font-weight: 600; border: 1px solid var(--gray-200); cursor: pointer;
  transition: all var(--transition);
}
.btn-secondary:hover { background: var(--gray-50); border-color: var(--gray-300); transform: translateY(-1px); }
.btn-secondary svg, .btn-primary svg { width: 18px; height: 18px; }

.hero-platforms {
  display: flex; align-items: center; justify-content: center; gap: 24px;
  margin-top: 24px; color: var(--gray-400); font-size: 0.85rem;
}
.hero-platforms span { display: flex; align-items: center; gap: 6px; }

/* ===== Screenshot Mockups ===== */
.hero-mockups {
  margin-top: 64px;
  display: flex; align-items: center; justify-content: center; gap: 20px;
  perspective: 1000px;
}
.mockup {
  border-radius: var(--radius-xl);
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  transition: transform 0.4s ease;
  position: relative;
}
.mockup-ios {
  width: 200px; max-width: 22vw;
  border-radius: 28px;
  border: 3px solid var(--gray-200);
}
.mockup-ios-featured {
  width: 240px; max-width: 28vw;
  z-index: 1;
  box-shadow: 0 25px 60px rgba(0,0,0,0.15);
}
.mockup-ios img {
  width: 100%; height: auto; display: block;
}
.mockup:hover { transform: translateY(-4px); }

/* ===== Features Grid ===== */
.features { padding: 100px 0; }
.section-header { text-align: center; margin-bottom: 64px; }
.section-header .overline {
  display: inline-block;
  font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--blue-600);
  margin-bottom: 12px;
}
.section-header p { max-width: 540px; margin: 16px auto 0; font-size: 1.05rem; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  transition: all 0.3s ease;
}
.feature-card:hover {
  background: #fff;
  border-color: var(--blue-200);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.feature-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
}
.feature-icon.blue { background: var(--blue-100); color: var(--blue-600); }
.feature-icon.green { background: var(--color-positive-bg); color: var(--color-positive); }
.feature-icon.purple { background: var(--color-purple-bg); color: var(--color-purple); }
.feature-icon.orange { background: var(--color-orange-bg); color: var(--color-orange); }
.feature-icon.rose { background: var(--color-rose-bg); color: var(--color-rose); }
.feature-icon.teal { background: var(--color-teal-bg); color: var(--color-teal); }

.feature-card h3 { margin-bottom: 8px; }
.feature-card p { font-size: 0.925rem; line-height: 1.6; }

/* ===== Benefits ===== */
.benefits {
  padding: 100px 0;
  background: var(--gray-900);
  color: #fff;
}
.benefits .section-header p { color: var(--gray-400); }
.benefits .section-header h2 { color: #fff; }

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.benefit-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  transition: all 0.3s ease;
}
.benefit-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
}
.benefit-number-text { font-size: 2rem; }
.benefit-number {
  font-size: 2.5rem; font-weight: 800;
  background: linear-gradient(135deg, var(--blue-500), #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}
.benefit-card h3 { color: #fff; margin-bottom: 8px; }
.benefit-card p { color: var(--gray-400); font-size: 0.925rem; }

/* ===== Screenshots Section ===== */
.screenshots { padding: 100px 0; background: var(--gray-50); }
.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.screenshot-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}
.screenshot-item:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.screenshot-img {
  background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-50) 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 20px 0 0;
  overflow: hidden;
}
.screenshot-img img {
  width: 65%; height: auto; display: block;
  border-radius: 8px 8px 0 0;
  box-shadow: 0 -2px 20px rgba(0,0,0,0.08);
}
.screenshot-label {
  padding: 16px 20px;
  font-size: 0.875rem; font-weight: 600; color: var(--gray-700);
}

/* ===== Import Formats ===== */
.formats { padding: 100px 0; }
.formats-row {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  flex-wrap: wrap; margin-top: 40px;
}
.format-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 999px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  font-size: 0.9rem; font-weight: 600; color: var(--gray-700);
  transition: all var(--transition);
}
.format-pill:hover { background: var(--blue-50); border-color: var(--blue-200); color: var(--blue-700); }
.format-pill .badge {
  font-size: 0.7rem; padding: 2px 8px;
  background: var(--blue-100); color: var(--blue-600);
  border-radius: 999px; font-weight: 700;
}

/* ===== CTA Section ===== */
.cta-section {
  padding: 100px 0;
  text-align: center;
  background: linear-gradient(180deg, #fff 0%, var(--blue-50) 100%);
}
.cta-section h2 { margin-bottom: 16px; }
.cta-section p { max-width: 480px; margin: 0 auto 32px; font-size: 1.05rem; }
.cta-email-form {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  max-width: 460px; margin: 0 auto;
}
.cta-email-form input {
  flex: 1;
  padding: 14px 20px; border-radius: 999px;
  border: 1px solid var(--gray-200);
  font-size: 0.95rem; outline: none;
  transition: border-color var(--transition);
}
.cta-email-form input:focus-visible { border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(59,130,246,0.1); }
.cta-email-form button { white-space: nowrap; }

/* ===== Legal Section ===== */
.legal { padding: 80px 0; background: var(--gray-50); }
.legal h2 { font-size: 1.75rem; margin-bottom: 32px; text-align: center; }
.legal-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
  max-width: 900px; margin: 0 auto;
}
.legal-card {
  padding: 28px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--gray-200);
}
.legal-card h3 { font-size: 1rem; margin-bottom: 12px; }
.legal-card p { font-size: 0.875rem; line-height: 1.7; }

/* ============================================
   PAGE: Pricing
   ============================================ */
.pricing-section { padding: 80px 0 100px; }
.pricing-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 24px; max-width: 800px; margin: 0 auto;
}
.pricing-card {
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  background: #fff;
  transition: all 0.3s ease;
}
.pricing-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.pricing-card-featured {
  border-color: var(--blue-200);
  background: linear-gradient(180deg, var(--blue-50) 0%, #fff 40%);
  box-shadow: var(--shadow-md);
  position: relative;
}
.pricing-card-featured::before {
  content: '';
  position: absolute; top: -1px; left: 24px; right: 24px; height: 3px;
  background: var(--blue-600); border-radius: 0 0 3px 3px;
}
.pricing-card-badge {
  display: inline-flex; align-items: center;
  padding: 4px 12px; border-radius: 999px;
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  margin-bottom: 16px;
}
.pricing-card-badge-free { background: var(--gray-100); color: var(--gray-600); }
.pricing-card-badge-premium { background: var(--blue-100); color: var(--blue-700); }
.pricing-card h3 { font-size: 1.5rem; margin-bottom: 4px; }
.pricing-card .pricing-price {
  font-size: 1.05rem; color: var(--gray-500); margin-bottom: 20px;
  font-weight: 500;
}
.pricing-card .pricing-desc {
  font-size: 0.925rem; line-height: 1.6; color: var(--gray-500);
  margin-bottom: 24px; padding-bottom: 24px;
  border-bottom: 1px solid var(--gray-100);
}
.pricing-features { list-style: none; padding: 0; }
.pricing-features li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.9rem; color: var(--gray-700); line-height: 1.5;
  margin-bottom: 12px;
}
.pricing-features li::before {
  content: '';
  flex-shrink: 0; width: 20px; height: 20px; margin-top: 1px;
  background: var(--color-positive-bg);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23059669' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}
.pricing-trial {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 24px; padding: 10px 16px;
  background: var(--blue-50); border-radius: var(--radius);
  font-size: 0.8125rem; font-weight: 600; color: var(--blue-700);
}

/* ============================================
   PAGE: About
   ============================================ */
.about-stats {
  padding: 80px 0;
  background: var(--gray-900); color: #fff;
}
.about-stats-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; text-align: center;
}
.about-stat-number {
  font-size: clamp(2.5rem, 4vw, 3.5rem); font-weight: 800;
  background: linear-gradient(135deg, var(--blue-500), #818cf8);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px; line-height: 1.1;
}
.about-stat-label { font-size: 0.925rem; color: var(--gray-400); }
.about-values { padding: 100px 0; }
.about-values-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.about-cta {
  padding: 100px 0;
  text-align: center;
  background: linear-gradient(180deg, #fff 0%, var(--blue-50) 100%);
}
.about-cta h2 { margin-bottom: 16px; }
.about-cta p { max-width: 480px; margin: 0 auto 32px; font-size: 1.05rem; }

/* ============================================
   PAGE: Security
   ============================================ */
.security-features { padding: 80px 0; }
.security-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.security-promises {
  padding: 100px 0;
  background: var(--gray-900); color: #fff;
}
.security-promises .section-header h2 { color: #fff; }
.security-promises .section-header p { color: var(--gray-400); }
.security-promise-list {
  max-width: 640px; margin: 0 auto;
  list-style: none; padding: 0;
}
.security-promise-list li {
  display: flex; align-items: flex-start; gap: 14px;
  font-size: 1rem; line-height: 1.7; color: var(--gray-300);
  margin-bottom: 20px;
}
.security-promise-list li::before {
  content: '';
  flex-shrink: 0; width: 24px; height: 24px; margin-top: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2381c994' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}
.security-cta {
  padding: 100px 0;
  text-align: center;
  background: linear-gradient(180deg, #fff 0%, var(--blue-50) 100%);
}
.security-cta h2 { margin-bottom: 16px; }
.security-cta p { max-width: 520px; margin: 0 auto 32px; font-size: 1.05rem; }

/* ============================================
   PAGES: Privacy, Terms, Blog (shared)
   ============================================ */

/* ===== Page Hero ===== */
.page-hero {
  padding: 120px 0 64px;
  background: linear-gradient(180deg, var(--blue-50) 0%, #fff 100%);
  border-bottom: 1px solid var(--gray-100);
}
.page-hero-large {
  padding: 140px 0 80px;
  text-align: center;
  border-bottom: none;
}
.page-hero-large h1 { margin-bottom: 16px; }
.page-hero-large .page-hero-subtitle { margin: 0 auto; }
.page-hero .back-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.875rem; color: var(--gray-500); margin-bottom: 24px;
  transition: color var(--transition);
}
.page-hero .back-link:hover { color: var(--blue-600); }
.page-hero .back-link svg { width: 16px; height: 16px; }
.page-hero h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); letter-spacing: -0.02em; margin-bottom: 12px; }
.page-hero-subtitle { font-size: 1.05rem; max-width: 520px; }
.page-hero .meta {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-top: 16px; font-size: 0.875rem; color: var(--gray-400);
}
.page-hero .badge {
  display: inline-flex; align-items: center;
  padding: 4px 12px; border-radius: 999px;
  background: var(--blue-50); color: var(--blue-700);
  font-size: 0.8rem; font-weight: 600; border: 1px solid var(--blue-100);
}

/* ===== Document Layout ===== */
.doc-wrap { max-width: 800px; margin: 0 auto; padding: 60px 24px 96px; }

/* Table of Contents */
.toc {
  background: var(--gray-50); border: 1px solid var(--gray-200);
  border-radius: var(--radius); padding: 24px 28px; margin-bottom: 48px;
}
.toc-title {
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--gray-400); font-weight: 700; margin-bottom: 14px;
}
.toc ol { padding-left: 20px; }
.toc li { margin-bottom: 8px; }
.toc a { font-size: 0.9rem; color: var(--gray-600); }
.toc a:hover { color: var(--blue-600); }

/* Sections */
.doc-section { margin-bottom: 0; }
.doc-section + .doc-section { border-top: 1px solid var(--gray-100); margin-top: 40px; padding-top: 40px; }
.doc-section .section-header { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; scroll-margin-top: 84px; }
.section-num {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%;
  background: var(--blue-600); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8125rem; font-weight: 700; margin-top: 2px;
}
.doc-section h2 { font-size: 1.2rem; padding-top: 4px; }
.doc-section p { font-size: 0.9375rem; line-height: 1.8; margin-bottom: 12px; }
.doc-section p:last-child { margin-bottom: 0; }
.doc-section h3 { font-size: 0.9375rem; font-weight: 600; margin: 20px 0 8px; color: var(--gray-800); }
.doc-section ul, .doc-section ol { padding-left: 22px; margin-bottom: 12px; }
.doc-section li { font-size: 0.9375rem; line-height: 1.8; color: var(--gray-600); margin-bottom: 2px; }
.doc-section li strong { color: var(--gray-800); }

/* Table */
.table-wrapper {
  overflow-x: auto; border-radius: var(--radius); margin: 16px 0 20px;
  border: 1px solid var(--gray-200); box-shadow: var(--shadow-sm);
}
.doc-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; min-width: 500px; }
.doc-table th {
  text-align: left; padding: 10px 16px;
  background: var(--gray-50); color: var(--gray-700);
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em;
  border-bottom: 2px solid var(--gray-200); white-space: nowrap;
}
.doc-table td { padding: 10px 16px; border-bottom: 1px solid var(--gray-100); color: var(--gray-600); vertical-align: top; }
.doc-table tr:last-child td { border-bottom: none; }
.doc-table td strong { color: var(--gray-800); font-weight: 600; }
.doc-table code {
  font-family: 'SF Mono', 'Menlo', monospace; font-size: 0.8125rem;
  background: var(--gray-100); padding: 1px 6px; border-radius: 4px; color: var(--gray-700);
}

/* Callout / Note */
.callout {
  padding: 14px 20px; background: var(--blue-50);
  border-left: 3px solid var(--blue-600);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 16px 0; font-size: 0.9rem; color: var(--gray-700); line-height: 1.7;
}
.note {
  padding: 14px 20px; background: #fffbeb;
  border-left: 3px solid #d97706;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 16px 0; font-size: 0.875rem; color: #92400e; line-height: 1.7;
}

/* Contact card */
.contact-card {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 24px; border: 1px solid var(--gray-200);
  border-radius: var(--radius); background: var(--gray-50); margin-top: 16px;
}
.contact-card a { font-weight: 600; font-size: 1rem; }
.contact-icon {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  background: var(--blue-50); border: 1px solid var(--blue-100);
  display: flex; align-items: center; justify-content: center;
}
.contact-icon svg { width: 20px; height: 20px; stroke: var(--blue-600); fill: none; }

/* Language toggle content */
.lang-content { display: none; }
.lang-content.active { display: block; }

/* ============================================
   PAGE: Blog
   ============================================ */

/* ===== Blog List ===== */
.blog-wrap {
  max-width: 800px; margin: 0 auto;
  padding: 60px 0 96px;
}

.blog-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  background: #fff;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.blog-card:hover {
  border-color: var(--blue-200);
  box-shadow: var(--shadow-lg);
}
.blog-card + .blog-card { margin-top: 24px; }

.blog-card-link {
  display: block; padding: 32px;
  text-decoration: none; color: inherit;
}
.blog-card-link:hover { color: inherit; }

.blog-card-content h2 {
  font-size: 1.35rem; letter-spacing: -0.01em;
  margin-bottom: 10px; color: var(--gray-900);
  transition: color var(--transition);
}
.blog-card:hover .blog-card-content h2 { color: var(--blue-600); }

.blog-card-content p {
  font-size: 0.9375rem; line-height: 1.7;
  color: var(--gray-500); margin-bottom: 0;
}

.blog-card-meta {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 14px; font-size: 0.8125rem; color: var(--gray-400);
}

.blog-tag {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 999px;
  font-size: 0.75rem; font-weight: 600;
  background: var(--gray-100); color: var(--gray-600);
}
.blog-tag-announcement { background: var(--blue-50); color: var(--blue-700); }
.blog-tag-update       { background: #d1fae5; color: #065f46; }
.blog-tag-roadmap      { background: var(--color-purple-bg); color: var(--color-purple); }
.blog-tag-guide        { background: var(--color-orange-bg); color: var(--color-orange); }

.blog-read-more {
  display: inline-block; margin-top: 16px;
  font-size: 0.875rem; font-weight: 600; color: var(--blue-600);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  /* Shared */
  .nav-links { display: none; }
  .nav-right .nav-cta { display: none; }
  .mobile-menu-btn { display: block; }
  .footer-top { flex-direction: column; }
  .footer-cols { flex-direction: column; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }

  /* Index */
  .features-grid { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: 1fr; }
  .screenshots-grid { grid-template-columns: 1fr; max-width: 360px; margin-left: auto; margin-right: auto; }
  .hero-mockups { gap: 12px; }
  .mockup-ios { width: 140px; max-width: 28vw; border-radius: 20px; }
  .mockup-ios-featured { width: 170px; max-width: 34vw; }
  .legal-grid { grid-template-columns: 1fr; }
  .cta-email-form { flex-direction: column; }
  .cta-email-form input { width: 100%; }

  /* Pricing */
  .pricing-grid { grid-template-columns: 1fr; max-width: 440px; }
  .pricing-card { padding: 28px; }

  /* About */
  .about-stats-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-values-grid { grid-template-columns: 1fr; }

  /* Security */
  .security-grid { grid-template-columns: 1fr; }

  /* Pages */
  .page-hero { padding: 100px 0 48px; }
  .doc-wrap { padding: 40px 20px 64px; }
  .blog-wrap { padding: 40px 0 64px; }
  .blog-card-link { padding: 24px; }
}
@media (max-width: 1024px) and (min-width: 769px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .screenshots-grid { grid-template-columns: repeat(2, 1fr); }
  .security-grid { grid-template-columns: repeat(2, 1fr); }
  .about-values-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================
   DARK MODE
   ============================================ */
@media (prefers-color-scheme: dark) {
  :root {
    /* Financial semantic tokens — dark */
    --color-positive:     #81c994;
    --color-positive-bg:  #0a2218;
    --color-negative:     #f28a82;
    --color-negative-bg:  #2a0c0c;
    --color-warning:      #fdd560;
    --color-warning-bg:   #2a2008;

    /* UI icon palette — dark */
    --color-purple:       #c4b5fd;
    --color-purple-bg:    #1e1433;
    --color-orange:       #fb923c;
    --color-orange-bg:    #2a1a0a;
    --color-rose:         #fda4af;
    --color-rose-bg:      #2a0c13;
    --color-teal:         #5eead4;
    --color-teal-bg:      #0a2820;
  }

  body       { background: #0a0a0b; color: #e8ebee; }
  h1, h2, h3, h4 { color: #e8ebee; }
  p          { color: #9aa0a6; }
  a          { color: #8ab4f8; }
  a:hover    { color: #aecbfa; }

  /* Navbar */
  .navbar                 { background: rgba(10,10,11,0.85); border-bottom-color: #242628; }
  .nav-logo               { color: #e8ebee; }
  .nav-links a            { color: #9aa0a6; }
  .nav-links a:hover      { color: #e8ebee; background: #222426; }

  /* Language select */
  .lang-select            { background-color: #191b1d; border-color: #3c3c3c; color: #bdc1c6; }
  .lang-select:hover      { border-color: #4a4a4a; }

  /* Mobile */
  .mobile-menu-btn        { color: #9aa0a6; }
  .mobile-menu-btn:hover  { background: #222426; }
  .mobile-nav             { background: rgba(10,10,11,0.98); border-bottom-color: #242628; }
  .mobile-nav a           { color: #bdc1c6; border-bottom-color: #242628; }

  /* Footer */
  .footer                      { border-top-color: #242628; }
  .footer-brand p              { color: #6f7882; }
  .footer-col h4               { color: #5f6368; }
  .footer-col a                { color: #9aa0a6; }
  .footer-col a:hover          { color: #e8ebee; }
  .footer-bottom               { color: #5f6368; }
  .footer-legal-links a        { color: #5f6368; }
  .footer-legal-links a:hover  { color: #9aa0a6; }

  /* Hero */
  .hero                     { background: linear-gradient(180deg, #0f1628 0%, #0a0a0b 100%); }
  .hero-badge               { background: #162236; color: #93c5fd; }
  .hero h1 span             { color: #8ab4f8; }

  /* Buttons */
  .btn-secondary            { background: #191b1d; color: #bdc1c6; border-color: #3c3c3c; }
  .btn-secondary:hover      { background: #222426; border-color: #4a4a4a; }

  /* Mockups */
  .mockup                   { background: #191b1d; border-color: #3c3c3c; }
  .mockup-ios               { border-color: #3c3c3c; }

  /* Features */
  .section-header .overline { color: #8ab4f8; }
  .feature-card             { background: #191b1d; border-color: #242628; }
  .feature-card:hover       { background: #222426; }
  .feature-icon.blue        { background: #0d1f3d; color: #93c5fd; }

  /* Benefits */
  .benefits                 { background: #060608; }

  /* Screenshots */
  .screenshots              { background: #0d0d0f; }
  .screenshot-item          { background: #191b1d; border-color: #3c3c3c; }
  .screenshot-img           { background: linear-gradient(135deg, #191b1d 0%, #161618 100%); color: #3c3c3c; }
  .screenshot-label         { color: #bdc1c6; }

  /* Import format pills */
  .format-pill              { background: #191b1d; border-color: #3c3c3c; color: #bdc1c6; }
  .format-pill:hover        { background: #0d1f3d; border-color: #3b4a6b; color: #8ab4f8; }
  .format-pill .badge       { background: #162236; color: #93c5fd; }

  /* CTA */
  .cta-section                         { background: linear-gradient(180deg, #0a0a0b 0%, #0f1628 100%); }
  .cta-email-form input                { background: #191b1d; border-color: #3c3c3c; color: #e8ebee; }
  .cta-email-form input:focus-visible  { border-color: #8ab4f8; box-shadow: 0 0 0 3px rgba(138,180,248,0.15); }

  /* Legal */
  .legal                        { background: #0d0d0f; }
  .legal-card                   { background: #191b1d; border-color: #3c3c3c; }

  /* Pricing */
  .pricing-card             { background: #141516; border-color: #3c3c3c; }
  .pricing-card-featured    { background: linear-gradient(180deg, #0d1f3d 0%, #141516 40%); border-color: #3b4a6b; }
  .pricing-card-featured::before { background: #8ab4f8; }
  .pricing-card-badge-free  { background: #222426; color: #9aa0a6; }
  .pricing-card-badge-premium { background: #162236; color: #93c5fd; }
  .pricing-card .pricing-desc { border-bottom-color: #242628; }
  .pricing-features li      { color: #bdc1c6; }
  .pricing-features li::before { background-color: #0a2218; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2381c994' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E"); }
  .pricing-trial            { background: #162236; color: #93c5fd; }

  /* About */
  .about-stats              { background: #060608; }
  .about-cta                { background: linear-gradient(180deg, #0a0a0b 0%, #0f1628 100%); }
  .security-cta             { background: linear-gradient(180deg, #0a0a0b 0%, #0f1628 100%); }

  /* Security */
  .security-promises        { background: #060608; }

  /* Page hero */
  .page-hero               { background: linear-gradient(180deg, #0f1628 0%, #0a0a0b 100%); border-bottom-color: #242628; }
  .page-hero .back-link    { color: #6f7882; }
  .page-hero .badge        { background: #162236; color: #93c5fd; border-color: #1e2d4d; }
  .page-hero .meta         { color: #5f6368; }
  .page-hero-subtitle      { color: #9aa0a6; }

  /* Table of Contents */
  .toc                     { background: #191b1d; border-color: #3c3c3c; }
  .toc-title               { color: #5f6368; }
  .toc a                   { color: #9aa0a6; }
  .toc a:hover             { color: #8ab4f8; }

  /* Doc sections */
  .doc-section + .doc-section { border-top-color: #242628; }
  .doc-section h3          { color: #bdc1c6; }
  .doc-section li          { color: #9aa0a6; }
  .doc-section li strong   { color: #e8ebee; }

  /* Table */
  .table-wrapper           { border-color: #3c3c3c; }
  .doc-table th            { background: #191b1d; color: #9aa0a6; border-bottom-color: #3c3c3c; }
  .doc-table td            { border-bottom-color: #242628; color: #9aa0a6; }
  .doc-table td strong     { color: #e8ebee; }
  .doc-table code          { background: #222426; color: #bdc1c6; }

  /* Callouts */
  .callout                 { background: #0d1f3d; border-left-color: #8ab4f8; color: #bdc1c6; }
  .note                    { background: var(--color-warning-bg); border-left-color: var(--color-warning); color: #fde68a; }

  /* Contact card */
  .contact-card            { background: #191b1d; border-color: #3c3c3c; }
  .contact-icon            { background: #0d1f3d; border-color: #162236; }

  /* Blog cards */
  .blog-card               { background: #141516; border-color: #3c3c3c; }
  .blog-card:hover         { border-color: #4a6fa5; box-shadow: 0 10px 25px rgba(0,0,0,0.3); }
  .blog-card-content h2    { color: #e8ebee; }
  .blog-card:hover .blog-card-content h2 { color: #8ab4f8; }
  .blog-card-content p     { color: #6f7882; }
  .blog-card-meta          { color: #5f6368; }

  /* Tags dark */
  .blog-tag                { background: #222426; color: #9aa0a6; }
  .blog-tag-announcement   { background: #162236; color: #93c5fd; }
  .blog-tag-update         { background: var(--color-positive-bg); color: var(--color-positive); }
  .blog-tag-roadmap        { background: var(--color-purple-bg); color: var(--color-purple); }
  .blog-tag-guide          { background: var(--color-orange-bg); color: var(--color-orange); }

  .blog-read-more          { color: #8ab4f8; }
}
