:root {
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --ink: #0F172A;
  --ink-2: #334155;
  --muted: #64748B;
  --line: #E2E8F0;
  --line-2: #CBD5E1;
  --emerald: #059669;
  --emerald-2: #10B981;
  --emerald-soft: #ECFDF5;
  --amber: #B45309;
  --amber-soft: #FFFBEB;
  --indigo: #4F46E5;
  --indigo-soft: #EEF2FF;
  --radius: 18px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04), 0 1px 1px rgba(15, 23, 42, .03);
  /* Soft card: white, rounded, no border, a faint lift. Shared by every card on the page. */
  --card-bg: rgba(255, 255, 255, .88);
  --card-shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 10px 30px -18px rgba(15, 23, 42, .18);
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 12px 32px -12px rgba(15, 23, 42, .12);
  --shadow-lg: 0 2px 4px rgba(15, 23, 42, .04), 0 24px 60px -20px rgba(15, 23, 42, .18);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scrollbar-color: var(--line-2) var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--emerald);
  overflow-x: hidden;
}
::selection { background: rgba(16, 185, 129, .2); color: var(--ink); }
h1, h2, h3, h4 { margin: 0; letter-spacing: -.025em; line-height: 1.1; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
.tnum { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Frosted surfaces: only where something moves behind them (nav over the page, demo over the hero canvas). */
.glass {
  background: rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

/* ───────── Buttons ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; border-radius: 12px; white-space: nowrap;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .2s, border-color .2s;
  will-change: transform;
}
.btn-sm { font-size: 14px; padding: 9px 16px; }
.btn-lg { font-size: 16px; padding: 14px 24px; }
/* Primary CTA uses the headline's emerald ("Consider your books done."). */
.btn-primary {
  background: var(--emerald); color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .18) inset, 0 8px 20px -8px rgba(5, 150, 105, .55);
}
.btn-primary:hover { background: #047857; box-shadow: 0 1px 0 rgba(255, 255, 255, .18) inset, 0 16px 32px -12px rgba(5, 150, 105, .6); }
/* Main CTA: lifts and its arrow slides forward on hover. (On mouse devices the
   magnetic effect in app.js sets the transform itself, already lifted 2px.) */
.btn-primary:hover { transform: translateY(-2px); }
.btn-primary .arrow { flex-shrink: 0; transition: transform .35s var(--ease); }
.btn-primary:hover .arrow, .btn-primary:focus-visible .arrow { transform: translateX(4px); }
.btn-ghost { background: rgba(255, 255, 255, .85); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.btn:active { transform: scale(.98); }
.btn .short { display: none; }
:focus-visible { outline: 2px solid var(--emerald); outline-offset: 3px; border-radius: 6px; }

/* ───────── Nav ───────── */
/* Page-wide line ribbons sit behind all content. */
.flow { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
main, .footer { position: relative; z-index: 1; }

.nav-wrap { position: fixed; top: 14px; left: 0; right: 0; z-index: 50; padding: 0 16px; }
.nav {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; gap: 24px;
  padding: 10px 10px 10px 18px; border-radius: 16px;
  transition: box-shadow .3s;
}
.nav-wrap.scrolled .nav { box-shadow: var(--shadow-lg); }
.logo img { display: block; height: auto; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: -.02em; }
.nav-links { display: flex; gap: 26px; margin-left: 12px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); }
.nav-links a { transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.nav-login { padding: 8px 10px; white-space: nowrap; font-size: 14.5px; font-weight: 600; color: var(--ink-2); border-radius: 10px; transition: color .2s; }
.nav-login:hover { color: var(--ink); }

/* ───────── Hero ───────── */
.hero { position: relative; padding: 108px 0 104px; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media canvas, .hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media canvas { -webkit-mask-image: linear-gradient(to bottom, #000 86%, transparent); mask-image: linear-gradient(to bottom, #000 86%, transparent); }
.hero-media video { opacity: 0; transition: opacity 1.2s; }
.hero-media.has-video video { opacity: 1; }
.hero-media.has-video canvas { opacity: 0; }
.hero-veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 55% 65% at 18% 45%, rgba(248, 250, 252, .9), rgba(248, 250, 252, .3) 60%, transparent);
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(42px, 5.6vw, 70px); font-weight: 800; letter-spacing: -.045em; line-height: 1.02; }
.hero h1 .accent { color: var(--emerald); }
.lede { margin-top: 24px; font-size: 18.5px; line-height: 1.6; color: var(--ink-2); max-width: 30em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.cta-row--center { justify-content: center; }

/* ───────── Demo ───────── */
.demo { border-radius: 24px; padding: 20px; box-shadow: var(--shadow-lg); }
.demo-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.demo-title { font-weight: 700; font-size: 15px; }
.demo-hint { font-size: 12.5px; color: var(--muted); }

.samples { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; min-height: 40px; }
.sample {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px 7px 8px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--line);
  font: 600 13px/1.2 "Plus Jakarta Sans", sans-serif; color: var(--ink-2);
  cursor: pointer; user-select: none;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), opacity .3s, border-color .2s;
}
.sample:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--line-2); }
.sample:active { transform: translateY(1px) scale(.97); }
.sample.used { opacity: .35; pointer-events: none; transform: scale(.96); }
.sample.dragging { opacity: .4; }
.sample .ext {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 9.5px; font-weight: 500; letter-spacing: .04em;
  padding: 3px 5px; border-radius: 5px; background: var(--indigo-soft); color: var(--indigo);
}
.sample .ext.jpg { background: var(--amber-soft); color: var(--amber); }
.sample .ext.csv { background: var(--emerald-soft); color: var(--emerald); }
.sample .pages { font-size: 10.5px; font-weight: 700; color: var(--emerald); background: var(--emerald-soft); padding: 2px 7px; border-radius: 999px; }
.sample.bundle { border-color: #A7F3D0; }
.sample.auto-press { transform: translateY(1px) scale(.96); border-color: var(--emerald-2); box-shadow: 0 0 0 4px rgba(16, 185, 129, .18); }
.dz-auto { margin-top: 10px; font-size: 12px; color: var(--emerald); font-weight: 600; }

.split { display: grid; gap: 6px; align-content: center; min-width: 0; }
.split[hidden], .fields[hidden] { display: none; }
.split-head { font-size: 12.5px; font-weight: 700; color: var(--ink); margin-bottom: 2px; }
.split ol { display: grid; gap: 5px; }
.split li {
  display: grid; grid-template-columns: 50px minmax(0, 1fr) auto; gap: 8px; align-items: center;
  padding: 6px 10px; border-radius: 9px; font-size: 12px;
  background: var(--bg); border: 1px solid var(--line);
  opacity: 0; transform: translateY(4px);
  transition: opacity .25s, transform .3s var(--ease), background .25s, border-color .25s;
}
.split li.in { opacity: 1; transform: none; }
.split li .pg { font: 500 10.5px/1.2 "JetBrains Mono", ui-monospace, monospace; color: var(--muted); }
.split li .nm { font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.split li .to { font-size: 11px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.split li.sorted { background: var(--emerald-soft); border-color: #A7F3D0; }
.split li.sorted .to { color: var(--emerald); }

.drag-ghost { position: fixed; z-index: 100; pointer-events: none; transform: translate(-50%, -50%) rotate(-3deg); box-shadow: var(--shadow-lg); }

.dropzone {
  position: relative; border-radius: 16px; min-height: 196px;
  display: grid; place-items: center; text-align: center;
  background: var(--surface);
  border: 1.5px dashed var(--line-2);
  cursor: pointer; overflow: hidden;
  transition: border-color .25s, box-shadow .35s var(--ease), background .25s;
}
.dropzone::before {
  content: ""; position: absolute; inset: -2px; border-radius: inherit; pointer-events: none; opacity: 0;
  background: conic-gradient(from var(--ang, 0deg), transparent 0 70%, var(--emerald-2) 85%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  padding: 2px; transition: opacity .3s;
}
.dropzone:hover { border-color: #6EE7B7; }
.dropzone.over {
  border-color: var(--emerald-2); border-style: solid;
  background: var(--emerald-soft);
  box-shadow: 0 0 0 6px rgba(16, 185, 129, .12), 0 0 40px -6px rgba(16, 185, 129, .45);
}
.dropzone.over::before { opacity: 1; animation: spin 2.2s linear infinite; }
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes spin { to { --ang: 360deg; } }
.dz-icon {
  width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 14px;
  display: grid; place-items: center; color: var(--emerald);
  background: var(--emerald-soft); border: 1px solid #A7F3D0;
  transition: transform .4s var(--ease);
}
.dropzone.over .dz-icon { transform: translateY(-4px) scale(1.06); }
.dz-main { font-weight: 700; font-size: 15px; }
.dz-sub { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* Side-by-side hero: the drop zone keeps one height through every demo state
   (empty, extracting, splitting a bundle), so the card never resizes and the
   headline centred beside it never shifts. */
@media (min-width: 961px) { .dropzone { height: 256px; } }
.dz-scan { width: 100%; padding: 16px; display: grid; grid-template-columns: 132px 1fr; gap: 16px; align-items: center; text-align: left; }
.dz-scan[hidden] { display: none; }
.scan-doc {
  position: relative; height: 160px; border-radius: 10px; overflow: hidden;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
  padding: 12px 10px;
}
.scan-doc-name { font-size: 10.5px; font-weight: 700; color: var(--ink); word-break: break-all; margin-bottom: 10px; }
.scan-lines i { display: block; height: 5px; border-radius: 3px; background: var(--line); margin-bottom: 8px; }
.scan-lines i:nth-child(2) { width: 70%; } .scan-lines i:nth-child(3) { width: 85%; }
.scan-lines i:nth-child(4) { width: 50%; } .scan-lines i:nth-child(5) { width: 35%; margin-left: auto; background: #A7F3D0; }
.scan-ray {
  position: absolute; left: 0; right: 0; top: -30%; height: 30%;
  background: linear-gradient(to bottom, transparent, rgba(16, 185, 129, .22) 80%, rgba(16, 185, 129, .9) 98%, transparent);
  border-bottom: 2px solid var(--emerald-2);
  box-shadow: 0 6px 18px rgba(16, 185, 129, .5);
}
.dz-scan.scanning .scan-ray { animation: ray 1.1s var(--ease) 2 alternate; }
@keyframes ray { from { top: -30%; } to { top: 100%; } }
.dz-scan.flying .scan-doc { animation: fly .6s var(--ease) forwards; }
@keyframes fly { to { transform: translateY(60px) scale(.5); opacity: 0; } }

.fields { display: grid; gap: 7px; }
.field {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 8px 11px; border-radius: 10px; font-size: 12.5px;
  background: var(--bg); border: 1px solid var(--line);
  opacity: .35; transition: opacity .3s, background .3s, border-color .3s, transform .4s var(--ease);
}
.field span { color: var(--muted); font-weight: 500; }
.field b { font-weight: 700; color: var(--ink); text-align: right; min-height: 1em; }
.field.hit { opacity: 1; background: var(--emerald-soft); border-color: #A7F3D0; animation: flash .7s var(--ease); }
.field.hit b::after {
  content: ""; display: inline-block; width: 4px; height: 8px; margin: 0 2px 2px 7px;
  border: solid var(--emerald); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
@keyframes flash { 0% { transform: scale(.97); box-shadow: 0 0 0 0 rgba(16, 185, 129, .5); } 60% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); } 100% { transform: none; } }

.buckets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.bucket {
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 11px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line);
  transition: border-color .3s, box-shadow .4s var(--ease), transform .4s var(--ease);
}
.bucket.pulse { border-color: var(--emerald-2); box-shadow: 0 0 0 4px rgba(16, 185, 129, .14); transform: translateY(-3px); }
.bucket-top { display: flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 600; color: var(--ink-2); line-height: 1.25; }
.b-ico { width: 8px; height: 8px; border-radius: 3px; flex: none; }
.b-ico--ap { background: var(--indigo); } .b-ico--tax { background: var(--amber); } .b-ico--rec { background: var(--emerald); }
.bucket-num { display: flex; align-items: baseline; justify-content: space-between; margin-top: 8px; gap: 6px; }
.bucket-num b { font-size: 22px; letter-spacing: -.02em; }
.bucket-num span { font-size: 12px; color: var(--muted); font-weight: 600; }
.demo-foot { margin-top: 12px; font-size: 11.5px; color: var(--muted); text-align: center; }

/* ───────── Sections ───────── */
.section { padding: 120px 0; }
.section--tint { background: transparent; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2, .trace-copy h2, .final h2 { font-size: clamp(32px, 3.8vw, 48px); font-weight: 800; letter-spacing: -.035em; }
.section-sub { margin-top: 16px; font-size: 17.5px; color: var(--ink-2); max-width: 34em; }

/* Steps: a connected sequence, not a row of floating cards */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { position: relative; padding: 26px 26px 30px; border-radius: 18px; background: var(--card-bg); box-shadow: var(--card-shadow); }
.step-n {
  display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  font-size: 13px; font-weight: 700; color: var(--ink); border: 1.5px solid var(--ink);
}
.step h3 { font-size: 21px; font-weight: 700; margin: 24px 0 10px; }
.step p { color: var(--ink-2); font-size: 15px; }
.step-art { margin-top: 22px; height: 128px; border-radius: 12px; padding: 14px; background: var(--bg); overflow: hidden; }
.step-art--drop { display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 8px; }
.chip { font-family: "JetBrains Mono", monospace; font-size: 11px; padding: 7px 10px; border-radius: 8px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); animation: bob 3.2s ease-in-out infinite; }
.chip:nth-child(2) { animation-delay: .4s; } .chip:nth-child(3) { animation-delay: .8s; } .chip:nth-child(4) { animation-delay: 1.2s; }
@keyframes bob { 50% { transform: translateY(-6px); } }
.step-art--parse { display: grid; gap: 6px; align-content: center; }
.mini-row { display: flex; justify-content: space-between; font-size: 12.5px; padding: 6px 10px; border-radius: 8px; background: #fff; }
.mini-row span { color: var(--muted); }
.mini-row b.ok { color: var(--emerald); } .mini-row b.warn { color: var(--amber); }
.step-art--sync { display: grid; place-items: center; align-content: center; gap: 12px; }
.sync-btn { font-size: 13px; font-weight: 700; color: #fff; background: var(--emerald); padding: 9px 16px; border-radius: 10px; box-shadow: 0 8px 20px -8px rgba(5, 150, 105, .6); }
.sync-targets { display: flex; gap: 6px; }
.sync-targets span { font-size: 11px; font-weight: 600; color: var(--ink-2); padding: 4px 9px; border-radius: 999px; background: #fff; border: 1px solid var(--line); }

/* Live grid */
.live-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.live-card { padding: 20px 18px 18px; border-radius: 18px; background: var(--card-bg); box-shadow: var(--card-shadow); display: flex; flex-direction: column; min-height: 400px; }
.live-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.live-head h3 { font-size: 16px; font-weight: 700; }
.live-head .tag { font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 999px; }
.live-meta { font-size: 12.5px; color: var(--muted); margin-bottom: 14px; }
.live-meta b { color: var(--ink); }
.feed { display: grid; gap: 8px; flex: 1; align-content: start; }
.feed-item {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 8px;
  padding: 10px 11px; border-radius: 11px; background: var(--bg);
  font-size: 12.5px; animation: slideIn .6s var(--ease);
}
.feed-item .fi-name { font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-item .fi-amt { font-weight: 700; text-align: right; }
.feed-item .fi-sub { color: var(--muted); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-item .fi-state { font-size: 11px; font-weight: 600; text-align: right; color: var(--muted); white-space: nowrap; }
.feed-item.done .fi-state { color: var(--emerald); }
.feed-item.flagged .fi-state { color: var(--amber); }
.feed-item.processing { background: #fff; box-shadow: 0 0 0 1px #A7F3D0; position: relative; overflow: hidden; }
.feed-item.processing::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(16, 185, 129, .14), transparent);
  animation: shimmer 1.2s linear infinite;
}
@keyframes shimmer { to { transform: translateX(100%); } }
@keyframes slideIn { from { opacity: 0; transform: translateY(-10px); } }

.live-note { margin-top: 20px; font-size: 13px; color: var(--muted); }
.feed-item.flagged .fi-sub { color: var(--amber); font-weight: 600; white-space: normal; }

/* BIR returns: a filing schedule, read like a ledger */
.filing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.filing-group { padding: 24px 24px 26px; border-radius: 18px; background: var(--card-bg); box-shadow: var(--card-shadow); }
.filing-group h3 { font-size: 13px; font-weight: 700; color: var(--muted); padding-bottom: 14px; border-bottom: 1.5px solid var(--ink); }
.filing dl > div { display: grid; grid-template-columns: 112px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.filing dl > div:last-child { border-bottom: 0; padding-bottom: 0; }
.filing dt { white-space: nowrap; font-size: 14.5px; font-weight: 800; letter-spacing: -.01em; color: var(--ink); font-variant-numeric: tabular-nums; }
.filing dd span { display: block; font-size: 14px; color: var(--ink-2); line-height: 1.4; }
.filing dd em { display: block; margin-top: 4px; font-style: normal; font-size: 12.5px; font-weight: 600; color: var(--emerald); }

/* Books of accounts */
.books-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.books-copy h2 { font-size: clamp(32px, 3.8vw, 48px); font-weight: 800; letter-spacing: -.035em; }
.books-points { margin-top: 28px; display: grid; gap: 14px; }
.books-points li { position: relative; padding-left: 22px; font-size: 15.5px; color: var(--ink-2); line-height: 1.5; }
.books-points li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 7px; height: 7px; border-radius: 2px; background: var(--emerald); }
.books-points b { color: var(--ink); font-weight: 700; }
.binder { padding: 22px 24px 24px; border-radius: 18px; background: var(--card-bg); box-shadow: var(--card-shadow); }
.binder-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 0 0 14px; border-bottom: 1.5px solid var(--ink); }
.binder-head b { font-size: 15px; }
.binder-head span { font-size: 12.5px; color: var(--muted); }
.binder-books li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.binder-books li span { font-weight: 600; color: var(--ink); }
.binder-books li em { font-style: normal; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.binder-months { padding: 18px 0 0; }
.binder-months > p:first-child { font-size: 12.5px; font-weight: 700; color: var(--ink-2); margin-bottom: 10px; }
.binder-months ol { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; }
.binder-months li { font-size: 10.5px; font-weight: 600; text-align: center; padding: 7px 0; border-radius: 6px; color: var(--muted); background: #fff; border: 1px solid var(--line); }
.binder-months li.closed { background: var(--ink); border-color: var(--ink); color: #fff; }
.binder-months li.open { border: 1.5px solid var(--emerald); color: var(--emerald); }
.binder-legend { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 11.5px; color: var(--muted); }
.binder-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.binder-legend i.closed { background: var(--ink); }
.binder-legend i.open { border: 1.5px solid var(--emerald); margin-left: 10px; }

/* Source trail */
.trace-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: center; }
.trace-hint { margin-top: 18px; font-size: 14px; color: var(--muted); }
.trace { position: relative; display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; padding: 8px 0; background: transparent; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.trace svg.wire { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.trace .wire path { fill: none; stroke: var(--emerald); stroke-width: 1.5; stroke-dasharray: 4 4; }
.trace .wire circle { fill: var(--emerald); }
.receipt {
  margin: 0; padding: 20px 18px 26px; background: #fff;
  font: 500 11.5px/1.55 "JetBrains Mono", ui-monospace, monospace; color: var(--ink-2);
  box-shadow: var(--shadow); transform: rotate(-1.5deg);
  -webkit-mask: linear-gradient(#000, #000) top / 100% calc(100% - 8px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 12px 8px repeat-x;
  mask: linear-gradient(#000, #000) top / 100% calc(100% - 8px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 12px 8px repeat-x;
}
.r-top { text-align: center; padding-bottom: 10px; border-bottom: 1px dashed var(--line-2); }
.r-top b { display: inline-block; font-size: 13px; color: var(--ink); text-transform: uppercase; letter-spacing: .04em; }
.r-top span { display: block; font-size: 10.5px; }
.r-meta { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px dashed var(--line-2); font-size: 10.5px; }
.r-lines { padding: 8px 0; border-bottom: 1px dashed var(--line-2); }
.r-lines li { display: flex; justify-content: space-between; gap: 8px; }
.r-sum { display: grid; grid-template-columns: 1fr auto; padding-top: 8px; }
.r-sum b { color: var(--ink); font-size: 13px; margin-top: 4px; }
[data-src] { border-radius: 4px; transition: background-color .25s, box-shadow .25s; }
[data-src].lit { background: var(--emerald-soft); box-shadow: 0 0 0 3px var(--emerald-soft), 0 0 0 4.5px var(--emerald-2); }
.entry { background: #fff; border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.entry-title { display: flex; justify-content: space-between; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 700; }
.entry-title span { font: 500 11.5px/1.6 "JetBrains Mono", monospace; color: var(--muted); }
.entry dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--line); cursor: default; transition: background-color .2s; }
.entry dl > div:last-child { border-bottom: 0; }
.entry dl > div:hover, .entry dl > div:focus-visible, .entry dl > div.on { background: var(--emerald-soft); outline: none; }
.entry dt { font-size: 13.5px; color: var(--muted); }
.entry dd { font-size: 13.5px; font-weight: 600; color: var(--ink); text-align: right; }

/* Final CTA */
.final { padding: 0 0 120px; }
.final-inner {
  text-align: center; border-radius: 28px; padding: 80px 24px;
  background: var(--ink); color: #fff;
  box-shadow: var(--shadow-lg);
}
.final h2 { color: #fff; }
.final-inner p { margin-top: 14px; color: #CBD5E1; font-size: 17.5px; }
.final .btn-primary { background: var(--emerald); color: #fff; }
.final .btn-primary:hover { background: #047857; }
.final .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .3); box-shadow: none; }
.final .btn-ghost:hover { border-color: #fff; }

/* Footer */
.footer { background: transparent; padding: 64px 0 28px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 32px; }
.f-brand p { color: var(--muted); margin-top: 14px; max-width: 300px; }
.footer h4 { font-size: 13px; font-weight: 700; margin-bottom: 14px; letter-spacing: 0; }
.footer ul { display: grid; gap: 10px; }
.footer ul a { color: var(--muted); transition: color .2s; overflow-wrap: anywhere; }
.footer ul a:hover { color: var(--emerald); }
.footer-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

/* Reveal: content is visible by default; JS opts sections into the entrance. */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.steps .reveal:nth-child(2) { transition-delay: .1s; } .steps .reveal:nth-child(3) { transition-delay: .2s; }

/* ───────── Responsive ───────── */
@media (max-width: 1080px) {
  .live-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .trace-grid { grid-template-columns: 1fr; gap: 40px; }
  .books-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 960px) {
  .hero { padding-top: 108px; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .steps { grid-template-columns: 1fr; }
  .steps { gap: 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .f-brand { grid-column: 1 / -1; }
  .filing { grid-template-columns: 1fr; }
  .filing { gap: 16px; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .nav-wrap { padding: 0 10px; top: 10px; }
  .nav { gap: 10px; padding-left: 12px; }
  .logo span { font-size: 15px; }
  .btn .long { display: none; }
  .btn .short { display: inline; }
  .nav-right { gap: 2px; }
  .nav-login { padding: 8px 8px; }
  .nav .btn-sm { padding: 9px 13px; }
  .hero { padding: 104px 0 72px; }
  .lede { font-size: 17px; }
  .section { padding: 80px 0; }
  .live-grid { grid-template-columns: 1fr; }
  .live-card { min-height: 0; }
  .demo { padding: 14px; }
  .dz-scan { grid-template-columns: 96px 1fr; gap: 10px; padding: 12px; }
  .split li { grid-template-columns: 1fr; gap: 1px; padding: 5px 9px; }
  .split li .pg { display: none; }
  .split li .to { font-size: 10.5px; }
  .scan-doc { height: 130px; }
  .buckets { grid-template-columns: 1fr; }
  .bucket { flex-direction: row; align-items: center; }
  .bucket-num { margin-top: 0; gap: 12px; }
  .bucket-num b { font-size: 18px; }
  .trace { grid-template-columns: 1fr; gap: 24px; padding: 0; }
  .trace svg.wire { display: none; }
  .final-inner { padding: 56px 20px; border-radius: 22px; }
  .final { padding-bottom: 80px; }
  .step, .filing-group, .binder { padding: 20px 18px 22px; }
  .filing dl > div { grid-template-columns: 1fr; gap: 4px; }
  .binder-months ol { grid-template-columns: repeat(6, 1fr); }
}

/* Reduce motion: gentler, not frozen. Motion that explains something (the
   scan, fields landing, documents sorting) keeps playing; pure decoration and
   travel are toned down. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .chip { animation: none; }
  .dropzone.over::before { animation-duration: 6s; }
  .feed-item { animation: fadeIn .3s ease; }
  .feed-item.processing::after { animation-duration: 2.4s; }
  .field.hit { animation: none; }
  .js .reveal { transform: none; transition: opacity .5s ease; }
}
@keyframes fadeIn { from { opacity: 0; } }
@media (max-width: 380px) {
  /* Smallest phones: the mark alone keeps "Log in" and "Book a demo" on one line. */
  .nav .logo span { display: none; }
}

/* ───────── FAQ ───────── */
.faq { max-width: 820px; display: grid; gap: 12px; }
.faq-item { border-radius: 14px; background: var(--card-bg); box-shadow: var(--card-shadow); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; cursor: pointer; list-style: none;
  font-size: 16.5px; font-weight: 700; letter-spacing: -.01em; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; flex: none; width: 9px; height: 9px; margin-top: -4px;
  border-right: 2px solid var(--emerald); border-bottom: 2px solid var(--emerald);
  transform: rotate(45deg); transition: transform .25s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(225deg); margin-top: 4px; }
.faq-item summary:focus-visible { outline: 2px solid var(--emerald); outline-offset: 2px; border-radius: 14px; }
.faq-item p { padding: 0 22px 20px; font-size: 15.5px; color: var(--ink-2); line-height: 1.6; max-width: 62em; }
@media (prefers-reduced-motion: reduce) { .faq-item summary::after { transition: none; } }
