/* ==========================================================================
   Beckmont — design tokens & styles
   Direction: accounting stationery. Statement paper, columnar ruling,
   ledger ink. Institutional, quiet, legible. No gradient orbs.
   ========================================================================== */

/* --- 1. Tokens ----------------------------------------------------------- */

:root {
  /* Paper & ink */
  --paper:      #f6f7f5;   /* statement paper */
  --paper-2:    #eef0ea;   /* recessed band */
  --shell:      #e6e9e1;   /* outer bezel of cards */
  --card:       #ffffff;
  --ink:        #101613;   /* books ink */
  --ink-2:      #46514a;   /* secondary copy */
  --ink-3:      #5e6a62;   /* micro-labels */

  /* Accents — used sparingly, never decoratively */
  --ledger:     #2e5b45;   /* ledger green: actions, links */
  --ledger-2:   #24503c;   /* pressed / hover */
  --ledger-tint:#e8efe9;
  --flag:       #9a3b2e;   /* brick: exceptions only */
  --flag-tint:  #f4e8e5;

  /* Structure */
  --rule:       rgba(16, 22, 19, 0.10);
  --rule-2:     rgba(16, 22, 19, 0.06);
  --rule-strong:rgba(16, 22, 19, 0.18);

  /* Dark close band */
  --band:       #0d1411;
  --band-ink:   #f1f3f0;
  --band-ink-2: rgba(241, 243, 240, 0.78);
  --band-rule:  rgba(241, 243, 240, 0.14);

  /* Type */
  --serif: "IBM Plex Serif", ui-serif, Georgia, serif;
  --sans:  "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --mono:  "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;

  /* Radii — concentric: inner = outer - shell padding */
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 9px;
  --shell-pad: 6px;

  /* Motion — weighted, never linear */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.32, 0.72, 0, 1);
  --t-fast: 180ms;
  --t: 320ms;
  --t-slow: 620ms;

  --wrap: 1200px;
}

/* --- 2. Base ------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.018em;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

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

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

figure, dl, dd { margin: 0; }

::selection { background: var(--ledger); color: #fff; }

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
}
.skip:focus {
  left: 12px;
  top: 12px;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-sm);
  font: 500 14px/1 var(--sans);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* --- 3. Layout ----------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 48px);
}

.section { padding-block: clamp(76px, 10.5vw, 148px); }
.section--tight { padding-block: clamp(60px, 7vw, 104px); }

.band {
  background: var(--paper-2);
  border-block: 1px solid var(--rule);
}

/* --- 4. Type utilities --------------------------------------------------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.eyebrow::before {
  content: "";
  width: 14px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
  flex: none;
}
.eyebrow--plain::before { display: none; }

/* A hollow ring means "committed, not built yet". A filled check is only used
   for decisions already made. */
.ring {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 1.5px solid currentColor;
  flex: none;
}
.pledge__mark .ring {
  width: 14px;
  height: 14px;
  border-width: 2px;
  margin-top: 3px;
}

/* Commitment list below an intro paragraph */
.pledges { margin-top: 30px; }

.h1 {
  font-size: clamp(2.35rem, 5.4vw, 4.15rem);
  letter-spacing: -0.026em;
  line-height: 1.03;
}
.h2 {
  font-size: clamp(1.85rem, 3.4vw, 2.85rem);
  letter-spacing: -0.022em;
}
.h3 {
  font-size: clamp(1.2rem, 1.7vw, 1.4rem);
  letter-spacing: -0.012em;
  line-height: 1.2;
}
.lede {
  font-size: clamp(1.06rem, 1.45vw, 1.22rem);
  line-height: 1.58;
  color: var(--ink-2);
  max-width: 46ch;
}
.body-copy {
  color: var(--ink-2);
  max-width: 62ch;
}
.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}
.num { font-variant-numeric: tabular-nums; }

.rule-top { border-top: 1px solid var(--rule); }

/* --- 5. Buttons ---------------------------------------------------------- */

.btn {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 11px 11px 11px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition:
    background var(--t) var(--ease),
    color var(--t) var(--ease),
    box-shadow var(--t) var(--ease),
    transform var(--t) var(--ease);
}
.btn:active { transform: scale(0.985); }

.btn__icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(16, 22, 19, 0.07);
  flex: none;
  transition:
    transform var(--t) var(--ease),
    background var(--t) var(--ease);
}
.btn:hover .btn__icon { transform: translate(2px, -1px) scale(1.04); }
.btn:active .btn__icon { transform: translate(1px, 0) scale(0.98); }

.btn--primary {
  --btn-bg: var(--ledger);
  --btn-fg: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 1px 2px rgba(16, 22, 19, 0.14);
}
.btn--primary .btn__icon { background: rgba(255, 255, 255, 0.16); }
.btn--primary:hover { --btn-bg: var(--ledger-2); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  box-shadow: inset 0 0 0 1px var(--rule-strong);
}
.btn--ghost:hover {
  --btn-bg: rgba(16, 22, 19, 0.04);
  box-shadow: inset 0 0 0 1px rgba(16, 22, 19, 0.26);
}

.btn--bare {
  padding-inline: 4px;
  color: var(--ledger);
  font-weight: 500;
}
.btn--bare .btn__icon { background: transparent; width: 20px; }

.btn--ondark { --btn-fg: var(--band-ink); }
.btn--ondark.btn--ghost { box-shadow: inset 0 0 0 1px var(--band-rule); }
.btn--ondark.btn--ghost:hover {
  --btn-bg: rgba(241, 243, 240, 0.08);
  box-shadow: inset 0 0 0 1px rgba(241, 243, 240, 0.3);
}

.textlink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ledger);
  text-decoration: none;
  transition: gap var(--t) var(--ease), color var(--t) var(--ease);
}
.textlink:hover { gap: 12px; color: var(--ledger-2); }

/* --- 6. Card (double bezel) --------------------------------------------- */

.card {
  background: var(--shell);
  border-radius: var(--r-lg);
  padding: var(--shell-pad);
  box-shadow: inset 0 0 0 1px rgba(16, 22, 19, 0.05);
}
.card__core {
  height: 100%;
  background: var(--card);
  border-radius: calc(var(--r-lg) - var(--shell-pad));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 1px 2px rgba(16, 22, 19, 0.05);
  padding: clamp(22px, 2.6vw, 32px);
  display: flex;
  flex-direction: column;
}

/* --- 7. Navigation ------------------------------------------------------- */

.navwrap {
  position: sticky;
  top: 0;
  z-index: 40;
  padding-top: 14px;
  padding-bottom: 6px;
  pointer-events: none;
}

.nav {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 26px);
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  padding: 7px 7px 7px 18px;
  border-radius: 999px;
  background: rgba(246, 247, 245, 0.72);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow:
    inset 0 0 0 1px var(--rule),
    0 1px 2px rgba(16, 22, 19, 0.05),
    0 8px 24px -14px rgba(16, 22, 19, 0.22);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-decoration: none;
  flex: none;
}
.brand__mark {
  width: 19px;
  height: 19px;
  flex: none;
  color: var(--ledger);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav__links a {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 450;
  color: var(--ink-2);
  text-decoration: none;
  transition: color var(--t) var(--ease), background var(--t) var(--ease);
}
.nav__links a:hover { color: var(--ink); background: rgba(16, 22, 19, 0.05); }

.nav__cta { margin-left: 2px; }

.burger {
  display: none;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  position: relative;
  cursor: pointer;
  flex: none;
  transition: background var(--t) var(--ease);
}
.burger:hover { background: rgba(16, 22, 19, 0.06); }
.burger span {
  position: absolute;
  left: 11px;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--t) var(--ease-soft), opacity var(--t-fast) var(--ease);
}
.burger span:nth-child(1) { transform: translateY(-4px); }
.burger span:nth-child(2) { transform: translateY(4px); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { transform: rotate(-45deg); }

/* Mobile panel */
.panel {
  position: fixed;
  inset: 0;
  z-index: 39;
  padding: 92px clamp(20px, 6vw, 48px) 40px;
  background: rgba(246, 247, 245, 0.9);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-slow) var(--ease), visibility var(--t-slow) var(--ease);
}
.panel[data-open="true"] { opacity: 1; visibility: visible; }
.panel ul { list-style: none; margin: 0; padding: 0; }
.panel li {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease);
  border-bottom: 1px solid var(--rule);
}
.panel[data-open="true"] li { opacity: 1; transform: none; }
.panel[data-open="true"] li:nth-child(1) { transition-delay: 60ms; }
.panel[data-open="true"] li:nth-child(2) { transition-delay: 110ms; }
.panel[data-open="true"] li:nth-child(3) { transition-delay: 160ms; }
.panel[data-open="true"] li:nth-child(4) { transition-delay: 210ms; }
.panel[data-open="true"] li:nth-child(5) { transition-delay: 260ms; }
.panel a {
  display: block;
  padding: 18px 2px;
  font-family: var(--serif);
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}
@media (min-width: 961px) { .panel { display: none; } }

@media (max-width: 960px) {
  .nav__links, .nav__cta { display: none; }
  .burger { display: block; }
  .nav { padding-right: 7px; }
}

/* --- 8. Hero ------------------------------------------------------------- */

.hero {
  padding-top: clamp(52px, 7vw, 92px);
  padding-bottom: clamp(64px, 8vw, 116px);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 5.5vw, 82px);
  align-items: center;
}

/* The statement table needs ~450px to stay readable. Below that the hero
   stacks, so the artefact is never clipped. */
@media (max-width: 1100px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__copy { max-width: none; }
  .hero h1 { max-width: 24ch; }
}

.hero__copy { max-width: 34ch; }
.hero h1 { margin: 22px 0 0; }
.hero .lede { margin-top: 22px; max-width: 40ch; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
}

.hero__note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.01em;
}
.hero__note span { display: inline-flex; align-items: center; gap: 7px; }
.hero__note svg { flex: none; color: var(--ledger); opacity: 0.85; }

/* --- 9. Statement artifact (signature element) --------------------------- */

.stmt {
  position: relative;
  background: var(--shell);
  border-radius: var(--r-lg);
  padding: var(--shell-pad);
  box-shadow:
    inset 0 0 0 1px rgba(16, 22, 19, 0.06),
    0 24px 48px -32px rgba(16, 22, 19, 0.35);
}

.stmt__core {
  background: var(--card);
  border-radius: calc(var(--r-lg) - var(--shell-pad));
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.stmt__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 20px clamp(14px, 1.5vw, 24px) 16px;
  border-bottom: 1px solid var(--rule-strong);
}
.stmt__title {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.stmt__party {
  font-family: var(--serif);
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: -0.018em;
  margin-top: 7px;
  line-height: 1.15;
}
.stmt__meta {
  margin-top: 7px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-2);
  line-height: 1.7;
}
.stmt__stamp {
  flex: none;
  text-align: right;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ledger);
  border: 1px solid rgba(46, 91, 69, 0.28);
  background: var(--ledger-tint);
  border-radius: var(--r-sm);
  padding: 8px 10px;
  line-height: 1.35;
}
.stmt__stamp b { display: block; font-weight: 500; }

/* On very narrow screens the table can scroll rather than lose the
   balance column — which is the whole point of the document. */
.stmt__scroll {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

.stmt__table { width: 100%; border-collapse: collapse; }
.stmt__table th,
.stmt__table td {
  padding: 11px 12px;
  text-align: left;
  font-size: 13.5px;
  border-bottom: 1px solid var(--rule-2);
  white-space: nowrap;
}
.stmt__table thead th {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  background: var(--paper-2);
  border-bottom: 1px solid var(--rule-strong);
  padding-block: 9px;
}
.stmt__table td { font-variant-numeric: tabular-nums; color: var(--ink); }
.stmt__table td:first-child { font-family: var(--mono); font-size: 12.5px; color: var(--ink-2); }
.stmt__table .r { text-align: right; }
.stmt__table th:first-child,
.stmt__table td:first-child { padding-left: 20px; }
.stmt__table th:last-child,
.stmt__table td:last-child { padding-right: 24px; }
.stmt__table tbody tr:last-child td { border-bottom: 1px solid var(--rule-strong); }
.stmt__table .neg { color: var(--flag); }
.stmt__table .total td {
  font-weight: 600;
  background: var(--ledger-tint);
  border-bottom: 0;
  padding-block: 13px;
}
.stmt__table .total td:first-child { font-family: var(--mono); color: var(--ledger); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }

.stmt__aging {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-top: 1px solid var(--rule-strong);
}
.stmt__aging div {
  flex: 1 1 0;
  min-width: 92px;
  padding: 12px clamp(10px, 1.6vw, 18px);
  border-right: 1px solid var(--rule-2);
}
.stmt__aging div:last-child { border-right: 0; }
.stmt__aging dt {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.stmt__aging dd {
  margin: 5px 0 0;
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

.stmt__foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px clamp(14px, 1.5vw, 24px);
  background: var(--paper-2);
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
}
.stmt__foot .dot {
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--ledger);
  flex: none;
}

/* Hero artifact settle-in. `both` (not `forwards`) so that if CSS animations
   never run, the rows fall back to their natural opacity of 1 rather than 0. */
.stmt__table tbody tr,
.stmt__aging,
.stmt__foot {
  animation: settle 700ms var(--ease) both;
}
.stmt__table tbody tr:nth-child(1) { animation-delay: 180ms; }
.stmt__table tbody tr:nth-child(2) { animation-delay: 260ms; }
.stmt__table tbody tr:nth-child(3) { animation-delay: 340ms; }
.stmt__table tbody tr:nth-child(4) { animation-delay: 420ms; }
.stmt__table tbody tr:nth-child(5) { animation-delay: 500ms; }
.stmt__aging { animation-delay: 560ms; }
.stmt__foot  { animation-delay: 620ms; }

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

/* --- 10. Tools grid ------------------------------------------------------ */

.tools__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 40px;
  margin-bottom: clamp(34px, 4vw, 56px);
}
.tools__head .lede { margin-top: 14px; }

.tools__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 20px);
  align-items: stretch;
}
.tools__grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.tool { position: relative; }
.tool__core { gap: 0; }
.tool__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--paper-2);
  color: var(--ink-3);
  box-shadow: inset 0 0 0 1px var(--rule);
}
.tag .dot { width: 5px; height: 5px; border-radius: 999px; background: var(--ink-3); opacity: 0.5; }
.tag--live { background: var(--ledger-tint); color: var(--ledger); box-shadow: inset 0 0 0 1px rgba(46, 91, 69, 0.2); }
.tag--live .dot { background: var(--ledger); opacity: 1; }

.tool__index {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.08em;
}
.tool h3 { margin-bottom: 10px; }
.tool__desc { color: var(--ink-2); font-size: 15.5px; max-width: 44ch; }

/* Mini artifact inside each tool card */
/* Keep artefact rows from stretching across an unusually wide card. */
.tool__demo {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-2);
  max-width: 520px;
}
.tool__demo .row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 2px 12px;
  padding: 7px 0;
  border-bottom: 1px solid var(--rule-2);
}
.tool__demo .k,
.tool__demo .v { min-width: 0; overflow-wrap: anywhere; }
.tool__demo .row:last-child { border-bottom: 0; }
.tool__demo .k { color: var(--ink-3); }
.tool__demo .v { color: var(--ink); font-variant-numeric: tabular-nums; }
.tool__demo .v--flag { color: var(--flag); }
.tool__demo .chip {
  padding: 3px 8px;
  border-radius: 5px;
  background: var(--flag-tint);
  color: var(--flag);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tool__foot { margin-top: auto; padding-top: 24px; }

/* Close calendar mini grid */
.cal {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-top: 4px;
  max-width: 340px;
}
.cal i {
  aspect-ratio: 1;
  border-radius: 4px;
  background: var(--paper-2);
  box-shadow: inset 0 0 0 1px var(--rule-2);
}
.cal i.on { background: var(--ledger-tint); box-shadow: inset 0 0 0 1px rgba(46, 91, 69, 0.24); }
.cal i.hot { background: var(--ledger); box-shadow: none; }

/* --- 11. Why / split sections -------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.split__aside { position: sticky; top: 108px; }

.claim {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 16px;
  padding: 22px 0;
  border-top: 1px solid var(--rule);
}
.claim:last-child { border-bottom: 1px solid var(--rule); }
.claim__mark { color: var(--ledger); padding-top: 3px; }
.claim h3 { font-size: 1.06rem; font-family: var(--sans); font-weight: 600; letter-spacing: -0.005em; }
.claim p { margin-top: 7px; color: var(--ink-2); font-size: 15.5px; max-width: 58ch; }

/* --- 12. Process --------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--rule-strong);
}
.step {
  padding: clamp(24px, 3vw, 38px) clamp(18px, 2.4vw, 34px) clamp(28px, 3.4vw, 44px) 0;
  border-right: 1px solid var(--rule);
  position: relative;
}
.step:last-child { border-right: 0; padding-right: 0; }
.step:not(:first-child) { padding-left: clamp(18px, 2.4vw, 34px); }
.step__n {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  display: block;
  margin-bottom: 40px;
}
.step h3 { font-size: 1.14rem; }
.step p { margin-top: 10px; color: var(--ink-2); font-size: 15.5px; max-width: 34ch; }
.step__bar {
  position: absolute;
  top: -1px;
  left: 0;
  height: 2px;
  width: 44px;
  background: var(--ledger);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 900ms var(--ease);
}
.step.is-in .step__bar { transform: scaleX(1); }
.step:nth-child(2) .step__bar { transition-delay: 120ms; }
.step:nth-child(3) .step__bar { transition-delay: 240ms; }

/* --- 13. Audience -------------------------------------------------------- */

.audience {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  padding: 0;
  list-style: none;
}
.audience li {
  list-style: none;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--rule);
  font-size: 14.5px;
  color: var(--ink-2);
  transition: box-shadow var(--t) var(--ease), color var(--t) var(--ease);
}
.audience li:hover { box-shadow: inset 0 0 0 1px var(--rule-strong); color: var(--ink); }

/* --- 14. Privacy --------------------------------------------------------- */

.privacy__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 4.5vw, 72px);
  align-items: start;
}
.pledge {
  display: flex;
  gap: 14px;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
  align-items: flex-start;
}
.pledge:first-of-type { border-top: 1px solid var(--rule); }
.pledge__mark { flex: none; color: var(--ledger); }
.pledge strong { display: block; font-weight: 600; font-size: 15.5px; }
.pledge span { display: block; margin-top: 4px; color: var(--ink-2); font-size: 15px; }

/* --- 15. Guides ---------------------------------------------------------- */

.guides__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 1.4vw, 18px);
}
.guide {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(22px, 2.6vw, 30px);
  background: var(--card);
  border-radius: var(--r-md);
  box-shadow: inset 0 0 0 1px var(--rule);
  text-decoration: none;
  color: inherit;
  transition: box-shadow var(--t) var(--ease), transform var(--t) var(--ease);
}
.guide:hover {
  box-shadow: inset 0 0 0 1px var(--rule-strong);
  transform: translateY(-2px);
}
.guide__kicker {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.guide h3 { font-size: 1.14rem; letter-spacing: -0.012em; }
.guide__meta {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--rule-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
}

/* --- 16. Closing band ---------------------------------------------------- */

.close {
  background: var(--band);
  color: var(--band-ink);
  padding-block: clamp(72px, 9vw, 132px);
}
.close .eyebrow { color: rgba(241, 243, 240, 0.55); }
.close .h2 { color: var(--band-ink); }
.close__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(36px, 5vw, 84px);
  align-items: start;
}
.close p.close__lede {
  margin-top: 20px;
  color: rgba(241, 243, 240, 0.66);
  max-width: 40ch;
  font-size: 1.02rem;
}

.form { display: grid; gap: 14px; }
.field { display: grid; gap: 8px; }
.field label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(241, 243, 240, 0.6);
}
.field input,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 0;
  border-radius: var(--r-sm);
  background: rgba(241, 243, 240, 0.06);
  box-shadow: inset 0 0 0 1px var(--band-rule);
  color: var(--band-ink);
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.5;
  transition: box-shadow var(--t) var(--ease), background var(--t) var(--ease);
}
.field textarea { min-height: 128px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: rgba(241, 243, 240, 0.5); }
.field input:hover,
.field textarea:hover { box-shadow: inset 0 0 0 1px rgba(241, 243, 240, 0.26); }
.field input:focus,
.field textarea:focus {
  outline: none;
  background: rgba(241, 243, 240, 0.09);
  box-shadow: inset 0 0 0 1px rgba(241, 243, 240, 0.5);
}
.field__hint { font-size: 12.5px; color: rgba(241, 243, 240, 0.62); }

.form__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 6px;
}
.form__status {
  font-size: 14px;
  color: rgba(241, 243, 240, 0.72);
  min-height: 1.4em;
}
.form__status[data-state="error"] { color: #e8a99c; }
.form__status[data-state="ok"] { color: #a8d4bb; }

.btn--ondark.btn--primary {
  --btn-bg: var(--band-ink);
  --btn-fg: var(--band);
}
.btn--ondark.btn--primary .btn__icon { background: rgba(13, 20, 17, 0.12); }
.btn--ondark.btn--primary:hover { --btn-bg: #fff; }

/* --- 17. Footer ---------------------------------------------------------- */

.foot {
  background: var(--band);
  border-top: 1px solid var(--band-rule);
  padding-block: 40px 48px;
  color: rgba(241, 243, 240, 0.55);
  font-size: 14px;
}
.foot__grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px 40px;
}
.foot .brand { color: var(--band-ink); }
.foot .brand__mark { color: #8fbfa5; }
.foot__links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.foot__links a {
  display: inline-block;
  padding-block: 6px;
  color: rgba(241, 243, 240, 0.68);
  text-decoration: none;
  transition: color var(--t) var(--ease);
}
.foot__links a:hover { color: var(--band-ink); }
.foot__fine {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--band-rule);
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.7;
  color: rgba(241, 243, 240, 0.6);
}

/* --- 18. Scroll reveal --------------------------------------------------- */

/* Scoped to .js (set by an inline script in <head>) so that with no
   JavaScript the content is simply visible, never hidden. */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 760ms var(--ease), transform 760ms var(--ease);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* --- 19. Article pages --------------------------------------------------- */
.art { padding-block: clamp(48px, 6vw, 84px) clamp(64px, 8vw, 116px); }
.art__head { max-width: 46ch; }
.art__head .h1 { font-size: clamp(2rem, 4vw, 3.1rem); margin-top: 20px; }
.art__head .lede { margin-top: 20px; }
.art__body {
  max-width: 68ch;
  margin-top: clamp(36px, 4.5vw, 60px);
  font-size: 17.5px;
  color: var(--ink-2);
}
.art__body > * + * { margin-top: 1.15em; }
.art__body h2 {
  font-size: 1.5rem;
  color: var(--ink);
  margin-top: 2.2em;
  letter-spacing: -0.016em;
}
.art__body h3 { font-size: 1.1rem; color: var(--ink); margin-top: 1.9em; font-family: var(--sans); font-weight: 600; }
.art__body strong { color: var(--ink); font-weight: 600; }
.art__body ul, .art__body ol { padding-left: 1.25em; }
.art__body li + li { margin-top: 0.5em; }
.art__body code {
  font-family: var(--mono);
  font-size: 0.86em;
  background: var(--paper-2);
  padding: 2px 6px;
  border-radius: 5px;
  color: var(--ink);
}
.art__body pre {
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--rule);
  border-radius: var(--r-md);
  padding: 18px 20px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink);
}
.art__body pre code { background: none; padding: 0; font-size: inherit; }

.callout {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 16px;
  padding: 20px 22px;
  background: var(--ledger-tint);
  border-radius: var(--r-md);
  box-shadow: inset 0 0 0 1px rgba(46, 91, 69, 0.16);
  color: var(--ink);
  font-size: 16px;
}
.callout svg { color: var(--ledger); padding-top: 3px; }
.callout--flag { background: var(--flag-tint); box-shadow: inset 0 0 0 1px rgba(154, 59, 46, 0.16); }
.callout--flag svg { color: var(--flag); }

.art__foot {
  max-width: 68ch;
  margin-top: clamp(44px, 5vw, 68px);
  padding-top: 28px;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  align-items: center;
  justify-content: space-between;
}

.guides-hub__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 1.4vw, 18px);
  margin-top: clamp(32px, 4vw, 52px);
}

/* --- 20. Responsive ------------------------------------------------------ */

@media (max-width: 1000px) {
  /* Two columns. Three cards would leave a hole beside the third, so it takes
     a full row instead. */
  .tools__grid:not(.tools__grid--2) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tools__grid:not(.tools__grid--2) > .card:nth-child(3) { grid-column: span 2; }
}

@media (max-width: 900px) {
  .split,
  .privacy__grid,
  .close__grid { grid-template-columns: minmax(0, 1fr); }
  .split__aside { position: static; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step {
    border-right: 0;
    border-bottom: 1px solid var(--rule);
    padding: 26px 0 30px !important;
  }
  .step:last-child { border-bottom: 0; }
  .step__n { margin-bottom: 18px; }
}

@media (max-width: 680px) {
  body { font-size: 16.5px; }
  .tools__grid,
  .tools__grid--2,
  .tools__grid:not(.tools__grid--2),
  .guides__grid,
  .guides-hub__grid { grid-template-columns: minmax(0, 1fr); }
  .tools__grid:not(.tools__grid--2) > .card:nth-child(3) { grid-column: span 1; }
  .hero__actions .btn { width: 100%; justify-content: space-between; }
  .stmt__stamp { display: none; }
  .stmt__table td:nth-child(2),
  .stmt__table th:nth-child(2) { display: none; }
  .foot__grid { flex-direction: column; align-items: flex-start; }
}

/* Below this the due-date column costs more than it's worth. */
@media (max-width: 430px) {
  .stmt__table td:nth-child(3),
  .stmt__table th:nth-child(3) { display: none; }
  .stmt__table th, .stmt__table td { padding-inline: 13px; }
}

@media (max-width: 400px) {
  .stmt__table th, .stmt__table td { padding-inline: 11px; font-size: 12.5px; }
  .stmt__table thead th { font-size: 9px; letter-spacing: 0.1em; }
  .stmt__table td:first-child { font-size: 11.5px; }
  .stmt__table .total td { padding-block: 11px; }
}

/* --- 21. Reduced motion -------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
  }
  .reveal,
  .js .reveal { opacity: 1; transform: none; }
  .stmt__table tbody tr,
  .stmt__aging,
  .stmt__foot { opacity: 1; transform: none; animation: none; }
  .step__bar { transform: scaleX(1); }
}

@media (prefers-contrast: more) {
  :root {
    --ink-2: #2f3a34;
    --ink-3: #3d4842;
    --rule: rgba(16, 22, 19, 0.28);
    --rule-2: rgba(16, 22, 19, 0.16);
  }
}

@media print {
  .navwrap, .panel, .close, .burger { display: none; }
  body { background: #fff; }
}
