:root {
  --bg: #f5f7f4;
  --surface: #ffffff;
  --surface-soft: #edf3ef;
  --ink: #172026;
  --muted: #5f6e76;
  --line: #d9e1dc;
  --line-strong: #c6d2cc;
  --teal: #0d6b67;
  --teal-dark: #0a4543;
  --blue: #315f8f;
  --amber: #b86d1d;
  --coral: #bd4f3e;
  --green: #28714d;
  --shadow: 0 22px 64px rgba(35, 52, 58, 0.12);
  --shadow-soft: 0 12px 36px rgba(35, 52, 58, 0.08);
  --radius: 8px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 12px;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  background: rgba(245, 247, 244, 0.92);
  backdrop-filter: blur(14px);
}

.nav-shell {
  width: min(var(--max), calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: var(--teal);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.brand-text {
  color: #0f171d;
  font-size: 15px;
  font-weight: 900;
  white-space: nowrap;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.desktop-nav a:hover {
  color: var(--ink);
}

.mobile-nav {
  display: none;
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.nav-cta,
.button-primary {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 12px 28px rgba(13, 107, 103, 0.2);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.76);
  border-color: var(--line-strong);
  color: var(--ink);
}

.button:focus-visible,
.nav-cta:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(49, 95, 143, 0.42);
  outline-offset: 3px;
}

.hero-section {
  min-height: 90vh;
  padding: 112px 0 58px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: linear-gradient(90deg, rgba(245, 247, 244, 0.98), rgba(245, 247, 244, 0.86) 44%, rgba(234, 241, 237, 0.72));
}

.hero-shell {
  width: min(var(--max), calc(100% - 32px));
  min-height: 680px;
  margin: 0 auto;
  position: relative;
  display: flex;
  align-items: center;
}

.hero-copy {
  max-width: 640px;
  position: relative;
  z-index: 2;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid rgba(13, 107, 103, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.section-kicker.light {
  color: #d6f4ee;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 680px;
  margin: 18px 0 0;
  color: #11191f;
  font-size: 66px;
  line-height: 1;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 620px;
  margin: 22px 0 0;
  color: #4b5d66;
  font-size: 19px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.signal-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}

.signal-strip span {
  padding: 7px 10px;
  border: 1px solid rgba(23, 32, 38, 0.1);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.7);
  color: #42515a;
  font-size: 13px;
  font-weight: 800;
}

.hero-product {
  position: absolute;
  right: -28px;
  top: 70px;
  width: 590px;
  transform: rotate(-1.4deg);
  z-index: 1;
}

.product-frame {
  overflow: hidden;
  border: 1px solid #cbd8d1;
  border-radius: var(--radius);
  background: #fbfcfa;
  box-shadow: var(--shadow);
}

.frame-toolbar {
  height: 46px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #dce5df;
  background: #eef4f0;
}

.window-dots {
  display: flex;
  gap: 7px;
}

.window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #9baaa3;
}

.frame-toolbar strong {
  color: #36454c;
  font-size: 12px;
  font-weight: 900;
}

.toolbar-badge {
  padding: 5px 8px;
  border-radius: 999px;
  background: #dff1e9;
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
}

.product-grid {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  min-height: 500px;
}

.product-sidebar {
  padding: 16px;
  border-right: 1px solid #e1e9e4;
  background: #f3f7f4;
}

.sidebar-item {
  display: flex;
  align-items: center;
  min-height: 34px;
  padding: 0 10px;
  margin-bottom: 7px;
  border-radius: 7px;
  color: #66767c;
  font-size: 12px;
  font-weight: 900;
}

.sidebar-item.active {
  background: #dcece7;
  color: var(--teal-dark);
}

.product-main {
  padding: 18px;
}

.health-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.health-card {
  min-height: 90px;
  padding: 13px;
  border: 1px solid #e0e8e3;
  border-radius: 8px;
  background: #fff;
}

.health-card span {
  color: #6b7a82;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.health-card strong {
  display: block;
  margin-top: 9px;
  color: #142029;
  font-size: 24px;
  line-height: 1;
}

.health-card small {
  display: block;
  margin-top: 7px;
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
}

.health-card.warning small,
.health-card.warning strong {
  color: var(--amber);
}

.health-card.danger small,
.health-card.danger strong {
  color: var(--coral);
}

.ledger-panel,
.routing-card,
.unit-table {
  border: 1px solid #e0e8e3;
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}

.ledger-panel {
  margin-top: 12px;
}

.ledger-head,
.ledger-row {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.65fr 0.85fr;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-bottom: 1px solid #edf1ee;
}

.ledger-head {
  background: #f5f8f6;
  color: #697982;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.ledger-row:last-child {
  border-bottom: 0;
}

.ledger-row strong {
  color: #1b2a30;
  font-size: 12px;
}

.ledger-row span {
  color: #65747c;
  font-size: 12px;
  font-weight: 750;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.pill.ok {
  background: #e5f3ea;
  color: var(--green);
}

.pill.warn {
  background: #fff0d8;
  color: var(--amber);
}

.pill.bad {
  background: #fbe8e3;
  color: var(--coral);
}

.routing-card {
  margin-top: 12px;
  padding: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.routing-card strong {
  color: #172026;
  font-size: 13px;
}

.routing-card p {
  margin: 5px 0 0;
  color: #68777e;
  font-size: 12px;
}

.route-line {
  width: 80px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal), var(--blue), var(--coral));
}

.section {
  padding: 84px 0;
  border-bottom: 1px solid var(--line);
}

.section-white {
  background: #fff;
}

.section-code {
  background: #172026;
  color: #eef5f1;
}

.section-shell,
.early-shell {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 34px;
}

.section-heading.narrow {
  max-width: 720px;
}

h2 {
  margin: 14px 0 0;
  color: #11191f;
  font-size: 42px;
  line-height: 1.1;
  letter-spacing: 0;
}

.section-heading p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.section-code .section-heading h2 {
  color: #fff;
}

.section-code .section-heading p {
  color: rgba(238, 245, 241, 0.7);
}

.section-code .section-kicker {
  color: #cbeee7;
  border-color: rgba(203, 238, 231, 0.2);
  background: rgba(255, 255, 255, 0.06);
}

.problem-grid,
.feature-grid,
.deliverable-grid,
.steps-grid,
.use-case-grid,
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.problem-card,
.feature-card,
.deliverable-card,
.step-card,
.use-case-grid article,
.price-card {
  min-height: 210px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.problem-card {
  box-shadow: none;
}

.card-number {
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
}

h3 {
  margin: 12px 0 0;
  color: #142029;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0;
}

.problem-card p,
.feature-card p,
.price-card p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.system-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.system-flow article {
  min-height: 156px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.system-flow span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: var(--teal);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.system-flow h3 {
  margin-top: 14px;
}

.system-flow p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.dev-proof {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 42px;
  align-items: start;
}

.dev-proof .section-heading {
  margin-bottom: 0;
}

.dev-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 14px;
}

.code-window,
.schema-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: #0f171d;
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.code-toolbar,
.schema-head {
  min-height: 44px;
  padding: 0 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: #121d24;
}

.code-toolbar span,
.schema-head strong {
  color: #eef5f1;
  font-size: 12px;
  font-weight: 900;
}

.code-toolbar em,
.schema-head span {
  color: rgba(238, 245, 241, 0.54);
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
}

pre {
  margin: 0;
  padding: 18px;
  overflow-x: auto;
  color: #d9e7e2;
  font: 13px/1.65 "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.code-string {
  color: #8ee7d1;
}

.code-number {
  color: #f2b46d;
}

.code-muted {
  color: #8ea0aa;
}

.schema-card {
  background: #101a20;
}

.schema-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 13px 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.schema-row:last-child {
  border-bottom: 0;
}

.schema-row span {
  color: #eaf3ef;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  font-weight: 850;
}

.schema-row em {
  color: rgba(238, 245, 241, 0.56);
  font-size: 12px;
  font-style: normal;
  font-weight: 750;
}

.split-section {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 42px;
  align-items: start;
}

.sticky-heading {
  position: sticky;
  top: 96px;
}

.unit-head,
.unit-row {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 0.7fr;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid #edf1ee;
}

.unit-head {
  background: #f5f8f6;
  color: #697982;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.unit-row:last-child {
  border-bottom: 0;
}

.unit-row strong {
  color: #172026;
}

.unit-row span {
  color: var(--muted);
}

.feature-card.highlighted,
.deliverable-card.strong,
.featured-price {
  border-color: rgba(13, 107, 103, 0.35);
  background: #edf7f4;
}

.deliverable-card {
  min-height: 180px;
}

.deliverable-card h3,
.step-card h3 {
  margin-top: 0;
}

.deliverable-card p,
.step-card p,
.use-case-grid p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
}

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

.step-card span {
  color: var(--teal);
  font-size: 13px;
  font-weight: 950;
}

.step-card h3 {
  margin-top: 12px;
}

code {
  padding: 2px 6px;
  border: 1px solid #d7e3dd;
  border-radius: 5px;
  background: #edf5f1;
  color: var(--teal-dark);
  font: 0.95em "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.use-case-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.use-case-grid article {
  min-height: 168px;
}

.use-case-grid strong {
  display: block;
  color: #172026;
  font-size: 16px;
}

.price {
  display: block;
  margin: 18px 0 8px;
  color: #11191f;
  font-size: 34px;
  line-height: 1;
  font-weight: 950;
}

.price-card ul {
  margin: 20px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.price-card li + li {
  margin-top: 8px;
}

.faq-shell {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 42px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

summary {
  padding: 19px 20px;
  color: #172026;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
}

details p {
  margin: 0;
  padding: 0 20px 20px;
  color: var(--muted);
}

.early-access {
  padding: 82px 0;
  background: #123a38;
  color: #fff;
}

.early-shell {
  display: grid;
  grid-template-columns: 1fr 430px;
  gap: 48px;
  align-items: start;
}

.early-access h2 {
  color: #fff;
}

.early-access p {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 18px;
}

.signup-card {
  position: relative;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}

.signup-card label {
  display: block;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  font-weight: 900;
}

.form-field + .form-field {
  margin-top: 14px;
}

input,
select,
textarea {
  width: 100%;
  margin-top: 7px;
  padding: 12px 13px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  outline: none;
}

select {
  min-height: 48px;
}

textarea {
  min-height: 116px;
  resize: vertical;
}

.signup-card input:focus,
.signup-card select:focus,
.signup-card textarea:focus {
  border-color: rgba(141, 215, 204, 0.92);
  box-shadow: 0 0 0 3px rgba(141, 215, 204, 0.2);
}

.signup-card [aria-invalid="true"] {
  border-color: #f3a697;
  box-shadow: 0 0 0 3px rgba(243, 166, 151, 0.18);
}

.signup-card .field-hint,
.signup-card .field-error {
  margin: 6px 0 0;
  font-size: 12px;
}

.signup-card .field-hint {
  color: rgba(255, 255, 255, 0.62);
}

.signup-card .field-error {
  color: #ffd1c8;
  font-weight: 800;
}

.form-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.signup-card .button {
  width: 100%;
  margin-top: 16px;
  background: #fff;
  color: var(--teal-dark);
  box-shadow: none;
}

.signup-card .button:disabled {
  cursor: wait;
  opacity: 0.78;
}

.button-spinner {
  display: none;
  width: 16px;
  height: 16px;
  margin-left: 9px;
  border: 2px solid rgba(10, 69, 67, 0.24);
  border-top-color: var(--teal-dark);
  border-radius: 50%;
  animation: waitlist-spin 0.8s linear infinite;
}

.signup-card[data-state="loading"] .button-spinner {
  display: inline-block;
}

.signup-card[data-state="success"] .button {
  background: #dff1e9;
  color: var(--green);
  cursor: default;
  opacity: 1;
}

.signup-card .form-status {
  margin: 12px 0 0;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 800;
}

.signup-card .form-status:focus {
  outline: none;
}

.signup-card .form-status[data-state="success"] {
  border-color: rgba(167, 231, 204, 0.26);
  background: rgba(167, 231, 204, 0.12);
  color: #d9f8eb;
}

.signup-card .form-status[data-state="error"] {
  border-color: rgba(255, 183, 168, 0.28);
  background: rgba(255, 183, 168, 0.1);
  color: #ffd7cf;
}

.signup-card .form-note {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
}

.signup-card .form-note a {
  color: #fff;
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer {
  padding: 24px 0;
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-shell {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-shell p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.footer-shell nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 850;
}

.policy-page {
  background: #fff;
}

.policy-shell {
  width: min(720px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0;
}

.policy-back,
.policy-links a {
  color: var(--teal-dark);
  font-weight: 850;
}

.policy-shell h1 {
  margin-top: 42px;
  font-size: 48px;
}

.policy-shell h2 {
  margin-top: 36px;
  font-size: 24px;
}

.policy-shell p {
  color: var(--muted);
}

.policy-updated {
  margin-top: 14px;
  font-size: 14px;
}

.policy-links {
  margin-top: 42px;
}

@keyframes waitlist-spin {
  to {
    transform: rotate(360deg);
  }
}

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

  .button-spinner {
    animation: none;
  }
}

@media (max-width: 1040px) {
  .desktop-nav {
    display: none;
  }

  .mobile-nav {
    width: 100%;
    padding: 0 16px 10px;
    display: flex;
    gap: 18px;
    overflow-x: auto;
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
    scrollbar-width: none;
  }

  .mobile-nav::-webkit-scrollbar {
    display: none;
  }

  .hero-section {
    min-height: auto;
    padding-top: 142px;
  }

  .hero-shell {
    min-height: 0;
    display: block;
  }

  .hero-product {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    margin-top: 36px;
    transform: none;
  }

  h1 {
    font-size: 52px;
  }

  .system-flow,
  .dev-proof,
  .dev-grid,
  .problem-grid,
  .feature-grid,
  .deliverable-grid,
  .steps-grid,
  .use-case-grid,
  .pricing-grid,
  .faq-shell,
  .early-shell,
  .split-section {
    grid-template-columns: 1fr;
  }

  .sticky-heading {
    position: static;
  }
}

@media (max-width: 700px) {
  .nav-shell {
    height: 62px;
  }

  .brand-text {
    font-size: 14px;
  }

  .nav-cta {
    min-height: 38px;
    padding: 0 12px;
    font-size: 13px;
  }

  .hero-section {
    padding-top: 132px;
  }

  h1 {
    font-size: 39px;
  }

  h2 {
    font-size: 31px;
  }

  .hero-lede,
  .section-heading p,
  .early-access p {
    font-size: 16px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

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

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

  .product-sidebar {
    display: none;
  }

  .health-row {
    grid-template-columns: 1fr;
  }

  .ledger-head,
  .ledger-row,
  .schema-row,
  .unit-head,
  .unit-row {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 62px 0;
  }

  .early-access {
    padding: 62px 0;
  }

  .footer-shell {
    align-items: flex-start;
    flex-direction: column;
  }

  .policy-shell h1 {
    font-size: 38px;
  }
}
