
@font-face {
  font-family: "Archivo";
  src: url("fonts/Archivo.ttf") format("truetype");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrains-mono.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0c0c0d;
  --fg: #ecebe6;
  --card: #131315;
  --muted: #1a1a1d;
  --muted-fg: #9a9a9f;
  --border: rgb(236 235 230 / 0.09);
  --border-strong: rgb(236 235 230 / 0.14);
  --signal: #ff5a1f;
  --signal-bright: #ff8a4c;
  --signal-deep: #d9400f;
  --ok: #3fb67a;
  --sans: "Archivo", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(720px 420px at 50% -120px, rgb(255 90 31 / 0.11), transparent 70%),
    var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

::selection { background: rgb(255 90 31 / 0.35); }

a { color: var(--signal-bright); text-underline-offset: 3px; }
a:hover { color: var(--fg); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 6px; }


.pub-head {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 22px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.pub-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
  text-decoration: none;
}
.pub-brand img { display: block; }
.pub-word {
  font-size: 20px;
  font-weight: 800;
  font-stretch: 125%;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1;
}
.pub-z { color: var(--signal); }
.pub-tag {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--signal);
  border: 1px solid var(--signal);
  border-radius: 3px;
  padding: 2px 5px;
  line-height: 1.2;
}

.pub-back {
  font-size: 14px;
  color: var(--muted-fg);
  text-decoration: none;
}
.pub-back:hover { color: var(--fg); }

.pub-main {
  flex: 1;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 12px 16px 48px;
}

.pub-foot {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 22px 20px 32px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: var(--muted-fg);
  border-top: 1px solid var(--border);
}
.pub-foot a { color: var(--muted-fg); }
.pub-foot a:hover { color: var(--fg); }


.pub-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 24px 60px -28px rgb(0 0 0 / 0.8);
}

.pub-eyebrow {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--signal);
}

.pub-title {
  margin: 0;
  font-size: clamp(26px, 5vw, 34px);
  font-weight: 700;
  font-stretch: 112%;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.pub-accent { color: var(--signal); }

.pub-lead {
  margin: 14px 0 0;
  color: rgb(236 235 230 / 0.8);
  text-wrap: pretty;
}

.pub-h2 {
  margin: 28px 0 12px;
  font-size: 17px;
  font-weight: 650;
}

.pub-small {
  margin: 22px 0 0;
  font-size: 14px;
  color: var(--muted-fg);
}


.price {
  margin: 26px 0 0;
  padding: 22px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.price-label {
  margin: 0;
  font-size: 14px;
  color: var(--muted-fg);
}
.price-label-intro {
  color: var(--signal-bright);
  font-weight: 600;
}
.price-amount {
  margin: 4px 0 0;
  font-size: clamp(40px, 9vw, 50px);
  font-weight: 800;
  font-stretch: 112%;
  letter-spacing: -0.02em;
  line-height: 1.05;
  white-space: nowrap;
}
.price-regular {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--muted-fg);
}
.price-note {
  margin: 10px 0 0;
  font-size: 14px;
  color: var(--signal-bright);
}


.facts { margin: 0; }
.facts > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
}
.facts dt { color: var(--muted-fg); }
.facts dd { margin: 0; text-align: right; font-weight: 550; }


.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  position: relative;
  padding: 0 0 12px 36px;
  color: rgb(236 235 230 / 0.85);
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgb(255 90 31 / 0.45);
  color: var(--signal-bright);
  font-family: var(--mono);
  font-size: 12px;
}


.btn-primary {
  display: flex;
  width: 100%;
  margin-top: 22px;
  align-items: center;
  justify-content: center;
  padding: 15px 20px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--signal-bright), var(--signal-deep));
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 34px -10px rgb(255 90 31 / 0.8), inset 0 1px 0 rgb(255 255 255 / 0.25);
  transition: transform 0.18s ease, box-shadow 0.22s ease, opacity 0.18s ease;
}
.btn-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 34px -10px rgb(255 90 31 / 0.95), inset 0 1px 0 rgb(255 255 255 / 0.25);
}
.btn-primary:active { transform: translateY(0) scale(0.98); }
.btn-primary:disabled { opacity: 0.6; cursor: progress; transform: none; }


.note {
  margin: 16px 0 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: rgb(236 235 230 / 0.85);
}
.note-error {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgb(255 90 31 / 0.35);
  background: rgb(255 90 31 / 0.07);
  color: var(--fg);
}

.order-box {
  margin-top: 18px;
  padding: 16px;
  border-radius: 12px;
  border: 1px dashed rgb(255 90 31 / 0.4);
  background: var(--muted);
}
.order-box p { margin: 0; }
.order-box-title {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-fg);
}
.order-link {
  display: block;
  margin: 8px 0 10px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.5;
  word-break: break-all;
}
.order-box-note { font-size: 14px; color: rgb(236 235 230 / 0.85); }

.callout {
  margin: 22px 0 0;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgb(255 90 31 / 0.25);
  background: rgb(255 90 31 / 0.06);
  font-size: 14px;
}


.wait {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 22px 0 18px;
}
.wait p { margin: 0; color: rgb(236 235 230 / 0.85); }

.spinner {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 3px;
  border-radius: 999px;
  border: 2px solid rgb(236 235 230 / 0.14);
  border-top-color: var(--signal);
  animation: spin 0.9s linear infinite;
}
.spinner-lg { width: 22px; height: 22px; margin-top: 1px; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .spinner { animation-duration: 2.4s; }
  .btn-primary { transition: none; }
}


.pub-main:has(> .cust) { max-width: 760px; }
.cust > * + * { margin-top: 16px; }

.cust-h2 {
  margin: 0 0 14px;
  font-size: 21px;
  font-weight: 700;
  font-stretch: 112%;
  line-height: 1.2;
}
.cust-h3 {
  margin: 28px 0 2px;
  font-size: 16px;
  font-weight: 650;
}
.cust-text {
  margin: 0 0 14px;
  color: rgb(236 235 230 / 0.85);
  text-wrap: pretty;
}
.cust-text:last-child { margin-bottom: 0; }
.cust-note {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--muted-fg);
}
.cust-h3 + .cust-note { margin: 0 0 6px; }

.mono { font-family: var(--mono); font-size: 14px; }
.cust .facts dt { flex: none; max-width: 55%; }
.cust .facts dd { min-width: 0; overflow-wrap: anywhere; }

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

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--muted);
  color: var(--fg);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.btn-ghost:hover { border-color: rgb(255 90 31 / 0.6); background: rgb(255 90 31 / 0.08); }
.btn-small { padding: 6px 12px; font-size: 13px; }

.callout-tight { margin-top: 0; }

.key-box {
  margin: 0 0 6px;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: var(--muted);
}
.key-box p { margin: 0; }
.key-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  margin-top: 8px;
}
.key {
  font-family: var(--mono);
  font-size: clamp(16px, 4.6vw, 20px);
  font-weight: 600;
  letter-spacing: 0.04em;
  overflow-wrap: anywhere;
}

.state { display: inline-flex; align-items: center; gap: 8px; }
.state::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--muted-fg);
}
.state[data-state="active"]::before { background: var(--ok); }
.state[data-state="expired"]::before,
.state[data-state="revoked"]::before { background: var(--signal); }

.checklist { margin: 0; padding: 0; list-style: none; }
.checklist li {
  position: relative;
  padding: 0 0 12px 32px;
  color: rgb(236 235 230 / 0.85);
}
.checklist li:last-child { padding-bottom: 0; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 4px;
  width: 15px;
  height: 15px;
  border: 1.5px solid rgb(255 90 31 / 0.6);
  border-radius: 4px;
}

.cmd {
  margin: 0 0 14px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: #09090a;
}
.cmd-code {
  margin: 0;
  padding: 14px 16px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.65;
  color: var(--fg);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.cmd-copy {
  display: flex;
  width: fit-content;
  margin: -4px 10px 10px auto;
}

.steps li:last-child { padding-bottom: 0; }

.support-row {
  display: flex;
  align-items: center;
  gap: 22px;
}
.qr-link { flex: none; border-radius: 12px; }
.qr {
  display: block;
  width: 148px;
  height: 148px;
  border-radius: 12px;
  background: #fff;
}
.support-lead {
  margin: 0;
  font-size: 18px;
  font-weight: 650;
}

.copy-note {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 10;
  width: min(calc(100vw - 32px), 460px);
  margin: 0;
  padding: 12px 16px;
  transform: translateX(-50%);
  border-radius: 12px;
  border: 1px solid rgb(255 90 31 / 0.45);
  background: var(--card);
  color: var(--fg);
  font-size: 14px;
  box-shadow: 0 18px 40px -16px rgb(0 0 0 / 0.9);
}

@media (prefers-reduced-motion: reduce) {
  .btn-ghost { transition: none; }
}

@media (max-width: 520px) {
  .cust-h2 { font-size: 19px; }
  .key-box { padding: 14px; }
  .support-row { flex-direction: column; align-items: flex-start; gap: 16px; }
}


@media (max-width: 520px) {
  .pub-head { padding: 16px; }
  .pub-word { font-size: 17px; }
  .pub-back { font-size: 13px; }
  .pub-card { padding: 22px 18px; border-radius: 14px; }
  .pub-foot { padding: 18px 16px 26px; flex-direction: column; gap: 6px; }
}


@media print {
  :root {
    color-scheme: light;
    --bg: #fff;
    --fg: #000;
    --card: #fff;
    --muted: #fff;
    --muted-fg: #444;
    --border: #ccc;
    --border-strong: #bbb;
  }
  button, .pub-back, .pub-foot a, .copy-note { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .pub-head, .pub-foot { padding: 0 0 12px; max-width: none; }
  .pub-foot { padding-top: 12px; }
  .pub-main { max-width: none; padding: 0 0 12px; }
  .pub-card { padding: 14px 16px; border-color: #bbb; border-radius: 8px; box-shadow: none; }
  .pub-lead, .cust-text, .steps li, .checklist li, .note, .order-box-note { color: #000; }
  .callout { background: none; border-color: #bbb; }
  .cmd { background: #f3f3f3; border-color: #bbb; break-inside: avoid; }
  .cmd-code { color: #000; white-space: pre-wrap; overflow: visible; overflow-wrap: anywhere; }
  .order-link { color: #000; }
  a { color: #000; }
  .key-box, .facts > div, .checklist li, .steps li, .support-row { break-inside: avoid; }
  .qr { width: 110px; height: 110px; }
}
