/* ============================================================
   Ledgerline — single-page site
   Hand-written CSS. No framework, no build step.

   Design direction: an accountant's columnar pad, updated.
   Pale sage paper with faint ruled lines, ledger ink, bottle
   green as the house colour, a highlighter for anything that
   has been reconciled, and red ink for the things that still
   need a human. Type is a quirky grotesque (Bricolage) over a
   neutral text face (Instrument Sans) with a monospace for
   anything that came off a bank statement.
   ============================================================ */

/* ---------- tokens ---------- */
:root {
  --paper: #ECEEE4;
  --paper-2: #E0E4D5;
  --paper-3: #D5DBC9;
  --white: #FCFCF7;

  --ink: #121C16;
  --body: #2C3A31;
  --muted: #5A6959;

  --rule: #C6CCBB;
  --rule-strong: #A5AF95;
  --rule-faint: rgba(18, 28, 22, 0.055);

  --ledger: #1D5B3A;
  --ledger-bright: #2E7E52;
  --ledger-dim: #7E9C8A;

  --hl: #F0E24C;
  --hl-soft: rgba(240, 226, 76, 0.5);

  --red: #BC3A24;

  --ink-bg: #101A15;
  --ink-bg-2: #16231C;
  --on-ink: #E7EBE1;
  --on-ink-soft: #A7B5A3;

  --font-display: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Spline Sans Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --step--1: clamp(0.75rem, 0.72rem + 0.15vw, 0.82rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.08rem);
  --step-1: clamp(1.18rem, 1.08rem + 0.5vw, 1.45rem);
  --step-2: clamp(1.5rem, 1.32rem + 1vw, 2.05rem);
  --step-3: clamp(1.95rem, 1.6rem + 1.9vw, 2.95rem);
  --step-4: clamp(2.45rem, 1.8rem + 3.1vw, 4.3rem);

  --wrap: 1140px;
  --radius: 14px;
  --radius-sm: 9px;
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.62;
  color: var(--body);
  background-color: var(--paper);
  background-image: repeating-linear-gradient(
    to bottom,
    var(--rule-faint) 0 1px,
    transparent 1px 34px
  );
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }

::selection {
  background: var(--hl);
  color: var(--ink);
}

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

/* ---------- layout ---------- */
.wrap {
  width: min(var(--wrap), 90vw);
  margin-inline: auto;
}

.section { padding: clamp(3.5rem, 7vw, 6.5rem) 0; }

.band--sage { background-color: var(--paper-2); }

.band--ink {
  background-color: var(--ink-bg);
  color: var(--on-ink);
  background-image: none;
}
.band--ink h2,
.band--ink h3 { color: #FBFCF7; }
.band--ink .lede,
.band--ink p { color: var(--on-ink-soft); }

/* ---------- shared type ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ledger);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  flex: none;
}
.band--ink .eyebrow { color: var(--hl); }

.section-head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3rem); }

.section-title {
  font-size: var(--step-3);
  margin-top: 0.2rem;
}

.lede {
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--body);
  margin-top: 1.1rem;
  max-width: 58ch;
}

.fineprint {
  font-size: var(--step--1);
  color: var(--muted);
  line-height: 1.5;
}

.mark {
  background-image: linear-gradient(
    180deg,
    transparent 10%,
    var(--hl) 10% 90%,
    transparent 90%
  );
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding: 0.02em 0.12em;
  border-radius: 3px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 600;
  line-height: 1;
  padding: 0.85em 1.25em;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease,
              border-color 150ms ease, transform 150ms ease;
}
.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover {
  background: var(--ledger);
  color: #fff;
}
.btn-quiet {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule-strong);
}
.btn-quiet:hover {
  border-color: var(--ink);
  background: rgba(18, 28, 22, 0.04);
}
.btn-sm {
  padding: 0.6em 0.95em;
  font-size: var(--step--1);
}
.btn-on-dark {
  background: transparent;
  color: #FBFCF7;
  border-color: rgba(231, 235, 225, 0.35);
}
.btn-on-dark:hover {
  border-color: #FBFCF7;
  background: rgba(255, 255, 255, 0.07);
}
.btn-accent {
  background: var(--hl);
  color: var(--ink);
}
.btn-accent:hover {
  background: #fff;
}

/* ---------- skip link ---------- */
.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6em 1em;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: top 150ms ease;
}
.skip:focus { top: 1rem; }

/* ---------- header ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(236, 238, 228, 0.86);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.head-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.7rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.16rem;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.brand-mark { width: 26px; height: 26px; flex: none; }
.brand:hover { color: var(--ledger); }
.brand .brand-end { color: var(--ledger); }
.brand:hover .brand-end { color: var(--ledger-bright); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.site-nav a {
  font-size: 0.94rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--body);
  padding: 0.5em 0.7em;
  border-radius: var(--radius-sm);
}
.site-nav a:hover { color: var(--ink); background: rgba(18, 28, 22, 0.05); }
.site-nav a.nav-cta {
  margin-left: 0.4rem;
  background: var(--ink);
  color: var(--paper);
}
.site-nav a.nav-cta:hover { background: var(--ledger); color: #fff; }

/* ---------- hero ---------- */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 6vw, 5rem); }

.hero-copy { max-width: 63ch; }

.hero-title {
  font-size: var(--step-4);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.02;
}

.hero-sub {
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--body);
  margin-top: 1.4rem;
  max-width: 56ch;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.9rem;
}

.hero-note {
  margin-top: 1.1rem;
  font-size: var(--step--1);
  color: var(--muted);
}

/* ---------- transformer (signature) ---------- */
.transformer {
  margin: clamp(2.5rem, 5vw, 3.5rem) 0 0;
  padding: 0;
}

.tx-caption {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 0.8rem;
}

.tx-stage {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: 0.5rem;
}

.tx-panel {
  border-radius: var(--radius);
  padding: 1.05rem 1.05rem 1.15rem;
}

.tx-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.tx-raw {
  background: var(--ink-bg);
  border: 1px solid #223026;
}
.tx-raw .tx-head { color: var(--on-ink-soft); }
.tx-raw .tx-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--red);
  flex: none;
}

.tx-clean {
  position: relative;
  background: var(--white);
  border: 1px solid var(--rule-strong);
  overflow: hidden;
}
.tx-clean .tx-head { color: var(--ledger); }
.tx-clean .tx-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ledger-bright);
  flex: none;
}

.tx-list {
  list-style: none;
  display: grid;
  gap: 0.34rem;
}

/* --- raw / messy rows --- */
.raw-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.6rem;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: 0.79rem;
  line-height: 1.35;
  color: #C6D2C2;
  padding: 0.42rem 0.4rem;
  border-radius: 5px;
}
.raw-row .raw-date { color: #8FA089; }
.raw-row .raw-desc {
  color: #DCE4D8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.raw-row .raw-amt {
  color: #A9BCA3;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
/* a little wobble: the feed is not tidy yet */
.raw-row:nth-child(2) { transform: translateX(7px) rotate(-0.5deg); }
.raw-row:nth-child(3) { transform: translateX(-5px) rotate(0.4deg); }
.raw-row:nth-child(4) { transform: translateX(4px) rotate(-0.3deg); }
.raw-row:nth-child(5) { transform: translateX(-7px) rotate(0.5deg); }
.raw-row:nth-child(6) { transform: translateX(3px) rotate(-0.35deg); }

/* --- clean / reconciled rows --- */
.clean-row {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 0.6rem;
  align-items: center;
  font-size: 0.84rem;
  padding: 0.44rem 0.5rem;
  border-radius: 6px;
  isolation: isolate;
}
.clean-row > * { position: relative; z-index: 1; }

.row-chk {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--ledger);
  font-size: 0.9rem;
}
.row-party {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}
.row-party strong {
  font-weight: 600;
  color: var(--ink);
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.row-party em {
  font-style: normal;
  font-size: var(--step--1);
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.row-amt {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  white-space: nowrap;
}
.row-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ledger);
  background: rgba(29, 91, 58, 0.09);
  border: 1px solid rgba(29, 91, 58, 0.18);
  border-radius: 999px;
  padding: 0.16rem 0.5rem;
  white-space: nowrap;
}

.clean-row--matched::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--hl-soft), rgba(240, 226, 76, 0) 78%);
  transform: scaleX(0);
  transform-origin: left center;
}
.clean-row--open {
  background: rgba(188, 58, 36, 0.055);
  border: 1px dashed rgba(188, 58, 36, 0.4);
}
.clean-row--open .row-chk { color: var(--red); }
.clean-row--open .row-tag {
  color: var(--red);
  background: rgba(188, 58, 36, 0.09);
  border-color: rgba(188, 58, 36, 0.28);
}

.tx-foot {
  margin-top: 0.9rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--rule);
  font-size: var(--step--1);
  color: var(--muted);
  max-width: 34ch;
}

.stamp {
  position: absolute;
  right: 0.9rem;
  bottom: 1.05rem;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  border: 2px solid var(--red);
  border-radius: 5px;
  padding: 0.28rem 0.55rem;
  transform: rotate(-7deg);
  opacity: 0.82;
  pointer-events: none;
  mix-blend-mode: multiply;
}

.tx-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.1rem;
}
.tx-arrow-glyph {
  font-family: var(--font-display);
  font-size: 1.8rem;
  line-height: 1;
  color: var(--ledger);
}

/* ---------- problem ---------- */
.problem-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(1.6rem, 4vw, 3.5rem);
  align-items: start;
}
.problem-body p + p { margin-top: 1rem; }

.mess-list {
  list-style: none;
  display: grid;
  gap: 0.15rem;
  border-top: 1px solid var(--rule-strong);
}
.mess-list li {
  display: grid;
  grid-template-columns: 1.4rem 1fr;
  gap: 0.75rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: 1rem;
  color: var(--body);
}
.mess-list li::before {
  content: "—";
  font-family: var(--font-mono);
  color: var(--ledger);
}
.mess-list li b {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- steps ---------- */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.4rem, 3vw, 2.6rem);
}
.step {
  border-top: 2px solid var(--ink);
  padding-top: 1rem;
}
.step-num {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--ledger);
  margin-bottom: 0.7rem;
}
.step h3 {
  font-size: var(--step-1);
  margin-bottom: 0.55rem;
}
.step p { color: var(--body); }

/* ---------- features ---------- */
.grid-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.4rem 1.35rem 1.5rem;
  transition: border-color 160ms ease, transform 160ms ease;
}
.card:hover {
  border-color: var(--rule-strong);
  transform: translateY(-2px);
}
.card-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ledger);
  margin-bottom: 0.85rem;
}
.card-tag::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--ledger);
  transform: rotate(45deg);
  flex: none;
}
.card h3 {
  font-size: var(--step-1);
  margin-bottom: 0.5rem;
}
.card p { font-size: 0.97rem; color: var(--body); }

/* ---------- pricing ---------- */
.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  align-items: start;
}
.tier {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem 1.6rem;
}
.tier--featured {
  border-color: var(--ledger);
  box-shadow: 0 0 0 2px var(--ledger);
  position: relative;
}
.tier-flag {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--hl);
  border-radius: 3px;
  padding: 0.24rem 0.5rem;
  margin-bottom: 0.9rem;
}
.tier-name {
  font-size: var(--step-1);
  margin-bottom: 0.2rem;
}
.tier-for {
  font-size: var(--step--1);
  color: var(--muted);
  min-height: 2.4em;
}
.tier-price {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin: 0.7rem 0 0.2rem;
  font-family: var(--font-display);
}
.tier-amount {
  font-size: var(--step-3);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
}
.tier-per {
  font-family: var(--font-body);
  font-size: var(--step-0);
  color: var(--muted);
}
.tier-cadence {
  font-size: var(--step--1);
  color: var(--muted);
  margin-bottom: 1.1rem;
}
.tier-list {
  list-style: none;
  display: grid;
  gap: 0.6rem;
  margin: 1.1rem 0 0;
  padding-top: 1.1rem;
  border-top: 1px solid var(--rule);
  font-size: 0.95rem;
}
.tier-list li {
  display: grid;
  grid-template-columns: 1.1rem 1fr;
  gap: 0.6rem;
  align-items: start;
  color: var(--body);
}
.tier-list li::before {
  content: "✓";
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--ledger);
  line-height: 1.5;
}
.tier .btn { margin-top: 1.4rem; }

/* ---------- security ---------- */
.sec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.6rem, 4vw, 3.5rem);
  align-items: start;
}
.sec-list {
  list-style: none;
  display: grid;
  gap: 1.1rem;
  margin-top: 1.6rem;
}
.sec-list li {
  display: grid;
  grid-template-columns: 1.1rem 1fr;
  gap: 0.8rem;
  align-items: start;
}
.sec-list li::before {
  content: "✓";
  font-family: var(--font-mono);
  color: var(--hl);
  line-height: 1.55;
}
.sec-list b {
  display: block;
  color: #FBFCF7;
  font-weight: 600;
  margin-bottom: 0.15rem;
}
.sec-list p { font-size: 0.95rem; color: var(--on-ink-soft); }

.perm-card {
  background: var(--ink-bg-2);
  border: 1px solid #24352C;
  border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1.5rem;
}
.perm-title {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-ink-soft);
  margin-bottom: 1rem;
}
.perm-group {
  list-style: none;
  display: grid;
  gap: 0.55rem;
}
.perm-group + .perm-title { margin-top: 1.4rem; }
.perm-group li {
  display: grid;
  grid-template-columns: 1.2rem 1fr;
  gap: 0.6rem;
  align-items: start;
  font-size: 0.95rem;
  color: var(--on-ink);
}
.perm-yes li::before {
  content: "✓";
  font-family: var(--font-mono);
  color: var(--ledger-bright);
}
.perm-no li::before {
  content: "✕";
  font-family: var(--font-mono);
  color: var(--red);
}
.perm-note {
  margin-top: 1.3rem;
  padding-top: 1.1rem;
  border-top: 1px solid #24352C;
  font-size: var(--step--1);
  color: var(--on-ink-soft);
}

/* ---------- faq ---------- */
.faq { max-width: 74ch; }
.faq details {
  border-bottom: 1px solid var(--rule);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 0;
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--ledger);
  flex: none;
  transition: transform 160ms ease;
}
.faq details[open] summary::after {
  content: "\2212";
}
.faq summary:hover { color: var(--ledger); }
.faq details p {
  padding: 0 0 1.3rem;
  max-width: 66ch;
  color: var(--body);
}

/* ---------- closing cta ---------- */
.cta-panel {
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  background: var(--ink-bg-2);
  border-radius: 20px;
  padding: clamp(1.8rem, 4vw, 3.2rem);
  color: var(--on-ink);
}
.cta-panel h2 {
  font-size: var(--step-3);
  color: #FBFCF7;
}
.cta-panel p {
  margin-top: 0.9rem;
  max-width: 44ch;
  color: var(--on-ink-soft);
}
.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  min-width: 15rem;
}
.cta-note {
  margin-top: 0.4rem;
  font-size: var(--step--1);
  color: var(--on-ink-soft);
  text-align: center;
}

/* ---------- footer ---------- */
.site-foot {
  background: var(--ink-bg);
  color: var(--on-ink-soft);
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
  background-image: none;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
}
.foot-brand .brand { color: #FBFCF7; margin-bottom: 0.9rem; }
.foot-brand .brand .brand-end { color: var(--hl); }
.foot-brand p { max-width: 30ch; font-size: 0.95rem; }

.foot-col h3 {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #FBFCF7;
  margin-bottom: 0.9rem;
}
.foot-col ul { list-style: none; display: grid; gap: 0.55rem; }
.foot-col a {
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--on-ink-soft);
}
.foot-col a:hover { color: #FBFCF7; }

.foot-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem 2rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.5rem;
  border-top: 1px solid #24352C;
  font-size: var(--step--1);
}
.foot-base p { max-width: 62ch; }

/* ---------- anchors under a sticky header ---------- */
:where(section[id], main[id]) { scroll-margin-top: 84px; }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  @keyframes ll-rise {
    from { opacity: 0; transform: translateY(9px); }
    to   { opacity: 1; }
  }
  @keyframes ll-sweep {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
  }
  @keyframes ll-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
  }

  .hero-copy > * {
    animation: ll-rise 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .hero-copy > :nth-child(2) { animation-delay: 0.05s; }
  .hero-copy > :nth-child(3) { animation-delay: 0.1s; }
  .hero-copy > :nth-child(4) { animation-delay: 0.15s; }
  .hero-copy > :nth-child(5) { animation-delay: 0.2s; }

  .tx-raw { animation: ll-fade 0.6s ease both; animation-delay: 0.25s; }
  .tx-clean { animation: ll-fade 0.6s ease both; animation-delay: 0.4s; }
  .tx-arrow-glyph { animation: ll-fade 0.6s ease both; animation-delay: 0.6s; }
  .stamp { animation: ll-fade 0.5s ease both; animation-delay: 1.5s; }

  .clean-row--matched::before {
    animation: ll-sweep 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .clean-row--matched:nth-child(1)::before { animation-delay: 0.70s; }
  .clean-row--matched:nth-child(2)::before { animation-delay: 0.86s; }
  .clean-row--matched:nth-child(3)::before { animation-delay: 1.02s; }
  .clean-row--matched:nth-child(4)::before { animation-delay: 1.18s; }
  .clean-row--matched:nth-child(5)::before { animation-delay: 1.34s; }
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .problem-grid { grid-template-columns: 1fr; }
  .sec-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 2rem; }
  .grid-features { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .cta-panel { grid-template-columns: 1fr; }
  .cta-actions { flex-direction: row; flex-wrap: wrap; min-width: 0; }
}

@media (max-width: 860px) {
  .tx-stage { grid-template-columns: 1fr; }
  .tx-arrow { padding: 0.4rem 0; }
  .tx-arrow-glyph { transform: rotate(90deg); }
  .tiers { grid-template-columns: 1fr; }
  .tier--featured { order: -1; }
  .tier .btn { margin-top: 1.1rem; }
}

@media (max-width: 640px) {
  .head-inner { justify-content: center; }
  .site-nav { justify-content: center; }
  .site-nav a { padding: 0.4em 0.55em; font-size: 0.88rem; }
  .grid-features { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .raw-row:nth-child(n) { transform: none; }
  .tx-foot { max-width: 58%; }
  .stamp { bottom: 1rem; right: 0.72rem; }
}

/* ---------- print ---------- */
@media print {
  .site-head, .tx-raw, .tx-arrow, .cta-panel { display: none; }
  body { background: #fff; }
}
