/* FormsPal OCR landing page. Design system copied from extension.formspal.com
   (page.css, 2026-07-12), which carries the shared FormsPal tokens from
   ai.formspal.com. Adapted here: mega menu dropped (simple anchor nav), the
   hero is a deep-green panel that hosts the real tool card, and the tile
   vignettes are hand-built (this page ships no screenshots). */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("fraunces-latin.woff2") format("woff2");
}

:root {
  --primary: #0e8a5f;
  --primary-dark: #0b6e4c;
  --primary-light: #e6f4ee;
  --ink: #1c2530;
  --ink-soft: #51606f;
  --faint: #6b7785;
  --line: #cdd5de;
  --bg: #f7f9fb;
  --card: #ffffff;
  --footbg: #11181c;
  --footink: #c4ccd4;
  --footline: #243038;
  --radius: 12px;
  --white: #ffffff;
  --headbg: rgba(247, 249, 251, 0.88);
  /* CTA orange, same pair as the extension page: bright brand orange for the
     19px-bold hero buttons (AA as large text), darker pair for the 14.5px
     header pill so white text clears 4.5:1. */
  --cta: #ea580c;
  --cta-hover: #c2410c;
  --dc-btn: #c2410c;
  --dc-btn-hover: #9a3412;
  --shadow: 0 1px 2px rgba(16, 38, 30, 0.05), 0 4px 10px rgba(16, 38, 30, 0.05), 0 12px 28px rgba(16, 38, 30, 0.06);
  --edge-hi: inset 0 1px 0 rgba(255, 255, 255, 0);
  --sp-section: 88px;
  --sp-title: 36px;
  --ease: cubic-bezier(0.2, 0, 0, 1);
}
html[data-theme="dark"] {
  --primary: #16a571;
  --primary-dark: #34c188;
  --primary-light: #143323;
  --ink: #f2f5f7;
  --ink-soft: #aab5bf;
  --faint: #8e99a4;
  --line: #2a3036;
  --bg: #15181b;
  --card: #21262d;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  --edge-hi: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  --footbg: #0c1114;
  --footink: #aab5bf;
  --footline: #1c252b;
  --white: #1e2329;
  --headbg: rgba(21, 24, 27, 0.88);
}

:root { color-scheme: light; }
html[data-theme="dark"] { color-scheme: dark; }

* { box-sizing: border-box; }

.skip-link {
  position: absolute; left: -9999px; z-index: 100;
  background: var(--cta); color: #fff; font-weight: 700;
  padding: 10px 18px; border-radius: 0 0 10px 0; text-decoration: none;
}
.skip-link:focus { left: 0; top: 0; }

#tool, #faq, #what-is-ocr, #pdf-to-word, #main { scroll-margin-top: 76px; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink); background: var(--bg); line-height: 1.55;
}
html[data-theme="dark"] body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img { max-width: 100%; height: auto; }
a { color: var(--primary-dark); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
h1, h2 {
  font-family: "Fraunces", Georgia, serif; font-weight: 600;
  letter-spacing: -0.018em; line-height: 1.15;
  font-optical-sizing: auto; text-wrap: balance;
}
.hero-copy .sub, .tile p, .faq details p, .privacy li, .prose p { text-wrap: pretty; }

::selection { background: rgba(14, 138, 95, 0.25); }
html[data-theme="dark"] ::selection { background: rgba(52, 193, 136, 0.38); }

a:focus-visible, button:focus-visible, summary:focus-visible,
.skip-link:focus-visible {
  outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 4px;
}

/* ---------- ambient depth (from trust.formspal.com via the extension LP) ---------- */
body { overflow-x: clip; }
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(58% 48% at 12% -4%, rgba(14, 138, 95, 0.09), transparent 70%),
    radial-gradient(52% 44% at 104% 6%, rgba(234, 88, 12, 0.06), transparent 68%),
    radial-gradient(80% 62% at 50% 108%, rgba(14, 138, 95, 0.05), transparent 72%);
}
html[data-theme="dark"] body::before {
  background:
    radial-gradient(58% 48% at 12% -4%, rgba(22, 165, 113, 0.16), transparent 70%),
    radial-gradient(52% 44% at 104% 6%, rgba(234, 88, 12, 0.10), transparent 68%),
    radial-gradient(80% 62% at 50% 108%, rgba(22, 165, 113, 0.08), transparent 72%);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  opacity: 0.025; mix-blend-mode: multiply;
  background: url("grain.svg"); background-size: 140px 140px;
}
html[data-theme="dark"] body::after { opacity: 0.04; mix-blend-mode: overlay; }

.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60;
  transform: scaleX(0); transform-origin: 0 50%; pointer-events: none;
  background: linear-gradient(90deg, var(--primary-dark), var(--primary));
  box-shadow: 0 0 10px rgba(14, 138, 95, 0.5);
}
html[data-theme="dark"] .scroll-progress { box-shadow: 0 0 10px rgba(22, 165, 113, 0.5); }

.ruled { position: relative; padding-top: 44px; }
.ruled::before {
  content: ""; position: absolute; top: 0; left: 20px; right: 20px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 16%, var(--line) 84%, transparent);
}

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 650ms var(--ease), transform 650ms var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.tile.reveal:nth-child(3n - 1) { transition-delay: 90ms; }
.tile.reveal:nth-child(3n) { transition-delay: 180ms; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ---------- header (family header chrome, simple anchor nav) ---------- */
.site-head {
  position: sticky; top: 0; z-index: 30; background: var(--headbg);
  backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--line);
  transition: box-shadow 250ms var(--ease);
}
.site-head.scrolled { box-shadow: 0 6px 22px -12px rgba(16, 38, 30, 0.35); }
html[data-theme="dark"] .site-head.scrolled { box-shadow: 0 6px 22px -12px rgba(0, 0, 0, 0.6); }
.site-head-inner {
  position: relative; max-width: 1180px; margin: 0 auto;
  display: flex; align-items: center; gap: 14px; padding: 11px 20px;
}
.site-brand { display: flex; align-items: center; gap: 9px; text-decoration: none; flex: none; }
.site-brand svg { width: 30px; height: 30px; }
.site-brand b { font-size: 19px; font-weight: 800; letter-spacing: -0.3px; color: var(--ink); }
.site-brand .app { font-size: 19px; font-weight: 500; letter-spacing: -0.3px; color: var(--faint); }
.site-nav { display: flex; align-items: center; gap: 2px; margin-left: 4px; }
.site-nav a {
  color: var(--ink-soft); text-decoration: none; font-size: 14.5px; font-weight: 600;
  padding: 8px 11px; border-radius: 8px; white-space: nowrap;
}
.site-nav a:hover { color: var(--primary-dark); background: var(--primary-light); }
.site-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.site-theme-toggle {
  width: 38px; height: 38px; border-radius: 50%; flex: none; padding: 0; cursor: pointer;
  background: var(--white); border: 1.5px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
}
.site-theme-toggle:hover { border-color: var(--primary); }
.site-theme-toggle svg { width: 17px; height: 17px; }
.site-theme-toggle .sun { display: none; stroke: #e8a32b; }
.site-theme-toggle .moon { display: block; stroke: var(--primary); }
html[data-theme="dark"] .site-theme-toggle .sun { display: block; }
html[data-theme="dark"] .site-theme-toggle .moon { display: none; }
.site-cta {
  position: relative; overflow: hidden; text-decoration: none;
  background: var(--dc-btn); color: #fff; font-weight: 700; font-size: 14.5px;
  padding: 9px 16px; border-radius: 9px; white-space: nowrap;
  box-shadow: 0 1px 2px rgba(154, 52, 18, 0.25);
  transition: background-color 180ms var(--ease), box-shadow 180ms var(--ease), transform 120ms var(--ease);
}
.site-cta:hover { background: var(--dc-btn-hover); box-shadow: 0 4px 12px rgba(154, 52, 18, 0.35); }
.site-cta:active { transform: scale(0.97); transition-duration: 80ms; }
@media (prefers-reduced-motion: no-preference) {
  .site-cta:hover { transform: translateY(-1px); }
  .site-cta::after {
    content: ""; position: absolute; top: 0; left: -75%; width: 45%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.28), transparent);
    transform: skewX(-18deg); transition: left 500ms var(--ease); pointer-events: none;
  }
  .site-cta:hover::after { left: 130%; }
  .site-cta:active { transform: translateY(0) scale(0.97); }
}
@media (max-width: 760px) { .site-nav { display: none; } }
@media (max-width: 560px) {
  .site-head-inner { gap: 10px; padding: 11px 14px; }
  .site-brand .app { display: none; }
  .site-cta { padding: 8px 13px; }
}

/* ---------- hero: deep-green panel hosting the live tool ---------- */
.hero-wrap { padding: 28px 0 var(--sp-section); }
.hero-panel {
  position: relative; overflow: hidden; border-radius: 26px; isolation: isolate;
  background:
    radial-gradient(90% 130% at 0% 0%, rgba(52, 193, 136, 0.26), transparent 56%),
    radial-gradient(64% 90% at 100% 0%, rgba(234, 88, 12, 0.14), transparent 58%),
    radial-gradient(120% 150% at 50% 118%, rgba(22, 165, 113, 0.16), transparent 62%),
    linear-gradient(152deg, #0d4130 0%, #0a2f22 52%, #072118 100%);
  box-shadow: 0 28px 70px -30px rgba(7, 33, 24, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.09);
  padding: clamp(28px, 4.6vw, 56px);
  display: grid; grid-template-columns: 1.04fr 0.96fr;
  gap: clamp(26px, 4vw, 52px); align-items: center;
}
/* Aurora rim light behind the tool card: the same blurred conic circle the
   extension hero floats its screenshot on, rotated on the GPU. */
.hero-panel::before {
  content: ""; position: absolute; left: 76%; top: 42%; width: 58%; aspect-ratio: 1;
  transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none; z-index: -1;
  background: conic-gradient(in oklch,
    oklch(72% 0.16 160), oklch(74% 0.12 210), oklch(68% 0.17 300),
    oklch(80% 0.13 90), oklch(72% 0.16 160));
  filter: blur(52px) saturate(1.15); opacity: 0.4;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-panel::before { animation: fp-aurora 26s linear infinite; }
}
@keyframes fp-aurora { to { transform: translate(-50%, -50%) rotate(360deg); } }
.hero-panel::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  opacity: 0.07; mix-blend-mode: overlay;
  background: url("grain.svg"); background-size: 140px 140px;
}
.hero-copy { position: relative; z-index: 1; color: #eef7f2; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.4px;
  color: #8fe3c0; margin: 0 0 10px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, #5fd2a4, transparent);
}
.hero-copy h1 {
  font-size: clamp(36px, 4.6vw, 52px); line-height: 1.08; letter-spacing: -0.024em;
  font-weight: 640; margin: 0 0 14px; color: #fff;
}
.grad {
  background: linear-gradient(92deg, #7be3b6, #b7f4d9, #7be3b6);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
@media (prefers-reduced-motion: no-preference) {
  .grad { animation: fp-sheen 9s ease-in-out infinite; }
}
@keyframes fp-sheen { 0%, 100% { background-position: 0% 0; } 50% { background-position: 100% 0; } }
.sig { display: block; width: min(240px, 62%); margin: 0 0 16px; color: #5fd2a4; }
@media (prefers-reduced-motion: no-preference) {
  .sig path { stroke-dasharray: 100; stroke-dashoffset: 100; animation: fp-sig-draw 1.5s 350ms var(--ease) forwards; }
}
@keyframes fp-sig-draw { to { stroke-dashoffset: 0; } }
.hero-copy .sub { font-size: 18px; line-height: 1.6; color: rgba(236, 247, 242, 0.85); margin: 0 0 22px; max-width: 32em; }
.hero-copy .sub b { color: #fff; font-weight: 650; }
.hero-trust {
  display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; list-style: none;
  font-size: 12.5px; letter-spacing: 0.04em; text-transform: uppercase;
  color: rgba(236, 247, 242, 0.62); font-weight: 600;
}
.hero-trust li { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: #5fd2a4; }
/* White focus ring on the deep green (the brand green ring vanishes there). */
.hero-panel a:focus-visible, .hero-panel button:focus-visible,
.hero-panel .drop:focus-visible, .hero-panel input:focus-visible + span {
  outline: 3px solid #fff; outline-offset: 2px;
}

/* ---------- the tool card: their dark mockup card, except it works ---------- */
.tool-card {
  --tc-bg: #14191d; --tc-field: #1d242a; --tc-hover: #242c33;
  --tc-line: rgba(255, 255, 255, 0.13); --tc-line-2: rgba(255, 255, 255, 0.24);
  --tc-ink: #eef3f4; --tc-soft: #a9b6bd; --tc-faint: #7d8a92;
  position: relative; z-index: 1;
  background: var(--tc-bg); color: var(--tc-soft);
  border: 1px solid var(--tc-line); border-radius: 16px;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 24px 64px rgba(0, 0, 0, 0.45), 0 4px 16px rgba(0, 0, 0, 0.3),
    0 24px 72px rgba(52, 193, 136, 0.18);
  padding: 18px 18px 20px;
}
/* Gentle vertical sway like the extension.formspal.com mockup: a translate-only
   drift (no 3D rotate). The card is INTERACTIVE, so the drift freezes the moment
   you reach into it (hover or focus a control) and never runs on touch, where a
   moving target would make the format buttons hard to tap. */
@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .tool-card { animation: fp-float 7s ease-in-out infinite alternate; }
  /* Settle to a stable, clickable card the moment there is something to do:
     a file is loaded (.armed), or you reach in (hover / focus a control). */
  .tool-card.armed, .tool-card:hover, .tool-card:focus-within { animation: none; }
}
@keyframes fp-float { from { transform: translateY(4px); } to { transform: translateY(-8px); } }
.tc-head {
  display: flex; align-items: center; gap: 6px;
  padding: 0 2px 12px; margin-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.tc-head i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); }
.tc-head i:first-child { background: rgba(229, 100, 90, 0.75); }
.tc-head i:nth-child(2) { background: rgba(232, 163, 43, 0.75); }
.tc-head i:nth-child(3) { background: rgba(52, 193, 136, 0.75); }
.tc-head span {
  margin-left: 8px; font-size: 12px; font-weight: 600; letter-spacing: 0.03em;
  color: var(--tc-faint);
}
.drop {
  position: relative; overflow: hidden;
  border: 1.5px dashed var(--tc-line-2); border-radius: 12px;
  padding: clamp(20px, 2.6vw, 26px) 16px; text-align: center; cursor: pointer;
  color: var(--tc-soft); background: rgba(255, 255, 255, 0.02);
  transition: border-color 180ms var(--ease), background-color 180ms var(--ease), color 180ms var(--ease);
}
/* A scanner's light bar sweeps the zone while you hover or hold a file over it. */
.drop::after {
  content: ""; position: absolute; left: 7%; right: 7%; top: -3px; height: 2px;
  border-radius: 2px; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(52, 193, 136, 0.9), transparent);
  box-shadow: 0 0 12px rgba(52, 193, 136, 0.55);
}
@media (prefers-reduced-motion: no-preference) {
  .drop:hover:not(.busy)::after, .drop.on::after {
    opacity: 1; animation: fp-scan 1.7s var(--ease) infinite;
  }
  .drop.busy::after { opacity: 1; animation: fp-scan 1.1s linear infinite; }
}
@keyframes fp-scan {
  0% { top: 6%; } 50% { top: calc(94% - 2px); } 100% { top: 6%; }
}
.drop:hover, .drop.on { border-color: #34c188; background: rgba(52, 193, 136, 0.08); color: var(--tc-ink); }
.drop.on { border-style: solid; }
.drop.ready { border-style: solid; border-color: #34c188; background: rgba(52, 193, 136, 0.06); }
.drop.busy { cursor: progress; border-color: var(--tc-line-2); background: var(--tc-field); }
.drop svg { display: block; margin: 0 auto 10px; color: #34c188; }
.drop b { color: var(--tc-ink); font-size: 16px; }
.d-hint { display: block; margin-top: 2px; font-size: 13.5px; }
.d-meta { display: block; margin-top: 10px; font-size: 12px; color: var(--tc-faint); letter-spacing: 0.02em; }
.d-name {
  display: block; color: var(--tc-ink); font-weight: 600; font-size: 15px; max-width: 100%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.d-size { display: block; margin-top: 3px; font-size: 13px; color: #5fd2a4; }
.d-swap { display: block; margin-top: 9px; font-size: 12px; color: var(--tc-faint); }
/* One question, several answers you can combine. Each format is a slip of dark
   glass tinted in its own hue; tap to select (a check lights up), then the one
   orange Convert button below does the work. */
.ask {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 16px 2px 10px; font-size: 13.5px; font-weight: 700;
  color: var(--tc-faint); letter-spacing: 0.01em;
  transition: color 200ms var(--ease);
}
.ask-hint { font-weight: 500; font-size: 12px; color: var(--tc-faint); letter-spacing: 0; }
.ask::after {
  content: ""; flex: 1; min-width: 20px; height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.14), transparent);
}
.tool-card.armed .ask { color: var(--tc-ink); }
.lang-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 14px 2px 4px; font-size: 13px; color: var(--tc-soft);
}
.lang-select {
  font-family: inherit; font-size: 13.5px; font-weight: 600; color: var(--tc-ink);
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--tc-line);
  border-radius: 9px; padding: 8px 30px 8px 12px; cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2334c188' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
  transition: border-color 160ms var(--ease);
}
.lang-select:hover, .lang-select:focus-visible { border-color: #34c188; }
.lang-select option { color: #17211c; }
.out-group { display: grid; gap: 8px; }
.out-btn {
  --fx: #34c188;
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 10px 13px; text-align: left; font-family: inherit; cursor: pointer;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--tc-line); border-radius: 11px;
  position: relative; overflow: hidden;
  transition: background-color 200ms var(--ease), border-color 200ms var(--ease),
              box-shadow 200ms var(--ease), transform 160ms var(--ease), opacity 200ms var(--ease);
}
/* Per-format accent hue drives icon, tint, hover, and selected state. */
.out-btn[data-fx="text"] { --fx: #34c188; }
.out-btn[data-fx="word"] { --fx: #5b93d6; }
.out-btn[data-fx="gdoc"] { --fx: #5b9bff; }
.out-btn[data-fx="pdf"]  { --fx: #ef7063; }
.out-btn[data-fx="excel"] { --fx: #14a58a; }
/* The custom background: a soft wash of the button's own colour. */
.out-btn::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.55;
  background: radial-gradient(130% 150% at 0% 0%,
    color-mix(in oklab, var(--fx) 16%, transparent), transparent 62%);
  transition: opacity 220ms var(--ease);
}
.ob-ico {
  flex: none; width: 36px; height: 36px; border-radius: 10px; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  color: var(--fx); background: color-mix(in oklab, var(--fx) 15%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--fx) 24%, transparent);
}
.ob-ico svg { width: 19px; height: 19px; }
.ob-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; z-index: 1; }
.ob-main { font-size: 14.5px; font-weight: 700; color: var(--tc-ink); letter-spacing: -0.01em; }
.ob-sub { font-size: 11.5px; color: var(--tc-faint); letter-spacing: 0.01em; }
/* Action arrow: hidden until the button is live, slides in on hover. */
.ob-go {
  flex: none; width: 20px; height: 20px; z-index: 1; color: var(--fx);
  opacity: 0; transform: translateX(-5px);
  transition: opacity 200ms var(--ease), transform 200ms var(--ease);
}
.ob-go svg { width: 20px; height: 20px; display: block; }
/* Quiescent (no file yet): dim, inert. Clicks fall through to open the picker. */
.out-btn:disabled { cursor: default; pointer-events: none; opacity: 0.5; }
/* Armed: each format is live. Hover lights it up in its own colour and the
   arrow slides in; a tap converts straight to that format. */
.tool-card.armed .out-btn:not(:disabled) .ob-go { opacity: 0.4; transform: none; }
.tool-card.armed .out-btn:not(:disabled):hover,
.tool-card.armed .out-btn:not(:disabled):focus-visible {
  border-color: color-mix(in oklab, var(--fx) 65%, transparent);
  background: linear-gradient(180deg,
    color-mix(in oklab, var(--fx) 14%, transparent),
    color-mix(in oklab, var(--fx) 6%, transparent));
  box-shadow: 0 8px 22px color-mix(in oklab, var(--fx) 24%, transparent);
}
.tool-card.armed .out-btn:not(:disabled):hover::before,
.tool-card.armed .out-btn:not(:disabled):focus-visible::before { opacity: 1; }
.tool-card.armed .out-btn:not(:disabled):hover .ob-go,
.tool-card.armed .out-btn:not(:disabled):focus-visible .ob-go { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .tool-card.armed .out-btn:not(:disabled):hover { transform: translateY(-1px); }
  .tool-card.armed .out-btn:not(:disabled):active { transform: translateY(0) scale(0.99); transition-duration: 80ms; }
}
/* Converting: the tapped button carries its own progress in its own colour. */
.out-btn.working {
  border-color: var(--fx); pointer-events: none;
  background: linear-gradient(180deg,
    color-mix(in oklab, var(--fx) 24%, transparent),
    color-mix(in oklab, var(--fx) 11%, transparent));
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--fx) 45%, transparent),
    0 8px 22px color-mix(in oklab, var(--fx) 26%, transparent);
}
.out-btn.working::before { opacity: 1; }
.out-btn.working .ob-go { opacity: 0; }
.out-btn.working::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.28) 50%, transparent 80%);
  background-size: 250% 100%;
}
@media (prefers-reduced-motion: no-preference) {
  .out-btn.working::after { animation: fp-working 1.1s linear infinite; }
}
@keyframes fp-working { from { background-position: 130% 0; } to { background-position: -130% 0; } }
/* While one converts, the others hold their breath. */
.tool-card.busy .out-btn:not(.working) { opacity: 0.4; }
.status { margin-top: 11px; font-size: 13.5px; color: var(--tc-soft); min-height: 21px; line-height: 1.5; }
.status.err { color: #ff9088; }
.status.ok { color: #6fe0b0; }
.status.warn { color: #f0b24a; }
.again {
  margin-top: 8px; padding: 8px 14px; font-family: inherit; font-size: 13px; font-weight: 600;
  color: var(--tc-ink); background: transparent; border: 1px solid var(--tc-line-2);
  border-radius: 9px; cursor: pointer;
  transition: border-color 160ms var(--ease), color 160ms var(--ease), background-color 160ms var(--ease);
}
.again:hover { border-color: #34c188; color: #7be3b6; background: rgba(52, 193, 136, 0.08); }

/* ---------- feature vignette tiles ---------- */
.section-title { font-size: 32px; text-align: center; margin: 0 0 var(--sp-title); }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding-bottom: var(--sp-section); }
.tile {
  border: 1px solid rgba(28, 37, 48, 0.10); border-radius: var(--radius);
  box-shadow: var(--shadow), var(--edge-hi); padding: 22px;
  display: flex; flex-direction: column; gap: 10px;
  background:
    radial-gradient(260px 220px at var(--mx, 50%) var(--my, -30%), rgba(14, 138, 95, 0.07), transparent 60%),
    var(--card);
  transition: box-shadow 200ms var(--ease), border-color 200ms var(--ease);
}
html[data-theme="dark"] .tile {
  border-color: var(--line);
  background:
    radial-gradient(260px 220px at var(--mx, 50%) var(--my, -30%), rgba(22, 165, 113, 0.10), transparent 60%),
    var(--card);
}
.tile:hover { border-color: rgba(14, 138, 95, 0.35); box-shadow: 0 10px 28px rgba(16, 38, 30, 0.12), var(--edge-hi); }
html[data-theme="dark"] .tile:hover { border-color: rgba(22, 165, 113, 0.4); box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55), var(--edge-hi); }
.tile { padding: 30px 28px; min-height: 340px; }
.tile .t-ico { color: var(--primary); }
.tile .t-ico svg { width: 26px; height: 26px; display: block; }
/* Big editorial numeral: the tile's focal point, in Fraunces. */
.tile .t-num {
  font-family: "Fraunces", Georgia, serif; font-weight: 600;
  font-size: 54px; line-height: 0.9; letter-spacing: -0.02em;
  color: var(--primary); font-variant-numeric: tabular-nums;
  display: block; margin-bottom: 4px;
}
.tile .t-num small { font-size: 22px; font-weight: 600; margin-left: 2px; color: var(--primary-dark); }
html[data-theme="dark"] .tile .t-num { color: var(--primary-dark); }
.tile h3 { margin: 0; font-size: 20px; font-family: "Fraunces", Georgia, serif; font-weight: 600; letter-spacing: -0.01em; text-wrap: balance; }
.tile p { margin: 2px 0 4px; font-size: 14.5px; line-height: 1.6; color: var(--ink-soft); }
.tile .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.92em; color: var(--ink); }

/* Vignettes: little working-looking UI bits in the popup's visual language. */
.lines-demo {
  margin-top: auto; padding: 14px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg);
  display: flex; flex-direction: column; gap: 8px;
}
html[data-theme="dark"] .lines-demo { border-color: rgba(255, 255, 255, 0.08); }
.lines-demo i { display: block; height: 6px; border-radius: 3px; background: rgba(28, 37, 48, 0.16); }
html[data-theme="dark"] .lines-demo i { background: rgba(255, 255, 255, 0.16); }
.lines-demo .last { display: flex; align-items: center; gap: 5px; }
.lines-demo .last i { width: 52%; margin: 0; }
.lines-demo .caret { width: 2px; height: 11px; border-radius: 1px; background: var(--primary); }
@media (prefers-reduced-motion: no-preference) {
  .lines-demo .caret { animation: fp-caret 1.1s steps(2, jump-none) infinite; }
}
@keyframes fp-caret { 50% { opacity: 0; } }

.convert-demo {
  margin-top: auto; padding: 14px 0 4px;
  display: flex; align-items: center; justify-content: center; gap: 12px;
}
.fmt {
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em; color: #fff;
  padding: 4px 9px; border-radius: 6px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}
.fmt-pdf { background: #c1574f; }
.fmt-docx { background: #5d88bd; }
.convert-arrows { width: 24px; height: 24px; flex: none; color: var(--primary); transition: transform 250ms var(--ease); }
@media (prefers-reduced-motion: no-preference) {
  .tile:hover .convert-arrows { transform: scaleX(1.25); }
}

.find-demo { margin-top: auto; padding-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.find-pill {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  border: 1px solid var(--line); background: var(--card); border-radius: 8px;
  padding: 6px 11px; font-size: 12.5px; font-weight: 600; color: var(--ink);
  box-shadow: 0 1px 3px rgba(16, 38, 30, 0.08);
}
html[data-theme="dark"] .find-pill { box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4); }
.find-pill svg { width: 13px; height: 13px; color: var(--faint); }
.find-pill .count { color: var(--faint); font-weight: 500; }
.find-line { font-size: 13px; color: var(--ink-soft); }
.find-line mark { background: rgba(234, 179, 8, 0.4); color: inherit; border-radius: 3px; padding: 1px 3px; }
html[data-theme="dark"] .find-line mark { background: rgba(234, 179, 8, 0.35); }

.drop-demo {
  margin-top: auto; padding: 13px 12px;
  display: flex; align-items: center; justify-content: center; gap: 9px;
  border: 1.5px dashed rgba(14, 138, 95, 0.45); border-radius: 10px;
  color: var(--ink-soft); font-size: 13px; font-weight: 600;
  background: rgba(14, 138, 95, 0.04);
}
html[data-theme="dark"] .drop-demo { border-color: rgba(52, 193, 136, 0.4); background: rgba(22, 165, 113, 0.07); }
.drop-demo svg { width: 18px; height: 18px; flex: none; color: var(--primary); }

.priv-demo { margin-top: auto; padding-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.priv-pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 600; color: var(--ink);
  padding: 5px 12px 5px 8px; border-radius: 999px;
  border: 1px solid rgba(14, 138, 95, 0.3); background: rgba(14, 138, 95, 0.07);
}
html[data-theme="dark"] .priv-pill { border-color: rgba(52, 193, 136, 0.32); background: rgba(22, 165, 113, 0.1); }
.priv-pill::before {
  content: "\2713"; flex: none; width: 16px; height: 16px; border-radius: 50%;
  background: var(--primary); color: #fff; font-size: 10px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
}

.timer-demo { margin-top: auto; padding-top: 14px; display: flex; align-items: center; gap: 12px; }
.timer-pill {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(14, 138, 95, 0.3); background: rgba(14, 138, 95, 0.07);
  border-radius: 999px; padding: 6px 14px 6px 10px;
}
html[data-theme="dark"] .timer-pill { border-color: rgba(52, 193, 136, 0.32); background: rgba(22, 165, 113, 0.1); }
.timer-pill svg { width: 16px; height: 16px; color: var(--primary); }
.timer-pill b {
  font-family: "Fraunces", Georgia, serif; font-size: 18px; font-weight: 650;
  color: var(--primary-dark); font-variant-numeric: tabular-nums;
}
.timer-note { font-size: 12.5px; color: var(--faint); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- comparison ---------- */
.compare { max-width: 860px; margin: 0 auto var(--sp-section); }
.compare-table {
  width: 100%; border-collapse: collapse; overflow: hidden;
  border-radius: 18px; border: 1px solid var(--line);
  background: var(--card); box-shadow: var(--shadow);
}
.compare-table th, .compare-table td {
  padding: 15px 18px; text-align: left; font-size: 15px;
  border-bottom: 1px solid var(--line); vertical-align: middle;
}
.compare-table tr:last-child th, .compare-table tr:last-child td { border-bottom: 0; }
.compare-table thead th { font-family: "Fraunces", Georgia, serif; font-size: 17px; font-weight: 600; }
.compare-table .rowlabel { color: var(--ink-soft); font-weight: 500; width: 40%; }
/* Our column: highlighted rail down the middle. */
.compare-table .col-us {
  background: linear-gradient(180deg, rgba(14, 138, 95, 0.09), rgba(14, 138, 95, 0.05));
  color: var(--ink); font-weight: 600; width: 32%;
  border-left: 1px solid rgba(14, 138, 95, 0.2); border-right: 1px solid rgba(14, 138, 95, 0.2);
}
html[data-theme="dark"] .compare-table .col-us {
  background: linear-gradient(180deg, rgba(22, 165, 113, 0.15), rgba(22, 165, 113, 0.07));
  border-color: rgba(52, 193, 136, 0.28);
}
.compare-table thead .col-us { color: var(--primary-dark); font-size: 18px; }
.compare-table .col-them { color: var(--faint); width: 28%; }
.compare-table .col-us .yes { display: inline-flex; align-items: center; gap: 8px; }
.compare-table .col-us .yes::before {
  content: "\2713"; flex: none; width: 18px; height: 18px; border-radius: 50%;
  background: var(--primary); color: #fff; font-size: 10px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
}
.compare-note { text-align: center; margin: 16px auto 0; font-size: 13px; color: var(--faint); max-width: 620px; }
@media (max-width: 640px) {
  .compare-table th, .compare-table td { padding: 12px 12px; font-size: 13.5px; }
  .compare-table .rowlabel { width: 44%; }
  .compare-table thead .col-us { font-size: 15px; }
  .compare-table thead .col-them { font-size: 13px; }
}

/* ---------- privacy panel ---------- */
.privacy {
  text-align: center;
  background: linear-gradient(180deg, #eaf6f0 0%, #e1f0e9 100%);
  border: 1px solid rgba(14, 138, 95, 0.24);
  border-radius: 20px; padding: 48px 48px 40px;
  max-width: 920px; margin: 0 auto var(--sp-section);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65), 0 1px 2px rgba(16, 38, 30, 0.04);
}
html[data-theme="dark"] .privacy {
  background: linear-gradient(180deg, #17382a 0%, #102a1f 100%);
  border-color: rgba(52, 193, 136, 0.26);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.privacy-shield {
  display: inline-flex; width: 54px; height: 54px; border-radius: 16px;
  background: var(--primary); color: #fff; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.privacy-shield svg { width: 28px; height: 28px; }
.privacy h2 { font-size: 32px; margin: 0 0 24px; }
.privacy h2 em { font-style: normal; color: var(--primary-dark); font-weight: 700; }
.privacy ul {
  margin: 0 auto 20px; padding: 0; list-style: none; max-width: 680px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px 40px; text-align: left;
}
.privacy li { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; color: var(--ink); line-height: 1.45; }
.privacy li::before {
  content: "\2713"; flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%;
  background: var(--primary); color: #fff; font-size: 12px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
}
.privacy > p { margin: 0; font-size: 14px; color: var(--ink-soft); }
.privacy > p a { color: var(--primary-dark); font-weight: 600; }

/* ---------- editorial: what is OCR ---------- */
.editorial { max-width: 720px; margin: 0 auto; padding-bottom: var(--sp-section); }
.editorial h2 { font-size: 32px; text-align: center; margin: 0 0 var(--sp-title); }
.kicker {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--primary-dark); margin: 0 0 10px;
}
.kicker::before, .kicker::after { content: ""; width: 26px; height: 2px; border-radius: 2px; }
.kicker::before { background: linear-gradient(270deg, var(--primary), transparent); }
.kicker::after { background: linear-gradient(90deg, var(--primary), transparent); }
.prose p { margin: 0 0 18px; font-size: 16.5px; color: var(--ink-soft); }
.prose p:last-child { margin-bottom: 0; }
.prose b { color: var(--ink); font-weight: 650; }

/* ---------- FAQ ---------- */
.faq { padding-bottom: var(--sp-section); max-width: 760px; margin: 0 auto; }
.faq h2 { text-align: center; font-size: 32px; margin: 0 0 var(--sp-title); }
.faq details {
  border: 1px solid rgba(28, 37, 48, 0.10); border-radius: var(--radius);
  padding: 16px 20px; margin-bottom: 12px; box-shadow: var(--edge-hi);
  background:
    radial-gradient(300px 170px at var(--mx, 50%) var(--my, -30%), rgba(14, 138, 95, 0.05), transparent 60%),
    var(--card);
}
html[data-theme="dark"] .faq details {
  border-color: var(--line);
  background:
    radial-gradient(300px 170px at var(--mx, 50%) var(--my, -30%), rgba(22, 165, 113, 0.08), transparent 60%),
    var(--card);
}
.faq summary {
  font-weight: 700; font-size: 15.5px; cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 8px; height: 8px; margin-right: 2px;
  border-right: 2px solid var(--faint); border-bottom: 2px solid var(--faint);
  transform: rotate(45deg) translateY(-1px);
  transition: transform 200ms var(--ease);
}
.faq details[open] summary::after { transform: rotate(225deg) translateY(-1px); }
@media (prefers-reduced-motion: no-preference) {
  .faq details[open] > p { animation: fp-faq-open 200ms var(--ease); }
}
@keyframes fp-faq-open {
  from { opacity: 0; transform: translateY(-4px); }
}
.faq details p { margin: 10px 0 4px; font-size: 14.5px; color: var(--ink-soft); max-width: 62ch; }

/* ---------- closing CTA ---------- */
.closer { text-align: center; padding-bottom: 72px; }
.closer .section-title { margin-bottom: 22px; }
.cta-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--cta); color: #fff; text-decoration: none;
  border-radius: 11px; padding: 14px 30px; font-size: 19px; font-weight: 700;
  position: relative; overflow: hidden;
  box-shadow: 0 1px 3px rgba(154, 52, 18, 0.25);
  transition: background-color 180ms var(--ease), box-shadow 180ms var(--ease), transform 120ms var(--ease);
}
.cta-btn:hover { background: var(--cta-hover); box-shadow: 0 5px 14px rgba(154, 52, 18, 0.3); }
.cta-btn:active { transform: scale(0.98); box-shadow: 0 1px 3px rgba(154, 52, 18, 0.25); transition-duration: 80ms; }
@media (prefers-reduced-motion: no-preference) {
  .cta-btn::after {
    content: ""; position: absolute; top: 0; left: -75%; width: 45%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: skewX(-18deg); transition: left 600ms var(--ease); pointer-events: none;
  }
  .cta-btn:hover::after { left: 130%; }
}
.cta-ico { width: 19px; height: 19px; flex: none; color: #fff; }
.cta-alt { margin: 12px 0 0; font-size: 14px; color: var(--ink-soft); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  /* Single column, tool first: headline, the machine itself, then the pitch.
     display:contents lets the lead and follow blocks order around the card. */
  .hero-panel { grid-template-columns: 1fr; gap: 24px; }
  .hero-copy { display: contents; text-align: center; }
  .hero-lead { order: 1; }
  .tool-card { order: 2; max-width: 560px; width: 100%; margin: 0 auto; }
  .hero-follow { order: 3; }
  .hero-copy .sub { margin: 0 auto 18px; }
  .sig { margin: 0 auto; }
  .hero-trust { justify-content: center; }
}
@media (max-width: 860px) {
  :root { --sp-section: 56px; --sp-title: 28px; }
  .hero-copy h1 { font-size: clamp(32px, 7.6vw, 40px); }
  .tiles { grid-template-columns: 1fr 1fr; }
  .privacy ul { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .tiles { grid-template-columns: 1fr; }
  .hero-wrap { padding-top: 16px; }
  .hero-panel { border-radius: 18px; }
  .cta-btn { width: 100%; justify-content: center; }
  .privacy { padding: 32px 22px 28px; border-radius: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto !important; }
  .bar i { width: 100%; animation: none !important; opacity: 0.55; }
}

/* ==== FormsPal site footer, rules verbatim from the extension LP (which
   carries them verbatim from ai.formspal.com/page.css). ==== */
.site-foot { background: var(--footbg); color: var(--footink); margin-top: 48px; }
.site-foot a { color: var(--footink); text-decoration: none; }
.site-foot a:hover { color: #fff; }
.foot-cols { max-width: 1180px; margin: 0 auto; padding: 44px 20px 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 28px; }
.foot-brand svg { width: 34px; height: 34px; }
.foot-brand b { display: block; font-size: 18px; font-weight: 800; color: #fff; margin: 8px 0 6px; }
.foot-brand p { font-size: 13.5px; line-height: 1.6; margin: 0 0 12px; max-width: 260px; }
.foot-addr { font-size: 12.5px; line-height: 1.65; color: var(--footink); margin: 14px 0 0; max-width: 260px; font-style: normal; }
.foot-addr strong { display: block; color: #fff; font-weight: 700; margin-bottom: 2px; }
.foot-col h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.07em; color: #fff; margin: 0 0 12px; font-weight: 700; }
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col li { margin-bottom: 9px; font-size: 14px; }
.foot-bottom { border-top: 1px solid var(--footline); }
.foot-bottom-inner { max-width: 1180px; margin: 0 auto; padding: 16px 20px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; font-size: 13px; }
.foot-bottom-inner .legal { display: flex; gap: 14px; flex-wrap: wrap; margin-left: auto; }
.foot-disc { max-width: 1180px; margin: 0 auto; padding: 16px 20px 26px; font-size: 12px; color: var(--faint); }
@media (max-width: 900px) {
  .foot-cols { grid-template-columns: 1fr 1fr; gap: 24px; }
}
@media (max-width: 560px) {
  .foot-cols { grid-template-columns: 1fr; }
}
