/* =========================================================
   regulation-ai.eu — Main CSS
   Design: Signal (Spectral + Space Grotesk, gold accent)
   ========================================================= */

/* ---- Keyframe Animations ---- */
@keyframes scSpin    { from { transform: rotate(0); }    to { transform: rotate(360deg); } }
@keyframes scSpinRev { from { transform: rotate(0); }    to { transform: rotate(-360deg); } }
@keyframes scTicker  { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes scFloat   { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-22px); } }
@keyframes scGlow    { 0%,100% { opacity:.55; } 50% { opacity:1; } }
@keyframes scBlink   { 0%,100% { opacity:1; } 50% { opacity:.25; } }
@keyframes scReveal  { from { opacity:0; transform:translateY(28px); } to { opacity:1; transform:none; } }

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:         #f6f4ee;
  --text:       #111a2e;
  --text-muted: #5a5648;
  --accent:     #f4c20d;
  --dark:       #0a1f44;
  --darker:     #06070f;
  --blue-light: #8fb2ff;
  --green:      #3ddc84;
  --secondary:  #5b9bd8;
  /* legacy aliases kept for tool/faq/table components */
  --blue-900:  #0a1f44;
  --blue-700:  #1e3a5f;
  --blue-500:  #2b5797;
  --sky-400:   #8fb2ff;
  --amber-500: #f59e0b;
  --red-600:   #dc2626;
  --green-600: #16a34a;
  --slate-50:  #f6f4ee;
  --slate-100: #ede9e0;
  --slate-200: #ddd8ce;
  --slate-300: #c8c2b5;
  --slate-600: #5a5648;
  --slate-700: #3d3928;
  --slate-900: #111a2e;
  --font-sans: 'Space Grotesk', system-ui, sans-serif;
  --font-serif:'Spectral', Georgia, serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --radius:    4px;
  --shadow-sm: 0 1px 4px rgba(0,0,0,.08);
  --shadow-md: 0 6px 28px rgba(0,0,0,.14);
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue-500); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.3;
  color: var(--dark);
  margin-top: 2rem;
  margin-bottom: .75rem;
}
h1 { font-size: clamp(1.875rem, 4vw, 2.75rem); margin-top: 0; }
h2 { font-size: clamp(1.375rem, 3vw, 1.875rem); border-bottom: 1px solid var(--slate-200); padding-bottom: .4rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }

p  { margin-bottom: 1.2rem; }
ul, ol { margin: 0 0 1.2rem 1.4rem; }
li { margin-bottom: .35rem; }

blockquote {
  border-left: 3px solid var(--accent);
  padding: .75rem 1.25rem;
  margin: 1.5rem 0;
  background: rgba(244,194,13,.07);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--slate-700);
  font-style: italic;
}

code {
  font-family: var(--font-mono);
  font-size: .875em;
  background: var(--slate-100);
  padding: .15em .4em;
  border-radius: 3px;
  color: var(--blue-700);
}
pre {
  background: var(--darker);
  color: var(--blue-light);
  padding: 1.25rem;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 1.5rem 0;
  font-size: .875rem;
}
pre code { background: none; padding: 0; color: inherit; }
strong { font-weight: 700; }

/* ---- Layout ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.container--narrow { max-width: 800px; }

/* ---- Scroll Reveal ---- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}
[data-reveal].revealed { opacity: 1; transform: none; }

/* ---- Utility Strip ---- */
.utility-strip {
  background: #081229;
  color: #b9c4e6;
  font-family: var(--font-sans);
  font-size: .75rem;
  letter-spacing: .06em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: .625rem 1.5rem;
  border-bottom: 1px solid rgba(150,180,255,.08);
  white-space: nowrap;
  overflow: hidden;
}
.utility-strip__dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: scBlink 2s infinite;
  flex-shrink: 0;
}
.utility-strip__days { color: var(--accent); font-weight: 700; }
.utility-strip a { color: rgba(255,255,255,.45); }
.utility-strip a:hover { color: rgba(255,255,255,.8); text-decoration: none; }

/* ---- Navigation (Glassmorphism) ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(7,12,28,.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(150,180,255,.1);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
  padding: 0 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
  gap: 1rem;
}
.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  color: #fff;
  text-decoration: none;
  flex-shrink: 0;
}
.nav__logo-ring {
  width: 28px; height: 28px;
  animation: scSpin 26s linear infinite;
  flex-shrink: 0;
}
.nav__logo-text {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  white-space: nowrap;
}
.nav__logo-text em { color: var(--accent); font-style: normal; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0; padding: 0;
}
.nav__links a {
  color: rgba(255,255,255,.72);
  font-size: .875rem;
  font-weight: 500;
  font-family: var(--font-sans);
  transition: color .15s;
}
.nav__links a:hover { color: #fff; text-decoration: none; }
.nav__links a.active { color: var(--accent); }
.nav__cta {
  background: var(--accent) !important;
  color: var(--dark) !important;
  padding: .45rem 1rem !important;
  border-radius: var(--radius) !important;
  font-weight: 700 !important;
  font-size: .8125rem !important;
  transition: opacity .15s !important;
}
.nav__cta:hover { opacity: .88 !important; text-decoration: none !important; }

/* Lang switcher */
.nav__lang {
  position: relative;
  flex-shrink: 0;
}
.nav__lang-btn {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.7);
  font-family: var(--font-sans);
  font-size: .8125rem;
  font-weight: 600;
  padding: .35rem .75rem;
  border-radius: var(--radius);
  cursor: pointer;
  letter-spacing: .04em;
}
.nav__lang-btn:hover { background: rgba(255,255,255,.14); }
.nav__lang-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #0d1629;
  border: 1px solid rgba(150,180,255,.18);
  border-radius: var(--radius);
  padding: .35rem;
  min-width: 220px;
  max-height: 320px;
  overflow-y: auto;
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
  z-index: 50;
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}
.nav__lang-dropdown a {
  display: block;
  padding: .4rem .625rem;
  color: rgba(255,255,255,.72);
  font-size: .8125rem;
  font-family: var(--font-sans);
  border-radius: .375rem;
  white-space: nowrap;
}
.nav__lang-dropdown a:hover { color: #fff; background: rgba(255,255,255,.08); text-decoration: none; }
.nav__lang-dropdown a.nav__lang-all {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: .25rem;
  padding-top: .5rem;
  color: rgba(255,255,255,.45);
  font-size: .75rem;
}
.nav__lang.open .nav__lang-dropdown { display: grid; }

/* Mobile toggle */
.nav__menu-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,.2);
  cursor: pointer;
  padding: .35rem .6rem;
  color: #fff;
  font-size: 1.2rem;
  border-radius: var(--radius);
}

/* ---- Page Hero (inner pages) ---- */
.page-hero {
  background: linear-gradient(150deg, var(--darker) 0%, var(--dark) 100%);
  color: #fff;
  padding: 3.5rem 1.5rem 4rem;
  position: relative;
  overflow: hidden;
}
/* subtle glow */
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 72% 42%, rgba(70,110,255,.22), transparent 52%),
              radial-gradient(circle at 18% 80%, rgba(70,110,255,.1), transparent 50%);
  pointer-events: none;
}
.page-hero__inner { max-width: 900px; margin: 0 auto; position: relative; }
.page-hero__breadcrumbs {
  font-size: .8125rem;
  color: rgba(255,255,255,.55);
  margin-bottom: .875rem;
  font-family: var(--font-sans);
}
.page-hero__breadcrumbs a { color: rgba(255,255,255,.65); }
.page-hero__breadcrumbs span { margin: 0 .4rem; }
.page-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(244,194,13,.15);
  color: var(--accent);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: .28em .85em;
  border-radius: 99px;
  border: 1px solid rgba(244,194,13,.3);
  margin-bottom: 1rem;
  font-family: var(--font-sans);
}
.page-hero h1 { color: #fff; font-family: var(--font-serif); margin-top: .5rem; }
.page-hero__meta {
  display: flex;
  align-items: center;
  gap: .875rem;
  margin-top: 1rem;
  font-size: .8125rem;
  color: rgba(255,255,255,.55);
  font-family: var(--font-sans);
}
.page-hero__meta time { color: rgba(255,255,255,.8); }

/* ---- Content layout (pillar: 2-col) ---- */
.content-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}
@media (min-width: 900px) {
  .content-layout--sidebar {
    grid-template-columns: 210px 1fr;
    align-items: start;
  }
}

/* ---- Sidebar TOC ---- */
.toc {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 1.25rem;
  position: sticky;
  top: 82px;
  font-size: .875rem;
}
.toc__title {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-muted);
  margin-bottom: .75rem;
  margin-top: 0;
  border: none;
  padding: 0;
  font-family: var(--font-sans);
}
.toc__list { list-style: none; margin: 0; padding: 0; }
.toc__list li { margin-bottom: .4rem; }
.toc__list a { color: var(--slate-700); line-height: 1.4; display: block; font-family: var(--font-sans); font-size: .8375rem; }
.toc__list a:hover { color: var(--dark); }
.toc__list a.active { color: var(--dark); font-weight: 600; }

/* ---- Article body ---- */
.article-body { min-width: 0; }
.article-body h2 { scroll-margin-top: 82px; }
.article-body h3 { scroll-margin-top: 82px; }

.article-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: .875rem;
  margin: 1.5rem 0;
  display: block;
  overflow-x: auto;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.article-body table th {
  background: var(--dark);
  color: #fff;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  padding: .75rem 1rem;
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
  font-family: var(--font-sans);
}
.article-body table td {
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--slate-200);
  vertical-align: top;
  line-height: 1.5;
}
.article-body table tr:last-child td { border-bottom: none; }
.article-body table tr:hover td { background: var(--slate-50); }

/* ---- Deadline table ---- */
.deadline-section { margin: 2.5rem 0; }
.deadline-section h2 { margin-top: 0; }
.deadline-table-wrap { overflow-x: auto; }
.deadline-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .875rem;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.deadline-table th {
  background: var(--dark);
  color: #fff;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  padding: .75rem 1rem;
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
  font-family: var(--font-sans);
}
.deadline-table td {
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--slate-200);
  vertical-align: top;
}
.deadline-table tr:last-child td { border-bottom: none; }
.deadline-table tr:hover td { background: var(--slate-50); }

/* Status badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: .2em .65em;
  border-radius: 99px;
  font-family: var(--font-sans);
}
.status--active    { background: #dcfce7; color: var(--green-600); }
.status--deferred  { background: #fef3c7; color: #92400e; }
.status--prohibited{ background: #fee2e2; color: var(--red-600); }

/* Countdown chip */
.countdown-chip {
  display: inline-block;
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  border-radius: 4px;
  padding: .15em .55em;
  font-size: .75rem;
  font-weight: 700;
  color: var(--slate-700);
  font-variant-numeric: tabular-nums;
  font-family: var(--font-sans);
}
.countdown-chip[data-urgent="true"] {
  background: rgba(244,194,13,.18);
  border-color: var(--accent);
  color: #7a5c00;
}
.countdown-chip--past { background: #fee2e2; border-color: var(--red-600); color: var(--red-600); }

/* ---- FAQ Section ---- */
.faq-section { margin: 3rem 0; }
.faq-section h2 { margin-top: 0; }
.faq-item {
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  margin-bottom: .625rem;
  overflow: hidden;
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  background: #fff;
  cursor: pointer;
  font-weight: 600;
  font-size: .9375rem;
  gap: 1rem;
  user-select: none;
  font-family: var(--font-sans);
}
.faq-question:hover { background: var(--slate-50); }
.faq-chevron { flex-shrink: 0; transition: transform .2s; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-answer {
  display: none;
  padding: 1rem 1.25rem 1.25rem;
  background: var(--slate-50);
  border-top: 1px solid var(--slate-200);
  font-size: .9375rem;
}
.faq-item.open .faq-answer { display: block; }

/* ---- Cross-link DORA ---- */
.crosslink-dora {
  background: linear-gradient(135deg, var(--dark) 0%, var(--blue-700) 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  margin: 2.5rem 0;
}
.crosslink-dora__icon {
  flex-shrink: 0;
  width: 48px; height: 48px;
  background: rgba(244,194,13,.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.crosslink-dora__title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 .4rem;
  border: none;
  padding: 0;
  font-family: var(--font-serif);
}
.crosslink-dora__text {
  font-size: .875rem;
  color: rgba(255,255,255,.8);
  margin: 0 0 .75rem;
}
.crosslink-dora__link {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  background: var(--accent);
  color: var(--dark);
  padding: .45rem .9rem;
  border-radius: var(--radius);
  font-size: .825rem;
  font-weight: 700;
  transition: opacity .15s;
  font-family: var(--font-sans);
}
.crosslink-dora__link:hover { opacity: .88; text-decoration: none; }

/* ---- Lead Capture CTA ---- */
.lead-cta {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  margin: 2.5rem 0;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.lead-cta h3 { margin-top: 0; }
.lead-cta__form {
  display: flex;
  gap: .5rem;
  max-width: 440px;
  margin: 1rem auto 0;
}
.lead-cta__input {
  flex: 1;
  padding: .65rem .9rem;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius);
  font-size: .9rem;
  font-family: var(--font-sans);
  background: var(--bg);
}
.lead-cta__input:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.lead-cta__btn {
  background: var(--dark);
  color: #fff;
  border: none;
  padding: .65rem 1.25rem;
  border-radius: var(--radius);
  font-size: .875rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  font-family: var(--font-sans);
  transition: opacity .15s;
}
.lead-cta__btn:hover { opacity: .82; }
.lead-cta__note { font-size: .75rem; color: var(--text-muted); margin-top: .5rem; font-family: var(--font-sans); }

/* Lead states */
.lead-cta__success {
  background: #f0fdf4;
  border: 1px solid var(--green-600);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  color: #14532d;
  font-size: .9375rem;
  text-align: center;
}
.lead-cta__dl-link { color: var(--green-600); font-weight: 700; }
.lead-cta__error { color: var(--red-600); font-size: .8125rem; margin-top: .4rem; }
.lead-cta__form--inline { flex-direction: row; max-width: 100%; }

/* ---- Callout boxes ---- */
.callout {
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  display: flex;
  gap: .75rem;
}
.callout--info    { background: rgba(43,87,151,.07); border-left: 3px solid var(--blue-500); }
.callout--warn    { background: rgba(244,194,13,.1); border-left: 3px solid var(--accent); }
.callout--danger  { background: #fef2f2; border-left: 3px solid var(--red-600); }
.callout--success { background: #f0fdf4; border-left: 3px solid var(--green-600); }
.callout__body p:last-child { margin-bottom: 0; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .7rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .9375rem;
  font-family: var(--font-sans);
  transition: all .18s;
  text-decoration: none;
  cursor: pointer;
}
.btn--primary { background: var(--accent); color: var(--dark); }
.btn--primary:hover { opacity: .88; text-decoration: none; }
.btn--outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.5); }
.btn--outline:hover { border-color: #fff; background: rgba(255,255,255,.1); text-decoration: none; }
.btn--dark { background: var(--dark); color: #fff; }
.btn--dark:hover { opacity: .85; text-decoration: none; }

/* ---- Section generic ---- */
.section { padding: 4rem 1.5rem; }
.section--alt { background: #fff; }
.section--dark { background: var(--dark); color: #fff; }
.section--darker { background: var(--darker); color: #fff; }
.section__title { text-align: center; margin-bottom: 3rem; }
.section__title h2 { margin-top: 0; border: none; padding: 0; }
.section__title p { color: var(--text-muted); margin-top: .5rem; }
.section__label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .5rem;
  font-family: var(--font-sans);
}

/* ---- Homepage Hero ---- */
.home-hero {
  background: linear-gradient(150deg, var(--darker) 0%, var(--dark) 100%);
  color: #fff;
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 5rem 1.5rem 0;
}
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.home-hero__orbit {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-52%);
  width: min(560px, 55vw);
  height: min(560px, 55vw);
  pointer-events: none;
}
.home-hero__orbit svg { width: 100%; height: 100%; filter: drop-shadow(0 0 7px rgba(244,194,13,.5)); animation: scSpin 48s linear infinite; }
.home-hero__dot {
  position: absolute;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
  animation: scFloat var(--dur,7s) ease-in-out infinite;
}
.home-hero__content {
  position: relative;
  max-width: 680px;
  padding-bottom: 3rem;
}
.home-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: .625rem;
  font-family: var(--font-sans);
  font-size: .75rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.75rem;
}
.home-hero__badge .blink-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: scBlink 1.6s infinite;
}
.home-hero h1 {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(2.25rem, 5.5vw, 4.5rem);
  line-height: 1.06;
  letter-spacing: -.02em;
  color: #fff;
  margin-bottom: 1.5rem;
  margin-top: 0;
  border: none;
  padding: 0;
}
.home-hero h1 strong { font-weight: 600; color: var(--accent); text-shadow: 0 0 24px rgba(244,194,13,.45); }
.home-hero__sub {
  font-family: var(--font-sans);
  font-size: 1.125rem;
  color: #9fb0d8;
  max-width: 480px;
  line-height: 1.6;
  margin-bottom: 2.25rem;
}
.home-hero__ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Stats strip */
.home-hero__stats {
  position: relative;
  display: flex;
  gap: 0;
  border-top: 1px solid rgba(150,180,255,.18);
  max-width: 680px;
  margin-top: 3rem;
}
.home-hero__stat {
  padding: 1.25rem 2rem 1.25rem 0;
  border-right: 1px solid rgba(150,180,255,.15);
  margin-right: 2rem;
}
.home-hero__stat:last-child { border-right: none; margin-right: 0; }
.home-hero__stat-num {
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: 1.875rem;
  color: #fff;
  line-height: 1;
}
.home-hero__stat-label {
  font-family: var(--font-sans);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(185,196,230,.7);
  margin-top: .25rem;
}

/* Marquee ticker */
.ticker {
  position: relative;
  border-top: 1px solid rgba(150,180,255,.12);
  background: rgba(6,7,15,.55);
  overflow: hidden;
  padding: .875rem 0;
  margin-top: 3rem;
}
.ticker__track {
  display: flex;
  gap: 3rem;
  white-space: nowrap;
  font-family: var(--font-sans);
  font-size: .8125rem;
  letter-spacing: .06em;
  color: #b9c4e6;
  width: max-content;
  animation: scTicker 32s linear infinite;
}
.ticker__track span { display: flex; gap: 3rem; }
.ticker__track .highlight { color: var(--accent); }

/* ---- Panorama Section (Topic Cards) ---- */
.panorama { background: var(--bg); padding: 5rem 1.5rem; }
.panorama__inner { max-width: 1200px; margin: 0 auto; }
.panorama__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.25rem;
}
.panorama-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,.07);
  border-radius: 8px;
  padding: 1.75rem;
  transition: box-shadow .22s, transform .22s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.panorama-card:hover {
  box-shadow: 0 8px 32px rgba(10,31,68,.14);
  transform: translateY(-3px);
  text-decoration: none;
}
.panorama-card__num {
  font-family: var(--font-sans);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .625rem;
}
.panorama-card__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--dark);
  margin-bottom: .5rem;
  line-height: 1.35;
}
.panorama-card__desc { font-size: .875rem; color: var(--text-muted); margin: 0; line-height: 1.55; }
.panorama-card__arrow {
  display: inline-block;
  margin-top: 1rem;
  font-size: .875rem;
  color: var(--accent);
  font-weight: 700;
  font-family: var(--font-sans);
}

/* ---- Risk Pyramid Section ---- */
.risk-pyramid { background: var(--dark); padding: 5rem 1.5rem; color: #fff; }
.risk-pyramid__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.risk-pyramid__title { font-family: var(--font-serif); font-size: clamp(1.5rem, 3vw, 2.25rem); color: #fff; border: none; padding: 0; margin-top: 0; }
.risk-pyramid__subtitle { color: rgba(185,196,230,.75); font-size: .9375rem; margin-top: .5rem; }
.risk-level {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .2s;
  border: 1px solid rgba(150,180,255,.1);
  margin-bottom: .625rem;
}
.risk-level:hover { background: rgba(255,255,255,.06); }
.risk-level.active { background: rgba(255,255,255,.1); border-color: rgba(244,194,13,.4); }
.risk-level__color {
  width: 14px; height: 14px;
  border-radius: 3px;
  flex-shrink: 0;
}
.risk-level__name {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: .9375rem;
  color: #fff;
}
.risk-level__count {
  margin-left: auto;
  font-size: .75rem;
  color: rgba(185,196,230,.6);
  font-family: var(--font-sans);
}
.risk-panel {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(150,180,255,.15);
  border-radius: 8px;
  padding: 2rem;
  min-height: 220px;
}
.risk-panel__level {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .625rem;
  font-family: var(--font-sans);
}
.risk-panel__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: .75rem;
  border: none;
  padding: 0;
  margin-top: 0;
  line-height: 1.3;
}
.risk-panel__desc {
  font-size: .9375rem;
  color: rgba(185,196,230,.85);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}
.risk-panel__link {
  color: var(--accent);
  font-size: .875rem;
  font-weight: 600;
  font-family: var(--font-sans);
}

/* ---- Timeline Section ---- */
.timeline-section { background: var(--bg); padding: 5rem 1.5rem; }
.timeline-section__inner { max-width: 800px; margin: 0 auto; }
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  margin-top: 2.5rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 22px;
  top: 0; bottom: 0;
  width: 2px;
  background: var(--slate-200);
}
.timeline-item {
  display: flex;
  gap: 1.5rem;
  padding-bottom: 2rem;
  position: relative;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item__dot {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 2px solid var(--slate-200);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: .7rem;
  font-weight: 700;
  color: var(--text-muted);
  font-family: var(--font-sans);
  position: relative;
  z-index: 1;
}
.timeline-item--active .timeline-item__dot {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--dark);
  box-shadow: 0 0 0 4px rgba(244,194,13,.2);
}
.timeline-item--past .timeline-item__dot {
  background: var(--dark);
  border-color: var(--dark);
  color: #fff;
}
.timeline-item__body { padding-top: .625rem; }
.timeline-item__date {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-family: var(--font-sans);
  margin-bottom: .25rem;
}
.timeline-item--active .timeline-item__date { color: var(--accent); }
.timeline-item__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--dark);
  margin-bottom: .25rem;
}
.timeline-item__desc { font-size: .875rem; color: var(--text-muted); margin: 0; }

/* ---- Pour qui Section ---- */
.pour-qui { background: #fff; padding: 5rem 1.5rem; }
.pour-qui__inner { max-width: 1100px; margin: 0 auto; }
.pour-qui__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}
.audience-card {
  border: 1px solid var(--slate-200);
  border-radius: 8px;
  padding: 1.75rem;
  background: var(--bg);
  transition: box-shadow .2s;
}
.audience-card:hover { box-shadow: var(--shadow-md); }
.audience-card__icon { font-size: 2rem; margin-bottom: .875rem; }
.audience-card__title { font-family: var(--font-serif); font-weight: 600; font-size: 1.0625rem; color: var(--dark); margin-bottom: .4rem; }
.audience-card__desc { font-size: .875rem; color: var(--text-muted); margin: 0; line-height: 1.55; }

/* ---- Newsletter Section ---- */
.newsletter-section {
  background: linear-gradient(150deg, var(--dark) 0%, var(--darker) 100%);
  padding: 5rem 1.5rem;
  text-align: center;
}
.newsletter-section__inner { max-width: 540px; margin: 0 auto; }
.newsletter-section h2 { font-family: var(--font-serif); color: #fff; border: none; padding: 0; margin-top: 0; }
.newsletter-section p { color: rgba(185,196,230,.8); font-size: 1rem; }
.newsletter-form {
  display: flex;
  gap: .5rem;
  margin-top: 1.5rem;
}
.newsletter-input {
  flex: 1;
  padding: .75rem 1rem;
  border: 1px solid rgba(150,180,255,.25);
  border-radius: var(--radius);
  background: rgba(255,255,255,.07);
  color: #fff;
  font-size: .9375rem;
  font-family: var(--font-sans);
}
.newsletter-input::placeholder { color: rgba(185,196,230,.5); }
.newsletter-input:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.newsletter-note { font-size: .75rem; color: rgba(185,196,230,.55); margin-top: .625rem; font-family: var(--font-sans); }

/* ---- Cards (generic, homepage) ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  max-width: 1200px;
  margin: 0 auto;
}
.card {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 8px;
  padding: 1.5rem;
  transition: box-shadow .2s, transform .2s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); text-decoration: none; }
.card__icon { font-size: 1.75rem; margin-bottom: .75rem; }
.card__title { font-family: var(--font-serif); font-size: 1rem; font-weight: 600; color: var(--dark); margin-bottom: .4rem; }
.card__desc { font-size: .875rem; color: var(--text-muted); margin: 0; }

/* ---- Footer ---- */
.footer {
  background: var(--darker);
  color: rgba(255,255,255,.6);
  padding: 4rem 1.5rem 1.5rem;
  position: relative;
  overflow: hidden;
}
.footer__star-ring {
  position: absolute;
  right: -180px;
  bottom: -180px;
  width: 560px; height: 560px;
  pointer-events: none;
  opacity: .1;
}
.footer__star-ring svg { width: 100%; height: 100%; animation: scSpinRev 64s linear infinite; }
.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  position: relative;
}
@media (min-width: 600px) {
  .footer__inner { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: #fff;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: .5rem;
}
.footer__brand em { color: var(--accent); font-style: normal; }
.footer__tagline { font-size: .8125rem; margin-bottom: 1rem; line-height: 1.55; }
.footer__sister { font-size: .8rem; margin-top: .5rem; }
.footer__sister a { color: rgba(255,255,255,.4); }
.footer__col h4 {
  color: rgba(255,255,255,.85);
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin: 0 0 .875rem;
  border: none;
  padding: 0;
  font-family: var(--font-sans);
  font-weight: 700;
}
.footer__col ul { list-style: none; margin: 0; padding: 0; }
.footer__col li { margin-bottom: .425rem; }
.footer__col a { color: rgba(255,255,255,.5); font-size: .85rem; font-family: var(--font-sans); }
.footer__col a:hover { color: rgba(255,255,255,.9); text-decoration: none; }
.footer__bottom {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
  font-size: .8rem;
  font-family: var(--font-sans);
  position: relative;
}
.footer__legal a { color: rgba(255,255,255,.4); margin-left: 1rem; }
.footer__legal a:hover { color: rgba(255,255,255,.8); text-decoration: none; }

/* ---- Tool Widget ---- */
.tool-widget {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: var(--shadow-sm);
  min-height: 200px;
}
.tool-step { display: none; }
.tool-step.active { display: block; }
.tool-question {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: .5rem;
  line-height: 1.45;
}
.tool-help {
  font-size: .875rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  font-style: italic;
  font-family: var(--font-sans);
}
.tool-options { display: flex; flex-direction: column; gap: .6rem; margin-bottom: 1.5rem; }
.tool-option {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  border: 2px solid var(--slate-200);
  border-radius: var(--radius);
  padding: .875rem 1.125rem;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  user-select: none;
  background: var(--slate-50);
}
.tool-option:hover { border-color: var(--dark); background: rgba(10,31,68,.04); }
.tool-option.selected { border-color: var(--accent); background: rgba(244,194,13,.07); }
.tool-option input[type="radio"] { margin-top: .15rem; flex-shrink: 0; accent-color: var(--dark); }
.tool-option__text { font-size: .9375rem; line-height: 1.45; color: var(--slate-700); font-family: var(--font-sans); }
.tool-nav { display: flex; gap: .75rem; margin-top: 1.5rem; }
.tool-btn {
  background: var(--dark); color: #fff; border: none;
  padding: .65rem 1.4rem; border-radius: var(--radius);
  font-size: .9rem; font-weight: 700; cursor: pointer;
  font-family: var(--font-sans); transition: opacity .15s;
}
.tool-btn:hover { opacity: .82; }
.tool-btn:disabled { opacity: .4; cursor: not-allowed; }
.tool-btn--next { background: var(--dark); color: #fff; }
.tool-btn--reset {
  background: none; color: var(--text-muted); border: 1px solid var(--slate-300);
  padding: .55rem 1rem; border-radius: var(--radius);
  font-size: .875rem; font-weight: 500; cursor: pointer;
  font-family: var(--font-sans); transition: all .15s;
}
.tool-btn--reset:hover { border-color: var(--slate-600); color: var(--text); }
.tool-revenue-input {
  width: 100%; max-width: 320px; display: block;
  padding: .65rem .9rem; border: 1px solid var(--slate-300);
  border-radius: var(--radius); font-size: 1rem; font-family: var(--font-sans);
  margin-bottom: 1.25rem; background: var(--bg);
}
.tool-revenue-input:focus { outline: 2px solid var(--accent); border-color: var(--accent); }

/* Tool results */
.tool-result {
  border-radius: var(--radius);
  padding: 1.75rem;
  border-left: 4px solid var(--slate-300);
}
.tool-result--amber { border-color: var(--amber-500); background: rgba(245,158,11,.08); }
.tool-result--red   { border-color: var(--red-600);   background: #fef2f2; }
.tool-result--green { border-color: var(--green-600); background: #f0fdf4; }
.tool-result--sky   { border-color: var(--blue-light); background: rgba(143,178,255,.1); }
.tool-result--slate { border-color: var(--slate-300); background: var(--slate-50); }
.tool-result__icon { font-size: 2rem; margin-bottom: .5rem; }
.tool-result__title { font-family: var(--font-serif); font-size: 1.25rem; font-weight: 700; color: var(--dark); margin-bottom: .5rem; }
.tool-result__deadline { font-size: .875rem; color: var(--text-muted); margin-bottom: .75rem; font-family: var(--font-sans); }
.tool-result__desc { font-size: .9375rem; color: var(--slate-700); margin-bottom: 1rem; line-height: 1.6; }
.tool-result__extra { margin: .75rem 0; font-size: .9rem; }
.tool-result__fine { text-align: center; padding: 1rem; }
.tool-result__fine-amount { font-size: 2.25rem; font-weight: 800; color: var(--red-600); font-family: var(--font-serif); }
.tool-result__fine-label { font-size: .875rem; color: var(--text-muted); margin-top: .25rem; font-family: var(--font-sans); }
.tool-result__countdown { display: inline-block; margin: .5rem 0; font-weight: 700; }
.tool-result__actions { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; margin-top: 1.25rem; }

/* ---- Pricing Grid (Academy) ---- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}
.pricing-card {
  background: #fff;
  border: 2px solid var(--slate-200);
  border-radius: 8px;
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s;
}
.pricing-card:hover { box-shadow: var(--shadow-md); }
.pricing-card--featured {
  border-color: var(--dark);
  box-shadow: 0 0 0 3px rgba(10,31,68,.1);
}
.pricing-card__badge {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  padding: .25em .75em;
  border-radius: 99px;
  background: var(--slate-100);
  color: var(--text-muted);
  margin-bottom: 1rem;
  align-self: flex-start;
  font-family: var(--font-sans);
}
.pricing-card__badge--pro { background: rgba(10,31,68,.1); color: var(--dark); }
.pricing-card__badge--bundle { background: rgba(244,194,13,.18); color: #7a5c00; }
.pricing-card__price {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1;
  margin-bottom: .35rem;
}
.pricing-card__name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  font-family: var(--font-sans);
}
.pricing-card__features {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  flex: 1;
}
.pricing-card__features li {
  font-size: .9rem;
  color: var(--text-muted);
  padding: .35rem 0;
  border-bottom: 1px solid var(--slate-100);
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  font-family: var(--font-sans);
}
.pricing-card__features li::before {
  content: '✓';
  color: var(--green-600);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: .05rem;
}
.pricing-card__cta { margin-top: auto; }

/* ---- Academy layout ---- */
.academy-intro { background: #fff; padding: 3rem 1.5rem 1rem; }
.academy-intro__inner { max-width: 820px; margin: 0 auto; }
.academy-intro__inner p { color: var(--text-muted); font-size: 1rem; }
.academy-intro__inner .pricing-grid { max-width: 1140px; margin: 2.5rem auto 1rem; }
.academy-faq { background: var(--bg); padding: 2rem 1.5rem 3rem; }
.academy-faq__inner { max-width: 820px; margin: 0 auto; }

/* ---- Article lede ---- */
.article-lede { font-size: 1.125rem; color: var(--text-muted); margin-bottom: 1.75rem; line-height: 1.65; }

/* ---- Utilities ---- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border-width: 0; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .risk-pyramid__inner { grid-template-columns: 1fr; gap: 2rem; }
  .home-hero__orbit { display: none; }
}

@media (max-width: 768px) {
  .nav__links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 66px; left: 0; right: 0;
    background: rgba(7,12,28,.97);
    padding: 1rem 1.5rem;
    gap: .625rem;
    box-shadow: 0 12px 32px rgba(0,0,0,.5);
    border-top: 1px solid rgba(150,180,255,.1);
  }
  .nav__links.open { display: flex; }
  .nav__menu-toggle { display: flex; }
  .nav__lang { display: none; }
  .crosslink-dora { flex-direction: column; }
  .lead-cta__form { flex-direction: column; }
  .footer__inner { grid-template-columns: 1fr; }
  .home-hero__stats { flex-direction: column; }
  .home-hero__stat { border-right: none; border-bottom: 1px solid rgba(150,180,255,.12); margin-right: 0; padding-bottom: 1rem; margin-bottom: .5rem; }
  .newsletter-form { flex-direction: column; }
}

@media (max-width: 480px) {
  .page-hero { padding: 2.5rem 1rem 3rem; }
  .content-layout { padding: 1.5rem 1rem; }
  .utility-strip { display: none; }
  .lead-cta__form--inline { flex-direction: column; }
}
