/* ============================================================
   SiteButcher v2.4 — generated stylesheet (block system)
   Style preset: Tuxedo Noir
   Brand: LeoVegas
   ============================================================ */


/* === _base/styles/_variables.css.j2 === */

/* ============================================================
   CSS variables — generated from palette + style preset
   ============================================================ */
:root {
  /* Colors from palette */
  --primary:       #c0c0c0;
  --accent:        #e10600;
  --bg:            #000000;
  --bg-elev:       #0c0c0c;
  --text:          #f5f5f5;
  --text-muted:    #7a7a7a;
  --border:        #363636;
  --primary-rgb:   192, 192, 192;
  --accent-rgb:    225, 6, 0;
  --bg-rgb:        0, 0, 0;

  /* Typography */
  --font-heading:  'Bodoni Moda', Georgia, serif;
  --font-body:     'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Radii */
  --radius-sm:   6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  32px;

  /* Shadows */
  --shadow-sm:   0 2px 8px rgba(0,0,0,0.15);
  --shadow-md:   0 8px 24px rgba(0,0,0,0.25);
  --shadow-lg:   0 24px 60px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 32px rgba(var(--accent-rgb), 0.35);

  /* Transitions */
  --tr-fast:  0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --tr-base:  0.3s  cubic-bezier(0.4, 0, 0.2, 1);
  --tr-slow:  0.6s  cubic-bezier(0.16, 1, 0.3, 1);

  /* Spacing scale */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-5:  1.5rem;
  --sp-6:  2rem;
  --sp-8:  3rem;
  --sp-10: 4rem;
  --sp-12: 6rem;

  /* Section vertical rhythm — legacy used 60-120px; clamped 48-80px gives 96-160px gaps */
  --section-pad-y: clamp(3rem, 7vw, 5rem);
}

/* === _base/styles/_reset.css.j2 === */

/* ============================================================
   Reset
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, video, picture { max-width: 100%; height: auto; display: block; }
svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { padding: 0; margin: 0; list-style: none; }
table { border-collapse: collapse; width: 100%; }
input, select, textarea { font: inherit; color: inherit; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body.site-body {
  font-family: var(--font-body);
  /* Subtle dotted-grid texture overlay — adds tactile depth so bg isn't dead-flat.
     Two layers: small dots at 28px grid + var(--bg) base. Opacity 0.025 = nearly invisible
     but materially changes how "dead" the bg reads. */
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.022) 1px, transparent 1.2px) 0 0 / 28px 28px,
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(var(--accent-rgb), 0.06) 0%, transparent 60%),
    var(--bg);
  background-attachment: fixed, fixed, fixed;
  color: var(--text);
  line-height: 1.65;
  font-size: 17px;
  font-feature-settings: 'kern', 'liga', 'calt';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Selection */
::selection {
  background: rgba(var(--accent-rgb), 0.35);
  color: var(--text);
}

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* RTL refinements */
[dir="rtl"] {
  letter-spacing: 0;
}

/* === _base/styles/_typography.css.j2 === */

/* ============================================================
   Typography
   ============================================================ */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  color: var(--text);
  line-height: 1.15;
  margin: 0 0 var(--sp-3);
  font-weight: 700;
  letter-spacing: -0.01em;
  /* Universal safety: heading content can include monospace fonts
     (matrix_terminal, vhs_distorted), long unbreakable tokens
     (initialize_888.exe, > sudo grant_vip), or compound words that
     exceed container width. Force them to wrap rather than overflow. */
  word-break: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
  max-width: 100%;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.6rem); }
h4 { font-size: clamp(1.05rem, 2.4vw, 1.25rem); }

p, li {
  line-height: 1.75;
  color: var(--text);
  margin: 0 0 1em;
}
p:last-child, li:last-child { margin-bottom: 0; }

strong, b {
  color: var(--text);
  font-weight: 700;
  text-shadow: 0 0 14px rgba(var(--primary-rgb), 0.5);
}
em, i { font-style: italic; }

small { font-size: 0.85em; color: var(--text-muted); }

a {
  color: var(--primary);
  transition: color var(--tr-fast);
}
a:hover { color: var(--text); }

/* Inline prose lists */
.prose ul, .prose ol {
  margin: 0 0 1em;
  padding-inline-start: 1.5em;
}
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose ul li, .prose ol li { display: list-item; }
.prose blockquote {
  margin: 1em 0;
  padding-inline-start: 1.5em;
  border-inline-start: 3px solid var(--accent);
  font-style: italic;
  color: var(--text-muted);
}
.prose hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2em 0;
}
.prose code {
  background: var(--bg-elev);
  padding: 0.1em 0.4em;
  border-radius: var(--radius-sm);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.9em;
}

/* ============================================================
   DESIGN DNA — applies universally to all 30+ styles via vars
   ============================================================ */

/* Section title eyebrow: gradient bar (60×4px) above every H2.
   This is the small "—" line that makes every section feel intentional. */
.section-title,
.fcta-headline {
  position: relative;
  text-align: center;
}
.section-title::before,
.fcta-headline::before {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  margin: 0 auto var(--sp-4);
  border-radius: 2px;
}

/* Left-aligned heading variants (text_image, hero, faq) — bar left-aligned */
.ti-heading,
.fcta-headline,
.hero-headline {
  position: relative;
}
.ti-heading::before,
.hero-headline::before {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  margin-bottom: var(--sp-4);
  border-radius: 2px;
}
[dir="rtl"] .ti-heading::before,
[dir="rtl"] .hero-headline::before {
  margin-inline: 0 auto 0 0; /* keep on the right */
}

/* Hero headline — gradient text + colored drop-shadow glow.
   Only applies on hero_split where bg is solid (works visually).
   On hero_fullbleed text sits on image — text-shadow is used instead. */
.block-hero_split .hero-headline {
  background: linear-gradient(135deg, var(--text) 35%, var(--primary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 4px 24px rgba(var(--primary-rgb), 0.35));
  /* The ::before bar still uses solid color because pseudo-elements don't
     inherit background-clip:text. It stays visible. */
}

/* Bigger, more cinematic h1 + h2 — premium feel */
h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem,  4.5vw, 3.2rem); letter-spacing: -0.015em; }

/* === _base/styles/_container.css.j2 === */

/* ============================================================
   Container + responsive helpers
   ============================================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

.container-sm { max-width: 720px; }
.container-md { max-width: 960px; }
.container-lg { max-width: 1440px; }

/* Block wrapper — every block uses this for consistent vertical rhythm */
.block-section {
  padding-block: var(--section-pad-y);
  position: relative;
}

.block-section--tight { padding-block: clamp(2rem, 5vw, 3.5rem); }
.block-section--loose { padding-block: clamp(4rem, 10vw, 8rem); }

/* ============================================================
   SECTION RHYTHM — alternating backgrounds + top accent
   Goal: every section visually distinct, not just every other one.
   ============================================================ */

/* Even sections — subtle tinted lift (more visible than before) */
.block-section:nth-of-type(even) {
  background:
    linear-gradient(180deg,
      rgba(var(--primary-rgb), 0.04) 0%,
      rgba(var(--primary-rgb), 0.10) 50%,
      rgba(var(--primary-rgb), 0.04) 100%
    );
}

/* Odd sections — subtle accent-tinted lift (different from even, slightly less bright) */
.block-section:nth-of-type(odd):not(:first-of-type) {
  background:
    linear-gradient(180deg,
      transparent 0%,
      rgba(var(--accent-rgb), 0.04) 50%,
      transparent 100%
    );
}

/* Section dividers — gradient line between adjacent sections */
.block-section + .block-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(220px, 36vw, 420px);
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(var(--accent-rgb), 0.30) 30%,
    rgba(var(--primary-rgb), 0.50) 50%,
    rgba(var(--accent-rgb), 0.30) 70%,
    transparent
  );
  pointer-events: none;
  opacity: 0.85;
}

/* ============================================================
   POST-HERO TIGHTENING — avoid "dead zone" between hero fade-out
   and the first content section. Hero already fades into var(--bg),
   so the section right after it doesn't need full --section-pad-y top.
   ============================================================ */
.block-hero_fullbleed + .block-section,
.block-hero_split + .block-section,
.block-hero_minimal + .block-section {
  padding-top: clamp(1.5rem, 4vw, 2.5rem);
}

/* final_cta typically has heavy bottom padding; footer follows.
   Trim final_cta bottom padding so footer hugs it close. */
.block-final_cta {
  padding-bottom: clamp(2.5rem, 6vw, 4rem) !important;
}
.block-final_cta + .block-footer {
  margin-top: 0 !important;
}

/* Section heading helper — used by most blocks */
.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: var(--sp-3);
  font-weight: 600;
}

.section-title {
  text-align: center;
  margin-bottom: var(--sp-3);
}
.section-intro {
  max-width: 720px;
  margin: 0 auto var(--sp-8);
  text-align: center;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Responsive helpers */
.hide-mobile { display: initial; }
.hide-desktop { display: none; }

@media (max-width: 768px) {
  .hide-mobile { display: none; }
  .hide-desktop { display: initial; }
}

/* === _base/styles/_structural.css.j2 === */

/* ============================================================
   Structural rules that apply to blocks by their SEMANTIC role,
   not by a specific block-id class — so new block variants pick
   them up automatically without per-variant CSS.
   ============================================================ */

/* Sticky footer: make .site-main a full-height column so a short page
   (e.g. a legal/about sub-page with little content) still pushes its footer
   to the bottom of the viewport instead of leaving a gap below it. On long
   pages this is a no-op (content already exceeds the viewport). */
.site-main {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.site-main > footer,
.site-main > footer[class*="block-footer"] {
  margin-top: auto;
}

/* T21.4: every header block uses the <header> tag. Make ALL of them sticky to
   the top on scroll (the original header_classic behavior), so any NEW header
   variant added in the future is sticky automatically — no per-variant CSS
   needed. A solid dark backing keeps content from showing through while pinned.
   Individual header variants may still override background/blur as needed. */
.site-main > header,
.site-main header.block-header,
.site-main header[class*="block-header"] {
  position: sticky;
  top: 0;
  z-index: 100;
}

/* === _base/styles/_cta.css.j2 === */

/* ============================================================
   CTA buttons — shared across all blocks
   Legacy design DNA: triple-layered shadow + inset highlight + colored glow
   ============================================================ */
.cta {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-6);
  background: linear-gradient(135deg, var(--primary), rgba(var(--primary-rgb), 0.85));
  color: var(--bg);
  font-weight: 600;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  transition: transform var(--tr-fast), box-shadow var(--tr-base);
  /* THREE shadows layered: depth + glass-highlight + colored halo */
  box-shadow:
    var(--shadow-md),
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 0 32px rgba(var(--primary-rgb), 0.40);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow:
    var(--shadow-lg),
    inset 0 1px 0 rgba(255, 255, 255, 0.30),
    0 0 56px rgba(var(--primary-rgb), 0.65);
  color: var(--bg);
}

.cta:active {
  transform: translateY(0);
}

/* Size variants */
.cta-sm {
  padding: 0.6rem 1.2rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.cta-md {
  padding: 0.85rem 1.8rem;
  font-size: 0.95rem;
}

.cta-lg {
  padding: 1.1rem 2.4rem;
  font-size: 1.1rem;
  border-radius: var(--radius-lg);
}

.cta-xl {
  padding: 1.3rem 3rem;
  font-size: 1.25rem;
  border-radius: var(--radius-lg);
  font-weight: 700;
}

/* Color variants */
.cta-primary {
  background: linear-gradient(135deg, var(--primary), rgba(var(--primary-rgb), 0.85));
}

/* Accent variant — for secondary heroes or feature CTAs */
.cta-accent {
  background: linear-gradient(135deg, var(--accent), rgba(var(--accent-rgb), 0.85));
  box-shadow:
    var(--shadow-md),
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 0 32px rgba(var(--accent-rgb), 0.40);
}
.cta-accent:hover {
  box-shadow:
    var(--shadow-lg),
    inset 0 1px 0 rgba(255, 255, 255, 0.30),
    0 0 56px rgba(var(--accent-rgb), 0.65);
}

.cta-secondary {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
  box-shadow: none;
}
.cta-secondary:hover {
  background: var(--bg-elev);
  border-color: var(--accent);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.cta-ghost {
  background: transparent;
  color: var(--primary);
  box-shadow: none;
  padding-inline: 0;
}
.cta-ghost:hover {
  color: var(--text);
  transform: none;
  box-shadow: none;
}

/* Arrow icon */
.cta-arrow {
  display: inline-block;
  transition: transform var(--tr-fast);
  font-size: 1.1em;
}
.cta:hover .cta-arrow {
  transform: translateX(4px);
}
[dir="rtl"] .cta:hover .cta-arrow {
  transform: translateX(-4px);
}

/* === blocks/_decor_bg.css.j2 === */

/* ============================================================
   T21.5 — Decorative background (global layer, variant б)
   The decor sits BEHIND all content (fixed, full-viewport, low z-index).
   Content sections get a semi-opaque --bg backing so text stays readable
   over the decor. Animation runs only in the upper "hero zone"; behind the
   long-form content the decor is dimmed and static for legibility.
   Honors prefers-reduced-motion (auto-static).
   ============================================================ */

/* The fixed background layer (sits below content, above the body base). */
/* The fixed background layer (sits below content, above the body base).
   width:100vw + centering ensures it spans the full viewport even though
   body has overflow-x:hidden (which otherwise clips the right edge). */
.decor-bg {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.decor-bg svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: var(--decor-opacity, 0.42);   /* dimmed a touch for text legibility */
}
/* Readability: give text that sits directly over the decor a subtle shadow so
   it stays crisp without putting an opaque veil behind each block (which would
   create the unwanted "carded" look). Only affects text in transparent blocks;
   blocks with their own bg are unaffected visually. */
.site-main { text-shadow: 0 1px 3px rgba(var(--bg-rgb), 0.55); }
.site-main .block-hero_fullbleed,
.site-main [class*="block-"] :where(h1,h2,h3) { text-shadow: 0 2px 6px rgba(var(--bg-rgb), 0.6); }
.decor-init {
  font-family: var(--font-heading, Georgia, serif);
  font-size: 50px; font-weight: 700;
  fill: rgba(var(--primary-rgb), 0.55);
}
.decor-init--mono { font-family: var(--font-mono, monospace); font-size: 46px; }
.decor-init--sm { font-size: 28px; fill: rgba(var(--primary-rgb), 0.4); }

/* T21.5 — decor is a layer BELOW the content. Blocks sit on top and cover it
   with their OWN existing backgrounds (faq/feature/stats have var(--bg-elev);
   hero_fullbleed has its image+overlay). Blocks with NO background (a hero with
   no image, empty halves) are transparent, so the decor shows through there —
   exactly where the "hole" would otherwise be. We do NOT force any per-section
   veils; each block decides via its native background. */
.site-main { position: relative; z-index: 1; }

/* The body keeps its native dotted-grid background. The fixed .decor-bg is a
   child of body painted ABOVE that base but BELOW .site-main content, so the
   decor shows through any block that has no opaque background of its own. */
.decor-bg { background: transparent; }

/* ---------------- Animations (live only) ----------------
   By default .is-static => no animation. .is-live => animate, but
   prefers-reduced-motion still forces static. */
@media (prefers-reduced-motion: no-preference) {
  .decor-bg.is-live .d-spin     { animation: decor-spin 60s linear infinite; }
  .decor-bg.is-live .d-spinslow { animation: decor-spin 120s linear infinite; }
  .decor-bg.is-live .d-breathe  { animation: decor-breathe 8s ease-in-out infinite; }
  .decor-bg.is-live .d-drift    { animation: decor-drift 7s ease-in-out infinite; }
  .decor-bg.is-live .d-drift2   { animation: decor-drift2 8s ease-in-out infinite; }
  .decor-bg.is-live .d-twinkle  { animation: decor-twinkle 4s ease-in-out infinite; }
  .decor-bg.is-live .d-wave1    { animation: decor-wave 9s ease-in-out infinite; }
  .decor-bg.is-live .d-wave2    { animation: decor-wave 11s ease-in-out infinite reverse; }
  .decor-bg.is-live .d-hzline   { animation: decor-travel 4s linear infinite; }
  .decor-bg.is-live .d-hexcell  { animation: decor-hexglow 4s ease-in-out infinite; }
  .decor-bg.is-live .d-trace    { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: decor-draw 5s ease-in-out infinite; }
  .decor-bg.is-live .d-node     { opacity: 0; animation: decor-nodeon 5s ease-in-out infinite; }
  /* dice: 6 stages over an 18s loop */
  .decor-bg.is-live .d-stage { opacity: 0; }
  .decor-bg.is-live .d-dtrail { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); }
  .decor-bg.is-live .d-dp { opacity: 0; transform-box: fill-box; transform-origin: center; }
  .decor-bg.is-live .d-st1 { animation: decor-dstage1 18s linear infinite; }
  .decor-bg.is-live .d-st2 { animation: decor-dstage2 18s linear infinite; }
  .decor-bg.is-live .d-st3 { animation: decor-dstage3 18s linear infinite; }
  .decor-bg.is-live .d-st4 { animation: decor-dstage4 18s linear infinite; }
  .decor-bg.is-live .d-st5 { animation: decor-dstage5 18s linear infinite; }
  .decor-bg.is-live .d-st6 { animation: decor-dstage6 18s linear infinite; }
  .decor-bg.is-live .d-st1 .d-dtrail, .decor-bg.is-live .d-st1 .d-dp { animation: decor-dtrail 18s linear infinite, decor-dpip 18s linear infinite; animation-delay: 0s; }
  .decor-bg.is-live .d-st2 .d-dtrail, .decor-bg.is-live .d-st2 .d-dp { animation: decor-dtrail 18s linear infinite, decor-dpip 18s linear infinite; animation-delay: 3s; }
  .decor-bg.is-live .d-st3 .d-dtrail, .decor-bg.is-live .d-st3 .d-dp { animation: decor-dtrail 18s linear infinite, decor-dpip 18s linear infinite; animation-delay: 6s; }
  .decor-bg.is-live .d-st4 .d-dtrail, .decor-bg.is-live .d-st4 .d-dp { animation: decor-dtrail 18s linear infinite, decor-dpip 18s linear infinite; animation-delay: 9s; }
  .decor-bg.is-live .d-st5 .d-dtrail, .decor-bg.is-live .d-st5 .d-dp { animation: decor-dtrail 18s linear infinite, decor-dpip 18s linear infinite; animation-delay: 12s; }
  .decor-bg.is-live .d-st6 .d-dtrail, .decor-bg.is-live .d-st6 .d-dp { animation: decor-dtrail 18s linear infinite, decor-dpip 18s linear infinite; animation-delay: 15s; }
}

@keyframes decor-spin { to { transform: rotate(360deg); } }
@keyframes decor-breathe { 0%,100% { opacity:.7; transform:scale(1);} 50% { opacity:1; transform:scale(1.02);} }
@keyframes decor-drift { 0%,100% { transform:translateY(0);} 50% { transform:translateY(-14px);} }
@keyframes decor-drift2 { 0%,100% { transform:translateY(0);} 50% { transform:translateY(12px);} }
@keyframes decor-twinkle { 0%,100% { opacity:.7;} 50% { opacity:1;} }
@keyframes decor-wave { 0%,100% { transform:translateX(0);} 50% { transform:translateX(-18px);} }
@keyframes decor-travel { 0% { transform:translateY(182px); opacity:0;} 10% { opacity:.6;} 100% { transform:translateY(440px); opacity:.15;} }
@keyframes decor-hexglow { 0%,100% { fill:rgba(var(--primary-rgb),0);} 50% { fill:rgba(var(--primary-rgb),0.12);} }
@keyframes decor-draw { 0% { stroke-dashoffset:var(--len);} 45%,65% { stroke-dashoffset:0;} 100% { stroke-dashoffset:var(--len);} }
@keyframes decor-nodeon { 0%,35% { opacity:0;} 50%,80% { opacity:1;} 100% { opacity:0;} }
@keyframes decor-dtrail { 0% { stroke-dashoffset:var(--len); opacity:.85;} 3% { opacity:.85;} 7% { stroke-dashoffset:0; opacity:.85;} 11% { opacity:0;} 100% { opacity:0;} }
@keyframes decor-dpip { 0% { opacity:0; transform:scale(0.3);} 7% { opacity:0; transform:scale(0.3);} 11% { opacity:1; transform:scale(1);} 100% { opacity:1;} }
/* dice stage visibility windows (6 stages over 18s = 16.66% each) */
@keyframes decor-dstage1 { 0%{opacity:0} 0.5%{opacity:1} 14.6%{opacity:1} 16.6%{opacity:0} 100%{opacity:0} }
@keyframes decor-dstage2 { 0%,16.6%{opacity:0} 17.1%{opacity:1} 31.3%{opacity:1} 33.3%{opacity:0} 100%{opacity:0} }
@keyframes decor-dstage3 { 0%,33.3%{opacity:0} 33.8%{opacity:1} 47.9%{opacity:1} 50%{opacity:0} 100%{opacity:0} }
@keyframes decor-dstage4 { 0%,50%{opacity:0} 50.5%{opacity:1} 64.6%{opacity:1} 66.6%{opacity:0} 100%{opacity:0} }
@keyframes decor-dstage5 { 0%,66.6%{opacity:0} 67.1%{opacity:1} 81.3%{opacity:1} 83.3%{opacity:0} 100%{opacity:0} }
@keyframes decor-dstage6 { 0%,83.3%{opacity:0} 83.8%{opacity:1} 97.9%{opacity:1} 100%{opacity:0} }

/* Static fallback: show dice face 3 so the die never looks empty */
.decor-bg.is-static .d-st3, .decor-bg.is-static .d-st3 .d-dp { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .decor-bg .d-st3, .decor-bg .d-st3 .d-dp { opacity: 1; }
}

@media (max-width: 700px) {
  /* on small screens dim further & disable heavy animation for perf */
  .decor-bg svg { opacity: 0.4; }
}

/* === blocks/_text_veil.css.j2 === */

/* ============================================================
   T21.6 — Text veil: readable backing under text on the 4
   background-less blocks (text_centered, text_image_left/right,
   quote_callout) when decor would otherwise bleed through.
   Activated ONLY when body[data-text-veil="1"] (smart default by decor
   composition, user-overridable). Look varies by data-style-category.
   Applied to the TEXT part only — images/decor around stay visible, so the
   page is NOT "carded", only the text gets a calm surface.
   ============================================================ */

/* Base veil (default look) — applied to the text containers of the 4 blocks. */
body[data-text-veil="1"] .block-text_centered .tc-content,
body[data-text-veil="1"] .block-quote_callout .quote-card,
body[data-text-veil="1"] .block-text_image_left .ti-text,
body[data-text-veil="1"] .block-text_image_right .ti-text {
  background: rgba(var(--bg-rgb), 0.86);
  border: 1px solid rgba(var(--primary-rgb), 0.18);
  border-radius: 10px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
  padding: clamp(24px, 4vw, 40px);
}
/* text_centered: keep the veil hugging the content, not the full 960px column */
body[data-text-veil="1"] .block-text_centered .tc-content {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

/* text_image: don't over-pad the text column; keep it tidy next to the image */
body[data-text-veil="1"] .block-text_image_left .ti-text,
body[data-text-veil="1"] .block-text_image_right .ti-text {
  padding: clamp(20px, 3vw, 32px);
}

/* ---- Per-category theming ---- */

/* luxury: near-square corners, thin gold rule, restrained shadow */
body[data-text-veil="1"][data-style-category="luxury"] .block-text_centered .tc-content,
body[data-text-veil="1"][data-style-category="luxury"] .block-quote_callout .quote-card,
body[data-text-veil="1"][data-style-category="luxury"] .block-text_image_left .ti-text,
body[data-text-veil="1"][data-style-category="luxury"] .block-text_image_right .ti-text {
  background: linear-gradient(160deg, rgba(var(--bg-rgb), 0.92), rgba(var(--bg-rgb), 0.82));
  border: 1px solid rgba(var(--primary-rgb), 0.25);
  border-radius: 4px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

/* neon / cyber: rounder, glowing border */
body[data-text-veil="1"][data-style-category="neon"] .block-text_centered .tc-content,
body[data-text-veil="1"][data-style-category="neon"] .block-quote_callout .quote-card,
body[data-text-veil="1"][data-style-category="neon"] .block-text_image_left .ti-text,
body[data-text-veil="1"][data-style-category="neon"] .block-text_image_right .ti-text,
body[data-text-veil="1"][data-style-category="cyber"] .block-text_centered .tc-content,
body[data-text-veil="1"][data-style-category="cyber"] .block-quote_callout .quote-card,
body[data-text-veil="1"][data-style-category="cyber"] .block-text_image_left .ti-text,
body[data-text-veil="1"][data-style-category="cyber"] .block-text_image_right .ti-text {
  background: rgba(var(--bg-rgb), 0.86);
  border: 1px solid rgba(var(--primary-rgb), 0.4);
  border-radius: 14px;
  box-shadow: 0 0 24px rgba(var(--primary-rgb), 0.15);
}

/* cultural / dramatic: medium radius, soft accent border */
body[data-text-veil="1"][data-style-category="cultural"] .block-text_centered .tc-content,
body[data-text-veil="1"][data-style-category="cultural"] .block-quote_callout .quote-card,
body[data-text-veil="1"][data-style-category="cultural"] .block-text_image_left .ti-text,
body[data-text-veil="1"][data-style-category="cultural"] .block-text_image_right .ti-text,
body[data-text-veil="1"][data-style-category="dramatic"] .block-text_centered .tc-content,
body[data-text-veil="1"][data-style-category="dramatic"] .block-quote_callout .quote-card,
body[data-text-veil="1"][data-style-category="dramatic"] .block-text_image_left .ti-text,
body[data-text-veil="1"][data-style-category="dramatic"] .block-text_image_right .ti-text {
  background: rgba(var(--bg-rgb), 0.88);
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  border-radius: 10px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}

/* minimalist: flat, almost no border, no shadow */
body[data-text-veil="1"][data-style-category="minimalist"] .block-text_centered .tc-content,
body[data-text-veil="1"][data-style-category="minimalist"] .block-quote_callout .quote-card,
body[data-text-veil="1"][data-style-category="minimalist"] .block-text_image_left .ti-text,
body[data-text-veil="1"][data-style-category="minimalist"] .block-text_image_right .ti-text {
  background: rgba(var(--bg-rgb), 0.9);
  border: none;
  border-radius: 6px;
  box-shadow: none;
}

/* retro / surreal / experimental: keep the default look (already defined). */

/* === block: header_minimal_cta === */

/* Block: header_minimal_cta — logo + big CTA */
.block-header-mcta {
  background: linear-gradient(180deg, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.62) 100%);
  backdrop-filter: blur(8px);
  padding-block: var(--sp-3);
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.08);
}
.block-header-mcta .hmcta-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-3);
}
.block-header-mcta .hmcta-brand {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  text-decoration: none; color: var(--text);
}
.block-header-mcta .hmcta-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  color: var(--bg); border-radius: var(--radius-md);
  font-family: var(--font-heading); font-weight: 800; font-size: 0.95rem;
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,0.2);
}
.block-header-mcta .hmcta-logo-img {
  width: 40px; height: 40px; border-radius: var(--radius-md);
  object-fit: cover; box-shadow: var(--shadow-sm);
}
.block-header-mcta .hmcta-name {
  font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700;
  color: var(--text); letter-spacing: -0.01em;
}
.block-header-mcta .hmcta-actions {
  display: inline-flex; align-items: center; gap: var(--sp-3);
}
.block-header-mcta .hmcta-bigcta {
  font-size: 0.95rem;
  padding: 12px 26px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
@media (max-width: 560px) {
  .block-header-mcta .hmcta-name { display: none; }
  .block-header-mcta .hmcta-bigcta { padding: 10px 18px; font-size: 0.85rem; }
}

/* T21.1: language dropdown (3+ languages) — shared across header variants */
.lang-dd { position: relative; display: inline-block; }
.lang-dd > .lang-dd-toggle {
  list-style: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px;
  font-size: 0.82rem; color: var(--text-muted);
  border: 1px solid rgba(var(--accent-rgb), 0.18);
  border-radius: var(--radius-sm);
  background: rgba(var(--accent-rgb), 0.04);
  transition: color var(--tr-fast), border-color var(--tr-fast);
  user-select: none;
}
.lang-dd > .lang-dd-toggle::-webkit-details-marker { display: none; }
.lang-dd > .lang-dd-toggle:hover { color: var(--primary); border-color: rgba(var(--accent-rgb), 0.35); }
.lang-dd .lang-dd-globe { font-size: 0.9rem; line-height: 1; }
.lang-dd .lang-dd-current { font-weight: 600; letter-spacing: 0.04em; }
.lang-dd .lang-dd-caret { font-size: 0.6rem; opacity: 0.7; transition: transform var(--tr-fast); }
.lang-dd[open] .lang-dd-caret { transform: rotate(180deg); }
.lang-dd .lang-dd-menu {
  position: absolute; inset-inline-end: 0; top: calc(100% + 6px);
  min-width: 160px; z-index: 50;
  display: flex; flex-direction: column;
  padding: 6px;
  background: var(--bg-elev);
  border: 1px solid rgba(var(--accent-rgb), 0.15);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md, 0 8px 28px rgba(0,0,0,0.35));
}
.lang-dd .lang-dd-item {
  display: block; padding: 7px 10px;
  font-size: 0.85rem; color: var(--text-muted);
  text-decoration: none; border-radius: var(--radius-sm);
  transition: background var(--tr-fast), color var(--tr-fast);
}
.lang-dd .lang-dd-item:hover { background: rgba(var(--accent-rgb), 0.08); color: var(--primary); }
.lang-dd .lang-dd-item.is-current { color: var(--primary); font-weight: 600; }

/* === block: hero_split === */

/* Block: hero_split */
.block-hero_split {
  position: relative;
  min-height: clamp(540px, 72vh, 720px);
  display: flex;
  align-items: center;
  padding-block: clamp(3rem, 7vw, 5.5rem);
  background:
    /* Reduced intensity — high-saturation accents (vhs/neon) were creating washes */
    radial-gradient(ellipse 50% 40% at top right, rgba(var(--accent-rgb), 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 40% 35% at bottom left, rgba(var(--primary-rgb), 0.06) 0%, transparent 55%),
    var(--bg);
  overflow: hidden;
}

.block-hero_split .hero-split-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
  width: 100%;
}

.block-hero_split .hero-headline {
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1.04;
  margin-bottom: var(--sp-4);
  letter-spacing: -0.02em;
}

.block-hero_split .hero-subhead {
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  /* primary is guaranteed bright (brief contract); accent can be dark */
  color: var(--primary);
  font-weight: 500;
  margin-bottom: var(--sp-5);
  letter-spacing: 0.01em;
}

.block-hero_split .hero-body {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: var(--sp-6);
}

.block-hero_split .hero-cta {
  margin-top: var(--sp-3);
}

.block-hero_split .hero-image {
  position: relative;
}

.block-hero_split .hero-image img {
  width: 100%;
  height: auto;
  /* Portrait aspect (4:5) feels more cinematic than 1:1 square */
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  /* Layered shadow + colored halo (legacy DNA) */
  box-shadow:
    var(--shadow-lg),
    0 0 80px rgba(var(--accent-rgb), 0.28),
    inset 0 1px 0 rgba(255,255,255,0.08);
  position: relative;
  z-index: 1;
}

.block-hero_split .hero-image-glow {
  position: absolute;
  inset: -30px;
  background:
    radial-gradient(ellipse at center, rgba(var(--accent-rgb), 0.35) 0%, transparent 65%);
  filter: blur(40px);
  z-index: 0;
}

@media (max-width: 880px) {
  .block-hero_split .hero-split-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-6);
  }
  .block-hero_split .hero-image img {
    /* On mobile, switch to landscape so it's not absurdly tall */
    aspect-ratio: 16 / 10;
    max-height: 360px;
  }
}

.block-hero_split .hero-image-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(ellipse at center, rgba(var(--accent-rgb), 0.30), transparent 70%);
  filter: blur(40px);
  z-index: 0;
}

@media (max-width: 880px) {
  .block-hero_split .hero-split-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-6);
  }
  .block-hero_split .hero-image { order: -1; max-width: 480px; margin: 0 auto; }
}

/* === block: games_carousel === */

/* Block: games_carousel */
.block-games_carousel .games-banner {
  position: relative;
  margin-bottom: var(--sp-8);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  max-height: 360px;
}

.block-games_carousel .games-banner img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 360px;
}

.block-games_carousel .games-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(var(--primary-rgb), 0.5) 100%);
  pointer-events: none;
}

.block-games_carousel .games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
}

.block-games_carousel .game-card {
  position: relative;
  padding: var(--sp-5);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: transform var(--tr-base), border-color var(--tr-base), box-shadow var(--tr-base);
  overflow: hidden;
}

.block-games_carousel .game-card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--accent-rgb), 0.5);
  box-shadow:
    var(--shadow-md),
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 0 32px rgba(var(--accent-rgb), 0.18);
}

.block-games_carousel .game-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(var(--accent-rgb), 0.08), transparent 70%);
  opacity: 0;
  transition: opacity var(--tr-base);
}

.block-games_carousel .game-card:hover {
  border-color: rgba(var(--accent-rgb), 0.5);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.block-games_carousel .game-card:hover::before { opacity: 1; }

.block-games_carousel .game-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  color: var(--bg);
  border-radius: 12px;
  margin-bottom: var(--sp-3);
  position: relative;
  z-index: 1;
}

.block-games_carousel .game-name {
  font-size: 1.1rem;
  margin: 0 0 var(--sp-2);
  color: var(--text);
  position: relative;
  z-index: 1;
}

.block-games_carousel .game-description {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
  position: relative;
  z-index: 1;
}

.block-games_carousel .games-cta-row {
  display: flex;
  justify-content: center;
  margin-top: var(--sp-3);
}

/* === block: feature_list === */

/* Block: feature_list */
.block-feature_list .features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--sp-6);
}

.block-feature_list .feature-card {
  padding: var(--sp-6);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--tr-base);
  position: relative;
  overflow: hidden;
}

.block-feature_list .feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--tr-base);
}

.block-feature_list .feature-card:hover {
  border-color: rgba(var(--accent-rgb), 0.4);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.block-feature_list .feature-card:hover::before {
  transform: scaleX(1);
}

.block-feature_list .feature-icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent);
  border-radius: var(--radius-md);
  margin-bottom: var(--sp-4);
  padding: var(--sp-2);
}
.block-feature_list .feature-icon svg {
  width: 100%;
  height: 100%;
}

.block-feature_list .feature-title {
  font-size: 1.15rem;
  margin-bottom: var(--sp-3);
  color: var(--text);
}

.block-feature_list .feature-description {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

/* === block: text_image_right === */

/* Block: text_image_right */
.block-text_image_right .ti-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
/* No image → text spans full width, no empty half. */
.block-text_image_right:not([data-has-media]) .ti-grid {
  grid-template-columns: 1fr;
}

.block-text_image_right .ti-text {
  order: 1;
}

.block-text_image_right .ti-image {
  order: 2;
}

[dir="rtl"] .block-text_image_right .ti-text { order: 2; }
[dir="rtl"] .block-text_image_right .ti-image { order: 1; }

.block-text_image_right .ti-heading {
  margin-bottom: var(--sp-4);
}

.block-text_image_right .ti-body {
  color: var(--text);
  margin-bottom: var(--sp-5);
}
.block-text_image_right .ti-body p {
  margin-bottom: 1em;
}

.block-text_image_right .ti-cta {
  margin-top: var(--sp-3);
}

.block-text_image_right .ti-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

@media (max-width: 880px) {
  .block-text_image_right .ti-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-6);
  }
  .block-text_image_right .ti-image { order: 1; }
  .block-text_image_right .ti-text { order: 2; }
  [dir="rtl"] .block-text_image_right .ti-image { order: 1; }
  [dir="rtl"] .block-text_image_right .ti-text { order: 2; }
}

/* === block: text_image_left === */

/* Block: text_image_left */
.block-text_image_left .ti-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
/* No image (e.g. minimal image budget) → text spans full width, no empty half. */
.block-text_image_left:not([data-has-media]) .ti-grid {
  grid-template-columns: 1fr;
}

.block-text_image_left .ti-image { order: 1; }
.block-text_image_left .ti-text  { order: 2; }

[dir="rtl"] .block-text_image_left .ti-image { order: 2; }
[dir="rtl"] .block-text_image_left .ti-text  { order: 1; }

.block-text_image_left .ti-heading { margin-bottom: var(--sp-4); }

.block-text_image_left .ti-body {
  color: var(--text);
  margin-bottom: var(--sp-5);
}
.block-text_image_left .ti-body p { margin-bottom: 1em; }

.block-text_image_left .ti-cta { margin-top: var(--sp-3); }

.block-text_image_left .ti-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

@media (max-width: 880px) {
  .block-text_image_left .ti-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-6);
  }
  .block-text_image_left .ti-image { order: 1; }
  .block-text_image_left .ti-text  { order: 2; }
  [dir="rtl"] .block-text_image_left .ti-image { order: 1; }
  [dir="rtl"] .block-text_image_left .ti-text  { order: 2; }
}

/* === block: quote_callout === */

/* Block: quote_callout */
.block-quote_callout .quote-card {
  position: relative;
  padding: var(--sp-8) var(--sp-6);
  text-align: center;
  border-block: 1px solid var(--border);
  margin: 0;
}

.block-quote_callout .quote-mark {
  display: block;
  font-family: var(--font-heading);
  font-size: 5rem;
  line-height: 0.5;
  color: var(--accent);
  margin-bottom: var(--sp-3);
  opacity: 0.55;
  font-style: italic;
  user-select: none;
}

.block-quote_callout .quote-text {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 3vw, 1.85rem);
  line-height: 1.45;
  color: var(--text);
  font-style: italic;
  margin: 0 0 var(--sp-5);
  letter-spacing: -0.01em;
  max-width: 700px;
  margin-inline: auto;
}

.block-quote_callout .quote-attribution {
  font-size: 0.92rem;
  color: var(--text-muted);
  font-style: normal;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 500;
}

/* === block: testimonials_row === */

/* Block: testimonials_row */
.block-testimonials_row .testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--sp-5);
}

.block-testimonials_row .testimonial-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  padding: var(--sp-6);
  background:
    linear-gradient(160deg,
      rgba(var(--accent-rgb), 0.03) 0%,
      transparent 100%
    ),
    var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: transform var(--tr-base), border-color var(--tr-base), box-shadow var(--tr-base);
  position: relative;
  overflow: hidden;
}

/* Decorative quote mark in upper-right corner */
.block-testimonials_row .testimonial-card::before {
  content: '"';
  position: absolute;
  top: -10px;
  inset-inline-end: 18px;
  font-family: var(--font-heading);
  font-size: 5rem;
  line-height: 1;
  color: rgba(var(--accent-rgb), 0.18);
  pointer-events: none;
  font-weight: 700;
}

.block-testimonials_row .testimonial-card:hover {
  border-color: rgba(var(--accent-rgb), 0.45);
  transform: translateY(-3px);
  box-shadow:
    var(--shadow-md),
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 0 32px rgba(var(--accent-rgb), 0.15);
}

.block-testimonials_row .testimonial-rating {
  display: flex;
  gap: 2px;
  color: var(--primary);
  font-size: 0.95rem;
  letter-spacing: 1px;
}

.block-testimonials_row .star {
  display: inline-block;
}
.block-testimonials_row .star--empty {
  opacity: 0.25;
}

.block-testimonials_row .testimonial-quote {
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--text);
  margin: 0;
  font-style: italic;
  flex: 1;
  font-family: var(--font-heading);
  letter-spacing: -0.005em;
}

.block-testimonials_row .testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-top: auto;
  padding-top: var(--sp-3);
  border-top: 1px solid var(--border);
}

.block-testimonials_row .testimonial-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  color: var(--bg);
  border-radius: 50%;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.25),
    0 0 0 2px rgba(var(--accent-rgb), 0.12),
    0 0 16px rgba(var(--accent-rgb), 0.25);
  font-weight: 700;
  font-size: 0.9rem;
  font-family: var(--font-heading);
  flex-shrink: 0;
}

.block-testimonials_row .testimonial-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.2;
}

.block-testimonials_row .testimonial-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}

.block-testimonials_row .testimonial-location {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* === block: image_gallery === */

/* Block: image_gallery */
.block-image_gallery .gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}

.block-image_gallery .gallery-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.block-image_gallery .gallery-image-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  aspect-ratio: 1 / 1;
  background: var(--bg-elev);
  box-shadow: var(--shadow-md);
  transition: transform var(--tr-base), box-shadow var(--tr-base);
}

.block-image_gallery .gallery-image-wrap:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.block-image_gallery .gallery-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--tr-slow);
}

.block-image_gallery .gallery-image-wrap:hover img {
  transform: scale(1.04);
}

.block-image_gallery .gallery-caption {
  font-size: 0.88rem;
  color: var(--text-muted);
  text-align: center;
  letter-spacing: 0.02em;
  font-style: italic;
  line-height: 1.5;
}

@media (max-width: 880px) {
  .block-image_gallery .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .block-image_gallery .gallery-grid { grid-template-columns: 1fr; max-width: 400px; margin-inline: auto; }
}

/* === block: bonus_grid === */

/* Block: bonus_grid */
.block-bonus_grid .bonuses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--sp-5);
}

.block-bonus_grid .bonus-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-6);
  background: linear-gradient(160deg, var(--bg-elev) 0%, var(--bg) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--tr-base);
  overflow: hidden;
}

.block-bonus_grid .bonus-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: linear-gradient(135deg, var(--accent), transparent 50%);
  opacity: 0;
  transition: opacity var(--tr-base);
  z-index: -1;
  border-radius: var(--radius-lg);
}

.block-bonus_grid .bonus-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), 0 0 32px rgba(var(--accent-rgb), 0.15);
  border-color: rgba(var(--accent-rgb), 0.4);
}

.block-bonus_grid .bonus-tag {
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-4);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  background: rgba(var(--accent-rgb), 0.15);
  color: var(--primary);
  border-radius: 12px;
  border: 1px solid rgba(var(--accent-rgb), 0.3);
}

[dir="rtl"] .block-bonus_grid .bonus-tag {
  right: auto;
  left: var(--sp-4);
}

.block-bonus_grid .bonus-name {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.block-bonus_grid .bonus-headline {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.block-bonus_grid .bonus-description {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 var(--sp-3);
  flex: 1;
}

.block-bonus_grid .bonus-cta {
  align-self: flex-start;
}

/* First bonus card — subtle accent emphasis to draw the eye */
.block-bonus_grid .bonus-card:first-child {
  background:
    linear-gradient(160deg,
      rgba(var(--accent-rgb), 0.08) 0%,
      rgba(var(--accent-rgb), 0.02) 60%,
      var(--bg) 100%
    );
  border-color: rgba(var(--accent-rgb), 0.30);
  box-shadow:
    var(--shadow-sm),
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 0 24px rgba(var(--accent-rgb), 0.10);
}
.block-bonus_grid .bonus-card:first-child::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent,
    var(--accent),
    var(--primary),
    var(--accent),
    transparent
  );
}

/* === block: comparison_table === */

/* Block: comparison_table */
.block-comparison_table .comparison-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-elev);
  box-shadow: var(--shadow-sm);
}

.block-comparison_table .comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 480px;
}

.block-comparison_table th,
.block-comparison_table td {
  padding: var(--sp-4) var(--sp-5);
  text-align: center;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border);
}

.block-comparison_table tbody tr:last-child td {
  border-bottom: none;
}

.block-comparison_table th {
  background: var(--bg);
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text);
  font-size: 0.95rem;
  letter-spacing: -0.005em;
  border-bottom: 2px solid var(--border);
}

.block-comparison_table .comparison-feature-col,
.block-comparison_table .comparison-feature-cell {
  text-align: start;
  color: var(--text);
  font-weight: 500;
}

.block-comparison_table .comparison-highlight-col {
  color: var(--primary);
  background: rgba(var(--accent-rgb), 0.06);
  position: relative;
}

.block-comparison_table .comparison-highlight-col::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
}

.block-comparison_table .comparison-highlight-cell {
  background: rgba(var(--accent-rgb), 0.04);
  font-weight: 600;
  color: var(--text);
}

.block-comparison_table tbody tr:hover {
  background: rgba(var(--accent-rgb), 0.04);
}

.block-comparison_table .cell-yes,
.block-comparison_table .cell-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
}

.block-comparison_table .cell-yes {
  background: rgba(var(--accent-rgb), 0.15);
  color: var(--primary);
}
.block-comparison_table .cell-yes svg { width: 14px; height: 14px; }

.block-comparison_table .cell-no {
  background: rgba(200, 50, 50, 0.12);
  color: rgba(200, 80, 80, 0.85);
}
.block-comparison_table .cell-no svg { width: 12px; height: 12px; }

/* === block: faq_accordion === */

/* Block: faq_accordion */
.block-faq_accordion .faq-heading {
  margin-bottom: var(--sp-8);
}

.block-faq_accordion .faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.block-faq_accordion .faq-item {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--tr-base), box-shadow var(--tr-base);
}
.block-faq_accordion .faq-item:hover {
  border-color: rgba(var(--accent-rgb), 0.4);
}
.block-faq_accordion .faq-item[open] {
  border-color: rgba(var(--accent-rgb), 0.5);
  box-shadow: var(--shadow-sm);
}

.block-faq_accordion .faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-5);
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
  list-style: none;
  user-select: none;
  transition: color var(--tr-fast);
}
.block-faq_accordion .faq-question::-webkit-details-marker { display: none; }
.block-faq_accordion .faq-question:hover { color: var(--primary); }

.block-faq_accordion .faq-q-text { flex: 1; }

.block-faq_accordion .faq-q-icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--primary);
  transition: transform var(--tr-base), background var(--tr-base);
  flex-shrink: 0;
  line-height: 1;
}

.block-faq_accordion .faq-item[open] .faq-q-icon {
  transform: rotate(45deg);
  background: rgba(var(--accent-rgb), 0.1);
}

.block-faq_accordion .faq-answer {
  padding: 0 var(--sp-5) var(--sp-5);
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.7;
}
.block-faq_accordion .faq-answer p { margin: 0 0 0.8em; }
.block-faq_accordion .faq-answer p:last-child { margin-bottom: 0; }

/* === block: final_cta === */

/* Block: final_cta */
.block-final_cta {
  background:
    radial-gradient(circle at 30% 50%, rgba(var(--accent-rgb), 0.15) 0%, transparent 50%),
    radial-gradient(circle at 70% 50%, rgba(var(--primary-rgb), 0.20) 0%, transparent 50%),
    var(--bg);
  position: relative;
  overflow: hidden;
}

.block-final_cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.5;
}

.block-final_cta .fcta-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-5);
  position: relative;
  z-index: 1;
}

.block-final_cta .fcta-headline {
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: -0.02em;
  margin: 0;
  max-width: 800px;
}

.block-final_cta .fcta-subhead {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0;
  line-height: 1.6;
}

.block-final_cta .fcta-button {
  margin-top: var(--sp-3);
  animation: fcta-pulse 3s ease-in-out infinite;
}

@keyframes fcta-pulse {
  0%, 100% {
    box-shadow: 0 4px 16px rgba(var(--accent-rgb), 0.25);
  }
  50% {
    box-shadow: 0 8px 32px rgba(var(--accent-rgb), 0.45), var(--shadow-glow);
  }
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .block-final_cta .fcta-button {
    animation: none;
  }
}

/* === block: footer_columns === */

/* Block: footer — compact */
.block-footer {
  position: relative;
  background:
    radial-gradient(ellipse 60% 40% at top, rgba(var(--accent-rgb), 0.05) 0%, transparent 70%),
    var(--bg-elev);
  padding-block: var(--sp-6) var(--sp-4);
  margin-top: 0;
  overflow: hidden;
}

/* Top ornament — SUBTLE soft gradient, no harsh line */
.block-footer .footer-top-ornament {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(var(--accent-rgb), 0.15) 25%,
    rgba(var(--primary-rgb), 0.20) 50%,
    rgba(var(--accent-rgb), 0.15) 75%,
    transparent 100%
  );
  opacity: 0.6;
  pointer-events: none;
}

/* Main grid: brand block + link groups */
.block-footer .footer-main {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(2rem, 5vw, 4rem);
  margin-bottom: var(--sp-5);
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.08);
  align-items: start;
}

/* Brand block */
.block-footer .footer-brand-block {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  max-width: 28ch;
}

.block-footer .footer-brand-logo {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  text-decoration: none;
  color: var(--text);
  width: fit-content;
}

.block-footer .footer-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  color: var(--bg);
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0;
  box-shadow:
    var(--shadow-sm),
    inset 0 1px 0 rgba(255,255,255,0.20);
}

/* _t17_2_1_footer_brand_img: real logo in footer (mirrors header sizing) */
.block-footer .footer-brand-img {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  display: block;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}

.block-footer .footer-brand-name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.block-footer .footer-tagline {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: var(--sp-1) 0 0;
  font-style: italic;
}

/* Link groups (max 2) */
.block-footer .footer-links {
  display: flex;
  gap: clamp(2rem, 4vw, 3rem);
  flex-wrap: wrap;
}

.block-footer .footer-link-group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  min-width: 140px;
}

.block-footer .footer-group-title {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--primary);
  margin: 0 0 var(--sp-1);
  position: relative;
  padding-bottom: var(--sp-1);
}

.block-footer .footer-group-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  inset-inline-start: 0;
  width: 20px;
  height: 1px;
  background: linear-gradient(90deg, var(--primary), transparent);
}
[dir="rtl"] .block-footer .footer-group-title::after {
  background: linear-gradient(270deg, var(--primary), transparent);
}

.block-footer .footer-link-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  list-style: none;
  padding: 0;
  margin: 0;
}

.block-footer .footer-link {
  font-size: 0.88rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--tr-fast), padding var(--tr-fast);
  display: inline-block;
  padding-block: 2px;
}
.block-footer .footer-link:hover {
  color: var(--primary);
  padding-inline-start: 4px;
}
[dir="rtl"] .block-footer .footer-link:hover {
  padding-inline-start: 0;
  padding-inline-end: 4px;
}

/* Bottom row — 18+ + copyright + inline disclaimer */
.block-footer .footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3) var(--sp-4);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.block-footer .footer-bottom-left {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  flex-shrink: 0;
}

.block-footer .footer-age-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #c62828, #8e0000);
  color: white;
  font-weight: 800;
  font-size: 0.7rem;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  box-shadow:
    var(--shadow-sm),
    inset 0 1px 0 rgba(255,255,255,0.20);
  letter-spacing: -0.02em;
}

.block-footer .footer-copyright {
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.block-footer .footer-disclaimer-inline {
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
  flex: 1 1 60ch;
  opacity: 0.75;
}

/* Responsive */
@media (max-width: 700px) {
  .block-footer .footer-main {
    grid-template-columns: 1fr;
    gap: var(--sp-5);
  }
  .block-footer .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}