/* =============================================================
   Dokia · Design System (hand-written port of globals.css + tailwind tokens)
   Two neutrals + one signal blue. The blue appears once per screen,
   never as a section background.
     Ink #121215 · Signal #054FFE · Azure #3E6BFF · Blue-tint #D7E0FF
     Paper #EDEDEA · White #FAFAF8 · Slate #84847E
   ============================================================= */
:root {
  --ink: 18 18 21;
  --signal: 5 79 254;
  --azure: 62 107 255;
  --blue-tint: 215 224 255;
  --paper: 237 237 234;
  --white: 250 250 248;
  --slate: 132 132 126;
  --muted: 98 98 92; /* darker than slate for WCAG AA on paper */

  --max-content: 1200px;
  /* Section rhythm. Fixed 7rem block padding cost ~1.5 phone screens of empty
     paper across the 7 sections; this scales it down on narrow viewports and
     lands back on the original 7rem from ~1000px up. */
  --space-section: clamp(3.5rem, 2rem + 6vw, 7rem);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-float: 0 40px 120px -24px rgb(18 18 21 / 0.45);
  --shadow-card: 0 1px 0 0 rgb(18 18 21 / 0.04), 0 12px 32px -16px rgb(18 18 21 / 0.18);

  /* fluid type scale (from tailwind.config.ts) */
  --fs-display: clamp(3rem, 1rem + 9vw, 10rem);
  --fs-slogan: clamp(2.5rem, 0.8rem + 6.6vw, 7.5rem);
  --fs-stat: clamp(2.5rem, 1.6rem + 2.6vw, 3.75rem);
  --fs-hero: clamp(2.25rem, 1.4rem + 3.4vw, 4.25rem);
  --fs-h2: clamp(2rem, 1.3rem + 3.2vw, 3.5rem);
  --fs-h3: clamp(1.4rem, 1.1rem + 1.4vw, 2rem);
  --fs-lead: clamp(1.05rem, 0.95rem + 0.6vw, 1.375rem);
}

/* ---- self-hosted fonts ---- */
@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap; src: url("/assets/fonts/inter-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/inter-600.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-style: normal; font-display: swap; src: url("/assets/fonts/inter-700.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono"; font-weight: 100 900; font-style: normal; font-display: swap; src: url("/assets/fonts/GeistMonoVF.woff") format("woff"); }

/* ---- reset / base ---- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: rgb(var(--paper));
  color: rgb(var(--ink));
  font-family: "Helvetica Neue", "Inter", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: none; box-shadow: 0 0 0 2px rgb(var(--paper)), 0 0 0 4px rgb(var(--signal)); border-radius: 4px; }
::selection { background: rgb(var(--signal)); color: rgb(var(--white)); }
.font-mono { font-family: "Geist Mono", ui-monospace, monospace; }

/* ---- layout utilities ---- */
.container { margin-inline: auto; width: 100%; max-width: var(--max-content); padding-inline: 1.25rem; }
@media (min-width: 640px) { .container { padding-inline: 2rem; } }
@media (min-width: 1024px) { .container { padding-inline: 2.5rem; } }

.text-balance { text-wrap: balance; }
.text-pretty { text-wrap: pretty; }

/* text-color utilities (used inline for accents) */
.text-signal { color: rgb(var(--signal)); }
.text-ink { color: rgb(var(--ink)); }
.text-muted { color: rgb(var(--muted)); }
.text-white { color: rgb(var(--white)); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.75rem; font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.1em; color: rgb(var(--muted));
}
.eyebrow::before { content: ""; height: 0.375rem; width: 0.375rem; border-radius: 9999px; background: rgb(var(--signal)); }

.bg-grid {
  background-image:
    linear-gradient(to right, rgb(var(--ink) / 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(var(--ink) / 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
}
.glow-signal { background: radial-gradient(closest-side, rgb(var(--azure) / 0.35), rgb(var(--azure) / 0) 70%); }

.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 link (a11y) */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; }
.skip-link:focus {
  left: 1rem; top: 1rem;
  background: rgb(var(--ink)); color: rgb(var(--paper));
  padding: 0.5rem 1rem; border-radius: 0.5rem;
}

/* reveal-on-scroll (replaces Framer Motion <Reveal> + per-section gsap.from).
   Per-element distance/scale/delay set inline via --reveal-y / --reveal-scale
   / transition-delay so each section matches the original animation values. */
.reveal {
  opacity: 0;
  transform: translate3d(var(--reveal-x, 0), var(--reveal-y, 20px), 0) scale(var(--reveal-scale, 1));
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* Directional entry for stacked card lists. On one column a pure fade-up reads
   as a single undifferentiated block; alternating the side gives the scroll a
   rhythm. Desktop keeps the plain fade-up, where the multi-column grid already
   provides that separation. --reveal-y is trimmed so the two axes don't add up
   into an oversized travel. */
@media (pointer: coarse), (max-width: 1023px) {
  .roles__card.reveal,
  .pricing__card.reveal,
  .features__tile.reveal { --reveal-y: 18px; }
  .roles__card.reveal:nth-child(odd),
  .pricing__card.reveal:nth-child(odd),
  .features__tile.reveal:nth-child(odd) { --reveal-x: -22px; }
  .roles__card.reveal:nth-child(even),
  .pricing__card.reveal:nth-child(even),
  .features__tile.reveal:nth-child(even) { --reveal-x: 22px; }
}

/* ---- keyframes (from tailwind.config.ts) ---- */
@keyframes fade-up { 0% { opacity: 0; transform: translateY(16px); } 100% { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes scan { 0% { transform: translateY(-30%); opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { transform: translateY(440%); opacity: 0; } }
@keyframes pop-in { 0%, 30% { opacity: 0; transform: translateY(6px) scale(0.9); } 45%, 100% { opacity: 1; transform: none; } }
.animate-float { animation: float 6s ease-in-out infinite; }
.animate-scan { animation: scan 3s cubic-bezier(0.4, 0, 0.2, 1) infinite; }
.animate-pop-in { animation: pop-in 3s ease-in-out infinite; }

/* ---- reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
    /* Scroll-driven animations ignore animation-duration (theirs is `auto`),
       so the rules above do NOT neutralize them. Detaching the timeline does. */
    animation-timeline: none !important;
  }
  .reveal { opacity: 1; transform: none; }
  /* Land the doc-stage on its finished state — filled fields and the stamp —
     rather than mid-story. The source card is an in-progress prop, so it stays
     out; showing it alongside the stamp would read as two states at once.
     Cancel the sequence outright instead of relying on the 0.01ms durations
     above to settle on their end keyframe: measured, they do not. */
  .doc-stage__source,
  .doc-stage__scan,
  .doc-stage__field-filled,
  .doc-stage__stamp,
  .doc-stage__chip { animation: none !important; }
  .doc-stage__source { opacity: 0 !important; }
  .doc-stage__field-filled.is-hidden,
  .doc-stage__stamp.is-hidden { opacity: 1 !important; }
}

/* =============================================================
   Section & component styles are appended below by section tasks.
   ============================================================= */

/* ---- Button (port of Button.tsx) ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  border-radius: 9999px; font-weight: 500; letter-spacing: -0.01em;
  transition: opacity 0.2s, background-color 0.2s, color 0.2s; white-space: nowrap;
}
.btn--md { min-height: 44px; padding-inline: 1.25rem; font-size: 0.875rem; }
.btn--lg { min-height: 52px; padding-inline: 1.75rem; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--primary { background: rgb(var(--signal)); color: rgb(var(--white)); }
.btn--primary:hover { opacity: 0.9; }
.btn--secondary { background: rgb(var(--ink)); color: rgb(var(--paper)); }
.btn--secondary:hover { opacity: 0.9; }
.btn--ghost { background: transparent; color: rgb(var(--ink)); box-shadow: inset 0 0 0 1px rgb(var(--ink) / 0.15); }
.btn--ghost:hover { background: rgb(var(--ink) / 0.05); }

/* ---- Logo ---- */
.logo { display: inline-flex; align-items: center; gap: 0.5rem; }
.logo__icon { height: 1.75rem; width: 1.75rem; }
.logo__word { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; color: rgb(var(--ink)); }
.logo__dot { color: rgb(var(--signal)); }

/* ---- Navbar (port of Navbar.tsx) ---- */
.navbar { position: fixed; inset-inline: 0; top: 0; z-index: 50; border-bottom: 1px solid transparent; transition: background-color 0.3s, border-color 0.3s; }
.navbar.is-scrolled { border-bottom-color: rgb(var(--ink) / 0.1); background: rgb(var(--paper) / 0.8); backdrop-filter: blur(12px); }
.navbar__inner { display: flex; height: 4rem; align-items: center; justify-content: space-between; gap: 1rem; }
.navbar__brand { flex-shrink: 0; display: inline-flex; align-items: center; min-height: 44px; }
.navbar__links { display: none; align-items: center; gap: 0.25rem; list-style: none; padding: 0; }
.navbar__links a { display: inline-flex; min-height: 44px; align-items: center; border-radius: 9999px; padding-inline: 1rem; font-size: 0.875rem; color: rgb(var(--muted)); transition: color 0.2s; }
.navbar__links a:hover { color: rgb(var(--ink)); }
.navbar__cta { display: none; align-items: center; gap: 0.75rem; }
.navbar__toggle { display: inline-flex; height: 2.75rem; width: 2.75rem; align-items: center; justify-content: center; border-radius: 9999px; color: rgb(var(--ink)); transition: background-color 0.2s; }
.navbar__toggle:hover { background: rgb(var(--ink) / 0.05); }
.hamburger { position: relative; display: block; height: 1rem; width: 1.25rem; }
.hamburger span { position: absolute; left: 0; height: 2px; width: 100%; background: currentColor; transition: transform 0.3s, opacity 0.2s; }
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.hamburger span:nth-child(3) { bottom: 0; }
[data-nav-toggle][aria-expanded="true"] .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
[data-nav-toggle][aria-expanded="true"] .hamburger span:nth-child(2) { opacity: 0; }
[data-nav-toggle][aria-expanded="true"] .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.navbar__mobile { display: none; }
.navbar__mobile.is-open { display: block; }
.navbar__mobile-inner { display: flex; flex-direction: column; gap: 0.25rem; border-bottom: 1px solid rgb(var(--ink) / 0.1); background: rgb(var(--paper)); padding-bottom: 1.5rem; padding-top: 0.5rem; }
.navbar__mobile-link { display: flex; min-height: 48px; align-items: center; border-radius: 0.5rem; padding-inline: 0.75rem; font-size: 1rem; color: rgb(var(--ink)); transition: background-color 0.2s; }
.navbar__mobile-link:hover { background: rgb(var(--ink) / 0.05); }
.navbar__mobile-cta { margin-top: 0.75rem; display: flex; flex-direction: column; gap: 0.75rem; }
@media (min-width: 1024px) {
  .navbar__links { display: flex; }
  .navbar__cta { display: flex; }
  .navbar__toggle { display: none; }
  .navbar__mobile { display: none !important; }
}

/* ---- shared helpers ---- */
.is-hidden { opacity: 0; }
.grip { display: inline-grid; grid-template-columns: repeat(2, 1fr); gap: 2px; }
.grip i { display: block; height: 2.5px; width: 2.5px; border-radius: 9999px; background: currentColor; opacity: 0.5; }

/* ---- DocumentStage (port of DocumentStage.tsx) ---- */
.doc-stage { position: relative; margin-inline: auto; width: 100%; max-width: 760px; }
.doc-stage__glow { position: absolute; inset: -4rem; z-index: -1; filter: blur(48px); }
.doc-stage__paper { position: relative; overflow: hidden; border-radius: 1.75rem; border: 1px solid rgb(var(--ink) / 0.1); background: rgb(var(--white)); box-shadow: var(--shadow-float); }
.doc-stage__bar { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgb(var(--ink) / 0.1); padding: 1rem 1.5rem; }
.doc-stage__dots { display: flex; align-items: center; gap: 0.625rem; }
.doc-stage__dots span { height: 0.75rem; width: 0.75rem; border-radius: 9999px; background: rgb(var(--ink) / 0.15); }
.doc-stage__file { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: rgb(var(--muted)); }
/* Below 640px the 150px side rail left only ~198px for the document body and
   clipped the field chips, so the rail becomes a horizontal scroller under it.
   The side-by-side "template + variables" layout returns at 640px. */
.doc-stage__grid { display: grid; grid-template-columns: 1fr; }
.doc-stage__body { position: relative; display: flex; flex-direction: column; gap: 1rem; padding: 1.75rem; }
.doc-stage__title-line { height: 1rem; width: 40%; border-radius: 9999px; background: rgb(var(--ink) / 0.2); }
.doc-stage__line { height: 0.75rem; border-radius: 9999px; background: rgb(var(--ink) / 0.1); }
.doc-stage__field { position: relative; display: inline-flex; width: fit-content; align-items: center; border-radius: 0.5rem; background: rgb(var(--signal) / 0.06); padding: 0.375rem 0.75rem; box-shadow: inset 0 0 0 1px rgb(var(--signal) / 0.4); }
.doc-stage__field-label { font-size: 0.8125rem; font-weight: 500; color: rgb(var(--signal)); }
.doc-stage__field-filled { position: absolute; inset-block: 0; left: 0; display: flex; align-items: center; white-space: nowrap; border-radius: 0.5rem; background: rgb(var(--white)); padding-inline: 0.75rem; font-size: 0.8125rem; font-weight: 500; color: rgb(var(--ink)); box-shadow: inset 0 0 0 1px rgb(var(--ink) / 0.1); }
.doc-stage__chips { width: auto; flex-shrink: 0; border-top: 1px solid rgb(var(--ink) / 0.1); background: rgb(var(--paper) / 0.6); padding: 1rem; }
.doc-stage__chips-title { margin: 0 0 0.75rem; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: rgb(var(--muted)); }
.doc-stage__chips-list { display: flex; flex-direction: row; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: 0; }
.doc-stage__chip { display: flex; align-items: center; gap: 0.5rem; border-radius: 0.5rem; border: 1px solid rgb(var(--signal) / 0.3); background: rgb(var(--blue-tint) / 0.5); padding: 0.5rem 0.625rem; font-size: 0.75rem; color: rgb(var(--signal)); }
.doc-stage__stamp { position: absolute; bottom: 1.5rem; right: 1.5rem; display: flex; align-items: center; gap: 0.5rem; border-radius: 9999px; background: rgb(var(--ink)); padding: 0.5rem 1rem; font-size: 13px; font-weight: 500; color: rgb(var(--white)); box-shadow: var(--shadow-card); }
.doc-stage__source { position: absolute; left: -1rem; top: -1.75rem; width: 44%; max-width: 200px; transform: rotate(-6deg); overflow: hidden; border-radius: 1rem; border: 1px solid rgb(var(--ink) / 0.1); background: rgb(var(--white)); padding: 0.875rem; box-shadow: var(--shadow-float); }
/* 0.75rem to match .doc-stage__file: the mobile story makes this card visible,
   so its labels are now held to the same 12px floor as the rest of the site. */
.doc-stage__source-head { display: flex; align-items: center; justify-content: space-between; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; }
.doc-stage__source-head span:first-child { font-weight: 600; color: rgb(var(--ink) / 0.5); }
.doc-stage__source-head span:last-child { color: rgb(var(--ink) / 0.3); }
.doc-stage__source-row { margin-top: 0.625rem; display: flex; gap: 0.625rem; }
.doc-stage__source-photo { height: 3rem; width: 2.25rem; flex-shrink: 0; border-radius: 0.375rem; background: rgb(var(--ink) / 0.1); box-shadow: inset 0 0 0 1px rgb(var(--ink) / 0.1); }
.doc-stage__source-lines { flex: 1; display: flex; flex-direction: column; gap: 0.375rem; padding-top: 0.125rem; }
.doc-stage__source-lines div { height: 0.5rem; border-radius: 9999px; background: rgb(var(--ink) / 0.12); }
.doc-stage__scan { pointer-events: none; position: absolute; inset-inline: 0; top: 0; height: 2rem; background: linear-gradient(to bottom, rgb(var(--signal) / 0.3), transparent); }
@media (min-width: 640px) {
  .doc-stage__grid { grid-template-columns: 1fr auto; }
  .doc-stage__body { gap: 1.25rem; padding: 2.5rem; }
  .doc-stage__field-label, .doc-stage__field-filled { font-size: 0.9375rem; }
  .doc-stage__chips { width: 200px; border-top: 0; border-left: 1px solid rgb(var(--ink) / 0.1); padding: 1.25rem; }
  .doc-stage__chips-list { flex-direction: column; flex-wrap: nowrap; gap: 0.625rem; }
  .doc-stage__chip { font-size: 13px; }
  .doc-stage__source { left: -2rem; }
}

/* ---- FeatureBadge (port of FeatureBadge.tsx) ---- */
.feature-badge { pointer-events: none; display: none; width: max-content; align-items: center; gap: 0.5rem; border-radius: 0.875rem; border: 1px solid rgb(var(--ink) / 0.1); background: rgb(var(--white) / 0.8); padding: 0.4rem 0.7rem; box-shadow: var(--shadow-card); backdrop-filter: blur(12px); position: absolute; z-index: 30; }
.feature-badge__icon { display: flex; height: 1.625rem; width: 1.625rem; flex-shrink: 0; align-items: center; justify-content: center; border-radius: 0.5rem; background: rgb(var(--blue-tint) / 0.7); color: rgb(var(--signal)); }
.feature-badge__icon svg { width: 14px; height: 14px; }
.feature-badge__label { white-space: nowrap; font-size: 12px; font-weight: 500; letter-spacing: -0.01em; color: rgb(var(--ink)); }
.feature-badge__connector { position: absolute; top: 50%; transform: translateY(-50%); display: flex; align-items: center; }
.feature-badge__connector--right { left: 100%; flex-direction: row; }
.feature-badge__connector--left { right: 100%; flex-direction: row-reverse; }
.feature-badge__line { display: block; height: 1px; width: 2.25rem; border-top: 1px dashed rgb(var(--ink) / 0.3); }
.feature-badge__node { display: block; height: 0.375rem; width: 0.375rem; border-radius: 9999px; background: rgb(var(--signal)); }
.feature-badge--tl { left: -26%; top: 10%; }
.feature-badge--tr { right: -24%; top: 20%; }
.feature-badge--bl { bottom: 24%; left: -28%; }
.feature-badge--br { bottom: 12%; right: -26%; }
@media (min-width: 1024px) {
  .feature-badge { display: inline-flex; animation: float 6s ease-in-out infinite; }
  .feature-badge__line { width: 3rem; }
}

/* ---- Hero ---- */
.hero { position: relative; background: rgb(var(--paper)); }
.hero__cinematic { display: none; }
.hero--enhanced .hero__cinematic { display: block; height: 540vh; }
.hero--enhanced .hero__stacked { display: none; }
.hero__pin { position: sticky; top: 0; display: flex; height: 100vh; align-items: center; justify-content: center; overflow: hidden; }
.hero__depth { position: absolute; inset: 0; z-index: 0; }
.hero__depth-dots { position: absolute; inset: 0; opacity: 0.6; background-image: radial-gradient(rgb(var(--ink) / 0.07) 1px, transparent 1px); background-size: 24px 24px; -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black, transparent 75%); }
.hero__glow { position: absolute; filter: blur(48px); }
.hero__glow--1 { left: 16%; top: 22%; height: 18rem; width: 18rem; }
.hero__glow--2 { bottom: 14%; right: 14%; height: 20rem; width: 20rem; opacity: 0.7; }
.hero__logo { position: absolute; z-index: 40; display: flex; align-items: center; gap: 1rem; }
.hero__logo-icon { height: 6rem; width: 6rem; }
.hero__logo-word { font-size: clamp(3.75rem, 2rem + 6vw, 8rem); font-weight: 600; letter-spacing: -0.03em; color: rgb(var(--ink)); }
.hero__slogan { position: absolute; z-index: 30; margin-inline: auto; max-width: 72rem; padding-inline: 1.25rem; text-align: center; }
.hero__slogan-h1 { margin: 0; font-size: var(--fs-slogan); font-weight: 600; letter-spacing: -0.035em; line-height: 1.02; text-wrap: balance; color: rgb(var(--ink)); }
.hero__slogan-1, .hero__slogan-2 { display: block; }
.hero__slogan-2 { color: rgb(var(--signal)); }
.hero__word { pointer-events: none; position: absolute; z-index: 10; max-width: 42%; }
.hero__word--left { left: 4%; text-align: left; }
.hero__word--right { right: 4%; text-align: right; }
.hero__word-text { display: block; font-size: clamp(2.25rem, 0.9rem + 6vw, 7rem); font-weight: 600; letter-spacing: -0.04em; line-height: 0.95; color: rgb(var(--ink)); }
.hero__word-caption { margin: 0.5rem 0 0; max-width: 18rem; font-size: 0.8125rem; color: rgb(var(--muted)); }
.hero__word--right .hero__word-caption { margin-left: auto; }
.hero__doc { position: relative; z-index: 20; width: 100%; max-width: 560px; padding-inline: 1rem; }
.hero__hint { position: absolute; inset-inline: 0; bottom: 2rem; z-index: 40; display: flex; justify-content: center; }
.hero__hint-inner { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: rgb(var(--muted)); }
.hero__hint-glyph { display: flex; height: 1.5rem; width: 1rem; align-items: flex-start; justify-content: center; border-radius: 9999px; border: 1px solid rgb(var(--ink) / 0.25); padding: 0.25rem; }
.hero__hint-glyph span { height: 0.375rem; width: 3px; border-radius: 9999px; background: rgb(var(--ink) / 0.4); animation: float 6s ease-in-out infinite; }
.hero__stacked { display: block; overflow: hidden; }
/* Content-sized, not 88svh: the old min-height parked a lone <h1> in a screen
   of empty paper. padding-top clears the 4rem fixed navbar. */
.hero__stacked-head { display: flex; flex-direction: column; align-items: center; gap: 1.25rem; padding-block: 7rem 3rem; text-align: center; }
.hero__stacked-title { margin: 0; font-size: var(--fs-hero); font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; text-wrap: balance; }
.hero__stacked-sub { margin: 0; max-width: 34rem; font-size: var(--fs-lead); color: rgb(var(--muted)); }
.hero__stacked-cta { width: 100%; max-width: 22rem; margin-top: 0.25rem; }
.hero__stacked-body { padding-bottom: var(--space-section); }
.hero__stacked-doc { display: flex; justify-content: center; }
.hero__steps { margin: 3rem auto 0; max-width: 36rem; list-style: none; padding: 0; display: flex; flex-direction: column; gap: 2rem; }
.hero__step { display: flex; gap: 1rem; }
.hero__step-num { font-size: 0.875rem; color: rgb(var(--signal)); }
.hero__step-title { margin: 0; font-size: var(--fs-h3); font-weight: 600; color: rgb(var(--ink)); }
.hero__step-sub { font-weight: 400; color: rgb(var(--muted)); }
.hero__step-caption { margin: 0.25rem 0 0; color: rgb(var(--muted)); }
@media (min-width: 640px) {
  .hero__logo { gap: 1.5rem; }
  .hero__logo-icon { height: 10rem; width: 10rem; }
  .hero__word--left { left: 6%; }
  .hero__word--right { right: 6%; }
  .hero__word-caption { font-size: 1rem; }
  .hero__doc { max-width: 680px; }
}
@media (min-width: 1024px) {
  .hero__logo-icon { height: 12rem; width: 12rem; }
  .hero__doc { max-width: 760px; }
}

/* ---- bgword parallax without gsap --------------------------------------
   The giant background words show from 768px up and used to drift via a GSAP
   ScrollTrigger. gsap is no longer downloaded below 1024px (or on any coarse
   pointer), so that band would go static; a native scroll-driven animation
   covers it and runs on the compositor instead of the main thread.

   The @supports guard is load-bearing, not decorative: a browser without
   animation-timeline drops that declaration but still honours `animation`,
   which would run the keyframes once on the document timeline — with no
   duration set, snapping straight to the end state. */
@keyframes bgword-drift { from { transform: translate3d(0, 7%, 0); } to { transform: translate3d(0, -7%, 0); } }

@supports (animation-timeline: view()) {
  @media (pointer: coarse), (max-width: 1023px) {
    [data-bgword] {
      animation: bgword-drift linear both;
      animation-timeline: view();
      animation-range: entry 0% exit 100%;
    }
  }
}

/* ---- doc-stage story (mobile / no-cinematic) ----------------------------
   On desktop the GSAP timeline walks the document through Extrae -> Prepara ->
   Llena -> Valida. Below 1024px (and on any coarse pointer) that timeline never
   runs and gsap is not even downloaded, so the same beats are played in CSS off
   the .is-visible class the reveal observer already sets. The markup needs no
   changes: source / filled / stamp are in the DOM at opacity 0 waiting for it.
   Scoped to :not(.hero--enhanced) so it can never double up with the timeline.
   Compositor-only properties (opacity, transform) — no layout work. */
@keyframes doc-source-in  { from { opacity: 0; transform: rotate(-6deg) translate3d(-14px, -10px, 0) scale(.94); } to { opacity: 1; transform: rotate(-6deg) translate3d(0, 0, 0) scale(1); } }
@keyframes doc-source-out { from { opacity: 1; } to { opacity: 0; transform: rotate(-6deg) translate3d(-10px, -14px, 0) scale(.96); } }
@keyframes doc-chip-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgb(var(--signal) / 0); } 40% { box-shadow: 0 0 0 3px rgb(var(--signal) / 0.25); } }
@keyframes doc-fill-in    { from { opacity: 0; transform: translate3d(-8px, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes doc-stamp-in   { 0% { opacity: 0; transform: scale(.7); } 70% { opacity: 1; transform: scale(1.06); } 100% { opacity: 1; transform: scale(1); } }

@media (pointer: coarse), (max-width: 1023px) {
  .hero:not(.hero--enhanced) .hero__stacked-doc.is-visible .doc-stage__source {
    animation: doc-source-in .7s var(--ease-out-expo) .25s both,
               doc-source-out .5s ease-in 4.1s both;
  }
  .hero:not(.hero--enhanced) .hero__stacked-doc.is-visible .doc-stage__chip {
    animation: doc-chip-pulse 1s ease-out both;
  }
  .hero:not(.hero--enhanced) .hero__stacked-doc.is-visible .doc-stage__chip:nth-child(1) { animation-delay: 1.5s; }
  .hero:not(.hero--enhanced) .hero__stacked-doc.is-visible .doc-stage__chip:nth-child(2) { animation-delay: 1.7s; }
  .hero:not(.hero--enhanced) .hero__stacked-doc.is-visible .doc-stage__chip:nth-child(3) { animation-delay: 1.9s; }
  .hero:not(.hero--enhanced) .hero__stacked-doc.is-visible .doc-stage__chip:nth-child(4) { animation-delay: 2.1s; }
  .hero:not(.hero--enhanced) .hero__stacked-doc.is-visible .doc-stage__field-filled {
    animation: doc-fill-in .5s var(--ease-out-expo) both;
  }
  .hero:not(.hero--enhanced) .hero__stacked-doc.is-visible .doc-stage__field:nth-of-type(1) .doc-stage__field-filled { animation-delay: 2.5s; }
  .hero:not(.hero--enhanced) .hero__stacked-doc.is-visible .doc-stage__field:nth-of-type(2) .doc-stage__field-filled { animation-delay: 2.8s; }
  .hero:not(.hero--enhanced) .hero__stacked-doc.is-visible .doc-stage__field:nth-of-type(3) .doc-stage__field-filled { animation-delay: 3.1s; }
  .hero:not(.hero--enhanced) .hero__stacked-doc.is-visible .doc-stage__stamp {
    animation: doc-stamp-in .55s var(--ease-out-expo) 4.4s both;
  }
  /* The source card is 44% of a 350px stage; nudge it inside so it reads as a
     document laid on the template instead of hanging off the edge. */
  .doc-stage__source { left: 0.5rem; top: -1.25rem; width: 52%; }
  /* The stamp sits above the chips rail, which is now a row under the paper. */
  .doc-stage__stamp { bottom: auto; top: 4.25rem; right: 1rem; }
}

/* ---- shared check icon ---- */
.check-icon { margin-top: 0.125rem; flex-shrink: 0; color: rgb(var(--signal)); }
.check-icon__bg { fill: rgb(var(--signal) / 0.1); }

/* ---- Problem (port of Problem.tsx) ---- */
.problem { position: relative; overflow: hidden; border-block: 1px solid rgb(var(--ink) / 0.1); background: rgb(var(--paper)); padding-block: var(--space-section); }
.problem__inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.problem__title { margin: 1.5rem 0 0; max-width: 48rem; font-size: var(--fs-h2); font-weight: 600; color: rgb(var(--ink)); }
.problem__stats { margin: 3.5rem 0 0; width: 100%; max-width: 56rem; display: grid; overflow: hidden; border-radius: 1.75rem; border: 1px solid rgb(var(--ink) / 0.1); background: rgb(var(--white)); }
.problem__stat { padding: 3rem 2rem; border-bottom: 1px solid rgb(var(--ink) / 0.1); }
.problem__stat:last-child { border-bottom: 0; }
.problem__stat-value { display: flex; align-items: baseline; justify-content: center; gap: 0.125rem; font-size: var(--fs-stat); font-weight: 600; color: rgb(var(--ink)); }
.problem__stat-label { margin: 1rem auto 0; max-width: 24ch; font-size: 0.875rem; color: rgb(var(--muted)); }
.problem__closing { margin: 3rem 0 0; max-width: 42rem; font-size: var(--fs-h3); font-weight: 500; }
@media (min-width: 640px) {
  .problem { padding-block: 9rem; }
  .problem__stats { margin-top: 4rem; grid-template-columns: repeat(3, 1fr); }
  .problem__stat { border-bottom: 0; border-right: 1px solid rgb(var(--ink) / 0.1); padding: 3rem 2.5rem; }
  .problem__stat:last-child { border-right: 0; }
}

/* ---- Roles (port of Roles.tsx) ---- */
.roles { position: relative; overflow: hidden; background: rgb(var(--paper)); padding-block: var(--space-section); }
.roles__bgword { pointer-events: none; position: absolute; left: -1rem; bottom: 1.5rem; display: none; user-select: none; font-size: clamp(7rem, 20vw, 16rem); font-weight: 600; line-height: 1; letter-spacing: -0.05em; color: rgb(var(--ink) / 0.04); }
.roles__grid { position: relative; display: grid; gap: 3rem; }
.roles__title { margin: 1.5rem 0 0; font-size: var(--fs-h2); font-weight: 600; color: rgb(var(--ink)); }
.roles__intro { margin: 1.25rem 0 0; max-width: 28rem; font-size: var(--fs-lead); color: rgb(var(--muted)); }
.roles__cards { display: flex; flex-direction: column; gap: 1.25rem; }
.roles__card { display: flex; gap: 1.25rem; border-radius: 1.75rem; border: 1px solid rgb(var(--ink) / 0.1); background: rgb(var(--white)); padding: 1.5rem; box-shadow: var(--shadow-card); }
.roles__card-icon { display: flex; height: 3rem; width: 3rem; flex-shrink: 0; align-items: center; justify-content: center; border-radius: 1rem; background: rgb(var(--blue-tint) / 0.7); color: rgb(var(--signal)); }
.roles__card-body { min-width: 0; }
.roles__card-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 0.75rem; }
.roles__card-name { margin: 0; font-size: var(--fs-h3); font-weight: 600; color: rgb(var(--ink)); }
.roles__card-index { margin-left: auto; font-size: 0.75rem; color: rgb(var(--ink) / 0.3); }
.roles__caps { margin: 1rem 0 0; display: grid; gap: 0.5rem; list-style: none; padding: 0; }
.roles__cap { display: flex; gap: 0.625rem; font-size: 0.875rem; color: rgb(var(--ink) / 0.8); }
@media (min-width: 640px) {
  .roles { padding-block: 10rem; }
  .roles__card { gap: 1.5rem; padding: 2rem; }
  .roles__caps { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) { .roles__bgword { display: block; } }
@media (min-width: 1024px) {
  .roles__grid { grid-template-columns: 0.85fr 1.15fr; gap: 4rem; }
  .roles__head { position: sticky; top: 7rem; align-self: start; }
}

/* ---- Features (port of Features.tsx + ExtractionDiagram.tsx) ---- */
.features { position: relative; overflow: hidden; background: rgb(var(--paper)); padding-block: var(--space-section); }
.features__head { display: flex; flex-direction: column; gap: 1.5rem; border-bottom: 1px solid rgb(var(--ink) / 0.1); padding-bottom: 3rem; }
.features__title { margin: 1.5rem 0 0; max-width: 42rem; font-size: var(--fs-h2); font-weight: 600; color: rgb(var(--ink)); }
.features__intro { max-width: 24rem; font-size: var(--fs-lead); color: rgb(var(--muted)); }
.features__grid { margin-top: 3rem; display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
.features__tile { display: flex; flex-direction: column; border-radius: 1.75rem; border: 1px solid rgb(var(--ink) / 0.1); background: rgb(var(--white)); padding: 1.75rem; box-shadow: var(--shadow-card); transition: transform 0.3s; will-change: transform; }
.features__tile:hover { transform: translateY(-4px); }
.features__icon { display: flex; height: 3rem; width: 3rem; align-items: center; justify-content: center; border-radius: 1rem; background: rgb(var(--blue-tint) / 0.7); color: rgb(var(--signal)); transition: background-color 0.3s, color 0.3s; }
.features__icon--lg { height: 3.5rem; width: 3.5rem; }
.features__tile:hover .features__icon { background: rgb(var(--signal)); color: rgb(var(--white)); }
.features__tile-title { margin: 1.5rem 0 0; font-size: var(--fs-h3); font-weight: 600; color: rgb(var(--ink)); }
.features__tile-title--lg { font-size: var(--fs-h2); }
.features__tile-desc { margin: 0.5rem 0 0; color: rgb(var(--muted)); }
.features__tile-desc--lg { max-width: 28rem; font-size: var(--fs-lead); }
.features__tile--featured .extraction { margin-block: 2rem; display: none; }
@media (min-width: 640px) {
  .features { padding-block: 9rem; }
  .features__tile { padding: 2rem; }
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .features__tile--featured { grid-column: span 2; }
  .features__tile--featured .extraction { display: flex; }
}
@media (min-width: 1024px) {
  .features__head { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .features__intro { text-align: right; }
  .features__grid { grid-template-columns: repeat(3, 1fr); }
  .features__tile--featured { grid-row: span 2; justify-content: space-between; }
  .features__tile-text { margin-top: auto; }
}

/* ExtractionDiagram */
.extraction { position: relative; display: flex; align-items: stretch; gap: 1rem; }
.extraction__doc { position: relative; flex: 1; overflow: hidden; border-radius: 1rem; border: 1px solid rgb(var(--ink) / 0.1); background: rgb(var(--white)); padding: 1rem; box-shadow: var(--shadow-card); }
.extraction__bar { display: flex; align-items: center; gap: 0.375rem; border-bottom: 1px solid rgb(var(--ink) / 0.1); padding-bottom: 0.625rem; margin-bottom: 0.75rem; }
.extraction__bar > span:not(.extraction__file) { height: 0.5rem; width: 0.5rem; border-radius: 9999px; background: rgb(var(--ink) / 0.15); }
.extraction__file { margin-left: 0.5rem; font-size: 0.625rem; text-transform: uppercase; letter-spacing: 0.1em; color: rgb(var(--muted)); }
.extraction__lines { display: flex; flex-direction: column; gap: 0.625rem; }
.extraction__line { height: 0.5rem; border-radius: 9999px; background: rgb(var(--ink) / 0.1); }
.extraction__row { display: flex; align-items: center; gap: 0.5rem; border-radius: 0.375rem; background: rgb(var(--signal) / 0.06); padding: 0.375rem 0.5rem; box-shadow: inset 0 0 0 1px rgb(var(--signal) / 0.3); }
.extraction__row .font-mono { font-size: 0.625rem; text-transform: uppercase; letter-spacing: 0.05em; color: rgb(var(--signal) / 0.7); }
.extraction__row-fill { height: 0.375rem; flex: 1; border-radius: 9999px; background: rgb(var(--signal) / 0.2); }
.extraction__scan { pointer-events: none; position: absolute; inset-inline: 0; top: 0; height: 3rem; background: linear-gradient(to bottom, rgb(var(--signal) / 0.3), rgb(var(--signal) / 0.1), transparent); }
.extraction__ia { position: absolute; right: 0.75rem; top: 3rem; display: inline-flex; align-items: center; gap: 0.25rem; border-radius: 9999px; background: rgb(var(--signal)); padding: 0.25rem 0.5rem; font-size: 0.625rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; color: rgb(var(--white)); box-shadow: var(--shadow-card); }
.extraction__vars { display: flex; width: 42%; max-width: 180px; flex-direction: column; justify-content: center; gap: 0.75rem; }
.extraction__var { display: flex; align-items: center; opacity: 0; }
.extraction__connector { height: 1px; width: 1rem; flex-shrink: 0; border-top: 1px dashed rgb(var(--signal) / 0.4); }
.extraction__chip { display: inline-flex; min-width: 0; flex: 1; align-items: center; gap: 0.375rem; border-radius: 0.5rem; border: 1px solid rgb(var(--signal) / 0.3); background: rgb(var(--blue-tint) / 0.5); padding: 0.375rem 0.625rem; font-size: 0.75rem; color: rgb(var(--signal)); }
.extraction__chip-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (min-width: 640px) { .extraction { gap: 1.5rem; } .extraction__connector { width: 1.5rem; } }

/* ensure the hidden attribute always wins over component display rules */
[hidden] { display: none !important; }

/* ---- UseCases: industries (port of UseCasesIndustries) ---- */
.usecases { position: relative; overflow: hidden; background: rgb(var(--paper)); padding-block: var(--space-section); }
.usecases__bgword { pointer-events: none; position: absolute; left: -1rem; top: 1.5rem; display: none; user-select: none; font-size: clamp(7rem, 22vw, 17rem); font-weight: 600; line-height: 1; letter-spacing: -0.05em; color: rgb(var(--ink) / 0.04); }
.usecases__inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.usecases__title { margin: 1.5rem 0 0; max-width: 48rem; text-align: center; font-size: var(--fs-h2); font-weight: 600; color: rgb(var(--ink)); }
.usecases__tabs { margin-top: 3rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
.usecases__tab { min-height: 44px; border-radius: 9999px; border: 1px solid rgb(var(--ink) / 0.15); padding-inline: 1.25rem; font-size: 0.875rem; font-weight: 500; color: rgb(var(--muted)); transition: background-color 0.2s, color 0.2s, border-color 0.2s; }
.usecases__tab:hover { background: rgb(var(--ink) / 0.05); color: rgb(var(--ink)); }
.usecases__tab[aria-selected="true"] { background: rgb(var(--ink)); border-color: rgb(var(--ink)); color: rgb(var(--paper)); }
.usecases__panels { margin-top: 1.5rem; width: 100%; overflow: hidden; border-radius: 1.75rem; border: 1px solid rgb(var(--ink) / 0.1); background: rgb(var(--white)); box-shadow: var(--shadow-card); }
.usecases__panel { display: grid; gap: 2rem; padding: 2rem; text-align: left; }
.usecases__panel-headline { margin: 0; max-width: 36rem; font-size: var(--fs-h3); font-weight: 600; color: rgb(var(--ink)); }
.usecases__panel-desc { margin: 1rem 0 0; max-width: 32rem; font-size: var(--fs-lead); color: rgb(var(--muted)); }
.usecases__panel-docs { display: flex; flex-direction: column; justify-content: center; gap: 0.625rem; }
.usecases__panel-docs-title { margin: 0; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: rgb(var(--muted)); }
.usecases__doc-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: 0; }
.usecases__doc-tags li { border-radius: 0.5rem; border: 1px solid rgb(var(--signal) / 0.3); background: rgb(var(--blue-tint) / 0.4); padding: 0.375rem 0.75rem; font-size: 0.875rem; color: rgb(var(--signal)); }
@media (min-width: 640px) { .usecases { padding-block: 10rem; } .usecases__panel { padding: 3rem; } }
@media (min-width: 768px) { .usecases__bgword { display: block; } }
@media (min-width: 1024px) { .usecases__panel { grid-template-columns: 1.2fr 0.8fr; } .usecases__panel-docs { border-left: 1px solid rgb(var(--ink) / 0.1); padding-left: 2rem; } }

/* ---- UseCases: interactive demo (port of UseCasesDemo) ---- */
.usecases__demo { position: relative; }
.usecases__demo-sub { margin: 1rem 0 0; max-width: 36rem; text-align: center; font-size: var(--fs-lead); color: rgb(var(--muted)); }
.usecases__demo-tabs { margin-top: 2.5rem; display: inline-flex; gap: 0.5rem; border-radius: 9999px; border: 1px solid rgb(var(--ink) / 0.1); background: rgb(var(--white)); padding: 0.25rem; }
.usecases__demo-tab { min-height: 40px; border-radius: 9999px; padding-inline: 1.25rem; font-size: 0.875rem; font-weight: 500; color: rgb(var(--muted)); transition: background-color 0.2s, color 0.2s; }
.usecases__demo-tab:hover { color: rgb(var(--ink)); }
.usecases__demo-tab.is-active { background: rgb(var(--ink)); color: rgb(var(--paper)); }
.usecases__demo-panel { margin-top: 2rem; width: 100%; overflow: hidden; border-radius: 1.75rem; border: 1px solid rgb(var(--ink) / 0.1); background: rgb(var(--white)); box-shadow: var(--shadow-card); }
.demo-fill { display: grid; gap: 1px; background: rgb(var(--ink) / 0.1); }
.demo-fill__rail { background: rgb(var(--white)); padding: 1.75rem; }
.demo-fill__rail-title { margin: 0 0 1rem; font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: rgb(var(--muted)); }
.demo-fill__vars { display: flex; flex-direction: column; gap: 0.75rem; list-style: none; padding: 0; margin: 0; }
.demo-chip { display: flex; cursor: grab; align-items: center; gap: 0.5rem; border-radius: 0.75rem; border: 1px solid rgb(var(--signal) / 0.3); background: rgb(var(--blue-tint) / 0.5); padding: 0.625rem 0.75rem; font-size: 0.875rem; color: rgb(var(--signal)); transition: background-color 0.2s; }
.demo-chip:active { cursor: grabbing; }
.demo-chip.is-done { border-color: rgb(var(--ink) / 0.1); background: rgb(var(--ink) / 0.03); color: rgb(var(--muted) / 0.5); cursor: default; }
.demo-chip__done { margin-left: auto; display: none; color: rgb(var(--signal)); }
.demo-chip.is-done .demo-chip__done { display: inline; }
.demo-fill__reset { margin-top: 1.5rem; font-size: 0.75rem; font-weight: 500; color: rgb(var(--muted)); text-decoration: underline; text-underline-offset: 4px; }
.demo-fill__reset:hover { color: rgb(var(--ink)); }
.demo-fill__doc { background: rgb(var(--white)); padding: 2rem; }
.demo-fill__doc-inner { margin: 0 auto; max-width: 32rem; }
.demo-fill__doc-title { margin: 0; text-align: center; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: rgb(var(--ink) / 0.4); }
.demo-fill__text { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 1rem; font-size: 15px; line-height: 1.75; color: rgb(var(--ink) / 0.8); }
.demo-fill__text p { margin: 0; }
.demo-slot { margin-inline: 0.125rem; display: inline-flex; min-width: 7.5rem; align-items: center; justify-content: center; border-radius: 0.375rem; padding: 0.125rem 0.5rem; vertical-align: middle; font-weight: 500; font-size: 13px; color: rgb(var(--ink) / 0.35); background: rgb(var(--ink) / 0.04); box-shadow: inset 0 0 0 1px rgb(var(--ink) / 0.2); transition: background-color 0.2s, color 0.2s, box-shadow 0.2s; }
.demo-slot.is-over { background: rgb(var(--blue-tint)); color: rgb(var(--signal)); box-shadow: inset 0 0 0 2px rgb(var(--signal)); }
.demo-slot.is-filled { background: rgb(var(--signal) / 0.1); color: rgb(var(--ink)); box-shadow: inset 0 0 0 1px rgb(var(--signal) / 0.4); font-family: "Helvetica Neue", "Inter", Helvetica, Arial, sans-serif; }
.demo-fill__status { margin-top: 2rem; display: flex; align-items: center; justify-content: center; gap: 0.5rem; border-radius: 0.75rem; border: 1px dashed rgb(var(--ink) / 0.15); padding: 0.75rem; font-size: 0.875rem; font-weight: 500; color: rgb(var(--muted) / 0.6); transition: background-color 0.2s, color 0.2s, border-color 0.2s; }
.demo-fill__status.is-done { border-style: solid; border-color: rgb(var(--signal) / 0.4); background: rgb(var(--signal) / 0.06); color: rgb(var(--signal)); }
.demo-extract { display: grid; gap: 1px; background: rgb(var(--ink) / 0.1); }
.demo-extract__id { display: flex; align-items: center; justify-content: center; background: rgb(var(--paper) / 0.6); padding: 2.5rem; }
.demo-extract__card { position: relative; width: 100%; max-width: 24rem; overflow: hidden; border-radius: 1rem; border: 1px solid rgb(var(--ink) / 0.1); background: linear-gradient(135deg, rgb(var(--white)), rgb(var(--blue-tint) / 0.4)); padding: 1.25rem; box-shadow: var(--shadow-float); }
.demo-extract__card-head { display: flex; align-items: center; justify-content: space-between; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: rgb(var(--ink) / 0.5); }
.demo-extract__card-row { margin-top: 1rem; display: flex; gap: 1rem; }
.demo-extract__card-photo { height: 6rem; width: 5rem; flex-shrink: 0; border-radius: 0.375rem; background: rgb(var(--ink) / 0.1); box-shadow: inset 0 0 0 1px rgb(var(--ink) / 0.1); }
.demo-extract__card-lines { flex: 1; display: flex; flex-direction: column; gap: 0.5rem; padding-top: 0.25rem; }
.demo-extract__card-lines span { height: 0.5rem; border-radius: 9999px; background: rgb(var(--ink) / 0.15); }
.demo-extract__card-foot { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.375rem; }
.demo-extract__card-foot span { height: 0.5rem; border-radius: 9999px; background: rgb(var(--ink) / 0.1); }
.demo-extract__scan { pointer-events: none; position: absolute; inset-inline: 0; top: 0; height: 4rem; background: linear-gradient(to bottom, rgb(var(--signal) / 0.4), transparent); }
.demo-extract__out { background: rgb(var(--white)); padding: 2rem; }
.demo-extract__out-head { display: flex; align-items: center; justify-content: space-between; }
.demo-extract__out-title { margin: 0; font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: rgb(var(--muted)); }
.demo-extract__done { font-size: 0.75rem; font-weight: 500; color: rgb(var(--signal)); }
.demo-extract__fields { margin: 1.25rem 0 0; display: flex; flex-direction: column; gap: 0.75rem; list-style: none; padding: 0; }
.demo-extract__fields li { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; border-radius: 0.75rem; border: 1px dashed rgb(var(--ink) / 0.15); padding: 0.75rem 1rem; opacity: 0.5; transform: translateY(4px); transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo), border-color 0.3s, background-color 0.3s; }
.demo-extract__fields li.is-on { opacity: 1; transform: none; border-style: solid; border-color: rgb(var(--ink) / 0.1); background: rgb(var(--white)); }
.demo-extract__field-label { font-size: 0.75rem; color: rgb(var(--signal)); }
.demo-extract__field-value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.875rem; font-weight: 500; color: rgb(var(--ink)); }
.demo-extract__cta { margin-top: 1.75rem; display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 0.5rem; border-radius: 9999px; background: rgb(var(--signal)); padding-inline: 1.5rem; font-size: 0.875rem; font-weight: 500; color: rgb(var(--white)); transition: opacity 0.2s; }
.demo-extract__cta:hover { opacity: 0.9; }
@media (min-width: 640px) { .demo-fill__doc, .demo-extract__out { padding: 2.5rem; } }
@media (min-width: 1024px) { .demo-fill { grid-template-columns: 300px 1fr; } .demo-extract { grid-template-columns: repeat(2, 1fr); } }

/* ---- Pricing (port of Pricing.tsx) ---- */
.pricing { position: relative; overflow: hidden; background: rgb(var(--paper)); padding-block: var(--space-section); }
.pricing__bgword { pointer-events: none; position: absolute; right: -1rem; top: 1.5rem; display: none; user-select: none; font-size: clamp(7rem, 22vw, 17rem); font-weight: 600; line-height: 1; letter-spacing: -0.05em; color: rgb(var(--ink) / 0.04); }
.pricing__inner { position: relative; }
.pricing__title { margin: 1.5rem 0 0; max-width: 48rem; font-size: var(--fs-h2); font-weight: 600; color: rgb(var(--ink)); }
.pricing__note { margin: 1rem 0 0; color: rgb(var(--muted)); }
.pricing__cards { margin-top: 3.5rem; display: grid; align-items: start; gap: 1.5rem; }
.pricing__card { position: relative; display: flex; height: 100%; flex-direction: column; border-radius: 1.75rem; border: 1px solid rgb(var(--ink) / 0.1); background: rgb(var(--white)); padding: 1.75rem; box-shadow: var(--shadow-card); }
.pricing__card--featured { border-color: rgb(var(--signal) / 0.4); box-shadow: var(--shadow-float); outline: 1px solid rgb(var(--signal) / 0.3); }
.pricing__badge { position: absolute; top: -0.75rem; left: 1.75rem; border-radius: 9999px; background: rgb(var(--signal)); padding: 0.25rem 0.75rem; font-size: 0.75rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.03em; color: rgb(var(--white)); }
.pricing__plan-name { margin: 0; font-size: var(--fs-h3); font-weight: 600; color: rgb(var(--ink)); }
.pricing__plan-tagline { margin: 0.25rem 0 0; }
.pricing__price { margin-top: 1.5rem; display: flex; align-items: baseline; gap: 0.375rem; }
.pricing__price-amount { font-size: 3rem; font-weight: 600; letter-spacing: -0.02em; color: rgb(var(--ink)); }
.pricing__price-period { font-size: 0.875rem; }
.pricing__docs { margin: 1rem 0 0; border-radius: 0.5rem; background: rgb(var(--blue-tint) / 0.4); padding: 0.5rem 0.75rem; font-size: 0.875rem; font-weight: 500; color: rgb(var(--signal)); }
.pricing__highlights { margin: 1.5rem 0 0; display: flex; flex-direction: column; gap: 0.75rem; border-top: 1px solid rgb(var(--ink) / 0.1); padding: 1.5rem 0 0; list-style: none; }
.pricing__highlight { display: flex; gap: 0.75rem; font-size: 0.875rem; color: rgb(var(--ink) / 0.8); }
.pricing__cta { margin-top: 2rem; padding-top: 0.5rem; }
@media (min-width: 640px) { .pricing { padding-block: 10rem; } .pricing__card { padding: 2rem; } }
@media (min-width: 768px) { .pricing__bgword { display: block; } }
@media (min-width: 1024px) { .pricing__cards { grid-template-columns: repeat(3, 1fr); } .pricing__card--featured { margin-top: -1rem; padding-block: 3rem; } }

/* ---- Statement (port of Statement.tsx) ---- */
/* svh, not vh: mobile browser chrome makes 100vh taller than the visible viewport. */
.statement { position: relative; display: flex; min-height: 100svh; align-items: center; justify-content: center; overflow: hidden; background: rgb(var(--paper)); padding-block: var(--space-section); }
.statement__glow { pointer-events: none; position: absolute; left: 50%; top: 50%; z-index: -1; height: 44rem; width: 44rem; transform: translate(-50%, -50%); opacity: 0.7; filter: blur(48px); }
.statement__inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.statement__title { margin: 0; max-width: 64rem; font-size: var(--fs-slogan); font-weight: 600; letter-spacing: -0.035em; line-height: 1.02; color: rgb(var(--ink)); }
.statement__cta { margin-top: 3rem; display: flex; flex-direction: column; gap: 0.75rem; }
@media (min-width: 640px) { .statement__cta { flex-direction: row; } }

/* ---- Contact form (new) ---- */
.contact { position: relative; overflow: hidden; background: rgb(var(--paper)); padding-block: var(--space-section); }
.contact__glow { pointer-events: none; position: absolute; left: 50%; top: 0; z-index: 0; height: 32rem; width: 32rem; transform: translate(-50%, -40%); opacity: 0.5; filter: blur(48px); }
.contact__inner { position: relative; z-index: 1; max-width: 42rem; margin-inline: auto; }
.contact__head { text-align: center; }
.contact__title { margin: 1.5rem 0 0; font-size: var(--fs-h2); font-weight: 600; color: rgb(var(--ink)); }
.contact__sub { margin: 1rem 0 0; font-size: var(--fs-lead); color: rgb(var(--muted)); }
.contact__form { margin-top: 3rem; display: flex; flex-direction: column; gap: 1.25rem; border-radius: 1.75rem; border: 1px solid rgb(var(--ink) / 0.1); background: rgb(var(--white)); padding: 1.75rem; box-shadow: var(--shadow-card); }
.contact__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact__row { display: grid; gap: 1.25rem; }
.contact__field { display: flex; flex-direction: column; gap: 0.5rem; }
.contact__field label { font-size: 0.8125rem; font-weight: 500; color: rgb(var(--ink) / 0.7); }
/* 16px is the threshold below which iOS Safari auto-zooms on focus — never go
   under it on mobile. Desktop drops back to 15px in the 640px query below. */
.contact__field input, .contact__field textarea { border-radius: 0.75rem; border: 1px solid rgb(var(--ink) / 0.15); background: rgb(var(--paper) / 0.4); padding: 0.75rem 1rem; font-size: 1rem; color: rgb(var(--ink)); transition: border-color 0.2s, box-shadow 0.2s; }
.contact__field input::placeholder, .contact__field textarea::placeholder { color: rgb(var(--ink) / 0.3); }
.contact__field input:focus, .contact__field textarea:focus { outline: none; border-color: rgb(var(--signal)); box-shadow: 0 0 0 3px rgb(var(--signal) / 0.15); }
.contact__field textarea { resize: vertical; min-height: 7rem; }
.contact__actions { display: flex; flex-direction: column; gap: 1rem; }
.contact__status { margin: 0; font-size: 0.875rem; color: rgb(var(--muted)); }
.contact__status.is-success { color: rgb(var(--signal)); }
.contact__status.is-error { color: #b42318; }
@media (min-width: 640px) {
  .contact { padding-block: 9rem; }
  .contact__form { padding: 2.5rem; }
  .contact__field input, .contact__field textarea { font-size: 0.9375rem; }
  .contact__row { grid-template-columns: repeat(2, 1fr); }
  .contact__actions { flex-direction: row; align-items: center; }
}

/* ---- Footer (port of Footer.tsx) ---- */
.footer { border-top: 1px solid rgb(var(--ink) / 0.1); background: rgb(var(--white)); }
.footer__inner { padding-block: 4rem; }
.footer__grid { display: grid; gap: 3rem; }
.footer__tagline { margin: 1rem 0 0; max-width: 20rem; font-size: 0.875rem; color: rgb(var(--muted)); }
.footer__group-title { margin: 0; font-size: 0.75rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; color: rgb(var(--muted)); }
/* Tap targets: the link box carries the 44px height (WCAG 2.5.5), so the visual
   gap shrinks to compensate and the footer keeps its original rhythm. */
.footer__links { margin: 0.5rem 0 0; display: flex; flex-direction: column; gap: 0.125rem; list-style: none; padding: 0; }
.footer__links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 0.875rem; color: rgb(var(--ink) / 0.8); transition: color 0.2s; }
.footer__links a:hover { color: rgb(var(--signal)); }
.footer__bottom { margin-top: 3.5rem; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 1rem; border-top: 1px solid rgb(var(--ink) / 0.1); padding-top: 1.5rem; }
.footer__bottom p { margin: 0; font-size: 0.875rem; }
.footer__social { display: flex; gap: 0.25rem; list-style: none; padding: 0; margin: 0; }
/* min-width matters here: the "X" label was a 10px-wide tap target. */
.footer__social a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; font-size: 0.875rem; color: rgb(var(--muted)); transition: color 0.2s; }
.footer__social a:hover { color: rgb(var(--ink)); }
@media (min-width: 640px) { .footer__bottom { flex-direction: row; align-items: center; } }
@media (min-width: 1024px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

/* ---- Legal pages (privacy / terms) ---- */
.legal { padding-top: 8rem; padding-bottom: 6rem; background: rgb(var(--paper)); }
.legal__inner { max-width: 46rem; }
.legal__title { margin: 1rem 0 0; font-size: var(--fs-hero); font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; color: rgb(var(--ink)); }
.legal__updated { margin: 0.75rem 0 0; font-size: 0.8125rem; color: rgb(var(--muted)); }
.legal__lead { margin: 2rem 0 0; font-size: var(--fs-lead); color: rgb(var(--ink) / 0.8); line-height: 1.6; }
.legal__section { margin-top: 2.5rem; }
.legal__heading { margin: 0 0 0.75rem; font-size: var(--fs-h3); font-weight: 600; color: rgb(var(--ink)); }
.legal__section p { margin: 0 0 0.75rem; color: rgb(var(--ink) / 0.8); line-height: 1.7; }
.legal__list { margin: 0 0 0.75rem; padding-left: 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; }
.legal__list li { color: rgb(var(--ink) / 0.8); line-height: 1.6; }
.legal__list li::marker { color: rgb(var(--signal)); }
.legal__disclaimer { margin-top: 3rem; border-top: 1px solid rgb(var(--ink) / 0.1); padding-top: 1.5rem; font-size: 0.875rem; font-style: italic; color: rgb(var(--muted)); }
@media (min-width: 640px) { .legal { padding-top: 9rem; } }

/* @SECTION-CSS-END */
