/* ============================================================
   Sri Vasista Technologies — shared design system
   Signature: the annotation rail — a marginal mark borrowed from
   redlines, diff gutters, and proofreader's ticks, used as the
   one recurring device that ties documents, code, and tests
   together as the same disciplined act of review.
   ============================================================ */

/* Space Grotesk / Public Sans / JetBrains Mono are loaded via <link> tags
   in each page's <head>, not @import, so the browser can fetch them in
   parallel with this stylesheet instead of blocking on a nested request. */

:root {
  /* ---- neutrals ---- */
  --ink: #14171b;
  --ink-soft: #3a4048;
  --muted: #666d76;
  --paper: #ffffff;
  --paper-sunken: #f1f2f4;
  --paper-raised: #ffffff;
  --line: #e1e4e8;
  --line-strong: #c9cdd3;

  /* ---- brand accent (SVT corporate — matches the real logo mark) ---- */
  --accent: #a91e31;
  --accent-deep: #7c1522;
  --accent-wash: #f8e6e8;
  --accent-ink: #ffffff;

  /* ---- product-page identifier color (eyebrows, ticks, hero mock) ----
     Defaults to the brand accent; a .theme-* class on <main> repoints
     this only, so buttons/links/focus rings (--accent) always stay
     SVT red while small identifiers pick up the product color. ---- */
  --product-accent: var(--accent);
  --product-accent-deep: var(--accent-deep);
  --product-accent-wash: var(--accent-wash);

  /* ---- product accents, used only as small identifiers ---- */
  --docket: #e87121;
  --docket-wash: #fbe9d9;
  --ireview: #3d4ec4;
  --ireview-wash: #e5e7fa;
  --sonetx: #1c7a53;
  --sonetx-wash: #dcefe4;
  --folio: #0e7a82;
  --folio-wash: #dceff0;
  --marshal: #b8860b;
  --marshal-wash: #f6ecd2;

  /* ---- heritage accent — used sparingly (about/footer only) ---- */
  --heritage: #a3813f;

  --shadow-sm: 0 1px 2px rgba(20, 23, 27, 0.07);
  --shadow-md: 0 14px 32px rgba(20, 23, 27, 0.12);
  --radius: 3px;

  --display: 'Space Grotesk', 'Segoe UI', -apple-system, sans-serif;
  --sans: 'Public Sans', 'Segoe UI', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Code', 'SF Mono', Consolas, monospace;

  --container: 1180px;
}

/* ---------------------------------------------------------------
   Reset
   --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: hidden; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
p { margin: 0; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--product-accent);
}
.eyebrow::before {
  content: '';
  width: 14px;
  height: 2px;
  background: var(--product-accent);
  display: inline-block;
}
.eyebrow.is-muted { color: var(--muted); }
.eyebrow.is-muted::before { background: var(--line-strong); }

/* ---------------------------------------------------------------
   Buttons
   --------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover { background: var(--accent-deep); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--ink); background: var(--paper-sunken); }
.btn-arrow { transition: transform 0.15s ease; }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ---------------------------------------------------------------
   Header / nav
   --------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-size: 23px;
  color: var(--ink);
  margin-right: auto;
}
.brand img { height: 38px; width: auto; flex: none; }
.brand .brand-word { letter-spacing: 0.01em; }
.brand .brand-word strong { font-weight: 700; color: var(--accent); }
.brand .brand-word span { font-weight: 700; color: var(--ink); margin-left: 3px; }

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-right: 28px;
}
.nav-link {
  position: relative;
  padding: 10px 14px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
  border-radius: var(--radius);
}
.nav-link:hover { color: var(--ink); background: var(--paper-sunken); }
.nav-link.is-active { color: var(--ink); }
.nav-link.is-active::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  background: var(--accent);
}

.nav-item { position: relative; }
.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 300px;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
}
.nav-dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius);
}
.nav-dropdown-item:hover { background: var(--paper-sunken); }
.nav-dropdown-tick { width: 3px; align-self: stretch; border-radius: 2px; flex: none; margin-top: 2px; min-height: 30px; }
.nav-dropdown-text strong { display: block; font-size: 14px; font-weight: 600; color: var(--ink); font-family: var(--display); }
.nav-dropdown-text p { font-size: 12.5px; color: var(--muted); margin-top: 2px; line-height: 1.4; }

.nav-cta { display: flex; align-items: center; gap: 8px; }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}
@media (max-width: 900px) {
  .nav { display: none; }
  .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: flex; }
  body.nav-open .nav {
    display: flex;
    position: fixed;
    inset: 72px 0 0 0;
    background: var(--paper);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px;
    gap: 2px;
    overflow-y: auto;
  }
  body.nav-open .nav-link { padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 0; }
  body.nav-open .nav-dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; margin-top: 0; display: none;
  }
  body.nav-open .nav-item.is-expanded .nav-dropdown { display: block; }
}

/* ---------------------------------------------------------------
   Section rhythm + annotation rail (signature device)
   --------------------------------------------------------------- */
.section { padding: 96px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 88px; }
.section.is-tight { padding: 64px 0; }
.section.is-sunken { background: var(--paper-sunken); }
.card[id] { scroll-margin-top: 100px; }
@media (max-width: 700px) {
  .section { padding: 64px 0; }
}

.rail {
  border-left: 3px solid var(--line-strong);
  padding-left: 28px;
}
.rail.rail-accent { border-left-color: var(--accent); }
.rail.rail-docket { border-left-color: var(--docket); }
.rail.rail-ireview { border-left-color: var(--ireview); }
.rail.rail-sonetx { border-left-color: var(--sonetx); }
.rail.rail-folio { border-left-color: var(--folio); }
@media (max-width: 700px) {
  .rail { border-left: none; border-top: 3px solid var(--line-strong); padding-left: 0; padding-top: 18px; }
  .rail.rail-accent { border-top-color: var(--accent); }
  .rail.rail-docket { border-top-color: var(--docket); }
  .rail.rail-ireview { border-top-color: var(--ireview); }
  .rail.rail-sonetx { border-top-color: var(--sonetx); }
  .rail.rail-folio { border-top-color: var(--folio); }
}

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 38px); margin-top: 14px; }
.section-head p { margin-top: 16px; font-size: 17px; color: var(--ink-soft); line-height: 1.6; }

/* ---------------------------------------------------------------
   Hero
   --------------------------------------------------------------- */
.hero { padding: 84px 0 0; border-bottom: none; }
.hero-inner { max-width: 780px; padding-bottom: 76px; }
.hero h1 {
  font-size: clamp(38px, 5.4vw, 60px);
  line-height: 1.06;
  margin-top: 18px;
  letter-spacing: -0.02em;
}
.hero .lede {
  margin-top: 22px;
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 58ch;
  line-height: 1.65;
}
.hero-actions { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------------------------------------------------------------
   Cards — products / industries / solutions
   --------------------------------------------------------------- */
.grid { display: grid; gap: 22px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
a.card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.card-tick { width: 26px; height: 4px; border-radius: 2px; margin-bottom: 6px; }
.tick-docket { background: var(--docket); }
.tick-ireview { background: var(--ireview); }
.tick-sonetx { background: var(--sonetx); }
.tick-folio { background: var(--folio); }
.tick-marshal { background: var(--marshal); }
.tick-accent { background: var(--accent); }
.card-kicker { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
.card h3 { font-size: 19px; }
.card p { color: var(--ink-soft); font-size: 14.5px; line-height: 1.6; }
.card .card-more { margin-top: auto; padding-top: 10px; font-size: 13.5px; font-weight: 600; color: var(--accent); display: flex; align-items: center; gap: 6px; }

/* product badge chip */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.04em;
  padding: 4px 9px; border-radius: 20px; font-weight: 500;
}
.chip-docket { background: var(--docket-wash); color: #8a4213; }
.chip-ireview { background: var(--ireview-wash); color: #2a3690; }
.chip-sonetx { background: var(--sonetx-wash); color: #14523a; }
.chip-folio { background: var(--folio-wash); color: #0a555b; }
.chip-marshal { background: var(--marshal-wash); color: #7a5709; }
.chip-accent { background: var(--accent-wash); color: var(--accent-deep); }

/* ---------------------------------------------------------------
   Solutions banner (compact cross-link strip)
   --------------------------------------------------------------- */
.solutions-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding: 28px 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-raised);
}
.solutions-banner p { margin-top: 6px; color: var(--ink-soft); font-size: 15px; max-width: 56ch; }
.solutions-banner .btn { flex: none; }
@media (max-width: 640px) { .solutions-banner { flex-direction: column; align-items: flex-start; } }

/* ---------------------------------------------------------------
   Checklist
   --------------------------------------------------------------- */
.checklist { display: flex; flex-direction: column; gap: 14px; }
.checklist li { display: flex; align-items: flex-start; gap: 12px; font-size: 15.5px; color: var(--ink-soft); }
.checklist .tickmark {
  flex: none; width: 20px; height: 20px; margin-top: 1px;
  display: flex; align-items: center; justify-content: center;
}

/* ---------------------------------------------------------------
   CTA band
   --------------------------------------------------------------- */
.cta-band { background: var(--ink); color: #fff; border-bottom: none; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #b9bec6; }
.cta-band .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.28); }
.cta-band .btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: #fff; }

/* ---------------------------------------------------------------
   Footer
   --------------------------------------------------------------- */
.site-footer { padding: 64px 0 28px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 32px;
  padding-bottom: 48px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-size: 21px; }
.footer-brand img { height: 34px; width: auto; }
.footer-brand strong { font-weight: 700; color: var(--accent); }
.footer-brand span { font-weight: 700; color: var(--ink); margin-left: 3px; }
.footer-tagline { margin-top: 14px; color: var(--muted); font-size: 14px; max-width: 30ch; line-height: 1.6; }
.footer-col h4 { font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-family: var(--mono); font-weight: 500; margin-bottom: 14px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14.5px; color: var(--ink-soft); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--muted); flex-wrap: wrap; gap: 10px;
}
.footer-bottom .heritage-note { font-style: italic; color: var(--muted); }

/* ---------------------------------------------------------------
   Utility
   --------------------------------------------------------------- */
.text-mono { font-family: var(--mono); }
.mt-0 { margin-top: 0; }
.page-hero {
  padding: 64px 0 56px;
}
.page-hero h1 { font-size: clamp(34px, 4.6vw, 50px); margin-top: 16px; }
.page-hero .lede { margin-top: 18px; font-size: 17.5px; color: var(--ink-soft); max-width: 60ch; }

.breadcrumb { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.breadcrumb a:hover { color: var(--accent); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } }

.divider { height: 1px; background: var(--line); border: none; margin: 0; }

/* ---------------------------------------------------------------
   Product detail pages (Docket, iReview, SonetX, Folio)
   Each page sets a theme class on <body> that repoints --accent /
   --accent-deep / --accent-wash to its product color; every
   component below inherits that, so this block is shared.
   --------------------------------------------------------------- */
.theme-docket { --product-accent: var(--docket); --product-accent-deep: #8a4213; --product-accent-wash: var(--docket-wash); }
.theme-ireview { --product-accent: var(--ireview); --product-accent-deep: #2a3690; --product-accent-wash: var(--ireview-wash); }
.theme-sonetx { --product-accent: var(--sonetx); --product-accent-deep: #14523a; --product-accent-wash: var(--sonetx-wash); }
.theme-folio { --product-accent: var(--folio); --product-accent-deep: #0a555b; --product-accent-wash: var(--folio-wash); }
.theme-marshal { --product-accent: var(--marshal); --product-accent-deep: #7a5709; --product-accent-wash: var(--marshal-wash); }

.product-hero { padding-bottom: 64px; }
.product-hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.product-hero .wrap > * { min-width: 0; }
@media (max-width: 900px) { .product-hero .wrap { grid-template-columns: 1fr; } }
.product-hero .hero-inner { padding-bottom: 0; }
.product-hero h1 em { font-style: normal; color: var(--product-accent); }

/* Dossier mock (hero visual) — decorative, uses the product identifier color */
.dossier {
  position: relative;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  padding: 22px 24px 20px;
  max-width: 440px;
  margin-inline: auto;
}
.dossier-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: var(--muted); text-transform: uppercase; padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px dashed var(--line-strong); }
.upload-bar { height: 3px; border-radius: 2px; background: var(--line-strong); overflow: hidden; margin-bottom: 14px; }
.upload-bar-fill { height: 100%; width: 0; border-radius: 2px; background: var(--product-accent); }
@media (prefers-reduced-motion: no-preference) { .dossier[data-phase='1'] .upload-bar-fill { animation: uploadFill 0.5s ease-out both; } }
@keyframes uploadFill { from { width: 0; } to { width: 100%; } }
.dossier-ai { display: flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); opacity: 0.5; margin-bottom: 14px; transition: opacity 0.4s ease, color 0.4s ease; }
.dossier[data-phase='1'] .dossier-ai { opacity: 1; color: var(--product-accent-deep); }
.ai-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
@media (prefers-reduced-motion: no-preference) { .dossier[data-phase='1'] .ai-dot { animation: aiPulse 1.1s ease-in-out infinite; } }
@keyframes aiPulse { 0%, 100% { opacity: 0.35; transform: scale(0.8); } 50% { opacity: 1; transform: scale(1.2); } }
.ai-text { display: none; }
.dossier[data-phase='1'] .ai-text[data-for='1'],
.dossier[data-phase='2'] .ai-text[data-for='2'],
.dossier[data-phase='3'] .ai-text[data-for='3'] { display: inline; }
.doc-line { height: 11px; border-radius: 3px; background: var(--line-strong); width: var(--w, 100%); opacity: 1; margin-bottom: 10px; }
.doc-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.doc-row .doc-line { margin-bottom: 0; }
.doc-line.target-line { height: 15px; border-radius: 2px; background: var(--product-accent-wash); border: 1.5px dashed var(--product-accent); transition: background 0.5s ease, border-color 0.5s ease, border-style 0.5s ease; }
.dossier[data-phase='2'] .doc-line.target-line,
.dossier[data-phase='3'] .doc-line.target-line { background: var(--ink); border: 1px solid var(--line-strong); }
.tag-redacted { font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: 0.08em; color: var(--muted); white-space: nowrap; }
.tag-redacted .flag-text, .tag-redacted .burn-text { display: none; }
.dossier[data-phase='1'] .tag-redacted .flag-text { display: inline; color: var(--product-accent-deep); }
.dossier[data-phase='2'] .tag-redacted .burn-text,
.dossier[data-phase='3'] .tag-redacted .burn-text { display: inline; }
@media (prefers-reduced-motion: no-preference) {
  .dossier[data-phase='1'] .doc-line.target-line { animation: pulseRing 0.8s ease-out 1.9s both; }
  .dossier[data-phase='2'] .doc-line.target-line { animation: pulseRing 0.8s ease-out; }
  .dossier[data-phase='2'] .meta-audit { animation: popText 0.5s ease; }
  .dossier[data-phase='1'] .meta-ocr { animation: metaFlash 1s ease 1.0s both; }
  .dossier[data-phase='1'] .meta-pii { animation: metaFlash 1s ease 1.9s both; }
  .dossier[data-phase='3'] .stamp-expunge { animation: popText 0.5s ease; }
}
@keyframes pulseRing {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--product-accent) 55%, transparent); }
  70% { box-shadow: 0 0 0 9px color-mix(in srgb, var(--product-accent) 0%, transparent); }
  100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--product-accent) 0%, transparent); }
}
@keyframes popText { 0% { transform: scale(1); } 35% { transform: scale(1.16); } 100% { transform: scale(1); } }
@keyframes metaFlash {
  0% { opacity: 0.45; color: var(--muted); transform: scale(1); font-weight: 400; }
  45% { opacity: 1; color: var(--product-accent-deep); transform: scale(1.2); font-weight: 700; }
  100% { opacity: 1; color: var(--product-accent-deep); transform: scale(1); font-weight: 700; }
}
.dossier-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.03em; color: var(--muted); margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line-strong); }
.dossier-meta .meta-ocr, .dossier-meta .meta-pii { display: inline-block; opacity: 0.45; transition: opacity 0.3s ease, color 0.3s ease; }
.dossier[data-phase='2'] .meta-ocr, .dossier[data-phase='3'] .meta-ocr,
.dossier[data-phase='2'] .meta-pii, .dossier[data-phase='3'] .meta-pii { opacity: 1; color: var(--product-accent-deep); font-weight: 700; }
.dossier-meta .meta-audit { display: inline-block; opacity: 0.4; transition: opacity 0.4s ease, color 0.4s ease; }
.dossier[data-phase='2'] .meta-audit,
.dossier[data-phase='3'] .meta-audit { opacity: 1; color: var(--product-accent-deep); }
.dossier-phase { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; margin-bottom: 14px; }
.phase-label { display: none; font-family: var(--mono); font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--product-accent-deep); }
.dossier[data-phase='1'] .phase-label[data-for='1'],
.dossier[data-phase='2'] .phase-label[data-for='2'],
.dossier[data-phase='3'] .phase-label[data-for='3'] { display: inline; }
.phase-dots { display: flex; gap: 5px; flex: none; }
.phase-dots .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); transition: background 0.3s ease; }
.dossier[data-phase='1'] .dot[data-for='1'],
.dossier[data-phase='2'] .dot[data-for='1'], .dossier[data-phase='2'] .dot[data-for='2'],
.dossier[data-phase='3'] .dot { background: var(--product-accent); }
@media (prefers-reduced-motion: no-preference) {
  .doc-line:not(.target-line) { animation: growline 0.7s cubic-bezier(.2,.7,.3,1) both; animation-delay: var(--d, 0s); }
}
@keyframes growline { from { width: 0; opacity: 0; } to { width: var(--w); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .dossier * { transition: none !important; } }
.stamp {
  position: absolute;
  right: -14px;
  bottom: -16px;
  background: var(--paper-raised);
  border: 1.5px solid var(--product-accent);
  color: var(--product-accent-deep);
  font-family: var(--mono);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: 4px;
  transform: rotate(-8deg) scale(0.7);
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(.3,1.6,.5,1);
}
.dossier[data-phase='2'] .stamp,
.dossier[data-phase='3'] .stamp { opacity: 1; transform: rotate(-8deg) scale(1); }
.stamp-expunge { display: none; }
.dossier[data-phase='3'] .stamp-burn { display: none; }
.dossier[data-phase='3'] .stamp-expunge { display: inline; }

/* Stat strip */
.product-stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper-sunken); }
.product-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); }
@media (max-width: 700px) { .product-stats-grid { grid-template-columns: repeat(2, 1fr); } }
.stat-cell { background: var(--paper-sunken); padding: 28px 20px; text-align: center; }
.stat-num { font-family: var(--display); font-weight: 700; font-size: clamp(28px, 3.4vw, 38px); color: var(--ink); }
.stat-label { margin-top: 6px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.product-stats-note { text-align: center; font-family: var(--mono); font-size: 11px; color: var(--muted); padding: 12px 0 22px; }

/* Workflow stages */
.stages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 860px) { .stages { grid-template-columns: 1fr; } }
.stage { background: var(--paper-raised); border: 1px solid var(--line); border-radius: 8px; padding: 26px 24px 8px; }
.stage-num { font-family: var(--mono); font-size: 11px; color: var(--product-accent-deep); letter-spacing: 0.08em; }
.stage h3 { font-size: 20px; margin: 8px 0 18px; }
.field { padding: 14px 0; border-top: 1px solid var(--line); }
.field:first-of-type { border-top: none; }
.field-tag { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); margin-bottom: 5px; }
.field p { margin: 0; font-size: 14.5px; color: var(--ink-soft); }

/* Assistant / chat mock */
.assistant-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .assistant-grid { grid-template-columns: 1fr; } }
.assistant-grid h2 { font-size: clamp(26px, 3.2vw, 36px); margin: 10px 0 0; line-height: 1.16; }
.lede3 { font-size: 16px; color: var(--muted); max-width: 44ch; margin: 14px 0 28px; }
.assistant-modes .field:first-of-type { border-top: none; }
.chatmock { background: var(--paper-raised); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-md); padding: 18px 18px 20px; max-width: 440px; margin-inline: auto; display: flex; flex-direction: column; gap: 12px; }
.chatmock-head { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding-bottom: 12px; margin-bottom: 2px; border-bottom: 1px dashed var(--line-strong); }
.chat-msg { max-width: 84%; padding: 10px 13px; border-radius: 10px; font-size: 13.5px; line-height: 1.45; }
.chat-msg.user { align-self: flex-end; background: var(--product-accent-wash); color: var(--ink); border-bottom-right-radius: 3px; }
.chat-msg.bot { align-self: flex-start; background: var(--paper-sunken); border: 1px solid var(--line); border-bottom-left-radius: 3px; color: var(--ink-soft); }
.chat-confirm { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--product-accent-deep); border: 1px solid var(--product-accent); border-radius: 4px; padding: 7px 10px; width: fit-content; }

/* Trust / security panel */
.trust-panel { background: var(--ink); color: #fff; border-radius: 10px; padding: clamp(32px, 5vw, 52px); display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .trust-panel { grid-template-columns: 1fr; } }
.trust-panel h2 { color: #fff; font-size: clamp(24px, 3vw, 32px); }
.trust-panel p.lede2 { color: rgba(255,255,255,0.72); margin-top: 12px; max-width: 40ch; }
.trust-panel .checklist li { border-bottom: 1px solid rgba(255,255,255,0.14); padding-bottom: 16px; color: rgba(255,255,255,0.88); }
.trust-panel .checklist li:last-child { border-bottom: none; padding-bottom: 0; }

/* Comparison table */
.compare-table { width: 100%; border-collapse: collapse; }
.compare-table thead th { text-align: left; font-family: var(--mono); font-size: 11px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); padding: 0 16px 12px; border-bottom: 1px solid var(--line-strong); }
.compare-table tbody td { padding: 16px; font-size: 14.5px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table td.row-label { font-family: var(--mono); font-size: 12px; color: var(--muted); white-space: nowrap; padding-left: 0; }
.compare-table td.legacy { color: var(--muted); }
.compare-table td.legacy::before { content: '\00d7 '; }
.compare-table td.now { color: var(--ink); font-weight: 600; }
.compare-table td.now::before { content: '\2713 '; color: var(--product-accent-deep); }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--paper-raised); padding: 4px 8px; }

/* Demo request form */
.contact-wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; }
@media (max-width: 860px) { .contact-wrap { grid-template-columns: 1fr; } }
.contact-copy h2 { font-size: clamp(26px, 3.2vw, 34px); }
.contact-copy p { color: var(--muted); margin-top: 14px; max-width: 42ch; }
.direct-line { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 13px; color: var(--muted); }
.direct-line a { color: var(--accent-deep); }
.direct-line a:hover { text-decoration: underline; }
form.demo-form { background: var(--paper-raised); border: 1px solid var(--line); border-radius: 8px; padding: clamp(22px, 3vw, 32px); box-shadow: var(--shadow-sm); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }
.field-group { margin-bottom: 16px; }
.field-group label { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.field-group input, .field-group textarea { width: 100%; font-family: var(--sans); font-size: 14.5px; color: var(--ink); background: var(--paper); border: 1px solid var(--line-strong); border-radius: 6px; padding: 11px 12px; }
.field-group textarea { resize: vertical; min-height: 88px; }
.field-group input::placeholder, .field-group textarea::placeholder { color: var(--muted); opacity: 0.8; }
.form-status { margin-top: 14px; font-family: var(--mono); font-size: 12.5px; color: var(--accent-deep); min-height: 16px; }
