/* =========================================================
   GestionPro360 — Feuille de styles principale
   Design system, composants, responsive (mobile-first)
   ========================================================= */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--color-primary-dark); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }
input, textarea, select { font-family: inherit; font-size: 1rem; }

/* ---------- Design tokens ---------- */
:root {
  /* Palette */
  --color-primary: #4F46E5;          /* Indigo 600 */
  --color-primary-dark: #4338CA;     /* Indigo 700 */
  --color-primary-light: #EEF2FF;    /* Indigo 50 */
  --color-accent: #06B6D4;           /* Cyan 500 */
  --color-success: #10B981;
  --color-warning: #F59E0B;
  --color-danger:  #EF4444;

  --color-text: #0F172A;             /* Slate 900 */
  --color-text-muted: #475569;       /* Slate 600 */
  --color-text-light: #94A3B8;       /* Slate 400 */

  --color-bg: #FFFFFF;
  --color-bg-alt: #F8FAFC;           /* Slate 50 */
  --color-bg-dark: #0F172A;
  --color-border: #E2E8F0;           /* Slate 200 */

  /* Typographie */
  --fs-xs: .75rem;
  --fs-sm: .875rem;
  --fs-base: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.25rem;
  --fs-2xl: 1.5rem;
  --fs-3xl: 1.875rem;
  --fs-4xl: 2.25rem;
  --fs-5xl: 3rem;
  --fs-6xl: 3.75rem;

  /* Espacements */
  --s-1: .25rem;  --s-2: .5rem;  --s-3: .75rem; --s-4: 1rem;
  --s-5: 1.5rem;  --s-6: 2rem;   --s-7: 3rem;   --s-8: 4rem;
  --s-9: 6rem;    --s-10: 8rem;

  /* Rayons */
  --radius-sm: .375rem;
  --radius:    .625rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  /* Ombres */
  --shadow-sm: 0 1px 2px rgba(15,23,42,.05);
  --shadow:    0 4px 6px -1px rgba(15,23,42,.08), 0 2px 4px -2px rgba(15,23,42,.05);
  --shadow-lg: 0 10px 25px -5px rgba(15,23,42,.1), 0 4px 10px -5px rgba(15,23,42,.05);
  --shadow-xl: 0 25px 50px -12px rgba(15,23,42,.25);

  /* Transitions */
  --transition: .25s cubic-bezier(.4,0,.2,1);

  /* Container */
  --container-max: 1200px;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--s-5);
}
.section { padding: var(--s-9) 0; }
.section-sm { padding: var(--s-7) 0; }
.section-alt { background: var(--color-bg-alt); }

/* ---------- Typographie ---------- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
  letter-spacing: -.02em;
}
h1 { font-size: clamp(2rem, 5vw, var(--fs-6xl)); margin-bottom: var(--s-5); }
h2 { font-size: clamp(1.75rem, 4vw, var(--fs-4xl)); margin-bottom: var(--s-5); }
h3 { font-size: var(--fs-2xl); margin-bottom: var(--s-4); }
h4 { font-size: var(--fs-xl); margin-bottom: var(--s-3); }
p  { margin-bottom: var(--s-4); color: var(--color-text-muted); }
.lead { font-size: var(--fs-lg); color: var(--color-text-muted); max-width: 720px; }
.eyebrow {
  display: inline-block;
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: var(--color-primary-light);
  padding: var(--s-1) var(--s-4);
  border-radius: var(--radius-full);
  margin-bottom: var(--s-4);
}
.section-header { text-align: center; margin-bottom: var(--s-8); }
.section-header p { max-width: 680px; margin: 0 auto; }
.text-gradient {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: var(--s-3) var(--s-6);
  font-weight: 600;
  font-size: var(--fs-base);
  border-radius: var(--radius);
  transition: all var(--transition);
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  border: 2px solid transparent;
  line-height: 1.2;
}
.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow);
}
.btn-primary:hover {
  background: var(--color-primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.btn-secondary {
  background: #fff;
  color: var(--color-primary);
  border-color: var(--color-border);
}
.btn-secondary:hover {
  border-color: var(--color-primary);
  color: var(--color-primary-dark);
}
.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
}
.btn-lg { padding: var(--s-4) var(--s-7); font-size: var(--fs-lg); }
.btn-sm { padding: var(--s-2) var(--s-4); font-size: var(--fs-sm); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-border);
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-weight: 800;
  font-size: var(--fs-xl);
  color: var(--color-text);
  letter-spacing: -.02em;
}
.logo:hover { color: var(--color-primary); }
.logo img { height: 36px; width: 36px; }
.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--s-6);
}
.nav-menu a {
  color: var(--color-text-muted);
  font-weight: 500;
  font-size: var(--fs-base);
  position: relative;
}
.nav-menu a:hover, .nav-menu a.active { color: var(--color-primary); }
.nav-actions { display: flex; gap: var(--s-3); align-items: center; }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-alt);
  border-radius: var(--radius);
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-text);
  position: relative;
  transition: all var(--transition);
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--color-text);
  transition: all var(--transition);
}
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after  { top: 7px; }
.nav-toggle.open span { background: transparent; }
.nav-toggle.open span::before { transform: rotate(45deg); top: 0; }
.nav-toggle.open span::after  { transform: rotate(-45deg); top: 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: var(--s-10) 0 var(--s-9);
  background: linear-gradient(180deg, #FFFFFF 0%, var(--color-primary-light) 100%);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(79,70,229,.15), transparent 70%);
  top: -200px; right: -200px;
  border-radius: 50%;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(6,182,212,.12), transparent 70%);
  bottom: -200px; left: -200px;
  border-radius: 50%;
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--s-8);
  align-items: center;
}
.hero h1 { margin-bottom: var(--s-5); }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  margin-top: var(--s-6);
}
.hero-trust {
  display: flex;
  gap: var(--s-5);
  margin-top: var(--s-7);
  flex-wrap: wrap;
}
.hero-trust-item {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
  font-weight: 500;
}
.hero-trust-item svg { color: var(--color-success); flex-shrink: 0; }

.hero-visual {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  background: #fff;
  aspect-ratio: 4/3;
}

/* ---------- Features ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--s-5);
}
.feature-card {
  padding: var(--s-6);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}
.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg);
}
.feature-icon {
  width: 56px;
  height: 56px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--s-4);
}
.feature-icon svg { width: 28px; height: 28px; }
.feature-card h3 { font-size: var(--fs-xl); margin-bottom: var(--s-2); }
.feature-card p { margin-bottom: 0; font-size: var(--fs-base); }

/* ---------- Stats ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--s-6);
  text-align: center;
}
.stat-number {
  font-size: var(--fs-5xl);
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -.03em;
  line-height: 1;
}
.stat-label {
  color: var(--color-text-muted);
  font-weight: 500;
  margin-top: var(--s-2);
}

/* ---------- Testimonials ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--s-5);
}
.testimonial {
  padding: var(--s-6);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  position: relative;
}
.testimonial::before {
  content: '"';
  position: absolute;
  top: 8px; right: 20px;
  font-size: 5rem;
  color: var(--color-primary-light);
  line-height: 1;
  font-family: Georgia, serif;
}
.testimonial-stars { color: #F59E0B; margin-bottom: var(--s-3); letter-spacing: 2px; }
.testimonial-text {
  font-size: var(--fs-lg);
  color: var(--color-text);
  margin-bottom: var(--s-5);
  font-style: italic;
  line-height: 1.6;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--s-3);
}
.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}
.testimonial-name { font-weight: 600; color: var(--color-text); }
.testimonial-role { font-size: var(--fs-sm); color: var(--color-text-light); }

/* ---------- Pricing ---------- */
.pricing-toggle {
  display: inline-flex;
  padding: var(--s-1);
  background: var(--color-bg-alt);
  border-radius: var(--radius-full);
  margin: 0 auto var(--s-7);
  border: 1px solid var(--color-border);
}
.pricing-toggle button {
  padding: var(--s-2) var(--s-5);
  border-radius: var(--radius-full);
  font-weight: 600;
  color: var(--color-text-muted);
  transition: all var(--transition);
  font-size: var(--fs-sm);
}
.pricing-toggle button.active {
  background: #fff;
  color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}
.badge-save {
  background: var(--color-success);
  color: #fff;
  font-size: var(--fs-xs);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  margin-left: 6px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--s-5);
  align-items: stretch;
}
.price-card {
  padding: var(--s-7) var(--s-6);
  background: #fff;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
  position: relative;
}
.price-card:hover { border-color: var(--color-primary); box-shadow: var(--shadow-lg); }
.price-card.featured {
  border-color: var(--color-primary);
  background: linear-gradient(180deg, #fff 0%, var(--color-primary-light) 100%);
  transform: scale(1.03);
  box-shadow: var(--shadow-xl);
}
.price-card.featured::before {
  content: 'Le plus populaire';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: #fff;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: 600;
}
.price-plan {
  font-size: var(--fs-sm);
  color: var(--color-primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: var(--s-2);
}
.price-name { font-size: var(--fs-2xl); margin-bottom: var(--s-3); }
.price-amount {
  font-size: var(--fs-5xl);
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -.03em;
  line-height: 1;
}
.price-currency { font-size: var(--fs-2xl); vertical-align: super; margin-right: 2px; }
.price-period { color: var(--color-text-muted); font-size: var(--fs-base); font-weight: 500; }
.price-desc { color: var(--color-text-muted); margin: var(--s-3) 0 var(--s-5); font-size: var(--fs-sm); }
.price-features {
  margin: var(--s-5) 0;
  flex: 1;
}
.price-features li {
  padding: var(--s-2) 0;
  display: flex;
  align-items: flex-start;
  gap: var(--s-2);
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
}
.price-features li::before {
  content: '';
  width: 18px; height: 18px;
  background: var(--color-success);
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'><path d='M16.704 5.29a1 1 0 010 1.42l-8 8a1 1 0 01-1.42 0l-4-4a1 1 0 011.42-1.42L8 12.58l7.29-7.29a1 1 0 011.414 0z'/></svg>") no-repeat center/contain;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'><path d='M16.704 5.29a1 1 0 010 1.42l-8 8a1 1 0 01-1.42 0l-4-4a1 1 0 011.42-1.42L8 12.58l7.29-7.29a1 1 0 011.414 0z'/></svg>") no-repeat center/contain;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ---------- CTA ---------- */
.cta-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  text-align: center;
  border-radius: var(--radius-xl);
  padding: var(--s-8) var(--s-5);
  position: relative;
  overflow: hidden;
}
.cta-section::before,
.cta-section::after {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
}
.cta-section::before { top: -150px; left: -100px; }
.cta-section::after  { bottom: -150px; right: -100px; }
.cta-section > * { position: relative; z-index: 1; }
.cta-section h2, .cta-section p { color: #fff; }
.cta-section p { opacity: .9; margin-bottom: var(--s-6); max-width: 640px; margin-left: auto; margin-right: auto; }
.cta-section .btn-primary { background: #fff; color: var(--color-primary); }
.cta-section .btn-primary:hover { background: var(--color-primary-light); color: var(--color-primary-dark); }
.cta-section .btn-outline { border-color: rgba(255,255,255,.4); color: #fff; }
.cta-section .btn-outline:hover { background: #fff; color: var(--color-primary); }

/* ---------- FAQ ---------- */
.faq-container { max-width: 820px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--color-border);
}
.faq-question {
  width: 100%;
  text-align: left;
  padding: var(--s-5) 0;
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--color-text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-4);
  transition: color var(--transition);
}
.faq-question:hover { color: var(--color-primary); }
.faq-question .icon {
  width: 24px; height: 24px;
  flex-shrink: 0;
  transition: transform var(--transition);
  color: var(--color-primary);
}
.faq-item.open .faq-question .icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition);
}
.faq-answer-inner { padding: 0 0 var(--s-5); color: var(--color-text-muted); }
.faq-item.open .faq-answer { max-height: 600px; }

/* ---------- Forms ---------- */
.form {
  max-width: 600px;
  background: #fff;
  padding: var(--s-6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.form-group { margin-bottom: var(--s-5); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: var(--s-2);
  color: var(--color-text);
  font-size: var(--fs-sm);
}
.form-label .required { color: var(--color-danger); }
.form-control {
  width: 100%;
  padding: var(--s-3) var(--s-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg-alt);
  transition: all var(--transition);
  color: var(--color-text);
}
.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(79,70,229,.1);
}
.form-control.error { border-color: var(--color-danger); }
textarea.form-control { resize: vertical; min-height: 130px; font-family: inherit; }
.form-checkbox { display: flex; align-items: flex-start; gap: var(--s-2); font-size: var(--fs-sm); color: var(--color-text-muted); }
.form-checkbox input { margin-top: 4px; }
.form-hint { font-size: var(--fs-sm); color: var(--color-text-light); margin-top: var(--s-2); }
.form-error-msg { color: var(--color-danger); font-size: var(--fs-sm); margin-top: var(--s-2); display: none; }
.form-control.error + .form-error-msg { display: block; }
.form-success {
  display: none;
  padding: var(--s-4);
  background: #ECFDF5;
  border: 1px solid #10B981;
  color: #065F46;
  border-radius: var(--radius);
  margin-bottom: var(--s-5);
}
.form-success.show { display: block; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-bg-dark);
  color: #CBD5E1;
  padding: var(--s-8) 0 var(--s-5);
  margin-top: var(--s-9);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: var(--s-6);
  padding-bottom: var(--s-7);
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand .logo { color: #fff; margin-bottom: var(--s-4); }
.footer-brand p { color: #94A3B8; max-width: 340px; }
.footer-social { display: flex; gap: var(--s-3); margin-top: var(--s-4); }
.footer-social a {
  width: 40px; height: 40px;
  background: rgba(255,255,255,.05);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #CBD5E1;
}
.footer-social a:hover { background: var(--color-primary); color: #fff; }
.footer-col h4 {
  color: #fff;
  font-size: var(--fs-base);
  margin-bottom: var(--s-4);
}
.footer-col ul li { margin-bottom: var(--s-2); }
.footer-col a { color: #94A3B8; font-size: var(--fs-sm); }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  padding-top: var(--s-5);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s-4);
  font-size: var(--fs-sm);
  color: #94A3B8;
}
.footer-bottom a { color: #94A3B8; }
.footer-bottom a:hover { color: #fff; }
.footer-legal { display: flex; gap: var(--s-4); flex-wrap: wrap; }

/* ---------- Page header (sub pages) ---------- */
.page-header {
  background: linear-gradient(180deg, var(--color-primary-light) 0%, #fff 100%);
  padding: var(--s-8) 0 var(--s-7);
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}
.page-header p { max-width: 640px; margin: 0 auto; }
.breadcrumb {
  display: flex;
  justify-content: center;
  gap: var(--s-2);
  font-size: var(--fs-sm);
  color: var(--color-text-light);
  margin-bottom: var(--s-3);
}
.breadcrumb a { color: var(--color-text-muted); }
.breadcrumb a:hover { color: var(--color-primary); }

/* ---------- Blog ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--s-6);
}
.blog-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.blog-card-image {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 3rem;
  font-weight: 800;
}
.blog-card-body { padding: var(--s-5); flex: 1; display: flex; flex-direction: column; }
.blog-card-category {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--color-primary);
  margin-bottom: var(--s-2);
}
.blog-card h3 { font-size: var(--fs-xl); margin-bottom: var(--s-2); }
.blog-card h3 a { color: var(--color-text); }
.blog-card h3 a:hover { color: var(--color-primary); }
.blog-card-excerpt { color: var(--color-text-muted); flex: 1; font-size: var(--fs-sm); }
.blog-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--fs-sm);
  color: var(--color-text-light);
  padding-top: var(--s-4);
  margin-top: var(--s-4);
  border-top: 1px solid var(--color-border);
}

/* ---------- Article (blog post) ---------- */
.article {
  max-width: 820px;
  margin: 0 auto;
  padding: var(--s-7) 0;
}
.article-header { text-align: center; margin-bottom: var(--s-7); }
.article-meta {
  display: flex;
  justify-content: center;
  gap: var(--s-4);
  color: var(--color-text-light);
  font-size: var(--fs-sm);
  margin-top: var(--s-3);
}
.article-content h2 {
  font-size: var(--fs-2xl);
  margin: var(--s-6) 0 var(--s-3);
}
.article-content h3 {
  font-size: var(--fs-xl);
  margin: var(--s-5) 0 var(--s-3);
}
.article-content p, .article-content ul, .article-content ol {
  font-size: var(--fs-lg);
  line-height: 1.75;
  margin-bottom: var(--s-4);
}
.article-content ul, .article-content ol { padding-left: var(--s-5); }
.article-content ul li { list-style: disc; margin-bottom: var(--s-2); }
.article-content ol li { list-style: decimal; margin-bottom: var(--s-2); }
.article-content blockquote {
  border-left: 4px solid var(--color-primary);
  padding-left: var(--s-5);
  margin: var(--s-5) 0;
  font-style: italic;
  color: var(--color-text-muted);
}
.article-content strong { color: var(--color-text); font-weight: 600; }

/* ---------- Legal pages ---------- */
.legal-content {
  max-width: 820px;
  margin: 0 auto;
  padding: var(--s-7) var(--s-5);
}
.legal-content h2 {
  font-size: var(--fs-2xl);
  margin: var(--s-6) 0 var(--s-3);
  padding-top: var(--s-4);
  border-top: 1px solid var(--color-border);
}
.legal-content h2:first-of-type { border-top: none; padding-top: 0; }
.legal-content h3 { font-size: var(--fs-xl); margin: var(--s-5) 0 var(--s-3); }
.legal-content p, .legal-content ul { margin-bottom: var(--s-4); }
.legal-content ul { padding-left: var(--s-5); }
.legal-content ul li { list-style: disc; margin-bottom: var(--s-2); color: var(--color-text-muted); }
.legal-content a { text-decoration: underline; }
.legal-updated {
  display: inline-block;
  font-size: var(--fs-sm);
  color: var(--color-text-light);
  background: var(--color-bg-alt);
  padding: var(--s-2) var(--s-4);
  border-radius: var(--radius);
  margin-bottom: var(--s-5);
}

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #0F172A;
  color: #fff;
  padding: var(--s-5);
  z-index: 1000;
  transform: translateY(100%);
  transition: transform .4s ease;
  box-shadow: var(--shadow-xl);
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: var(--s-5);
  flex-wrap: wrap;
}
.cookie-banner p { color: #CBD5E1; margin: 0; flex: 1; min-width: 250px; font-size: var(--fs-sm); }
.cookie-banner a { color: var(--color-accent); text-decoration: underline; }
.cookie-actions { display: flex; gap: var(--s-2); flex-wrap: wrap; }

/* ---------- Scroll to top ---------- */
.scroll-top {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 48px; height: 48px;
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  z-index: 99;
}
.scroll-top.show { opacity: 1; visibility: visible; }
.scroll-top:hover { background: var(--color-primary-dark); color: #fff; transform: translateY(-3px); }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-4 { margin-top: var(--s-4); } .mt-5 { margin-top: var(--s-5); } .mt-6 { margin-top: var(--s-6); }
.mb-4 { margin-bottom: var(--s-4); } .mb-5 { margin-bottom: var(--s-5); } .mb-6 { margin-bottom: var(--s-6); }
.d-flex { display: flex; } .gap-3 { gap: var(--s-3); } .gap-4 { gap: var(--s-4); }
.justify-center { justify-content: center; } .align-center { align-items: center; }
.flex-wrap { flex-wrap: wrap; }
.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;
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-in { animation: fadeInUp .6s ease both; }
.animate-in-delay-1 { animation-delay: .1s; }
.animate-in-delay-2 { animation-delay: .2s; }
.animate-in-delay-3 { animation-delay: .3s; }

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 500px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .price-card.featured { transform: none; }
}

@media (max-width: 768px) {
  :root { --s-9: 4rem; --s-10: 5rem; }
  .nav-menu {
    position: fixed;
    top: 72px;
    left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    padding: var(--s-5);
    gap: var(--s-4);
    border-top: 1px solid var(--color-border);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    max-height: calc(100vh - 72px);
    overflow-y: auto;
  }
  .nav-menu.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav-menu a { width: 100%; padding: var(--s-2) 0; }
  .nav-toggle { display: flex; }
  .nav-actions .btn { display: none; }
  .nav-menu .btn { display: inline-flex; width: 100%; justify-content: center; }

  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-section { padding: var(--s-7) var(--s-4); }
}

@media (max-width: 480px) {
  .container { padding: 0 var(--s-4); }
  .hero-actions .btn { width: 100%; }
}
