/* Landing page styles. The interaction pages keep interaction.css; this file
   shares their palette so the marketing surface and the purchase surface read
   as one product. Two voices: the system sans carries prose, and the system
   monospace carries everything the protocol actually produces — endpoints,
   journal entries, amounts. */

:root {
  color-scheme: light dark;
  --background: #f7f6f2;
  --surface: #ffffff;
  --text: #1e2521;
  --muted: #53605a;
  --link: #235b44;
  --action: #235b44;
  --pine-deep: #17402f;
  --focus: #b54a15;
  --rule: #d9d6cc;
  --term-bg: #12211a;
  --term-text: #cfe6d8;
  --term-dim: #6f8a7c;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  background: var(--background);
  color: var(--text);
  line-height: 1.55;
  margin: 0;
}

a { color: var(--link); }
:focus-visible { outline: .2rem solid var(--focus); outline-offset: .2rem; }

.skip {
  background: var(--surface); border-radius: .5rem; left: 1rem; padding: .5rem 1rem;
  position: absolute; top: -3rem; z-index: 10;
}
.skip:focus { top: 1rem; }

.visually-hidden {
  clip: rect(0 0 0 0); clip-path: inset(50%); height: 1px; overflow: hidden;
  position: absolute; white-space: nowrap; width: 1px;
}

/* --- Navigation ---------------------------------------------------------- */

.site-nav {
  align-items: baseline; display: flex; flex-wrap: wrap; gap: .75rem 1.25rem;
  margin: 0 auto; max-width: 72rem; padding: 1.5rem clamp(1rem, 4vw, 2.5rem);
}
.wordmark {
  color: var(--text); font-size: 1.5rem; font-weight: 800; letter-spacing: -.03em;
  text-decoration: none;
}
.wordmark .cursor { color: var(--link); }
.chip {
  border: 1px solid var(--muted); border-radius: 2rem; color: var(--muted);
  font-family: var(--mono); font-size: .7rem; letter-spacing: .08em;
  padding: .15rem .6rem; text-transform: uppercase;
}
.site-nav nav {
  align-items: baseline; display: flex; flex-wrap: wrap; gap: 1.25rem; margin-left: auto;
}
.site-nav nav a { font-weight: 600; text-decoration: none; }
.site-nav nav a:hover { text-decoration: underline; }
.nav-cta {
  background: var(--action); border-radius: .5rem; color: #fff !important;
  padding: .5rem .9rem;
}
.nav-cta:hover { text-decoration: none !important; filter: brightness(1.1); }

/* --- Hero ---------------------------------------------------------------- */

main { display: block; }

.hero {
  align-items: center; display: grid; gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: minmax(0, 7fr) minmax(0, 6fr);
  margin: 0 auto; max-width: 72rem;
  padding: clamp(2rem, 7vh, 5rem) clamp(1rem, 4vw, 2.5rem) clamp(2.5rem, 7vh, 5rem);
}
.kicker {
  color: var(--muted); font-family: var(--mono); font-size: .8rem;
  letter-spacing: .14em; margin: 0 0 1rem; text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(2.2rem, 5.2vw, 3.6rem); font-weight: 800;
  letter-spacing: -.03em; line-height: 1.05; margin: 0 0 1.25rem;
}
.lede { font-size: 1.125rem; margin: 0 0 1.75rem; max-width: 34rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.button {
  background: var(--action); border-radius: .5rem; color: #fff; display: inline-block;
  font-weight: 700; padding: .8rem 1.2rem; text-decoration: none;
}
.button:hover { filter: brightness(1.1); }
.button.ghost { background: transparent; border: 1px solid var(--link); color: var(--link); }
.fineprint {
  color: var(--muted); font-family: var(--mono); font-size: .8rem; margin-top: 1.5rem;
}

/* The handoff: the agent's terminal hands a link to the customer's purchase
   card. The two artifacts overlap the way the two halves of the flow do. */
.handoff { position: relative; }
.terminal {
  background: var(--term-bg); border-radius: .75rem;
  box-shadow: 0 1rem 3rem rgb(0 0 0 / 18%); color: var(--term-text);
  margin: 0; padding: 1rem 1.25rem 1.25rem;
}
.terminal figcaption {
  color: var(--term-dim); font-family: var(--mono); font-size: .7rem;
  letter-spacing: .1em; margin-bottom: .75rem; text-transform: uppercase;
}
.terminal pre { margin: 0; overflow-x: auto; }
.terminal code { font-family: var(--mono); font-size: .8rem; line-height: 1.6; }
.t-dim { color: var(--term-dim); }
.t-ok { color: #8fd9ae; font-weight: 700; }
.t-link { color: #a8d8ff; text-decoration: underline; }
.t-stream { color: #e8c88f; }
.purchase-mini {
  background: var(--surface); border-radius: .75rem;
  box-shadow: 0 .75rem 2.5rem rgb(0 0 0 / 14%);
  margin: -1.5rem 0 0 auto; max-width: 17rem; padding: 1.25rem;
  position: relative; transform: translateX(-1rem);
}
.mini-eyebrow {
  color: var(--muted); font-size: .65rem; font-weight: 700; letter-spacing: .08em;
  margin: 0 0 .25rem; text-transform: uppercase;
}
.mini-title { font-size: 1.05rem; font-weight: 800; margin: 0 0 .75rem; }
.mini-row { font-size: .85rem; margin: .25rem 0; }
.mini-row code {
  background: color-mix(in srgb, var(--muted) 14%, transparent);
  border-radius: .25rem; font-family: var(--mono); padding: .1rem .3rem;
}
.mini-amount { font-family: var(--mono); font-weight: 700; }
.mini-button {
  background: var(--action); border-radius: .5rem; color: #fff; font-size: .9rem;
  font-weight: 700; margin: 1rem 0 0; padding: .6rem; text-align: center;
}

/* --- Bands ---------------------------------------------------------------- */

.band {
  border-top: 1px solid var(--rule); margin: 0 auto; max-width: 72rem;
  padding: clamp(2rem, 6vh, 4rem) clamp(1rem, 4vw, 2.5rem);
}
.rule-label {
  color: var(--muted); font-family: var(--mono); font-size: .8rem; font-weight: 400;
  letter-spacing: .14em; margin: 0 0 2rem; text-transform: uppercase;
}
.band h3 { font-size: 1.35rem; letter-spacing: -.01em; margin: 0 0 .75rem; }
.band-lede { margin: -1rem 0 1.5rem; max-width: 40rem; }

.steps {
  display: grid; gap: 2rem; grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none; margin: 0; padding: 0;
}
.steps h3 { display: inline; font-size: 1.2rem; margin: 0; }
.steps p { margin: .5rem 0 0; }
.step-no {
  border: 1px solid var(--link); border-radius: 50%; color: var(--link);
  display: inline-flex; font-family: var(--mono); font-size: .8rem; font-weight: 700;
  height: 1.6rem; justify-content: center; line-height: 1.5rem; margin-right: .5rem;
  vertical-align: .15rem; width: 1.6rem;
}

.demo-video {
  background: var(--term-bg); border-radius: .75rem;
  box-shadow: 0 1rem 3rem rgb(0 0 0 / 12%); display: block; height: auto;
  max-width: 56rem; width: 100%;
}

.ledger-split, .retention-split {
  align-items: start; display: grid; gap: clamp(1.5rem, 4vw, 3.5rem);
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
}
.ledger-split p, .retention-split p { max-width: 30rem; }

.ledger-strip {
  border-collapse: collapse; font-family: var(--mono); font-size: .85rem; width: 100%;
}
.ledger-strip th, .ledger-strip td {
  border-bottom: 1px solid var(--rule); padding: .55rem .75rem; text-align: left;
  white-space: nowrap;
}
.ledger-strip th {
  color: var(--muted); font-size: .7rem; font-weight: 400; letter-spacing: .1em;
  text-transform: uppercase;
}
.ledger-strip td:nth-child(3), .ledger-strip td:nth-child(4),
.ledger-strip th:nth-child(3), .ledger-strip th:nth-child(4) { text-align: right; }
.ledger-strip tbody td:first-child { color: var(--muted); }
.ledger-strip tfoot td { border-bottom: 0; color: var(--link); font-weight: 700; }
@media (max-width: 40rem) { .ledger-strip { display: block; overflow-x: auto; } }

.never-list {
  display: grid; gap: .6rem .75rem; grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none; margin: 0; padding: 0;
}
.never-list li {
  border: 1px solid var(--rule); border-radius: .5rem; color: var(--muted);
  font-family: var(--mono); font-size: .8rem; padding: .6rem .75rem;
  text-decoration: line-through;
  text-decoration-color: color-mix(in srgb, var(--focus) 55%, transparent);
  text-decoration-thickness: 1px;
}

.pricing-card {
  background: var(--surface); border-radius: 1rem;
  box-shadow: 0 1rem 3rem rgb(0 0 0 / 8%); max-width: 44rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
}
.price { font-family: var(--mono); margin: 0 0 1rem; }
.price-big { font-size: 3rem; font-weight: 700; letter-spacing: -.02em; }
.pricing-facts { margin: 0; padding-left: 1.2rem; }
.pricing-facts li { margin: .5rem 0; }
.beta-note {
  border-left: .25rem solid var(--focus); color: var(--muted); margin: 1.5rem 0 0;
  padding-left: 1rem;
}

/* --- Footer --------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--rule); margin: 0 auto; max-width: 72rem;
  padding: 2rem clamp(1rem, 4vw, 2.5rem) 3rem;
}
.footer-proto { color: var(--muted); font-family: var(--mono); font-size: .8rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 1.5rem; margin: 1rem 0; }
.footer-copy { color: var(--muted); font-size: .85rem; margin: 0; }

/* --- Responsive ------------------------------------------------------------ */

@media (max-width: 56rem) {
  .hero, .ledger-split, .retention-split { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .purchase-mini { transform: none; }
  .never-list { margin-top: 1rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .button, .nav-cta, .mini-button { transition: filter 120ms ease; }
  .hero-copy, .handoff { animation: rise .5s ease both; }
  .handoff { animation-delay: .12s; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(.6rem); }
    to { opacity: 1; transform: none; }
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #111512; --surface: #1b211d; --text: #eef5f0; --muted: #b1beb6;
    --link: #62b890; --action: #337859; --rule: #2c342f;
    --term-bg: #0b120e; --term-text: #cfe6d8;
  }
  .terminal, .demo-video { box-shadow: 0 1rem 3rem rgb(0 0 0 / 55%); }
}

@media (forced-colors: active) {
  .button, .nav-cta, .mini-button { border: 1px solid ButtonText; }
}
