:root {
  --ink: #17150f;
  --ink-soft: #4f4a3c;
  --ink-faint: #6a6350;
  --paper: #f4f0e5;
  --paper-dark: #e8e1d0;
  --amber: #ffb000;
  --amber-light: #ffd36d;
  --green: #b9f37c;
  --line: rgba(23, 21, 15, .18);
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --section-pad: 88px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.shell { width: min(1140px, calc(100% - 48px)); margin-inline: auto; }
.skip { position: fixed; left: 12px; top: -80px; z-index: 100; padding: 10px 14px; background: white; }
.skip:focus { top: 12px; }

/* Navigation */
.nav { height: 72px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; gap: 11px; align-items: center; color: inherit; text-decoration: none; font-family: var(--mono); font-size: 14px; font-weight: 700; letter-spacing: -.03em; }
.brand-mark { position: relative; display: inline-grid; place-items: center; width: 26px; height: 20px; border: 2px solid currentColor; }
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; width: 14px; height: 2px; background: currentColor; top: 7px; }
.brand-mark::before { left: -1px; transform: rotate(34deg); transform-origin: left; }
.brand-mark::after { right: -1px; transform: rotate(-34deg); transform-origin: right; }
.brand-mark i { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--amber); right: -5px; top: -5px; box-shadow: 0 0 0 3px var(--paper); }
.nav nav { display: flex; gap: 26px; align-items: center; font-family: var(--mono); font-size: 13px; }
.nav nav a { white-space: nowrap; }
.nav nav a { text-decoration: none; }
.nav nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
.nav-cta { padding: 9px 14px; border: 1px solid var(--ink); }

/* Hero */
.hero { display: grid; grid-template-columns: 1.3fr .7fr; gap: 56px; align-items: center; padding-block: 64px 80px; }
.eyebrow, .kicker { margin: 0 0 18px; font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.pulse { display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: #44a21b; box-shadow: 0 0 0 4px rgba(68,162,27,.13); }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 24px; font-size: clamp(38px, 4.8vw, 64px); line-height: 1.04; letter-spacing: -.035em; font-weight: 800; }
h1 em { color: transparent; font-style: normal; -webkit-text-stroke: 2px var(--ink); }
@supports not (-webkit-text-stroke: 2px black) { h1 em { color: var(--ink); } }
.lede { max-width: 620px; margin-bottom: 28px; color: var(--ink-soft); font-size: clamp(17px, 1.6vw, 20px); line-height: 1.5; letter-spacing: -.01em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; min-height: 44px; padding: 0 20px; align-items: center; justify-content: center; border: 1px solid var(--ink); text-decoration: none; font-family: var(--mono); font-size: 13px; font-weight: 700; transition: transform .15s, box-shadow .15s, background .15s; }
.button:hover { transform: translate(-2px,-2px); box-shadow: 4px 4px 0 var(--ink); }
.button.primary { color: var(--ink); background: var(--amber); }
.button.secondary { background: transparent; }
.microcopy { max-width: 580px; margin: 20px 0 0; color: var(--ink-faint); font-family: var(--mono); font-size: 14px; line-height: 1.65; }

/* Receipt card */
.inbox-card { width: min(100%, 372px); justify-self: end; background: var(--ink); box-shadow: 14px 14px 0 var(--amber); transform: rotate(1.5deg); }
.card-top { display: flex; height: 42px; padding: 0 15px; align-items: center; justify-content: space-between; color: #afa991; border-bottom: 1px solid #3b382e; font-family: var(--mono); font-size: 12px; }
.window-dots { display: flex; gap: 5px; }
.window-dots span { width: 6px; height: 6px; border-radius: 50%; background: #5b5749; }
.window-dots span:first-child { background: var(--amber); }
.receipt { position: relative; margin: 16px; padding: 26px 24px 20px; overflow: hidden; background: #fffdf5; }
.receipt::after { content: ""; position: absolute; inset: auto 0 0; height: 4px; background: repeating-linear-gradient(90deg, transparent 0 6px, var(--ink) 6px 8px); opacity: .15; }
.receipt-stamp { position: absolute; right: 20px; top: 20px; padding: 3px 7px; border: 2px solid #4a8e20; color: #4a8e20; font-family: var(--mono); font-weight: 800; transform: rotate(-7deg); }
.receipt-key { margin-bottom: 8px; color: var(--ink-faint); font-family: var(--mono); font-size: 12px; letter-spacing: .14em; }
.receipt-address { margin-bottom: 20px; font-family: var(--mono); font-size: 18px; font-weight: 700; line-height: 1.4; word-break: break-all; }
.rule { border-top: 1px dashed #a59e8c; }
.receipt dl { margin: 16px 0; font-family: var(--mono); font-size: 13px; }
.receipt dl div { display: flex; padding: 4px 0; justify-content: space-between; }
.receipt dt { color: var(--ink-faint); }
.receipt dd { margin: 0; font-weight: 700; }
.token-line { display: flex; padding: 10px 12px; justify-content: space-between; background: #ece7d9; font-family: var(--mono); font-size: 13px; }
.token-line code { font-size: 13px; }
.receipt-foot { margin: 16px 0 0; text-align: center; color: var(--ink-faint); font-family: var(--mono); font-size: 12px; }

/* Tear divider: the receipt's perforated edge, page-wide */
.tear { height: 4px; background: repeating-linear-gradient(90deg, transparent 0 8px, var(--ink) 8px 11px); opacity: .3; }

/* Sections */
.section { padding-block: var(--section-pad); border-bottom: 1px solid var(--line); }
.section-heading { max-width: 720px; }
.section-heading h2 { margin-bottom: 18px; font-size: clamp(30px, 3.5vw, 46px); line-height: 1.08; letter-spacing: -.03em; }
.section-heading > p:last-of-type { max-width: 620px; margin-bottom: 0; color: var(--ink-soft); font-size: 17px; }
.steps { margin: 48px 0 0; padding: 0; border-top: 1px solid var(--ink); list-style: none; }
.steps li { display: grid; grid-template-columns: 80px 1fr; padding: 26px 0; border-bottom: 1px solid var(--line); }
.step-number { color: var(--ink-faint); font-family: var(--mono); font-size: 12px; padding-top: 4px; }
.steps h3 { margin: 0 0 6px; font-size: 20px; letter-spacing: -.02em; }
.steps p { max-width: 640px; margin: 0; color: var(--ink-soft); font-size: 15px; }

/* Quickstart */
.code-section { color: var(--paper); background: var(--ink); }
.code-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.inverse > p:last-of-type { color: #aaa38e; }
.doc-links { display: grid; gap: 0; margin-top: 32px; }
.doc-links a { padding: 11px 0; border-bottom: 1px solid #3b382e; color: var(--amber-light); font-family: var(--mono); font-size: 14px; text-decoration: none; }
.doc-links a:hover { color: var(--amber); }
.doc-links a span { float: right; }
.terminal { min-width: 0; border: 1px solid #4b473a; background: #0d0c09; box-shadow: 12px 12px 0 #29261e; }
.terminal-bar { display: flex; min-height: 42px; padding: 0 14px; align-items: center; justify-content: space-between; border-bottom: 1px solid #373329; color: #8d8775; font-family: var(--mono); font-size: 13px; }
.copy { padding: 5px 10px; color: var(--paper); border: 1px solid #4b473a; background: transparent; font: 700 12px var(--mono); cursor: pointer; }
.copy:hover { border-color: var(--amber); color: var(--amber); }
.terminal pre { margin: 0; padding: 24px; overflow: auto; font: 13px/1.7 var(--mono); }
.terminal code { font-family: inherit; }
.comment { color: #777160; }
.cmd, .key { color: var(--amber-light); }
.string { color: var(--green); }

/* API */
.split-heading { display: grid; max-width: none; grid-template-columns: 1fr 1fr; gap: 64px; align-items: end; }
.split-heading > p { margin-bottom: 8px; }
.endpoint-list { margin-top: 48px; border-top: 1px solid var(--ink); }
.endpoint { display: grid; grid-template-columns: 76px 1fr 96px 80px; gap: 16px; align-items: center; min-height: 58px; border-bottom: 1px solid var(--line); }
.endpoint code { overflow: hidden; font: 13px var(--mono); text-overflow: ellipsis; white-space: nowrap; }
.endpoint p { margin: 0; color: var(--ink-faint); font-size: 13px; text-align: right; }
.method { width: fit-content; padding: 4px 8px; font: 700 12px var(--mono); }
.method.post { color: #5a3b00; background: #ffd875; }
.method.get { color: #154c34; background: #aee5c6; }
.method.delete { color: #721e1e; background: #f0b0a7; }
.endpoint-note { color: var(--ink-faint); font: 13px var(--mono); text-align: right; }
.endpoint-note.paid { color: var(--ink); font-weight: 700; }

/* Guardrails */
.trust-section { background: var(--paper-dark); }
.centered { margin-inline: auto; text-align: center; }
.centered > p:last-of-type { margin-inline: auto; }
.guard-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 44px; border: 1px solid var(--line); background: var(--line); text-align: left; }
.guard-grid article { padding: 24px; background: var(--paper-dark); }
.guard-icon { display: grid; width: 40px; height: 40px; margin-bottom: 18px; place-items: center; border: 1px solid var(--ink); font: 700 13px var(--mono); }
.guard-grid h3 { margin-bottom: 8px; font-size: 17px; letter-spacing: -.01em; }
.guard-grid p { margin: 0; color: var(--ink-soft); font-size: 14px; }

/* Final CTA */
.final-cta { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; }
.final-cta h2 { margin: 0; font-size: clamp(36px, 4.5vw, 60px); line-height: 1.02; letter-spacing: -.035em; }
.button.large { min-height: 52px; padding-inline: 26px; }
.final-cta > div:last-child p { margin: 12px 0 0; color: var(--ink-faint); font: 13px var(--mono); text-align: center; }

/* Footer: shared row (subpages) */
footer { padding-block: 40px; color: #c5bfac; background: var(--ink); }
.footer-grid { display: grid; grid-template-columns: auto 1fr auto auto; gap: 28px; align-items: center; }
.footer-brand { color: var(--paper); }
.footer-brand .brand-mark i { box-shadow: 0 0 0 3px var(--ink); }
footer p { margin: 0; font-size: 14px; }
footer nav { display: flex; gap: 18px; justify-content: flex-end; font: 13px var(--mono); }
footer nav a { text-decoration: none; }
footer nav a:hover { color: var(--amber); }
.copyright { font: 13px var(--mono); white-space: nowrap; }

/* Footer: grouped columns (home) */
.footer-main { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; align-items: start; }
.footer-about p { margin: 16px 0 0; font-size: 14px; max-width: 240px; }
.footer-about .copyright { margin-top: 24px; color: #8d8775; }
.footer-col h4 { margin: 4px 0 16px; color: #8d8775; font: 700 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.footer-col { display: block; }
.footer-col nav { display: grid; gap: 10px; justify-content: start; font: 13px var(--mono); }

/* Legal pages */
.legal { padding-block: 56px 88px; }
.legal h1 { max-width: 720px; font-size: clamp(34px, 4.5vw, 48px); }
.legal .updated { color: var(--ink-faint); font: 13px var(--mono); }
.legal article { max-width: 680px; margin-top: 40px; }
.legal article h2 { margin: 40px 0 12px; font-size: 22px; letter-spacing: -.02em; }
.legal article p, .legal article li { color: var(--ink-soft); }
.legal article li + li { margin-top: 8px; }

/* Content pages */
.content-hero { padding-block: 56px 64px; border-bottom: 1px solid var(--line); }
.content-hero h1 { max-width: 880px; }
.content-hero .lede { max-width: 700px; }
.status-chip { display: inline-flex; margin-bottom: 24px; padding: 6px 10px; border: 1px solid var(--ink); background: var(--amber-light); font: 700 12px var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.content-section { padding-block: 72px; border-bottom: 1px solid var(--line); }
.content-section h2 { max-width: 720px; margin-bottom: 18px; font-size: clamp(28px, 3.2vw, 42px); line-height: 1.08; letter-spacing: -.03em; }
.content-section > p { max-width: 700px; color: var(--ink-soft); font-size: 17px; }
.use-case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 40px; border: 1px solid var(--line); background: var(--line); }
.use-case-grid article { padding: 24px; background: var(--paper); }
.use-case-grid .number { display: block; margin-bottom: 20px; color: var(--ink-faint); font: 12px var(--mono); }
.use-case-grid h3 { margin-bottom: 8px; font-size: 18px; letter-spacing: -.01em; }
.use-case-grid p { margin: 0; color: var(--ink-soft); font-size: 14px; }
.product-facts { display: grid; grid-template-columns: repeat(4, 1fr); margin: 40px 0 0; border: 1px solid var(--ink); }
.product-facts div { padding: 20px 24px; border-right: 1px solid var(--line); }
.product-facts div:last-child { border-right: 0; }
.product-facts dt { margin-bottom: 8px; color: var(--ink-faint); font: 12px var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.product-facts dd { margin: 0; font-size: 18px; font-weight: 700; }
.comparison { width: 100%; margin-top: 40px; border-collapse: collapse; font-size: 15px; }
.comparison th, .comparison td { padding: 14px 16px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.comparison th { background: var(--paper-dark); font: 700 13px var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.comparison td:first-child { width: 26%; font-weight: 700; }
.flow-list { max-width: 820px; margin: 40px 0 0; padding: 0; border-top: 1px solid var(--ink); list-style: none; }
.flow-list li { display: grid; grid-template-columns: 64px 1fr; padding: 22px 0; border-bottom: 1px solid var(--line); }
.flow-list span { color: var(--ink-faint); font: 12px var(--mono); padding-top: 4px; }
.flow-list h3 { margin-bottom: 6px; font-size: 19px; letter-spacing: -.01em; }
.flow-list p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.resource-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.resource-links a { padding: 11px 15px; border: 1px solid var(--ink); font: 700 13px var(--mono); text-decoration: none; }
.resource-links a:hover { color: var(--paper); background: var(--ink); }

@media (max-width: 900px) {
  :root { --section-pad: 72px; }
  .nav nav { gap: 18px; font-size: 12px; }
  .hero { grid-template-columns: 1fr; gap: 0; padding-block: 48px 64px; }
  .inbox-card { justify-self: start; margin-top: 40px; }
  .code-grid, .split-heading { grid-template-columns: 1fr; gap: 0; }
  .split-heading > p { margin: 20px 0 0; }
  .terminal { margin-top: 32px; }
  .guard-grid { grid-template-columns: 1fr 1fr; }
  .use-case-grid { grid-template-columns: 1fr; }
  .product-facts { grid-template-columns: 1fr 1fr; }
  .product-facts div:nth-child(2n) { border-right: 0; }
  .product-facts div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  footer nav { justify-content: flex-start; flex-wrap: wrap; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 600px) {
  :root { --section-pad: 60px; }
  .shell { width: calc(100% - 32px); }
  .nav { height: auto; min-height: 64px; padding-block: 10px; }
  .nav .brand > span:last-child { display: none; }
  .nav nav { gap: 8px 14px; font-size: 12px; flex-wrap: wrap; justify-content: flex-end; }
  .nav-cta { padding: 8px 10px; }
  .hero { padding-block: 40px 56px; }
  h1 { font-size: clamp(34px, 10vw, 40px); }
  h1 em { -webkit-text-stroke-width: 1.5px; }
  .lede { font-size: 16px; }
  .inbox-card { width: 100%; box-shadow: 8px 8px 0 var(--amber); transform: none; }
  .receipt { margin: 12px; padding: 20px 18px 16px; }
  .steps li { grid-template-columns: 44px 1fr; padding: 20px 0; }
  .terminal pre { padding: 18px 16px; font-size: 12px; }
  .endpoint { grid-template-columns: 62px 1fr auto; min-height: 52px; gap: 10px; }
  .endpoint p { display: none; }
  .endpoint code { font-size: 12px; }
  .guard-grid { grid-template-columns: 1fr; }
  .product-facts { grid-template-columns: 1fr; }
  .product-facts div { border-right: 0; border-bottom: 1px solid var(--line); }
  .product-facts div:last-child { border-bottom: 0; }
  .comparison { display: block; overflow-x: auto; font-size: 13px; }
  .comparison th, .comparison td { padding: 10px 12px; }
  .comparison td code { overflow-wrap: anywhere; }
  .final-cta { grid-template-columns: 1fr; gap: 28px; }
  .final-cta > div:last-child { justify-self: start; }
  .final-cta > div:last-child p { text-align: left; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  footer nav { display: grid; gap: 12px; }
  .footer-main { grid-template-columns: 1fr; gap: 32px; }
  .legal, .content-hero { padding-block: 40px 56px; }
  .content-section { padding-block: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
