@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@500;700;800&family=Inter:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --navy: #0F2C4C;
  --navy-deep: #0A1F38;
  --blue: #2B6CA3;
  --blue-bright: #3B82C4;
  --blue-tint: #E9F1F8;

  --ink: #1B242C;
  --paper: #F4F6F8;
  --paper-raised: #FFFFFF;
  --line: #DCE2E8;
  --muted: #5B6774;

  --resolved: #2E7D5B;
  --owed: #B3402C;

  /* legacy aliases so component styles below don't need renaming */
  --brass: var(--blue);
  --brass-dark: var(--navy);

  --font-display: 'Manrope', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.5;
}

a { color: inherit; }

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

.wrap-wide {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper-raised);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header .wrap-wide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--navy);
}

.brand-glyph {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: linear-gradient(160deg, var(--blue-bright), var(--navy));
  flex-shrink: 0;
}

.brand-mark {
  color: var(--blue);
}

.header-note {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* ---------- Hero ---------- */

.hero-band {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 55%, var(--blue) 130%);
  color: #fff;
  padding: 72px 0 84px;
}

.hero {
  padding: 0;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.hero-band .eyebrow {
  color: #9FC1DE;
}

h1.display {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 42px;
  line-height: 1.15;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
  color: var(--navy);
}

.hero-band h1.display {
  color: #fff;
  font-size: 44px;
}

.lede {
  font-size: 17px;
  color: #3C4650;
  max-width: 50ch;
  margin: 0 0 34px;
}

.hero-band .lede {
  color: #D7E4EF;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.08s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--blue-bright);
  color: #fff;
}
.btn-primary:hover { background: var(--blue); }

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-secondary:hover { border-color: var(--navy); }

.hero-band .btn-secondary {
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}
.hero-band .btn-secondary:hover { border-color: #fff; }

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------- Stat bar ---------- */

.stat-bar {
  background: var(--paper-raised);
  border-bottom: 1px solid var(--line);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 36px 0;
}

.stat {
  text-align: center;
}

.stat .num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 30px;
  color: var(--navy);
}

.stat .label {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 4px;
}

@media (max-width: 640px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Step / service cards ---------- */

.section {
  padding: 60px 0;
}

.section-head {
  max-width: 60ch;
  margin: 0 0 36px;
}

h2.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
  color: var(--navy);
  margin: 0 0 10px;
}

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

.step-card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}

.step-card .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--blue-tint);
  color: var(--blue);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 14px;
}

.step-card h3 {
  font-family: var(--font-display);
  font-size: 16px;
  margin: 0 0 8px;
  color: var(--ink);
}

.step-card p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

@media (max-width: 760px) {
  .step-grid { grid-template-columns: 1fr; }
}

/* ---------- Trust / compliance strip ---------- */

.trust-strip {
  background: var(--blue-tint);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-strip .wrap-wide {
  padding: 30px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  color: var(--navy);
}

.trust-strip strong { color: var(--navy); }

/* ---------- Ledger card (the signature element) ---------- */

.ledger-card {
  position: relative;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 30px 30px 26px;
  margin: 8px 0 40px;
  box-shadow: 0 1px 0 var(--line);
}

.ledger-card::before {
  content: '';
  position: absolute;
  top: 0; left: 24px; right: 24px;
  height: 3px;
  background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 12px);
}

.ledger-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
}
.ledger-row:last-of-type { border-bottom: none; }

.ledger-row .label {
  color: var(--muted);
}

.ledger-row .value {
  font-family: var(--font-mono);
}

.balance-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--ink);
}

.balance-line .label {
  font-family: var(--font-display);
  font-size: 16px;
}

.balance-line .amount {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 500;
}

.amount.owed { color: var(--owed); }
.amount.resolved { color: var(--resolved); }

.stamp {
  position: absolute;
  top: 22px;
  right: 22px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--resolved);
  border: 1.5px solid var(--resolved);
  border-radius: 3px;
  padding: 3px 8px;
  transform: rotate(4deg);
}

/* ---------- Forms ---------- */

.card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 30px;
  margin-bottom: 24px;
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.field input {
  width: 100%;
  font-family: var(--font-mono);
  font-size: 15px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fff;
  color: var(--ink);
}

.field input:focus {
  outline: 2px solid var(--brass);
  outline-offset: 1px;
  border-color: var(--brass);
}

.field-row {
  display: flex;
  gap: 14px;
}
.field-row .field { flex: 1; }

.form-error {
  background: #FBEEEB;
  border: 1px solid var(--owed);
  color: #7A2E1E;
  font-size: 14px;
  padding: 12px 14px;
  border-radius: 3px;
  margin-bottom: 18px;
  display: none;
}
.form-error.show { display: block; }

.help-text {
  font-size: 13px;
  color: var(--muted);
  margin-top: -8px;
  margin-bottom: 24px;
}

.demo-note {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  background: #E6E8E1;
  border-radius: 3px;
  padding: 10px 12px;
  margin-top: 20px;
}
.demo-note code { color: var(--brass-dark); }

/* ---------- Receipt ---------- */

.receipt {
  text-align: center;
  padding: 10px 0 4px;
}

.receipt .check {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--resolved);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 22px;
}

.receipt h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 24px;
  margin: 0 0 6px;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-deep);
  color: #9FB3C6;
  margin-top: 0;
}
.site-footer .wrap,
.site-footer .wrap-wide {
  padding: 30px 24px 40px;
  font-size: 12.5px;
}
.site-footer .brand {
  color: #fff;
  margin-bottom: 10px;
}
.site-footer .brand-mark { color: #8FC4EE; }

/* ---------- Loading / hidden ---------- */

.hidden { display: none !important; }

@media (max-width: 520px) {
  h1.display { font-size: 32px; }
  .field-row { flex-direction: column; gap: 0; }
}
