:root {
  color-scheme: light;
  --paper: #f6f4ec;
  --surface: #fffefa;
  --surface-2: #eef5f2;
  --ink: #14211f;
  --muted: #66746f;
  --line: #dfe5df;
  --blue: #276df1;
  --green: #098267;
  --coral: #e45c38;
  --gold: #a77a11;
  --shadow: 0 18px 48px rgba(20, 33, 31, 0.11);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(238, 245, 242, 0.9), rgba(246, 244, 236, 0.9)),
    var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.app-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 48px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 64px;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  object-fit: contain;
  padding: 6px;
}

.brand-text {
  display: grid;
  gap: 1px;
}

.brand-text strong {
  font-size: 1rem;
}

.brand-text span {
  color: var(--muted);
  font-size: 0.8rem;
}

.tabs {
  display: inline-flex;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 254, 250, 0.72);
  padding: 4px;
}

.tab {
  min-width: 92px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 9px 12px;
}

.tab.is-active {
  background: var(--ink);
  color: white;
}

.hero-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 24px;
  align-items: end;
  min-height: 270px;
  margin: 20px 0 26px;
  padding: 34px;
  border: 1px solid rgba(20, 33, 31, 0.09);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(39, 109, 241, 0.12), transparent 36%),
    linear-gradient(315deg, rgba(9, 130, 103, 0.16), transparent 35%),
    var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-copy {
  max-width: 740px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.eyebrow img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

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

h1 {
  max-width: 780px;
  margin-bottom: 14px;
  font-size: clamp(2.45rem, 6vw, 5.2rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 650px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.6;
}

.mode-strip {
  display: grid;
  gap: 10px;
}

.mode-strip > div,
.metric {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 254, 250, 0.86);
  padding: 14px 16px;
}

.label,
.metric span,
.overline {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.mode-strip strong,
.metric strong {
  display: block;
  margin-top: 4px;
  font-size: 1.06rem;
}

.panel {
  display: none;
}

.panel.is-active {
  display: block;
}

.checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.section-head.compact {
  margin-bottom: 10px;
}

.section-head h2 {
  margin-bottom: 0;
  font-size: 1.35rem;
  line-height: 1.15;
}

.overline {
  margin-bottom: 6px;
}

.mini-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border: 1px solid #b7d9cf;
  border-radius: 6px;
  background: #e5f3ef;
  color: #0b6d58;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 6px 10px;
}

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

.pass-card {
  position: relative;
  min-height: 310px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
}

.pass-art {
  position: relative;
  display: grid;
  place-items: center;
  height: 146px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.28), transparent 24%),
    linear-gradient(135deg, rgba(20, 33, 31, 0.9), rgba(20, 33, 31, 0.5)),
    linear-gradient(45deg, var(--accent), rgba(255, 255, 255, 0.08));
}

.pass-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 0 36%, rgba(255, 255, 255, 0.12) 36% 38%, transparent 38% 100%),
    repeating-linear-gradient(
      -12deg,
      rgba(255, 255, 255, 0.08) 0 1px,
      transparent 1px 18px
    );
  opacity: 0.55;
}

.pass-art::after {
  content: "";
  position: relative;
  z-index: 1;
  display: block;
  width: 72%;
  max-width: 280px;
  height: 64px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  box-shadow:
    0 16px 38px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.82) 0 26%, transparent 26% 34%, rgba(255, 255, 255, 0.5) 34% 100%);
}

.pass-card[data-accent="coral"] {
  --accent: var(--coral);
}

.pass-card[data-accent="blue"] {
  --accent: var(--blue);
}

.pass-card[data-accent="green"] {
  --accent: var(--green);
}

.pass-body {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.pass-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.pass-card h3 {
  margin: 0;
  font-size: 1.32rem;
}

.pass-card p {
  min-height: 58px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.45;
}

.pass-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.price {
  font-size: 1.2rem;
  font-weight: 900;
}

.select-pass {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  cursor: pointer;
  font-weight: 800;
  padding: 9px 11px;
}

.pass-card.is-selected {
  border-color: var(--ink);
  box-shadow: 0 0 0 2px rgba(20, 33, 31, 0.12);
}

.checkout-tool {
  position: sticky;
  top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 18px;
  box-shadow: 0 14px 36px rgba(20, 33, 31, 0.08);
}

.form-stack {
  display: grid;
  gap: 12px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

input,
select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: var(--ink);
  padding: 9px 10px;
}

input:focus,
select:focus,
button:focus-visible,
a:focus-visible {
  outline: 2px solid rgba(39, 109, 241, 0.42);
  outline-offset: 2px;
}

.total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 3px 0;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.primary-action,
.secondary-action,
.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  background: var(--ink);
  color: white;
  cursor: pointer;
  font-weight: 900;
  text-decoration: none;
  padding: 10px 14px;
}

.secondary-action {
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
}

.primary-action:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.result-box {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  border: 1px solid #b7d9cf;
  border-radius: 8px;
  background: #eefaf7;
  padding: 13px;
}

.result-box a,
.plain-link {
  color: var(--blue);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.compact-link {
  width: 100%;
  margin-top: 0;
}

.url-chip {
  display: block;
  max-height: 78px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.45;
  padding: 9px;
  overflow-wrap: anywhere;
}

.metrics-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.metric {
  min-height: 86px;
}

.metric strong {
  font-size: 1.5rem;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
}

tr:last-child td {
  border-bottom: 0;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  background: #e7ebf6;
  color: #274173;
  font-size: 0.75rem;
  font-weight: 900;
  padding: 4px 9px;
  white-space: nowrap;
}

.status.settled,
.status.completed {
  background: #dff3ed;
  color: #0b6d58;
}

.status.demo {
  background: #fff1df;
  color: #8a5200;
}

.ops-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr);
  gap: 24px;
}

.flow-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.flow-list li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 14px;
}

.flow-list span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  font-weight: 900;
}

.flow-list p {
  margin: 3px 0 0;
  color: var(--muted);
}

.event-list {
  display: grid;
  gap: 10px;
}

.event {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 12px;
}

.event code {
  display: block;
  max-height: 120px;
  overflow: auto;
  margin-top: 8px;
  border-radius: 6px;
  background: #14211f;
  color: #e8fff6;
  font-size: 0.78rem;
  padding: 10px;
}

.api-proof {
  margin-top: 24px;
}

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

.proof-card {
  min-height: 146px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 14px;
}

.proof-card span {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.proof-card strong {
  display: block;
  margin-top: 8px;
  overflow-wrap: anywhere;
}

.proof-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.centered-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.checkout-card {
  width: min(430px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 24px;
}

.checkout-card.wide {
  width: min(680px, 100%);
}

.checkout-logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
  margin-bottom: 14px;
}

.receipt-brand {
  margin-bottom: 22px;
}

.receipt-lines {
  display: grid;
  gap: 9px;
  margin: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

.receipt-events {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.receipt-events li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
}

.receipt-events span {
  color: var(--muted);
}

.receipt-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.receipt-line span:first-child {
  color: var(--muted);
}

.primary-link {
  width: 100%;
  margin-top: 18px;
}

.plain-link {
  display: inline-flex;
  margin-top: 14px;
  text-decoration: none;
}

.muted {
  color: var(--muted);
}

@media (max-width: 980px) {
  .hero-band,
  .checkout-grid,
  .ops-grid {
    grid-template-columns: 1fr;
  }

  .checkout-tool {
    position: static;
  }

  .pass-grid,
  .metrics-row,
  .proof-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .app-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 10px;
  }

  .topbar,
  .section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
  }

  .tab {
    min-width: 0;
  }

  .hero-band {
    min-height: 0;
    padding: 22px;
  }

  h1 {
    font-size: 2.55rem;
  }

  .pass-grid,
  .metrics-row,
  .proof-grid {
    grid-template-columns: 1fr;
  }
}
