/* ==========================================================================
   PDF Local — private, in-browser PDF toolkit
   Design tokens
   ========================================================================== */

:root {
  --paper: #f8fafc;
  --paper-deep: #f1f5f9;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --ink: #0f172a;
  --ink-2: #1e293b;
  --ink-3: #334155;
  --muted: #475569;
  --muted-2: #64748b;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --green: #2563eb;
  --green-dark: #1d4ed8;
  --green-soft: #eff6ff;
  --mint: #3b82f6;
  --mint-bright: #60a5fa;
  --amber: #d97706;
  --amber-bg: #fffbeb;
  --amber-line: #fde68a;
  --red: #dc2626;
  --red-bg: #fef2f2;
  --blue: #0ea5e9;
  --blue-bg: #e0f2fe;
  --purple: #8b5cf6;
  --purple-bg: #ede9fe;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 26px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05), 0 4px 14px rgba(15, 23, 42, .04);
  --shadow-md: 0 2px 6px rgba(15, 23, 42, .06), 0 18px 44px rgba(15, 23, 42, .09);
  --shadow-lg: 0 30px 80px rgba(15, 23, 42, .18);
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: var(--sans);
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --header-h: 72px;
}

/* ==========================================================================
   Reset & base
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.modal-open { overflow: hidden; }

[hidden] { display: none !important; }

img, svg { display: block; }

h1, h2, h3, h4, p, ul, ol, dl, dd { margin: 0; }

ul, ol { padding: 0; list-style: none; }

a { color: inherit; text-decoration: none; }

button, input, select, textarea { font: inherit; color: inherit; }

button { cursor: pointer; }

button:disabled { cursor: not-allowed; }

::selection { background: var(--mint); color: var(--ink); }

:focus-visible {
  outline: 3px solid rgba(37, 99, 235, .45);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -100px;
  z-index: 300;
  padding: 12px 18px;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  transition: top .15s ease;
}
.skip-link:focus { top: 12px; }

.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;
}

/* ==========================================================================
   Typography helpers
   ========================================================================== */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 18px;
}
.eyebrow.light { color: var(--mint-bright); }

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .13);
}

.strong-line {
  display: block;
  margin-top: 10px;
  color: var(--ink);
  font-weight: 650;
}

.section-lede {
  max-width: 560px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.section {
  padding: 92px 0;
}

.section-head {
  display: grid;
  gap: 0;
  max-width: 760px;
  margin-bottom: 44px;
}
.section-head.centered {
  max-width: 800px;
  margin-inline: auto;
  text-align: center;
  justify-items: center;
}
.section-head.centered .eyebrow { justify-content: center; }
.section-head.centered .section-lede { margin-inline: auto; }

.section-head h2,
.how-copy h2,
.privacy-copy h2,
.faq-grid h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(34px, 4.2vw, 52px);
  line-height: 1.04;
  letter-spacing: -.03em;
  margin-bottom: 18px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
  transition: background .16s ease, color .16s ease, border-color .16s ease, transform .16s ease, box-shadow .16s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px); }
.btn .icon { width: 18px; height: 18px; }

.btn-lg { min-height: 52px; padding: 0 24px; font-size: 15.5px; }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .16);
}
.btn-primary:hover { background: #1e293b; border-color: #1e293b; box-shadow: 0 10px 26px rgba(15, 23, 42, .22); }
.btn-primary:disabled { background: #cbd5e1; border-color: #cbd5e1; box-shadow: none; }

.btn-outline {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-outline:hover { background: #fff; border-color: var(--ink); }

.btn-ghost {
  background: transparent;
  color: var(--ink-2);
}
.btn-ghost:hover { background: rgba(15, 23, 42, .06); }

.btn-soft {
  background: var(--mint);
  border-color: var(--mint);
  color: var(--green-dark);
}
.btn-soft:hover { background: var(--mint-bright); border-color: var(--mint-bright); }

.text-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 6px 8px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
}
.text-btn:hover { color: var(--ink); background: rgba(15, 23, 42, .05); }
.text-btn .icon { width: 18px; height: 18px; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--green-dark);
  font-weight: 650;
  border-bottom: 1px solid rgba(37, 99, 235, .3);
  padding-bottom: 2px;
}
.text-link .icon { width: 16px; height: 16px; }
.text-link:hover { border-bottom-color: var(--green); }
.text-link.light { color: var(--mint-bright); border-bottom-color: rgba(96, 165, 250, .35); }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--ink-3);
}
.icon-btn:hover { background: var(--paper); color: var(--ink); border-color: var(--line); }
.icon-btn.is-danger:hover { background: var(--red-bg); color: var(--red); border-color: #f5c5c1; }
.icon-btn[aria-pressed="true"] { background: var(--red-bg); color: var(--red); border-color: #f5c5c1; }
.icon-btn .icon { width: 19px; height: 19px; }
.icon-btn:disabled { opacity: .35; }
.icon-btn:disabled:hover { background: transparent; color: var(--ink-3); border-color: transparent; }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--header-h);
  background: rgba(248, 250, 252, .88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(203, 213, 225, .55);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  min-height: 44px;
  color: var(--ink);
}
.brand-mark { width: 34px; height: 34px; color: var(--ink); }
.brand-mark svg { width: 100%; height: 100%; }
.brand-text {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -.03em;
}
.brand-text span { color: var(--green-dark); }
.brand-pill {
  margin-left: 2px;
  padding: 3px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 99px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 14px;
}
.header-nav a {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--ink-3);
  font-size: 14px;
  font-weight: 600;
}
.header-nav a:hover { background: rgba(15, 23, 42, .05); color: var(--ink); }

.header-actions { margin-left: auto; }

.plan-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 6px 13px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 99px;
  box-shadow: var(--shadow-sm);
  text-align: left;
}
.plan-chip:hover { border-color: var(--line-strong); }
.plan-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
  flex: none;
}
.plan-chip.is-licensed .plan-dot { background: #c99a2e; box-shadow: 0 0 0 3px rgba(201, 154, 46, .16); }
.plan-text { display: grid; line-height: 1.15; }
.plan-text strong { font-size: 12.5px; font-weight: 700; }
.plan-text small { color: var(--muted); font-size: 10.5px; margin-top: 1px; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  padding: 74px 0 92px;
  background:
    radial-gradient(700px 420px at 82% 8%, rgba(37, 99, 235, .55), transparent 68%),
    radial-gradient(560px 360px at 8% 0%, rgba(255, 255, 255, .9), transparent 65%);
}
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: 56px;
  align-items: center;
}

.hero-copy { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }

.hero h1 {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(46px, 6.6vw, 78px);
  line-height: 1.05;
  letter-spacing: -.03em;
  margin-bottom: 24px;
  color: var(--ink);
}

.hero-sub {
  max-width: 560px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.62;
}

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

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.trust-row li {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-3);
  font-size: 12.5px;
  font-weight: 650;
  letter-spacing: .01em;
}
.trust-row .icon { width: 16px; height: 16px; color: var(--green); }

/* Hero proof illustration */

.hero-proof {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 18px 0;
  animation: rise .7s .12s cubic-bezier(.2, .7, .2, 1) both;
}
.proof-glow {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(96, 165, 250, .5), rgba(37, 99, 235, .1) 58%, transparent 72%);
  filter: blur(6px);
}
.proof-card {
  position: relative;
  width: min(100%, 430px);
  padding: 22px;
  background: linear-gradient(155deg, #ffffff, #f8fafc);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: 0 30px 70px rgba(15, 23, 42, .14), 0 2px 0 #fff inset;
  transform: rotate(-1.2deg);
}
.proof-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}
.proof-file {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
}
.proof-file .icon { width: 15px; height: 15px; color: var(--muted); }
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  background: var(--green-soft);
  border-radius: 99px;
  color: var(--green-dark);
  font-size: 9.5px;
  font-weight: 750;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.status-pill span {
  width: 6px; height: 6px; border-radius: 50%; background: var(--green);
}

.proof-sheet {
  position: relative;
  height: 260px;
  padding: 26px 28px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
  overflow: hidden;
}
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.sheet-title { width: 46%; height: 10px; border-radius: 3px; background: var(--ink); opacity: .85; }
.sheet-lock {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--mint);
  color: var(--green-dark);
}
.sheet-lock .icon { width: 15px; height: 15px; }
.sheet-lines { display: grid; gap: 11px; }
.sheet-lines span { display: block; height: 6px; border-radius: 3px; background: #e2e8f0; }
.sheet-lines span:nth-child(1) { width: 90%; }
.sheet-lines span:nth-child(2) { width: 100%; }
.sheet-lines span:nth-child(3) { width: 78%; }
.sheet-lines span:nth-child(4) { width: 95%; }
.sheet-lines span:nth-child(5) { width: 55%; }
.sheet-stamp {
  position: absolute;
  right: 24px;
  bottom: 22px;
  padding: 5px 11px;
  border: 2px solid rgba(37, 99, 235, .28);
  border-radius: 5px;
  color: rgba(37, 99, 235, .5);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  transform: rotate(-8deg);
}
.proof-foot {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 18px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}
.proof-stat { display: grid; gap: 1px; }
.proof-stat strong {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.02em;
}
.proof-stat span { color: var(--muted); font-size: 9.5px; letter-spacing: .03em; text-transform: uppercase; font-weight: 650; }

.proof-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 99px;
  box-shadow: var(--shadow-md);
  color: var(--ink-3);
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
}
.proof-chip .icon { width: 14px; height: 14px; color: var(--green); }
.proof-chip-a { left: -18px; top: 90px; transform: rotate(-2deg); }
.proof-chip-b { right: -10px; bottom: 72px; transform: rotate(1.5deg); }

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Tool grid
   ========================================================================== */

.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.tool-card {
  --tool: var(--green);
  --tool-bg: var(--green-soft);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 252px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-align: left;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  overflow: hidden;
}
.tool-card::after {
  content: "";
  position: absolute;
  inset: auto -40px -70px auto;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: var(--tool-bg);
  opacity: 0;
  transition: opacity .2s ease, transform .2s ease;
  transform: scale(.7);
}
.tool-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}
.tool-card:hover::after { opacity: .7; transform: scale(1); }
.tool-card:active { transform: translateY(-1px); }

.tool-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  border-radius: 13px;
  background: var(--tool-bg);
  color: var(--tool);
}
.tool-icon .icon { width: 23px; height: 23px; }

.tool-card h3 {
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -.02em;
  margin-bottom: 7px;
}
.tool-card p {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.55;
  max-width: 300px;
}
.tool-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 10px;
  margin-top: auto;
  padding-top: 22px;
}
.tool-local {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--green-dark);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .045em;
  text-transform: uppercase;
}
.tool-local .icon { width: 13px; height: 13px; }
.tool-arrow {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink-3);
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}
.tool-arrow .icon { width: 15px; height: 15px; }
.tool-card:hover .tool-arrow { background: var(--ink); border-color: var(--ink); color: #fff; }

.tool--merge { --tool: #2563eb; --tool-bg: #eff6ff; }
.tool--split { --tool: #7c3aed; --tool-bg: #f5f3ff; }
.tool--organize { --tool: #ea580c; --tool-bg: #fff7ed; }
.tool--number { --tool: #059669; --tool-bg: #ecfdf5; }
.tool--watermark { --tool: #db2777; --tool-bg: #fdf2f8; }
.tool--sign { --tool: #0284c7; --tool-bg: #f0f9ff; }

.grid-trust-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 32px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 650;
}
.grid-trust-badges span { display: flex; align-items: center; gap: 7px; }
.grid-trust-badges .icon { width: 18px; height: 18px; color: var(--green); stroke-width: 2.2; }

/* ==========================================================================
   How it works
   ========================================================================== */

.how-section { background: var(--paper-deep); border-block: 1px solid var(--line); }
.how-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 60px;
  align-items: start;
}
.how-copy { position: sticky; top: calc(var(--header-h) + 32px); }
.how-steps { display: grid; gap: 0; }
.how-steps li {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 18px;
  padding: 26px 0;
  border-top: 1px solid var(--line-strong);
}
.how-steps li:last-child { border-bottom: 1px solid var(--line-strong); }
.step-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--green-dark);
  padding-top: 5px;
}
.how-steps h3 {
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -.02em;
  margin-bottom: 5px;
}
.how-steps p { color: var(--muted); font-size: 14.5px; max-width: 430px; }

/* ==========================================================================
   Privacy band
   ========================================================================== */

.privacy-band {
  background:
    radial-gradient(780px 420px at 90% 0%, rgba(37, 99, 235, .22), transparent 64%),
    var(--ink);
  color: #f8fafc;
  padding: 92px 0;
}
.privacy-grid {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: 70px;
  align-items: start;
}
.privacy-copy p {
  color: #b9c7d0;
  font-size: 16px;
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 26px;
}
.privacy-copy h2 { color: #fff; }
.privacy-points { display: grid; gap: 0; }
.privacy-points li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, .13);
}
.privacy-points li:last-child { border-bottom: 1px solid rgba(255, 255, 255, .13); }
.point-icon {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: rgba(37, 99, 235, .1);
  border: 1px solid rgba(37, 99, 235, .18);
  color: var(--mint-bright);
}
.point-icon .icon { width: 21px; height: 21px; }
.privacy-points h3 {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  margin-bottom: 4px;
  color: #fff;
}
.privacy-points p { color: #aebdc7; font-size: 14px; line-height: 1.6; }

/* ==========================================================================
   Pricing
   ========================================================================== */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}
.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
}
.price-card.featured {
  background:
    radial-gradient(420px 240px at 100% 0%, rgba(37, 99, 235, .3), transparent 70%),
    var(--ink);
  border-color: var(--ink);
  color: #f8fafc;
  box-shadow: var(--shadow-md);
}
.price-flag {
  position: absolute;
  top: -13px;
  left: 28px;
  padding: 5px 12px;
  background: var(--mint);
  border-radius: 99px;
  color: var(--green-dark);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.price-top { padding-bottom: 22px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.featured .price-top { border-bottom-color: rgba(255, 255, 255, .15); }
.price-top h3 {
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.featured .price-top h3 { color: var(--mint-bright); }
.price-amount {
  font-family: var(--serif);
  font-size: 56px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.04em;
}
.price-amount span {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0;
}
.featured .price-amount span { color: #a9bac6; }
.price-sub { margin-top: 8px; color: var(--muted); font-size: 13px; }
.featured .price-sub { color: #a9bac6; }
.price-card .check-list { margin-bottom: 30px; }
.price-card .btn { margin-top: auto; }
.featured .btn-primary { background: var(--mint); border-color: var(--mint); color: var(--ink); box-shadow: none; }
.featured .btn-primary:hover { background: #dbeafe; border-color: #dbeafe; }
.checkout-fineprint {
  margin-top: 10px;
  text-align: center;
  color: #8fa1ad;
  font-size: 10.5px;
  letter-spacing: .02em;
}

.check-list { display: grid; gap: 12px; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 14px;
  line-height: 1.45;
}
.check-list .icon {
  width: 17px; height: 17px;
  color: var(--green);
  margin-top: 1px;
  stroke-width: 2.2;
}
.featured .check-list .icon { color: var(--mint-bright); }
.check-list li.muted { color: var(--muted); }
.featured .check-list li.muted { color: #9fb0bb; }

.pricing-note {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  max-width: 780px;
  margin: 30px auto 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.55;
  text-align: center;
}
.pricing-note .icon { width: 15px; height: 15px; color: var(--green); flex: none; margin-top: 1px; }

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq-section { background: var(--paper-deep); border-top: 1px solid var(--line); }
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr);
  gap: 70px;
  align-items: start;
}
.faq-grid > div:first-child { position: sticky; top: calc(var(--header-h) + 32px); }
.faq-list { border-top: 1px solid var(--line-strong); }
.faq-list details { border-bottom: 1px solid var(--line-strong); }
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 2px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 650;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-plus {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--ink-3);
  font-size: 18px;
  font-weight: 400;
  transition: transform .18s ease, background .18s ease;
}
.faq-list details[open] .faq-plus { transform: rotate(45deg); background: var(--mint); border-color: var(--mint); }
.faq-list details p {
  padding: 0 42px 22px 2px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.65;
  max-width: 620px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  padding: 64px 0 26px;
  background: var(--paper);
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr .8fr .8fr 1fr;
  gap: 40px;
  padding-bottom: 46px;
}
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { color: var(--muted); font-size: 13px; line-height: 1.6; max-width: 300px; }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.footer-col h3 {
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.footer-col a, .footer-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 3px 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  text-align: left;
  border-radius: 4px;
}
.footer-col a { min-height: 32px; }
.footer-col a:hover, .footer-link:hover { color: var(--ink); }
.footer-note p { color: var(--muted); font-size: 12.5px; line-height: 1.6; max-width: 250px; }
.footer-version { font-family: var(--mono); font-size: 10px !important; letter-spacing: .03em; color: var(--muted-2) !important; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 11.5px;
}
.footer-dot { opacity: .6; }

/* ==========================================================================
   Work view
   ========================================================================== */

.work-container { padding: 34px 0 88px; }

.work-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 26px;
}
.work-title-wrap { display: flex; align-items: center; gap: 14px; min-width: 0; }
.work-title-wrap .tool-icon {
  margin: 0;
  width: 50px; height: 50px;
  border-radius: 14px;
}
.work-title-wrap h1 {
  font-family: var(--serif);
  font-size: clamp(27px, 3vw, 34px);
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.1;
}
.work-title-wrap .eyebrow { margin: 0 0 2px; font-size: 10px; }

.privacy-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--surface);
  color: var(--green-dark);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.privacy-pill .icon { width: 13px; height: 13px; }

.work-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 396px;
  gap: 24px;
  align-items: start;
  min-width: 0;
}

.work-stage {
  min-width: 0;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

/* Dropzone */

.dropzone {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 270px;
  padding: 40px 24px;
  background:
    radial-gradient(300px 180px at 50% 10%, rgba(37, 99, 235, .08), transparent 70%),
    var(--surface-soft);
  border: 2px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  text-align: center;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
  -webkit-tap-highlight-color: transparent;
}
.dropzone:hover,
.dropzone.is-dragover {
  border-color: var(--green);
  background:
    radial-gradient(320px 200px at 50% 10%, rgba(37, 99, 235, .12), transparent 72%),
    var(--green-soft);
}
.dropzone.is-dragover { transform: scale(.995); }
.dropzone.is-compact { min-height: 138px; padding: 22px; }
.dropzone.is-reading { pointer-events: none; }
.dropzone.is-reading .dropzone-inner { opacity: .18; }

.dropzone-inner { display: flex; flex-direction: column; align-items: center; }
.dropzone-icon {
  display: grid;
  place-items: center;
  width: 58px; height: 58px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--green-dark);
  box-shadow: 0 0 0 8px rgba(37, 99, 235, .3);
}
.dropzone-icon .icon { width: 24px; height: 24px; }
.dropzone.is-compact .dropzone-icon { width: 42px; height: 42px; margin-bottom: 8px; box-shadow: none; }
.dropzone.is-compact .dropzone-icon .icon { width: 19px; height: 19px; }
.dropzone h2 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -.02em;
  margin-bottom: 5px;
}
.dropzone.is-compact h2 { font-size: 18px; }
.dropzone p { color: var(--muted); font-size: 13.5px; }
.link-like { color: var(--green-dark); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.dropzone-meta { margin-top: 12px !important; font-size: 11.5px !important; color: var(--muted-2) !important; }
.dropzone.is-compact .dropzone-meta { display: none; }
.dropzone-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--ink-3);
  font-size: 13px;
}

/* File summary (single file) */

.file-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.file-summary-main { display: flex; align-items: center; gap: 14px; min-width: 0; flex: 1; }
.file-thumb {
  position: relative;
  flex: none;
  width: 58px;
  height: 76px;
  display: grid;
  place-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
}
.file-thumb canvas { max-width: 100%; max-height: 100%; }
.file-thumb .icon { color: var(--muted-2); }
.file-summary-name { min-width: 0; display: grid; gap: 2px; }
.file-summary-name strong {
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.file-summary-name span {
  color: var(--muted);
  font-size: 11.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.file-summary-actions { display: flex; align-items: center; gap: 2px; flex: none; }
.file-summary.is-reading { opacity: .5; pointer-events: none; }

/* Merge file rows */

.file-list { display: grid; gap: 10px; margin-top: 14px; }
.file-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: border-color .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.file-row.is-dragging { opacity: .45; }
.file-row.is-drop-target { border-color: var(--green); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
.drag-grip {
  display: grid;
  place-items: center;
  width: 34px;
  height: 44px;
  color: var(--muted-2);
  cursor: grab;
  border-radius: 7px;
  flex: none;
}
.drag-grip:hover { background: var(--paper); color: var(--ink-3); }
.drag-grip:active { cursor: grabbing; }
.drag-grip .icon { width: 17px; height: 17px; }
.file-row-index {
  flex: none;
  width: 24px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 10.5px;
  text-align: center;
}
.file-row .file-thumb { width: 46px; height: 60px; }
.file-row-info { display: grid; gap: 2px; min-width: 0; flex: 1; }
.file-row-info strong {
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.file-row-info span { color: var(--muted); font-size: 11px; }
.file-row-actions { display: flex; align-items: center; gap: 0; flex: none; }
.file-row-actions .icon-btn { width: 44px; height: 44px; }

/* Page section */

.page-section { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.section-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.section-row h2 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.02em;
}
.section-hint { color: var(--muted); font-size: 12px; margin-top: 2px; }
.page-count-pill {
  flex: none;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  white-space: nowrap;
}

.page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(124px, 1fr));
  gap: 12px;
}

.page-card {
  position: relative;
  padding: 7px 7px 9px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.page-card.is-selected {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .13);
}
.thumb-fail {
  display: grid;
  place-items: center;
  color: var(--muted-2);
}
.page-thumb {
  display: grid;
  place-items: center;
  aspect-ratio: .72;
  background:
    linear-gradient(45deg, #e2e8f0 25%, transparent 25%, transparent 75%, #e2e8f0 75%) 0 0 / 14px 14px,
    #f8fafc;
  border-radius: 5px;
  overflow: hidden;
  color: var(--muted-2);
}
.page-thumb canvas { max-width: 100%; max-height: 100%; }
.page-thumb .icon { width: 22px; height: 22px; opacity: .55; }
.page-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  margin-top: 7px;
  color: var(--ink-3);
  font-size: 10.5px;
  font-weight: 650;
}
.page-label span { color: var(--muted-2); font-weight: 500; }

/* Interactive organizer rows */

.page-rows { display: grid; gap: 8px; }
.page-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: border-color .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.page-row.is-dragging { opacity: .4; }
.page-row.is-drop-target { border-color: var(--green); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
.page-row.is-removed { opacity: .55; background: #fbf6f5; }
.page-row.is-removed .page-row-name strong { text-decoration: line-through; }
.page-row-thumb {
  flex: none;
  width: 50px;
  height: 66px;
  display: grid;
  place-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 5px;
  overflow: hidden;
}
.page-row-thumb canvas { max-width: 100%; max-height: 100%; transition: transform .18s ease; }
.page-row-main { min-width: 0; flex: 1; display: grid; gap: 2px; }
.page-row-name strong { font-size: 12.5px; font-weight: 700; }
.page-row-name .page-row-src { display: block; color: var(--muted); font-size: 10.5px; margin-top: 1px; }
.page-row-actions { display: flex; align-items: center; gap: 0; flex-wrap: wrap; justify-content: flex-end; }
.page-row-actions .icon-btn { width: 44px; height: 44px; }
.page-row-actions .icon-btn .icon { width: 17px; height: 17px; }

.rot-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 5px;
  margin-left: 5px;
  background: var(--blue-bg);
  border-radius: 4px;
  color: var(--blue);
  font-family: var(--mono);
  font-size: 8.5px;
  vertical-align: 1px;
}
.removed-badge {
  display: inline-flex;
  padding: 2px 5px;
  margin-left: 5px;
  background: var(--red-bg);
  border-radius: 4px;
  color: var(--red);
  font-size: 8.5px;
  font-weight: 700;
  text-transform: uppercase;
}

.stage-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 10.5px;
}
.stage-foot span { display: inline-flex; align-items: center; gap: 5px; }
.stage-foot .icon { width: 13px; height: 13px; }

/* ==========================================================================
   Options sidebar
   ========================================================================== */

.work-side { position: sticky; top: calc(var(--header-h) + 18px); display: grid; gap: 14px; min-width: 0; }

.side-card {
  min-width: 0;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}
.side-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 15px;
  margin-bottom: 19px;
  border-bottom: 1px solid var(--line);
}
.side-card-head h2 {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -.02em;
}
.tool-tag {
  padding: 3px 8px;
  border-radius: 99px;
  background: var(--paper);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.opt-group { margin-bottom: 19px; }
.opt-group:last-child { margin-bottom: 0; }
.opt-label,
.opt-group > label,
.opt-group > .label-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .01em;
}
.opt-label .hint, .label-line .hint { color: var(--muted-2); font-size: 10px; font-weight: 500; }
.opt-help { margin-top: 6px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.opt-error {
  margin-top: 7px;
  padding: 7px 9px;
  background: var(--red-bg);
  border: 1px solid #f5c5c1;
  border-radius: 7px;
  color: var(--red);
  font-size: 11px;
  display: none;
}
.opt-error.is-visible { display: block; }

.input, .select {
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  font-size: 13.5px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input:hover, .select:hover { border-color: #94a3b8; }
.input:focus, .select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .13);
}
.input::placeholder { color: var(--muted-2); }
.select {
  appearance: none;
  padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1.5 5 5 5-5' fill='none' stroke='%235f6f7c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.input-row { display: flex; gap: 8px; align-items: center; }
.input-row .input { flex: 1; }
.input-suffix {
  display: flex;
  align-items: center;
  flex: none;
  min-height: 44px;
  padding: 0 11px;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-left: 0;
  border-radius: 0 9px 9px 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  margin-left: -9px;
}

.range-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.range-row input[type="range"] {
  flex: 1;
  min-width: 0;
  accent-color: var(--green);
  height: 24px;
  margin: 0;
}
.range-value {
  flex: none;
  min-width: 48px;
  padding: 4px 6px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 10px;
  text-align: center;
}

.seg {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 3px;
  padding: 3px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.seg button {
  min-height: 38px;
  padding: 6px 8px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 650;
}
.seg button:hover { color: var(--ink); }
.seg button[aria-selected="true"],
.seg button.is-active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.radio-list { display: grid; gap: 7px; }
.radio-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px 11px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 9px;
  cursor: pointer;
  font-size: 12px;
  line-height: 1.35;
  transition: border-color .15s ease, background .15s ease;
}
.radio-card:hover { border-color: var(--line-strong); }
.radio-card input {
  appearance: none;
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  flex: none;
  position: relative;
}
.radio-card input::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--green);
  transform: scale(0);
  transition: transform .12s ease;
}
.radio-card input:checked { border-color: var(--green); }
.radio-card input:checked::after { transform: scale(1); }
.radio-card:has(input:checked) { border-color: var(--green); background: #eff6ff; }
.radio-card strong { font-weight: 650; }
.radio-card span { display: block; color: var(--muted); font-size: 10.5px; margin-top: 1px; }

.check-field {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--ink-2);
  cursor: pointer;
  padding: 2px 0;
}
.check-field input {
  appearance: none;
  width: 18px;
  height: 18px;
  flex: none;
  margin: 0;
  border: 1.5px solid var(--line-strong);
  border-radius: 5px;
  background: var(--surface);
  position: relative;
}
.check-field input:checked { background: var(--green); border-color: var(--green); }
.check-field input:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1.5px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(42deg);
}
.check-field span { padding-top: 1px; }
.check-field.has-note { display: grid; grid-template-columns: 18px 1fr; }
.check-field.has-note small { display: block; color: var(--muted); font-size: 10.5px; margin-top: 2px; }

.color-field { display: flex; align-items: center; gap: 8px; }
.color-field input[type="color"] {
  width: 44px;
  height: 44px;
  padding: 3px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
}
.color-field code {
  flex: 1;
  padding: 10px 11px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10.5px;
}

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.two-col .opt-group { margin-bottom: 0; }

/* Page number / signature position picker */

.pos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  padding: 5px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.pos-grid.two-rows { grid-template-columns: repeat(3, 1fr); }
.pos-btn {
  min-height: 36px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--muted-2);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .03em;
  transition: background .12s ease, border-color .12s ease, color .12s ease;
}
.pos-btn:hover { background: var(--surface); color: var(--ink-3); }
.pos-btn[aria-pressed="true"] {
  background: var(--surface);
  border-color: var(--green);
  color: var(--green-dark);
  box-shadow: 0 1px 3px rgba(15, 23, 42, .07);
}
.pos-dot {
  display: block;
  width: 9px; height: 9px;
  margin: 0 auto;
  border-radius: 50%;
  background: currentColor;
  opacity: .5;
}
.pos-btn[aria-pressed="true"] .pos-dot { opacity: 1; }

.sig-tabs { margin-bottom: 12px; }
.sig-area { margin-bottom: 14px; }
.sig-canvas-wrap {
  position: relative;
  background:
    linear-gradient(180deg, transparent calc(100% - 1px), #e2e8f0 calc(100% - 1px)) 0 76% / 100% 30px no-repeat,
    #fff;
  border: 1.5px dashed var(--line-strong);
  border-radius: 10px;
  overflow: hidden;
  touch-action: none;
}
.sig-canvas-wrap.is-dirty { border-style: solid; border-color: var(--green); background: #fff; }
.sig-canvas-wrap canvas { display: block; width: 100%; height: 150px; touch-action: none; cursor: crosshair; }
.sig-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  color: var(--muted-2);
  font-family: var(--serif);
  font-size: 24px;
  font-style: italic;
  opacity: .55;
}
.sig-canvas-wrap.is-dirty .sig-placeholder { display: none; }
.sig-tools { display: flex; align-items: center; gap: 5px; margin-top: 8px; }
.sig-tools .swatch {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 2px solid var(--surface);
  box-shadow: 0 0 0 1px var(--line-strong);
  padding: 0;
}
.sig-tools .swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--green); }
.sig-tools .icon-btn { width: 44px; height: 44px; margin-left: auto; }
.sig-tools .icon-btn .icon { width: 17px; height: 17px; }
.sig-tools .range-row { flex: 1; margin-left: 6px; }

.upload-mini {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 118px;
  padding: 16px;
  background: var(--surface-soft);
  border: 1.5px dashed var(--line-strong);
  border-radius: 10px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
  cursor: pointer;
}
.upload-mini:hover { border-color: var(--green); color: var(--ink-3); }
.upload-mini .icon { width: 22px; height: 22px; color: var(--green); }
.sig-upload-preview {
  display: grid;
  place-items: center;
  min-height: 110px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.sig-upload-preview img { max-width: 100%; max-height: 90px; }
.sig-upload-preview p { color: var(--muted-2); font-size: 11px; }
.sig-upload-meta { margin-top: 6px; color: var(--muted); font-size: 10.5px; display: flex; justify-content: space-between; gap: 8px; }

.wm-sample {
  display: grid;
  place-items: center;
  min-height: 96px;
  padding: 10px;
  background:
    linear-gradient(180deg, #fff, #ffffff);
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
}
.wm-sample span {
  font-family: var(--sans);
  font-weight: 800;
  letter-spacing: .06em;
  white-space: nowrap;
  transform-origin: center;
  color: #6b7280;
  font-size: 22px;
  opacity: .18;
}

.preset-row { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.preset-btn {
  min-height: 32px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--surface);
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 650;
}
.preset-btn:hover { border-color: var(--line-strong); color: var(--ink); }

.side-note {
  display: flex;
  gap: 8px;
  padding: 11px;
  background: var(--green-soft);
  border: 1px solid #bfdbfe;
  border-radius: 9px;
  color: var(--green-dark);
  font-size: 11px;
  line-height: 1.5;
}
.side-note .icon { width: 15px; height: 15px; flex: none; margin-top: 1px; }

/* Sidebar actions */

.side-actions { display: grid; gap: 9px; min-width: 0; }
.side-actions .btn { min-height: 54px; font-size: 15px; }
.limits-note { color: var(--muted); font-size: 10.5px; text-align: center; line-height: 1.45; }
.local-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: var(--muted-2);
  font-size: 10.5px;
}
.local-note .icon { width: 12px; height: 12px; color: var(--green); }

/* ==========================================================================
   Result view
   ========================================================================== */

.result-container { padding: 34px 0 92px; }
.result-header { margin-bottom: 22px; }
.result-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: 34px;
  align-items: start;
}
.result-preview-card {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  padding: 20px;
  background:
    radial-gradient(420px 300px at 50% 0%, rgba(37, 99, 235, .32), transparent 70%),
    var(--paper-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
}
.preview-frame {
  display: grid;
  place-items: center;
  min-height: 430px;
  padding: 22px;
  background: #f1f5f9;
  border-radius: var(--radius-lg);
  box-shadow: inset 0 1px 3px rgba(15, 23, 42, .08);
}
.preview-frame canvas {
  max-width: 100%;
  max-height: min(640px, 68vh);
  width: auto !important;
  height: auto !important;
  background: #fff;
  border-radius: 2px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, .22);
}
.preview-fallback {
  display: grid;
  justify-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
.preview-fallback .icon { width: 38px; height: 38px; opacity: .5; }
.preview-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 0 3px;
  color: var(--muted);
  font-size: 11px;
}
.preview-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--surface);
  color: var(--green-dark);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.preview-badge .icon { width: 11px; height: 11px; }

.result-details { padding-top: 12px; }
.result-details h1 {
  font-family: var(--serif);
  font-size: clamp(38px, 4.6vw, 54px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -.04em;
  margin-bottom: 12px;
}
.result-sub { color: var(--muted); font-size: 15px; line-height: 1.6; max-width: 480px; }

.result-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 26px 0;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.result-stats div { padding: 13px 14px; background: var(--surface); }
.result-stats dt {
  color: var(--muted-2);
  font-size: 9.5px;
  font-weight: 750;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 3px;
}
.result-stats dd { font-size: 14px; font-weight: 650; color: var(--ink); }

.result-parts {
  margin-bottom: 22px;
  padding: 12px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.result-parts h3 {
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
}
.result-parts ul { display: grid; gap: 3px; max-height: 132px; overflow: auto; }
.result-parts li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 3px 0;
  color: var(--ink-3);
  font-size: 11px;
}
.result-parts li span:first-child { font-family: var(--mono); font-size: 10px; }
.result-parts li span:last-child { color: var(--muted); white-space: nowrap; }

.locked-note {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px;
  background: var(--amber-bg);
  border: 1px solid var(--amber-line);
  border-radius: var(--radius-md);
}
.locked-icon {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  flex: none;
  border-radius: 9px;
  background: #ffe9bd;
  color: var(--amber);
}
.locked-icon .icon { width: 18px; height: 18px; }
.locked-note h3 { font-size: 12.5px; font-weight: 750; color: #7a4300; margin-bottom: 3px; }
.locked-note p { color: #8a5a12; font-size: 11.5px; line-height: 1.5; }
.locked-note .locked-small { margin-top: 4px; color: #a17a3a; font-size: 10.5px; }

.download-bar {
  display: grid;
  gap: 8px;
  padding: 14px;
  background:
    radial-gradient(300px 160px at 100% 0%, rgba(37, 99, 235, .35), transparent 70%),
    var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 36px rgba(15, 23, 42, .2);
}
.download-bar.is-locked {
  background:
    radial-gradient(300px 160px at 100% 0%, rgba(217, 119, 6, .3), transparent 70%),
    #2c2416;
}
.btn-download {
  min-height: 54px;
  background: var(--mint);
  border-color: var(--mint);
  color: var(--ink);
  box-shadow: none;
  font-size: 15px;
}
.btn-download:hover { background: #dbeafe; border-color: #dbeafe; }
.download-bar.is-locked .btn-download { background: #ffd98f; border-color: #ffd98f; color: #3d2600; }
.download-bar.is-locked .btn-download:hover { background: #ffe3a8; border-color: #ffe3a8; }
.download-meta {
  color: #9fb1bd;
  font-size: 10.5px;
  text-align: center;
  letter-spacing: .02em;
}
.download-bar.is-locked .download-meta { color: #c4ad86; }

.result-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.result-actions .btn { flex: 1; min-width: 140px; }

.result-privacy {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 26px;
  padding: 14px 16px;
  background: var(--green-soft);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-md);
  color: var(--green-dark);
}
.result-privacy .icon { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.result-privacy p { font-size: 11.5px; line-height: 1.55; }

/* ==========================================================================
   Modal
   ========================================================================== */

.modal-root { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 20px; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .75);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  animation: fade .18s ease both;
}
.modal {
  position: relative;
  width: min(100%, 480px);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 40px 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  animation: modal-in .22s cubic-bezier(.2, .8, .2, 1) both;
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
}
.modal-close:hover { background: var(--paper); color: var(--ink); border-color: var(--line); }
.modal-close .icon { width: 18px; height: 18px; }

.modal h2 {
  font-family: var(--serif);
  font-size: 31px;
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -.03em;
  margin: 5px 0 9px;
  max-width: 380px;
}
.modal-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--green-dark);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.modal-lede { color: var(--muted); font-size: 13.5px; line-height: 1.55; max-width: 410px; }

.limit-banner {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 16px 0;
  padding: 10px 12px;
  background: var(--amber-bg);
  border: 1px solid var(--amber-line);
  border-radius: 9px;
  color: #7a4300;
  font-size: 11.5px;
  line-height: 1.5;
}
.limit-banner .icon { width: 15px; height: 15px; flex: none; margin-top: 1px; color: var(--amber); }

.order-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 18px 0;
  padding: 15px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.order-box strong { display: block; font-size: 13px; }
.order-box span { display: block; color: var(--muted); font-size: 10.5px; margin-top: 2px; }
.order-price {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -.03em;
  white-space: nowrap;
}
.order-price small { font-family: var(--sans); font-size: 9px; color: var(--muted); font-weight: 600; }
.modal .check-list { margin: 16px 0 20px; }
.modal .check-list li { font-size: 12.5px; }
.modal .btn-block { min-height: 52px; }
.checkout-note {
  margin-top: 10px;
  color: var(--muted-2);
  font-size: 10px;
  line-height: 1.5;
  text-align: center;
}
.modal-fine {
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.5;
}

.processing {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 50px 0 32px;
  text-align: center;
}
.processing p { color: var(--muted); font-size: 13px; }
.processing strong { font-size: 15px; }

.success-icon {
  display: grid;
  place-items: center;
  width: 58px; height: 58px;
  margin-bottom: 6px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--green-dark);
}
.success-icon .icon { width: 28px; height: 28px; stroke-width: 2.4; }

.license-box {
  margin: 18px 0;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.license-box .label {
  display: block;
  color: var(--muted-2);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 5px;
}
.license-key {
  display: block;
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .04em;
  word-break: break-all;
}
.license-meta { margin-top: 7px; color: var(--muted); font-size: 10.5px; }

.license-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0;
  padding: 14px;
  background: var(--amber-bg);
  border: 1px solid var(--amber-line);
  border-radius: var(--radius-md);
}
.license-status .icon { width: 20px; height: 20px; color: var(--amber); }
.license-status strong { display: block; font-size: 13px; color: #92400e; }
.license-status span { display: block; font-size: 11px; color: #b45309; }
.danger-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 10px;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 10.5px;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.danger-link:hover { color: var(--red); }

@keyframes modal-in {
  from { opacity: 0; transform: translateY(12px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ==========================================================================
   Loading overlay, toast, spinner
   ========================================================================== */

.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(248, 250, 252, .72);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}
.loading-card {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-width: 270px;
  padding: 30px 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.loading-card p { font-size: 14px; font-weight: 650; }
.loading-sub { color: var(--muted) !important; font-size: 10.5px !important; font-weight: 500 !important; max-width: 220px; }

.spinner {
  display: block;
  width: 34px;
  height: 34px;
  border: 3px solid var(--mint);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin .8s linear infinite;
  margin-bottom: 6px;
}
.spinner.small { width: 20px; height: 20px; border-width: 2px; margin: 0; }
@keyframes spin { to { transform: rotate(360deg); } }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 100;
  max-width: min(440px, calc(100vw - 32px));
  padding: 12px 16px;
  background: var(--ink);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  color: #fff;
  font-size: 12.5px;
  line-height: 1.45;
  transform: translateX(-50%);
  animation: toast-in .2s ease both;
}
.toast.is-error { background: #5d1f1b; }
.toast.is-success { background: #0b5b45; }
@keyframes toast-in {
  from { opacity: 0; transform: translate(-50%, 8px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1040px) {
  .hero-grid { gap: 34px; }
  .proof-chip-a { left: -6px; }
  .proof-chip-b { right: -4px; }
  .work-grid { grid-template-columns: minmax(0, 1fr) 350px; }
  .footer-grid { grid-template-columns: 1.3fr .8fr .8fr 1fr; gap: 26px; }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .container { width: min(100% - 36px, 760px); }
  .section { padding: 68px 0; }
  .hero { padding: 48px 0 66px; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-copy { text-align: left; }
  .hero h1 { font-size: clamp(44px, 10vw, 66px); }
  .hero-proof { justify-content: flex-start; }
  .proof-card { transform: none; }
  .proof-chip-a { left: auto; right: 12px; top: 0; }
  .proof-chip-b { right: auto; left: 8px; bottom: 12px; }
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .how-grid, .privacy-grid, .faq-grid { grid-template-columns: 1fr; gap: 38px; }
  .how-copy, .faq-grid > div:first-child { position: static; }
  .privacy-band { padding: 68px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .work-grid { grid-template-columns: 1fr; }
  .work-side { position: static; }
  .side-actions {
    position: sticky;
    bottom: 0;
    z-index: 30;
    padding: 12px;
    margin: 0 -4px;
    background: rgba(248, 250, 252, .92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
  }
  .result-grid { grid-template-columns: 1fr; gap: 24px; }
  .result-preview-card { position: static; }
  .preview-frame { min-height: 320px; }
  .result-details { grid-row: 1; }
  .result-preview-card { grid-row: 2; }
  .work-header { flex-wrap: wrap; }
  .work-header .privacy-pill { order: 3; }
}

@media (max-width: 720px) {
  .pos-btn,
  .seg button,
  .preset-btn {
    min-height: 44px;
  }
  .sig-tools .swatch {
    width: 44px;
    height: 44px;
  }
  .work-header {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 10px 12px;
  }
  .work-header .text-btn {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }
  .work-header .privacy-pill {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }
  .work-title-wrap {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .header-nav { display: none; }
  .brand-pill { display: none; }
  .brand-text { font-size: 19px; }
  .plan-chip { padding: 5px 10px; }
  .plan-text small { font-size: 9.5px; }
  .hero h1 { font-size: clamp(41px, 11.5vw, 58px); }
  .hero-sub { font-size: 16.5px; }
  .trust-row { gap: 8px 16px; }
  .tool-grid { grid-template-columns: 1fr; }
  .tool-card { min-height: 210px; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 460px; }
  .section-head h2, .how-copy h2, .privacy-copy h2, .faq-grid h2 { font-size: clamp(32px, 8.6vw, 42px); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .work-container { padding-top: 20px; }
  .work-stage { padding: 14px; border-radius: var(--radius-lg); }
  .side-card { padding: 18px; border-radius: var(--radius-lg); }
  .dropzone { min-height: 220px; }
  .page-grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
  .file-row-index { display: none; }
  .file-row .file-thumb { width: 40px; height: 54px; }
  .page-row { flex-wrap: wrap; }
  .page-row-actions { width: 100%; justify-content: flex-end; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 4px; }
  .page-row-actions .icon-btn { width: 44px; height: 44px; }
  .page-row-thumb { width: 44px; height: 58px; }
  .result-stats { grid-template-columns: 1fr; }
  .result-stats div { padding: 10px 13px; }
  .preview-frame { min-height: 260px; padding: 12px; }
  .modal { padding: 24px 20px; }
  .modal h2 { font-size: 27px; }
  .toast { bottom: 90px; }
}

@media (max-width: 480px) {
  .container { width: min(100% - 28px, 760px); }
  .header-inner { gap: 14px; }
  .plan-text strong { font-size: 11.5px; }
  .plan-text small { font-size: 9px; }
  .hero-actions .btn { width: 100%; }
  .proof-foot { gap: 4px; }
  .proof-stat strong { font-size: 19px; }
  .proof-chip { font-size: 9.5px; padding: 6px 9px; }
  .work-title-wrap .tool-icon { display: none; }
  .privacy-pill { font-size: 9px; }
  .two-col { grid-template-columns: 1fr; }
  .result-actions .btn { min-width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  /* Touch targets: keep every mobile control at or above 44px. */
  .footer-col a, .footer-link, .text-link { min-height: 44px; min-width: 44px; }
  .range-row input[type="range"] { height: 44px; }
  .check-field { min-height: 44px; align-items: center; }
  .check-field.has-note { align-items: start; }
}

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