/* ==========================================================================
   All Sorted Bookkeeping — stylesheet
   Palette is drawn from ledger paper and the "reconciled" state in accounting
   software: pine green for cleared, brass for items still needing attention.
   ========================================================================== */

:root {
  --ink:      #10231F;
  --pine:     #1D5245;
  --pine-lit: #2A7360;
  --sage:     #6F8A7C;
  --paper:    #EDF0EA;
  --paper-lo: #E2E8DF;
  --card:     #FFFFFF;
  --brass:    #B87A24;
  --brass-lo: #F5E7CF;
  --rule:     #D1DACE;

  --display: "Bricolage Grotesque", "Trebuchet MS", sans-serif;
  --body:    "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --wrap: 1140px;
  --gap: 1.5rem;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 6.2vw, 4.1rem); }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.28rem; letter-spacing: -0.01em; }

p { margin: 0 0 1.1rem; max-width: 62ch; }

a { color: var(--pine); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--pine-lit); }

:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage);
  margin: 0 0 1rem;
  display: block;
}

.lede { font-size: 1.2rem; color: #38473F; max-width: 56ch; }

/* --------------------------------------------------------- skip + header */

.skip {
  position: absolute; left: -9999px;
  background: var(--ink); color: #fff; padding: 0.7rem 1.1rem; z-index: 100;
}
.skip:focus { left: 1rem; top: 1rem; }

.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(237, 240, 234, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.head-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.85rem 0;
}

.logo {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--display); font-weight: 800; font-size: 1.12rem;
  letter-spacing: -0.03em; color: var(--ink); text-decoration: none;
}
.logo .mark {
  width: 26px; height: 26px; border-radius: 7px;
  background: var(--pine); color: #fff;
  display: grid; place-items: center; font-size: 0.85rem;
}

.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav a {
  color: var(--ink); text-decoration: none; font-size: 0.94rem; font-weight: 500;
  padding-bottom: 2px; border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--brass); }

@media (max-width: 880px) {
  .nav { display: none; }
  .head-inner .btn { padding: 0.55rem 0.95rem; font-size: 0.9rem; }
}

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

.btn {
  display: inline-block;
  font-family: var(--body); font-weight: 600; font-size: 1rem;
  padding: 0.82rem 1.5rem; border-radius: 999px;
  text-decoration: none; border: 2px solid var(--pine);
  background: var(--pine); color: #fff;
  transition: background 0.18s ease, transform 0.18s ease;
}
.btn:hover { background: var(--pine-lit); border-color: var(--pine-lit); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--pine); }
.btn-ghost:hover { background: var(--pine); color: #fff; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; }

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

.hero { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem); }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
@media (max-width: 940px) { .hero-grid { grid-template-columns: 1fr; } }

.hero h1 .accent { color: var(--pine); }

/* ------------------------------------- SIGNATURE: the reconciliation strip */

.recon {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 1.1rem;
  box-shadow: 0 18px 40px -28px rgba(16, 35, 31, 0.45);
}
.recon-head {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--sage);
  padding: 0 0.3rem 0.7rem; border-bottom: 1px solid var(--rule);
}
.recon-rows { list-style: none; margin: 0; padding: 0; }

.recon-rows li {
  display: grid;
  grid-template-columns: 1fr auto 1.7rem;
  align-items: center; gap: 0.8rem;
  padding: 0.62rem 0.3rem;
  border-bottom: 1px solid var(--paper-lo);
  font-size: 0.92rem;
  opacity: 0;
  animation: rowIn 0.5s ease forwards;
}
.recon-rows li:last-child { border-bottom: 0; }
.recon-rows li:nth-child(1) { animation-delay: 0.10s; }
.recon-rows li:nth-child(2) { animation-delay: 0.22s; }
.recon-rows li:nth-child(3) { animation-delay: 0.34s; }
.recon-rows li:nth-child(4) { animation-delay: 0.46s; }
.recon-rows li:nth-child(5) { animation-delay: 0.58s; }

@keyframes rowIn {
  from { opacity: 0; transform: translateY(9px); }
  to   { opacity: 1; transform: none; }
}

.recon .amt { font-family: var(--mono); font-size: 0.88rem; color: #3B4A43; }

.recon .state {
  width: 1.7rem; height: 1.7rem; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 0.8rem; font-weight: 700;
  background: var(--brass-lo); color: var(--brass);
}

@keyframes clearIt {
  0%   { background: var(--brass-lo); transform: scale(1); }
  45%  { transform: scale(1.24); }
  100% { background: var(--pine); transform: scale(1); }
}
.recon .state { animation: clearIt 0.45s ease forwards; }
.recon-rows li:nth-child(1) .state { animation-delay: 1.15s; }
.recon-rows li:nth-child(2) .state { animation-delay: 1.30s; }
.recon-rows li:nth-child(3) .state { animation-delay: 1.45s; }
.recon-rows li:nth-child(4) .state { animation-delay: 1.60s; }
.recon-rows li:nth-child(5) .state { animation-delay: 1.75s; }

/* The tick only appears once the row is cleared, so the strip reads
   "outstanding" first and "reconciled" second. */
.recon .state span {
  color: #fff; opacity: 0;
  animation: tickIn 0.3s ease forwards;
}
.recon-rows li:nth-child(1) .state span { animation-delay: 1.32s; }
.recon-rows li:nth-child(2) .state span { animation-delay: 1.47s; }
.recon-rows li:nth-child(3) .state span { animation-delay: 1.62s; }
.recon-rows li:nth-child(4) .state span { animation-delay: 1.77s; }
.recon-rows li:nth-child(5) .state span { animation-delay: 1.92s; }

@keyframes tickIn { to { opacity: 1; } }

.recon-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 0.85rem; margin-top: 0.4rem;
  border-top: 1px solid var(--rule);
  font-family: var(--mono); font-size: 0.74rem; color: var(--sage);
}
.recon-foot strong { color: var(--pine); font-weight: 600; }

/* -------------------------------------------------------------- trust bar */

.trust {
  border-block: 1px solid var(--rule);
  background: var(--paper-lo);
  padding: 1rem 0;
}
.trust ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.6rem 2.2rem; justify-content: center;
  font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.06em;
  text-transform: uppercase; color: #43544B;
}
.trust li::before { content: "— "; color: var(--pine); }

/* -------------------------------------------------------------- sections */

.section { padding: clamp(3rem, 6.5vw, 5rem) 0; }
.section-alt { background: var(--paper-lo); border-block: 1px solid var(--rule); }
.section-ink { background: var(--ink); color: #DDE6E0; }
.section-ink h2, .section-ink h3 { color: #fff; }
.section-ink .eyebrow { color: #7E9A8C; }
.section-ink p { color: #C3D2CA; }
.section-ink a { color: #A8D0C1; }

.head-block { max-width: 46ch; margin-bottom: 2.5rem; }

/* ----------------------------------------------------------------- cards */

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 1.7rem;
  display: flex; flex-direction: column;
}
.card p { font-size: 0.97rem; }
.card ul { padding-left: 1.1rem; margin: 0 0 1.4rem; font-size: 0.97rem; }
.card li { margin-bottom: 0.45rem; }
.card .btn { margin-top: auto; align-self: flex-start; }

.card-feature { border-color: var(--pine); border-width: 2px; position: relative; }
.card-feature::after {
  content: "Most popular";
  position: absolute; top: -0.72rem; left: 1.5rem;
  background: var(--pine); color: #fff;
  font-family: var(--mono); font-size: 0.63rem; letter-spacing: 0.12em;
  text-transform: uppercase; padding: 0.24rem 0.6rem; border-radius: 999px;
}

.price {
  font-family: var(--mono); font-size: 2rem; font-weight: 600;
  color: var(--pine); letter-spacing: -0.03em;
  margin: 0.2rem 0 0.1rem;
}
.price small { font-size: 0.8rem; font-weight: 400; color: var(--sage); letter-spacing: 0; }
.price-note { font-size: 0.85rem; color: var(--sage); margin-bottom: 1.2rem; }

/* ------------------------------------------------------- ledger step list */

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li {
  counter-increment: step;
  display: grid; grid-template-columns: 3.2rem 1fr; gap: 1.2rem;
  padding: 1.3rem 0; border-bottom: 1px solid var(--rule);
}
.steps li:last-child { border-bottom: 0; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--mono); font-size: 0.9rem; color: var(--brass);
  padding-top: 0.15rem;
}
.steps h3 { margin-bottom: 0.3rem; }
.steps p { margin: 0; }

/* ------------------------------------------------------------------- faq */

details {
  border-bottom: 1px solid var(--rule); padding: 1.1rem 0;
}
summary {
  font-family: var(--display); font-weight: 600; font-size: 1.08rem;
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--mono); color: var(--brass); }
details[open] summary::after { content: "–"; }
details p { margin: 0.8rem 0 0; }

/* ------------------------------------------------------------------ form */

.form { display: grid; gap: 1.1rem; max-width: 34rem; }
.field { display: grid; gap: 0.35rem; }
.field label { font-size: 0.9rem; font-weight: 600; }
.field input, .field select, .field textarea {
  font-family: var(--body); font-size: 1rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--rule); border-radius: 9px;
  background: var(--card); color: var(--ink);
}
.field textarea { min-height: 7rem; resize: vertical; }
.form-note { font-size: 0.85rem; color: var(--sage); }

/* ------------------------------------------------------------------- CTA */

.cta-band { text-align: center; }
.cta-band p { margin-inline: auto; }

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

.site-foot {
  background: var(--ink); color: #A9BCB2;
  padding: 3rem 0 2rem; font-size: 0.92rem;
}
.foot-grid { display: grid; grid-template-columns: 1.2fr 0.9fr 0.9fr 0.9fr; gap: 2rem; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }
.site-foot h4 {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: #6F8A7C; margin-bottom: 0.9rem;
}
.site-foot a { color: #DCE7E1; text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin-bottom: 0.5rem; }
.foot-legal {
  margin-top: 2.5rem; padding-top: 1.4rem; border-top: 1px solid #24413A;
  font-size: 0.82rem; color: #7E9A8C;
}
.foot-legal p { max-width: none; margin-bottom: 0.4rem; }
