/* ============================================================
   REIN INS REGAL! — Website Design System
   Brand Kit v2.0 · Light / Premium · Neon as accent
============================================================ */

:root {
  /* Brand accents (neon — used sparingly, never as glow on light) */
  --pink: #FF3DB5;            /* bright brand pink — fills, dots, decorative */
  --pink-deep: #BD1370;       /* text-safe magenta — accent text + primary CTA */
  --cyan: #5BD8FF;            /* bright brand cyan — decorative on dark only */
  --cyan-deep: #0E7FA6;       /* text-safe cyan — sparing accent on light */

  /* Legacy aliases (kept so older inline styles resolve) */
  --neon-pink: #FF3DB5; --neon-pink-hot: #FF1493; --neon-pink-soft: #C0156F;
  --neon-cyan: #5BD8FF; --neon-cyan-hot: #00BFFF;

  /* Surfaces (light) — repurposed legacy names so all pages flip */
  --night-0: #FFFFFF;         /* base white section */
  --night-1: #FAFAFC;         /* near-white */
  --night-2: #F4F4F8;         /* light tinted surface / soft cards */
  --night-3: #ECEBF2;         /* slightly more contrasting surface */
  --night-line: #E4E2EC;      /* hairline on light */
  --line-strong: #D6D3E0;

  /* Ink (text on light) — anthracite, WCAG-tuned */
  --ink-0: #14121C;           /* headings — deep anthracite */
  --ink-1: #2E2B3A;           /* strong body */
  --ink-2: #57536A;           /* secondary text (AA on white) */
  --ink-3: #8A85A0;           /* muted / mono labels */

  /* Type */
  --f-display: "Sora", system-ui, sans-serif;
  --f-body: "Manrope", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  /* Layout */
  --maxw: 1180px;
  --pad: clamp(22px, 5vw, 72px);

  --accent: var(--pink-deep);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--night-0);
  color: var(--ink-1);
  font-family: var(--f-body);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Ambient backdrop — barely-there, premium calm */
body::before {
  content: "";
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% -10%, rgba(189,19,112,0.035), transparent 60%),
    radial-gradient(ellipse 60% 50% at 100% 110%, rgba(14,127,166,0.03), transparent 60%),
    var(--night-0);
  z-index: -3;
  pointer-events: none;
}
body::after { content: none; }

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 800;
  color: var(--ink-0);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
}
h2 { font-size: clamp(32px, 4.4vw, 56px); margin-bottom: 22px; }
h3 { font-size: clamp(21px, 2.1vw, 27px); margin-bottom: 12px; letter-spacing: -0.015em; }
h4 { font-size: 16px; font-weight: 700; letter-spacing: 0.03em; }
p { margin: 0 0 1em; color: var(--ink-2); max-width: 64ch; text-wrap: pretty; }
p.lead { color: var(--ink-1); font-size: clamp(18px, 1.5vw, 22px); line-height: 1.62; font-weight: 400; }
a { color: inherit; }

/* Accent highlight words — flat, readable, no glow */
.cyan { color: var(--cyan-deep); }
.pink { color: var(--pink-deep); }

.eyebrow {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  font-weight: 500;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px; border-radius: 2px;
  background: var(--pink-deep);
}
.eyebrow.pink { color: var(--ink-3); }
.eyebrow.pink::before { background: var(--pink-deep); }
.eyebrow.cyan-line::before { background: var(--cyan-deep); }

/* ---------- LAYOUT ---------- */
section { padding: clamp(78px, 10vw, 150px) var(--pad); position: relative; }
.wrap { max-width: var(--maxw); margin: 0 auto; position: relative; }
.wrap-narrow { max-width: 880px; margin: 0 auto; position: relative; }
.section-head { margin-bottom: clamp(44px, 5.5vw, 80px); max-width: 780px; }
hr.div { border: 0; height: 0; margin: 0; }

/* Section background rhythm: white → tinted → white */
.bg-tint { background: var(--night-2); }
.bg-soft { background: var(--night-1); }

/* Dark "moment" band — brand neon comes alive here */
.on-dark {
  --night-0: #0A0814;
  --night-1: #100D1E;
  --night-2: #16122A;
  --night-3: #1E1838;
  --night-line: #2C2650;
  --ink-0: #FFFFFF;
  --ink-1: #E8E4F5;
  --ink-2: #B8B2CF;
  --ink-3: #847FA0;
  background: #0A0814;
  color: var(--ink-1);
}
.on-dark .cyan { color: var(--cyan); text-shadow: 0 0 18px rgba(91,216,255,0.45); }
.on-dark .pink { color: var(--pink); text-shadow: 0 0 18px rgba(255,61,181,0.45); }
.on-dark .eyebrow { color: var(--cyan); }
.on-dark .eyebrow::before { background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.on-dark .eyebrow.pink { color: var(--pink); }
.on-dark .eyebrow.pink::before { background: var(--pink); box-shadow: 0 0 10px var(--pink); }

/* ---------- TOP NAV ---------- */
header.top {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 60;
  padding: 20px var(--pad);
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(180deg, rgba(255,255,255,0.86), rgba(255,255,255,0));
  backdrop-filter: blur(10px);
  transition: padding .3s, background .3s, box-shadow .3s;
}
header.top.scrolled {
  padding-top: 12px; padding-bottom: 12px;
  background: rgba(255,255,255,0.9);
  border-bottom: 1px solid var(--night-line);
  box-shadow: 0 6px 24px -18px rgba(20,18,28,0.4);
}
.top .mark {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.01em;
  color: var(--ink-0);
  display: flex; align-items: center; gap: 11px;
  text-decoration: none;
}
.top .mark .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 0 4px rgba(255,61,181,0.12);
}
.top .mark .cyan-w { color: var(--pink-deep); }
.top nav {
  display: flex; gap: 30px; align-items: center;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.top nav a { color: inherit; text-decoration: none; transition: color .2s; position: relative; }
.top nav a:hover, .top nav a.active { color: var(--ink-0); }
.top nav a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 2px; border-radius: 2px;
  background: var(--pink-deep);
}
.top .nav-cta {
  font-family: var(--f-display); font-weight: 700; font-size: 13px; letter-spacing: 0.01em;
  text-transform: none; padding: 11px 20px; border-radius: 999px;
  background: var(--ink-0); color: #fff !important;
  transition: transform .15s, box-shadow .2s, background .2s;
}
.top .nav-cta:hover { transform: translateY(-1px); background: var(--pink-deep); box-shadow: 0 10px 24px -10px rgba(189,19,112,0.6); }
/* language toggle */
.lang-switch {
  display: inline-flex; align-items: center; gap: 2px; padding: 3px;
  border: 1px solid var(--night-line); border-radius: 999px; background: var(--night-2);
}
.lang-switch button {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 11px; border: 0; border-radius: 999px; background: transparent;
  color: var(--ink-3); cursor: pointer; transition: all .2s; line-height: 1;
}
.lang-switch button.on { background: #fff; color: var(--ink-0); box-shadow: 0 1px 4px rgba(20,18,28,0.12); }
.lang-switch button:hover:not(.on) { color: var(--ink-1); }

.nav-toggle { display: none; }
@media (max-width: 980px) {
  .top nav { display: none; }
  .top nav.open {
    display: flex; flex-direction: column; align-items: flex-start; gap: 18px;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(255,255,255,0.98); padding: 24px var(--pad) 32px;
    border-bottom: 1px solid var(--night-line);
    box-shadow: 0 24px 48px -28px rgba(20,18,28,0.5);
  }
  .nav-toggle {
    display: inline-grid; place-items: center; width: 42px; height: 42px;
    background: transparent; border: 1px solid var(--night-line); border-radius: 10px;
    color: var(--ink-1); cursor: pointer;
  }
  .nav-toggle svg { width: 20px; height: 20px; }
}

/* ---------- BUTTONS ---------- */
.btn {
  font-family: var(--f-display);
  font-weight: 700; font-size: 15px; letter-spacing: 0.01em;
  padding: 15px 28px; border-radius: 999px;
  border: 1.5px solid transparent; background: transparent;
  cursor: pointer; color: var(--ink-0); text-decoration: none;
  display: inline-flex; align-items: center; gap: 10px;
  transition: transform .15s, box-shadow .25s, background .2s, border-color .2s, color .2s;
}
.btn svg { width: 17px; height: 17px; }
/* PRIMARY — the single dominant action */
.btn-primary {
  background: var(--pink-deep); color: #fff;
  box-shadow: 0 12px 30px -12px rgba(189,19,112,0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 38px -12px rgba(189,19,112,0.7); }
/* SECONDARY — visually subordinate, quiet outline */
.btn-secondary {
  border-color: var(--line-strong); color: var(--ink-1); background: transparent;
}
.btn-secondary:hover { border-color: var(--ink-0); color: var(--ink-0); background: rgba(20,18,28,0.03); }
.btn-ghost { border-color: transparent; color: var(--ink-2); padding-left: 8px; padding-right: 8px; }
.btn-ghost:hover { color: var(--pink-deep); }
.btn-lg { padding: 18px 36px; font-size: 17px; }

/* On dark bands, primary stays bright pink, secondary becomes light outline */
.on-dark .btn-primary { background: var(--pink); box-shadow: 0 0 0 1px var(--pink), 0 0 28px rgba(255,61,181,0.45); }
.on-dark .btn-secondary { border-color: rgba(255,255,255,0.3); color: #fff; }
.on-dark .btn-secondary:hover { border-color: #fff; background: rgba(255,255,255,0.06); }

/* ---------- BADGES ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.13em; text-transform: uppercase;
}
.badge .pip { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.cyan { background: rgba(14,127,166,0.08); color: var(--cyan-deep); border: 1px solid rgba(14,127,166,0.22); }
.badge.pink { background: rgba(189,19,112,0.07); color: var(--pink-deep); border: 1px solid rgba(189,19,112,0.2); }
.badge.muted { background: var(--night-2); color: var(--ink-2); border: 1px solid var(--night-line); }

/* ---------- CARDS (lighter, calmer) ---------- */
.card {
  background: var(--night-0);
  border: 1px solid var(--night-line);
  border-radius: 16px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: transform .3s cubic-bezier(.2,.8,.3,1), border-color .3s, box-shadow .3s;
}
.card::after { content: none; }
.card .num {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.16em;
  color: var(--pink-deep); margin-bottom: 16px;
}
.card h3 { margin-bottom: 10px; }
.card p { font-size: 15.5px; margin: 0; color: var(--ink-2); }
.card .stripe { display: none; }
.tilt:hover { border-color: var(--line-strong); box-shadow: 0 28px 60px -38px rgba(20,18,28,0.35); transform: translateY(-3px); }
.bg-tint .card { background: #fff; }

/* Icon chips — quiet, monochrome */
.icon-chip {
  width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: 20px;
  background: var(--night-2); border: 1px solid var(--night-line);
}
.icon-chip svg {
  width: 24px; height: 24px; fill: none;
  stroke: var(--ink-0); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
  filter: none;
}
.icon-chip.pink svg { stroke: var(--pink-deep); filter: none; }

/* ---------- SCROLL PROGRESS BAR ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%;
  background: var(--pink-deep);
  z-index: 70; transition: width .1s linear;
}

/* ---------- MOTION / REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.16,.84,.3,1), transform .8s cubic-bezier(.16,.84,.3,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }
.reveal-scale { opacity: 0; transform: scale(.96) translateY(18px); transition: opacity .8s ease, transform .8s cubic-bezier(.16,.84,.3,1); }
.reveal-scale.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal, .reveal-scale { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---------- STATS (free-standing, fewer boxes) ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 4vw, 56px); }
@media (max-width: 760px) { .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 36px 24px; } }
.stat { background: transparent; border: 0; padding: 0; text-align: left; }
.stat + .stat { position: relative; }
.stat .big {
  font-family: var(--f-display); font-weight: 800; font-size: clamp(44px, 5vw, 64px);
  line-height: 1; color: var(--ink-0); letter-spacing: -0.035em;
}
.stat .big .unit { color: var(--pink-deep); }
.stat .lbl {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-2); margin-top: 14px; line-height: 1.5;
}

/* ---------- FOOTER (the consistent dark brand anchor) ---------- */
footer.site {
  padding: 80px var(--pad) 56px;
  position: relative;
  background: #0A0814;
  color: #B8B2CF;
}
.footer-grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 48px;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }
footer.site p { color: #B8B2CF; }
footer.site .mark-line {
  font-family: var(--f-display); font-weight: 800; font-size: 22px; color: #fff; margin-bottom: 14px;
}
footer.site .mark-line .cyan { color: var(--cyan); }
footer.site .mark-line .pink { color: var(--pink); }
footer.site .f-col h4 {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: #847FA0; margin-bottom: 18px; font-weight: 500;
}
footer.site .f-col a {
  display: block; color: #B8B2CF; text-decoration: none; font-size: 15px;
  margin-bottom: 12px; transition: color .2s; width: fit-content;
}
footer.site .f-col a:hover { color: var(--cyan); }
footer.site .copy {
  max-width: var(--maxw); margin: 56px auto 0; padding-top: 28px;
  border-top: 1px solid #2C2650;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: #847FA0;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}

/* ---------- PAGE HERO (subpages) ---------- */
.page-hero { padding-top: clamp(150px, 17vh, 210px); padding-bottom: clamp(48px, 6vw, 84px); }
.page-hero h1 { font-size: clamp(40px, 6vw, 78px); line-height: 1.0; margin-bottom: 24px; }
.page-hero p.lead { max-width: 60ch; }

/* ---------- UTILITIES ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }
.center { text-align: center; }
.mt-s { margin-top: 14px; } .mt-m { margin-top: 28px; } .mt-l { margin-top: 48px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.cta-row.center { justify-content: center; }

/* ---------- LEGAL PAGES ---------- */
.legal-content {
  max-width: 820px; margin: 0 auto;
  padding: clamp(140px, 17vh, 200px) var(--pad) clamp(70px, 9vw, 120px);
  position: relative;
}
.legal-content h2 { font-size: clamp(34px, 5vw, 56px); margin-bottom: 16px; }
.legal-content > p { color: var(--ink-2); font-size: 16px; line-height: 1.7; max-width: 70ch; }
.legal-section { margin-top: 44px; padding-top: 32px; border-top: 1px solid var(--night-line); }
.legal-section h3 {
  font-size: clamp(19px, 2.3vw, 25px); margin-bottom: 14px; color: var(--ink-0);
  letter-spacing: -0.02em;
}
.legal-section h4 {
  font-family: var(--f-display); font-size: 16px; font-weight: 700; color: var(--pink-deep);
  margin: 24px 0 8px; letter-spacing: -0.005em; text-transform: none;
}
.legal-content p { font-size: 15.5px; line-height: 1.75; color: var(--ink-2); margin-bottom: 14px; max-width: 72ch; }
.legal-content strong { color: var(--ink-1); font-weight: 700; }
.legal-content a {
  color: var(--pink-deep); text-decoration: none;
  border-bottom: 1px solid rgba(189,19,112,0.3); transition: border-color .2s, color .2s; word-break: break-word;
}
.legal-content a:hover { border-color: var(--pink-deep); }
.legal-content hr { border: 0; height: 1px; background: var(--night-line); margin: 38px 0; }
.cookiebot-declaration-container {
  margin-top: 22px; padding: 22px; border: 1px solid var(--night-line); border-radius: 14px;
  background: var(--night-2); font-size: 14px;
}

/* ---------- READABILITY MODE: "Ruhig" (calm) — default ---------- */
/* In the light system, calm simply removes the few remaining accent flourishes. */
body.calm .eyebrow::before { background: var(--ink-3); }
body.calm .on-dark .cyan { text-shadow: none; }
body.calm .on-dark .pink { text-shadow: none; }
