/* =========================================================
   LedgerLoop — design system
   Editorial-warm: cream + deep green + gold + slate
   ========================================================= */

:root {
  /* ----- Color tokens ----- */
  --bg:          #faf8f3;
  --bg-2:        #f1ede1;     /* warm cream panel */
  --bg-3:        #ebe5d2;     /* deeper cream */
  --ink:         #16201c;     /* primary text */
  --ink-2:       #3a4843;     /* secondary text */
  --ink-3:       #6b7670;     /* muted text */
  --line:        #d9d3c4;     /* hairlines on cream */
  --line-2:      #c7c0ad;
  --green:       #1f3a32;
  --green-deep:  #122520;
  --green-soft:  #2d4d44;
  --green-line:  rgba(255,255,255,0.18);

  /* Accent — tweakable via L (lightness) */
  --accent-h: 36;
  --accent-s: 39%;
  --accent-l: 64%;
  --accent: oklch(0.74 0.09 80);
  --accent-strong: oklch(0.62 0.12 75);
  --accent-soft:   oklch(0.92 0.04 85);

  /* ----- Type ----- */
  --serif: "Newsreader", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --sans:  "Geist", "Public Sans", -apple-system, system-ui, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono:  "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* ----- Layout ----- */
  --container: 1240px;
  --gutter: 32px;
  --hero-pad-x: 40px;
  --section-pad: clamp(72px, 9vw, 128px);
  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(20,22,18,0.04), 0 0 0 1px var(--line);
  --shadow:    0 1px 3px rgba(20,22,18,0.06), 0 4px 12px -2px rgba(20,22,18,0.04);
}

/* =========================================================
   Reset & base
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, picture, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; }

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

/* =========================================================
   Typography
   ========================================================= */

h1, h2, h3, h4, h5 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.018em;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(44px, 6.4vw, 84px); }
h2 { font-size: clamp(32px, 4vw, 52px); }
h3 { font-size: clamp(22px, 2.2vw, 30px); }
h4 { font-size: 19px; line-height: 1.25; letter-spacing: -0.005em; }

p { margin: 0; text-wrap: pretty; }
.lede {
  font-family: var(--serif);
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.45;
  color: var(--ink-2);
  font-weight: 400;
  max-width: 38ch;
}
em, .italic { font-style: italic; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.eyebrow::before {
  content: "";
  width: 24px; height: 1px;
  background: var(--accent-strong);
}
.eyebrow.no-rule::before { display: none; }

.kicker {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}

/* =========================================================
   Layout
   ========================================================= */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section { padding: var(--section-pad) 0; }
.section--tight { padding: calc(var(--section-pad) * 0.5) 0; }

.section--green {
  background: var(--green);
  color: #ebe5d2;
}
.section--green h1, .section--green h2, .section--green h3, .section--green h4 { color: #f5efde; }
.section--green .lede { color: #d3cbb8; }
.section--green .eyebrow { color: #b8b09c; }
.section--green .eyebrow::before { background: var(--accent); }

.section--cream { background: var(--bg-2); }

hr.rule {
  border: 0;
  height: 1px;
  background: var(--line);
  margin: 0;
}

/* =========================================================
   Header
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease, background 200ms ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: color-mix(in oklab, var(--bg) 96%, transparent);
}
.site-header__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px var(--gutter);
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 24px;
  letter-spacing: -0.02em;
  line-height: 1;
}
.brand__spiral {
  width: 30px; height: 30px;
  flex: 0 0 auto;
  color: var(--accent-strong);
  filter: brightness(var(--spiral-bright, 0.7));
}
.brand__word b { font-weight: 500; }
.brand__word i { font-style: italic; font-weight: 400; color: var(--green); }

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav a {
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-2);
  padding: 8px 14px;
  border-radius: 999px;
  transition: color 150ms, background 150ms;
}
.nav a:hover { color: var(--ink); background: var(--bg-3); }
.nav a.is-active {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent-strong);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

/* ---------- Mobile nav (hamburger) ---------- */
.nav-toggle {
  display: none;            /* shown at <=640px */
  margin-left: auto;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 150ms, border-color 150ms;
}
.nav-toggle:hover { background: var(--bg-3); }
.nav-toggle__bars {
  position: relative;
  width: 20px;
  height: 14px;
}
.nav-toggle__bars i {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 220ms ease, opacity 160ms ease, top 220ms ease;
}
.nav-toggle__bars i:nth-child(1) { top: 0; }
.nav-toggle__bars i:nth-child(2) { top: 6px; }
.nav-toggle__bars i:nth-child(3) { top: 12px; }
.nav-toggle.is-open .nav-toggle__bars i:nth-child(1) { top: 6px; transform: rotate(45deg); }
.nav-toggle.is-open .nav-toggle__bars i:nth-child(2) { opacity: 0; }
.nav-toggle.is-open .nav-toggle__bars i:nth-child(3) { top: 6px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(82vw, 340px);
  background: var(--bg);
  border-left: 1px solid var(--line);
  box-shadow: -24px 0 60px rgba(0,0,0,0.18);
  padding: 88px 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transform: translateX(102%);
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 120;
  visibility: hidden;
}
.mobile-menu.is-open { transform: translateX(0); visibility: visible; }
.mobile-menu__nav { display: flex; flex-direction: column; gap: 4px; }
.mobile-menu__nav a {
  font-family: var(--serif);
  font-size: 26px;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
  transition: color 150ms, padding-left 150ms;
}
.mobile-menu__nav a:hover { color: var(--green); padding-left: 10px; }
.mobile-menu__nav a.is-active { color: var(--green); }
.mobile-menu__cta { margin-top: 24px; justify-content: center; }

.mobile-menu__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 16, 10, 0.34);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 300ms ease, visibility 300ms ease;
  z-index: 110;
}
.mobile-menu__backdrop.is-open { opacity: 1; visibility: visible; }
body.menu-locked { overflow: hidden; }

/* =========================================================
   Buttons
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 120ms ease, background 150ms, color 150ms, border-color 150ms;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--green);
  color: var(--bg);
}
.btn--primary:hover { background: var(--accent); color: var(--ink); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink-2);
}
.btn--ghost:hover {
  background: color-mix(in oklab, var(--accent) 14%, transparent);
  color: var(--accent-strong);
  border-color: var(--accent-strong);
}

.btn--accent {
  background: var(--accent);
  color: var(--ink);
}
.btn--accent:hover { background: var(--accent-strong); color: var(--bg); }

.btn--text {
  padding: 8px 0;
  background: transparent;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
}
.btn--text:hover { color: var(--green); border-color: var(--green); }

.btn .arr {
  display: inline-block;
  transition: transform 180ms ease;
}
.btn:hover .arr { transform: translateX(3px); }

/* =========================================================
   Hero
   ========================================================= */

.hero {
  padding-top: clamp(48px, 7vw, 96px);
  padding-bottom: clamp(64px, 8vw, 112px);
  padding-left: var(--hero-pad-x, 40px);
  padding-right: var(--hero-pad-x, 40px);
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero__copy h1 {
  margin-top: 18px;
  margin-bottom: 22px;
}
.hero__copy h1 .accent { color: var(--accent-strong); }
.hero__copy h1 em { font-style: italic; color: var(--green); }
.hero__copy .lede { margin-bottom: 32px; max-width: 30ch; }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__photo {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero__photo picture,
.hero__photo img {
  width: 100%; height: 100%;
  display: block;
  object-fit: cover;
}
.hero__caption {
  position: absolute;
  left: 16px; bottom: 16px;
  background: rgba(20,22,18,0.6);
  color: #f5efde;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

/* Hero in green section variant */
.section--green .hero__photo { border: 1px solid var(--green-line); }

/* =========================================================
   Two-col content blocks (problem / solution / etc)
   ========================================================= */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}
.split--media-left .split__media { order: -1; }
.split__copy h2 { margin: 12px 0 20px; max-width: 14ch; }
.split__copy h2 em { font-style: italic; color: var(--green); }
.split__copy p { color: var(--ink-2); font-size: 18px; line-height: 1.6; max-width: 44ch; }

.split__media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.split__media picture,
.split__media img { width: 100%; height: 100%; display: block; object-fit: cover; }

.section--green .split__media { box-shadow: 0 1px 3px rgba(0,0,0,0.2); }

/* =========================================================
   Three-up feature row
   ========================================================= */

.three-up {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 56px;
}
.three-up__head {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: end;
}
.three-up__head .lede { max-width: 36ch; }

.feat {
  border-top: 1px solid var(--ink);
  padding-top: 24px;
  padding-right: 12px;
}
.feat__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--accent-strong);
  margin-bottom: 8px;
}
.feat h3 { margin-bottom: 12px; max-width: 14ch; }
.feat p { color: var(--ink-2); font-size: 15.5px; line-height: 1.55; max-width: 32ch; }

.section--green .feat { border-top-color: var(--green-line); }
.section--green .feat p { color: #c0bba5; }

/* =========================================================
   Pricing
   ========================================================= */

.pricing-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: end;
  margin-bottom: 56px;
}
.pricing-head .lede { max-width: 38ch; }

.toggle {
  display: inline-flex;
  padding: 4px;
  background: var(--bg-2);
  border-radius: 999px;
  border: 1px solid var(--line);
  margin-bottom: 32px;
}
.toggle button {
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: var(--ink-3);
  cursor: pointer;
  transition: background 180ms, color 180ms;
}
.toggle button.is-active {
  background: var(--ink);
  color: var(--bg);
}

.tiers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.tier {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
.tier--feature {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.tier--feature .tier__name,
.tier--feature .tier__price-num,
.tier--feature .tier__list li { color: var(--bg); }
.tier--feature .tier__sub,
.tier--feature .tier__price-suf { color: #c0bba5; }
.tier--feature .tier__list li { border-top-color: rgba(255,255,255,0.12); }

.tier__name {
  font-family: var(--serif);
  font-size: 26px;
  letter-spacing: -0.01em;
}
.tier__sub {
  font-size: 14px;
  color: var(--ink-3);
  margin-top: -10px;
  line-height: 1.4;
}
.tier__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 4px;
}
.tier__price-pre {
  font-size: 13px;
  color: var(--ink-3);
  font-weight: 500;
}
.tier__price-num {
  font-family: var(--serif);
  font-size: 44px;
  line-height: 1;
  letter-spacing: -0.02em;
}
.tier__price-suf {
  font-size: 13px;
  color: var(--ink-3);
  font-weight: 500;
}
.tier__list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}
.tier__list li {
  font-size: 14.5px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.tier__list li::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent-strong);
  flex: 0 0 5px;
  transform: translateY(-2px);
}
.tier .btn { align-self: stretch; justify-content: center; margin-top: 8px; }

.tier__badge {
  position: absolute;
  top: 16px; right: 16px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--accent);
  color: var(--ink);
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 500;
}

/* Detailed comparison table */
.compare-hint { display: none; }
.compare-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}
.compare th, .compare td {
  text-align: left;
  padding: 16px 18px;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.compare thead th {
  font-family: var(--sans);
  font-weight: 500;
  color: var(--ink);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 14px;
  vertical-align: bottom;
}
.compare thead th:not(:first-child) { text-align: center; }
.compare tbody td:not(:first-child) { text-align: center; color: var(--ink-2); }
.compare tbody td:first-child { color: var(--ink); }
.compare .tier-head {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -0.01em;
  display: block;
  margin-bottom: 4px;
}
.compare .tier-price {
  font-size: 12px;
  color: var(--ink-3);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  display: block;
}
.compare .check {
  display: inline-block;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent);
  position: relative;
}
.compare .check::after {
  content: "";
  position: absolute;
  left: 5px; top: 4px;
  width: 4px; height: 8px;
  border: solid var(--ink);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.compare .dash { color: var(--line-2); }
.compare tfoot td {
  font-size: 13px;
  color: var(--ink-3);
  padding-top: 24px;
  border: 0;
}

[data-view="quick"] .compare-wrap,
[data-view="compare"] .tiers { display: none; }

/* =========================================================
   Values grid (About)
   ========================================================= */

.values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--green-line);
  border: 1px solid var(--green-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 56px;
}
.value {
  background: var(--green);
  padding: 36px 32px;
  display: grid;
  gap: 16px;
}
.value__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 28px;
  color: var(--accent);
}
.value h3 { color: #f5efde; }
.value p { color: #c0bba5; font-size: 15.5px; line-height: 1.55; max-width: 40ch; }

/* =========================================================
   Founder block
   ========================================================= */

.founder {
  display: grid;
  grid-template-columns: minmax(240px, 340px) 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
  margin-top: 32px;
}
.founder__photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  box-shadow: var(--shadow);
}
.founder__photo picture,
.founder__photo img { width: 100%; height: 100%; display: block; object-fit: cover; }
.founder__photo img { filter: grayscale(0.05); }
.founder__name {
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 40px);
  margin: 0 0 6px;
}
.founder__title {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 24px;
}
.founder__body p {
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.65;
  margin-bottom: 14px;
  max-width: 56ch;
}

/* =========================================================
   Contact / form
   ========================================================= */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.contact-info dt {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 24px;
  margin-bottom: 6px;
}
.contact-info dd {
  margin: 0;
  font-size: 18px;
  color: var(--ink);
}
.contact-info a { color: inherit; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; }
.contact-info a:hover { text-decoration-color: var(--accent-strong); }

.form {
  display: grid;
  gap: 18px;
}
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}
.field label .req { color: var(--accent-strong); }
.field input,
.field select,
.field textarea {
  font-family: var(--sans);
  font-size: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
  transition: border-color 150ms, box-shadow 150ms;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(20,32,28,0.06);
}
.field textarea { min-height: 130px; resize: vertical; }
.form .btn { justify-self: start; }

/* =========================================================
   Sticky free-month CTA
   ========================================================= */

.sticky-cta {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px 12px 20px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 999px;
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0;
  box-shadow: 0 8px 24px rgba(20,22,18,0.18), 0 2px 6px rgba(20,22,18,0.10);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 260ms ease, transform 260ms ease, background 180ms;
}
.sticky-cta.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.sticky-cta:hover { background: var(--green); }
.sticky-cta__arr {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* =========================================================
   Tax banner (Services top strip)
   ========================================================= */

.tax-strip {
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.tax-strip__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14.5px;
  flex-wrap: wrap;
}
.tax-strip__pill {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--accent);
  color: var(--ink);
  padding: 4px 10px;
  border-radius: 999px;
}
.tax-strip a { margin-left: auto; }

/* =========================================================
   Closing CTA block
   ========================================================= */

.cta-block {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: end;
  padding: clamp(56px, 7vw, 96px) clamp(32px, 5vw, 72px);
  background: var(--green);
  color: #f5efde;
  border-radius: var(--radius-lg);
  margin-top: var(--section-pad);
}
.cta-block h2 { color: #f5efde; max-width: 14ch; }
.cta-block p { color: #cbc4ad; font-size: 18px; line-height: 1.5; max-width: 40ch; margin-top: 16px; }
.cta-block__ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-block .btn--ghost { color: #f5efde; border-color: rgba(255,255,255,0.4); }
.cta-block .btn--ghost:hover { background: rgba(255,255,255,0.08); color: #fff; }

/* =========================================================
   Footer
   ========================================================= */

.site-footer {
  background: var(--green-deep);
  color: #cbc4ad;
  padding: 72px 0 32px;
  margin-top: var(--section-pad);
}
.site-footer h4 {
  color: #f5efde;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-grid a {
  color: #cbc4ad;
  text-decoration: none;
  font-size: 14.5px;
  display: block;
  padding: 4px 0;
}
/* Keep the footer brand horizontal (overrides the block rule above) */
.footer-grid .brand { display: inline-flex; padding: 0; }
.footer-grid a:hover { color: #f5efde; }
.footer-grid .brand { color: #f5efde; }
.footer-grid .brand i { color: var(--accent); }
.footer-tag {
  color: #9d9784;
  font-size: 14px;
  max-width: 32ch;
  margin-top: 14px;
  line-height: 1.5;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  color: #9d9784;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-bottom a { color: #cbc4ad; text-decoration: none; }
.footer-bottom a:hover { color: #f5efde; }

/* =========================================================
   AI/crypto pill (subtle differentiator marker)
   ========================================================= */

.ai-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-2);
  letter-spacing: 0.01em;
}
.ai-pill::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-strong);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* =========================================================
   Tweaks panel (accent intensity)
   ========================================================= */

.tweaks {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 60;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 16px 18px 18px;
  min-width: 280px;
  display: none;
}
.tweaks.is-open { display: block; }
.tweaks h5 {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 12px;
  font-weight: 500;
}
.tweaks__row { display: grid; gap: 8px; }
.tweaks__label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--ink);
  font-weight: 500;
}
.tweaks__label span { color: var(--ink-3); font-weight: 400; font-variant-numeric: tabular-nums; }
.tweaks input[type="range"] {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: var(--line);
  border-radius: 999px;
  outline: none;
}
.tweaks input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  background: var(--accent);
  border: 1px solid var(--accent-strong);
  border-radius: 50%;
  cursor: pointer;
}
.tweaks input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px;
  background: var(--accent);
  border: 1px solid var(--accent-strong);
  border-radius: 50%;
  cursor: pointer;
}
.tweaks__swatches {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 4px;
}
.tweaks__swatch {
  height: 24px;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
}
.tweaks__swatch.is-active { box-shadow: 0 0 0 2px var(--ink) inset; }
.tweaks__close {
  position: absolute;
  top: 10px; right: 10px;
  background: none; border: 0; cursor: pointer;
  color: var(--ink-3); font-size: 16px; line-height: 1;
  padding: 4px;
}
.tweaks__close:hover { color: var(--ink); }
.tweaks__reset {
  margin-top: 12px;
  font-size: 12px;
  color: var(--ink-3);
  background: none;
  border: 0;
  cursor: pointer;
  padding: 4px 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.tweaks__reset:hover { color: var(--ink); }

/* =========================================================
   Legal pages (Terms, Privacy)
   ========================================================= */

.legal {
  padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 7vw, 96px);
}
.legal__head {
  max-width: 820px;
  margin: 0 auto clamp(36px, 5vw, 56px);
  padding: 0 var(--gutter);
}
.legal__head .eyebrow { margin-bottom: 18px; }
.legal__head h1 { font-size: clamp(40px, 5.5vw, 68px); }
.legal__lead {
  font-family: var(--serif);
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.5;
  color: var(--ink-2);
  margin-top: 22px;
  max-width: 60ch;
}
.legal__meta {
  margin-top: 24px;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.legal__body {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.legal__body section { margin-bottom: 40px; }
.legal__body h2 {
  font-size: clamp(22px, 2.4vw, 30px);
  margin: 0 0 18px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.legal__body h2 .n {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-strong);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 8px;
}
.legal__body h3 { font-size: 19px; margin: 24px 0 8px; }
.legal__body p {
  color: var(--ink-2);
  font-size: 16.5px;
  line-height: 1.7;
  margin-bottom: 16px;
}
.legal__body ul {
  color: var(--ink-2);
  font-size: 16.5px;
  line-height: 1.65;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}
.legal__body ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
}
.legal__body ul li::before {
  content: "";
  position: absolute;
  left: 2px; top: 11px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent-strong);
}
.legal__body a {
  color: var(--green);
  text-decoration: underline;
  text-decoration-color: var(--line-2);
  text-underline-offset: 3px;
}
.legal__body a:hover { text-decoration-color: var(--accent-strong); }
.legal__body strong { color: var(--ink); font-weight: 600; }
.legal__note {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.6;
}
.legal__contact {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 30px;
  margin-top: 8px;
}
.legal__contact dl { margin: 0; display: grid; gap: 4px; }
.legal__contact dt {
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-3); margin-top: 14px;
}
.legal__contact dd { margin: 0; font-size: 17px; color: var(--ink); }

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 960px) {
  body { font-size: 16px; }
  .hero__grid,
  .split,
  .three-up__head,
  .pricing-head,
  .contact-grid,
  .cta-block { grid-template-columns: 1fr; }
  .split--media-left .split__media { order: 0; }
  .hero__photo { aspect-ratio: 16 / 11; }
  .three-up { grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; }
  .tiers { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .founder { grid-template-columns: 1fr; }
  .founder__photo { max-width: 280px; }
  .form .row { grid-template-columns: 1fr; }
  /* Tablet header: tighten so the full nav never overflows */
  .site-header__inner { gap: 16px; }
  .nav { gap: 2px; }
  .nav a { padding: 8px 11px; }
}

@media (max-width: 640px) {
  :root { --gutter: 20px; }
  .nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-header__inner > .btn--accent { display: none; }
  /* Hero: drop the wide desktop side padding, use the mobile gutter */
  .hero { padding-left: var(--gutter); padding-right: var(--gutter); }
  .hero__ctas .btn { flex: 1 1 auto; justify-content: center; }
  .three-up { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; padding-bottom: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .compare { font-size: 13.5px; min-width: 580px; }
  .compare th, .compare td { padding: 12px 10px; }
  .compare-wrap {
    border: 1px solid var(--line);
    border-radius: 14px;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
            mask-image: linear-gradient(to right, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
  }
  .compare-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: var(--ink-3);
    margin: 0 0 12px;
  }
  .sticky-cta { bottom: 16px; right: 16px; padding-left: 16px; }
  .tweaks { left: 16px; bottom: 16px; right: 16px; }
}

/* Print */
@media print {
  .sticky-cta, .tweaks, .site-header, .mobile-menu, .mobile-menu__backdrop { display: none; }
}
