/* Glyphwise website: shared styles. Fonts: assets/fonts.css (self-hosted).
   Layout follows the common pattern of desktop document software sites: white hero with a product picture and
   paired calls to action, a strip of facts, numbered steps, picture-led feature cards, bands alternating white
   and pale grey, pricing cards, FAQ, a closing call-to-action band and a column footer. Always light. */
@import url(fonts.css);
:root {
  --paper: #ffffff;        /* page background */
  --alt: #f5f7fb;          /* alternate bands */
  --sheet: #ffffff;        /* cards */
  --ink: #0f172a;          /* text */
  --ink-soft: #4b5568;     /* secondary text */
  --rule: #e4e8f0;         /* hairlines */
  --box: #2f6bff;          /* brand blue: buttons, links, recognition boxes */
  --box-dark: #1f4fd6;
  --brand2: #7a3cf0;       /* gradient partner */
  --box-fill: rgba(47, 107, 255, 0.08);
  --flag: #ff6a3d;         /* low-confidence words */
  --flag-ink: #ffffff;
  --code-bg: #f1f4f9;
  --ok: #138a4b;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 12px 32px -12px rgba(15, 23, 42, 0.18);
  --shadow-lg: 0 2px 4px rgba(15, 23, 42, 0.05), 0 30px 60px -20px rgba(31, 52, 120, 0.35);

  --display: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --body: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --doc: "Source Serif 4", Georgia, "Times New Roman", serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.2rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.9rem, 3.8vw, 2.75rem);
  --step-4: clamp(2.4rem, 5.6vw, 4rem);
  --wrap: 74rem;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--step-0)/1.6 var(--body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--box); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--box); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; text-wrap: balance; margin: 0; color: var(--ink); }
p { margin: 0; }
code, .mono { font-family: var(--mono); font-size: 0.9em; }

.wrap {
  max-width: var(--wrap); margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* Header */
.top { position: sticky; top: 0; z-index: 5; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); }
.top .wrap { display: flex; align-items: center; gap: 24px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 700 1.25rem/1 var(--display); letter-spacing: -0.015em; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand .wm { font-weight: 600; color: var(--brand2); }
.top nav { display: flex; gap: 22px; margin-left: auto; align-items: center; font-size: 0.95rem; flex-wrap: wrap; justify-content: flex-end; }
.top nav a { text-decoration: none; color: var(--ink-soft); font-weight: 500; }
.top nav a:hover { color: var(--ink); }
.top nav a.btn { color: #fff; }

/* Buttons: pills */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 var(--step-0)/1 var(--body); padding: 15px 26px; border-radius: 999px; text-decoration: none;
  border: 1.5px solid var(--ink); background: #fff; color: var(--ink); cursor: pointer;
  transition: background .15s, transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary, .top nav a.btn { background: var(--box); border-color: var(--box); color: #fff; box-shadow: 0 8px 20px -8px rgba(47, 107, 255, 0.7); }
.btn.primary:hover, .top nav a.btn:hover { background: var(--box-dark); border-color: var(--box-dark); }
.btn.small { padding: 10px 18px; font-size: var(--step--1); }
.btn.light { background: #fff; color: var(--box-dark); border-color: #fff; }
.btn.ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.7); }

/* Hero */
.hero { padding-block: 64px 40px; background: radial-gradient(1200px 500px at 85% -10%, rgba(122, 60, 240, 0.10), transparent 60%),
  radial-gradient(900px 500px at 0% 0%, rgba(47, 107, 255, 0.08), transparent 60%), var(--paper); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.eyebrow { display: inline-block; font: 600 var(--step--1)/1.4 var(--body); color: var(--box-dark); background: var(--box-fill);
  padding: 6px 12px; border-radius: 999px; }
.hero h1 { font-size: var(--step-4); font-weight: 800; letter-spacing: -0.035em; margin-top: 18px; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--box), var(--brand2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede { font-size: var(--step-1); color: var(--ink-soft); margin-top: 20px; max-width: 34rem; }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.hero .fine { font-size: var(--step--1); color: var(--ink-soft); margin-top: 16px; }
.hero .fine span { white-space: nowrap; }
.hero .fine span::before { content: "✓ "; color: var(--ok); font-weight: 700; }

/* Product picture: an application window with the scan and the text it read. */
.shot { position: relative; background: #fff; border: 1px solid var(--rule); border-radius: 14px; box-shadow: var(--shadow-lg); overflow: hidden; min-width: 0; }
.shot .bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: #f3f5f9; border-bottom: 1px solid var(--rule); font: 500 0.75rem/1 var(--body); color: var(--ink-soft); }
.shot .bar i { width: 11px; height: 11px; border-radius: 50%; background: #d7dce6; display: block; }
.shot .bar b { margin-left: 10px; font-weight: 600; color: var(--ink); }
.shot .panes { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.shot .panes img { width: 100%; height: 100%; object-fit: cover; object-position: top left; border-right: 1px solid var(--rule); }
.shot .out { padding: 14px 16px; font: 400 0.72rem/1.55 var(--mono); color: var(--ink); overflow: hidden; max-height: 100%; }
.shot .out .h { font: 600 0.68rem/1 var(--body); color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 10px; display: flex; gap: 8px; align-items: center; }
.shot .out .h::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.shot .out p { margin-bottom: 6px; }
.shot .out mark { background: color-mix(in srgb, var(--flag) 18%, transparent); color: inherit; border-bottom: 2px solid var(--flag); }
.float-tag { position: absolute; background: #fff; border-radius: 12px; box-shadow: var(--shadow); padding: 10px 14px; font: 500 0.8rem/1.3 var(--body); display: flex; gap: 10px; align-items: center; }
.float-tag b { display: block; font: 700 1.05rem/1.1 var(--display); }
.float-tag .dot { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: #fff; font-weight: 700; flex: none; }
.hero-pic { position: relative; }
.hero-pic .t1 { left: -26px; bottom: 40px; }
.hero-pic .t2 { right: 28px; bottom: -22px; }

/* Facts strip */
.facts-strip { padding-block: 28px 56px; }
.facts-strip ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.facts-strip li { background: var(--alt); border-radius: 14px; padding: 18px 20px; }
.facts-strip b { display: block; font: 800 1.9rem/1.1 var(--display); letter-spacing: -0.02em; background: linear-gradient(90deg, var(--box), var(--brand2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.facts-strip span { color: var(--ink-soft); font-size: var(--step--1); }

/* Sections */
section.part { padding-block: 80px; }
section.part.alt { background: var(--alt); }
.part-head { max-width: 46rem; margin: 0 auto; text-align: center; }
.part-head .label { font: 700 var(--step--1)/1.4 var(--body); color: var(--box); text-transform: uppercase; letter-spacing: 0.08em; }
.part-head h2 { font-size: var(--step-3); font-weight: 800; letter-spacing: -0.025em; margin-top: 10px; }
.part-head .intro { color: var(--ink-soft); font-size: var(--step-1); margin-top: 14px; }
.part-body { margin-top: 44px; min-width: 0; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; counter-reset: s; }
.step { background: var(--sheet); border: 1px solid var(--rule); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.step .pic { aspect-ratio: 4 / 3; overflow: hidden; background: #e9edf4; }
.step .pic img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.step .txt { padding: 20px 22px 24px; }
.step h3 { font-size: var(--step-1); font-weight: 700; display: flex; gap: 12px; align-items: center; }
.step h3::before { counter-increment: s; content: counter(s); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--box), var(--brand2)); color: #fff; font: 700 0.9rem/1 var(--display); flex: none; }
.step p { color: var(--ink-soft); margin-top: 8px; }

/* Feature cards (bento) */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 22px; }
.card { background: var(--sheet); border: 1px solid var(--rule); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.card.w3 { grid-column: span 3; }
.card.w2 { grid-column: span 2; }
.card.w4 { grid-column: span 4; }
.card .txt { padding: 24px 26px 8px; }
.card h3 { font-size: var(--step-2); font-weight: 700; letter-spacing: -0.015em; }
.card p { color: var(--ink-soft); margin-top: 8px; }
.card .pic { margin-top: auto; padding: 20px 26px 0; }
.card .pic img { border-radius: 10px 10px 0 0; border: 1px solid var(--rule); border-bottom: 0; box-shadow: 0 -4px 24px -12px rgba(15, 23, 42, 0.25); }
.card .pic.flush { padding: 18px 0 0; }
.card .pic.flush img { border-radius: 0; border-left: 0; border-right: 0; }
.card .pic.cover { flex: 1; min-height: 200px; position: relative; }
.card .pic.cover img { position: absolute; inset: 18px 0 0; width: 100%; height: calc(100% - 18px); object-fit: cover; object-position: center 40%; }
.card .pic.cover.top img { object-position: left top; }
.card .pic.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.card .pic.trio img { border-radius: 8px 8px 0 0; aspect-ratio: 3 / 3.4; object-fit: cover; object-position: top; }
.card .icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--box-fill); color: var(--box); margin: 26px 26px 0; }
.card .icon svg { width: 28px; height: 28px; }
.card.dark { background: linear-gradient(140deg, #1d2a5c, #3a2780); border: 0; color: #fff; }
.card.dark h3 { color: #fff; }
.card.dark p { color: #c9d0ea; }
.card.dark .icon { background: rgba(255, 255, 255, 0.12); color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 18px 26px 26px; }
.chips span { background: var(--alt); border: 1px solid var(--rule); border-radius: 999px; padding: 6px 12px; font-size: var(--step--1); font-weight: 500; }
.card.dark .chips span { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.18); color: #fff; }
.card .pad { padding-bottom: 26px; }

/* Before / after */
.ba { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 24px; align-items: center; max-width: 60rem; margin: 0 auto; }
.ba figure { margin: 0; }
.ba img { border-radius: 12px; box-shadow: var(--shadow-lg); border: 1px solid var(--rule); }
.ba figcaption { text-align: center; margin-top: 14px; font-weight: 600; }
.ba figcaption small { display: block; font-weight: 400; color: var(--ink-soft); }
.ba .arrow { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, var(--box), var(--brand2)); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow); }

/* Image cleanup page: each repair as text beside a before / after pair */
.top nav a[aria-current="page"] { color: var(--ink); }
.clean-hero .hero-ba { gap: 14px; max-width: none; }
.clean-hero .hero-ba .arrow { width: 44px; height: 44px; }
.clean-steps { display: grid; gap: 28px; }
.clean-step { display: grid; grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); gap: 36px; align-items: center;
  background: var(--sheet); border: 1px solid var(--rule); border-radius: 18px; padding: 30px; box-shadow: var(--shadow); scroll-margin-top: 84px; }
.clean-steps { counter-reset: c; }
.clean-step h3 { font-size: var(--step-2); font-weight: 700; letter-spacing: -0.015em; display: flex; gap: 12px; align-items: flex-start; }
.clean-step h3::before { counter-increment: c; content: counter(c); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: linear-gradient(135deg, var(--box), var(--brand2)); color: #fff; font: 700 0.95rem/1 var(--display); margin-top: 2px; }
#reading .clean-steps { counter-reset: c 5; }
.clean-step p { color: var(--ink-soft); margin-top: 12px; }
.clean-step p.when { font-size: var(--step--1); border-left: 3px solid var(--box); padding-left: 12px; }
.clean-step .ba { max-width: none; gap: 16px; }
.clean-step .ba img, .clean-step .single img { box-shadow: var(--shadow); }
.clean-step .ba.stack { grid-template-columns: minmax(0, 1fr); justify-items: center; }
.clean-step .ba.stack .arrow { transform: rotate(90deg); width: 44px; height: 44px; }
.clean-step .ba.stack figure { width: 100%; }
.clean-step .single { max-width: 30rem; justify-self: center; }
.clean-step .single figure { margin: 0; }
.clean-step .single img { border-radius: 12px; border: 1px solid var(--rule); }
.clean-step .single figcaption { text-align: center; margin-top: 14px; font-weight: 600; }

/* Formats */
.io { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.io > div { background: var(--sheet); border: 1px solid var(--rule); border-radius: 18px; padding: 26px 28px; box-shadow: var(--shadow); }
.io h3 { font-size: var(--step-1); font-weight: 700; }
.io ul { list-style: none; margin: 12px 0 0; padding: 0; }
.io li { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--rule); }
.io li:last-child { border-bottom: 0; }
.io li b { font-weight: 600; }
.io li span { color: var(--ink-soft); }

/* Benchmarks */
.bench-wrap { overflow-x: auto; background: var(--sheet); border: 1px solid var(--rule); border-radius: 18px; padding: 8px 24px; box-shadow: var(--shadow); }
table.bench { width: 100%; border-collapse: collapse; min-width: 46rem; }
.bench th, .bench td { text-align: left; padding: 14px 14px 14px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.bench tr:last-child td { border-bottom: 0; }
.bench th { font: 600 var(--step--1)/1.3 var(--body); color: var(--ink-soft); }
.bench td.num { font-family: var(--mono); white-space: nowrap; font-variant-numeric: tabular-nums; }
.bench td.win { color: var(--ok); font-weight: 700; }
.bench td.win::before { content: "● "; font-size: 0.7em; vertical-align: 2px; }
.bench .what small { display: block; color: var(--ink-soft); font-size: var(--step--1); }
.note { color: var(--ink-soft); font-size: var(--step--1); margin-top: 16px; max-width: 52rem; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* Developers: code tabs */
.dev { max-width: 52rem; margin-left: auto; margin-right: auto; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tabs button { font: 600 var(--step--1)/1 var(--body); padding: 10px 16px; border: 1px solid var(--rule); border-radius: 999px; background: #fff; color: var(--ink-soft); cursor: pointer; }
.tabs button[aria-selected="true"] { color: #fff; border-color: var(--ink); background: var(--ink); }
.dev pre { margin: 14px 0 0; background: #0f172a; color: #e2e8f0; border-radius: 14px; padding: 20px 22px; overflow-x: auto; font: 400 0.85rem/1.7 var(--mono); box-shadow: var(--shadow-lg); }
.dev pre[hidden] { display: none; }
table.bench.lang { min-width: 34rem; }

/* Deployment */
.ways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.ways > div { background: var(--sheet); border: 1px solid var(--rule); border-radius: 18px; padding: 24px; box-shadow: var(--shadow); min-width: 0; }
.ways h3 { font-size: var(--step-1); font-weight: 700; }
.ways p { color: var(--ink-soft); margin-top: 8px; }
.ways p code { white-space: nowrap; }
.ways pre { margin: 14px 0 0; background: var(--code-bg); border-radius: 10px; padding: 12px 14px; overflow-x: auto; font: 400 0.78rem/1.6 var(--mono); }
/* A small spreadsheet: real cells from a table Glyphwise found. */
.xl { margin: 16px 26px 0; border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; box-shadow: 0 -4px 24px -12px rgba(15, 23, 42, 0.25); background: #fff; }
.xl .xl-bar { display: flex; align-items: center; gap: 8px; padding: 7px 12px; background: #107c41; color: #fff; font: 600 0.74rem/1 var(--body); }
.xl .xl-bar span { opacity: 0.8; font-weight: 400; }
.xl table { width: 100%; border-collapse: collapse; font: 400 0.76rem/1.35 var(--body); font-variant-numeric: tabular-nums; }
.xl th, .xl td { border: 1px solid #e2e6ee; padding: 4px 8px; white-space: nowrap; }
.xl thead th { background: #f3f5f9; color: var(--ink-soft); font-weight: 500; text-align: center; }
.xl tbody th { background: #f3f5f9; color: var(--ink-soft); font-weight: 500; width: 1%; text-align: center; }
.xl td.n { text-align: right; }
.xl tr.hd td { font-weight: 700; white-space: normal; }
.xl-wrap { overflow-x: auto; }

/* Privacy */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.facts div { background: var(--sheet); border: 1px solid var(--rule); border-radius: 16px; padding: 22px; }
.facts b { display: block; font-weight: 700; font-size: var(--step-1); margin-bottom: 6px; }
.facts b::before { content: ""; display: block; width: 36px; height: 36px; border-radius: 10px; margin-bottom: 14px;
  background: var(--box-fill) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f6bff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 20px no-repeat; }
.facts span { color: var(--ink-soft); }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; gap: 16px; background: var(--sheet); border: 1px solid var(--rule); border-radius: 20px; padding: 30px 28px; box-shadow: var(--shadow); }
.plan.featured { border: 2px solid var(--box); box-shadow: var(--shadow-lg); }
.plan.featured::before { content: "Most popular"; position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: linear-gradient(90deg, var(--box), var(--brand2));
  color: #fff; font: 700 0.75rem/1 var(--body); padding: 7px 14px; border-radius: 999px; white-space: nowrap; }
.plan .name { font: 700 var(--step-2)/1 var(--display); }
.plan .tag { font-size: var(--step--1); color: var(--ink-soft); min-height: 2.6em; }
.plan .price { font: 800 2.6rem/1 var(--display); letter-spacing: -0.03em; }
.plan .price small { font: 400 var(--step--1)/1.3 var(--body); color: var(--ink-soft); letter-spacing: 0; display: block; margin-top: 8px; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; flex: 1; }
.plan li { padding-left: 24px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 2px; top: 0.5em; width: 10px; height: 6px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
.plan li.no { color: var(--ink-soft); }
.plan li.no::before { border: 0; height: 2px; top: 0.75em; background: #b7bfcc; transform: none; width: 10px; }
.plan .btn { width: 100%; }
.checkout-msg { font-size: var(--step--1); color: var(--flag); min-height: 1.4em; }
.secure { font-size: 0.78rem; color: var(--ink-soft); text-align: center; margin-top: -8px; }
.oem { margin-top: 28px; display: flex; gap: 16px 32px; align-items: center; flex-wrap: wrap; padding: 22px 26px; background: var(--sheet); border: 1px solid var(--rule); border-radius: 16px; }
.oem b { font-weight: 700; }
.oem span { color: var(--ink-soft); flex: 1 1 24rem; }

/* Trial */
.trial { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.trial ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; counter-reset: t; }
.trial ol li { position: relative; padding-left: 48px; min-height: 34px; }
.trial ol li::before { counter-increment: t; content: counter(t); position: absolute; left: 0; top: -2px; width: 34px; height: 34px; border-radius: 50%; background: var(--box-fill); color: var(--box); display: grid; place-items: center; font-weight: 700; }

/* FAQ */
.faq { max-width: 52rem; margin-left: auto; margin-right: auto; }
details { background: var(--sheet); border: 1px solid var(--rule); border-radius: 14px; padding: 18px 22px; margin-bottom: 12px; }
details summary { cursor: pointer; font-weight: 600; font-size: var(--step-1); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; font: 400 1.4rem/1 var(--body); color: var(--box); }
details[open] summary::after { content: "−"; }
details p { color: var(--ink-soft); margin-top: 10px; }

/* Closing band */
.cta-band { padding-block: 72px; background: linear-gradient(120deg, #2f6bff, #6a3cf0); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; font-size: var(--step-3); font-weight: 800; letter-spacing: -0.025em; }
.cta-band p { color: #dfe5ff; font-size: var(--step-1); margin-top: 12px; }
.cta-band .ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }

/* Footer */
footer { background: #0b1020; color: #aab3c8; padding-block: 56px 40px; font-size: var(--step--1); }
footer a { color: #d5dbea; text-decoration: none; }
footer a:hover { color: #fff; text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot-grid .brand { color: #fff; }
.foot-grid p { margin-top: 12px; max-width: 22rem; }
.foot-grid h4 { margin: 0 0 12px; color: #fff; font: 600 0.9rem/1.2 var(--body); }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-base { margin-top: 40px; padding-top: 20px; border-top: 1px solid #222b45; display: flex; gap: 12px 24px; flex-wrap: wrap; align-items: center; }
.foot-base .contact { margin-left: auto; }
.copy-btn { font: 500 var(--step--1)/1 var(--body); background: transparent; color: inherit; border: 1px solid #3a4566; border-radius: 999px; padding: 5px 10px; cursor: pointer; margin-left: 6px; }

@media (max-width: 1020px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .hero-pic .t1 { left: 10px; } .hero-pic .t2 { right: 10px; }
  .steps, .plans, .ways, .facts { grid-template-columns: minmax(0, 1fr); }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .card.w2, .card.w3, .card.w4 { grid-column: auto; }
  .trial { grid-template-columns: minmax(0, 1fr); }
  .facts-strip ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .clean-step { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
@media (max-width: 700px) {
  .top nav a:not(.btn) { display: none; }
  .io { grid-template-columns: minmax(0, 1fr); }
  .io li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .hero { padding-block: 40px 28px; }
  .shot .panes { grid-template-columns: minmax(0, 1fr); }
  .shot .out { display: none; }
  .float-tag { display: none; }
  .ba { grid-template-columns: minmax(0, 1fr); }
  .ba .arrow { transform: rotate(90deg); margin: 0 auto; }
  .clean-step { padding: 20px; }
  .clean-hero .hero-ba { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
  .clean-hero .hero-ba .arrow { transform: none; width: 34px; height: 34px; }
  section.part { padding-block: 56px; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } .btn:hover { transform: none; } }

/* Text pages (licence, notices, guide, privacy, terms) */
.page-head { padding-block: 56px 8px; }
.page-head .eyebrow a { text-decoration: none; }
.page-head h1 { font-size: var(--step-3); font-weight: 800; letter-spacing: -0.025em; margin-top: 14px; }
.page-head .lede { color: var(--ink-soft); font-size: var(--step-1); margin-top: 14px; max-width: 46rem; }
.doc { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 46rem); gap: 40px; padding-block: 32px 80px; }
.toc { position: sticky; top: 84px; align-self: start; font-size: var(--step--1); background: var(--alt); border-radius: 14px; padding: 18px; }
.toc p { font: 600 var(--step--1)/1.4 var(--body); color: var(--ink); margin-bottom: 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.toc a { color: var(--ink-soft); text-decoration: none; }
.toc a:hover { color: var(--box); }
.prose { min-width: 0; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: var(--step-2); font-weight: 700; letter-spacing: -0.01em; margin-top: 2em; scroll-margin-top: 84px; }
.prose h3 { font-size: var(--step-1); font-weight: 600; margin-top: 1.6em; scroll-margin-top: 84px; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.35em; }
.prose blockquote { margin-left: 0; margin-right: 0; padding: 12px 16px; border-left: 3px solid var(--box); background: var(--box-fill); border-radius: 0 10px 10px 0; }
.prose pre { background: var(--code-bg); border-radius: 10px; padding: 12px 14px; overflow-x: auto; font: 400 0.82rem/1.6 var(--mono); }
.prose :not(pre) > code { background: var(--code-bg); border-radius: 4px; padding: 1px 5px; overflow-wrap: anywhere; }
.prose .table-wrap { overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--step--1); }
.prose th, .prose td { text-align: left; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.prose th { font: 600 var(--step--1)/1.3 var(--body); color: var(--ink-soft); }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin-block: 2em; }
.updated { font: 500 var(--step--1)/1.4 var(--mono); color: var(--ink-soft); }
@media (max-width: 960px) {
  .doc { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; }
}

/* ---- Sub-pages and drawn graphics (features, accuracy, developers, pricing) ---- */
.hero.sub { padding-block: 56px 48px; }
.hero.sub h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); }
.hero.sub.solo .wrap { grid-template-columns: minmax(0, 1fr); max-width: 52rem; text-align: center; }
.hero.sub.solo .lede { margin-left: auto; margin-right: auto; }
.hero.sub.solo .ctas { justify-content: center; }
.more { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; text-decoration: none; margin-top: 14px; }
.more::after { content: "\2192"; transition: transform .15s; }
.more:hover::after { transform: translateX(3px); }
.part-foot { text-align: center; margin-top: 32px; }
.part-head.left { text-align: left; margin: 0; }
.tiles.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Pipeline: five stages with arrows between */
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.flow li { position: relative; background: var(--sheet); border: 1px solid var(--rule); border-radius: 18px; padding: 24px 16px 22px; text-align: center; box-shadow: var(--shadow); }
.flow li + li::before { content: ""; position: absolute; left: -18px; top: 54px; width: 18px; height: 2px; background: linear-gradient(90deg, var(--box), var(--brand2)); }
.flow li + li::after { content: ""; position: absolute; left: -7px; top: 50px; border: 5px solid transparent; border-left: 7px solid var(--brand2); }
.ico { width: 60px; height: 60px; border-radius: 18px; margin: 0 auto; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--box), var(--brand2)); box-shadow: 0 10px 22px -10px rgba(47, 107, 255, 0.8); }
.ico svg { width: 28px; height: 28px; }
.flow h3 { font-size: var(--step-0); font-weight: 700; margin-top: 16px; }
.flow p { font-size: var(--step--1); color: var(--ink-soft); margin-top: 6px; }

/* Tiles: icon + title + text, optionally a link */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.tile { display: flex; gap: 16px; align-items: flex-start; background: var(--sheet); border: 1px solid var(--rule); border-radius: 16px; padding: 22px; color: inherit; text-decoration: none; transition: border-color .15s, transform .15s; }
a.tile:hover { border-color: var(--box); transform: translateY(-2px); }
.tile .sq { width: 44px; height: 44px; border-radius: 12px; flex: none; display: grid; place-items: center; background: var(--box-fill); color: var(--box); }
.tile .sq svg { width: 24px; height: 24px; }
.tile h3 { font-size: var(--step-1); font-weight: 700; }
.tile p { color: var(--ink-soft); margin-top: 4px; font-size: 0.95rem; }
.tag-new { display: inline-block; margin-left: 6px; font: 700 0.68rem/1 var(--body); color: #fff; background: var(--flag); padding: 3px 7px; border-radius: 999px; vertical-align: 3px; }

/* Bar charts */
.charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.chart { background: var(--sheet); border: 1px solid var(--rule); border-radius: 18px; padding: 24px 26px; box-shadow: var(--shadow); min-width: 0; }
.chart h3 { font-size: var(--step-1); font-weight: 700; }
.chart .sub { color: var(--ink-soft); font-size: var(--step--1); margin-top: 4px; }
.bars { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 12px; }
.bars li { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr) 3.6rem; gap: 12px; align-items: center; font-size: var(--step--1); }
.bars .track { height: 16px; background: var(--alt); border-radius: 999px; overflow: hidden; }
.bars .fill { display: block; height: 100%; width: var(--w); background: #b9c3d6; border-radius: 999px; }
.bars li.us { font-weight: 700; }
.bars li.us .fill { background: linear-gradient(90deg, var(--box), var(--brand2)); }
.bars li.best .fill { background: var(--ok); }
.bars .v { font-family: var(--mono); text-align: right; font-variant-numeric: tabular-nums; }
.chart .foot { color: var(--ink-soft); font-size: 0.8rem; margin-top: 16px; }
.bars.wide-label li { grid-template-columns: 12rem minmax(0, 1fr) 3.6rem; }
.pairs { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 14px; }
.pairs li { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 12px; align-items: center; font-size: var(--step--1); }
.pairs .rows { display: grid; gap: 5px; }
.pairs.wide li { grid-template-columns: 10rem minmax(0, 1fr); }
.pairs li small { color: var(--ink-soft); font-size: 0.78rem; }
.pairs .row { display: grid; grid-template-columns: minmax(0, 1fr) 3.4rem; gap: 10px; align-items: center; }
.pairs .track { height: 10px; background: var(--alt); border-radius: 999px; overflow: hidden; }
.pairs .fill { display: block; height: 100%; width: var(--w); border-radius: 999px; background: #b9c3d6; }
.pairs .row.us .fill { background: linear-gradient(90deg, var(--box), var(--brand2)); }
.pairs .v { font-family: var(--mono); font-variant-numeric: tabular-nums; text-align: right; }
.legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: var(--step--1); color: var(--ink-soft); margin-top: 14px; }
.legend i { display: inline-block; width: 22px; height: 10px; border-radius: 999px; background: #b9c3d6; margin-right: 6px; }
.legend i.us { background: linear-gradient(90deg, var(--box), var(--brand2)); }
.legend i.best { background: var(--ok); }

/* Privacy: drawing beside the facts */
.privacy-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
.privacy-grid svg { width: 100%; height: auto; display: block; }
.privacy-grid .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

/* Input -> engine -> output */
.io-flow { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 22px; align-items: center; }
.io-flow .col { display: grid; gap: 10px; }
.io-flow .col span { background: #fff; border: 1px solid var(--rule); border-radius: 12px; padding: 10px 14px; font-weight: 600; font-size: 0.92rem; box-shadow: var(--shadow); display: flex; gap: 10px; align-items: center; }
.io-flow .col span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #b9c3d6; flex: none; }
.io-flow .col.out span::before { background: var(--box); }
.io-flow .core { width: 112px; height: 112px; border-radius: 30px; display: grid; place-items: center; background: linear-gradient(135deg, var(--box), var(--brand2)); box-shadow: var(--shadow-lg); position: relative; }
.io-flow .core svg { width: 58px; height: 58px; }
.io-flow .core::before, .io-flow .core::after { content: ""; position: absolute; top: 50%; width: 22px; height: 2px; background: var(--box); }
.io-flow .core::before { right: 100%; }
.io-flow .core::after { left: 100%; }

/* Result structure: nested boxes, Document > Page > Block > Line > Word */
.nest { font: 500 0.78rem/1.4 var(--mono); }
.nest .lv { position: relative; border: 1.5px solid var(--c); border-radius: 12px; padding: 30px 12px 12px; background: color-mix(in srgb, var(--c) 5%, #fff); }
.nest .lv + .lv { margin-top: 10px; }
.nest .lv > .k { position: absolute; top: 9px; left: 12px; font: 700 0.68rem/1 var(--body); text-transform: uppercase; letter-spacing: 0.07em; color: var(--c); }
.nest .lv > .k small { font: 400 0.68rem/1 var(--mono); text-transform: none; letter-spacing: 0; color: var(--ink-soft); margin-left: 6px; }
.nest .doc-l { --c: var(--ink); }
.nest .page-l { --c: #4b5568; }
.nest .block-l { --c: var(--brand2); }
.nest .line-l { --c: var(--box); }
.nest .words { display: flex; gap: 6px; flex-wrap: wrap; }
.nest .w { padding: 4px 8px; border-radius: 6px; border: 1.5px solid var(--box); background: var(--box-fill); white-space: nowrap; }
.nest .w small { color: var(--ink-soft); margin-left: 4px; }
.nest .w.low { border-color: var(--flag); background: color-mix(in srgb, var(--flag) 10%, #fff); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.split pre.json { margin: 0; background: #0f172a; color: #e2e8f0; border-radius: 14px; padding: 18px 20px; overflow-x: auto; font: 400 0.78rem/1.65 var(--mono); box-shadow: var(--shadow-lg); }
.json .k { color: #93c5fd; }
.json .s { color: #fde68a; }
.json .n { color: #86efac; }

/* Plan teaser, comparison, trial steps */
.mini-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.mini-plans a { display: block; text-decoration: none; color: inherit; background: var(--sheet); border: 1px solid var(--rule); border-radius: 18px; padding: 24px; box-shadow: var(--shadow); transition: border-color .15s, transform .15s; }
.mini-plans a:hover { border-color: var(--box); transform: translateY(-2px); }
.mini-plans b { font: 700 var(--step-1)/1 var(--display); }
.mini-plans .p { font: 800 2rem/1 var(--display); letter-spacing: -0.02em; margin-top: 12px; }
.mini-plans .p small { font: 400 var(--step--1)/1 var(--body); color: var(--ink-soft); letter-spacing: 0; }
.mini-plans span { display: block; color: var(--ink-soft); font-size: var(--step--1); margin-top: 8px; }
table.bench.compare { min-width: 36rem; }
.compare td.y, .compare td.n { text-align: center; font-weight: 700; }
.compare td.y { color: var(--ok); }
.compare td.n { color: #b7bfcc; }
.compare th:not(:first-child), .compare td:not(:first-child) { text-align: center; }
.legend.center { justify-content: center; }
.narrow { max-width: 46rem; margin-left: auto; margin-right: auto; }
.tiles.one { grid-template-columns: minmax(0, 1fr); }
section.part.flush-top { padding-top: 8px; }
table.bench.params { min-width: 34rem; }
.steps.after-flow { margin-top: 44px; }

/* Languages page */
.glyph-wall { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; }
.glyph-wall span { aspect-ratio: 1; display: grid; place-items: center; background: #fff; border: 1px solid var(--rule); border-radius: 12px;
  font: 500 clamp(1.2rem, 2.4vw, 1.9rem)/1 var(--doc); color: var(--ink); box-shadow: var(--shadow); }
.glyph-wall span:nth-child(5n+2) { border-color: var(--box); background: var(--box-fill); color: var(--box-dark); }
.glyph-wall span:nth-child(7n+4) { background: linear-gradient(135deg, var(--box), var(--brand2)); color: #fff; border: 0; }
table.bench.langs { min-width: 38rem; }
.bench td.letters { font: 400 1.05rem/1.5 var(--doc); letter-spacing: 0.06em; color: var(--ink); }
.letter-grid { max-width: 56rem; margin-left: auto; margin-right: auto; background: var(--sheet); border: 1px solid var(--rule);
  border-radius: 18px; padding: 24px 28px; box-shadow: var(--shadow); }
.letter-grid p { font: 400 1.35rem/1.9 var(--doc); letter-spacing: 0.12em; overflow-wrap: anywhere; color: var(--ink); }
.letter-grid p + p { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--rule); }
.sq-glyph { font: 600 1rem/1 var(--doc); letter-spacing: 0.02em; }
@media (max-width: 1020px) { .glyph-wall { max-width: 30rem; } }
@media (max-width: 700px) { .glyph-wall { grid-template-columns: repeat(6, minmax(0, 1fr)); } .glyph-wall span:nth-child(n+25) { display: none; } }

/* Worked example: a document beside what was extracted from it */
.demo-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 28px; align-items: start; }
.doc-shot { margin: 0; position: sticky; top: 84px; }
.doc-shot img { width: 100%; height: auto; }
.results { display: grid; gap: 16px; min-width: 0; }
.res { background: var(--sheet); border: 1px solid var(--rule); border-radius: 16px; padding: 18px 20px; box-shadow: var(--shadow); min-width: 0; }
.res h3 { font-size: var(--step-0); font-weight: 700; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.res.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.ok-pill { font: 700 0.72rem/1 var(--body); color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, #fff); padding: 5px 9px; border-radius: 999px; }
table.kv { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 0.86rem; }
.kv th, .kv td { text-align: left; padding: 6px 8px 6px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.kv tr:last-child th, .kv tr:last-child td { border-bottom: 0; }
.kv th { font: 500 0.78rem/1.5 var(--mono); color: var(--ink-soft); white-space: nowrap; width: 1%; padding-right: 16px; }
.kv td small { color: var(--flag); font-size: 0.78rem; }
.kv.items th { width: auto; }
.kv.items td:not(:first-child), .kv.items th:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
.miss { border-bottom: 2px solid var(--flag); background: color-mix(in srgb, var(--flag) 12%, transparent); }
.cbs { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; font-size: 0.9rem; }
.cbs li { display: flex; gap: 10px; align-items: center; }
.cbs li::before { content: ""; width: 16px; height: 16px; border: 1.8px solid #9aa4b8; border-radius: 4px; flex: none; }
.cbs li.on::before { border-color: var(--ok); background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.cbs li.on { font-weight: 600; }
.qr-val { margin-top: 10px; background: var(--code-bg); border-radius: 8px; padding: 10px 12px; overflow-wrap: anywhere; }
.stats { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 16px; }
.stats li { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 14px; align-items: baseline; }
.stats b { font: 800 1.6rem/1.1 var(--display); letter-spacing: -0.02em; background: linear-gradient(90deg, var(--box), var(--brand2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats span { color: var(--ink-soft); font-size: var(--step--1); }
@media (max-width: 1020px) {
  .demo-grid { grid-template-columns: minmax(0, 1fr); }
  .doc-shot { position: static; max-width: 34rem; justify-self: center; }
}
@media (max-width: 700px) {
  .res.two { grid-template-columns: minmax(0, 1fr); }
  .stats li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
.steps-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: t; }
.steps-row li { background: var(--sheet); border: 1px solid var(--rule); border-radius: 16px; padding: 22px; }
.steps-row li::before { counter-increment: t; content: counter(t); width: 34px; height: 34px; border-radius: 50%; background: var(--box-fill); color: var(--box); display: grid; place-items: center; font-weight: 700; margin-bottom: 12px; }
.download-box { margin-top: 28px; text-align: center; }
.download-box .note { margin-left: auto; margin-right: auto; }

@media (max-width: 1020px) {
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow li + li::before, .flow li + li::after { display: none; }
  .tiles, .tiles.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .charts, .privacy-grid, .split { grid-template-columns: minmax(0, 1fr); }
  .mini-plans, .steps-row { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .flow, .tiles, .tiles.four { grid-template-columns: minmax(0, 1fr); }
  .flow li { display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 4px 16px; text-align: left; padding: 18px; }
  .flow .ico { grid-row: span 2; margin: 0; }
  .flow h3 { margin-top: 4px; }
  .privacy-grid .facts { grid-template-columns: minmax(0, 1fr); }
  .io-flow { grid-template-columns: minmax(0, 1fr); }
  .io-flow .col { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .io-flow .col span { padding: 8px 10px; font-size: 0.82rem; }
  .io-flow .core { justify-self: center; width: 84px; height: 84px; }
  .io-flow .core::before, .io-flow .core::after { display: none; }
  .bars li, .bars.wide-label li { grid-template-columns: 5.8rem minmax(0, 1fr) 3.2rem; gap: 8px; }
  .pairs li, .pairs.wide li { grid-template-columns: minmax(0, 1fr); gap: 6px; }
}

.chart ul.plain { margin: 16px 0 0; padding-left: 1.2em; display: grid; gap: 8px; font-size: var(--step--1); }
