/* ================================================================
   pagame.io — Landing v4 FINAL
   Professional B2B SaaS · Navy #0B1D3A + Emerald #00C896
   Manrope + DM Sans · Production-grade CSS
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800;900&family=DM+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

/* ================================================================
   1. DESIGN TOKENS
   ================================================================ */
:root {
  /* Brand */
  --navy:       #0B1D3A;
  --navy-soft:  #132744;
  --navy-deep:  #060F1F;
  --emerald:    #00C896;
  --emerald-dark:#00B386;
  --emerald-dim:rgba(0,200,150,.10);
  --emerald-mid:rgba(0,200,150,.18);
  --emerald-bdr:rgba(0,200,150,.25);
  --gold:       #F59E0B;
  --gold-dim:   rgba(245,158,11,.12);

  /* Backgrounds */
  --bg:         #FAFBFD;
  --bg-alt:     #F4F7FB;
  --bg-card:    #FFFFFF;
  --bg-dark:    #0B1D3A;

  /* Text */
  --text-1:     #0B1D3A;
  --text-2:     #3D5275;
  --text-3:     #7A93B4;
  --text-4:     #A8BDD1;
  --text-inv:   #FFFFFF;

  /* Semantic */
  --success:    #22C55E;
  --error:      #EF4444;

  /* Borders */
  --border:     #E3EBF5;
  --border-mid: #C8D8E8;

  /* Shadows — layered for depth */
  --shadow-xs:  0 1px 2px rgba(11,29,58,.04);
  --shadow-sm:  0 2px 8px rgba(11,29,58,.06), 0 1px 3px rgba(11,29,58,.04);
  --shadow-md:  0 6px 24px rgba(11,29,58,.08), 0 2px 8px rgba(11,29,58,.05);
  --shadow-lg:  0 16px 48px rgba(11,29,58,.10), 0 4px 16px rgba(11,29,58,.06);
  --shadow-xl:  0 32px 80px rgba(11,29,58,.12), 0 8px 32px rgba(11,29,58,.07);
  --shadow-emerald: 0 0 0 3px rgba(0,200,150,.20);

  /* Typography */
  --font-head:  'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body:  'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing scale (8px base) */
  --s1:  .25rem;  /* 4px */
  --s2:  .5rem;   /* 8px */
  --s3:  .75rem;  /* 12px */
  --s4:  1rem;    /* 16px */
  --s5:  1.25rem; /* 20px */
  --s6:  1.5rem;  /* 24px */
  --s7:  1.75rem; /* 28px */
  --s8:  2rem;    /* 32px */
  --s9:  2.25rem; /* 36px */
  --s10: 2.5rem;  /* 40px */
  --s12: 3rem;    /* 48px */
  --s16: 4rem;    /* 64px */
  --s20: 5rem;    /* 80px */
  --s24: 6rem;    /* 96px */

  /* Radii */
  --r-sm:   8px;
  --r-md:   12px;
  --r-lg:   16px;
  --r-xl:   24px;
  --r-2xl:  32px;
  --r-full: 9999px;

  /* Layout */
  --max-w:  1200px;
  --section: clamp(64px, 10vw, 120px);
}

/* ================================================================
   2. RESET
   ================================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* Grid and flex children: prevent overflow from intrinsic sizing */
.grid, .hero-grid, .steps-grid, .features-grid, .pricing-grid,
.testimonials-grid, .problem-grid, .footer-grid { min-width: 0; }

html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-1);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

/* ================================================================
   3. ACCESSIBILITY
   ================================================================ */
.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;
}

.skip-link {
  position: fixed; top: -64px; left: 16px; z-index: 10000;
  background: var(--emerald); color: #fff;
  padding: 14px 24px; border-radius: 0 0 var(--r-md) var(--r-md);
  font-family: var(--font-head); font-weight: 700; font-size: .875rem;
  transition: top .2s; box-shadow: var(--shadow-md);
}
.skip-link:focus { top: 0; outline: none; }

:focus-visible {
  outline: 2px solid var(--emerald);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ================================================================
   4. SELECTION & SCROLLBAR
   ================================================================ */
::selection { background: var(--emerald-dim); color: var(--navy); }
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb { background: var(--border-mid); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-4); }

/* ================================================================
   5. TYPOGRAPHY
   ================================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--text-1);
}

h1 { font-size: clamp(2.4rem, 6vw, 4rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.05rem, 2vw, 1.25rem); font-weight: 700; }
h4 { font-size: .9375rem; font-weight: 700; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: .6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--emerald);
  margin-bottom: var(--s4);
}

.lead {
  font-size: clamp(.975rem, 1.4vw, 1.125rem);
  color: var(--text-2);
  line-height: 1.75;
  max-width: 520px;
}

.body-sm { font-size: .875rem; color: var(--text-3); line-height: 1.65; }
.text-center { text-align: center; }
.text-center .lead { margin-left: auto; margin-right: auto; }

/* ================================================================
   6. LAYOUT
   ================================================================ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(var(--s4), 5vw, var(--s8));
}

.section { padding: var(--section) 0; position: relative; }

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-dark {
  background: var(--bg-dark);
}

.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.section-dark .lead { color: rgba(255,255,255,.62); }
.section-dark .eyebrow { color: var(--emerald); }

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto calc(var(--s16));
}

.section-header .eyebrow { display: block; }
.section-header h2 { margin-bottom: var(--s4); }
.section-header .lead { margin: 0 auto; }

/* ================================================================
   7. NAV
   ================================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 68px; display: flex; align-items: center;
  transition: background .3s, box-shadow .3s, backdrop-filter .3s;
}

.nav-inner {
  display: flex; align-items: center;
  justify-content: space-between; width: 100%;
}

.nav.scrolled {
  background: rgba(250,251,253,.93);
  backdrop-filter: blur(20px) saturate(1.9);
  -webkit-backdrop-filter: blur(20px) saturate(1.9);
  box-shadow: 0 1px 0 var(--border), var(--shadow-sm);
}

.nav-logo {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-head); font-size: 1.05rem; font-weight: 800;
  color: var(--navy); letter-spacing: 0.08em; text-transform: uppercase;
  transition: opacity .2s;
}
.nav-logo:hover { opacity: .72; }

.nav-logo-mark {
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.nav-logo-mark svg {
  width: 32px !important; height: 32px !important;
}

.nav-links { display: flex; gap: var(--s9); align-items: center; }
.nav-links a {
  font-family: var(--font-body); font-size: .875rem; font-weight: 500;
  color: var(--text-2); transition: color .2s;
}
.nav-links a:hover { color: var(--navy); }

.nav-cta { display: flex; align-items: center; }

/* ================================================================
   8. BUTTONS
   ================================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--s2); padding: 12px 24px;
  border-radius: var(--r-lg); font-family: var(--font-head);
  font-size: .9rem; font-weight: 700; border: 2px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  line-height: 1; transition: background .2s, color .2s, border-color .2s,
    transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .2s;
  -webkit-user-select: none; user-select: none;
}

.btn-primary {
  background: var(--emerald); color: #fff; border-color: var(--emerald);
  box-shadow: 0 4px 16px rgba(0,200,150,.30);
}
.btn-primary:hover {
  background: var(--emerald-dark); border-color: var(--emerald-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,200,150,.38);
}
.btn-primary:active { transform: translateY(0) scale(.98); box-shadow: 0 2px 8px rgba(0,200,150,.25); }

.btn-outline {
  background: transparent; color: var(--navy); border-color: var(--border-mid);
}
.btn-outline:hover { border-color: var(--navy); background: rgba(11,29,58,.04); color: var(--navy); }

.btn-ghost { background: transparent; color: var(--text-2); border-color: transparent; }
.btn-ghost:hover { background: var(--bg-alt); color: var(--navy); }

.btn-navy { background: var(--navy); color: #fff; border-color: var(--navy); box-shadow: var(--shadow-sm); }
.btn-navy:hover { background: var(--navy-soft); border-color: var(--navy-soft); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-white { background: #fff; color: var(--navy); border-color: #fff; }
.btn-white:hover { background: rgba(255,255,255,.9); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-sm { padding: 9px 18px; font-size: .8125rem; border-radius: var(--r-md); }
.btn-lg { padding: 16px 36px; font-size: 1rem; border-radius: var(--r-xl); }
.btn-xl { padding: 18px 44px; font-size: 1.0625rem; border-radius: var(--r-xl); }

/* ================================================================
   9. HERO
   ================================================================ */
.hero {
  min-height: 100svh;
  display: flex; align-items: center;
  padding: 110px 0 clamp(var(--s16), 8vw, 100px);
  background: var(--bg);
  position: relative; overflow: hidden;
}

.hero::before {
  content: ''; position: absolute;
  top: -20%; right: -8%;
  width: 70%; height: 140%;
  background: radial-gradient(ellipse at 70% 30%, rgba(0,200,150,.06) 0%, transparent 58%);
  pointer-events: none;
}

.hero::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 220px;
  background: linear-gradient(to top, var(--bg), transparent);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--s10), 6vw, 80px);
  align-items: center;
  position: relative; z-index: 1;
}

/* Badge */
.hero-badge {
  display: inline-flex; align-items: center; gap: var(--s2);
  background: var(--emerald-dim); border: 1px solid var(--emerald-bdr);
  padding: 6px 14px 6px 10px; border-radius: var(--r-full);
  font-family: var(--font-head); font-size: .8rem; font-weight: 700;
  color: var(--emerald); margin-bottom: var(--s8); width: fit-content;
  animation: fade-up .7s ease .1s both;
}

.hero-badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 3px rgba(0,200,150,.2);
  animation: badge-pulse 2.5s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(0,200,150,.2); }
  50% { box-shadow: 0 0 0 7px rgba(0,200,150,.07); }
}

/* Headline */
.hero h1 { margin-bottom: var(--s6); animation: fade-up .9s cubic-bezier(.16,1,.3,1) .2s both; }
.hero h1 .accent { color: var(--emerald); }

/* Lead */
.hero .lead { margin-bottom: var(--s10); animation: fade-up .8s ease .4s both; }

/* Form */
.hero-form { animation: fade-up .8s ease .55s both; margin-bottom: var(--s4); width: 100%; max-width: 100%; box-sizing: border-box; }

.form-row {
  display: flex; gap: var(--s3); flex-wrap: wrap;
  width: 100%; max-width: 640px;
  margin-bottom: var(--s2);
}
.form-row.stacked { flex-direction: column; }
.form-row.stacked .form-input,
.form-row.stacked .btn { width: 100%; flex: none; }

.form-input {
  flex: 1; min-width: 160px; padding: 13px 18px;
  background: var(--bg-card); border: 1.5px solid var(--border);
  border-radius: var(--r-lg); font-family: var(--font-body);
  font-size: .9375rem; color: var(--text-1);
  outline: none; transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
.form-input::placeholder { color: var(--text-3); }
.form-input:focus { border-color: var(--emerald); box-shadow: var(--shadow-emerald); }

/* Legacy .email-row and .email-input still work for backward compat */
.email-row {
  display: flex; gap: var(--s3); flex-wrap: wrap; width: 100%; max-width: 480px; margin-bottom: var(--s2);
}
.email-row.stacked { flex-direction: column; }
.email-row.stacked .email-input,
.email-row.stacked .btn { width: 100%; flex: none; }

.email-input {
  flex: 1; min-width: 0; padding: 13px 18px;
  background: var(--bg-card); border: 1.5px solid var(--border);
  border-radius: var(--r-lg); font-family: var(--font-body);
  font-size: .9375rem; color: var(--text-1);
  outline: none; transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
.email-input::placeholder { color: var(--text-3); }
.email-input:focus { border-color: var(--emerald); box-shadow: var(--shadow-emerald); }

.form-note { font-size: .78rem; color: var(--text-3); }
.pricing-setup-note { font-size: .85rem; color: var(--text-2); text-align: center; margin-bottom: var(--s4); font-weight: 500; }

/* Hero form — 3 rows: name+email | phone+button | consents */
.hero-form .form-row-1,
.hero-form .form-row-2 {
  display: flex; gap: var(--s3); flex-wrap: wrap;
  width: 100%; max-width: 560px; margin-bottom: var(--s2);
  flex-direction: row;
}
.hero-form .form-row-1 .form-input,
.hero-form .form-row-2 .form-input { flex: 1; min-width: 140px; }
/* Button same size as phone input */
.hero-form .form-row-2 .btn { flex: 1; min-width: 0; justify-content: center; }
/* Row 3: consent checkboxes — HERO: stacked vertically, aligned left */
.hero-form .form-row-3 {
  display: flex; flex-direction: column; gap: 6px;
  width: 100%; max-width: 560px; margin-bottom: var(--s2);
}
.hero-form .consent-label { flex: none; width: auto; }

/* CTA form-row-3: side by side, left-aligned, nowrap */
.cta-buttons .form-row-3 {
  display: flex; flex-direction: row; flex-wrap: nowrap;
  gap: 24px; align-items: flex-start;
  width: 100%; max-width: 560px; margin-bottom: var(--s2);
}
.cta-buttons .consent-label { flex: 0 0 auto; }

/* Force column on mobile — using block to guarantee stacking */
@media (max-width: 640px) {
  .hero-form .form-row-1,
  .hero-form .form-row-2,
  .hero-form .form-row-3 {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    flex-wrap: unset !important;
    gap: 10px;
  }
  .hero-form .form-row-1 .form-input,
  .hero-form .form-row-2 .form-input,
  .hero-form .form-row-2 .btn,
  .hero-form .form-row-3 { width: 100% !important; flex: none !important; min-width: 0 !important; }
  .hero-form .consent-label { width: 100% !important; }
}

/* CTA form — 3 rows same pattern */
.cta-buttons .form-row-1,
.cta-buttons .form-row-2 {
  display: flex; gap: var(--s3); flex-wrap: wrap;
  justify-content: center; margin-bottom: var(--s2);
}
.cta-buttons .form-row-1 .form-input,
.cta-buttons .form-row-2 .form-input { flex: 1; min-width: 140px; }
/* Button same size as phone input */
.cta-buttons .form-row-2 .btn { flex: 1; min-width: 0; justify-content: center; }
/* Row 3 — see .cta-buttons .form-row-3 block above */

/* Stats bar */
.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--border); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden; margin-top: var(--s8);
  animation: fade-up .8s ease .7s both;
}

.hero-stat { background: var(--bg-card); padding: var(--s5) var(--s6); text-align: center; }

.hero-stat-num {
  font-family: var(--font-head);
  font-size: 1.2rem; font-weight: 900; letter-spacing: -0.03em;
  color: var(--navy); line-height: 1; margin-bottom: var(--s1);
}
.hero-stat-num .em { color: var(--emerald); }
.hero-stat-label { font-size: .7rem; color: var(--text-3); line-height: 1.4; }

/* Hero visual */
.hero-visual { position: relative; animation: fade-up 1s cubic-bezier(.16,1,.3,1) .35s both; }

.hero-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: var(--s8);
  box-shadow: var(--shadow-xl);
  animation: card-float 7s ease-in-out infinite;
  position: relative; z-index: 1;
}

@keyframes card-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.hero-card-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: var(--s5);
}

.hero-card-label {
  font-size: .6rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .14em; color: var(--text-3); margin-bottom: 3px;
}

.hero-card-num { font-size: .8rem; color: var(--text-3); }

.hero-card-amount {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 900;
  letter-spacing: -0.04em; color: var(--navy); line-height: 1;
}

.hero-card-divider { height: 1px; background: var(--border); margin: var(--s5) 0; }

.hero-card-meta { display: flex; gap: var(--s6); margin-bottom: var(--s5); flex-wrap: wrap; }

.hero-card-meta-item { font-size: .8rem; color: var(--text-2); }
.hero-card-meta-item span {
  display: block; font-size: .6rem; text-transform: uppercase;
  letter-spacing: .08em; color: var(--text-3); margin-bottom: 2px;
}

.hero-card-status-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: var(--s5);
}

.hero-card-badge {
  font-size: .72rem; font-weight: 700; padding: 4px 10px;
  border-radius: var(--r-full);
  background: rgba(239,68,68,.07); color: var(--error);
  border: 1px solid rgba(239,68,68,.15);
}

.hero-card-action { font-size: .78rem; font-weight: 600; color: var(--emerald); }

.hero-card-progress {
  height: 4px; background: var(--bg-alt); border-radius: var(--r-full); overflow: hidden;
}

.hero-card-progress-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--navy), var(--emerald));
  border-radius: var(--r-full);
  animation: progress-fill 2.5s cubic-bezier(.16,1,.3,1) 1.5s forwards;
}

@keyframes progress-fill { to { width: 72%; } }

/* ================================================================
   10. TRUST BAR
   ================================================================ */
.trust-bar {
  padding: var(--s10) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-card); overflow: hidden;
}

.trust-label {
  text-align: center;
  font-size: .7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .13em; color: var(--text-3);
  margin-bottom: var(--s6);
}

.marquee { overflow: hidden; }

.marquee-track {
  display: flex; width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }

.marquee-item {
  font-family: var(--font-head); font-size: .875rem; font-weight: 700;
  color: var(--text-4); letter-spacing: .05em; text-transform: uppercase;
  padding: 0 var(--s8); position: relative; white-space: nowrap;
}
.marquee-item::after {
  content: '·'; position: absolute; right: 0;
  color: var(--border-mid); opacity: .5;
}

@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ================================================================
   11. PROBLEM / STATS
   ================================================================ */
.problem-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 2px; background: rgba(255,255,255,.05);
  border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid rgba(255,255,255,.06);
}

.problem-stat {
  background: rgba(255,255,255,.03);
  padding: clamp(var(--s8), 4vw, var(--s12));
  text-align: center; transition: background .3s;
}
.problem-stat:hover { background: rgba(255,255,255,.06); }

.problem-stat-num {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  font-weight: 900; letter-spacing: -0.04em; line-height: 1;
  margin-bottom: var(--s2); color: #fff;
}
.problem-stat-num .em { color: var(--emerald); }
.problem-stat-num .gold { color: var(--gold); }

.problem-stat-label {
  font-size: .8125rem; color: rgba(255,255,255,.48);
  line-height: 1.5; max-width: 140px; margin: 0 auto;
}

/* ================================================================
   12. HOW IT WORKS
   ================================================================ */
.steps-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s6);
}

.step-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: var(--s10) var(--s8);
  position: relative;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s;
}
.step-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.step-number {
  font-family: var(--font-head);
  font-size: 3.25rem; font-weight: 900; letter-spacing: -0.04em;
  color: var(--emerald); opacity: .18; line-height: 1; margin-bottom: var(--s5);
  transition: opacity .3s;
}
.step-card:hover .step-number { opacity: .3; }

.step-icon {
  width: 54px; height: 54px; border-radius: var(--r-md);
  background: var(--emerald-dim); display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--s5); transition: background .25s;
}
.step-card:hover .step-icon { background: var(--emerald); }
.step-card:hover .step-icon svg path,
.step-card:hover .step-icon svg circle,
.step-card:hover .step-icon svg rect { stroke: #fff !important; }

.step-card h3 { margin-bottom: var(--s3); }
.step-card p { font-size: .9rem; color: var(--text-2); line-height: 1.7; }

/* ================================================================
   13. FEATURES
   ================================================================ */
.features-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s4);
}

.feature-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: var(--s7);
  display: flex; gap: var(--s5); align-items: flex-start;
  transition: transform .25s, box-shadow .25s;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.feature-icon {
  width: 46px; height: 46px; border-radius: var(--r-md);
  background: var(--bg-alt); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: background .25s;
}
.feature-card:hover .feature-icon { background: var(--emerald-dim); }

.feature-card h4 { margin-bottom: var(--s2); }
.feature-card p { font-size: .875rem; color: var(--text-2); line-height: 1.7; }

/* ================================================================
   14. COMPARISON TABLE
   ================================================================ */
.table-wrap {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow-x: scroll;
  box-shadow: var(--shadow-md);
  width: 100%;
  -webkit-overflow-scrolling: touch;
  /* Hide scrollbar but keep functionality */
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.table-wrap::-webkit-scrollbar { height: 4px; }
.table-wrap::-webkit-scrollbar-track { background: transparent; }
.table-wrap::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.comparison-table {
  overflow-x: auto;
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.comparison-table th:first-child,
.comparison-table td:first-child {
  min-width: 200px;
  white-space: normal;
  word-break: break-word;
}

.comparison-table thead th {
  padding: var(--s4) var(--s6);
  font-family: var(--font-head); font-size: .7rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .1em; color: var(--text-3);
  text-align: left; background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.comparison-table thead th:last-child { color: var(--emerald); }

.comparison-table tbody td {
  padding: 12px var(--s5); font-size: .875rem;
  border-bottom: 1px solid var(--border); color: var(--text-2);
  transition: background .15s;
  white-space: normal;
  word-break: break-word;
}
.comparison-table tbody tr:last-child td { border-bottom: none; }
.comparison-table tbody tr:hover td { background: rgba(0,200,150,.02); }
.comparison-table .check { color: var(--emerald); font-weight: 800; }
.comparison-table .cross { color: var(--text-4); }
.comparison-table .highlight td { background: rgba(0,200,150,.04); }
.comparison-table .highlight:hover td { background: rgba(0,200,150,.07); }

/* ================================================================
   15. TESTIMONIALS
   ================================================================ */
.testimonials-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5);
}

.testimonial-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: var(--s8);
  position: relative; transition: transform .3s, box-shadow .3s;
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.testimonial-card::before {
  content: '\201C'; position: absolute; top: var(--s5); right: var(--s7);
  font-size: 4rem; font-weight: 900; color: var(--emerald); opacity: .1;
  line-height: 1; font-family: Georgia, serif;
}

.testimonial-stars { color: var(--gold); font-size: .8rem; letter-spacing: 3px; margin-bottom: var(--s4); }

.testimonial-quote {
  font-size: .9rem; color: var(--text-2); line-height: 1.78;
  font-style: italic; margin-bottom: var(--s6);
}

.testimonial-author { display: flex; align-items: center; gap: var(--s3); }

.testimonial-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--emerald), var(--navy));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-size: .75rem; font-weight: 800; flex-shrink: 0;
}

.testimonial-name {
  font-family: var(--font-head); font-size: .9rem; font-weight: 700;
  color: var(--text-1); display: block;
}
.testimonial-role { font-size: .75rem; color: var(--text-3); }

/* ================================================================
   16. PRICING
   ================================================================ */
.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--s4); max-width: 960px; margin: 0 auto;
}

.price-card {
  background: var(--bg-card); border: 1.5px solid var(--border);
  border-radius: var(--r-xl); padding: var(--s9) var(--s7);
  position: relative;
  display: flex; flex-direction: column;
  transition: transform .3s, box-shadow .3s;
}
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); }

.price-card.featured {
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(0,200,150,.10), var(--shadow-lg);
}
.price-card.featured:hover { box-shadow: 0 0 0 4px rgba(0,200,150,.14), var(--shadow-xl); }

.price-badge {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%); z-index: 10;
  background: var(--emerald); color: #fff;
  font-family: var(--font-head); font-size: .6rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .1em;
  padding: 5px 16px; border-radius: 0 0 var(--r-md) var(--r-md);
  white-space: nowrap;
}

.price-tier {
  font-family: var(--font-head); font-size: .65rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .15em; color: var(--text-3);
  margin-bottom: var(--s3); flex-shrink: 0;
}

.price-amount {
  font-family: var(--font-head); font-size: clamp(2.2rem, 6vw, 3rem); font-weight: 900;
  letter-spacing: -0.04em; line-height: 1; color: var(--navy); margin-bottom: var(--s1);
}

.price-period { font-size: .82rem; color: var(--text-3); margin-bottom: var(--s5); }

.price-commission {
  display: inline-flex; align-items: center; gap: var(--s1);
  background: var(--emerald-dim); color: var(--emerald);
  font-family: var(--font-head); font-size: .78rem; font-weight: 700;
  padding: 4px 10px; border-radius: var(--r-full); margin-bottom: var(--s5);
  border: 1px solid var(--emerald-bdr); flex-shrink: 0;
}

.price-desc {
  font-size: .875rem; color: var(--text-2); line-height: 1.65;
  padding-bottom: var(--s5); border-bottom: 1px solid var(--border); margin-bottom: var(--s5);
  flex-shrink: 0;
}

.price-features { list-style: none; display: flex; flex-direction: column; gap: var(--s3); flex: 1; padding-bottom: var(--s4); }

.price-features li {
  font-size: .875rem; color: var(--text-2);
  display: flex; align-items: center; gap: var(--s3);
}

.price-features li::before {
  content: ''; width: 18px; height: 18px; border-radius: 50%;
  background: var(--emerald-dim); flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6l2.5 2.5 5-5' stroke='%2300C896' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: 10px;
}

.price-card .btn { width: 100%; margin-top: auto; }

.price-note {
  font-size: .78rem;
  color: var(--text-3);
  text-align: center;
  margin-top: var(--s3);
  line-height: 1.5;
  font-style: italic;
}

.pricing-enterprise {
  max-width: 960px; margin: var(--s5) auto 0;
  background: var(--navy); border-radius: var(--r-xl);
  padding: var(--s8) clamp(var(--s6), 4vw, var(--s10));
  display: flex; align-items: center; justify-content: space-between; gap: var(--s7);
}

.pricing-enterprise h3 { color: #fff; font-size: 1.05rem; margin-bottom: var(--s1); }
.pricing-enterprise p { font-size: .875rem; color: rgba(255,255,255,.5); max-width: 480px; }

.pricing-enterprise .btn-outline {
  border-color: rgba(255,255,255,.2); color: #fff; flex-shrink: 0;
}
.pricing-enterprise .btn-outline:hover {
  border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.06); color: #fff;
}

/* ================================================================
   17. FAQ
   ================================================================ */
.faq-list { max-width: 680px; margin: 0 auto; }

.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-child { border-top: 1px solid var(--border); }

.faq-question {
  display: flex; justify-content: space-between; align-items: center;
  padding: var(--s6) 0;
  font-family: var(--font-head); font-size: 1rem; font-weight: 600;
  color: var(--navy); cursor: pointer; gap: var(--s4); list-style: none;
  transition: color .2s;
}
.faq-question::-webkit-details-marker { display: none; }

.faq-toggle {
  font-size: 1.4rem; color: var(--emerald); font-weight: 300;
  flex-shrink: 0; line-height: 1; transition: transform .3s;
}
.faq-toggle::after { content: '+'; }
.faq-item[open] .faq-toggle::after { content: '−'; }
.faq-item[open] .faq-question { color: var(--emerald); }

.faq-answer {
  padding: 0 0 var(--s5);
  font-size: .9375rem; color: var(--text-2); line-height: 1.8;
}
.faq-answer p { margin-bottom: var(--s3); }
.faq-answer p:last-child { margin-bottom: 0; }

/* ================================================================
   18. FINAL CTA
   ================================================================ */
.final-cta {
  padding: var(--s24) 0;
  background: var(--navy); text-align: center; position: relative; overflow: hidden;
}

.final-cta::before {
  content: ''; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%); width: 150%; height: 150%;
  background: radial-gradient(ellipse at center, rgba(0,200,150,.10) 0%, transparent 55%);
  pointer-events: none;
}

.final-cta .eyebrow { color: var(--emerald); }
.final-cta h2 { color: #fff; margin: var(--s4) 0 var(--s5); }
.final-cta .lead { color: rgba(255,255,255,.55); margin: 0 auto var(--s12); }

.cta-buttons { display: flex; gap: var(--s4); justify-content: center; flex-wrap: wrap; margin-bottom: var(--s4); }
.final-cta .form-note { color: rgba(255,255,255,.35); font-size: .78rem; margin-top: var(--s3); }

/* ================================================================
   19. FOOTER
   ================================================================ */
.footer {
  background: var(--navy); border-top: 1px solid rgba(255,255,255,.07);
  padding: var(--s16) 0 0;
}

.footer-grid {
  display: grid; grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: var(--s12); padding-bottom: var(--s12);
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.footer-brand .nav-logo { color: #fff; margin-bottom: var(--s5); display: inline-flex; }
.footer-brand p { font-size: .875rem; color: rgba(255,255,255,.42); line-height: 1.7; max-width: 240px; }

.footer-col h5 {
  font-family: var(--font-head); font-size: .6rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .15em;
  color: rgba(255,255,255,.32); margin-bottom: var(--s5);
}

.footer-col a {
  display: block; font-size: .9rem; color: rgba(255,255,255,.52);
  margin-bottom: var(--s3); transition: color .2s;
}
.footer-col a:hover { color: #fff; }

.footer-bottom {
  padding: var(--s5) 0;
  display: flex; justify-content: space-between; align-items: center; gap: var(--s4);
}
.footer-bottom p { font-size: .78rem; color: rgba(255,255,255,.28); }

/* ================================================================
   20. TOAST
   ================================================================ */
.toast {
  position: fixed; bottom: var(--s8); left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--navy); color: #fff; padding: 14px 26px;
  border-radius: var(--r-lg); font-family: var(--font-head);
  font-size: .875rem; font-weight: 600;
  box-shadow: 0 12px 48px rgba(11,29,58,.4);
  opacity: 0; transition: transform .4s cubic-bezier(.34,1.56,.64,1), opacity .4s;
  z-index: 9999; pointer-events: none; white-space: nowrap;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast.success { background: var(--emerald); }
.toast.error { background: var(--error); }

/* ================================================================
   21. ANIMATIONS
   ================================================================ */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Scroll reveal */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .65s ease, transform .65s cubic-bezier(.16,1,.3,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ================================================================
   22. RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
  .problem-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s10); }
}


/* ================================================================
   RESPONSIVE — 960px and below (Tablet / Mobile landscape)
   ================================================================ */
@media (max-width: 960px) {
  .container { max-width: 100%; padding: 0 clamp(16px, 4vw, 32px); }

  /* Nav */
  .nav-links { display: none; }
  .nav-cta { display: none; }

  /* Hero — stack vertically, full width */
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; width: 100%; max-width: 100%; }
  .hero h1 { font-size: clamp(1.9rem, 7vw, 3rem); }
  .hero { padding: 90px 0 60px; }
  .hero-stats { grid-template-columns: 1fr; }
  .cta-buttons { flex-direction: column; align-items: stretch; gap: 12px; }



  /* Grids — single column */
  .steps-grid,
  .features-grid,
  .pricing-grid,
  .testimonials-grid { grid-template-columns: 1fr; }

  /* Pricing — full width, no max constraint */
  .pricing-grid { max-width: 100%; }

  /* Cards — full width */
  .step-card,
  .feature-card,
  .testimonial-card,
  .price-card { width: 100%; max-width: 100%; }

  /* Footer — 2 columns */
  .footer-grid { grid-template-columns: 1fr 1fr; }

  /* CTA form — stack on tablet */
  .cta-buttons .email-row,
  .cta-buttons .form-row,
  .cta-buttons .form-row-1,
  .cta-buttons .form-row-2,
  .cta-buttons .form-row-3 { display: flex; flex-direction: column; width: 100%; max-width: 100%; gap: 10px; }
  .cta-buttons .email-row .form-input,
  .cta-buttons .form-row .form-input,
  .cta-buttons .form-row-1 .form-input,
  .cta-buttons .form-row-2 .form-input { width: 100%; flex: none; }
  .cta-buttons .email-row .btn,
  .cta-buttons .form-row .btn,
  .cta-buttons .form-row-1 .btn,
  .cta-buttons .form-row-2 .btn { width: 100%; flex: none; justify-content: center; }
  .cta-buttons .form-row-3 .consent-label { width: 100%; flex: none; }

  /* Hero form — stack rows on tablet */
  .hero-form .form-row-1,
  .hero-form .form-row-2,
  .hero-form .form-row-3 { display: flex; flex-direction: column; width: 100%; max-width: 100%; gap: 10px; }
  .hero-form .form-row-1 .form-input,
  .hero-form .form-row-2 .form-input { width: 100%; flex: none; }
  .hero-form .form-row-2 .btn { width: 100%; flex: none; justify-content: center; }
  .hero-form .form-row-3 .consent-label { width: 100%; flex: none; }
}

/* ================================================================
   RESPONSIVE — 640px and below (Mobile)
   ================================================================ */
@media (max-width: 640px) {
  /* ================================================================
     EMAIL FORM — full width, always stacked on mobile/tablet
     ================================================================ */
  .hero-form,
  .hero-form .email-row,
  .hero-form .form-row,
  .hero-form .form-row-1,
  .hero-form .form-row-2 {
    display: block !important;
    flex-direction: unset !important;
    flex-wrap: unset !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    gap: unset;
  }
  .hero-form .email-input,
  .hero-form .form-input,
  .hero-form .btn {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    flex: none !important;
    float: none !important;
    box-sizing: border-box;
  }
  .hero-form .btn {
    display: flex !important;
    justify-content: center;
  }
  .email-row,
  .form-row,
  .form-row-1,
  .form-row-2 {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    gap: 10px;
  }
  .email-input,
  .form-input,
  .form-row-1 .form-input,
  .form-row-2 .form-input {
    width: 100%;
    min-width: 0;
    padding: 13px 14px;
    flex: none;
    box-sizing: border-box;
  }
  .email-btn,
  .form-btn {
    width: 100%;
    padding: 13px;
    flex: none;
    display: flex;
    justify-content: center;
  }
  .email-row .btn {
    display: flex;
    width: 100%;
  }

  /* CTA email row — always stacked */
  .cta-buttons .email-row { flex-direction: column; width: 100%; max-width: 100%; gap: 10px; }
  .cta-buttons .email-row .email-input { width: 100%; flex: none; padding: 13px 14px; box-sizing: border-box; }
  .cta-buttons .email-row .btn { width: 100%; flex: none; padding: 13px; box-sizing: border-box; }

  /* Body — no horizontal scroll */
  html { overflow-x: hidden; }
  body { overflow-x: hidden; }


  /* Container — tighter padding */
  .container { padding: 0 16px; }

  /* Section spacing */
  .section { padding: 56px 0; }
  .section-header { margin-bottom: 32px; }
  h2 { font-size: clamp(1.4rem, 7vw, 2rem); }

  /* Hero */
  .hero { padding: 72px 0 48px; }
  .hero h1 { font-size: clamp(1.7rem, 8vw, 2.4rem); }
  .hero .lead { font-size: .95rem; }
  .hero-visual { width: 100%; }
  .hero-card { width: 100%; max-width: 100%; padding: 20px; }
  .hero-stats {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    gap: 8px;
    -webkit-overflow-scrolling: touch;
  }
  .hero-stat {
    flex: 0 0 auto;
    min-width: 100px;
    padding: 12px 14px;
  }
  .hero-badge { font-size: .65rem; }



  /* Problem grid — 2 columns */
  .problem-grid { grid-template-columns: 1fr 1fr; gap: 12px; }

  /* Steps */
  .step-card { padding: 24px 16px; width: 100%; }

  /* Features */
  .feature-card { padding: 20px 16px; width: 100%; }

  /* Testimonials */
  .testimonial-card { padding: 24px 16px; width: 100%; }

  /* Pricing */
  .pricing-grid { grid-template-columns: 1fr; gap: 16px; }
  .price-card {
    padding: 48px 16px 28px;
    width: 100%; max-width: 100%;
    position: relative;
    overflow: visible;
  }
  .price-amount { font-size: clamp(2rem, 10vw, 2.8rem); }
  .price-badge { top: 0; z-index: 10; }

  /* Enterprise pricing */
  .pricing-enterprise {
    flex-direction: column;
    text-align: center;
    align-items: center;
    padding: 32px 20px;
    gap: 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .pricing-enterprise > * { max-width: 100%; }

  /* Comparison table — horizontal scroll */
  .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    margin: 0;
  }
  .comparison-table {
    overflow-x: auto;
    width: max-content;
    min-width: 600px;
    font-size: .72rem;
  }
  .comparison-table th,
  .comparison-table td {
    padding: 8px 14px;
  }
  .comparison-table th:first-child,
  .comparison-table td:first-child {
    white-space: normal;
    min-width: 180px;
  }

  /* FAQ */
  .faq-list { padding: 0; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 16px; }

  /* Marquee scroll */
  .marquee-track { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* ================================================================
   RESPONSIVE — 480px and below (Small mobile)
   ================================================================ */
@media (max-width: 480px) {
  .container { padding: 0 12px; }
  .section { padding: 48px 0; }

  /* Problem grid — single column */
  .problem-grid { grid-template-columns: 1fr; }

  /* Smaller text throughout */
  h2 { font-size: clamp(1.3rem, 8vw, 1.7rem); }
  .price-amount { font-size: clamp(1.8rem, 11vw, 2.2rem); }

  /* Table — smaller font */
  .comparison-table { overflow-x: auto; font-size: .68rem; table-layout: auto; }
  .comparison-table th:first-child,
  .comparison-table td:first-child { min-width: 140px; }
  .comparison-table th,
  .comparison-table td { padding: 6px 8px; }

  /* Cards — tighter */
  .step-card,
  .feature-card,
  .testimonial-card { padding: 20px 12px; }
  .price-card { padding: 40px 12px 20px; }
  .pricing-enterprise { padding: 24px 12px; }
}

/* ================================================================
   PRINT
   ================================================================ */

/* ================================================================
   WATERMARKS — subtle logo marks as background texture
   ================================================================ */

/* Watermark: large faint emerald circle in pricing section */
#precios {
  position: relative;
}
#precios::before {
  content: '';
  position: absolute;
  top: 50%; right: -80px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,200,150,0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
#precios > .container,
#precios .section-header,
#precios .pricing-grid,
#precios .pricing-enterprise {
  position: relative; z-index: 1;
}

/* Watermark in hero — subtle clock mark */
.hero {
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,200,150,0.10) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.hero > .container { position: relative; z-index: 1; }

/* Watermark in comparison table section */
#comparacion {
  position: relative;
}
#comparacion::before {
  content: '';
  position: absolute;
  bottom: -40px; left: -40px;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,200,150,0.08) 0%, transparent 70%);
  pointer-events: none;
}
#comparacion > .container { position: relative; z-index: 1; }

/* Watermark in final CTA */
.final-cta {
  position: relative; overflow: hidden;
}
.final-cta::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.final-cta > .container { position: relative; z-index: 1; }

/* ================================================================
   COOKIE BANNER
   ================================================================ */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  max-width: 400px;
  width: calc(100vw - 32px);
  background: var(--navy);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(0,200,150,.10);
  animation: cookie-slide-up .4s cubic-bezier(.16,1,.3,1);
  overflow: hidden;
}

@keyframes cookie-slide-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.cookie-banner-inner { padding: 20px 20px 16px; }

.cookie-banner-text {
  margin-bottom: 14px;
}
.cookie-banner-text p {
  font-size: .82rem;
  color: rgba(255,255,255,.65);
  line-height: 1.5;
  margin: 0;
}
.cookie-banner-text a {
  color: var(--emerald);
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cookie-btn {
  flex: 1;
  min-width: 0;
  padding: 9px 12px;
  border-radius: var(--r-md);
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background .2s, color .2s, border-color .2s, transform .15s;
  white-space: nowrap;
}
.cookie-btn:active { transform: scale(.97); border-color: rgba(0,160,120,.6); }

.cookie-btn-accept,
.cookie-btn-reject,
.cookie-btn-configure,
.cookie-btn-secondary {
  background: var(--emerald);
  color: #fff;
  border-color: var(--emerald);
}
.cookie-btn-accept:hover { background: #00b386; border-color: #00b386; }
.cookie-btn-reject:hover { background: rgba(0,160,120,.85); border-color: rgba(0,160,120,.85); }
.cookie-btn-configure:hover { background: rgba(0,160,120,.85); border-color: rgba(0,160,120,.85); }
.cookie-btn-secondary:hover { background: rgba(0,160,120,.85); border-color: rgba(0,160,120,.85); }

/* Config panel */
.cookie-banner-config { margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.08); }

.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.cookie-category:last-of-type { border-bottom: none; }

.cookie-category-info { display: flex; flex-direction: column; gap: 2px; }
.cookie-category-info strong { font-size: .8rem; font-weight: 700; color: #fff; }
.cookie-category-info span { font-size: .72rem; color: rgba(255,255,255,.45); }

.cookie-status {
  font-size: .7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--r-full);
}
.cookie-status-on { background: rgba(0,200,150,.15); color: var(--emerald); border: 1px solid rgba(0,200,150,.25); }
.cookie-status-off { background: rgba(255,255,255,.07); color: rgba(255,255,255,.4); border: 1px solid rgba(255,255,255,.12); }

/* Toggle switch */
.cookie-toggle { position: relative; display: inline-block; width: 40px; height: 22px; flex-shrink: 0; }
.cookie-toggle input { opacity: 0; width: 0; height: 0; }
.cookie-toggle-slider {
  position: absolute; inset: 0;
  background: rgba(255,255,255,.18);
  border-radius: 22px;
  cursor: pointer;
  transition: background .2s;
}
.cookie-toggle-slider::before {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  left: 3px; bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s;
}
.cookie-toggle input:checked + .cookie-toggle-slider { background: var(--emerald); }
.cookie-toggle input:checked + .cookie-toggle-slider::before { transform: translateX(18px); }

.cookie-banner-config-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}
.cookie-banner-config-actions .cookie-btn { flex: 1; }

/* Consent checkboxes in forms */
.form-consent {
  display: flex;
  flex-direction: row;
  gap: var(--s4);
  flex-wrap: wrap;
}
.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
  font-size: .72rem;
  color: rgba(255,255,255,.55);
  line-height: 1.4;
  flex: 1;
  min-width: 140px;
}
.consent-label input[type="checkbox"] {
  width: 15px;
  height: 15px;
  min-width: 15px;
  margin-top: 1px;
  accent-color: var(--emerald);
  cursor: pointer;
  border-radius: 3px;
}
.consent-label a { color: var(--emerald); }

/* Dark footer CTA — consent labels need white text */
.final-cta .consent-label { color: rgba(255,255,255,.55); }

/* Hero section — consent labels need navy text */
.hero .consent-label { color: var(--text-3); }
.hero .consent-label a { color: var(--emerald); }

/* Mobile: banner full width at bottom, all buttons stacked */
@media (max-width: 480px) {
  .cookie-banner { bottom: 12px; right: 12px; left: 12px; max-width: none; }
  .cookie-banner-actions,
  .cookie-banner-config-actions { flex-direction: column; }
  .cookie-banner-config-actions { gap: 6px; }
  .cookie-banner-config-actions .cookie-btn { width: 100%; flex: none; }
  .cookie-banner-actions .cookie-btn { width: 100%; flex: none; }
}

@media print {
  .nav, .cta-buttons, .email-form, .final-cta, .marquee, .footer { display: none; }
  .hero { min-height: auto; padding: 0; }
  .section { padding: 24px 0; }
}
@media print {
  .nav, .toast, .trust-bar, .hero-badge { display: none; }
  .section { padding: var(--s10) 0; }
  body { font-size: 12pt; color: #000; background: #fff; }
  a { color: #000; text-decoration: underline; }
}
