/* =================================================================
   THE STARTING LEDGER — design system
   Concept: an honest bookkeeper's ledger. Ruled lines, tabular
   numbers, margin notes, and a rubber-stamp "verified pick" mark —
   because this whole site is one person vouching for four tools.
   ================================================================= */

:root {
  /* --- color tokens --- */
  --green-950: #122A21;   /* ledger cover / header / dark sections */
  --green-800: #1E4034;   /* borders & accents on dark bg */
  --green-700: #2B5745;
  --paper: #F3F1E3;       /* page background, warm parchment */
  --paper-raised: #FBF9EE;/* card background, slightly lighter */
  --rule: #CDC6A6;        /* ruled lines on paper */
  --rule-soft: #DED8BE;
  --ink: #1B2420;         /* primary text */
  --ink-soft: #4C564E;    /* secondary text */
  --ink-faint: #8A8A73;
  --stamp: #A63A2E;       /* stamp red / primary CTA */
  --stamp-dark: #832C22;
  --brass: #8E6E2C;       /* numerals, entry codes, highlights */
  --mint: #E7EBDD;        /* hover / alt background */
  --shadow: 0 1px 0 rgba(18,42,33,0.06);

  --display: "Source Serif 4", Georgia, serif;
  --body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "Manrope", "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

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

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  color: var(--green-950);
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.05rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1.1em; color: var(--ink-soft); }
p.lede { font-size: 1.15rem; color: var(--ink); }

.eyebrow {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: var(--brass);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--brass);
  display: inline-block;
}

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

/* --- visually-hidden utility --- */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* focus visibility */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--stamp);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* =================================================================
   HEADER
   ================================================================= */
.site-header {
  background: var(--green-950);
  border-bottom: 3px solid var(--brass);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--paper);
}
.brand-mark {
  width: 34px; height: 34px;
  border: 1.5px solid var(--brass);
  border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--brass);
  transform: rotate(-3deg);
}
.brand-word {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.brand-word small {
  display: block;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: #A9B8AC;
  text-transform: uppercase;
}
nav.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
nav.main-nav a {
  color: #DCE3D9;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
nav.main-nav a:hover, nav.main-nav a[aria-current="page"] {
  color: #fff;
  border-color: var(--brass);
}
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--brass);
  color: var(--paper);
  border-radius: 4px;
  width: 40px; height: 40px;
  font-size: 1.1rem;
  cursor: pointer;
}

@media (max-width: 760px) {
  nav.main-nav {
    position: absolute;
    top: 74px; left: 0; right: 0;
    background: var(--green-950);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 6px 28px 18px;
    border-bottom: 3px solid var(--brass);
    display: none;
  }
  nav.main-nav.open { display: flex; }
  nav.main-nav a { width: 100%; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav-toggle { display: block; }
}

/* =================================================================
   LEDGER TABLE (hero index + used elsewhere)
   ================================================================= */
.ledger {
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}
.ledger-row {
  display: grid;
  grid-template-columns: 48px 1fr auto 128px 20px;
  gap: 24px;
  align-items: center;
  padding: 26px 8px;
  border-top: 1px solid var(--rule);
  text-decoration: none;
  color: inherit;
  transition: background .15s;
}
.ledger-row:first-child { border-top: none; }
.ledger-row:hover, .ledger-row:focus-visible { background: var(--mint); }
.ledger-row .ln {
  font-family: var(--mono);
  color: var(--brass);
  font-size: 0.85rem;
}
.ledger-row .cat {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--green-950);
}
.ledger-row .cat span {
  display: block;
  font-family: var(--body);
  font-weight: 400;
  font-size: 0.87rem;
  color: var(--ink-soft);
  margin-top: 4px;
  white-space: nowrap;
}
.ledger-row .pick {
  font-family: var(--body);
  font-size: 0.95rem;
  color: var(--ink-soft);
  text-align: right;
  white-space: nowrap;
}
.ledger-row .pick strong { color: var(--ink); font-weight: 600; }
.ledger-row .pick-muted { font-style: italic; color: var(--ink-faint); }
.ledger-row .status {
  font-family: var(--body);
  font-weight: 500;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--green-950);
  color: #DCE3D9;
  padding: 7px 12px;
  border-radius: 3px;
  text-align: center;
  white-space: nowrap;
}
.ledger-row .status-pending {
  background: transparent;
  border: 1px solid var(--rule);
  color: var(--ink-faint);
}
.ledger-row .arrow { color: var(--brass); font-size: 1.1rem; text-align: right; }

@media (max-width: 620px) {
  .ledger-row { grid-template-columns: 34px 1fr 18px; gap: 14px; }
  .ledger-row .pick, .ledger-row .status { display: none; }
}

/* =================================================================
   HERO
   ================================================================= */
.hero {
  background: var(--green-950);
  color: var(--paper);
  padding: 64px 0 0;
  position: relative;
}
.hero::after {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--brass), transparent 70%);
}
.hero-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.25fr;
  gap: 56px;
  align-items: end;
  padding-bottom: 46px;
}
.hero h1 { color: #fff; }
.hero .eyebrow { color: #C8B57A; }
.hero .eyebrow::before { background: #C8B57A; }
.hero p.lede { color: #C9D2C6; max-width: 46ch; }
.hero-note {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: #8FA192;
  border-left: 2px solid var(--brass);
  padding-left: 12px;
  margin-top: 22px;
  max-width: 40ch;
}
.hero-index {
  background: var(--paper-raised);
  border-radius: 6px;
  padding: 4px 26px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.28);
}
.hero-index-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass);
  padding: 14px 6px 4px;
}
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; gap: 30px; }
}

/* =================================================================
   BUTTONS
   ================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 13px 22px;
  border-radius: 4px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s;
}
.btn:active { transform: translateY(1px); }
.btn-stamp {
  background: var(--stamp);
  color: #fff;
  box-shadow: 0 4px 0 var(--stamp-dark);
}
.btn-stamp:hover { background: #B4453A; }
.btn-stamp:active { box-shadow: 0 2px 0 var(--stamp-dark); }
.btn-ghost {
  background: transparent;
  border-color: var(--green-950);
  color: var(--green-950);
}
.btn-ghost:hover { background: var(--green-950); color: #fff; }
.btn-ghost-light {
  background: transparent;
  border-color: rgba(255,255,255,0.4);
  color: #fff;
}
.btn-ghost-light:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.btn-block { width: 100%; justify-content: center; }

/* =================================================================
   SECTIONS / GENERIC
   ================================================================= */
section { padding: 72px 0; }
.section-tight { padding: 44px 0; }
.section-head { max-width: 62ch; margin-bottom: 40px; }
.rule-top { border-top: 1px solid var(--rule); }
.bg-alt { background: var(--paper-raised); }
.bg-dark { background: var(--green-950); color: #DCE3D9; }
.bg-dark h2, .bg-dark h3 { color: #fff; }
.bg-dark p { color: #B9C4B6; }

/* three-column "why" strip */
.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
}
.principle .num { color: var(--brass); font-size: 0.85rem; display: block; margin-bottom: 10px; }
.principle h3 { margin-bottom: 8px; }
.principle p { font-size: 0.94rem; margin-bottom: 0; }
@media (max-width: 760px) {
  .principles { grid-template-columns: 1fr; gap: 30px; }
}

/* =================================================================
   PICK CARDS (homepage grid)
   ================================================================= */
.pick-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.pick-card {
  background: var(--paper-raised);
  border: 1px solid var(--rule-soft);
  border-radius: 8px;
  padding: 26px 26px 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pick-card .cat-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.pick-card h3 { margin-bottom: 2px; margin-top: 54px; }
.pick-card .why { font-size: 0.93rem; margin-bottom: 4px; }
.pick-card .price-line {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.pick-card .price-line strong { color: var(--ink); }
.pick-card .stamp-wrap {
  position: absolute;
  top: 18px; right: 18px;
  width: 74px; height: 74px;
}
.pick-card-wide {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  gap: 28px;
  padding: 28px 34px;
}
.pick-card-wide .stamp-wrap {
  position: static;
  flex-shrink: 0;
}
.pick-card-wide .pick-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.pick-card-wide h3 { margin-bottom: 2px; }
@media (max-width: 640px) {
  .pick-card-wide { flex-direction: column; align-items: flex-start; text-align: left; }
}
@media (max-width: 760px) {
  .pick-grid { grid-template-columns: 1fr; }
}

/* stamp graphic */
.stamp-graphic {
  width: 100%; height: 100%;
  transform: rotate(-9deg);
  opacity: 0.92;
  mix-blend-mode: multiply;
}

/* =================================================================
   CATEGORY / TOOL PAGE
   ================================================================= */
.page-hero {
  background: var(--green-950);
  color: #fff;
  padding: 54px 0 110px;
  border-bottom: 3px solid var(--brass);
}
.page-hero p.lede { color: #C9D2C6; max-width: 60ch; margin-bottom: 0; }

.pick-block {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 40px;
  background: var(--paper-raised);
  border: 1px solid var(--rule-soft);
  border-radius: 10px;
  padding: 38px;
  margin: -60px 0 0;
  position: relative;
  z-index: 2;
  box-shadow: 0 24px 50px rgba(18,42,33,0.12);
}
.pick-block .eyebrow { margin-bottom: 10px; }
.pick-block h2 { margin-bottom: 10px; }
.pick-block .tagline { font-size: 1.02rem; color: var(--ink); margin-bottom: 18px; }
.pick-block .price-tag {
  font-family: var(--mono);
  font-size: 1.4rem;
  color: var(--green-950);
  margin-bottom: 4px;
}
.pick-block .price-tag small {
  font-size: 0.7rem;
  color: var(--ink-faint);
  display: block;
  font-family: var(--body);
  margin-top: 2px;
}
.pick-block .side {
  border-left: 1px solid var(--rule);
  padding-left: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
  gap: 14px;
}
@media (max-width: 800px) {
  .pick-block { grid-template-columns: 1fr; margin-top: -40px; padding: 28px; }
  .pick-block .side { border-left: none; border-top: 1px solid var(--rule); padding: 22px 0 0; }
}

/* margin notes (reasons list styled like ledger annotations) */
.notes-list { list-style: none; margin: 0; padding: 0; }
.notes-list li {
  position: relative;
  padding: 16px 0 16px 26px;
  border-top: 1px solid var(--rule);
  color: var(--ink);
}
.notes-list li:first-child { border-top: none; }
.notes-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--stamp);
  font-weight: 700;
}
.notes-list li strong { display: block; color: var(--green-950); margin-bottom: 3px; font-family: var(--display); font-size: 1.02rem; font-weight: 600;}

/* quick facts table */
.facts-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
}
.facts-table tr { border-top: 1px solid var(--rule); }
.facts-table tr:first-child { border-top: none; }
.facts-table th, .facts-table td { text-align: left; padding: 13px 10px; vertical-align: top; }
.facts-table th {
  font-family: var(--mono);
  font-weight: 500;
  color: var(--ink-faint);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  width: 38%;
}
.facts-table td { color: var(--ink); font-weight: 500; }

/* comparison table (used on inventory page) */
.compare-table { width: 100%; border-collapse: collapse; }
.compare-table th, .compare-table td { padding: 14px 16px; border: 1px solid var(--rule); text-align: left; font-size: 0.93rem; }
.compare-table thead th { background: var(--green-950); color: #fff; font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; }
.compare-table tbody th { font-family: var(--mono); color: var(--ink-faint); font-weight: 500; font-size: 0.75rem; text-transform: uppercase; background: var(--paper); }
.compare-table td strong { color: var(--green-950); }

/* honest / consider-other callout */
.honest-box {
  border: 1px dashed var(--rule);
  border-left: 3px solid var(--brass);
  background: var(--paper);
  border-radius: 4px;
  padding: 22px 26px;
}
.honest-box h3 { font-size: 1.05rem; }

/* FAQ */
.faq-item { border-top: 1px solid var(--rule); padding: 22px 0; }
.faq-item:first-child { border-top: none; }
.faq-item h3 { font-size: 1.02rem; margin-bottom: 8px; }
.faq-item p { margin-bottom: 0; font-size: 0.95rem; }

/* decision split (inventory page) */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 8px;
  overflow: hidden;
}
.split-cell {
  background: var(--paper-raised);
  padding: 30px 28px;
}
.split-cell .eyebrow { margin-bottom: 10px; }
.split-cell ul { padding-left: 18px; margin: 14px 0 20px; color: var(--ink-soft); font-size: 0.92rem; }
.split-cell ul li { margin-bottom: 6px; }
@media (max-width: 760px) {
  .split { grid-template-columns: 1fr; }
}

/* final CTA banner */
.cta-banner {
  background: var(--stamp);
  color: #fff;
  border-radius: 10px;
  padding: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-banner h2 { color: #fff; margin-bottom: 6px; }
.cta-banner p { color: rgba(255,255,255,0.85); margin-bottom: 0; }
.cta-banner .btn-ghost-light { border-color: rgba(255,255,255,0.6); }
.cta-banner .btn-ghost-light:hover { background: rgba(255,255,255,0.15); }

/* =================================================================
   ABOUT PAGE
   ================================================================= */
.about-lead { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
@media (max-width: 800px) { .about-lead { grid-template-columns: 1fr; } }

/* =================================================================
   FOOTER
   ================================================================= */
.site-footer {
  background: var(--green-950);
  color: #A9B8AC;
  border-top: 3px solid var(--brass);
  padding: 46px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 30px;
}
.footer-grid h4 {
  color: #DCE3D9;
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}
.footer-grid a {
  display: block;
  color: #A9B8AC;
  text-decoration: none;
  font-size: 0.92rem;
  margin-bottom: 9px;
}
.footer-grid a:hover { color: #fff; }
.footer-grid p { color: #8FA192; font-size: 0.88rem; }
.footer-bottom {
  border-top: 1px solid var(--green-800);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: #7C8F7F;
}
.disclosure {
  font-size: 0.8rem;
  color: #7C8F7F;
  max-width: 60ch;
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; }
}
