/* getledgerpost.com. One stylesheet, no script. Brand: docs/product/BRAND.md (oxblood tile #8C2F46, deep #6A2A38 for
   the mark on light, rose #E7A3B4 on dark, ink #1A1A1A / #F1F1F1; a bold system wordmark). */

:root {
  --brand: #8c2f46;
  --brand-hover: #7a2739;
  --deep: #6a2a38;
  --rose: #e7a3b4;
  --ink: #1a1a1a;
  --text: #1f1c1d;
  --muted: #605a5c;
  --paper: #ffffff;
  --paper-tint: #faf6f7;
  --card: #ffffff;
  --line: #e9e2e4;
  --mark: var(--deep);
  --held: #b98900;
  --held-bg: #fff8e5;
  --focus: #1f6feb;
  --font:
    system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(26, 26, 26, 0.06), 0 12px 32px -16px rgba(106, 42, 56, 0.25);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #f1f1f1;
    --muted: #b7adb0;
    --paper: #151214;
    --paper-tint: #1c1719;
    --card: #211b1e;
    --line: #35292d;
    --mark: var(--rose);
    --held: #e2b84a;
    --held-bg: #2a2314;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px -16px rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 4.5rem;
}

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.12;
  font-weight: 750;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2rem, 1.2rem + 3.6vw, 3.5rem);
}

h2 {
  font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.4rem);
}

h3 {
  font-size: 1.15rem;
  line-height: 1.3;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:focus-visible,
.button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

small {
  font-size: 0.875rem;
}

.wrap {
  width: 100%;
  max-width: 68rem;
  margin: 0 auto;
  padding-inline: 1rem;
}

@media (min-width: 48em) {
  .wrap {
    padding-inline: 2rem;
  }
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  padding: 0.5rem 0.75rem;
  background: var(--brand);
  color: #fff;
  border-radius: 8px;
  z-index: 100;
}

.skip:focus {
  top: 1rem;
}

/* Lockup */

.lockup {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--text);
}

.mark {
  display: block;
  fill: var(--mark);
  flex: none;
}

.wordmark {
  font-weight: 750;
  letter-spacing: -0.02em;
  font-size: 1.35rem;
  line-height: 1;
}

.lockup--small .wordmark {
  font-size: 1.1rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header__row {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4rem;
}

.site-nav {
  display: none;
  gap: 1.5rem;
  margin-left: 1.5rem;
  font-weight: 550;
  font-size: 0.95rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
}

.site-nav a:hover {
  color: var(--text);
}

.site-header__cta {
  display: none;
  margin-left: auto;
}

@media (min-width: 48em) {
  .site-nav,
  .site-header__cta {
    display: flex;
  }
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.9rem;
  padding: 0.65rem 1.2rem;
  border-radius: 10px;
  font-weight: 650;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  white-space: nowrap;
}

.button--primary {
  background: var(--brand);
  color: #fff;
}

.button--primary:hover {
  background: var(--brand-hover);
}

.button--primary.is-pending {
  background: transparent;
  color: var(--muted);
  border-color: var(--line);
  cursor: default;
}

.button--secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}

.button--secondary:hover {
  border-color: var(--muted);
}

.button--small {
  min-height: 2.4rem;
  padding: 0.45rem 0.9rem;
  font-size: 0.9rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

/* Hero */

.hero {
  padding-block: clamp(2.5rem, 4vw + 1rem, 5rem) clamp(2rem, 4vw, 4rem);
}

.hero__grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 60em) {
  .hero__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 6fr);
    gap: 4rem;
  }
}

.eyebrow {
  margin-bottom: 1rem;
  font-size: 0.85rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--brand);
}

@media (prefers-color-scheme: dark) {
  .eyebrow {
    color: var(--rose);
  }
}

.lede {
  margin-top: 1.25rem;
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem);
  line-height: 1.5;
  color: var(--muted);
  max-width: 36em;
  text-wrap: pretty;
}

.fineprint {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 44em;
  text-wrap: pretty;
}

/* The dry-run ledger card */

.ledger {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  font-size: 0.95rem;
}

.ledger__head,
.ledger__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.1rem;
}

.ledger__head {
  border-bottom: 1px solid var(--line);
}

.ledger__title {
  font-weight: 650;
  white-space: nowrap;
}

.ledger__foot {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.ledger__link {
  color: var(--brand);
  font-weight: 600;
}

@media (prefers-color-scheme: dark) {
  .ledger__link {
    color: var(--rose);
  }
}

.chip {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

.chip--quiet {
  background: var(--paper-tint);
  border: 1px solid var(--line);
  color: var(--muted);
}

.ledger__rows {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ledger__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.1rem;
  border-bottom: 1px solid var(--line);
}

.ledger__row:last-child {
  border-bottom: 0;
}

.ledger__event,
.ledger__record {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.ledger__event strong,
.ledger__record strong {
  font-weight: 650;
  overflow-wrap: anywhere;
}

.ledger__event small,
.ledger__record small {
  color: var(--muted);
  font-size: 0.82rem;
}

.ledger__arrow {
  color: var(--muted);
}

.ledger__row--held {
  background: var(--held-bg);
}

.ledger__row--held .ledger__record strong {
  color: var(--held);
}

/* Sections */

.section {
  padding-block: clamp(3rem, 6vw, 5.5rem);
}

.section--tinted {
  background: var(--paper-tint);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section__intro {
  margin-top: 0.9rem;
  max-width: 44em;
  font-size: 1.1rem;
  color: var(--muted);
  text-wrap: pretty;
}

.features,
.steps,
.plans {
  list-style: none;
  margin: 2.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.features {
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

.feature {
  padding: 1.35rem 1.35rem 1.5rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.feature p,
.step p,
.plan p {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.98rem;
  text-wrap: pretty;
}

/* Steps */

.steps {
  gap: 1.25rem;
  counter-reset: step;
}

@media (min-width: 48em) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.step {
  position: relative;
  padding: 1.35rem 1.35rem 1.5rem 1.35rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.step__number {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.9rem;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
}

/* Plans */

.plans {
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  align-items: stretch;
}

.plan {
  display: flex;
  flex-direction: column;
  padding: 1.35rem 1.35rem 1.5rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.plan--featured {
  border-color: var(--brand);
  box-shadow: inset 0 0 0 1px var(--brand);
}

.plan__price {
  margin-top: 0.75rem;
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  color: var(--text);
}

.plan__price strong {
  font-size: 2rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1;
}

.plan__price span {
  color: var(--muted);
  font-size: 0.95rem;
}

.plan__meter {
  margin-top: 0.35rem;
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
}

#pricing .fineprint {
  margin-top: 1.25rem;
}

/* Support */

.support {
  display: grid;
  gap: 2rem;
}

@media (min-width: 60em) {
  .support {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 4rem;
  }
}

.support__facts dl {
  margin: 0;
  display: grid;
  gap: 1rem;
}

.support__facts dl > div {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.support__facts dt {
  font-weight: 650;
  font-size: 0.95rem;
}

.support__facts dd {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* Footer */

.site-footer {
  padding-block: 2.5rem 3rem;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--muted);
}

.site-footer__grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 48em) {
  .site-footer__grid {
    grid-template-columns: auto 1fr;
    align-items: start;
  }

  .site-footer__attribution {
    grid-column: 1 / -1;
  }
}

.site-footer__brand p {
  margin-top: 0.75rem;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

@media (min-width: 48em) {
  .site-footer__links {
    justify-content: flex-end;
  }
}

.site-footer__attribution {
  max-width: 60em;
  text-wrap: pretty;
}

/* Not found */

.notfound {
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding-block: 3rem;
}

.notfound h1 {
  margin-top: 2rem;
}

.notfound .fineprint {
  margin-top: 2rem;
}
