/* ============================================================
   StatementHarbor — design system v3
   Premium fintech-grade: Inter + optical refinements, soft
   hero glow, frosted header, layered shadows, tactile buttons.
   ============================================================ */

:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --ink: #0b1220;
  --ink-soft: #475569;
  --muted: #8a94a6;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --accent-light: #3b82f6;
  --accent-wash: #eff6ff;
  --accent-border: #dbeafe;
  --green: #16a34a;
  --green-deep: #166534;
  --green-wash: #f0fdf4;
  --green-border: #bbf7d0;
  --amber-wash: #fffbeb;
  --amber-border: #fde68a;
  --amber-ink: #92400e;
  --border: #e5e9f0;
  --border-hover: #cbd5e1;
  --radius-sm: 8px;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow-xs: 0 1px 2px rgba(11, 18, 32, .05);
  --shadow-sm: 0 1px 2px rgba(11, 18, 32, .04), 0 2px 8px rgba(11, 18, 32, .04);
  --shadow-md: 0 1px 2px rgba(11, 18, 32, .05), 0 8px 24px -6px rgba(11, 18, 32, .1);
  --maxw: 1120px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background:
    radial-gradient(1100px 420px at 50% -120px, rgba(37, 99, 235, .07), transparent 62%),
    var(--bg);
}

/* faint blueprint grid over the hero area */
.hero {
  position: relative;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -60px 0 auto 0;
  height: 420px;
  background-image:
    linear-gradient(rgba(37, 99, 235, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, .05) 1px, transparent 1px);
  background-size: 36px 36px;
  -webkit-mask-image: radial-gradient(600px 300px at 50% 0, #000 30%, transparent 75%);
          mask-image: radial-gradient(600px 300px at 50% 0, #000 30%, transparent 75%);
  pointer-events: none;
}

/* ---------- layout ---------- */

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 780px; }
main { padding-bottom: 48px; position: relative; }
section { margin: 44px 0; }
[id] { scroll-margin-top: 80px; }

/* ---------- header ---------- */

.site-header {
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
          backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 56px;
}
.nav-bar { display: flex; align-items: center; gap: 20px; min-height: 56px; }

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.015em;
}

.brand .logo {
  width: 27px; height: 27px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent-light), var(--accent-dark));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11.5px;
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(37, 99, 235, .35), inset 0 1px 0 rgba(255, 255, 255, .25);
}

.brand .logo-img {
  width: 27px; height: 27px;
  border-radius: 8px;
  display: block;
  box-shadow: 0 2px 6px rgba(37, 99, 235, .35);
}

.site-footer .brand .logo-img { box-shadow: 0 2px 6px rgba(0, 0, 0, .4); }

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  padding: 7px 12px;
  border-radius: 8px;
  transition: color .12s ease, background .12s ease;
}

.nav a:hover { background: #f1f5f9; color: var(--ink); }
.nav a[aria-current="page"] { color: var(--accent-dark); font-weight: 600; background: var(--accent-wash); }

/* hamburger */

.menu-btn {
  display: none;
  margin-left: auto;
  width: 38px; height: 38px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface);
  cursor: pointer;
  padding: 9px 8px;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-xs);
}

.menu-btn span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .18s ease, opacity .18s ease;
}

.menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile nav — slides down from under the header */

.mobile-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  padding: 8px 14px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 24px 40px -16px rgba(11, 18, 32, .22);
  opacity: 0;
  transform: translateY(-12px);
  visibility: hidden;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
  z-index: 49;
}

.mobile-nav.open {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
}

.mobile-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 11px 12px;
  border-radius: 9px;
}

.mobile-nav a:hover { background: #f1f5f9; color: var(--ink); }
.mobile-nav a[aria-current="page"] { color: var(--accent-dark); background: var(--accent-wash); font-weight: 600; }

@media (max-width: 820px) {
  .nav { display: none; }
  .menu-btn { display: flex; }
}

/* ---------- typography ---------- */

h1, h2, h3, h4 { font-weight: 700; letter-spacing: -.021em; color: var(--ink); }

h1 { font-size: clamp(27px, 4.6vw, 38px); line-height: 1.14; margin: 0 0 12px; letter-spacing: -.028em; }
h2 { font-size: clamp(19px, 3vw, 24px); line-height: 1.28; margin: 0 0 12px; }
h3 { font-size: 16px; margin: 22px 0 8px; }

p { margin: 0 0 12px; color: var(--ink-soft); }
strong { color: var(--ink); font-weight: 600; }

.lede { font-size: 16.5px; color: var(--ink-soft); max-width: 640px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 10px;
}
.eyebrow::before {
  content: "";
  width: 16px; height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent-light), var(--accent-dark));
}

a { color: var(--accent); }
a:hover { color: var(--accent-dark); }

ul.plain { list-style: none; padding: 0; margin: 0 0 12px; }
ul.plain li { padding: 5px 0 5px 22px; position: relative; color: var(--ink-soft); }
ul.plain li::before {
  content: "";
  position: absolute; left: 4px; top: 13px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  opacity: .5;
}

/* ---------- hero ---------- */

.hero { padding: 40px 0 4px; }

.hero .kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--accent-dark);
  background: rgba(255, 255, 255, .9);
  border: 1px solid var(--accent-border);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-xs);
}

.hero .kicker::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, .18);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 26px; }
}

/* trust chips under the lede */

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.trust-row .chip-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 550;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 12px;
  box-shadow: var(--shadow-xs);
}

.trust-row .chip-item svg { flex: 0 0 auto; }

/* ---------- privacy badge ---------- */

.privacy-badge {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: linear-gradient(180deg, var(--green-wash), #f6fef8);
  border: 1px solid var(--green-border);
  border-radius: var(--radius);
  padding: 13px 16px;
  margin: 16px 0 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7);
}

.privacy-badge .dot {
  flex: 0 0 auto;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #22c55e, #15803d);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 2px 6px rgba(22, 163, 74, .35), inset 0 1px 0 rgba(255, 255, 255, .3);
}

.privacy-badge p { margin: 0; font-size: 13.5px; color: var(--green-deep); line-height: 1.55; }
.privacy-badge strong { color: #14532d; }

/* ---------- cards ---------- */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.card:hover { border-color: var(--border-hover); box-shadow: var(--shadow-md); }

.card-pad { padding: 22px; }

.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

@media (max-width: 860px) { .card-grid-3 { grid-template-columns: 1fr; } }

.card h3 { margin-top: 12px; font-size: 15.5px; }

.card p { font-size: 14px; margin-bottom: 0; }

.card .num {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent-dark);
  background: linear-gradient(180deg, #ffffff, var(--accent-wash));
  border: 1px solid var(--accent-border);
  width: 30px; height: 30px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-xs);
}

.icon-tile {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, var(--accent-wash));
  border: 1px solid var(--accent-border);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-xs);
  margin-bottom: 2px;
}

/* ---------- tool ---------- */

.tool {
  margin-top: 4px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.tool-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #ffffff, #fbfcfe);
}

.tool-head h2 { font-size: 15px; margin: 0; }

.tool-head .chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--green-deep);
  background: var(--green-wash);
  border: 1px solid var(--green-border);
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.tool-head .chip::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--green);
}

.tool-body { padding: 20px; }

.dropzone {
  border: 1.5px dashed #cbd5e1;
  border-radius: var(--radius);
  background:
    radial-gradient(400px 120px at 50% 0, rgba(37, 99, 235, .04), transparent 70%),
    #fafbfc;
  padding: 30px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}

.dropzone:hover, .dropzone.dragover {
  border-color: var(--accent);
  background: var(--accent-wash);
  transform: translateY(-1px);
}

.dropzone .dz-icon {
  width: 52px; height: 52px;
  margin: 0 auto 6px;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff, var(--accent-wash));
  border: 1px solid var(--accent-border);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: transform .16s ease;
}

.dropzone:hover .dz-icon { transform: translateY(-2px); }

.dropzone .big { font-size: 15.5px; font-weight: 650; color: var(--ink); margin: 8px 0 3px; }
.dropzone .hint { font-size: 13px; color: var(--muted); }
.dropzone input[type="file"] { display: none; }

.status {
  margin-top: 12px;
  font-size: 13.5px;
  color: var(--ink-soft);
  min-height: 20px;
}

.status .err { color: #dc2626; }
.status .ok { color: var(--green); font-weight: 600; }

.bar {
  height: 4px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 8px;
  display: none;
}
.bar.active { display: block; }
.bar i {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--accent-light), var(--accent-dark));
  border-radius: 999px;
  transition: width .3s ease;
}

/* results */

.results { margin-top: 18px; display: none; }
.results.show { display: block; }

.results-meta {
  display: flex; flex-wrap: wrap;
  align-items: center; gap: 8px;
  margin-bottom: 10px;
}

.results-meta .count { font-weight: 650; color: var(--ink); font-size: 14px; margin-right: auto; }

.btn {
  display: inline-flex; align-items: center; gap: 6px;
  font: inherit; font-size: 13.5px; font-weight: 600;
  border-radius: 9px;
  border: 1px solid transparent;
  padding: 9px 15px;
  cursor: pointer;
  text-decoration: none;
  transition: transform .14s ease, box-shadow .14s ease, background .14s ease, border-color .14s ease;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, var(--accent-light), var(--accent));
  border-color: var(--accent-dark);
  box-shadow: 0 1px 2px rgba(37, 99, 235, .4), inset 0 1px 0 rgba(255, 255, 255, .2);
}

.btn-primary:hover {
  background: linear-gradient(180deg, var(--accent), var(--accent-dark));
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, .35);
}

.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: var(--surface);
  color: var(--ink-soft);
  border-color: var(--border);
  box-shadow: var(--shadow-xs);
}
.btn-ghost:hover { border-color: var(--border-hover); color: var(--ink); transform: translateY(-1px); }

.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none !important; }

.table-scroll {
  max-height: 300px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.table-scroll::-webkit-scrollbar { width: 10px; height: 10px; }
.table-scroll::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 8px; border: 2px solid #fff; }

table.tx {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background: var(--surface);
}

table.tx th {
  position: sticky; top: 0;
  background: #f8fafc;
  text-align: left;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
}

table.tx td {
  padding: 8px 12px;
  border-bottom: 1px solid #f1f5f9;
  color: var(--ink-soft);
  white-space: nowrap;
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
}

table.tx tbody tr:hover td { background: #f8fafc; }
table.tx td.num { text-align: right; font-variant-numeric: tabular-nums; }
table.tx td.neg { color: #dc2626; }
table.tx td.pos { color: var(--green); }

/* ---------- faq ---------- */

.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  transition: border-color .14s ease, box-shadow .14s ease;
}

.faq details:hover { border-color: var(--border-hover); box-shadow: var(--shadow-xs); }
.faq details[open] { border-color: var(--accent-border); box-shadow: var(--shadow-sm); }

.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ink);
  padding: 13px 16px;
  list-style: none;
  position: relative;
  padding-right: 42px;
  border-radius: var(--radius);
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  position: absolute;
  right: 16px; top: 50%;
  transform: translateY(-50%);
  font-size: 17px;
  color: var(--accent);
  font-weight: 500;
  transition: transform .16s ease;
}

.faq details[open] summary::after { content: "–"; }
.faq details[open] summary { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.faq .answer { padding: 2px 16px 14px; color: var(--ink-soft); font-size: 14.5px; }
.faq .answer p:last-child { margin-bottom: 0; }

/* ---------- content tables ---------- */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

table.content {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

table.content th {
  text-align: left;
  background: #f8fafc;
  padding: 10px 13px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

table.content td {
  padding: 10px 13px;
  border-bottom: 1px solid #f1f5f9;
  color: var(--ink-soft);
  vertical-align: top;
}

table.content tbody tr:hover td { background: #fafbfc; }
table.content tr:last-child td { border-bottom: none; }

/* ---------- byline ---------- */

.byline {
  display: flex;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 16px;
  margin: 30px 0 0;
  background: linear-gradient(180deg, #ffffff, #fbfcfe);
  box-shadow: var(--shadow-xs);
}

.byline .avatar {
  flex: 0 0 auto;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-light), var(--accent-dark));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 2px 6px rgba(37, 99, 235, .3), inset 0 1px 0 rgba(255, 255, 255, .25);
}

.byline p { margin: 0; font-size: 13px; }
.byline .who { font-weight: 600; color: var(--ink); }
.byline .meta { color: var(--muted); }

.updated { color: var(--muted); font-size: 13px; margin-bottom: 20px; }

/* ---------- callouts ---------- */

.note {
  background: var(--amber-wash);
  border: 1px solid var(--amber-border);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin: 16px 0;
  font-size: 13.5px;
  color: var(--amber-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6);
}

.note strong { color: #78350f; }

/* ---------- breadcrumbs ---------- */

.crumbs {
  font-size: 13px;
  color: var(--muted);
  margin: 22px 0 4px;
}

.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); text-decoration: underline; }
.crumbs span[aria-current] { color: var(--ink-soft); }

/* ---------- bank directory ---------- */

.bank-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
  gap: 10px;
}

.bank-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 15px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  box-shadow: var(--shadow-xs);
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.bank-list a:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.bank-list .fmt { font-size: 11.5px; color: var(--muted); font-weight: 500; white-space: nowrap; }

/* ---------- footer ---------- */

.site-footer {
  background: #0b1220;
  color: #94a3b8;
  margin-top: 36px;
  padding: 40px 0 26px;
  font-size: 13.5px;
  position: relative;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, .5), transparent);
}

.site-footer .cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 30px;
}

@media (max-width: 820px) { .site-footer .cols { grid-template-columns: 1fr 1fr; gap: 24px; } }

.site-footer h4 {
  color: #fff;
  font-size: 11px;
  letter-spacing: .09em;
  text-transform: uppercase;
  margin: 0 0 11px;
  font-weight: 600;
}

.site-footer a { color: #94a3b8; text-decoration: none; transition: color .12s ease; }
.site-footer a:hover { color: #fff; text-decoration: underline; }

.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }

.site-footer .legal {
  border-top: 1px solid #1e293b;
  margin-top: 28px;
  padding-top: 16px;
  font-size: 12.5px;
  color: #64748b;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  justify-content: space-between;
}

.site-footer .brand { color: #fff; }

/* ---------- misc ---------- */

.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 15px 18px;
  margin: 18px 0;
  font-size: 14px;
  box-shadow: var(--shadow-xs);
}

.toc strong { display: block; margin-bottom: 6px; }
.toc ol { margin: 0; padding-left: 20px; color: var(--ink-soft); }

pre {
  background: #f8fafc;
  color: #1e293b;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 16px 18px;
  font-size: 13px;
  overflow-x: auto;
  box-shadow: var(--shadow-xs);
}

code { font-family: var(--mono); font-size: .92em; background: #eef2f7; border-radius: 4px; padding: 1px 5px; color: #0b1220; }
pre code { background: none; padding: 0; color: inherit; }

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

::selection { background: #dbeafe; }

@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .wrap { padding: 0 16px; }
  .tool-body { padding: 15px; }
  .tool-head { padding: 11px 14px; }
  .card-pad { padding: 17px; }
  .hero { padding: 28px 0 2px; }
  .dropzone { padding: 24px 14px; }
  .results-meta { gap: 6px; }
  .results-meta .btn { flex: 1 1 auto; justify-content: center; }
  section { margin: 36px 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

@media print {
  .site-header, .site-footer, .tool, .nav, .mobile-nav { display: none !important; }
  body { background: #fff; }
}
