/* ============================================================================
   File:     /assets/style.css
   Function: Global styles. Light theme — research-backed palette
             (deep teal primary + coral CTA + sage accent on warm cream bg).
             Bootstrap-compatible, mobile-first, WCAG 2.2 AA compliant contrast.

   Version:  2.0.0

   Changelog:
     2.0.0 — 2026-04-27 — Subpage styles: breadcrumb, hero, tech grid, security
                          grid, legal TOC + prose, code snippets, cookie table,
                          status page, changelog, 404, subpage CTA band.
     1.9.0 — 2026-04-27 — Reasons section with SVG charts (bar-pair, donut, time-bars).
     1.7.0 — 2026-04-27 — About section styles + flag tile patterns (DE/ES/PL).
     1.6.0 — 2026-04-27 — File header standard. WCAG 2.2 focus rings.
     1.5.0 — 2026-04-27 — Research-backed palette (teal/coral/sage on cream).
     1.4.0 — 2026-04-27 — Photo-derived palette (yellow/olive/lime/rose).
     1.0.0 — 2026-04-27 — Initial light tech theme.
   ============================================================================ */

:root {
  /* ============================================================
     PALETTE — research-backed for SaaS conversion + beauty industry
     - Primary: deep teal (trust + modern, like SaaS but warmer)
     - CTA: vibrant coral-orange (+32-40% CTR per A/B research)
     - Accent: sage/forest green (wellness/beauty industry signal)
     - Background: warm cream (premium feel, echo from photo)
     ============================================================ */

  /* Backgrounds — warm, premium, high readability */
  --bg:        #faf7f0;        /* warm cream — softer than white, premium */
  --bg-2:      #f3ede0;        /* deeper cream for sections */
  --surface:   #ffffff;        /* card surface — pure white pops on cream */
  --surface-2: #f7f2e8;        /* secondary surfaces */
  --surface-3: #ebe3d0;        /* hover, separators */

  --line:    #e7dec8;          /* hairline borders, warm tone */
  --line-2:  #d3c7a8;
  --line-3:  #a89d7a;

  --ink:     #14202a;          /* deep teal-black — high contrast on cream */
  --ink-2:   #3e4a55;          /* secondary text — slate */
  --ink-3:   #6b7480;          /* tertiary */
  --ink-4:   #9aa1ad;

  /* PRIMARY — deep teal: trust + professionalism (research: blue/teal #1 for SaaS) */
  --primary:    #0d6e6e;       /* deep teal — anchor color */
  --primary-2:  #095757;       /* hover */
  --primary-3:  #1a8a8a;       /* lighter accent */
  --primary-soft: #ccebeb;
  --primary-tint: #e8f5f5;

  /* CTA — coral/orange: research shows +32-40% higher CTR than other colors */
  --cta:        #e85d2c;       /* vibrant coral-orange — the conversion color */
  --cta-2:      #c54718;       /* hover, deeper */
  --cta-3:      #ff7849;       /* lighter for accents */
  --cta-soft:   #fde0d2;
  --cta-tint:   #fef3eb;

  /* ACCENT — sage/forest green: beauty + wellness industry signal */
  --accent:     #4a7c59;       /* sage green — wellness, growth */
  --accent-2:   #386046;       /* hover */
  --accent-3:   #6da077;       /* lighter */
  --accent-soft:#d3e3d8;
  --accent-tint:#e7f0ea;

  /* SECONDARY accents — for depth + warmth (echoes from the photo) */
  --warm:       #d4a574;       /* warm tan — premium hint */
  --warm-soft:  #f0e2cc;
  --rose:       #d97879;       /* dusty rose — soft feminine touch */
  --rose-soft:  #f5dadb;
  --gold:       #c89b3a;       /* gold — premium tier indicator */
  --gold-soft:  #f0e3c2;

  /* Semantic for shadows */
  --primary-shadow: 13, 110, 110;     /* RGB of --primary */
  --cta-shadow:     232, 93, 44;      /* RGB of --cta */
  --accent-shadow:  74, 124, 89;      /* RGB of --accent */

  /* Tinted soft variants — kept as aliases for legacy CSS */
  --cyan-soft:    var(--primary-tint);
  --green-soft:   var(--accent-tint);
  --amber-soft:   var(--cta-tint);

  /* Gradients — purposeful, conversion-oriented */
  --grad:        linear-gradient(135deg, #0d6e6e 0%, #4a7c59 50%, #e85d2c 100%);  /* full hero gradient */
  --grad-warm:   linear-gradient(135deg, #0d6e6e 0%, #e85d2c 100%);                /* teal → coral — main brand */
  --grad-cool:   linear-gradient(135deg, #0d6e6e 0%, #4a7c59 100%);                /* teal → sage — calm */
  --grad-sun:    linear-gradient(135deg, #e85d2c 0%, #c89b3a 100%);                /* coral → gold — premium energy */
  --grad-meadow: linear-gradient(135deg, #4a7c59 0%, #6da077 100%);                /* sage tones */
  --grad-2:      linear-gradient(135deg, #1a8a8a 0%, #4a7c59 100%);
  --grad-3:      linear-gradient(135deg, #d97879 0%, #c89b3a 100%);                /* rose → gold — soft luxury */

  /* Type */
  --sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --r-sm: 6px;
  --r:    10px;
  --r-lg: 16px;
  --r-xl: 22px;

  /* Shadows — colored hints to add depth */
  --shadow-sm: 0 1px 2px rgba(20, 32, 42, 0.06);
  --shadow:    0 4px 12px -2px rgba(20, 32, 42, 0.08), 0 2px 4px rgba(20, 32, 42, 0.04);
  --shadow-lg: 0 20px 40px -16px rgba(20, 32, 42, 0.18), 0 8px 16px -8px rgba(20, 32, 42, 0.10);
  --shadow-xl: 0 30px 60px -20px rgba(13, 110, 110, 0.30), 0 16px 32px -16px rgba(20, 32, 42, 0.14);
  --shadow-cta: 0 6px 20px -4px rgba(232, 93, 44, 0.45), 0 2px 6px rgba(232, 93, 44, 0.20);
  --shadow-glow: 0 0 60px -10px rgba(13, 110, 110, 0.50);
  --shadow-glow-pink: 0 0 60px -10px rgba(232, 93, 44, 0.55);
  --shadow-glow-cyan: 0 0 60px -10px rgba(74, 124, 89, 0.50);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  letter-spacing: -0.011em;
}

/* Animated colored discs in background — teal/coral/sage palette */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle 380px at 12% 8%, rgba(13, 110, 110, 0.18), transparent 70%),
    radial-gradient(circle 320px at 88% 18%, rgba(232, 93, 44, 0.18), transparent 70%),
    radial-gradient(circle 280px at 50% 100%, rgba(74, 124, 89, 0.14), transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: blobFloat 24s ease-in-out infinite alternate;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle 240px at 70% 60%, rgba(212, 165, 116, 0.16), transparent 70%),
    radial-gradient(circle 220px at 8% 75%, rgba(217, 120, 121, 0.12), transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: blobFloat 30s ease-in-out infinite alternate-reverse;
}
@keyframes blobFloat {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(2%, -3%) scale(1.05); }
  100% { transform: translate(-2%, 3%) scale(0.97); }
}

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

::selection { background: var(--primary); color: #fff; }

/* ============================================================================
   WCAG 2.2 — accessibility primitives
   ============================================================================ */

/* Skip to main content — visible only on keyboard focus */
.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: 8px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  z-index: 1000;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 12px;
  outline: 3px solid var(--cta);
  outline-offset: 2px;
}

/* Visible, high-contrast focus indicator on every interactive element.
   WCAG 2.2 SC 2.4.11 (Focus Not Obscured) + SC 2.4.13 (Focus Appearance). */
:focus-visible {
  outline: 3px solid var(--cta);
  outline-offset: 2px;
  border-radius: 4px;
}
button:focus-visible,
a:focus-visible,
[role="button"]:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--cta);
  outline-offset: 2px;
}

/* Hide visually but keep available to screen readers (Bootstrap-compatible) */
.visually-hidden,
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Respect prefers-reduced-motion — WCAG 2.2 AAA */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  body::before,
  body::after {
    animation: none !important;
  }
}

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 28px; position: relative; z-index: 2; }

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

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: rgba(250, 250, 251, 0.85);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 20px; }
.logo {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.logo img { width: 26px; height: 26px; border-radius: 6px; }
.logo small {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  background: var(--grad-warm);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
  margin-left: 4px;
  align-self: flex-end;
  padding-bottom: 4px;
  font-weight: 700;
}
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a {
  font-size: 13px; color: var(--ink-2);
  font-weight: 500; letter-spacing: -0.005em;
  transition: color 0.18s ease;
}
.nav-links a:hover { color: var(--ink); }

/* Lang switcher */
.lang { position: relative; font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }
.lang-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 11px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  color: var(--ink-2);
  background: var(--surface);
  transition: all 0.18s ease;
  font-weight: 600;
}
.lang-toggle:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.lang-toggle .arr {
  width: 7px; height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-top: -3px;
}
.lang-menu {
  position: absolute; top: calc(100% + 6px); right: 0;
  min-width: 152px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 5px;
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 60;
}
.lang.open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-menu a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.15s ease, color 0.15s ease;
}
.lang-menu a:hover { background: var(--primary-soft); color: var(--primary); }
.lang-menu a.active { color: var(--primary); background: var(--primary-soft); }

.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.005em;
  transition: all 0.18s ease;
  line-height: 1;
  white-space: nowrap;
  font-family: var(--sans);
}
.btn-primary {
  background: var(--ink);
  color: var(--bg);
}
.btn-primary:hover {
  background: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px -6px rgba(13, 110, 110, 0.55);
}
.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line-2);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.btn-grad {
  background: var(--cta);
  color: #fff;
  box-shadow: var(--shadow-cta);
  position: relative;
  font-weight: 600;
}
.btn-grad::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--cta);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}
.btn-grad:hover {
  background: var(--cta-2);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -4px rgba(232, 93, 44, 0.55), 0 6px 14px -2px rgba(232, 93, 44, 0.30);
  filter: brightness(1.05);
}
.btn .arrow { transition: transform 0.2s ease; font-family: var(--mono); }
.btn:hover .arrow { transform: translateX(3px); }

.nav-mobile-toggle { display: none; }

/* ===== HERO ===== */
.hero { padding: 140px 0 80px; position: relative; overflow: hidden; }
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(10, 10, 20, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 10, 20, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 75% 60% at 50% 30%, #000, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 75% 60% at 50% 30%, #000, transparent 80%);
  pointer-events: none;
}

.pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 12px 5px 8px;
  background: var(--grad-warm);
  border: 1px solid transparent;
  border-radius: 99px;
  font-size: 11px;
  color: #fff;
  font-family: var(--mono);
  font-weight: 600;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 16px -4px rgba(232, 93, 44, 0.45);
}
.pill .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

h1.headline {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(44px, 7vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  margin-top: 22px;
  max-width: 18ch;
  color: var(--ink);
}
h1.headline em {
  font-style: normal;
  background: var(--grad);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: gradShift 6s ease-in-out infinite alternate;
}
.hero-sub {
  margin-top: 22px;
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 60ch;
  font-weight: 400;
}
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 32px; }
.hero-meta {
  margin-top: 40px;
  display: flex; gap: 28px; flex-wrap: wrap;
  color: var(--ink-3);
  font-size: 12px;
  font-family: var(--mono);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.hero-meta span { display: flex; align-items: center; gap: 7px; }
.hero-meta .check { color: var(--green); font-size: 13px; }

/* ===== ARCHITECTURE ===== */
.arch { margin-top: 72px; position: relative; }
.arch-frame {
  border: 1px solid var(--line-2);
  border-radius: 18px;
  background: var(--surface);
  padding: 36px 32px;
  box-shadow: var(--shadow-xl);
}
.arch-label-top {
  text-align: center;
  font-family: var(--mono); font-size: 10px; font-weight: 600;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 22px;
}
.arch-platforms { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 26px; }
.arch-platform {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 14px;
  background: var(--surface-2);
  text-align: center;
  transition: all 0.3s ease;
}
.arch-platform:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.arch-platform .pname {
  font-family: var(--sans);
  font-weight: 600; font-size: 15px;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.arch-platform .pdesc {
  font-family: var(--mono); font-size: 9px; font-weight: 600;
  color: var(--ink-3);
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-top: 6px;
}
.arch-platform .ptag {
  display: inline-block; margin-top: 10px;
  font-family: var(--mono); font-size: 9px; font-weight: 600;
  color: var(--primary);
  border: 1px solid rgba(79, 70, 229, 0.2);
  background: var(--primary-soft);
  padding: 3px 8px; border-radius: 99px;
  letter-spacing: 0.04em;
}

.arch-pipes { height: 64px; position: relative; display: flex; justify-content: center; align-items: center; }
.arch-pipes svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.arch-pipes path {
  stroke: var(--primary);
  stroke-width: 1;
  fill: none;
  stroke-dasharray: 4 4;
  opacity: 0.5;
  animation: flow 2.5s linear infinite;
}
@keyframes flow { to { stroke-dashoffset: -16; } }
.arch-pipes-label {
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: 99px;
  padding: 6px 13px;
  font-family: var(--mono); font-size: 10px; font-weight: 600;
  color: var(--primary);
  text-transform: uppercase; letter-spacing: 0.1em;
  z-index: 2; position: relative;
}

.arch-engine {
  border: 1px solid rgba(13, 110, 110, 0.3);
  border-radius: 12px;
  background:
    radial-gradient(ellipse 70% 100% at 50% 50%, rgba(232, 93, 44, 0.10), transparent 70%),
    radial-gradient(ellipse 50% 100% at 100% 0%, rgba(74, 124, 89, 0.10), transparent 70%),
    var(--primary-soft);
  padding: 22px;
  margin-bottom: 26px;
  position: relative; overflow: hidden;
  box-shadow: 0 8px 32px -16px rgba(13, 110, 110, 0.30);
}
.arch-engine::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(232, 93, 44, 0.20) 50%, transparent 100%);
  transform: translateX(-100%);
  animation: sweep 3.5s ease-in-out infinite;
}
@keyframes sweep { 50%, 100% { transform: translateX(100%); } }
.arch-engine-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; position: relative; z-index: 2; }
.arch-engine-head h4 {
  font-family: var(--sans); font-weight: 700;
  font-size: 20px; letter-spacing: -0.025em;
  background: var(--grad);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradShift 5s ease-in-out infinite alternate;
}
.arch-engine-head .ver {
  font-family: var(--mono); font-size: 10px; font-weight: 600;
  color: #fff;
  background: var(--grad-cool);
  padding: 4px 9px; border-radius: 6px;
  letter-spacing: 0.06em;
  box-shadow: 0 2px 8px -2px rgba(74, 124, 89, 0.4);
}
.arch-modules { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; position: relative; z-index: 2; }
.arch-mod {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 11px;
  display: flex; align-items: center; gap: 9px;
  font-size: 13px; font-weight: 600;
  color: var(--ink);
}
.arch-mod svg { width: 15px; height: 15px; color: var(--primary); flex-shrink: 0; }

.arch-base { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.arch-base-item {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  font-family: var(--mono); font-size: 10px; font-weight: 600;
  color: var(--ink-3);
  text-transform: uppercase; letter-spacing: 0.08em;
  text-align: center;
}

/* ===== MARQUEE ===== */
.marquee { margin-top: 60px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 28px 0; overflow: hidden; }
.marquee-label {
  font-family: var(--mono); font-size: 10px; font-weight: 600;
  color: var(--ink-3);
  text-transform: uppercase; letter-spacing: 0.18em;
  text-align: center; margin-bottom: 20px;
}
.marquee-track {
  display: flex; gap: 48px;
  animation: marquee 38s linear infinite;
  font-family: var(--sans); font-size: 24px; font-weight: 600;
  color: var(--ink-3);
  white-space: nowrap;
  letter-spacing: -0.025em;
}
.marquee-track > span { display: flex; align-items: center; gap: 48px; }
.marquee-track > span::after {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(232, 93, 44, 0.18), 0 0 12px rgba(232, 93, 44, 0.45);
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ===== SECTIONS ===== */
section { position: relative; padding: 110px 0; z-index: 2; }
.sec-label {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  color: var(--primary);
  text-transform: uppercase; letter-spacing: 0.16em;
}
.sec-label::before {
  content: ""; width: 28px; height: 2px;
  background: var(--grad-warm);
  border-radius: 2px;
}
.sec-title {
  font-family: var(--sans); font-weight: 700;
  font-size: clamp(32px, 4.5vw, 54px);
  line-height: 1.05; letter-spacing: -0.035em;
  margin-top: 14px;
  max-width: 20ch;
  color: var(--ink);
}
.sec-title em {
  font-style: normal;
  background: var(--grad);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradShift 6s ease-in-out infinite alternate;
}
@keyframes gradShift {
  from { background-position: 0% 50%; }
  to   { background-position: 100% 50%; }
}
.sec-sub {
  margin-top: 16px;
  font-size: 16px;
  color: var(--ink-2);
  max-width: 62ch;
  line-height: 1.6;
}

/* ===== AUDIENCES ===== */
.audiences { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 48px; }
.aud {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 36px 32px;
  background: var(--surface);
  transition: all 0.4s cubic-bezier(.2, .8, .2, 1);
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.aud::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-warm);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(.2, .8, .2, 1);
}
.aud:nth-child(2)::before { background: var(--grad-cool); }
.aud:hover {
  border-color: transparent;
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
}
.aud:hover::before { transform: scaleX(1); }
.aud:nth-child(2):hover { box-shadow: var(--shadow-xl), var(--shadow-glow-cyan); }
.aud-num {
  font-family: var(--mono); font-weight: 600;
  font-size: 12px; color: var(--primary);
  letter-spacing: 0.1em;
}
.aud-tag {
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  color: var(--ink-3);
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-top: 18px;
}
.aud h3 {
  font-family: var(--sans); font-weight: 700;
  font-size: 26px; line-height: 1.15; letter-spacing: -0.025em;
  margin-top: 8px;
  color: var(--ink);
}
.aud h3 em {
  font-style: normal;
  background: var(--grad-warm);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.aud:nth-child(2) h3 em {
  background: var(--grad-cool);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.aud p { color: var(--ink-2); font-size: 15px; line-height: 1.6; margin-top: 12px; flex: 1; }
.aud-list {
  list-style: none; margin-top: 22px;
  display: flex; flex-direction: column; gap: 10px;
  border-top: 1px solid var(--line); padding-top: 22px;
}
.aud-list li {
  display: flex; align-items: flex-start; gap: 9px;
  font-size: 14px; color: var(--ink-2);
}
.aud-list li::before {
  content: "→"; 
  background: var(--grad-warm);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  flex-shrink: 0; font-family: var(--mono); font-weight: 700;
}

.audience-bridge {
  margin-top: 26px;
  text-align: center;
  font-size: 14px;
  color: var(--ink);
  font-family: var(--mono);
  letter-spacing: 0.01em;
  padding: 14px 26px;
  border-radius: 99px;
  display: inline-block;
  background: var(--surface);
  position: relative;
  font-weight: 500;
}
.audience-bridge::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 99px;
  padding: 2px;
  background: var(--grad-warm);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: -1;
}

/* ===== FEATURES ===== */
.features { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; margin-top: 48px; }
.feat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px;
  position: relative; overflow: hidden;
  transition: all 0.3s ease;
  min-height: 260px;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.feat:hover { 
  border-color: transparent; 
  transform: translateY(-4px); 
  box-shadow: var(--shadow-xl), var(--shadow-glow); 
}
.feat::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle 240px at var(--mx, 50%) var(--my, 50%), rgba(232, 93, 44, 0.10), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.feat:hover::before { opacity: 1; }
.feat-num { font-family: var(--mono); font-size: 10px; font-weight: 600; color: var(--primary); letter-spacing: 0.08em; }
.feat h3 {
  font-family: var(--sans); font-weight: 700;
  font-size: 22px; line-height: 1.15; letter-spacing: -0.025em;
  margin-top: 12px;
  color: var(--ink);
}
.feat h3 em {
  font-style: normal;
  background: var(--grad-warm);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.feat p { color: var(--ink-2); font-size: 14px; line-height: 1.6; margin-top: 10px; flex: 1; }
.feat-icon {
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--grad-warm);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: auto;
  box-shadow: 0 6px 16px -4px rgba(232, 93, 44, 0.4);
  transition: transform 0.4s cubic-bezier(.2, .8, .2, 1);
}
.feat:hover .feat-icon { transform: rotate(-6deg) scale(1.08); }
.feat-icon svg { width: 22px; height: 22px; color: #fff; }
.feat:nth-child(2n) .feat-icon { background: var(--grad-cool); box-shadow: 0 6px 16px -4px rgba(74, 124, 89, 0.4); }
.feat:nth-child(3n) .feat-icon { background: var(--grad-3); box-shadow: 0 6px 16px -4px rgba(212, 165, 116, 0.4); }

.feat.f-1 { grid-column: span 7; }
.feat.f-2 { grid-column: span 5; }
.feat.f-3 { grid-column: span 4; }
.feat.f-4 { grid-column: span 4; }
.feat.f-5 { grid-column: span 4; }
.feat.f-6 { grid-column: span 12; min-height: auto; }

.feat-code {
  margin-top: 18px;
  background: #0f0f1a;
  color: #e5e7f0;
  border: 1px solid #1a1a26;
  border-radius: 8px;
  padding: 16px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.65;
  overflow-x: auto;
  white-space: pre;
}
.feat-code .k { color: #f472b6; font-weight: 600; }
.feat-code .s { color: #6ee7b7; }
.feat-code .c { color: #6b7280; }
.feat-code .p { color: #67e8f9; }

.feat-visual {
  position: relative;
  margin-top: 18px;
  height: 124px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  overflow: hidden;
}

.v-crm { padding: 13px; height: 124px; display: flex; flex-direction: column; gap: 5px; }
.v-crm-row {
  display: flex; align-items: center; gap: 9px;
  padding: 7px 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
}
.v-crm-row .av {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--grad-warm);
  flex-shrink: 0;
  box-shadow: 0 2px 6px -1px rgba(232, 93, 44, 0.4);
}
.v-crm-row .nm { flex: 1; color: var(--ink); font-weight: 600; }
.v-crm-row .tg {
  font-family: var(--mono); font-size: 9px; font-weight: 600;
  background: var(--primary-soft);
  padding: 2px 7px; border-radius: 99px;
  color: var(--primary);
}

.v-msg { padding: 13px; height: 124px; display: flex; flex-direction: column; gap: 5px; justify-content: flex-end; }
.v-msg .bub { max-width: 75%; font-size: 11px; padding: 7px 11px; border-radius: 11px; font-weight: 500; }
.v-msg .bub.them { background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 3px; align-self: flex-start; color: var(--ink); }
.v-msg .bub.us {
  background: var(--grad-warm);
  color: #fff;
  border-bottom-right-radius: 3px;
  align-self: flex-end;
  box-shadow: 0 4px 12px -2px rgba(232, 93, 44, 0.35);
}

.feat.f-6 .feat-visual {
  height: 78px;
  margin-top: 18px;
  background: linear-gradient(90deg, transparent 0%, var(--primary-soft) 50%, transparent 100%);
  border: 1px dashed var(--line-2);
  display: flex; align-items: center; justify-content: center;
  gap: 22px;
  font-family: var(--mono); font-size: 10px; font-weight: 600;
  color: var(--ink-3);
  text-transform: uppercase; letter-spacing: 0.12em;
  flex-wrap: wrap;
}
.feat.f-6 .feat-visual b { color: var(--primary); font-weight: 700; }

/* ===== PREVIEW ===== */
.preview-frame {
  margin-top: 48px;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  background: var(--surface);
  padding: 12px;
  box-shadow: var(--shadow-xl);
  position: relative;
}
.preview-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 0 8px 11px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
}
.preview-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--surface-3); display: block; }
.preview-bar i:nth-child(1) { background: #ff5f57; }
.preview-bar i:nth-child(2) { background: #febc2e; }
.preview-bar i:nth-child(3) { background: #28c840; }
.preview-bar .url {
  margin-left: 14px;
  font-family: var(--mono); font-size: 11px;
  color: var(--ink-3);
  background: var(--surface-2);
  padding: 5px 11px;
  border-radius: 6px;
  flex: 1;
  border: 1px solid var(--line);
  font-weight: 500;
}
.preview-body { display: grid; grid-template-columns: 200px 1fr; gap: 12px; min-height: 430px; }
.pv-side {
  background: var(--surface-2);
  border-radius: 9px;
  padding: 13px;
  border: 1px solid var(--line);
}
.pv-side-logo {
  display: flex; align-items: center; gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 13px;
  font-family: var(--sans); font-size: 14px; font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.pv-side-logo i {
  width: 18px; height: 18px;
  border-radius: 5px;
  background: var(--grad-warm);
  box-shadow: 0 2px 6px -1px rgba(232, 93, 44, 0.4);
}
.pv-side ul { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.pv-side li {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 12px; font-weight: 600;
  color: var(--ink-3);
  cursor: default;
}
.pv-side li.active {
  background: var(--primary-soft);
  color: var(--primary);
  border-left: 2px solid var(--primary);
  padding-left: 8px;
}
.pv-side li svg { width: 13px; height: 13px; flex-shrink: 0; }
.pv-main {
  background: var(--surface-2);
  border-radius: 9px;
  padding: 18px;
  border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 13px;
}
.pv-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px; }
.pv-head h3 { font-family: var(--sans); font-size: 18px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.pv-head .day { font-family: var(--mono); font-size: 11px; color: var(--ink-3); font-weight: 600; }
.pv-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pv-stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
}
.pv-stat label {
  font-size: 10px; color: var(--ink-3); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  font-family: var(--mono);
}
.pv-stat strong {
  display: block;
  font-family: var(--sans); font-size: 22px; font-weight: 700;
  margin-top: 3px; letter-spacing: -0.025em;
  background: var(--grad-warm);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.pv-cal { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.pv-cal-row { display: grid; grid-template-columns: 50px 1fr; gap: 10px; align-items: center; font-size: 11px; font-weight: 500; }
.pv-cal-row .time { color: var(--ink-3); font-family: var(--mono); text-align: right; font-weight: 600; }
.pv-cal-row .slot {
  height: 30px;
  border-radius: 6px;
  background: var(--surface);
  border: 1px dashed var(--line);
}
.pv-cal-row .slot.booked {
  background: var(--primary-soft);
  border: 1px solid rgba(79, 70, 229, 0.2);
  border-left: 3px solid var(--primary);
  color: var(--ink);
  padding: 6px 10px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-size: 11px;
}
.pv-cal-row .slot.booked .who { font-weight: 700; }
.pv-cal-row .slot.booked .svc { color: var(--primary); font-family: var(--mono); font-size: 9px; font-weight: 600; }
.pv-cal-row .slot.booked.cyan {
  background: var(--accent-soft);
  border-color: rgba(74, 124, 89, 0.25);
  border-left-color: var(--accent);
}
.pv-cal-row .slot.booked.cyan .svc { color: var(--accent-2); }

.preview-float {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  padding: 13px 15px;
  box-shadow: var(--shadow-xl);
}
.preview-float.notif { top: 8%; right: -2%; width: 280px; animation: floatY 6s ease-in-out infinite; }
.preview-float.stats { bottom: 10%; left: -3%; width: 230px; animation: floatY 7s ease-in-out infinite reverse; }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.pf-row { display: flex; gap: 10px; align-items: flex-start; }
.pf-icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--grad-warm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: #fff; font-weight: 700;
  font-family: var(--sans); font-size: 13px;
  box-shadow: 0 4px 12px -2px rgba(232, 93, 44, 0.4);
}
.pf-row .body { flex: 1; min-width: 0; }
.pf-row .ttl { font-size: 13px; font-weight: 700; letter-spacing: -0.015em; color: var(--ink); }
.pf-row .desc { font-size: 11px; color: var(--ink-3); margin-top: 2px; font-weight: 500; }
.pf-row .when { font-family: var(--mono); font-size: 10px; font-weight: 600; color: var(--ink-3); text-align: right; flex-shrink: 0; }
.pf-stats-label { font-family: var(--mono); font-size: 10px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.08em; }
.pf-stats-value {
  font-family: var(--sans); font-size: 32px; font-weight: 700;
  margin-top: 4px;
  letter-spacing: -0.03em;
  background: var(--grad);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradShift 5s ease-in-out infinite alternate;
}
.pf-stats-bar {
  margin-top: 8px;
  height: 6px; border-radius: 3px;
  background: var(--surface-2);
  overflow: hidden;
}
.pf-stats-bar i {
  display: block;
  height: 100%;
  width: 74%;
  background: var(--grad-warm);
  border-radius: 3px;
  box-shadow: 0 0 12px rgba(232, 93, 44, 0.45);
}

/* ===== REASONS — Why Polooma (5 cards with research-backed charts) ===== */
.reasons-section { padding-block: 80px; }
.reasons-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.reason-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  overflow: hidden;
}
.reason-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--grad-warm);
  opacity: 0.55;
  transition: opacity 0.3s ease;
}
.reason-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-soft);
}
.reason-card:hover::before { opacity: 1; }

.reason-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  font-weight: 600;
  letter-spacing: 0.06em;
}
.reason-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.25;
  color: var(--ink);
  margin: 0;
}

/* The chart slot — fixed height so cards align */
.reason-chart {
  margin: 6px 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
}
.reason-chart svg { width: 100%; height: auto; max-width: 360px; display: block; }

/* ----- Bar pair (vertical comparison) ----- */
.bar-fill-muted {
  fill: var(--surface-3);
  stroke: var(--line-2);
  stroke-width: 1;
  transform-origin: bottom center;
  transform-box: fill-box;
  animation: barGrowVert 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
}
.bar-fill-accent {
  fill: var(--cta);
  transform-origin: bottom center;
  transform-box: fill-box;
  animation: barGrowVert 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s both;
  filter: drop-shadow(0 4px 10px rgba(232, 93, 44, 0.30));
}
/* Horizontal bar variant (admin time) */
.bar-h.bar-fill-muted,
.bar-h.bar-fill-accent {
  transform-origin: left center;
  transform-box: fill-box;
  animation: barGrowHoriz 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
}
.bar-h.bar-fill-accent { animation-delay: 0.3s; }

@keyframes barGrowVert {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}
@keyframes barGrowHoriz {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

.bar-value {
  font-family: var(--sans);
  font-size: 28px;
  font-weight: 800;
  fill: var(--ink);
  letter-spacing: -0.02em;
}
.bar-value-accent { fill: var(--cta-2); }
.bar-value-inline {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  fill: var(--ink);
}
.bar-unit {
  font-size: 14px;
  font-weight: 600;
  fill: var(--ink-3);
  letter-spacing: 0;
}
.bar-value-accent .bar-unit { fill: var(--cta-2); opacity: 0.7; }
.bar-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  fill: var(--ink-3);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.bar-label-row {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  fill: var(--ink-3);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ----- Donut chart ----- */
.donut-track {
  stroke: var(--surface-3);
}
.donut-arc {
  stroke: var(--cta);
  stroke-linecap: round;
  filter: drop-shadow(0 2px 6px rgba(232, 93, 44, 0.30));
  animation: donutSweep 1.2s cubic-bezier(0.65, 0, 0.35, 1) 0.2s both;
}
@keyframes donutSweep {
  from { stroke-dasharray: 0 var(--donut-circ, 377); }
  to   { stroke-dasharray: var(--donut-dash) calc(var(--donut-circ, 377) - var(--donut-dash)); }
}
.donut-value {
  font-family: var(--sans);
  font-size: 32px;
  font-weight: 800;
  fill: var(--cta-2);
  letter-spacing: -0.025em;
}
.donut-value .bar-unit { font-size: 16px; fill: var(--cta-2); opacity: 0.7; }
.donut-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  fill: var(--ink-3);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.reason-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0;
}

.reason-source {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: baseline;
}
.reason-source-label {
  font-weight: 700;
  color: var(--ink-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.reason-source a {
  color: var(--primary-2);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}
.reason-source a:hover {
  color: var(--primary);
  border-bottom-color: currentColor;
}
.reason-source i {
  font-size: 10px;
  position: relative;
  top: 1px;
}

/* Reduce motion: don't animate the bars */
@media (prefers-reduced-motion: reduce) {
  .bar-fill-muted, .bar-fill-accent,
  .bar-h.bar-fill-muted, .bar-h.bar-fill-accent,
  .donut-arc { animation: none !important; }
}

@media (max-width: 720px) {
  .reasons-grid { grid-template-columns: 1fr; }
  .reason-card { padding: 24px 20px 18px; }
}

/* ===== ABOUT — origin story + team signal ===== */
.about-grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 32px;
  align-items: start;
}
.about-prose { display: flex; flex-direction: column; gap: 18px; }
.about-p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 60ch;
  font-weight: 400;
}
.about-p:first-of-type {
  color: var(--ink);
  font-size: 18px;
  font-weight: 500;
}

.about-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px 28px 24px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.about-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad);
}
.about-card-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 14px;
}
.about-flags {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.flag {
  width: 36px;
  height: 24px;
  border-radius: 4px;
  border: 1px solid rgba(20, 32, 42, 0.10);
  box-shadow: 0 2px 6px -2px rgba(20, 32, 42, 0.18);
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
}
/* Germany — black/red/gold horizontal bands */
.flag-de {
  background:
    linear-gradient(to bottom,
      #000000 0%, #000000 33.33%,
      #DD0000 33.33%, #DD0000 66.66%,
      #FFCE00 66.66%, #FFCE00 100%);
}
/* Spain — red/yellow/red horizontal bands (3:6:3 ratio) */
.flag-es {
  background:
    linear-gradient(to bottom,
      #AA151B 0%, #AA151B 25%,
      #F1BF00 25%, #F1BF00 75%,
      #AA151B 75%, #AA151B 100%);
}
/* Poland — white over red */
.flag-pl {
  background:
    linear-gradient(to bottom,
      #FFFFFF 0%, #FFFFFF 50%,
      #DC143C 50%, #DC143C 100%);
}

.about-card-countries {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.015em;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.about-signals {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.about-signals li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-2);
  letter-spacing: 0.01em;
}
.about-signals i {
  color: var(--primary);
  font-size: 14px;
  width: 18px;
  text-align: center;
}

@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; }
}


.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; counter-reset: step; }
.step {
  position: relative;
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  counter-increment: step;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}
.step:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.step::before {
  content: "0" counter(step);
  font-family: var(--mono); font-weight: 700;
  font-size: 13px; color: #fff;
  letter-spacing: 0.1em;
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 13px;
  background: var(--grad-warm);
  border-radius: 99px;
  box-shadow: 0 4px 14px -2px rgba(232, 93, 44, 0.4);
}
.step h4 { font-family: var(--sans); font-weight: 700; font-size: 20px; letter-spacing: -0.025em; color: var(--ink); }
.step p { color: var(--ink-2); font-size: 14px; line-height: 1.6; margin-top: 9px; }

/* ===== PRICING ===== */
.pricing-controls {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.pricing-toggle {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 4px;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.pricing-toggle button {
  padding: 9px 18px;
  border-radius: 7px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-3);
  letter-spacing: -0.005em;
  transition: color 0.2s ease;
  position: relative;
  z-index: 2;
}
.pricing-toggle button.active { color: #fff; }
.pricing-toggle::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  height: calc(100% - 8px);
  width: calc(50% - 4px);
  background: var(--ink);
  border-radius: 7px;
  transition: transform 0.25s cubic-bezier(.2, .8, .2, 1);
  z-index: 1;
}
.pricing-toggle[data-period="year"]::before { transform: translateX(100%); }
.pricing-badge {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--grad-3);
  color: #fff;
  padding: 6px 12px;
  border-radius: 99px;
  white-space: nowrap;
  box-shadow: 0 6px 20px -4px rgba(232, 93, 44, 0.55);
  animation: pulseBadge 2s ease-in-out infinite;
}
@keyframes pulseBadge {
  0%, 100% { transform: scale(1); box-shadow: 0 6px 20px -4px rgba(232, 93, 44, 0.55); }
  50%      { transform: scale(1.06); box-shadow: 0 8px 28px -2px rgba(232, 93, 44, 0.75); }
}

.pricing { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 28px; }
.price {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  display: flex; flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}
.price:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.price.featured {
  border-color: var(--primary);
  background:
    radial-gradient(ellipse 100% 100% at 50% 0%, rgba(232, 93, 44, 0.12), transparent 70%),
    radial-gradient(ellipse 100% 100% at 50% 100%, rgba(74, 124, 89, 0.10), transparent 70%),
    var(--surface);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
  transform: translateY(-4px);
}
.price.featured:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl), var(--shadow-glow-pink);
}
.price-tag {
  position: absolute; top: -1px; right: 22px;
  background: var(--grad-warm);
  color: #fff;
  font-family: var(--mono); font-size: 9px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 7px 13px;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 4px 14px -2px rgba(232, 93, 44, 0.5);
}
.price h4 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.price .desc {
  color: var(--ink-3);
  font-size: 12px;
  margin-top: 6px;
  line-height: 1.55;
  min-height: 36px;
}
.price .amount-block {
  margin-top: 22px;
  min-height: 78px;
}
.price .amount {
  display: flex; align-items: baseline; gap: 5px;
}
.price .amount strong {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 38px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.price.featured .amount strong {
  background: var(--grad);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradShift 5s ease-in-out infinite alternate;
}
.price .amount span {
  color: var(--ink-3);
  font-size: 12px;
  font-family: var(--mono);
  font-weight: 600;
}
.price .billing {
  color: var(--ink-3);
  font-size: 11px;
  margin-top: 6px;
  font-family: var(--mono);
  font-weight: 500;
  line-height: 1.4;
}
.price .billing-strike {
  color: var(--ink-4);
  text-decoration: line-through;
  margin-right: 6px;
}
.price .feats {
  list-style: none;
  margin-top: 22px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: flex; flex-direction: column; gap: 9px;
  flex: 1;
}
.price .feats li {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 13px; color: var(--ink-2);
  line-height: 1.5;
}
.price .feats li::before {
  content: "";
  width: 14px; height: 14px;
  flex-shrink: 0;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--primary-soft);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'><path d='M3.5 7.5l2.5 2.5 4.5-5' stroke='%234f46e5' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-position: center;
  background-repeat: no-repeat;
}
.price .btn {
  margin-top: 20px;
  width: 100%;
  justify-content: center;
}

.pricing-note {
  margin-top: 22px;
  text-align: center;
  font-size: 12px;
  color: var(--ink-3);
  font-family: var(--mono);
  letter-spacing: 0.01em;
  max-width: 76ch;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65;
}

/* ===== FAQ ===== */
.faq-wrap {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 50px;
  align-items: start;
}
.faq-list { display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-q {
  width: 100%;
  display: flex; justify-content: space-between;
  align-items: flex-start; gap: 24px;
  text-align: left;
  font-family: var(--sans);
  font-size: 17px; font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.3;
  color: var(--ink);
}
.faq-q .plus {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s ease;
  margin-top: 2px;
  position: relative;
  background: var(--surface);
}
.faq-q .plus::before, .faq-q .plus::after {
  content: ""; position: absolute;
  background: var(--ink-2);
  transition: transform 0.3s ease;
}
.faq-q .plus::before { width: 9px; height: 1.5px; border-radius: 1px; }
.faq-q .plus::after  { width: 1.5px; height: 9px; border-radius: 1px; }
.faq-item.open .faq-q .plus { 
  background: var(--grad-warm); 
  border-color: transparent; 
  box-shadow: 0 4px 12px -2px rgba(232, 93, 44, 0.4);
}
.faq-item.open .faq-q .plus::before, .faq-item.open .faq-q .plus::after { background: #fff; }
.faq-item.open .faq-q .plus::after { transform: rotate(90deg); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s ease, margin-top 0.3s ease;
  color: var(--ink-2);
  font-size: 14px; line-height: 1.65;
  max-width: 60ch;
}
.faq-item.open .faq-a { max-height: 360px; margin-top: 12px; }

/* ===== CONTACT ===== */
.contact {
  border: 1px solid var(--line-2);
  border-radius: 24px;
  padding: 64px 56px;
  background:
    radial-gradient(ellipse 60% 80% at 80% 0%, rgba(232, 93, 44, 0.14), transparent 60%),
    radial-gradient(ellipse 60% 80% at 0% 100%, rgba(74, 124, 89, 0.12), transparent 60%),
    radial-gradient(ellipse 50% 60% at 50% 50%, rgba(13, 110, 110, 0.08), transparent 60%),
    var(--surface);
  margin-top: 48px;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.contact::before {
  content: ""; position: absolute;
  top: -100px; right: -100px;
  width: 380px; height: 380px;
  border: 1.5px solid rgba(232, 93, 44, 0.12);
  border-radius: 50%;
  animation: spinSlow 30s linear infinite;
}
.contact::after {
  content: ""; position: absolute;
  top: -160px; right: -160px;
  width: 500px; height: 500px;
  border: 1.5px solid rgba(13, 110, 110, 0.08);
  border-radius: 50%;
  animation: spinSlow 45s linear infinite reverse;
}
@keyframes spinSlow { to { transform: rotate(360deg); } }
.contact-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 50px;
  align-items: center;
  position: relative; z-index: 2;
}
.contact h2 {
  font-family: var(--sans); font-weight: 700;
  font-size: clamp(28px, 3.5vw, 42px);
  line-height: 1.1; letter-spacing: -0.035em;
  color: var(--ink);
}
.contact h2 em {
  font-style: normal;
  background: var(--grad);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradShift 6s ease-in-out infinite alternate;
}
.contact p { margin-top: 14px; color: var(--ink-2); font-size: 15px; max-width: 50ch; }
.contact-actions { display: flex; flex-direction: column; gap: 12px; }
.contact-cta {
  display: flex; flex-direction: column;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  padding: 22px;
  transition: all 0.2s ease;
}
.contact-cta:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow); background: var(--surface); }
.contact-cta .lab { font-family: var(--mono); font-size: 10px; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 0.14em; }
.contact-cta .val {
  font-family: var(--sans); font-size: 20px; font-weight: 700;
  margin-top: 5px;
  letter-spacing: -0.025em;
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  color: var(--ink);
}
.contact-cta .val em { font-style: normal; }
.contact-cta .val .arrow { color: var(--primary); font-family: var(--mono); font-weight: 600; }
.contact-cta .desc { font-size: 12px; color: var(--ink-3); margin-top: 4px; }

/* ===== FOOTER ===== */
footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 36px;
  margin-top: 48px;
  position: relative; z-index: 2;
}
.foot-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 44px;
}
.foot-grid p { color: var(--ink-2); font-size: 13px; margin-top: 12px; line-height: 1.6; max-width: 38ch; }
.foot-col h5 {
  font-family: var(--mono); font-size: 10px; font-weight: 700;
  color: var(--ink-3);
  text-transform: uppercase; letter-spacing: 0.14em;
  margin-bottom: 16px;
}
.foot-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.foot-col a { font-size: 13px; color: var(--ink-2); font-weight: 500; transition: color 0.2s ease; }
.foot-col a:hover { color: var(--primary); }
.foot-bot {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 10px; font-weight: 600;
  color: var(--ink-3); letter-spacing: 0.04em;
  flex-wrap: wrap; gap: 12px;
}
.foot-mono em { font-style: normal; color: var(--primary); }

/* Big editorial wordmark */
.big-mark {
  margin: 80px 0 -50px;
  text-align: center;
  font-family: var(--sans); font-weight: 800;
  font-size: clamp(80px, 18vw, 220px);
  line-height: 0.9; letter-spacing: -0.06em;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.18;
  user-select: none;
  animation: bigMarkShift 8s ease-in-out infinite alternate;
}
@keyframes bigMarkShift {
  from { background-position: 0% 50%; }
  to   { background-position: 100% 50%; }
}

/* ===== ENTRANCE ANIMS ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s cubic-bezier(.2, .8, .2, 1), transform 0.8s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: 0.05s; }
.reveal.d2 { transition-delay: 0.10s; }
.reveal.d3 { transition-delay: 0.15s; }
.reveal.d4 { transition-delay: 0.20s; }
.reveal.d5 { transition-delay: 0.25s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .pricing { grid-template-columns: repeat(2, 1fr); }
  .preview-float { display: none; }
}

@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-mobile-toggle { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface); }
  .hero { padding: 110px 0 50px; }
  .arch-frame { padding: 24px 18px; }
  .arch-platforms, .arch-modules, .arch-base { grid-template-columns: 1fr 1fr; }
  .audiences { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .feat.f-1, .feat.f-2, .feat.f-3, .feat.f-4, .feat.f-5, .feat.f-6 { grid-column: span 1; }
  .preview-body { grid-template-columns: 1fr; }
  .pv-side { display: none; }
  .steps { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: 1fr; }
  .faq-wrap { grid-template-columns: 1fr; gap: 28px; }
  .contact { padding: 44px 26px; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  section { padding: 72px 0; }
}

/* ==========================================================================
   SUBPAGE STYLES (v2.0.0)
   Used by every page in /pages/ except home.php
   ========================================================================== */

/* ----- Breadcrumb at top of every subpage ----- */
.breadcrumb-nav {
  padding: 24px 0 0;
  background: var(--bg);
}
.breadcrumb-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}
.breadcrumb-list a {
  color: var(--ink-2);
  text-decoration: none;
  border-bottom: 1px dashed transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.breadcrumb-list a:hover {
  color: var(--primary);
  border-bottom-color: currentColor;
}
.breadcrumb-list [aria-current="page"] {
  color: var(--ink);
  font-weight: 700;
}
.breadcrumb-sep {
  color: var(--ink-4, var(--ink-3));
  opacity: 0.5;
  user-select: none;
}

/* ----- Subpage hero ----- */
.subpage {
  background: var(--bg);
  min-height: 60vh;
}
.subpage-hero {
  padding: 56px 0 40px;
  background:
    radial-gradient(ellipse 700px 320px at 12% 0%, rgba(13, 110, 110, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 600px 280px at 88% 0%, rgba(232, 93, 44, 0.07) 0%, transparent 60%),
    var(--bg);
  position: relative;
}
.subpage-h1 {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--ink);
  margin: 16px 0 20px;
  max-width: 22ch;
}
.subpage-h1 em {
  background: var(--grad-warm);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  font-style: normal;
}
.subpage-lead {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--ink-2);
  line-height: 1.55;
  max-width: 64ch;
  margin: 0 0 8px;
}

/* ----- Detailed features grid (used by /features) ----- */
.features-detailed { padding: 64px 0 96px; }
.features-grid-detailed {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.feature-card-detailed {
  padding: 32px 28px;
}

/* ----- Tech pages grid ----- */
.tech-sections { padding: 56px 0 80px; }
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}
.tech-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}
.tech-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md, 0 8px 24px rgba(0,0,0,0.05));
  border-color: var(--primary-soft);
}
.tech-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--grad-warm);
  color: white;
  display: grid;
  place-items: center;
  font-size: 20px;
}
.tech-card h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}
.tech-card p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0;
}

/* ----- Code snippets in API page ----- */
.code-snippet {
  background: #0d1f1f;
  color: #b8e0e0;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.55;
  padding: 14px 16px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 0;
  white-space: pre;
  border: 1px solid rgba(13, 110, 110, 0.2);
}
.code-snippet code {
  color: inherit;
  background: transparent;
  padding: 0;
}

/* ----- Tech CTA box (inside API/Security) ----- */
.tech-cta-box {
  background: linear-gradient(135deg, var(--primary-soft, rgba(13, 110, 110, 0.08)), var(--bg));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 36px 32px;
  text-align: center;
}
.tech-cta-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.tech-cta-desc {
  font-size: 14px;
  color: var(--ink-2);
  margin: 0 0 20px;
  line-height: 1.55;
}
.tech-docs-note {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  margin: 16px 0 0;
}

/* ----- Status page ----- */
.status-banner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 24px;
}
.status-banner.status-operational {
  background: rgba(74, 124, 89, 0.12);
  color: var(--accent, #4a7c59);
  border: 1px solid rgba(74, 124, 89, 0.3);
}
.status-banner i { font-size: 18px; }
.sr-only-mirror {
  /* Visible h1 mirrored for accessibility — hidden visually since the
     status banner already shows the same headline */
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.status-uptime-row {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 32px;
}
.status-uptime-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 16px 24px;
}
.status-uptime-label {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}
.status-uptime-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--accent, #4a7c59);
  letter-spacing: -0.02em;
  margin-top: 4px;
}
.status-full-link {
  color: var(--primary);
  font-family: var(--mono);
  font-size: 13px;
  text-decoration: none;
  border-bottom: 1px dashed currentColor;
}
.status-full-link:hover { color: var(--cta-2); }
.status-components { padding: 24px 0 80px; }
.status-list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  gap: 16px;
}
.status-row:last-child { border-bottom: none; }
.status-row-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
}
.status-row-desc {
  font-size: 13px;
  color: var(--ink-3);
  margin-top: 2px;
}
.status-row-state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.status-row-state.status-state-operational {
  color: var(--accent, #4a7c59);
}

/* ----- Changelog ----- */
.changelog-stream { padding: 32px 0 80px; }
.changelog-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.changelog-entry {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  padding: 28px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.changelog-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}
.changelog-date {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}
.changelog-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.changelog-tag.tag-launch {
  background: rgba(232, 93, 44, 0.15);
  color: var(--cta-2);
}
.changelog-tag.tag-feature {
  background: rgba(13, 110, 110, 0.12);
  color: var(--primary);
}
.changelog-tag.tag-beta {
  background: rgba(74, 124, 89, 0.12);
  color: var(--accent, #4a7c59);
}
.changelog-title {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  color: var(--ink);
}
.changelog-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0;
}

@media (max-width: 720px) {
  .changelog-entry { grid-template-columns: 1fr; gap: 12px; padding: 22px 20px; }
}

/* ----- Security grid ----- */
.security-grid-section { padding: 32px 0 80px; }
.security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-bottom: 48px;
}
.security-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}
.security-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary-soft);
  box-shadow: 0 6px 20px rgba(0,0,0,0.04);
}
.security-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(13, 110, 110, 0.08);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: 18px;
}
.security-card-title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}
.security-card-desc {
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0;
}

/* ----- Legal pages: TOC sidebar + prose ----- */
.subpage-hero-legal {
  padding-bottom: 32px;
}
.subpage-h1-legal {
  font-size: clamp(32px, 4.5vw, 52px);
  margin-bottom: 16px;
}
.legal-review-note {
  background: rgba(232, 93, 44, 0.08);
  border: 1px solid rgba(232, 93, 44, 0.3);
  border-left: 4px solid var(--cta);
  border-radius: 6px;
  padding: 14px 18px;
  margin-top: 24px;
  font-size: 13px;
  color: var(--ink);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  line-height: 1.55;
  max-width: 720px;
}
.legal-review-note i {
  color: var(--cta-2);
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}

.legal-content { padding: 32px 0 80px; }
.legal-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 56px;
  align-items: start;
}
.legal-toc {
  position: sticky;
  top: 100px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}
.legal-toc-inner {
  border-left: 2px solid var(--line);
  padding: 8px 0 8px 20px;
}
.legal-toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  counter-reset: toc-counter;
}
.legal-toc-list li {
  counter-increment: toc-counter;
}
.legal-toc-list a {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-2);
  text-decoration: none;
  line-height: 1.45;
  display: block;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.legal-toc-list a:hover {
  color: var(--primary);
}

.legal-prose {
  max-width: 720px;
}
.legal-section {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 100px;
}
.legal-section:last-child {
  border-bottom: none;
}
.legal-section-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  color: var(--ink);
}
.legal-section-body {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
  margin: 0;
}

/* Cookie table */
.legal-table-wrap {
  overflow-x: auto;
  margin-top: 16px;
}
.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.legal-table th,
.legal-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.legal-table th {
  background: var(--surface-2, var(--surface));
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-2);
}
.legal-table code {
  background: var(--surface-3, rgba(0,0,0,0.04));
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 12px;
}
.cookie-type {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.cookie-type-essential {
  background: rgba(13, 110, 110, 0.12);
  color: var(--primary);
}
.cookie-type-optional {
  background: rgba(232, 93, 44, 0.12);
  color: var(--cta-2);
}

@media (max-width: 900px) {
  .legal-layout { grid-template-columns: 1fr; gap: 32px; }
  .legal-toc {
    position: static;
    max-height: none;
  }
  .legal-toc-inner {
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 4px solid var(--primary);
    border-radius: 8px;
    padding: 16px 20px;
  }
}

/* ----- Subpage CTA band ----- */
.subpage-cta {
  padding: 64px 0 80px;
  background: linear-gradient(135deg, var(--primary-soft, rgba(13, 110, 110, 0.06)), var(--bg));
  border-top: 1px solid var(--line);
}
.subpage-cta-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.subpage-cta-title {
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0 0 12px;
}
.subpage-cta-sub {
  font-size: 16px;
  color: var(--ink-2);
  margin: 0 0 28px;
  line-height: 1.55;
}
.subpage-cta-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ----- 404 page ----- */
.subpage-404-hero {
  padding: 100px 0 120px;
  text-align: center;
}
.p404-num {
  font-family: var(--mono);
  font-size: clamp(80px, 14vw, 160px);
  font-weight: 800;
  background: var(--grad-warm);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 20px;
  letter-spacing: -0.04em;
}
.subpage-404-hero .subpage-h1 { margin-left: auto; margin-right: auto; max-width: 16ch; }
.subpage-404-hero .subpage-lead { margin-left: auto; margin-right: auto; }
.subpage-404-hero .btn { margin-top: 28px; display: inline-flex; }
