:root {
  --ink: #111614;
  --ink-soft: rgba(17, 22, 20, 0.76);
  --ink-faint: rgba(17, 22, 20, 0.5);
  --paper: #f4ede2;
  --paper-strong: rgba(255, 251, 244, 0.96);
  --paper-soft: rgba(255, 249, 241, 0.82);
  --line: rgba(17, 22, 20, 0.1);
  --line-strong: rgba(17, 22, 20, 0.16);
  --forest: #202826;
  --forest-2: #28312e;
  --forest-card: rgba(47, 57, 53, 0.9);
  --ivory: #f8f1e5;
  --signal: #d5c29e;
  --state-approved: #6db87a;
  --state-queued: #c9975a;
  --state-blocked: #c47474;
  --shadow-soft: 0 20px 60px rgba(16, 18, 18, 0.08);
  --shadow-strong: 0 34px 100px rgba(10, 11, 11, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Inter", "Avenir Next", "Helvetica Neue", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E") repeat,
    radial-gradient(ellipse 60% 40% at 0% 0%, rgba(172, 119, 80, 0.1), transparent),
    radial-gradient(ellipse 50% 35% at 100% 8%, rgba(32, 40, 38, 0.08), transparent),
    linear-gradient(180deg, #f5efe3 0%, #efe6d8 52%, #f3ece0 100%);
  background-size: 200px 200px, auto, auto, auto;
}

.page {
  width: min(1380px, calc(100vw - 34px));
  margin: 0 auto;
  padding: 22px 0 110px;
}

.brandmark-word,
.mastnav a,
.eyebrow,
.section-tag,
.micro-label,
.card-index,
.price-context {
  font-family: "Arial Narrow", Arial, sans-serif;
  text-transform: uppercase;
}

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  position: sticky;
  top: 14px;
  z-index: 30;
  margin-bottom: 20px;
  padding: 12px 14px 12px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(252, 248, 241, 0.88);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-soft);
}

.brandmark {
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brandmark-mark {
  display: block;
  width: 38px;
  height: 38px;
  object-fit: contain;
  flex-shrink: 0;
}

.brandmark-copy {
  display: inline-flex;
  flex-direction: column;
}

.brandmark-word {
  letter-spacing: 0.16em;
  font-size: 0.98rem;
}

.brandmark-sub {
  font-size: 0.82rem;
  color: var(--ink-soft);
  max-width: 32ch;
}

.mastnav-shell {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.mastnav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.mastnav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--ink-soft);
  text-decoration: none;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  transition: color 120ms ease, background 120ms ease;
}

.mastnav a:hover {
  color: var(--ink);
  background: rgba(17, 22, 20, 0.05);
}

.masthead-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  background: #0f1312;
  color: var(--ivory);
  text-decoration: none;
  font-family: "Arial Narrow", Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
  transition: transform 120ms ease, background 120ms ease;
}

.masthead-cta:hover {
  transform: translateY(-1px);
  background: #171d1b;
}

.hero,
.surfaces-stage,
.footer-cta {
  position: relative;
  overflow: clip;
  border-radius: 20px;
  box-shadow: var(--shadow-strong);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(360px, 0.94fr);
  gap: 28px;
  min-height: 64vh;
  padding: 46px 56px;
  border: 1px solid rgba(255, 248, 238, 0.08);
  background:
    linear-gradient(150deg, rgba(12, 16, 15, 0.99) 0%, rgba(18, 24, 22, 0.98) 55%, rgba(24, 31, 29, 0.97) 100%);
}

.hero-noise {
  position: absolute;
  inset: 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.07'/%3E%3C/svg%3E") repeat,
    radial-gradient(circle at 14% 18%, rgba(213, 194, 158, 0.18), transparent 20%),
    radial-gradient(circle at 82% 20%, rgba(172, 119, 80, 0.14), transparent 22%),
    radial-gradient(circle at 58% 76%, rgba(255, 255, 255, 0.04), transparent 28%);
  background-size: 200px 200px, auto, auto, auto;
  pointer-events: none;
}

.hero-copy,
.hero-panel,
.footer-copy-wrap,
.footer-action-grid {
  position: relative;
  z-index: 1;
}

.hero-copy {
  display: grid;
  align-content: center;
  gap: 24px;
}

.eyebrow-row {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.eyebrow,
.section-tag,
.micro-label,
.card-index,
.price-context {
  letter-spacing: 0.16em;
  font-size: 0.76rem;
  color: rgba(17, 22, 20, 0.56);
}

.hero .eyebrow,
.hero .micro-label,
.hero .lede,
.hero .hero-thesis p {
  color: rgba(248, 241, 229, 0.8);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 248, 238, 0.18);
  background: rgba(255, 248, 238, 0.09);
  color: var(--ivory);
  font-family: "Arial Narrow", Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
}

.hero h1,
.thesis-lead h2,
.thesis-position h2,
.surfaces-head h2,
.system-head h2,
.proof-head h2,
.conversion-head h2,
.apply-intro h2,
.footer-cta h2,
.surface-card h3,
.verified-card h3,
.pricing-card strong,
.action-card strong {
  font-family: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  letter-spacing: 0.01em;
}

.hero h1 {
  margin: 0;
  max-width: 8ch;
  font-size: clamp(4.2rem, 8vw, 7.25rem);
  line-height: 0.88;
  color: var(--ivory);
  text-wrap: balance;
}

.lede,
.hero-thesis p,
.surfaces-note,
.proof-note,
.conversion-head p,
.apply-intro p,
.footer-copy,
.surface-card p,
.verified-card p,
.pricing-card p,
.thesis-list li,
.thesis-point strong {
  font-size: 1.08rem;
  line-height: 1.58;
}

.lede {
  margin: 0;
  max-width: 52ch;
}

.cta-row,
.footer-action-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 999px;
  text-decoration: none;
  letter-spacing: 0.04em;
  font-family: "Arial Narrow", Arial, sans-serif;
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease, color 120ms ease;
}

.cta:hover {
  transform: translateY(-1px);
}

.cta.primary {
  background: #0e1211;
  color: #fff7ec;
}

.cta.secondary {
  background: rgba(255, 252, 246, 0.94);
  border: 1px solid rgba(17, 22, 20, 0.12);
  color: var(--ink);
}

.cta.ghost {
  color: var(--ivory);
  border: 1px solid rgba(255, 248, 238, 0.22);
  background: rgba(255, 255, 255, 0.02);
}

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

.cred-pill {
  padding: 16px 16px 15px;
  border-radius: 20px;
  border: 1px solid rgba(255, 248, 238, 0.12);
  background: rgba(255, 255, 255, 0.06);
}

.cred-pill strong {
  display: block;
  margin-top: 8px;
  color: var(--ivory);
  font-size: 1rem;
}

.hero-thesis {
  max-width: 56ch;
  padding-top: 6px;
}

.hero-thesis p {
  margin: 0;
  font-size: 1.12rem;
}

.hero-panel {
  display: grid;
  align-content: center;
  gap: 14px;
}

.terminal-card,
.question-card,
.sdk-card,
.thesis-position,
.verified-card,
.pricing-card,
.apply-panel,
.action-card {
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--paper-strong);
  box-shadow: var(--shadow-soft);
}

.terminal-card {
  padding: 20px;
  background: rgba(12, 15, 14, 0.56);
  border-color: rgba(255, 248, 238, 0.1);
}

.terminal-head,
.sdk-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.terminal-dotline {
  display: inline-flex;
  gap: 7px;
}

.terminal-dotline span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 248, 238, 0.35);
}

.terminal-dotline span:nth-child(1) { background: #ff5f57; }
.terminal-dotline span:nth-child(2) { background: #febc2e; }
.terminal-dotline span:nth-child(3) { background: #28c840; }

.terminal-body {
  display: grid;
  gap: 12px;
}

.terminal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 248, 238, 0.08);
}

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

.terminal-row span {
  color: rgba(248, 241, 229, 0.64);
  font-family: "Arial Narrow", Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.74rem;
}

.terminal-row strong {
  color: var(--ivory);
  text-align: right;
  font-size: 1rem;
}

.signal-approved { color: var(--state-approved); }
.signal-queued { color: var(--state-queued); }
.terminal-verdict {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 248, 238, 0.1);
  padding: 16px 14px;
  border-radius: 10px;
  margin: 4px -10px;
}
.terminal-verdict span {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
}
.terminal-verdict strong {
  font-size: 1.22rem;
  letter-spacing: 0.01em;
}

.question-card,
.sdk-card {
  padding: 18px 20px;
}

.question-card strong {
  display: block;
  margin: 8px 0 10px;
  font-size: 2rem;
  line-height: 1.04;
}

.question-card p {
  margin: 0;
}

.sdk-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-family: "Arial Narrow", Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
}

.sdk-card pre,
.verified-card pre {
  margin: 0;
  padding: 16px 18px;
  overflow: auto;
  border-radius: 10px;
  background: rgba(10, 14, 13, 0.97);
  color: #f6eee0;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.86rem;
  line-height: 1.72;
  letter-spacing: 0.01em;
}

.signal-band {
  display: none;
}

.system-stage {
  margin-top: 16px;
}
.proof-stage,
.conversion-stage {
  margin-top: 52px;
}

.system-stage {
  padding: 32px;
  border-radius: 20px;
  border: 1px solid rgba(255, 248, 238, 0.08);
  background: linear-gradient(180deg, rgba(20, 26, 25, 0.985), rgba(34, 42, 39, 0.97));
  box-shadow: var(--shadow-strong);
}

.system-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 22px;
}

.thesis-lead,
.thesis-position {
  padding: 24px;
  border-radius: 16px;
}

.thesis-dark {
  background: linear-gradient(180deg, rgba(20, 26, 25, 0.985), rgba(34, 42, 39, 0.965));
  border: 1px solid rgba(255, 248, 238, 0.08);
  box-shadow: var(--shadow-strong);
}

.thesis-dark .section-tag,
.thesis-dark h2,
.thesis-dark .micro-label,
.thesis-dark strong {
  color: var(--ivory);
}

.thesis-dark .section-tag,
.thesis-dark .micro-label {
  color: rgba(248, 241, 229, 0.62);
}

.thesis-lead h2,
.thesis-position h2,
.surfaces-head h2,
.proof-head h2,
.conversion-head h2,
.apply-intro h2,
.footer-cta h2 {
  margin: 10px 0 0;
  text-wrap: balance;
}

.thesis-lead h2 {
  font-size: clamp(2.8rem, 5vw, 5.2rem);
  line-height: 0.96;
  max-width: 10.5ch;
}

.thesis-position h2,
.conversion-head h2,
.apply-intro h2 {
  font-size: clamp(2.2rem, 3.5vw, 3.8rem);
  line-height: 0.99;
}

.thesis-point-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.thesis-point strong {
  display: block;
  margin-top: 8px;
}

.thesis-list,
.pricing-card ul {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding-left: 20px;
}

.mini-proof-grid {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.mini-proof {
  padding: 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.6);
}

.mini-proof strong {
  display: block;
  margin-top: 8px;
  font-size: 1.1rem;
}

.system-head {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  gap: 24px;
  margin: 22px 0 0;
}

.system-head .section-tag,
.system-head h2,
.system-note,
.system-stage .micro-label,
.system-stage .card-index,
.system-stage .surface-card h3,
.system-stage .surface-card p {
  color: var(--ivory);
}

.system-head .section-tag,
.system-stage .micro-label,
.system-stage .card-index {
  color: rgba(248, 241, 229, 0.62);
}

.system-head h2 {
  font-size: clamp(2.8rem, 5vw, 5.1rem);
  line-height: 0.95;
  max-width: 10.5ch;
}

.system-note {
  margin: 0;
  align-self: center;
  color: rgba(248, 241, 229, 0.76);
}

.system-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.surface-card {
  padding: 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 248, 238, 0.1);
  background: rgba(255, 255, 255, 0.06);
  min-height: 0;
}

.card-detail {
  display: block;
  margin-top: 14px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.74rem;
  color: rgba(248, 241, 229, 0.38);
  letter-spacing: 0.02em;
  line-height: 1.5;
}

.surface-card.featured {
  grid-column: span 7;
}

.surface-card:nth-child(2) {
  grid-column: span 5;
}

.surface-card:nth-child(3),
.surface-card:nth-child(4) {
  grid-column: span 6;
}

.surface-card h3 {
  margin: 18px 0 12px;
  font-size: 1.78rem;
}

.proof-stage {
  padding: 34px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 251, 245, 0.84);
  box-shadow: var(--shadow-soft);
}

.proof-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.76fr);
  gap: 20px;
  margin-bottom: 18px;
}

.proof-head h2 {
  font-size: clamp(2.8rem, 4.5vw, 4.8rem);
  line-height: 0.96;
  max-width: 12ch;
}

.proof-note {
  margin: 0;
  align-self: end;
}

.verified-card {
  padding: 18px;
}

.proof-primary-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}

.proof-anchor {
  grid-column: span 7;
}

.proof-stack {
  display: grid;
  grid-column: span 5;
  gap: 16px;
}

.sdk-proof {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  gap: 18px;
  margin-top: 10px;
  align-items: start;
}

.sdk-proof-headline {
  display: grid;
  gap: 14px;
}

.sdk-proof-headline h3 {
  margin: 10px 0 0;
}

.verified-card h3 {
  margin: 10px 0 10px;
  font-size: 1.66rem;
  line-height: 1.05;
}

.mono,
.mono-inline {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.mono {
  overflow-wrap: anywhere;
  font-size: 0.94rem;
}

.conversion-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(380px, 0.98fr);
  gap: 18px;
  align-items: start;
}

.pricing-column,
.apply-panel {
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 251, 245, 0.9);
  box-shadow: var(--shadow-soft);
}

.pricing-column {
  padding: 22px;
}

.conversion-head {
  margin-bottom: 14px;
}

.conversion-head h2 {
  max-width: 10.5ch;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.pricing-card {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px;
  min-height: 100%;
}

.pricing-card strong {
  font-size: 3.15rem;
  line-height: 0.95;
}

.price-context {
  color: var(--ink-faint);
}

.featured-tier {
  background: linear-gradient(180deg, rgba(28, 37, 34, 0.985), rgba(44, 57, 52, 0.965));
  border-color: rgba(255, 248, 238, 0.08);
  box-shadow: var(--shadow-strong);
  transform: translateY(-6px) scale(1.01);
}

.featured-tier .micro-label,
.featured-tier .price-context,
.featured-tier p,
.featured-tier li,
.featured-tier strong {
  color: var(--ivory);
}

.apply-panel {
  padding: 24px;
}

.apply-intro p {
  margin: 0 0 14px;
}

.partner-form {
  display: grid;
  gap: 14px;
}

.field-grid,
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.partner-form label,
.partner-form legend,
.form-result {
  font-family: "Avenir Next", "Helvetica Neue", "Segoe UI", sans-serif;
}

.partner-form label {
  display: grid;
  gap: 8px;
  font-size: 0.98rem;
}

.partner-form input,
.partner-form select,
.partner-form textarea {
  width: 100%;
  padding: 12px 13px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font: inherit;
}

.partner-form textarea {
  resize: vertical;
}

.partner-form fieldset {
  margin: 0;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.52);
}

.partner-form legend {
  padding: 0 8px;
}

.checkbox-grid label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkbox-grid input {
  width: auto;
  margin: 0;
}

.submit {
  border: 0;
  cursor: pointer;
}

.form-result {
  min-height: 72px;
  margin: 0;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(17, 22, 20, 0.04);
  color: var(--forest);
  white-space: pre-wrap;
}

.footer-cta {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.98fr);
  gap: 24px;
  margin-top: 52px;
  padding: 40px;
  border: 1px solid rgba(255, 248, 238, 0.08);
  background: linear-gradient(135deg, rgba(18, 22, 21, 0.985), rgba(34, 42, 39, 0.965));
}

.footer-cta .section-tag,
.footer-cta h2,
.footer-copy,
.action-card-dark .micro-label,
.action-card-dark strong,
.action-card-dark p {
  color: var(--ivory);
}

.footer-copy {
  color: rgba(248, 241, 229, 0.78);
}

.footer-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.action-card {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 20px;
  text-decoration: none;
  color: var(--ink);
}

.action-card strong {
  font-size: 1.82rem;
  line-height: 1.06;
}

.action-card p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.5;
}

.action-card-dark {
  background: rgba(10, 14, 13, 0.96);
  border-color: rgba(255, 248, 238, 0.08);
}

.action-card-dark p {
  color: rgba(248, 241, 229, 0.74);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 18px;
  padding: 24px 8px 0;
}

.site-footer-brand p {
  margin: 10px 0 0;
  color: var(--ink-soft);
  max-width: 36ch;
}

.site-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer-nav a {
  color: var(--ink);
  text-decoration: none;
  font-family: "Arial Narrow", Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
}

.site-footer-nav a:hover {
  text-decoration: underline;
}

.legal-page {
  width: min(980px, calc(100vw - 34px));
}

.legal-shell {
  padding: 46px 42px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 251, 245, 0.9);
  box-shadow: var(--shadow-soft);
}

.legal-header {
  display: grid;
  gap: 12px;
  margin-bottom: 30px;
}

.legal-header h1 {
  margin: 0;
  font-family: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  font-size: clamp(3rem, 6vw, 5.2rem);
  line-height: 0.92;
}

.legal-header p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 54ch;
  font-size: 1.05rem;
  line-height: 1.65;
}

.legal-grid {
  display: grid;
  gap: 18px;
}

.legal-section {
  padding: 24px 24px 22px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.48);
}

.legal-section h2 {
  margin: 0 0 12px;
  font-family: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  font-size: 2rem;
  line-height: 1;
}

.legal-section p,
.legal-section li {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
}

.legal-section ul {
  margin: 12px 0 0;
  padding-left: 20px;
}

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

@media (max-width: 1180px) {
  .hero,
  .system-intro,
  .system-head,
  .proof-head,
  .conversion-stage,
  .footer-cta {
    grid-template-columns: 1fr;
  }

  .proof-primary-grid,
  .sdk-proof,
  .pricing-grid,
  .footer-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .proof-stack,
  .system-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .surface-card,
  .surface-card.featured,
  .proof-anchor,
  .proof-stack {
    grid-column: auto;
  }

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

/* ─── POLISH ────────────────────────────────────────────────────────────────── */

/* Tighter tracking on large display headlines */
.hero h1 { letter-spacing: -0.025em; }
.thesis-lead h2,
.system-head h2 { letter-spacing: -0.01em; }

/* Hero primary CTA — cream on dark so it reads */
.hero .cta.primary {
  background: var(--ivory);
  color: var(--ink);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.28);
}
.hero .cta.primary:hover {
  background: #fffcf5;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.32);
}

/* Animated "Verified live" dot */
.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  margin-right: 7px;
  flex-shrink: 0;
  vertical-align: middle;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5);
  animation: live-pulse 2.4s ease-in-out infinite;
}

@keyframes live-pulse {
  0%   { box-shadow: 0 0 0 0   rgba(74, 222, 128, 0.5); }
  60%  { box-shadow: 0 0 0 5px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0   rgba(74, 222, 128, 0); }
}

/* Grain texture on dark sections */
.system-stage::before,
.footer-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.07'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  pointer-events: none;
}

/* Section rhythm: dark→dark tight, dark→light open, light→dark open */
.system-stage     { margin-top: 16px; }
.proof-stage      { margin-top: 52px; }
.conversion-stage { margin-top: 32px; }
.footer-cta       { margin-top: 52px; }

/* Card hover states */
.surface-card,
.verified-card,
.action-card {
  transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 180ms cubic-bezier(0.16, 1, 0.3, 1),
              border-color 180ms ease;
}

.surface-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 248, 238, 0.28);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.32);
}

.verified-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(16, 18, 18, 0.12);
}

.action-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.24);
}

/* Input focus states */
.partner-form input:focus,
.partner-form select:focus,
.partner-form textarea:focus {
  outline: none;
  border-color: rgba(17, 22, 20, 0.5);
  box-shadow: 0 0 0 3px rgba(17, 22, 20, 0.08);
}

@media (prefers-reduced-motion: reduce) {
  .live-dot { animation: none; }
}

/* font-optical-sizing on large headlines */
.hero h1,
.thesis-lead h2,
.thesis-position h2,
.surfaces-head h2,
.proof-head h2,
.system-head h2,
.conversion-head h2,
.apply-intro h2,
.footer-cta h2 {
  font-optical-sizing: auto;
}

/* Warm gold accent on section tags in light contexts */
.proof-stage .section-tag,
.proof-head .section-tag,
.conversion-head .section-tag,
.apply-intro .section-tag,
.footer-copy-wrap .section-tag {
  color: rgba(152, 110, 55, 0.88);
}

/* Custom select — remove browser chrome, add arrow */
.partner-form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%23111614' stroke-opacity='0.5' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 42px;
  cursor: pointer;
}

/* Custom checkboxes */
.checkbox-grid input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  min-width: 18px;
  border-radius: 6px;
  border: 1.5px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease;
}

.checkbox-grid input[type="checkbox"]:checked {
  background: var(--ink);
  border-color: var(--ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath d='M2 5l2.5 2.5L8 3' stroke='%23f8f1e5' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.checkbox-grid input[type="checkbox"]:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(17, 22, 20, 0.1);
}

/* Better list bullets in thesis-position */
.thesis-list {
  list-style: none;
  padding-left: 0;
}

.thesis-list li {
  position: relative;
  padding-left: 18px;
}

.thesis-list li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--ink-faint);
}

/* Code block wrapper + copy button */
.code-block {
  border-radius: 10px !important;
  background: #0a0e0d !important;
  overflow: hidden;
}

.code-block pre {
  background: #0a0e0d !important;
  border-radius: 0 !important;
  margin: 0 !important;
  padding: 16px 18px;
}

.code-header {
  background: #0e1311 !important;
}

/* Hero sdk-card: code block flushes to bottom/sides */
.sdk-card .code-block {
  margin: 12px -22px -22px;
  border-radius: 0 0 11px 11px !important;
}

/* Proof sdk-proof: code block fills right column flush */
.verified-card.sdk-proof {
  padding: 0;
  overflow: hidden;
}
.sdk-proof .sdk-proof-headline {
  padding: 24px 20px 24px 24px;
  align-self: center;
}
.verified-card.sdk-proof .code-block {
  margin: 0 !important;
  border-radius: 0 11px 11px 0 !important;
  display: flex;
  flex-direction: column;
}
.verified-card.sdk-proof .code-block pre {
  flex: 1;
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px 8px;
  background: #0e1311;
  border-bottom: 1px solid rgba(255, 248, 238, 0.07);
}

.code-lang {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  color: rgba(248, 241, 229, 0.36);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.copy-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 248, 238, 0.12);
  border-radius: 8px;
  background: transparent;
  color: rgba(248, 241, 229, 0.38);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 150ms ease, color 150ms ease,
              border-color 150ms ease, transform 100ms ease;
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(248, 241, 229, 0.82);
  border-color: rgba(255, 248, 238, 0.26);
}

.copy-btn:active {
  transform: scale(0.88);
}

.copy-btn svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  position: absolute;
  transition: opacity 180ms ease, transform 220ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.copy-btn .icon-check {
  opacity: 0;
  transform: scale(0.4);
  color: #4ade80;
}

.copy-btn.copied {
  border-color: rgba(74, 222, 128, 0.28);
  background: rgba(74, 222, 128, 0.08);
}

.copy-btn.copied .icon-copy {
  opacity: 0;
  transform: scale(0.4);
}

.copy-btn.copied .icon-check {
  opacity: 1;
  transform: scale(1);
}

/* Hero sdk-card: frosted cream glass */
.hero .sdk-card {
  background: rgba(252, 248, 244, 0.68);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-color: rgba(255, 255, 255, 0.45);
}

/* Hero question-card: dark glass — stronger presence on dark hero */
.hero .question-card {
  background: rgba(14, 19, 18, 0.78);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-color: rgba(255, 248, 238, 0.14);
}
.hero .question-card .micro-label { color: rgba(248, 241, 229, 0.48); }
.hero .question-card strong { color: var(--ivory); font-size: 1.66rem; line-height: 1.08; }
.hero .question-card p { color: rgba(248, 241, 229, 0.66); }

/* Receipt card — sealed document treatment */
.receipt-card {
  background: rgba(12, 16, 15, 0.97);
  border-color: rgba(255, 248, 238, 0.1);
}
.receipt-card .micro-label {
  color: rgba(248, 241, 229, 0.5);
}
.receipt-card h3,
.receipt-card p {
  color: var(--ivory);
}
.receipt-card .mono {
  color: var(--signal);
  font-size: 0.82rem;
  word-break: break-all;
}

/* Receipt evidence data rows */
.receipt-data {
  display: grid;
  margin-top: 20px;
  border: 1px solid rgba(255, 248, 238, 0.1);
  border-radius: 8px;
  overflow: hidden;
}
.receipt-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 14px;
  border-bottom: 1px solid rgba(255, 248, 238, 0.06);
}
.receipt-row:last-child {
  border-bottom: 0;
}
.receipt-row span {
  font-family: "Arial Narrow", Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.7rem;
  color: rgba(248, 241, 229, 0.4);
}
.receipt-row strong {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ivory);
  text-align: right;
}

/* Operational seal on proof section */
.proof-stage { position: relative; }

.proof-seal {
  position: absolute;
  top: 36px;
  right: 44px;
  width: 72px;
  height: 72px;
  color: rgba(17, 22, 20, 0.18);
  pointer-events: none;
  user-select: none;
}

/* Syntax token colors — aligned with brand palette */
.tok-kw      { color: #8ab4cc; }
.tok-str     { color: #7db87a; }
.tok-num     { color: var(--signal); }
.tok-fn      { color: #bba8d8; }
.tok-comment { color: rgba(248, 241, 229, 0.34); font-style: italic; }

@media (max-width: 920px) {
  .page {
    width: min(100vw - 18px, 100%);
    padding: 12px 0 80px;
  }

  .masthead {
    top: 8px;
    padding: 10px 10px 10px 12px;
  }

  .mastnav {
    display: none;
  }

  .hero,
  .system-stage,
  .proof-stage,
  .pricing-column,
  .apply-panel,
  .footer-cta,
  .thesis-lead,
  .thesis-position {
    padding: 24px;
  }

  .hero {
    min-height: auto;
  }

  .hero h1 {
    max-width: 8.2ch;
    font-size: clamp(3rem, 16vw, 5.1rem);
  }

  .cred-row,
  .thesis-point-grid,
  .proof-primary-grid,
  .proof-stack,
  .sdk-proof,
  .system-intro,
  .system-head,
  .system-grid,
  .pricing-grid,
  .field-grid,
  .checkbox-grid,
  .footer-action-grid {
    grid-template-columns: 1fr;
  }

  .featured-tier {
    transform: none;
  }

  /* sdk-proof stacks vertically on mobile */
  .verified-card.sdk-proof {
    padding: 0;
  }
  .verified-card.sdk-proof .code-block {
    border-radius: 0 0 11px 11px !important;
  }
  .sdk-proof .sdk-proof-headline {
    padding: 20px 20px 16px;
  }
}

/* ─── POLISH PASS 2 ─────────────────────────────────────────────────────────── */

/* Proof-head: single-column, heading + note together */
.proof-head {
  display: block;
  margin-bottom: 32px;
}
.proof-head h2 {
  max-width: 22ch;
}
.proof-note {
  margin: 14px 0 0;
  max-width: 56ch;
}

/* State trio in position card */
.signal-blocked { color: var(--state-blocked); }
.state-trio {
  display: flex;
  gap: 20px;
  margin-top: 10px;
  font-weight: 600;
  font-size: 0.96rem;
}

/* Decision states — iconic log display in thesis-position */
.decision-states {
  display: grid;
  margin-top: 26px;
  border: 1px solid rgba(255, 248, 238, 0.09);
  border-radius: 10px;
  overflow: hidden;
}
.decision-state {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 248, 238, 0.07);
}
.decision-state:last-child {
  border-bottom: 0;
}
.state-label {
  font-family: "Arial Narrow", Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
}
.state-desc {
  font-size: 0.82rem;
  color: rgba(248, 241, 229, 0.42);
  line-height: 1.4;
}

/* thesis-position: dark card to contrast thesis-lead and make state colors read */
.system-stage .thesis-position {
  background: linear-gradient(160deg, rgba(26, 19, 14, 0.97), rgba(38, 28, 20, 0.96));
  border-color: rgba(255, 248, 238, 0.08);
  box-shadow: var(--shadow-strong);
}
.system-stage .thesis-position .section-tag,
.system-stage .thesis-position h2,
.system-stage .thesis-position .thesis-list li {
  color: var(--ivory);
}
.system-stage .thesis-position .section-tag {
  color: rgba(248, 241, 229, 0.52);
}
.system-stage .thesis-position .thesis-list li {
  color: rgba(248, 241, 229, 0.74);
}

/* Pricing list: dash bullets matching thesis-list style */
.pricing-card ul {
  list-style: none;
  padding-left: 0;
}
.pricing-card ul li {
  position: relative;
  padding-left: 18px;
}
.pricing-card ul li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--ink-faint);
}
.featured-tier ul li::before {
  color: rgba(248, 241, 229, 0.44);
}

/* Hero CTA hover: sharper secondary, more visible ghost */
.hero .cta.secondary:hover {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.2);
}
.hero .cta.ghost:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 248, 238, 0.42);
}

/* Hide form result box until it has content */
.form-result:empty {
  display: none;
}

/* Pricing footnote */
.pricing-footnote {
  margin: 16px 0 0;
  font-size: 0.84rem;
  color: var(--ink-faint);
  line-height: 1.5;
}

/* Footer light action card: warm ivory, defined edge */
.footer-cta .action-card:not(.action-card-dark) {
  background: rgba(246, 241, 231, 0.96);
  border-color: rgba(255, 255, 255, 0.12);
}

/* ─── INTERACTION LAYER ──────────────────────────────────────────────────────── */

/* Page load: masthead, hero-copy, hero-panel enter */
@media (prefers-reduced-motion: no-preference) {
  @keyframes el-enter {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: none; }
  }
  .masthead {
    animation: el-enter 0.52s cubic-bezier(0.16, 1, 0.3, 1) 0.04s both;
  }
  .hero-copy {
    animation: el-enter 0.72s cubic-bezier(0.16, 1, 0.3, 1) 0.14s both;
  }
  .hero-panel {
    animation: el-enter 0.72s cubic-bezier(0.16, 1, 0.3, 1) 0.26s both;
  }
}

/* Terminal: verdict loops — QUEUED shown, "→ approved" fades in, holds, fades out, repeats */
.verdict-transition { display: inline; }
@media (prefers-reduced-motion: no-preference) {
  .verdict-transition {
    opacity: 0;
    animation: verdict-loop 9s cubic-bezier(0.16, 1, 0.3, 1) infinite;
  }
  @keyframes verdict-loop {
    0%, 22%      { opacity: 0; }
    30%          { opacity: 1; }
    72%          { opacity: 1; }
    83%, 100%    { opacity: 0; }
  }
}

/* Scroll reveal: elements enter when they cross into the viewport */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    opacity: 0;
    transform: translateY(20px);
    transition:
      opacity 0.62s cubic-bezier(0.16, 1, 0.3, 1),
      transform 0.62s cubic-bezier(0.16, 1, 0.3, 1);
  }
  [data-reveal].revealed {
    opacity: 1;
    transform: none;
  }
}

/* Row-level hover states for evidence surfaces */
.decision-state { transition: background 140ms ease; }
.decision-state:hover { background: rgba(255, 248, 238, 0.05); }
.receipt-row { transition: background 140ms ease; }
.receipt-row:hover { background: rgba(255, 248, 238, 0.05); cursor: default; }

/* Proof seal: ambient slow rotation */
@media (prefers-reduced-motion: no-preference) {
  .proof-seal {
    animation: seal-rotate 72s linear infinite;
  }
  @keyframes seal-rotate {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
  }
}

/* SDK language toggle */
.lang-toggle {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(17, 22, 20, 0.05);
}
.lang-btn {
  padding: 5px 13px;
  border-radius: 5px;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font-family: "Arial Narrow", Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease, box-shadow 120ms ease;
}
.lang-btn.active {
  background: var(--paper-strong);
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(17, 22, 20, 0.1);
}
.lang-btn:hover:not(.active) {
  color: var(--ink);
}

/* Active nav link — highlights current section */
.mastnav a.nav-active {
  color: var(--ink);
  background: rgba(17, 22, 20, 0.08);
}

/* Thesis-point hover */
.thesis-point {
  border-radius: 8px;
  transition: background 150ms ease;
  cursor: default;
}
.thesis-point:hover {
  background: rgba(255, 255, 255, 0.04);
}

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, rgba(17, 22, 20, 0.55), rgba(17, 22, 20, 0.2));
  z-index: 200;
  pointer-events: none;
  transition: width 80ms linear;
}
@media (prefers-reduced-motion: reduce) {
  .scroll-progress { transition: none; }
}

/* ── Keyboard focus rings ────────────────────────────────────────────────────
   Use :focus-visible so mouse/touch clicks don't trigger rings,
   only keyboard navigation does.                                              */
.masthead-cta:focus-visible,
.mastnav a:focus-visible,
.cta:focus-visible,
.lang-btn:focus-visible,
.copy-btn:focus-visible,
.action-card:focus-visible,
.submit:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 6px;
}

/* On dark-background contexts, invert ring to cream */
.hero .cta:focus-visible,
.masthead-cta:focus-visible,
.system-stage .lang-btn:focus-visible,
.footer-cta .action-card:focus-visible,
.action-card-dark:focus-visible {
  outline-color: rgba(248, 241, 229, 0.82);
}
