/* ══════════════════════════════════════════════════════
   Rates Goblin — Public Website Stylesheet
   ══════════════════════════════════════════════════════ */

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

:root {
  /* Brand colours — matched to the app */
  --primary: #3b82f6;          /* HSL(221, 83%, 53%) vibrant blue */
  --primary-dark: #2563eb;
  --primary-light: #60a5fa;
  --navy: #1e293b;             /* Dark navy */
  --navy-deep: #0f172a;        /* Deepest navy (hero bg) */
  --green: #22c55e;            /* Success / feature accent */
  --green-dark: #16a34a;
  --amber: #f59e0b;
  --red: #ef4444;
  --purple: #8b5cf6;

  /* Neutrals */
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;

  /* Spacing */
  --container: 1200px;
  --section-pad: 80px;

  /* Typography */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Outfit', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Transitions */
  --transition: 0.2s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}

/* ── Container ── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}
.btn-primary:hover {
  background: var(--primary-dark);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.3);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-green {
  background: var(--green);
  color: var(--white);
}
.btn-green:hover {
  background: var(--green-dark);
  color: var(--white);
}

.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-nav { padding: 10px 24px; font-size: 0.88rem; }

/* ══════════════════════════════════════════
   HEADER / NAVIGATION
   ══════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background var(--transition);
}

/* nav-container is the flex wrapper inside the header */
.nav-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  height: 68px;
  flex-wrap: nowrap;
}

/* Logo in nav — centred */
.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo:hover { opacity: 0.9; }

.nav-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--gray-300);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); }

/* Mobile menu toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
}

/* Footer logo */
.footer-logo {
  display: inline-block;
  text-decoration: none;
}
.footer-logo:hover { opacity: 0.9; }

.footer-logo-img {
  height: 64px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* ══════════════════════════════════════════
   HERO SECTION
   ══════════════════════════════════════════ */
.hero {
  background: linear-gradient(135deg, var(--navy-deep) 0%, #1a2744 50%, var(--navy) 100%);
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}

/* No decorative pseudo-elements — clean hero background only */

.hero .container {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
}

.hero-content {
  margin-bottom: 48px;
}

/* Hero centred logo */
.hero-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
}
.hero-logo-img {
  height: 180px;
  width: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 4px 24px rgba(0, 0, 0, 0.3));
}

/* Badge (hero pill) */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 100px;
  color: var(--primary-light);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

/* Hero headline */
.hero-headline,
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  color: var(--white);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero-headline em,
.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--primary-light), var(--green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hero subtext */
.hero-subtext,
.hero p {
  font-size: 1.15rem;
  color: var(--gray-400);
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

/* Hero action buttons */
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Stats bar below hero */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 16px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}

.stat-icon {
  font-size: 1.4rem;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
  display: block;
}

/* ══════════════════════════════════════════
   SECTIONS (shared)
   ══════════════════════════════════════════ */
.section {
  padding: var(--section-pad) 0;
}

.section-light { background: var(--gray-50); }
.section-dark { background: var(--navy-deep); color: var(--white); }

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-header .overline {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-dark .section-header .overline { color: var(--primary-light); }

.section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin-bottom: 16px;
}

.section-dark .section-header h2 { color: var(--white); }

.section-header p {
  font-size: 1.05rem;
  color: var(--gray-500);
  line-height: 1.7;
}

.section-dark .section-header p { color: var(--gray-400); }

/* ══════════════════════════════════════════
   HOW IT WORKS — STEP CARDS
   ══════════════════════════════════════════ */
.how-it-works {
  padding: var(--section-pad) 0;
  background: var(--gray-50);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.step-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  position: relative;
  transition: all var(--transition);
}

.step-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.08);
  transform: translateY(-2px);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.step-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  line-height: 1;
}

.step-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.step-card p {
  font-size: 0.88rem;
  color: var(--gray-500);
  line-height: 1.6;
}

/* ══════════════════════════════════════════
   FEATURES GRID
   ══════════════════════════════════════════ */
.features {
  padding: var(--section-pad) 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 32px;
  transition: all var(--transition);
}

.feature-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.08);
  transform: translateY(-2px);
}

/* Feature icon — the emoji div */
.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

/* Colour variants using BEM modifiers (matching HTML) */
.feature-card--blue .feature-icon { background: rgba(59, 130, 246, 0.1); }
.feature-card--green .feature-icon { background: rgba(34, 197, 94, 0.1); }
.feature-card--purple .feature-icon { background: rgba(139, 92, 246, 0.1); }
.feature-card--amber .feature-icon { background: rgba(245, 158, 11, 0.1); }

/* Also support .feature-icon.blue etc (older markup) */
.feature-icon.blue { background: rgba(59, 130, 246, 0.1); color: var(--primary); }
.feature-icon.green { background: rgba(34, 197, 94, 0.1); color: var(--green); }
.feature-icon.purple { background: rgba(139, 92, 246, 0.1); color: var(--purple); }
.feature-icon.amber { background: rgba(245, 158, 11, 0.1); color: var(--amber); }

.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.6;
}

/* ══════════════════════════════════════════
   COMPLIANCE BANNER
   ══════════════════════════════════════════ */
.compliance-banner {
  padding: 40px 0;
  background: var(--navy-deep);
}

.compliance-grid {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.compliance-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gray-300);
  font-size: 0.88rem;
  font-weight: 500;
}

.compliance-icon {
  font-size: 1.3rem;
}

.compliance-label {
  white-space: nowrap;
}

/* ══════════════════════════════════════════
   PRICING
   ══════════════════════════════════════════ */
.pricing {
  padding: var(--section-pad) 0;
  background: var(--gray-50);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  max-width: 1000px;
  margin: 0 auto;
}

/* Pricing cards (matching HTML class names) */
.pricing-card {
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: 20px;
  padding: 36px;
  position: relative;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.pricing-card:hover {
  border-color: var(--primary);
  box-shadow: 0 12px 40px rgba(59, 130, 246, 0.1);
}

.pricing-card--featured {
  border-color: var(--primary);
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.12);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-card-header {
  margin-bottom: 24px;
}

.pricing-card-header h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.pricing-price {
  margin-bottom: 8px;
}

.price-amount {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--navy);
}

.price-period {
  font-size: 0.9rem;
  color: var(--gray-500);
  font-weight: 400;
}

.pricing-desc {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.6;
}

/* Pricing feature list */
.pricing-features {
  list-style: none;
  margin-bottom: 28px;
  flex: 1;
}

.pricing-features li {
  padding: 8px 0;
  font-size: 0.88rem;
  color: var(--gray-600);
  border-bottom: 1px solid var(--gray-100);
}

.pricing-features li:last-child { border-bottom: none; }

.pricing-card .btn { width: 100%; }

.pricing-footer-note {
  text-align: center;
  font-size: 0.88rem;
  color: var(--gray-500);
  margin-top: 32px;
}

/* Also support old .price-card classes for pricing.html */
.price-card {
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: 20px;
  padding: 36px;
  position: relative;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.price-card:hover {
  border-color: var(--primary);
  box-shadow: 0 12px 40px rgba(59, 130, 246, 0.1);
}

.price-card.featured {
  border-color: var(--primary);
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.12);
}

.price-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.price-card .tier {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.price-card .plan-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.price-card .price {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 4px;
}

.price-card .price-sub {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-bottom: 24px;
}

.price-card .plan-desc {
  font-size: 0.9rem;
  color: var(--gray-500);
  margin-bottom: 24px;
  line-height: 1.6;
}

.price-features {
  list-style: none;
  margin-bottom: 28px;
  flex: 1;
}

.price-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.88rem;
  color: var(--gray-600);
  border-bottom: 1px solid var(--gray-100);
}

.price-features li:last-child { border-bottom: none; }

.price-features .check {
  color: var(--green);
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.price-features .lock {
  color: var(--gray-300);
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.price-card .btn { width: 100%; justify-content: center; }

/* ══════════════════════════════════════════
   CTA SECTION
   ══════════════════════════════════════════ */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, #1d4ed8 100%);
  padding: 80px 0;
  text-align: center;
}

.cta-content {
  max-width: 600px;
  margin: 0 auto;
}

.cta-section h2 {
  color: var(--white);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 16px;
}

.cta-section p {
  color: rgba(255,255,255,0.8);
  font-size: 1.05rem;
  max-width: 500px;
  margin: 0 auto 32px;
}

/* ══════════════════════════════════════════
   DOCS / HELP SECTION
   ══════════════════════════════════════════ */
.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.doc-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  padding: 28px;
  transition: all var(--transition);
}

.doc-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.doc-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.doc-card p {
  font-size: 0.88rem;
  color: var(--gray-500);
  line-height: 1.6;
}

/* FAQ Accordion */
.faq-list { max-width: 760px; margin: 0 auto; }

.faq-item {
  border-bottom: 1px solid var(--gray-200);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  padding: 20px 0;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  text-align: left;
  gap: 16px;
}

.faq-question .arrow {
  font-size: 1.2rem;
  color: var(--gray-400);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item.open .faq-question .arrow { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 500px;
  padding-bottom: 20px;
}

.faq-answer p {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.7;
}

/* ══════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════ */
.site-footer {
  background: var(--navy-deep);
  color: var(--gray-400);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.7;
  margin-top: 12px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.footer-col ul { list-style: none; }

.footer-col li { margin-bottom: 10px; }

.footer-col a {
  color: var(--gray-400);
  font-size: 0.88rem;
  transition: color var(--transition);
}

.footer-col a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.8rem;
}

.footer-bottom a {
  color: var(--gray-500);
}
.footer-bottom a:hover { color: var(--gray-300); }

/* ══════════════════════════════════════════
   LEGAL PAGES
   ══════════════════════════════════════════ */
.legal-page {
  padding: 104px 0 80px;
  min-height: 80vh;
}

.legal-page .container { max-width: 800px; }

.legal-page h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.legal-meta {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--gray-200);
}

.legal-page h2 {
  font-size: 1.35rem;
  margin-top: 40px;
  margin-bottom: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--gray-100);
}

.legal-page h2:first-of-type {
  border-top: none;
  padding-top: 0;
}

.legal-page h3 {
  font-size: 1.1rem;
  margin-top: 28px;
  margin-bottom: 12px;
}

.legal-page p {
  margin-bottom: 16px;
  font-size: 0.92rem;
  color: var(--gray-600);
  line-height: 1.7;
}

.legal-page ul, .legal-page ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.legal-page li {
  font-size: 0.92rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 8px;
}

.legal-page strong { color: var(--navy); }

.placeholder {
  background: #fef3c7;
  border: 1px dashed #f59e0b;
  border-radius: 6px;
  padding: 2px 8px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #92400e;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 0.88rem;
}

.legal-table th,
.legal-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
}

.legal-table th {
  background: var(--gray-50);
  font-weight: 600;
  color: var(--navy);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.legal-table td { color: var(--gray-600); }

/* ══════════════════════════════════════════
   COOKIE CONSENT BANNER
   ══════════════════════════════════════════ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--navy-deep);
  color: var(--gray-300);
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.cookie-banner.visible { transform: translateY(0); }

.cookie-banner-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-banner p {
  font-size: 0.85rem;
  flex: 1;
  min-width: 240px;
}

.cookie-banner a { color: var(--primary-light); }

.cookie-banner-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */

/* ── Large tablets / small laptops ── */
@media (max-width: 1024px) {
  .steps-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 36px;
  }

  .footer-grid .footer-col:last-child {
    grid-column: 1 / -1;
  }

  .legal-table {
    font-size: 0.82rem;
  }

  .legal-table th,
  .legal-table td {
    padding: 10px 12px;
  }
}

/* ── Tablets ── */
@media (max-width: 768px) {
  :root { --section-pad: 56px; }

  /* Mobile nav — logo left, hamburger right */
  .nav-container {
    height: 60px;
    position: relative;
    justify-content: space-between;
    flex-wrap: nowrap;
  }
  .nav-logo-img { height: 36px; }

  .nav-links { display: none; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--navy-deep);
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    z-index: 100;
  }

  .mobile-menu-toggle { display: block; }

  .hero { padding: 110px 0 56px; }
  .hero-logo-img { height: 140px; }

  .stats-bar { gap: 24px; flex-wrap: wrap; }

  .steps-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .features-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .feature-card {
    padding: 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-brand { grid-column: 1 / -1; }

  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }

  .compliance-grid { gap: 24px; }

  .footer-bottom { flex-direction: column; text-align: center; }

  /* Cookie banner — stack on mobile */
  .cookie-banner-inner {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .cookie-banner p {
    min-width: unset;
  }

  /* CTA section */
  .cta-section { padding: 56px 0; }
  .cta-section h2 { font-size: 1.6rem; }

  /* Legal pages */
  .legal-page { padding: 84px 0 56px; }
  .legal-page h1 { font-size: 1.6rem; }
  .legal-page h2 { font-size: 1.2rem; margin-top: 32px; }

  /* Pricing page — comparison table scroll hint */
  .legal-table th,
  .legal-table td {
    padding: 8px 10px;
    font-size: 0.8rem;
  }

  /* Section headers */
  .section-header {
    margin-bottom: 40px;
  }

  /* Price cards on pricing page */
  .price-card {
    padding: 28px;
  }
}

/* ── Mobile phones ── */
@media (max-width: 480px) {
  :root { --section-pad: 40px; }

  .container { padding: 0 16px; }

  .nav-logo-img { height: 32px; }
  .hero-logo-img { height: 120px; }

  .hero-headline,
  .hero h1 { font-size: 1.8rem; }
  .hero-subtext,
  .hero p { font-size: 1rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; }

  .badge { font-size: 0.72rem; padding: 5px 12px; }

  .features-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-bar { flex-direction: column; align-items: center; gap: 16px; }

  /* Pricing cards full-width */
  .pricing-grid { max-width: 100%; }
  .pricing-card,
  .price-card { padding: 24px; }

  /* Compliance banner — 2 col on small screens */
  .compliance-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  /* Section headers */
  .section-header h2 { font-size: 1.5rem; }
  .section-header p { font-size: 0.92rem; }
  .section-header { margin-bottom: 32px; }

  /* CTA */
  .cta-section { padding: 48px 0; }
  .cta-section p { font-size: 0.95rem; }

  /* Legal pages */
  .legal-page { padding: 76px 0 48px; }
  .legal-page h1 { font-size: 1.4rem; }

  /* FAQ */
  .faq-question { font-size: 0.9rem; padding: 16px 0; }

  /* Cookie banner */
  .cookie-banner-actions {
    width: 100%;
    justify-content: center;
  }

  /* Footer */
  .footer-logo-img { height: 48px; }
  .site-footer { padding: 48px 0 24px; }
}
