/* ═══════════════════════════════════════════════════════════════════
   IDBird — security-print design system
   paper / ink / logo-blue / guilloché / passport-burgundy / redact-black
   ═══════════════════════════════════════════════════════════════════ */

@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/archivo-v25-latin-500.woff2') format('woff2'); }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/archivo-v25-latin-700.woff2') format('woff2'); }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 900; font-display: swap; src: url('/assets/fonts/archivo-v25-latin-900.woff2') format('woff2'); }
@font-face { font-family: 'Public Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/public-sans-v21-latin-regular.woff2') format('woff2'); }
@font-face { font-family: 'Public Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/public-sans-v21-latin-600.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/ibm-plex-mono-v20-latin-regular.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/ibm-plex-mono-v20-latin-600.woff2') format('woff2'); }
@font-face { font-family: 'Share Tech Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/share-tech-mono-v16-latin-regular.woff2') format('woff2'); }

:root {
  --paper: #F4F7FB;
  --plate: #FFFFFF;
  --ink: #1A191D;
  --ink-soft: #4B5563;
  --brand: #5DA4DA;
  --brand-soft: #6EAFE0;
  --brand-deep: #2C6EA6;
  --guilloche: #C9DCEE;
  --burgundy: #5C1F35;
  --redact: #0B0B0E;
  --line: #D9E2ED;
  --display: 'Archivo', 'Segoe UI', sans-serif;
  --body: 'Public Sans', 'Segoe UI', sans-serif;
  --mrz: 'Share Tech Mono', 'IBM Plex Mono', monospace;
  --mono: 'IBM Plex Mono', Consolas, monospace;
  --guilloche-tile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='140' viewBox='0 0 260 140'%3E%3Cg fill='none' stroke='%23c9dcee' stroke-width='0.7'%3E%3Cpath d='M0 70 C 32.5 10, 97.5 10, 130 70 S 227.5 130, 260 70'/%3E%3Cpath d='M0 70 C 32.5 130, 97.5 130, 130 70 S 227.5 10, 260 70'/%3E%3Cpath d='M0 35 C 43 105, 87 105, 130 35 S 217 -35, 260 35'/%3E%3Cpath d='M0 105 C 43 35, 87 35, 130 105 S 217 175, 260 105'/%3E%3C/g%3E%3C/svg%3E");
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

h1, h2, h3 { font-family: var(--display); line-height: 1.08; letter-spacing: -0.015em; }
h1 { font-weight: 900; font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
h2 { font-weight: 900; font-size: clamp(1.7rem, 3.2vw, 2.5rem); margin-bottom: 0.75rem; }
h3 { font-weight: 700; font-size: 1.15rem; }

a { color: var(--brand-deep); }

code { font-family: var(--mono); font-size: 0.92em; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 1rem; top: -3.5rem; z-index: 100;
  background: var(--ink); color: var(--paper);
  padding: 0.6rem 1rem; border-radius: 0 0 4px 4px;
  transition: top 120ms ease;
}
.skip-link:focus { top: 0; }

:focus-visible { outline: 2px solid var(--brand-deep); outline-offset: 3px; }

.shell { max-width: 1160px; margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2rem); }
.shell-narrow { max-width: 800px; }

/* ── MRZ motif ─────────────────────────────────────────────────── */
.mrz-eyebrow {
  font-family: var(--mrz);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-deep);
  margin-bottom: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}

.mrz-line { font-family: var(--mrz); letter-spacing: 0.1em; }

/* ── Buttons ───────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  padding: 0.78rem 1.5rem;
  border-radius: 3px;
  border: 1.5px solid var(--ink);
  transition: background 140ms ease, color 140ms ease, transform 140ms ease;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--brand-deep); border-color: var(--brand-deep); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-small { padding: 0.45rem 0.95rem; font-size: 0.88rem; }
.btn:active { transform: translateY(1px); }

/* ── Header ────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: flex; align-items: center; gap: 1.6rem;
  padding-block: 0.65rem;
}
.brand img { height: 46px; width: auto; display: block; }
.site-nav { display: flex; gap: 1.35rem; margin-inline: auto; flex-wrap: wrap; }
.site-nav a {
  font-family: var(--display); font-weight: 500; font-size: 0.95rem;
  color: var(--ink); text-decoration: none;
}
.site-nav a:hover, .site-nav a[aria-current] { color: var(--brand-deep); }
.header-actions { display: flex; align-items: center; gap: 1rem; }
.lang-menu { position: relative; font-family: var(--mrz); font-size: 0.82rem; }
.lang-menu summary {
  list-style: none; cursor: pointer;
  background: var(--ink); color: var(--paper);
  padding: 0.3rem 0.55rem; border-radius: 2px;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary::after { content: ' \25BE'; font-size: 0.7em; }
.lang-menu[open] summary::after { content: ' \25B4'; }
.lang-menu nav {
  position: absolute; right: 0; top: calc(100% + 0.45rem); z-index: 60;
  min-width: 11rem;
  background: var(--plate); border: 1px solid var(--line); border-radius: 4px;
  box-shadow: 0 14px 30px -14px rgba(26, 41, 66, 0.35);
  padding: 0.35rem;
}
.lang-menu nav a {
  display: block; text-decoration: none; color: var(--ink-soft);
  font-family: var(--body); font-size: 0.88rem;
  padding: 0.4rem 0.6rem; border-radius: 3px;
}
.lang-menu nav a strong { font-family: var(--mrz); font-weight: 400; color: var(--ink); margin-right: 0.4rem; }
.lang-menu nav a:hover { background: var(--paper); color: var(--brand-deep); }
.lang-menu nav a[aria-current] { background: var(--ink); color: var(--paper); }
.lang-menu nav a[aria-current] strong { color: var(--paper); }

/* ── Sections ──────────────────────────────────────────────────── */
.section { padding-block: clamp(3.4rem, 7vw, 5.6rem); }
.section-tint { background: var(--plate); border-block: 1px solid var(--line); }
.section-dark { background: var(--redact); color: #E6EDF6; }
.section-dark h2 { color: #FFFFFF; }
.section-dark .mrz-eyebrow { color: var(--brand-soft); }
.section-lead { max-width: 46rem; color: var(--ink-soft); margin-bottom: 2.2rem; font-size: 1.08rem; }
.section-dark .section-lead { color: #ADBDD1; }
.note { font-size: 0.92rem; color: var(--ink-soft); margin-top: 1.6rem; }
.section-dark .note { color: #8FA2BA; }

.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }

.plate {
  background: var(--plate);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1.6rem 1.5rem;
  position: relative;
}
.section-tint .plate { box-shadow: 0 1px 0 var(--line); }
.plate h3 { margin-bottom: 0.55rem; }
.plate p { font-size: 0.97rem; color: var(--ink-soft); }

/* ── Hero ──────────────────────────────────────────────────────── */
.hero {
  padding-block: clamp(3rem, 6vw, 5rem);
  background:
    linear-gradient(180deg, rgba(244,247,251,0) 0%, var(--paper) 88%),
    var(--guilloche-tile);
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.hero-grid > * { min-width: 0; }
.hero h1 { margin-bottom: 1.2rem; }
.lead { font-size: 1.14rem; color: var(--ink-soft); max-width: 34rem; }
.hero-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 1.8rem; }
.trust-list {
  display: flex; gap: 1.4rem; flex-wrap: wrap;
  list-style: none; margin-top: 1.9rem;
}
.trust-list li {
  font-size: 0.86rem; font-weight: 600; color: var(--ink-soft);
  padding-left: 1.15rem; position: relative;
}
.trust-list li::before {
  content: ''; position: absolute; left: 0; top: 0.42em;
  width: 0.55em; height: 0.55em; background: var(--brand);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

/* ── Specimen ID card ──────────────────────────────────────────── */
.hero-demo { position: relative; }

.id-card {
  position: relative;
  aspect-ratio: 1.586;
  background: linear-gradient(135deg, #FDFEFF 0%, #EAF1F9 55%, #DDE9F5 100%);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 18px 40px -18px rgba(26, 41, 66, 0.35);
  overflow: hidden;
  padding: 4.2% 4.6%;
  display: flex; flex-direction: column;
}
.card-guilloche {
  position: absolute; inset: 0;
  background: var(--guilloche-tile);
  background-size: 130px 70px;
  opacity: 0.55;
  pointer-events: none;
}
.card-head {
  display: flex; justify-content: space-between; align-items: baseline;
  position: relative; z-index: 1;
  border-bottom: 1px solid var(--guilloche);
  padding-bottom: 0.3rem; margin-bottom: 0.55rem;
}
.card-state { font-family: var(--display); font-weight: 700; font-size: clamp(0.6rem, 1.3vw, 0.78rem); letter-spacing: 0.12em; color: var(--brand-deep); }
.card-type { font-family: var(--mrz); font-size: clamp(0.55rem, 1.1vw, 0.7rem); letter-spacing: 0.18em; color: var(--ink-soft); }
.card-specimen {
  position: absolute; z-index: 3; top: 46%; left: 50%;
  transform: translate(-50%, -50%) rotate(-14deg);
  font-family: var(--display); font-weight: 900;
  font-size: clamp(1.5rem, 4vw, 2.4rem); letter-spacing: 0.42em;
  color: rgba(255, 255, 255, 0.16);
  -webkit-text-stroke: 1.3px rgba(92, 31, 53, 0.55);
  pointer-events: none;
}
.card-body { display: flex; gap: 4.5%; position: relative; z-index: 1; flex: 1; min-height: 0; }
.card-photo {
  position: relative; width: 26%; align-self: flex-start;
  aspect-ratio: 60 / 74;
  background: linear-gradient(180deg, #D3E1EF, #BFD3E6);
  border: 1px solid #AFC6DC; border-radius: 3px; overflow: hidden;
}
.card-photo svg { width: 100%; height: 100%; display: block; }
.card-fields { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 0.28rem 0.7rem; align-content: start; }
.card-fields dt {
  font-family: var(--body); font-size: clamp(0.42rem, 0.95vw, 0.56rem);
  text-transform: uppercase; letter-spacing: 0.09em; color: var(--ink-soft);
}
.card-fields dd { font-family: var(--mrz); font-size: clamp(0.6rem, 1.5vw, 0.85rem); color: var(--ink); }
.card-sign { grid-column: 1 / -1; position: relative; margin-top: 0.1rem; }
.card-sign dd { position: relative; width: 62%; }
.card-sign svg { width: 100%; height: auto; display: block; }
.card-mrz {
  position: relative; z-index: 1;
  margin-top: auto;
  background: rgba(255, 255, 255, 0.75);
  border-top: 1px solid var(--guilloche);
  padding: 0.35rem 0.45rem 0.25rem;
  font-family: var(--mrz);
  font-size: clamp(0.58rem, 1.55vw, 0.86rem);
  letter-spacing: 0.08em;
  line-height: 1.35;
  color: var(--ink);
  white-space: nowrap;
}
.card-mrz > span { display: block; }

/* detection + redaction states */
[data-zone] { isolation: isolate; }
.zone-cover {
  position: absolute; inset: -2px; z-index: 2;
  background:
    repeating-conic-gradient(#0B0B0E 0% 25%, #17161B 0% 50%) 0 0 / 9px 9px;
  clip-path: inset(0 100% 0 0);
  pointer-events: none;
}
.card-sign .zone-cover { inset: -3px -4px; }
.is-redacted .zone-cover { clip-path: inset(0 0 0 0); transition: clip-path 480ms cubic-bezier(0.6, 0, 0.3, 1); }
.zone-tag {
  position: absolute; z-index: 4; top: -1.35rem; left: -1px;
  font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.03em;
  background: var(--burgundy); color: #F6E9EE;
  padding: 0.1rem 0.35rem; border-radius: 2px;
  opacity: 0; transform: translateY(3px);
  transition: opacity 200ms ease, transform 200ms ease;
  white-space: nowrap;
}
.card-mrz .zone-tag { top: auto; bottom: calc(100% + 2px); }
.is-detected .zone-tag { opacity: 1; transform: translateY(0); }
.is-detected { outline: 1.5px dashed rgba(92, 31, 53, 0.75); outline-offset: 2px; }
.is-redacted.is-detected { outline-color: transparent; }
.is-redacted .zone-tag { opacity: 0; }

.scan-line {
  position: absolute; z-index: 5; left: 0; right: 0; top: -4px; height: 3px;
  background: linear-gradient(90deg, transparent, var(--brand) 20%, var(--brand-soft) 50%, var(--brand) 80%, transparent);
  box-shadow: 0 0 14px 2px rgba(93, 164, 218, 0.65);
  opacity: 0;
}
.is-scanning .scan-line { animation: scan-sweep 1100ms cubic-bezier(0.4, 0, 0.5, 1) 1 forwards; }
@keyframes scan-sweep {
  0% { opacity: 0; top: -4px; }
  8% { opacity: 1; }
  92% { opacity: 1; }
  100% { opacity: 0; top: calc(100% + 2px); }
}

.demo-caption {
  font-size: 0.78rem; color: var(--ink-soft);
  margin-top: 0.6rem; text-align: right; font-style: italic;
}

.demo-console {
  margin-top: 1rem;
  background: var(--redact);
  border-radius: 8px;
  box-shadow: 0 14px 34px -18px rgba(11, 11, 14, 0.7);
  overflow: hidden;
}
.console-bar {
  display: flex; align-items: center; gap: 0.42rem;
  padding: 0.55rem 0.85rem;
  background: #17171C; border-bottom: 1px solid #26262D;
}
.console-bar span { width: 0.62rem; height: 0.62rem; border-radius: 50%; background: #33333B; }
.console-bar code { margin-left: 0.5rem; color: #8FA2BA; font-size: 0.74rem; }
.console-out {
  padding: 0.9rem 1rem 1rem;
  font-family: var(--mono); font-size: 0.76rem; line-height: 1.55;
  color: #C9DCEE;
  min-height: 13.2em;
  white-space: pre; overflow-x: auto;
}
.console-out .cursor {
  display: inline-block; width: 0.55em; height: 1em;
  background: var(--brand); vertical-align: text-bottom;
  animation: blink 900ms steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.demo-replay {
  position: absolute; top: -2.4rem; right: 0;
  font-family: var(--mono); font-size: 0.74rem;
  background: none; border: 1px solid var(--line); border-radius: 3px;
  color: var(--ink-soft); padding: 0.28rem 0.6rem; cursor: pointer;
}
.demo-replay:hover { color: var(--brand-deep); border-color: var(--brand-deep); }

/* ── Destroy cards ─────────────────────────────────────────────── */
.destroy-card h3 { min-height: 2.5em; display: flex; align-items: flex-start; }
.redact-swipe { position: relative; display: inline; }
.redact-swipe::after {
  content: ''; position: absolute; inset: -0.08em -0.15em;
  background: var(--redact);
  transform-origin: right center;
  transition: transform 700ms cubic-bezier(0.65, 0, 0.3, 1) 150ms;
}
.in-view .redact-swipe::after, .in-view.redact-swipe::after { transform: scaleX(0); }
.detector-chip {
  display: inline-block; margin-top: 1rem;
  font-size: 0.68rem; letter-spacing: 0.02em;
  background: var(--paper); border: 1px solid var(--line);
  color: var(--brand-deep);
  padding: 0.22rem 0.5rem; border-radius: 2px;
}

/* ── Steps ─────────────────────────────────────────────────────── */
.steps {
  list-style: none;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem;
  counter-reset: step;
}
.step-no {
  display: block;
  font-family: var(--mrz); font-size: 2rem;
  color: transparent; -webkit-text-stroke: 1px var(--brand-deep);
  margin-bottom: 0.6rem;
}

/* ── Code panels ───────────────────────────────────────────────── */
.example-block { margin-top: 3rem; }
.example-block > h3 { font-size: 1.35rem; margin-bottom: 0.4rem; }
.code-panel { margin-top: 1.4rem; }
.code-request {
  background: var(--redact); color: #C9DCEE;
  font-family: var(--mono); font-size: 0.85rem; line-height: 1.6;
  padding: 1.1rem 1.3rem; border-radius: 8px 8px 0 0;
  overflow-x: auto;
}
.api-section .code-request { border-radius: 8px; margin-top: 1.2rem; }
.tabs { display: flex; flex-wrap: wrap; gap: 0.4rem; background: var(--plate); border: 1px solid var(--line); border-bottom: 0; padding: 0.6rem 0.8rem 0; }
.tabs [role="tab"] {
  font-family: var(--mono); font-size: 0.8rem;
  background: none; border: 1px solid var(--line); border-bottom: 0;
  border-radius: 4px 4px 0 0;
  padding: 0.45rem 0.85rem; cursor: pointer; color: var(--ink-soft);
}
.tabs [role="tab"][aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.code-response {
  background: var(--plate); border: 1px solid var(--line);
  font-family: var(--mono); font-size: 0.85rem; line-height: 1.6;
  padding: 1.1rem 1.3rem; border-radius: 0 0 8px 8px;
  overflow-x: auto;
}
.api-section .code-response { border-radius: 8px; margin-top: 1rem; }
.response-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; margin-top: 1.6rem; }
.response-grid h3 { font-family: var(--mono); font-weight: 600; font-size: 0.88rem; color: var(--brand-deep); }

/* ── Warnings ──────────────────────────────────────────────────── */
.how-docs { margin-top: 2.4rem; }
.warnings-more { margin-top: 1.4rem; }
.warnings-more a {
  font-family: var(--mono); font-size: 0.9rem;
  color: var(--brand-soft); text-decoration: none;
  border-bottom: 1px solid var(--brand-soft);
  padding-bottom: 0.15rem;
}
.warnings-more a:hover, .warnings-more a:focus-visible { color: #FFFFFF; border-color: #FFFFFF; }
.warning-list { margin-top: 2.2rem; border-top: 1px solid #26262D; }
.warning-row {
  display: grid; grid-template-columns: minmax(220px, 320px) 1fr; gap: 1.5rem;
  padding: 0.78rem 0; border-bottom: 1px solid #26262D;
}
.warning-row dt code { color: var(--brand-soft); font-size: 0.86rem; }
.warning-row dd { color: #ADBDD1; font-size: 0.95rem; }

/* ── Invariants ────────────────────────────────────────────────── */
.invariant-list { list-style: none; margin-top: 2rem; border-top: 1px solid var(--line); max-width: 56rem; }
.invariant-list li {
  display: grid; grid-template-columns: 4rem 1fr; gap: 1rem; align-items: baseline;
  padding: 0.85rem 0; border-bottom: 1px solid var(--line);
}
.inv-no { font-family: var(--mrz); font-size: 1.25rem; color: var(--burgundy); }
.invariant-list p { color: var(--ink-soft); }

/* ── EU stamp ──────────────────────────────────────────────────── */
.eu-grid { display: grid; grid-template-columns: 1.4fr 0.6fr; gap: 3rem; align-items: center; }
.eu-stamp { color: var(--brand-deep); opacity: 0.85; transform: rotate(-8deg); width: min(240px, 100%); justify-self: center; }
.eu-stamp svg { display: block; width: 100%; height: auto; }
.eu-stamp .stamp-text { font-family: var(--display); font-weight: 900; font-size: 27px; letter-spacing: 0.1em; fill: currentColor; }
.eu-stamp .stamp-sub { font-family: var(--mono); font-size: 13px; letter-spacing: 0.14em; fill: currentColor; }
.site-note {
  margin-top: 1.4rem; padding: 0.9rem 1.1rem;
  border-left: 3px solid var(--brand);
  background: var(--paper);
  font-size: 0.95rem; color: var(--ink-soft);
}
.section-tint .site-note { background: var(--paper); }

/* ── Coverage ──────────────────────────────────────────────────── */
.coverage-label { margin: 1.8rem 0 0.8rem; font-size: 0.95rem; color: var(--ink-soft); }
.coverage-label::before {
  content: ''; display: inline-block; width: 0.85em; height: 0.85em;
  margin-right: 0.5em; border-radius: 2px; vertical-align: -0.08em;
}
.coverage-full::before { background: var(--brand-deep); }
.coverage-mrz::before { background: transparent; border: 1.5px dashed var(--brand-deep); }
.country-grid { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.country {
  font-size: 0.86rem; color: var(--ink-soft);
  background: var(--plate); border: 1px solid var(--line); border-radius: 3px;
  padding: 0.32rem 0.65rem;
}
.country strong { font-family: var(--mono); font-size: 0.8rem; color: var(--ink); margin-right: 0.3rem; }
.country-tier1 { border-left: 3px solid var(--brand-deep); }
.country-tier2 { border-left: 3px dashed var(--guilloche); }

/* ── Pricing ───────────────────────────────────────────────────── */
.badge {
  display: inline-block; vertical-align: middle;
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1.5px solid var(--burgundy); color: var(--burgundy);
  border-radius: 3px; padding: 0.2rem 0.55rem; margin-left: 0.7rem;
  transform: rotate(-2deg);
}
.tier { display: flex; flex-direction: column; }
.tier-price { font-family: var(--display); font-weight: 900; font-size: 2.1rem; margin: 0.4rem 0 1rem; }
.tier-price span { font-size: 0.85rem; font-weight: 500; color: var(--ink-soft); font-family: var(--body); }
.tier ul { list-style: none; margin-bottom: 1.5rem; flex: 1; }
.tier li {
  font-size: 0.94rem; color: var(--ink-soft);
  padding: 0.4rem 0 0.4rem 1.3rem; position: relative;
  border-bottom: 1px dashed var(--line);
}
.tier li::before { content: '\2713'; position: absolute; left: 0; color: var(--brand-deep); font-weight: 700; }
.tier .btn { align-self: flex-start; }

/* ── FAQ ───────────────────────────────────────────────────────── */
.faq-list { border-top: 1px solid var(--line); margin-top: 1.6rem; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  font-family: var(--display); font-weight: 700; font-size: 1.05rem;
  padding: 1.05rem 2.2rem 1.05rem 0; cursor: pointer;
  list-style: none; position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; position: absolute; right: 0.2rem; top: 50%;
  transform: translateY(-50%);
  font-family: var(--mrz); font-size: 1.4rem; color: var(--brand-deep);
  transition: transform 200ms ease;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p { padding: 0 0 1.2rem; color: var(--ink-soft); max-width: 44rem; }

/* ── Final CTA ─────────────────────────────────────────────────── */
.final-cta {
  text-align: center;
  background:
    linear-gradient(180deg, var(--paper) 0%, rgba(244,247,251,0.45) 50%, var(--paper) 100%),
    var(--guilloche-tile);
}
.final-cta .section-lead { margin-inline: auto; }
.final-cta .hero-actions { justify-content: center; }

/* ── Contact page ──────────────────────────────────────────────── */
.contact-page {
  padding-block: clamp(3rem, 6vw, 5rem);
  background:
    linear-gradient(180deg, rgba(244,247,251,0) 0%, var(--paper) 88%),
    var(--guilloche-tile);
}
.contact-grid {
  display: grid; grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: start;
}
.contact-grid > * { min-width: 0; }
.contact-intro h1 { margin-bottom: 1.2rem; }
.contact-intro .section-lead { margin-bottom: 0; }
.contact-direct {
  margin-top: 2.4rem; padding: 1rem 1.2rem 1.1rem;
  border-left: 3px solid var(--brand);
  background: var(--plate);
}
.contact-direct h2 { font-size: 1.02rem; margin-bottom: 0.25rem; }
.contact-direct p { font-size: 0.93rem; color: var(--ink-soft); }
.contact-mail { font-family: var(--mono); font-size: 0.93rem; display: inline-block; margin-top: 0.55rem; }

.contact-form { padding: 1.7rem 1.7rem 2rem; }
.form-head {
  display: flex; justify-content: space-between; gap: 1rem;
  font-family: var(--mrz); font-size: 0.74rem; letter-spacing: 0.12em;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.55rem; margin-bottom: 1.5rem;
  white-space: nowrap; overflow: hidden;
}
.form-head .form-no { color: var(--burgundy); }

.field { margin-bottom: 1.15rem; }
.field label {
  display: block;
  font-size: 0.72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.09em;
  color: var(--ink-soft);
  margin-bottom: 0.35rem;
}
.field-optional { font-weight: 400; text-transform: lowercase; letter-spacing: 0.02em; }
.field input, .field textarea {
  width: 100%;
  font-family: var(--body); font-size: 0.98rem; line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line); border-radius: 3px;
  padding: 0.6rem 0.75rem;
}
.field input:hover, .field textarea:hover { border-color: var(--brand-deep); }
.field textarea { resize: vertical; min-height: 9.5rem; }
.field [aria-invalid="true"] { border-color: var(--burgundy); }
.form-error { font-size: 0.85rem; color: var(--burgundy); margin-top: 0.35rem; }
.form-error-global {
  border: 1px solid var(--burgundy); border-radius: 3px;
  background: #F8EEF2;
  padding: 0.7rem 0.9rem; margin: 0 0 1.2rem;
}
.field-website {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.form-privacy { font-size: 0.82rem; color: var(--ink-soft); margin: 1.3rem 0 1.4rem; }
.field-turnstile { min-height: 65px; }

.contact-sent { text-align: center; padding-bottom: 2.6rem; }
.contact-sent h2 { margin-bottom: 0.5rem; }
.contact-sent p { color: var(--ink-soft); max-width: 32rem; margin-inline: auto; }
.contact-sent .btn { margin-top: 1.6rem; }
.sent-stamp {
  color: var(--burgundy); opacity: 0.9;
  width: min(190px, 60%); margin: 0.8rem auto 1.5rem;
  transform: rotate(-8deg);
  animation: stamp-in 420ms cubic-bezier(0.2, 1.4, 0.4, 1) both;
}
.sent-stamp svg { display: block; width: 100%; height: auto; }
.sent-stamp .stamp-text { font-family: var(--display); font-weight: 900; font-size: 24px; letter-spacing: 0.1em; fill: currentColor; }
.sent-stamp .stamp-sub { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; fill: currentColor; }
@keyframes stamp-in {
  from { transform: rotate(-8deg) scale(1.5); opacity: 0; }
  to { transform: rotate(-8deg) scale(1); opacity: 0.9; }
}

/* ── API page ──────────────────────────────────────────────────── */
.api-hero { padding-bottom: 1rem; }
.api-section { padding-block: 2.4rem; }
.api-section h2 { font-size: 1.45rem; margin-bottom: 0.5rem; }
.api-section > .shell > p { color: var(--ink-soft); max-width: 52rem; }
.table-scroll { overflow-x: auto; margin-top: 1.2rem; }
.api-table {
  width: 100%; border-collapse: collapse;
  background: var(--plate); border: 1px solid var(--line);
  font-size: 0.94rem;
}
.api-table th {
  font-family: var(--mono); font-size: 0.78rem; text-transform: uppercase;
  letter-spacing: 0.06em; text-align: left; color: var(--ink-soft);
  background: var(--paper);
}
.api-table th, .api-table td { padding: 0.65rem 0.9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.api-table td:first-child { white-space: nowrap; }
.method { color: var(--brand-deep); font-weight: 600; }
.http-4xx { color: var(--burgundy); }
.http-5xx { color: #8A3049; }
.limit-list { margin-top: 1.2rem; max-width: 52rem; }
.limit-list li { margin: 0.5rem 0 0.5rem 1.2rem; color: var(--ink-soft); }

/* ── 404 ───────────────────────────────────────────────────────── */
.notfound { text-align: left; }
.notfound .code-response { margin-block: 1.8rem; }

/* ── Footer ────────────────────────────────────────────────────── */
.site-footer { background: var(--redact); color: #ADBDD1; margin-top: 2rem; }
.footer-grid {
  display: grid; grid-template-columns: 1.2fr 0.9fr 0.9fr; gap: 2.5rem;
  padding-block: 3.2rem 2rem;
}
.footer-brand img { height: 52px; width: auto; margin-bottom: 0.9rem; }
.footer-brand p { font-size: 0.92rem; max-width: 26rem; }
.site-footer h2 { font-family: var(--mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: #6E7E93; margin-bottom: 0.8rem; }
.footer-nav a, .footer-contact a { display: block; color: #C9DCEE; text-decoration: none; padding: 0.22rem 0; font-size: 0.95rem; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--brand-soft); }
.footer-note { font-size: 0.8rem; margin-top: 1rem; color: #6E7E93; }
.footer-legal {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  border-top: 1px solid #26262D; padding-block: 1.1rem;
  font-size: 0.78rem; color: #6E7E93;
}
.footer-legal .mrz-line { font-size: 0.72rem; overflow: hidden; }

/* ── Reveal on scroll ──────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 600ms ease, transform 600ms ease; }
.reveal.in-view { opacity: 1; transform: none; }

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-form { max-width: 640px; }
  .hero-demo { max-width: 560px; margin-top: 2.6rem; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .response-grid { grid-template-columns: 1fr; }
  .eu-grid { grid-template-columns: 1fr; }
  .eu-stamp { justify-self: start; max-width: 190px; }
}
@media (max-width: 780px) {
  .site-nav { display: none; }
  .header-row { justify-content: space-between; }
  .grid-3 { grid-template-columns: 1fr; }
  .warning-row { grid-template-columns: 1fr; gap: 0.2rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
}
@media (max-width: 560px) {
  .grid-4 { grid-template-columns: 1fr; }
  .destroy-card h3 { min-height: 0; }
  .card-specimen { letter-spacing: 0.25em; }
  .header-row { gap: 0.6rem; }
  .header-actions { gap: 0.5rem; }
  .brand img { height: 38px; }
  .btn-small { padding: 0.4rem 0.65rem; font-size: 0.78rem; }
  .lang-menu { font-size: 0.74rem; }
}

/* ── Reduced motion ────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .redact-swipe::after { transform: scaleX(0); }
}
