:root {
  --ink: #071536;
  --muted: #536078;
  --blue: #1457f5;
  --blue-dark: #0a3ecc;
  --line: #dce3ed;
  --soft: #f4f8ff;
  --mint: #dff8ef;
  --green: #009d67;
  --radius: 18px;
  font-family: Inter, "Noto Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #fff;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; overflow-x: hidden; }
button, a { font: inherit; }
a { color: inherit; }
svg { display: block; }

.site-header {
  position: relative;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(100% - 72px, 1480px);
  height: 80px;
  margin: 0 auto;
}

.brand { display: inline-flex; align-items: center; gap: 12px; width: max-content; color: var(--ink); font-size: 25px; font-weight: 800; letter-spacing: -.04em; text-decoration: none; }
.brand-wordmark { display: block; width: auto; height: 44px; object-fit: contain; }
.brand-mark { position: relative; display: grid; width: 35px; height: 35px; place-items: center; border: 4px solid var(--blue); }
.brand-mark::before, .brand-mark::after { position: absolute; content: ""; background: #fff; }
.brand-mark::before { inset: 5px -6px; }
.brand-mark::after { inset: -6px 5px; }
.brand-mark span { position: relative; z-index: 1; width: 5px; height: 15px; border-radius: 1px; background: var(--blue); }

.main-nav { display: flex; align-items: center; gap: clamp(24px, 3vw, 46px); }
.main-nav a, .text-link { position: relative; color: #111827; font-size: 14px; font-weight: 600; text-decoration: none; }
.main-nav a::after, .text-link::after { position: absolute; right: 0; bottom: -7px; left: 0; height: 1px; content: ""; background: var(--blue); transform: scaleX(0); transition: transform .2s ease; }
.main-nav a:hover::after, .text-link:hover::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 30px; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 11px; min-height: 54px; padding: 0 24px; border: 1px solid transparent; border-radius: 9px; font-size: 15px; font-weight: 700; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-small { min-height: 48px; padding: 0 24px; color: #fff; background: var(--blue); box-shadow: 0 8px 20px rgba(20,87,245,.18); }
.button-primary { min-width: 200px; color: #fff; background: var(--blue); box-shadow: 0 14px 30px rgba(20,87,245,.24); }
.button-primary:hover, .button-small:hover { background: var(--blue-dark); box-shadow: 0 18px 34px rgba(20,87,245,.3); }
.button-primary svg { width: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.button-secondary { min-width: 190px; border-color: #d3dae6; background: rgba(255,255,255,.72); }
.button-secondary:hover { border-color: #a9b7ce; background: #fff; box-shadow: 0 10px 26px rgba(10,34,78,.08); }
.play { display: grid; width: 27px; height: 27px; place-items: center; border: 2px solid var(--blue); border-radius: 50%; color: var(--blue); font-size: 9px; text-indent: 2px; }
.menu-toggle { display: none; }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(440px, .88fr) minmax(650px, 1.32fr);
  align-items: center;
  gap: clamp(30px, 4vw, 70px);
  width: min(100% - 72px, 1480px);
  min-height: 680px;
  margin: 0 auto;
  padding: 42px 0 44px;
}
.hero::before { position: absolute; z-index: -2; top: -80px; right: calc(50% - 50vw); bottom: -50px; left: calc(50% - 50vw); content: ""; border-top: 1px solid #eef1f6; background-image: linear-gradient(rgba(35,81,158,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(35,81,158,.035) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(to bottom, transparent, #000 16%, #000 82%, transparent); }
.hero-glow { position: absolute; z-index: -1; bottom: -180px; left: -260px; width: 650px; height: 600px; border-radius: 50%; background: rgba(116,187,255,.25); filter: blur(90px); pointer-events: none; }
.eyebrow, .section-kicker { display: flex; align-items: center; gap: 10px; color: var(--blue); font-size: 11px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.eyebrow span { width: 26px; height: 2px; background: var(--blue); }
.hero h1 { margin: 21px 0 20px; color: var(--ink); font-size: clamp(54px, 5.1vw, 82px); font-weight: 800; letter-spacing: -.065em; line-height: .98; }
.hero h1 em { color: var(--blue); font-style: normal; }
.hero-lead { max-width: 580px; margin: 0; color: #445068; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.65; }
.hero-benefits { display: flex; flex-wrap: wrap; gap: 12px 21px; margin: 30px 0; }
.hero-benefits > span { display: inline-flex; align-items: center; gap: 9px; color: #26334a; font-size: 12px; font-weight: 600; }
.language-note { max-width: 590px; margin: -12px 0 24px; color: #68748a; font-size: 13px; line-height: 1.55; }
.language-note span { color: var(--blue); font-weight: 700; }
.benefit-icon { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 50%; color: #075c58; background: var(--mint); font-style: normal; font-weight: 800; }
.benefit-icon svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.format-note { margin: 15px 0 0; color: #778196; font-size: 11px; }
.format-note span { margin: 0 6px; }

.product-demo { min-width: 0; overflow: hidden; border: 1px solid #cfd8e7; border-radius: 16px; background: rgba(255,255,255,.94); box-shadow: 0 28px 70px rgba(31,58,103,.13), 0 2px 8px rgba(31,58,103,.05); }
.demo-toolbar { display: flex; align-items: center; gap: 10px; height: 59px; padding: 0 16px; border-bottom: 1px solid #dae1eb; }
.language-picker { position: relative; }
.language-select { display: flex; align-items: center; gap: 9px; min-height: 37px; padding: 0 13px; border: 1px solid #d6dde9; border-radius: 8px; color: inherit; background: #fff; font-size: 12px; cursor: pointer; transition: border-color .2s ease, box-shadow .2s ease; }
.language-select:hover { border-color: #b9c7df; }
.language-select[aria-expanded="true"] { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(20,87,245,.12); }
.language-select svg { width: 17px; fill: none; stroke: #243149; stroke-width: 1.7; }
.language-select b { color: #7e899a; font-weight: 500; }
.language-select .chevron { width: 13px; margin-left: 2px; transition: transform .2s ease; }
.language-select[aria-expanded="true"] .chevron { transform: rotate(180deg); }
.language-dropdown { position: absolute; z-index: 20; top: calc(100% + 7px); left: 0; display: grid; gap: 4px; min-width: 210px; padding: 7px; border: 1px solid #d6dde9; border-radius: 10px; background: #fff; box-shadow: 0 16px 38px rgba(20,36,67,.16); }
.language-dropdown[hidden] { display: none; }
.language-option { display: flex; align-items: center; gap: 7px; padding: 8px 10px; border-radius: 7px; font-size: 12px; }
.language-option.is-selected { background: #f0f5ff; font-weight: 600; }
.language-option i { color: var(--green); font-style: normal; }
.language-option b { color: #7e899a; font-weight: 500; }
.language-more { padding: 8px 10px; border-top: 1px solid #e6ebf3; color: #7a869c; font-size: 11px; }
.match-status { display: flex; align-items: center; gap: 7px; margin-left: auto; color: #465268; font-size: 11px; white-space: nowrap; }
.match-status i { display: grid; width: 17px; height: 17px; place-items: center; border: 1.5px solid var(--green); border-radius: 50%; color: var(--green); font-size: 10px; font-style: normal; }
.format-chip { min-width: 65px; min-height: 35px; border: 1px solid #d6dde9; border-radius: 7px; color: #152038; background: #fff; font-size: 12px; cursor: pointer; }
.format-chip.active { border-color: #b9c7df; background: #f5f8fc; }
.compare-labels { display: grid; grid-template-columns: 1fr 1fr; padding: 12px 18px 7px; color: #172037; font-size: 12px; font-weight: 700; }
.compare-labels span:last-child { padding-left: 18px; }
.document-compare { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 19px; padding: 0 12px 14px; }
.document { position: relative; min-width: 0; aspect-ratio: .77; overflow: hidden; padding: 23px 18px 15px; border: 1px solid #dce2e9; background: #fff; box-shadow: 0 2px 7px rgba(20,36,67,.09); font-family: Georgia, "Times New Roman", serif; color: #252321; font-size: clamp(6px, .57vw, 9px); }
.source-document { background: #f1e9d8; transform: rotate(-.35deg); }
.paper-noise { position: absolute; inset: 0; opacity: .42; background-image: radial-gradient(#705c3b 0.45px, transparent .55px), linear-gradient(106deg, transparent 40%, rgba(102,74,39,.08) 41%, transparent 42%); background-size: 6px 7px, 100% 100%; pointer-events: none; }
.invoice-head, .invoice-meta, .invoice-table, .invoice-bottom, .document footer { position: relative; z-index: 1; }
.invoice-head { display: flex; align-items: start; justify-content: space-between; }
.mini-logo { display: flex; align-items: center; gap: 4px; color: #17294b; font-family: Arial, sans-serif; font-size: .85em; font-weight: 700; letter-spacing: .06em; }
.mini-logo span { display: grid; width: 17px; height: 17px; place-items: center; color: #fff; background: #19386f; font-size: .68em; }
.invoice-title { display: grid; justify-items: end; gap: 4px; }
.invoice-title strong { color: #10192a; font-size: 1.85em; letter-spacing: .05em; }
.invoice-title small { font-size: .75em; }
.invoice-meta { display: grid; grid-template-columns: 1.25fr .85fr; gap: 17px; min-height: 90px; margin-top: 23px; line-height: 1.45; }
.detected { position: relative; }
.detected::after, .table-detection { position: absolute; inset: -5px; border: 1px dashed #10a77c; content: ""; pointer-events: none; }
.detected::before { position: absolute; z-index: 2; top: -7px; right: -7px; width: 4px; height: 4px; content: ""; background: #10a77c; box-shadow: calc(-100% + 1px) 0 0 #10a77c; }
.invoice-rule { position: relative; z-index: 1; height: 2px; margin: 3px 0 8px; background: #14284b; }
.invoice-table { width: 100%; border-collapse: collapse; font-size: .83em; }
.invoice-table th, .invoice-table td { padding: 6px 4px; border: 1px solid #777; text-align: right; white-space: nowrap; }
.invoice-table th:first-child, .invoice-table td:first-child { width: 49%; text-align: left; }
.invoice-table th { background: rgba(31,61,105,.07); font-weight: 700; }
.table-detection { z-index: 3; top: 161px; right: 13px; bottom: auto; left: 13px; height: 117px; }
.invoice-bottom { display: grid; grid-template-columns: .75fr 1.25fr; align-items: center; gap: 15px; margin-top: 29px; }
.stamp { justify-self: center; padding: 7px 14px; transform: rotate(-8deg); border: 1.5px solid #2053c9; border-radius: 4px; color: #2053c9; font-family: Georgia, serif; font-size: 1.55em; letter-spacing: .16em; text-align: center; }
.stamp small { display: block; margin-top: 3px; font-size: .7em; letter-spacing: .08em; }
.totals { display: grid; line-height: 2.2; }
.totals span { display: flex; justify-content: space-between; border-bottom: 1px solid #a0a0a0; }
.totals .grand { border-bottom: 2px solid #222; font-weight: 700; }
.document footer { position: absolute; right: 18px; bottom: 19px; left: 18px; display: flex; align-items: end; justify-content: space-between; padding-top: 9px; border-top: 1px solid #999; }
.signature { color: #1f55b1; font-family: cursive; font-size: 1.5em; font-style: italic; }
.compare-handle { position: absolute; z-index: 6; top: 44%; left: 50%; display: grid; width: 43px; height: 43px; padding: 0; place-items: center; transform: translate(-50%,-50%); border: 1px solid #d8dee8; border-radius: 50%; color: #1d2a42; background: #fff; box-shadow: 0 5px 13px rgba(16,38,77,.11); font-size: 18px; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
.compare-handle:hover { transform: translate(-50%,-50%) scale(1.09); box-shadow: 0 8px 18px rgba(16,38,77,.18); }
.compare-handle:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.document-compare .document { transition: transform .35s ease, box-shadow .35s ease; }
.document-compare[data-focus="source"] .source-document { transform: rotate(-.35deg) scale(1.04); z-index: 4; box-shadow: 0 12px 26px rgba(20,36,67,.16); }
.document-compare[data-focus="target"] .translated-document { transform: scale(1.04); z-index: 4; box-shadow: 0 12px 26px rgba(20,36,67,.16); }

.trust-strip { display: grid; grid-template-columns: 1.55fr 1px repeat(4, 1fr); align-items: center; gap: 22px; width: min(100% - 72px, 1370px); min-height: 80px; margin: 28px auto 0; padding: 14px 36px; border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: 0 12px 36px rgba(24,52,100,.07); }
.trust-strip strong { font-size: 14px; line-height: 1.45; }
.trust-divider { width: 1px; height: 36px; background: var(--line); }
.trust-strip > span { display: flex; align-items: center; justify-content: center; gap: 9px; color: #4d5564; font-size: 11px; font-weight: 700; letter-spacing: .16em; white-space: nowrap; }
.trust-strip i { color: #26344b; font-size: 21px; font-style: normal; }

.features, .use-cases, .pricing { width: min(100% - 72px, 1370px); margin: 120px auto 130px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 60px; margin-bottom: 48px; }
.section-heading h2, .workflow h2, .privacy h2, .final-cta h2 { margin: 13px 0 0; font-size: clamp(39px, 4vw, 61px); line-height: 1.08; letter-spacing: -.055em; }
.section-heading > p { max-width: 510px; margin: 0 0 5px; color: var(--muted); font-size: 16px; line-height: 1.75; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card { position: relative; display: flex; flex-direction: column; min-height: 330px; padding: 34px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fff; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.feature-card:hover { transform: translateY(-7px); border-color: #bdcae0; box-shadow: 0 22px 50px rgba(23,53,104,.1); }
.feature-icon { display: grid; width: 62px; height: 62px; place-items: center; border-radius: 16px; color: var(--blue); background: #edf4ff; }
.feature-icon svg { width: 29px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.feature-number { position: absolute; top: 34px; right: 34px; color: #c7d0de; font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.feature-card h3 { margin: 29px 0 11px; font-size: 23px; letter-spacing: -.035em; }
.feature-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
.feature-card a { margin-top: auto; padding-top: 24px; color: var(--blue); font-size: 12px; font-weight: 800; text-decoration: none; }
.feature-card a span { margin-left: 5px; }

.use-cases { margin-top: -10px; }
.use-case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.use-case-card { min-height: 365px; padding: 38px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 12px 36px rgba(24,52,100,.055); }
.use-case-card.featured { color: #fff; border-color: var(--ink); background: var(--ink); box-shadow: 0 24px 60px rgba(7,21,54,.2); }
.use-case-card > span { color: var(--blue); font-size: 10px; font-weight: 800; letter-spacing: .15em; }
.use-case-card.featured > span { color: #7fa7ff; }
.use-case-card h3 { margin: 24px 0 14px; font-size: 30px; letter-spacing: -.045em; }
.use-case-card p { min-height: 74px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.use-case-card.featured p { color: #aebbd3; }
.use-case-card ul { display: grid; gap: 12px; margin: 28px 0 0; padding: 24px 0 0; border-top: 1px solid var(--line); list-style: none; color: #26344c; font-size: 13px; font-weight: 650; }
.use-case-card.featured ul { border-color: rgba(255,255,255,.17); color: #fff; }
.use-case-card li::before { margin-right: 9px; color: var(--green); content: "✓"; }

.workflow { display: grid; grid-template-columns: .9fr 1.1fr; gap: 9vw; padding: 110px max(36px, calc((100vw - 1370px)/2)); color: #fff; background: #071536; }
.section-kicker.light { color: #7fa7ff; }
.workflow-copy > p { max-width: 490px; margin: 24px 0 33px; color: #aebbd3; font-size: 15px; line-height: 1.75; }
.button-light { border-color: rgba(255,255,255,.25); color: #fff; background: rgba(255,255,255,.06); }
.button-light:hover { background: rgba(255,255,255,.12); }
.workflow-guide-link { display: block; width: fit-content; margin-top: 18px; color: #b7d1ff; font-size: 14px; font-weight: 700; text-decoration: none; }
.workflow-guide-link:hover { color: #fff; text-decoration: underline; }
.workflow-steps { margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(255,255,255,.17); }
.workflow-steps li { display: grid; grid-template-columns: 70px 1fr; padding: 24px 0; border-bottom: 1px solid rgba(255,255,255,.17); }
.workflow-steps li > span { color: #5f8cf6; font-size: 12px; font-weight: 800; letter-spacing: .1em; }
.workflow-steps strong { display: block; margin-bottom: 7px; font-size: 18px; }
.workflow-steps p { margin: 0; color: #96a6c1; font-size: 13px; line-height: 1.6; }

.landing-tutorial { display: grid; grid-template-columns: minmax(260px,.7fr) minmax(0,1.3fr); align-items: center; gap: 7vw; width: min(100% - 72px, 1370px); margin: 110px auto; padding: 46px; border: 1px solid var(--line); border-radius: 22px; background: var(--soft); }
.landing-tutorial h2 { margin: 13px 0 18px; font-size: clamp(36px, 3.5vw, 54px); line-height: 1.08; letter-spacing: -.055em; }
.landing-tutorial-copy > p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.75; }
.landing-tutorial-video video { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; background: var(--ink); box-shadow: 0 20px 50px rgba(7,21,54,.16); }
.landing-tutorial-video > p { margin: 12px 2px 0; color: #68748a; font-size: 12px; line-height: 1.6; }
.landing-tutorial-video a { color: #445068; }

.privacy { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 9vw; width: min(100% - 72px, 1240px); margin: 130px auto; }
.privacy-visual { position: relative; display: grid; min-height: 430px; place-items: center; border-radius: 48%; background: radial-gradient(circle, #edf5ff 0, #f7faff 50%, transparent 70%); }
.shield { position: relative; z-index: 2; display: grid; width: 145px; height: 145px; place-items: center; border: 1px solid #ccd9ee; border-radius: 36px; background: #fff; box-shadow: 0 30px 70px rgba(26,71,153,.18); transform: rotate(5deg); }
.shield svg { width: 77px; fill: rgba(20,87,245,.08); stroke: var(--blue); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transform: rotate(-5deg); }
.privacy-orbit { position: absolute; border: 1px dashed #aebed7; border-radius: 50%; }
.orbit-one { width: 330px; height: 230px; transform: rotate(18deg); }
.orbit-two { width: 410px; height: 310px; transform: rotate(-14deg); }
.privacy-pill { position: absolute; z-index: 3; padding: 10px 15px; border: 1px solid #d8e1ef; border-radius: 999px; color: #3c4b63; background: #fff; box-shadow: 0 10px 25px rgba(24,55,105,.1); font-size: 11px; font-weight: 700; }
.pill-one { top: 65px; left: 6%; }
.pill-two { right: -1%; bottom: 110px; }
.pill-three { bottom: 35px; left: 15%; }
.privacy-copy > p { margin: 24px 0; color: var(--muted); font-size: 16px; line-height: 1.75; }
.privacy-copy ul { display: grid; gap: 13px; margin: 0; padding: 0; list-style: none; color: #26344c; font-size: 14px; font-weight: 600; }
.privacy-copy li { display: flex; align-items: center; gap: 11px; }
.privacy-copy li span { display: grid; width: 22px; height: 22px; flex: 0 0 auto; place-items: center; border-radius: 50%; color: var(--green); background: var(--mint); font-size: 11px; }
.privacy-onprem { max-width: 480px; margin: 22px 0 0; color: #68748a; font-size: 13px; line-height: 1.6; }
.privacy-onprem a span { color: var(--blue); font-weight: 700; }

.final-cta { display: flex; align-items: end; justify-content: space-between; gap: 40px; width: min(100% - 72px, 1370px); min-height: 350px; margin: 0 auto 70px; padding: 65px 72px; overflow: hidden; border-radius: 24px; color: #fff; background: var(--blue); box-shadow: 0 30px 70px rgba(20,87,245,.25); }
.final-cta h2 { font-size: clamp(43px, 5vw, 70px); }
.button-white { min-width: 205px; color: var(--blue); background: #fff; }
.button-white span { font-size: 20px; }
.final-actions { display: grid; justify-items: center; gap: 18px; flex: 0 0 auto; }
.final-link { color: #fff; font-size: 13px; font-weight: 700; text-underline-offset: 5px; }

.deploy { display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 6vw; width: min(100% - 72px, 1370px); margin: 0 auto 70px; padding: 58px 72px; overflow: hidden; border-radius: 24px; color: #fff; background: var(--ink); box-shadow: 0 30px 70px rgba(7,21,54,.22); }
.deploy h2 { margin: 13px 0 0; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.1; letter-spacing: -.05em; }
.deploy-copy > p { max-width: 560px; margin: 20px 0 22px; color: #aebbd3; font-size: 15px; line-height: 1.72; }
.deploy-points { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; color: #cdd7e6; font-size: 13px; font-weight: 600; }
.deploy-points li::before { margin-right: 9px; color: #7fa7ff; content: "✓"; }
.deploy-actions { display: grid; justify-items: start; gap: 14px; flex: 0 0 auto; }
.deploy-note { color: #8b9ab5; font-size: 12px; }

footer { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 45px; width: min(100% - 72px, 1370px); min-height: 115px; margin: 0 auto; border-top: 1px solid var(--line); color: #758096; font-size: 11px; }
.brand-footer { font-size: 20px; }
.brand-footer .brand-wordmark { height: 36px; }
.brand-footer .brand-mark { width: 28px; height: 28px; border-width: 3px; }
.brand-footer .brand-mark span { width: 4px; height: 12px; }
footer p { margin: 0; }
footer div { display: flex; gap: 24px; }
.footer-links { flex-wrap: wrap; justify-content: flex-end; }
footer a:not(.brand) { font-weight: 600; text-decoration: none; }
footer a:hover { color: var(--blue); }

.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay { transition-delay: .13s; }
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }

@media (max-width: 1180px) {
  .site-header { grid-template-columns: auto 1fr auto; }
  .main-nav { justify-content: center; gap: 22px; }
  .main-nav a { font-size: 12px; }
  .header-actions .text-link { display: none; }
  .hero { grid-template-columns: minmax(370px,.8fr) minmax(580px,1.2fr); gap: 26px; }
  .document { padding: 19px 13px; }
  .table-detection { top: 148px; right: 9px; left: 9px; height: 107px; }
  .trust-strip { grid-template-columns: 1.3fr repeat(4,1fr); }
  .trust-divider { display: none; }
  .trust-strip strong br { display: none; }
  .workflow { gap: 6vw; }
}

@media (max-width: 960px) {
  .site-header, .hero, .trust-strip, .features, .use-cases, .pricing, .landing-tutorial, .privacy, .deploy, .final-cta, footer { width: min(100% - 40px, 760px); }
  .site-header { grid-template-columns: 1fr auto; height: 70px; }
  .menu-toggle { display: grid; width: 42px; height: 42px; padding: 11px; place-content: center; gap: 6px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
  .menu-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); transition: transform .2s ease; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .main-nav { position: absolute; top: 66px; right: 0; left: 0; display: none; padding: 18px 20px 22px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 18px 35px rgba(15,39,80,.12); }
  .main-nav.open { display: grid; }
  .main-nav a { padding: 8px 0; font-size: 14px; }
  .header-actions { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 60px; }
  .hero-copy { max-width: 680px; }
  .hero h1 { font-size: clamp(55px, 11vw, 76px); }
  .product-demo { margin-top: 34px; }
  .document { font-size: 8px; }
  .trust-strip { grid-template-columns: repeat(2,1fr); margin-top: 45px; padding: 26px; }
  .trust-strip strong { grid-column: 1/-1; text-align: center; }
  .features { margin: 95px auto; }
  .section-heading { display: grid; gap: 22px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 280px; }
  .use-case-grid { grid-template-columns: 1fr; }
  .use-case-card { min-height: 0; }
  .use-case-card p { min-height: 0; }
  .workflow { grid-template-columns: 1fr; padding: 90px max(20px, calc((100vw - 760px)/2)); }
  .workflow-copy { margin-bottom: 35px; }
  .landing-tutorial { grid-template-columns: 1fr; gap: 30px; padding: 34px; }
  .privacy { grid-template-columns: 1fr; }
  .privacy-visual { order: 2; }
  .final-cta { align-items: start; flex-direction: column; padding: 55px; }
  .deploy { grid-template-columns: 1fr; gap: 32px; padding: 48px 44px; }
  footer { grid-template-columns: 1fr auto; gap: 18px; padding: 28px 0; }
  footer p { grid-column: 1/-1; grid-row: 2; }
  footer div { grid-column: 1/-1; grid-row: 3; }
}

@media (max-width: 600px) {
  .site-header, .hero, .trust-strip, .features, .use-cases, .pricing, .landing-tutorial, .privacy, .deploy, .final-cta, footer { width: calc(100% - 30px); }
  .brand { font-size: 21px; }
  .brand-mark { width: 30px; height: 30px; border-width: 3px; }
  .hero { padding-top: 35px; }
  .eyebrow { font-size: 9px; }
  .hero h1 { margin-top: 17px; font-size: clamp(44px, 14vw, 64px); }
  .hero-lead { font-size: 16px; }
  .hero-benefits { display: grid; gap: 10px; }
  .hero-actions { display: grid; }
  .button { width: 100%; }
  .product-demo { overflow-x: auto; }
  .demo-toolbar { min-width: 620px; }
  .compare-labels, .document-compare { min-width: 620px; }
  .document { font-size: 7px; }
  .table-detection { top: 145px; height: 105px; }
  .trust-strip { grid-template-columns: 1fr; gap: 20px; }
  .trust-strip > span { justify-content: flex-start; padding-left: 20%; }
  .section-heading h2, .workflow h2, .privacy h2 { font-size: 38px; }
  .feature-card { padding: 27px; }
  .use-case-card { padding: 30px 27px; }
  .workflow { padding-block: 75px; }
  .landing-tutorial { margin-block: 70px; padding: 24px 18px; }
  .landing-tutorial h2 { font-size: 36px; }
  .workflow-steps li { grid-template-columns: 52px 1fr; }
  .privacy { margin-block: 90px; }
  .privacy-visual { min-height: 350px; transform: scale(.9); }
  .final-cta { min-height: 320px; margin-bottom: 40px; padding: 38px 28px; }
  .final-cta h2 { font-size: 42px; }
  .deploy { margin-bottom: 40px; padding: 34px 26px; }
  .deploy .button { width: 100%; }
  footer { grid-template-columns: 1fr; }
  footer > span { grid-row: 4; }
  footer div { flex-wrap: wrap; gap: 13px 20px; }
}

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

/* Landing subpages (perevod-pdf/ ...): a real before/after scan instead of the
   illustrated invoice, plus an FAQ that mirrors the page's FAQPage JSON-LD. */
.hero-page h1 { font-size: clamp(40px, 4.2vw, 66px); line-height: 1.02; }
.real-demo { margin: 0; padding: 14px 14px 16px; }
.real-demo .compare-labels { gap: 14px; padding: 0 4px 10px; }
.real-demo .compare-labels span { min-width: 0; padding-left: 0; }
.real-compare a { display: block; cursor: zoom-in; }
.real-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.real-compare img { display: block; width: 100%; height: auto; border: 1px solid #dce2e9; box-shadow: 0 2px 7px rgba(20,36,67,.09); }
.real-demo figcaption { margin-top: 12px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.faq { width: min(100% - 72px, 1370px); margin: 120px auto 110px; }
.faq-list { display: grid; gap: 12px; }
.faq-list details { padding: 22px 26px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.faq-list summary { cursor: pointer; font-size: 18px; font-weight: 700; letter-spacing: -.02em; }
.faq-list details[open] summary { color: var(--blue); }
.faq-list details p { margin: 14px 0 0; color: var(--muted); font-size: 15px; line-height: 1.7; }
.related-pages { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 34px; }
.related-pages a { color: var(--blue); font-size: 14px; font-weight: 700; text-decoration: none; }
.related-pages a span { margin-left: 4px; }
@media (max-width: 600px) {
  .real-compare, .real-demo .compare-labels { gap: 8px; }
  .real-demo .compare-labels { min-width: 0; font-size: 11px; }
  .faq { width: calc(100% - 32px); margin: 80px auto; }
  .faq-list details { padding: 18px; }
  .faq-list summary { font-size: 16px; }
}

/* Pricing: the use-case cards plus a call to action per plan. */
.pricing { margin-top: -10px; }
.pricing .use-case-card { display: flex; flex-direction: column; }
.pricing .use-case-card .button { align-self: flex-start; margin-top: auto; }
.pricing .use-case-card ul { margin-bottom: 28px; }
.pricing .price-list li::before { content: "•"; color: var(--blue); }
