/* Featherweight — shared stylesheet */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Inter+Tight:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --paper:        #f7f5ef;
  --paper-warm:   #f1eee4;
  --surface:      #fefdfa;
  --ink:          #18181b;
  --ink-soft:     #2c2c30;
  --muted:        #5c5b58;
  --muted-soft:   #8a8884;
  --rule:         #e6e1d3;
  --rule-soft:    #efece1;
  --accent:       #1f3b2d;
  --accent-soft:  #2d5742;
  --accent-tint:  #e4ece6;
  --warn:         #8a4a1f;

  --serif:  'Fraunces', 'Iowan Old Style', 'Apple Garamond', Georgia, serif;
  --sans:   'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono:   'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --measure: 64ch;
  --shell:   1120px;
  --shell-narrow: 760px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* ---------- Layout shells ---------- */

.shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 32px;
}
.shell--narrow { max-width: var(--shell-narrow); }

/* ---------- Header ---------- */

.site-header {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(8px);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.01em;
}
.brand__mark {
  width: 26px;
  height: 26px;
  color: var(--accent);
}
.nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.15s ease;
}
.nav a:hover { color: var(--accent); }
.nav a.is-active { color: var(--accent); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  padding: 11px 20px;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  line-height: 1;
}
.btn--primary {
  background: var(--accent);
  color: var(--paper);
}
.btn--primary:hover {
  background: var(--accent-soft);
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule);
}
.btn--ghost:hover {
  border-color: var(--ink);
}
.btn--lg {
  padding: 14px 24px;
  font-size: 16px;
}

/* ---------- Typography ---------- */

.display {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.08;
  color: var(--ink);
  margin: 0;
}
.display--xl { font-size: clamp(40px, 6vw, 72px); }
.display--lg { font-size: clamp(34px, 4.5vw, 52px); }
.display--md { font-size: clamp(28px, 3.5vw, 38px); }

.eyebrow {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 16px;
}

.lede {
  font-size: 20px;
  line-height: 1.55;
  color: var(--muted);
  margin: 24px 0 0;
  max-width: 56ch;
}

h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-soft); }

code, .mono {
  font-family: var(--mono);
  font-size: 0.92em;
  background: var(--paper-warm);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--rule-soft);
}

/* ---------- Hero ---------- */

.hero {
  padding: 96px 0 80px;
  border-bottom: 1px solid var(--rule);
}
.hero__pitch {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 28px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.hero__pitch::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 1px;
  background: var(--accent);
}
.hero__sub {
  margin-top: 28px;
  font-size: 18px;
  color: var(--muted);
  max-width: 52ch;
}
.hero__cta {
  margin-top: 40px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero__signal {
  margin-top: 28px;
  font-size: 14px;
  color: var(--muted-soft);
}

/* ---------- Sections ---------- */

.section {
  padding: 96px 0;
  border-bottom: 1px solid var(--rule);
}
.section--tight { padding: 72px 0; }
.section__head {
  max-width: 56ch;
  margin-bottom: 56px;
}
.section__head p {
  color: var(--muted);
  font-size: 18px;
  margin-top: 16px;
}

/* ---------- Pillars ---------- */

.pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.pillar {
  background: var(--paper);
  padding: 40px 36px;
}
.pillar__num {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 14px;
  color: var(--accent);
  letter-spacing: 0.04em;
}
.pillar__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 24px;
  letter-spacing: -0.02em;
  margin: 12px 0 14px;
  line-height: 1.2;
}
.pillar__body {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
}

/* ---------- Comparison table ---------- */

.compare-wrap {
  overflow-x: auto;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--surface);
}
.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 700px;
}
.compare th,
.compare td {
  padding: 18px 20px;
  text-align: left;
  border-bottom: 1px solid var(--rule-soft);
  vertical-align: top;
}
.compare thead th {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--paper-warm);
  border-bottom: 1px solid var(--rule);
}
.compare tbody th {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.compare tr:last-child td,
.compare tr:last-child th { border-bottom: 0; }
.compare .row-fw {
  background: var(--accent-tint);
}
.compare .row-fw th,
.compare .row-fw td { color: var(--ink); font-weight: 600; }
.compare .row-fw th { color: var(--accent); }

/* ---------- Story block ---------- */

.story {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
  align-items: start;
}
.story__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 3.5vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}
.story__body p {
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.7;
}
.story__body a {
  font-weight: 500;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 56px 0 64px;
  background: var(--paper);
  border-top: 1px solid var(--rule);
}
.site-footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  flex-wrap: wrap;
}
.site-footer__credit {
  color: var(--muted);
  font-size: 14px;
  max-width: 36ch;
}
.site-footer__credit strong { color: var(--ink); font-weight: 600; }
.site-footer__links {
  display: flex;
  gap: 24px;
  font-size: 14px;
}
.site-footer__links a {
  color: var(--muted);
  text-decoration: none;
}
.site-footer__links a:hover { color: var(--accent); }

.badge-example {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-soft);
  font-weight: 500;
  text-decoration: none;
}
.badge-example svg { color: var(--accent); }
.badge-example:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Pricing ---------- */

.price-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 56px;
}
.price-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 40px;
  display: flex;
  flex-direction: column;
}
.price-card--paid {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.price-card__tag {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.price-card--paid .price-card__tag { color: #a8c2b3; }
.price-card__name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 32px;
  letter-spacing: -0.02em;
  margin: 8px 0 12px;
}
.price-card__price {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 48px;
  letter-spacing: -0.03em;
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 8px 0 4px;
  line-height: 1;
}
.price-card__price small {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}
.price-card--paid .price-card__price small { color: #a8a8a4; }
.price-card__pitch {
  color: var(--muted);
  font-size: 16px;
  margin: 12px 0 28px;
}
.price-card--paid .price-card__pitch { color: #c4c2bd; }
.price-card__features {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
}
.price-card__features li {
  font-size: 15px;
  line-height: 1.5;
  padding-left: 26px;
  position: relative;
  color: var(--ink-soft);
}
.price-card--paid .price-card__features li { color: #d4d3ce; }
.price-card__features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.price-card--paid .price-card__features li::before {
  border-color: #6ea88a;
}
.price-card__features li.is-absent {
  color: var(--muted-soft);
}
.price-card__features li.is-absent::before {
  border: 0;
  background: var(--rule);
  height: 2px;
  width: 12px;
  top: 11px;
  transform: none;
}
.price-card__features li.is-soon::after {
  content: "coming soon";
  margin-left: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-soft);
  padding: 2px 6px;
  border: 1px solid var(--rule);
  border-radius: 4px;
}
.price-card--paid .price-card__features li.is-soon::after {
  color: #a8a8a4;
  border-color: #3a3a3e;
}
.price-card .btn--primary { width: 100%; }
.price-card--paid .btn--primary {
  background: var(--paper);
  color: var(--ink);
}
.price-card--paid .btn--primary:hover { background: #fff; }

.price-banner {
  margin-top: 48px;
  padding: 28px 32px;
  background: var(--paper-warm);
  border: 1px solid var(--rule);
  border-radius: 12px;
  display: flex;
  gap: 24px;
  align-items: center;
}
.price-banner__icon {
  flex-shrink: 0;
  color: var(--accent);
}
.price-banner__body {
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.55;
}
.price-banner__body strong { color: var(--ink); font-weight: 600; }

/* ---------- FAQ ---------- */

.faq { margin-top: 56px; }
.faq__item {
  border-top: 1px solid var(--rule);
  padding: 28px 0;
}
.faq__item:last-child { border-bottom: 1px solid var(--rule); }
.faq__q {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
  color: var(--ink);
}
.faq__a {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
  margin: 0;
  max-width: 68ch;
}

/* ---------- Article / blog post ---------- */

.article {
  padding: 80px 0 120px;
}
.article__meta {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--muted);
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
}
.article__meta span { display: inline-flex; align-items: center; gap: 8px; }
.article__meta .dot {
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--muted-soft);
  display: inline-block;
}
.article__title {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.025em;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.1;
  margin: 0 0 24px;
}
.article__lede {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0 0 56px;
  font-style: italic;
}
.prose {
  font-size: 18px;
  line-height: 1.72;
  color: var(--ink-soft);
  max-width: 64ch;
}
.prose h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 30px;
  letter-spacing: -0.02em;
  margin: 64px 0 20px;
  line-height: 1.2;
}
.prose h2 .num {
  display: inline-block;
  font-size: 14px;
  color: var(--accent);
  letter-spacing: 0.08em;
  font-family: var(--sans);
  font-weight: 600;
  text-transform: uppercase;
  margin-right: 14px;
  vertical-align: 4px;
}
.prose h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.01em;
  margin: 40px 0 14px;
}
.prose p { margin: 0 0 1.2em; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 1.4em; }
.prose li { margin-bottom: 10px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose blockquote {
  border-left: 3px solid var(--accent);
  margin: 32px 0;
  padding: 4px 0 4px 24px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  line-height: 1.45;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.prose pre {
  background: var(--ink);
  color: #d8d7d2;
  padding: 20px 24px;
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.6;
  overflow-x: auto;
  margin: 24px 0;
}
.prose pre code {
  background: transparent;
  border: 0;
  padding: 0;
  color: inherit;
  font-size: inherit;
}
.prose hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 48px 0;
}

.callout {
  background: var(--paper-warm);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
  padding: 24px 28px;
  margin: 32px 0;
  border-radius: 0 8px 8px 0;
}
.callout p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ink-soft); }
.callout p + p { margin-top: 10px; }
.callout strong { color: var(--ink); }

.article__cta {
  margin-top: 80px;
  padding: 40px;
  background: var(--paper-warm);
  border-radius: 12px;
  border: 1px solid var(--rule);
  text-align: center;
}
.article__cta h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 26px;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.article__cta p {
  color: var(--muted);
  margin: 0 0 24px;
  font-size: 16px;
}

/* ---------- Architecture diagram (inline SVG style) ---------- */

.diagram {
  margin: 40px 0;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 12px;
}
.diagram__caption {
  font-size: 14px;
  color: var(--muted);
  margin-top: 16px;
  font-family: var(--sans);
  text-align: center;
}

/* ---------- Pricing-page secondary ---------- */

.section--paper-warm { background: var(--paper-warm); }

.note-strip {
  padding: 28px 32px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--surface);
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-top: 56px;
}
.note-strip strong { color: var(--ink); font-weight: 600; }

/* ---------- Responsive ---------- */

@media (max-width: 820px) {
  .pillars { grid-template-columns: 1fr; }
  .story { grid-template-columns: 1fr; gap: 24px; }
  .price-grid { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 56px; }
  .section { padding: 64px 0; }
  .nav { gap: 18px; }
  .nav a:not(.btn) { display: none; }
  .shell { padding: 0 24px; }
  .price-banner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .price-card { padding: 28px 24px; }
  .article { padding: 56px 0 80px; }
}
