@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-latin-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-latin-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("/assets/fonts/outfit-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("/assets/fonts/outfit-latin-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("/assets/fonts/outfit-latin-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #091a2d;
  --navy-2: #10283d;
  --cyan: #01beb7;
  --cyan-deep: #057980;
  --paper: #f6f4ef;
  --paper-2: #fffdfb;
  --ink: #142433;
  --muted: #5c6b78;
  --line: #e3dbd1;
  --good: #0d7a62;
  --warn: #8a5a12;
  --bad: #8e2f4a;
  --shadow: 0 24px 60px rgba(9, 26, 45, 0.12);
  --serif: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Code", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.55;
}
body.tone-dark { background: var(--navy); }
img { max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 0.98;
  margin: 0 0 0.4em;
}
h1 { font-size: clamp(2.7rem, 6vw, 5.1rem); }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: 1.7rem; }
p { margin: 0 0 0.8em; }
code, .mono { font-family: var(--mono); }
pre {
  background: var(--navy);
  color: #e7f7f6;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  overflow: auto;
  font-size: 0.86rem;
  line-height: 1.45;
}
pre code { font-family: var(--mono); }
.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--cyan);
  color: var(--navy);
  padding: 0.4rem 0.7rem;
  z-index: 5;
}
.skip:focus { top: 0.6rem; }
.wrap { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; }
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  position: sticky;
  top: 0;
  z-index: 4;
}
.nav-dark { background: rgba(9, 26, 45, 0.92); color: #f4fbfb; backdrop-filter: blur(10px); }
.nav-light {
  background: rgba(246, 244, 239, 0.94);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; font-weight: 700; letter-spacing: -0.02em; }
.mark { width: 40px; height: 40px; }
.nav-links { display: flex; align-items: center; gap: 0.9rem; }
.nav-link { text-decoration: none; font-weight: 500; }
.nav-owner { font-size: 0.95rem; color: var(--muted); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 0.75rem 1.15rem;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.btn-small { padding: 0.4rem 0.75rem; font-size: 0.9rem; }
.btn-cyan { background: var(--cyan); color: var(--navy); }
.btn-ink { background: var(--navy); color: #f4fbfb; }
.btn-ghost { background: transparent; color: inherit; border: 1.5px solid currentColor; }
.nav-dark .btn-ghost { color: #f4fbfb; }
.hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) 1.15fr;
  min-height: 640px;
  background: var(--navy);
  color: #f3fbfb;
}
.hero-copy { padding: 4.5rem 3.2rem 4rem; display: flex; flex-direction: column; justify-content: center; }
.hero-art { min-height: 420px; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 420px; }
.lede { font-size: 1.2rem; max-width: 38rem; color: inherit; }
.hero .lede { color: #d5e4ea; }
.eyebrow, .section-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.8rem;
}
.eyebrow span, .section-kicker { color: var(--cyan); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.2rem; }
.steps, .path, .notice-band, .share-band, .pilot, .dash, .doc, .auth { padding: 4.5rem 0; }
.tone-dark .steps, .tone-dark .path, .tone-dark .notice-band, .tone-dark .share-band, .tone-dark .pilot { background: var(--paper); color: var(--ink); }
.step-grid {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.step-grid li {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 0.6rem 0.6rem 1.2rem;
  box-shadow: var(--shadow);
}
.step-grid img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #faf6f3; border-radius: 16px; }
.step-grid h3, .step-grid p { padding: 0 0.7rem; }
.path-list { padding-left: 1.2rem; }
.path-list li { margin: 0.7rem 0; }
.notice-card {
  background: var(--navy);
  color: #f4fbfb;
  border-radius: 28px;
  padding: 2.2rem;
}
.notice-card h2 { max-width: 16ch; }
.stamp {
  display: inline-block;
  border: 2px solid var(--cyan);
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.55rem;
  transform: rotate(-2deg);
  margin-bottom: 0.8rem;
}
.share-band { padding-top: 1rem; }
.share-heading { margin-bottom: 1.2rem; }
.share-lockup {
  position: relative;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.share-lockup img { display: block; width: 100%; height: auto; }
.share-copy {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 48%;
  padding: 6% 4% 6% 5%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #f4fbfb;
}
.share-copy h2 { font-size: clamp(1.8rem, 3.6vw, 3.3rem); margin: 0 0 0.35em; }
.share-copy p:last-child { color: #d5e4ea; margin: 0; }
.pilot { padding-top: 0; }
.pilot p { font-size: 1.15rem; }
.footer { background: var(--navy); color: #d5e4ea; padding: 1.4rem 0; }
.footer a { color: var(--cyan); }
.footer-row { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer p { margin: 0; }
.doc h2 { margin-top: 1.6rem; }
.doc ul { padding-left: 1.2rem; }
.auth { min-height: 60vh; }
.card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.3rem;
  box-shadow: var(--shadow);
}
.card h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
.stack { display: grid; gap: 0.8rem; }
label { display: grid; gap: 0.3rem; font-weight: 600; font-size: 0.95rem; }
input, select {
  font: inherit;
  padding: 0.7rem 0.75rem;
  border-radius: 12px;
  border: 1px solid #cfc6bb;
  background: white;
  color: var(--ink);
}
.field-row { display: flex; gap: 0.5rem; }
.field-row input { flex: 1; }
.dash-head, .inline-form { display: flex; justify-content: space-between; gap: 1rem; align-items: end; flex-wrap: wrap; }
.dash h2 { margin-top: 2rem; }
.bot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.bot-card {
  display: block;
  text-decoration: none;
  background: var(--paper-2);
  border-radius: 20px;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
}
.bot-card:hover { border-color: var(--cyan-deep); }
.muted, .tiny { color: var(--muted); }
.tiny { font-size: 0.78rem; }
.big { font-size: 1.15rem; }
.conn-list { list-style: none; padding: 0; display: grid; gap: 0.6rem; }
.conn { display: flex; flex-wrap: wrap; gap: 0.55rem; align-items: center; }
.pill {
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: #ece7df;
}
.pill-approved, .pill-delivered, .pill-read { background: #d7f4ee; color: var(--good); }
.pill-pending, .pill-queued { background: #f8e7c8; color: var(--warn); }
.pill-blocked, .pill-failed, .pill-revoked { background: #f8d7e1; color: var(--bad); }
.log { display: grid; gap: 0.8rem; }
.log-row { background: var(--paper-2); border: 1px solid var(--line); border-radius: 18px; padding: 0.9rem 1rem; }
.log-row header { display: flex; flex-wrap: wrap; gap: 0.55rem; align-items: baseline; margin-bottom: 0.4rem; }
.audit { list-style: none; padding: 0; display: grid; gap: 0.7rem; }
.audit li { display: grid; grid-template-columns: 11rem 12rem 1fr; gap: 0.6rem; align-items: start; }
.audit code { font-size: 0.78rem; overflow-wrap: anywhere; color: var(--muted); }
.flash { background: #e5f8f6; border-radius: 14px; padding: 0.75rem 0.9rem; }
.flash-bad { background: #fde8ee; }
.dev-link { overflow-wrap: anywhere; }
.empty { color: var(--muted); }
.split { display: grid; grid-template-columns: 1fr 1.3fr; gap: 1rem; }
.footer strong { color: white; }

@media (max-width: 900px) {
  .hero, .step-grid, .split, .audit li { grid-template-columns: 1fr; }
  .hero-copy { padding: 2.4rem 1.2rem 1.4rem; }
  .nav { align-items: flex-start; }
  .nav-links { flex-wrap: wrap; justify-content: flex-end; }
}
@media (max-width: 720px) {
  .share-lockup { display: flex; flex-direction: column; background: var(--navy); }
  .share-copy { position: relative; width: auto; padding: 1.4rem 1.2rem 1.6rem; }
}
