:root {
  --ink: #11130c;
  --paper: #f2f0e7;
  --acid: #e9ff65;
  --green: #0f6d47;
  --orange: #f06c3d;
  --line: rgba(17, 19, 12, 0.2);
  --muted: #65685c;
  --display: Baskerville, "Iowan Old Style", "Palatino Linotype", serif;
  --utility: "Avenir Next Condensed", "Futura Condensed", "Franklin Gothic Medium", sans-serif;
  --body: "Avenir Next", Futura, "Century Gothic", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    linear-gradient(90deg, transparent 49.8%, rgba(17, 19, 12, 0.04) 50%, transparent 50.2%),
    var(--paper);
  color: var(--ink);
  font-family: var(--body);
  min-height: 100vh;
}

a { color: inherit; }

.site-nav {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr auto 1fr;
  padding: 1.25rem clamp(1.25rem, 4vw, 4.5rem);
}

.wordmark {
  font-family: var(--utility);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.wordmark b { color: var(--green); }

.site-nav nav { display: flex; gap: 2rem; }
.site-nav nav a {
  font-family: var(--utility);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
}

.readiness-pill {
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-family: var(--utility);
  font-size: 0.68rem;
  justify-self: end;
  letter-spacing: 0.1em;
  padding: 0.55rem 0.8rem;
  text-transform: uppercase;
}

.readiness-pill[data-ready="true"] { background: var(--acid); }
.readiness-pill[data-ready="false"] { background: #ffd8c8; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  min-height: 77vh;
}

.hero-copy {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(4rem, 8vw, 9rem) clamp(1.25rem, 7vw, 8rem);
}

.kicker {
  font-family: var(--utility);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  margin: 0 0 1.5rem;
  text-transform: uppercase;
}

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

.hero h1 {
  font-family: var(--display);
  font-size: clamp(3.8rem, 7.5vw, 8.6rem);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 0.82;
  margin-bottom: 2.2rem;
  max-width: 10ch;
}

.hero h1 em {
  color: var(--green);
  display: block;
  font-weight: 400;
}

.hero-lede {
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.22rem);
  line-height: 1.65;
  max-width: 46rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }

.button {
  border: 1px solid var(--ink);
  display: inline-flex;
  font-family: var(--utility);
  font-size: 0.74rem;
  font-weight: 700;
  justify-content: center;
  letter-spacing: 0.12em;
  padding: 1rem 1.3rem;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover { transform: translate(-3px, -3px); box-shadow: 4px 4px 0 var(--ink); }
.button-primary { background: var(--acid); color: var(--ink); }
.button-quiet { background: transparent; }

.settlement-card {
  background: var(--ink);
  color: var(--paper);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(2rem, 5vw, 5.5rem);
  position: relative;
}

.settlement-card::after {
  background: var(--acid);
  content: "";
  height: 7rem;
  position: absolute;
  right: 0;
  top: 0;
  width: 0.7rem;
}

.card-header {
  color: #b7baa9;
  display: flex;
  font-family: var(--utility);
  font-size: 0.62rem;
  justify-content: space-between;
  letter-spacing: 0.12em;
  margin-bottom: 2.6rem;
}

.settlement-card ol { list-style: none; margin: 0; padding: 0; }
.settlement-card li {
  align-items: baseline;
  border-top: 1px solid rgba(242, 240, 231, 0.24);
  display: grid;
  gap: 1rem;
  grid-template-columns: 3rem 1fr auto;
  padding: 1.35rem 0;
}
.settlement-card li:last-child { border-bottom: 1px solid rgba(242, 240, 231, 0.24); }
.settlement-card li b { color: var(--acid); font-family: var(--utility); font-size: 0.7rem; }
.settlement-card li span { font-family: var(--display); font-size: clamp(1.3rem, 2vw, 2rem); }
.settlement-card li small { color: #a9ad9b; font-size: 0.72rem; }

.system-section { border-top: 1px solid var(--line); padding: clamp(5rem, 9vw, 9rem) clamp(1.25rem, 7vw, 8rem); }
.section-heading { display: grid; gap: 2rem; grid-template-columns: 1fr 2fr; margin-bottom: 4rem; }
.section-heading h2, .contract-section h2 {
  font-family: var(--display);
  font-size: clamp(2.8rem, 5vw, 5.5rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.95;
  margin: 0;
  max-width: 12ch;
}

.capability-grid { border-left: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); }
.capability-grid article { border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); min-height: 17rem; padding: 2rem; }
.capability-grid article > span { color: var(--green); font-family: var(--utility); font-size: 0.72rem; }
.capability-grid h3 { font-family: var(--display); font-size: 1.8rem; font-weight: 400; margin: 3rem 0 1rem; }
.capability-grid p { color: var(--muted); font-size: 0.92rem; line-height: 1.65; }

.contract-section {
  background: var(--acid);
  border-top: 1px solid var(--ink);
  display: grid;
  gap: clamp(3rem, 8vw, 9rem);
  grid-template-columns: 1fr 1fr;
  padding: clamp(5rem, 9vw, 9rem) clamp(1.25rem, 7vw, 8rem);
}
.contract-copy > p:not(.kicker) { line-height: 1.7; max-width: 38rem; }
.contract-copy ul { display: grid; gap: 0.7rem; list-style: square; padding-left: 1.2rem; }
.code-panel { align-self: center; background: var(--ink); color: var(--paper); font-size: clamp(0.78rem, 1.2vw, 1rem); line-height: 1.7; margin: 0; overflow: auto; padding: clamp(1.5rem, 4vw, 3.5rem); }
.code-panel span { color: var(--acid); }

footer {
  background: var(--ink);
  color: #aeb1a1;
  display: flex;
  font-family: var(--utility);
  font-size: 0.66rem;
  justify-content: space-between;
  letter-spacing: 0.12em;
  padding: 1.4rem clamp(1.25rem, 4vw, 4.5rem);
  text-transform: uppercase;
}

.checkout-page { background: var(--ink); color: var(--paper); }
.checkout-shell { margin: 0 auto; max-width: 76rem; min-height: 100vh; padding: clamp(1.5rem, 5vw, 5rem); }
.checkout-wordmark { color: var(--paper); display: inline-block; margin-bottom: clamp(4rem, 10vw, 9rem); }
.checkout-wordmark b { color: var(--acid); }
.checkout-panel { border: 1px solid rgba(242, 240, 231, 0.35); display: grid; grid-template-columns: 1.2fr 0.8fr; }
.checkout-copy, .checkout-action { padding: clamp(2rem, 6vw, 5rem); }
.checkout-copy { border-right: 1px solid rgba(242, 240, 231, 0.35); }
.checkout-copy h1 { font-family: var(--display); font-size: clamp(3rem, 6vw, 6rem); font-weight: 400; letter-spacing: -0.05em; line-height: 0.9; }
.checkout-copy > p:not(.kicker) { color: #b8bbaa; line-height: 1.7; max-width: 38rem; }
.checkout-copy dl { border-top: 1px solid rgba(242, 240, 231, 0.25); margin-top: 3rem; }
.checkout-copy dl div { border-bottom: 1px solid rgba(242, 240, 231, 0.25); display: flex; justify-content: space-between; padding: 1rem 0; }
.checkout-copy dt { color: #999d8d; }
.checkout-copy dd { margin: 0; }
.checkout-action { align-items: stretch; background: var(--acid); color: var(--ink); display: flex; flex-direction: column; justify-content: center; }
.price { font-family: var(--display); font-size: clamp(5rem, 10vw, 9rem); letter-spacing: -0.06em; line-height: 0.8; margin: 0 0 2rem; }
.gate-message { border-block: 1px solid rgba(17, 19, 12, 0.35); line-height: 1.5; padding: 1rem 0; }
.gate-message[data-ready="false"] { color: #7a2f18; }
.pay-button { cursor: pointer; margin-top: 1.5rem; width: 100%; }
.pay-button:disabled { cursor: not-allowed; filter: grayscale(1); opacity: 0.5; }
.checkout-action small { line-height: 1.55; margin-top: 1.5rem; }
.back-link { color: #aeb1a1; display: inline-block; font-family: var(--utility); font-size: 0.7rem; letter-spacing: 0.12em; margin-top: 2rem; text-decoration: none; text-transform: uppercase; }

@media (max-width: 900px) {
  .site-nav { grid-template-columns: 1fr auto; }
  .site-nav nav { display: none; }
  .hero, .contract-section, .checkout-panel { grid-template-columns: 1fr; }
  .hero-copy { min-height: 70vh; }
  .capability-grid { grid-template-columns: 1fr 1fr; }
  .section-heading { grid-template-columns: 1fr; }
  .checkout-copy { border-bottom: 1px solid rgba(242, 240, 231, 0.35); border-right: 0; }
}

@media (max-width: 560px) {
  .site-nav { gap: 0.6rem; padding: 1rem; }
  .readiness-pill { font-size: 0.56rem; padding: 0.45rem 0.55rem; }
  .hero h1 { font-size: clamp(3.4rem, 17vw, 5rem); }
  .hero-actions .button { width: 100%; }
  .settlement-card { padding: 2.5rem 1.25rem; }
  .settlement-card li { grid-template-columns: 2rem 1fr; }
  .settlement-card li small { grid-column: 2; }
  .capability-grid { grid-template-columns: 1fr; }
  .capability-grid article { min-height: 14rem; }
  footer { flex-direction: column; gap: 0.8rem; }
  .checkout-shell { padding: 1rem; }
  .checkout-panel { margin-inline: -1rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > *, .settlement-card { animation: arrive 700ms both; }
  .hero-copy > *:nth-child(2) { animation-delay: 70ms; }
  .hero-copy > *:nth-child(3) { animation-delay: 140ms; }
  .hero-copy > *:nth-child(4) { animation-delay: 210ms; }
  .settlement-card { animation-delay: 150ms; }
  @keyframes arrive { from { opacity: 0; transform: translateY(18px); } }
}
