/* ============================================
   Traaker — Global Styles
   Aesthetic: Apple-minimal — purified, monochrome with one violet accent.
   ============================================ */

/* --- Tokens --- */
:root {
  /* Surfaces */
  --bg: #ffffff;
  --bg-soft: #fafafa;
  --bg-inverse: #000000;

  /* Text */
  --fg: #000000;
  --fg-muted: #6b6b6b;
  --fg-faint: #a1a1a1;
  --fg-inverse: #ffffff;
  --fg-inverse-muted: rgba(255, 255, 255, 0.65);
  --fg-inverse-faint: rgba(255, 255, 255, 0.45);

  /* Borders */
  --line: rgba(0, 0, 0, 0.08);
  --line-strong: rgba(0, 0, 0, 0.14);
  --line-inverse: rgba(255, 255, 255, 0.08);
  --line-inverse-strong: rgba(255, 255, 255, 0.18);

  /* Brand */
  --accent: #7c3aed;
  --accent-hover: #6d28d9;
  --accent-soft: rgba(124, 58, 237, 0.10);
  --accent-soft-strong: rgba(124, 58, 237, 0.18);

  /* Typography */
  --font-display: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', sans-serif;

  /* Spacing */
  --container-max: 1200px;
  --container-narrow: 880px;
  --container-prose: 720px;
  --pad: clamp(20px, 4vw, 48px);
  --section-y: clamp(80px, 12vw, 160px);
  --section-y-tight: clamp(56px, 8vw, 96px);

  /* Radius */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;

  /* Motion */
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -0.011em;
  color: var(--fg);
  background: var(--bg);
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* --- Type --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: inherit;
  margin: 0;
}
h1 { font-size: clamp(44px, 7vw, 88px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 700; }
h2 { font-size: clamp(32px, 4.5vw, 56px); line-height: 1.05; }
h3 { font-size: clamp(20px, 2.2vw, 26px); line-height: 1.2; font-weight: 500; }
h4 { font-size: clamp(18px, 1.7vw, 20px); line-height: 1.3; font-weight: 600; }
p  { color: var(--fg-muted); }
p.lead { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.45; max-width: 56ch; }

mark.accent {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
  padding: 1px 4px;
  border-radius: 3px;
}

/* --- Wordmark --- */
.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--fg);
  user-select: none;
}
.wordmark .a-accent { color: var(--accent); }

.brand-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand-row__icon { width: 28px; height: 28px; }

/* --- Layout --- */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--pad); }
.container--narrow { max-width: var(--container-narrow); }
.container--prose { max-width: var(--container-prose); }

.section { padding: var(--section-y) 0; }
.section--tight { padding: var(--section-y-tight) 0; }
.section--inverse {
  background: var(--bg-inverse);
  color: var(--fg-inverse);
}
.section--inverse p { color: var(--fg-inverse-muted); }
.section--inverse .eyebrow { color: var(--fg-inverse-faint); }

.divider-row {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.divider-row hr { height: 1px; background: var(--line); border: 0; margin: 0; }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 24px;
}
.eyebrow--accent { color: var(--accent); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: transform 220ms var(--ease), background 200ms ease, color 200ms ease, border-color 200ms ease;
  cursor: pointer;
}
.btn--primary { background: var(--fg); color: var(--bg); }
.btn--primary:hover { background: var(--accent); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--fg); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--fg); }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn--lg { padding: 16px 28px; font-size: 16px; }
.btn--sm { padding: 10px 16px; font-size: 13px; }
.section--inverse .btn--primary { background: #fff; color: #000; }
.section--inverse .btn--primary:hover { background: var(--accent); color: #fff; }
.section--inverse .btn--ghost { color: #fff; border-color: var(--line-inverse-strong); }
.section--inverse .btn--ghost:hover { border-color: #fff; }
.btn .arrow { transition: transform 220ms var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.btn-group {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* --- Nav --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 12px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.nav__logo { display: inline-flex; align-items: center; gap: 10px; }
.nav__logo-icon { width: 26px; height: 26px; }
.nav__logo-text { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; font-size: 19px; color: var(--fg); }
.nav__logo-text .a-accent { color: var(--accent); }
.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav__link {
  color: var(--fg);
  font-size: 14px;
  font-weight: 500;
  opacity: 0.72;
  transition: opacity 120ms ease;
}
.nav__link:hover, .nav__link--active { opacity: 1; }
.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--fg);
  color: var(--bg);
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  transition: background 200ms ease;
}
.nav__cta:hover { background: var(--accent); }

.nav__toggle {
  display: none;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav__toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--fg);
  transition: transform 200ms var(--ease), opacity 200ms ease;
}
.nav__mobile {
  display: none;
  flex-direction: column;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 16px var(--pad) 24px;
  gap: 6px;
}
.nav__mobile a {
  display: block;
  padding: 12px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--fg);
  border-bottom: 1px solid var(--line);
}
.nav__mobile a:last-child { border-bottom: 0; }
.nav.is-open .nav__mobile { display: flex; }
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
}

/* --- Hero --- */
.hero {
  padding: clamp(80px, 11vw, 140px) 0 0;
  text-align: center;
  position: relative;
}
.hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-muted);
  margin-bottom: 32px;
}
.hero__pill .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.hero h1 { max-width: 16ch; margin: 0 auto; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero__sub {
  margin: 28px auto 0;
  max-width: 56ch;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.5;
  color: var(--fg-muted);
}
.hero__cta-row {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.hero__note {
  margin-top: 18px;
  font-size: 13px;
  color: var(--fg-faint);
}

/* Hero visual (product screenshot) */
.hero__visual-wrap {
  margin: clamp(60px, 8vw, 96px) auto 0;
  max-width: 1180px;
  padding: 0 var(--pad);
  position: relative;
}
.hero__visual-wrap::before {
  content: '';
  position: absolute;
  inset: 30% -10% -10% -10%;
  background: radial-gradient(60% 60% at 50% 50%, rgba(124, 58, 237, 0.18), transparent 70%);
  filter: blur(60px);
  z-index: -1;
  pointer-events: none;
}
.hero__visual {
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow:
    0 1px 1px rgba(0,0,0,0.04),
    0 4px 8px rgba(0,0,0,0.04),
    0 24px 60px rgba(0,0,0,0.10);
  overflow: hidden;
  background: #fff;
}
.hero__visual img { width: 100%; height: auto; display: block; }

/* --- Engines strip --- */
.engines {
  margin-top: clamp(72px, 10vw, 128px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
  overflow: hidden;
}
.engines__label {
  display: block;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-bottom: 20px;
  font-weight: 500;
}
.engines__track {
  display: flex;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.engines:hover .engines__track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.engine {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--fg-muted);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  opacity: 0.85;
  flex-shrink: 0;
  transition: opacity 200ms ease;
}
.engine:hover { opacity: 1; }
.engine img { width: 22px; height: 22px; flex-shrink: 0; }

/* --- Feature blocks --- */
.feature { padding: clamp(80px, 11vw, 140px) 0; }
.feature__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 7vw, 96px);
  align-items: center;
}
.feature--reverse .feature__inner > *:first-child { order: 2; }
.feature__num {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 20px;
  letter-spacing: 0.04em;
}
.feature h2 { margin-bottom: 20px; max-width: 14ch; }
.feature__body {
  color: var(--fg-muted);
  font-size: 17px;
  line-height: 1.6;
  max-width: 44ch;
}
.feature__visual {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
@media (max-width: 880px) {
  .feature__inner { grid-template-columns: 1fr; }
  .feature--reverse .feature__inner > *:first-child { order: 0; }
}

/* Mock cards inside feature visuals */
.demo-card {
  position: absolute;
  inset: 24px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid var(--line);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 13px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
}
.demo-card__head {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--fg-faint);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}
.demo-card__head img { width: 14px; height: 14px; }
.demo-card__head .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.demo-card__query { color: var(--fg); font-size: 15px; font-weight: 500; line-height: 1.4; }
.demo-card__answer {
  color: var(--fg-muted);
  line-height: 1.5;
  border-left: 2px solid var(--line);
  padding-left: 12px;
}
.demo-card__answer mark {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
  padding: 1px 4px;
  border-radius: 3px;
}
.demo-card__chips {
  display: flex; gap: 6px; flex-wrap: wrap;
  margin-top: auto;
}
.demo-card__chip {
  font-size: 11px;
  color: var(--fg-muted);
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.demo-card__chip--accent { color: var(--accent); border-color: var(--accent-soft-strong); background: rgba(124, 58, 237, 0.06); }

.source-card {
  position: absolute;
  inset: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.source-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.source-card__row:last-child { border-bottom: 0; }
.source-card__name { color: var(--fg); font-weight: 500; }
.source-card__name .you { color: var(--accent); font-weight: 600; }
.source-card__pct { color: var(--fg-muted); font-variant-numeric: tabular-nums; font-size: 13px; }

.score-card {
  position: absolute;
  inset: 24px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid var(--line);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.score-card__big {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}
.score-card__big .pct { color: var(--accent); }
.score-card__delta { font-size: 13px; color: var(--accent); font-weight: 500; margin-top: 6px; }
.score-card__bars {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 4px;
  align-items: end;
  height: 80px;
}
.score-card__bar { background: var(--accent); border-radius: 2px 2px 0 0; }

/* --- Stats strip (used inside section--inverse) --- */
.stats__inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.stat {
  padding: 56px clamp(16px, 3vw, 40px);
  border-right: 1px solid var(--line-inverse);
}
.stat:last-child { border-right: 0; }
.stat__num { font-family: var(--font-display); font-size: clamp(40px, 5vw, 64px); font-weight: 700; letter-spacing: -0.03em; line-height: 1; color: var(--fg-inverse); }
.stat__num .accent { color: var(--accent); }
.stat__label { color: var(--fg-inverse-muted); font-size: 14px; margin-top: 14px; max-width: 32ch; }
@media (max-width: 720px) {
  .stats__inner { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line-inverse); }
  .stat:last-child { border-bottom: 0; }
}

/* --- Pricing cards --- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 56px;
}
@media (max-width: 880px) { .pricing-grid { grid-template-columns: 1fr; } }
.price-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.price-card--featured { border-color: var(--accent); position: relative; }
.price-card--featured::before {
  content: 'Recommandé';
  position: absolute;
  top: 0; left: 32px;
  transform: translateY(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 999px;
}
.price-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 20px; }
.price-card__price { font-family: var(--font-display); font-size: 44px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.price-card__price .unit { font-size: 14px; font-weight: 500; color: var(--fg-muted); margin-left: 4px; }
.price-card__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  color: var(--fg-muted);
}
.price-card__features li {
  padding-left: 24px;
  position: relative;
}
.price-card__features li::before {
  content: '';
  position: absolute;
  left: 0; top: 7px;
  width: 14px; height: 8px;
  border-left: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: rotate(-45deg);
}

/* --- FAQ --- */
.faq-list {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
}
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  color: var(--fg);
  margin: 0;
  letter-spacing: -0.015em;
}
.faq-item summary::after {
  content: '+';
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  color: var(--fg-muted);
  transition: transform 200ms var(--ease);
}
.faq-item[open] summary::after { content: '\2212'; color: var(--accent); }
.faq-item p {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg-muted);
  max-width: 64ch;
}

/* --- Blog cards --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
@media (max-width: 880px) { .blog-grid { grid-template-columns: 1fr; } }
.blog-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
  transition: transform 220ms var(--ease), border-color 200ms ease;
  display: flex;
  flex-direction: column;
}
.blog-card:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.blog-card__cover { aspect-ratio: 16 / 9; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.blog-card__cover img { width: 100%; height: 100%; object-fit: cover; }
.blog-card__body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.blog-card__meta { font-size: 12px; color: var(--fg-faint); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 500; }
.blog-card h3 { font-family: var(--font-display); font-size: 19px; font-weight: 600; color: var(--fg); letter-spacing: -0.018em; line-height: 1.3; }
.blog-card p { font-size: 14px; color: var(--fg-muted); line-height: 1.55; }
.blog-card__more { margin-top: auto; font-size: 14px; font-weight: 500; color: var(--accent); display: inline-flex; align-items: center; gap: 4px; }

/* --- Forms --- */
.form { display: flex; flex-direction: column; gap: 18px; max-width: 540px; margin: 40px auto 0; }
.form label { font-size: 13px; font-weight: 500; color: var(--fg); }
.form input, .form select, .form textarea {
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  padding: 14px 16px;
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.form textarea { resize: vertical; min-height: 120px; }
.form__row { display: flex; gap: 12px; }
.form__row > * { flex: 1; }

/* --- Method (animated 4-step flow) --- */
.method-stage {
  position: relative;
  min-height: 480px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--bg-soft);
  padding: clamp(32px, 5vw, 64px);
  margin-top: 40px;
  overflow: hidden;
}
.method-canvas {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 360px;
}
.method-step {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
  pointer-events: none;
  gap: 24px;
}
.method-step.is-active { opacity: 1; transform: none; pointer-events: auto; }
.method-step__num { font-family: var(--font-display); font-size: 14px; font-weight: 500; color: var(--accent); letter-spacing: 0.06em; text-transform: uppercase; }
.method-step h3 { font-size: clamp(28px, 4vw, 44px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.05; max-width: 18ch; }
.method-step p { font-size: clamp(15px, 1.4vw, 17px); color: var(--fg-muted); max-width: 56ch; line-height: 1.5; }

.method-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.method-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-muted);
  cursor: pointer;
  transition: all 200ms ease;
}
.method-tab:hover { border-color: var(--fg); color: var(--fg); }
.method-tab.is-active { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.method-tab__num { font-size: 11px; opacity: 0.6; }

/* SVG canvas inside method-stage (custom illustrations per step) */
.method-svg { width: min(640px, 100%); height: auto; }
.method-svg .pulse-dot { fill: var(--accent); animation: pulse 2s infinite; }

/* --- CTA banner --- */
.cta-banner {
  background: var(--bg-inverse);
  color: var(--fg-inverse);
  border-radius: var(--radius-lg);
  padding: clamp(48px, 7vw, 96px);
  text-align: center;
}
.cta-banner h2 { color: var(--fg-inverse); max-width: 18ch; margin: 0 auto 20px; }
.cta-banner p { color: var(--fg-inverse-muted); max-width: 48ch; margin: 0 auto 32px; font-size: 18px; }

/* --- Footer --- */
.footer {
  padding: 64px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--fg-muted);
  font-size: 14px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 48px 24px;
  margin-bottom: 40px;
}
@media (max-width: 720px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__brand { max-width: 320px; }
.footer__logo { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer__logo-icon { width: 22px; height: 22px; }
.footer__logo-text { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; font-size: 18px; color: var(--fg); }
.footer__logo-text .a-accent { color: var(--accent); }
.footer__brand p { font-size: 13px; line-height: 1.55; }
.footer__col h5 {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg);
  margin-bottom: 14px;
}
.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer__col a { color: var(--fg-muted); transition: color 160ms ease; }
.footer__col a:hover { color: var(--fg); }
.footer__bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
}
.footer__bottom-links { display: flex; gap: 24px; flex-wrap: wrap; }

/* --- Article (blog post) --- */
.article {
  max-width: var(--container-prose);
  margin: 0 auto;
  padding: clamp(56px, 8vw, 96px) var(--pad);
}
.article__meta { font-size: 13px; color: var(--fg-faint); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 500; margin-bottom: 16px; }
.article h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.05; margin-bottom: 24px; }
.article__lead { font-size: 20px; color: var(--fg-muted); line-height: 1.5; margin-bottom: 48px; }
.article__body { font-size: 17px; line-height: 1.7; color: var(--fg); }
.article__body h2 { font-size: 28px; margin: 48px 0 16px; }
.article__body h3 { font-size: 22px; margin: 32px 0 12px; }
.article__body p { color: var(--fg); margin-bottom: 16px; }
.article__body ul, .article__body ol { margin: 0 0 16px 24px; }
.article__body li { margin-bottom: 8px; }
.article__body code { background: var(--bg-soft); padding: 2px 6px; border-radius: 4px; font-size: 0.92em; border: 1px solid var(--line); }
.article__body blockquote { border-left: 3px solid var(--accent); padding-left: 20px; margin: 24px 0; color: var(--fg-muted); font-style: italic; }
.article__body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.article__body img { border-radius: var(--radius); margin: 24px 0; border: 1px solid var(--line); }

/* --- Reveal animation --- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 80ms; }
.reveal-delay-2 { transition-delay: 160ms; }
.reveal-delay-3 { transition-delay: 240ms; }
.reveal-delay-4 { transition-delay: 320ms; }

/* --- Section header (used by old templates) --- */
.section__header {
  text-align: center;
  margin-bottom: 56px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.section__header .section__label,
.section__label {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.section__header h2 { margin: 0 auto 20px; }
.section__header p { font-size: 18px; line-height: 1.55; color: var(--fg-muted); max-width: 56ch; margin: 0 auto; }

/* --- Cookie banner / accessibility --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .engines__track { animation: none; }
  .reveal { opacity: 1; transform: none; }
}
