@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/fonts/geist-mono.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}

/* The app's tokens (src/app/globals.css), so the site and the app look like one product */
:root {
  --bg: oklch(0.995 0 0);
  --fg: oklch(0.17 0.005 60);
  --ink-2: oklch(0.38 0.005 60);
  --ink-3: oklch(0.56 0.004 60);
  --ink-4: oklch(0.72 0.004 60);
  --panel: oklch(0.985 0 0);
  --panel-2: oklch(0.97 0.002 60);
  --border: oklch(0.925 0.003 60);
  --primary: oklch(0.58 0.12 45);
  --primary-ink: oklch(0.38 0.12 45);
  --accent: oklch(0.95 0.035 45);
  --ok: oklch(0.6 0.11 155);
  --ok-soft: oklch(0.955 0.03 155);
  --ok-ink: oklch(0.42 0.09 155);
  --corr-tint: oklch(0.972 0.024 75);
  --corr-ink: oklch(0.43 0.09 60);
  --ric-tint: oklch(0.972 0.016 245);
  --ric-ink: oklch(0.45 0.12 250);
  --radius: 14px;
  --shadow: 0 1px 2px oklch(0.2 0.01 60 / 0.06), 0 12px 32px -12px oklch(0.2 0.02 60 / 0.18);
  --shadow-lg: 0 2px 4px oklch(0.2 0.01 60 / 0.05), 0 30px 60px -20px oklch(0.25 0.04 50 / 0.28);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --sans: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.08; }
p { margin: 0; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.r { text-align: right; }
.muted { color: var(--ink-3); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }


/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 10px;
  font: 600 15px/1 var(--sans); text-decoration: none; white-space: nowrap;
  transition: transform 0.2s var(--ease), background 0.2s, box-shadow 0.2s, color 0.2s;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: oklch(0.53 0.12 45); }
.btn-ghost { color: var(--ink-2); }
.btn-ghost:hover { background: var(--panel-2); color: var(--fg); }
.btn-lg { min-height: 52px; padding: 0 24px; font-size: 16px; border-radius: 12px; }
.btn-block { width: 100%; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: oklch(0.995 0 0 / 0.78);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.nav.scrolled { border-bottom-color: var(--border); }
.nav-in { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; text-decoration: none; }
.mark { width: 30px; height: 30px; flex: none; }
.mark-sm {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; flex: none;
  background: var(--primary); color: #fff; font-weight: 700; font-size: 13px;
}
.nav-links { display: flex; gap: 4px; margin-left: 8px; }
.nav-links a { padding: 8px 12px; border-radius: 8px; font-size: 14.5px; color: var(--ink-2); text-decoration: none; }
.nav-links a:hover { background: var(--panel-2); color: var(--fg); }
.nav-cta { margin-left: auto; display: flex; gap: 6px; }
.burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: none; border-radius: 10px; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--fg); border-radius: 2px; transition: transform 0.3s var(--ease); }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
[hidden] { display: none !important; }
.menu { display: grid; gap: 2px; padding: 8px 16px 20px; border-bottom: 1px solid var(--border); background: var(--bg); }
.menu a { padding: 14px 4px; font-size: 17px; font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--border); }
.menu a.btn { margin-top: 12px; border: 0; color: #fff; }

/* Hero */
.hero { position: relative; padding: clamp(40px, 7vw, 88px) 0 clamp(48px, 7vw, 80px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.eyebrow { font-size: 14px; font-weight: 600; color: var(--ink-3); }
h1 { margin-top: 18px; font-size: clamp(38px, 4.4vw, 58px); font-weight: 700; }
.lead { margin-top: 20px; font-size: clamp(17px, 1.6vw, 19px); color: var(--ink-2); max-width: 34em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.fineprint { margin-top: 14px; font-size: 13.5px; color: var(--ink-3); }

/* Hero stage */
.hero-stage { position: relative; }
.stage { position: relative; height: 470px; perspective: 1400px; }
.doc, .sheet {
  position: absolute; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
}
.doc-pdf {
  width: 46%; left: 0; top: 30px; padding: 14px; transform: rotate(-4deg);
  transition: transform 0.9s var(--ease), opacity 0.6s;
}
.doc-top { display: flex; align-items: center; gap: 8px; font: 500 11px var(--mono); color: var(--ink-3); }
.tag { display: inline-grid; place-items: center; padding: 3px 6px; border-radius: 5px; background: oklch(0.95 0.04 25); color: oklch(0.5 0.17 25); font: 700 10px var(--mono); }
.doc-title { margin: 14px 0 10px; font: 700 10.5px var(--mono); letter-spacing: 0.04em; color: var(--ink-2); }
.doc-lines { display: grid; gap: 7px; }
.doc-lines i, .out-lines i, .paper-lines i { display: block; height: 7px; border-radius: 3px; background: var(--panel-2); width: 100%; }
.w50 { width: 50% !important; } .w60 { width: 60% !important; } .w70 { width: 70% !important; } .w80 { width: 80% !important; }
.doc-lines i.hit { background: var(--accent); }
.doc-foot { margin-top: 14px; font: 500 10px var(--mono); color: var(--ink-4); }
.scan {
  position: absolute; left: 10px; right: 10px; top: 54px; height: 2px; border-radius: 2px;
  background: var(--primary); box-shadow: 0 0 14px 2px oklch(0.58 0.12 45 / 0.45); opacity: 0;
}
.hero-stage.p1 .scan { animation: scan 1.8s var(--ease) forwards; }
@keyframes scan { 0% { opacity: 0; transform: translateY(0); } 10% { opacity: 1; } 90% { opacity: 1; } 100% { opacity: 0; transform: translateY(150px); } }

.sheet { width: 64%; right: 0; top: 0; padding: 14px 14px 12px; z-index: 2; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 700; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.chip-ok { background: var(--ok-soft); color: var(--ok-ink); }
.chip-sent { background: var(--ric-tint); color: var(--ric-ink); }
[data-hero-ok] { opacity: 0; transform: translateY(4px); transition: opacity 0.5s, transform 0.5s var(--ease); }
.hero-stage.p2 [data-hero-ok] { opacity: 1; transform: none; }
.rib {
  display: flex; align-items: center; justify-content: space-between; margin-top: 10px; padding: 8px 10px; border-radius: 10px;
  background: var(--panel-2); font-size: 12.5px; color: var(--ink-2); transition: background 0.4s, color 0.4s;
}
.rib b { font: 600 14px var(--mono); color: var(--fg); }
.hero-stage.p3 .rib { background: var(--accent); color: var(--primary-ink); }
.voci { width: 100%; margin-top: 8px; border-collapse: collapse; font-size: 12px; table-layout: fixed; }
.voci th { padding: 6px 4px; font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-3); text-align: left; border-bottom: 1px solid var(--border); }
.voci th:first-child { width: 27%; } .voci th:nth-child(3) { width: 17%; } .voci th:nth-child(4) { width: 19%; }
.voci td { padding: 7px 4px; border-bottom: 1px solid var(--border); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.voci td.mono { font-size: 11.5px; }
.voci tbody tr { opacity: 0; transform: translateX(-10px); transition: opacity 0.45s, transform 0.55s var(--ease), background 0.4s; }
.voci tbody tr.in { opacity: 1; transform: none; }
.voci td.flash { color: var(--primary-ink); }
.sheet-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px; font-size: 12px; color: var(--ink-3); }
.sheet-total b { font-size: 17px; color: var(--fg); }

.doc-out {
  width: 50%; left: 8%; bottom: 0; padding: 14px; z-index: 3;
  opacity: 0; transform: translateY(26px) rotate(2deg); transition: opacity 0.6s, transform 0.8s var(--ease);
  box-shadow: var(--shadow-lg);
}
.hero-stage.p4 .doc-out { opacity: 1; transform: rotate(2deg); }
.out-head { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.out-head small { display: block; color: var(--ink-3); font-size: 10.5px; }
.out-lines { display: grid; gap: 6px; margin: 12px 0; }
.out-line { font-size: 10.5px; color: var(--ink-2); }
.out-line b { color: var(--primary-ink); }
.out-tot { display: flex; justify-content: space-between; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border); font-size: 12px; font-weight: 700; }
.out-state { margin-top: 10px; }
.out-state .chip { transform: scale(0.6); opacity: 0; transition: transform 0.5s var(--ease) 0.5s, opacity 0.3s 0.5s; }
.hero-stage.p4 .out-state .chip { transform: none; opacity: 1; }


/* Sections */
section { scroll-margin-top: 72px; }
.sec-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 700; }

/* How it works */
.how { padding: clamp(64px, 9vw, 120px) 0; background: linear-gradient(var(--panel), var(--bg)); border-top: 1px solid var(--border); }
.how-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); }
.how-steps { list-style: none; margin: 0; padding: 0; }
.step { position: relative; min-height: 62vh; padding: 8vh 0 8vh 64px; opacity: 0.35; transition: opacity 0.5s; }
.step:first-child { padding-top: 0; }
.step.on { opacity: 1; }
.step::before { content: ""; position: absolute; left: 21px; top: 0; bottom: 0; width: 2px; background: var(--border); }
.step:first-child::before { top: 22px; }
.step:last-child::before { bottom: auto; height: 8vh; }
.step-n {
  position: absolute; left: 0; top: 8vh; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: #fff; border: 2px solid var(--border); font: 700 16px var(--mono);
  transition: background 0.4s, border-color 0.4s, color 0.4s, transform 0.5s var(--ease);
}
.step:first-child .step-n { top: 0; }
.step.on .step-n { background: var(--primary); border-color: var(--primary); color: #fff; transform: scale(1.06); }
.step h3 { font-size: clamp(22px, 2.4vw, 28px); margin-top: 6px; }
.step p { margin-top: 12px; font-size: 16.5px; color: var(--ink-2); max-width: 30em; }
.step-mock { display: none; }

.how-screen { position: relative; }
.screen {
  position: sticky; top: 96px; border-radius: 18px; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-lg); overflow: hidden;
}
.screen-bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--border); background: var(--panel); font-size: 12px; overflow-x: auto; }
.screen-bar i { color: var(--ink-4); font-style: normal; }
.pill { padding: 5px 10px; border-radius: 999px; color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--border); white-space: nowrap; transition: all 0.35s; }
.pill.pill-on { background: var(--fg); color: #fff; box-shadow: none; font-weight: 600; }
.pill.pill-done { background: var(--ok-soft); color: var(--ok-ink); box-shadow: none; }
.screen-body { position: relative; min-height: 380px; }
.mock {
  position: absolute; inset: 0; padding: 22px; display: grid; align-content: start; gap: 14px;
  opacity: 0; transform: translateY(14px) scale(0.985); transition: opacity 0.5s, transform 0.6s var(--ease); pointer-events: none;
}
.mock.mock-on { opacity: 1; transform: none; }
.step-mock .mock { position: static; opacity: 1; transform: none; padding: 16px; }

.file { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; }
.file b { display: block; font-size: 14px; }
.file small { color: var(--ink-3); font-size: 12.5px; }
.bar-label { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; }
.bar-label small { font-weight: 400; color: var(--ink-3); }
.bar { height: 8px; border-radius: 99px; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--border); overflow: hidden; }
.bar span { display: block; height: 100%; width: 60%; border-radius: inherit; background: var(--primary); transition: width 0.4s; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 13.5px; color: var(--ink-2); }
.checks li { display: flex; align-items: center; gap: 10px; }
.checks li::before { content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ink-4); }
.checks li.done::before { content: "✓"; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: var(--ok-ink); background: var(--ok-soft); box-shadow: none; }
.checks li.run::before { box-shadow: inset 0 0 0 2px var(--primary); background: radial-gradient(circle, var(--primary) 0 3px, transparent 3.5px); }
.checks li:not(.done):not(.run) { color: var(--ink-3); }
.note { padding: 10px 12px; border-radius: 10px; background: var(--ric-tint); color: var(--ric-ink); font-size: 13px; }

.lens { padding: 12px; border-radius: 12px; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--border); }
.lens-pdf { padding: 10px 12px; border-radius: 8px; background: #fff; font: 12px/1.5 var(--mono); color: var(--ink-2); box-shadow: var(--shadow); }
.lens-pdf span { color: var(--fg); font-weight: 600; }
.lens-pdf b { background: oklch(0.93 0.09 95); color: var(--fg); padding: 0 3px; border-radius: 3px; }
.rows { display: grid; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.row { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 10px; padding: 10px 12px; font-size: 13px; border-top: 1px solid var(--border); align-items: center; }
.row:first-child { border-top: 0; }
.row span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .mono { font-size: 12px; }
.row-sel { background: var(--accent); box-shadow: inset 3px 0 0 var(--primary); }
.row-corr { background: var(--corr-tint); }
.row-corr em { font: 600 10.5px var(--sans); font-style: normal; color: var(--corr-ink); background: #fff; padding: 2px 6px; border-radius: 99px; margin-left: 4px; }
.row-ric { background: var(--ric-tint); color: var(--ric-ink); }
.row-ric u { font-weight: 600; }
.status { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: center; font-size: 13px; }
.ribbar { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--panel-2); }
.ribbar small { display: block; font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.04em; }
.ribbar b, .ribbar span { font-size: 15px; }
.cap { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; flex-wrap: wrap; }
.cap span { color: var(--primary-ink); }
.paper { padding: 18px; border-radius: 12px; border: 1px solid var(--border); background: #fff; box-shadow: var(--shadow); }
.paper-head { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.paper-head small { display: block; color: var(--ink-3); font-size: 11px; }
.paper-head .r { margin-left: auto; text-align: right; font-size: 11px; }
.paper-lines { display: grid; gap: 7px; margin: 16px 0; }
.paper-tot { display: grid; gap: 6px; font-size: 13px; border-top: 1px solid var(--border); padding-top: 10px; }
.paper-tot div { display: flex; justify-content: space-between; gap: 10px; }
.paper-tot .dim { font-size: 11.5px; color: var(--ink-3); }
.paper-tot .big { font-weight: 700; font-size: 15px; border-top: 1px solid var(--border); padding-top: 8px; }
.timeline { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-3); }
.timeline i { flex: 1; height: 2px; background: var(--border); }
.timeline .t-on { color: var(--fg); font-weight: 600; }
.timeline .t-on::before { content: "✓ "; color: var(--ok-ink); }

/* Ribasso calculator */
.ribasso { padding: clamp(64px, 9vw, 120px) 0; }
.rib-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.rib-copy p { margin-top: 16px; font-size: 17px; color: var(--ink-2); }
.rib-copy p.muted { color: var(--ink-3); font-size: 15px; }
.calc { padding: clamp(18px, 3vw, 28px); border-radius: 18px; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-lg); }
.calc-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.calc-top label { font-weight: 600; }
.calc-top output { font-size: clamp(26px, 3vw, 32px); font-weight: 600; color: var(--primary-ink); }
input[type="range"] { width: 100%; margin: 18px 0 8px; height: 32px; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--primary) var(--fill, 40%), var(--panel-2) var(--fill, 40%)); box-shadow: inset 0 0 0 1px var(--border); }
input[type="range"]::-moz-range-track { height: 8px; border-radius: 99px; background: var(--panel-2); }
input[type="range"]::-moz-range-progress { height: 8px; border-radius: 99px; background: var(--primary); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -10px; border-radius: 50%; background: #fff; border: 2px solid var(--primary); box-shadow: var(--shadow); transition: transform 0.2s; }
input[type="range"]::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 2px solid var(--primary); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.12); }
.caps { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 12px; }
.caps li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; font-size: 14px; }
.caps li > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.caps li i { grid-column: 1 / -1; height: 6px; border-radius: 99px; background: var(--panel-2); overflow: hidden; }
.caps li i span { display: block; height: 100%; border-radius: inherit; background: oklch(0.7 0.09 45); transition: width 0.35s var(--ease); }
.calc-tot { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
.calc-tot small { display: block; font-size: 12px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.04em; }
.calc-tot span { font-size: 18px; color: var(--ink-3); }
.calc-tot b { font-size: clamp(22px, 2.6vw, 26px); }
.calc-line { margin-top: 14px; padding: 10px 12px; border-radius: 10px; background: var(--panel); font-size: 13px; color: var(--ink-2); }

/* Features */
.features { padding: clamp(64px, 9vw, 120px) 0; background: var(--panel); border-block: 1px solid var(--border); }
.feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(32px, 5vw, 72px); }
.feat { padding: 22px 0; border-top: 1px solid var(--border); }
.feat h3 { font-size: 18px; }
.feat p { margin-top: 6px; color: var(--ink-2); font-size: 15.5px; max-width: 36em; }

/* FAQ */
.faq { padding: clamp(56px, 8vw, 100px) 0; border-top: 1px solid var(--border); }
.faq-wrap { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.qa { display: grid; }
details { border-bottom: 1px solid var(--border); }
summary {
  list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font-size: 18px; font-weight: 600;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg); transition: transform 0.3s var(--ease);
}
details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
details p { padding: 0 0 20px; color: var(--ink-2); font-size: 16px; max-width: 40em; }

/* Final */
.final { padding: clamp(56px, 8vw, 100px) 0 clamp(64px, 9vw, 120px); }
.final-in { padding-top: clamp(32px, 5vw, 56px); border-top: 1px solid var(--border); }
.final-in p { margin: 12px 0 24px; color: var(--ink-2); font-size: 17px; max-width: 34em; }

/* Footer */
.foot { border-top: 1px solid var(--border); padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); font-size: 14px; color: var(--ink-2); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.foot-in .muted { margin-left: auto; }
.foot a { text-decoration-color: var(--ink-4); text-underline-offset: 3px; }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* Tablet */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .stage { height: 440px; max-width: 620px; margin-inline: auto; }
  .how-grid { grid-template-columns: 1fr; }
  .how-screen { display: none; }
  .step { min-height: 0; opacity: 1; padding: 0 0 48px 60px; }
  .step-n, .step:first-child .step-n { top: 0; }
  .step::before { top: 22px !important; bottom: 0 !important; height: auto !important; }
  .step:last-child::before { display: none; }
  .step-mock { display: block; margin-top: 18px; border-radius: 16px; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow); overflow: hidden; }
  .rib-grid, .faq-wrap { grid-template-columns: 1fr; }
}

/* Phone */
@media (max-width: 640px) {
  .nav-cta { display: none; }
  .burger { display: block; }
  h1 { font-size: clamp(34px, 9.4vw, 44px); }
  .hero-ctas .btn { flex: 1 1 100%; }
  .stage { height: 400px; }
  .doc-pdf { width: 58%; top: 8px; }
  .sheet { width: 84%; top: 70px; }
  .voci th:nth-child(2), .voci td:nth-child(2) { display: none; }
  .voci th:first-child { width: auto; } .voci th:nth-child(3) { width: 30%; } .voci th:nth-child(4) { width: 32%; }
  .doc-out { width: 66%; left: 0; }
  .feats { grid-template-columns: 1fr; }
  .step { padding-left: 54px; }
  .step-n { width: 40px; height: 40px; }
  .step::before { left: 19px; }
  .row { grid-template-columns: 84px minmax(0, 1fr) auto; }
  .ribbar { grid-template-columns: 1fr 1fr; }
  .ribbar > div:first-child { grid-column: 1 / -1; }
  .foot-in .muted { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
