@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;0,6..72,600;1,6..72,400&family=Work+Sans:wght@400;500;600&display=swap');

:root {
  --ink: #2a2019;
  --ink-soft: #55483c;
  --paper: #faf5ee;
  --paper-raised: #f2e9db;
  --brown: #8a4f23;
  --brown-deep: #63391a;
  --green: #3d5a3d;
  --line: #ddccb5;
  --code-bg: #211a13;
  --code-text: #e9dcc7;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Work Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

h1, h2, h3 {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h1 { font-size: 3.1rem; font-weight: 500; }
h2 { font-size: 2rem; }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; max-width: 62ch; color: var(--ink-soft); }

a { color: var(--brown-deep); }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Nav */
header.site {
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(250, 245, 238, 0.92);
  backdrop-filter: blur(6px);
  z-index: 10;
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.brand {
  font-family: 'Newsreader', serif;
  font-size: 1.35rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--brown), var(--green));
  flex: none;
}

nav.links {
  display: flex;
  gap: 28px;
  font-size: 0.95rem;
}

nav.links a {
  color: var(--ink-soft);
  text-decoration: none;
}

nav.links a:hover, nav.links a.active { color: var(--ink); }

.nav-cta {
  border: 1px solid var(--ink);
  padding: 8px 18px;
  border-radius: 3px;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.9rem;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--ink); color: var(--paper); }

/* Hero */
.hero {
  padding: 96px 0 72px;
  border-bottom: 1px solid var(--line);
}

.hero .eyebrow {
  font-size: 0.85rem;
  color: var(--brown-deep);
  margin-bottom: 18px;
}

.hero h1 { max-width: 15ch; }

.hero .lede {
  font-size: 1.2rem;
  max-width: 46ch;
  margin-top: 20px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  align-items: center;
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
  border: none;
  padding: 13px 26px;
  border-radius: 3px;
  font-size: 0.95rem;
  text-decoration: none;
  font-weight: 500;
}

.btn-secondary {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}

/* Panel / stat strip */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat-cell {
  padding: 28px 32px;
  border-right: 1px solid var(--line);
}
.stat-cell:last-child { border-right: none; }

.stat-cell .num {
  font-family: 'Newsreader', serif;
  font-size: 2.1rem;
  color: var(--brown-deep);
}

.stat-cell .label {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin-top: 4px;
}

/* Sections */
section { padding: 76px 0; }
section.tight { padding: 56px 0; }
section + section { border-top: 1px solid var(--line); }

.section-head { max-width: 56ch; margin-bottom: 44px; }

/* Steps (real sequence -> numbered badges justified) */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}

.step { position: relative; padding-left: 4px; }

.step-badge {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Newsreader', serif;
  font-size: 1rem;
  color: var(--brown-deep);
  margin-bottom: 16px;
}

.step h3 { margin-bottom: 8px; }
.step p { font-size: 0.95rem; }

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.feature {
  background: var(--paper);
  padding: 32px;
}

.feature h3 { font-size: 1.05rem; margin-bottom: 8px; }
.feature p { font-size: 0.92rem; margin-bottom: 0; }

/* Code block */
.code-block {
  background: var(--code-bg);
  color: var(--code-text);
  border-radius: 6px;
  padding: 24px 28px;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 0.85rem;
  overflow-x: auto;
  line-height: 1.7;
}

.code-block .comment { color: #9c8a6f; }
.code-block .string { color: #c9a876; }
.code-block .key { color: #9fb894; }

/* Pricing */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.price-card {
  border: 1px solid var(--line);
  padding: 32px;
  border-radius: 4px;
}

.price-card.featured {
  border-color: var(--brown);
  background: var(--paper-raised);
}

.price-card .tier { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 10px; }
.price-card .amount { font-family: 'Newsreader', serif; font-size: 2.3rem; margin-bottom: 4px; }
.price-card .amount .per { font-size: 0.95rem; color: var(--ink-soft); font-family: 'Work Sans', sans-serif; }

.price-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.price-list li { padding: 6px 0; border-top: 1px solid var(--line); }
.price-list li:first-child { border-top: none; }

/* Table */
table.regions {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
table.regions th, table.regions td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
table.regions th { color: var(--ink-soft); font-weight: 500; font-size: 0.82rem; }

/* Footer */
footer.site {
  border-top: 1px solid var(--line);
  padding: 48px 0;
  margin-top: 0;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-col h4 {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin: 0 0 12px;
  font-weight: 500;
}

.footer-col a {
  display: block;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 4px 0;
}

.footer-fine {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--ink-soft);
}

/* Docs page */
.docs-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
}

.docs-nav {
  font-size: 0.9rem;
  position: sticky;
  top: 88px;
  align-self: start;
}
.docs-nav .group { margin-bottom: 24px; }
.docs-nav .group-title { color: var(--ink-soft); font-size: 0.78rem; margin-bottom: 8px; }
.docs-nav a { display: block; color: var(--ink-soft); text-decoration: none; padding: 4px 0; }
.docs-nav a.active { color: var(--brown-deep); }

.docs-content h2 { margin-top: 0; }
.docs-content h3 { margin-top: 2em; }

@media (max-width: 860px) {
  .hero h1 { font-size: 2.3rem; }
  .stat-strip, .steps, .feature-grid, .price-grid { grid-template-columns: 1fr; }
  .stat-cell { border-right: none; border-bottom: 1px solid var(--line); }
  .docs-layout { grid-template-columns: 1fr; }
  .docs-nav { position: static; }
  nav.links { display: none; }
}
