/* ==========================================================================
   FaturaDoc landing
   Family of the Metrike landing (same ramp, 3D, scroll-driven motion), with
   its own identity: warm paper instead of mint, heavy compact headlines,
   IBM Plex Mono for anything that is "document data", and three signature
   gestures taken from the logo: the folded corner, the hand-drawn tick and
   the highlighter pen.
   ========================================================================== */
@property --fold-s {
  syntax: "<length>";
  inherits: true;
  initial-value: 28px;
}

:root {
  --forest: #136d59;
  --green: #2e9862;
  --leaf: #93be44;
  --citron: #ccd234;
  --fold: #e8eba4;
  --lime: #d6ff60;
  --coral: #ff6b57;
  --deep: #04241e;
  --deep-2: #031b16;

  --paper: #f7f7f0;
  --paper-2: #efeee3;
  --sheet: #fffffa;
  --ink: #0a2e26;
  --ink-2: #33514a;
  --muted: #5d736b;
  --line: rgba(10, 46, 38, 0.13);
  --hl: rgba(204, 210, 52, 0.62);
  --hl-bad: rgba(255, 107, 87, 0.3);
  --btn-bg: var(--forest);
  --btn-fg: #fffffa;
  --btn-hover: #0e5847;
  --accent: var(--forest);
  --bad-text: #b23a27;
  --tint-ok: rgba(19, 109, 89, 0.11);
  --tint-bad: rgba(255, 107, 87, 0.16);
  --tint-wait: rgba(204, 210, 52, 0.32);
  --folder-1: #e8eba4;
  --folder-2: #dcebc4;
  --folder-3: #cfe6d9;
  --shadow: 0 1px 0 rgba(10, 46, 38, 0.04), 0 22px 44px -26px rgba(10, 46, 38, 0.38);
  --paper-rgb: 247, 247, 240;
  color-scheme: light;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --fs-h2: clamp(2rem, 1.2rem + 3.2vw, 3.75rem);
  --fs-lede: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
  --section-y: clamp(80px, 11vw, 152px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 72px;
  --under: var(--paper);
}

:root[data-theme="dark"] {
  --paper: #06231d;
  --paper-2: #08291f;
  --sheet: #0c3328;
  --ink: #eef2e6;
  --ink-2: #c6d4cb;
  --muted: #9db3a9;
  --line: rgba(238, 242, 230, 0.13);
  --hl: rgba(204, 210, 52, 0.42);
  --hl-bad: rgba(255, 107, 87, 0.34);
  --btn-bg: var(--lime);
  --btn-fg: var(--deep);
  --btn-hover: #e4ff8f;
  --accent: var(--lime);
  --bad-text: #ffb3a8;
  --tint-ok: rgba(214, 255, 96, 0.13);
  --tint-bad: rgba(255, 107, 87, 0.2);
  --tint-wait: rgba(204, 210, 52, 0.22);
  --folder-1: #2f3a14;
  --folder-2: #1f3a1f;
  --folder-3: #123a30;
  --shadow: 0 1px 0 rgba(0, 0, 0, 0.2), 0 22px 44px -26px rgba(0, 0, 0, 0.7);
  --paper-rgb: 6, 35, 29;
  color-scheme: dark;
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--citron); color: var(--deep); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--citron); color: var(--deep); padding: 10px 16px; border-radius: 6px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--mono); font-weight: 400; letter-spacing: 0; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 18px; height: 22px;
  flex: none;
  background: linear-gradient(var(--citron) 25%, var(--leaf) 25% 50%, var(--green) 50% 75%, var(--forest) 75%);
  clip-path: polygon(0 0, 66% 0, 100% 28%, 100% 100%, 0 100%);
  border-radius: 2px;
}
.h2 {
  font-size: var(--fs-h2);
  font-weight: 680;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
  max-width: 20ch;
}
.h3 {
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.4rem);
  font-weight: 620;
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.lede { font-size: var(--fs-lede); color: var(--muted); max-width: 52ch; }
.sec-head { display: grid; gap: 18px; margin-bottom: clamp(40px, 6vw, 72px); }
.sec-head .eyebrow { margin-bottom: 0; }

/* Highlighter pen: sweeps under the word when it scrolls into view */
.hl {
  background-image: linear-gradient(100deg, transparent 0.2em, var(--hl) 0.25em, var(--hl) calc(100% - 0.15em), transparent);
  background-repeat: no-repeat;
  background-size: 0% 0.5em;
  background-position: 0 86%;
  padding-inline: 0.06em;
  margin-inline: -0.06em;
  transition: background-size 0.9s var(--ease) 0.15s;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.hl.is-in { background-size: 100% 0.5em; }
.hl-bad { background-image: linear-gradient(var(--hl-bad), var(--hl-bad)); background-position: 0 50%; }
.hl-bad.is-in { background-size: 100% 100%; }

/* The hand-drawn tick (same gesture as the logo), drawn with a dash */
:where(svg:has(> use[href="#tick"])) {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 32;
  stroke-dashoffset: 32;
  transition: stroke-dashoffset 0.6s var(--ease);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-height: 50px;
  padding: 12px 24px;
  border-radius: 10px;
  border: 1.5px solid transparent;
  font-weight: 620;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s, border-color 0.25s, gap 0.4s var(--ease), transform 0.3s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 42px; padding: 8px 18px; font-size: 0.9375rem; }
.btn-primary { background: var(--btn-bg); color: var(--btn-fg); }
.btn-primary:hover { background: var(--btn-hover); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: rgba(var(--paper-rgb), 0.6); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-tick { width: 0; height: 18px; transition: width 0.4s var(--ease), stroke-dashoffset 0.5s var(--ease) 0.1s; }
.btn:hover, .btn:focus-visible { gap: 10px; }
.btn:hover .btn-tick, .btn:focus-visible .btn-tick { width: 18px; stroke-dashoffset: 0; }

.icon-btn {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: none;
  cursor: pointer;
  color: var(--ink);
}
.icon-btn svg { width: 19px; height: 19px; grid-area: 1 / 1; transition: opacity 0.3s, transform 0.5s var(--ease); }
.icon-sun { opacity: 0; transform: rotate(-90deg) scale(0.6); }
:root[data-theme="dark"] .icon-sun { opacity: 1; transform: none; }
:root[data-theme="dark"] .icon-moon { opacity: 0; transform: rotate(90deg) scale(0.6); }

/* Paper card with a folded corner. --under = the colour behind the card. */
.sheet-card {
  position: relative;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: --fold-s 0.5s var(--ease);
}
.sheet-card::before, .sheet-card::after {
  content: "";
  position: absolute;
  top: -1px; right: -1px;
  width: var(--fold-s); height: var(--fold-s);
  pointer-events: none;
}
.sheet-card::before { background: linear-gradient(to bottom left, var(--under) 50%, transparent 50%); }
.sheet-card::after {
  background: linear-gradient(to bottom left, transparent 50%, var(--fold) 50%);
  border-bottom-left-radius: 6px;
  filter: drop-shadow(-2px 3px 3px rgba(10, 46, 38, 0.12));
}
.sheet-card:hover { --fold-s: 44px; }

/* ---------------------------------------------------------------- header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color 0.35s, border-color 0.35s, transform 0.5s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(var(--paper-rgb), 0.88);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.site-header.is-hidden { transform: translateY(-100%); }
.header-row { height: var(--header-h); display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; flex: none; }
.brand img { height: 34px; width: auto; }
.logo-dark { display: none; }
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }
.nav { display: none; gap: 28px; margin-left: 12px; }
.nav a { text-decoration: none; font-size: 0.9375rem; color: var(--muted); transition: color 0.2s; }
.nav a:hover { color: var(--ink); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.link-enter { display: none; text-decoration: none; font-weight: 600; font-size: 0.9375rem; padding: 8px 10px; }
.link-enter:hover { color: var(--accent); }
.nav-cta { display: none; }
.menu-bars, .menu-bars::before, .menu-bars::after { display: block; width: 18px; height: 1.6px; background: var(--ink); transition: transform 0.35s var(--ease), background-color 0.2s; }
.menu-bars { position: relative; }
.menu-bars::before, .menu-bars::after { content: ""; position: absolute; left: 0; }
.menu-bars::before { top: -6px; }
.menu-bars::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-bars::after { transform: translateY(-6px) rotate(-45deg); }
.menu-mobile { position: fixed; inset: var(--header-h) 0 auto; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 24px; display: grid; }
.menu-mobile[hidden] { display: none; }
.menu-mobile a { padding: 15px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 1.25rem; font-weight: 560; }
.menu-mobile a:last-child { border-bottom: 0; color: var(--accent); }
.site-header.menu-open { background: var(--paper); }
@media (min-width: 1040px) {
  .nav, .link-enter, .nav-cta { display: flex; }
  .menu-toggle, .menu-mobile { display: none !important; }
}
@media (max-width: 420px) { .brand img { height: 30px; } }

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  padding-bottom: 48px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(60% 55% at 78% 46%, rgba(204, 210, 52, 0.2), transparent 70%),
    var(--paper);
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-fallback { position: absolute; z-index: -2; right: 10%; top: 50%; width: min(28vw, 320px); transform: translateY(-50%) rotate(-6deg); opacity: 0.9; }
.hero.has-webgl .hero-fallback { display: none; }
.hero-grid { position: relative; display: grid; }
.hero-copy { max-width: 36rem; }
.hero-title {
  /* Sized by width AND height so the whole hero fits a 1280×720 / 1366×768 notebook. */
  font-size: clamp(2.2rem, min(4.4vw, 7.4vh), 4.5rem);
  font-weight: 720;
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.hero-lede { margin-top: clamp(16px, 2.4vh, 26px); font-size: clamp(1rem, 0.9rem + 0.35vw, 1.1875rem); color: var(--ink-2); max-width: 44ch; }
.hero-actions { margin-top: clamp(20px, 3.4vh, 32px); display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { margin-top: clamp(20px, 3.6vh, 36px); display: flex; flex-wrap: wrap; gap: 8px 22px; font-family: var(--mono); font-size: 0.875rem; color: var(--muted); }
.hero-meta li { display: flex; align-items: baseline; gap: 6px; }
.hero-meta b { color: var(--ink); font-weight: 500; font-size: 1.05rem; }
.hero-caption {
  position: absolute;
  right: var(--gutter);
  bottom: -8px;
  font-size: 0.8125rem;
  color: var(--muted);
  display: none;
}
.hero-caption span { transition: opacity 0.5s; }
.hero-caption [data-cap-b] { position: absolute; right: 0; opacity: 0; color: var(--accent); white-space: nowrap; }
.hero-caption.is-done [data-cap-a] { opacity: 0; }
.hero-caption.is-done [data-cap-b] { opacity: 1; }
@media (min-width: 900px) { .hero-caption { display: block; } }
@media (max-width: 899px) {
  .hero { align-items: flex-end; padding-top: clamp(200px, 36svh, 330px); padding-bottom: 32px; }
  .hero-title { font-size: clamp(2.1rem, 9.6vw, 3.2rem); }
  .hero::after {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: linear-gradient(to top, var(--paper) 52%, rgba(var(--paper-rgb), 0) 74%);
  }
  .hero-fallback { right: 50%; top: 24svh; transform: translate(50%, -50%) rotate(-6deg); width: 34vw; }
  .hero-actions .btn { flex: 1 1 auto; }
  .hero-meta { gap: 6px 16px; font-size: 0.8125rem; }
}
.js [data-rise] { opacity: 0; transform: translateY(22px); }

/* ---------------------------------------------------------------- checklist */
.checklist { padding-block: var(--section-y); border-top: 1px solid var(--line); }
.check-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(36px, 5vw, 64px); }
.check-count {
  font-size: clamp(2.5rem, 1.6rem + 3.4vw, 4.5rem);
  line-height: 1;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.check-count span { color: var(--accent); }
.check-cols { display: grid; gap: 40px; }
.label { font-size: 0.8125rem; color: var(--muted); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.05em; }
.check-list li {
  position: relative;
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 16px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(1rem, 0.94rem + 0.3vw, 1.1875rem);
  color: var(--muted);
  transition: color 0.4s;
}
.check-list li::before {
  content: "";
  width: 24px; height: 24px;
  border: 1.6px solid var(--line);
  border-radius: 6px;
  transition: background-color 0.3s, border-color 0.3s;
}
.check-list li::after {
  content: "";
  position: absolute;
  left: 1px; top: 50%;
  width: 22px; height: 22px;
  transform: translateY(-50%);
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.6 C6.6 14 7.9 15.6 9.3 17.8 C11.6 12.8 14.8 8.8 19.2 5.8' fill='none' stroke='black' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.6 C6.6 14 7.9 15.6 9.3 17.8 C11.6 12.8 14.8 8.8 19.2 5.8' fill='none' stroke='black' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  color: var(--btn-fg);
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.45s var(--ease) 0.1s;
}
.check-list li.is-checked { color: var(--ink); }
.check-list li.is-checked::before { background: var(--btn-bg); border-color: var(--btn-bg); }
.check-list li.is-checked::after { clip-path: inset(0 0 0 0); }
.check-list small { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); margin-left: 8px; }
@media (min-width: 900px) { .check-cols { grid-template-columns: 1fr 1fr; gap: 64px; } }

/* ---------------------------------------------------------------- AI demo */
.ai { padding-block: var(--section-y); border-top: 1px solid var(--line); background:
  radial-gradient(50% 60% at 85% 40%, rgba(147, 190, 68, 0.14), transparent 70%), var(--paper); }
.ai-grid { display: grid; gap: 48px; }
.ai-copy .lede { margin-top: 20px; }
.ai-points { margin-top: 32px; display: grid; counter-reset: ai; }
.ai-points li {
  counter-increment: ai;
  position: relative;
  padding: 16px 0 16px 46px;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
}
.ai-points li::before {
  content: "0" counter(ai);
  position: absolute; left: 0; top: 17px;
  font-family: var(--mono); font-size: 0.8125rem; color: var(--accent);
}
.ai-points b { color: var(--ink); font-weight: 650; }
.ai-demo { align-self: center; }
.ai-tabs { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.ai-tabs button {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 999px;
  padding: 7px 16px;
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--muted);
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.ai-tabs button[aria-selected="true"] { background: var(--btn-bg); border-color: var(--btn-bg); color: var(--btn-fg); }
.ai-card {
  position: relative;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.ai-card-head { display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-bottom: 1px solid var(--line); font-size: 0.8125rem; color: var(--muted); }
.ai-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(46, 152, 98, 0.18); animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.35; } }
.ai-stage { position: relative; padding: 22px 20px; min-height: 330px; display: grid; }
.ai-pane { grid-area: 1 / 1; }
.ai-pane[hidden] { display: none; }
.ai-pane:not([hidden]) { animation: rise 0.5s var(--ease); }
.ai-progress { height: 3px; background: var(--line); }
.ai-progress i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--forest), var(--leaf), var(--citron)); transform-origin: left; transform: scaleX(0); }

/* 0 · read */
.ai-pane[data-ai-pane="0"]:not([hidden]) { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 20px; align-items: center; }
.scan-doc { position: relative; aspect-ratio: 40 / 48; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); padding: 14px; display: grid; align-content: start; gap: 9px; overflow: hidden; }
.scan-title { font-weight: 650; font-size: 0.875rem; margin-bottom: 6px; }
.scan-doc i { height: 7px; border-radius: 4px; background: var(--line); }
.scan-doc i.short { width: 60%; }
.scan-beam { position: absolute; left: 0; right: 0; top: 0; height: 34%; background: linear-gradient(to bottom, transparent, rgba(46, 152, 98, 0.2) 75%, rgba(46, 152, 98, 0.65)); animation: beam 2.2s var(--ease) infinite; }
@keyframes beam { from { transform: translateY(-100%); } to { transform: translateY(300%); } }
.extract { display: grid; gap: 8px; }
.extract li { display: grid; gap: 1px; padding: 8px 12px; border-radius: 8px; background: var(--paper-2); opacity: 0; transform: translateX(12px); animation: chip 0.5s var(--ease) forwards; }
.extract li:nth-child(1) { animation-delay: 0.3s; } .extract li:nth-child(2) { animation-delay: 0.6s; }
.extract li:nth-child(3) { animation-delay: 0.9s; } .extract li:nth-child(4) { animation-delay: 1.2s; }
.extract li:nth-child(5) { animation-delay: 1.5s; }
@keyframes chip { to { opacity: 1; transform: none; } }
.extract .mono { font-size: 0.6875rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.extract b { font-weight: 560; font-size: 0.9375rem; }

/* 1 · cross-check */
.cross { display: grid; gap: 8px; align-content: center; }
.cross li {
  display: grid;
  grid-template-columns: 7.5em auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 0.875rem;
  opacity: 0; transform: translateY(6px);
  animation: chip 0.45s var(--ease) forwards;
}
.cross li:nth-child(1) { animation-delay: 0.1s; } .cross li:nth-child(2) { animation-delay: 0.35s; }
.cross li:nth-child(3) { animation-delay: 0.6s; } .cross li:nth-child(4) { animation-delay: 0.85s; }
.cross li:nth-child(5) { animation-delay: 1.1s; }
.cross li > span:first-child { font-weight: 600; }
.cross i { font-style: normal; color: var(--muted); }
.cross li > span:nth-child(3) { color: var(--ink-2); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cross em { font-style: normal; font-size: 0.6875rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; }
.cross .ok em { background: var(--tint-ok); color: var(--accent); }
.cross .bad { border-color: rgba(255, 107, 87, 0.5); }
.cross .bad em { background: var(--tint-bad); color: var(--bad-text); }

/* 2 · alerts */
.alerts { display: grid; gap: 12px; align-content: center; }
.alerts li { display: grid; gap: 4px; padding: 14px 16px; border-radius: 10px; border-left: 4px solid; opacity: 0; transform: translateX(-10px); animation: chip 0.5s var(--ease) forwards; }
.alerts li:nth-child(2) { animation-delay: 0.35s; }
.alerts .sev-block { border-color: var(--coral); background: var(--tint-bad); }
.alerts .sev-warn { border-color: var(--citron); background: var(--tint-wait); }
.alerts .sev { font-family: var(--mono); font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.05em; }
.alerts .sev-block .sev { color: var(--bad-text); }
.alerts .sev-warn .sev { color: var(--ink-2); }
.alerts b { font-weight: 620; }
.alerts .quote { font-size: 0.75rem; color: var(--ink-2); }

/* 3 · decision */
.ai-pane[data-ai-pane="3"]:not([hidden]) { display: grid; align-content: center; gap: 14px; }
.decide-q { font-weight: 620; font-size: 1.0625rem; }
.decide { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { padding: 10px 14px; border-radius: 10px; border: 1.5px solid var(--line); font-size: 0.875rem; font-weight: 600; color: var(--ink-2); }
.choice.is-picked { border-color: var(--btn-bg); background: var(--btn-bg); color: var(--btn-fg); animation: pick 0.6s var(--ease) 0.5s both; }
@keyframes pick { from { background: transparent; color: var(--ink-2); border-color: var(--line); transform: scale(1); } 50% { transform: scale(0.96); } }
.decide-log { font-size: 0.75rem; color: var(--accent); padding-top: 12px; border-top: 1px dashed var(--line); opacity: 0; animation: chip 0.5s var(--ease) 1.1s forwards; }

@media (min-width: 1000px) { .ai-grid { grid-template-columns: 1fr 1.05fr; gap: 72px; } }
@media (max-width: 560px) {
  .ai-pane[data-ai-pane="0"]:not([hidden]) { grid-template-columns: 1fr; }
  .scan-doc { display: none; }
  .cross li { grid-template-columns: 1fr auto; }
  .cross li > i, .cross li > span:nth-child(3) { display: none; }
  .ai-stage { min-height: 300px; }
}

/* ---------------------------------------------------------------- conveyor */
.conveyor {
  --under: var(--paper-2);
  position: relative;
  background:
    repeating-linear-gradient(to bottom, transparent 0 31px, var(--line) 31px 32px),
    var(--paper-2);
  background-size: 100% 32px, auto;
  border-top: 1px solid var(--line);
}
.conveyor-head { padding-top: clamp(64px, 9vw, 120px); margin-bottom: clamp(32px, 4vw, 48px); }
.conveyor-viewport { overflow: visible; }
.conveyor-track { display: grid; gap: 22px; padding-inline: var(--gutter); }
.station { min-width: 0; }
.station .sheet-card { padding: clamp(22px, 3vw, 34px); height: 100%; display: flex; flex-direction: column; }
.station-head { display: grid; gap: 8px; margin-bottom: 12px; }
.station-head .mono { font-size: 0.75rem; color: var(--accent); text-transform: uppercase; letter-spacing: 0.06em; }
.station-head h3 { font-size: clamp(1.35rem, 1.1rem + 0.9vw, 1.75rem); font-weight: 650; letter-spacing: -0.02em; line-height: 1.12; }
.station .sheet-card > p { color: var(--ink-2); font-size: 1rem; max-width: 50ch; }
.rail { display: none; }
.conveyor { padding-bottom: clamp(64px, 9vw, 120px); }

/* Pinned horizontal version (desktop, motion allowed) */
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  .js .conveyor { height: 460vh; padding-bottom: 0; }
  .js .conveyor-pin {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: var(--header-h);
  }
  .js .conveyor-head { padding-top: 0; margin-bottom: clamp(20px, 3vh, 36px); }
  .js .conveyor-head .h2 { font-size: clamp(1.9rem, 1rem + 2.4vw, 3rem); max-width: 26ch; }
  .js .conveyor-track {
    display: flex;
    gap: 28px;
    width: max-content;
    padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2));
    will-change: transform;
  }
  .js .station { width: min(540px, 44vw); flex: none; }
  .js .station .sheet-card { height: min(62vh, 560px); overflow: hidden; }
  .js .rail { display: block; margin-top: clamp(20px, 3.5vh, 40px); position: relative; }
  .rail-line { position: absolute; left: var(--gutter); right: var(--gutter); top: 14px; height: 2px; background: var(--line); }
  .rail-line i { display: block; height: 100%; background: linear-gradient(90deg, var(--forest), var(--green), var(--leaf), var(--citron)); transform-origin: left; transform: scaleX(0); }
  .rail-nodes { position: relative; display: flex; justify-content: space-between; }
  .rail-nodes li { display: grid; justify-items: center; gap: 6px; font-size: 0.75rem; color: var(--muted); }
  .rail-nodes svg {
    width: 30px; height: 30px; padding: 5px;
    border-radius: 8px;
    background: var(--paper-2);
    border: 1.6px solid var(--line);
    color: var(--btn-fg);
    stroke-width: 3;
    transition: background-color 0.3s, border-color 0.3s, stroke-dashoffset 0.6s var(--ease);
  }
  .rail-nodes li.is-done { color: var(--ink); }
  .rail-nodes li.is-done svg { background: var(--btn-bg); border-color: var(--btn-bg); stroke-dashoffset: 0; }
}

/* Station mock-ups */
.mock { margin-top: auto; padding-top: 18px; font-size: 0.875rem; }
.mock-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.mock-top b { font-weight: 650; }
.mock-sub { font-size: 0.75rem; color: var(--muted); margin: 2px 0 8px; }
.tag { font-size: 0.6875rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.tag-ok { background: var(--tint-ok); color: var(--accent); }
.rows li {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 0;
  border-top: 1px dashed var(--line);
  opacity: 0.25;
  transform: translateX(-10px);
  transition: opacity 0.45s var(--ease), transform 0.5s var(--ease);
}
.rows li span { margin-right: auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill { font-style: normal; font-size: 0.6875rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.pill.ok { background: var(--tint-ok); color: var(--accent); }
.pill.bad { background: var(--tint-bad); color: var(--bad-text); }
.pill.wait { background: var(--tint-wait); color: var(--ink); }
.pill.manual { box-shadow: inset 0 0 0 1.4px var(--accent); color: var(--accent); }
.is-active .rows li, .no-pin .rows li { opacity: 1; transform: none; }
.is-active .rows li:nth-child(2) { transition-delay: 0.1s; }
.is-active .rows li:nth-child(3) { transition-delay: 0.2s; }
.is-active .rows li:nth-child(4) { transition-delay: 0.3s; }

.phone {
  width: min(250px, 100%);
  margin-inline: auto;
  border: 6px solid var(--ink);
  border-radius: 26px;
  padding: 14px 12px 12px;
  background: var(--paper);
}
.phone-url { font-size: 0.6875rem; color: var(--muted); text-align: center; }
.phone-due { font-size: 0.6875rem; color: var(--accent); text-align: center; margin: 2px 0 8px; }
.mini-checks { display: grid; gap: 3px; }
.mini-checks li { display: flex; align-items: center; gap: 7px; font-size: 0.75rem; padding: 2px 4px; border-radius: 5px; background: var(--sheet); }
.mini-checks li::before {
  content: "✓";
  width: 13px; height: 13px; flex: none;
  display: grid; place-items: center;
  font-size: 0.55rem; font-weight: 700;
  border-radius: 4px;
  border: 1.4px solid var(--line);
  color: transparent;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.is-active .mini-checks li::before { background: var(--btn-bg); border-color: var(--btn-bg); color: var(--btn-fg); }
.is-active .mini-checks li:nth-child(1)::before { transition-delay: 0.2s; }
.is-active .mini-checks li:nth-child(2)::before { transition-delay: 0.32s; }
.is-active .mini-checks li:nth-child(3)::before { transition-delay: 0.44s; }
.is-active .mini-checks li:nth-child(4)::before { transition-delay: 0.56s; }
.is-active .mini-checks li:nth-child(5)::before { transition-delay: 0.68s; }
.is-active .mini-checks li:nth-child(6)::before { transition-delay: 0.8s; }
.is-active .mini-checks li:nth-child(7)::before { transition-delay: 0.92s; }
.is-active .mini-checks li:nth-child(8)::before { transition-delay: 1.04s; }
.phone-bar { position: relative; height: 20px; margin-top: 8px; border-radius: 6px; background: var(--paper-2); overflow: hidden; display: grid; place-items: center; }
.phone-bar i { position: absolute; inset: 0; background: linear-gradient(90deg, var(--forest), var(--green), var(--leaf)); transform-origin: left; transform: scaleX(0); transition: transform 1s var(--ease) 0.25s; }
.phone-bar span { position: relative; font-size: 0.6875rem; color: #fff; opacity: 0; transition: opacity 0.3s 1.1s; }
.is-active .phone-bar i { transform: scaleX(1); }
.is-active .phone-bar span { opacity: 1; }

.nf { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; background: var(--paper); }
.nf-fields { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin-top: 10px; font-size: 0.78rem; }
.nf-fields dt { color: var(--muted); }
.nf-fields dd { display: flex; align-items: center; gap: 6px; min-width: 0; }
.ok-mark { width: 13px; height: 13px; flex: none; border-radius: 50%; background: var(--tint-ok); position: relative; }
.ok-mark::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 0.55rem; font-weight: 700; color: var(--accent); font-style: normal; }
.finding { margin-top: 10px; padding: 10px 12px; border-left: 3px solid var(--coral); background: var(--tint-bad); border-radius: 0 8px 8px 0; font-size: 0.8125rem; display: grid; gap: 2px; opacity: 0; transform: translateY(8px); transition: opacity 0.5s 1s, transform 0.6s var(--ease) 1s; }
.finding .mono { font-size: 0.72rem; color: var(--bad-text); }
.is-active .finding, .no-pin .finding { opacity: 1; transform: none; }

.certs { display: grid; gap: 6px; }
.certs li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.certs li:nth-child(1) { --n: 0; } .certs li:nth-child(2) { --n: 1; } .certs li:nth-child(3) { --n: 2; }
.certs li:nth-child(4) { --n: 3; } .certs li:nth-child(5) { --n: 4; } .certs li:nth-child(6) { --n: 5; }
.state {
  position: relative;
  font-style: normal; font-size: 0.6875rem; font-weight: 600;
  min-width: 6.2em; text-align: center;
  padding: 3px 9px; border-radius: 999px;
  color: transparent; background: var(--paper-2);
  transition: color 0.3s, background-color 0.3s;
}
.state::before {
  content: ""; position: absolute; inset: 0; margin: auto;
  width: 10px; height: 10px; border-radius: 50%;
  border: 1.5px solid var(--muted); border-right-color: transparent;
  animation: spin 0.8s linear infinite;
  transition: opacity 0.2s;
}
@keyframes spin { to { transform: rotate(360deg); } }
.is-active .state, .no-pin .state { color: var(--accent); background: var(--tint-ok); transition-delay: calc(0.4s + var(--n) * 0.25s); }
.is-active .state::before, .no-pin .state::before { opacity: 0; transition-delay: calc(0.4s + var(--n) * 0.25s); }

.signature { margin-top: 14px; display: flex; align-items: center; gap: 12px; color: var(--accent); }
.sig-tick { width: 56px; height: 56px; stroke-width: 2.2; transition: stroke-dashoffset 1s var(--ease) 0.6s; }
.signature .mono { font-size: 0.8125rem; }
.is-active .sig-tick, .no-pin .sig-tick { stroke-dashoffset: 0; }

/* ---------------------------------------------------------------- live panel */
.panel-sec { padding-block: var(--section-y); }
.panel-grid { display: grid; gap: 48px; }
.board {
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: clamp(18px, 2.6vw, 30px);
}
.board-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.board-top b { font-size: 1.125rem; font-weight: 650; }
.board-top .mono { font-size: 0.75rem; color: var(--muted); }
.board-count { text-align: right; line-height: 1; }
.board-count .mono { font-size: clamp(2rem, 1.4rem + 2vw, 3rem); color: var(--accent); font-variant-numeric: tabular-nums; }
.board-count small { display: block; margin-top: 4px; font-size: 0.75rem; color: var(--muted); }
.board-bar { display: flex; gap: 3px; height: 8px; margin: 18px 0 10px; }
.board-bar i { flex: 0 0 0%; border-radius: 3px; transition: flex-basis 0.6s var(--ease); }
.board-bar .s-ok { background: var(--forest); }
.board-bar .s-run { background: var(--leaf); }
.board-bar .s-bad { background: var(--coral); }
.board-bar .s-wait { background: var(--line); }
:root[data-theme="dark"] .board-bar .s-ok { background: var(--lime); }
.board-rows li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 2px; border-bottom: 1px solid var(--line); font-size: 0.9375rem; }
.board-rows li:last-child { border-bottom: 0; }
.board-rows em {
  font-style: normal; font-size: 0.75rem; font-weight: 600;
  padding: 3px 10px; border-radius: 999px; white-space: nowrap;
  background: var(--paper-2); color: var(--muted);
  transition: background-color 0.35s, color 0.35s;
}
.board-rows em[data-s="run"] { background: rgba(147, 190, 68, 0.22); color: var(--ink); }
.board-rows em[data-s="ok"] { background: var(--tint-ok); color: var(--accent); }
.board-rows em[data-s="bad"] { background: var(--tint-bad); color: var(--bad-text); }
.board-rows em[data-s="resend"] { background: var(--tint-wait); color: var(--ink); }
.board-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.mini-btn { font-size: 0.75rem; font-weight: 600; padding: 6px 12px; border-radius: 8px; border: 1px solid var(--line); color: var(--ink-2); }
.notes { display: grid; align-content: start; }
.note { display: grid; grid-template-columns: 2.6rem 1fr; gap: 12px; padding: 20px 0; border-top: 1px solid var(--line); }
.note:last-child { border-bottom: 1px solid var(--line); }
.note-n { font-size: 0.8125rem; color: var(--accent); padding-top: 4px; }
.note h3 { font-size: 1.1875rem; font-weight: 640; letter-spacing: -0.015em; margin-bottom: 4px; }
.note p { color: var(--ink-2); font-size: 1rem; }
@media (min-width: 1000px) {
  .panel-grid { grid-template-columns: 1.25fr 1fr; gap: 72px; align-items: start; }
  .board { position: sticky; top: calc(var(--header-h) + 24px); }
}

/* ---------------------------------------------------------------- folders */
.folders-sec { padding-block: var(--section-y); background: var(--paper-2); border-top: 1px solid var(--line); }
.folders { --folder: var(--folder-1); }
.folders[data-active="1"] { --folder: var(--folder-2); }
.folders[data-active="2"] { --folder: var(--folder-3); }
.folder-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-top: 6px; }
.folder-tabs::-webkit-scrollbar { display: none; }
.folder-tabs button {
  flex: none;
  border: 0;
  cursor: pointer;
  padding: 14px 22px 12px;
  border-radius: 14px 14px 0 0;
  font-weight: 620;
  font-size: 1rem;
  color: var(--ink-2);
  transform: translateY(6px);
  transition: transform 0.35s var(--ease), background-color 0.3s;
}
.folder-tabs button:nth-child(1) { background: var(--folder-1); }
.folder-tabs button:nth-child(2) { background: var(--folder-2); }
.folder-tabs button:nth-child(3) { background: var(--folder-3); }
.folder-tabs button[aria-selected="true"] { transform: none; color: var(--ink); }
.folder-body {
  position: relative;
  background: var(--folder);
  border-radius: 0 18px 18px 18px;
  padding: clamp(28px, 5vw, 64px);
  min-height: 300px;
  transition: background-color 0.4s;
  box-shadow: var(--shadow);
}
.folder-panel { display: grid; gap: 32px; }
.folder-panel[hidden] { display: none; }
.folder-panel:not([hidden]) { animation: rise 0.55s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
.folder-title { display: none; }
.folder-quote { font-size: clamp(1.75rem, 1rem + 2.8vw, 3.25rem); font-weight: 680; letter-spacing: -0.035em; line-height: 1.05; max-width: 18ch; text-wrap: balance; }
.ticks { display: grid; gap: 16px; align-content: start; }
.ticks li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; font-size: 1.0625rem; }
.ticks svg { width: 26px; height: 26px; color: var(--accent); stroke-width: 2.8; }
.folder-panel:not([hidden]) .ticks svg { stroke-dashoffset: 0; transition-delay: 0.25s; }
.folder-panel:not([hidden]) .ticks li:nth-child(2) svg { transition-delay: 0.4s; }
.folder-panel:not([hidden]) .ticks li:nth-child(3) svg { transition-delay: 0.55s; }
@media (min-width: 1000px) { .folder-panel { grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; } }
@media (max-width: 699px) {
  /* Phones: every folder stacked, no tabs. */
  .folder-tabs { display: none; }
  .folder-body { background: none; box-shadow: none; padding: 0; border-radius: 0; }
  .folder-panel, .folder-panel[hidden] { display: grid; gap: 18px; padding: 26px 22px; border-radius: 16px; animation: none; }
  .folder-panel + .folder-panel { margin-top: 14px; }
  #panel-ag { background: var(--folder-1); }
  #panel-ve { background: var(--folder-2); }
  #panel-go { background: var(--folder-3); }
  .folder-title { display: block; font-family: var(--mono); font-size: 0.8125rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); }
  .folder-panel .ticks svg { stroke-dashoffset: 0; }
}

/* ---------------------------------------------------------------- numbers (unfolds from its corner) */
.numbers {
  --s: 0px;
  position: relative;
  background: var(--forest);
  color: #f2f5ea;
  padding-block: clamp(72px, 10vw, 136px);
  clip-path: polygon(0 0, calc(100% - var(--s)) 0, 100% var(--s), 100% 100%, 0 100%);
}
.numbers::after {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: var(--s); height: var(--s);
  background: linear-gradient(to bottom left, transparent 50%, var(--citron) 50%);
}
:root[data-theme="dark"] .numbers { background: #0d4a3c; }
.equation { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px clamp(14px, 2.4vw, 32px); }
.equation > span:not(.op) { display: grid; }
.equation b {
  font-size: clamp(3.5rem, 1.6rem + 8vw, 9rem);
  font-weight: 720;
  letter-spacing: -0.05em;
  line-height: 0.9;
  color: var(--citron);
  font-variant-numeric: tabular-nums;
}
.equation .eq-total b { color: var(--lime); }
.equation small { font-family: var(--mono); font-size: 0.8125rem; color: rgba(242, 245, 234, 0.75); margin-top: 10px; max-width: 22ch; }
.equation .op { font-size: clamp(2rem, 1rem + 4vw, 5rem); font-weight: 300; color: rgba(242, 245, 234, 0.5); line-height: 1.3; }
.facts { margin-top: clamp(48px, 6vw, 80px); display: grid; gap: 24px; border-top: 1px solid rgba(242, 245, 234, 0.2); padding-top: 32px; }
.facts li { display: grid; gap: 4px; }
.facts b { font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem); font-weight: 500; color: #fff; }
.facts span { color: rgba(242, 245, 234, 0.75); max-width: 28ch; }
@media (min-width: 800px) { .facts { grid-template-columns: repeat(3, 1fr); } }

/* ---------------------------------------------------------------- family */
.family { padding-block: clamp(64px, 8vw, 112px); border-bottom: 1px solid var(--line); }
.family-grid { display: grid; gap: 40px; }
.family-steps { display: grid; gap: 0; counter-reset: step; }
.family-steps li { position: relative; padding: 0 0 26px 30px; }
.family-steps li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 12px; height: 14px; background: var(--leaf); clip-path: polygon(0 0, 66% 0, 100% 28%, 100% 100%, 0 100%); }
.family-steps li:nth-child(1)::before { background: var(--forest); }
.family-steps li:nth-child(3)::before { background: var(--citron); }
.family-steps li:not(:last-child)::after { content: ""; position: absolute; left: 9.5px; top: 26px; bottom: 4px; border-left: 1.5px dashed var(--line); }
.family-steps .mono { font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); }
.family-steps p { color: var(--ink-2); }
.family-steps a { color: var(--accent); font-weight: 600; }
@media (min-width: 1000px) { .family-grid { grid-template-columns: 1fr 1.1fr; gap: 96px; align-items: center; } }

/* ---------------------------------------------------------------- FAQ */
.faq { padding-block: var(--section-y); }
.faq-grid { display: grid; gap: 32px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 16px;
  align-items: center;
  padding: 22px 0;
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.375rem);
  font-weight: 560;
  letter-spacing: -0.015em;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--accent); }
.box { width: 26px; height: 26px; border: 1.6px solid var(--line); border-radius: 7px; display: grid; place-items: center; transition: background-color 0.3s, border-color 0.3s; }
.box svg { width: 18px; height: 18px; color: var(--btn-fg); stroke-width: 3.2; }
details[open] .box { background: var(--btn-bg); border-color: var(--btn-bg); }
details[open] .box svg { stroke-dashoffset: 0; }
.faq-list details p { padding: 0 0 24px 44px; color: var(--ink-2); max-width: 66ch; }
@media (min-width: 1000px) { .faq-grid { grid-template-columns: 0.8fr 1.6fr; gap: 80px; } .faq-grid header { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; } }

/* ---------------------------------------------------------------- contact */
.contact {
  --under: var(--deep);
  background: var(--deep);
  color: #eef2e6;
  padding-block: var(--section-y);
}
.contact .eyebrow { color: var(--lime); }
.contact-grid { display: grid; gap: 48px; }
.contact-copy .h2 { max-width: 14ch; margin-bottom: 20px; }
.contact-copy > p { color: #b8c9c0; font-size: var(--fs-lede); max-width: 42ch; }
.contact-direct { margin-top: 32px; display: grid; gap: 14px; }
.contact-direct a { display: grid; text-decoration: none; font-size: 1.1875rem; font-weight: 600; }
.contact-direct a:hover { color: var(--lime); }
.contact-direct .mono { font-size: 0.75rem; font-weight: 400; color: #8fa89c; text-transform: uppercase; letter-spacing: 0.06em; }

.form-doc {
  --fold-s: 40px;
  --sheet: #fffffa;
  --line: rgba(10, 46, 38, 0.18);
  position: relative;
  color: var(--ink);
  background: var(--sheet);
  border-radius: 14px;
  padding: clamp(24px, 3.6vw, 44px);
  display: grid;
  gap: 20px;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.6);
  color-scheme: light;
}
:root[data-theme="dark"] .form-doc { --ink: #0a2e26; --muted: #5d736b; --btn-bg: var(--forest); --btn-fg: #fffffa; --btn-hover: #0e5847; --accent: var(--forest); }
.form-doc::before, .form-doc::after { content: ""; position: absolute; top: 0; right: 0; width: var(--fold-s); height: var(--fold-s); }
.form-doc::before { background: linear-gradient(to bottom left, var(--deep) 50%, transparent 50%); }
.form-doc::after { background: linear-gradient(to bottom left, transparent 50%, var(--fold) 50%); border-bottom-left-radius: 6px; }
.form-doc-head { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.field { display: grid; gap: 4px; }
.field label { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.field input, .field select, .field textarea {
  width: 100%;
  border: 0;
  border-bottom: 1.5px solid var(--line);
  border-radius: 0;
  background: transparent;
  padding: 8px 0;
  font-size: 1.0625rem;
  color: var(--ink);
  transition: border-color 0.2s;
}
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--forest); }
.field [aria-invalid="true"] { border-bottom-color: #b3261e; }
.form-sign { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 4px; }
.sign-line { flex: 1 1 140px; height: 48px; border-bottom: 1.5px solid var(--line); position: relative; }
.sign-line::before { content: "Assinatura"; position: absolute; left: 0; bottom: -20px; font-family: var(--mono); font-size: 0.6875rem; color: var(--muted); }
.sign-tick { position: absolute; left: 12px; bottom: 2px; width: 56px; height: 56px; color: var(--forest); stroke-width: 2.4; transition: stroke-dashoffset 0.9s var(--ease); }
.sign-tick.is-signed { stroke-dashoffset: 0; }
.form-status { font-size: 0.9375rem; min-height: 1.4em; margin-top: 8px; }
.form-status.is-error { color: #b3261e; }
@media (min-width: 640px) {
  .form-doc { grid-template-columns: 1fr 1fr; column-gap: 28px; }
  .form-doc-head, .field-wide, .form-sign, .form-status { grid-column: 1 / -1; }
}
@media (min-width: 1000px) { .contact-grid { grid-template-columns: 1fr 1.1fr; gap: 88px; align-items: start; } }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--deep-2); color: #9fb4aa; padding-top: clamp(56px, 7vw, 88px); font-size: 0.9375rem; }
.footer-grid { display: grid; gap: 40px; }
.footer-brand img { height: 50px; width: auto; }
.footer-brand p { margin-top: 18px; max-width: 34ch; }
.footer-brand a { color: #eef2e6; text-underline-offset: 3px; }
.site-footer h3 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: #eef2e6; margin-bottom: 14px; font-weight: 500; }
.site-footer ul { display: grid; gap: 10px; }
.site-footer ul a { text-decoration: none; }
.site-footer a:hover { color: #eef2e6; }
.footer-base { margin-top: 56px; padding-block: 22px 30px; border-top: 1px solid rgba(238, 242, 230, 0.12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.875rem; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1.2fr; } }

/* ---------------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; }
  .js [data-rise] { opacity: 1; transform: none; }
  .scan-beam { display: none; }
  .extract li, .cross li, .alerts li, .decide-log { opacity: 1; transform: none; }
  .hl { background-size: 100% 0.5em; }
  .hl-bad { background-size: 100% 100%; }
  .numbers { clip-path: none; }
  .numbers::after { display: none; }
}
