/* Central Documentos · site
   Motion follows Emil Kowalski's rules: strong ease-out for entrances,
   ease-in-out for things moving on screen, only transform/opacity/clip-path,
   one entrance per container, reduced motion gets fades instead of travel. */

@font-face { font-family: "Geist"; src: url("/assets/fonts/geist.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/assets/fonts/instrument-serif.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/assets/fonts/instrument-serif-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --paper: #F7F7F4;
  --surface: #FFFFFF;
  --ink: #0B1733;
  --ink-2: #3A4660;
  --ink-3: #6B7489;
  --line: rgb(11 23 51 / 0.08);
  --line-2: rgb(11 23 51 / 0.14);
  --blue: #053DC5;
  --blue-soft: #6D94FB;
  --navy: #143468;
  --ins: #0B6B45;
  --ins-bg: #D8F1E4;
  --del: #A4231A;
  --del-bg: #FBE1DD;

  --shadow-1: 0 1px 2px rgb(11 23 51 / 0.05), 0 0 0 1px rgb(11 23 51 / 0.05);
  --shadow-2: 0 0 0 1px rgb(11 23 51 / 0.05), 0 2px 4px rgb(11 23 51 / 0.04), 0 12px 32px -8px rgb(11 23 51 / 0.14);
  --shadow-3: 0 0 0 1px rgb(11 23 51 / 0.06), 0 2px 4px rgb(11 23 51 / 0.04), 0 16px 32px -8px rgb(11 23 51 / 0.12), 0 48px 96px -32px rgb(11 23 51 / 0.28);

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --sans: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --doc: Georgia, "Times New Roman", serif;

  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(88px, 12vw, 168px);
  interpolate-size: allow-keywords;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: rgb(5 61 197 / 0.16); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 12px; top: -48px; z-index: 100; padding: 10px 14px; border-radius: 10px; background: var(--ink); color: #fff; font-size: 14px; }
.skip:focus { top: 12px; }
.top-sentinel { position: absolute; top: 0; height: 8px; width: 1px; }

/* Type */
.display {
  font-size: clamp(2.6rem, 1.15rem + 5.3vw, 5.6rem);
  line-height: 1.0;
  letter-spacing: -0.045em;
  font-weight: 600;
  max-width: 15ch;
}
.h2 {
  font-size: clamp(2rem, 1.1rem + 3vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
  font-weight: 600;
  max-width: 19ch;
}
.display em, .h2 em, .statement-title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  font-size: 1.06em;
  color: var(--blue);
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--ink-3);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 1.5px; background: var(--blue); }
.eyebrow-light { color: rgb(255 255 255 / 0.6); }
.eyebrow-light::before { background: var(--blue-soft); }

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font: 500 15px/1 var(--sans);
  letter-spacing: -0.005em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 160ms var(--ease-out), background-color 200ms ease;
}
.button:active { transform: scale(0.97); }
.button-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.button-small { height: 36px; padding: 0 14px; font-size: 14px; }
@media (hover: hover) and (pointer: fine) {
  .button:hover { background: #1B2A4E; }
  .button-ghost:hover { background: rgb(11 23 51 / 0.04); }
  .nav-links a:hover, .footer-links a:hover { color: var(--ink); }
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  background: rgb(5 61 197 / 0.07);
  color: var(--blue);
  font-size: 13px;
  font-weight: 500;
}
.pill-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgb(5 61 197 / 0.14); }

/* Navigation: a translucent layer, the hairline appears once content scrolls under it */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(247 247 244 / 0.76);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
}
.nav::after { content: ""; position: absolute; inset: auto 0 0; height: 1px; background: var(--line); opacity: 0; transition: opacity 200ms ease; }
.nav.is-scrolled::after { opacity: 1; }
.nav-row { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; letter-spacing: -0.015em; color: var(--navy); }
.brand img { flex-shrink: 0; }
.nav-links { display: flex; gap: 28px; margin-left: auto; font-size: 14px; color: var(--ink-2); }
.nav-links a, .footer-links a { transition: color 150ms ease; }
.nav-links a[aria-current="page"] { color: var(--ink); }
@media (max-width: 860px) { .nav-links { display: none; } .nav .button-small { margin-left: auto; } }

/* Hero */
.hero { padding-top: clamp(40px, 6.5vw, 96px); }
.hero .pill { margin-bottom: 28px; }
.hero-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 40px; margin-top: clamp(24px, 3vw, 36px); flex-wrap: wrap; }
.lede { max-width: 46ch; color: var(--ink-2); font-size: clamp(1.05rem, 0.98rem + 0.3vw, 1.22rem); line-height: 1.55; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 28px; color: var(--ink-3); font-size: 13.5px; }
.facts li { display: inline-flex; align-items: center; gap: 8px; }
.facts li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--line-2); }

/* Hero stage: two versions of a contract, the comparison and the redaction */
.stage {
  position: relative;
  margin-top: clamp(40px, 6vw, 72px);
  height: clamp(400px, 50vw, 600px);
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(60% 70% at 70% 20%, rgb(109 148 251 / 0.22), transparent 70%),
    linear-gradient(180deg, #EDF1FB, #F3F4F7);
  box-shadow: inset 0 0 0 1px rgb(11 23 51 / 0.05);
  perspective: 1800px;
}
.stage-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(11 23 51 / 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgb(11 23 51 / 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(70% 70% at 50% 35%, #000 20%, transparent 75%);
  mask-image: radial-gradient(70% 70% at 50% 35%, #000 20%, transparent 75%);
}
.stage-inner { position: absolute; inset: 0; transform-style: preserve-3d; }
/* The sheet is the size container; its body scales text with the sheet's width. */
.sheet {
  position: absolute;
  container-type: inline-size;
  aspect-ratio: 0.72;
  border-radius: 6px;
  background: var(--surface);
  box-shadow: var(--shadow-3);
}
.sheet-body {
  isolation: isolate;
  padding: 12.5cqi 8.5cqi 10cqi;
  color: #1C2433;
  font: 3.6cqi/1.6 var(--doc);
}
.sheet p + p { margin-top: 1em; }
.sheet-back { left: 9%; top: 13%; width: 38%; transform: translateZ(-40px); }
.sheet-back .sheet-body > *:not(.sheet-tag) { opacity: 0.72; }
.sheet-front { left: 37%; top: 20%; width: 40%; transform: translateZ(10px); }
.sheet-tag {
  position: absolute;
  top: 3.6cqi;
  left: 7.5cqi;
  padding: 0.5cqi 2cqi;
  border-radius: 99px;
  background: rgb(11 23 51 / 0.06);
  color: var(--ink-3);
  font: 600 2.5cqi/1.6 var(--sans);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.sheet-tag.is-new { background: rgb(5 61 197 / 0.09); color: var(--blue); }
.sheet-title { margin-bottom: 1.4em; font: 650 3.3cqi/1.3 var(--sans); letter-spacing: 0.02em; color: var(--ink); }
.ghost { display: block; height: 0.62em; margin-top: 1.05em; border-radius: 99px; background: rgb(11 23 51 / 0.07); }
.g1 { width: 94%; } .g2 { width: 81%; } .g3 { width: 88%; } .g4 { width: 58%; }
.sheet-sign { margin-top: 1.6em !important; }

.mark { position: relative; white-space: nowrap; padding: 0 0.1em; }
.mark::before { content: ""; position: absolute; inset: -0.05em -0.04em; z-index: -1; border-radius: 0.22em; }
.ins { color: var(--ins); }
.ins::before { background: var(--ins-bg); }
.del { color: var(--del); text-decoration: line-through; text-decoration-color: rgb(164 35 26 / 0.6); text-decoration-thickness: 0.07em; }
.del::before { background: var(--del-bg); }
.redact { position: relative; }
.redact::after { content: ""; position: absolute; inset: -0.06em -0.05em; border-radius: 0.14em; background: var(--ink); }

.float { position: absolute; font-family: var(--sans); }
.result {
  right: 5%;
  top: 9%;
  width: clamp(208px, 23%, 268px);
  padding: 16px 18px 14px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-3);
  transform: translateZ(70px);
}
.result-head { font-size: 15px; font-weight: 500; letter-spacing: -0.01em; }
.result-head strong { font-size: 32px; font-weight: 600; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; margin-right: 2px; }
.result-sub { color: var(--ink-3); font-size: 12.5px; margin-top: 2px; }
.result-tags { display: grid; gap: 6px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.result-tags li { display: flex; align-items: center; gap: 8px; }
.dot { width: 7px; height: 7px; border-radius: 2px; }
.dot-mod { background: #C98A12; } .dot-ins { background: #1A8F5C; } .dot-del { background: #C6372B; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 10px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.84);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  backdrop-filter: blur(12px) saturate(160%);
  box-shadow: var(--shadow-2);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}
.chip svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.chip-tarja { left: 6%; bottom: 11%; transform: translateZ(90px); }
.chip-tarja svg { color: var(--ins); }
.chip-off { right: 6%; bottom: 13%; transform: translateZ(60px); }
.chip-off svg { color: var(--ink-3); }

@media (max-width: 760px) {
  .stage { height: 440px; border-radius: 22px; }
  .sheet-back { left: -16%; top: 7%; width: 58%; }
  .sheet-front { left: 22%; top: 12%; width: 75%; }
  /* On a phone the results card shrinks to its headline, in the corner the sheet leaves free */
  .result { top: auto; right: auto; left: 4%; bottom: 5%; width: auto; padding: 8px 14px 9px; border-radius: 999px; }
  .result-head strong { font-size: 20px; }
  .result-sub, .result-tags { display: none; }
  .chip-tarja, .chip-off { display: none; }
}

/* Statement */
.statement { padding-top: var(--section); }
.statement-card {
  position: relative;
  overflow: hidden;
  padding: clamp(36px, 7vw, 88px);
  border-radius: 28px;
  background:
    radial-gradient(50% 80% at 100% 0%, rgb(5 61 197 / 0.55), transparent 70%),
    radial-gradient(40% 60% at 0% 100%, rgb(109 148 251 / 0.18), transparent 70%),
    var(--ink);
  color: #fff;
}
.statement-title {
  font-size: clamp(2rem, 1rem + 3.7vw, 4.25rem);
  line-height: 1.03;
  letter-spacing: -0.045em;
  font-weight: 500;
  max-width: 17ch;
}
.statement-title em { color: #A9C0FF; }
.statement-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: clamp(48px, 7vw, 96px); padding-top: 28px; border-top: 1px solid rgb(255 255 255 / 0.12); }
.statement-cols h3 { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.statement-cols p { margin-top: 6px; color: rgb(255 255 255 / 0.64); font-size: 15px; line-height: 1.55; max-width: 32ch; }
@media (max-width: 760px) { .statement-cols { grid-template-columns: 1fr; gap: 22px; } }

/* Sections */
.features, .redact-demo, .tools, .audience, .faq { padding-top: var(--section); }
.section-head { margin-bottom: clamp(40px, 6vw, 80px); }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; }
.section-note { max-width: 34ch; color: var(--ink-3); font-size: 15px; }

/* Features: the steps scroll, the frame stays and crossfades between screens */
.features-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
.step {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 78vh;
  padding-block: 6vh;
  opacity: 0.34;
  transition: opacity 400ms ease;
}
.step:first-child { min-height: 62vh; padding-top: 0; justify-content: flex-start; }
.step.is-active { opacity: 1; }
.step-n { color: var(--ink-3); font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: 0.04em; transition: color 300ms ease; }
.step.is-active .step-n { color: var(--blue); }
.step h3 { margin-top: 14px; font-size: clamp(1.7rem, 1.1rem + 1.6vw, 2.4rem); line-height: 1.08; letter-spacing: -0.035em; font-weight: 600; }
.step-lead { margin-top: 12px; color: var(--ink); font-size: 1.15rem; line-height: 1.45; letter-spacing: -0.01em; }
.step p:not(.step-n):not(.step-lead) { margin-top: 12px; color: var(--ink-2); max-width: 44ch; }
.points { display: grid; gap: 10px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 15px; }
.points li { display: flex; gap: 12px; align-items: baseline; }
.points li::before { content: ""; flex-shrink: 0; width: 10px; height: 1.5px; background: var(--blue); transform: translateY(-4px); }
.step-shot { display: none; }
.frame-col { position: sticky; top: max(96px, calc(50vh - 260px)); }
.frame {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-3);
}
.shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.012);
  filter: blur(4px);
  transition: opacity 450ms var(--ease-out), transform 600ms var(--ease-out), filter 450ms var(--ease-out);
}
.shot.is-active { opacity: 1; transform: none; filter: none; }
.shot-left { object-position: 0 50%; }
.frame-progress { position: relative; height: 2px; margin: 22px auto 0; width: 120px; border-radius: 2px; background: var(--line-2); overflow: hidden; }
.frame-progress-bar { position: absolute; inset: 0; background: var(--blue); transform-origin: left; transform: scaleX(0.25); transition: transform 500ms var(--ease-in-out); }
@media (max-width: 960px) {
  .features-grid { grid-template-columns: 1fr; }
  .frame-col { display: none; }
  .step, .step:first-child { min-height: 0; padding-block: 0; opacity: 1; }
  .step + .step { margin-top: 72px; }
  .step-n { color: var(--blue); }
  .step-shot { display: block; width: 100%; height: auto; margin-top: 28px; border-radius: 12px; box-shadow: var(--shadow-2); }
}

/* Redaction demo */
.redact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  grid-template-areas: "copy doc" "action doc";
  grid-template-rows: auto 1fr;
  column-gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.redact-copy { grid-area: copy; align-self: end; }
.redact-doc { grid-area: doc; }
.redact-action { grid-area: action; align-self: start; }
.redact-copy > p:not(.eyebrow) { margin-top: 20px; color: var(--ink-2); max-width: 46ch; }
.redact-toggle { display: inline-grid; margin-top: 32px; min-width: 168px; }
@media (max-width: 860px) {
  .redact-grid { grid-template-columns: 1fr; grid-template-areas: "copy" "doc" "action"; grid-template-rows: auto; row-gap: 32px; }
  .redact-toggle { margin-top: 0; }
}
.redact-toggle .label { grid-area: 1 / 1; transition: opacity 200ms ease, filter 200ms ease; }
.redact-toggle .label-undo { opacity: 0; filter: blur(2px); }
.redact-toggle[aria-pressed="true"] .label-apply { opacity: 0; filter: blur(2px); }
.redact-toggle[aria-pressed="true"] .label-undo { opacity: 1; filter: none; }
.redact-doc {
  padding: clamp(28px, 4vw, 44px);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-3);
  font-family: var(--doc);
  color: #1C2433;
}
.doc-title { font: 650 14px/1.3 var(--sans); letter-spacing: 0.03em; color: var(--ink); }
.doc-fields { display: grid; gap: 12px; margin-top: 28px; }
.doc-fields div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: baseline; }
.doc-fields dt { font: 500 12.5px/1.4 var(--sans); color: var(--ink-3); }
.doc-fields dd { font-size: 17px; }
.doc-body { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 16px; line-height: 1.6; color: #3A4252; }
.pii { position: relative; }
.pii::after {
  content: "";
  position: absolute;
  inset: -0.08em -0.14em;
  border-radius: 0.14em;
  background: var(--ink);
  clip-path: inset(0 100% 0 0);
  transition: clip-path 240ms var(--ease-out);
}
.is-redacted .pii::after { clip-path: inset(0 0 0 0); transition: clip-path 380ms var(--ease-in-out); }
.is-redacted .p2::after { transition-delay: 60ms; }
.is-redacted .p3::after { transition-delay: 100ms; }
.is-redacted .p4::after { transition-delay: 130ms; }
.doc-status { display: grid; margin-top: 24px; font: 500 14px/1.4 var(--sans); }
.status { grid-area: 1 / 1; display: inline-flex; align-items: center; gap: 8px; transition: opacity 260ms ease, filter 260ms ease, transform 260ms var(--ease-out); }
.status-found { color: var(--del); }
.status-done { color: var(--ins); opacity: 0; filter: blur(2px); transform: translateY(4px); }
.status svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.is-redacted .status-found { opacity: 0; filter: blur(2px); transform: translateY(-4px); }
.is-redacted .status-done { opacity: 1; filter: none; transform: none; transition-delay: 380ms; }
@media (max-width: 860px) { .doc-fields div { grid-template-columns: 1fr; gap: 2px; } }

/* Tools: rows separated by hairlines, no outer box, so a short last row leaves no gap.
   No hover motion: the cards are not links. */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  column-gap: clamp(24px, 3vw, 40px);
}
.tool { padding: 28px 0 36px; border-top: 1px solid var(--line-2); }
.tool svg { width: 28px; height: 28px; fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.tool svg .fill { fill: var(--blue); stroke: var(--blue); }
.tool h3 { margin-top: 28px; font-size: 16px; font-weight: 600; letter-spacing: -0.015em; }
.tool p { margin-top: 4px; color: var(--ink-3); font-size: 14.5px; line-height: 1.5; }

/* Audience */
.audience-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); }
.audience-cols article { padding-top: 24px; border-top: 1px solid var(--line-2); }
.audience-n { font: italic 400 30px/1 var(--serif); color: var(--blue); }
.audience-cols h3 { margin-top: 20px; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.audience-cols p:not(.audience-n) { margin-top: 10px; color: var(--ink-2); font-size: 15.5px; }
@media (max-width: 860px) { .audience-cols { grid-template-columns: 1fr; } }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.faq-list { border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  font-size: 17.5px;
  font-weight: 500;
  letter-spacing: -0.015em;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.plus { position: relative; flex-shrink: 0; width: 14px; height: 14px; }
.plus::before, .plus::after { content: ""; position: absolute; left: 0; top: 6.25px; width: 14px; height: 1.5px; border-radius: 1px; background: var(--ink); }
.plus::after { transform: rotate(90deg); transition: transform 200ms var(--ease-out); }
details[open] .plus::after { transform: rotate(0deg); }
.answer { padding-bottom: 24px; color: var(--ink-2); max-width: 60ch; }
.answer a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
@supports selector(::details-content) {
  .faq details::details-content { block-size: 0; overflow: clip; transition: block-size 260ms var(--ease-out), content-visibility 260ms allow-discrete; }
  .faq details[open]::details-content { block-size: auto; }
}
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; } }

/* Closing */
.closing { padding-block: var(--section); }
.display-closing { max-width: 17ch; font-size: clamp(2.4rem, 1.2rem + 4.6vw, 5rem); }
.closing .pill { margin-top: 32px; }

/* Footer */
.footer { border-top: 1px solid var(--line); }
.footer-row { display: flex; align-items: center; gap: 16px 32px; flex-wrap: wrap; padding-block: 32px; }
.footer-links { display: flex; gap: 24px; font-size: 14px; color: var(--ink-2); }
.footer-note { margin-left: auto; color: var(--ink-3); font-size: 13.5px; }
@media (max-width: 640px) { .footer-note { margin-left: 0; width: 100%; } }

/* Legal page */
.legal { padding-block: clamp(56px, 8vw, 112px) var(--section); }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(2.4rem, 1.4rem + 3.6vw, 4rem); line-height: 1.02; letter-spacing: -0.045em; font-weight: 600; }
.legal .legal-date { margin-top: 16px; color: var(--ink-3); font-size: 14px; }
.legal .legal-lede { margin-top: 32px; font-size: 1.2rem; line-height: 1.55; color: var(--ink); letter-spacing: -0.01em; }
.legal h2 { margin-top: 48px; font-size: 1.35rem; letter-spacing: -0.025em; font-weight: 600; }
.legal p:not(.eyebrow):not(.legal-date):not(.legal-lede), .legal li { color: var(--ink-2); font-size: 16.5px; line-height: 1.7; }
.legal h2 + p, .legal h2 + ul { margin-top: 12px; }
.legal p + p { margin-top: 14px; }
.legal ul { display: grid; gap: 8px; }
.legal li { display: flex; gap: 12px; }
.legal li::before { content: ""; flex-shrink: 0; width: 10px; height: 1.5px; margin-top: 0.85em; background: var(--blue); }
.legal a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.notfound { padding-block: clamp(96px, 16vw, 200px); }
.notfound p:not(.eyebrow) { margin-top: 20px; color: var(--ink-2); }
.notfound .button { margin-top: 32px; }

/* Entrance choreography, once per visit
   pill (decoration, fade) · title (lead) · lede · actions · stage,
   then inside the stage the explanation: changes highlight, data gets redacted, results appear. */
@keyframes rise { from { opacity: 0; transform: translateY(var(--rise, 12px)); } }
@keyframes fade { from { opacity: 0; } }
@keyframes stage-in { from { opacity: 0; transform: translateY(28px) scale(0.985); } }
@keyframes wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes float-in { from { opacity: 0; translate: 0 10px; } }

@media (prefers-reduced-motion: no-preference) {
  .e-pill { animation: fade 500ms ease both; }
  .e-title { --rise: 16px; animation: rise 700ms var(--ease-out) both; }
  .e-lede { --rise: 10px; animation: rise 600ms var(--ease-out) 100ms both; }
  .e-actions { --rise: 8px; animation: rise 600ms var(--ease-out) 160ms both; }
  .e-stage { animation: stage-in 900ms var(--ease-out) 220ms both; }

  .mark::before { animation: wipe 520ms var(--ease-in-out) both; }
  .mark.m1::before { animation-delay: 900ms; }
  .mark.m2::before { animation-delay: 1020ms; }
  .mark.m3::before { animation-delay: 1100ms; }
  .redact::after { animation: wipe 460ms var(--ease-in-out) both; }
  .redact.r1::after { animation-delay: 1240ms; }
  .redact.r2::after { animation-delay: 1300ms; }
  .result { animation: float-in 600ms var(--ease-out) 1180ms both; }
  .chip-tarja { animation: fade 400ms ease 1620ms both; }
  .chip-off { animation: fade 400ms ease 1000ms both; }
}
@media (prefers-reduced-motion: reduce) {
  .enter { animation: fade 400ms ease both; }
  .step, .shot, .frame-progress-bar, .pii::after, .is-redacted .pii::after, .status { transition-property: opacity; }
  .shot { transform: none; filter: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .nav { background: var(--paper); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .chip { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
