:root {
  --paper: #fbf8f2;
  --paper-2: #f3eee6;
  --paper-3: #ebe3d9;
  --ink: #071f36;
  --ink-2: #34495b;
  --ink-3: #6d7a84;
  --coral: #ff584c;
  --coral-2: #ff786d;
  --coral-soft: #ffe5de;
  --mint: #dff7e8;
  --mint-ink: #1d7248;
  --line: rgba(7, 31, 54, .14);
  --line-strong: rgba(7, 31, 54, .24);
  --surface: rgba(255, 253, 249, .92);
  --surface-solid: #fffdf9;
  --night: #071624;
  --night-2: #0c2235;
  --shadow-sm: 0 12px 36px rgba(15, 31, 45, .08);
  --shadow-lg: 0 30px 90px rgba(15, 31, 45, .16);
  --radius: 24px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: light;
  font-family: "Avenir Next", Avenir, Inter, "Helvetica Neue", Arial, sans-serif;
}

:root[data-theme="dark"] {
  --paper: #071624;
  --paper-2: #0a1c2b;
  --paper-3: #102638;
  --ink: #f7f3ec;
  --ink-2: #c1cbd2;
  --ink-3: #8d9ca8;
  --coral-soft: #432a2b;
  --mint: #153b2c;
  --mint-ink: #7fe1aa;
  --line: rgba(238, 244, 246, .14);
  --line-strong: rgba(238, 244, 246, .25);
  --surface: rgba(14, 34, 50, .9);
  --surface-solid: #0d2233;
  --shadow-sm: 0 14px 38px rgba(0, 0, 0, .24);
  --shadow-lg: 0 36px 100px rgba(0, 0, 0, .42);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { margin: 0; overflow-x: hidden; background: var(--paper); color: var(--ink); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body::selection { background: var(--coral); color: #fff; }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; }
button { color: inherit; }
.page-shell { width: min(1408px, calc(100% - 64px)); margin: 0 auto; }
.skip-link { position: fixed; z-index: 100; top: 10px; left: 10px; padding: 10px 14px; transform: translateY(-160%); border-radius: 10px; background: var(--ink); color: var(--paper); text-decoration: none; }
.skip-link:focus { transform: none; }

.site-header { position: sticky; z-index: 50; top: 0; display: grid; grid-template-columns: 190px 1fr auto; align-items: center; min-height: 82px; padding: 0 clamp(24px, 4vw, 64px); border-bottom: 1px solid transparent; background: color-mix(in srgb, var(--paper) 84%, transparent); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); transition: min-height .25s ease, border-color .25s ease, box-shadow .25s ease; }
.site-header.is-scrolled { min-height: 70px; border-color: var(--line); box-shadow: 0 8px 28px rgba(10, 27, 42, .05); }
.brand { position: relative; display: inline-flex; width: 154px; height: 50px; align-items: center; overflow: hidden; }
.brand img { position: absolute; width: 154px; height: auto; }
.brand-dark { display: none; }
:root[data-theme="dark"] .brand-light { display: none; }
:root[data-theme="dark"] .brand-dark { display: block; }
.primary-nav { display: flex; justify-content: center; gap: clamp(16px, 1.8vw, 30px); }
.primary-nav a { position: relative; padding: 8px 0; color: var(--ink-2); font-size: 13px; text-decoration: none; }
.primary-nav a::after { position: absolute; right: 0; bottom: 2px; left: 0; height: 1px; content: ""; transform: scaleX(0); transform-origin: right; background: var(--coral); transition: transform .3s var(--ease); }
.primary-nav a:hover::after, .primary-nav a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 14px; }
.menu-button { display: none; border: 0; background: transparent; cursor: pointer; }
.theme-toggle { display: grid; grid-template-columns: 1fr 1fr; width: 94px; height: 36px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper-2); cursor: pointer; }
.theme-toggle span { display: grid; place-items: center; border-radius: 999px; color: var(--ink-3); font-size: 9px; }
.theme-toggle span:first-child { background: var(--surface-solid); color: var(--ink); box-shadow: 0 3px 10px rgba(10, 28, 41, .1); }
:root[data-theme="dark"] .theme-toggle span:first-child { background: transparent; box-shadow: none; color: var(--ink-3); }
:root[data-theme="dark"] .theme-toggle span:last-child { background: var(--surface-solid); color: var(--ink); box-shadow: 0 3px 10px rgba(0, 0, 0, .25); }

.button { display: inline-flex; min-height: 54px; align-items: center; justify-content: center; padding: 0 25px; border: 1px solid transparent; border-radius: 12px; cursor: pointer; font-size: 14px; font-weight: 650; letter-spacing: -.01em; text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s ease, background .25s ease; }
.button:hover { transform: translateY(-3px); }
.button:active { transform: translateY(0); }
.button-small { min-height: 44px; padding-inline: 20px; font-size: 13px; }
.button-large { min-height: 60px; padding-inline: 31px; }
.button-ink { background: var(--ink); color: var(--paper); box-shadow: 0 10px 28px rgba(7, 31, 54, .16); }
:root[data-theme="dark"] .button-ink { background: #f7f3ec; color: #071f36; }
.button-coral { background: var(--coral); color: #fff; box-shadow: 0 14px 32px rgba(255, 88, 76, .23); }
.button-coral:hover { background: #ff685e; box-shadow: 0 18px 38px rgba(255, 88, 76, .3); }
.text-link { position: relative; display: inline-flex; min-height: 50px; align-items: center; font-size: 14px; font-weight: 600; text-decoration: none; }
.text-link::after { position: absolute; right: 0; bottom: 8px; left: 0; height: 2px; content: ""; background: var(--coral); transform-origin: left; transition: transform .25s var(--ease); }
.text-link:hover::after { transform: scaleX(.65); }
.text-link-light { color: #fff; }

.hero { position: relative; min-height: 790px; padding: 38px 0 58px; overflow: clip; }
.hero::before { position: absolute; top: 0; right: 0; bottom: 0; width: 54%; content: ""; background: color-mix(in srgb, var(--paper-2) 72%, transparent); clip-path: polygon(15% 3%, 100% 0, 100% 100%, 0 100%, 0 57%); }
.hero-ambient { position: absolute; border-radius: 50%; pointer-events: none; filter: blur(4px); opacity: .55; }
.ambient-one { top: -140px; right: 6%; width: 380px; height: 380px; background: radial-gradient(circle, rgba(255, 88, 76, .16), transparent 69%); }
.ambient-two { bottom: -220px; left: -100px; width: 520px; height: 520px; background: radial-gradient(circle, rgba(255, 174, 139, .12), transparent 70%); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(430px, .8fr) minmax(740px, 1.2fr); gap: clamp(42px, 4vw, 62px); align-items: start; }
.hero-copy { position: relative; z-index: 2; padding-top: 54px; padding-left: clamp(0px, 1vw, 18px); }
.eyebrow { display: flex; align-items: center; flex-wrap: wrap; gap: 0; margin: 0 0 28px; color: var(--ink-2); font-size: 11px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow span + span::before { margin: 0 10px; content: "·"; color: var(--coral); }
.hero h1 { max-width: 620px; margin: 0; font-size: clamp(58px, 4.8vw, 74px); font-weight: 500; letter-spacing: -.065em; line-height: .94; text-wrap: balance; }
.hero h1 em { position: relative; color: var(--ink); font-style: normal; white-space: nowrap; }
.hero-squiggle { width: 80px; height: auto; margin: 18px 0 0; opacity: 0; transform: translateX(-12px); animation: squiggle-in .75s .45s var(--ease) forwards; }
.hero-lede { max-width: 500px; margin: 20px 0 0; color: var(--ink-2); font-size: clamp(17px, 1.4vw, 21px); line-height: 1.55; letter-spacing: -.025em; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 28px; margin-top: 34px; }
.hero-note { margin: 24px 0 0; color: var(--ink-3); font-size: 12px; }
.hero-security { display: grid; grid-template-columns: 22px 1fr; gap: 10px; max-width: 560px; margin-top: 25px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 11px; line-height: 1.55; text-decoration: none; }
.hero-security strong { color: var(--ink); font-weight: 700; }
.security-lock { display: grid; width: 19px; height: 19px; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--mint-ink); font-size: 7px; }

.product-stage { position: relative; z-index: 2; width: calc(100% + 74px); min-width: 0; margin-left: -74px; overflow: hidden; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-lg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.stage-topbar { display: flex; height: 58px; align-items: center; justify-content: space-between; padding: 0 20px; border-bottom: 1px solid var(--line); }
.stage-brand { position: relative; font-size: 17px; font-weight: 600; letter-spacing: -.04em; }
.stage-brand::after { position: absolute; right: 0; bottom: -5px; left: 0; height: 2px; content: ""; background: var(--coral); }
.stage-status { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-3); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.stage-status i { width: 7px; height: 7px; border-radius: 50%; background: #53c980; box-shadow: 0 0 0 5px rgba(83, 201, 128, .12); }
.workspace { display: grid; grid-template-columns: 178px minmax(270px, 1fr) minmax(235px, .8fr); min-height: 500px; }
.review-queue { display: flex; flex-direction: column; gap: 8px; padding: 16px 12px; border-right: 1px solid var(--line); background: color-mix(in srgb, var(--paper-2) 48%, transparent); }
.queue-heading { display: flex; align-items: center; justify-content: space-between; padding: 0 5px 8px; font-size: 11px; }
.queue-heading b { display: grid; width: 20px; height: 20px; place-items: center; border-radius: 50%; background: var(--paper-3); font-size: 9px; }
.queue-item { position: relative; display: grid; grid-template-columns: 34px 1fr; gap: 8px; min-height: 93px; padding: 10px 8px; border: 1px solid transparent; border-radius: 12px; background: transparent; text-align: left; cursor: pointer; transition: border-color .25s ease, background .25s ease, transform .25s var(--ease); }
.queue-item:hover { transform: translateX(3px); background: var(--surface-solid); }
.queue-item.is-active { border-color: rgba(255, 88, 76, .55); background: color-mix(in srgb, var(--coral-soft) 48%, var(--surface-solid)); }
.document-thumb { display: grid; width: 34px; height: 45px; place-items: center; border: 1px solid var(--line); border-radius: 4px; background: var(--surface-solid); color: var(--ink-3); font-size: 7px; }
.queue-item > span:nth-child(2) { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.queue-item strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.queue-item small { color: var(--ink-3); font-size: 8px; }
.queue-item span b { font-size: 10px; }
.queue-item em { position: absolute; right: 8px; bottom: 9px; padding: 3px 6px; border-radius: 999px; background: var(--coral-soft); color: var(--coral); font-size: 7px; font-style: normal; }
.queue-item em.verified { background: var(--mint); color: var(--mint-ink); }
.queue-add { min-height: 38px; margin-top: auto; border: 1px solid var(--line); border-radius: 9px; background: transparent; font-size: 9px; cursor: pointer; }
.invoice-preview { min-width: 0; border-right: 1px solid var(--line); background: var(--surface-solid); }
.document-toolbar { display: flex; min-height: 55px; align-items: center; justify-content: space-between; padding: 0 18px; border-bottom: 1px solid var(--line); color: var(--ink-3); font-size: 9px; }
.document-toolbar span:first-child { color: var(--ink); font-weight: 650; }
.paper-document { min-height: 333px; margin: 14px 15px 0; padding: 22px 22px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: #102234; box-shadow: 0 9px 24px rgba(25, 38, 49, .06); }
.invoice-title { display: flex; align-items: flex-start; justify-content: space-between; padding-bottom: 22px; border-bottom: 1px solid rgba(7, 31, 54, .14); }
.invoice-title > strong { max-width: 140px; font-size: 19px; line-height: 1.05; text-transform: uppercase; }
.invoice-title span { font-size: 9px; text-align: right; }
.invoice-address { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; padding: 19px 0; font-size: 9px; line-height: 1.6; }
.invoice-lines { display: grid; gap: 10px; padding: 15px 0; border-top: 1px solid rgba(7, 31, 54, .12); border-bottom: 1px solid rgba(7, 31, 54, .12); }
.invoice-lines i { display: block; height: 4px; border-radius: 999px; background: linear-gradient(90deg, #dfe4e7 0 48%, transparent 48% 62%, #dfe4e7 62% 100%); }
.invoice-lines i:nth-child(2) { opacity: .75; }
.invoice-lines i:nth-child(3) { opacity: .6; }
.invoice-lines i:nth-child(4) { opacity: .45; }
.invoice-total { display: flex; align-items: center; justify-content: flex-end; gap: 25px; margin-top: 19px; font-size: 10px; }
.invoice-total strong { padding: 7px 9px; border: 1px solid var(--coral); border-radius: 7px; font-size: 14px; transition: background .25s ease; }
.product-stage.is-verifying .invoice-total strong { background: var(--coral-soft); }
.review-note { display: flex; min-height: 40px; align-items: center; gap: 8px; margin: 9px 15px; padding: 0 13px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink-2); font-size: 8px; }
.review-note i { width: 6px; height: 6px; border-radius: 50%; background: var(--coral); }
.destination-panel { position: relative; min-width: 0; padding: 18px 16px 16px; background: color-mix(in srgb, var(--surface-solid) 84%, var(--paper-2)); }
.destination-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 17px; font-size: 11px; font-weight: 650; }
.destination-head b { padding: 5px 7px; border-radius: 999px; background: var(--coral-soft); color: var(--coral); font-size: 7px; font-weight: 700; transition: background .25s ease, color .25s ease; }
.product-stage.is-complete .destination-head b { background: var(--mint); color: var(--mint-ink); }
.destination-panel label { position: relative; display: block; margin-top: 13px; color: var(--ink-2); font-size: 8px; font-weight: 650; }
.destination-panel input { width: 100%; height: 36px; margin-top: 5px; padding: 0 9px; border: 1px solid var(--line); border-radius: 6px; outline: none; background: var(--surface-solid); color: var(--ink); font-size: 10px; }
.destination-panel input:focus { border-color: var(--coral); box-shadow: 0 0 0 3px rgba(255, 88, 76, .12); }
.proof-field input { border-color: var(--coral); box-shadow: 0 0 0 3px rgba(255, 88, 76, .08); }
.proof-trigger { position: absolute; top: 21px; right: 5px; min-height: 26px; border: 0; background: transparent; color: var(--coral); font-size: 7px; cursor: pointer; }
.proof-panel { display: grid; gap: 5px; margin-top: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-solid); box-shadow: var(--shadow-sm); }
.proof-panel[hidden] { display: none; }
.proof-panel strong { font-size: 9px; }
.proof-panel span { color: var(--ink-2); font-size: 8px; }
.proof-panel small { color: var(--ink-3); font-size: 7px; line-height: 1.5; }
.post-button { position: absolute; right: 16px; bottom: 16px; left: 16px; min-height: 39px; border: 0; border-radius: 7px; background: var(--ink); color: var(--paper); font-size: 9px; font-weight: 700; cursor: pointer; transition: transform .2s var(--ease), background .25s ease; }
.post-button:hover { transform: translateY(-2px); }
.product-stage.is-complete .post-button { background: var(--mint-ink); color: #fff; }
.stage-caption { display: flex; min-height: 40px; align-items: center; justify-content: space-between; padding: 0 18px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 8px; letter-spacing: .04em; text-transform: uppercase; }

/* Product truth: two independent apps, with Relayne only as the field-side popup. */
.product-stage { overflow: visible; border: 0; border-radius: 0; background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.app-pair { display: grid; grid-template-columns: 1.04fr .96fr; gap: 14px; align-items: stretch; }
.external-app { position: relative; min-width: 0; min-height: 560px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--surface-solid); box-shadow: var(--shadow-lg); }
.source-app { overflow: hidden; }
.destination-app { overflow: visible; }
.app-chrome { display: flex; min-height: 42px; align-items: center; justify-content: space-between; padding: 0 14px; border-bottom: 1px solid var(--line); border-radius: 14px 14px 0 0; background: color-mix(in srgb, var(--paper-2) 70%, var(--surface-solid)); color: var(--ink-3); font-size: 8px; }
.app-chrome span { color: var(--ink); font-size: 9px; font-weight: 700; }
.app-chrome b { overflow: hidden; max-width: 68%; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.source-workspace { display: grid; grid-template-columns: 88px minmax(0, 1fr); min-height: 518px; }
.source-list { display: flex; min-width: 0; flex-direction: column; gap: 8px; padding: 12px 8px; border-right: 1px solid var(--line); background: color-mix(in srgb, var(--paper-2) 62%, transparent); }
.source-list-title { padding: 0 3px 5px; color: var(--ink-3); font-size: 8px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.source-item { display: grid; gap: 6px; padding: 7px 5px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--ink); text-align: left; cursor: pointer; transition: border-color .2s ease, background .2s ease, transform .2s var(--ease); }
.source-item:hover { transform: translateY(-2px); background: var(--surface-solid); }
.source-item.is-active { border-color: var(--coral); background: color-mix(in srgb, var(--coral-soft) 44%, var(--surface-solid)); }
.mini-page { display: grid; width: 31px; height: 39px; place-items: center; border: 1px solid var(--line); border-radius: 3px; background: #fff; color: #71808a; font-size: 6px; }
.source-item > span:last-child { display: grid; gap: 2px; }
.source-item strong { font-size: 7px; }
.source-item small { color: var(--ink-3); font-size: 6px; }
.source-document { min-width: 0; padding: 0 10px 12px; }
.source-toolbar { display: flex; min-height: 39px; align-items: center; justify-content: space-between; padding: 0 4px; border-bottom: 1px solid var(--line); color: var(--ink-3); font-size: 7px; }
.source-document .paper-document { min-height: 420px; margin: 10px 0 0; padding: 22px 20px; }
.source-document .invoice-title > strong { font-size: 15px; }
.source-document .invoice-address { font-size: 7px; }
.source-document .invoice-total { font-size: 8px; }
.source-document .invoice-total strong { font-size: 12px; }
.destination-form { width: 59%; padding: 19px 14px 16px; }
.destination-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.destination-title span { font-size: 15px; font-weight: 650; letter-spacing: -.025em; }
.destination-title b { padding: 4px 7px; border-radius: 999px; background: var(--paper-2); color: var(--ink-3); font-size: 7px; }
.destination-form label { display: block; margin-top: 11px; color: var(--ink-2); font-size: 7px; font-weight: 700; }
.destination-form input { width: 100%; height: 34px; margin-top: 5px; padding: 0 8px; border: 1px solid var(--line); border-radius: 5px; outline: 0; background: var(--surface-solid); color: var(--ink); font-size: 9px; }
.destination-form input:focus, .destination-form .active-entry input { border-color: #3b7be3; box-shadow: 0 0 0 3px rgba(59, 123, 227, .12); }
.destination-save { width: 100%; min-height: 35px; margin-top: 18px; border: 0; border-radius: 6px; background: var(--ink); color: var(--paper); font-size: 8px; font-weight: 700; cursor: pointer; }
.relayne-popup { position: absolute; z-index: 5; top: 194px; right: 12px; width: 38%; min-width: 150px; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 13px; background: var(--surface-solid); box-shadow: 0 18px 46px rgba(15, 31, 45, .2); transition: transform .3s var(--ease), box-shadow .3s ease; }
.relayne-popup:hover { transform: translateY(-3px); box-shadow: 0 23px 54px rgba(15, 31, 45, .24); }
.popup-brand { display: flex; min-height: 45px; align-items: center; gap: 8px; padding: 0 11px; border-bottom: 1px solid var(--line); }
.popup-brand img { width: 24px; height: 24px; object-fit: contain; }
.popup-brand strong { font-size: 10px; }
.popup-body { display: grid; gap: 6px; padding: 12px 11px 10px; }
.popup-body > span { color: var(--ink-2); font-size: 8px; font-weight: 700; }
.popup-body small { position: relative; padding-left: 10px; color: var(--ink-3); font-size: 7px; }
.popup-body small::before { position: absolute; top: 2px; left: 0; width: 6px; height: 6px; content: ""; border-radius: 50%; background: #55c77d; }
.popup-body b { margin-top: 4px; padding: 9px; border: 1px solid var(--line); border-radius: 7px; font: 650 10px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; }
.popup-body em { color: var(--coral); font-size: 7px; font-style: normal; font-weight: 700; }
.relayne-popup[data-popup-state="match"] .popup-body em { color: var(--mint-ink); }
.relayne-popup[data-popup-state="mismatch"] .popup-body small::before { background: var(--coral); }
.relayne-popup .proof-trigger { position: static; width: 100%; min-height: 34px; border: 0; border-top: 1px solid var(--line); background: transparent; color: var(--ink-2); font-size: 7px; cursor: pointer; }
.relayne-popup .proof-panel { margin: 0 8px 8px; }
.product-stage .stage-caption { min-height: 52px; margin-top: 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-sm); text-transform: none; }
.product-stage .stage-caption strong { color: var(--ink); font-size: 11px; letter-spacing: -.01em; }
.demo-status { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 11px; padding: 0 4px; color: var(--ink-3); font-size: 8px; letter-spacing: .06em; text-transform: uppercase; }
.demo-status span { color: var(--coral); font-weight: 800; }
.demo-status small { font-size: 8px; letter-spacing: .02em; text-transform: none; }

/* The eventual real recording can replace .app-pair inside the product stage. */
.product-recording { width: 100%; background: transparent; mask-image: radial-gradient(ellipse 92% 88% at center, #000 58%, transparent 100%); -webkit-mask-image: radial-gradient(ellipse 92% 88% at center, #000 58%, transparent 100%); }
.product-recording video, .product-recording img { width: 100%; height: auto; mix-blend-mode: normal; }


.motion-strip { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface-solid); }
.motion-track { display: flex; width: max-content; min-height: 72px; align-items: center; gap: 28px; animation: marquee 26s linear infinite; }
.motion-track span { color: var(--ink-2); font-size: 15px; font-weight: 600; white-space: nowrap; }
.motion-track i { width: 7px; height: 7px; border-radius: 50%; background: var(--coral); }

.comparison-section { padding: 132px 0; }
.centered-heading { max-width: 920px; margin-inline: auto; text-align: center; }
.centered-heading .eyebrow { justify-content: center; }
.centered-heading h2, .multi-source-copy h2, .modes-section .section-heading h2, .use-cases-section .section-heading h2, .compatibility-section .section-heading h2, .security-section .section-heading h2, .enterprise-copy h2 { margin: 0; font-size: clamp(46px, 5vw, 76px); font-weight: 500; letter-spacing: -.058em; line-height: 1; text-wrap: balance; }
.centered-heading > p:last-child { max-width: 760px; margin-inline: auto; }
.comparison-table-wrap { max-width: 1120px; margin: 70px auto 0; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 22px; background: var(--surface-solid); box-shadow: var(--shadow-sm); }
.workflow-comparison { width: 100%; border-collapse: collapse; table-layout: fixed; }
.workflow-comparison th { padding: 21px 28px; background: var(--paper-2); color: var(--ink-3); font-size: 10px; letter-spacing: .1em; text-align: left; text-transform: uppercase; }
.workflow-comparison th + th { border-left: 1px solid var(--line); color: var(--mint-ink); }
.workflow-comparison td { position: relative; padding: 25px 28px 25px 58px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 15px; line-height: 1.5; vertical-align: top; }
.workflow-comparison td + td { border-left: 1px solid var(--line); color: var(--ink); font-weight: 620; }
.workflow-comparison td::before { position: absolute; top: 25px; left: 28px; display: grid; width: 19px; height: 19px; place-items: center; content: "×"; border-radius: 50%; background: color-mix(in srgb, var(--coral-soft) 70%, transparent); color: var(--coral); font-size: 13px; font-weight: 800; }
.workflow-comparison td + td::before { content: "✓"; background: var(--mint); color: var(--mint-ink); font-size: 10px; }

.handoff-section { padding: 126px 0; border-top: 1px solid var(--line); background: var(--paper-2); }
.handoff-section > .page-shell { display: grid; grid-template-columns: minmax(290px, .58fr) minmax(0, 1.42fr); gap: clamp(50px, 7vw, 110px); align-items: start; }
.section-heading { max-width: 820px; }
.section-heading h2, .trust-copy h2, .beta-copy h2, .final-cta h2 { margin: 0; font-size: clamp(48px, 5.3vw, 82px); font-weight: 500; letter-spacing: -.06em; line-height: .98; text-wrap: balance; }
.section-heading > p:last-child { max-width: 650px; margin: 28px 0 0; color: var(--ink-2); font-size: 19px; line-height: 1.65; }
.handoff-section .section-heading h2 { font-size: clamp(43px, 4.3vw, 66px); }
.handoff-section .section-heading > p:last-child { max-width: 390px; font-size: 15px; }
.handoff-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-strong); }
.handoff-steps li { position: relative; display: grid; grid-template-columns: 52px 1fr; gap: 20px; min-height: 240px; padding: 34px 34px 30px 0; border-right: 1px solid var(--line); }
.handoff-steps li + li { padding-left: 34px; }
.handoff-steps li:last-child { border-right: 0; }
.step-number { display: grid; width: 46px; height: 46px; place-items: center; border: 1px solid var(--coral); border-radius: 50%; color: var(--coral); font-size: 11px; font-weight: 700; transition: background .25s ease, color .25s ease, transform .25s var(--ease); }
.handoff-steps li:hover .step-number { transform: translateY(-4px); background: var(--coral); color: #fff; }
.handoff-steps h3 { margin: 6px 0 18px; font-size: 25px; font-weight: 550; letter-spacing: -.035em; }
.handoff-steps p { max-width: 330px; margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.65; }

.multi-source-section { position: relative; padding: 145px 0; overflow: hidden; background: var(--night); color: #f9f5ef; }
.multi-source-section::after { position: absolute; right: -180px; bottom: -320px; width: 720px; height: 720px; content: ""; border-radius: 50%; background: radial-gradient(circle, rgba(255, 88, 76, .17), transparent 68%); }
.multi-source-grid { position: relative; z-index: 1; display: grid; grid-template-columns: .78fr 1.22fr; gap: clamp(64px, 8vw, 125px); align-items: center; }
.multi-source-copy h2 { color: #fff; }
.multi-source-copy > p:not(.eyebrow) { max-width: 590px; margin: 30px 0 27px; color: rgba(255,255,255,.68); font-size: 18px; line-height: 1.7; }
.source-matrix { display: grid; grid-template-columns: .72fr 1.28fr; min-height: 450px; overflow: hidden; border: 1px solid rgba(255,255,255,.16); border-radius: 24px; background: rgba(255,255,255,.07); box-shadow: 0 34px 90px rgba(0,0,0,.27); }
.matrix-sources { display: flex; flex-direction: column; gap: 12px; padding: 22px; border-right: 1px solid rgba(255,255,255,.13); }
.matrix-source { display: grid; grid-template-columns: 38px 1fr; gap: 5px 11px; padding: 15px 13px; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; background: rgba(255,255,255,.04); color: rgba(255,255,255,.68); }
.matrix-source > span { grid-row: 1 / 3; display: grid; width: 38px; height: 44px; place-items: center; border-radius: 6px; background: rgba(255,255,255,.08); font-size: 8px; font-weight: 800; }
.matrix-source strong { align-self: end; color: #fff; font-size: 11px; }
.matrix-source small { color: rgba(255,255,255,.43); font-size: 8px; }
.matrix-source.is-current { border-color: rgba(255, 115, 105, .7); background: rgba(255, 88, 76, .12); animation: source-pulse 3.4s ease-in-out infinite; }
.matrix-destination { position: relative; padding: 25px; background: #fbfaf6; color: #071f36; }
.matrix-destination > span { display: block; padding-bottom: 18px; border-bottom: 1px solid rgba(7,31,54,.12); color: #687987; font-size: 9px; }
.matrix-destination > p { margin: 69px 0 0; font: 500 24px/1.55 Georgia, serif; }
.matrix-destination mark { padding: 2px 5px; border-radius: 4px; background: #ffe5de; color: #071f36; }
.matrix-popup { position: absolute; right: 19px; bottom: 31px; left: 19px; display: flex; align-items: center; gap: 11px; padding: 13px; border: 1px solid rgba(7,31,54,.15); border-radius: 12px; background: #fff; box-shadow: 0 18px 40px rgba(7,31,54,.14); }
.matrix-popup span { display: grid; gap: 3px; }
.matrix-popup strong { font: 700 12px ui-monospace, monospace; }
.matrix-popup small { color: #687987; font-size: 8px; }

.modes-section { padding: 145px 0; }
.modes-section .section-heading { max-width: 870px; }
.mode-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 70px; }
.mode-card { position: relative; min-height: 510px; padding: clamp(28px, 4vw, 52px); overflow: hidden; border: 1px solid var(--line-strong); border-radius: 26px; background: var(--surface-solid); box-shadow: var(--shadow-sm); }
.mode-card::after { position: absolute; top: -150px; right: -130px; width: 350px; height: 350px; content: ""; border-radius: 50%; pointer-events: none; }
.mode-ai::after { background: radial-gradient(circle, rgba(255,88,76,.16), transparent 70%); }
.mode-local::after { background: radial-gradient(circle, rgba(58,190,121,.15), transparent 70%); }
.mode-label { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.mode-label span { color: var(--ink-3); font-size: 10px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.mode-label b { padding: 7px 10px; border-radius: 999px; background: var(--coral-soft); color: var(--coral); font-size: 9px; }
.mode-local .mode-label b { background: var(--mint); color: var(--mint-ink); }
.mode-card h3 { position: relative; z-index: 1; max-width: 450px; margin: 64px 0 20px; font-size: clamp(35px, 3vw, 48px); font-weight: 550; letter-spacing: -.05em; line-height: 1.02; }
.mode-card > p { max-width: 540px; margin: 0; color: var(--ink-2); font-size: 16px; line-height: 1.7; }
.mode-card ul { display: grid; gap: 13px; margin: 28px 0 30px; padding: 0; list-style: none; }
.mode-card li { position: relative; padding-left: 24px; color: var(--ink-2); font-size: 13px; }
.mode-card li::before { position: absolute; top: 2px; left: 0; display: grid; width: 15px; height: 15px; place-items: center; content: "✓"; border-radius: 50%; background: var(--mint); color: var(--mint-ink); font-size: 8px; font-weight: 800; }

.use-cases-section { padding: 145px 0; background: var(--paper-2); }
.split-heading { display: grid; grid-template-columns: 1.12fr .88fr; gap: clamp(50px, 9vw, 150px); max-width: none; align-items: end; }
.split-heading > div:last-child { padding-bottom: 5px; }
.split-heading > div:last-child > p { max-width: 540px; margin: 0 0 20px; color: var(--ink-2); font-size: 17px; line-height: 1.65; }
.use-case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 72px; }
.use-case-card { display: flex; min-height: 430px; flex-direction: column; padding: 31px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface-solid); transition: transform .3s var(--ease), border-color .3s ease, box-shadow .3s ease; }
.use-case-card:hover { transform: translateY(-7px); border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.use-case-card > span { color: var(--coral); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.use-case-card h3 { margin: 55px 0 20px; font-size: clamp(27px, 2.2vw, 36px); font-weight: 550; letter-spacing: -.045em; line-height: 1.08; }
.use-case-card p { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.65; }
.use-case-card a { margin-top: auto; padding-top: 28px; color: var(--ink); font-size: 13px; font-weight: 700; text-decoration: none; }
.use-case-card a span { color: var(--coral); }
.extended-use-cases { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 18px; border: 1px solid var(--line); border-radius: 20px; background: color-mix(in srgb, var(--surface-solid) 72%, transparent); }
.extended-use-cases article { display: grid; gap: 12px; min-height: 150px; padding: 26px 30px; }
.extended-use-cases article + article { border-left: 1px solid var(--line); }
.extended-use-cases span { color: var(--ink-3); font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.extended-use-cases strong { font-size: 13px; line-height: 1.6; }

.compatibility-section { padding: 145px 0; }
.compatibility-grid { display: grid; grid-template-columns: .76fr 1.24fr; gap: clamp(60px, 9vw, 145px); align-items: start; }
.compatibility-section .section-heading > p:last-child { font-size: 17px; }
.compatibility-board { display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden; border: 1px solid var(--line-strong); border-radius: 24px; background: var(--surface-solid); box-shadow: var(--shadow-sm); }
.compatibility-board > div { padding: 28px 25px; }
.compatibility-board > div + div { border-left: 1px solid var(--line); }
.compatibility-board > div > span { color: var(--coral); font-size: 10px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.compatibility-board ul { display: grid; gap: 17px; margin: 29px 0 0; padding: 0; list-style: none; }
.compatibility-board li { position: relative; padding-left: 17px; color: var(--ink-2); font-size: 13px; }
.compatibility-board li::before { position: absolute; top: .46em; left: 0; width: 5px; height: 5px; content: ""; border-radius: 50%; background: var(--coral); }
.compatibility-board > p { grid-column: 1 / -1; margin: 0; padding: 22px 25px; border-top: 1px solid var(--line); background: var(--paper-2); color: var(--ink-3); font-size: 10px; line-height: 1.55; }
.compatibility-board > p strong { color: var(--ink-2); }

.trust-section { position: relative; padding: 145px 0; overflow: hidden; background: var(--night); color: #f9f5ef; }
.trust-section::before { position: absolute; top: -240px; right: -100px; width: 620px; height: 620px; content: ""; border-radius: 50%; background: radial-gradient(circle, rgba(255, 88, 76, .18), transparent 68%); }
.trust-grid { position: relative; display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(70px, 10vw, 160px); align-items: center; }
.eyebrow-dark { color: rgba(255,255,255,.58); }
.trust-copy h2 { color: #fff; font-size: clamp(68px, 7vw, 108px); }
.trust-copy > p:not(.eyebrow) { max-width: 500px; margin: 30px 0 26px; color: rgba(255,255,255,.65); font-size: 18px; line-height: 1.7; }
.trust-ledger { padding: clamp(28px, 4vw, 50px); border: 1px solid rgba(255,255,255,.15); border-radius: 24px; background: rgba(255,255,255,.06); box-shadow: 0 30px 80px rgba(0,0,0,.25); backdrop-filter: blur(10px); }
.ledger-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 23px; border-bottom: 1px solid rgba(255,255,255,.14); }
.ledger-head span { font-size: 13px; font-weight: 650; }
.ledger-head b { padding: 7px 10px; border-radius: 999px; background: rgba(79, 204, 129, .15); color: #85e4aa; font-size: 9px; }
.trust-ledger ol { position: relative; display: grid; gap: 0; margin: 0; padding: 22px 0 0; list-style: none; }
.trust-ledger ol::before { position: absolute; top: 35px; bottom: 32px; left: 7px; width: 1px; content: ""; background: linear-gradient(#ff665b, #50ca81); }
.trust-ledger li { position: relative; display: grid; grid-template-columns: 15px 1fr; gap: 17px; padding: 14px 0; }
.trust-ledger li i { position: relative; z-index: 1; width: 15px; height: 15px; margin-top: 3px; border: 4px solid var(--night-2); border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 1px rgba(255,255,255,.28); }
.trust-ledger li:last-child i { background: #50ca81; }
.trust-ledger li span { display: grid; gap: 5px; }
.trust-ledger strong { font-size: 13px; }
.trust-ledger small { color: rgba(255,255,255,.52); font-size: 10px; }
.ledger-note { margin-top: 18px; padding: 14px; border: 1px solid rgba(255,255,255,.12); border-radius: 10px; color: rgba(255,255,255,.64); font-size: 10px; text-align: center; text-transform: uppercase; letter-spacing: .1em; }

.security-section { padding: 145px 0; }
.anti-feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 75px; border-top: 1px solid var(--line-strong); border-left: 1px solid var(--line); }
.anti-feature-grid article { min-height: 245px; padding: 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.anti-feature-grid article > span { color: var(--coral); font-size: 10px; font-weight: 800; }
.anti-feature-grid h3 { margin: 48px 0 13px; font-size: 23px; font-weight: 580; letter-spacing: -.035em; }
.anti-feature-grid p { margin: 0; color: var(--ink-2); font-size: 13px; line-height: 1.65; }

.enterprise-section { padding: 130px 0; border-block: 1px solid var(--line); background: var(--paper-2); }
.enterprise-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(65px, 9vw, 145px); align-items: start; }
.roadmap-label { display: inline-flex; margin: 0 0 35px; padding: 9px 12px; border-radius: 999px; background: var(--coral-soft); color: var(--coral); font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.enterprise-copy > p:last-child { max-width: 570px; margin: 27px 0 0; color: var(--ink-2); font-size: 16px; line-height: 1.7; }
.enterprise-list { margin: 0; padding: 0; border-top: 1px solid var(--line-strong); list-style: none; }
.enterprise-list li { display: grid; grid-template-columns: .58fr 1.2fr auto; gap: 18px; align-items: center; min-height: 94px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.enterprise-list span { color: var(--ink-3); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.enterprise-list strong { font-size: 14px; line-height: 1.45; }
.enterprise-list b { padding: 7px 9px; border-radius: 999px; background: var(--surface-solid); color: var(--ink-3); font-size: 8px; white-space: nowrap; }

.beta-section { padding: 150px 0; }
.beta-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(70px, 9vw, 145px); align-items: center; }
.beta-copy > p:not(.eyebrow) { max-width: 600px; margin: 31px 0 31px; color: var(--ink-2); font-size: 18px; line-height: 1.7; }
.beta-copy > small { display: block; max-width: 480px; margin-top: 18px; color: var(--ink-3); font-size: 11px; line-height: 1.55; }
.beta-program { overflow: hidden; border: 1px solid var(--line-strong); border-radius: 24px; background: var(--surface-solid); box-shadow: var(--shadow-sm); }
.program-label { padding: 20px 25px; border-bottom: 1px solid var(--line); color: var(--ink-3); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.beta-program ul { margin: 0; padding: 0; list-style: none; }
.beta-program li { display: grid; grid-template-columns: 44px 1fr; gap: 18px; padding: 26px 25px; border-bottom: 1px solid var(--line); }
.beta-program li > b { color: var(--coral); font-size: 11px; }
.beta-program li span { display: grid; gap: 7px; }
.beta-program li strong { font-size: 17px; font-weight: 600; }
.beta-program li small { max-width: 440px; color: var(--ink-2); font-size: 13px; line-height: 1.55; }
.beta-program > p { margin: 0; padding: 17px 25px; color: var(--ink-3); background: var(--paper-2); font-size: 10px; }

.faq-section { padding: 130px 0 150px; border-top: 1px solid var(--line); background: var(--paper-2); }
.faq-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(70px, 10vw, 150px); }
.faq-list { border-top: 1px solid var(--line-strong); }
.faq-list details { border-bottom: 1px solid var(--line-strong); }
.faq-list summary { position: relative; padding: 26px 48px 26px 0; cursor: pointer; font-size: 18px; font-weight: 600; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { position: absolute; top: 22px; right: 0; content: "+"; color: var(--coral); font-size: 24px; font-weight: 400; transition: transform .25s var(--ease); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list p { max-width: 690px; margin: -4px 48px 26px 0; color: var(--ink-2); font-size: 15px; line-height: 1.7; }

.final-cta { padding: 150px 0; text-align: center; }
.final-cta-inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.final-wordmark { position: relative; width: 230px; height: 72px; margin-bottom: 36px; overflow: hidden; }
.final-wordmark img { position: absolute; width: 230px; height: auto; }
.final-cta h2 { max-width: 940px; }
.final-cta p { margin: 27px 0 31px; color: var(--ink-2); font-size: 18px; }

.site-footer { border-top: 1px solid var(--line); padding: 54px 0 34px; }
.footer-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 30px; align-items: start; }
.footer-brand { width: 134px; height: 45px; }
.footer-brand img { width: 134px; }
.site-footer p { margin: 10px 0 0; color: var(--ink-3); font-size: 12px; }
.site-footer nav { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 14px 28px; }
.site-footer nav a { color: var(--ink-2); font-size: 12px; text-decoration: none; }
.site-footer small { grid-column: 1 / -1; padding-top: 30px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 10px; }

[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal][data-delay="1"] { transition-delay: .12s; }
[data-reveal][data-delay="2"] { transition-delay: .24s; }
[data-reveal].is-visible { opacity: 1; transform: none; }

@keyframes squiggle-in { to { opacity: 1; transform: none; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes source-pulse { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(4px); } }

@media (max-width: 1180px) {
  .site-header { grid-template-columns: 180px 1fr auto; }
  .primary-nav { gap: 22px; }
  .primary-nav a:nth-child(5) { display: none; }
  .hero-grid { grid-template-columns: minmax(390px, .72fr) minmax(650px, 1.28fr); gap: 34px; }
  .hero h1 { font-size: clamp(60px, 5.8vw, 72px); }
  .workspace { grid-template-columns: 158px minmax(250px, 1fr) minmax(220px, .82fr); }
  .review-queue { padding-inline: 9px; }
  .paper-document { padding-inline: 20px; }
}

@media (max-width: 980px) {
  .page-shell { width: min(100% - 40px, 760px); }
  .site-header { grid-template-columns: 1fr auto auto; min-height: 72px; padding-inline: 20px; }
  .menu-button { display: block; order: 2; margin-right: 8px; font-size: 12px; }
  .primary-nav { position: fixed; inset: 72px 0 auto; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 20px; border-bottom: 1px solid var(--line); background: var(--surface-solid); box-shadow: var(--shadow-sm); }
  .menu-open .primary-nav { display: flex; }
  .primary-nav a, .primary-nav a:nth-child(5) { display: block; padding: 15px 6px; border-bottom: 1px solid var(--line); }
  .header-actions { order: 3; }
  .theme-toggle { display: none; }
  .brand { width: 132px; height: 44px; }
  .brand img { width: 132px; }
  .hero { min-height: auto; padding: 70px 0 80px; }
  .hero::before { top: 43%; width: 100%; clip-path: polygon(0 12%, 100% 0, 100% 100%, 0 100%); }
  .hero-grid { grid-template-columns: 1fr; gap: 64px; }
  .hero-copy { max-width: 670px; padding-top: 0; }
  .hero h1 { font-size: clamp(62px, 12vw, 92px); }
  .product-stage { width: calc(100vw - 40px); margin-left: 0; }
  .app-pair { grid-template-columns: 1fr; }
  .external-app { min-height: 540px; }
  .source-workspace { min-height: 498px; }
  .source-document .paper-document { min-height: 400px; }
  .destination-app { min-height: 520px; }
  .workspace { grid-template-columns: 160px minmax(300px, 1fr) minmax(250px, .82fr); overflow-x: auto; }
  .comparison-section, .handoff-section, .modes-section, .use-cases-section, .compatibility-section, .security-section, .enterprise-section, .beta-section, .final-cta { padding-block: 110px; }
  .handoff-section > .page-shell { grid-template-columns: 1fr; gap: 56px; }
  .handoff-steps { grid-template-columns: 1fr; margin-top: 60px; }
  .handoff-steps li, .handoff-steps li + li { min-height: 0; padding: 30px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .multi-source-grid, .mode-grid, .compatibility-grid, .enterprise-grid, .trust-grid, .beta-grid, .faq-grid { grid-template-columns: 1fr; gap: 70px; }
  .multi-source-section, .trust-section, .faq-section { padding-block: 110px; }
  .source-matrix { min-height: 430px; }
  .split-heading { grid-template-columns: 1fr; gap: 35px; }
  .use-case-grid { grid-template-columns: 1fr; }
  .use-case-card { min-height: 330px; }
  .extended-use-cases { grid-template-columns: 1fr; }
  .extended-use-cases article + article { border-top: 1px solid var(--line); border-left: 0; }
  .anti-feature-grid { grid-template-columns: 1fr 1fr; }
  .trust-copy { max-width: 650px; }
}

@media (max-width: 640px) {
  .page-shell { width: calc(100% - 32px); }
  .site-header { grid-template-columns: 1fr auto auto; padding-inline: 16px; }
  .header-actions .button { display: none; }
  .menu-button { order: 3; margin-right: 0; padding: 10px 0 10px 14px; }
  .hero { padding-top: 50px; }
  .hero h1 { font-size: clamp(50px, 14vw, 68px); line-height: .94; }
  .hero-lede { margin-top: 30px; font-size: 18px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 12px; }
  .text-link { min-height: 42px; }
  .product-stage { width: calc(100vw - 24px); margin-left: -4px; border-radius: 18px; }
  .app-pair { gap: 16px; }
  .external-app { min-height: 500px; }
  .source-workspace { grid-template-columns: 78px minmax(0, 1fr); min-height: 458px; }
  .source-document .paper-document { min-height: 360px; padding-inline: 14px; }
  .destination-app { min-height: 500px; }
  .destination-form { width: 62%; padding-inline: 11px; }
  .destination-title span { font-size: 13px; }
  .relayne-popup { right: 8px; width: 37%; min-width: 128px; }
  .product-stage .stage-caption { align-items: flex-start; flex-direction: column; justify-content: center; gap: 4px; padding-block: 8px; }
  .stage-topbar { height: 52px; }
  .stage-status { font-size: 8px; }
  .workspace { grid-template-columns: 138px 280px 238px; min-height: 540px; }
  .queue-item { min-height: 102px; }
  .paper-document { min-height: 388px; padding: 22px 17px; }
  .review-note { display: none; }
  .destination-panel { padding-inline: 13px; }
  .stage-caption { font-size: 7px; }
  .stage-caption span:last-child { display: none; }
  .motion-track { min-height: 60px; }
  .section-heading h2, .trust-copy h2, .beta-copy h2, .final-cta h2 { font-size: clamp(45px, 13vw, 62px); }
  .section-heading > p:last-child, .beta-copy > p:not(.eyebrow), .trust-copy > p:not(.eyebrow) { font-size: 16px; }
  .comparison-section, .handoff-section, .multi-source-section, .modes-section, .use-cases-section, .compatibility-section, .trust-section, .security-section, .enterprise-section, .beta-section, .faq-section, .final-cta { padding-block: 88px; }
  .handoff-steps li, .handoff-steps li + li { grid-template-columns: 44px 1fr; gap: 15px; }
  .step-number { width: 40px; height: 40px; }
  .trust-ledger { padding: 22px 18px; }
  .beta-program li { grid-template-columns: 34px 1fr; padding-inline: 18px; }
  .faq-list summary { font-size: 16px; }
  .workflow-comparison th { padding-inline: 17px; }
  .workflow-comparison td { padding: 20px 16px 20px 43px; font-size: 12px; }
  .workflow-comparison td::before { top: 20px; left: 16px; }
  .source-matrix { grid-template-columns: 1fr; }
  .matrix-sources { display: grid; grid-template-columns: repeat(3, 1fr); padding: 13px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.13); }
  .matrix-source { display: block; padding: 10px; }
  .matrix-source > span { width: 30px; height: 32px; margin-bottom: 8px; }
  .matrix-source strong, .matrix-source small { display: block; }
  .matrix-source strong { font-size: 8px; }
  .matrix-source small { margin-top: 4px; font-size: 6px; }
  .matrix-destination { min-height: 330px; padding: 18px; }
  .matrix-destination > p { margin-top: 48px; font-size: 20px; }
  .mode-card { min-height: 0; padding: 27px 22px; }
  .mode-card h3 { margin-top: 45px; }
  .compatibility-board { grid-template-columns: 1fr; }
  .compatibility-board > div + div { border-top: 1px solid var(--line); border-left: 0; }
  .anti-feature-grid { grid-template-columns: 1fr; }
  .anti-feature-grid article { min-height: 200px; }
  .enterprise-list li { grid-template-columns: 1fr auto; gap: 8px 16px; padding-block: 20px; }
  .enterprise-list span { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr; }
  .site-footer nav { justify-content: flex-start; }
}

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