/* ==========================================================================
   Ledgerly — banknote engineering
   Light, papery, engraved. Newsreader display / Public Sans body /
   Spline Sans Mono for every number on the site.
   ========================================================================== */

:root {
  --paper: #FAF8F2;
  --ledger: #0A3528;
  --ledger-deep: #062A1F;
  --ink: #1C2B25;
  --amber: #DFA43C;
  --amber-bright: #F0B94F;
  --sage: #DCE5DD;
  --verify: #1E7A4F;
  --verify-bright: #16A06B;

  --crema: #EFE6CF;          /* warm paper tone used on dark bands */
  --card: #FFFFFF;
  --hairline: rgba(14, 59, 46, 0.14);
  --hairline-soft: rgba(14, 59, 46, 0.08);
  --ink-soft: rgba(28, 43, 37, 0.72);
  --crema-soft: rgba(239, 230, 207, 0.72);

  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: "Public Sans", -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Spline Sans Mono", "SF Mono", Menlo, monospace;

  --max-w: 1200px;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow-card: 0 1px 2px rgba(14, 59, 46, 0.05), 0 12px 32px -12px rgba(14, 59, 46, 0.18);
  --shadow-window: 0 2px 4px rgba(14, 59, 46, 0.06), 0 32px 64px -24px rgba(14, 59, 46, 0.28);

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;
  --space-8: 64px;
  --space-12: 96px;
  --space-16: 128px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--ledger); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--verify); }
ul[class], ol[class] { list-style: none; padding: 0; }

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.raise { position: relative; z-index: 1; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ledger);
  color: var(--paper);
  padding: 10px 18px;
  border-radius: 0 0 var(--radius-sm) 0;
  text-decoration: none;
}
.skip-link:focus { left: 0; color: var(--paper); }

/* ---------- Type ---------- */
h1, h2, h3.display {
  font-family: var(--font-display);
  font-weight: 600;
  font-optical-sizing: auto;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ledger);
}
h1 { font-size: clamp(2.5rem, 5.4vw, 4.25rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
h3 { font-size: 1.25rem; line-height: 1.3; color: var(--ledger); }
h1 em, h2 em {
  font-style: italic;
  font-weight: 500;
  color: inherit;
}

.lede {
  font-size: 1.1875rem;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 34em;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--verify);
  margin-bottom: var(--space-2);
}
.kicker::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--amber);
}

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

.serif-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.375rem;
  line-height: 1.45;
  color: var(--ledger);
}

/* ---------- Layout ---------- */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--space-3);
}
.section { padding-block: var(--space-12); position: relative; }
.section-head { max-width: 640px; margin-bottom: var(--space-8); }
.section-head p { color: var(--ink-soft); margin-top: var(--space-2); }

/* Dark ledger bands — deep green with amber-foil and verify glows */
.band {
  background:
    radial-gradient(70% 90% at 88% 6%, rgba(223, 164, 60, 0.17), transparent 62%),
    radial-gradient(55% 85% at 4% 100%, rgba(22, 160, 107, 0.13), transparent 60%),
    linear-gradient(168deg, #0D4234 0%, var(--ledger) 45%, var(--ledger-deep) 100%);
  color: var(--crema);
  position: relative;
  overflow: hidden;
}
.band h2, .band h3 { color: var(--paper); }
.band .kicker { color: var(--amber); }
.band .kicker::before { background: var(--amber); }
.band a { color: var(--crema); }
.band a:hover { color: var(--amber); }
.band p { color: var(--crema-soft); }

/* ---------- Guilloche ---------- */
.guilloche {
  position: absolute;
  pointer-events: none;
  color: var(--ledger);
  opacity: 0.08;
  z-index: 0;
}
.band .guilloche, .guilloche.on-dark { color: var(--crema); opacity: 0.06; }
.guilloche svg { width: 100%; height: 100%; }
.g-hero {
  top: -180px;
  right: -220px;
  width: 720px;
  height: 720px;
}
.g-hero-left {
  bottom: -320px;
  left: -300px;
  width: 640px;
  height: 640px;
}
.g-band-strip {
  inset: 0;
  height: 100%;
}
.g-band-strip svg { height: 100%; }
.g-footer {
  top: -260px;
  right: -260px;
  width: 680px;
  height: 680px;
}
.g-corner {
  top: -200px;
  right: -200px;
  width: 560px;
  height: 560px;
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn::after {
  /* amber foil sheen */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(223, 164, 60, 0.4) 50%, transparent 60%);
  transform: translateX(-130%);
  transition: transform 0.55s ease;
  pointer-events: none;
}
.btn:hover::after, .btn:focus-visible::after { transform: translateX(130%); }
.btn-primary { background: var(--ledger); color: var(--paper); }
.btn-primary:hover { background: #0B3226; color: var(--paper); }
.btn-secondary {
  background: transparent;
  color: var(--ledger);
  border-color: var(--hairline);
}
.btn-secondary:hover { border-color: var(--amber); color: var(--ledger); }
.band .btn-primary { background: var(--paper); color: var(--ledger); }
.band .btn-primary:hover { background: var(--crema); }
.band .btn-secondary { color: var(--crema); border-color: rgba(239, 230, 207, 0.35); }
.band .btn-secondary:hover { border-color: var(--amber); color: var(--paper); }
.btn-lg { padding: 16px 32px; font-size: 1rem; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 242, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hairline-soft);
}
.nav-bar {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  min-height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ledger);
  margin-right: auto;
}
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.nav-links a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--ink);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover { color: var(--ledger); border-bottom-color: var(--amber); }
.nav-links a[aria-current="page"] { color: var(--ledger); border-bottom-color: var(--ledger); }
.nav-cta { margin-left: var(--space-2); }
.nav-links a.btn { padding: 12px 22px; font-size: 0.875rem; border-bottom: 0; }
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: var(--paper); }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  padding: 10px;
  cursor: pointer;
  color: var(--ledger);
}
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .icon-close { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: var(--space-12) var(--space-8);
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-8);
  align-items: center;
}
.hero-copy .lede { margin-top: var(--space-3); }
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-5);
}
.trust-line {
  border-top: 1px solid var(--hairline-soft);
  padding-block: var(--space-2);
}
.trust-line ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px var(--space-4);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}
.trust-line li { display: inline-flex; align-items: center; gap: 8px; }
.trust-line li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--amber);
}

/* ---------- App window / live ledger ---------- */
.app-window {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow-window);
  overflow: hidden;
}
.app-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--hairline-soft);
  background: linear-gradient(180deg, #FFFFFF, #FBFAF6);
}
.app-titlebar .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--sage); }
.app-titlebar .dot:nth-child(2) { background: var(--amber); opacity: 0.7; }
.app-titlebar .dot:nth-child(3) { background: var(--verify); opacity: 0.55; }
.app-title {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}
.ledger-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-2);
  padding: 16px;
  border-bottom: 1px solid var(--hairline-soft);
}
.ledger-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 4px;
}
.ledger-bank { font-weight: 600; color: var(--ledger); font-size: 0.9375rem; }
.ledger-balance { text-align: right; }
.ledger-balance .num {
  font-size: 1.375rem;
  color: var(--ledger);
  transition: color 0.3s ease;
}
.ledger-balance .num.bumping { color: var(--verify); }

.ledger-rows { border-bottom: 1px solid var(--hairline-soft); }
.ledger-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(88px, auto) auto;
  align-items: center;
  gap: 8px 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--hairline-soft);
  min-height: 56px;
}
.ledger-row:last-child { border-bottom: none; }
.ledger-rows .ledger-row:nth-child(even) { background: rgba(220, 229, 221, 0.28); }
.lr-main { min-width: 0; }
.lr-name {
  display: block;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lr-date {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-soft);
}
.lr-cat {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--sage);
  color: var(--ledger);
  white-space: nowrap;
  opacity: 0;
  transform: scale(0.85);
}
.lr-amount {
  font-size: 0.9rem;
  text-align: right;
  min-width: 88px;
  color: var(--ink);
}
.lr-amount.pos { color: var(--verify); }
.lr-tick {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.lr-tick svg { width: 11px; height: 11px; stroke: var(--paper); opacity: 0; }
.ledger-row.is-hidden { display: none; }
.ledger-row.is-cat .lr-cat { opacity: 1; transform: scale(1); }
.ledger-row.is-done .lr-tick { background: var(--verify); border-color: var(--verify); }
.ledger-row.is-done .lr-tick svg { opacity: 1; }
.ledger-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-soft);
  background: #FBFAF6;
}
.ledger-foot .foot-tick {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--verify);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.ledger-foot .foot-tick svg { width: 9px; height: 9px; stroke: var(--paper); }

/* Animated states (motion allowed only) */
.motion-ok .ledger-row { transition: opacity 0.4s ease, transform 0.4s ease; }
.motion-ok .lr-cat { transition: opacity 0.3s ease, transform 0.3s ease; }
.motion-ok .lr-tick { transition: background-color 0.25s ease, border-color 0.25s ease; }
.motion-ok .lr-tick svg { transition: opacity 0.25s ease; }
.motion-ok .ledger-row.is-entering { opacity: 0; transform: translateY(8px); }

.hero-window-wrap { position: relative; }
.hero-window-wrap::before {
  /* amber foil edge behind the window */
  content: "";
  position: absolute;
  inset: 18px -14px -14px 18px;
  border: 1px solid rgba(223, 164, 60, 0.5);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(223, 164, 60, 0.16), rgba(223, 164, 60, 0.02) 55%);
  z-index: -1;
}

/* ---------- Cards & pillars ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
}
.pillar {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.pillar h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.375rem; }
.pillar p { color: var(--ink-soft); font-size: 0.9375rem; }
.pillar .vignette { margin-top: auto; }

/* ---------- UI vignettes (CSS-built product moments, 8px grid) ---------- */
.vignette {
  background: #FBFAF6;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  padding: var(--space-2);
  font-size: 0.85rem;
}
.vg-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--hairline-soft);
}
.vg-head .num { text-transform: none; letter-spacing: 0.04em; }
.vg-tx {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
}
.vg-tx + .vg-tx { border-top: 1px solid var(--hairline-soft); }
.vg-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sage); }
.vg-dot.in { background: var(--verify); }
.vg-dot.out { background: var(--amber); }
.vg-tx strong { display: block; font-weight: 500; font-size: 0.85rem; color: var(--ink); }
.vg-tx em {
  display: inline-block;
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--sage);
  color: var(--ledger);
  margin-top: 2px;
}
.vg-tx .num { font-size: 0.82rem; }
.num.pos { color: var(--verify); }

.vg-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-2);
  padding: 8px 0;
}
.vg-stat-row + .vg-stat-row { border-top: 1px solid var(--hairline-soft); }
.vg-stat-row .label { color: var(--ink-soft); font-size: 0.8rem; }
.vg-stat-row .num { color: var(--ink); }
.vg-stat-row.total { border-top: 2px solid var(--ledger); }
.vg-stat-row.total .label { color: var(--ledger); font-weight: 600; }
.vg-stat-row.total .num { color: var(--ledger); font-weight: 500; font-size: 1rem; }

.vg-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
}
.vg-badge.ok { background: rgba(30, 122, 79, 0.12); color: var(--verify); }
.vg-badge.warn { background: rgba(223, 164, 60, 0.18); color: #8A6116; }
.vg-badge.due { background: rgba(178, 60, 44, 0.1); color: #A03225; }
.vg-badge .bdot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.vg-note {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 8px;
  padding: 8px;
  border-radius: var(--radius-sm);
  background: rgba(220, 229, 221, 0.4);
  font-size: 0.78rem;
  color: var(--ink-soft);
}
.vg-note svg { width: 14px; height: 14px; flex: none; margin-top: 2px; color: var(--verify); }

/* Email thread vignette */
.vg-mail { padding: 8px 0; }
.vg-mail + .vg-mail { border-top: 1px solid var(--hairline-soft); }
.vg-mail-head { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.vg-mail-head strong { font-size: 0.82rem; font-weight: 600; color: var(--ink); }
.vg-mail-head .num { font-size: 0.68rem; color: var(--ink-soft); }
.vg-mail p { font-size: 0.8rem; color: var(--ink-soft); margin-top: 4px; }

/* Phone frame vignette */
.vg-phone {
  width: min(240px, 100%);
  margin-inline: auto;
  border: 1px solid var(--hairline);
  border-radius: 24px;
  background: var(--card);
  padding: 16px 12px;
  box-shadow: var(--shadow-card);
}
.vg-phone-notch {
  width: 56px;
  height: 5px;
  border-radius: 999px;
  background: var(--sage);
  margin: 0 auto 12px;
}
.vg-receipt {
  height: 96px;
  border-radius: var(--radius-sm);
  background:
    repeating-linear-gradient(180deg, rgba(28, 43, 37, 0.16) 0 2px, transparent 2px 11px),
    linear-gradient(180deg, #F4F0E4, #ECE7D6);
  border: 1px solid var(--hairline-soft);
  position: relative;
  margin-bottom: 12px;
}
.vg-receipt::after {
  content: "";
  position: absolute;
  inset: auto 12px 8px 12px;
  height: 10px;
  background: repeating-linear-gradient(90deg, rgba(28, 43, 37, 0.28) 0 3px, transparent 3px 6px);
}

/* Accountant panel vignette */
.vg-person {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px 0;
}
.vg-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ledger);
  color: var(--crema);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
}
.vg-person strong { display: block; font-size: 0.85rem; font-weight: 600; color: var(--ink); }
.vg-person span.sub { display: block; font-size: 0.72rem; color: var(--ink-soft); }
.vg-switch-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-top: 1px solid var(--hairline-soft);
  font-size: 0.8rem;
  color: var(--ink-soft);
}
.vg-switch {
  width: 30px;
  height: 17px;
  border-radius: 999px;
  background: var(--sage);
  position: relative;
  flex: none;
}
.vg-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(14, 59, 46, 0.3);
}
.vg-switch.on { background: var(--verify); }
.vg-switch.on::after { left: auto; right: 2px; }

/* ---------- Stats band ---------- */
.stats-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  text-align: center;
}
.stat .num {
  display: block;
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  color: var(--paper);
  line-height: 1.1;
}
.stat .num .unit { color: var(--amber); }
.stat p { margin-top: var(--space-1); font-size: 0.9375rem; }

/* ---------- Testimonials ---------- */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
}
.testimonial {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: var(--space-4) var(--space-3) var(--space-3);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.testimonial blockquote { flex: 1; }
.testimonial blockquote p { font-size: 1.125rem; }
.testimonial figcaption { font-size: 0.875rem; color: var(--ink-soft); }
.testimonial figcaption strong { display: block; color: var(--ink); font-weight: 600; }

/* ---------- Pricing ---------- */
.toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
  font-weight: 500;
  font-size: 0.9375rem;
}
.toggle-wrap .save-note {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--verify);
  background: rgba(30, 122, 79, 0.1);
  padding: 3px 10px;
  border-radius: 999px;
}
.bill-toggle {
  width: 56px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: var(--sage);
  position: relative;
  cursor: pointer;
  transition: background-color 0.2s ease;
  flex: none;
}
.bill-toggle::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(14, 59, 46, 0.35);
  transition: transform 0.2s ease;
}
.bill-toggle[aria-pressed="true"] { background: var(--verify); }
.bill-toggle[aria-pressed="true"]::after { transform: translateX(26px); }
.toggle-label { color: var(--ink-soft); }
.toggle-label.active { color: var(--ledger); font-weight: 600; }

.tiers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
  align-items: stretch;
}
.tier {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: var(--space-4) var(--space-3);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  position: relative;
}
.tier.highlight { border-color: var(--amber); border-width: 2px; }
.tier-flag {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--amber);
  color: var(--ledger);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.tier h3 { font-family: var(--font-display); font-size: 1.5rem; }
.tier .who { font-size: 0.875rem; color: var(--ink-soft); min-height: 2.6em; }
.tier .price { display: flex; align-items: baseline; gap: 6px; }
.tier .price .num { font-size: 2.5rem; color: var(--ledger); line-height: 1; }
.tier .price .per { font-size: 0.875rem; color: var(--ink-soft); }
.tier .bill-note {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-soft);
  min-height: 1.4em;
}
.tier ul { display: grid; gap: 10px; margin-block: var(--space-2); flex: 1; }
.tier li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.tier li svg { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--verify); }
.pricing-fineprint {
  text-align: center;
  margin-top: var(--space-4);
  font-size: 0.875rem;
  color: var(--ink-soft);
}

/* ---------- Tables (comparison / features) ---------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 0.9rem;
  min-width: 640px;
}
.compare caption {
  text-align: left;
  font-size: 0.875rem;
  color: var(--ink-soft);
  padding-bottom: var(--space-2);
}
.compare th, .compare td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--hairline-soft);
}
.compare thead th {
  background: var(--ledger);
  color: var(--paper);
  font-weight: 600;
  font-size: 0.875rem;
}
.compare thead th.hl { color: var(--amber); }
.compare tbody tr:nth-child(even) { background: rgba(220, 229, 221, 0.3); }
.compare tbody th { font-weight: 500; color: var(--ink); }
.compare td { color: var(--ink-soft); }
.compare td.centre, .compare th.centre { text-align: center; }
.tick-yes, .tick-no {
  display: inline-flex;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
}
.tick-yes { background: rgba(30, 122, 79, 0.14); color: var(--verify); }
.tick-no { background: rgba(28, 43, 37, 0.07); color: rgba(28, 43, 37, 0.4); }
.tick-yes svg, .tick-no svg { width: 11px; height: 11px; }

/* ---------- Feature rows (product page) ---------- */
.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-8);
  align-items: center;
  padding-block: var(--space-8);
}
.feature-row + .feature-row { border-top: 1px solid var(--hairline-soft); }
.feature-row.flip .feature-copy { order: 2; }
.feature-copy h2 { font-size: clamp(1.6rem, 2.6vw, 2.125rem); }
.feature-copy p { color: var(--ink-soft); margin-top: var(--space-2); }
.feature-copy ul { margin-top: var(--space-3); display: grid; gap: 10px; }
.feature-copy ul li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}
.feature-copy ul li svg { width: 16px; height: 16px; flex: none; margin-top: 4px; color: var(--verify); }
.feature-visual .vignette { box-shadow: var(--shadow-card); background: var(--card); }

/* Integration chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 8px 16px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
}

/* ---------- FAQ accordion ---------- */
.faq-list { max-width: 780px; }
.faq-item { border-bottom: 1px solid var(--hairline); }
.faq-item:first-child { border-top: 1px solid var(--hairline); }
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
  padding: 20px 4px;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 600;
  color: var(--ledger);
  cursor: pointer;
}
.faq-q .chev { flex: none; width: 18px; height: 18px; color: var(--amber); transition: transform 0.25s ease; }
.faq-q[aria-expanded="true"] .chev { transform: rotate(180deg); }
.faq-a-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}
.faq-item.open .faq-a-wrap { grid-template-rows: 1fr; }
.faq-a { overflow: hidden; }
.faq-a p { padding: 0 4px 20px; color: var(--ink-soft); max-width: 62ch; }

/* ---------- Case studies ---------- */
.case {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: var(--space-8);
  align-items: center;
  padding-block: var(--space-8);
}
.case + .case { border-top: 1px solid var(--hairline-soft); }
.case.flip .case-copy { order: 2; }
.case-photo { position: relative; }
.case-photo img {
  border-radius: var(--radius);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-card);
  width: 100%;
}
.case-stat {
  position: absolute;
  bottom: -18px;
  left: 22px;
  background: var(--ledger);
  color: var(--paper);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  box-shadow: var(--shadow-card);
}
.case-stat .num { display: block; font-size: 1.375rem; color: var(--amber); line-height: 1.2; }
.case-stat span:last-child { font-size: 0.75rem; color: var(--crema-soft); }
.case-copy .serif-quote { margin-block: var(--space-3); }
.case-copy p { color: var(--ink-soft); }
.case-copy .attribution { font-size: 0.875rem; color: var(--ink-soft); margin-top: var(--space-2); }
.case-copy .attribution strong { color: var(--ink); }

/* ---------- About ---------- */
.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
}
.principle {
  border-top: 2px solid var(--amber);
  padding-top: var(--space-3);
}
.principle .num { color: var(--amber); font-size: 0.85rem; display: block; margin-bottom: var(--space-1); }
.principle h3 { font-family: var(--font-display); font-size: 1.375rem; margin-bottom: var(--space-1); }
.principle p { color: var(--ink-soft); font-size: 0.9375rem; }

.team-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}
.team-card img {
  border-radius: var(--radius);
  border: 1px solid rgba(239, 230, 207, 0.25);
  width: 100%;
}
.team-card h3 { margin-top: var(--space-2); font-size: 1.125rem; color: var(--paper); }
.team-card p { font-size: 0.875rem; }

.roles { display: grid; gap: 0; max-width: 780px; }
.role {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-2);
  padding: 18px 4px;
  border-bottom: 1px solid var(--hairline);
}
.role:first-child { border-top: 1px solid var(--hairline); }
.role strong { font-weight: 600; color: var(--ledger); }
.role .num { font-size: 0.85rem; color: var(--ink-soft); }
.press-line {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.125rem;
  color: var(--ink-soft);
  border-left: 2px solid var(--amber);
  padding-left: var(--space-3);
  max-width: 640px;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--space-8);
  align-items: start;
}
.form-card {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: var(--space-4);
  box-shadow: var(--shadow-card);
}
.field { margin-bottom: var(--space-3); }
.field label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 6px;
  color: var(--ledger);
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  background: var(--paper);
  font-size: 0.9375rem;
  transition: border-color 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--amber);
  outline-offset: 0;
  border-color: var(--amber);
}
.field textarea { resize: vertical; min-height: 120px; }
.field .error-msg {
  display: none;
  font-size: 0.8rem;
  color: #A03225;
  margin-top: 6px;
}
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #A03225; }
.field.has-error .error-msg { display: block; }
.form-success {
  display: none;
  align-items: flex-start;
  gap: 12px;
  background: rgba(30, 122, 79, 0.1);
  border: 1px solid rgba(30, 122, 79, 0.3);
  border-radius: var(--radius-sm);
  padding: var(--space-2);
  color: var(--verify);
  font-weight: 500;
}
.form-success.visible { display: flex; }
.form-success svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.btn .spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(250, 248, 242, 0.35);
  border-top-color: var(--paper);
  border-radius: 50%;
  display: none;
}
.btn.is-loading .spinner { display: inline-block; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.contact-aside { display: grid; gap: var(--space-3); }
.aside-card {
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: var(--space-3);
  background: var(--card);
}
.aside-card h2 { font-size: 1.25rem; margin-bottom: var(--space-1); }
.aside-card p, .aside-card address { font-style: normal; color: var(--ink-soft); font-size: 0.9375rem; }
.aside-card .num { color: var(--ink); }
.contact-list { display: grid; gap: 10px; margin-top: var(--space-2); }
.contact-list li { display: flex; gap: 10px; align-items: baseline; font-size: 0.9375rem; }
.contact-list .lbl {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  min-width: 64px;
}
.mini-faq dt { font-weight: 600; color: var(--ledger); margin-top: var(--space-2); font-size: 0.9375rem; }
.mini-faq dd { margin: 4px 0 0; color: var(--ink-soft); font-size: 0.875rem; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band .inner { position: relative; z-index: 1; max-width: 680px; margin-inline: auto; }
.cta-band h2 { font-size: clamp(2rem, 4vw, 3rem); }
.cta-band p { margin-top: var(--space-2); }
.cta-band .hero-ctas { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ledger);
  color: var(--crema-soft);
  position: relative;
  overflow: hidden;
  font-size: 0.9rem;
}
.footer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: var(--space-6);
  padding-block: var(--space-8) var(--space-6);
}
.site-footer h2 {
  color: var(--paper);
  font-size: 0.8rem;
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}
.site-footer .brand { color: var(--paper); margin-bottom: var(--space-2); }
.site-footer ul { display: grid; gap: 10px; list-style: none; margin: 0; padding: 0; }
.site-footer a { color: var(--crema-soft); text-decoration: none; }
.site-footer a:hover { color: var(--amber); }
.site-footer address { font-style: normal; line-height: 1.7; }
.footer-blurb { max-width: 34ch; margin-top: var(--space-1); }
.footer-tag {
  margin-top: var(--space-2);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: rgba(239, 230, 207, 0.5);
}
.footer-legal {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(239, 230, 207, 0.15);
  padding-block: var(--space-3);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-1) var(--space-3);
  font-size: 0.78rem;
  color: rgba(239, 230, 207, 0.55);
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 1; }
.motion-ok .reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.8s cubic-bezier(0.22, 0.7, 0.3, 1),
    transform 0.8s cubic-bezier(0.22, 0.7, 0.3, 1),
    translate 0.35s cubic-bezier(0.22, 0.7, 0.3, 1),
    rotate 0.35s cubic-bezier(0.22, 0.7, 0.3, 1),
    box-shadow 0.35s ease;
}
.motion-ok .reveal.in { opacity: 1; transform: none; }

/* ---------- 404 ---------- */
.error-hero { text-align: center; padding-block: var(--space-16); position: relative; overflow: hidden; }
.error-hero .inner { position: relative; z-index: 1; }
.error-hero .num { font-size: clamp(4rem, 10vw, 7rem); color: var(--amber); display: block; line-height: 1; }
.error-hero .lede { margin-inline: auto; }
.error-hero .hero-ctas { justify-content: center; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .feature-row, .case, .contact-grid { grid-template-columns: 1fr; }
  .feature-row.flip .feature-copy, .case.flip .case-copy { order: 0; }
  .pillars, .testimonials, .tiers, .principles, .team-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .tier.highlight { order: -1; }
  .g-hero { right: -320px; opacity: 0.05; }
  .case-photo { max-width: 560px; }
}

@media (max-width: 720px) {
  .section { padding-block: var(--space-8); }
  .hero { padding-block: var(--space-8) var(--space-6); }
  .pillars, .testimonials, .tiers, .principles, .team-grid, .stats-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--hairline);
    padding: var(--space-2) var(--space-3) var(--space-3);
    display: none;
    box-shadow: 0 24px 40px -20px rgba(14, 59, 46, 0.25);
  }
  .nav-links a { padding: 14px 4px; border-bottom: 1px solid var(--hairline-soft); }
  .nav-links a[aria-current="page"] { border-bottom-color: var(--hairline-soft); }
  .nav-cta { margin: var(--space-2) 0 0; text-align: center; }
  .site-header.nav-open .nav-links { display: flex; }
  .site-header.nav-open .icon-burger { display: none; }
  .site-header.nav-open .icon-close { display: block; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-4); }
  .tier.highlight { order: 0; }
  .toggle-wrap { flex-wrap: wrap; }
  .case-stat { position: static; display: inline-block; margin-top: var(--space-2); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .btn::after { display: none; }
}

/* ==========================================================================
   MODERN MOTION REWORK — living guilloche, angled seams, choreography
   (client feedback pass: bolder colour, non-boxy composition, motion)
   ========================================================================== */

body { overflow-x: clip; }

/* ---------- Scroll progress bar (ledger-green, amber tip) ---------- */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 400;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--ledger), var(--verify));
  position: relative;
}
.scroll-progress span::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 36px;
  background: linear-gradient(90deg, transparent, var(--amber-bright));
}

/* ---------- Living guilloche hero canvas ---------- */
.hero--home { padding-block: calc(var(--space-12) + 8px) var(--space-8); }
.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-canvas canvas {
  position: absolute;
  top: -22%;
  left: 0;
  width: 100%;
  height: 144%;
  display: block;
}

/* ---------- Hero choreography (load, 1.5–2s staggered) ---------- */
@keyframes heroRise {
  from { opacity: 0; transform: translateY(36px); }
  to { opacity: 1; transform: none; }
}
@keyframes heroWin {
  from { opacity: 0; transform: translateY(56px) scale(0.985); }
  to { opacity: 1; transform: none; }
}
.motion-ok .hero--home .hero-copy > * {
  opacity: 0;
  animation: heroRise 0.9s cubic-bezier(0.22, 0.7, 0.3, 1) forwards;
}
.motion-ok .hero--home .hero-copy > .kicker { animation-delay: 0.1s; }
.motion-ok .hero--home .hero-copy > h1 { animation-delay: 0.28s; }
.motion-ok .hero--home .hero-copy > .lede { animation-delay: 0.48s; }
.motion-ok .hero--home .hero-copy > .hero-ctas { animation-delay: 0.68s; }
.motion-ok .hero--home .hero-window-wrap {
  opacity: 0;
  animation: heroWin 1.1s cubic-bezier(0.22, 0.7, 0.3, 1) 0.85s forwards;
}

/* Amber foil underline on emphasised words */
h1 em, h2 em {
  background-image: linear-gradient(90deg, var(--amber), var(--amber-bright));
  background-repeat: no-repeat;
  background-size: 100% 0.09em;
  background-position: 0 94%;
}
.band h2 em { color: var(--amber-bright); }
@keyframes foilLine { to { background-size: 100% 0.09em; } }
.motion-ok .hero--home h1 em {
  background-size: 0% 0.09em;
  animation: foilLine 0.8s cubic-bezier(0.22, 0.7, 0.3, 1) 1.35s forwards;
}

/* ---------- Hero window: perspective tilt + fold-line overlap ---------- */
.hero-window-wrap { perspective: 1200px; }
.hero-window-wrap .app-window { will-change: transform; }
@media (min-width: 961px) {
  .hero--home { overflow: visible; padding-bottom: 0; }
  .hero--home .hero-window-wrap { margin-bottom: -72px; z-index: 3; }
  .hero--home + .trust-line ul { justify-content: flex-start; max-width: 56%; }
  .hero--home + .trust-line { padding-block: var(--space-3) var(--space-4); }
}

/* ---------- Reconcile pulses (verify green) ---------- */
@keyframes tickPulse {
  0% { transform: scale(0.55); box-shadow: 0 0 0 0 rgba(22, 160, 107, 0.55); }
  70% { box-shadow: 0 0 0 14px rgba(22, 160, 107, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(22, 160, 107, 0); }
}
@keyframes rowVerify {
  0% { background-color: rgba(22, 160, 107, 0.16); }
  100% { background-color: rgba(22, 160, 107, 0); }
}
.motion-ok .ledger-row.is-done .lr-tick { animation: tickPulse 0.7s cubic-bezier(0.3, 0.8, 0.4, 1); }
.motion-ok .ledger-row.is-done { animation: rowVerify 0.9s ease; }
.ledger-row.is-done .lr-tick { background: var(--verify-bright); border-color: var(--verify-bright); }
.ledger-foot .foot-tick { background: var(--verify-bright); }
.ledger-balance .num.bumping { color: var(--verify-bright); }

/* ---------- Angled seams between paper and dark bands ---------- */
.section.band, .site-footer { --seam: 3.5vw; }
@media (min-width: 721px) {
  .section.band {
    clip-path: polygon(0 var(--seam), 100% 0, 100% calc(100% - var(--seam)), 0 100%);
    padding-block: calc(var(--space-12) + var(--seam));
    margin-block: calc(var(--seam) * -0.4);
  }
  .section.band.seam-r {
    clip-path: polygon(0 0, 100% var(--seam), 100% 100%, 0 calc(100% - var(--seam)));
  }
  .site-footer {
    clip-path: polygon(0 0, 100% 2.2vw, 100% 100%, 0 100%);
    padding-top: 2.2vw;
  }
}

/* ---------- Nav: amber underline sweep ---------- */
.nav-links a:not(.btn) { position: relative; border-bottom: none; }
.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--amber), var(--amber-bright));
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform 0.35s cubic-bezier(0.22, 0.7, 0.3, 1);
}
.nav-links a:not(.btn):hover { color: var(--ledger); border-bottom: none; }
.nav-links a:not(.btn):hover::after,
.nav-links a:not(.btn)[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: 0 50%;
}
.nav-links a:not(.btn)[aria-current="page"] { border-bottom: none; }
.brand { transition: translate 0.3s cubic-bezier(0.22, 0.7, 0.3, 1); }
.brand:hover { translate: 0 -1px; }
.brand:hover .brand-mark { color: var(--verify); }

/* ---------- Buttons: lift + periodic foil sweep ---------- */
.btn {
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    translate 0.25s cubic-bezier(0.22, 0.7, 0.3, 1),
    box-shadow 0.25s ease;
}
.btn:hover, .btn:focus-visible { translate: 0 -2px; }
.btn-primary:hover {
  box-shadow: 0 12px 26px -10px rgba(6, 42, 31, 0.55), 0 0 0 1px rgba(223, 164, 60, 0.4);
}
.btn-secondary:hover { box-shadow: 0 10px 22px -12px rgba(6, 42, 31, 0.3); }
@keyframes foilSweep {
  0% { transform: translateX(-130%); }
  24% { transform: translateX(130%); }
  100% { transform: translateX(130%); }
}
.motion-ok .btn-primary.btn-lg::after { animation: foilSweep 5.2s ease-in-out 2.4s infinite; }

/* ---------- Non-boxy compositions: offsets, rotations, overlaps ---------- */
.pillar, .testimonial, .tier, .team-card, .aside-card, .chips li, .vg-phone {
  transition:
    translate 0.35s cubic-bezier(0.22, 0.7, 0.3, 1),
    rotate 0.35s cubic-bezier(0.22, 0.7, 0.3, 1),
    box-shadow 0.35s ease;
}
.pillar:hover, .testimonial:hover, .tier:hover, .aside-card:hover {
  translate: 0 -6px;
  box-shadow: 0 2px 4px rgba(14, 59, 46, 0.06), 0 26px 48px -18px rgba(14, 59, 46, 0.3);
}
.chips li:hover {
  translate: 0 -3px;
  border-color: var(--amber);
  box-shadow: var(--shadow-card);
}
.faq-q { transition: color 0.2s ease; }
.faq-q:hover { color: var(--verify); }
.faq-q:hover .chev { color: var(--amber-bright); }
.site-footer a { transition: color 0.2s ease, padding-left 0.25s ease; }
.site-footer nav a:hover { padding-left: 6px; }

@media (min-width: 961px) {
  /* Pillars step down the page */
  .pillars { align-items: start; }
  .pillars .pillar:nth-child(1) { rotate: -1deg; margin-top: 24px; }
  .pillars .pillar:nth-child(2) { margin-top: -8px; }
  .pillars .pillar:nth-child(3) { rotate: 1deg; margin-top: 44px; }
  .pillar:nth-child(odd) .vignette { rotate: -0.9deg; }
  .pillar:nth-child(even) .vignette { rotate: 0.9deg; }

  /* Testimonials pinned at angles */
  .testimonials { align-items: start; }
  .testimonials .testimonial:nth-child(1) { rotate: -1.2deg; margin-top: 20px; }
  .testimonials .testimonial:nth-child(2) { margin-top: -6px; }
  .testimonials .testimonial:nth-child(3) { rotate: 1.2deg; margin-top: 34px; }

  /* Pricing: recommended tier physically larger + elevated */
  .tiers { grid-template-columns: 1fr 1.18fr 1fr; align-items: start; }
  .tiers .tier:nth-child(1) { rotate: -1deg; margin-top: 56px; }
  .tiers .tier:nth-child(3) { rotate: 1deg; margin-top: 72px; }
  .tier.highlight {
    margin-top: -12px;
    scale: 1.02;
    padding: var(--space-6) var(--space-4);
    box-shadow: 0 4px 8px rgba(14, 59, 46, 0.08), 0 40px 80px -28px rgba(14, 59, 46, 0.38);
    z-index: 2;
  }
  .tier.highlight .price .num { font-size: 3rem; }
  .tier.highlight:hover { translate: 0 -6px; }

  /* Product vignettes lean into their text columns */
  .feature-row .feature-visual { rotate: 1.4deg; margin-left: -44px; position: relative; z-index: 1; }
  .feature-row.flip .feature-visual { rotate: -1.4deg; margin-left: 0; margin-right: -44px; }
  .feature-row .vg-phone { rotate: 2deg; }

  /* Case studies: tilted photos, stat slips at an angle */
  .case-photo { rotate: -1.2deg; }
  .case.flip .case-photo { rotate: 1.2deg; }
  .case-stat { rotate: -2.4deg; bottom: -24px; }

  /* Team portraits pinned like records */
  .team-grid { align-items: start; }
  .team-grid .team-card:nth-child(1) { rotate: -1.6deg; margin-top: 18px; }
  .team-grid .team-card:nth-child(2) { rotate: 0.8deg; margin-top: -6px; }
  .team-grid .team-card:nth-child(3) { rotate: 1.8deg; margin-top: 26px; }
  .team-card:hover { rotate: 0deg; translate: 0 -6px; }

  /* Principles drift */
  .principles .principle:nth-child(2) { margin-top: 32px; }
  .principles .principle:nth-child(3) { margin-top: 64px; }

  /* Contact aside leans */
  .contact-aside .aside-card:nth-child(1) { rotate: 0.8deg; }
  .contact-aside .aside-card:nth-child(2) { rotate: -0.8deg; margin-top: 8px; }
}

/* ---------- Guilloche presence + slow rotation on inner heroes ---------- */
.guilloche { opacity: 0.1; }
.band .guilloche, .guilloche.on-dark { opacity: 0.08; }
@keyframes rosetteSpin { to { transform: rotate(360deg); } }
.motion-ok .g-corner svg,
.motion-ok .g-footer svg { animation: rosetteSpin 240s linear infinite; }

/* ---------- Bolder stats ---------- */
.stat .num { font-size: clamp(2.5rem, 5.2vw, 4rem); }
.stat .num .unit { color: var(--amber-bright); }
.kicker { color: var(--verify-bright); }

/* ---------- Mobile: gentler seams, no overlaps ---------- */
@media (max-width: 720px) {
  .section.band, .site-footer { --seam: 20px; }
  .hero--home { padding-bottom: var(--space-6); }
}

/* Rotation origin for spinning rosettes */
.g-corner svg, .g-footer svg { transform-origin: 50% 50%; }
