/* Slap Invoice — ledger design system for web (from design-system.md, 2026-06-12) */

:root {
  --paper: #F4F1E6;
  --surface: #FBFAF2;
  --surface-alt: #E7ECDC;
  --brand-surface: #1B4A3D;
  --ink: #16241E;
  --ink-2: #55625B;
  --ink-3: #8E988F;
  --brand: #1B4A3D;
  --brand-2: #2E6B54;
  --danger: #BB4636;
  --warning: #A9761C;
  --hairline: #DAD7C6;
  --rule: rgba(27, 74, 61, 0.09);
  --cream: #F4F1E6;
  --radius: 14px;
  --radius-lg: 18px;
  --pad: 20px;
  --font-ui: 'Archivo', -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0E1714;
    --surface: #152019;
    --surface-alt: #1A2620;
    --brand-surface: #14352A;
    --ink: #E9EDE4;
    --ink-2: #9DB0A4;
    --ink-3: #67786E;
    --brand: #5FB98C;
    --brand-2: #3E8C6E;
    --danger: #E07A6B;
    --warning: #D6A23F;
    --hairline: #243029;
    --rule: rgba(95, 185, 140, 0.07);
    --cream: #E9EDE4;
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--paper);
  /* the ruled ledger grid */
  background-image:
    linear-gradient(var(--rule) 1px, transparent 1px),
    linear-gradient(90deg, var(--rule) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 var(--pad); }

/* type */
.kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.kicker--red { color: var(--danger); }
.kicker--cream { color: rgba(244, 241, 230, 0.7); }
h1 { font-weight: 800; font-size: clamp(40px, 7vw, 64px); line-height: 1.02; letter-spacing: -0.025em; }
h1 .accent { color: var(--brand); }
h2 { font-weight: 800; font-size: clamp(28px, 4.5vw, 38px); letter-spacing: -0.02em; line-height: 1.1; }
h3 { font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
.sub { font-size: 18px; color: var(--ink-2); max-width: 54ch; }
.mono { font-family: var(--font-mono); }
.money { font-family: var(--font-mono); font-weight: 600; font-variant-numeric: tabular-nums; }

/* header */
.site-header { padding: 22px 0; }
.site-header .wrap { display: flex; align-items: center; gap: 14px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.logo img { width: 40px; height: 40px; border-radius: 10px; }
.logo span { font-family: var(--font-mono); font-size: 13px; font-weight: 600; letter-spacing: 0.12em; }
.site-nav { margin-left: auto; display: flex; gap: 22px; align-items: center; }
.site-nav a { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.06em; color: var(--ink-2); text-decoration: none; }
.site-nav a:hover { color: var(--brand); }

/* buttons */
.btn {
  display: inline-block;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 16px;
  padding: 15px 28px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}
.btn--primary { background: var(--brand); color: var(--cream); }
.btn--primary:hover { background: var(--brand-2); }
.btn--cream { background: var(--cream); color: #1B4A3D; }
.btn--ghost { background: transparent; color: var(--brand); border: 1px solid var(--brand); }

/* cards */
.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.card--hero { background: var(--brand-surface); border: none; color: var(--cream); }

/* ledger mockup card */
.ledger-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--hairline);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(22, 36, 30, 0.18);
  max-width: 420px;
}
.ledger-card__bar {
  background: var(--brand-surface);
  color: rgba(244, 241, 230, 0.85);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  padding: 12px 18px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.ledger-card__bar .dots { display: flex; gap: 5px; margin-right: 8px; }
.ledger-card__bar .dots i { width: 9px; height: 9px; border-radius: 50%; display: block; }
.ledger-row {
  display: flex;
  justify-content: space-between;
  padding: 13px 18px;
  font-size: 15px;
  border-bottom: 1px solid var(--rule);
  border-left: 4px solid transparent;
}
.ledger-row:nth-child(odd) { background: color-mix(in srgb, var(--surface-alt) 55%, transparent); }
.ledger-row .desc { font-weight: 600; }
.ledger-row .desc small { display: block; font-family: var(--font-mono); font-weight: 400; font-size: 12px; color: var(--ink-3); }
.ledger-row .amt { font-family: var(--font-mono); font-weight: 500; }
.ledger-total {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 16px 18px 18px;
  border-top: 3px double var(--ink);
  margin: 6px 18px 0;
  padding-left: 0; padding-right: 0;
}
.ledger-total b { font-size: 18px; font-weight: 700; }
.ledger-total .amt { font-family: var(--font-mono); font-weight: 600; font-size: 24px; color: var(--brand); }

/* forms */
.waitlist { display: flex; flex-direction: column; gap: 10px; max-width: 440px; }
.waitlist input[type="email"], .waitlist select, .contact-form input, .contact-form textarea {
  font-family: var(--font-mono);
  font-size: 14px;
  padding: 14px;
  border-radius: 11px;
  border: 1px solid var(--hairline);
  background: var(--surface);
  color: var(--ink);
  width: 100%;
}
.waitlist input:focus, .waitlist select:focus { outline: 2px solid var(--brand); border-color: transparent; }
.form-note { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--ink-3); text-transform: uppercase; }
.hidden { display: none !important; }

/* sections */
.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.section-head { margin-bottom: 36px; display: flex; flex-direction: column; gap: 10px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }

/* quote cards */
.quote-card { border-left: 4px solid var(--danger); }
.quote-card blockquote { font-size: 16px; font-weight: 500; }
.quote-card cite { display: block; margin-top: 12px; font-family: var(--font-mono); font-style: normal; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }

/* steps */
.step-num { font-family: var(--font-mono); font-weight: 600; font-size: 13px; color: var(--danger); letter-spacing: 0.14em; }

/* pricing */
.price-hero { display: flex; flex-direction: column; gap: 14px; }
.price-hero .price { font-family: var(--font-mono); font-weight: 600; font-size: 56px; }
.price-hero ul, .price-side ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.price-hero li, .price-side li { padding-left: 28px; position: relative; font-weight: 500; }
.price-hero li::before, .price-side li::before {
  content: "✓"; position: absolute; left: 0; font-family: var(--font-mono); font-weight: 600;
}
.price-hero li::before { color: #5FB98C; }
.price-side li::before { color: var(--brand); }
.price-side .price { font-family: var(--font-mono); font-weight: 600; font-size: 32px; color: var(--ink); }

/* comparison table (switcher pages) */
.compare { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); overflow: hidden; }
.compare th { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; background: var(--surface-alt); padding: 12px 16px; text-align: left; color: var(--ink-2); }
.compare td { padding: 13px 16px; border-top: 1px solid var(--rule); font-size: 15px; }
.compare td:first-child { color: var(--ink-2); }
.compare .bad { color: var(--danger); font-weight: 500; }
.compare .good { color: var(--brand); font-weight: 600; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--hairline); padding: 18px 0; }
.faq summary { font-weight: 700; font-size: 17px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.faq summary::after { content: "+"; font-family: var(--font-mono); color: var(--brand); }
.faq details[open] summary::after { content: "−"; }
.faq p { padding-top: 10px; color: var(--ink-2); max-width: 64ch; }

/* footer */
.site-footer { border-top: 1px solid var(--hairline); padding: 40px 0 60px; margin-top: 40px; background: var(--surface); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--brand); }
.site-footer .fine { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); margin-left: auto; }

@media (max-width: 720px) {
  .section { padding: 48px 0; }
  .site-nav a:not(.btn) { display: none; }
}
