/* ═══════════════════════════════════════════════════════
   MAIN.CSS — Variables, Reset, Base Typography
═══════════════════════════════════════════════════════ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@300;400;500;600;700&family=Roboto:wght@300;400;500&display=swap');

/* ── CSS VARIABLES ── */
:root {
  /* Brand */
  --red:          #DB3F59;
  --red-dark:     #b8334a;
  --red-light:    rgba(219,63,89,0.10);
  --red-medium:   rgba(219,63,89,0.18);

  /* Navigation */
  --nav-bg:       #1a1a2e;
  --nav-height:   62px;
  --nav-border:   rgba(255,255,255,0.07);

  /* Body */
  --body-bg:      #f7f8fc;
  --body-bg-dark: #111827;

  /* Cards */
  --card-bg:      #ffffff;
  --card-bg-dark: #1f2937;

  /* Text */
  --text-900:     #0d0d1a;
  --text-700:     #1a1a2e;
  --text-500:     #4a5568;
  --text-400:     #718096;
  --text-300:     #a0aec0;
  --text-white:   #ffffff;

  /* Borders */
  --border:       #e2e8f0;
  --border-dark:  rgba(255,255,255,0.08);

  /* Shadows */
  --shadow-sm:    0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:    0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg:    0 8px 32px rgba(0,0,0,0.12);
  --shadow-xl:    0 16px 48px rgba(0,0,0,0.15);

  /* Radius */
  --r-sm:   6px;
  --r-md:   10px;
  --r-lg:   14px;
  --r-xl:   20px;
  --r-full: 9999px;

  /* Transitions */
  --t-fast:   0.12s ease;
  --t-normal: 0.20s ease;
  --t-slow:   0.30s ease;

  /* Layout */
  --max-w:    1200px;
  --section-pad: 56px 24px;
}

/* Dark mode variables */
body.dark-mode {
  --body-bg:    #111827;
  --card-bg:    #1f2937;
  --text-700:   #f3f4f6;
  --text-500:   #d1d5db;
  --text-400:   #9ca3af;
  --border:     rgba(255,255,255,0.10);
}

/* ── RESET ── */
*,
*::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: 'Rubik', 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--body-bg);
  color: var(--text-700);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--t-normal), color var(--t-normal);
}

img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
input, textarea, select { font-family: inherit; }
table { border-collapse: collapse; width: 100%; }

/* ── UTILITY CLASSES ── */
.print-hide { }
@media print { .print-hide { display: none !important; } }

.hide { display: none !important; }
.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;
}

/* ── SCROLLBAR STYLING ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e0; border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: #a0aec0; }

/* ── SELECTION ── */
::selection { background: rgba(219,63,89,0.18); color: var(--red-dark); }

/* ── FOCUS ── */
:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

/* ── COMPARISON TABLE (in markdown section) ── */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.comparison-table thead tr {
  background: var(--nav-bg);
  color: #fff;
}
.comparison-table th {
  padding: 14px 20px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.3px;
}
.comparison-table td {
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  color: var(--text-500);
  font-size: 13px;
}
.comparison-table tbody tr:last-child td { border-bottom: none; }
.comparison-table tbody tr:nth-child(odd) { background: #fafbff; }
.comparison-table tbody tr:hover { background: var(--red-light); }
.comparison-table td.check { color: #10b981; font-size: 16px; }
.comparison-table td.cross { color: #ef4444; font-size: 16px; }
.comparison-table td:first-child { font-weight: 500; color: var(--text-700); }

/* ── COOKIE POLICY BANNER ── */
.nl-cookiepolicy {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--nav-bg);
  color: rgba(255,255,255,0.85);
  padding: 16px 24px;
  border-radius: var(--r-lg);
  font-size: 13px;
  text-align: center;
  z-index: 9999;
  box-shadow: var(--shadow-xl);
  max-width: 460px;
  width: calc(100% - 40px);
  line-height: 1.7;
  display: none; /* shown by JS after delay */
}
.nl-cookiepolicy a { color: var(--red); text-decoration: underline; }
.nl-cookiepolicy button.privacy-policy {
  background: var(--red);
  color: #fff;
  border: none;
  padding: 8px 22px;
  border-radius: var(--r-full);
  font-size: 13px;
  font-weight: 600;
  margin-top: 10px;
  cursor: pointer;
  transition: background var(--t-fast);
}
.nl-cookiepolicy button.privacy-policy:hover { background: var(--red-dark); }

/* ── LOADING SPINNER ── */
#loading-spinner {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}
.spinner-content {
  width: 48px; height: 48px;
  border: 4px solid var(--border);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── RESPONSIVE BASE ── */
@media (max-width: 768px) {
  :root { --section-pad: 36px 16px; }
  html { font-size: 15px; }
}
