:root {
  --bg: #f6f8fa;
  --ink: #14202b;
  --muted: #5d6b7a;
  --line: #d8e1ea;
  --panel: #ffffff;
  --accent: #0f766e;
  --accent-dark: #0b4f4b;
  --danger: #a33434;
  --ok: #1c7c45;
  --code: #111827;
  font-family: "Geist", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
}

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

.topbar {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 32px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .94);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-weight: 800;
  letter-spacing: 0;
}

nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 6px;
  padding: 0 15px;
  font-weight: 750;
  border: 1px solid var(--line);
  cursor: pointer;
  font: inherit;
}

.button:hover {
  filter: brightness(.96);
}

.button:active {
  transform: translateY(1px);
}

.button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(15, 118, 110, .24);
  outline-offset: 2px;
}

.primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.secondary,
.ghost {
  background: #fff;
  color: var(--ink);
}

.full { width: 100%; }

main {
  width: min(1180px, calc(100vw - 40px));
  margin: 0 auto;
}

.hero {
  min-height: min(720px, calc(100vh - 68px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 48px;
  align-items: center;
  padding: 56px 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-dark);
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .06em;
}

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

h1 {
  font-size: clamp(44px, 7vw, 84px);
  line-height: .98;
  max-width: 920px;
  letter-spacing: 0;
}

.lede {
  color: var(--muted);
  font-size: 20px;
  max-width: 720px;
  margin-top: 24px;
}

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

.terminal-panel {
  background: var(--code);
  border: 1px solid #263245;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 22px 55px rgba(20, 32, 43, .18);
}

.terminal-header {
  display: flex;
  gap: 7px;
  padding: 13px;
  border-bottom: 1px solid #253041;
}

.terminal-header span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #63d2ae;
}

.terminal-header span:nth-child(2) { background: #f0b65f; }
.terminal-header span:nth-child(3) { background: #e56b6f; }

pre {
  margin: 0;
  padding: 20px;
  color: #d8f3dc;
  overflow: auto;
  font: 14px/1.55 "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

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

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

h2 {
  font-size: 30px;
  line-height: 1.1;
  margin-bottom: 18px;
}

h3 {
  font-size: 21px;
  margin-bottom: 14px;
}

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

li + li { margin-top: 10px; }

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 20px;
}

.section-title p,
.checkout-copy p,
.proof-grid p,
.artifact-card p {
  color: var(--muted);
}

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

.proof-grid a,
.checkout-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.proof-grid a {
  display: block;
  padding: 18px;
  min-height: 170px;
  position: relative;
}

.proof-grid a::before {
  content: "";
  display: block;
  width: 36px;
  height: 3px;
  border-radius: 999px;
  background: var(--accent);
  margin-bottom: 16px;
}

.proof-grid a:hover {
  border-color: #9fb9b5;
  box-shadow: 0 10px 28px rgba(20, 32, 43, .07);
}

.proof-grid span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 10px;
}

.proof-grid strong {
  display: block;
  font-size: 20px;
  line-height: 1.2;
  margin-bottom: 10px;
}

.proof-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.proof-metrics div {
  background: #e8f3f1;
  border: 1px solid #c7dfdb;
  border-radius: 8px;
  padding: 16px;
}

.proof-metrics span,
.artifact-stats span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.proof-metrics strong,
.artifact-stats strong {
  display: block;
  color: var(--accent-dark);
  font-size: 22px;
  line-height: 1.15;
  margin-top: 4px;
}

.checkout-steps {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.checkout-steps span {
  display: block;
  background: #e8f3f1;
  border: 1px solid #c7dfdb;
  border-radius: 6px;
  padding: 12px;
  font-weight: 700;
  color: var(--accent-dark);
}

.checkout-card {
  padding: 20px;
  box-shadow: 0 18px 50px rgba(20, 32, 43, .08);
}

form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  min-height: 44px;
  padding: 11px 12px;
  font: 15px/1.4 inherit;
}

textarea { resize: vertical; }

.order-panel {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.order-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.order-heading p,
.payment-instruction {
  color: var(--muted);
  font-size: 14px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  background: #fff3d9;
  color: #7a4300;
  border: 1px solid #f1cf8b;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 800;
  text-transform: capitalize;
  white-space: nowrap;
}

.status-pill.ok {
  background: #e8f7eb;
  color: var(--ok);
  border-color: #bde7c6;
}

.status-pill.error {
  background: #fff0f0;
  color: var(--danger);
  border-color: #f1b9b9;
}

.checkout-timer {
  margin-bottom: 14px;
  border: 1px solid #d7e4e1;
  background: #f4fbf9;
  color: var(--accent-dark);
  border-radius: 6px;
  padding: 10px 12px;
  font-weight: 800;
}

.payment-grid {
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
}

.payment-grid img {
  width: 124px;
  height: 124px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

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

.hidden { display: none; }

dl {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
}

dl div {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

dt {
  color: var(--muted);
  font-weight: 750;
}

dd {
  margin: 0;
  word-break: break-all;
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
}

#payment-form { margin-top: 16px; }
#receipt-link { margin-top: 12px; }

.status-text {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
}

.status-text.error { color: var(--danger); }
.status-text.ok { color: var(--ok); }

.receipt-shell {
  max-width: 860px;
  margin: 0 auto;
  padding: 72px 20px;
}

.receipt-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 18px 50px rgba(20, 32, 43, .08);
}

.receipt-card h1 {
  font-size: 38px;
  margin-bottom: 12px;
}

.receipt-card .lede {
  color: var(--muted);
  margin-bottom: 24px;
}

.receipt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.proof-hero {
  padding: 92px 0 62px;
}

.proof-hero h1 {
  max-width: 980px;
  font-size: clamp(42px, 6vw, 78px);
}

.artifact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: 24px;
  align-items: stretch;
}

.artifact-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}

.primary-artifact {
  background: #eef7f5;
  border-color: #bfdbd6;
}

.artifact-kicker {
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.artifact-card p {
  font-size: 18px;
}

.artifact-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.artifact-stats div {
  border-top: 1px solid #bfdbd6;
  padding-top: 12px;
}

.code-artifact {
  background: var(--code);
  color: #d8f3dc;
}

.code-artifact .artifact-kicker {
  color: #63d2ae;
}

.code-artifact pre {
  padding: 0;
  white-space: pre-wrap;
}

.artifact-list {
  margin-top: 18px;
}

.checkout-proof dl {
  margin-bottom: 18px;
}

.checkout-proof dd {
  font-family: inherit;
  font-size: 15px;
  word-break: normal;
  overflow-wrap: anywhere;
}

@media (max-width: 860px) {
  .topbar { padding: 0 20px; }
  nav a:not(.button) { display: none; }
  main { width: min(100vw - 28px, 1180px); }
  .hero {
    min-height: auto;
    padding: 58px 0;
  }
  .hero,
  .grid,
  .proof-grid,
  .proof-metrics,
  .artifact-grid,
  .artifact-stats,
  .checkout-section {
    grid-template-columns: 1fr;
  }
  .section-title {
    display: block;
  }
  .section-title p {
    margin-top: 8px;
  }
  h1 { font-size: 44px; }
  .lede { font-size: 18px; }
  .proof-hero {
    padding: 58px 0 44px;
  }
  dl div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .order-heading,
  .checkout-actions {
    grid-template-columns: 1fr;
    display: grid;
  }
  .payment-grid {
    grid-template-columns: 1fr;
  }
  .payment-grid img {
    width: 164px;
    height: 164px;
  }
}
