/*
 * Design system.
 *
 * Restrained on purpose: one accent colour, a strict type scale, hairline
 * borders, and motion only where it explains something. The page is asking
 * people to trust it with a bank statement, so it has to read as considered
 * rather than decorated.
 *
 * No webfonts — the system stack is San Francisco on Apple platforms and
 * Segoe on Windows, both excellent, and it costs zero network round-trips.
 */

/*
 * Self-hosted so the page still makes zero external requests — the privacy
 * promise on this site is literal, and a font CDN would quietly break it.
 * Inter is the closest freely-licensable analogue to San Francisco.
 */
@font-face {
  font-family: 'Inter';
  src: url('./vendor/inter.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Neutrals */
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --surface: #ffffff;
  --surface-2: #fafafc;
  --text: #1d1d1f;
  --text-2: #5c6270;
  --text-3: #838996;
  --hairline: rgba(0, 0, 0, 0.11);
  --hairline-strong: rgba(0, 0, 0, 0.18);

  /* Accent */
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --accent-tint: rgba(0, 113, 227, 0.08);
  --on-accent: #ffffff;

  /* Semantic */
  --pos: #1a7f45;
  --pos-tint: rgba(26, 127, 69, 0.09);
  --neg: #c0392b;
  --warn: #9a6412;
  --warn-tint: rgba(180, 120, 20, 0.11);
  --warn-line: rgba(180, 120, 20, 0.32);

  /* Shape */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-pill: 980px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.10), 0 2px 8px rgba(0, 0, 0, 0.05);

  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --maxw: 1000px;
  --gutter: 22px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-alt: #0c0c0e;
    --surface: #1c1c1e;
    --surface-2: #242426;
    --text: #f5f5f7;
    --text-2: #a1a1a6;
    --text-3: #838996;
    --hairline: rgba(255, 255, 255, 0.13);
    --hairline-strong: rgba(255, 255, 255, 0.22);

    --accent: #2997ff;
    --accent-hover: #47a6ff;
    --accent-tint: rgba(41, 151, 255, 0.14);
    --on-accent: #ffffff;

    --pos: #41d17c;
    --pos-tint: rgba(48, 209, 88, 0.13);
    --neg: #ff6b5e;
    --warn: #e8b464;
    --warn-tint: rgba(232, 180, 100, 0.12);
    --warn-line: rgba(232, 180, 100, 0.3);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.55);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.65);
  }
}

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

/* Several components below set display, which would otherwise beat the UA
   rule for [hidden] and leave empty shells on the page. */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.026em;
}
h1 { font-size: clamp(2.1rem, 1.35rem + 3.1vw, 3.4rem); }
h2 { font-size: clamp(1.55rem, 1.2rem + 1.5vw, 2.15rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.02em; }

p { margin: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.lede {
  font-size: clamp(1.06rem, 1rem + 0.4vw, 1.3rem);
  line-height: 1.4;
  color: var(--text-2);
  letter-spacing: -0.02em;
}
.lede strong { color: var(--text); font-weight: 600; }
.muted { color: var(--text-2); }
.small { font-size: 0.82rem; line-height: 1.45; letter-spacing: -0.01em; }
.center { text-align: center; }

.icon { display: block; flex: none; }
.icon-inline { display: inline-flex; align-items: center; gap: 0.4em; }

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

main { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter) 5rem; }
section { scroll-margin-top: 80px; }

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

header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease);
}
header.site.scrolled { border-bottom-color: var(--hairline); }

header.site .inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.85rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.brand:hover { text-decoration: none; opacity: 0.75; }
.brand .icon { color: var(--accent); }

header.site nav { display: flex; gap: 1.6rem; font-size: 0.82rem; }
header.site nav a { color: var(--text-2); letter-spacing: -0.01em; }
header.site nav a:hover { color: var(--text); text-decoration: none; }

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

.hero { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(1.75rem, 3vw, 2.5rem); text-align: center; }
.hero h1 { max-width: 15ch; margin: 0 auto 1.1rem; }
.hero .lede { max-width: 40rem; margin: 0 auto; }

.trust {
  list-style: none;
  padding: 0;
  margin: 2rem auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 2rem;
  font-size: 0.85rem;
  color: var(--text-2);
  letter-spacing: -0.01em;
}
.trust li { display: flex; align-items: center; gap: 0.5rem; }
.trust .icon { color: var(--accent); width: 17px; height: 17px; }

/* ---------- dropzone ---------- */

.tool { margin-bottom: clamp(3rem, 6vw, 4.5rem); }

.drop {
  position: relative;
  display: block;
  width: 100%;
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  background: var(--bg-alt);
  padding: clamp(2.5rem, 6vw, 3.75rem) 1.5rem;
  text-align: center;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease),
              box-shadow 0.25s var(--ease), transform 0.25s var(--ease-out);
}
.drop::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1.5px dashed var(--hairline-strong);
  border-radius: calc(var(--r-lg) - 6px);
  pointer-events: none;
  opacity: 0.55;
  transition: opacity 0.25s var(--ease), border-color 0.25s var(--ease);
}
.drop:hover, .drop:focus-visible {
  border-color: var(--accent);
  background: var(--accent-tint);
  box-shadow: var(--shadow-md);
  outline: none;
}
.drop:hover::after, .drop:focus-visible::after { border-color: var(--accent); opacity: 0.4; }
.drop.over {
  border-color: var(--accent);
  background: var(--accent-tint);
  transform: scale(1.008);
  box-shadow: var(--shadow-lg);
}
.drop.over::after { opacity: 0; }

.drop-icon {
  width: 56px; height: 56px;
  margin: 0 auto 1.15rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--surface);
  color: var(--accent);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease-out);
}
.drop:hover .drop-icon { transform: translateY(-2px); }
.drop-icon .icon { width: 26px; height: 26px; }

.drop-title { font-size: 1.16rem; font-weight: 600; letter-spacing: -0.022em; margin-bottom: 0.3rem; }
.drop-sub { font-size: 0.88rem; color: var(--text-2); }
.drop-sub u { color: var(--accent); text-decoration: none; border-bottom: 1px solid currentColor; }

/* ---------- status ---------- */

.status {
  display: flex; align-items: center; gap: 0.7rem;
  margin-top: 1rem; padding: 0.9rem 1.1rem;
  border: 1px solid var(--hairline); border-radius: var(--r-md);
  background: var(--surface); box-shadow: var(--shadow-sm);
  font-size: 0.9rem; color: var(--text-2);
  animation: fade-up 0.35s var(--ease-out) both;
}
.status .icon { color: var(--accent); }
.status .spin { animation: spin 0.9s linear infinite; }
.status.error { border-color: color-mix(in srgb, var(--neg) 42%, transparent); color: var(--text); }
.status.error .icon { color: var(--neg); }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* ---------- results ---------- */

.results { margin-top: 1.5rem; animation: fade-up 0.45s var(--ease-out) both; }

.result-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; margin-bottom: 1.1rem;
}
.result-head h2 { font-size: 1.5rem; margin-bottom: 0.2rem; }
.result-head .muted { font-size: 0.87rem; }

.banner {
  display: flex; align-items: flex-start; gap: 0.7rem;
  padding: 0.9rem 1.1rem; border-radius: var(--r-md);
  font-size: 0.89rem; line-height: 1.45; margin-bottom: 1.1rem;
  border: 1px solid color-mix(in srgb, var(--pos) 32%, transparent);
  background: var(--pos-tint);
}
.banner .icon { color: var(--pos); margin-top: 1px; }
.banner strong { font-weight: 600; }
.banner.warn { border-color: var(--warn-line); background: var(--warn-tint); }
.banner.warn .icon { color: var(--warn); }
.banner.neutral { border-color: var(--hairline); background: var(--bg-alt); }
.banner.neutral .icon { color: var(--text-3); }

.table-wrap {
  position: relative;
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: auto;
  max-height: 470px;
  -webkit-overflow-scrolling: touch;
}
table { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 0.87rem; }
th, td { padding: 0.68rem 0.95rem; text-align: left; white-space: nowrap; }
th {
  position: sticky; top: 0; z-index: 1;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  font-size: 0.72rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.045em; color: var(--text-3);
  border-bottom: 1px solid var(--hairline);
}
td { border-bottom: 1px solid var(--hairline); }
tbody tr:last-child td { border-bottom: none; }
tbody tr { transition: background 0.15s var(--ease); }
tbody tr:hover { background: var(--bg-alt); }
tr.flagged { background: var(--warn-tint); }
td.desc { white-space: normal; min-width: 230px; color: var(--text); }
td.date { color: var(--text-2); font-variant-numeric: tabular-nums; }
.num { text-align: right; font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
td.out { color: var(--neg); }
td.in { color: var(--pos); }
td.bal { color: var(--text-2); }

.locked {
  position: sticky; bottom: 0; left: 0; right: 0;
  padding: 5rem 1rem 1.6rem;
  text-align: center;
  /* Reaches opaque before the text starts, so the cut-off row reads as a
     deliberate fade rather than the heading colliding with it. */
  background: linear-gradient(
    to bottom,
    transparent 0%,
    color-mix(in srgb, var(--surface) 72%, transparent) 26%,
    var(--surface) 52%
  );
}
.locked-count { font-size: 1.05rem; font-weight: 600; letter-spacing: -0.02em; }
.locked p + p { margin-top: 0.15rem; }
.locked .btn { margin-top: 0.85rem; }

/* Rows withheld from the export. Warning-toned rather than error-toned: the
   statement is fine, these particular rows just could not be read safely. */
.review {
  margin-top: 1.1rem;
  padding: 0.95rem 1.15rem;
  border: 1px solid var(--warn-line);
  background: var(--warn-tint);
  border-radius: var(--r-md);
  font-size: 0.89rem;
}
.review h3 { font-size: 0.95rem; margin-bottom: 0.35rem; }
.review > p { margin-bottom: 0.7rem; }
.review ul { list-style: none; padding: 0; margin: 0; }
.review li {
  padding: 0.38rem 0;
  border-top: 1px solid var(--hairline);
  overflow-wrap: anywhere;
}
.review li .why { color: var(--warn); font-weight: 500; }
.review #review-more { margin: 0.5rem 0 0; }

.export {
  display: flex; align-items: center; gap: 0.65rem; flex-wrap: wrap;
  margin-top: 1.15rem;
}
.export label { font-size: 0.85rem; color: var(--text-2); }
select {
  appearance: none;
  padding: 0.62rem 2.1rem 0.62rem 0.85rem;
  border: 1px solid var(--hairline); border-radius: var(--r-sm);
  background: var(--surface); color: var(--text);
  font: inherit; font-size: 0.87rem; letter-spacing: -0.01em;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2386868b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.75rem center;
  transition: border-color 0.2s var(--ease);
}
select:hover { border-color: var(--hairline-strong); }
select:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  padding: 0.66rem 1.3rem;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--r-pill);
  background: var(--surface); color: var(--text);
  font: inherit; font-size: 0.9rem; font-weight: 500; letter-spacing: -0.015em;
  cursor: pointer; white-space: nowrap;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease),
              transform 0.12s var(--ease), opacity 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn:hover:not(:disabled) { background: var(--bg-alt); text-decoration: none; }
.btn:active:not(:disabled) { transform: scale(0.975); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn:disabled { opacity: 0.42; cursor: default; }

.btn.primary {
  background: var(--accent); border-color: var(--accent); color: var(--on-accent);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
.btn.primary:hover:not(:disabled) { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.ghost { background: transparent; border-color: var(--hairline); }
.btn.ghost:hover:not(:disabled) { background: var(--bg-alt); }
.btn.lg { padding: 0.82rem 1.7rem; font-size: 0.97rem; }
.btn .icon { width: 17px; height: 17px; }

/* ---------- pricing ---------- */

.pricing { padding: clamp(3rem, 6vw, 4.5rem) 0 1rem; text-align: center; }
.pricing > .muted { max-width: 34rem; margin: 0.7rem auto 0; font-size: 0.95rem; }

.plans {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(238px, 1fr));
  gap: 1rem; margin: 2.75rem 0 1.25rem; text-align: left;
}
.plan {
  position: relative; display: flex; flex-direction: column;
  padding: 1.7rem 1.5rem 1.5rem;
  border: 1px solid var(--hairline); border-radius: var(--r-lg);
  background: var(--surface);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.plan:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.plan.featured { border-color: var(--accent); box-shadow: var(--shadow-md); }
.plan.featured:hover { box-shadow: var(--shadow-lg); }

.badge {
  position: absolute; top: -0.68rem; left: 1.5rem;
  padding: 0.2rem 0.65rem; border-radius: var(--r-pill);
  background: var(--accent); color: var(--on-accent);
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.01em;
}
.plan h3 { font-size: 1rem; color: var(--text-2); font-weight: 500; margin-bottom: 0.45rem; }
.price { font-size: 2.35rem; font-weight: 600; letter-spacing: -0.035em; line-height: 1; margin-bottom: 1.25rem; }
.price span { font-size: 0.92rem; font-weight: 400; color: var(--text-2); letter-spacing: -0.01em; }

.plan ul { list-style: none; padding: 0; margin: 0 0 1.5rem; flex: 1; font-size: 0.88rem; }
.plan li { display: flex; gap: 0.55rem; align-items: flex-start; padding: 0.3rem 0; color: var(--text-2); }
.plan li strong { color: var(--text); font-weight: 600; }
.plan li .icon { width: 16px; height: 16px; color: var(--accent); margin-top: 3px; }
.plan .btn { width: 100%; }
.fine { font-size: 0.78rem; color: var(--text-3); margin-top: 0.75rem; text-align: center; }

/* ---------- feature grid & faq ---------- */

.why, .faq { padding: clamp(3rem, 6vw, 4.5rem) 0 0; border-top: 1px solid var(--hairline); margin-top: 3.5rem; }
.why h2, .faq h2 { text-align: center; margin-bottom: 2.5rem; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 2rem 1.75rem; }
.feature-icon {
  width: 40px; height: 40px; margin-bottom: 0.9rem;
  display: grid; place-items: center; border-radius: 11px;
  background: var(--accent-tint); color: var(--accent);
}
.grid h3 { font-size: 1.03rem; margin-bottom: 0.4rem; }
.grid p { font-size: 0.9rem; color: var(--text-2); }

.faq { max-width: 46rem; margin-inline: auto; }
details { border-bottom: 1px solid var(--hairline); }
details summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.05rem 0; cursor: pointer; font-size: 0.97rem; font-weight: 500;
  list-style: none; letter-spacing: -0.02em;
}
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: ""; flex: none; width: 11px; height: 11px;
  border-right: 1.6px solid var(--text-3); border-bottom: 1.6px solid var(--text-3);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.28s var(--ease);
}
details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
details p { padding-bottom: 1.1rem; color: var(--text-2); font-size: 0.9rem; max-width: 62ch; }

/* ---------- article pages ---------- */

.article { padding: clamp(2.5rem, 5vw, 3.5rem) 0 0; max-width: 46rem; }
.article.narrow { margin-inline: auto; }
.article h1 { margin-bottom: 1rem; }
.article h2 { font-size: 1.35rem; margin: 2.5rem 0 0.8rem; }
.article p { margin-bottom: 1rem; color: var(--text-2); font-size: 0.98rem; }
.article p strong, .article li strong { color: var(--text); }
.article .steps { padding-left: 1.3rem; margin: 0 0 1rem; color: var(--text-2); font-size: 0.98rem; }
.article .steps li { margin: 0.5rem 0; padding-left: 0.25rem; }

.banklist { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 0.6rem; list-style: none; padding: 0; margin: 1.75rem 0 0; }
.banklist a {
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
  padding: 0.9rem 1.05rem; border: 1px solid var(--hairline); border-radius: var(--r-md);
  background: var(--surface); color: var(--text); font-size: 0.93rem; font-weight: 500;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease);
}
.banklist a:hover {
  border-color: var(--accent); transform: translateY(-2px);
  box-shadow: var(--shadow-sm); text-decoration: none;
}
.banklist .icon { width: 16px; height: 16px; color: var(--text-3); }
.banklist a:hover .icon { color: var(--accent); }

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

footer {
  border-top: 1px solid var(--hairline);
  background: var(--bg-alt);
  padding: 2.25rem var(--gutter);
  text-align: center;
}
footer .inner { max-width: var(--maxw); margin: 0 auto; }
footer p { color: var(--text-3); font-size: 0.8rem; }
footer p + p { margin-top: 0.5rem; }
footer a { color: var(--text-2); }
footer nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.35rem; justify-content: center; margin-bottom: 0.9rem; font-size: 0.82rem; }

/* ---------- responsive ---------- */

@media (max-width: 620px) {
  body { font-size: 16px; }
  header.site nav { gap: 1.05rem; font-size: 0.78rem; }
  .export { flex-direction: column; align-items: stretch; }
  .export .btn, .export select { width: 100%; }
  .trust { gap: 0.55rem 1.25rem; }
  th, td { padding: 0.6rem 0.7rem; }
}

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