@charset "utf-8";

/* =============================================================
   Merge PDF Online - core stylesheet
   Hand-written, no build step, no external font requests.
   Sections: 1 tokens  2 reset  3 layout  4 header/footer
             5 hero  6 tool  7 content  8 prose/docs  9 utilities
   ============================================================= */

/* ---------------------------------------------------------- 1. tokens */
:root {
  --brand: #4338ca;
  --brand-600: #4f46e5;
  --brand-700: #3730a3;
  --brand-050: #eef2ff;
  --brand-100: #e0e7ff;

  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-2: #cbd5e1;
  --surface: #f8fafc;
  --surface-2: #f1f5f9;
  --white: #fff;

  --success: #047857;
  --success-bg: #ecfdf5;
  --success-line: #a7f3d0;
  --danger: #b91c1c;
  --danger-bg: #fef2f2;
  --danger-line: #fecaca;
  --warn: #b45309;
  --warn-bg: #fffbeb;

  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 8px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 10px 24px -14px rgba(15, 23, 42, .25);
  --shadow-lg: 0 30px 70px -30px rgba(15, 23, 42, .45);

  --wrap: 1140px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

/* ---------------------------------------------------------- 2. reset */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 .5em;
  letter-spacing: -.015em;
  font-weight: 700;
}

h1 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3rem); }
h2 { font-size: clamp(1.45rem, 1.1rem + 1.4vw, 2.05rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1rem; }

a {
  color: var(--brand-700);
  text-decoration: none;
  text-underline-offset: 3px;
}
a:hover { text-decoration: underline; }

img, svg { max-width: 100%; height: auto; }
ul, ol { margin: 0 0 1rem; padding-left: 1.35em; }
li { margin-bottom: .4em; }

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

:focus-visible {
  outline: 3px solid var(--brand-600);
  outline-offset: 2px;
  border-radius: 4px;
}

[hidden] { display: none !important; }

/* ---------------------------------------------------------- 3. layout */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 20px;
}

.section { padding: 64px 0; }
.section--tight { padding: 44px 0; }
.section--surface { background: var(--surface); border-block: 1px solid var(--line); }
.section__head { max-width: 720px; margin-bottom: 32px; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .75rem;
  font-weight: 700;
  color: var(--brand-700);
  margin-bottom: .6rem;
}
.lede { font-size: 1.075rem; color: var(--muted); }

/* ---------------------------------------------------- 4. header/footer */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 66px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--ink);
  font-size: 1.02rem;
  letter-spacing: -.01em;
  flex: 0 0 auto;
}
.brand:hover { text-decoration: none; }
.brand__mark { width: 30px; height: 30px; display: block; }
.brand__name { white-space: nowrap; }

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav::-webkit-scrollbar { display: none; }
.nav a {
  color: var(--ink-2);
  font-size: .94rem;
  font-weight: 500;
  padding: 8px 11px;
  border-radius: var(--radius-xs);
  white-space: nowrap;
}
.nav a:hover { background: var(--surface-2); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--brand-700); background: var(--brand-050); }

.header-cta { flex: 0 0 auto; }

.site-footer {
  background: #0b1120;
  color: #94a3b8;
  padding: 52px 0 28px;
  font-size: .93rem;
}
.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: var(--white); }
.footer-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(240px, 1.4fr) repeat(2, minmax(140px, 1fr));
  margin-bottom: 34px;
}
.site-footer .brand { color: var(--white); margin-bottom: 12px; }
.site-footer h2 {
  color: var(--white);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 12px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  font-size: .86rem;
}

/* ---------------------------------------------------------- 5. hero */
.hero {
  padding: 52px 0 12px;
  text-align: center;
  background:
    radial-gradient(1000px 320px at 50% -160px, var(--brand-050), transparent 70%);
}
.hero h1 { margin-bottom: .35em; }
.hero__lede {
  font-size: 1.13rem;
  color: var(--muted);
  max-width: 660px;
  margin: 0 auto 26px;
}
.trustbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 10px;
  margin: 0 auto 30px;
  padding: 0;
  list-style: none;
}
.trustbar li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: .84rem;
  font-weight: 600;
  color: var(--ink-2);
  box-shadow: var(--shadow-sm);
  margin: 0;
}
.trustbar svg { width: 15px; height: 15px; color: var(--success); flex: 0 0 auto; }

/* ---------------------------------------------------------- 6. tool */
.tool { margin: 0 auto 56px; max-width: 880px; }

.tool__card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.dropzone {
  padding: 46px 26px 40px;
  text-align: center;
  border: 2px dashed var(--line-2);
  border-radius: var(--radius);
  margin: 14px;
  background: var(--surface);
  transition: background .18s ease, border-color .18s ease;
}
.dropzone.is-over {
  border-color: var(--brand);
  background: var(--brand-050);
}
.dropzone__icon {
  width: 54px;
  height: 54px;
  color: var(--brand);
  margin-bottom: 12px;
}
.dropzone__title {
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}
.dropzone__hint { color: var(--muted); font-size: .93rem; margin-bottom: 18px; }
.dropzone__note {
  margin: 16px 0 0;
  font-size: .82rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.dropzone__note svg { width: 14px; height: 14px; color: var(--success); }

.panel { padding: 22px; border-top: 1px solid var(--line); }
.panel:first-child { border-top: 0; }

.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.panel__title { margin: 0; font-size: 1rem; font-weight: 700; color: var(--ink); }
.panel__actions { display: flex; gap: 8px; flex-wrap: wrap; }

.filelist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  max-height: 420px;
  overflow-y: auto;
}

.file {
  display: grid;
  grid-template-columns: 22px 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  transition: box-shadow .15s ease, border-color .15s ease, opacity .15s ease;
}
.file:hover { border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.file.is-dragging { opacity: .45; }
.file.is-target { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-100); }
.file.is-error { border-color: var(--danger-line); background: var(--danger-bg); }
.file.is-loading { opacity: .7; }

.file__handle {
  cursor: grab;
  color: var(--line-2);
  font-size: 15px;
  line-height: 1;
  text-align: center;
  user-select: none;
}
.file__handle:active { cursor: grabbing; }

.file__badge {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-xs);
  background: var(--brand-050);
  color: var(--brand-700);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .04em;
}

.file__meta { min-width: 0; }
.file__name {
  display: block;
  font-weight: 600;
  color: var(--ink);
  font-size: .95rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.file__sub { font-size: .82rem; color: var(--muted); }
.file.is-error .file__sub { color: var(--danger); font-weight: 600; }

.file__controls { display: flex; align-items: center; gap: 2px; }

.icon-btn {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  background: transparent;
  border-radius: var(--radius-xs);
  color: var(--muted);
  cursor: pointer;
  line-height: 1;
  padding: 0;
}
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn:disabled { opacity: .35; cursor: not-allowed; }
.icon-btn--danger:hover { background: var(--danger-bg); color: var(--danger); }
.icon-btn svg { width: 16px; height: 16px; }

.options {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
  align-items: flex-end;
  padding: 16px 22px;
  background: var(--surface);
  border-top: 1px solid var(--line);
}
.field { display: grid; gap: 5px; font-size: .84rem; font-weight: 600; color: var(--ink-2); }
.field input[type="text"],
.field input[type="email"] {
  padding: 9px 11px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-xs);
  background: var(--white);
  min-width: 210px;
  font-size: .92rem;
}
.field input[type="text"]:focus,
.field input[type="email"]:focus { border-color: var(--brand-600); outline: none; box-shadow: 0 0 0 3px var(--brand-100); }

.check {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  user-select: none;
  padding-bottom: 6px;
}
.check input { width: 18px; height: 18px; accent-color: var(--brand); cursor: pointer; }
.check__note { display: block; font-weight: 400; font-size: .82rem; color: var(--muted); }

.actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 20px 22px;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.progress-wrap {
  padding: 18px 22px 20px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.progress {
  height: 8px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
  margin: 8px 0 0;
}
.progress__bar {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-600), var(--brand));
  transition: width .2s ease;
}
.progress__label { font-size: .86rem; color: var(--muted); margin: 0; }

.result {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 0 22px 22px;
  padding: 16px 18px;
  border: 1px solid var(--success-line);
  background: var(--success-bg);
  border-radius: var(--radius-sm);
}
.result__icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--success);
  color: var(--white);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.result__icon svg { width: 20px; height: 20px; }
.result__text { min-width: 0; flex: 1 1 220px; }
.result__title { font-weight: 700; color: #065f46; margin: 0; }
.result__sub { margin: 0; font-size: .87rem; color: #047857; }

/* paywall ---------------------------------------------------------------- */
.paywall {
  margin: 0 22px 22px;
  padding: 22px;
  border: 1px solid #fde68a;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fffbeb, #ffffff 70%);
  box-shadow: var(--shadow-sm);
}
.paywall__head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; }
.paywall__lock {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: #fef3c7;
  color: var(--warn);
  display: grid;
  place-items: center;
}
.paywall__lock svg { width: 22px; height: 22px; }
.paywall__head h3 { margin: 0 0 4px; font-size: 1.12rem; }
.paywall__head p { margin: 0; color: var(--muted); font-size: .93rem; }
.paywall__features {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.paywall__features li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: .9rem;
  color: var(--ink-2);
  margin: 0;
}
.paywall__features svg { width: 16px; height: 16px; color: var(--success); flex: 0 0 auto; margin-top: 3px; }
.paywall__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px dashed var(--line-2);
}
.paywall__price { margin: 0 auto 0 0; font-size: .95rem; color: var(--ink); }
.paywall__price strong { font-size: 1.35rem; }
.paywall__price span { display: block; font-size: .82rem; color: var(--muted); }
.paywall__form {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--line-2);
}
.paywall__form .field { flex: 1 1 240px; }
.paywall__form input[type="text"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-xs);
  font-family: var(--font-mono);
  font-size: .9rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.paywall__form input[type="text"]:focus {
  border-color: var(--brand-600);
  outline: none;
  box-shadow: 0 0 0 3px var(--brand-100);
}
.paywall__status { flex: 1 1 100%; margin: 0; font-size: .88rem; font-weight: 600; }
.paywall__status[data-state="error"] { color: var(--danger); }
.paywall__status[data-state="ok"] { color: var(--success); }
/* Reassure buyers about what happens to their files while they decide. */
.paywall__reassure {
  margin: 14px 0 0;
  font-size: .84rem;
  color: var(--muted);
  display: flex;
  gap: 7px;
  align-items: flex-start;
}
.paywall__reassure svg { width: 15px; height: 15px; color: var(--success); flex: 0 0 auto; margin-top: 2px; }

.pro-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--brand-050);
  color: var(--brand-700);
  border: 1px solid var(--brand-100);
}
.pro-badge svg { width: 13px; height: 13px; }

.price-card { position: relative; }
.price-card--featured { border-color: var(--brand); box-shadow: var(--shadow-lg); }
.price-card__tag {
  position: absolute;
  top: -13px;
  left: 24px;
  background: var(--brand);
  color: var(--white);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
}
.price-card__amount { font-size: 2.6rem; font-weight: 800; color: var(--ink); line-height: 1; letter-spacing: -.02em; }
.price-card__amount small { font-size: .95rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.price-card__list { list-style: none; padding: 0; margin: 18px 0 22px; display: grid; gap: 9px; }
.price-card__list li { display: flex; gap: 9px; align-items: flex-start; margin: 0; font-size: .93rem; }
.price-card__list svg { width: 17px; height: 17px; flex: 0 0 auto; margin-top: 3px; color: var(--brand); }
.price-card__list li.is-muted { color: var(--muted); }
.price-card__list li.is-muted svg { color: var(--line-2); }

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 11px 20px;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease, transform .05s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn--primary { background: var(--brand); color: var(--white); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--brand-700); }
.btn--ghost { background: var(--white); border-color: var(--line-2); color: var(--ink); }
.btn--ghost:hover { background: var(--surface-2); }
.btn--lg { padding: 14px 30px; font-size: 1.02rem; }
.btn--sm { padding: 8px 14px; font-size: .88rem; }
.btn--block { width: 100%; }
.btn__icon { width: 18px; height: 18px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid var(--success-line);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 140%);
  background: #0f172a;
  color: var(--white);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  font-size: .92rem;
  font-weight: 500;
  z-index: 90;
  max-width: min(92vw, 520px);
  transition: transform .28s cubic-bezier(.2, .8, .2, 1);
  pointer-events: none;
}
.toast.is-visible { transform: translate(-50%, 0); }
.toast[data-type="error"] { background: #7f1d1d; }

/* ---------------------------------------------------------- 7. content */
.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: .35em; }
.card p:last-child { margin-bottom: 0; }
.card__icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--brand-050);
  color: var(--brand-700);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}
.card__icon svg { width: 22px; height: 22px; }

.steps { counter-reset: step; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.step {
  position: relative;
  padding: 24px 22px 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--white);
  font-weight: 700;
  margin-bottom: 14px;
}
.step h3 { font-size: 1.06rem; margin-bottom: .3em; }
.step p { margin: 0; color: var(--muted); font-size: .95rem; }

.faq { display: grid; gap: 10px; max-width: 820px; margin-inline: auto; }
.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 4px 18px;
}
.faq details[open] { border-color: var(--brand-100); box-shadow: var(--shadow-sm); }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  padding: 14px 0;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: rotate(45deg);
  transition: transform .2s ease;
  flex: 0 0 auto;
  margin-top: -4px;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.faq details p { margin: 0 0 16px; color: var(--muted); font-size: .96rem; }
.faq details p:last-child { margin-bottom: 16px; }

.related { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.related a {
  display: block;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.related a:hover { border-color: var(--brand); text-decoration: none; }
.related span { display: block; font-weight: 400; font-size: .87rem; color: var(--muted); margin-top: 3px; }

.cta-band {
  background: linear-gradient(135deg, var(--brand-700), var(--brand-600));
  color: var(--white);
  border-radius: var(--radius);
  padding: 40px 28px;
  text-align: center;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: #e0e7ff; max-width: 600px; margin-inline: auto; }
.cta-band .btn--ghost { background: var(--white); color: var(--brand-700); border-color: transparent; }

/* ------------------------------------------------------ 8. prose/docs */
.page-header {
  padding: 44px 0 10px;
  background: radial-gradient(900px 260px at 50% -150px, var(--brand-050), transparent 70%);
}
.breadcrumbs { font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.breadcrumbs li { margin: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-2); }

.prose { max-width: 760px; }
.prose h2 { margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .5em; }
.prose strong { color: var(--ink); }
.prose code, .prose kbd {
  font-family: var(--font-mono);
  font-size: .88em;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 5px;
  color: var(--ink);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4em 0;
  font-size: .95rem;
}
.prose th, .prose td {
  border: 1px solid var(--line);
  padding: 10px 13px;
  text-align: left;
  vertical-align: top;
}
.prose thead th { background: var(--surface); color: var(--ink); }

.callout {
  border-left: 4px solid var(--brand);
  background: var(--brand-050);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.5em 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout--warn { border-color: var(--warn); background: var(--warn-bg); }

.toc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin: 0 0 2em;
}
.toc h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: .6em; }
.toc ul { margin: 0; padding-left: 1.1em; }
.toc li { margin-bottom: .3em; }

.infobox {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 16px 20px;
  margin: 1.5em 0;
  font-size: .93rem;
}
.infobox dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; }
.infobox dt { color: var(--muted); font-weight: 600; }
.infobox dd { margin: 0; }

/* -------------------------------------------------------- 9. utilities */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--brand);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 0 0 var(--radius-xs) var(--radius-xs);
  font-weight: 600;
  transition: top .15s ease;
}
.skip-link:focus {
  top: 0;
  text-decoration: none;
  color: var(--white);
}

.stack > * + * { margin-top: 1rem; }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-md { margin-top: 16px; }
.mt-xl { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; }
.mb-md { margin-bottom: 14px; }
.measure { max-width: 640px; }
.faq--inline { margin-inline: 0; }
.muted { color: var(--muted); }
.small { font-size: .87rem; }
.noscript-note {
  margin: 16px auto;
  max-width: 880px;
  padding: 14px 18px;
  border: 1px solid var(--warn);
  background: var(--warn-bg);
  color: var(--warn);
  border-radius: var(--radius-sm);
  font-weight: 600;
}

/* ---------------------------------------------------------- responsive */
@media (max-width: 860px) {
  body { font-size: 16.5px; }
  .section { padding: 48px 0; }
  .hero { padding-top: 34px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .header-cta { display: none; }
  .nav { margin-left: 0; }
  .site-header__inner { gap: 10px; }
}

@media (max-width: 620px) {
  .dropzone { padding: 32px 16px 30px; margin: 10px; }
  .dropzone__icon { width: 44px; height: 44px; }
  .file {
    grid-template-columns: 18px 34px minmax(0, 1fr);
    row-gap: 8px;
  }
  .file__badge { width: 34px; height: 34px; font-size: .6rem; }
  .file__controls { grid-column: 2 / -1; justify-content: flex-end; }
  .actions { flex-direction: column; align-items: stretch; }
  .actions .btn { width: 100%; }
  .options { flex-direction: column; align-items: stretch; }
  .field input[type="text"] { min-width: 0; width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .tool__card { border-radius: var(--radius-sm); }
}

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

@media print {
  .site-header, .site-footer, .tool, .cta-band, .toast { display: none !important; }
}
