/* DocFig. One stylesheet, no inline styles (the CSP forbids them). */
:root {
  --ink: #24152A;
  --ink-2: #3d2f42;
  --muted: #655769;
  --line: #E5D8E4;
  --soft: #FDF4E7;
  --bg: #FFFAFD;
  --surface: #ffffff;
  --surface-soft: #F8F1F8;
  --brand: #47186A;
  --brand-ink: #3B0A57;
  --accent: #F0527E;
  --accent-ink: #C7365F;
  --flesh: #F25C8A;
  --brand-soft: #F4EAF6;
  --leaf: #2d7a4b;
  --leaf-soft: #e7f4ec;
  --warn: #8a5300;
  --warn-soft: #fff4d6;
  --warn-line: #f0d48a;
  --bad: #a61b1b;
  --bad-soft: #fdecec;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(23, 21, 28, .06), 0 8px 24px rgba(23, 21, 28, .06);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg);
  font-size: 17px; line-height: 1.6; overflow-wrap: break-word; }
img, svg { max-width: 100%; }
a { color: var(--brand); text-underline-offset: 2px; }
a:hover { color: var(--brand-ink); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; color: var(--ink); }
h1 { font-size: clamp(1.9rem, 4.2vw, 2.8rem); margin: .2em 0 .35em; }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.7rem); margin: 1.8em 0 .5em; }
h3 { font-size: 1.1rem; margin: 0 0 .3em; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--brand); color: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
:focus-visible { outline: 3px solid #9b6bd0; outline-offset: 2px; }

/* Icons: line style, stroke follows text colour */
.ico { width: 1.05em; height: 1.05em; vertical-align: -.15em; fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico-lg { width: 44px; height: 44px; color: var(--brand); stroke-width: 1.6; }
.ico-card { width: 28px; height: 28px; color: var(--accent-ink); margin-bottom: 8px; }

/* Header */
.top { border-bottom: 1px solid var(--line); background: #fff; border-top: 3px solid var(--accent); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { display: block; height: 32px; width: auto; }
.foot-brand img { display: block; height: 28px; width: auto; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { color: var(--ink-2); text-decoration: none; padding: 6px 10px; border-radius: 8px; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--brand-soft); color: var(--brand-ink); }

/* Hero */
.hero { background: linear-gradient(180deg, var(--soft), #fff 85%); padding: 36px 0 28px; }
.kicker { color: var(--accent-ink); font-weight: 650; font-size: .9rem; letter-spacing: .02em; margin: 0; }
.lede { font-size: 1.12rem; color: var(--ink-2); max-width: 760px; }
.crumbs { font-size: .88rem; color: var(--muted); }
.crumbs a { color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit;
  font-weight: 620; font-size: .98rem; padding: 10px 18px; border-radius: 10px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; min-height: 44px; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-ink); color: #fff; }
.btn-ghost { background: #fff; color: var(--brand-ink); border-color: #cdbfe0; }
.btn-ghost:hover { background: var(--brand-soft); }
.btn[disabled] { opacity: .6; cursor: progress; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--brand); text-decoration: underline;
  text-underline-offset: 2px; cursor: pointer; }

/* Converter */
.tool { margin-top: 20px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 18px; }
.drop { border: 2px dashed #d9c3dc; border-radius: var(--radius); padding: 28px 16px; text-align: center; background: #fffbf5;
  transition: background .15s, border-color .15s; }
.drop.is-over { background: var(--brand-soft); border-color: var(--brand); }
.drop-h { font-size: 1.2rem; font-weight: 650; margin: 8px 0 14px; }
.drop-note { color: var(--muted); font-size: .9rem; margin: 12px 0 0; }
.drop-formats { font-size: .92rem; color: var(--ink-2); margin: 14px 0 0; }
.drop-formats strong { color: var(--ink); }
.drop-sample { font-size: .9rem; margin: 14px 0 0; color: var(--muted); }
.busy { padding: 18px 4px; }
.busy-file { font-weight: 600; margin-bottom: 8px; }
progress { width: 100%; height: 10px; accent-color: var(--brand); }
.busy-msg { color: var(--muted); margin-top: 8px; }

.alert { border-radius: 10px; padding: 12px 14px; margin: 12px 0; border: 1px solid var(--line); background: var(--soft); }
.alert ul { margin: 0; padding-left: 1.2em; }
.alert-good { background: var(--leaf-soft); border-color: #b9dcc7; color: #1f5636; }
.alert-warn { background: var(--warn-soft); border-color: var(--warn-line); color: #5c3a00; }
.alert-bad { background: var(--bad-soft); border-color: #f2b8b8; color: var(--bad); }
.alert strong { display: block; margin-bottom: 2px; }
.alert .btn { margin-top: 8px; }

.sample-tag { display: inline-block; background: var(--brand-soft); color: var(--brand-ink); font-size: .82rem; font-weight: 650;
  padding: 3px 10px; border-radius: 99px; margin: 0 0 10px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 0; }
.facts div { background: var(--soft); border-radius: 10px; padding: 10px 12px; min-width: 0; }
.facts dt { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.facts dd { margin: 0; font-weight: 650; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; }
.table-tools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin: 6px 0 8px; font-size: .92rem; }
.check { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; max-height: 560px; overflow-y: auto; }
table.tx { border-collapse: collapse; width: 100%; font-size: .9rem; min-width: 640px; }
.tx th { position: sticky; top: 0; background: #faf9fc; text-align: left; font-weight: 650; color: var(--ink-2);
  padding: 9px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tx td { padding: 8px 10px; border-bottom: 1px solid #f0eef3; vertical-align: top; }
.tx .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tx td.date { white-space: nowrap; font-variant-numeric: tabular-nums; }
.tx .out { color: var(--bad); }
.tx .in { color: var(--leaf); }
.tx tr.flag td { background: var(--warn-soft); }
.tx tr.note td { background: var(--warn-soft); color: #5c3a00; font-size: .84rem; padding-top: 0; }
.tx tr.note .ico { color: var(--warn); }
.tx tr.fixed td.desc::after { content: "corrected"; margin-left: 6px; font-size: .72rem; color: var(--leaf);
  border: 1px solid #b9dcc7; border-radius: 99px; padding: 0 6px; }
.only-flagged tr.ok { display: none; }

/* Content */
.band { padding: 12px 16px 8px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.steps li { display: flex; gap: 12px; }
.step-n { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--accent-ink); color: #fff; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; }
.steps p { color: var(--ink-2); font-size: .97rem; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; padding-top: 28px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: #fff; }
.card p { color: var(--ink-2); font-size: .97rem; margin: 0; }
.prose { max-width: 780px; padding-top: 8px; padding-bottom: 8px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .45em; }
.page { padding-top: 24px; padding-bottom: 40px; }
.ticks { list-style: none; padding-left: 0 !important; }
.ticks li { padding-left: 28px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: .45em; width: 12px; height: 7px;
  border-left: 2.5px solid var(--leaf); border-bottom: 2.5px solid var(--leaf); transform: rotate(-45deg); }
.trail li { margin-bottom: .8em; }

.faq { max-width: 780px; padding: 8px 0 24px; }
.faq details { border: 1px solid var(--line); border-radius: 10px; padding: 0 14px; margin-bottom: 10px; background: #fff; }
.faq summary { cursor: pointer; font-weight: 640; padding: 12px 0; list-style-position: outside; }
.faq details p { color: var(--ink-2); margin: 0 0 14px; }

.waitlist { background: var(--soft); border-top: 1px solid var(--line); margin-top: 24px; padding: 32px 0; }
.waitlist-in { max-width: 780px; margin: 0 auto; padding: 0 16px; }
.waitlist h2 { margin-top: 0; }
.wl-form { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 12px; align-items: end; margin: 12px 0 6px; }
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field label { font-size: .88rem; font-weight: 600; color: var(--ink-2); }
input[type=email], input[type=text], input[type=password], input:not([type]), select, textarea { font: inherit; font-size: 1rem; padding: 10px 12px;
  border: 1px solid #cfcad8; border-radius: 10px; background: #fff; color: var(--ink); width: 100%; min-height: 44px; }
textarea { resize: vertical; }
.form { display: grid; gap: 14px; max-width: 560px; }

/* Footer */
.foot { border-top: 1px solid var(--line); margin-top: 0; padding: 28px 0 20px; background: #fff; font-size: .93rem; }
.foot-in { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 20px; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin-bottom: 6px; }
.foot a { color: var(--ink-2); }
.foot-brand { font-weight: 750; margin: 0 0 4px; }
.foot-h { font-weight: 650; margin: 0 0 8px; }
.foot-base { margin-top: 18px; font-size: .84rem; }

@media (max-width: 720px) {
  body { font-size: 16px; }
  .top-in { padding-top: 8px; padding-bottom: 8px; min-height: 0; gap: 4px; }
  .nav { width: 100%; justify-content: space-between; gap: 0; }
  .nav a { padding: 6px 8px; font-size: .9rem; }
  .hero { padding-top: 20px; }
  .tool { padding: 12px; }
  .drop { padding: 22px 12px; }
  .wl-form { grid-template-columns: 1fr; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .foot-in > div:first-child { grid-column: 1 / -1; }
  .actions .btn { flex: 1 1 140px; white-space: nowrap; padding: 10px 12px; }
  .facts { grid-template-columns: 1fr 1fr; gap: 8px; }
  .facts div { padding: 8px 10px; }
  .facts dd { font-size: .95rem; }
}
[hidden] { display: none !important; }

/* Homepage */
.topline { text-align: center; font-size: .84rem; color: var(--muted); background: var(--surface-soft);
  border-bottom: 1px solid var(--line); padding: 8px 16px; }
.topline strong { color: var(--ink-2); }
.hero-home { background: var(--bg); padding: 48px 0 40px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 40px; align-items: start; }
.hero-grid.is-wide { grid-template-columns: minmax(0, 1fr); }
.hero-grid.is-wide .hero-copy { display: none; }
.hero-home h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
.soft { color: var(--brand); }
.kicker { display: inline-flex; align-items: center; gap: 8px; }
.kicker .ico { color: #fff; background: var(--accent-ink); border-radius: 50%; padding: 3px; width: 20px; height: 20px; stroke-width: 3; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 14px; }
.proof { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .92rem; color: var(--muted); font-weight: 600; }
.proof li::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: 1px; }
.hero-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.hero-panel .tool { margin: 0; border: 0; box-shadow: none; border-radius: 0; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 0; padding: 14px 18px;
  background: var(--brand-ink); color: #fff; font-size: .98rem; }
.panel-head span { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  background: var(--accent); color: #2b0a1c; border-radius: 99px; padding: 3px 10px; }
.signals-strip { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.signals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.signals div { display: flex; flex-direction: column; font-size: .9rem; color: var(--muted); }
.signals strong { color: var(--ink); font-size: .98rem; }
.section { padding-top: 44px; padding-bottom: 12px; }
.section h2, .product-band h2 { margin-top: .2em; }
.tag { color: var(--accent-ink); font-weight: 800; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; margin: 0; }
.tag-light { color: #ffb3c8; }
.section-lede { color: var(--ink-2); max-width: 640px; }
.steps3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.step3 { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.step3-n { color: var(--accent-ink); font-weight: 900; font-size: .82rem; letter-spacing: .04em; margin-bottom: 8px; }
.step3 p:last-child { color: var(--ink-2); margin: 0; font-size: .97rem; }
.product-band { background: var(--surface-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 44px; padding: 44px 0; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.checks { list-style: none; padding: 0; margin: 16px 0 0; }
.checks li { display: flex; gap: 10px; margin-bottom: 10px; }
.checks .ico { color: var(--accent-ink); stroke-width: 2.6; margin-top: 4px; }
.board { position: relative; min-height: 440px; border-radius: 28px 28px 80px 28px; background: var(--brand-ink); color: #fff;
  padding: 26px; overflow: hidden; box-shadow: var(--shadow); }
.board-title { display: flex; justify-content: space-between; gap: 10px; font-size: .9rem; margin: 0 0 26px; }
.board-title span { font-size: .7rem; letter-spacing: .1em; opacity: .7; font-weight: 800; }
.stack { position: relative; height: 340px; }
.fcard { position: absolute; width: 78%; height: 128px; border-radius: 16px; padding: 18px; background: #fff; color: var(--ink);
  box-shadow: 0 18px 45px rgba(0, 0, 0, .2); border: 1px solid var(--line); }
.fcard p { margin: 0; font-size: .88rem; color: var(--muted); }
.fcard .fkind { color: var(--ink); font-weight: 800; font-size: 1rem; display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.fcard-1 { left: 0; top: 0; transform: rotate(-5deg); }
.fcard-2 { right: 0; top: 96px; transform: rotate(4deg); }
.fcard-3 { left: 24px; top: 196px; transform: rotate(-1deg); }
.dot { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.dot-pdf { background: #d6455d; } .dot-xlsx { background: #2d7a4b; } .dot-csv { background: var(--brand); }
.pill { position: absolute; right: 14px; bottom: 14px; font-size: .68rem; font-weight: 800; letter-spacing: .08em;
  background: var(--brand-soft); color: var(--brand-ink); border-radius: 99px; padding: 3px 9px; }
.uses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.uses article { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.uses p { margin: 0; color: var(--ink-2); font-size: .97rem; }
.uses h3 a { color: var(--ink); text-decoration-color: var(--accent); }
.sign { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 30px; background: var(--ink); color: #f6eef4;
  border-radius: 30px; padding: 44px; overflow: hidden; position: relative; }
.sign h2 { color: #fff; }
.sign p { color: #e6d9e3; }
.sign-demo { position: relative; min-height: 260px; }
.contract { position: absolute; width: 80%; height: 250px; right: 6%; top: 0; border-radius: 13px; padding: 24px;
  background: #fff; color: var(--ink); transform: rotate(4deg); box-shadow: 0 20px 50px rgba(0, 0, 0, .3); }
.contract b { display: block; margin-bottom: 14px; }
.cl { display: block; height: 8px; border-radius: 4px; background: #eadfe8; margin-bottom: 10px; }
.cl-w { width: 92%; } .cl-m { width: 64%; }
.sigline { margin: 34px 0 0 !important; border-bottom: 1px solid #bba9b8; padding: 0 4px 4px; color: var(--brand) !important;
  font-size: 1.5rem; font-weight: 800; font-style: italic; letter-spacing: -1px; }
.seal { position: absolute; right: -10px; bottom: 12px; width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: #fff; border: 6px solid var(--ink); transform: rotate(-7deg); }
.seal .ico { width: 32px; height: 32px; stroke-width: 3; }
.faq summary::marker { color: var(--accent-ink); }

@media (max-width: 900px) {
  .hero-grid, .split, .sign { grid-template-columns: minmax(0, 1fr); }
  .signals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps3, .uses { grid-template-columns: minmax(0, 1fr); }
  .sign { padding: 28px 20px; }
}
@media (max-width: 520px) {
  .board { min-height: 400px; padding: 20px; }
  .fcard { width: 86%; }
  .contract { width: 88%; right: 2%; }
  .hero-home { padding-top: 24px; }
}

/* Tool pages: uploader first */
.tool-hero { background: linear-gradient(180deg, var(--surface-soft), var(--bg) 80%); padding: 28px 0 24px; text-align: center; }
.wrap-tool { max-width: 920px; }
.tool-hero h1 { margin-bottom: .2em; }
.tool-lede { font-size: 1.1rem; color: var(--ink-2); max-width: 680px; margin: 0 auto 4px; }
.tool-hero .tool { text-align: left; }
.tool-hero .drop { text-align: center; padding: 40px 16px; }
.tool-hero .proof { justify-content: center; margin-top: 14px; }
.section-tight { padding-top: 32px; padding-bottom: 4px; }
.howto { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.howto li { display: flex; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.howto-n { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-ink); color: #fff; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center; }
.howto h3 { font-size: 1.02rem; }
.howto p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.related { padding-top: 28px; }
.related h2 { font-size: 1.25rem; margin-top: 0; }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.tool-card { display: flex; flex-direction: column; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 16px; color: var(--ink); text-decoration: none; font-size: .92rem; transition: border-color .15s, box-shadow .15s; }
.tool-card span:last-child { color: var(--muted); }
a.tool-card:hover { border-color: var(--accent); box-shadow: var(--shadow); color: var(--ink); }
.tool-card strong { font-size: 1rem; }
.tool-card em, .soon em { font-style: normal; font-size: .72rem; font-weight: 700; color: var(--accent-ink); background: #fde8ee;
  border-radius: 99px; padding: 1px 7px; margin-left: 4px; vertical-align: 2px; }
.tool-card.is-soon { background: var(--surface-soft); }
.tool-cat { font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); }

/* Tools menu */
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; color: var(--ink-2); padding: 6px 10px; border-radius: 8px; font-size: .95rem;
  display: inline-flex; align-items: center; gap: 4px; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary, .menu summary:hover { background: var(--brand-soft); color: var(--brand-ink); }
.menu-panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow); padding: 16px; display: grid; grid-template-columns: repeat(2, minmax(190px, 1fr));
  gap: 6px 22px; width: max-content; max-width: min(560px, calc(100vw - 32px)); }
.menu-h { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); margin: 0 0 6px; }
.menu-panel ul { list-style: none; padding: 0; margin: 0; }
.menu-panel li { margin-bottom: 4px; }
.menu-panel a { color: var(--ink); text-decoration: none; font-size: .95rem; }
.menu-panel a:hover, .menu-panel a[aria-current="page"] { color: var(--accent-ink); text-decoration: underline; }
.soon { color: var(--muted); font-size: .95rem; }
.menu-all { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 10px; margin-top: 4px; font-weight: 700; }
.foot-in { grid-template-columns: 1.6fr 1.3fr 1fr 1fr 1fr; }
.drop:focus-within .btn-primary { outline: 3px solid #9b6bd0; outline-offset: 2px; }
table.simple { min-width: 0; }
.faq-page { padding-top: 0; }

@media (max-width: 900px) {
  .howto { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .menu { position: static; }
  .top-in { position: relative; }
  .menu-panel { left: 16px; right: 16px; width: auto; max-width: none; grid-template-columns: minmax(0, 1fr); }
  .tool-hero { padding-top: 16px; }
  .tool-hero .drop { padding: 26px 12px; }
  .tool-lede { font-size: 1rem; }
  .foot-in { grid-template-columns: 1fr 1fr; }
}
.menu-panel a.menu-all { padding: 10px 0 0; border-radius: 0; background: none; }

/* Homepage how-to with screenshots */
.home-how .how-step { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); gap: 28px; align-items: center;
  padding: 26px 0; border-bottom: 1px solid var(--line); }
.home-how .how-step:last-child { border-bottom: 0; }
.how-n { color: var(--accent-ink); font-weight: 800; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 4px; }
.how-text p:last-child { color: var(--ink-2); margin: 0; }
.shot { margin: 0 0 14px; }
.shot:last-child { margin-bottom: 0; }
.shot img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 1px 2px rgba(36, 21, 42, .05), 0 10px 26px rgba(36, 21, 42, .07); background: #fff; }
.shot figcaption { font-size: .85rem; color: var(--muted); margin-top: 6px; }
.split-media { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: center; margin-bottom: 8px; }
.split-media p { margin: 0; }
.home-prose { max-width: 860px; }
.samples { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0 !important; }
.samples a { display: inline-block; border: 1px solid var(--line); border-radius: 99px; padding: 4px 12px; background: var(--surface);
  text-decoration: none; font-size: .92rem; }
@media (max-width: 900px) {
  .home-how .how-step, .split-media { grid-template-columns: minmax(0, 1fr); gap: 14px; }
}

/* ===== Homepage design system (bands, cards, frames) ===== */
:root {
  --band-tint: #F6EEF8;
  --band-soft: #FFF5EA;
  --band-dark: #2A1033;
  --r-card: 18px;
  --sh-card: 0 1px 2px rgba(36, 21, 42, .05), 0 12px 32px rgba(36, 21, 42, .08);
  --sp-1: 8px; --sp-2: 16px; --sp-3: 24px; --sp-4: 40px; --sp-5: 64px; --sp-6: 88px;
}
.band { position: relative; padding: var(--sp-6) 0; }
.band-tight { padding: var(--sp-4) 0 var(--sp-3); }
.band-white { background: #fff; }
.band-tint { background: var(--band-tint); }
.band-soft { background: var(--band-soft); }
.band-dark { background: var(--band-dark); color: #f3e9f2; }
.band-dark h2 { color: #fff; }
.band-dark .band-head p { color: #d9c7d8; }

/* Curved edges: a wave in the band's own colour, drawn over the neighbour. */
.has-waves { margin: 48px 0; }
.has-waves::before, .has-waves::after { content: ""; position: absolute; left: 0; right: 0; height: 48px;
  background: inherit; pointer-events: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 48' preserveAspectRatio='none'%3E%3Cpath d='M0 48V30C240 6 480 0 720 14s480 34 720 10v24z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 48' preserveAspectRatio='none'%3E%3Cpath d='M0 48V30C240 6 480 0 720 14s480 34 720 10v24z'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.has-waves::before { top: -47px; }
.has-waves::after { bottom: -47px; transform: scaleY(-1); }
.band-dark { margin-top: 0; }

.band-head { text-align: center; max-width: 680px; margin: 0 auto var(--sp-4); }
.band-head h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); margin: .15em 0 .35em; letter-spacing: -.02em; }
.band-head p { color: var(--ink-2); margin: 0; font-size: 1.05rem; }
.eyebrow { color: var(--accent-ink); font-weight: 800; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; margin: 0; }

/* Stepper */
.stepper { list-style: none; padding: 0; margin: 0 auto var(--sp-5); max-width: 940px; display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-2); position: relative; text-align: center; }
.stepper::before { content: ""; position: absolute; top: 22px; left: 12.5%; right: 12.5%; height: 2px;
  background: repeating-linear-gradient(90deg, #d8bfd8 0 8px, transparent 8px 14px); }
.stepper li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.stepper strong { font-size: 1rem; color: var(--ink); }
.stepper span:not(.dot) { font-size: .88rem; color: var(--muted); }
.dot { width: 44px; height: 44px; border-radius: 50%; background: var(--accent-ink); color: #fff; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem; position: relative;
  box-shadow: 0 0 0 6px var(--band-tint); margin-bottom: 6px; }
.dot-sm { width: 34px; height: 34px; font-size: .95rem; box-shadow: none; margin-bottom: 10px; }

/* Feature rows: text + framed screenshot over a soft blob */
.frow { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: var(--sp-5); align-items: center;
  margin: 0 auto var(--sp-5); max-width: 1040px; }
.frow:last-child { margin-bottom: 0; }
.frow-rev .frow-text { order: 2; }
.frow-text h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); margin: .2em 0 .4em; }
.frow-text h3 { font-size: 1.35rem; margin: 0 0 .4em; }
.frow-text p { color: var(--ink-2); margin: 0; font-size: 1.04rem; max-width: 44ch; }
.frame, .frame-stack { position: relative; isolation: isolate; margin: 0; }
.frame { background: #fff; border-radius: var(--r-card); padding: 10px; box-shadow: var(--sh-card); border: 1px solid #eee4ee; }
.frame img { display: block; width: 100%; height: auto; border-radius: 10px; }
.frame figcaption { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 8px 4px 0; }
.frame-stack { display: grid; gap: var(--sp-2); }
.blob-a::before, .blob-b::before, .blob-c::before { content: ""; position: absolute; z-index: -1; pointer-events: none; }
.blob-a::before { inset: -28px -22px -22px 18%; background: #fbd5e1; border-radius: 58% 42% 46% 54% / 48% 56% 44% 52%; }
.blob-b::before { inset: -26px 22% -26px -24px; background: #e6d6f2; border-radius: 42% 58% 61% 39% / 52% 40% 60% 48%; }
.blob-c::before { inset: 12% -24px -26px -20px; background: #ffe2c7; border-radius: 63% 37% 41% 59% / 40% 57% 43% 60%; }
.band-tint .blob-b::before { background: #e8d3f0; }
.frow-rev { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
/* Sign teaser: light card so it never sits dark-on-dark next to the security band */
.band .sign { background: var(--band-tint); color: var(--ink); border: 1px solid #ead9ee; }
.band .sign h2 { color: var(--ink); }
.band .sign p { color: var(--ink-2); }
.band .sign .tag-light { color: var(--accent-ink); }
.band .sign .seal { border-color: var(--band-tint); }

.ticks-sm { list-style: none; padding: 0; margin: var(--sp-2) 0 0; display: grid; gap: 6px; }
.ticks-sm li { display: flex; gap: 8px; align-items: center; color: var(--ink); font-weight: 600; font-size: .96rem; }
.ticks-sm .ico { color: #fff; background: var(--leaf); border-radius: 50%; padding: 3px; width: 20px; height: 20px; stroke-width: 3; }

/* Icon tiles */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-2); max-width: 1080px; margin: 0 auto; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); padding: 22px; color: var(--ink);
  text-decoration: none; transition: transform .15s, box-shadow .15s, border-color .15s; }
a.tile:hover { transform: translateY(-2px); box-shadow: var(--sh-card); border-color: #f2b6c9; color: var(--ink); }
.tile h3 { font-size: 1.02rem; margin: 12px 0 4px; }
.tile p { margin: 0; color: var(--muted); font-size: .93rem; }
a.tile h3::after { content: " \2192"; color: var(--accent-ink); }
.tile-ico, .persona-ico { display: inline-flex; width: 46px; height: 46px; border-radius: 14px; align-items: center; justify-content: center;
  background: var(--band-tint); color: var(--brand); }
.tile-ico .ico, .persona-ico .ico { width: 24px; height: 24px; stroke-width: 1.8; }
.tile:nth-child(3n+2) .tile-ico { background: #fde4ec; color: var(--accent-ink); }
.tile:nth-child(3n) .tile-ico { background: var(--band-soft); color: #9a4b16; }

/* Regions */
.regions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-2); max-width: 1080px; margin: 0 auto; }
.region { background: var(--surface-soft); border-radius: var(--r-card); padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.region h3 { font-size: 1.05rem; margin: 6px 0 0; }
.region p { margin: 0; color: var(--muted); font-size: .93rem; flex: 1; }
.region a { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: .88rem; font-weight: 700;
  background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: 5px 12px; text-decoration: none; }

/* Personas */
.personas { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--sp-2); max-width: 1120px; margin: 0 auto; }
.persona { background: #fff; border-radius: var(--r-card); padding: 24px 18px; text-align: center; box-shadow: var(--sh-card); }
.persona-ico { border-radius: 50%; width: 56px; height: 56px; background: #fde4ec; color: var(--accent-ink); }
.persona h3 { font-size: 1rem; margin: 14px 0 4px; }
.persona p { margin: 0; color: var(--muted); font-size: .9rem; }

/* Security badges */
.badges { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-2); max-width: 1000px; margin: 0 auto; }
.badge { border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--r-card); padding: 22px; background: rgba(255, 255, 255, .04);
  display: flex; flex-direction: column; gap: 4px; }
.badge .ico { width: 30px; height: 30px; color: #ff8fb0; margin-bottom: 8px; stroke-width: 1.8; }
.badge strong { color: #fff; font-size: 1.02rem; }
.badge span { color: #cdb9cc; font-size: .9rem; }
.band-cta { text-align: center; margin: var(--sp-4) 0 0; }
.btn-light { background: #fff; color: var(--band-dark); }
.btn-light:hover { background: #fde4ec; color: var(--band-dark); }

.faq-wrap { max-width: 820px; }
.faq-wrap .faq { max-width: none; padding: 0; }
.faq-wrap .faq h2 { text-align: center; font-size: clamp(1.6rem, 3.2vw, 2.25rem); margin: 0 0 var(--sp-3); }
.faq-wrap details { border-radius: 14px; border-color: #f0e2d2; }
.band .sign { margin: 0 auto; max-width: 1080px; }
.related h2 { font-size: 1.1rem; }

@media (max-width: 960px) {
  .tiles, .regions, .badges { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .personas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .persona:last-child { grid-column: 1 / -1; }
  .frow, .frow-rev { grid-template-columns: minmax(0, 1fr); gap: var(--sp-4); }
  .frow-rev .frow-text { order: 0; }
  .frow-text p { max-width: none; }
}
@media (max-width: 640px) {
  .band { padding: var(--sp-5) 0; }
  .band-tight { padding: var(--sp-3) 0 var(--sp-2); }
  .has-waves { margin: 28px 0; }
  .has-waves::before, .has-waves::after { height: 28px; }
  .has-waves::before { top: -27px; }
  .has-waves::after { bottom: -27px; }
  .stepper { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--sp-3); }
  .stepper::before { display: none; }
  .tile, .region, .badge { padding: 18px; }
  .blob-a::before, .blob-b::before, .blob-c::before { inset: -14px -10px -14px -10px; }
}
@media (max-width: 360px) {
  .tiles, .regions, .personas, .badges { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tool-card { padding: 12px; font-size: .88rem; }
  .tool-card > span:last-child { display: none; }
  .tool-card strong { font-size: .95rem; }
}

/* Hero decoration (home + every tool page via .tool-hero). Pure CSS pseudo-elements:
   not in the accessibility tree, absolutely positioned (no layout shift), clipped by
   overflow so nothing can cause sideways scroll, and behind the white uploader card. */
.tool-hero { position: relative; overflow: hidden; isolation: isolate; }
.tool-hero::before, .tool-hero::after { content: ""; position: absolute; z-index: -1; pointer-events: none;
  filter: blur(36px); opacity: .55; }
.tool-hero::before { width: 460px; height: 380px; left: -150px; top: -110px; background: #fbd5e1;
  border-radius: 58% 42% 46% 54% / 48% 56% 44% 52%; }
.tool-hero::after { width: 520px; height: 420px; right: -170px; bottom: -200px; background: #e6d6f2;
  border-radius: 42% 58% 61% 39% / 52% 40% 60% 48%; }
.tool-hero .wrap-tool { position: relative; }
.tool-hero .wrap-tool::before, .tool-hero .wrap-tool::after { content: ""; position: absolute; z-index: -1; pointer-events: none; }
/* soft dot patch top right, peach ring lower left: low contrast, purely decorative */
.tool-hero .wrap-tool::before { width: 150px; height: 110px; right: -36px; top: 96px; opacity: .55;
  background-image: radial-gradient(circle, #c7365f 1.4px, transparent 1.6px); background-size: 16px 16px; }
.tool-hero .wrap-tool::after { width: 120px; height: 120px; left: -44px; bottom: 30px; border-radius: 50%;
  border: 14px solid #ffe2c7; opacity: .8; }
.tool-hero .tool { position: relative; }
@media (max-width: 640px) {
  .tool-hero::before { width: 260px; height: 220px; left: -120px; top: -90px; }
  .tool-hero::after { width: 280px; height: 240px; right: -130px; bottom: -150px; }
  .tool-hero .wrap-tool::before { width: 90px; height: 70px; right: 0; top: 70px; opacity: .4; }
  .tool-hero .wrap-tool::after { width: 70px; height: 70px; left: -30px; bottom: 60px; border-width: 9px; }
}
/* keep the right blob fully inside the hero so it is never cut off at the bottom edge */
.tool-hero::after { bottom: auto; top: 110px; height: 360px; }
@media (max-width: 640px) {
  .tool-hero .wrap-tool::before { display: none; }   /* would sit over the subtitle text */
  .tool-hero::after { top: 260px; height: 240px; }
}

/* Password prompt in the uploader */
.pw { border: 2px solid #d9c3dc; border-radius: var(--radius); padding: 22px 18px; background: #fffbf5; text-align: center; }
.pw-h { font-weight: 700; font-size: 1.12rem; margin: 0 0 6px; display: flex; gap: 8px; align-items: center; justify-content: center; }
.pw-h .ico { color: var(--accent-ink); width: 22px; height: 22px; }
.pw-sub { color: var(--ink-2); font-size: .95rem; margin: 0 auto 14px; max-width: 560px; }
.pw-sub span { font-weight: 600; overflow-wrap: anywhere; }
.pw-form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; max-width: 520px; margin: 0 auto; }
.pw-form input { flex: 1 1 220px; max-width: 320px; }
.pw-err { color: var(--bad); font-size: .92rem; margin: 10px auto 0; max-width: 520px; }
.pw-help { max-width: 560px; margin: 14px auto 0; text-align: left; font-size: .9rem; color: var(--ink-2); }
.pw-help summary { cursor: pointer; font-weight: 600; color: var(--brand); }
.pw-help p { margin: 8px 0 0; }
.pw-alt { margin: 12px 0 0; font-size: .9rem; }
@media (max-width: 640px) { .pw-h { font-size: 1rem; } .pw-form input { max-width: none; } }

/* Batch: many statements */
.batch-h { font-weight: 700; font-size: 1.1rem; margin: 4px 0 10px; }
.bf-list { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; }
.bf-item { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: #fff; }
.bf-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.bf-name { font-weight: 600; overflow-wrap: anywhere; min-width: 0; }
.bf-chip { flex: none; font-size: .78rem; font-weight: 700; border-radius: 99px; padding: 2px 10px; background: var(--surface-soft); color: var(--ink-2); }
.bf-ready, .bf-done { background: var(--leaf-soft); color: #1f5636; }
.bf-locked { background: #fde4ec; color: var(--accent-ink); }
.bf-failed, .bf-skipped { background: var(--bad-soft); color: var(--bad); }
.bf-converting, .bf-queued, .bf-staging { background: var(--brand-soft); color: var(--brand-ink); }
.bf-bar { width: 100%; height: 6px; margin-top: 8px; }
.bf-note { margin: 6px 0 0; font-size: .88rem; color: var(--ink-2); }
.bf-pw { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.bf-pw input[type=password] { flex: 1 1 180px; }
.bf-share { flex-basis: 100%; font-size: .86rem; display: flex; gap: 6px; align-items: center; font-weight: 400; color: var(--ink-2); }
.btn-sm { min-height: 40px; padding: 8px 14px; }
.bf-plan-text { font-weight: 600; margin: 4px 0 8px; }
.bf-head h3 { margin: 0 0 4px; font-size: 1.15rem; }
.bf-good { color: #1f5636; font-weight: 600; margin: 0; }
.bf-warnline { color: var(--warn); font-weight: 600; margin: 0; }
.bf-acc { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin: 12px 0; background: #fff; }
.bf-acc h4 { margin: 0 0 2px; font-size: 1.02rem; }
.bf-checks { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; }
.bf-checks li { display: flex; gap: 8px; align-items: flex-start; font-size: .94rem; }
.bf-checks .ico { flex: none; width: 20px; height: 20px; border-radius: 50%; padding: 3px; margin-top: 1px; stroke-width: 3; }
.bf-checks li.ok .ico { background: var(--leaf); color: #fff; }
.bf-checks li.warn .ico { background: var(--warn-soft); color: var(--warn); stroke-width: 2.4; }
.bf-stmts { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 10px; }
.bf-stmts li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) auto auto; gap: 8px 12px; align-items: center;
  border-top: 1px solid var(--line); padding-top: 10px; }
.bf-stmts select { min-height: 40px; padding: 6px 10px; width: auto; min-width: 12rem; max-width: 100%; }
.bf-one { display: flex; gap: 10px; font-size: .9rem; }
@media (max-width: 720px) { .bf-stmts li { grid-template-columns: minmax(0, 1fr); } .bf-stmts select { width: 100%; min-width: 0; } }
.tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 360px) { .tiles { grid-template-columns: minmax(0, 1fr); } }
