﻿:root {
  color-scheme: light;
  --bg: #eef2f3;
  --bg-deep: #dfe7ea;
  --surface: #ffffff;
  --surface-glass: rgba(255, 255, 255, 0.86);
  --surface-soft: #f7faf9;
  --ink: #101828;
  --ink-soft: #263142;
  --muted: #667085;
  --quiet: #98a2b3;
  --line: #d9e2e8;
  --line-strong: #bcc9d3;
  --primary: #087f75;
  --primary-dark: #075f58;
  --primary-hot: #13a383;
  --primary-soft: #e6f7f3;
  --accent: #5c4ccf;
  --accent-soft: #f0efff;
  --coral: #f26b4f;
  --amber: #c98218;
  --navy: #16202c;
  --navy-2: #22303e;
  --ok: #17864f;
  --warm: #b7791f;
  --bad: #b42318;
  --focus: rgba(8, 127, 117, 0.2);
  --shadow: 0 24px 70px rgba(18, 31, 43, 0.14);
  --shadow-soft: 0 14px 36px rgba(18, 31, 43, 0.1);
  --shadow-tight: 0 9px 20px rgba(18, 31, 43, 0.08);
  --radius: 8px;
  --speed: 180ms;
  --font-sans: "Segoe UI Variable Text", "Segoe UI", "Aptos", "Calibri", Arial, Helvetica, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI Semilight", "Aptos Display", "Aptos", "Calibri Light", "Calibri", Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(115deg, rgba(19, 163, 131, 0.08), transparent 34%),
    linear-gradient(245deg, rgba(242, 107, 79, 0.07), transparent 42%),
    repeating-linear-gradient(90deg, rgba(16, 24, 40, 0.025) 0, rgba(16, 24, 40, 0.025) 1px, transparent 1px, transparent 56px),
    repeating-linear-gradient(0deg, rgba(16, 24, 40, 0.018) 0, rgba(16, 24, 40, 0.018) 1px, transparent 1px, transparent 56px),
    linear-gradient(180deg, #ffffff 0, var(--bg) 42%, var(--bg-deep) 100%);
  overflow-x: hidden;
  font-family: var(--font-sans);
  font-weight: 400;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.42) 46%, transparent 58%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.22) 0 1px, transparent 1px 18px);
  background-size: 460px 100%, auto;
  opacity: 0.34;
  animation: ambientSweep 18s linear infinite;
}

body::after {
  content: "";
  position: fixed;
  inset: auto 0 0 0;
  z-index: 0;
  height: 38vh;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(10, 22, 31, 0.06));
}

button,
.button {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(135deg, var(--primary), var(--primary-hot) 62%, #0a6d67);
  color: #ffffff;
  font: inherit;
  font-weight: 650;
  letter-spacing: 0;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(8, 127, 117, 0.2);
  transition:
    background var(--speed) ease,
    border-color var(--speed) ease,
    color var(--speed) ease,
    transform var(--speed) ease,
    box-shadow var(--speed) ease,
    opacity var(--speed) ease;
}

button::before,
.button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 0 32%, rgba(255, 255, 255, 0.26) 45%, transparent 58% 100%);
  transform: translateX(-120%);
  transition: transform 520ms ease;
}

button:hover,
.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(8, 127, 117, 0.24);
}

button:hover::before,
.button:hover::before {
  transform: translateX(120%);
}

button:active,
.button:active {
  transform: translateY(1px);
  box-shadow: 0 8px 18px rgba(8, 127, 117, 0.18);
}

button:focus-visible,
.button:focus-visible,
a:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

button:disabled,
.button.disabled {
  opacity: 0.52;
  pointer-events: none;
  box-shadow: none;
}

#startButton {
  width: 100%;
  min-height: 48px;
  font-size: 15px;
}

#startButton:disabled {
  background: linear-gradient(180deg, #e6ebf0, #d9e1e8);
  border-color: #d6dfe7;
  color: #788595;
  opacity: 1;
}

#downloadButton,
#editButton {
  display: none !important;
}

button.secondary,
.button.secondary {
  background: linear-gradient(135deg, var(--navy), #253447);
  box-shadow: 0 12px 26px rgba(22, 32, 44, 0.2);
}

button.secondary:hover,
.button.secondary:hover {
  box-shadow: 0 16px 34px rgba(22, 32, 44, 0.24);
}

#saveReviewButton:disabled {
  background: #e5eaf0;
  border-color: #e5eaf0;
  color: #8a95a6;
  opacity: 1;
}

.button.build {
  background: linear-gradient(135deg, var(--navy), #27374b);
}

.button.download-ready {
  border-color: rgba(6, 95, 70, 0.45);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.08)),
    linear-gradient(135deg, #087f55, #065d58 48%, #5140bb);
  background-size: 58px 100%, 100% 100%;
  color: #ffffff;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.24);
  box-shadow: 0 16px 34px rgba(6, 95, 70, 0.3);
  animation: downloadReadyShine 1.25s linear infinite, downloadReadyPulse 1.8s ease-in-out infinite;
}

button.ghost,
.ghost-button {
  min-height: 38px;
  padding: 0 13px;
  border-color: rgba(138, 153, 168, 0.32);
  background: rgba(255, 255, 255, 0.86);
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
  box-shadow: none;
}

button.ghost::before,
.ghost-button::before {
  background: linear-gradient(110deg, transparent 0 32%, rgba(8, 127, 117, 0.1) 45%, transparent 58% 100%);
}

button.ghost:hover,
button.ghost.active,
.ghost-button:hover {
  border-color: rgba(8, 127, 117, 0.42);
  background: var(--primary-soft);
  color: var(--primary-dark);
  box-shadow: 0 8px 18px rgba(8, 127, 117, 0.1);
}

.app-shell {
  width: min(1880px, calc(100vw - 84px));
  margin: 0 70px 0 14px;
  padding: 12px 0 14px;
  position: relative;
  z-index: 1;
}

.topbar {
  position: fixed;
  top: 10px;
  right: 14px;
  bottom: 14px;
  z-index: 30;
  width: 56px;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 10px 8px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.92);
  background:
    linear-gradient(180deg, rgba(18, 29, 40, 0.98), rgba(25, 39, 49, 0.96)),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 8px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(7, 16, 24, 0.28);
  backdrop-filter: blur(16px);
  transition:
    width 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}

.topbar::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(19, 163, 131, 0.18), transparent 30%, rgba(242, 107, 79, 0.12));
  opacity: 0.85;
}

.topbar:hover,
.topbar:focus-within {
  width: 292px;
  border-color: rgba(19, 163, 131, 0.32);
  box-shadow: 0 28px 76px rgba(7, 16, 24, 0.34);
}

.brand {
  width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  order: 2;
  color: inherit;
  text-decoration: none;
  position: relative;
  z-index: 1;
}

.dashboard-brand {
  justify-content: center;
}

.dashboard-logo-card {
  width: 100%;
  min-height: 52px;
  padding: 8px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #fffaf1;
  box-shadow: 6px 6px 0 #f1b742;
}

.site-logo-dashboard {
  width: 100%;
  max-width: 230px;
  max-height: 54px;
}

.brand-mark {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, #ffffff 0 12%, transparent 12%),
    linear-gradient(135deg, var(--primary-hot), var(--accent) 70%, var(--coral));
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 14px 30px rgba(19, 163, 131, 0.28);
}

.brand strong {
  display: block;
  color: #ffffff;
  font-size: 15px;
  line-height: 1.2;
  white-space: nowrap;
}

.brand small {
  display: block;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 12px;
  white-space: nowrap;
}

.topbar-nav,
.topbar-actions {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.topbar-nav {
  order: 2;
  flex: 0 0 auto;
  flex-direction: column;
  justify-content: flex-start;
}

.topbar-actions {
  order: 1;
  justify-content: center;
  flex-direction: column;
}

.topbar-nav a,
.topbar-nav button,
.balance-pill {
  width: 100%;
  min-height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 7px 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: none;
  white-space: nowrap;
}

.topbar-nav button {
  cursor: pointer;
}

.topbar-nav a.active,
.topbar-nav a:hover,
.topbar-nav button:hover,
.balance-pill {
  border-color: rgba(19, 163, 131, 0.34);
  background: rgba(19, 163, 131, 0.15);
  color: #ffffff;
}

.balance-pill strong {
  margin-left: 5px;
  color: #ffffff;
}

.account-button {
  flex: 0 0 auto;
  width: 38px;
  min-height: 38px;
  height: 38px;
  margin: 0;
  padding: 0;
  border-radius: 999px;
  border-color: rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08)),
    linear-gradient(135deg, #233243, #111923);
  color: #ffffff;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.account-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.25);
}

.topbar:not(:hover):not(:focus-within) .brand > span:not(.brand-mark),
.topbar:not(:hover):not(:focus-within) .balance-pill {
  opacity: 0;
  transform: translateX(8px);
  pointer-events: none;
}

.topbar:not(:hover):not(:focus-within) .topbar-nav {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}

.topbar .brand > span:not(.brand-mark),
.topbar .balance-pill,
.topbar .topbar-nav {
  transition: opacity 180ms ease, transform 180ms ease, max-height 180ms ease;
}

@media (min-width: 981px) {
  .topbar:not(:hover):not(:focus-within) {
    gap: 0;
  }

  .topbar:not(:hover):not(:focus-within) .topbar-actions {
    gap: 0;
  }

  .topbar:not(:hover):not(:focus-within) .brand,
  .topbar:not(:hover):not(:focus-within) .topbar-user,
  .topbar:not(:hover):not(:focus-within) #logoutButton,
  .topbar:not(:hover):not(:focus-within) .balance-pill {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transform: translateX(8px);
  }

  .topbar:not(:hover):not(:focus-within) #logoutButton,
  .topbar:not(:hover):not(:focus-within) .balance-pill {
    min-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-width: 0;
  }

  .topbar:not(:hover):not(:focus-within) .account-button {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }
}

.workspace {
  min-height: calc(100vh - 26px);
  display: grid;
  grid-template-columns: minmax(320px, 396px) minmax(540px, 1fr);
  gap: 18px;
  align-items: start;
}

.panel,
.preview-area {
  border: 1px solid rgba(135, 151, 167, 0.24);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.84)),
    var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.upload-panel {
  position: sticky;
  top: 12px;
  height: calc(100vh - 26px);
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 20px;
  overflow: auto;
  scrollbar-color: rgba(8, 127, 117, 0.34) transparent;
  scrollbar-width: thin;
}

.upload-panel::-webkit-scrollbar,
.review-list::-webkit-scrollbar,
.preview-frame::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.upload-panel::-webkit-scrollbar-thumb,
.review-list::-webkit-scrollbar-thumb,
.preview-frame::-webkit-scrollbar-thumb {
  background: rgba(8, 127, 117, 0.24);
  border: 3px solid transparent;
  border-radius: 999px;
  background-clip: padding-box;
}

.panel-head {
  display: grid;
  gap: 10px;
  padding-bottom: 4px;
  animation: panelEnter 420ms ease both;
}

.section-kicker {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section-kicker::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary-hot), var(--coral));
}

.panel-head h1 {
  margin: 0;
  color: #071621;
  font-family: var(--font-display);
  font-size: clamp(29px, 2.1vw, 38px);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: 0;
}

.panel-head p,
.result-head p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.48;
}

.dropzone {
  min-height: 188px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 16px;
  display: grid;
  grid-template-rows: auto auto auto;
  align-content: center;
  justify-items: center;
  gap: 9px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
  cursor: pointer;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    conic-gradient(from 120deg, rgba(8, 127, 117, 0.42), rgba(92, 76, 207, 0.34), rgba(242, 107, 79, 0.38), rgba(8, 127, 117, 0.42)) border-box;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88), var(--shadow-tight);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
  animation: panelEnter 480ms ease both;
}

.dropzone::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, transparent 0 42%, rgba(19, 163, 131, 0.13) 48%, transparent 56%),
    repeating-linear-gradient(90deg, rgba(8, 127, 117, 0.07) 0 1px, transparent 1px 20px),
    repeating-linear-gradient(0deg, rgba(16, 24, 40, 0.045) 0 1px, transparent 1px 20px);
  background-size: 100% 180%, auto, auto;
  opacity: 0.74;
  animation: scanSweep 4.8s ease-in-out infinite;
}

.dropzone::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 6px;
  border: 1px dashed rgba(8, 127, 117, 0.26);
  pointer-events: none;
}

.dropzone:hover,
.dropzone.dragging {
  transform: translateY(-2px);
  box-shadow: 0 22px 52px rgba(18, 31, 43, 0.16);
}

.dropzone.dragging {
  background:
    linear-gradient(180deg, #f4fffb, #ffffff) padding-box,
    conic-gradient(from 120deg, var(--primary-hot), var(--accent), var(--coral), var(--primary-hot)) border-box;
}

.dropzone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.dropzone-icon {
  width: 58px;
  height: 70px;
  border: 1px solid rgba(138, 153, 168, 0.3);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  position: relative;
  background:
    linear-gradient(135deg, transparent 0 18%, rgba(19, 163, 131, 0.12) 18% 19%, transparent 19%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(239, 246, 245, 0.94));
  box-shadow: 0 16px 30px rgba(18, 31, 43, 0.12);
  animation: documentFloat 4.2s ease-in-out infinite;
}

.dropzone-icon::before {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  width: 20px;
  height: 20px;
  border-left: 1px solid rgba(138, 153, 168, 0.3);
  border-bottom: 1px solid rgba(138, 153, 168, 0.3);
  border-radius: 0 8px 0 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(19, 163, 131, 0.1));
}

.dropzone-icon span {
  border-radius: 7px;
  padding: 7px 8px;
  color: var(--primary-dark);
  background: rgba(19, 163, 131, 0.13);
  font-size: 11px;
  font-weight: 700;
}

.dropzone-copy {
  max-width: 245px;
  display: grid;
  gap: 4px;
}

.dropzone-copy strong {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.22;
  font-weight: 600;
}

.dropzone-copy span {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.32;
}

.dropzone .ghost-button {
  min-height: 32px;
  padding: 0 14px;
  font-size: 12px;
}

.actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.photo-prep-panel {
  border: 1px solid rgba(138, 153, 168, 0.26);
  border-radius: var(--radius);
  padding: 14px;
  display: grid;
  gap: 13px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 250, 241, 0.9)),
    var(--surface);
  box-shadow: var(--shadow-tight);
}

.photo-prep-panel[hidden] {
  display: none;
}

.photo-prep-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: start;
}

.photo-prep-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.photo-prep-head strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.2;
}

.photo-prep-head span,
.photo-prep-actions span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.photo-prep-head .ghost,
.photo-prep-actions .ghost {
  min-height: 32px;
  padding: 0 11px;
  font-size: 12px;
}

.photo-prep-controls {
  display: grid;
  gap: 11px;
}

.photo-prep-controls[hidden] {
  display: none;
}

.photo-prep-controls label {
  display: grid;
  gap: 7px;
}

.photo-prep-controls label > span {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 650;
}

.photo-prep-controls output {
  min-width: 32px;
  color: var(--primary-dark);
  text-align: right;
}

.photo-prep-controls input[type="range"] {
  width: 100%;
  accent-color: var(--primary);
}

.photo-prep-actions {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
}

.status-panel {
  min-height: 84px;
  border: 1px solid rgba(138, 153, 168, 0.26);
  border-radius: var(--radius);
  padding: 14px;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px;
  align-items: center;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(247, 250, 249, 0.88)),
    var(--surface);
  box-shadow: var(--shadow-tight);
}

.status-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, transparent, rgba(19, 163, 131, 0.08), transparent);
  transform: translateX(-100%);
  opacity: 0;
}

.status-panel.running::before {
  opacity: 1;
  animation: panelShine 1.8s ease-in-out infinite;
}

.status-progress {
  width: 58px;
  height: 58px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  position: relative;
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 700;
  background:
    conic-gradient(var(--primary-hot) calc(var(--progress) * 1%), rgba(138, 153, 168, 0.18) 0),
    linear-gradient(180deg, #ffffff, #edf4f2);
  box-shadow: inset 0 0 0 1px rgba(16, 24, 40, 0.06), 0 10px 22px rgba(8, 127, 117, 0.14);
}

.status-progress::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: inherit;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(138, 153, 168, 0.13);
}

.status-progress span {
  position: relative;
  z-index: 1;
}

.status-panel.done .status-progress {
  color: var(--ok);
  background: conic-gradient(var(--ok) calc(var(--progress) * 1%), rgba(138, 153, 168, 0.18) 0);
}

.status-panel.failed .status-progress {
  color: var(--bad);
  background: conic-gradient(var(--bad) calc(var(--progress) * 1%), rgba(138, 153, 168, 0.18) 0);
}

.status-copy {
  min-width: 0;
  display: grid;
  gap: 10px;
}

#statusText {
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.28;
}

.status-track {
  height: 7px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(138, 153, 168, 0.18);
  box-shadow: inset 0 0 0 1px rgba(16, 24, 40, 0.03);
}

.status-track span {
  width: 0;
  height: 100%;
  display: block;
  border-radius: inherit;
  background:
    linear-gradient(90deg, var(--primary), var(--primary-hot), var(--coral)),
    var(--primary);
  transition: width 240ms ease;
}

.status-panel.running .status-track span {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0.04)),
    linear-gradient(90deg, var(--primary), var(--primary-hot), var(--coral));
  background-size: 44px 100%, 100% 100%;
  animation: progressShine 0.95s linear infinite;
}

.status-panel.done .status-track span {
  background: linear-gradient(90deg, var(--ok), #20a767);
}

.status-panel.failed .status-track span {
  background: linear-gradient(90deg, var(--bad), #e66f61);
}

.pipeline-panel {
  border: 1px solid rgba(138, 153, 168, 0.24);
  border-radius: var(--radius);
  padding: 14px;
  display: grid;
  gap: 12px;
  position: relative;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow-tight);
}

.pipeline-panel[hidden] {
  display: none;
}

.pipeline-panel::before {
  content: "";
  position: absolute;
  top: 35px;
  bottom: 35px;
  left: 31px;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(8, 127, 117, 0.16), rgba(92, 76, 207, 0.12), rgba(242, 107, 79, 0.12));
}

.pipeline-step {
  min-width: 0;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: center;
  position: relative;
}

.pipeline-mark {
  width: 26px;
  height: 26px;
  border: 1px solid rgba(138, 153, 168, 0.34);
  border-radius: 999px;
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
  background: #ffffff;
  color: var(--quiet);
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.82);
}

.pipeline-mark::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
}

.pipeline-step strong {
  display: block;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.22;
}

.pipeline-step small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.32;
}

.pipeline-step.running .pipeline-mark {
  border-color: rgba(8, 127, 117, 0.32);
  color: var(--primary-hot);
  background: #f5fffb;
  animation: stepPulse 1.2s ease-in-out infinite;
}

.pipeline-step.running strong {
  color: var(--primary-dark);
}

.pipeline-step.done .pipeline-mark {
  border-color: rgba(23, 134, 79, 0.24);
  color: #ffffff;
  background: var(--ok);
}

.pipeline-step.done .pipeline-mark::before {
  content: "\2713";
  width: auto;
  height: auto;
  background: transparent;
  font-size: 15px;
  font-weight: 700;
}

.pipeline-step.done strong {
  color: var(--ink);
}

.pipeline-step.failed .pipeline-mark {
  border-color: rgba(180, 35, 24, 0.26);
  color: #ffffff;
  background: var(--bad);
  animation: none;
}

.pipeline-step.failed .pipeline-mark::before {
  content: "!";
  width: auto;
  height: auto;
  background: transparent;
  font-weight: 700;
}

.pipeline-step.failed strong {
  color: var(--bad);
}

.result-panel {
  border: 1px solid rgba(23, 134, 79, 0.24);
  border-radius: var(--radius);
  padding: 16px;
  display: grid;
  gap: 14px;
  background:
    linear-gradient(135deg, rgba(23, 134, 79, 0.1), transparent 44%),
    linear-gradient(180deg, #ffffff, rgba(240, 250, 246, 0.9));
  box-shadow: var(--shadow-tight);
}

.result-panel[hidden],
.qa-panel[hidden],
.review-panel[hidden],
.metrics[hidden] {
  display: none;
}

.result-head {
  display: grid;
  gap: 6px;
}

.result-head strong {
  font-size: 17px;
  line-height: 1.22;
}

.version-list {
  display: grid;
  gap: 10px;
}

.version-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  align-items: start;
}

.version-badge {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, #ffffff 0 14%, transparent 14%),
    linear-gradient(135deg, var(--ok), var(--primary-hot));
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(23, 134, 79, 0.2);
}

.version-body {
  min-width: 0;
  display: grid;
  gap: 12px;
}

.version-title {
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: start;
}

.version-title strong {
  display: block;
  margin-bottom: 3px;
}

.version-title span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.36;
}

.version-state {
  border: 1px solid rgba(23, 134, 79, 0.25);
  border-radius: 999px;
  padding: 5px 8px;
  background: rgba(23, 134, 79, 0.1);
  color: var(--ok);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.version-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.version-actions button,
.version-actions .button {
  min-height: 38px;
  padding: 0 10px;
  font-size: 13px;
}

.version-download {
  background: linear-gradient(135deg, var(--primary), var(--primary-hot));
}

.button.editor-ready {
  background: linear-gradient(135deg, var(--navy), var(--accent));
}

.qa-panel {
  border: 1px solid rgba(92, 76, 207, 0.22);
  border-radius: var(--radius);
  padding: 15px;
  display: grid;
  gap: 12px;
  background: linear-gradient(180deg, #ffffff, rgba(240, 239, 255, 0.76));
}

.qa-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: start;
}

.qa-head strong {
  display: block;
  margin-bottom: 4px;
}

.qa-head span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.qa-score {
  min-width: 46px;
  border-radius: 999px;
  padding: 7px 9px;
  display: inline-flex;
  justify-content: center;
  color: var(--accent);
  background: var(--accent-soft);
  font-weight: 600;
}

.qa-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.metrics span {
  min-height: 30px;
  border: 1px solid rgba(138, 153, 168, 0.25);
  border-radius: 999px;
  padding: 7px 10px;
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.review-panel {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  display: grid;
  gap: 13px;
}

.review-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: start;
}

.review-head strong {
  display: block;
  margin-bottom: 4px;
}

.review-head span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.review-list {
  max-height: 390px;
  overflow: auto;
  display: grid;
  gap: 9px;
  padding-right: 2px;
}

.review-row {
  border: 1px solid rgba(138, 153, 168, 0.24);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  padding: 9px;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.review-row.needs-review {
  border-color: rgba(183, 121, 31, 0.28);
  background: #fffaf1;
}

.review-row.selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--focus);
}

.line-jump {
  width: 34px;
  min-height: 34px;
  height: 34px;
  border-radius: var(--radius);
  padding: 0;
  font-size: 13px;
}

.line-editor {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.line-editor textarea {
  width: 100%;
  min-height: 58px;
  resize: vertical;
  border: 1px solid rgba(138, 153, 168, 0.32);
  border-radius: var(--radius);
  padding: 9px 10px;
  color: var(--ink);
  background: #ffffff;
  font: inherit;
  line-height: 1.36;
}

.line-editor textarea:focus {
  outline: 3px solid var(--focus);
  border-color: var(--primary);
}

.preview-area {
  height: calc(100vh - 26px);
  min-height: 560px;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  position: sticky;
  top: 12px;
}

.preview-area.editor-mode {
  grid-template-rows: 1fr;
}

.preview-area.editor-mode .preview-header {
  display: none;
}

.preview-header {
  min-height: 68px;
  padding: 0 20px;
  border-bottom: 1px solid rgba(138, 153, 168, 0.22);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 250, 0.9)),
    repeating-linear-gradient(90deg, rgba(8, 127, 117, 0.03) 0 1px, transparent 1px 22px);
}

#previewTitle {
  display: block;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
}

.preview-header small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

#fileMeta {
  min-height: 30px;
  border: 1px solid rgba(138, 153, 168, 0.24);
  border-radius: 999px;
  padding: 6px 9px;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

#fileMeta:empty {
  display: none;
}

.preview-actions {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.preview-tabs {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  overflow-x: auto;
  padding: 2px;
}

.preview-tabs[hidden] {
  display: none;
}

.preview-tab {
  min-height: 34px;
  padding: 0 12px;
  border-color: rgba(138, 153, 168, 0.26);
  background: rgba(255, 255, 255, 0.82);
  color: var(--muted);
  white-space: nowrap;
  font-size: 13px;
  box-shadow: none;
}

.preview-tab:hover,
.preview-tab.active {
  border-color: rgba(8, 127, 117, 0.28);
  background: var(--primary-soft);
  color: var(--primary-dark);
  box-shadow: none;
}

.preview-download {
  min-height: 34px;
  padding: 0 12px;
  border-color: rgba(8, 127, 117, 0.18);
  background: linear-gradient(135deg, var(--primary), var(--primary-hot));
  color: #ffffff;
  white-space: nowrap;
  font-size: 13px;
}

.preview-download[hidden] {
  display: none;
}

.preview-area.editor-mode .zoom-controls,
.preview-area.editor-mode #fileMeta,
.preview-area.editor-mode .preview-tabs {
  display: none;
}

.zoom-controls {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(138, 153, 168, 0.26);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.zoom-controls button {
  width: 30px;
  min-height: 30px;
  padding: 0;
  border-radius: 6px;
  background: var(--surface-soft);
  color: var(--navy);
  font-size: 16px;
  font-weight: 600;
  box-shadow: none;
}

.zoom-controls button:hover {
  background: var(--primary-soft);
  color: var(--primary-dark);
  box-shadow: none;
}

.zoom-controls button:disabled {
  background: #eef2f6;
  color: var(--quiet);
  opacity: 1;
}

#zoomResetButton {
  width: 40px;
  font-size: 11px;
}

#zoomLabel {
  min-width: 42px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.preview-frame {
  position: relative;
  display: grid;
  align-items: start;
  justify-items: center;
  padding: 24px;
  overflow: auto;
  overscroll-behavior: contain;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0)),
    linear-gradient(45deg, rgba(203, 213, 225, 0.24) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(203, 213, 225, 0.24) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(203, 213, 225, 0.24) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(203, 213, 225, 0.24) 75%),
    #f4f8fa;
  background-size: auto, 24px 24px, 24px 24px, 24px 24px, 24px 24px, auto;
  background-position: 0 0, 0 0, 0 12px, 12px -12px, -12px 0, 0 0;
}

.preview-crop-button {
  position: absolute;
  top: 50%;
  right: 24px;
  z-index: 6;
  min-height: 36px;
  border: 1px solid rgba(23, 21, 19, 0.18);
  border-radius: 8px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.9);
  color: #171513;
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.14);
  font-size: 13px;
  font-weight: 800;
  transform: translateY(-50%);
}

.preview-crop-button[hidden],
.preview-frame.processing .preview-crop-button,
.preview-frame.editor-mode .preview-crop-button {
  display: none;
}

.preview-crop-button::before {
  display: none;
}

.preview-crop-button:hover {
  border-color: rgba(23, 21, 19, 0.36);
  background: #ffffff;
  transform: translateY(calc(-50% - 1px));
}

.preview-crop-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: translateY(-50%);
}

.preview-frame.processing {
  align-items: center;
  justify-items: center;
}

.preview-frame.processing .image-stage {
  opacity: 0.22;
  filter: saturate(0.8) contrast(0.92);
  transition: opacity 240ms ease, filter 240ms ease;
}

.preview-frame.processing::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(560px, calc(100% - 72px));
  height: min(310px, calc(100% - 72px));
  border-radius: var(--radius);
  z-index: 1;
  pointer-events: none;
  transform: translate(-50%, -50%);
  background:
    linear-gradient(180deg, transparent 0 42%, rgba(19, 163, 131, 0.12) 49%, transparent 56%),
    linear-gradient(110deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  background-size: 100% 240%, 420px 100%;
  background-position: 0 -140%, 0 0;
  opacity: 0.72;
  animation: previewScan 16.8s ease-in-out infinite;
}

.processing-stage {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  padding: 24px;
  pointer-events: none;
}

.processing-stage[hidden] {
  display: none;
}

.assembly-card {
  width: min(560px, calc(100% - 32px));
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  padding: 26px;
  display: grid;
  gap: 18px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(246, 250, 249, 0.86)),
    repeating-linear-gradient(90deg, rgba(8, 127, 117, 0.045) 0 1px, transparent 1px 22px);
  box-shadow: 0 32px 90px rgba(18, 31, 43, 0.26);
  backdrop-filter: blur(18px);
  animation: assemblyCardIn 420ms ease both, assemblyCardBreathe 3.2s ease-in-out infinite 420ms;
}

.assembly-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 0 35%, rgba(19, 163, 131, 0.16) 48%, transparent 62% 100%);
  transform: translateX(-120%);
  animation: assemblyShine 2.2s ease-in-out infinite;
}

.assembly-scene {
  height: 230px;
  position: relative;
  display: grid;
  place-items: center;
}

.assembly-sheet {
  width: 168px;
  height: 214px;
  border: 1px solid rgba(138, 153, 168, 0.34);
  border-radius: 8px;
  display: grid;
  align-content: start;
  gap: 13px;
  padding: 56px 22px 20px;
  position: relative;
  background:
    linear-gradient(135deg, transparent 0 18%, rgba(19, 163, 131, 0.14) 18% 19%, transparent 19%),
    linear-gradient(180deg, #ffffff, #f7fbfa);
  box-shadow:
    0 24px 54px rgba(18, 31, 43, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  animation: sheetAssemble 2.4s cubic-bezier(0.2, 0.86, 0.28, 1) infinite;
}

.assembly-sheet::before {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  width: 50px;
  height: 50px;
  border-left: 1px solid rgba(138, 153, 168, 0.3);
  border-bottom: 1px solid rgba(138, 153, 168, 0.3);
  border-radius: 0 8px 0 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(19, 163, 131, 0.12));
}

.assembly-sheet span {
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(16, 24, 40, 0.74), rgba(16, 24, 40, 0.18));
  transform-origin: left center;
  animation: lineType 2.4s ease-in-out infinite;
}

.assembly-sheet span:nth-child(2) {
  width: 86%;
  animation-delay: 120ms;
}

.assembly-sheet span:nth-child(3) {
  width: 72%;
  animation-delay: 240ms;
}

.assembly-sheet span:nth-child(4) {
  width: 94%;
  animation-delay: 360ms;
}

.assembly-word-mark {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  position: absolute;
  bottom: 2px;
  right: calc(50% - 120px);
  background:
    linear-gradient(135deg, #ffffff 0 13%, transparent 13%),
    linear-gradient(135deg, var(--primary-hot), var(--accent) 72%, var(--coral));
  color: #ffffff;
  font-size: 24px;
  font-weight: 700;
  box-shadow: 0 18px 42px rgba(92, 76, 207, 0.28);
  animation: wordMarkPulse 2.4s ease-in-out infinite;
}

.assembly-fragment {
  position: absolute;
  border: 1px solid rgba(8, 127, 117, 0.26);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(230, 247, 243, 0.86)),
    repeating-linear-gradient(0deg, rgba(16, 24, 40, 0.12) 0 2px, transparent 2px 12px);
  box-shadow: 0 14px 34px rgba(18, 31, 43, 0.15);
  animation: fragmentOrbit 2.4s cubic-bezier(0.25, 0.8, 0.22, 1) infinite;
}

.assembly-fragment.f1 {
  width: 82px;
  height: 54px;
  top: 18px;
  left: 60px;
  --tx: 128px;
  --ty: 62px;
  --rot: 14deg;
}

.assembly-fragment.f2 {
  width: 96px;
  height: 42px;
  top: 30px;
  right: 48px;
  --tx: -118px;
  --ty: 54px;
  --rot: -12deg;
  animation-delay: 110ms;
}

.assembly-fragment.f3 {
  width: 68px;
  height: 84px;
  bottom: 32px;
  left: 82px;
  --tx: 92px;
  --ty: -72px;
  --rot: -18deg;
  animation-delay: 220ms;
}

.assembly-fragment.f4 {
  width: 86px;
  height: 64px;
  right: 70px;
  bottom: 52px;
  --tx: -104px;
  --ty: -58px;
  --rot: 18deg;
  animation-delay: 330ms;
}

.assembly-fragment.f5 {
  width: 48px;
  height: 112px;
  left: 12px;
  top: 70px;
  --tx: 164px;
  --ty: 8px;
  --rot: 24deg;
  animation-delay: 440ms;
}

.assembly-fragment.f6 {
  width: 58px;
  height: 94px;
  right: 4px;
  top: 82px;
  --tx: -168px;
  --ty: -4px;
  --rot: -24deg;
  animation-delay: 550ms;
}

.assembly-copy {
  display: grid;
  gap: 6px;
  text-align: center;
}

.assembly-copy strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 600;
  line-height: 1.16;
}

.assembly-copy span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.assembly-meter {
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(138, 153, 168, 0.16);
  box-shadow: inset 0 0 0 1px rgba(16, 24, 40, 0.04);
}

.assembly-meter span {
  width: 0;
  height: 100%;
  display: block;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.08)),
    linear-gradient(90deg, var(--primary), var(--primary-hot), var(--coral));
  background-size: 52px 100%, 100% 100%;
  transition: width 260ms ease;
  animation: progressShine 0.95s linear infinite;
}

.preview-frame.editor-fallback {
  align-items: center;
  justify-items: center;
}

.preview-frame.editor-fallback .image-stage,
.preview-frame.editor-fallback .empty-preview {
  display: none !important;
}

.preview-frame.editor-fallback .inline-editor-host {
  width: min(620px, calc(100% - 32px));
  height: auto;
  min-height: 300px;
  border: 1px solid rgba(180, 35, 24, 0.22);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(18, 31, 43, 0.18);
}

.preview-frame.editor-fallback .inline-editor-status {
  position: static;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 246, 244, 0.92)),
    repeating-linear-gradient(90deg, rgba(180, 35, 24, 0.035) 0 1px, transparent 1px 18px);
}

.editor-fallback-card {
  max-width: 450px;
  display: grid;
  gap: 9px;
  text-align: center;
}

.editor-fallback-card strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.15;
}

.editor-fallback-card span {
  color: var(--muted);
  line-height: 1.45;
}

.editor-fallback-actions {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.preview-frame.editor-mode {
  display: block;
  padding: 0;
  overflow: hidden;
  background: #f3f6fa;
}

.preview-frame.editor-mode .overlay-toggle,
.preview-frame.editor-mode .image-stage,
.preview-frame.editor-mode .empty-preview {
  display: none;
}

.overlay-toggle {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  width: 38px;
  min-height: 38px;
  margin: 0;
  padding: 0;
  border-color: rgba(138, 153, 168, 0.28);
  background: rgba(255, 255, 255, 0.9);
  color: var(--navy);
  box-shadow: 0 12px 26px rgba(18, 31, 43, 0.14);
  backdrop-filter: blur(10px);
}

.overlay-toggle:hover,
.overlay-toggle.active {
  border-color: rgba(8, 127, 117, 0.28);
  background: var(--primary-soft);
  color: var(--primary-dark);
  box-shadow: 0 12px 26px rgba(8, 127, 117, 0.14);
}

.overlay-toggle:disabled {
  opacity: 0;
  pointer-events: none;
}

.overlay-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.overlay-toggle .icon-eye {
  display: none;
}

.overlay-toggle.active .icon-eye-off {
  display: none;
}

.overlay-toggle.active .icon-eye {
  display: block;
}

.image-stage {
  position: relative;
  display: none;
  max-width: 100%;
  width: fit-content;
}

#previewImage {
  display: none;
  max-width: 100%;
  max-height: calc(100vh - 194px);
  background: #ffffff;
  border-radius: 4px;
  box-shadow:
    0 28px 70px rgba(18, 31, 43, 0.22),
    0 0 0 1px rgba(16, 24, 40, 0.06);
  animation: pageRise 320ms ease both;
}

.ocr-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.photo-crop-overlay {
  position: absolute;
  z-index: 4;
  pointer-events: none;
  touch-action: none;
}

.photo-crop-overlay[hidden] {
  display: none;
}

.photo-crop-overlay.disabled {
  opacity: 0.35;
  pointer-events: none;
}

.photo-crop-box {
  position: absolute;
  min-width: 36px;
  min-height: 36px;
  border: 2px solid #3494ff;
  border-radius: 3px;
  cursor: move;
  pointer-events: auto;
  box-shadow:
    0 0 0 9999px rgba(16, 24, 40, 0.38),
    0 0 0 1px rgba(16, 24, 40, 0.5),
    0 10px 26px rgba(16, 24, 40, 0.2);
}

.photo-crop-box::before,
.photo-crop-box::after {
  content: "";
  position: absolute;
  inset: 33.333% 0 auto;
  height: 1px;
  background: rgba(255, 255, 255, 0.72);
  pointer-events: none;
}

.photo-crop-box::after {
  inset: 66.666% 0 auto;
}

.photo-crop-handle {
  position: absolute;
  width: 15px;
  height: 15px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: #3494ff;
  box-shadow: 0 2px 8px rgba(16, 24, 40, 0.24);
}

.photo-crop-handle.nw { left: -8px; top: -8px; cursor: nwse-resize; }
.photo-crop-handle.n { left: 50%; top: -8px; transform: translateX(-50%); cursor: ns-resize; }
.photo-crop-handle.ne { right: -8px; top: -8px; cursor: nesw-resize; }
.photo-crop-handle.e { right: -8px; top: 50%; transform: translateY(-50%); cursor: ew-resize; }
.photo-crop-handle.se { right: -8px; bottom: -8px; cursor: nwse-resize; }
.photo-crop-handle.s { left: 50%; bottom: -8px; transform: translateX(-50%); cursor: ns-resize; }
.photo-crop-handle.sw { left: -8px; bottom: -8px; cursor: nesw-resize; }
.photo-crop-handle.w { left: -8px; top: 50%; transform: translateY(-50%); cursor: ew-resize; }

.preview-frame.overlay-hidden .ocr-overlay {
  display: none;
}

.ocr-box {
  position: absolute;
  min-width: 8px;
  min-height: 8px;
  border: 2px solid rgba(8, 127, 117, 0.58);
  border-radius: 4px;
  background: rgba(8, 127, 117, 0.07);
  padding: 0;
  pointer-events: auto;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.62);
}

.ocr-box.needs-review {
  border-color: rgba(183, 121, 31, 0.88);
  background: rgba(183, 121, 31, 0.14);
}

.ocr-box.selected {
  border-color: #0f172a;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 5px rgba(8, 127, 117, 0.62);
  z-index: 2;
}

.empty-preview {
  width: min(460px, 100%);
  min-height: 220px;
  border: 1px solid rgba(138, 153, 168, 0.26);
  border-radius: var(--radius);
  padding: 28px;
  align-self: center;
  justify-self: center;
  display: grid;
  place-items: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 250, 249, 0.9)),
    repeating-linear-gradient(90deg, rgba(8, 127, 117, 0.035) 0 1px, transparent 1px 18px);
  color: var(--muted);
  box-shadow: var(--shadow-soft);
  animation: pageRise 360ms ease both;
}

.empty-preview::before {
  content: "DOCX";
  width: 78px;
  height: 94px;
  border: 1px solid rgba(138, 153, 168, 0.28);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  color: var(--primary-dark);
  background:
    linear-gradient(135deg, transparent 0 18%, rgba(19, 163, 131, 0.12) 18% 19%, transparent 19%),
    #ffffff;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 16px 30px rgba(18, 31, 43, 0.12);
}

.empty-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0 42%, rgba(19, 163, 131, 0.12) 48%, transparent 56%);
  background-size: 100% 180%;
  opacity: 0.68;
  pointer-events: none;
  animation: scanSweep 5s ease-in-out infinite;
}

.empty-preview strong {
  color: var(--ink);
  font-size: 18px;
}

.empty-preview span {
  font-size: 14px;
  line-height: 1.42;
}

.inline-editor-host {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  background: #ffffff;
}

.inline-editor-host[hidden] {
  display: none;
}

.inline-onlyoffice-editor {
  width: 100%;
  height: 100%;
}

.inline-editor-status {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(244, 248, 250, 0.92)),
    repeating-linear-gradient(90deg, rgba(8, 127, 117, 0.035) 0 1px, transparent 1px 18px);
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}

.inline-editor-status::before {
  content: "";
  width: 46px;
  height: 46px;
  margin-bottom: 12px;
  border-radius: 999px;
  border: 3px solid rgba(8, 127, 117, 0.16);
  border-top-color: var(--primary);
  animation: spin 0.9s linear infinite;
}

.inline-editor-status.error {
  color: var(--bad);
}

.inline-editor-status.error::before {
  content: "!";
  display: grid;
  place-items: center;
  border: 0;
  background: rgba(180, 35, 24, 0.12);
  color: var(--bad);
  font-size: 22px;
  font-weight: 700;
  animation: none;
}

.inline-editor-status[hidden] {
  display: none;
}

@keyframes ambientSweep {
  from {
    background-position: -460px 0, 0 0;
  }

  to {
    background-position: 460px 0, 0 0;
  }
}

@keyframes scanSweep {
  0%,
  100% {
    background-position: 0 -120%, 0 0, 0 0;
  }

  50% {
    background-position: 0 120%, 0 0, 0 0;
  }
}

@keyframes documentFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

@keyframes panelEnter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pageRise {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.992);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes panelShine {
  from {
    transform: translateX(-100%);
  }

  to {
    transform: translateX(100%);
  }
}

@keyframes stepPulse {
  0%,
  100% {
    box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.82), 0 0 0 8px rgba(8, 127, 117, 0.08);
  }

  50% {
    box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.82), 0 0 0 12px rgba(8, 127, 117, 0.14);
  }
}

@keyframes progressShine {
  from {
    background-position: -44px 0, 0 0;
  }

  to {
    background-position: 44px 0, 0 0;
  }
}

@keyframes downloadReadyShine {
  from {
    background-position: -58px 0, 0 0;
  }

  to {
    background-position: 58px 0, 0 0;
  }
}

@keyframes downloadReadyPulse {
  0%,
  100% {
    transform: translateY(0);
    box-shadow: 0 16px 34px rgba(6, 95, 70, 0.3);
  }

  50% {
    transform: translateY(-1px);
    box-shadow: 0 20px 42px rgba(92, 76, 207, 0.24);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes previewScan {
  0%,
  100% {
    background-position: 0 -140%, 0 0;
  }

  50% {
    background-position: 0 140%, 0 0;
  }
}

@keyframes assemblyCardIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes assemblyCardBreathe {
  0%,
  100% {
    box-shadow: 0 32px 90px rgba(18, 31, 43, 0.26);
  }

  50% {
    box-shadow: 0 36px 104px rgba(8, 127, 117, 0.22);
  }
}

@keyframes assemblyShine {
  0% {
    transform: translateX(-120%);
  }

  56%,
  100% {
    transform: translateX(120%);
  }
}

@keyframes sheetAssemble {
  0% {
    transform: translateY(8px) scale(0.94) rotate(-1deg);
  }

  38%,
  72% {
    transform: translateY(0) scale(1) rotate(0deg);
  }

  100% {
    transform: translateY(8px) scale(0.94) rotate(1deg);
  }
}

@keyframes lineType {
  0%,
  18% {
    transform: scaleX(0);
    opacity: 0.2;
  }

  42%,
  78% {
    transform: scaleX(1);
    opacity: 1;
  }

  100% {
    transform: scaleX(0.18);
    opacity: 0.35;
  }
}

@keyframes wordMarkPulse {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-5px) scale(1.04);
  }
}

@keyframes fragmentOrbit {
  0% {
    transform: translate(0, 0) rotate(var(--rot));
    opacity: 0.78;
  }

  42%,
  70% {
    transform: translate(var(--tx), var(--ty)) rotate(0deg) scale(0.72);
    opacity: 0.1;
  }

  100% {
    transform: translate(0, 0) rotate(calc(var(--rot) * -1));
    opacity: 0.78;
  }
}

@media (max-width: 1180px) {
  .workspace {
    grid-template-columns: minmax(315px, 380px) minmax(460px, 1fr);
  }

  .preview-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 18px;
  }

  .preview-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

@media (max-width: 980px) {
  .app-shell {
    width: min(100vw - 20px, 760px);
    margin: 0 auto;
    padding: 12px 0 20px;
  }

  .topbar {
    position: static;
    width: auto;
    min-height: 64px;
    margin-bottom: 12px;
    padding: 10px 14px;
    align-items: flex-start;
    flex-direction: column;
    overflow: visible;
  }

  .topbar:hover,
  .topbar:focus-within {
    width: auto;
  }

  .topbar:not(:hover):not(:focus-within) .brand > span:not(.brand-mark),
  .topbar:not(:hover):not(:focus-within) .balance-pill,
  .topbar:not(:hover):not(:focus-within) .topbar-nav {
    max-height: none;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    overflow: visible;
  }

  .topbar-nav,
  .topbar-actions {
    justify-content: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .topbar-nav a,
  .topbar-nav button,
  .balance-pill {
    width: auto;
  }

  .workspace {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .upload-panel {
    position: static;
    height: auto;
    max-height: none;
    overflow: visible;
  }

  .preview-area {
    position: static;
    height: 560px;
    min-height: 560px;
  }
}

@media (max-width: 560px) {
  .app-shell {
    width: min(100vw - 16px, 520px);
  }

  .upload-panel {
    padding: 16px;
  }

  .panel-head h1 {
    font-size: 27px;
  }

  .dropzone {
    min-height: 236px;
    padding: 20px;
  }

  .status-panel {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .actions,
  .version-actions {
    grid-template-columns: 1fr;
  }

  .review-head,
  .qa-head {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .preview-header {
    flex-direction: column;
    align-items: start;
    justify-content: center;
    padding: 14px 16px;
  }

  .preview-actions {
    width: 100%;
    align-items: flex-start;
    flex-direction: column;
  }

  .preview-tabs {
    width: 100%;
    justify-content: flex-start;
  }

  #fileMeta {
    white-space: normal;
  }

  .topbar-nav,
  .topbar-actions,
  .zoom-controls {
    width: 100%;
  }

  .topbar-nav a,
  .topbar-nav button,
  .balance-pill {
    flex: 1;
    justify-content: center;
  }

  .preview-frame {
    padding: 16px;
  }

  .assembly-card {
    padding: 20px;
  }

  .assembly-scene {
    height: 190px;
    transform: scale(0.86);
  }

  .assembly-copy strong {
    font-size: 21px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

/* Landing */
body.landing-page {
  --landing-ink: #12161d;
  --landing-muted: #586170;
  --landing-line: #d8e0e5;
  --landing-paper: #f8fbfb;
  --landing-teal: #087f75;
  --landing-teal-2: #13a383;
  --landing-coral: #f26b4f;
  --landing-amber: #d6932b;
  --landing-violet: #5c4ccf;
  min-height: 100vh;
  color: var(--landing-ink);
  background:
    linear-gradient(180deg, #f7faf8 0, #edf4f2 52%, #f6f2eb 100%);
}

body.landing-page::before {
  background:
    repeating-linear-gradient(90deg, rgba(18, 22, 29, 0.035) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(0deg, rgba(18, 22, 29, 0.028) 0 1px, transparent 1px 72px);
  opacity: 0.72;
  animation: none;
}

body.landing-page::after {
  display: none;
}

.landing-page a {
  color: inherit;
}

.landing-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: 72px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 14px max(24px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid rgba(18, 22, 29, 0.08);
  background: rgba(248, 251, 251, 0.86);
  backdrop-filter: blur(18px);
}

.landing-brand,
.landing-links,
.landing-hero-actions,
.landing-hero-facts,
.landing-nav-action {
  position: relative;
  z-index: 1;
}

.landing-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 720;
  text-decoration: none;
  letter-spacing: 0;
}

.landing-brand-mark {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(8, 127, 117, 0.22);
  border-radius: 8px;
  background: #ffffff;
  color: var(--landing-teal);
  box-shadow: 0 10px 26px rgba(18, 22, 29, 0.08);
}

.landing-links {
  display: flex;
  justify-content: center;
  gap: 26px;
}

.landing-links a {
  color: var(--landing-muted);
  font-weight: 560;
  text-decoration: none;
  transition: color 180ms ease;
}

.landing-links a:hover {
  color: var(--landing-teal);
}

.landing-nav-action,
.landing-primary,
.landing-secondary {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 680;
  text-decoration: none;
  letter-spacing: 0;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.landing-nav-action {
  border: 1px solid rgba(8, 127, 117, 0.22);
  background: #ffffff;
  color: var(--landing-teal);
}

.landing-primary {
  border: 1px solid rgba(8, 127, 117, 0.18);
  background: #087f75;
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(8, 127, 117, 0.24);
}

.landing-secondary {
  border: 1px solid rgba(18, 22, 29, 0.14);
  background: rgba(255, 255, 255, 0.68);
  color: var(--landing-ink);
}

.landing-nav-action:hover,
.landing-primary:hover,
.landing-secondary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 38px rgba(18, 22, 29, 0.12);
}

.landing-hero {
  position: relative;
  min-height: min(760px, calc(100svh - 74px));
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: 72px max(24px, calc((100vw - 1180px) / 2)) 56px;
  border-bottom: 1px solid rgba(18, 22, 29, 0.08);
  background:
    linear-gradient(105deg, rgba(255, 255, 255, 0.94) 0 32%, rgba(247, 250, 248, 0.74) 32% 100%);
}

.landing-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 127, 117, 0.13) 0 1px, transparent 1px 100%),
    linear-gradient(0deg, rgba(214, 147, 43, 0.12) 0 1px, transparent 1px 100%);
  background-size: 120px 120px;
  mask-image: linear-gradient(90deg, transparent 0, #000 36%, #000 100%);
  opacity: 0.55;
}

.landing-hero-content {
  position: relative;
  z-index: 3;
  max-width: 660px;
}

.landing-kicker {
  margin: 0 0 14px;
  color: var(--landing-teal);
  font-size: 13px;
  font-weight: 760;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: uppercase;
}

.landing-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 690;
  line-height: 0.96;
  letter-spacing: 0;
}

.landing-lead {
  max-width: 610px;
  margin: 24px 0 0;
  color: #2c3440;
  font-size: 21px;
  line-height: 1.48;
  letter-spacing: 0;
}

.landing-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.landing-hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 610px;
  margin: 34px 0 0;
}

.landing-hero-facts div {
  min-height: 86px;
  padding: 16px;
  border: 1px solid rgba(18, 22, 29, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.66);
}

.landing-hero-facts dt {
  margin: 0 0 6px;
  color: var(--landing-muted);
  font-size: 13px;
  font-weight: 640;
}

.landing-hero-facts dd {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}

.landing-hero-scene {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.hero-sheet,
.hero-docx {
  position: absolute;
  width: 260px;
  height: 356px;
  border: 1px solid rgba(18, 22, 29, 0.16);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 34px 80px rgba(18, 22, 29, 0.16);
}

.hero-sheet-source {
  right: max(300px, calc((100vw - 1180px) / 2 + 360px));
  top: 92px;
  transform: rotate(-6deg);
  animation: landingSheetFloat 8s ease-in-out infinite;
}

.hero-docx {
  right: max(40px, calc((100vw - 1180px) / 2 + 20px));
  top: 198px;
  transform: rotate(4deg);
  animation: landingDocFloat 8s ease-in-out infinite;
}

.sheet-line,
.docx-title {
  position: absolute;
  left: 28px;
  height: 9px;
  border-radius: 4px;
  background: #cbd8dc;
}

.sheet-line.wide {
  top: 38px;
  width: 155px;
  background: #2b333d;
}

.sheet-line:not(.wide) {
  top: 62px;
  width: 116px;
}

.sheet-table,
.docx-table {
  position: absolute;
  left: 28px;
  right: 28px;
  top: 104px;
  height: 168px;
  border: 2px solid #2b333d;
  background:
    linear-gradient(90deg, transparent 32%, #2b333d 32% calc(32% + 1px), transparent calc(32% + 1px) 64%, #2b333d 64% calc(64% + 1px), transparent calc(64% + 1px)),
    repeating-linear-gradient(0deg, transparent 0 32px, #2b333d 32px 33px);
}

.sheet-row {
  position: absolute;
  left: 40px;
  width: 68px;
  height: 5px;
  border-radius: 4px;
  background: rgba(8, 127, 117, 0.55);
}

.sheet-row.r1 { top: 120px; }
.sheet-row.r2 { top: 154px; left: 122px; width: 76px; }
.sheet-row.r3 { top: 188px; width: 52px; }
.sheet-row.r4 { top: 224px; left: 122px; width: 92px; }

.sheet-stamp {
  position: absolute;
  right: 32px;
  bottom: 34px;
  width: 68px;
  height: 24px;
  border: 2px solid rgba(242, 107, 79, 0.72);
  border-radius: 50%;
  transform: rotate(-12deg);
}

.hero-scan-beam {
  position: absolute;
  right: max(278px, calc((100vw - 1180px) / 2 + 338px));
  top: 88px;
  width: 282px;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, transparent, rgba(19, 163, 131, 0.9), transparent);
  box-shadow: 0 0 28px rgba(19, 163, 131, 0.42);
  animation: landingScan 4.8s ease-in-out infinite;
}

.hero-path {
  position: absolute;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(8, 127, 117, 0), rgba(8, 127, 117, 0.75), rgba(242, 107, 79, 0));
  transform-origin: left center;
  animation: landingTrace 3.8s ease-in-out infinite;
}

.path-one {
  right: max(190px, calc((100vw - 1180px) / 2 + 250px));
  top: 254px;
  width: 210px;
  transform: rotate(8deg);
}

.path-two {
  right: max(210px, calc((100vw - 1180px) / 2 + 270px));
  top: 382px;
  width: 170px;
  transform: rotate(-11deg);
  animation-delay: 900ms;
}

.docx-ribbon {
  position: absolute;
  top: 22px;
  right: 22px;
  padding: 7px 10px;
  border-radius: 4px;
  background: var(--landing-teal);
  color: #ffffff;
  font-size: 12px;
  font-weight: 760;
}

.docx-title {
  top: 42px;
  width: 126px;
  background: #2b333d;
}

.docx-table {
  top: 110px;
  height: 150px;
  border-color: var(--landing-teal);
  background:
    linear-gradient(90deg, transparent 34%, var(--landing-teal) 34% calc(34% + 1px), transparent calc(34% + 1px) 68%, var(--landing-teal) 68% calc(68% + 1px), transparent calc(68% + 1px)),
    repeating-linear-gradient(0deg, transparent 0 30px, var(--landing-teal) 30px 31px);
}

.docx-cursor {
  position: absolute;
  left: 114px;
  top: 142px;
  width: 2px;
  height: 22px;
  background: var(--landing-coral);
  animation: landingCaret 1s steps(2, start) infinite;
}

.hero-metric {
  position: absolute;
  min-width: 72px;
  min-height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(18, 22, 29, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: #2b333d;
  font-size: 13px;
  font-weight: 760;
  box-shadow: 0 18px 40px rgba(18, 22, 29, 0.1);
  animation: landingMetric 4.5s ease-in-out infinite;
}

.metric-a {
  right: max(526px, calc((100vw - 1180px) / 2 + 586px));
  top: 302px;
}

.metric-b {
  right: max(78px, calc((100vw - 1180px) / 2 + 138px));
  top: 142px;
  animation-delay: 600ms;
}

.metric-c {
  right: max(282px, calc((100vw - 1180px) / 2 + 342px));
  top: 478px;
  animation-delay: 1.2s;
}

.landing-band {
  position: relative;
  z-index: 2;
  padding: 86px max(24px, calc((100vw - 1180px) / 2));
}

.workflow-band {
  background: #ffffff;
}

.landing-section-head {
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}

.landing-section-head.align-left {
  margin: 0;
  text-align: left;
}

.landing-section-head h2,
.landing-cta h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 660;
  line-height: 1.12;
  letter-spacing: 0;
}

.landing-section-head p:not(.landing-kicker),
.landing-cta p {
  margin: 18px 0 0;
  color: var(--landing-muted);
  font-size: 18px;
  line-height: 1.65;
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.workflow-step {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid rgba(18, 22, 29, 0.1);
  border-radius: 8px;
  background: #f8fbfb;
  box-shadow: 0 18px 50px rgba(18, 22, 29, 0.08);
}

.workflow-number {
  color: var(--landing-muted);
  font-size: 12px;
  font-weight: 760;
}

.workflow-step h3 {
  margin: 20px 0 10px;
  font-size: 22px;
  font-weight: 700;
}

.workflow-step p {
  margin: 0;
  color: var(--landing-muted);
  line-height: 1.55;
}

.workflow-visual {
  position: relative;
  height: 128px;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid rgba(18, 22, 29, 0.1);
  border-radius: 8px;
  background:
    repeating-linear-gradient(90deg, rgba(18, 22, 29, 0.04) 0 1px, transparent 1px 30px),
    #ffffff;
}

.upload-visual span {
  position: absolute;
  left: 28px;
  right: 28px;
  height: 16px;
  border-radius: 4px;
  background: #dce7e7;
  animation: landingUploadBars 2.8s ease-in-out infinite;
}

.upload-visual span:nth-child(1) { top: 28px; width: 58%; }
.upload-visual span:nth-child(2) { top: 56px; width: 76%; animation-delay: 180ms; }
.upload-visual span:nth-child(3) { top: 84px; width: 44%; animation-delay: 360ms; }

.ocr-line {
  position: absolute;
  left: 24px;
  height: 9px;
  border-radius: 4px;
  background: #2b333d;
}

.ocr-line.l1 { top: 34px; width: 58%; }
.ocr-line.l2 { top: 60px; width: 72%; }
.ocr-line.l3 { top: 86px; width: 46%; }

.ocr-sweep {
  position: absolute;
  left: 0;
  right: 0;
  top: 18px;
  height: 8px;
  background: linear-gradient(90deg, transparent, rgba(19, 163, 131, 0.9), transparent);
  box-shadow: 0 0 22px rgba(19, 163, 131, 0.38);
  animation: landingScanSmall 3.6s ease-in-out infinite;
}

.table-visual span {
  position: absolute;
  border: 1px solid var(--landing-teal);
  border-radius: 4px;
  background: rgba(8, 127, 117, 0.08);
  animation: landingTableCell 3s ease-in-out infinite;
}

.table-visual span:nth-child(1) { left: 26px; top: 28px; width: 70px; height: 34px; }
.table-visual span:nth-child(2) { left: 96px; top: 28px; width: 92px; height: 34px; animation-delay: 120ms; }
.table-visual span:nth-child(3) { left: 26px; top: 62px; width: 70px; height: 40px; animation-delay: 240ms; }
.table-visual span:nth-child(4) { left: 96px; top: 62px; width: 92px; height: 40px; animation-delay: 360ms; }

.editor-bar {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 28px;
  background: #2b333d;
}

.editor-page {
  position: absolute;
  left: 52px;
  top: 42px;
  width: 92px;
  height: 70px;
  border: 1px solid rgba(18, 22, 29, 0.18);
  border-radius: 4px;
  background:
    repeating-linear-gradient(0deg, transparent 0 13px, rgba(8, 127, 117, 0.7) 13px 14px),
    #ffffff;
}

.editor-caret {
  position: absolute;
  left: 118px;
  top: 62px;
  width: 2px;
  height: 24px;
  background: var(--landing-coral);
  animation: landingCaret 1s steps(2, start) infinite;
}

.accuracy-band {
  background: #edf4f2;
}

.accuracy-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
  gap: 42px;
  align-items: center;
}

.geometry-board {
  min-height: 460px;
  display: grid;
  place-items: center;
}

.geometry-paper {
  position: relative;
  width: min(100%, 520px);
  aspect-ratio: 1 / 1.28;
  border: 1px solid rgba(18, 22, 29, 0.16);
  border-radius: 8px;
  background:
    repeating-linear-gradient(90deg, rgba(8, 127, 117, 0.08) 0 1px, transparent 1px 42px),
    repeating-linear-gradient(0deg, rgba(8, 127, 117, 0.06) 0 1px, transparent 1px 42px),
    #ffffff;
  box-shadow: 0 34px 90px rgba(18, 22, 29, 0.14);
}

.geo-axis {
  position: absolute;
  background: rgba(18, 22, 29, 0.58);
}

.geo-axis.x {
  left: 36px;
  right: 36px;
  top: 84px;
  height: 1px;
}

.geo-axis.y {
  left: 72px;
  top: 46px;
  bottom: 46px;
  width: 1px;
}

.geo-box {
  position: absolute;
  border: 2px solid var(--landing-teal);
  border-radius: 4px;
  background: rgba(8, 127, 117, 0.08);
  animation: landingGeoPulse 4s ease-in-out infinite;
}

.geo-box.box-a {
  left: 112px;
  top: 122px;
  width: 240px;
  height: 96px;
}

.geo-box.box-b {
  left: 112px;
  top: 254px;
  width: 300px;
  height: 136px;
  border-color: var(--landing-coral);
  background: rgba(242, 107, 79, 0.07);
  animation-delay: 800ms;
}

.geo-line {
  position: absolute;
  left: 112px;
  height: 2px;
  border-radius: 2px;
  background: var(--landing-amber);
}

.geo-line.line-a {
  top: 228px;
  width: 300px;
}

.geo-line.line-b {
  top: 414px;
  width: 202px;
}

.geo-label {
  position: absolute;
  min-width: 58px;
  min-height: 30px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: #2b333d;
  color: #ffffff;
  font-size: 12px;
  font-weight: 760;
}

.geo-label.label-a {
  left: 92px;
  top: 54px;
}

.geo-label.label-b {
  right: 46px;
  bottom: 54px;
  background: var(--landing-teal);
}

.product-band {
  background: #ffffff;
}

.product-showcase {
  display: grid;
  grid-template-columns: minmax(260px, 390px) minmax(340px, 1fr);
  gap: 18px;
  align-items: stretch;
}

.product-panel {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid rgba(18, 22, 29, 0.12);
  border-radius: 8px;
  background: #f8fbfb;
  box-shadow: 0 26px 70px rgba(18, 22, 29, 0.1);
}

.upload-side {
  background:
    linear-gradient(180deg, #ffffff 0 34%, #edf4f2 34% 100%);
}

.panel-chip,
.panel-title,
.panel-drop,
.panel-button,
.panel-progress {
  position: absolute;
  left: 28px;
  border-radius: 4px;
}

.panel-chip {
  top: 32px;
  width: 96px;
  height: 12px;
  background: var(--landing-teal);
}

.panel-title {
  top: 60px;
  width: 220px;
  height: 18px;
  background: #2b333d;
}

.panel-drop {
  top: 118px;
  right: 28px;
  height: 154px;
  border: 1px dashed rgba(8, 127, 117, 0.42);
  background:
    linear-gradient(90deg, transparent 0 48%, rgba(8, 127, 117, 0.24) 48% 52%, transparent 52% 100%),
    linear-gradient(0deg, transparent 0 48%, rgba(8, 127, 117, 0.24) 48% 52%, transparent 52% 100%),
    #ffffff;
}

.panel-button {
  top: 296px;
  width: 164px;
  height: 42px;
  background: var(--landing-teal);
}

.panel-progress {
  right: 28px;
  bottom: 42px;
  height: 8px;
  overflow: hidden;
  background: #d9e5e5;
}

.panel-progress::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 72%;
  background: var(--landing-coral);
  animation: landingProgress 3.6s ease-in-out infinite;
}

.editor-side {
  background: #2b333d;
}

.editor-top {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 54px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.16) 24px 88px, transparent 88px 100%),
    #1c222b;
}

.editor-sheet {
  position: absolute;
  left: 50%;
  top: 86px;
  width: 300px;
  height: 386px;
  transform: translateX(-50%);
  border-radius: 6px 6px 0 0;
  background: #ffffff;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.28);
}

.editor-table {
  position: absolute;
  left: calc(50% - 110px);
  top: 162px;
  width: 220px;
  height: 166px;
  border: 2px solid var(--landing-teal);
  background:
    linear-gradient(90deg, transparent 35%, var(--landing-teal) 35% calc(35% + 1px), transparent calc(35% + 1px) 70%, var(--landing-teal) 70% calc(70% + 1px), transparent calc(70% + 1px)),
    repeating-linear-gradient(0deg, transparent 0 32px, var(--landing-teal) 32px 33px);
}

.editor-selection {
  position: absolute;
  left: calc(50% - 54px);
  top: 214px;
  width: 112px;
  height: 26px;
  border: 2px solid var(--landing-coral);
  border-radius: 4px;
  animation: landingSelection 2.4s ease-in-out infinite;
}

.landing-cta {
  position: relative;
  z-index: 2;
  padding: 86px max(24px, calc((100vw - 900px) / 2)) 96px;
  text-align: center;
  background: #12161d;
  color: #ffffff;
}

.landing-cta .landing-kicker {
  color: #6fd6c8;
}

.landing-cta p {
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255, 255, 255, 0.72);
}

.landing-cta .landing-primary {
  margin-top: 30px;
  background: #13a383;
}

@keyframes landingSheetFloat {
  0%, 100% { transform: rotate(-6deg) translateY(0); }
  50% { transform: rotate(-4deg) translateY(14px); }
}

@keyframes landingDocFloat {
  0%, 100% { transform: rotate(4deg) translateY(0); }
  50% { transform: rotate(2deg) translateY(-12px); }
}

@keyframes landingScan {
  0%, 100% { transform: translateY(26px); opacity: 0.38; }
  45%, 55% { opacity: 1; }
  50% { transform: translateY(304px); }
}

@keyframes landingTrace {
  0%, 100% { opacity: 0.22; clip-path: inset(0 100% 0 0); }
  45%, 65% { opacity: 1; clip-path: inset(0 0 0 0); }
}

@keyframes landingCaret {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@keyframes landingMetric {
  0%, 100% { transform: translateY(0); opacity: 0.74; }
  50% { transform: translateY(-8px); opacity: 1; }
}

@keyframes landingUploadBars {
  0%, 100% { transform: translateX(0); opacity: 0.68; }
  50% { transform: translateX(12px); opacity: 1; }
}

@keyframes landingScanSmall {
  0%, 100% { transform: translateY(4px); }
  50% { transform: translateY(84px); }
}

@keyframes landingTableCell {
  0%, 100% { background-color: rgba(8, 127, 117, 0.08); }
  50% { background-color: rgba(8, 127, 117, 0.22); }
}

@keyframes landingGeoPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.018); }
}

@keyframes landingProgress {
  0%, 100% { width: 34%; }
  50% { width: 86%; }
}

@keyframes landingSelection {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(34px); }
}

@media (max-width: 1100px) {
  .landing-nav {
    grid-template-columns: 1fr auto;
  }

  .landing-links {
    display: none;
  }

  .landing-hero {
    min-height: auto;
    padding-top: 64px;
  }

  .landing-hero-scene {
    opacity: 0.42;
  }

  .hero-sheet-source {
    right: 320px;
  }

  .workflow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .accuracy-layout,
  .product-showcase {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .landing-nav {
    min-height: 64px;
    padding: 12px 16px;
    gap: 12px;
  }

  .landing-brand {
    font-size: 18px;
  }

  .landing-nav-action {
    min-height: 40px;
    padding: 0 13px;
  }

  .landing-hero {
    padding: 52px 18px 42px;
  }

  .landing-hero::before {
    mask-image: none;
  }

  .landing-hero-scene {
    position: relative;
    height: 280px;
    order: 2;
    opacity: 1;
    margin-top: 28px;
  }

  .landing-hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .landing-hero h1 {
    font-size: 46px;
  }

  .landing-lead {
    font-size: 18px;
  }

  .landing-hero-facts {
    grid-template-columns: 1fr;
  }

  .hero-sheet,
  .hero-docx {
    width: 166px;
    height: 226px;
  }

  .hero-sheet-source {
    left: 10px;
    right: auto;
    top: 20px;
  }

  .hero-docx {
    right: 8px;
    top: 48px;
  }

  .hero-scan-beam,
  .hero-path,
  .hero-metric {
    display: none;
  }

  .sheet-line,
  .docx-title {
    left: 18px;
  }

  .sheet-line.wide {
    top: 24px;
    width: 96px;
  }

  .sheet-line:not(.wide) {
    top: 42px;
    width: 80px;
  }

  .sheet-table,
  .docx-table {
    left: 18px;
    right: 18px;
    top: 74px;
    height: 96px;
  }

  .docx-ribbon {
    top: 14px;
    right: 14px;
  }

  .landing-band {
    padding: 62px 18px;
  }

  .landing-section-head h2,
  .landing-cta h2 {
    font-size: 32px;
  }

  .workflow-grid {
    grid-template-columns: 1fr;
  }

  .workflow-step {
    min-height: auto;
  }

  .geometry-board {
    min-height: 330px;
  }

  .product-panel {
    min-height: 340px;
  }

  .editor-sheet {
    width: 228px;
    height: 300px;
  }

  .editor-table {
    left: calc(50% - 84px);
    width: 168px;
  }

  .landing-cta {
    padding: 68px 18px 78px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-page *,
  .landing-page *::before,
  .landing-page *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* Landing v2 */
body.landing-page.landing-v2 {
  --v2-ink: #171513;
  --v2-muted: #6d675f;
  --v2-paper: #fffaf1;
  --v2-cream: #f4ead6;
  --v2-line: rgba(23, 21, 19, 0.12);
  --v2-teal: #087f75;
  --v2-coral: #ea594c;
  --v2-amber: #f1b742;
  --v2-blue: #2c5aa0;
  --v2-violet: #7053c8;
  margin: 0;
  color: var(--v2-ink);
  background:
    linear-gradient(90deg, rgba(23, 21, 19, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(23, 21, 19, 0.028) 1px, transparent 1px),
    #f6efe2;
  background-size: 38px 38px;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
}

body.landing-page.landing-v2::before,
body.landing-page.landing-v2::after {
  display: none;
}

.landing-v2 *,
.landing-v2 *::before,
.landing-v2 *::after {
  box-sizing: border-box;
}

.landing-v2 h1,
.landing-v2 h2,
.landing-v2 h3,
.landing-v2 p,
.landing-v2 dl,
.landing-v2 dd,
.landing-v2 ul {
  margin: 0;
}

.v2-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 72px;
  padding:
    12px
    max(18px, calc((100vw - 1200px) / 2 - 120px))
    12px
    max(28px, calc((100vw - 1200px) / 2));
  border-bottom: 1px solid rgba(23, 21, 19, 0.1);
  background: rgba(255, 250, 241, 0.88);
  backdrop-filter: blur(18px);
}

.v2-brand,
.v2-links,
.v2-support-link,
.v2-nav-cta,
.v2-button {
  color: inherit;
  text-decoration: none;
}

.v2-brand {
  flex: 0 0 auto;
  margin-right: auto;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  font-size: 22px;
  font-weight: 900;
}

.site-logo {
  display: block;
  width: auto;
  height: auto;
  object-fit: contain;
}

.site-logo-nav {
  width: clamp(178px, 16vw, 236px);
  max-height: 56px;
}

.v2-brand-mark {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 2px solid var(--v2-ink);
  border-radius: 8px;
  color: #fffaf1;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 45%),
    var(--v2-ink);
  box-shadow: 6px 6px 0 var(--v2-amber);
}

.v2-links {
  display: inline-flex;
  align-items: center;
  gap: 30px;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid rgba(23, 21, 19, 0.11);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: 0 12px 34px rgba(40, 34, 25, 0.08);
}

.v2-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #4f4941;
  background: transparent;
  font-size: 14px;
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  box-shadow: none;
}

.v2-links a:hover {
  color: var(--v2-ink);
  transform: none;
  box-shadow: none;
}

.v2-support-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 2px solid var(--v2-ink);
  border-radius: 8px;
  color: var(--v2-ink);
  background: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 5px 5px 0 var(--v2-amber);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.v2-support-link:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--v2-amber);
}

.v2-nav-cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 236px;
  min-height: 44px;
  padding: 0 22px;
  border: 2px solid var(--v2-ink);
  border-radius: 8px;
  color: #fffaf1 !important;
  -webkit-text-fill-color: #fffaf1;
  background: var(--v2-ink);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
  white-space: nowrap;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
  box-shadow: 6px 6px 0 var(--v2-coral);
}

.v2-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: calc(100svh - 132px);
  overflow: hidden;
  padding: 74px 28px 82px;
  border-bottom: 1px solid rgba(23, 21, 19, 0.12);
  background:
    linear-gradient(115deg, rgba(255, 250, 241, 0.96) 0 37%, rgba(255, 250, 241, 0.74) 37% 56%, rgba(236, 245, 240, 0.82) 56% 100%),
    linear-gradient(180deg, #fffaf1, #efe3cd);
}

.v2-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(23, 21, 19, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(23, 21, 19, 0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.78));
}

.v2-hero::after {
  content: "";
  position: absolute;
  right: -6%;
  bottom: -18%;
  z-index: -1;
  width: 62%;
  height: 44%;
  border-top: 1px solid rgba(23, 21, 19, 0.12);
  background:
    repeating-linear-gradient(0deg, rgba(23, 21, 19, 0.045) 0 1px, transparent 1px 24px),
    rgba(241, 183, 66, 0.16);
  transform: rotate(-4deg);
}

.v2-hero-copy {
  position: relative;
  z-index: 5;
  width: min(620px, 100%);
  margin-left: max(0px, calc((100vw - 1200px) / 2));
}

.v2-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--v2-teal);
  font-size: 14px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.v2-kicker::before {
  content: "";
  width: 34px;
  height: 3px;
  border-radius: 0;
  background: var(--v2-coral);
}

.v2-hero h1 {
  margin-top: 18px;
  font-size: 86px;
  line-height: 0.9;
  font-weight: 950;
  letter-spacing: 0;
}

.v2-hero-subtitle {
  max-width: 590px;
  margin-top: 26px;
  color: #3f3932;
  font-size: 22px;
  line-height: 1.45;
  font-weight: 650;
}

.v2-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.v2-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 950;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.v2-button:hover {
  transform: translateY(-2px);
}

.v2-button.primary {
  border: 1px solid var(--v2-ink);
  color: #fffaf1;
  background: var(--v2-ink);
  box-shadow: 6px 6px 0 var(--v2-teal);
}

.v2-button.primary:hover {
  box-shadow: 8px 8px 0 var(--v2-teal);
}

.v2-button.ghost {
  border: 1px solid rgba(23, 21, 19, 0.18);
  background: rgba(255, 255, 255, 0.58);
}

.v2-button.dark {
  box-shadow: 6px 6px 0 var(--v2-amber);
}

.v2-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 600px;
  margin-top: 42px;
}

.v2-hero-stats div {
  min-height: 96px;
  padding: 16px;
  border: 1px solid rgba(23, 21, 19, 0.13);
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.72);
  box-shadow: 0 14px 36px rgba(44, 38, 27, 0.08);
}

.v2-hero-stats dt {
  color: var(--v2-coral);
  font-size: 22px;
  font-weight: 950;
}

.v2-hero-stats dd {
  margin-top: 7px;
  color: var(--v2-muted);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 750;
}

.v2-stage {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.v2-stage-grid {
  position: absolute;
  top: 72px;
  right: max(26px, calc((100vw - 1200px) / 2));
  width: min(760px, 58vw);
  height: min(560px, 68vh);
  border: 1px solid rgba(23, 21, 19, 0.12);
  background:
    repeating-linear-gradient(90deg, rgba(8, 127, 117, 0.14) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(0deg, rgba(44, 90, 160, 0.12) 0 1px, transparent 1px 34px),
    rgba(255, 255, 255, 0.2);
  transform: skewY(-3deg);
  opacity: 0.72;
}

.v2-scan-page,
.v2-word-page {
  position: absolute;
  border: 1px solid rgba(23, 21, 19, 0.18);
  border-radius: 8px;
  box-shadow: 0 28px 70px rgba(40, 34, 25, 0.22);
}

.v2-scan-page {
  top: 16%;
  right: min(46vw, 590px);
  width: 274px;
  height: 368px;
  padding: 26px 24px;
  background:
    repeating-linear-gradient(115deg, rgba(23, 21, 19, 0.035) 0 1px, transparent 1px 9px),
    linear-gradient(180deg, #fffdf6, #eadfcf);
  transform: rotate(-5deg);
  animation: v2PageFloat 8s ease-in-out infinite;
}

.v2-word-page {
  top: 12%;
  right: max(34px, calc((100vw - 1200px) / 2));
  width: 336px;
  height: 438px;
  padding: 72px 28px 28px;
  background: #fffdf7;
  transform: rotate(3deg);
  animation: v2WordFloat 9s ease-in-out infinite;
}

.v2-page-label,
.v2-word-label {
  color: rgba(23, 21, 19, 0.66);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0;
}

.v2-scan-hole {
  position: absolute;
  left: 18px;
  width: 8px;
  height: 8px;
  border: 1px solid rgba(23, 21, 19, 0.2);
  border-radius: 50%;
  background: #f6efe2;
}

.v2-scan-hole.top {
  top: 72px;
}

.v2-scan-hole.bottom {
  bottom: 72px;
}

.v2-scan-title,
.v2-word-title {
  height: 16px;
  border-radius: 3px;
  background: var(--v2-ink);
}

.v2-scan-title {
  width: 132px;
  margin-top: 28px;
}

.v2-scan-line,
.v2-word-text {
  height: 8px;
  border-radius: 3px;
  background: rgba(23, 21, 19, 0.28);
}

.v2-scan-line.line-a {
  width: 188px;
  margin-top: 18px;
}

.v2-scan-line.line-b {
  width: 164px;
  margin-top: 10px;
}

.v2-scan-line.line-c {
  width: 202px;
  margin-top: 10px;
}

.v2-scan-table {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: 206px;
  height: 104px;
  margin-top: 26px;
  border: 1px solid rgba(23, 21, 19, 0.52);
  background: rgba(255, 255, 255, 0.55);
}

.v2-scan-table span {
  border-right: 1px solid rgba(23, 21, 19, 0.3);
  border-bottom: 1px solid rgba(23, 21, 19, 0.3);
}

.v2-scan-table span:nth-child(4n) {
  border-right: 0;
}

.v2-scan-table span:nth-last-child(-n + 4) {
  border-bottom: 0;
}

.v2-scan-fill {
  width: 190px;
  height: 2px;
  margin-top: 20px;
  background: rgba(23, 21, 19, 0.58);
}

.v2-scan-fill.fill-b {
  width: 152px;
  margin-top: 17px;
}

.v2-stamp {
  position: absolute;
  right: 24px;
  bottom: 34px;
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  border: 3px solid rgba(234, 89, 76, 0.7);
  border-radius: 50%;
  color: rgba(234, 89, 76, 0.82);
  font-size: 14px;
  font-weight: 950;
  text-transform: uppercase;
  transform: rotate(-14deg);
}

.v2-scan-beam {
  position: absolute;
  left: -12px;
  right: -12px;
  top: 44px;
  height: 42px;
  background:
    linear-gradient(180deg, transparent, rgba(8, 127, 117, 0.34), transparent);
  animation: v2ScanBeam 3.6s ease-in-out infinite;
}

.v2-engine {
  position: absolute;
  top: 28%;
  right: min(30vw, 392px);
  width: 226px;
  height: 226px;
}

.v2-engine-ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(8, 127, 117, 0.34);
  border-radius: 50%;
}

.v2-engine-ring::before,
.v2-engine-ring::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--v2-coral);
}

.v2-engine-ring::before {
  top: 18px;
  left: 42px;
}

.v2-engine-ring::after {
  right: 36px;
  bottom: 24px;
  background: var(--v2-amber);
}

.v2-engine-ring.ring-a {
  animation: v2Spin 15s linear infinite;
}

.v2-engine-ring.ring-b {
  inset: 28px;
  border-color: rgba(44, 90, 160, 0.32);
  animation: v2Spin 11s linear infinite reverse;
}

.v2-engine-core {
  position: absolute;
  inset: 56px;
  display: grid;
  place-items: center;
  align-content: center;
  border: 1px solid rgba(23, 21, 19, 0.16);
  border-radius: 8px;
  color: #fffaf1;
  background: var(--v2-ink);
  box-shadow: 7px 7px 0 var(--v2-amber);
}

.v2-engine-core span {
  color: var(--v2-amber);
  font-size: 14px;
  font-weight: 950;
}

.v2-engine-core strong {
  margin-top: 3px;
  font-size: 18px;
  font-weight: 950;
}

.v2-engine-node {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(23, 21, 19, 0.14);
  border-radius: 8px;
  background: #fffaf1;
  font-size: 12px;
  font-weight: 950;
  box-shadow: 0 12px 30px rgba(40, 34, 25, 0.14);
  animation: v2Node 4.8s ease-in-out infinite;
}

.v2-engine-node.node-a {
  top: 8px;
  left: 12px;
  color: var(--v2-teal);
}

.v2-engine-node.node-b {
  right: 2px;
  top: 82px;
  color: var(--v2-blue);
  animation-delay: 0.5s;
}

.v2-engine-node.node-c {
  left: 42px;
  bottom: 0;
  color: var(--v2-coral);
  animation-delay: 1s;
}

.v2-data-path {
  position: absolute;
  height: 3px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, transparent, var(--v2-teal), var(--v2-coral), transparent);
  background-size: 180% 100%;
  animation: v2Path 2.6s linear infinite;
}

.v2-data-path.path-a {
  top: 94px;
  left: -190px;
  width: 202px;
  transform: rotate(7deg);
}

.v2-data-path.path-b {
  top: 118px;
  right: -190px;
  width: 202px;
  transform: rotate(-8deg);
  animation-delay: 0.4s;
}

.v2-word-topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  gap: 8px;
  height: 42px;
  align-items: center;
  padding: 0 16px;
  border-bottom: 1px solid rgba(23, 21, 19, 0.1);
  border-radius: 8px 8px 0 0;
  background: #e9f0fb;
}

.v2-word-topbar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--v2-coral);
}

.v2-word-topbar span:nth-child(2) {
  background: var(--v2-amber);
}

.v2-word-topbar span:nth-child(3) {
  background: var(--v2-teal);
}

.v2-word-label {
  position: absolute;
  top: 52px;
  left: 28px;
  color: var(--v2-blue);
}

.v2-word-toolbar {
  display: flex;
  gap: 6px;
  margin-bottom: 22px;
}

.v2-word-toolbar span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  min-width: 28px;
  padding: 0 8px;
  border: 1px solid rgba(44, 90, 160, 0.2);
  border-radius: 5px;
  color: var(--v2-blue);
  background: rgba(44, 90, 160, 0.08);
  font-size: 11px;
  font-weight: 950;
}

.v2-word-title {
  width: 142px;
  background: var(--v2-blue);
}

.v2-word-text.text-a {
  width: 226px;
  margin-top: 18px;
}

.v2-word-text.text-b {
  width: 184px;
  margin-top: 10px;
}

.v2-word-table {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 254px;
  height: 120px;
  margin-top: 26px;
  border: 1px solid rgba(44, 90, 160, 0.44);
  background: rgba(44, 90, 160, 0.04);
}

.v2-word-table span {
  border-right: 1px solid rgba(44, 90, 160, 0.24);
  border-bottom: 1px solid rgba(44, 90, 160, 0.24);
}

.v2-word-table span:nth-child(3n) {
  border-right: 0;
}

.v2-word-table span:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.v2-word-table span:nth-child(5) {
  background: rgba(8, 127, 117, 0.18);
  animation: v2Cell 2.4s ease-in-out infinite;
}

.v2-word-caret {
  position: absolute;
  left: 180px;
  top: 278px;
  width: 2px;
  height: 28px;
  background: var(--v2-coral);
  animation: v2Caret 1s steps(1, end) infinite;
}

.v2-word-status {
  position: absolute;
  right: 22px;
  bottom: 20px;
  padding: 8px 10px;
  border: 1px solid rgba(8, 127, 117, 0.2);
  border-radius: 8px;
  color: var(--v2-teal);
  background: rgba(8, 127, 117, 0.08);
  font-size: 12px;
  font-weight: 950;
}

.v2-float-tag {
  position: absolute;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(23, 21, 19, 0.14);
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.9);
  color: #3d3831;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 18px 45px rgba(40, 34, 25, 0.14);
  animation: v2Tag 5s ease-in-out infinite;
}

.v2-float-tag.tag-a {
  top: 12%;
  right: min(29vw, 360px);
}

.v2-float-tag.tag-b {
  top: 70%;
  right: max(40px, calc((100vw - 1100px) / 2));
  animation-delay: 0.7s;
}

.v2-float-tag.tag-c {
  top: 62%;
  right: min(50vw, 620px);
  animation-delay: 1.2s;
}

.v2-proof,
.v2-section,
.v2-final {
  position: relative;
  padding: 92px max(28px, calc((100vw - 1200px) / 2));
}

.v2-proof {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) 1.22fr;
  gap: 34px;
  align-items: end;
  background: #fffaf1;
}

.v2-proof-copy h2,
.v2-section-head h2,
.v2-accuracy-copy h2,
.v2-final-copy h2 {
  margin-top: 14px;
  font-size: 46px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: 0;
}

.v2-proof-copy p:not(.v2-kicker),
.v2-accuracy-copy p,
.v2-final-copy p {
  margin-top: 18px;
  color: var(--v2-muted);
  font-size: 18px;
  line-height: 1.58;
  font-weight: 600;
}

.v2-proof-panels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.v2-proof-card,
.v2-flow-step,
.v2-result-card {
  border: 1px solid rgba(23, 21, 19, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 46px rgba(40, 34, 25, 0.08);
}

.v2-proof-card {
  min-height: 330px;
  padding: 20px;
}

.v2-card-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 28px;
  border: 1px solid rgba(23, 21, 19, 0.12);
  border-radius: 6px;
  color: var(--v2-coral);
  background: rgba(234, 89, 76, 0.08);
  font-size: 12px;
  font-weight: 950;
}

.v2-proof-card h3,
.v2-flow-step h3,
.v2-result-card h3 {
  margin-top: 18px;
  font-size: 22px;
  line-height: 1.1;
  font-weight: 950;
}

.v2-proof-card p,
.v2-flow-step p,
.v2-result-card p {
  margin-top: 12px;
  color: var(--v2-muted);
  font-size: 15px;
  line-height: 1.48;
  font-weight: 600;
}

.v2-mini {
  position: relative;
  height: 112px;
  margin-top: 24px;
  overflow: hidden;
  border: 1px solid rgba(23, 21, 19, 0.12);
  border-radius: 8px;
  background: #fffaf1;
}

.v2-mini span {
  position: absolute;
  display: block;
}

.mini-scan {
  background:
    repeating-linear-gradient(110deg, rgba(23, 21, 19, 0.06) 0 1px, transparent 1px 8px),
    #f4ead6;
}

.mini-scan span:nth-child(1) {
  top: 22px;
  left: 22px;
  width: 96px;
  height: 10px;
  background: var(--v2-ink);
}

.mini-scan span:nth-child(2),
.mini-scan span:nth-child(3) {
  left: 22px;
  width: 150px;
  height: 6px;
  background: rgba(23, 21, 19, 0.28);
}

.mini-scan span:nth-child(2) {
  top: 48px;
}

.mini-scan span:nth-child(3) {
  top: 64px;
  width: 124px;
}

.mini-scan span:nth-child(4) {
  right: 18px;
  bottom: 18px;
  width: 50px;
  height: 50px;
  border: 3px solid rgba(234, 89, 76, 0.65);
  border-radius: 50%;
}

.mini-map {
  background:
    repeating-linear-gradient(90deg, rgba(8, 127, 117, 0.16) 0 1px, transparent 1px 18px),
    repeating-linear-gradient(0deg, rgba(44, 90, 160, 0.13) 0 1px, transparent 1px 18px),
    #f7fbf8;
}

.mini-map span {
  border: 2px solid var(--v2-teal);
  background: rgba(8, 127, 117, 0.08);
  animation: v2MiniPulse 3s ease-in-out infinite;
}

.mini-map span:nth-child(1) {
  top: 16px;
  left: 20px;
  width: 104px;
  height: 20px;
}

.mini-map span:nth-child(2) {
  top: 48px;
  left: 22px;
  width: 158px;
  height: 46px;
  border-color: var(--v2-blue);
  animation-delay: 0.4s;
}

.mini-map span:nth-child(3) {
  top: 20px;
  right: 24px;
  width: 48px;
  height: 62px;
  border-color: var(--v2-coral);
  animation-delay: 0.8s;
}

.mini-map span:nth-child(4) {
  left: 20px;
  bottom: 12px;
  width: 126px;
  height: 3px;
  border: 0;
  background: var(--v2-amber);
}

.mini-word {
  background: #f8fbff;
}

.mini-word span:nth-child(1) {
  top: 0;
  left: 0;
  right: 0;
  height: 24px;
  background: #dfeafb;
}

.mini-word span:nth-child(2) {
  top: 40px;
  left: 22px;
  width: 128px;
  height: 10px;
  background: var(--v2-blue);
}

.mini-word span:nth-child(3) {
  top: 62px;
  left: 22px;
  width: 168px;
  height: 34px;
  border: 1px solid rgba(44, 90, 160, 0.36);
  background:
    linear-gradient(90deg, transparent 33%, rgba(44, 90, 160, 0.22) 33% 34%, transparent 34% 66%, rgba(44, 90, 160, 0.22) 66% 67%, transparent 67%),
    linear-gradient(0deg, transparent 49%, rgba(44, 90, 160, 0.22) 49% 51%, transparent 51%);
}

.mini-word span:nth-child(4) {
  top: 66px;
  left: 116px;
  width: 2px;
  height: 26px;
  background: var(--v2-coral);
  animation: v2Caret 1s steps(1, end) infinite;
}

.v2-section {
  background: #f6efe2;
}

.v2-section-head {
  max-width: 820px;
}

.v2-section-head.compact {
  max-width: 720px;
}

.v2-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 36px;
}

.v2-flow-step {
  position: relative;
  min-height: 360px;
  padding: 20px;
  overflow: hidden;
}

.v2-flow-step::after {
  content: "";
  position: absolute;
  top: 34px;
  right: -15px;
  width: 30px;
  height: 2px;
  background: var(--v2-coral);
}

.v2-flow-step:last-child::after {
  display: none;
}

.v2-flow-step.featured {
  color: #fffaf1;
  background:
    linear-gradient(135deg, rgba(8, 127, 117, 0.82), rgba(23, 21, 19, 0.96)),
    var(--v2-ink);
}

.v2-flow-step.featured p {
  color: rgba(255, 250, 241, 0.75);
}

.v2-step-index {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(23, 21, 19, 0.14);
  border-radius: 8px;
  color: var(--v2-coral);
  background: rgba(234, 89, 76, 0.08);
  font-weight: 950;
}

.v2-flow-step.featured .v2-step-index {
  border-color: rgba(255, 250, 241, 0.24);
  color: var(--v2-amber);
  background: rgba(255, 250, 241, 0.1);
}

.v2-step-visual {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  height: 104px;
  overflow: hidden;
  border: 1px solid rgba(23, 21, 19, 0.11);
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.72);
}

.v2-flow-step.featured .v2-step-visual {
  border-color: rgba(255, 250, 241, 0.18);
  background: rgba(255, 250, 241, 0.1);
}

.v2-step-visual span {
  position: absolute;
  display: block;
}

.upload-visual span:nth-child(1) {
  left: 18px;
  top: 22px;
  width: 64px;
  height: 70px;
  border: 1px solid rgba(23, 21, 19, 0.2);
  background: #fffdf7;
  transform: rotate(-8deg);
  animation: v2Upload 3s ease-in-out infinite;
}

.upload-visual span:nth-child(2) {
  right: 20px;
  top: 26px;
  width: 70px;
  height: 14px;
  background: var(--v2-teal);
}

.upload-visual span:nth-child(3) {
  right: 42px;
  top: 50px;
  width: 28px;
  height: 28px;
  border-right: 4px solid var(--v2-coral);
  border-bottom: 4px solid var(--v2-coral);
  transform: rotate(45deg);
}

.align-visual {
  background:
    repeating-linear-gradient(90deg, rgba(23, 21, 19, 0.06) 0 1px, transparent 1px 20px),
    repeating-linear-gradient(0deg, rgba(23, 21, 19, 0.05) 0 1px, transparent 1px 20px),
    rgba(255, 250, 241, 0.72);
}

.align-visual span:nth-child(1) {
  left: 46px;
  top: 18px;
  width: 92px;
  height: 70px;
  border: 2px solid var(--v2-coral);
  background: rgba(234, 89, 76, 0.08);
  transform: rotate(-10deg);
  animation: v2Align 3.2s ease-in-out infinite;
}

.align-visual span:nth-child(2) {
  left: 46px;
  top: 18px;
  width: 92px;
  height: 70px;
  border: 2px solid var(--v2-teal);
}

.align-visual span:nth-child(3) {
  left: 18px;
  bottom: 16px;
  width: 150px;
  height: 3px;
  background: var(--v2-amber);
}

.ocr-visual span:nth-child(1),
.ocr-visual span:nth-child(2),
.ocr-visual span:nth-child(3) {
  left: 22px;
  height: 12px;
  border-radius: 4px;
  background: rgba(8, 127, 117, 0.2);
  animation: v2OcrBars 2.5s ease-in-out infinite;
}

.ocr-visual span:nth-child(1) {
  top: 24px;
  width: 70px;
}

.ocr-visual span:nth-child(2) {
  top: 48px;
  width: 128px;
  animation-delay: 0.25s;
}

.ocr-visual span:nth-child(3) {
  top: 72px;
  width: 98px;
  animation-delay: 0.5s;
}

.docx-visual span:nth-child(1) {
  top: 18px;
  left: 24px;
  right: 24px;
  height: 66px;
  border: 1px solid rgba(44, 90, 160, 0.35);
  background:
    linear-gradient(90deg, transparent 33%, rgba(44, 90, 160, 0.2) 33% 34%, transparent 34% 66%, rgba(44, 90, 160, 0.2) 66% 67%, transparent 67%),
    linear-gradient(0deg, transparent 49%, rgba(44, 90, 160, 0.2) 49% 51%, transparent 51%);
  animation: v2DocBuild 2.8s ease-in-out infinite;
}

.docx-visual span:nth-child(2) {
  top: 20px;
  left: 24px;
  width: 0;
  height: 4px;
  background: var(--v2-blue);
  animation: v2DocLine 2.8s ease-in-out infinite;
}

.docx-visual span:nth-child(3) {
  left: 24px;
  bottom: 16px;
  width: 86px;
  height: 18px;
  border-radius: 5px;
  color: #fffaf1;
  background: var(--v2-blue);
}

.edit-visual span:nth-child(1) {
  left: 26px;
  top: 18px;
  width: 110px;
  height: 12px;
  background: rgba(255, 250, 241, 0.55);
}

.edit-visual span:nth-child(2) {
  left: 26px;
  top: 48px;
  width: 140px;
  height: 42px;
  border: 1px solid rgba(255, 250, 241, 0.34);
}

.edit-visual span:nth-child(3) {
  left: 86px;
  top: 54px;
  width: 2px;
  height: 30px;
  background: var(--v2-amber);
  animation: v2Caret 1s steps(1, end) infinite;
}

.v2-accuracy {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 46px;
  align-items: center;
  background:
    linear-gradient(180deg, #fffaf1, #f6efe2);
}

.v2-accuracy-copy {
  align-self: start;
  padding-top: 30px;
}

.v2-accuracy-board {
  min-height: 540px;
  border: 1px solid rgba(23, 21, 19, 0.13);
  border-radius: 8px;
  background:
    repeating-linear-gradient(90deg, rgba(8, 127, 117, 0.12) 0 1px, transparent 1px 26px),
    repeating-linear-gradient(0deg, rgba(44, 90, 160, 0.1) 0 1px, transparent 1px 26px),
    #edf6f2;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.62), 0 24px 70px rgba(40, 34, 25, 0.12);
}

.v2-blueprint-page {
  position: relative;
  width: min(360px, 72%);
  height: 470px;
  margin: 36px auto;
  border: 1px solid rgba(23, 21, 19, 0.18);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.92);
  box-shadow: 12px 12px 0 rgba(8, 127, 117, 0.14);
  animation: v2Blueprint 4.8s ease-in-out infinite;
}

.v2-blueprint-ruler {
  position: absolute;
  background:
    repeating-linear-gradient(90deg, rgba(23, 21, 19, 0.55) 0 1px, transparent 1px 15px),
    var(--v2-amber);
}

.v2-blueprint-ruler.x {
  left: 28px;
  right: 28px;
  top: 26px;
  height: 5px;
}

.v2-blueprint-ruler.y {
  left: 26px;
  top: 52px;
  bottom: 34px;
  width: 5px;
  background:
    repeating-linear-gradient(0deg, rgba(23, 21, 19, 0.55) 0 1px, transparent 1px 15px),
    var(--v2-amber);
}

.v2-blueprint-box {
  position: absolute;
  border: 2px solid var(--v2-teal);
  background: rgba(8, 127, 117, 0.08);
}

.v2-blueprint-box.box-a {
  left: 58px;
  top: 74px;
  width: 178px;
  height: 28px;
}

.v2-blueprint-box.box-b {
  left: 58px;
  top: 124px;
  width: 246px;
  height: 70px;
  border-color: var(--v2-blue);
}

.v2-blueprint-box.box-c {
  left: 58px;
  bottom: 62px;
  width: 184px;
  height: 4px;
  border: 0;
  background: var(--v2-coral);
}

.v2-blueprint-table {
  position: absolute;
  left: 58px;
  top: 230px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: 246px;
  height: 116px;
  border: 1px solid rgba(44, 90, 160, 0.42);
}

.v2-blueprint-table span {
  border-right: 1px solid rgba(44, 90, 160, 0.22);
  border-bottom: 1px solid rgba(44, 90, 160, 0.22);
}

.v2-blueprint-pin {
  position: absolute;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 6px;
  color: #fffaf1;
  background: var(--v2-ink);
  font-size: 11px;
  font-weight: 950;
}

.v2-blueprint-pin.pin-a {
  top: 92px;
  right: 32px;
}

.v2-blueprint-pin.pin-b {
  top: 310px;
  right: 20px;
  background: var(--v2-blue);
}

.v2-blueprint-pin.pin-c {
  left: 44px;
  top: 358px;
  background: var(--v2-coral);
}

.v2-check-list {
  display: grid;
  gap: 12px;
  margin-top: 26px;
  padding: 0;
  list-style: none;
}

.v2-check-list li {
  position: relative;
  padding-left: 32px;
  color: #38322d;
  font-size: 16px;
  font-weight: 750;
}

.v2-check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 18px;
  height: 18px;
  border: 2px solid var(--v2-teal);
  border-radius: 4px;
  background:
    linear-gradient(135deg, transparent 0 48%, var(--v2-teal) 48% 58%, transparent 58%);
}

.v2-accuracy-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 64px;
  margin-top: 34px;
  padding: 0 14px 0 28px;
  border: 2px solid var(--v2-ink);
  border-radius: 8px;
  color: #fffaf1;
  background: var(--v2-ink);
  font-size: 16px;
  font-weight: 950;
  letter-spacing: 0;
  text-decoration: none;
  box-shadow:
    9px 9px 0 var(--v2-amber),
    inset 0 -6px 0 var(--v2-coral);
  overflow: hidden;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.v2-accuracy-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0 38%, rgba(255, 255, 255, 0.16) 48%, transparent 58% 100%);
  opacity: 0;
  transform: translateX(-70%);
  pointer-events: none;
  transition: opacity 160ms ease, transform 420ms ease;
}

.v2-accuracy-cta span:first-child {
  position: relative;
  z-index: 1;
  color: #fffaf1 !important;
  -webkit-text-fill-color: #fffaf1;
  opacity: 1;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

.v2-accuracy-cta:hover {
  color: #fffaf1;
  background: #0f0d0b;
  transform: translate(-2px, -2px);
  box-shadow:
    12px 12px 0 var(--v2-amber),
    inset 0 -6px 0 var(--v2-coral);
}

.v2-accuracy-cta:hover::before {
  opacity: 1;
  transform: translateX(90%);
}

.v2-accuracy-cta-icon {
  position: relative;
  z-index: 1;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 8px;
  color: var(--v2-ink);
  background: var(--v2-amber);
  font-size: 28px;
  line-height: 1;
  transition: transform 160ms ease, background 160ms ease;
}

.v2-accuracy-cta:hover .v2-accuracy-cta-icon {
  background: #ffd15d;
  transform: translateX(4px);
}

.v2-result {
  background: #fffaf1;
}

.v2-result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 36px;
}

.v2-result-card {
  min-height: 220px;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.5)),
    #fffdf7;
}

.v2-result-card::before {
  content: "";
  display: block;
  width: 56px;
  height: 56px;
  border: 2px solid var(--v2-ink);
  border-radius: 8px;
  background:
    linear-gradient(90deg, transparent 48%, rgba(23, 21, 19, 0.18) 48% 52%, transparent 52%),
    linear-gradient(0deg, transparent 48%, rgba(23, 21, 19, 0.18) 48% 52%, transparent 52%),
    rgba(241, 183, 66, 0.28);
  box-shadow: 6px 6px 0 rgba(8, 127, 117, 0.22);
}

.v2-result-card:nth-child(2)::before {
  background:
    linear-gradient(90deg, transparent 32%, rgba(44, 90, 160, 0.26) 32% 35%, transparent 35% 65%, rgba(44, 90, 160, 0.26) 65% 68%, transparent 68%),
    linear-gradient(0deg, transparent 32%, rgba(44, 90, 160, 0.26) 32% 35%, transparent 35% 65%, rgba(44, 90, 160, 0.26) 65% 68%, transparent 68%),
    rgba(44, 90, 160, 0.1);
}

.v2-result-card:nth-child(3)::before {
  background:
    linear-gradient(0deg, transparent 45%, var(--v2-coral) 45% 50%, transparent 50% 68%, var(--v2-coral) 68% 73%, transparent 73%),
    rgba(234, 89, 76, 0.08);
}

.v2-final {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 40px;
  align-items: center;
  min-height: 560px;
  overflow: hidden;
  color: #fffaf1;
  background:
    linear-gradient(90deg, rgba(23, 21, 19, 0.96), rgba(23, 21, 19, 0.88)),
    var(--v2-ink);
}

.v2-final::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 250, 241, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 250, 241, 0.05) 1px, transparent 1px);
  background-size: 34px 34px;
}

.v2-final-copy,
.v2-final-visual {
  position: relative;
  z-index: 1;
}

.v2-final-copy .v2-kicker {
  color: var(--v2-amber);
}

.v2-final-copy p {
  color: rgba(255, 250, 241, 0.74);
}

.v2-final-copy .v2-button {
  margin-top: 30px;
}

.v2-final-visual {
  min-height: 380px;
}

.v2-final-stack {
  position: absolute;
  width: 230px;
  height: 310px;
  border: 1px solid rgba(255, 250, 241, 0.22);
  border-radius: 8px;
  background: #fffaf1;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.24);
}

.v2-final-stack::before {
  content: "";
  position: absolute;
  left: 28px;
  right: 28px;
  top: 54px;
  height: 14px;
  background: var(--v2-blue);
}

.v2-final-stack::after {
  content: "";
  position: absolute;
  left: 28px;
  right: 28px;
  top: 96px;
  height: 92px;
  border: 1px solid rgba(44, 90, 160, 0.36);
  background:
    linear-gradient(90deg, transparent 33%, rgba(44, 90, 160, 0.18) 33% 34%, transparent 34% 66%, rgba(44, 90, 160, 0.18) 66% 67%, transparent 67%),
    linear-gradient(0deg, transparent 49%, rgba(44, 90, 160, 0.18) 49% 51%, transparent 51%);
}

.v2-final-stack.stack-a {
  left: 26px;
  top: 48px;
  transform: rotate(-8deg);
  opacity: 0.72;
}

.v2-final-stack.stack-b {
  left: 150px;
  top: 18px;
  transform: rotate(5deg);
  animation: v2Stack 5s ease-in-out infinite;
}

.v2-final-stack.stack-c {
  left: 270px;
  top: 74px;
  transform: rotate(12deg);
  opacity: 0.72;
}

.v2-final-badge {
  position: absolute;
  left: 326px;
  top: 264px;
  display: grid;
  width: 92px;
  height: 92px;
  place-items: center;
  border: 1px solid rgba(255, 250, 241, 0.2);
  border-radius: 8px;
  color: var(--v2-ink);
  background: var(--v2-amber);
  font-size: 22px;
  font-weight: 950;
  box-shadow: 8px 8px 0 var(--v2-coral);
  animation: v2Badge 4s ease-in-out infinite;
}

@keyframes v2PageFloat {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50% { transform: translateY(-12px) rotate(-3deg); }
}

@keyframes v2WordFloat {
  0%, 100% { transform: translateY(0) rotate(3deg); }
  50% { transform: translateY(10px) rotate(1deg); }
}

@keyframes v2ScanBeam {
  0%, 100% { transform: translateY(0); opacity: 0; }
  18%, 78% { opacity: 1; }
  50% { transform: translateY(242px); opacity: 1; }
}

@keyframes v2Spin {
  to { transform: rotate(360deg); }
}

@keyframes v2Node {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes v2Path {
  0% { background-position: 120% 0; opacity: 0.3; }
  50% { opacity: 1; }
  100% { background-position: -80% 0; opacity: 0.3; }
}

@keyframes v2Cell {
  0%, 100% { background: rgba(8, 127, 117, 0.12); }
  50% { background: rgba(8, 127, 117, 0.32); }
}

@keyframes v2Caret {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@keyframes v2Tag {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

@keyframes v2MiniPulse {
  0%, 100% { transform: scale(1); opacity: 0.75; }
  50% { transform: scale(1.03); opacity: 1; }
}

@keyframes v2Upload {
  0%, 100% { transform: translateX(0) rotate(-8deg); }
  50% { transform: translateX(32px) rotate(0deg); }
}

@keyframes v2Align {
  0%, 100% { transform: rotate(-10deg); }
  50% { transform: rotate(0deg); }
}

@keyframes v2OcrBars {
  0%, 100% { transform: translateX(0); background: rgba(8, 127, 117, 0.18); }
  50% { transform: translateX(24px); background: rgba(8, 127, 117, 0.46); }
}

@keyframes v2DocBuild {
  0%, 100% { transform: scaleX(0.88); transform-origin: left; }
  50% { transform: scaleX(1); transform-origin: left; }
}

@keyframes v2DocLine {
  0%, 100% { width: 0; }
  50% { width: 118px; }
}

@keyframes v2Blueprint {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes v2Stack {
  0%, 100% { transform: translateY(0) rotate(5deg); }
  50% { transform: translateY(-16px) rotate(2deg); }
}

@keyframes v2Badge {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(-5deg); }
}

@media (max-width: 1180px) {
  .v2-stage {
    opacity: 0.62;
  }

  .v2-scan-page {
    right: 52vw;
  }

  .v2-engine {
    right: 31vw;
  }

  .v2-word-page {
    right: 20px;
  }

  .v2-flow {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .v2-flow-step::after {
    display: none;
  }

  .v2-proof,
  .v2-accuracy,
  .v2-final {
    grid-template-columns: 1fr;
  }

  .v2-final-visual {
    order: 2;
  }
}

@media (max-width: 860px) {
  .v2-nav {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 12px;
    min-height: 66px;
    padding: 10px 18px;
  }

  .v2-links {
    display: none;
  }

  .v2-brand {
    font-size: 19px;
  }

  .v2-brand-mark {
    width: 36px;
    height: 36px;
    box-shadow: 4px 4px 0 var(--v2-amber);
  }

  .v2-support-link {
    min-height: 40px;
    padding: 0 10px;
    box-shadow: 4px 4px 0 var(--v2-amber);
    font-size: 10px;
  }

  .v2-nav-cta {
    min-width: 176px;
    min-height: 40px;
    padding: 0 8px;
    box-shadow: 4px 4px 0 var(--v2-coral);
    font-size: 8.5px;
  }

  .v2-hero {
    min-height: calc(100svh - 104px);
    padding: 46px 18px 44px;
    align-items: flex-start;
  }

  .v2-hero-copy {
    width: 100%;
    max-width: 540px;
    margin-left: 0;
  }

  .v2-hero h1 {
    font-size: 58px;
  }

  .v2-hero-subtitle {
    max-width: 510px;
    font-size: 18px;
  }

  .v2-hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    max-width: 100%;
    margin-top: 24px;
  }

  .v2-hero-stats div {
    min-height: 92px;
    padding: 12px;
  }

  .v2-hero-stats dt {
    font-size: 18px;
  }

  .v2-hero-stats dd {
    font-size: 12px;
  }

  .v2-stage {
    opacity: 0.34;
  }

  .v2-stage-grid {
    right: -150px;
    width: 560px;
    height: 420px;
  }

  .v2-scan-page {
    top: auto;
    right: 190px;
    bottom: 34px;
    width: 180px;
    height: 244px;
    padding: 16px;
  }

  .v2-word-page {
    top: auto;
    right: -22px;
    bottom: 22px;
    width: 210px;
    height: 282px;
    padding: 58px 16px 18px;
  }

  .v2-engine,
  .v2-float-tag,
  .v2-data-path,
  .v2-scan-hole {
    display: none;
  }

  .v2-page-label,
  .v2-word-label,
  .v2-word-toolbar,
  .v2-word-status {
    display: none;
  }

  .v2-scan-title {
    width: 88px;
    margin-top: 20px;
  }

  .v2-scan-line.line-a,
  .v2-scan-line.line-b,
  .v2-scan-line.line-c {
    width: 132px;
  }

  .v2-scan-table {
    width: 140px;
    height: 72px;
    margin-top: 18px;
  }

  .v2-scan-fill {
    width: 126px;
    margin-top: 14px;
  }

  .v2-stamp {
    width: 44px;
    height: 44px;
    right: 16px;
    bottom: 20px;
    font-size: 9px;
  }

  .v2-word-topbar {
    height: 34px;
  }

  .v2-word-title {
    width: 92px;
  }

  .v2-word-text.text-a {
    width: 150px;
  }

  .v2-word-text.text-b {
    width: 118px;
  }

  .v2-word-table {
    width: 164px;
    height: 78px;
    margin-top: 18px;
  }

  .v2-word-caret {
    left: 112px;
    top: 188px;
  }

  .v2-proof,
  .v2-section,
  .v2-final {
    padding: 68px 18px;
  }

  .v2-proof-copy h2,
  .v2-section-head h2,
  .v2-accuracy-copy h2,
  .v2-final-copy h2 {
    font-size: 34px;
  }

  .v2-proof-copy p:not(.v2-kicker),
  .v2-accuracy-copy p,
  .v2-final-copy p {
    font-size: 16px;
  }

  .v2-accuracy-copy {
    padding-top: 0;
  }

  .v2-proof-panels,
  .v2-result-grid,
  .v2-flow {
    grid-template-columns: 1fr;
  }

  .v2-proof-card {
    min-height: 290px;
  }

  .v2-flow-step {
    min-height: 310px;
  }

  .v2-accuracy-board {
    min-height: 420px;
  }

  .v2-blueprint-page {
    width: min(310px, 86%);
    height: 360px;
    margin: 28px auto;
  }

  .v2-blueprint-box.box-a {
    width: 142px;
  }

  .v2-blueprint-box.box-b,
  .v2-blueprint-table {
    width: 190px;
  }

  .v2-blueprint-table {
    height: 88px;
    top: 190px;
  }

  .v2-blueprint-box.box-c {
    bottom: 42px;
  }

  .v2-blueprint-pin.pin-a,
  .v2-blueprint-pin.pin-b {
    right: 14px;
  }

  .v2-final {
    min-height: auto;
  }

  .v2-final-visual {
    min-height: 300px;
  }

  .v2-final-stack {
    width: 160px;
    height: 218px;
  }

  .v2-final-stack.stack-a {
    left: 4px;
  }

  .v2-final-stack.stack-b {
    left: 96px;
  }

  .v2-final-stack.stack-c {
    left: 188px;
  }

  .v2-final-badge {
    left: 214px;
    top: 200px;
    width: 72px;
    height: 72px;
    font-size: 17px;
  }
}

@media (max-width: 460px) {
  .v2-nav {
    grid-template-columns: 1fr 1fr;
  }

  .v2-brand {
    grid-column: 1 / -1;
  }

  .v2-support-link,
  .v2-nav-cta {
    width: 100%;
  }

  .v2-nav-cta {
    min-width: 0;
    font-size: 8px;
  }

  .v2-hero {
    min-height: calc(100svh - 92px);
  }

  .v2-hero h1 {
    font-size: 48px;
  }

  .v2-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .v2-hero-stats {
    display: none;
  }

  .v2-button {
    width: 100%;
  }

  .v2-accuracy-cta {
    width: 100%;
    min-height: 60px;
    padding: 0 12px 0 20px;
  }

  .v2-stage {
    opacity: 0.24;
  }

  .v2-scan-page {
    right: 130px;
    bottom: 14px;
  }

  .v2-word-page {
    right: -54px;
    bottom: 10px;
  }

  .v2-final-stack.stack-c {
    display: none;
  }

  .v2-final-badge {
    left: 188px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-v2 *,
  .landing-v2 *::before,
  .landing-v2 *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* Landing v2 hero with real document sample */
.landing-v2 .v2-hero-copy {
  max-width: 600px;
}

.landing-v2 .v2-hero-stats {
  margin-top: 38px;
}

.landing-v2 .v2-stage-grid {
  top: 62px;
  right: max(18px, calc((100vw - 1220px) / 2));
  width: min(940px, 62vw);
  height: min(650px, 72vh);
  background:
    repeating-linear-gradient(90deg, rgba(8, 127, 117, 0.12) 0 1px, transparent 1px 32px),
    repeating-linear-gradient(0deg, rgba(44, 90, 160, 0.1) 0 1px, transparent 1px 32px),
    linear-gradient(135deg, rgba(255, 250, 241, 0.38), rgba(8, 127, 117, 0.1));
}

.landing-v2 .v2-scan-page.v2-scan-page-real {
  top: 12%;
  right: min(43vw, 640px);
  width: 336px;
  height: 446px;
  padding: 16px;
  border-color: rgba(23, 21, 19, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 250, 241, 0.96), rgba(239, 226, 203, 0.94)),
    #fffaf1;
  box-shadow: 0 30px 80px rgba(40, 34, 25, 0.24), 10px 10px 0 rgba(241, 183, 66, 0.24);
  transform: rotate(-4deg);
}

.landing-v2 .v2-scan-page-real .v2-page-label {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(23, 21, 19, 0.12);
  border-radius: 6px;
  color: rgba(23, 21, 19, 0.74);
  background: rgba(255, 255, 255, 0.58);
  font-size: 11px;
}

.v2-scan-image-wrap {
  position: relative;
  height: 344px;
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid rgba(23, 21, 19, 0.2);
  border-radius: 6px;
  background: #fff;
  box-shadow: inset 0 0 0 8px rgba(255, 250, 241, 0.72);
}

.v2-scan-image-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.26), transparent 34%),
    repeating-linear-gradient(90deg, rgba(23, 21, 19, 0.02) 0 1px, transparent 1px 5px);
  pointer-events: none;
}

.v2-scan-image-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
  filter: contrast(1.04) saturate(0.92);
}

.v2-scan-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
  margin-top: 12px;
  color: rgba(23, 21, 19, 0.74);
  font-size: 12px;
  font-weight: 950;
}

.v2-scan-caption::after {
  content: "PNG";
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 5px;
  color: var(--v2-teal);
  background: rgba(8, 127, 117, 0.1);
}

.v2-scan-corner {
  position: absolute;
  z-index: 4;
  width: 28px;
  height: 28px;
  border-color: var(--v2-coral);
  opacity: 0.78;
}

.v2-scan-corner.corner-a {
  top: 52px;
  left: 16px;
  border-top: 3px solid;
  border-left: 3px solid;
}

.v2-scan-corner.corner-b {
  right: 16px;
  bottom: 62px;
  border-right: 3px solid;
  border-bottom: 3px solid;
}

.landing-v2 .v2-scan-page-real .v2-scan-beam {
  left: 12px;
  right: 12px;
  top: 70px;
  z-index: 3;
  height: 54px;
  border-top: 1px solid rgba(8, 127, 117, 0.24);
  border-bottom: 1px solid rgba(8, 127, 117, 0.24);
  background:
    linear-gradient(180deg, transparent, rgba(8, 127, 117, 0.24), rgba(241, 183, 66, 0.18), transparent);
  mix-blend-mode: multiply;
}

.landing-v2 .v2-engine {
  top: 29%;
  right: min(30vw, 500px);
  width: 190px;
  height: 190px;
}

.landing-v2 .v2-engine-core {
  inset: 46px;
  box-shadow: 6px 6px 0 var(--v2-amber);
}

.landing-v2 .v2-data-path.path-a {
  top: 84px;
  left: -174px;
  width: 182px;
}

.landing-v2 .v2-data-path.path-b {
  top: 104px;
  right: -176px;
  width: 190px;
}

.landing-v2 .v2-word-page {
  top: 9%;
  right: max(28px, calc((100vw - 1220px) / 2));
  width: 408px;
  height: 526px;
  padding: 78px 24px 22px;
  background:
    linear-gradient(180deg, #fffdf7, #fbf6ec),
    #fffdf7;
  box-shadow: 0 34px 90px rgba(40, 34, 25, 0.24), -8px 8px 0 rgba(8, 127, 117, 0.14);
  transform: rotate(2deg);
}

.landing-v2 .v2-word-label {
  top: 52px;
  color: var(--v2-blue);
}

.landing-v2 .v2-word-toolbar {
  margin-bottom: 12px;
}

.v2-word-document {
  position: relative;
  height: 344px;
  overflow: hidden;
  padding: 16px 18px 18px;
  border: 1px solid rgba(44, 90, 160, 0.18);
  border-radius: 6px;
  background:
    linear-gradient(90deg, rgba(44, 90, 160, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(44, 90, 160, 0.04) 1px, transparent 1px),
    #fff;
  background-size: 28px 28px;
  color: #191714;
  font-family: Arial, sans-serif;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
}

.v2-word-company {
  text-align: center;
  font-size: 10px;
  font-weight: 800;
}

.v2-word-heading {
  margin-top: 6px;
  text-align: center;
  font-size: 15px;
  line-height: 1.15;
  font-weight: 900;
}

.v2-word-fill {
  display: grid;
  grid-template-columns: 1.1fr 1fr 0.42fr;
  align-items: end;
  gap: 8px;
  margin-top: 18px;
  font-size: 9px;
  font-weight: 800;
}

.v2-word-fill strong,
.v2-word-range strong,
.v2-word-form-lines strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 16px;
  border-bottom: 1px solid rgba(23, 21, 19, 0.72);
  font-size: 12px;
  font-style: normal;
}

.v2-word-fill em {
  font-style: normal;
}

.v2-word-range {
  display: grid;
  grid-template-columns: 30px 1fr 38px 1fr;
  align-items: end;
  gap: 8px;
  margin-top: 18px;
  font-size: 12px;
  font-weight: 850;
}

.v2-word-form-lines {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  gap: 7px 10px;
  margin-top: 18px;
  font-size: 9px;
  font-weight: 850;
}

.v2-word-form-lines strong {
  justify-content: center;
}

.v2-word-form-lines .is-editing {
  color: var(--v2-teal);
  background: rgba(8, 127, 117, 0.08);
  animation: v2EditableText 2.8s ease-in-out infinite;
}

.v2-word-real-table {
  display: grid;
  grid-template-columns: 2.15fr 1fr;
  margin-top: 18px;
  border: 1px solid rgba(23, 21, 19, 0.72);
  font-size: 8.5px;
  line-height: 1.15;
  font-weight: 800;
}

.v2-word-real-table > div {
  position: relative;
  min-height: 30px;
  padding: 7px 8px;
  border-right: 1px solid rgba(23, 21, 19, 0.72);
  border-bottom: 1px solid rgba(23, 21, 19, 0.72);
  background: rgba(255, 255, 255, 0.78);
}

.v2-word-real-table > div:nth-child(2n) {
  border-right: 0;
}

.v2-word-real-table > div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.v2-word-real-table .head {
  min-height: 34px;
  text-align: center;
  font-size: 9px;
  font-weight: 900;
  background: rgba(244, 234, 214, 0.7);
}

.v2-word-real-table .typing-row {
  color: #111;
}

.v2-word-real-table .typing-row::after {
  content: "";
  position: absolute;
  left: 8px;
  bottom: 6px;
  width: 54%;
  height: 2px;
  background: var(--v2-coral);
  animation: v2TypingUnderline 2.8s ease-in-out infinite;
}

.v2-word-real-table .cell-active {
  color: var(--v2-teal);
  background: rgba(8, 127, 117, 0.16);
  box-shadow: inset 0 0 0 2px rgba(8, 127, 117, 0.32);
  animation: v2CellEdit 2.8s ease-in-out infinite;
}

.v2-word-real-table .cell-active .v2-word-caret {
  position: relative;
  left: 6px;
  top: 5px;
  display: inline-block;
  width: 2px;
  height: 18px;
  background: var(--v2-coral);
  vertical-align: middle;
}

.v2-word-sign {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 14px;
  font-size: 9px;
  font-weight: 850;
}

.v2-word-sign strong {
  border-bottom: 1px solid rgba(23, 21, 19, 0.72);
  text-align: center;
}

.v2-edit-chip {
  position: absolute;
  right: 24px;
  bottom: 66px;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(8, 127, 117, 0.2);
  border-radius: 8px;
  color: var(--v2-teal);
  background: rgba(255, 250, 241, 0.92);
  font-size: 12px;
  font-weight: 950;
  box-shadow: 0 14px 34px rgba(40, 34, 25, 0.14);
  animation: v2EditChip 3.2s ease-in-out infinite;
}

.landing-v2 .v2-word-status {
  right: 22px;
  bottom: 20px;
  min-height: 34px;
  padding: 0 12px;
  font-size: 12px;
}

@keyframes v2EditableText {
  0%, 100% { box-shadow: inset 0 -2px 0 rgba(8, 127, 117, 0.16); }
  50% { box-shadow: inset 0 -20px 0 rgba(8, 127, 117, 0.14); }
}

@keyframes v2TypingUnderline {
  0%, 100% { width: 18%; opacity: 0.3; }
  50% { width: 78%; opacity: 1; }
}

@keyframes v2CellEdit {
  0%, 100% { background: rgba(8, 127, 117, 0.1); }
  50% { background: rgba(8, 127, 117, 0.24); }
}

@keyframes v2EditChip {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@media (max-width: 1180px) {
  .landing-v2 .v2-scan-page.v2-scan-page-real {
    right: 50vw;
    width: 300px;
    height: 404px;
  }

  .landing-v2 .v2-word-page {
    width: 360px;
    height: 492px;
  }

  .v2-scan-image-wrap {
    height: 306px;
  }
}

@media (max-width: 860px) {
  .landing-v2 .v2-stage {
    opacity: 0.52;
  }

  .landing-v2 .v2-scan-page.v2-scan-page-real {
    right: 184px;
    bottom: 18px;
    width: 190px;
    height: 256px;
    padding: 10px;
  }

  .landing-v2 .v2-word-page {
    right: -20px;
    bottom: 8px;
    width: 238px;
    height: 316px;
    padding: 46px 12px 12px;
  }

  .v2-scan-image-wrap {
    height: 184px;
    margin-top: 8px;
  }

  .v2-scan-image-wrap img {
    padding: 4px;
  }

  .v2-scan-caption,
  .v2-scan-corner,
  .landing-v2 .v2-scan-page-real .v2-page-label,
  .landing-v2 .v2-word-label,
  .landing-v2 .v2-word-toolbar,
  .v2-edit-chip {
    display: none;
  }

  .landing-v2 .v2-word-topbar {
    height: 32px;
  }

  .v2-word-document {
    height: 240px;
    padding: 10px;
  }

  .v2-word-company {
    font-size: 8px;
  }

  .v2-word-heading {
    font-size: 10px;
  }

  .v2-word-fill,
  .v2-word-form-lines {
    margin-top: 10px;
    font-size: 6px;
    gap: 5px;
  }

  .v2-word-fill strong,
  .v2-word-range strong,
  .v2-word-form-lines strong {
    min-height: 12px;
    font-size: 7px;
  }

  .v2-word-range {
    margin-top: 10px;
    font-size: 7px;
    gap: 5px;
  }

  .v2-word-real-table {
    margin-top: 10px;
    font-size: 6px;
  }

  .v2-word-real-table > div {
    min-height: 21px;
    padding: 4px;
  }

  .v2-word-real-table .head {
    min-height: 24px;
    font-size: 6px;
  }

  .v2-word-sign,
  .landing-v2 .v2-word-status {
    display: none;
  }
}

@media (max-width: 460px) {
  .landing-v2 .v2-stage {
    opacity: 0.34;
  }

  .landing-v2 .v2-scan-page.v2-scan-page-real {
    right: 126px;
    bottom: 8px;
  }

  .landing-v2 .v2-word-page {
    right: -72px;
    bottom: 2px;
  }
}

/* Landing v2 hero cleanup */
.landing-v2 .v2-hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 560px;
  margin-top: 24px;
}

.landing-v2 .v2-hero-notes span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid rgba(23, 21, 19, 0.12);
  border-radius: 8px;
  color: rgba(23, 21, 19, 0.74);
  background: rgba(255, 250, 241, 0.72);
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(40, 34, 25, 0.07);
}

.landing-v2 .v2-hero-notes span:first-child,
.landing-v2 .v2-hero-notes span:nth-child(4) {
  color: var(--v2-teal);
  background: rgba(8, 127, 117, 0.08);
}

.landing-v2 .v2-hero-notes span:nth-child(2) {
  color: var(--v2-blue);
  background: rgba(44, 90, 160, 0.08);
}

.landing-v2 .v2-hero-notes span:nth-child(5) {
  color: var(--v2-coral);
  background: rgba(234, 89, 76, 0.08);
}

.landing-v2 .v2-hero-stats {
  margin-top: 24px;
}

.landing-v2 .v2-engine {
  top: 31%;
  right: min(31vw, 498px);
  width: 174px;
  height: 174px;
  opacity: 0.58;
  mix-blend-mode: multiply;
}

.landing-v2 .v2-engine-ring {
  border-color: rgba(8, 127, 117, 0.28);
}

.landing-v2 .v2-engine-ring.ring-b {
  inset: 34px;
  border-color: rgba(44, 90, 160, 0.2);
}

.landing-v2 .v2-engine-ring::before,
.landing-v2 .v2-engine-ring::after {
  width: 10px;
  height: 10px;
  opacity: 0.82;
}

.landing-v2 .v2-engine-core,
.landing-v2 .v2-engine-node,
.landing-v2 .v2-data-path,
.landing-v2 .v2-float-tag,
.landing-v2 .v2-edit-chip {
  display: none;
}

@media (max-width: 860px) {
  .landing-v2 .v2-hero-notes {
    max-width: 460px;
    margin-top: 18px;
  }

  .landing-v2 .v2-hero-notes span {
    min-height: 28px;
    padding: 0 9px;
    font-size: 11px;
  }
}

@media (max-width: 460px) {
  .landing-v2 .v2-hero-notes {
    display: none;
  }
}

/* Landing v2 Word editing demo */
.landing-v2 .v2-word-page {
  width: 438px;
  height: 572px;
  padding: 126px 22px 22px;
}

.landing-v2 .v2-word-topbar {
  height: 34px;
  background: #2f5d9f;
}

.landing-v2 .v2-word-topbar span {
  width: 9px;
  height: 9px;
}

.landing-v2 .v2-word-label,
.landing-v2 .v2-word-toolbar {
  display: none;
}

.v2-word-ribbon {
  position: absolute;
  top: 34px;
  left: 0;
  right: 0;
  height: 88px;
  overflow: hidden;
  border-bottom: 1px solid rgba(23, 21, 19, 0.12);
  background:
    linear-gradient(180deg, #2f5d9f 0 30px, #f7f7f7 30px 100%);
}

.v2-ribbon-title {
  position: absolute;
  top: 6px;
  left: 18px;
  right: 18px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 10px;
  font-weight: 800;
  text-align: center;
}

.v2-ribbon-tabs {
  position: absolute;
  top: 30px;
  left: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  height: 22px;
  color: #315a98;
  font-size: 9px;
  font-weight: 850;
}

.v2-ribbon-tabs span:first-child {
  color: #111;
  border-bottom: 2px solid #2f5d9f;
}

.v2-ribbon-tabs strong {
  margin-left: auto;
  padding-left: 14px;
  color: rgba(23, 21, 19, 0.56);
  font-weight: 800;
}

.v2-ribbon-tabs strong::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 5px;
  border: 1px solid #2f5d9f;
  border-radius: 50%;
  vertical-align: -1px;
}

.v2-ribbon-tools {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 8px;
  display: grid;
  grid-template-columns: 64px 30px repeat(4, 20px) 1fr;
  gap: 6px;
  align-items: center;
}

.v2-ribbon-select,
.v2-ribbon-size,
.v2-ribbon-tools span,
.v2-ribbon-style {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  border: 1px solid rgba(23, 21, 19, 0.16);
  border-radius: 3px;
  background: #fff;
  color: #333;
  font-size: 9px;
  font-weight: 800;
}

.v2-ribbon-tools span {
  color: #2f5d9f;
}

.v2-ribbon-tools .mark {
  background:
    linear-gradient(0deg, #f5d935 0 5px, transparent 5px),
    #fff;
}

.v2-ribbon-style {
  justify-content: flex-start;
  min-width: 96px;
  padding-left: 9px;
  color: #2f5d9f;
  font-size: 15px;
  font-family: Georgia, serif;
}

.landing-v2 .v2-word-document {
  height: 356px;
  padding-top: 15px;
}

.v2-edit-field {
  position: relative;
  overflow: visible;
  background: rgba(255, 255, 255, 0.88);
  transition: background 160ms ease;
}

.v2-edit-field .edit-old,
.v2-edit-field .edit-new {
  position: absolute;
  inset: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.v2-edit-field .edit-new {
  opacity: 0;
  color: var(--v2-teal);
}

.v2-edit-field .edit-caret {
  position: absolute;
  top: 1px;
  left: calc(50% + 10px);
  width: 2px;
  height: 17px;
  background: var(--v2-coral);
  opacity: 0;
}

.v2-edit-field.edit-one {
  animation: v2FieldOneFocus 8.4s ease-in-out infinite;
}

.v2-edit-field.edit-one .edit-old {
  animation: v2ValueOneOld 8.4s steps(1, end) infinite;
}

.v2-edit-field.edit-one .edit-new {
  animation: v2ValueOneNew 8.4s steps(1, end) infinite;
}

.v2-edit-field.edit-one .edit-caret {
  animation: v2CaretOne 8.4s steps(1, end) infinite;
}

.v2-edit-field.edit-two {
  animation: v2FieldTwoFocus 8.4s ease-in-out infinite;
}

.v2-edit-field.edit-two .edit-old {
  animation: v2ValueTwoOld 8.4s steps(1, end) infinite;
}

.v2-edit-field.edit-two .edit-new {
  animation: v2ValueTwoNew 8.4s steps(1, end) infinite;
}

.v2-edit-field.edit-two .edit-caret {
  left: calc(50% + 15px);
  animation: v2CaretTwo 8.4s steps(1, end) infinite;
}

.v2-mouse-cursor {
  position: absolute;
  z-index: 8;
  top: 132px;
  left: 78px;
  width: 0;
  height: 0;
  border-top: 17px solid var(--v2-ink);
  border-right: 11px solid transparent;
  filter: drop-shadow(2px 3px 0 rgba(241, 183, 66, 0.8));
  animation: v2MouseEdit 8.4s ease-in-out infinite;
}

.v2-mouse-cursor::after {
  content: "";
  position: absolute;
  left: 2px;
  top: 11px;
  width: 7px;
  height: 12px;
  border-radius: 2px;
  background: var(--v2-ink);
  transform: rotate(-25deg);
  transform-origin: top left;
}

@keyframes v2MouseEdit {
  0% { transform: translate(0, 0); opacity: 0; }
  8% { opacity: 1; }
  20% { transform: translate(134px, 31px); opacity: 1; }
  32% { transform: translate(134px, 31px) scale(0.92); opacity: 1; }
  42% { transform: translate(134px, 31px); opacity: 1; }
  58% { transform: translate(282px, 31px); opacity: 1; }
  72% { transform: translate(282px, 31px) scale(0.92); opacity: 1; }
  88% { transform: translate(282px, 31px); opacity: 1; }
  100% { transform: translate(322px, 60px); opacity: 0; }
}

@keyframes v2FieldOneFocus {
  0%, 18%, 48%, 100% { background: rgba(255, 255, 255, 0.88); box-shadow: none; }
  20%, 42% { background: rgba(8, 127, 117, 0.12); box-shadow: inset 0 0 0 2px rgba(8, 127, 117, 0.28); }
}

@keyframes v2ValueOneOld {
  0%, 30% { opacity: 1; }
  31%, 100% { opacity: 0; }
}

@keyframes v2ValueOneNew {
  0%, 32% { opacity: 0; }
  33%, 100% { opacity: 1; }
}

@keyframes v2CaretOne {
  0%, 19%, 23%, 27%, 31%, 35%, 39%, 43%, 100% { opacity: 0; }
  20%, 22%, 24%, 26%, 28%, 30%, 32%, 34%, 36%, 38%, 40%, 42% { opacity: 1; }
}

@keyframes v2FieldTwoFocus {
  0%, 56%, 92%, 100% { background: rgba(255, 255, 255, 0.88); box-shadow: none; }
  58%, 86% { background: rgba(8, 127, 117, 0.12); box-shadow: inset 0 0 0 2px rgba(8, 127, 117, 0.28); }
}

@keyframes v2ValueTwoOld {
  0%, 70% { opacity: 1; }
  71%, 100% { opacity: 0; }
}

@keyframes v2ValueTwoNew {
  0%, 72% { opacity: 0; }
  73%, 100% { opacity: 1; }
}

@keyframes v2CaretTwo {
  0%, 57%, 61%, 65%, 69%, 73%, 77%, 81%, 87%, 100% { opacity: 0; }
  58%, 60%, 62%, 64%, 66%, 68%, 70%, 72%, 74%, 76%, 78%, 80%, 82%, 86% { opacity: 1; }
}

@media (max-width: 1180px) {
  .landing-v2 .v2-word-page {
    width: 386px;
    height: 536px;
    padding-top: 118px;
  }

  .v2-word-ribbon {
    height: 80px;
  }

  .v2-ribbon-tabs {
    gap: 10px;
  }

  .v2-ribbon-tools {
    grid-template-columns: 58px 28px repeat(4, 18px) 1fr;
    gap: 4px;
  }

  .landing-v2 .v2-word-document {
    height: 332px;
  }
}

@media (max-width: 860px) {
  .landing-v2 .v2-word-page {
    width: 252px;
    height: 342px;
    padding: 82px 12px 12px;
  }

  .v2-word-ribbon {
    top: 32px;
    height: 42px;
    background:
      linear-gradient(180deg, #2f5d9f 0 18px, #f7f7f7 18px 100%);
  }

  .v2-ribbon-title,
  .v2-ribbon-tabs strong,
  .v2-ribbon-tools .mark,
  .v2-ribbon-style {
    display: none;
  }

  .v2-ribbon-tabs {
    top: 18px;
    left: 10px;
    gap: 8px;
    height: 18px;
    font-size: 7px;
  }

  .v2-ribbon-tools {
    display: none;
  }

  .v2-mouse-cursor {
    display: none;
  }
}

/* Landing v2 final background and cursor cleanup */
.landing-v2 .v2-hero {
  background:
    linear-gradient(115deg, rgba(255, 250, 241, 0.98) 0 48%, rgba(248, 238, 219, 0.94) 48% 66%, rgba(235, 244, 239, 0.86) 66% 100%),
    #f6ecd9;
}

.landing-v2 .v2-hero::before {
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(23, 21, 19, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(23, 21, 19, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 127, 117, 0.09) 1px, transparent 1px),
    linear-gradient(180deg, rgba(8, 127, 117, 0.075) 1px, transparent 1px);
  background-size: 52px 52px, 52px 52px, 208px 208px, 208px 208px;
  mask-image: none;
  opacity: 0.72;
}

.landing-v2 .v2-hero::after {
  right: -3%;
  bottom: -18%;
  width: 62%;
  height: 34%;
  border-top: 1px solid rgba(23, 21, 19, 0.08);
  background:
    repeating-linear-gradient(90deg, rgba(23, 21, 19, 0.035) 0 1px, transparent 1px 52px),
    rgba(241, 183, 66, 0.13);
  transform: rotate(-3deg);
}

.landing-v2 .v2-stage-grid {
  inset: 88px max(18px, calc((100vw - 1260px) / 2)) 64px auto;
  width: min(760px, 49vw);
  height: auto;
  border: 1px solid rgba(8, 127, 117, 0.12);
  background:
    linear-gradient(90deg, rgba(8, 127, 117, 0.075) 1px, transparent 1px),
    linear-gradient(180deg, rgba(8, 127, 117, 0.065) 1px, transparent 1px),
    rgba(255, 250, 241, 0.22);
  background-size: 52px 52px;
  opacity: 0.6;
  transform: rotate(-3deg);
}

.landing-v2 .v2-stage::before {
  right: 20%;
  top: 10%;
  width: 210px;
  height: 82%;
  border: 0;
  background: rgba(241, 183, 66, 0.12);
  transform: skewX(-12deg);
}

.landing-v2 .v2-stage::after {
  display: none;
}

.landing-v2 .v2-scan-page.v2-scan-page-real,
.landing-v2 .v2-word-page,
.landing-v2 .v2-engine {
  scale: 0.8;
  translate: 5vw 0;
}

.landing-v2 .v2-scan-page.v2-scan-page-real {
  right: min(35vw, 540px);
  scale: 0.88;
}

.landing-v2 .v2-scan-corner.corner-b {
  right: 16px;
  bottom: 46px;
}

.landing-v2 .v2-word-page {
  right: max(-22px, calc((100vw - 1320px) / 2));
}

.landing-v2 .v2-mouse-cursor {
  top: 78px;
  left: 38px;
  width: 24px;
  height: 24px;
  background: url("/assets/landing-arrow-cursor.svg") 0 0 / contain no-repeat !important;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.24));
  transform-origin: 2px 2px;
}

@keyframes v2MouseEdit {
  0% { transform: translate(-24px, -18px); opacity: 0; }
  8% { opacity: 1; }
  20% { transform: translate(70px, 43px); opacity: 1; }
  32% { transform: translate(70px, 43px) scale(0.94); opacity: 1; }
  42% { transform: translate(70px, 43px); opacity: 1; }
  58% { transform: translate(264px, 43px); opacity: 1; }
  72% { transform: translate(264px, 43px) scale(0.94); opacity: 1; }
  88% { transform: translate(264px, 43px); opacity: 1; }
  100% { transform: translate(306px, 60px); opacity: 0; }
}

@media (max-width: 1180px) {
  .landing-v2 .v2-stage-grid {
    width: min(640px, 54vw);
  }

  .landing-v2 .v2-scan-page.v2-scan-page-real,
  .landing-v2 .v2-word-page,
  .landing-v2 .v2-engine {
    scale: 0.76;
    translate: 4vw 0;
  }
}

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(90deg, rgba(8, 127, 117, 0.09) 1px, transparent 1px),
    linear-gradient(0deg, rgba(44, 90, 160, 0.08) 1px, transparent 1px),
    #fffaf1;
  background-size: 34px 34px;
}

.auth-shell {
  width: min(100%, 460px);
}

.auth-panel {
  padding: 28px;
  border: 2px solid #171513;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 10px 10px 0 #f1b742, 0 28px 80px rgba(40, 34, 25, 0.14);
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #171513;
  font-size: 24px;
  font-weight: 950;
  text-decoration: none;
}

.site-logo-auth {
  width: min(250px, 100%);
  max-height: 72px;
}

.auth-brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 2px solid #171513;
  border-radius: 8px;
  color: #fffaf1;
  background: #171513;
  box-shadow: 6px 6px 0 #f1b742;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 32px;
}

.auth-tabs button {
  min-height: 42px;
  border-color: rgba(23, 21, 19, 0.16);
  background: #ffffff;
  color: #4f4941;
  box-shadow: none;
}

.auth-tabs button.active {
  border-color: #171513;
  color: #fffaf1;
  background: #171513;
  box-shadow: 4px 4px 0 #ea594c;
}

.auth-form {
  display: grid;
  gap: 16px;
  margin-top: 26px;
}

.auth-copy span {
  color: #087f75;
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.auth-copy h1 {
  margin: 8px 0 0;
  color: #171513;
  font-size: 30px;
  line-height: 1.05;
  letter-spacing: 0;
}

.auth-copy p {
  margin: 14px 0 0;
  color: #5f584f;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 650;
}

.auth-form label {
  display: grid;
  gap: 7px;
  color: #3f3932;
  font-size: 14px;
  font-weight: 850;
}

.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="text"] {
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(23, 21, 19, 0.2);
  border-radius: 8px;
  background: #fffdf8;
  color: #171513;
  font: inherit;
  font-weight: 650;
}

.auth-check {
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.35;
}

.auth-check input {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: #087f75;
}

.auth-consent {
  margin-top: 26px;
}

.google-auth-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  margin-top: 22px;
  border: 2px solid #171513;
  border-radius: 8px;
  background: #171513;
  color: #fffaf1;
  font-size: 15px;
  font-weight: 950;
  text-decoration: none;
  box-shadow: 7px 7px 0 #f1b742;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.google-auth-button:hover {
  color: #fffaf1;
  transform: translate(-2px, -2px);
  box-shadow: 10px 10px 0 #f1b742;
}

.google-auth-button.disabled {
  opacity: 0.48;
  pointer-events: none;
  box-shadow: none;
}

.google-auth-icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: #fffaf1;
  color: #171513;
  font-weight: 950;
}

.auth-submit {
  min-height: 54px;
  margin-top: 6px;
  border: 2px solid #171513;
  border-radius: 8px;
  background: #171513;
  color: #fffaf1;
  font-size: 15px;
  font-weight: 950;
  box-shadow: 7px 7px 0 #f1b742;
}

.auth-message {
  min-height: 22px;
  margin: 18px 0 0;
  color: #b73228;
  font-size: 14px;
  font-weight: 800;
}

.admin-lock-form {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}

.admin-lock-field {
  display: grid;
  gap: 7px;
}

.admin-lock-field span {
  color: #6d675f;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.admin-lock-field input {
  width: 100%;
  min-height: 52px;
  border: 2px solid #171513;
  border-radius: 8px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.92);
  color: #171513;
  font: inherit;
  font-size: 18px;
  font-weight: 800;
  outline: none;
}

.admin-lock-field input:focus {
  border-color: #087f75;
  box-shadow: 0 0 0 4px rgba(8, 127, 117, 0.16);
}

.admin-lock-form button {
  min-height: 56px;
  border: 2px solid #171513;
  background: #171513;
  color: #fffaf1;
  box-shadow: 8px 8px 0 #f1b742;
  font-weight: 950;
}

.admin-lock-form button::before {
  display: none;
}

.admin-lock-form button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 10px 10px 0 #f1b742;
}

.topbar-user {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
}

#logoutButton {
  width: 100%;
  min-height: 32px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 12px;
  box-shadow: none;
}

.topbar > #logoutButton {
  position: relative;
  z-index: 1;
  order: 4;
  margin-top: auto;
}

.auth-check a {
  color: #087f75;
  font-weight: 900;
}

.v2-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px max(18px, calc((100vw - 1200px) / 2));
  color: rgba(255, 250, 241, 0.72);
  background: #171513;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo-card {
  flex: 0 0 auto;
  max-width: min(240px, 54vw);
  padding: 7px 10px;
  border-radius: 8px;
  background: #fffaf1;
  box-shadow: 5px 5px 0 #f1b742;
}

.site-logo-footer {
  width: 210px;
  max-width: 100%;
  max-height: 58px;
}

.v2-footer span {
  color: #fffaf1;
  font-weight: 900;
}

.v2-footer a {
  color: #f1b742;
  font-size: 14px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.legal-page {
  min-height: 100vh;
  color: #171513;
  background:
    linear-gradient(90deg, rgba(8, 127, 117, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(44, 90, 160, 0.08) 1px, transparent 1px),
    #fffaf1;
  background-size: 34px 34px;
}

.legal-topbar {
  width: min(1120px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.legal-brand,
.legal-back {
  color: inherit;
  text-decoration: none;
}

.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 950;
}

.site-logo-legal {
  width: clamp(190px, 22vw, 260px);
  max-height: 72px;
}

.legal-brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: #171513;
  color: #fffaf1;
  box-shadow: 7px 7px 0 #f1b742;
}

.legal-back {
  min-height: 40px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(23, 21, 19, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  font-weight: 850;
}

.legal-shell {
  width: min(1120px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 18px 0 76px;
}

.legal-hero,
.legal-notice,
.legal-section {
  border: 1px solid rgba(23, 21, 19, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 20px 60px rgba(23, 21, 19, 0.08);
}

.legal-hero {
  padding: clamp(28px, 5vw, 56px);
  background:
    linear-gradient(115deg, rgba(255, 250, 241, 0.98), rgba(235, 244, 239, 0.9)),
    #fffaf1;
}

.legal-kicker {
  margin: 0;
  color: #087f75;
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.legal-hero h1 {
  max-width: 900px;
  margin: 14px 0 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.02;
  letter-spacing: 0;
}

.legal-hero p {
  max-width: 820px;
  margin: 18px 0 0;
  color: #5f584f;
  font-size: 19px;
  line-height: 1.65;
}

.legal-notice,
.legal-section {
  margin-top: 16px;
  padding: clamp(22px, 4vw, 36px);
}

.legal-notice {
  border-color: rgba(239, 90, 79, 0.32);
  background: #fff6ea;
}

.legal-section h2,
.legal-notice h2 {
  margin: 0 0 14px;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.2;
}

.legal-section p,
.legal-notice p,
.legal-section li {
  color: #47413a;
  font-size: 17px;
  line-height: 1.72;
}

.legal-section p,
.legal-notice p {
  margin: 0;
}

.legal-section p + p {
  margin-top: 14px;
}

.legal-section ul {
  margin: 0;
  padding-left: 22px;
}

.legal-section li + li {
  margin-top: 10px;
}

@media (max-width: 720px) {
  .v2-footer,
  .legal-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .v2-footer {
    padding: 20px 18px;
  }

  .legal-back {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .auth-page {
    padding: 16px;
  }

  .auth-panel {
    padding: 22px;
  }

  .auth-copy h1 {
    font-size: 26px;
  }
}

.admin-page {
  min-height: 100vh;
  color: #171513;
  background:
    linear-gradient(90deg, rgba(8, 127, 117, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(44, 90, 160, 0.08) 1px, transparent 1px),
    #fffaf1;
  background-size: 34px 34px;
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 74px;
  padding: 14px max(24px, calc((100vw - 1280px) / 2));
  border-bottom: 1px solid rgba(23, 21, 19, 0.12);
  background: rgba(255, 250, 241, 0.92);
  backdrop-filter: blur(16px);
}

.admin-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #171513;
  text-decoration: none;
}

.site-logo-admin {
  width: clamp(180px, 18vw, 236px);
  max-height: 66px;
}

.admin-brand-label {
  min-height: 28px;
  padding: 5px 9px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(23, 21, 19, 0.14);
  border-radius: 999px;
  color: #6d675f;
  background: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 900;
}

.admin-brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 2px solid #171513;
  border-radius: 8px;
  color: #fffaf1;
  background: #171513;
  box-shadow: 6px 6px 0 #f1b742;
  font-weight: 950;
}

.admin-brand strong,
.admin-brand small {
  display: block;
}

.admin-brand strong {
  font-size: 21px;
  font-weight: 950;
}

.admin-brand small {
  color: #6d675f;
  font-size: 12px;
  font-weight: 800;
}

.admin-nav {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.admin-nav a,
.admin-nav button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(23, 21, 19, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: #171513;
  box-shadow: none;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.admin-nav button:hover,
.admin-nav a:hover {
  background: #171513;
  color: #fffaf1;
}

.admin-shell {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
  padding: 44px 0 64px;
}

.admin-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.admin-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #087f75;
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.admin-kicker::before {
  content: "";
  width: 36px;
  height: 3px;
  background: #ea594c;
}

.admin-hero h1 {
  max-width: 780px;
  margin: 12px 0 0;
  font-size: 46px;
  line-height: 1.02;
  letter-spacing: 0;
}

.admin-who {
  color: #6d675f;
  font-size: 14px;
  font-weight: 800;
}

.admin-registration-panel {
  padding: 22px;
  background:
    radial-gradient(circle at 82% 0%, rgba(241, 183, 66, 0.16), transparent 34%),
    #111923;
  color: #fffaf1;
}

.admin-registration-head {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  align-items: start;
  gap: 18px;
}

.admin-registration-head h1 {
  max-width: 620px;
  margin: 10px 0 0;
  color: #171513;
  font-size: 34px;
  line-height: 1.05;
  letter-spacing: 0;
}

.admin-registration-panel .admin-who {
  color: #6d675f;
  align-self: center;
}

.admin-range-tabs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px;
  border: 1px solid rgba(255, 250, 241, 0.14);
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.08);
}

.admin-range-tabs button {
  min-height: 34px;
  border: 1px solid rgba(23, 21, 19, 0.16);
  border-radius: 7px;
  padding: 0 13px;
  background: #fffaf1;
  color: #171513;
  box-shadow: none;
  font-size: 12px;
  font-weight: 950;
}

.admin-range-tabs button::before {
  display: none;
}

.admin-range-tabs button.active,
.admin-range-tabs button:hover {
  background: #f1b742;
  border-color: #f1b742;
  color: #171513;
}

.admin-chart {
  position: relative;
  min-height: 306px;
  margin-top: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 250, 241, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 250, 241, 0.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 250, 241, 0.06) 1px, transparent 1px),
    #0f1621;
  background-size: 72px 72px;
}

.admin-chart svg {
  display: block;
  width: 100%;
  min-height: 300px;
}

.admin-chart-summary {
  position: absolute;
  right: 18px;
  top: 16px;
  z-index: 1;
  display: grid;
  gap: 3px;
  text-align: right;
}

.admin-chart-summary span {
  color: rgba(255, 250, 241, 0.58);
  font-size: 12px;
  font-weight: 850;
}

.admin-chart-summary strong {
  color: #f1b742;
  font-size: 28px;
  line-height: 1;
  font-weight: 950;
}

.admin-chart-grid line {
  stroke: rgba(255, 250, 241, 0.08);
  stroke-width: 1;
}

.admin-chart-grid text,
.admin-chart-label {
  fill: rgba(255, 250, 241, 0.56);
  font-size: 12px;
  font-weight: 800;
}

.admin-chart-label {
  text-anchor: middle;
}

.admin-chart-area {
  fill: url(#adminRegistrationFill);
}

.admin-chart-line {
  fill: none;
  stroke: #f1b742;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 7px 14px rgba(241, 183, 66, 0.22));
}

.admin-chart-dot {
  fill: #fffaf1;
  stroke: #f1b742;
  stroke-width: 3;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-top: 32px;
}

.admin-stat,
.admin-card {
  border: 1px solid rgba(23, 21, 19, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 18px 46px rgba(40, 34, 25, 0.08);
}

.admin-stat {
  min-height: 126px;
  padding: 18px;
}

.admin-stat span,
.admin-stat small {
  display: block;
  color: #6d675f;
  font-size: 13px;
  font-weight: 800;
}

.admin-stat strong {
  display: block;
  margin-top: 12px;
  font-size: 34px;
  line-height: 1;
  font-weight: 950;
}

.admin-stat small {
  margin-top: 9px;
  color: #087f75;
}

.admin-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 16px;
  margin-top: 18px;
}

.admin-grid.two {
  grid-template-columns: 1fr 1fr;
}

.admin-card {
  min-width: 0;
  overflow: hidden;
}

.admin-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(23, 21, 19, 0.1);
}

.admin-card-head h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: 0;
}

.admin-card-head span {
  color: #6d675f;
  font-size: 13px;
  font-weight: 800;
}

.admin-card-tools {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.admin-table-wrap {
  overflow: auto;
}

.admin-card table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.admin-card th,
.admin-card td {
  padding: 13px 14px;
  border-bottom: 1px solid rgba(23, 21, 19, 0.08);
  text-align: left;
  vertical-align: top;
}

.admin-card th {
  color: #6d675f;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.admin-card td {
  color: #2f2924;
  font-weight: 700;
}

.admin-status {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  background: #efe7d8;
  color: #3f3932;
  font-size: 12px;
  font-weight: 950;
}

.admin-status.done {
  background: rgba(8, 127, 117, 0.12);
  color: #087f75;
}

.admin-status.failed {
  background: rgba(234, 89, 76, 0.14);
  color: #b73228;
}

.admin-bars {
  display: grid;
  gap: 12px;
  padding: 20px;
}

.admin-bar div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  font-weight: 850;
}

.admin-bar strong {
  font-weight: 950;
}

.admin-bar i {
  display: block;
  width: 100%;
  height: 10px;
  margin-top: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #087f75 var(--bar), rgba(23, 21, 19, 0.08) var(--bar));
}

.admin-empty,
.admin-message {
  color: #b73228;
  font-weight: 850;
}

.admin-message {
  min-height: 22px;
  margin: 20px 0 0;
}

.admin-controls {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) minmax(190px, 0.7fr) auto;
  gap: 14px;
  align-items: end;
  margin-top: 22px;
  padding: 18px;
}

.admin-field {
  display: grid;
  gap: 7px;
}

.admin-field span {
  color: #6d675f;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.admin-field input,
.admin-field select {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(23, 21, 19, 0.16);
  border-radius: 8px;
  padding: 0 13px;
  background: rgba(255, 255, 255, 0.86);
  color: #171513;
  font: inherit;
  font-weight: 750;
  outline: none;
}

.admin-field input:focus,
.admin-field select:focus {
  border-color: #087f75;
  box-shadow: 0 0 0 3px rgba(8, 127, 117, 0.14);
}

.admin-controls > button,
.admin-card-foot button,
.admin-link-button,
.admin-danger-button {
  min-height: 40px;
  border: 1px solid #171513;
  border-radius: 8px;
  background: #171513;
  color: #fffaf1;
  box-shadow: 5px 5px 0 #f1b742;
  font-size: 13px;
  font-weight: 950;
}

.admin-controls > button::before,
.admin-card-foot button::before,
.admin-link-button::before,
.admin-danger-button::before {
  display: none;
}

.admin-controls > button:hover,
.admin-card-foot button:hover,
.admin-link-button:hover,
.admin-danger-button:hover {
  background: #087f75;
  border-color: #087f75;
  transform: translate(1px, 1px);
  box-shadow: 4px 4px 0 #f1b742;
}

.admin-danger-button {
  min-height: 34px;
  padding: 0 12px;
  border-color: rgba(234, 89, 76, 0.55);
  background: #fffaf1;
  color: #b73228;
  box-shadow: 4px 4px 0 #f1b742;
  font-size: 12px;
}

.admin-danger-button:hover {
  background: #b73228;
  border-color: #b73228;
  color: #fffaf1;
}

.admin-selected-filter {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(8, 127, 117, 0.2);
  border-radius: 8px;
  background: rgba(8, 127, 117, 0.08);
  color: #2f2924;
  font-size: 13px;
  font-weight: 850;
}

.admin-selected-filter[hidden] {
  display: none;
}

.admin-selected-filter button {
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid rgba(8, 127, 117, 0.28);
  border-radius: 8px;
  background: #fffaf1;
  color: #087f75;
  box-shadow: none;
  font-size: 12px;
  font-weight: 950;
}

.admin-selected-filter button::before {
  display: none;
}

.admin-grid-stack {
  grid-template-columns: 1fr;
}

.admin-card-foot {
  display: flex;
  justify-content: center;
  padding: 16px 20px 20px;
}

.admin-card-foot button[hidden] {
  display: none;
}

.admin-muted,
.admin-error-line {
  display: block;
  margin-top: 5px;
  color: #6d675f;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.3;
}

.admin-error-line {
  max-width: 360px;
  color: #b73228;
}

.admin-job-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.admin-action-link {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(23, 21, 19, 0.18);
  border-radius: 8px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.8);
  color: #171513;
  font-size: 12px;
  font-weight: 950;
  text-decoration: none;
  white-space: nowrap;
}

.admin-action-link:hover {
  border-color: #171513;
  background: #171513;
  color: #fffaf1;
}

.admin-action-link.accent {
  border-color: #087f75;
  background: #087f75;
  color: #fffaf1;
}

.admin-action-link.danger {
  border-color: rgba(183, 50, 40, 0.28);
  background: rgba(234, 89, 76, 0.1);
  color: #b73228;
  cursor: pointer;
}

.admin-action-link.danger:hover {
  border-color: #b73228;
  background: #b73228;
  color: #fffaf1;
}

.admin-action-link.danger::before {
  display: none;
}

.admin-files-deleted {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border: 1px solid rgba(109, 103, 95, 0.18);
  border-radius: 8px;
  padding: 0 10px;
  background: rgba(109, 103, 95, 0.08);
  color: #6d675f;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.admin-result {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  border: 1px solid rgba(23, 21, 19, 0.1);
  border-radius: 8px;
  padding: 0 8px;
  background: rgba(255, 250, 241, 0.72);
  color: #3f3932;
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.admin-result.done {
  border-color: rgba(8, 127, 117, 0.22);
  background: rgba(8, 127, 117, 0.1);
  color: #087f75;
}

.admin-result.failed {
  border-color: rgba(234, 89, 76, 0.18);
  background: rgba(234, 89, 76, 0.12);
  color: #b73228;
}

.admin-card td:last-child,
.admin-card th:last-child {
  white-space: nowrap;
}

@media (max-width: 980px) {
  .admin-topbar,
  .admin-hero,
  .admin-registration-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-registration-head {
    display: flex;
  }

  .admin-stats,
  .admin-grid,
  .admin-grid.two,
  .admin-controls {
    grid-template-columns: 1fr;
  }

  .admin-hero h1 {
    font-size: 34px;
  }
}

@media (max-width: 860px) {
  .landing-v2 .v2-scan-page.v2-scan-page-real,
  .landing-v2 .v2-word-page,
  .landing-v2 .v2-engine {
    scale: 1;
    translate: 0 0;
  }

  .landing-v2 .v2-stage-grid {
    inset: auto -130px auto auto;
    top: 70px;
    width: 520px;
    height: 380px;
  }

  .landing-v2 .v2-stage::before {
    display: none;
  }
}

/* Workflow cards final director cut */
.landing-v2 .v2-flow-step {
  min-height: 462px;
  padding-bottom: 194px;
}

.landing-v2 .v2-step-visual {
  height: 154px;
  overflow: hidden;
  border-color: rgba(23, 21, 19, 0.13);
  background:
    radial-gradient(circle at 18% 12%, rgba(241, 183, 66, 0.2), transparent 30%),
    linear-gradient(135deg, rgba(255, 253, 247, 0.96), rgba(239, 248, 244, 0.9)),
    #fffdf7;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 18px 34px rgba(40, 34, 25, 0.1);
}

.landing-v2 .v2-step-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 127, 117, 0.11) 1px, transparent 1px),
    linear-gradient(180deg, rgba(44, 90, 160, 0.09) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.68;
}

.landing-v2 .v2-step-visual::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 13px;
  height: 10px;
  border-radius: 999px;
  background: rgba(23, 21, 19, 0.08);
  filter: blur(1px);
}

.landing-v2 .v2-flow-step.featured .v2-step-visual {
  border-color: rgba(255, 250, 241, 0.2);
  background:
    radial-gradient(circle at 76% 22%, rgba(241, 183, 66, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(255, 250, 241, 0.12), rgba(8, 127, 117, 0.18)),
    rgba(255, 250, 241, 0.08);
}

.landing-v2 .flow-upload-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
}

.landing-v2 .flow-upload-panel::before {
  content: "";
  position: absolute;
  left: 28px;
  top: 76px;
  z-index: 2;
  width: 118px;
  height: 22px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(8, 127, 117, 0), rgba(8, 127, 117, 0.2), rgba(241, 183, 66, 0));
  filter: blur(5px);
  transform: rotate(-7deg);
  animation: v3UploadTrail 3.8s cubic-bezier(.44, 0, .22, 1) infinite;
}

.landing-v2 .flow-upload-window {
  position: absolute;
  inset: 12px 13px 20px;
  z-index: 1;
  overflow: hidden;
  border: 1px solid rgba(23, 21, 19, 0.13);
  border-radius: 9px;
  background:
    linear-gradient(90deg, rgba(23, 21, 19, 0.04) 0 32px, transparent 32px),
    rgba(255, 253, 247, 0.94);
  box-shadow: 0 14px 28px rgba(40, 34, 25, 0.12);
}

.landing-v2 .flow-upload-window::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 42px;
  width: 64px;
  height: 44px;
  border-radius: 6px;
  background:
    linear-gradient(90deg, rgba(23, 21, 19, 0.16) 0 42px, transparent 42px),
    linear-gradient(90deg, rgba(23, 21, 19, 0.11) 0 58px, transparent 58px),
    linear-gradient(90deg, rgba(23, 21, 19, 0.1) 0 36px, transparent 36px);
  background-position: 0 0, 0 18px, 0 36px;
  background-repeat: no-repeat;
  background-size: 100% 5px, 100% 5px, 100% 5px;
  opacity: 0.62;
}

.landing-v2 .flow-upload-window-bar {
  position: absolute;
  inset: 0 0 auto;
  height: 25px;
  background: linear-gradient(90deg, #171513, #2b2824 70%, #087f75);
}

.landing-v2 .flow-upload-window-bar i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin: 8px 0 0 8px;
  border-radius: 50%;
  background: rgba(255, 250, 241, 0.72);
}

.landing-v2 .flow-upload-target {
  position: absolute;
  right: 13px;
  top: 39px;
  width: 82px;
  height: 62px;
  border: 1px dashed rgba(8, 127, 117, 0.62);
  border-radius: 9px;
  background:
    linear-gradient(135deg, rgba(8, 127, 117, 0.1), rgba(241, 183, 66, 0.14)),
    rgba(255, 253, 247, 0.72);
  box-shadow: inset 0 0 0 1px rgba(255, 250, 241, 0.72);
  animation: v3UploadTarget 3.8s ease-in-out infinite;
}

.landing-v2 .flow-upload-target b {
  position: absolute;
  left: 30px;
  top: 14px;
  width: 18px;
  height: 24px;
  border-right: 4px solid rgba(8, 127, 117, 0.74);
  border-bottom: 4px solid rgba(8, 127, 117, 0.74);
  transform: rotate(45deg);
  animation: v3UploadArrow 3.8s ease-in-out infinite;
}

.landing-v2 .flow-upload-target span {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 11px;
  height: 4px;
  border-radius: 4px;
  background: rgba(8, 127, 117, 0.28);
}

.landing-v2 .flow-upload-file {
  position: absolute;
  left: 45px;
  bottom: 13px;
  z-index: 4;
  width: 116px;
  height: 23px;
  border: 1px solid rgba(23, 21, 19, 0.12);
  border-radius: 7px;
  background: rgba(255, 250, 241, 0.96);
  box-shadow: 0 8px 18px rgba(40, 34, 25, 0.12);
  animation: v3UploadChip 3.8s ease-in-out infinite;
}

.landing-v2 .flow-upload-file i {
  position: absolute;
  left: 8px;
  top: 5px;
  width: 9px;
  height: 13px;
  border-radius: 2px;
  background: #2f5fa8;
}

.landing-v2 .flow-upload-file span {
  position: absolute;
  left: 23px;
  top: 5px;
  color: #171513;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.landing-v2 .flow-scan-card {
  position: absolute;
  overflow: hidden;
  border: 1px solid rgba(23, 21, 19, 0.16);
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(40, 34, 25, 0.16);
}

.landing-v2 .flow-scan-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.06) contrast(1.08);
}

.landing-v2 .flow-scan-upload {
  left: 18px;
  top: 44px;
  z-index: 3;
  width: 70px;
  height: 82px;
  transform-origin: 50% 50%;
  animation: v3UploadScan 3.8s cubic-bezier(.44, 0, .22, 1) infinite;
}

.landing-v2 .flow-scan-upload img {
  object-position: 50% 55%;
}

.landing-v2 .flow-upload-meter {
  position: absolute;
  left: 47px;
  right: 34px;
  bottom: 8px;
  z-index: 5;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(23, 21, 19, 0.1);
}

.landing-v2 .flow-upload-meter i {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #087f75, #f1b742, #ef5a4f);
  transform-origin: left center;
  animation: v3UploadMeter 3.8s ease-in-out infinite;
}

.landing-v2 .align-visual {
  background:
    repeating-linear-gradient(90deg, rgba(8, 127, 117, 0.13) 0 1px, transparent 1px 19px),
    repeating-linear-gradient(0deg, rgba(44, 90, 160, 0.09) 0 1px, transparent 1px 19px),
    rgba(255, 250, 241, 0.78);
}

.landing-v2 .flow-grid-plane {
  position: absolute;
  inset: 0;
  background: transparent;
}

.landing-v2 .flow-scan-align {
  left: 25px;
  top: 15px;
  z-index: 2;
  width: 82px;
  height: 108px;
  border-radius: 4px;
  transform-origin: 50% 80%;
  animation: v3AlignScan 3.7s cubic-bezier(.46, 0, .22, 1) infinite;
}

.landing-v2 .flow-scan-align img {
  object-fit: cover;
  object-position: 50% 18%;
  transform: scale(1.1);
}

.landing-v2 .flow-align-frame {
  position: absolute;
  right: 28px;
  top: 15px;
  z-index: 3;
  width: 76px;
  height: 108px;
  border: 2px solid #087f75;
  border-radius: 3px;
  background:
    linear-gradient(90deg, transparent 49%, rgba(8, 127, 117, 0.28) 49% 51%, transparent 51%),
    linear-gradient(0deg, transparent 49%, rgba(8, 127, 117, 0.24) 49% 51%, transparent 51%),
    rgba(8, 127, 117, 0.035);
  animation: v3AlignFrame 3.7s ease-in-out infinite;
}

.landing-v2 .flow-align-frame::after {
  content: "";
  position: absolute;
  inset: -7px;
  border: 1px solid rgba(8, 127, 117, 0.12);
  border-radius: 5px;
}

.landing-v2 .flow-align-baseline {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 23px;
  z-index: 4;
  height: 3px;
  border-radius: 3px;
  background: #f1b742;
  box-shadow: 0 0 0 3px rgba(241, 183, 66, 0.12);
}

.landing-v2 .flow-ocr-sheet {
  position: absolute;
  inset: 13px 14px;
  overflow: hidden;
  border: 1px solid rgba(23, 21, 19, 0.16);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 14px 28px rgba(40, 34, 25, 0.13);
}

.landing-v2 .flow-ocr-sheet img {
  position: absolute;
  left: -8%;
  top: -172%;
  width: 235%;
  height: auto;
  max-width: none;
  opacity: 1;
  filter: grayscale(0.02) contrast(1.18);
}

.landing-v2 .flow-ocr-sheet::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, transparent 60%, rgba(44, 90, 160, 0.32) 60% 61%, transparent 61%),
    linear-gradient(0deg, transparent 29%, rgba(44, 90, 160, 0.28) 29% 30%, transparent 30% 55%, rgba(44, 90, 160, 0.22) 55% 56%, transparent 56% 79%, rgba(44, 90, 160, 0.18) 79% 80%, transparent 80%);
  pointer-events: none;
}

.landing-v2 .flow-ocr-sheet::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: 20px;
  z-index: 3;
  height: 68px;
  border: 1px solid rgba(44, 90, 160, 0.58);
  border-radius: 4px;
  box-shadow: 0 0 0 999px rgba(255, 253, 247, 0.08);
  animation: v3OcrFrame 3.2s ease-in-out infinite;
}

.landing-v2 .flow-ocr-sweep {
  position: absolute;
  top: -20%;
  left: -18%;
  z-index: 5;
  width: 24%;
  height: 142%;
  background: linear-gradient(90deg, transparent, rgba(8, 127, 117, 0.34), rgba(241, 183, 66, 0.24), transparent);
  transform: rotate(10deg);
  animation: v3OcrSweep 3.2s ease-in-out infinite;
}

.landing-v2 .flow-ocr-mark {
  position: absolute;
  z-index: 4;
  height: 9px;
  border-radius: 3px;
  background: rgba(8, 127, 117, 0.3);
  box-shadow: 0 0 0 1px rgba(8, 127, 117, 0.22);
  transform-origin: left center;
  animation: v3OcrMark 3.2s ease-in-out infinite;
}

.landing-v2 .flow-ocr-mark.m1 { left: 20px; top: 26px; width: 118px; animation-delay: 0.08s; }
.landing-v2 .flow-ocr-mark.m2 { left: 20px; top: 50px; width: 148px; animation-delay: 0.2s; }
.landing-v2 .flow-ocr-mark.m3 { left: 20px; top: 74px; width: 126px; animation-delay: 0.32s; }
.landing-v2 .flow-ocr-mark.m4 { left: 116px; top: 74px; width: 54px; animation-delay: 0.42s; }

.landing-v2 .flow-ocr-table {
  position: absolute;
  left: 18px;
  right: 16px;
  top: 21px;
  bottom: 34px;
  z-index: 4;
  border: 2px solid rgba(44, 90, 160, 0.86);
  border-radius: 3px;
  background:
    linear-gradient(90deg, transparent 66%, rgba(44, 90, 160, 0.62) 66% 67%, transparent 67%),
    linear-gradient(0deg, transparent 33%, rgba(44, 90, 160, 0.48) 33% 34%, transparent 34% 66%, rgba(44, 90, 160, 0.42) 66% 67%, transparent 67%);
  clip-path: inset(0 100% 0 0);
  animation: v3OcrTable 3.2s ease-in-out infinite;
}

.landing-v2 .flow-ocr-sheet em {
  position: absolute;
  right: 9px;
  top: 9px;
  z-index: 6;
  padding: 4px 7px;
  border-radius: 6px;
  color: #075f57;
  background: rgba(255, 250, 241, 0.94);
  box-shadow: 0 8px 18px rgba(40, 34, 25, 0.12);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  animation: v3OcrBadge 3.2s ease-in-out infinite;
}

.landing-v2 .flow-build-doc {
  position: absolute;
  inset: 8px 15px;
  overflow: hidden;
  border: 1px solid rgba(44, 90, 160, 0.24);
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(40, 34, 25, 0.12);
}

.landing-v2 .flow-build-doc::before {
  content: "DOCX";
  position: absolute;
  right: 8px;
  top: 7px;
  z-index: 8;
  color: rgba(255, 255, 255, 0.88);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.landing-v2 .flow-build-doc::after {
  content: "";
  position: absolute;
  left: 143px;
  top: 63px;
  z-index: 7;
  width: 2px;
  height: 18px;
  border-radius: 2px;
  background: #f1b742;
  box-shadow: 0 0 0 3px rgba(241, 183, 66, 0.14);
  animation: v3WordCaret 3.6s steps(1, end) infinite;
}

.landing-v2 .flow-word-ribbon {
  position: absolute;
  inset: 0 0 auto;
  z-index: 6;
  height: 27px;
  background: linear-gradient(90deg, #2f5fa8 0 76%, #264c86 76% 100%);
}

.landing-v2 .flow-word-ribbon i {
  position: relative;
  display: inline-block;
  width: 23px;
  height: 6px;
  margin: 10px 0 0 10px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.76);
}

.landing-v2 .flow-word-source {
  position: absolute;
  left: 21px;
  top: 36px;
  z-index: 2;
  width: 154px;
  height: 87px;
  object-fit: cover;
  object-position: 50% 55%;
  opacity: 0.94;
  filter: grayscale(0.04) contrast(1.12);
  clip-path: inset(0 100% 0 0);
  animation: v3WordScanReveal 3.6s ease-in-out infinite;
}

.landing-v2 .flow-build-title {
  position: absolute;
  left: 47px;
  top: 42px;
  z-index: 4;
  width: 84px;
  height: 6px;
  border-radius: 4px;
  background: #171513;
  transform-origin: left center;
  animation: v3WordText 3.6s ease-in-out infinite;
}

.landing-v2 .flow-build-lines {
  position: absolute;
  left: 31px;
  top: 60px;
  z-index: 4;
  width: 126px;
  height: 34px;
}

.landing-v2 .flow-build-lines i {
  display: block;
  width: 108px;
  height: 4px;
  margin-bottom: 8px;
  border-radius: 3px;
  background: rgba(23, 21, 19, 0.66);
  transform-origin: left center;
  animation: v3WordText 3.6s ease-in-out infinite;
}

.landing-v2 .flow-build-lines i:nth-child(2) {
  width: 126px;
  animation-delay: 0.12s;
}

.landing-v2 .flow-build-lines i:nth-child(3) {
  width: 94px;
  animation-delay: 0.24s;
}

.landing-v2 .flow-build-table {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 14px;
  z-index: 4;
  height: 39px;
  border: 1px solid rgba(23, 21, 19, 0.52);
  border-radius: 2px;
  background:
    linear-gradient(90deg, transparent 67%, rgba(23, 21, 19, 0.45) 67% 68%, transparent 68%),
    linear-gradient(0deg, transparent 32%, rgba(23, 21, 19, 0.34) 32% 33%, transparent 33% 66%, rgba(23, 21, 19, 0.34) 66% 67%, transparent 67%);
  clip-path: inset(0 100% 0 0);
  animation: v3WordTable 3.6s ease-in-out infinite;
}

.landing-v2 .flow-build-table i {
  display: none;
}

.landing-v2 .flow-ready-window {
  position: absolute;
  inset: 9px 13px;
  overflow: hidden;
  border: 1px solid rgba(255, 250, 241, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 250, 241, 0.12), rgba(8, 127, 117, 0.16));
  box-shadow: inset 0 1px 0 rgba(255, 250, 241, 0.13);
}

.landing-v2 .flow-ready-bar {
  position: absolute;
  inset: 0 0 auto;
  height: 32px;
  background: linear-gradient(90deg, rgba(47, 95, 168, 0.95), rgba(63, 115, 196, 0.72));
}

.landing-v2 .flow-ready-bar i {
  display: inline-block;
  width: 24px;
  height: 7px;
  margin: 12px 0 0 10px;
  border-radius: 4px;
  background: rgba(255, 250, 241, 0.7);
}

.landing-v2 .flow-ready-page {
  position: absolute;
  left: 35px;
  right: 35px;
  top: 45px;
  bottom: 8px;
  overflow: hidden;
  border-radius: 4px;
  background: #fffdf7;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  animation: v3ReadyPage 3.8s ease-in-out infinite;
}

.landing-v2 .flow-ready-page img {
  position: absolute;
  inset: 6px;
  width: calc(100% - 12px);
  height: calc(100% - 12px);
  object-fit: cover;
  object-position: 50% 55%;
  opacity: 0.98;
  filter: grayscale(0.04) contrast(1.08);
}

.landing-v2 .flow-ready-page b,
.landing-v2 .flow-ready-page i,
.landing-v2 .flow-ready-page div {
  display: none;
}

body.source-guide-open {
  overflow: hidden;
}

.source-guide-modal[hidden] {
  display: none;
}

.source-guide-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 28px;
}

.source-guide-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 28% 20%, rgba(241, 183, 66, 0.18), transparent 32%),
    rgba(10, 14, 18, 0.42);
  backdrop-filter: blur(2px);
}

.source-guide-dialog {
  position: relative;
  width: min(720px, calc(100vw - 56px));
  max-height: calc(100vh - 56px);
  overflow: auto;
  padding: 18px 22px 20px;
  border: 4px solid #171513;
  border-radius: 2px;
  background: #fffdf7;
  box-shadow: 7px 7px 0 #f1b742, 11px 11px 0 #ef5a4f, 0 22px 64px rgba(23, 21, 19, 0.22);
  color: #171513;
  outline: none;
}

.source-guide-copy {
  max-width: 580px;
  margin: 0 auto 12px;
  text-align: center;
}

.source-guide-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  color: #087f75;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.source-guide-kicker::before {
  content: "";
  width: 28px;
  height: 2px;
  background: #ef5a4f;
}

.source-guide-copy h2 {
  margin: 0;
  font-size: clamp(20px, 2.4vw, 25px);
  line-height: 1.08;
  letter-spacing: 0;
  text-transform: uppercase;
}

.source-guide-copy p {
  margin: 9px auto 0;
  max-width: 560px;
  color: #5f5a52;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.48;
}

.source-guide-examples {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 24px;
  width: min(456px, 100%);
  margin: 0 auto;
}

.source-guide-example {
  display: grid;
  gap: 10px;
  margin: 0;
}

.source-guide-image {
  position: relative;
  aspect-ratio: 0.73;
  min-height: 196px;
  overflow: hidden;
  border: 4px solid #171513;
  background:
    linear-gradient(90deg, rgba(8, 127, 117, 0.1) 1px, transparent 1px),
    linear-gradient(180deg, rgba(44, 90, 160, 0.08) 1px, transparent 1px),
    #fff;
  background-size: 24px 24px;
}

.source-guide-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.source-guide-example figcaption {
  min-height: 36px;
  color: #5f5a52;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
}

.source-guide-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 12px;
}

.source-guide-check {
  display: inline-grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  max-width: 280px;
  color: #171513;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  cursor: pointer;
}

.source-guide-check input {
  appearance: none;
  width: 38px;
  height: 38px;
  margin: 0;
  border: 4px solid #171513;
  border-radius: 2px;
  background: #fff;
  box-shadow: 4px 4px 0 rgba(241, 183, 66, 0.9);
  cursor: pointer;
}

.source-guide-check input:checked {
  background:
    linear-gradient(135deg, transparent 0 44%, #fff 44% 56%, transparent 56%),
    #087f75;
}

.source-guide-continue {
  min-width: 182px;
  min-height: 50px;
  padding: 0 24px;
  border: 4px solid #171513;
  border-radius: 2px;
  background: #171513;
  color: #fffdf7;
  box-shadow: 6px 6px 0 #f1b742;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.source-guide-continue:hover {
  transform: translate(3px, 3px);
  background: #087f75;
  box-shadow: 3px 3px 0 #ef5a4f;
}

.source-guide-continue:focus-visible,
.source-guide-check input:focus-visible {
  outline: 3px solid rgba(8, 127, 117, 0.42);
  outline-offset: 4px;
}

@media (max-width: 780px) {
  .source-guide-modal {
    padding: 14px;
  }

  .source-guide-dialog {
    width: min(100%, calc(100vw - 28px));
    max-height: calc(100vh - 28px);
    padding: 20px 18px 22px;
    box-shadow: 6px 6px 0 #f1b742, 10px 10px 0 #ef5a4f;
  }

  .source-guide-examples {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .source-guide-image {
    min-height: 220px;
    aspect-ratio: 1.25;
  }

  .source-guide-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .source-guide-check {
    max-width: none;
  }

  .source-guide-continue {
    width: 100%;
    min-width: 0;
  }
}

/* Workflow cards: live scan-based process animation */
.landing-v2 .v2-flow-step {
  min-height: 450px;
  padding: 20px 20px 182px;
  background:
    linear-gradient(145deg, rgba(255, 253, 247, 0.94), rgba(255, 250, 241, 0.74)),
    rgba(255, 255, 255, 0.72);
}

.landing-v2 .v2-flow-step.featured {
  background:
    linear-gradient(135deg, rgba(8, 127, 117, 0.9), rgba(23, 21, 19, 0.98)),
    var(--v2-ink);
}

.landing-v2 .v2-flow-step h3 {
  max-width: 210px;
}

.landing-v2 .v2-flow-step p {
  max-width: 220px;
}

.landing-v2 .v2-step-visual {
  height: 138px;
  border-color: rgba(23, 21, 19, 0.12);
  background:
    radial-gradient(circle at 12% 16%, rgba(255, 190, 61, 0.2), transparent 28%),
    repeating-linear-gradient(90deg, rgba(23, 21, 19, 0.045) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(0deg, rgba(23, 21, 19, 0.04) 0 1px, transparent 1px 22px),
    #fffdf7;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.84),
    0 14px 32px rgba(40, 34, 25, 0.08);
}

.landing-v2 .v2-flow-step.featured .v2-step-visual {
  border-color: rgba(255, 250, 241, 0.18);
  background:
    repeating-linear-gradient(90deg, rgba(255, 250, 241, 0.08) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(0deg, rgba(255, 250, 241, 0.06) 0 1px, transparent 1px 22px),
    rgba(255, 250, 241, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 250, 241, 0.12);
}

.flow-scan-card,
.flow-upload-drop,
.flow-upload-meter,
.flow-grid-plane,
.flow-align-frame,
.flow-align-baseline,
.flow-ocr-sheet,
.flow-ocr-sweep,
.flow-ocr-mark,
.flow-ocr-table,
.flow-build-doc,
.flow-word-ribbon,
.flow-build-title,
.flow-build-lines,
.flow-build-table,
.flow-ready-window,
.flow-ready-bar,
.flow-ready-page {
  position: absolute;
}

.flow-upload-panel {
  position: relative;
  width: 100%;
  height: 100%;
}

.flow-scan-card {
  overflow: hidden;
  border: 1px solid rgba(23, 21, 19, 0.16);
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(40, 34, 25, 0.14);
}

.flow-scan-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(0.08) contrast(1.04);
}

.flow-upload-drop {
  right: 18px;
  top: 18px;
  width: 84px;
  height: 78px;
  border: 1px dashed rgba(8, 127, 117, 0.46);
  border-radius: 8px;
  background: rgba(8, 127, 117, 0.08);
}

.flow-upload-drop i {
  position: absolute;
  left: 28px;
  top: 20px;
  width: 22px;
  height: 30px;
  border-right: 4px solid var(--v2-teal);
  border-bottom: 4px solid var(--v2-teal);
  transform: rotate(45deg);
  animation: v2FlowDropArrow 2.8s ease-in-out infinite;
}

.flow-scan-upload {
  left: 18px;
  top: 15px;
  width: 76px;
  height: 92px;
  transform: rotate(-8deg);
  animation: v2FlowUploadDoc 2.8s ease-in-out infinite;
}

.flow-upload-meter {
  left: 18px;
  right: 18px;
  bottom: 15px;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(23, 21, 19, 0.08);
}

.flow-upload-meter i {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--v2-teal), var(--v2-amber));
  transform-origin: left center;
  animation: v2FlowMeter 2.8s ease-in-out infinite;
}

.flow-grid-plane {
  inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(8, 127, 117, 0.12) 0 1px, transparent 1px 19px),
    repeating-linear-gradient(0deg, rgba(44, 90, 160, 0.09) 0 1px, transparent 1px 19px);
}

.flow-scan-align {
  left: 25px;
  top: 14px;
  width: 82px;
  height: 108px;
  transform: rotate(-9deg);
  animation: v2FlowAlignDoc 3.4s ease-in-out infinite;
}

.flow-align-frame {
  right: 28px;
  top: 14px;
  width: 76px;
  height: 108px;
  border: 2px solid var(--v2-teal);
  border-radius: 2px;
  background: rgba(8, 127, 117, 0.035);
  animation: v2FlowFrame 3.4s ease-in-out infinite;
}

.flow-align-baseline {
  left: 18px;
  right: 18px;
  bottom: 22px;
  height: 3px;
  border-radius: 3px;
  background: var(--v2-amber);
}

.flow-ocr-sheet {
  inset: 14px 18px;
  overflow: hidden;
  border: 1px solid rgba(23, 21, 19, 0.16);
  border-radius: 5px;
  background: #fff;
}

.flow-ocr-sheet img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.58;
  filter: grayscale(1) contrast(1.28);
}

.flow-ocr-sweep {
  top: -20%;
  left: -12%;
  width: 22%;
  height: 140%;
  background: linear-gradient(90deg, transparent, rgba(8, 127, 117, 0.28), transparent);
  transform: rotate(12deg);
  animation: v2FlowSweep 2.9s ease-in-out infinite;
}

.flow-ocr-mark {
  height: 9px;
  border-radius: 3px;
  background: rgba(8, 127, 117, 0.26);
  box-shadow: 0 0 0 1px rgba(8, 127, 117, 0.2);
  animation: v2FlowOcrMark 2.9s ease-in-out infinite;
}

.flow-ocr-mark.m1 {
  left: 26px;
  top: 28px;
  width: 76px;
}

.flow-ocr-mark.m2 {
  left: 42px;
  top: 52px;
  width: 124px;
  animation-delay: 0.16s;
}

.flow-ocr-mark.m3 {
  left: 34px;
  top: 76px;
  width: 98px;
  animation-delay: 0.32s;
}

.flow-ocr-table {
  right: 18px;
  bottom: 18px;
  width: 72px;
  height: 38px;
  border: 2px solid rgba(44, 90, 160, 0.68);
  background:
    linear-gradient(90deg, transparent 49%, rgba(44, 90, 160, 0.56) 49% 51%, transparent 51%),
    linear-gradient(0deg, transparent 49%, rgba(44, 90, 160, 0.46) 49% 51%, transparent 51%);
  animation: v2FlowTablePulse 2.9s ease-in-out infinite;
}

.flow-ocr-sheet em {
  position: absolute;
  right: 15px;
  top: 14px;
  padding: 4px 6px;
  border-radius: 5px;
  color: #075f57;
  background: rgba(255, 250, 241, 0.9);
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.flow-build-doc {
  inset: 12px 22px;
  overflow: hidden;
  border: 1px solid rgba(44, 90, 160, 0.24);
  border-radius: 5px;
  background: #fffdf9;
  box-shadow: 0 12px 28px rgba(40, 34, 25, 0.1);
}

.flow-word-ribbon {
  top: 0;
  left: 0;
  right: 0;
  height: 24px;
  background: linear-gradient(90deg, #2f5fa8, #3f73c4);
}

.flow-word-ribbon i {
  position: relative;
  display: inline-block;
  width: 22px;
  height: 6px;
  margin: 9px 0 0 10px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.76);
}

.flow-build-title {
  left: 48px;
  top: 34px;
  width: 0;
  height: 8px;
  border-radius: 4px;
  background: #171513;
  animation: v2FlowTextDraw 3s ease-in-out infinite;
}

.flow-build-lines {
  left: 28px;
  top: 54px;
  width: 118px;
  height: 34px;
}

.flow-build-lines i {
  display: block;
  width: 0;
  height: 5px;
  margin-bottom: 8px;
  border-radius: 3px;
  background: rgba(23, 21, 19, 0.72);
  animation: v2FlowLineDraw 3s ease-in-out infinite;
}

.flow-build-lines i:nth-child(2) {
  animation-delay: 0.16s;
}

.flow-build-lines i:nth-child(3) {
  animation-delay: 0.32s;
}

.flow-build-table {
  left: 24px;
  right: 24px;
  bottom: 14px;
  height: 34px;
  border: 1px solid rgba(23, 21, 19, 0.38);
  background:
    linear-gradient(90deg, transparent 58%, rgba(23, 21, 19, 0.38) 58% 59%, transparent 59%),
    linear-gradient(0deg, transparent 49%, rgba(23, 21, 19, 0.28) 49% 51%, transparent 51%);
  clip-path: inset(0 100% 0 0);
  animation: v2FlowTableBuild 3s ease-in-out infinite;
}

.flow-build-table i {
  display: none;
}

.flow-ready-window {
  inset: 12px 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 250, 241, 0.18);
  border-radius: 7px;
  background: rgba(255, 250, 241, 0.12);
}

.flow-ready-bar {
  left: 0;
  right: 0;
  top: 0;
  height: 28px;
  background: rgba(255, 250, 241, 0.16);
}

.flow-ready-bar i {
  display: inline-block;
  width: 24px;
  height: 7px;
  margin: 10px 0 0 10px;
  border-radius: 4px;
  background: rgba(255, 250, 241, 0.64);
}

.flow-ready-page {
  left: 24px;
  right: 24px;
  top: 42px;
  bottom: 14px;
  border-radius: 4px;
  background: #fffdf7;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.2);
  animation: v2FlowReadyPage 3.2s ease-in-out infinite;
}

.flow-ready-page b,
.flow-ready-page i,
.flow-ready-page div {
  position: absolute;
  display: block;
}

.flow-ready-page b {
  left: 28px;
  right: 28px;
  top: 14px;
  height: 6px;
  border-radius: 3px;
  background: #171513;
}

.flow-ready-page i {
  left: 18px;
  height: 5px;
  border-radius: 3px;
  background: rgba(23, 21, 19, 0.6);
}

.flow-ready-page i:nth-of-type(1) {
  top: 31px;
  width: 60%;
}

.flow-ready-page i:nth-of-type(2) {
  top: 44px;
  width: 74%;
}

.flow-ready-page i:nth-of-type(3) {
  top: 57px;
  width: 46%;
}

.flow-ready-page div {
  left: 18px;
  right: 18px;
  bottom: 12px;
  height: 24px;
  border: 1px solid rgba(23, 21, 19, 0.34);
  background:
    linear-gradient(90deg, transparent 48%, rgba(23, 21, 19, 0.28) 48% 50%, transparent 50%),
    linear-gradient(0deg, transparent 48%, rgba(23, 21, 19, 0.22) 48% 50%, transparent 50%);
}

@keyframes v2FlowUploadDoc {
  0%, 100% { transform: translate(0, 0) rotate(-8deg) scale(1); opacity: 1; }
  48% { transform: translate(92px, 2px) rotate(0deg) scale(0.74); opacity: 0.98; }
  68% { transform: translate(92px, 2px) rotate(0deg) scale(0.74); opacity: 0.18; }
}

@keyframes v2FlowDropArrow {
  0%, 22% { transform: translateY(-8px) rotate(45deg); opacity: 0.3; }
  48%, 70% { transform: translateY(4px) rotate(45deg); opacity: 1; }
  100% { transform: translateY(-8px) rotate(45deg); opacity: 0.3; }
}

@keyframes v2FlowMeter {
  0% { transform: scaleX(0); }
  58% { transform: scaleX(1); }
  100% { transform: scaleX(1); }
}

@keyframes v2FlowAlignDoc {
  0%, 100% { transform: translate(0, 0) rotate(-9deg) scale(1); }
  48%, 76% { transform: translate(86px, 0) rotate(0deg) scale(0.98); }
}

@keyframes v2FlowFrame {
  0%, 28% { opacity: 0.42; box-shadow: none; }
  56%, 100% { opacity: 1; box-shadow: 0 0 0 5px rgba(8, 127, 117, 0.08); }
}

@keyframes v2FlowSweep {
  0% { transform: translateX(-120%) rotate(12deg); opacity: 0; }
  18% { opacity: 1; }
  68% { transform: translateX(620%) rotate(12deg); opacity: 1; }
  100% { transform: translateX(620%) rotate(12deg); opacity: 0; }
}

@keyframes v2FlowOcrMark {
  0%, 22% { opacity: 0; transform: translateY(3px); }
  42%, 82% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(0); }
}

@keyframes v2FlowTablePulse {
  0%, 32% { opacity: 0; transform: scale(0.96); }
  52%, 86% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1); }
}

@keyframes v2FlowTextDraw {
  0%, 18% { width: 0; }
  42%, 100% { width: 92px; }
}

@keyframes v2FlowLineDraw {
  0%, 28% { width: 0; }
  60%, 100% { width: 100%; }
}

@keyframes v2FlowTableBuild {
  0%, 38% { clip-path: inset(0 100% 0 0); opacity: 0.4; }
  72%, 100% { clip-path: inset(0 0 0 0); opacity: 1; }
}

@keyframes v2FlowReadyPage {
  0%, 100% { transform: translateY(0); }
  48% { transform: translateY(-3px); }
}

@media (max-width: 1180px) {
  .landing-v2 .v2-flow-step {
    min-height: 430px;
  }
}

@media (max-width: 860px) {
  .landing-v2 .v2-flow-step {
    min-height: 390px;
    padding-bottom: 170px;
  }

  .landing-v2 .v2-flow-step h3,
  .landing-v2 .v2-flow-step p {
    max-width: 100%;
  }

  .landing-v2 .v2-step-visual {
    height: 132px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-v2 .v2-step-visual *,
  .landing-v2 .v2-step-visual *::before,
  .landing-v2 .v2-step-visual *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Landing v2 hero headline polish */
.landing-v2 .v2-hero-copy {
  max-width: 570px;
}

.landing-v2 .v2-hero h1.v2-hero-headline {
  position: relative;
  max-width: 570px;
  margin: 22px 0 0;
  color: var(--v2-ink);
  font-size: 56px;
  line-height: 0.98;
  font-weight: 950;
  letter-spacing: 0;
  text-shadow: 0 18px 44px rgba(40, 34, 25, 0.12);
}

.landing-v2 .v2-hero h1.v2-hero-headline::before {
  content: "";
  position: absolute;
  left: -22px;
  top: 8px;
  bottom: 12px;
  width: 5px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, var(--v2-coral), var(--v2-amber) 58%, var(--v2-teal));
  box-shadow: 0 14px 34px rgba(241, 183, 66, 0.32);
}

.landing-v2 .v2-hero h1.v2-hero-headline span {
  display: block;
}

.landing-v2 .v2-hero h1.v2-hero-headline mark {
  position: relative;
  display: inline-block;
  padding: 0 0.08em 0.02em;
  color: inherit;
  background: transparent;
  z-index: 0;
}

.landing-v2 .v2-hero h1.v2-hero-headline mark::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.04em;
  z-index: -1;
  height: 0.38em;
  border-radius: 4px;
  background: rgba(241, 183, 66, 0.48);
  box-shadow: 0 10px 22px rgba(241, 183, 66, 0.22);
}

.landing-v2 .v2-hero h1.v2-hero-headline mark::after {
  content: "";
  position: absolute;
  right: -0.16em;
  top: 0.12em;
  width: 0.12em;
  height: 0.12em;
  border-radius: 50%;
  background: var(--v2-teal);
}

.landing-v2 .v2-hero-headline + .v2-hero-notes {
  margin-top: 30px;
}

@media (max-width: 1180px) {
  .landing-v2 .v2-hero-copy {
    max-width: 510px;
  }

  .landing-v2 .v2-hero h1.v2-hero-headline {
    max-width: 510px;
    font-size: 48px;
  }
}

@media (max-width: 860px) {
  .landing-v2 .v2-hero-copy {
    max-width: 470px;
  }

  .landing-v2 .v2-hero h1.v2-hero-headline {
    max-width: 470px;
    font-size: 40px;
    line-height: 1.02;
  }

  .landing-v2 .v2-hero h1.v2-hero-headline::before {
    left: -14px;
    width: 4px;
  }
}

@media (max-width: 460px) {
  .landing-v2 .v2-hero h1.v2-hero-headline {
    font-size: 34px;
  }
}

/* Landing v2 OCR conversion animation */
.landing-v2 .v2-ocr-demo-board {
  position: relative;
  min-height: 640px;
  padding: 22px;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(255, 250, 241, 0.82), rgba(238, 248, 244, 0.86)),
    linear-gradient(90deg, rgba(8, 127, 117, 0.12) 1px, transparent 1px),
    linear-gradient(0deg, rgba(44, 90, 160, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 21, 19, 0.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(23, 21, 19, 0.035) 1px, transparent 1px),
    #edf6f2;
  background-size: auto, 32px 32px, 32px 32px, 128px 128px, 128px 128px, auto;
}

.landing-v2 .v2-ocr-demo-board::before {
  content: "";
  position: absolute;
  inset: 10% 7% auto auto;
  width: 38%;
  height: 64%;
  background: rgba(241, 183, 66, 0.14);
  clip-path: polygon(24% 0, 100% 8%, 72% 100%, 0 92%);
  pointer-events: none;
}

.landing-v2 .v2-ocr-demo-board::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(8, 127, 117, 0.08);
  border-radius: 6px;
  background:
    linear-gradient(90deg, rgba(8, 127, 117, 0.07) 1px, transparent 1px),
    linear-gradient(0deg, rgba(8, 127, 117, 0.055) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(180deg, transparent 0, #000 18%, #000 82%, transparent 100%);
  opacity: 0.58;
  pointer-events: none;
}

.landing-v2 .v2-ocr-demo {
  position: relative;
  z-index: 2;
  min-height: 594px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: center;
  justify-items: center;
  gap: 14px;
}

.landing-v2 .v2-ocr-status {
  width: min(390px, 86%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(23, 21, 19, 0.12);
  border-radius: 8px;
  color: var(--v2-ink);
  background: rgba(255, 250, 241, 0.88);
  box-shadow: 0 12px 36px rgba(40, 34, 25, 0.1);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
}

.landing-v2 .v2-ocr-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--v2-teal);
  box-shadow: 0 0 0 7px rgba(8, 127, 117, 0.12);
  animation: v2OcrDot 11s ease-in-out infinite;
}

.landing-v2 .v2-ocr-status-pulse {
  min-width: 58px;
  padding: 5px 8px;
  border-radius: 6px;
  color: #fffaf1;
  background: var(--v2-ink);
  text-align: center;
  animation: v2OcrStatus 11s ease-in-out infinite;
}

.landing-v2 .v2-ocr-sheet {
  position: relative;
  width: min(390px, 82%);
  aspect-ratio: 719 / 803;
  overflow: hidden;
  border: 1px solid rgba(23, 21, 19, 0.18);
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: 14px 16px 0 rgba(8, 127, 117, 0.14), 0 24px 64px rgba(40, 34, 25, 0.16);
}

.landing-v2 .v2-ocr-scan-layer,
.landing-v2 .v2-ocr-scan-layer img,
.landing-v2 .v2-ocr-text-map,
.landing-v2 .v2-ocr-table-map,
.landing-v2 .v2-ocr-pins,
.landing-v2 .v2-docx-build {
  position: absolute;
  inset: 0;
}

.landing-v2 .v2-ocr-scan-layer {
  animation: v2ScanToDocx 11s ease-in-out infinite;
}

.landing-v2 .v2-ocr-scan-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.03) saturate(0.92);
}

.landing-v2 .v2-ocr-beam {
  position: absolute;
  z-index: 4;
  left: 3%;
  right: 3%;
  top: -16%;
  height: 16%;
  border-top: 1px solid rgba(8, 127, 117, 0.4);
  border-bottom: 1px solid rgba(8, 127, 117, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(8, 127, 117, 0.24), rgba(255, 255, 255, 0));
  filter: blur(0.2px);
  animation: v2OcrBeam 11s ease-in-out infinite;
}

.landing-v2 .v2-ocr-text-map span {
  position: absolute;
  z-index: 5;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  height: var(--h, 1.7%);
  border-radius: 3px;
  background: rgba(8, 127, 117, 0.22);
  box-shadow: inset 0 0 0 1px rgba(8, 127, 117, 0.42), 0 0 0 1px rgba(255, 250, 241, 0.22);
  transform-origin: left center;
  animation: v2OcrTextLine 11s ease-in-out infinite;
  animation-delay: var(--d);
}

.landing-v2 .v2-ocr-table-box {
  position: absolute;
  z-index: 6;
  border: 2px solid var(--v2-blue);
  background:
    repeating-linear-gradient(90deg, rgba(44, 90, 160, 0.2) 0 1px, transparent 1px 16.66%),
    repeating-linear-gradient(0deg, rgba(44, 90, 160, 0.18) 0 1px, transparent 1px 33.33%),
    rgba(255, 250, 241, 0.12);
  box-shadow: 0 0 0 6px rgba(44, 90, 160, 0.08);
  opacity: 0;
  animation: v2OcrTableTrace 11s ease-in-out infinite;
}

.landing-v2 .v2-ocr-table-box.table-a {
  left: 3%;
  top: 10%;
  width: 94%;
  height: 17%;
}

.landing-v2 .v2-ocr-table-box.table-b {
  left: 3%;
  top: 29%;
  width: 94%;
  height: 16%;
  animation-delay: 0.35s;
}

.landing-v2 .v2-ocr-table-box.table-c {
  left: 3%;
  top: 64%;
  width: 94%;
  height: 19%;
  animation-delay: 0.7s;
}

.landing-v2 .v2-ocr-pins span {
  position: absolute;
  z-index: 7;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 6px;
  color: #fffaf1;
  background: var(--v2-ink);
  font-size: 11px;
  font-weight: 950;
  box-shadow: 0 10px 26px rgba(23, 21, 19, 0.18);
  opacity: 0;
  transform: translateY(10px);
  animation: v2OcrPin 11s ease-in-out infinite;
}

.landing-v2 .v2-ocr-pins .pin-a {
  left: 37%;
  top: 21.8%;
  color: var(--v2-teal);
  background: #fffaf1;
}

.landing-v2 .v2-ocr-pins .pin-b {
  right: 5%;
  top: 36%;
  background: var(--v2-blue);
  animation-delay: 0.25s;
}

.landing-v2 .v2-ocr-pins .pin-c {
  left: 8%;
  top: 45%;
  background: var(--v2-coral);
  animation-delay: 0.5s;
}

.landing-v2 .v2-docx-build {
  z-index: 8;
  padding: 16px;
  opacity: 0;
  transform: translateY(22px) scale(0.96);
  animation: v2DocxBuild 11s ease-in-out infinite;
}

.landing-v2 .v2-docx-titlebar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 12px;
  border-radius: 7px 7px 0 0;
  color: #fff;
  background: var(--v2-blue);
  font-size: 12px;
}

.landing-v2 .v2-docx-titlebar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--v2-coral);
}

.landing-v2 .v2-docx-titlebar span:nth-child(2) {
  background: var(--v2-amber);
}

.landing-v2 .v2-docx-titlebar span:nth-child(3) {
  background: var(--v2-teal);
}

.landing-v2 .v2-docx-titlebar strong {
  margin-left: auto;
  font-size: 11px;
}

.landing-v2 .v2-docx-ribbon {
  display: flex;
  gap: 7px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(44, 90, 160, 0.18);
  border-top: 0;
  background: #f7f9fb;
}

.landing-v2 .v2-docx-ribbon i {
  min-width: 30px;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(44, 90, 160, 0.22);
  border-radius: 5px;
  color: var(--v2-blue);
  background: #fff;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.landing-v2 .v2-docx-page {
  position: relative;
  height: calc(100% - 96px);
  overflow: hidden;
  padding: 16px 20px;
  border: 1px solid rgba(44, 90, 160, 0.18);
  border-top: 0;
  border-radius: 0 0 7px 7px;
  background:
    repeating-linear-gradient(90deg, rgba(44, 90, 160, 0.06) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(0deg, rgba(44, 90, 160, 0.05) 0 1px, transparent 1px 28px),
    #fffdf8;
}

.landing-v2 .v2-docx-page .doc-appendix {
  text-align: right;
  font-size: 7px;
  font-weight: 700;
}

.landing-v2 .v2-docx-page .doc-line {
  height: 1px;
  background: rgba(23, 21, 19, 0.78);
}

.landing-v2 .v2-docx-page .line-a {
  width: 54%;
  margin: 14px 0 0 4px;
}

.landing-v2 .v2-docx-page .doc-org-caption {
  margin: 2px 0 6px;
  text-align: center;
  font-size: 6px;
  font-weight: 650;
}

.landing-v2 .v2-docx-page .doc-form-top {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  grid-auto-rows: minmax(15px, auto);
  border: 1px solid rgba(23, 21, 19, 0.38);
  border-bottom: 0;
  font-size: 7px;
  line-height: 1.12;
}

.landing-v2 .v2-docx-page .doc-form-top > * {
  min-width: 0;
  padding: 3px 4px;
  border-right: 1px solid rgba(23, 21, 19, 0.28);
  border-bottom: 1px solid rgba(23, 21, 19, 0.28);
}

.landing-v2 .v2-docx-page .doc-form-top > :nth-child(2n) {
  border-right: 0;
}

.landing-v2 .v2-docx-page .doc-form-top strong {
  font-size: 10px;
  font-weight: 950;
}

.landing-v2 .v2-docx-page .doc-form-top b {
  font-size: 8px;
}

.landing-v2 .v2-docx-page .doc-form-top small {
  text-align: center;
  font-size: 6px;
  font-weight: 650;
}

.landing-v2 .v2-docx-page .doc-table {
  display: grid;
  border: 1px solid rgba(23, 21, 19, 0.84);
  background: #fffdf8;
  font-size: 6.5px;
  line-height: 1.04;
  text-align: center;
}

.landing-v2 .v2-docx-page .doc-table span {
  min-height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1px;
  border-right: 1px solid rgba(23, 21, 19, 0.56);
  border-bottom: 1px solid rgba(23, 21, 19, 0.56);
}

.landing-v2 .v2-docx-page .doc-table.main {
  grid-template-columns: 0.7fr 1.15fr 1.65fr 1.15fr 1.15fr 0.85fr 1.35fr;
  margin-top: 10px;
}

.landing-v2 .v2-docx-page .doc-table.main .wide {
  grid-column: 1 / -1;
  min-height: 15px;
  font-size: 7px;
  font-weight: 750;
}

.landing-v2 .v2-docx-page .doc-summary,
.landing-v2 .v2-docx-page .doc-range,
.landing-v2 .v2-docx-page .doc-text-row,
.landing-v2 .v2-docx-page .doc-approval {
  font-size: 7px;
  line-height: 1.2;
}

.landing-v2 .v2-docx-page .doc-summary {
  margin-top: 12px;
  text-align: center;
}

.landing-v2 .v2-docx-page .doc-range {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 8px;
  margin-top: 6px;
}

.landing-v2 .v2-docx-page .doc-range span {
  border-bottom: 1px solid rgba(23, 21, 19, 0.5);
}

.landing-v2 .v2-docx-page .doc-text-row {
  margin-top: 6px;
}

.landing-v2 .v2-docx-page .doc-approval {
  margin-top: 10px;
  font-weight: 800;
}

.landing-v2 .v2-docx-page .doc-approval small {
  font-weight: 550;
}

.landing-v2 .v2-docx-page .doc-table.sign {
  grid-template-columns: 2fr 1fr 0.25fr 2fr;
  margin-top: 12px;
  text-align: left;
}

.landing-v2 .v2-docx-page .doc-table.sign span {
  min-height: 28px;
  justify-content: flex-start;
  text-align: left;
}

.landing-v2 .v2-docx-download {
  position: absolute;
  inset: 0;
  z-index: 9;
  pointer-events: none;
}

.landing-v2 .v2-docx-download button {
  position: absolute;
  right: 26px;
  bottom: 24px;
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  color: #fffaf1;
  background: var(--v2-teal);
  box-shadow: 0 16px 34px rgba(8, 127, 117, 0.28);
  font-size: 13px;
  font-weight: 950;
  opacity: 0;
  transform: translateY(10px);
  animation: v2DownloadButton 11s ease-in-out infinite;
}

.landing-v2 .v2-docx-cursor {
  position: absolute;
  right: 15px;
  bottom: 12px;
  width: 20px;
  height: 20px;
  background: url("/assets/landing-arrow-cursor.svg") 0 0 / contain no-repeat;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.22));
  opacity: 0;
  transform-origin: 2px 2px;
  animation: v2DownloadCursor 11s ease-in-out infinite;
}

.landing-v2 .v2-download-file {
  position: absolute;
  left: 22px;
  bottom: 22px;
  max-width: 238px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(44, 90, 160, 0.18);
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.96);
  box-shadow: 0 16px 34px rgba(40, 34, 25, 0.18);
  opacity: 0;
  transform: translateY(18px) scale(0.96);
  animation: v2DownloadFile 11s ease-in-out infinite;
}

.landing-v2 .v2-download-file strong {
  overflow: hidden;
  color: var(--v2-blue);
  font-size: 10px;
  line-height: 1.15;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.landing-v2 .v2-word-file-icon {
  flex: 0 0 auto;
  width: 26px;
  height: 30px;
  display: inline-flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 0 0 3px 3px;
  border-radius: 4px;
  color: #fff;
  background:
    linear-gradient(135deg, transparent 0 72%, rgba(255, 255, 255, 0.65) 72%),
    #2d62a8;
  font-size: 12px;
  font-weight: 950;
}

.landing-v2 .v2-ocr-steps {
  width: min(430px, 92%);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.landing-v2 .v2-ocr-steps span {
  padding: 7px 9px;
  border: 1px solid rgba(23, 21, 19, 0.12);
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.72);
  color: var(--v2-muted);
  font-size: 11px;
  font-weight: 900;
  animation: v2OcrStep 11s ease-in-out infinite;
}

.landing-v2 .v2-ocr-steps span:nth-child(2) { animation-delay: 0.35s; }
.landing-v2 .v2-ocr-steps span:nth-child(3) { animation-delay: 0.7s; }
.landing-v2 .v2-ocr-steps span:nth-child(4) { animation-delay: 1.05s; }
.landing-v2 .v2-ocr-steps span:nth-child(5) { animation-delay: 1.4s; }
.landing-v2 .v2-ocr-steps span:nth-child(6) { animation-delay: 1.75s; }

@keyframes v2OcrDot {
  0%, 100% { background: var(--v2-teal); }
  40% { background: var(--v2-amber); }
  78% { background: var(--v2-blue); }
}

@keyframes v2OcrStatus {
  0%, 24% { background: var(--v2-ink); }
  36%, 58% { background: var(--v2-amber); color: var(--v2-ink); }
  70%, 100% { background: var(--v2-teal); color: #fffaf1; }
}

@keyframes v2ScanToDocx {
  0%, 62% { opacity: 1; filter: none; transform: scale(1); }
  72%, 100% { opacity: 0.1; filter: blur(1px) saturate(0.35); transform: scale(0.985); }
}

@keyframes v2OcrBeam {
  0%, 8% { opacity: 0; transform: translateY(0); }
  14% { opacity: 1; }
  50% { opacity: 1; transform: translateY(720%); }
  58%, 100% { opacity: 0; transform: translateY(720%); }
}

@keyframes v2OcrTextLine {
  0%, 18% { opacity: 0; transform: scaleX(0); }
  30%, 58% { opacity: 1; transform: scaleX(1); }
  68%, 100% { opacity: 0; transform: scaleX(1); }
}

@keyframes v2OcrTableTrace {
  0%, 30% { opacity: 0; clip-path: inset(0 100% 100% 0); }
  42%, 60% { opacity: 1; clip-path: inset(0); }
  70%, 100% { opacity: 0; clip-path: inset(0); }
}

@keyframes v2OcrPin {
  0%, 34% { opacity: 0; transform: translateY(10px); }
  42%, 60% { opacity: 1; transform: translateY(0); }
  70%, 100% { opacity: 0; transform: translateY(-8px); }
}

@keyframes v2DocxBuild {
  0%, 62% { opacity: 0; transform: translateY(22px) scale(0.96); }
  72%, 100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes v2DownloadButton {
  0%, 76% { opacity: 0; transform: translateY(10px); }
  82%, 100% { opacity: 1; transform: translateY(0); }
}

@keyframes v2DownloadCursor {
  0%, 79% { opacity: 0; transform: translate(-86px, -64px); }
  83% { opacity: 1; transform: translate(-86px, -64px); }
  89% { opacity: 1; transform: translate(0, 0); }
  92% { opacity: 1; transform: translate(0, 0) scale(0.9); }
  95% { opacity: 1; transform: translate(0, 0); }
  100% { opacity: 0; transform: translate(10px, 8px); }
}

@keyframes v2DownloadFile {
  0%, 88% { opacity: 0; transform: translateY(18px) scale(0.96); }
  94%, 100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes v2OcrStep {
  0%, 100% { color: var(--v2-muted); background: rgba(255, 250, 241, 0.72); }
  34%, 58% { color: var(--v2-teal); background: rgba(8, 127, 117, 0.12); }
  76%, 96% { color: var(--v2-ink); background: rgba(241, 183, 66, 0.18); }
}

@media (max-width: 1180px) {
  .landing-v2 .v2-ocr-demo-board {
    min-height: 560px;
  }

  .landing-v2 .v2-ocr-demo {
    min-height: 514px;
  }

  .landing-v2 .v2-ocr-sheet {
    width: min(350px, 84%);
  }
}

@media (max-width: 860px) {
  .landing-v2 .v2-ocr-demo-board {
    min-height: 520px;
    padding: 16px;
  }

  .landing-v2 .v2-ocr-demo {
    min-height: 488px;
  }

  .landing-v2 .v2-ocr-status {
    width: min(360px, 94%);
  }

  .landing-v2 .v2-ocr-sheet {
    width: min(340px, 90%);
  }
}

/* Landing v2 absolute last cursor override */
.landing-v2 .v2-mouse-cursor {
  width: 16px !important;
  height: 16px !important;
  background: url("/assets/landing-arrow-cursor.svg") 0 0 / 16px 16px no-repeat !important;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.24)) !important;
}

@keyframes v2MouseEdit {
  0% { transform: translate(-24px, -18px); opacity: 0; }
  8% { opacity: 1; }
  20% { transform: translate(108px, 54px); opacity: 1; }
  32% { transform: translate(108px, 54px) scale(0.92); opacity: 1; }
  42% { transform: translate(108px, 54px); opacity: 1; }
  58% { transform: translate(318px, 54px); opacity: 1; }
  72% { transform: translate(318px, 54px) scale(0.92); opacity: 1; }
  88% { transform: translate(318px, 54px); opacity: 1; }
  100% { transform: translate(338px, 70px); opacity: 0; }
}

/* Landing v2 cursor position hotfix */
.landing-v2 .v2-mouse-cursor {
  width: 16px !important;
  height: 16px !important;
  background: url("/assets/landing-arrow-cursor.svg") 0 0 / 16px 16px no-repeat !important;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.24));
}

@keyframes v2MouseEdit {
  0% { transform: translate(-24px, -18px); opacity: 0; }
  8% { opacity: 1; }
  20% { transform: translate(108px, 54px); opacity: 1; }
  32% { transform: translate(108px, 54px) scale(0.92); opacity: 1; }
  42% { transform: translate(108px, 54px); opacity: 1; }
  58% { transform: translate(318px, 54px); opacity: 1; }
  72% { transform: translate(318px, 54px) scale(0.92); opacity: 1; }
  88% { transform: translate(318px, 54px); opacity: 1; }
  100% { transform: translate(338px, 70px); opacity: 0; }
}

/* Landing v2 scale, cursor and background polish */
.landing-v2 .v2-hero {
  background:
    linear-gradient(115deg, rgba(255, 250, 241, 0.97) 0 43%, rgba(250, 242, 225, 0.9) 43% 58%, rgba(234, 244, 239, 0.82) 58% 100%),
    #f5ead6;
}

.landing-v2 .v2-hero::before {
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(23, 21, 19, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(23, 21, 19, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 127, 117, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(8, 127, 117, 0.06) 1px, transparent 1px);
  background-size: 42px 42px, 42px 42px, 168px 168px, 168px 168px;
  mask-image: none;
  opacity: 0.92;
}

.landing-v2 .v2-hero::after {
  right: -7%;
  bottom: -22%;
  width: 58%;
  height: 48%;
  border-top: 1px solid rgba(23, 21, 19, 0.1);
  background:
    repeating-linear-gradient(0deg, rgba(23, 21, 19, 0.04) 0 1px, transparent 1px 24px),
    rgba(241, 183, 66, 0.2);
  transform: rotate(-5deg);
}

.landing-v2 .v2-stage::before,
.landing-v2 .v2-stage::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.landing-v2 .v2-stage::before {
  right: 20%;
  top: 18%;
  width: 210px;
  height: 440px;
  border: 1px solid rgba(241, 183, 66, 0.22);
  background:
    linear-gradient(90deg, rgba(241, 183, 66, 0.16), rgba(241, 183, 66, 0.04)),
    repeating-linear-gradient(90deg, rgba(23, 21, 19, 0.035) 0 1px, transparent 1px 22px);
  transform: rotate(-9deg);
}

.landing-v2 .v2-stage::after {
  right: 8%;
  top: 9%;
  width: 140px;
  height: 140px;
  border: 1px solid rgba(23, 21, 19, 0.08);
  background:
    linear-gradient(135deg, rgba(241, 183, 66, 0.28), rgba(255, 250, 241, 0.02));
  clip-path: polygon(0 0, 100% 24%, 72% 100%, 14% 70%);
  transform: rotate(10deg);
}

.landing-v2 .v2-stage-grid {
  inset: 28px 0 20px auto;
  right: 0;
  width: 78%;
  height: auto;
  border-color: rgba(23, 21, 19, 0.1);
  background:
    repeating-linear-gradient(90deg, rgba(8, 127, 117, 0.1) 0 1px, transparent 1px 30px),
    repeating-linear-gradient(0deg, rgba(44, 90, 160, 0.08) 0 1px, transparent 1px 30px),
    rgba(255, 250, 241, 0.08);
  transform: skewY(-3deg);
  opacity: 0.78;
}

.landing-v2 .v2-scan-page.v2-scan-page-real,
.landing-v2 .v2-word-page,
.landing-v2 .v2-engine {
  scale: 0.82;
  translate: 4vw 0;
}

.landing-v2 .v2-scan-page.v2-scan-page-real {
  right: min(37vw, 560px);
}

.landing-v2 .v2-word-page {
  right: max(-8px, calc((100vw - 1290px) / 2));
}

.landing-v2 .v2-engine {
  right: min(29vw, 470px);
}

.landing-v2 .v2-mouse-cursor {
  top: 76px;
  left: 38px;
  width: 28px;
  height: 28px;
  background: url("/assets/landing-arrow-cursor.svg") 0 0 / contain no-repeat;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.24));
  transform-origin: 2px 2px;
}

@keyframes v2MouseEdit {
  0% { transform: translate(-26px, -20px); opacity: 0; }
  8% { opacity: 1; }
  20% { transform: translate(88px, 30px); opacity: 1; }
  32% { transform: translate(88px, 30px) scale(0.94); opacity: 1; }
  42% { transform: translate(88px, 30px); opacity: 1; }
  58% { transform: translate(284px, 30px); opacity: 1; }
  72% { transform: translate(284px, 30px) scale(0.94); opacity: 1; }
  88% { transform: translate(284px, 30px); opacity: 1; }
  100% { transform: translate(318px, 56px); opacity: 0; }
}

@media (max-width: 1180px) {
  .landing-v2 .v2-scan-page.v2-scan-page-real,
  .landing-v2 .v2-word-page,
  .landing-v2 .v2-engine {
    scale: 0.78;
    translate: 3vw 0;
  }

  .landing-v2 .v2-stage-grid {
    width: 86%;
  }
}

@media (max-width: 860px) {
  .landing-v2 .v2-scan-page.v2-scan-page-real,
  .landing-v2 .v2-word-page,
  .landing-v2 .v2-engine {
    scale: 1;
    translate: 0 0;
  }

  .landing-v2 .v2-stage-grid {
    width: 560px;
    height: 420px;
    inset: auto -150px auto auto;
    top: 62px;
  }

  .landing-v2 .v2-stage::before,
  .landing-v2 .v2-stage::after {
    display: none;
  }
}

/* Landing v2 realistic Word ribbon and hand cursor */
.landing-v2 .v2-word-page {
  width: 456px;
  height: 596px;
  padding: 152px 22px 22px;
}

.landing-v2 .v2-word-topbar {
  height: 30px;
  border-radius: 8px 8px 0 0;
  background: #2d5da3;
}

.landing-v2 .v2-word-ribbon {
  top: 30px;
  height: 116px;
  border-bottom: 1px solid rgba(36, 83, 148, 0.34);
  background: #f4f4f4;
}

.v2-ribbon-title,
.v2-ribbon-tabs,
.v2-ribbon-tools {
  display: none;
}

.v2-ribbon-titlebar {
  position: absolute;
  inset: 0 0 auto;
  display: grid;
  grid-template-columns: 46px 1fr 54px;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  color: rgba(255, 255, 255, 0.92);
  background: #2d5da3;
  font-size: 9px;
  font-weight: 800;
}

.v2-ribbon-quick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 12px;
}

.v2-ribbon-doc-title {
  text-align: center;
}

.v2-ribbon-account {
  justify-self: end;
  opacity: 0.85;
}

.v2-ribbon-tabbar {
  position: absolute;
  top: 28px;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 0;
  height: 26px;
  border-bottom: 1px solid rgba(45, 93, 163, 0.18);
  background: #fff;
  color: #2f5d9f;
  font-size: 8.5px;
  font-weight: 850;
}

.v2-ribbon-tabbar span {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 8px;
}

.v2-ribbon-tabbar .active {
  color: #111;
  background: #f4f4f4;
  border-bottom: 2px solid #2d5da3;
}

.v2-ribbon-tabbar strong {
  display: inline-flex;
  align-items: center;
  min-width: 138px;
  height: 18px;
  margin-left: auto;
  margin-right: 10px;
  padding: 0 8px;
  border: 1px solid rgba(45, 93, 163, 0.18);
  border-radius: 10px;
  color: rgba(23, 21, 19, 0.56);
  background: #fafafa;
  font-size: 7.5px;
  font-weight: 750;
}

.v2-ribbon-tabbar strong::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-right: 5px;
  border: 1px solid #2d5da3;
  border-radius: 50%;
}

.v2-ribbon-commandbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: 176px 96px 1fr 54px;
  height: 62px;
  border-top: 1px solid rgba(255, 255, 255, 0.8);
  background:
    linear-gradient(180deg, #fbfbfb, #ececec);
}

.v2-ribbon-group {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 5px;
  padding: 8px 8px 16px;
  border-right: 1px solid rgba(23, 21, 19, 0.12);
}

.v2-ribbon-group::after {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 3px;
  color: rgba(23, 21, 19, 0.55);
  font-size: 7px;
  font-weight: 750;
  text-align: center;
}

.v2-ribbon-font::after {
  content: "Шрифт";
}

.v2-ribbon-paragraph::after {
  content: "Абзац";
}

.v2-ribbon-styles::after {
  content: "Стили";
}

.v2-ribbon-select,
.v2-ribbon-size,
.v2-ribbon-group span,
.v2-ribbon-group i,
.v2-ribbon-styles b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  border: 1px solid rgba(23, 21, 19, 0.16);
  border-radius: 2px;
  background: #fff;
  color: #333;
  font-size: 8px;
  font-style: normal;
  font-weight: 850;
}

.v2-ribbon-select {
  width: 70px;
  justify-content: flex-start;
  padding-left: 6px;
}

.v2-ribbon-size {
  width: 28px;
}

.v2-ribbon-group span,
.v2-ribbon-group i {
  width: 20px;
  color: #2d5da3;
}

.v2-ribbon-group .mark {
  background:
    linear-gradient(0deg, #f5dc45 0 5px, transparent 5px),
    #fff;
}

.v2-ribbon-styles {
  gap: 4px;
}

.v2-ribbon-styles b {
  width: 58px;
  color: #2d5da3;
  font-family: Georgia, serif;
  font-size: 12px;
  font-weight: 700;
}

.v2-ribbon-styles b:nth-child(2),
.v2-ribbon-styles b:nth-child(3) {
  color: #555;
  font-size: 8px;
  font-family: Arial, sans-serif;
}

.v2-ribbon-editing {
  align-items: center;
  justify-content: center;
}

.v2-ribbon-editing span {
  width: auto;
  min-width: 42px;
  border: 0;
  color: #2d5da3;
  background: transparent;
}

.landing-v2 .v2-word-document {
  height: 356px;
}

.landing-v2 .v2-mouse-cursor {
  top: 124px;
  left: 72px;
  width: 34px;
  height: 34px;
  border: 0;
  background: url("/assets/landing-arrow-cursor.svg") 0 0 / contain no-repeat;
  filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.24));
  transform-origin: 2px 2px;
}

.landing-v2 .v2-mouse-cursor::after {
  display: none;
}

@media (max-width: 1180px) {
  .landing-v2 .v2-word-page {
    width: 396px;
    height: 558px;
    padding-top: 140px;
  }

  .landing-v2 .v2-word-ribbon {
    height: 104px;
  }

  .v2-ribbon-commandbar {
    grid-template-columns: 148px 82px 1fr;
    height: 52px;
  }

  .v2-ribbon-editing {
    display: none;
  }

  .v2-ribbon-select {
    width: 58px;
  }

  .v2-ribbon-group span,
  .v2-ribbon-group i {
    width: 17px;
  }

  .v2-ribbon-styles b {
    width: 48px;
  }
}

@media (max-width: 860px) {
  .landing-v2 .v2-word-page {
    width: 252px;
    height: 342px;
    padding: 82px 12px 12px;
  }

  .landing-v2 .v2-word-ribbon {
    top: 30px;
    height: 46px;
  }

  .v2-ribbon-titlebar {
    height: 18px;
    grid-template-columns: 22px 1fr;
    padding: 0 8px;
    font-size: 7px;
  }

  .v2-ribbon-account {
    display: none;
  }

  .v2-ribbon-tabbar {
    top: 18px;
    height: 22px;
    font-size: 7px;
  }

  .v2-ribbon-tabbar span {
    height: 22px;
    padding: 0 6px;
  }

  .v2-ribbon-tabbar strong,
  .v2-ribbon-commandbar,
  .landing-v2 .v2-mouse-cursor {
    display: none;
  }
}

/* Landing v2 definitive final overrides */
.landing-v2 .v2-hero {
  background:
    linear-gradient(115deg, rgba(255, 250, 241, 0.98) 0 48%, rgba(248, 238, 219, 0.94) 48% 66%, rgba(235, 244, 239, 0.86) 66% 100%),
    #f6ecd9;
}

.landing-v2 .v2-hero::before {
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(23, 21, 19, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(23, 21, 19, 0.038) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 127, 117, 0.085) 1px, transparent 1px),
    linear-gradient(180deg, rgba(8, 127, 117, 0.07) 1px, transparent 1px);
  background-size: 52px 52px, 52px 52px, 208px 208px, 208px 208px;
  mask-image: none;
  opacity: 0.72;
}

.landing-v2 .v2-hero::after {
  right: -3%;
  bottom: -18%;
  width: 62%;
  height: 34%;
  border-top: 1px solid rgba(23, 21, 19, 0.08);
  background:
    repeating-linear-gradient(90deg, rgba(23, 21, 19, 0.035) 0 1px, transparent 1px 52px),
    rgba(241, 183, 66, 0.13);
  transform: rotate(-3deg);
}

.landing-v2 .v2-stage-grid {
  inset: 88px max(18px, calc((100vw - 1260px) / 2)) 64px auto;
  width: min(760px, 49vw);
  height: auto;
  border: 1px solid rgba(8, 127, 117, 0.12);
  background:
    linear-gradient(90deg, rgba(8, 127, 117, 0.075) 1px, transparent 1px),
    linear-gradient(180deg, rgba(8, 127, 117, 0.065) 1px, transparent 1px),
    rgba(255, 250, 241, 0.22);
  background-size: 52px 52px;
  opacity: 0.6;
  transform: rotate(-3deg);
}

.landing-v2 .v2-stage::before {
  right: 20%;
  top: 10%;
  width: 210px;
  height: 82%;
  border: 0;
  background: rgba(241, 183, 66, 0.12);
  transform: skewX(-12deg);
}

.landing-v2 .v2-stage::after {
  display: none;
}

.landing-v2 .v2-scan-page.v2-scan-page-real,
.landing-v2 .v2-word-page,
.landing-v2 .v2-engine {
  scale: 0.8;
  translate: 5vw 0;
}

.landing-v2 .v2-scan-page.v2-scan-page-real {
  right: min(35vw, 540px);
  scale: 0.88;
}

.landing-v2 .v2-scan-corner.corner-b {
  right: 16px;
  bottom: 46px;
}

.landing-v2 .v2-word-page {
  right: max(-22px, calc((100vw - 1320px) / 2));
}

.landing-v2 .v2-mouse-cursor {
  top: 78px;
  left: 38px;
  width: 34px;
  height: 34px;
  background: url("/assets/landing-arrow-cursor.svg") 0 0 / contain no-repeat !important;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.24));
  transform-origin: 2px 2px;
}

@keyframes v2MouseEdit {
  0% { transform: translate(-24px, -18px); opacity: 0; }
  8% { opacity: 1; }
  20% { transform: translate(88px, 29px); opacity: 1; }
  32% { transform: translate(88px, 29px) scale(0.94); opacity: 1; }
  42% { transform: translate(88px, 29px); opacity: 1; }
  58% { transform: translate(282px, 29px); opacity: 1; }
  72% { transform: translate(282px, 29px) scale(0.94); opacity: 1; }
  88% { transform: translate(282px, 29px); opacity: 1; }
  100% { transform: translate(318px, 54px); opacity: 0; }
}

/* Landing v2 absolute last cursor override */
.landing-v2 .v2-mouse-cursor {
  width: 16px !important;
  height: 16px !important;
  background: url("/assets/landing-arrow-cursor.svg") 0 0 / 16px 16px no-repeat !important;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.24)) !important;
}

@keyframes v2MouseEdit {
  0% { transform: translate(-24px, -18px); opacity: 0; }
  8% { opacity: 1; }
  20% { transform: translate(108px, 54px); opacity: 1; }
  32% { transform: translate(108px, 54px) scale(0.92); opacity: 1; }
  42% { transform: translate(108px, 54px); opacity: 1; }
  58% { transform: translate(318px, 54px); opacity: 1; }
  72% { transform: translate(318px, 54px) scale(0.92); opacity: 1; }
  88% { transform: translate(318px, 54px); opacity: 1; }
  100% { transform: translate(338px, 70px); opacity: 0; }
}

@media (max-width: 1180px) {
  .landing-v2 .v2-stage-grid {
    width: min(640px, 54vw);
  }

  .landing-v2 .v2-scan-page.v2-scan-page-real,
  .landing-v2 .v2-word-page,
  .landing-v2 .v2-engine {
    scale: 0.76;
    translate: 4vw 0;
  }
}

@media (max-width: 860px) {
  .landing-v2 .v2-scan-page.v2-scan-page-real,
  .landing-v2 .v2-word-page,
  .landing-v2 .v2-engine {
    scale: 1;
    translate: 0 0;
  }

  .landing-v2 .v2-stage-grid {
    inset: auto -130px auto auto;
    top: 70px;
    width: 520px;
    height: 380px;
  }

  .landing-v2 .v2-stage::before {
    display: none;
  }
}

/* Workflow cards true final cascade guard */
.landing-v2 .v2-flow-step {
  min-height: 462px;
  padding: 20px 20px 194px;
}

.landing-v2 .v2-step-visual {
  height: 154px;
  overflow: hidden;
  border-color: rgba(23, 21, 19, 0.13);
  background:
    radial-gradient(circle at 18% 12%, rgba(241, 183, 66, 0.2), transparent 30%),
    linear-gradient(135deg, rgba(255, 253, 247, 0.96), rgba(239, 248, 244, 0.9)),
    #fffdf7;
}

.landing-v2 .v2-step-visual::before {
  background:
    linear-gradient(90deg, rgba(8, 127, 117, 0.11) 1px, transparent 1px),
    linear-gradient(180deg, rgba(44, 90, 160, 0.09) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.68;
}

.landing-v2 .flow-scan-upload {
  left: 18px;
  top: 44px;
  width: 70px;
  height: 82px;
  animation: v3UploadScan 3.8s cubic-bezier(.44, 0, .22, 1) infinite;
}

.landing-v2 .flow-upload-meter {
  left: 47px;
  right: 34px;
  bottom: 8px;
  height: 5px;
}

.landing-v2 .flow-upload-meter i {
  background: linear-gradient(90deg, #087f75, #f1b742, #ef5a4f);
  animation: v3UploadMeter 3.8s ease-in-out infinite;
}

.landing-v2 .flow-scan-align {
  left: 25px;
  top: 15px;
  width: 82px;
  height: 108px;
  border-radius: 4px;
  animation: v3AlignScan 3.7s cubic-bezier(.46, 0, .22, 1) infinite;
}

.landing-v2 .flow-scan-align img {
  object-fit: cover;
  object-position: 50% 18%;
  transform: scale(1.1);
}

.landing-v2 .flow-align-frame {
  left: auto;
  right: 28px;
  top: 15px;
  width: 76px;
  height: 108px;
  border: 2px solid #087f75;
  border-radius: 3px;
  background:
    linear-gradient(90deg, transparent 49%, rgba(8, 127, 117, 0.28) 49% 51%, transparent 51%),
    linear-gradient(0deg, transparent 49%, rgba(8, 127, 117, 0.24) 49% 51%, transparent 51%),
    rgba(8, 127, 117, 0.035);
  animation: v3AlignFrame 3.7s ease-in-out infinite;
}

.landing-v2 .flow-align-baseline {
  left: 18px;
  right: 18px;
  bottom: 23px;
  height: 3px;
}

.landing-v2 .flow-ocr-sheet {
  inset: 13px 14px;
  border-radius: 6px;
  background: #fff;
}

.landing-v2 .flow-ocr-sheet img {
  position: absolute;
  left: -8%;
  top: -172%;
  width: 235%;
  height: auto;
  max-width: none;
  object-fit: initial;
  opacity: 1;
  filter: grayscale(0.02) contrast(1.18);
}

.landing-v2 .flow-ocr-sweep {
  top: -20%;
  left: -18%;
  width: 24%;
  height: 142%;
  background: linear-gradient(90deg, transparent, rgba(8, 127, 117, 0.34), rgba(241, 183, 66, 0.24), transparent);
  transform: rotate(10deg);
  animation: v3OcrSweep 3.2s ease-in-out infinite;
}

.landing-v2 .flow-ocr-mark {
  height: 9px;
  background: rgba(8, 127, 117, 0.3);
  transform-origin: left center;
  animation: v3OcrMark 3.2s ease-in-out infinite;
}

.landing-v2 .flow-ocr-mark.m1 { left: 20px; top: 26px; width: 118px; animation-delay: 0.08s; }
.landing-v2 .flow-ocr-mark.m2 { left: 20px; top: 50px; width: 148px; animation-delay: 0.2s; }
.landing-v2 .flow-ocr-mark.m3 { left: 20px; top: 74px; width: 126px; animation-delay: 0.32s; }
.landing-v2 .flow-ocr-mark.m4 { left: 116px; top: 74px; width: 54px; animation-delay: 0.42s; }

.landing-v2 .flow-ocr-table {
  left: 18px;
  right: 16px;
  top: 21px;
  bottom: 34px;
  width: auto;
  height: auto;
  border: 2px solid rgba(44, 90, 160, 0.86);
  background:
    linear-gradient(90deg, transparent 66%, rgba(44, 90, 160, 0.62) 66% 67%, transparent 67%),
    linear-gradient(0deg, transparent 33%, rgba(44, 90, 160, 0.48) 33% 34%, transparent 34% 66%, rgba(44, 90, 160, 0.42) 66% 67%, transparent 67%);
  animation: v3OcrTable 3.2s ease-in-out infinite;
}

.landing-v2 .flow-build-doc {
  inset: 8px 15px;
  border-radius: 7px;
  background: #fff;
}

.landing-v2 .flow-word-ribbon {
  height: 27px;
  background: linear-gradient(90deg, #2f5fa8 0 76%, #264c86 76% 100%);
}

.landing-v2 .flow-word-source {
  left: 21px;
  top: 36px;
  width: 154px;
  height: 87px;
  object-fit: cover;
  object-position: 50% 55%;
  opacity: 0.94;
  filter: grayscale(0.04) contrast(1.12);
  animation: v3WordScanReveal 3.6s ease-in-out infinite;
}

.landing-v2 .flow-build-title {
  left: 47px;
  top: 42px;
  width: 84px;
  height: 6px;
  transform-origin: left center;
  animation: v3WordText 3.6s ease-in-out infinite;
}

.landing-v2 .flow-build-lines {
  left: 31px;
  top: 60px;
  width: 126px;
}

.landing-v2 .flow-build-lines i {
  width: 108px;
  height: 4px;
  animation: v3WordText 3.6s ease-in-out infinite;
}

.landing-v2 .flow-build-lines i:nth-child(2) {
  width: 126px;
  animation-delay: 0.12s;
}

.landing-v2 .flow-build-lines i:nth-child(3) {
  width: 94px;
  animation-delay: 0.24s;
}

.landing-v2 .flow-build-table {
  left: 24px;
  right: 24px;
  bottom: 14px;
  height: 39px;
  border: 1px solid rgba(23, 21, 19, 0.52);
  animation: v3WordTable 3.6s ease-in-out infinite;
}

.landing-v2 .flow-ready-window {
  inset: 9px 13px;
  border-radius: 8px;
}

.landing-v2 .flow-ready-bar {
  height: 32px;
  background: linear-gradient(90deg, rgba(47, 95, 168, 0.95), rgba(63, 115, 196, 0.72));
}

.landing-v2 .flow-ready-page {
  left: 35px;
  right: 35px;
  top: 45px;
  bottom: 8px;
  overflow: hidden;
  animation: v3ReadyPage 3.8s ease-in-out infinite;
}

.landing-v2 .flow-ready-page img {
  display: block;
  position: absolute;
  inset: 6px;
  width: calc(100% - 12px);
  height: calc(100% - 12px);
  object-fit: cover;
  object-position: 50% 55%;
  opacity: 0.98;
  filter: grayscale(0.04) contrast(1.08);
}

.landing-v2 .flow-ready-page b,
.landing-v2 .flow-ready-page i,
.landing-v2 .flow-ready-page div {
  display: none;
}

