/* Branchpoint Earth Pipeline — public site styles */
:root {
  --bg: #0c0d10;
  --bg-soft: #121419;
  --surface: #16191f;
  --border: #242830;
  --border-soft: #1c2027;
  --text: #eceff3;
  --text-2: #aab2bd;
  --text-3: #7b838f;
  --accent: #f2c14e;
  --accent-strong: #ffd275;
  --accent-ink: #1a1505;
  --radius: 14px;
  --radius-sm: 10px;
  --container: 1120px;
  --prose: 760px;
  --header-h: 68px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease;
}

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

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 12px;
  text-decoration: none;
  color: var(--accent-ink);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.prose-width {
  max-width: var(--prose);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12, 13, 16, 0.92);
  border-bottom: 1px solid var(--border-soft);
}

@supports (backdrop-filter: blur(10px)) {
  .site-header {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
  flex-wrap: wrap;
  padding: 10px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  min-width: 0;
}

.brand:hover {
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  flex: none;
  width: 34px;
  height: 34px;
}

.brand-name {
  font-size: 0.98rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-name span {
  color: var(--text-3);
  font-weight: 500;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--text-2);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.site-nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  text-decoration: none;
}

.site-nav a.nav-cta {
  color: var(--accent-ink);
  background: var(--accent);
  font-weight: 650;
}

.site-nav a.nav-cta:hover {
  background: var(--accent-strong);
  color: var(--accent-ink);
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 22px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.hero h1 {
  margin: 0 0 22px;
  font-size: clamp(2.35rem, 5.6vw, 3.9rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 700;
  max-width: 16ch;
}

.hero-lead {
  margin: 0 0 18px;
  font-size: clamp(1.125rem, 2.3vw, 1.375rem);
  line-height: 1.55;
  color: var(--text-2);
  max-width: 42ch;
}

.hero-sub {
  margin: 0 0 36px;
  font-size: 1.02rem;
  color: var(--text-3);
  max-width: 58ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease,
    border-color 0.15s ease;
}

.btn:hover {
  text-decoration: none;
}

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

.btn-primary:hover {
  background: var(--accent-strong);
  color: var(--accent-ink);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.fact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.fact-row li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 550;
  color: var(--text-2);
  border: 1px solid var(--border);
  background: var(--bg-soft);
  border-radius: 999px;
  padding: 7px 14px;
}

.fact-row li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

/* ---------- Sections ---------- */
.section {
  padding: 84px 0;
  border-bottom: 1px solid var(--border-soft);
}

.section:last-of-type {
  border-bottom: none;
}

.section-label {
  margin: 0 0 14px;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.section h2 {
  margin: 0 0 20px;
  font-size: clamp(1.75rem, 3.6vw, 2.45rem);
  line-height: 1.15;
  letter-spacing: -0.028em;
  font-weight: 700;
  max-width: 24ch;
}

.section h3 {
  margin: 34px 0 12px;
  font-size: 1.22rem;
  letter-spacing: -0.015em;
  font-weight: 650;
  color: var(--text);
}

.section p {
  margin: 0 0 16px;
  color: var(--text-2);
  max-width: 68ch;
}

.section p:last-child {
  margin-bottom: 0;
}

.lead {
  font-size: 1.12rem;
  color: var(--text-2);
}

strong {
  color: var(--text);
  font-weight: 650;
}

ul.checklist {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

ul.checklist li {
  position: relative;
  padding-left: 30px;
  color: var(--text-2);
  max-width: 68ch;
}

ul.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 14px;
  height: 8px;
  border-left: 2.5px solid var(--accent);
  border-bottom: 2.5px solid var(--accent);
  transform: rotate(-45deg);
}

/* ---------- Cards ---------- */
.grid {
  display: grid;
  gap: 18px;
  margin-top: 36px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px 28px;
}

.card .num {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 14px;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
  font-weight: 650;
  letter-spacing: -0.012em;
}

.card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-2);
  line-height: 1.65;
}

/* ---------- Callouts ---------- */
.callout {
  margin-top: 32px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  padding: 22px 24px;
}

.callout h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.callout p {
  margin: 0 0 10px;
  font-size: 0.96rem;
}

.callout p:last-child {
  margin-bottom: 0;
}

/* ---------- Steps (workflow) ---------- */
.steps {
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 14px;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 18px 20px 18px 64px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-2);
  max-width: 72ch;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 18px;
  top: 18px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent-ink);
  background: var(--accent);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.steps li strong {
  display: block;
  margin-bottom: 2px;
  color: var(--text);
}

/* ---------- Link boxes ---------- */
.link-grid {
  display: grid;
  gap: 14px;
  margin-top: 28px;
  grid-template-columns: repeat(3, 1fr);
}

.link-card {
  display: block;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 22px;
  text-decoration: none;
  transition: border-color 0.15s ease;
}

.link-card:hover {
  border-color: var(--accent);
  text-decoration: none;
  color: var(--text);
}

.link-card .k {
  display: block;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.link-card .t {
  display: block;
  font-weight: 650;
  color: var(--text);
  margin-bottom: 6px;
  font-size: 1.02rem;
}

.link-card .d {
  display: block;
  font-size: 0.88rem;
  color: var(--text-3);
  line-height: 1.55;
}

/* ---------- Article (privacy) ---------- */
.article-header {
  padding: 72px 0 40px;
  border-bottom: 1px solid var(--border-soft);
}

.article-header h1 {
  margin: 0 0 18px;
  font-size: clamp(2.15rem, 5vw, 3.35rem);
  letter-spacing: -0.032em;
  line-height: 1.08;
  font-weight: 700;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  color: var(--text-3);
  font-size: 0.92rem;
  margin: 0 0 18px;
}

.article-header .lead {
  max-width: 62ch;
}

.toc {
  margin: 36px 0 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 24px 26px;
}

.toc h2 {
  margin: 0 0 14px;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 650;
}

.toc ol {
  margin: 0;
  padding-left: 1.25em;
  columns: 2;
  column-gap: 36px;
}

.toc li {
  margin: 0 0 8px;
  color: var(--text-2);
  font-size: 0.95rem;
  break-inside: avoid;
}

.toc a {
  color: var(--text-2);
  text-decoration: none;
}

.toc a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article {
  padding: 24px 0 96px;
}

.article section {
  padding: 40px 0 8px;
  border-bottom: 1px solid var(--border-soft);
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.article section:last-child {
  border-bottom: none;
}

.article h2 {
  margin: 0 0 18px;
  font-size: clamp(1.45rem, 2.8vw, 1.85rem);
  letter-spacing: -0.022em;
  line-height: 1.2;
  font-weight: 700;
}

.article h3 {
  margin: 28px 0 10px;
  font-size: 1.12rem;
  font-weight: 650;
  letter-spacing: -0.012em;
}

.article p {
  margin: 0 0 15px;
  color: var(--text-2);
  max-width: 68ch;
}

.article ul {
  margin: 0 0 16px;
  padding-left: 1.2em;
  color: var(--text-2);
  max-width: 68ch;
}

.article ul li {
  margin-bottom: 9px;
}

.article ul li::marker {
  color: var(--accent);
}

.article dl {
  margin: 0 0 16px;
  max-width: 68ch;
}

.article dt {
  font-weight: 650;
  color: var(--text);
  margin-top: 16px;
}

.article dd {
  margin: 6px 0 0;
  color: var(--text-2);
}

.badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(242, 193, 78, 0.35);
  background: rgba(242, 193, 78, 0.08);
  padding: 4px 11px;
  border-radius: 999px;
}

code,
.code-url {
  font-family: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas,
    monospace;
  font-size: 0.86em;
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  padding: 2px 7px;
  color: var(--text);
  word-break: break-all;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border-soft);
  padding: 52px 0 56px;
  background: var(--bg-soft);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
}

.footer-brand .brand-name {
  white-space: normal;
  margin-bottom: 12px;
  display: block;
}

.footer-brand p {
  margin: 0;
  color: var(--text-3);
  font-size: 0.92rem;
  max-width: 38ch;
}

.site-footer h2 {
  margin: 0 0 14px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 650;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 10px;
}

.site-footer li a {
  color: var(--text-2);
  font-size: 0.92rem;
}

.site-footer li a:hover {
  color: var(--accent);
}

.footer-legal {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
  color: var(--text-3);
  font-size: 0.82rem;
  line-height: 1.7;
  max-width: 82ch;
}

.footer-legal p {
  margin: 0 0 8px;
  max-width: none;
  color: inherit;
  font-size: inherit;
}

.footer-legal p:last-child {
  margin-bottom: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .link-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .toc ol {
    columns: 1;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 18px;
  }

  .hero {
    padding: 56px 0 52px;
  }

  .hero h1 {
    max-width: none;
  }

  .section {
    padding: 60px 0;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .site-nav {
    width: 100%;
    gap: 2px;
  }

  .site-nav a {
    padding: 8px 10px;
    font-size: 0.84rem;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .article-header {
    padding: 48px 0 32px;
  }
}

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

  * {
    transition: none !important;
  }
}
