/* Stmt2Sheet — Editorial Financial Ledger Design System (Disciplined Palette) */
:root {
  --paper: #f7f3ea;
  --sheet: #fffdf9;
  --wash: #efe8d8;
  --wash-deep: #e6dcc7;
  --ink: #13241c;
  --ink-soft: #293d33;
  --muted: #4b5b52;
  --green: #0b5e44;
  --green-deep: #074330;
  --green-tint: #e4f2ec;
  --brass: #7a560b;
  --brass-bright: #e4be63;
  --brass-soft: #f5ebd2;
  --debit: #9b2c2c;
  --debit-bg: #fceeee;
  --line: #d6cab4;
  --line-soft: #e6dcc7;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-workbench: 0 18px 44px -30px rgba(19, 36, 28, 0.34);
  --font-serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
::selection { background: var(--green-tint); color: var(--ink); }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.66 var(--font-sans);
  caret-color: var(--green);
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.022em;
  line-height: 1.14;
  text-wrap: balance;
}

a {
  color: var(--green-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--green-deep);
  transition: color 0.14s ease, text-decoration-color 0.14s ease;
}
a:hover { color: var(--green); text-decoration-color: var(--green); }

a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, .drop:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--sheet); color: var(--ink); padding: 8px 12px; border-radius: 6px; z-index: 100; }

/* Header */
.top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--ink);
  backdrop-filter: blur(8px);
  color: var(--paper);
  border-bottom: 2px solid var(--brass);
}
.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--paper) !important;
  text-decoration: none;
  font: 700 19px/1 var(--font-serif);
  letter-spacing: -0.015em;
  flex-shrink: 0;
}
.mark {
  width: 30px;
  height: 30px;
  border: 1.5px solid var(--brass);
  border-radius: 5px;
  display: grid;
  place-items: center;
  font: 700 11px/1 var(--font-mono);
  letter-spacing: 0.04em;
  color: var(--brass-bright);
}
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.nav::-webkit-scrollbar { display: none; }
.nav a {
  color: var(--paper);
  text-decoration: none;
  padding: 7px 11px;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.14s ease, color 0.14s ease;
}
.nav a:hover, .nav a.on { background: var(--ink-soft); color: var(--sheet); }
.nav a.nav-cta {
  background: var(--green);
  color: var(--sheet);
  font-weight: 600;
  margin-left: 4px;
}
.nav a.nav-cta:hover { background: var(--green); }

/* Main top clearance prevents sticky-header clipping & margin collapse */
main { padding-top: 22px; }

/* Breadcrumb */
.crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 14px;
  padding: 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
}
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--green-deep); text-decoration: underline; }
.crumb span[aria-hidden] { opacity: 0.5; }

/* Hero */
.hero { padding: 14px 0 20px; }
.crumb + .hero { padding-top: 2px; }
.hero h1 {
  font-size: clamp(30px, 3.8vw, 44px);
  line-height: 1.12;
  margin: 0 0 12px;
  max-width: 26ch;
}
.lede {
  font-size: 17.5px;
  line-height: 1.56;
  color: var(--muted);
  max-width: 68ch;
  margin: 0;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13.5px;
  color: var(--ink-soft);
}
.hero-meta li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hero-meta svg { width: 15px; height: 15px; color: var(--green); flex-shrink: 0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: var(--green);
  color: var(--sheet) !important;
  text-decoration: none;
  border: 1px solid var(--green);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font: 600 14px/1.2 var(--font-sans);
  cursor: pointer;
  min-height: 42px;
  transition: background 0.14s ease, border-color 0.14s ease, transform 0.14s ease;
}
.btn:hover { background: var(--green-deep); border-color: var(--green-deep); transform: translateY(-1px); color: var(--sheet) !important; }
.btn.ghost {
  background: var(--sheet);
  color: var(--ink) !important;
  border: 1px solid var(--line);
}
.btn.ghost:hover { background: var(--wash); border-color: var(--ink-soft); color: var(--ink) !important; }
.btn.subtle {
  background: var(--green-tint);
  color: var(--green-deep) !important;
  border: 1px solid var(--line);
}
.btn.subtle:hover { background: var(--green-tint); border-color: var(--green); }
.btn.small { padding: 7px 12px; font-size: 13px; min-height: 36px; }
.btn:disabled { opacity: 0.48; cursor: not-allowed; transform: none; }
.btn svg { width: 15px; height: 15px; flex-shrink: 0; }

/* Financial Workbench */
.tool {
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-workbench);
  margin: 8px 0 32px;
  overflow: hidden;
}
.tool-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 12px 20px;
  background: var(--wash);
  border-bottom: 1px solid var(--line-soft);
}
.tool-head-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-right: 4px;
}
.fmt-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.fmt-pill {
  appearance: none;
  background: var(--sheet);
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
  font: 600 12.5px/1.2 var(--font-sans);
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}
.fmt-pill:hover { border-color: var(--green); color: var(--green-deep); }
.fmt-pill[aria-pressed="true"] {
  background: var(--ink);
  color: var(--sheet);
  border-color: var(--ink);
}
.fmt-hint {
  font: 500 12px/1.3 var(--font-mono);
  color: var(--muted);
}

.tool-body { padding: 18px 20px 20px; }

.drop {
  border: 1.5px dashed var(--line);
  border-radius: 10px;
  background: var(--paper);
  padding: 24px 18px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}
.drop:hover, .drop.over {
  border-color: var(--green);
  background: var(--green-tint);
  box-shadow: inset 0 0 0 1px var(--green-tint);
}
.drop-icon {
  width: 38px;
  height: 38px;
  margin: 0 auto 10px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--sheet);
  border: 1px solid var(--line);
  color: var(--green);
}
.drop-icon svg { width: 20px; height: 20px; }
.drop b {
  display: block;
  font: 600 19px/1.25 var(--font-serif);
  color: var(--ink);
  margin-bottom: 4px;
}
.drop span { display: block; color: var(--muted); font-size: 13.5px; }

.tool-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}
.tool-trust {
  margin-left: auto;
  font-size: 13px;
  color: var(--muted);
}
.tool-trust a { color: var(--green-deep); font-weight: 600; }

.file-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px 4px 12px;
  font-size: 12.5px;
  color: var(--ink);
}
.chip small { color: var(--muted); font-variant-numeric: tabular-nums; }
.chip button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 0 2px;
  font-size: 15px;
  line-height: 1;
}
.chip button:hover { color: var(--debit); }

.progress {
  height: 3px;
  background: var(--wash);
  border-radius: 99px;
  overflow: hidden;
  margin-top: 12px;
}
.progress-bar {
  height: 100%;
  width: 38%;
  background: var(--green);
  border-radius: 99px;
  animation: s2s-sweep 1.1s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}
@keyframes s2s-sweep {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(300%); }
}

.status-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
}
.status {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brass);
  flex-shrink: 0;
}
.status.ok { color: var(--green-deep); font-weight: 500; }
.status.ok::before { background: var(--green); }
.status.err { color: var(--debit); font-weight: 500; }
.status.err::before { background: var(--debit); }

.status-help { font-size: 13px; color: var(--muted); }

/* Preview Workspace */
.preview-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 18px 0 10px;
}
.sample-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--brass-soft);
  color: var(--brass);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 12.5px;
  font-weight: 600;
}
.tie-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 12.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.tie-badge.ok { background: var(--green-tint); color: var(--green-deep); border: 1px solid var(--line); }
.tie-badge.warn { background: var(--brass-soft); color: var(--brass); border: 1px solid var(--line); }

.summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--wash);
  overflow: hidden;
  margin: 10px 0 12px;
}
.summary div {
  padding: 10px 14px;
  border-right: 1px solid var(--line-soft);
  font-size: 12px;
  color: var(--muted);
}
.summary div:last-child { border-right: 0; }
.summary b {
  display: block;
  margin-top: 2px;
  color: var(--ink);
  font: 600 15.5px/1.3 var(--font-serif);
  font-variant-numeric: tabular-nums;
}
.summary b.is-debit { color: var(--debit); }
.summary b.is-credit { color: var(--green-deep); }

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
}
.filter-input {
  flex: 1 1 210px;
  min-height: 36px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--sheet);
  color: var(--ink);
  font: 13.5px var(--font-sans);
}
.filter-input::placeholder { color: var(--muted); }
.filter-pills { display: inline-flex; gap: 4px; }
.filter-pill {
  appearance: none;
  background: var(--sheet);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  border-radius: 6px;
  padding: 6px 10px;
  font: 600 12.5px var(--font-sans);
  cursor: pointer;
}
.filter-pill[aria-pressed="true"] { background: var(--ink); color: var(--sheet); border-color: var(--ink); }
.filter-count { font-size: 12.5px; color: var(--muted); margin-left: auto; font-variant-numeric: tabular-nums; }

/* Tables */
.tablewrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  max-height: 400px;
  background: var(--sheet);
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.tablewrap::-webkit-scrollbar { width: 8px; height: 8px; }
.tablewrap::-webkit-scrollbar-thumb { background: var(--line); border-radius: 99px; }

table {
  border-collapse: collapse;
  width: 100%;
  background: var(--sheet);
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
}
caption {
  caption-side: top;
  text-align: left;
  padding: 10px 12px;
  background: var(--paper);
  border-bottom: 1px solid var(--line-soft);
  font-size: 13px;
  color: var(--muted);
}
th, td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  white-space: nowrap;
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--paper); }
th {
  background: var(--wash);
  position: sticky;
  top: 0;
  z-index: 2;
  font: 700 11.5px/1.2 var(--font-mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
td.desc { white-space: normal; min-width: 220px; color: var(--ink); }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.num-debit { color: var(--debit); }
.num-credit { color: var(--green-deep); }

.exports {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}
.exports .btn-copy { margin-left: auto; }

/* Content & Editorial Blocks */
.strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 18px 0 32px;
}
.strip-item {
  padding: 16px 18px 16px 0;
  margin-right: 18px;
  border-right: 1px solid var(--line-soft);
}
.strip-item:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.strip-item h2, .strip-item h3 { font-size: 17px; margin: 0 0 6px; }
.strip-item p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.52; }

.prose { max-width: 78ch; margin: 28px 0; }
.prose.wide { max-width: 100%; }
.prose h2 { font-size: clamp(24px, 2.8vw, 30px); margin: 40px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 20px; margin: 24px 0 8px; }
.prose p { margin: 0 0 14px; color: var(--ink-soft); }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; color: var(--ink-soft); }
.prose li { margin: 7px 0; }
.prose code {
  font: 13.5px/1.4 var(--font-mono);
  background: var(--wash);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--ink);
}

.callout {
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin: 18px 0;
  font-size: 14.5px;
  color: var(--ink-soft);
}
.callout strong { color: var(--ink); }
.callout.boundary { background: var(--debit-bg); border-color: var(--debit); color: var(--debit); }
.callout.boundary strong { color: var(--debit); }

.compare {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin: 16px 0 22px;
  background: var(--sheet);
}
.compare table { font-size: 14px; }
.compare th, .compare td { white-space: normal; vertical-align: top; }
.compare th { position: static; }
.compare td:first-child { font-weight: 600; color: var(--ink); min-width: 145px; }
.compare tr.is-us td { background: var(--green-tint); }

/* Copyable Formula Blocks */
.formula-list { display: grid; gap: 10px; margin: 16px 0 22px; }
.formula-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}
.formula-item div { min-width: 0; flex: 1 1 320px; }
.formula-item strong { display: block; font-size: 14px; color: var(--ink); margin-bottom: 4px; }
.formula-item code {
  display: block;
  overflow-x: auto;
  font: 13px/1.45 var(--font-mono);
  color: var(--green-deep);
  background: var(--wash);
  padding: 6px 9px;
  border-radius: 5px;
}

/* Format Hub & Resource Directory */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 28px;
}
.hub-link {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  text-decoration: none;
  transition: border-color 0.14s ease, transform 0.14s ease;
}
.hub-link:hover { border-color: var(--green); transform: translateY(-1px); }
.hub-link strong { font: 600 16.5px/1.25 var(--font-serif); color: var(--ink); }
.hub-link span { font-size: 13.5px; color: var(--muted); line-height: 1.48; }
.hub-link em { font-style: normal; font-size: 12.5px; font-weight: 600; color: var(--green-deep); margin-top: 4px; }

/* Pricing Grid — balanced 4 columns on desktop */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin: 22px 0 32px;
}
.plan {
  display: flex;
  flex-direction: column;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
  position: relative;
}
.plan.fav {
  border: 2px solid var(--green);
  background: var(--sheet);
}
.plan h2, .plan h3 { margin: 0; font-size: 20px; }
.price {
  font: 600 40px/1.1 var(--font-serif);
  font-variant-numeric: tabular-nums;
  margin: 12px 0 4px;
  color: var(--ink);
}
.price small { font: 400 14px var(--font-sans); color: var(--muted); }
.plan-sub { margin: 0 0 14px; font-size: 14px; color: var(--muted); }
.plan ul {
  margin: 0 0 18px;
  padding-left: 18px;
  font-size: 14px;
  color: var(--ink-soft);
  flex-grow: 1;
}
.plan li { margin: 6px 0; }
.plan .btn { width: 100%; margin-top: auto; }
.badge {
  position: absolute;
  top: -11px;
  right: 14px;
  background: var(--green);
  color: var(--sheet);
  font: 700 11px/1 var(--font-mono);
  padding: 4px 9px;
  border-radius: 999px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Related Links Strip */
.related {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  margin: 34px 0 26px;
}
.related h2 { font-size: 20px; margin: 0 0 12px; }
.links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 0;
}
.links a {
  display: inline-flex;
  align-items: center;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}
.links a:hover { border-color: var(--green); color: var(--green-deep); background: var(--green-tint); }

/* FAQ */
.faq { margin: 36px 0; max-width: 78ch; }
.faq h2 { font-size: clamp(24px, 2.8vw, 28px); margin: 0 0 14px; }
.faq details {
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0;
  margin: 9px 0;
  transition: border-color 0.14s ease;
}
.faq details[open] { border-color: var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 18px;
  font-weight: 600;
  font-size: 15.5px;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font: 500 19px/1 var(--font-mono);
  color: var(--green);
  flex-shrink: 0;
}
.faq details[open] summary::after { content: "−"; }
.faq details p {
  margin: 0;
  padding: 0 18px 15px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.62;
}

.fine { color: var(--muted); font-size: 12.5px; line-height: 1.5; }

/* Footer */
.foot {
  background: var(--ink);
  color: var(--paper);
  margin-top: 64px;
  padding: 44px 0 28px;
  font-size: 14px;
  border-top: 2px solid var(--brass);
}
.foot .wrap.foot-cols {
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr 1fr 1fr;
  gap: 24px;
}
.foot b { color: var(--sheet); font: 700 18px var(--font-serif); }
.foot h3 {
  color: var(--wash);
  font: 600 13px/1.2 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 10px;
}
.foot a {
  color: var(--paper);
  text-decoration: none;
  display: block;
  padding: 3.5px 0;
  font-size: 13.5px;
}
.foot a:hover { color: var(--sheet); text-decoration: underline; }
.foot p { color: var(--line); margin: 8px 0 0; max-width: 34ch; font-size: 13.5px; line-height: 1.55; }
.foot-bottom {
  border-top: 1px solid var(--ink-soft);
  margin-top: 28px;
  padding-top: 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
}
.foot-bottom p { margin: 0; max-width: none; font-size: 12.5px; color: var(--line); }

/* Responsive */
@media (max-width: 980px) {
  .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strip-item { border-right: 0; margin-right: 0; padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line-soft); }
  .hub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot .wrap.foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .top .wrap { flex-direction: column; align-items: stretch; gap: 6px; padding-top: 8px; padding-bottom: 8px; }
  .nav { width: 100%; justify-content: flex-start; padding-bottom: 2px; padding-right: 18px; -webkit-mask-image: linear-gradient(to right, var(--ink) 88%, transparent 100%); mask-image: linear-gradient(to right, var(--ink) 88%, transparent 100%); }
  .nav a { padding: 5px 9px; font-size: 13px; }
  .hero { padding: 16px 0 10px; }
  .hero h1 { font-size: clamp(27px, 7.8vw, 36px); max-width: none; margin-bottom: 6px; }
  .lede { font-size: 15px; line-height: 1.48; }
  .hero-meta { gap: 4px 12px; margin-top: 10px; font-size: 12.5px; }
  .tool-head { padding: 9px 12px; gap: 6px 10px; }
  .fmt-hint { display: none; }
  .tool-body { padding: 12px; }
  .drop { padding: 16px 12px; }
  .drop-icon { width: 32px; height: 32px; margin-bottom: 7px; }
  .drop b { font-size: 17px; }
  .tool-actions { margin-top: 10px; gap: 8px; }
  .tool-actions .btn { flex: 1 1 auto; padding: 9px 12px; font-size: 13.5px; min-height: 40px; }
  .tool-trust { margin-left: 0; width: 100%; font-size: 12.5px; }
  .summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .summary div { border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .exports .btn-copy { margin-left: 0; width: 100%; }
  .strip, .hub-grid, .pricing-grid { grid-template-columns: 1fr; }
  .foot .wrap.foot-cols { grid-template-columns: 1fr; gap: 20px; }
}

[hidden] { display: none !important; }

/* Bank directory index (1-line per bank on /bank-statement-to-excel) */
.bank-index {
  list-style: none;
  padding: 0;
  margin: 14px 0 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 20px;
}
.bank-index li {
  margin: 0;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14.5px;
  color: var(--ink-soft);
}
.bank-index a { font-weight: 600; color: var(--green-deep); }
@media (max-width: 720px) {
  .bank-index { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  main { padding-top: 14px; }
  .crumb { margin-bottom: 10px; }
  .hero { padding: 8px 0 12px; }
  .crumb + .hero { padding-top: 0; }
}
