/* ReadMyStatement — design system
   Identity: calm, trustworthy, document-like. Ink navy + a warm amber accent.
   Deliberately not Bootstrap-default blue: this handles bank statements and
   should feel like a records office, not a startup landing page. */

:root {
  --ink:        #12212f;
  --ink-soft:   #38505f;
  --muted:      #6b7f8c;
  --line:       #dfe6ea;
  --line-soft:  #eef2f4;
  --paper:      #ffffff;
  --shell:      #f6f8f9;
  --accent:     #b4531f;   /* amber-rust: warm, non-corporate */
  --accent-dk:  #8f3f14;
  --accent-bg:  #fdf3ec;
  --good:       #1c6b52;
  --good-bg:    #eaf5f0;
  --warn:       #8a6111;
  --warn-bg:    #fdf6e5;
  --bad:        #9a2c2c;
  --bad-bg:     #fbedec;
  --radius:     10px;
  --radius-lg:  16px;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

body {
  background: var(--shell);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  font-size: 16.5px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1; }

h1, h2, h3, h4 { color: var(--ink); font-weight: 700; letter-spacing: -.021em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.05rem); line-height: 1.1; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.05rem); line-height: 1.2; }
h3 { font-size: 1.16rem; }
p  { color: var(--ink-soft); }
a  { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-dk); }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 780px; }

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

.site-nav {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.site-nav .navbar-brand {
  font-weight: 800; color: var(--ink) !important;
  letter-spacing: -.03em; font-size: 1.2rem;
}
.site-nav .navbar-brand span { color: var(--accent); }
.site-nav .nav-link { color: var(--ink-soft) !important; font-weight: 500; font-size: .96rem; }
.site-nav .nav-link:hover, .site-nav .nav-link.active { color: var(--ink) !important; }
.dropdown-menu { max-height: 340px; overflow-y: auto; }

.site-footer {
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding: 40px 0 32px;
  margin-top: auto;
  font-size: .93rem;
}
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--accent); text-decoration: underline; }

/* --------------------------------------------------------------------- atoms */

.btn { border-radius: var(--radius); font-weight: 600; letter-spacing: -.01em; }
.btn-accent {
  background: var(--accent); border-color: var(--accent); color: #fff;
  padding: .8rem 1.6rem;
}
.btn-accent:hover, .btn-accent:focus {
  background: var(--accent-dk); border-color: var(--accent-dk); color: #fff;
}
.btn-ghost {
  background: transparent; border: 1px solid var(--line);
  color: var(--ink); padding: .8rem 1.4rem;
}
.btn-ghost:hover { border-color: var(--ink-soft); color: var(--ink); background: #fff; }

.card-plain {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
}

.eyebrow {
  text-transform: uppercase; letter-spacing: .1em;
  font-size: .74rem; font-weight: 700; color: var(--accent);
}

.pill {
  display: inline-block; padding: .22em .7em; border-radius: 999px;
  font-size: .76rem; font-weight: 600;
}
.pill-good { background: var(--good-bg); color: var(--good); }
.pill-warn { background: var(--warn-bg); color: var(--warn); }
.pill-bad  { background: var(--bad-bg);  color: var(--bad); }
.pill-neutral { background: var(--line-soft); color: var(--ink-soft); }

.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.mono { font-family: var(--mono); }

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

.hero {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 58px 0 66px;
}
.hero h1 { margin-bottom: 16px; }
.hero .lede {
  font-size: 1.2rem; color: var(--ink-soft);
  max-width: 44ch; margin: 0 auto 6px;
}

/* THE TOOL — the whole point of the page. Big, obvious, above the fold. */
.dropzone {
  border: 2px dashed #c3d0d8;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #fcfdfd 0%, #f7fafb 100%);
  padding: 42px 28px;
  text-align: center;
  transition: border-color .15s, background .15s, transform .15s;
  cursor: pointer;
  display: block;
}
.dropzone:hover { border-color: var(--accent); background: var(--accent-bg); }
.dropzone.is-drag { border-color: var(--accent); background: var(--accent-bg); transform: scale(1.008); }
.dropzone.has-file { border-style: solid; border-color: var(--good); background: var(--good-bg); }
.dropzone input[type=file] { display: none; }
.dropzone-icon { font-size: 2.4rem; line-height: 1; margin-bottom: 10px; }
.dropzone-title { font-size: 1.18rem; font-weight: 700; color: var(--ink); }
.dropzone-hint { color: var(--muted); font-size: .93rem; margin-top: 4px; }
.dropzone-file {
  font-family: var(--mono); font-size: .9rem; color: var(--good);
  margin-top: 10px; word-break: break-all;
}

.trust-row {
  display: flex; flex-wrap: wrap; gap: 8px 20px;
  justify-content: center; margin-top: 18px;
  font-size: .89rem; color: var(--muted);
}
.trust-row span::before { content: "✓ "; color: var(--good); font-weight: 700; }

/* -------------------------------------------------------------------- blocks */

.section { padding: 62px 0; }
.section-tight { padding: 44px 0; }
.section-paper { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.steps { counter-reset: step; }
.step { position: relative; padding-left: 52px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: grid; place-items: center;
  font-weight: 700; font-size: .95rem;
}

.bank-grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); }
.bank-chip {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 8px; padding: 9px 12px;
  font-size: .87rem; color: var(--ink-soft); text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  cursor: pointer; font-weight: 650; color: var(--ink);
  list-style: none; display: flex; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 700; font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; }

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

.stat-row { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.stat-label { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.stat-value { font-size: 1.62rem; font-weight: 750; color: var(--ink); margin-top: 2px; letter-spacing: -.02em; }
.stat-sub { font-size: .84rem; color: var(--muted); }

.bar-row { margin-bottom: 14px; }
.bar-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 3px; }
.bar-name { font-weight: 600; color: var(--ink); }
.bar-val { color: var(--ink); font-weight: 650; }
.bar-track { height: 9px; background: var(--line-soft); border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--accent); border-radius: 999px; }

.tbl { width: 100%; border-collapse: collapse; font-size: .93rem; }
.tbl th {
  text-align: left; font-size: .77rem; text-transform: uppercase;
  letter-spacing: .06em; color: var(--muted); font-weight: 700;
  padding: 8px 10px; border-bottom: 1px solid var(--line);
}
.tbl td { padding: 9px 10px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .r { text-align: right; white-space: nowrap; }
.tbl-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.leak {
  border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: 8px; background: var(--paper);
  padding: 15px 18px; margin-bottom: 10px;
}
.leak h4 { font-size: 1.02rem; margin: 0 0 4px; }
.leak p { margin: 0; font-size: .93rem; }

.notice { border-radius: var(--radius); padding: 14px 18px; font-size: .94rem; border: 1px solid; }
.notice-warn { background: var(--warn-bg); border-color: #f0dcae; color: #6d4c0c; }
.notice-good { background: var(--good-bg); border-color: #bfe0d2; color: var(--good); }
.notice-bad  { background: var(--bad-bg);  border-color: #eec9c6; color: var(--bad); }

/* forms inherited from djangobase pages */
.form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 .18rem rgba(180,83,31,.15); }
.pricing-card { border-radius: var(--radius-lg); }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding: 38px 0 44px; }
  .dropzone { padding: 30px 16px; }
  .section { padding: 44px 0; }
}

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