@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,500;0,8..60,600;1,8..60,400&family=Inter:wght@400;500;600&display=swap');

:root {
  --paper: #faf6ef;
  --paper-raised: #f1e8da;
  --ink: #241b14;
  --ink-soft: #5c5044;
  --rust: #b5502c;
  --rust-deep: #8c3a1e;
  --line: #e3d6c4;
  --code-bg: #241b14;
  --code-text: #f1e6d4;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

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

h1 { font-size: 2.9rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; max-width: 60ch; color: var(--ink-soft); }
a { color: var(--rust-deep); }

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

header.site {
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(250, 246, 239, 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: 'Source Serif 4', serif;
  font-size: 1.3rem;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--rust);
  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: 2px;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.9rem;
}
.nav-cta:hover { background: var(--ink); color: var(--paper); }

/* Mirrored hero: visual left, copy right */
.hero {
  padding: 72px 0 80px;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-copy .eyebrow { font-size: 0.85rem; color: var(--rust-deep); margin-bottom: 16px; }
.hero-copy h1 { max-width: 13ch; }
.hero-copy .lede { font-size: 1.12rem; margin-top: 18px; max-width: 42ch; }

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

.btn-primary {
  background: var(--ink);
  color: var(--paper);
  border: none;
  padding: 13px 26px;
  border-radius: 2px;
  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;
}

/* Manifest visual panel */
.manifest {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 28px;
}

.manifest-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  margin-bottom: 14px;
}

.manifest-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
}
.manifest-row:last-child { border-bottom: none; }

.manifest-row .name { color: var(--ink); }
.manifest-row .meta { color: var(--ink-soft); font-size: 0.8rem; }

.status-pill {
  font-size: 0.74rem;
  padding: 3px 10px;
  border-radius: 20px;
  background: #e4efe1;
  color: #3d5a3d;
}
.status-pill.pending { background: var(--paper); border: 1px solid var(--line); color: var(--ink-soft); }

/* 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: 'Source Serif 4', serif; font-size: 2rem; color: var(--rust-deep); }
.stat-cell .label { color: var(--ink-soft); font-size: 0.88rem; margin-top: 4px; }

section { padding: 76px 0; }
section.tight { padding: 56px 0; }
section + section { border-top: 1px solid var(--line); }
.section-head { max-width: 56ch; margin-bottom: 40px; }

/* List pipeline (real sequence, so ordered list markers are justified) */
.pipeline { border-top: 1px solid var(--line); }

.pipeline-item {
  display: grid;
  grid-template-columns: 64px 1fr 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.pipeline-index {
  font-family: 'Source Serif 4', serif;
  font-size: 1.6rem;
  color: var(--line);
}

.pipeline-item h3 { margin-bottom: 6px; }
.pipeline-item p { font-size: 0.92rem; margin: 0; }

/* 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.02rem; margin-bottom: 8px; }
.feature p { font-size: 0.9rem; margin-bottom: 0; }

/* Code block */
.code-block {
  background: var(--code-bg);
  color: var(--code-text);
  border-radius: 4px;
  padding: 24px 28px;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 0.84rem;
  overflow-x: auto;
  line-height: 1.7;
}
.code-block .comment { color: #a3927b; }
.code-block .string { color: #d99a72; }
.code-block .key { color: #c98a68; }

/* Pricing */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.price-card { border: 1px solid var(--line); padding: 32px; border-radius: 3px; }
.price-card.featured { border-color: var(--rust); background: var(--paper-raised); }
.price-card .tier { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 10px; }
.price-card .amount { font-family: 'Source Serif 4', serif; font-size: 2.2rem; margin-bottom: 4px; }
.price-card .amount .per { font-size: 0.9rem; color: var(--ink-soft); font-family: 'Inter', sans-serif; }
.price-list { list-style: none; padding: 0; margin: 20px 0 0; font-size: 0.88rem; 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.regions { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
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.8rem; }

footer.site { border-top: 1px solid var(--line); padding: 48px 0; }
.footer-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; }
.footer-col h4 { font-size: 0.8rem; 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.8rem; color: var(--ink-soft); }

.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.76rem; margin-bottom: 8px; }
.docs-nav a { display: block; color: var(--ink-soft); text-decoration: none; padding: 4px 0; }
.docs-nav a.active { color: var(--rust-deep); }
.docs-content h2 { margin-top: 0; }
.docs-content h3 { margin-top: 2em; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { order: 2; }
  .manifest { order: 1; }
  .hero-copy h1 { font-size: 2.2rem; }
  .stat-strip, .feature-grid, .price-grid { grid-template-columns: 1fr; }
  .stat-cell { border-right: none; border-bottom: 1px solid var(--line); }
  .pipeline-item { grid-template-columns: 40px 1fr; }
  .pipeline-item p { grid-column: 2 / 3; }
  .docs-layout { grid-template-columns: 1fr; }
  .docs-nav { position: static; }
  nav.links { display: none; }
}
