/* ==========================================================================
   piperspin-casino-spain.com — shared stylesheet
   Mobile-first. White canvas with an emerald / lime green palette:
   deep green gradients for actions and accent surfaces, soft mint mesh
   gradients for backgrounds. Type: Manrope (display) + Noto Sans (text),
   both with Latin Extended and Greek coverage for all locales.

   1. Tokens
   2. Base / reset
   3. Layout helpers
   4. Header, navigation & language switcher
   5. Buttons & small components
   6. Hero, author byline & bonus card
   7. Stats
   8. Article layout & content
   9. FAQ, final CTA & author
   10. Footer
   11. Sticky CTA & cookie banner
   12. Legal pages
   13. Motion preferences
   ========================================================================== */

/* 1. Tokens
   ========================================================================== */
:root {
  /* Brand */
  --green-50: #ecfdf5;
  --green-100: #d1fae5;
  --green-200: #a7f3d0;
  --green-300: #6ee7b7;
  --green-400: #34d399;
  --green-500: #10b981;
  --green-600: #059669;
  --green-700: #047857;
  --green-800: #065f46;
  --green-900: #064e3b;
  --green-950: #022c22;
  --lime-200: #d9f99d;
  --lime-400: #a3e635;
  --lime-600: #65a30d;
  --lime-700: #4d7c0f;
  --teal-600: #0d9488;

  /* Surfaces */
  --c-bg: #ffffff;
  --c-surface: #ffffff;
  --c-surface-2: #f5fbf7;
  --c-surface-3: #eaf6ef;
  --c-border: #dfece4;
  --c-border-strong: #c3dccd;

  /* Text */
  --c-title: #0b2a1f;
  --c-text: #23392f;
  --c-text-secondary: #4a6157;
  --c-text-muted: #5b7066;

  /* Roles */
  --c-link: var(--green-700);
  --c-link-hover: var(--green-900);
  --c-focus: var(--green-600);

  /* Gradients */
  --g-brand: linear-gradient(100deg, var(--green-700) 0%, var(--teal-600) 45%, var(--lime-700) 100%);
  --g-cta: linear-gradient(135deg, #0b8a5f 0%, var(--green-700) 50%, var(--green-800) 100%);
  --g-cta-hover: linear-gradient(135deg, var(--green-600) 0%, #06775a 50%, var(--green-700) 100%);
  --g-deep: linear-gradient(145deg, var(--green-900) 0%, var(--green-800) 45%, var(--green-700) 100%);
  --g-mint: linear-gradient(135deg, var(--green-50) 0%, #f7fee7 100%);
  --g-bar: linear-gradient(90deg, var(--green-500), var(--teal-600) 50%, var(--lime-400));
  --g-border: linear-gradient(140deg, var(--green-300), var(--green-600) 50%, var(--lime-400));

  /* Type */
  --font: "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Manrope", "Noto Sans", system-ui, sans-serif;

  /* Radii */
  --r-xs: 6px;
  --r-s: 10px;
  --r-m: 14px;
  --r-l: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* Effects */
  --shadow-xs: 0 1px 2px rgba(6, 78, 59, 0.06);
  --shadow-s: 0 2px 10px rgba(6, 78, 59, 0.07);
  --shadow-m: 0 12px 32px rgba(6, 78, 59, 0.1);
  --shadow-l: 0 24px 60px rgba(6, 78, 59, 0.16);
  --glow-green: 0 10px 28px rgba(4, 120, 87, 0.3);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Layout */
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 64px;
}

@media (min-width: 1180px) {
  :root { --header-h: 76px; }
}

/* 2. Base / reset
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--c-bg);
  background-image:
    radial-gradient(900px 520px at 100% -8%, rgba(16, 185, 129, 0.12), transparent 65%),
    radial-gradient(760px 520px at -12% 12%, rgba(163, 230, 53, 0.12), transparent 62%);
  background-repeat: no-repeat;
  color: var(--c-text);
  font: 400 1rem/1.7 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

img,
svg { display: block; max-width: 100%; }

img { height: auto; }

h1, h2, h3, h4 {
  margin: 0 0 0.6em;
  color: var(--c-title);
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 { font-size: clamp(1.85rem, 1.2rem + 3vw, 3.2rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2rem); }
h3 { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem); font-weight: 700; }

p { margin: 0 0 1em; }

a {
  color: var(--c-link);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s var(--ease);
}

a:hover { color: var(--c-link-hover); }

strong { color: var(--c-title); font-weight: 700; }

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

::selection { background: var(--green-200); color: var(--green-950); }

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.flag {
  width: 22px;
  height: 15px;
  flex: none;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(11, 42, 31, 0.12);
  overflow: hidden;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  background: var(--g-cta);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus { top: 12px; color: #fff; }

.text-gradient {
  background: var(--g-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* 3. Layout helpers
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(40px, 6vw, 72px); }
.section--tight { padding-block: 8px clamp(24px, 4vw, 40px); }

/* 4. Header, navigation & language switcher
   ========================================================================== */
.topbar {
  background: var(--g-mint);
  border-bottom: 1px solid var(--c-border);
  color: var(--green-900);
  font-size: 0.8125rem;
  line-height: 1.45;
}

.topbar__inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-block: 8px;
}

.topbar a { color: var(--green-800); font-weight: 600; }

.age-badge {
  display: inline-grid;
  place-items: center;
  flex: none;
  min-width: 30px;
  height: 22px;
  padding-inline: 6px;
  border-radius: var(--r-pill);
  background: var(--g-cta);
  color: #fff;
  font: 700 0.6875rem/1 var(--font-display);
  letter-spacing: 0.02em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--c-border);
  transition: box-shadow 0.25s var(--ease);
}

/* Blur lives on a pseudo-element: backdrop-filter on the header itself would
   become the containing block of the fixed mobile nav panel. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
}

body.nav-open .site-header::before { background: #fff; }

.site-header::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px;
  height: 2px;
  background: var(--g-bar);
  opacity: 0.85;
}

.site-header.is-scrolled { box-shadow: var(--shadow-s); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  color: var(--c-title);
  font: 800 1.35rem/1 var(--font-display);
  letter-spacing: -0.03em;
  text-decoration: none;
}

.logo:hover { color: var(--c-title); }
.logo img { width: 36px; height: 36px; }

/* Mobile navigation panel */
.nav {
  position: fixed;
  inset: var(--nav-top, var(--header-h)) 0 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px var(--gutter) calc(28px + env(safe-area-inset-bottom));
  overflow-y: auto;
  background: var(--c-surface);
  background-image: radial-gradient(600px 300px at 100% 0%, rgba(16, 185, 129, 0.1), transparent 70%);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s linear 0.25s;
}

.nav.is-open {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

.nav-list {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  border-radius: var(--r-m);
  color: var(--c-title);
  font: 700 1.0625rem/1.3 var(--font-display);
  text-decoration: none;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.nav-list a::after {
  content: "";
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.35;
}

.nav-list a:hover { background: var(--c-surface-3); color: var(--green-800); }

.nav__cta { width: 100%; }

.nav__langs {
  padding: 16px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-l);
  background: var(--c-surface-2);
}

.nav__langs-title {
  margin: 0 0 10px;
  color: var(--c-text-muted);
  font: 700 0.75rem/1.2 var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lang-pills {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lang-pills a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 8px 12px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-m);
  background: var(--c-surface);
  color: var(--c-title);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.lang-pills a:hover { border-color: var(--green-400); box-shadow: var(--shadow-xs); }

.lang-pills a[aria-current="page"] {
  border-color: var(--green-600);
  background: var(--green-50);
  box-shadow: inset 0 0 0 1px var(--green-600);
}

.lang-pills .lang-code,
.lang__menu .lang-code {
  margin-left: auto;
  color: var(--c-text-muted);
  font: 700 0.75rem/1 var(--font-display);
}

/* Language dropdown (desktop + compact on mobile) */
.lang { position: relative; }

.lang summary {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-pill);
  background: var(--c-surface);
  color: var(--c-title);
  font: 700 0.875rem/1 var(--font-display);
  list-style: none;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover,
.lang[open] summary { border-color: var(--green-400); box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.14); }

.lang .flag { width: 20px; height: 14px; }
.icon--chevron { width: 16px; height: 16px; transition: transform 0.2s var(--ease); }
.lang[open] .icon--chevron { transform: rotate(180deg); }

.lang__menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 110;
  width: 220px;
  margin: 0;
  padding: 6px;
  list-style: none;
  border: 1px solid var(--c-border);
  border-radius: var(--r-l);
  background: var(--c-surface);
  box-shadow: var(--shadow-l);
  animation: pop-in 0.18s var(--ease);
}

.lang__menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--r-s);
  color: var(--c-title);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
}

.lang__menu a:hover { background: var(--c-surface-3); color: var(--green-800); }
.lang__menu a[aria-current="page"] { background: var(--green-50); color: var(--green-800); }

@keyframes pop-in {
  from { opacity: 0; transform: translateY(-6px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.header-inner .header-cta { display: none; }

/* Burger */
.nav-toggle {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  padding: 0;
  border: 0;
  border-radius: var(--r-m);
  background: var(--g-cta);
  box-shadow: var(--glow-green);
  cursor: pointer;
}

.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.25s var(--ease), background-color 0.2s;
}

.nav-toggle__bar { position: relative; }
.nav-toggle__bar::before,
.nav-toggle__bar::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bar::before { top: -6px; }
.nav-toggle__bar::after { top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 379px) {
  .lang__current { display: none; }
  .logo { font-size: 1.2rem; }
}

@media (min-width: 560px) {
  .header-inner .header-cta { display: inline-flex; }
}

@media (min-width: 1180px) {
  .header-inner { gap: 16px; }

  .nav {
    position: static;
    flex-direction: row;
    align-items: center;
    padding: 0;
    overflow: visible;
    background: none;
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: none;
  }

  .nav-list { display: flex; gap: 2px; }

  .nav-list a {
    padding: 8px 12px;
    border-radius: var(--r-pill);
    color: var(--c-text);
    font-size: 0.9375rem;
    font-weight: 700;
  }

  .nav-list a::after { display: none; }
  .nav-list a:hover { background: var(--green-50); }

  .nav .nav__cta,
  .nav__langs,
  .nav-toggle { display: none; }
}

/* 5. Buttons & small components
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border: 0;
  border-radius: var(--r-pill);
  font: 700 0.9375rem/1.2 var(--font-display);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
}

.btn:active { transform: translateY(1px) scale(0.99); }

.btn--cta {
  background: var(--g-cta);
  color: #fff;
  box-shadow: var(--glow-green), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.btn--cta:hover {
  background: var(--g-cta-hover);
  color: #fff;
  box-shadow: 0 14px 34px rgba(4, 120, 87, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.btn--cta .icon { transition: transform 0.2s var(--ease); }
.btn--cta:hover .icon { transform: translateX(3px); }

.btn--ghost {
  border: 1.5px solid var(--c-border-strong);
  background: var(--c-surface);
  color: var(--green-800);
}

.btn--ghost:hover { border-color: var(--green-600); background: var(--green-50); color: var(--green-900); }

.btn--light {
  background: linear-gradient(135deg, #ffffff 0%, var(--lime-200) 100%);
  color: var(--green-900);
  box-shadow: 0 10px 26px rgba(2, 44, 34, 0.35);
}

.btn--light:hover { color: var(--green-950); transform: translateY(-1px); box-shadow: 0 14px 30px rgba(2, 44, 34, 0.45); }

.btn--sm { min-height: 40px; padding: 8px 16px; font-size: 0.875rem; }
.btn--lg { min-height: 52px; padding: 14px 26px; font-size: 1rem; }
.btn--block { display: flex; width: 100%; }

.link-btn {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.small-print {
  margin: 12px 0 0;
  color: var(--c-text-muted);
  font-size: 0.75rem;
  line-height: 1.5;
}

.icon-badge {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: var(--r-m);
  background: var(--g-mint);
  color: var(--green-700);
  box-shadow: inset 0 0 0 1px var(--green-100);
}

.icon-badge .icon { width: 22px; height: 22px; }

/* 6. Hero, author byline & bonus card
   ========================================================================== */
.hero { padding-block: clamp(20px, 4vw, 40px) clamp(28px, 5vw, 56px); }

.byline {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 0 auto clamp(24px, 4vw, 40px);
  text-align: center;
}

.byline__card {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 20px 6px 6px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-pill);
  background: var(--c-surface);
  box-shadow: var(--shadow-s);
  text-align: left;
}

.byline__avatar,
.author__avatar {
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 50%;
  background: var(--g-deep);
  color: #fff;
  font: 800 1rem/1 var(--font-display);
  box-shadow: 0 0 0 3px var(--c-surface), 0 0 0 5px var(--green-200);
}

.byline__avatar { width: 44px; height: 44px; }

.byline__text { display: flex; flex-direction: column; line-height: 1.25; }

.byline__label {
  color: var(--c-text-muted);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.byline__name { color: var(--c-title); font: 800 1.0625rem/1.25 var(--font-display); }

.byline__date { margin: 0; color: var(--c-text-muted); font-size: 0.8125rem; }

.hero__grid {
  display: grid;
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
}

.hero__content > p { color: var(--c-text-secondary); font-size: 1.0625rem; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 20px;
}

.hero__actions .btn { flex: 1 1 240px; }

.check-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--c-title);
  font-weight: 600;
  font-size: 0.9375rem;
}

.check-list .icon {
  width: 22px;
  height: 22px;
  padding: 4px;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-700);
  stroke-width: 3;
}

@media (min-width: 560px) {
  .check-list { grid-template-columns: 1fr 1fr; }
}

.bonus-card {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 3vw, 30px);
  border-radius: var(--r-xl);
  background: var(--g-deep);
  color: #e7f8ef;
  box-shadow: var(--shadow-l);
  isolation: isolate;
}

.bonus-card::before,
.bonus-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}

.bonus-card::before {
  width: 320px;
  height: 320px;
  top: -140px;
  right: -110px;
  background: radial-gradient(circle, rgba(163, 230, 53, 0.4), transparent 65%);
}

.bonus-card::after {
  width: 260px;
  height: 260px;
  bottom: -120px;
  left: -90px;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.35), transparent 65%);
}

.bonus-card__label {
  display: inline-block;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.14);
  color: var(--lime-200);
  font: 700 0.6875rem/1.2 var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bonus-card__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 8px;
  color: #fff;
  font: 700 1rem/1.2 var(--font-display);
}

.bonus-card__amount {
  margin: 0 0 6px;
  color: #fff;
  font: 800 clamp(2rem, 1.5rem + 2vw, 2.6rem)/1.1 var(--font-display);
  letter-spacing: -0.03em;
}

.bonus-card__amount span {
  display: block;
  margin-top: 4px;
  color: var(--lime-200);
  font-size: 0.6em;
  letter-spacing: -0.01em;
}

.bonus-card__sub { margin: 0 0 18px; color: #c4ead6; font-size: 0.9375rem; }

.bonus-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0 0 20px;
}

.bonus-facts div {
  padding: 10px 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--r-m);
  background: rgba(255, 255, 255, 0.08);
  text-align: center;
}

.bonus-facts dt { color: #b5e3cb; font-size: 0.6875rem; line-height: 1.3; }
.bonus-facts dd { margin: 4px 0 0; color: #fff; font: 800 0.9375rem/1.2 var(--font-display); }

.bonus-card .small-print { color: #b5e3cb; text-align: center; }

@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr) 400px; }
  .bonus-card { position: sticky; top: calc(var(--header-h) + 20px); }
}

/* 7. Stats
   ========================================================================== */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stat {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-l);
  background: var(--c-surface);
  box-shadow: var(--shadow-xs);
}

.stat__value {
  display: block;
  color: var(--c-title);
  font: 800 1.35rem/1.1 var(--font-display);
  letter-spacing: -0.02em;
}

.stat__label { display: block; color: var(--c-text-muted); font-size: 0.8125rem; line-height: 1.35; }

@media (max-width: 419px) {
  .stat { flex-direction: column; align-items: flex-start; }
}

@media (min-width: 900px) {
  .stats { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .stat { padding: 20px; }
}

/* 8. Article layout & content
   ========================================================================== */
.layout {
  display: grid;
  gap: 24px;
  padding-bottom: clamp(48px, 7vw, 88px);
}

.sidebar { min-width: 0; }

.toc {
  border: 1px solid var(--c-border);
  border-radius: var(--r-l);
  background: var(--c-surface-2);
}

.toc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  color: var(--c-title);
  font: 800 1rem/1.3 var(--font-display);
  list-style: none;
  cursor: pointer;
}

.toc summary::-webkit-details-marker { display: none; }
.toc summary .icon { transition: transform 0.2s var(--ease); }
.toc[open] summary .icon { transform: rotate(180deg); }

.toc ol {
  margin: 0;
  padding: 0 10px 12px;
  list-style: none;
  counter-reset: toc;
}

.toc li { counter-increment: toc; }

.toc li a {
  display: flex;
  gap: 10px;
  padding: 7px 10px;
  border-radius: var(--r-s);
  color: var(--c-text-secondary);
  font-size: 0.875rem;
  line-height: 1.4;
  text-decoration: none;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.toc li a::before {
  content: counter(toc, decimal-leading-zero);
  flex: none;
  color: var(--green-600);
  font: 700 0.75rem/1.9 var(--font-display);
}

.toc li a:hover,
.toc li a.is-active { background: var(--c-surface); color: var(--green-800); box-shadow: var(--shadow-xs); }

.side-offer { display: none; }

@media (min-width: 1024px) {
  .layout {
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 48px;
    align-items: start;
  }

  .sidebar {
    position: sticky;
    top: calc(var(--header-h) + 20px);
    display: grid;
    gap: 16px;
    max-height: calc(100vh - var(--header-h) - 40px);
    overflow-y: auto;
    scrollbar-width: thin;
  }

  .toc summary { pointer-events: none; }
  .toc summary .icon { display: none; }

  .side-offer {
    display: block;
    padding: 20px;
    border-radius: var(--r-l);
    background: var(--g-mint);
    box-shadow: inset 0 0 0 1px var(--green-100);
  }

  .side-offer p { margin: 0 0 14px; color: var(--c-title); font: 800 1.15rem/1.3 var(--font-display); }
  .side-offer .text-gradient { display: block; }
}

.content { min-width: 0; font-size: 1.0313rem; }

.content-section + .content-section,
.cta-row + .content-section,
.final-cta + .content-section { margin-top: clamp(40px, 5vw, 56px); }

.content h2 {
  position: relative;
  padding-top: 18px;
}

.content h2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 48px;
  height: 4px;
  border-radius: 4px;
  background: var(--g-bar);
}

.content h3 { margin-top: 1.8em; }

.content ul.ticks {
  display: grid;
  gap: 8px;
  margin: 0 0 1.4em;
  padding: 0;
  list-style: none;
}

.content ul.ticks li {
  position: relative;
  padding-left: 30px;
}

.content ul.ticks li::before {
  content: "";
  position: absolute;
  top: 0.42em;
  left: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--green-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23047857' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
}

.steps {
  display: grid;
  gap: 10px;
  margin: 0 0 1.4em;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 14px 16px 14px 60px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-m);
  background: var(--c-surface-2);
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  top: 12px;
  left: 14px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--g-cta);
  color: #fff;
  font: 800 0.9375rem/1 var(--font-display);
}

/* Tables */
.table-wrap {
  margin: 0 0 1.6em;
  overflow-x: auto;
  border: 1px solid var(--c-border);
  border-radius: var(--r-l);
  background: var(--c-surface);
  box-shadow: var(--shadow-xs);
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.data-table th,
.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--c-border);
  text-align: left;
  vertical-align: top;
}

.data-table thead th {
  background: var(--g-deep);
  color: #fff;
  font: 700 0.8125rem/1.35 var(--font-display);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.data-table tbody th { color: var(--c-title); font-weight: 600; }
.data-table tbody tr:nth-child(even) { background: var(--c-surface-2); }
.data-table tbody tr:last-child > * { border-bottom: 0; }
.data-table tbody tr:hover { background: var(--green-50); }

.data-table--kv tbody th { width: 38%; }
.data-table--wide { min-width: 640px; }

@media (max-width: 559px) {
  .data-table { font-size: 0.875rem; }
  .data-table th,
  .data-table td { padding: 10px 12px; }
  .data-table:not(.data-table--wide) { min-width: 420px; }
}

.cta-row {
  display: flex;
  justify-content: center;
  margin: clamp(28px, 4vw, 40px) 0 0;
  padding: clamp(18px, 3vw, 24px);
  border-radius: var(--r-xl);
  background: var(--g-mint);
  box-shadow: inset 0 0 0 1px var(--green-100);
}

.cta-row .btn { width: 100%; max-width: 440px; }

/* 9. FAQ, final CTA & author
   ========================================================================== */
.final-cta {
  position: relative;
  overflow: hidden;
  margin-top: clamp(40px, 5vw, 56px);
  padding: clamp(28px, 5vw, 44px) clamp(20px, 4vw, 40px);
  border-radius: var(--r-xl);
  background: var(--g-deep);
  text-align: center;
  isolation: isolate;
}

.final-cta::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  z-index: -1;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(163, 230, 53, 0.35), transparent 65%);
}

.final-cta__title {
  margin: 0 0 20px;
  color: #fff;
  font: 800 clamp(1.35rem, 1rem + 1.6vw, 2rem)/1.25 var(--font-display);
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.final-cta__title .text-gradient {
  background: linear-gradient(100deg, var(--lime-200), var(--green-200));
  -webkit-background-clip: text;
  background-clip: text;
}

.final-cta .btn--cta { background: linear-gradient(135deg, #ffffff, var(--lime-200)); color: var(--green-900); }
.final-cta .btn--cta:hover { color: var(--green-950); }
.final-cta .small-print { color: #b5e3cb; }

.faq { display: grid; gap: 10px; }

.faq__item {
  border: 1px solid var(--c-border);
  border-radius: var(--r-l);
  background: var(--c-surface);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.faq__item[open] { border-color: var(--green-300); box-shadow: var(--shadow-s); }

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  color: var(--c-title);
  font: 700 1rem/1.4 var(--font-display);
  list-style: none;
  cursor: pointer;
}

.faq__item summary::-webkit-details-marker { display: none; }

.faq__item summary .icon {
  width: 28px;
  height: 28px;
  padding: 5px;
  border-radius: 50%;
  background: var(--green-50);
  color: var(--green-700);
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease);
}

.faq__item[open] summary .icon { transform: rotate(180deg); background: var(--green-100); }

.faq__answer { padding: 0 20px 18px; color: var(--c-text-secondary); }
.faq__answer > :last-child { margin-bottom: 0; }

.author {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: clamp(40px, 5vw, 56px);
  padding: 22px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  background: var(--c-surface-2);
}

.author__avatar { width: 64px; height: 64px; font-size: 1.25rem; }
.author__label { margin: 0; color: var(--c-text-muted); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.author__name { margin: 0; color: var(--c-title); font: 800 1.2rem/1.3 var(--font-display); }
.author__bio { margin: 4px 0 0; color: var(--c-text-secondary); font-size: 0.9375rem; line-height: 1.55; }

@media (max-width: 479px) {
  .author { flex-direction: column; text-align: center; }
}

/* 10. Footer
   ========================================================================== */
.site-footer {
  position: relative;
  padding-top: clamp(44px, 6vw, 72px);
  background: linear-gradient(180deg, var(--green-950) 0%, #03241c 100%);
  color: #b9d6c7;
  font-size: 0.9375rem;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--g-bar);
}

.site-footer a { color: #e3f5ec; }
.site-footer a:hover { color: var(--lime-200); }

.footer-grid {
  display: grid;
  gap: 32px;
}

.logo--light,
.logo--light:hover { color: #fff; }

.logo--light .text-gradient {
  background: linear-gradient(100deg, var(--green-300), var(--lime-400));
  -webkit-background-clip: text;
  background-clip: text;
}

.footer-about p { margin: 16px 0; }

.rg-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rg-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-pill);
  color: #e3f5ec;
  font-size: 0.8125rem;
  font-weight: 600;
}

.rg-badge .icon { width: 22px; height: 22px; padding: 3px; color: var(--green-300); }

.footer-title {
  margin: 0 0 14px;
  color: #fff;
  font: 800 0.8125rem/1.3 var(--font-display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-title--spaced { margin-top: 28px; }

.footer-links {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a,
.footer-links .link-btn { color: #b9d6c7; text-decoration: none; }
.footer-links a:hover,
.footer-links .link-btn:hover { color: var(--lime-200); text-decoration: underline; }
.footer-links a[aria-current="page"] { color: #fff; font-weight: 700; }

.footer-langs a { display: inline-flex; align-items: center; gap: 10px; }
.footer-langs .flag { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2); }

.footer-legal {
  margin-top: clamp(32px, 5vw, 48px);
  padding: 24px 0 calc(28px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #8fb3a1;
  font-size: 0.8125rem;
  line-height: 1.6;
}

.footer-legal strong { color: #e3f5ec; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 18px;
  color: #b9d6c7;
}

@media (min-width: 640px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}

@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
  .footer-about { grid-column: auto; }
}

/* 11. Sticky CTA & cookie banner
   ========================================================================== */
.sticky-cta {
  position: fixed;
  inset: auto 10px calc(10px + env(safe-area-inset-bottom));
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 8px 10px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-l);
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-l);
  transform: translateY(150%);
  transition: transform 0.35s var(--ease);
}

.sticky-cta.is-visible { transform: none; }

.sticky-cta__text {
  flex: 1;
  margin: 0;
  color: var(--c-title);
  font: 800 0.875rem/1.25 var(--font-display);
}

.sticky-cta__text small { display: block; color: var(--c-text-muted); font: 500 0.6875rem/1.4 var(--font); }

body.has-sticky-cta { padding-bottom: 84px; }

@media (min-width: 1024px) {
  .sticky-cta { display: none; }
  body.has-sticky-cta { padding-bottom: 0; }
}

.cookie-banner {
  position: fixed;
  inset: auto 12px calc(12px + env(safe-area-inset-bottom));
  z-index: 150;
  max-width: 440px;
  padding: 20px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  background: var(--c-surface);
  box-shadow: var(--shadow-l);
  font-size: 0.875rem;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.cookie-banner.is-visible { opacity: 1; transform: none; }

.cookie-banner__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  color: var(--c-title);
  font: 800 1rem/1.3 var(--font-display);
}

.cookie-banner__title .icon { color: var(--green-700); }

.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie-banner__actions .btn { flex: 1 1 140px; }

@media (min-width: 560px) {
  .cookie-banner { left: auto; right: 20px; bottom: 20px; }
}

/* 12. Legal pages
   ========================================================================== */
.page-hero {
  padding-block: clamp(28px, 5vw, 56px);
  background: var(--g-mint);
  border-bottom: 1px solid var(--c-border);
}

.page-hero__lead { max-width: 720px; color: var(--c-text-secondary); font-size: 1.0625rem; }

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
}

.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--c-text-muted); }
.breadcrumb [aria-current] { color: var(--c-text-muted); }

.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-meta li {
  padding: 4px 12px;
  border: 1px solid var(--c-border-strong);
  border-radius: var(--r-pill);
  background: var(--c-surface);
  color: var(--c-text-secondary);
  font-size: 0.8125rem;
}

.legal-layout {
  display: grid;
  gap: 28px;
  padding-block: clamp(28px, 5vw, 56px) clamp(48px, 7vw, 88px);
}

.toc--legal { padding: 16px 10px 6px; }

.toc__title {
  margin: 0 10px 8px;
  color: var(--c-title);
  font: 800 1rem/1.3 var(--font-display);
}

.prose { min-width: 0; }
.prose section + section { margin-top: 36px; }
.prose ul,
.prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: var(--green-600); }

.prose address {
  padding: 16px 20px;
  border-left: 4px solid var(--green-500);
  border-radius: var(--r-s);
  background: var(--c-surface-2);
  font-style: normal;
}

.callout {
  display: flex;
  gap: 12px;
  margin: 0 0 1.4em;
  padding: 16px 18px;
  border: 1px solid var(--green-200);
  border-radius: var(--r-l);
  background: var(--green-50);
}

.callout .icon { margin-top: 3px; color: var(--green-700); }
.callout p:last-child { margin-bottom: 0; }

.callout--warning { border-color: #fde68a; background: #fffbeb; }
.callout--warning .icon { color: #b45309; }

.tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: var(--r-pill);
  background: var(--c-surface-3);
  color: var(--c-text-secondary);
  font-size: 0.75rem;
  font-weight: 700;
}

.tag--success { background: var(--green-100); color: var(--green-800); }

@media (min-width: 1024px) {
  .legal-layout { grid-template-columns: 270px minmax(0, 760px); gap: 56px; align-items: start; }
  .legal-layout .toc { position: sticky; top: calc(var(--header-h) + 20px); }
}

/* 13. Motion preferences
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
