/* Tokens shared with the app (src/app/globals.css). */
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --brand: #3341c4;
  --brand-strong: color-mix(in srgb, var(--brand) 80%, black);
  --brand-soft: color-mix(in srgb, var(--brand) 10%, white);
  --heart: #d12f5f;
  --ink: #151821;
  --ink-2: #4b5262;
  --muted: #687083;
  --line: #e4e6eb;
  --bg: #f7f7f4;
  --surface: #ffffff;
  --night: #151821;
  --radius-card: 14px;
  --radius-control: 10px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }

h1, h2, h3 { margin: 0; letter-spacing: -0.03em; line-height: 1.1; }


/* Header */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.045em;
  color: var(--brand);
  text-decoration: none;
}
.nav { display: flex; align-items: center; gap: 8px; }
.nav-link {
  padding: 10px 12px;
  border-radius: var(--radius-control);
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--ink); background: var(--surface); }
@media (max-width: 420px) {
  .nav-link { padding: 10px 8px; font-size: 14px; }
  .nav .btn { padding: 0 12px; font-size: 14px; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--radius-control);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: background-color 150ms, border-color 150ms;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-strong); }
.btn-ghost { border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.btn-ghost:hover { border-color: #8a91a0; }

.eyebrow {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
}
.lead {
  max-width: 640px;
  margin: 24px auto 0;
  font-size: clamp(18px, 2.2vw, 21px);
  color: var(--ink-2);
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 32px; }
.more { margin: 24px 0 0; }
.more a { display: inline-block; padding-block: 4px; font-weight: 600; text-decoration: none; }
.more a:hover { text-decoration: underline; }

/* Home: soft brand halo behind the hero, Linear-style but light. */
.home { background:
  radial-gradient(60% 520px at 50% -120px, color-mix(in srgb, var(--brand) 16%, transparent), transparent 70%),
  var(--bg); }

.hero { padding-top: 64px; padding-bottom: 48px; text-align: center; }
.hero h1 { font-size: clamp(42px, 7.5vw, 80px); font-weight: 700; letter-spacing: -0.045em; line-height: 1.02; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  padding: 4px 12px 4px 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.7);
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.pill:hover { border-color: #8a91a0; color: var(--ink); }
.pill span {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 13px;
  font-weight: 600;
}
.pill svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Film in a browser frame */
.film { padding-bottom: 24px; scroll-margin-top: 24px; }
.film-frame {
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 1px 2px rgb(21 24 33 / 0.04), 0 40px 100px -40px rgb(51 65 196 / 0.35);
}
.browser-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: #fbfbfa;
}
.browser-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.browser-bar span {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  padding: 3px 14px;
  border-radius: 6px;
  background: var(--subtle, #eff0f2);
  color: var(--muted);
  font-size: 12px;
}
.film-media { position: relative; }
.film-media video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.sound {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px 0 10px;
  border: 0;
  border-radius: 999px;
  background: rgb(21 24 33 / 0.78);
  color: #fff;
  font: 600 14px/1 "Inter", system-ui, sans-serif;
  cursor: pointer;
  backdrop-filter: blur(6px);
}
.sound svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sound .wave { display: none; }
.sound[aria-pressed="true"] .wave { display: inline; }
.sound[aria-pressed="true"] .mute { display: none; }
.sound:not([data-ready]) { display: none; }

/* Photo slots. A slot holds either .ph-empty (placeholder) or an <img>. */
.ph {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: linear-gradient(135deg, #eceef6, #e6e3dc);
}
.ph-3x2 { aspect-ratio: 3 / 2; }
.ph-4x5 { aspect-ratio: 4 / 5; }
.ph-21x9 { aspect-ratio: 21 / 9; }
.ph img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ph-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  border: 1px dashed #c9ccd6;
  border-radius: inherit;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
.ph-empty svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.strip { display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 16px; padding-top: 24px; }
@media (max-width: 760px) {
  .strip { grid-template-columns: 1fr 1fr; }
  .strip .ph:first-child { grid-column: 1 / -1; }
}

/* Story blocks: text and visual side by side, alternating. */
.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding-top: 128px;
}
.story.is-flip .story-text { order: 2; }
@media (max-width: 860px) {
  .story { grid-template-columns: 1fr; gap: 32px; padding-top: 96px; }
  .story.is-flip .story-text { order: 0; }
}
.story h2 { font-size: clamp(32px, 4.6vw, 48px); font-weight: 700; letter-spacing: -0.04em; }
.story-lead { margin: 16px 0 0; max-width: 440px; color: var(--ink-2); font-size: 18px; }
.ticks { margin: 28px 0 0; padding: 0; list-style: none; }
.ticks li {
  position: relative;
  padding: 10px 0 10px 28px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
}
.ticks li:last-child { border-bottom: 1px solid var(--line); }
.ticks li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 50%;
  width: 10px;
  height: 5px;
  margin-top: -4px;
  border-left: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: rotate(-45deg);
}
.story-visual .ph-4x5 { max-width: 460px; margin-left: auto; }
.story.is-flip .story-visual .ph-4x5 { margin-left: 0; }
@media (max-width: 860px) { .story-visual .ph-4x5 { max-width: none; aspect-ratio: 4 / 3; } }

/* Mini wall: a static, decorative rendition of the product. */
.mini-wall {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg);
  box-shadow: 0 40px 100px -50px rgb(51 65 196 / 0.4);
}
.mini-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--surface);
  font-size: 13px;
}
.mini-org { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.mini-sq {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--brand);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}
.mini-left { display: flex; align-items: center; gap: 8px; color: var(--ink-2); }
.mini-dots { display: flex; gap: 3px; }
.mini-dots i { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--heart); }
.mini-dots i.on { background: var(--heart); }
.mini-tabs { display: flex; gap: 4px; margin: 14px 0 12px; font-size: 13px; color: var(--muted); }
.mini-tabs span { padding: 5px 10px; border-radius: 8px; }
.mini-tabs .on { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 0 0 1px var(--line); }
.mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mini-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.mini-card.is-top { border-color: color-mix(in srgb, var(--heart) 45%, white); box-shadow: 0 0 0 3px #fcebf0; }
.mini-tag { align-self: flex-start; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.t-blue { background: #e8ebfb; color: #3341c4; }
.t-green { background: #e3f4ea; color: #067647; }
.t-violet { background: #efe8fb; color: #6b3fc4; }
.t-amber { background: #fff3d6; color: #7a4b00; }
.mini-title { margin: 0; font-size: 14px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.mini-hearts {
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}
.mini-hearts svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.mini-hearts.is-mine { border-color: color-mix(in srgb, var(--heart) 45%, white); background: #fcebf0; color: var(--heart); }
.mini-hearts.is-mine svg { fill: currentColor; }
@media (max-width: 420px) { .mini-grid { grid-template-columns: 1fr; } .mini-left { font-size: 12px; } }

/* Feature grids (home and features page): Linear-style, light. */
.block { padding-top: 128px; }
.block h2, .trust h2, .cta h2 { font-size: clamp(30px, 4.4vw, 44px); font-weight: 700; letter-spacing: -0.04em; max-width: 760px; }
.block .features { margin-top: 40px; }
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
}
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .features { grid-template-columns: 1fr; } }
.feature {
  padding: 28px 24px 30px;
  box-shadow: 1px 0 0 var(--line), 0 1px 0 var(--line);
}
.feature svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--brand);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature h3 { margin-top: 16px; font-size: 16px; font-weight: 650; letter-spacing: -0.01em; }
.feature p { margin: 6px 0 0; color: var(--ink-2); font-size: 15px; line-height: 1.5; }

/* Wide team photo with a headline over it. */
.banner { padding-top: 128px; }
.ph-banner figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 80px 40px 36px;
  background: linear-gradient(to top, rgb(21 24 33 / 0.85), rgb(21 24 33 / 0.45) 60%, transparent);
  text-shadow: 0 1px 12px rgb(0 0 0 / 0.45);
  color: #fff;
  font-size: clamp(24px, 3.6vw, 40px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
}
.ph-banner .ph-empty { justify-content: flex-start; padding-top: 12%; }
@media (max-width: 640px) {
  .ph-21x9 { aspect-ratio: 4 / 3; }
  .ph-banner figcaption { padding: 60px 20px 20px; }
}

/* Trust: dark band with the same grid. */
.trust { margin-top: 128px; padding: 112px 0; background: var(--night); color: #fff; }
.trust .eyebrow { color: #8f9bff; }
.trust .features { margin-top: 48px; }
.features-dark { border-color: rgb(255 255 255 / 0.12); background: rgb(255 255 255 / 0.03); }
.features-dark .feature { box-shadow: 1px 0 0 rgb(255 255 255 / 0.12), 0 1px 0 rgb(255 255 255 / 0.12); }
.features-dark .feature svg { stroke: #8f9bff; }
.features-dark .feature p { color: #b9bfcc; }

.cta { padding-top: 128px; padding-bottom: 128px; text-align: center; }
.cta h2 { margin: 0 auto; }
.cta p { margin: 16px 0 28px; color: var(--ink-2); font-size: 19px; }

/* Reveal on scroll (app.js adds .is-in). Content stays visible without JS. */
.js .reveal { opacity: 0; transform: translateY(16px); }
.js .reveal.is-in { opacity: 1; transform: none; transition: opacity 600ms cubic-bezier(0.16, 1, 0.3, 1), transform 600ms cubic-bezier(0.16, 1, 0.3, 1); }
@media print { .js .reveal { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* Footer */
.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  padding-bottom: 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
.foot p { margin: 0; }
.foot a { padding-block: 4px; color: var(--muted); }

/* Features page */
.page-head { padding-top: 64px; padding-bottom: 16px; text-align: center; }
.page-head h1 { font-size: clamp(36px, 6vw, 60px); font-weight: 700; letter-spacing: -0.045em; }
.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}
.chips a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.chips a:hover { border-color: #8a91a0; color: var(--ink); }
.feature-group { padding-top: 72px; scroll-margin-top: 16px; }
.feature-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin-bottom: 24px; }
.feature-head h2 { font-size: 28px; font-weight: 700; }
.feature-head p { margin: 0; color: var(--muted); }

/* Legal pages */
.legal { max-width: 720px; padding-top: 48px; padding-bottom: 96px; }
.legal h1 { font-size: 40px; font-weight: 700; }
.legal h2 { margin-top: 40px; font-size: 20px; font-weight: 650; }
.legal p, .legal ul { color: var(--ink-2); }
.legal ul { padding-left: 20px; }
.legal li + li { margin-top: 6px; }

/* Mini wall animation (app.js) */
.mini-wall { position: relative; }
.mini-hearts b { font-weight: 600; font-variant-numeric: tabular-nums; }
.mini-fly {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  width: 14px;
  height: 14px;
  color: var(--heart);
  pointer-events: none;
}
.mini-fly svg { display: block; width: 100%; height: 100%; fill: currentColor; filter: drop-shadow(0 2px 4px rgb(209 47 95 / 0.35)); }
.mini-card { transition: border-color 300ms, box-shadow 300ms; }
.mini-hearts { transition: background-color 200ms, border-color 200ms, color 200ms; }

/* Narrow screens: three nav items, the contact button stays reachable in the page. */
@media (max-width: 520px) {
  .nav { gap: 2px; }
  .nav .btn { display: none; }
}

/* Statistics page: decorative dashboard and visuals (aria-hidden). */
.dash-wrap { padding-bottom: 24px; }
.dash {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgb(21 24 33 / 0.04), 0 40px 100px -40px rgb(51 65 196 / 0.35);
}
.dash-body { padding: 24px; background: var(--bg); }
.dash-periods { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); }
.dash-periods span { padding: 6px 12px; border-radius: 8px; }
.dash-periods .on { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 0 0 1px var(--line); }
.dash-periods em { margin-left: auto; font-style: normal; font-size: 12px; }
.dash-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.dash-kpi, .dash-panel, .viz-card {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.dash-kpi { display: flex; flex-direction: column; gap: 4px; }
.dash-label { color: var(--ink-2); font-size: 13px; font-weight: 500; }
.dash-kpi b { font-size: clamp(26px, 3.4vw, 36px); font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.dash-sub { color: var(--muted); font-size: 12px; }
.dash-trend { margin-left: 6px; color: var(--success); font-weight: 600; }
.dash-cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; margin-top: 12px; }
.dash-title { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 14px; font-size: 14px; font-weight: 600; }
.dash-title span { color: var(--muted); font-weight: 500; font-size: 12px; }
.dash-chart { display: block; width: 100%; height: 150px; }
.dash-chart rect { fill: var(--brand); transform-box: fill-box; transform-origin: bottom; }
.dash-chart rect:last-child { fill: color-mix(in srgb, var(--brand) 55%, white); }
.dash-topics { margin: 0; padding: 0; list-style: none; }
.dash-topics li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.dash-topics li:first-child { border-top: 0; padding-top: 0; }
.dash-topic { flex: 1 1 60%; font-weight: 600; }
.dash-count { color: var(--muted); font-size: 12px; }
.dash-badge { padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.dash-badge.is-up { background: #e3f4ea; color: var(--success); }
.dash-badge.is-new { background: var(--brand-soft); color: var(--brand); }
.dash-topics.is-large li { padding: 14px 0; font-size: 15px; }
@media (max-width: 760px) {
  .dash-body { padding: 14px; }
  .dash-kpis { grid-template-columns: 1fr 1fr; }
  .dash-kpis .dash-kpi:last-child { grid-column: 1 / -1; }
  .dash-cols { grid-template-columns: 1fr; }
  .dash-periods em { display: none; }
}

.viz-card { box-shadow: 0 40px 100px -50px rgb(51 65 196 / 0.4); }
.viz-sep { margin-top: 22px; }
.viz-note { margin: 14px 0 0; color: var(--muted); font-size: 12px; }
.hbars { margin: 0; padding: 0; list-style: none; }
.hbars li { display: grid; grid-template-columns: 120px 1fr 32px; align-items: center; gap: 10px; padding: 5px 0; font-size: 13px; }
.hbars svg { width: 100%; height: 10px; }
.hbars rect { fill: var(--brand); transform-box: fill-box; transform-origin: left; }
.hbars b { text-align: right; font-variant-numeric: tabular-nums; }
.viz-top { margin: 0; padding: 0; list-style: none; counter-reset: top; }
.viz-top li { display: flex; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13px; counter-increment: top; }
.viz-top li::before { content: counter(top); color: var(--muted); font-weight: 600; }
.viz-top span { flex: 1; font-weight: 500; }
.viz-top b { color: var(--heart); }
.cloud { margin: 0; line-height: 1.25; text-align: center; color: var(--ink-2); }
.cloud span { display: inline-block; margin: 2px 6px; font-weight: 600; letter-spacing: -0.02em; }
.cloud .w1 { font-size: 14px; color: var(--muted); }
.cloud .w2 { font-size: 18px; }
.cloud .w3 { font-size: 24px; color: var(--ink); }
.cloud .w4 { font-size: 30px; color: var(--brand); }
.cloud .w5 { font-size: 40px; color: var(--brand-strong); }
.viz-cloud { padding-bottom: 28px; }
.viz-csv { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.viz-csv th, .viz-csv td { padding: 8px 10px; border: 1px solid var(--line); text-align: left; }
.viz-csv th { background: var(--bg); color: var(--ink-2); font-weight: 600; }
.viz-csv td + td { text-align: right; }

/* Grow-in for charts once revealed (app.js adds .is-in). */
.js .stats-anim rect { transform: scale(0); }
.js .stats-anim.is-in .dash-chart rect { transform: none; transition: transform 700ms cubic-bezier(0.16, 1, 0.3, 1); }
.js .stats-anim.is-in .hbars rect { transform: none; transition: transform 800ms cubic-bezier(0.16, 1, 0.3, 1); }
.js .stats-anim.is-in rect:nth-child(2) { transition-delay: 40ms; }
.js .stats-anim.is-in rect:nth-child(3) { transition-delay: 80ms; }
.js .stats-anim.is-in rect:nth-child(4) { transition-delay: 120ms; }
.js .stats-anim.is-in rect:nth-child(5) { transition-delay: 160ms; }
.js .stats-anim.is-in rect:nth-child(6) { transition-delay: 200ms; }
.js .stats-anim.is-in rect:nth-child(7) { transition-delay: 240ms; }
.js .stats-anim.is-in rect:nth-child(8) { transition-delay: 280ms; }
.js .stats-anim.is-in rect:nth-child(9) { transition-delay: 320ms; }
.js .stats-anim.is-in rect:nth-child(10) { transition-delay: 360ms; }
.js .stats-anim.is-in rect:nth-child(11) { transition-delay: 400ms; }
.js .stats-anim.is-in rect:nth-child(12) { transition-delay: 440ms; }
.js .stats-anim.is-in rect:nth-child(13) { transition-delay: 480ms; }
@media (prefers-reduced-motion: reduce) { .js .stats-anim rect { transform: none; } }
@media print { .js .stats-anim rect { transform: none; } }

/* Small screens: let forced line breaks go, balance headlines instead. */
.hero h1, .ph-banner figcaption { text-wrap: balance; }
@media (max-width: 640px) {
  .hero h1 br, .ph-banner figcaption br { display: none; }
  .ph img.pos-low { object-position: 50% 75%; }
}
.browser-bar span { max-width: 60%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Statistics page: how the semantic analysis works, in steps. */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
}
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; gap: 24px; } }
.steps li { padding-top: 20px; border-top: 2px solid var(--brand); }
.step-n { color: var(--brand); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; }
.steps h3 { margin-top: 8px; font-size: 18px; font-weight: 650; letter-spacing: -0.02em; }
.steps p { margin: 8px 0 0; color: var(--ink-2); font-size: 15px; }
.steps-trust { margin-top: 48px; }

/* Statistics page: "Les sujets qui émergent", recreated from the admin screen. */
.split-head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 64px; align-items: end; }
.split-head .story-lead { margin: 0; }
@media (max-width: 860px) { .split-head { grid-template-columns: 1fr; } }
.tv {
  margin-top: 40px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 40px 100px -50px rgb(51 65 196 / 0.4);
}
.tv-head { display: flex; justify-content: space-between; gap: 24px; }
.tv-h { margin: 0; font-size: 18px; font-weight: 650; letter-spacing: -0.02em; }
.tv-desc { margin: 6px 0 0; max-width: 640px; color: var(--ink-2); font-size: 14px; }
.tv-full { flex: none; width: 22px; height: 22px; fill: none; stroke: var(--ink-2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tv-safe { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; font-size: 14px; font-weight: 500; }
.tv-safe svg { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--brand); stroke-width: 2; stroke-linejoin: round; }
.tv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 20px; }
@media (max-width: 900px) { .tv-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .tv { padding: 18px; } .tv-grid { grid-template-columns: 1fr; } }
.tv-card { padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.tv-card.is-first { border: 2px solid var(--brand); padding: 17px; }
.tv-top { display: flex; align-items: center; justify-content: space-between; }
.tv-badge { padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.tv-badge.is-new { background: var(--brand-soft); color: var(--brand); }
.tv-badge.is-up { background: #eff0f2; color: var(--ink); }
.tv-chev { width: 18px; height: 18px; fill: none; stroke: var(--ink-2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tv-title { margin: 12px 0 0; min-height: 2.6em; font-size: 16px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.tv-dots { display: flex; gap: 4px; margin-top: 16px; }
.tv-dots i { width: 12px; height: 12px; border-radius: 3px; background: var(--brand); }
.tv-meta { display: flex; align-items: center; gap: 6px; margin: 12px 0 0; color: var(--ink-2); font-size: 14px; }
.tv-heart { width: 15px; height: 15px; fill: var(--brand); }
.tv-foot { margin: 20px 0 0; color: var(--muted); font-size: 13px; }
.ticks-row { display: flex; flex-wrap: wrap; gap: 0 32px; }
.ticks-row li, .ticks-row li:last-child { border: 0; }
.js .stats-anim .tv-dots i { transform: scale(0); }
.js .stats-anim.is-in .tv-dots i { transform: none; transition: transform 400ms cubic-bezier(0.34, 1.56, 0.64, 1); }
.js .stats-anim.is-in .tv-dots i:nth-child(2) { transition-delay: 60ms; }
.js .stats-anim.is-in .tv-dots i:nth-child(3) { transition-delay: 120ms; }
.js .stats-anim.is-in .tv-dots i:nth-child(4) { transition-delay: 180ms; }
.js .stats-anim.is-in .tv-dots i:nth-child(5) { transition-delay: 240ms; }
.js .stats-anim.is-in .tv-dots i:nth-child(6) { transition-delay: 300ms; }
.js .stats-anim.is-in .tv-dots i:nth-child(7) { transition-delay: 360ms; }
@media (prefers-reduced-motion: reduce) { .js .stats-anim .tv-dots i { transform: none; } }
@media print { .js .stats-anim .tv-dots i { transform: none; } }
