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


/* Shared design tokens for ProPDF landing variants */
:root {
  --brand: #4f46e5;
  --brand-2: #7c3aed;
  --brand-3: #a855f7;
  --brand-dark: #3730a3;
  --brand-light: #ede9fe;
  --ink: #0b0b14;
  --ink-2: #1f1f2e;
  --text: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --bg: #f9fafb;
  --white: #ffffff;
  --paper: #fefefe;
  --code-bg: #0f0f1a;
  --success: #16a34a;
  --warning: #d97706;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 4px 12px rgba(0,0,0,.06);
  --shadow-md: 0 8px 24px rgba(31, 31, 46, 0.08), 0 2px 6px rgba(31, 31, 46, 0.04);
  --shadow-lg: 0 24px 60px -12px rgba(79, 70, 229, 0.25), 0 8px 24px rgba(0,0,0,0.08);
  --shadow-xl: 0 40px 80px -20px rgba(79, 70, 229, 0.35), 0 20px 40px -10px rgba(0,0,0,0.15);
  --radius: 14px;
  --radius-lg: 20px;
  --grad-brand: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #a855f7 100%);
  --grad-soft: linear-gradient(180deg, #f5f3ff 0%, #ede9fe 100%);
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'SF Mono', ui-monospace, 'Menlo', Consolas, monospace;
}

/* Dark mode theme */
[data-theme="dark"] {
  --brand: #6366f1;
  --brand-dark: #4f46e5;
  --brand-light: #312e81;
  --text: #f9fafb;
  --muted: #9ca3af;
  --border: #374151;
  --bg: #111827;
  --white: #1f2937;
  --danger: #ef4444;
  --success: #22c55e;
  --warning: #f59e0b;
  --shadow: 0 1px 3px rgba(0,0,0,.3), 0 4px 12px rgba(0,0,0,.25);
}

body {
  font-family: var(--font-sans);
  background: var(--white);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  
  display: flex;
  flex-direction: column;
}

/* ── Nav ── */
nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-brand {
  font-size: 18px;
  font-weight: 700;
  color: var(--brand);
  text-decoration: none;
  letter-spacing: -0.3px;
}
.nav-links { display: flex; gap: 8px; align-items: center; }
.nav-link {
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  transition: color .15s, background .15s;
}
.nav-link:hover { color: var(--text); background: var(--bg); }
.nav-link.active { color: var(--brand); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all .15s;
}
.btn-primary {
  background: var(--brand);
  color: var(--white);
}
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--brand);
  border: 1.5px solid var(--brand);
}
.btn-outline:hover { background: var(--brand-light); }
.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { color: var(--text); background: var(--white); }
.btn-lg { padding: 13px 28px; font-size: 16px; }
.btn-sm { padding: 6px 12px; font-size: 13px; }

/* ── Alerts / Flash ── */
.alerts { max-width: 680px; margin: 20px auto 0; padding: 0 20px; }
.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  margin-bottom: 10px;
  border: 1px solid transparent;
}
.alert-success { background: #f0fdf4; color: var(--success); border-color: #bbf7d0; }
.alert-error   { background: #fef2f2; color: var(--danger);  border-color: #fecaca; }
.alert-info    { background: #eff6ff; color: #1d4ed8;        border-color: #bfdbfe; }
.alert-warning { background: #fffbeb; color: var(--warning);  border-color: #fde68a; }

/* Dark mode alerts */
[data-theme="dark"] .alert-success { background: #064e3b; border-color: #065f46; }
[data-theme="dark"] .alert-error   { background: #7f1d1d; border-color: #991b1b; }
[data-theme="dark"] .alert-info    { background: #1e3a8a; border-color: #1e40af; color: #60a5fa; }
[data-theme="dark"] .alert-warning { background: #78350f; border-color: #92400e; }

/* ── Card ── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

/* ── Main content wrapper ── */
main { flex: 1; }

/* ── Footer ── */
footer {
  padding: 32px 24px 24px;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 720px;
  align-items: center;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: center;
}

.footer-brand {
  font-weight: 600;
  color: var(--text);
}

.footer-tagline {
  font-size: 12px;
}

.footer-links-row {
  gap: 20px;
}

.footer-links-row a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  transition: color .15s;
}

.footer-links-row a:hover {
  color: var(--brand);
}

.footer-social {
  display: flex;
  gap: 12px;
  align-items: center;
}

.footer-social a {
  color: var(--muted);
  transition: color .15s;
}

.footer-social a:hover {
  color: var(--brand);
}

/* Theme toggle button */
.theme-toggle {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s;
}
.theme-toggle:hover {
  background: var(--bg);
  border-color: var(--brand);
}
.theme-toggle svg {
  width: 18px;
  height: 18px;
  color: var(--muted);
  transition: opacity .15s;
}
.theme-toggle .sun-icon { display: none; }
.theme-toggle .moon-icon { display: block; }
[data-theme="dark"] .theme-toggle .sun-icon { display: block; }
[data-theme="dark"] .theme-toggle .moon-icon { display: none; }

/* Nav dark mode */
[data-theme="dark"] nav {
  background: #111827;
  border-bottom-color: #374151;
}

/* Main element dark mode */
[data-theme="dark"] main {
  background: #0f0f1a;
}

/* Footer dark mode */
[data-theme="dark"] footer {
  background: #0f0f1a;
  color: #9ca3af;
  border-top-color: #374151;
}
[data-theme="dark"] .footer-brand {
  color: #e5e7eb;
}
[data-theme="dark"] .footer-heading {
  color: #e5e7eb;
}

[data-theme="dark"] .theme-toggle {
  background: #1f2937;
  border-color: #374151;
}

[data-theme="dark"] .theme-toggle:hover {
  border-color: var(--brand);
}

/* ── Utilities ── */
.text-muted { color: var(--muted); }
.text-center { text-align: center; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }

/* Dark mode: btn-primary text must stay white (not use --white which becomes dark) */
[data-theme="dark"] .btn-primary,
[data-theme="dark"] .btn-primary:hover {
  color: #ffffff;
}

/* Light mode: nav-link btn-primary should keep white text on hover */
.nav-link.btn-primary:hover {
  color: #ffffff;
  background: var(--brand-dark);
  transform: translateY(-1px);
}
