:root {
  --ink: #14140f;
  --paper: #fcfbf7;
  --yellow: #fff043;
  --green: #1e5c3d;
  --rule: #d8d4c8;
  --rule-strong: #b9b4a4;
  --max: 720px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Wix Madefor Text', sans-serif;
  font-size: 17px;
  line-height: 1.55;
}

a { color: inherit; }

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

/* Nav */

.nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.25rem 1rem;
  gap: 1rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--ink);
  font-family: 'Wix Madefor Display', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
}

.nav-brand em {
  font-style: normal;
  font-weight: 500;
  color: #4a4936;
}

.nav-mark { width: 22px; height: 22px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-links > a:first-child {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
}

/* Buttons */

.btn {
  display: inline-block;
  text-decoration: none;
  font-family: 'Wix Madefor Display', sans-serif;
  font-weight: 600;
  border-radius: 3px;
  white-space: nowrap;
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
  padding: 0.55rem 1.1rem;
  font-size: 0.92rem;
}

.btn-lg {
  padding: 0.85rem 1.6rem;
  font-size: 1rem;
}

/* Hero */

.hero {
  background: var(--yellow);
  min-height: 100vh;
  box-sizing: border-box;
  padding: 5rem 1.25rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-inner {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero h1 {
  font-family: 'Climate Crisis', cursive;
  font-weight: 400;
  font-size: clamp(3rem, 9vw, 5.5rem);
  line-height: 1;
  margin: 0 0 1.1rem;
}

.hero-sub {
  font-family: 'Wix Madefor Text', sans-serif;
  font-size: 1.15rem;
  max-width: 38ch;
  color: #2a2a1f;
  margin: 0 0 2.25rem;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}

.hero-note {
  font-size: 0.85rem;
  color: #4a4936;
}

.hero .btn-primary {
  background: var(--ink);
  color: var(--yellow);
}

/* Ledger spine layout */

.ledger {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
  border-left: 1px solid var(--rule);
}

.line-block {
  padding: 2.25rem 0 2.25rem 1.5rem;
  border-bottom: 1px solid var(--rule);
}

.line-block:last-child { border-bottom: none; }

.line-block-title {
  font-family: 'Wix Madefor Display', sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
  margin: 0 0 1.4rem;
}

/* Steps */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

.steps li {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: 0.75rem;
}

.step-num {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  font-size: 0.95rem;
  color: #6b6858;
  padding-top: 0.15rem;
}

.steps strong {
  font-family: 'Wix Madefor Display', sans-serif;
  font-weight: 600;
  display: block;
  margin-bottom: 0.2rem;
}

.steps p { margin: 0; color: #3a3930; font-size: 0.95rem; }

/* Line items */

.line-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
  border-top: 1px dotted var(--rule-strong);
}

.line-block > .line-item:first-of-type { border-top: none; padding-top: 0; }

.line-item-desc strong {
  font-family: 'Wix Madefor Display', sans-serif;
  font-weight: 600;
  display: block;
  margin-bottom: 0.15rem;
}

.line-item-desc p { margin: 0; color: #3a3930; font-size: 0.92rem; max-width: 42ch; }

.line-item-link {
  flex-shrink: 0;
  text-decoration: none;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.82rem;
  font-weight: 500;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 1px;
}

.line-item-link-static {
  border-bottom-color: transparent;
  color: #6b6858;
}

/* Pricing */

.pricing-figures {
  display: flex;
  align-items: baseline;
  gap: 1.75rem;
  flex-wrap: wrap;
}

.figure {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.figure-num {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  font-size: 3.2rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.figure-green { color: var(--green); }

.figure-label {
  font-size: 0.85rem;
  color: #6b6858;
}

.figure-divider {
  font-family: 'Wix Madefor Text', sans-serif;
  font-style: italic;
  color: #6b6858;
  align-self: center;
}

.pricing-note {
  margin: 1.5rem 0 0;
  font-size: 0.9rem;
  color: #6b6858;
}

/* FAQ */

.faq details {
  border-top: 1px dotted var(--rule-strong);
  padding: 0.9rem 0;
}

.faq details:first-child { border-top: none; padding-top: 0; }

.faq summary {
  cursor: pointer;
  font-family: 'Wix Madefor Display', sans-serif;
  font-weight: 600;
  font-size: 0.98rem;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::before {
  content: '+';
  display: inline-block;
  width: 1.1rem;
  font-family: 'IBM Plex Mono', monospace;
  color: #6b6858;
}

.faq details[open] summary::before { content: '–'; }

.faq details p {
  margin: 0.6rem 0 0 1.1rem;
  color: #3a3930;
  font-size: 0.94rem;
  max-width: 52ch;
}

/* Final CTA */

.final-cta {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.5rem 1.25rem 4rem;
  text-align: left;
}

.final-cta h2 {
  font-family: 'Wix Madefor Display', sans-serif;
  font-weight: 700;
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  margin: 0 0 1.4rem;
}

/* Footer */

.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.85rem;
  color: #6b6858;
  border-top: 1px solid var(--rule);
}

.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* Focus visibility */

a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}

/* Mobile */

@media (max-width: 560px) {
  body { font-size: 16px; }
  .nav { padding-top: 1.1rem; }
  .nav-brand span { display: none; }
  .ledger { border-left: none; }
  .line-block { padding-left: 0; }
  .line-item { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
  .pricing-figures { gap: 1.25rem; }
  .figure-num { font-size: 2.5rem; }
}
