:root {
  --bg: #fafaf8;
  --surface: #ffffff;
  --ink: #141414;
  --muted: #6b6b66;
  --line: #e6e6e1;
  --line-strong: #d4d4ce;
  --accent: #141414;
  --accent-ink: #ffffff;
  --success: #1f7a4d;
  --danger: #b42318;
  --warning: #8a5a00;

  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 14px;

  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro SC", "PingFang SC",
    "Noto Sans SC", "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: #141414;
  color: #ffffff;
}

a {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  opacity: 0.72;
}

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

h1 {
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 600;
  text-wrap: balance;
  margin-bottom: 20px;
}

h2 {
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-weight: 600;
  text-wrap: balance;
  margin-bottom: 12px;
}

h3 {
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  font-weight: 600;
  margin-bottom: 8px;
}

p {
  text-wrap: pretty;
}

.wrap {
  width: min(1080px, calc(100% - 48px));
  margin-inline: auto;
}

.narrow {
  max-width: 720px;
}

.narrow-xs {
  max-width: 520px;
}

.section {
  padding: 72px 0;
}

.section-alt {
  background: #f4f4ef;
  border-block: 1px solid var(--line);
}

.section-head {
  margin-bottom: 32px;
}

.section-head h2 {
  margin-bottom: 6px;
}

.eyebrow {
  font-size: 12px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.hero-slogan {
  font-size: 20px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: -4px 0 12px;
}

.lead {
  font-size: 18px;
  line-height: 1.6;
  color: #3d3d3a;
  max-width: 62ch;
  margin-bottom: 24px;
}

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

.small {
  font-size: 13px;
  line-height: 1.5;
}

.mono {
  font-family: var(--font-mono);
}

.center {
  text-align: center;
}

.mt-3 {
  margin-top: 12px;
}

.mt-6 {
  margin-top: 32px;
}

.mt-8 {
  margin-top: 48px;
}

.rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 24px 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--ink);
  color: var(--accent-ink);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 16px;
  height: 16px;
  border-radius: 5px;
  background: var(--accent);
  display: inline-block;
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 2px;
  background: var(--bg);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--ink);
  background: #efefe9;
  opacity: 1;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 150ms ease-out, border-color 150ms ease-out, opacity 150ms ease-out,
    transform 150ms ease-out;
}

.btn:active {
  transform: scale(0.96);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover {
  background: #2b2b2b;
  opacity: 1;
}

.btn-secondary {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn-secondary:hover {
  background: #f4f4ef;
  opacity: 1;
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
}

.btn-ghost:hover {
  background: #f4f4ef;
  color: var(--ink);
  opacity: 1;
}

.btn-small {
  min-height: 36px;
  padding: 0 14px;
  font-size: 13px;
  border-radius: 8px;
}

.btn-block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn:disabled:active {
  transform: none;
}

:where(a, button, summary, input, select, textarea):focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* Hero */
.hero {
  padding: 64px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 72px;
  align-items: center;
}

.hero h1 {
  font-size: 56px;
  letter-spacing: -0.03em;
  max-width: 14ch;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 30px 0 24px;
  font-variant-numeric: tabular-nums;
}

.price {
  font-size: 34px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.price-alt {
  font-size: 15px;
  color: var(--muted);
}

.price-period {
  font-size: 14px;
  color: var(--muted);
}

.buy-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 520px;
}

.buy-form .btn {
  flex: 1 1 220px;
  min-height: 48px;
}

.buy-form.compact {
  max-width: 520px;
  margin-top: 20px;
}

.fineprint {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  margin: 14px 0 0;
}

.hero-visual {
  position: relative;
}

.code-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.hero-visual .code-card {
  transform: rotate(-1.2deg);
}

.code-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}

.code-mask {
  font-family: var(--font-mono);
  font-size: 17px;
  letter-spacing: 0.09em;
  padding: 18px 12px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  background: #f7f7f4;
  text-align: center;
  margin-bottom: 18px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.code-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.copy-hint {
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 8px;
}

.visual-note {
  text-align: center;
  font-size: 11px;
  color: #9a9a94;
  margin-top: 14px;
}

/* Sections */
.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.check-list li {
  position: relative;
  padding: 12px 0 12px 28px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.check-list li:first-child {
  border-top: 1px solid var(--line);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 2px;
  top: 12px;
  color: var(--success);
  font-weight: 600;
}

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.step {
  display: flex;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--line-strong);
}

.step-num {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.step-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.step-body {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

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

.cta-section .buy-form {
  margin: 24px auto 0;
  justify-content: center;
}

/* FAQ */
.faq {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 32px 20px 0;
  position: relative;
  font-size: 15px;
  font-weight: 500;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 2px;
  top: 17px;
  font-size: 20px;
  line-height: 1;
  color: var(--muted);
  font-weight: 400;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-answer {
  padding: 0 40px 20px 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

/* Page header / plan */
.page-header {
  padding: 72px 0 32px;
}

.page-header h1 {
  font-size: 44px;
}

.page-header .lead {
  margin-bottom: 0;
}

.plan-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.plan-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
}

.plan-head h2 {
  margin-bottom: 2px;
}

.plan-price {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-variant-numeric: tabular-nums;
}

.plan-price .price {
  font-size: 30px;
}

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

.info-block {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.info-block h3 {
  font-size: 14px;
}

/* Forms */
.form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 28px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field-label {
  font-size: 13px;
  font-weight: 500;
}

.input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  transition: border-color 150ms ease-out;
}

.input:hover {
  border-color: #b9b9b1;
}

.input:focus {
  border-color: var(--ink);
  outline: 2px solid var(--ink);
  outline-offset: 1px;
}

.input::placeholder {
  color: #a3a39d;
}

.code-input {
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
}

.field-hint {
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

/* Notices */
.notice {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.6;
  margin: 20px 0;
}

.notice-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.notice-info {
  background: #f6f6f2;
}

.notice-success {
  background: #f2faf5;
  border-color: #cfe8d9;
}

.notice-warning {
  background: #fff9ed;
  border-color: #f0dfb6;
}

.notice-error {
  background: #fff5f5;
  border-color: #f0cfcc;
}

.notice-error .notice-title {
  color: var(--danger);
}

/* Status */
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 1.4;
  font-weight: 500;
  white-space: nowrap;
  border: 1px solid var(--line);
  color: var(--muted);
  background: var(--surface);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.status-success {
  color: var(--success);
  border-color: #cfe8d9;
  background: #f2faf5;
}

.status-warning {
  color: var(--warning);
  border-color: #f0dfb6;
  background: #fff9ed;
}

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

.status-info {
  color: var(--ink);
  border-color: var(--line);
  background: var(--paper);
}

/* Order */
.order-section {
  padding-top: 56px;
}

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

.order-head h1 {
  font-size: 36px;
  margin-bottom: 0;
}

.order-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding: 12px 0 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.pending-panel {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  margin: 24px 0;
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--line-strong);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: spin 900ms linear infinite;
  flex: 0 0 auto;
  margin-top: 3px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.delivery {
  margin-top: 28px;
}

.delivery-card {
  padding: 22px;
}

.code-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #f7f7f4;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 14px 14px 16px;
}

.code-box code {
  font-family: var(--font-mono);
  font-size: 18px;
  letter-spacing: 0.07em;
  font-variant-numeric: tabular-nums;
  word-break: break-all;
}

.muted-code code {
  color: #8b8b84;
}

.muted-code form {
  margin: 0;
}

.delivery-card .fineprint {
  margin-top: 12px;
}

.next-steps {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.next-steps h2 {
  font-size: 20px;
}

.next-steps .steps {
  grid-template-columns: 1fr;
  gap: 0;
  margin: 16px 0 24px;
}

.next-steps .step {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.delivery-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

.delivery-meta strong {
  color: var(--ink);
  font-weight: 500;
}

.order-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

.order-foot a {
  color: var(--muted);
}

/* Success */
.success-mark {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f2faf5;
  border: 1px solid #cfe8d9;
  color: var(--success);
  font-size: 22px;
  margin: 0 auto 20px;
}

/* Legal */
.legal {
  font-size: 15px;
  line-height: 1.75;
  color: #2f2f2c;
}

.legal h2 {
  font-size: 20px;
  margin-top: 36px;
  margin-bottom: 8px;
}

.legal p,
.legal li {
  color: #4a4a46;
}

.legal ul {
  padding-left: 20px;
}

.legal li {
  margin-bottom: 4px;
}

/* Support */
.support-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 40px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.support-box h3 {
  margin-bottom: 4px;
}

.support-box p {
  margin-bottom: 0;
}

/* Mock */
.mock-banner {
  background: var(--ink);
  color: var(--accent-ink);
  font-size: 12px;
  text-align: center;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.mock-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.mock-summary {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}

.mock-summary > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
}

.mock-summary span {
  color: var(--muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 24px;
  margin-top: 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}

.footer-brand p {
  margin-top: 10px;
  max-width: 30ch;
}

.footer-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.site-footer a {
  display: block;
  font-size: 13px;
  color: #4a4a46;
  text-decoration: none;
  padding: 4px 0;
}

.site-footer a:hover {
  color: var(--ink);
  opacity: 1;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero h1 {
    font-size: 48px;
  }

  .hero-visual {
    max-width: 420px;
  }

  .grid-2 {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .step {
    padding: 16px 0;
  }

  .info-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: min(1080px, calc(100% - 40px));
  }

  .header-inner {
    gap: 12px;
  }

  .nav {
    gap: 0;
  }

  .nav-link {
    padding: 0 8px;
    font-size: 13px;
  }

  .header-inner > .btn {
    display: none;
  }

  .hero {
    padding: 56px 0 48px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .lead {
    font-size: 16px;
  }

  .section {
    padding: 52px 0;
  }

  .page-header {
    padding: 56px 0 24px;
  }

  .page-header h1 {
    font-size: 34px;
  }

  h2 {
    font-size: 24px;
  }

  .buy-form .btn {
    flex: 1 1 100%;
  }

  .plan-card,
  .mock-card {
    padding: 22px;
  }

  .plan-head {
    flex-direction: column;
  }

  .plan-price {
    text-align: left;
  }

  .order-head {
    flex-direction: column;
    gap: 10px;
  }

  .order-head h1 {
    font-size: 30px;
  }

  .code-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .code-box .btn {
    width: 100%;
  }

  .support-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .hero-visual .code-card {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .spinner {
    animation: none;
    border-top-color: var(--line-strong);
  }
}

/* Admin */
.admin-section {
  padding-top: 48px;
}

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

.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px;
}

.stat-label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}

.stat-value {
  font-size: 30px;
  line-height: 1;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.stat-note {
  font-size: 11px;
  color: var(--muted);
  margin-top: 8px;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.admin-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px;
  margin-bottom: 12px;
}

.admin-card h2 {
  font-size: 18px;
  margin-bottom: 6px;
}

.admin-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 20px;
  margin-top: 18px;
}

.detail-grid > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.detail-grid span {
  color: var(--muted);
  font-size: 12px;
}

.detail-grid strong {
  font-weight: 500;
  overflow-wrap: anywhere;
}

.admin-form {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin-top: 16px;
}

.admin-form .field {
  flex: 1;
}

.admin-form .btn {
  flex: 0 0 auto;
}

.table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.admin-table th {
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.admin-table td {
  padding: 11px 10px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

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

.admin-table .num {
  font-variant-numeric: tabular-nums;
}

.admin-foot {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.admin-foot p {
  margin-bottom: 6px;
}

@media (max-width: 760px) {
  .admin-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-grid {
    grid-template-columns: 1fr;
  }

  .admin-form {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Turnstile */
.cf-turnstile {
  margin: 2px 0 0;
  max-width: 100%;
}

.buy-form > .cf-turnstile {
  flex: 1 0 100%;
  margin-bottom: 4px;
}

.cf-turnstile iframe {
  max-width: 100%;
}

.inline-form {
  margin: 0;
  display: inline-flex;
}

.admin-form-stack {
  flex-direction: column;
  align-items: stretch;
}

.textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.5;
  font-family: var(--font-mono);
  font-size: 13px;
}

.check-field {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.6;
  color: #3d3d3a;
}

.check-field input[type="checkbox"] {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.info-table {
  border-top: 1px solid var(--line);
  margin: 20px 0;
}

.info-table > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.info-table span {
  color: var(--muted);
}

.info-table strong {
  font-weight: 500;
  text-align: right;
  word-break: break-all;
}

.buy-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 520px;
}

.buy-form.compact {
  max-width: 520px;
  margin-top: 20px;
}

.buy-email {
  width: 100%;
}

.buy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.buy-actions .btn {
  flex: 1 1 180px;
  min-height: 48px;
}

.buy-form > .fineprint {
  margin: 2px 0 0;
}

.file-input {
  padding: 9px 10px;
  font-size: 13px;
  background: #fafaf8;
}

.plan-list {
  display: grid;
  gap: 24px;
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.payment-section {
  text-align: center;
}

.payment-qr-card {
  width: min(100%, 360px);
  margin: 24px auto 16px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.payment-qr {
  display: block;
  width: min(100%, 300px);
  aspect-ratio: 1;
  object-fit: contain;
  margin: 0 auto 12px;
}

.payment-qr-fallback {
  background: var(--surface);
}

.payment-pending {
  max-width: 420px;
  margin: 20px auto;
  text-align: left;
}

@media (max-width: 560px) {
  .detail-grid {
    grid-template-columns: 1fr;
  }
}

.catalog-item {
  border-top: 1px solid var(--line);
  padding: 18px 0;
}

.catalog-item:first-of-type {
  border-top: 0;
}

.catalog-form-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.4fr 0.7fr;
  gap: 12px;
}

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

@media (max-width: 720px) {
  .catalog-form-grid {
    grid-template-columns: 1fr;
  }
}

.catalog-product-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.key-filter {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.key-filter .field {
  min-width: 160px;
  flex: 1;
}

.key-filter .btn {
  flex: 0 0 auto;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

.key-table .status {
  white-space: nowrap;
}

/* Interface pass: contrast, touch, zoom and small-screen resilience */
:root {
  --control-border: #8a8a82;
}

html {
  scroll-padding-top: 80px;
}

body {
  font-size: 1rem;
}

#buy,
:target {
  scroll-margin-top: 80px;
}

.hero h1 {
  letter-spacing: -0.02em;
}

.price-row,
.mono,
.status,
.code-mask,
.code-box code,
.key-table td {
  font-variant-numeric: tabular-nums;
}

.input {
  border-color: var(--control-border);
}

.input:hover {
  border-color: #6f6f68;
}

.input::placeholder {
  color: #767670;
}

.btn-secondary {
  border-color: var(--control-border);
}

.visual-note {
  color: #6f6f68;
  font-size: 12px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.turnstile-slot {
  width: 100%;
  max-width: 100%;
}

.turnstile-slot iframe {
  max-width: 100%;
}

/* Keep the Turnstile iframe and form controls from setting a min-content floor */
.plan-list,
.plan-card,
.plan-head > *,
.buy-form,
.buy-email,
.buy-actions,
.buy-actions .btn {
  min-width: 0;
}

.plan-head h2 {
  overflow-wrap: anywhere;
}

/* Touch devices should not keep a hover state after a tap */
@media (hover: none) {
  a:hover {
    opacity: 1;
  }

  .nav-link:hover:not(.is-active) {
    color: var(--muted);
    background: transparent;
  }

  .btn-primary:hover {
    background: var(--accent);
  }

  .btn-secondary:hover {
    background: var(--surface);
    color: var(--ink);
  }

  .btn-ghost:hover {
    background: transparent;
    color: var(--muted);
  }

  .input:hover {
    border-color: var(--control-border);
  }

  .site-footer a:hover {
    color: #4a4a46;
  }
}

.btn-danger {
  color: var(--danger);
}

.btn-danger:hover {
  background: #fff1ef;
  color: var(--danger);
}

/* Footer links on the order page: keep each target at least 24px tall (WCAG 2.5.8). */
.order-foot a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
}

/* Programmatic focus targets (skip-link destination, error notices) are not controls. */
#main:focus,
.notice[tabindex="-1"]:focus {
  outline: none;
}

/* Collapsed secondary fields keep the default activation path to one textarea. */
.field-details {
  border-top: 1px solid var(--line);
  padding: 12px 0 4px;
}

.field-details summary {
  cursor: pointer;
  font-size: 14px;
  color: var(--muted);
  padding: 4px 0;
}

.field-details summary:hover {
  color: var(--ink);
}

.field-details[open] summary {
  color: var(--ink);
  margin-bottom: 10px;
}

.field-details .field {
  margin-bottom: 10px;
}

.field-details .check-field {
  margin: 4px 0;
}

/* Local order history (no email service). */
.local-orders {
  margin: 24px 0 12px;
}

.local-order-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}

.local-order-list li {
  border-bottom: 1px solid var(--line);
}

.local-order-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 52px;
  padding: 10px 0;
  color: var(--ink);
  text-decoration: none;
}

.local-order-list a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* The form is the whole CTA now; keep the FAQ from floating too far below it. */
.hero + .section {
  padding-top: 40px;
}

/* =========================================================
   Rocket launch theme
   Dark launch pad + tier-colored rockets; light content below.
   ========================================================= */
:root {
  --space: #070b1c;
  --space-panel: #0d142b;
  --space-line: rgba(154, 180, 255, 0.22);
  --space-text: #eef2ff;
  --space-muted: #9fb0d9;
  --rocket-orange: #ff8a4c;
  --rocket-cyan: #38e1f0;
  --rocket-violet: #b69cff;
  --rocket-flame: #ffb15c;
}

.launch-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 64px;
  color: var(--space-text);
  background:
    radial-gradient(circle at 18% 12%, rgba(56, 225, 240, 0.16), transparent 38%),
    radial-gradient(circle at 84% 8%, rgba(182, 156, 255, 0.2), transparent 42%),
    radial-gradient(circle at 50% 120%, rgba(255, 138, 76, 0.18), transparent 55%),
    var(--space);
}

.launch-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 12% 24%, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(1px 1px at 34% 12%, rgba(255, 255, 255, 0.55), transparent),
    radial-gradient(1.5px 1.5px at 62% 30%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1px 1px at 78% 18%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1px 1px at 88% 44%, rgba(255, 255, 255, 0.65), transparent),
    radial-gradient(1px 1px at 22% 52%, rgba(255, 255, 255, 0.45), transparent);
}

.launch-hero .wrap {
  position: relative;
  z-index: 1;
}

.launch-hero .eyebrow {
  color: var(--space-muted);
  letter-spacing: 0.16em;
  margin-bottom: 14px;
}

.launch-hero h1 {
  max-width: none;
  margin-bottom: 14px;
  color: #fff;
  font-size: 64px;
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.launch-hero .lead {
  max-width: 54ch;
  margin-bottom: 36px;
  color: #c7d2ef;
  font-size: 19px;
}

.launch-fineprint {
  color: var(--space-muted);
  margin-top: 20px;
}

.rocket-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.rocket-card {
  --tier: var(--rocket-orange);
  position: relative;
  overflow: hidden;
  padding: 22px;
  border: 1px solid var(--space-line);
  border-radius: 20px;
  color: var(--space-text);
  background: linear-gradient(180deg, rgba(17, 26, 54, 0.96), rgba(8, 13, 30, 0.98));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 18px 50px -28px rgba(0, 0, 0, 0.9);
}

.rocket-card::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto;
  height: 180px;
  background: radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--tier) 30%, transparent), transparent 70%);
  pointer-events: none;
}

.rocket-voyager {
  --tier: var(--rocket-cyan);
}

.rocket-flagship {
  --tier: var(--rocket-violet);
}

.rocket-card-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.rocket-tier {
  color: var(--tier);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.rocket-name {
  color: var(--space-muted);
  font-size: 12px;
}

.rocket-card .rocket-art {
  margin: 6px auto 4px;
}

.rocket-card h2 {
  position: relative;
  margin-bottom: 4px;
  color: #fff;
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.rocket-desc {
  margin-bottom: 10px;
  color: var(--space-muted);
  font-size: 13px;
  line-height: 1.5;
}

.rocket-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 12px 0 10px;
}

.rocket-card .price {
  color: #fff;
  font-size: 34px;
  letter-spacing: -0.03em;
}

.rocket-card .price-period {
  color: var(--space-muted);
  font-size: 13px;
}

.fuel-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 18px;
  padding: 5px 9px;
  border: 1px solid color-mix(in srgb, var(--tier) 40%, transparent);
  border-radius: 999px;
  color: #dbe4ff;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.fuel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tier);
  box-shadow: 0 0 10px var(--tier);
}

.rocket-card .buy-form {
  max-width: none;
  margin-top: 0;
}

.rocket-card .buy-actions .btn {
  min-height: 46px;
}

.rocket-card .btn-primary {
  border-color: transparent;
  background: var(--tier);
  color: #071022;
}

.rocket-card .btn-primary:hover {
  filter: brightness(1.08);
}

.rocket-card .btn-secondary {
  border-color: var(--space-line);
  background: transparent;
  color: #eef2ff;
}

.rocket-card .btn-secondary:hover {
  border-color: var(--tier);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.rocket-card .notice {
  margin: 0;
  border-color: var(--space-line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--space-text);
}

.rocket-card .notice-title {
  color: #fff;
}

/* Rocket drawing */
.rocket-art {
  --tier: var(--rocket-orange);
  display: block;
  width: 92px;
  height: 124px;
  color: var(--tier, var(--rocket-orange));
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.35));
}

.rocket-art-scout { --tier: var(--rocket-orange); }
.rocket-art-voyager { --tier: var(--rocket-cyan); }
.rocket-art-flagship { --tier: var(--rocket-violet); }

.rocket-art .rocket-body {
  fill: currentColor;
}

.rocket-art .rocket-fin {
  fill: currentColor;
  opacity: 0.55;
}

.rocket-art .rocket-window {
  fill: #071022;
  stroke: rgba(255, 255, 255, 0.85);
  stroke-width: 2;
}

.rocket-art .rocket-detail {
  fill: none;
  stroke: #071022;
  stroke-width: 2;
  opacity: 0.28;
}

.rocket-art .rocket-flame {
  fill: var(--rocket-flame);
  transform-origin: 60px 112px;
  animation: rocket-flame 700ms ease-in-out infinite alternate;
}

.rocket-art .rocket-flame-inner {
  fill: #fff0b8;
}

@keyframes rocket-flame {
  from {
    transform: scaleY(0.82);
    opacity: 0.8;
  }
  to {
    transform: scaleY(1.12);
    opacity: 1;
  }
}

@keyframes rocket-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

@keyframes rocket-lift {
  0% {
    transform: translateY(16px) scale(0.96);
    opacity: 0.35;
  }
  55% {
    transform: translateY(-16px) scale(1.02);
    opacity: 1;
  }
  100% {
    transform: translateY(-6px) scale(1);
    opacity: 1;
  }
}

@media (hover: hover) {
  .rocket-card {
    transition: border-color 180ms ease-out, transform 180ms ease-out;
  }

  .rocket-card:hover {
    border-color: color-mix(in srgb, var(--tier) 62%, var(--space-line));
    transform: translateY(-3px);
  }

  .rocket-card:hover .rocket-art {
    animation: rocket-float 1.8s ease-in-out infinite;
  }
}

/* Launch console / ignition */
.order-rocket {
  width: 52px;
  height: 72px;
  color: var(--rocket-orange);
  margin-bottom: 18px;
}

.fuel-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  padding: 4px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
}

.fuel-chip .fuel-dot {
  background: var(--tier, var(--rocket-orange));
  box-shadow: none;
}

.ignition-stage {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  overflow: hidden;
  margin-bottom: 4px;
  padding: 14px 18px;
  border: 1px solid rgba(157, 180, 255, 0.28);
  border-radius: 16px;
  color: #fff;
  background:
    radial-gradient(circle at 18% 30%, rgba(56, 225, 240, 0.18), transparent 42%),
    radial-gradient(circle at 90% 20%, rgba(255, 138, 76, 0.2), transparent 50%),
    #0b1226;
}

.ignition-stage .rocket-art {
  width: 54px;
  height: 74px;
  margin: 0;
  flex: 0 0 auto;
  color: var(--tier, var(--rocket-orange));
  animation: rocket-float 2.6s ease-in-out infinite;
}

.ignition-status {
  margin-bottom: 2px;
  color: #ffcf9e;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ignition-copy {
  color: #c7d2ef;
  font-size: 13px;
  line-height: 1.5;
}

.ignition-form .btn-primary {
  border-color: transparent;
  background: linear-gradient(135deg, #ff7a45, #ffb15c);
  color: #1a0d06;
}

.ignition-form .btn-primary:hover {
  filter: brightness(1.06);
}

/* Upstream-confirmed success only */
.launch-success {
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
  padding: 24px 20px 22px;
  border-radius: 20px;
  color: #fff;
  text-align: center;
  background:
    radial-gradient(circle at 20% 15%, rgba(56, 225, 240, 0.22), transparent 38%),
    radial-gradient(circle at 82% 12%, rgba(182, 156, 255, 0.22), transparent 42%),
    radial-gradient(circle at 50% 120%, rgba(255, 138, 76, 0.24), transparent 60%),
    #080e22;
}

.launch-success::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 14% 24%, #fff, transparent),
    radial-gradient(1px 1px at 32% 12%, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(1.5px 1.5px at 58% 26%, #fff, transparent),
    radial-gradient(1px 1px at 76% 16%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1px 1px at 88% 42%, #fff, transparent);
  opacity: 0.7;
}

.launch-success .rocket-art {
  position: relative;
  width: 110px;
  height: 148px;
  margin: 0 auto;
  color: var(--tier, var(--rocket-orange));
  animation: rocket-lift 2.2s cubic-bezier(0.22, 0.7, 0.2, 1) both;
}

.launch-success h1 {
  position: relative;
  margin: 4px 0 4px;
  color: #fff;
  font-size: 34px;
}

.launch-success p {
  position: relative;
  margin: 0;
  color: #c7d2ef;
  font-size: 14px;
}

@media (max-width: 900px) {
  .launch-hero h1 {
    font-size: 48px;
  }
}

@media (max-width: 640px) {
  .launch-hero {
    padding: 48px 0 44px;
  }

  .launch-hero h1 {
    font-size: 40px;
  }

  .rocket-grid {
    grid-template-columns: 1fr;
  }

  .rocket-card {
    padding: 20px;
  }

  .rocket-card .rocket-art {
    width: 78px;
    height: 106px;
  }

  .launch-success h1 {
    font-size: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rocket-art,
  .rocket-art .rocket-flame,
  .rocket-card:hover .rocket-art,
  .ignition-stage .rocket-art,
  .launch-success .rocket-art {
    animation: none !important;
    transition: none !important;
  }
}

.order-rocket .rocket-art {
  width: 100%;
  height: 100%;
}

/* More visible launch motion: idle flame, smoke and a real ignition countdown. */
.rocket-art .rocket-smoke {
  fill: #dbe4ff;
  opacity: 0.18;
  transform-origin: 60px 148px;
  animation: rocket-smoke 1.5s ease-out infinite;
}

.rocket-art .rocket-nozzle {
  fill: #2b3450;
}

.rocket-art .rocket-highlight {
  fill: #ffffff;
  opacity: 0.2;
}

.rocket-art .rocket-window-ring {
  fill: none;
  stroke: rgba(255, 255, 255, 0.5);
  stroke-width: 1.5;
}

.rocket-art .rocket-bolt {
  fill: rgba(7, 16, 34, 0.35);
}

.rocket-card .rocket-art {
  animation: rocket-idle 4.2s ease-in-out infinite;
}

@keyframes rocket-idle {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

@keyframes rocket-smoke {
  0% {
    opacity: 0.05;
    transform: scale(0.55);
  }
  65% {
    opacity: 0.2;
  }
  100% {
    opacity: 0;
    transform: scale(1.35);
  }
}

/* The success rocket really leaves the pad instead of nudging a few pixels. */
.launch-success .rocket-art {
  animation: rocket-liftoff 2.6s cubic-bezier(0.22, 0.7, 0.2, 1) both;
}

@keyframes rocket-liftoff {
  0% {
    transform: translateY(22px) scale(0.92);
    opacity: 0.25;
  }
  16% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  55% {
    transform: translateY(-52px) scale(0.98);
    opacity: 1;
  }
  100% {
    transform: translateY(-150px) scale(0.78);
    opacity: 0;
  }
}

.launch-success::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 26%;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 177, 92, 0.35), transparent 70%);
  transform: translateX(-50%) scale(0.4);
  opacity: 0;
  animation: launch-exhaust 2.4s ease-out 0.2s both;
  pointer-events: none;
}

@keyframes launch-exhaust {
  0% {
    opacity: 0.8;
    transform: translateX(-50%) scale(0.4);
  }
  55% {
    opacity: 0.35;
    transform: translateX(-50%) scale(1.2);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) scale(1.8);
  }
}

.launch-hero::before {
  animation: star-drift 14s ease-in-out infinite alternate;
}

@keyframes star-drift {
  0% {
    opacity: 0.55;
    transform: translateY(0);
  }
  100% {
    opacity: 1;
    transform: translateY(-10px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .rocket-art,
  .rocket-art .rocket-flame,
  .rocket-art .rocket-smoke,
  .ignition-stage .rocket-art,
  .launch-success .rocket-art,
  .launch-success::after,
  .launch-hero::before {
    animation: none !important;
    transition: none !important;
  }
}

/* Launch pages use the same dark chrome as the pad. */
.theme-launch .site-header {
  background: rgba(7, 11, 28, 0.9);
  border-bottom-color: rgba(154, 180, 255, 0.18);
}

.theme-launch .site-header .brand {
  color: #ffffff;
}

.theme-launch .site-header .brand-mark {
  background: var(--rocket-orange);
  box-shadow: 0 0 16px rgba(255, 138, 76, 0.55);
}

.theme-launch .site-header .nav-link {
  color: #9fb0d9;
}

.theme-launch .site-header .nav-link:hover,
.theme-launch .site-header .nav-link.is-active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.theme-launch .site-header .btn {
  border-color: transparent;
  background: #ffffff;
  color: #071022;
}

.theme-launch .site-header .btn:hover {
  background: #eef2ff;
  color: #071022;
}

.rocket-pad {
  display: block;
  width: 104px;
  height: 1px;
  margin: 0 auto 10px;
  background: linear-gradient(90deg, transparent, var(--tier, var(--rocket-orange)), transparent);
  box-shadow: 0 0 16px var(--tier, var(--rocket-orange));
  opacity: 0.55;
}

@media (max-width: 640px) {
  .rocket-pad {
    width: 86px;
  }
}

/* Timed entrance, not hover-only motion. */
@keyframes launch-rise-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.launch-hero .eyebrow {
  animation: launch-rise-in 520ms 60ms cubic-bezier(0.22, 0.7, 0.2, 1) both;
}

.launch-hero h1 {
  animation: launch-rise-in 620ms 120ms cubic-bezier(0.22, 0.7, 0.2, 1) both;
}

.launch-hero .lead {
  animation: launch-rise-in 560ms 200ms cubic-bezier(0.22, 0.7, 0.2, 1) both;
}

.launch-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  color: var(--space-muted);
  font-size: 12px;
  animation: launch-rise-in 560ms 260ms cubic-bezier(0.22, 0.7, 0.2, 1) both;
}

.launch-steps li {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
}

.launch-steps span {
  color: var(--rocket-orange);
  font-family: var(--font-mono);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.rocket-grid {
  animation: launch-rise-in 620ms 320ms cubic-bezier(0.22, 0.7, 0.2, 1) both;
}

.rocket-card:focus-within {
  border-color: var(--tier);
  box-shadow:
    0 0 0 1px var(--tier),
    0 18px 50px -28px rgba(0, 0, 0, 0.9);
}

.launch-success {
  animation: launch-rise-in 560ms cubic-bezier(0.22, 0.7, 0.2, 1) both;
}

@media (max-width: 640px) {
  .launch-steps {
    gap: 8px 16px;
    margin-bottom: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .launch-hero .eyebrow,
  .launch-hero h1,
  .launch-hero .lead,
  .launch-steps,
  .rocket-grid,
  .launch-success {
    animation: none !important;
  }
}

/* Real launch photography replaces the cartoon-rocket layer. */
.launch-hero {
  background:
    linear-gradient(180deg, rgba(4, 8, 20, 0.52) 0%, rgba(4, 8, 20, 0.76) 44%, var(--space) 82%),
    url("/images/starfield.jpg") center 35% / cover no-repeat,
    var(--space);
}

.rocket-card-visual {
  position: relative;
  height: 96px;
  margin: 8px 0 6px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: #101a35 url("/images/liftoff.jpg") center 48% / cover no-repeat;
}

.rocket-card-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 11, 28, 0.05), rgba(7, 11, 28, 0.82)),
    linear-gradient(90deg, color-mix(in srgb, var(--tier) 18%, transparent), transparent 70%);
}

.rocket-card-visual-scout {
  background-position: 24% 54%;
}

.rocket-card-visual-voyager {
  background-position: 72% 42%;
}

.order-photo {
  width: 92px;
  height: 72px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #101a35 url("/images/liftoff.jpg") center 48% / cover no-repeat;
  box-shadow: 0 8px 24px -16px rgba(0, 0, 0, 0.7);
}

.ignition-stage {
  position: relative;
  min-height: 96px;
  background:
    linear-gradient(90deg, rgba(7, 11, 28, 0.96), rgba(7, 11, 28, 0.52)),
    url("/images/launch-night.jpg") center 45% / cover no-repeat;
}

.ignition-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.launch-success {
  position: relative;
  min-height: 300px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 24px;
  background: #080e22;
}

.launch-success::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #080e22 url("/images/launch-night.jpg") center 36% / cover no-repeat;
  animation: success-zoom 7s ease-out both;
}

.launch-success::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 8, 20, 0.04) 0%, rgba(4, 8, 20, 0.46) 55%, rgba(4, 8, 20, 0.94) 100%);
  pointer-events: none;
}

.launch-success-copy {
  position: relative;
  z-index: 1;
  width: 100%;
  text-align: center;
}

.launch-success h1 {
  margin: 0 0 4px;
  color: #ffffff;
  font-size: 34px;
}

.launch-success p {
  margin: 0;
  color: #dbe4ff;
  font-size: 14px;
}

@keyframes success-zoom {
  from {
    transform: scale(1.02);
  }
  to {
    transform: scale(1.08);
  }
}

.photo-credit {
  color: var(--muted);
  font-size: 11px;
}

.photo-credit a {
  color: var(--muted);
}

@media (max-width: 640px) {
  .rocket-card-visual {
    height: 84px;
  }

  .launch-success {
    min-height: 240px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .launch-success::before {
    animation: none !important;
  }
}

.photo-credit-line {
  margin-top: 28px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.photo-credit-line a {
  color: var(--muted);
}

.launch-success::after {
  background: linear-gradient(
    180deg,
    rgba(4, 8, 20, 0.04) 0%,
    rgba(4, 8, 20, 0.55) 45%,
    rgba(4, 8, 20, 0.97) 100%
  );
}

.launch-success-copy {
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.85);
}

@media (max-width: 640px) {
  .photo-credit-line {
    margin-top: 22px;
  }
}

.photo-credit-line a {
  display: inline;
  padding: 0;
  font-size: inherit;
}

.launch-success-copy {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(4, 8, 20, 0.62);
  backdrop-filter: blur(10px);
}

/* Grand deep-space hero: starfield base, nebula on the right, content on the left. */
.launch-hero {
  min-height: 680px;
  display: flex;
  align-items: center;
  padding: 104px 0 96px;
  background:
    linear-gradient(90deg, rgba(4, 8, 20, 0.94) 0%, rgba(4, 8, 20, 0.72) 42%, rgba(4, 8, 20, 0.3) 78%, rgba(4, 8, 20, 0.45) 100%),
    url("/images/starfield.jpg") center 42% / cover no-repeat,
    var(--space);
}

.launch-hero::before {
  content: "";
  position: absolute;
  inset: -6% -3% -2% 34%;
  pointer-events: none;
  background: url("/images/nebula.jpg") right center / cover no-repeat;
  opacity: 0.62;
  mix-blend-mode: screen;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 48%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 48%, #000 100%);
  animation: cosmic-drift 26s ease-in-out infinite alternate;
}

.launch-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(4, 8, 20, 0.22) 0%, transparent 38%, rgba(5, 9, 20, 0.92) 100%),
    radial-gradient(ellipse at 50% 50%, transparent 38%, rgba(4, 8, 20, 0.55) 100%);
}

.launch-hero .wrap {
  position: relative;
  z-index: 1;
}

.launch-hero-inner {
  width: min(1080px, calc(100% - 48px));
}

.launch-hero h1 {
  max-width: 12ch;
  font-size: 76px;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.launch-hero .lead {
  max-width: 48ch;
  font-size: 19px;
}

.btn-hero {
  min-height: 48px;
  padding: 0 22px;
  border-color: transparent;
  background: #ffffff;
  color: #071022;
  font-size: 14px;
}

.btn-hero:hover {
  background: #eef2ff;
  color: #071022;
}

.rocket-select {
  position: relative;
  overflow: hidden;
  padding: 72px 0 84px;
  border-top: 1px solid rgba(154, 180, 255, 0.16);
  background:
    radial-gradient(ellipse at 75% 0%, rgba(88, 64, 180, 0.16), transparent 45%),
    #050914;
}

.rocket-select-head {
  margin-bottom: 28px;
}

.rocket-select-head h2 {
  color: #ffffff;
  font-size: 34px;
}

.rocket-select-head .eyebrow {
  color: var(--space-muted);
}

.rocket-select-head .muted {
  color: #9fb0d9;
}

.rocket-select .fineprint {
  color: #8fa1c9;
}

@keyframes cosmic-drift {
  from {
    transform: scale(1.02) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.07) translate3d(-10px, 6px, 0);
  }
}

@media (max-width: 900px) {
  .launch-hero {
    min-height: 560px;
    padding: 88px 0 76px;
  }

  .launch-hero h1 {
    font-size: 58px;
  }

  .launch-hero::before {
    inset: -10% -20% 0 8%;
    opacity: 0.48;
  }
}

@media (max-width: 640px) {
  .launch-hero {
    min-height: 520px;
    padding: 68px 0 60px;
  }

  .launch-hero-inner {
    width: min(1080px, calc(100% - 40px));
  }

  .launch-hero h1 {
    max-width: 9ch;
    font-size: 42px;
    line-height: 1.06;
  }

  .launch-hero .lead {
    font-size: 16px;
  }

  .rocket-select {
    padding: 52px 0 60px;
  }

  .rocket-select-head h2 {
    font-size: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .launch-hero::before {
    animation: none !important;
  }
}

/* Detail pass: align card CTAs to the same baseline and respect reduced motion for anchors. */
.rocket-card {
  display: flex;
  flex-direction: column;
}

.rocket-card .buy-form,
.rocket-card > .notice {
  margin-top: auto;
}

.rocket-card .fuel-pill {
  margin-bottom: 22px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Full cosmic surface for the home page: no sudden dark→light jump. */
.theme-cosmic {
  background: #050914;
  color: var(--space-text);
}

.theme-cosmic .section {
  color: var(--space-text);
}

.theme-cosmic .section-head h2 {
  color: #ffffff;
}

.theme-cosmic .muted {
  color: #9fb0d9;
}

.theme-cosmic .faq,
.theme-cosmic .faq-item {
  border-color: rgba(154, 180, 255, 0.18);
}

.theme-cosmic .faq-item summary {
  color: #eef2ff;
}

.theme-cosmic .faq-item summary::after {
  color: #c7d2ef;
}

.theme-cosmic .faq-answer {
  color: #c7d2ef;
}

.theme-cosmic .notice-warning {
  border-color: rgba(255, 177, 92, 0.36);
  background: rgba(138, 90, 0, 0.2);
  color: #f6e6c8;
}

.theme-cosmic .notice-warning .notice-title {
  color: #ffcf9e;
}

.theme-cosmic .site-footer {
  border-top-color: rgba(154, 180, 255, 0.18);
  background: #050914;
}

.theme-cosmic .site-footer .brand {
  color: #ffffff;
}

.theme-cosmic .site-footer .brand-mark {
  background: var(--rocket-orange);
}

.theme-cosmic .site-footer a {
  color: #9fb0d9;
}

.theme-cosmic .site-footer a:hover {
  color: #ffffff;
}

.theme-cosmic .footer-title {
  color: #7f8fb8;
}

.theme-cosmic .footer-bottom {
  border-top-color: rgba(154, 180, 255, 0.18);
  color: #7f8fb8;
}

.theme-cosmic .photo-credit-line,
.theme-cosmic .photo-credit-line a {
  color: #7f8fb8;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/space-grotesk.ttf") format("truetype");
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --font-display: "Space Grotesk", var(--font-sans);
}

.brand,
.price,
.rocket-tier,
.rocket-name,
.eyebrow,
.launch-steps span,
.footer-title {
  font-family: var(--font-display);
}

.rocket-card .price {
  font-weight: 500;
}

.rocket-grid-3 {
  grid-template-columns: 0.94fr 1fr 1.08fr;
}

.rocket-voyager .rocket-card-visual {
  background-image: url("/images/launch-night.jpg");
}

.rocket-flagship .rocket-card-visual {
  background-image: url("/images/launch-2.jpg");
}

.rocket-flagship {
  border-color: rgba(182, 156, 255, 0.46);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 0 0 1px rgba(182, 156, 255, 0.12),
    0 24px 60px -30px rgba(91, 61, 190, 0.85);
}

.rocket-flagship::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--tier), transparent);
  opacity: 0.9;
  pointer-events: none;
}

.theme-cosmic::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

@media (max-width: 900px) {
  .rocket-grid-3 {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   One surface for every public page.
   Dark tokens are scoped, so controls and content inherit the
   same palette instead of each page inventing its own.
   ========================================================= */
.theme-cosmic {
  --bg: #050914;
  --surface: #0b1326;
  --ink: #eef2ff;
  --muted: #9fb0d9;
  --line: rgba(154, 180, 255, 0.16);
  --line-strong: rgba(154, 180, 255, 0.32);
  --control-border: rgba(154, 180, 255, 0.44);
  --accent: #ffffff;
  --accent-ink: #071022;
  --success: #8fe3b2;
  --danger: #ff9a8a;
  --warning: #ffcf9e;
  color-scheme: dark;
  background: var(--bg);
  color: var(--ink);
}

.theme-cosmic .lead,
.theme-cosmic .page-header .lead {
  color: #c7d2ef;
}

.theme-cosmic .section-alt {
  background: #070d1d;
}

.theme-cosmic .btn-primary {
  background: #ffffff;
  color: #071022;
}

.theme-cosmic .btn-primary:hover {
  background: #dfe6ff;
  color: #071022;
}

.theme-cosmic .btn-secondary {
  border-color: var(--control-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
}

.theme-cosmic .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
}

.theme-cosmic .btn-ghost {
  color: var(--muted);
}

.theme-cosmic .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
}

.theme-cosmic .input {
  border-color: var(--control-border);
  background: rgba(255, 255, 255, 0.035);
  color: var(--ink);
}

.theme-cosmic .input:hover {
  border-color: rgba(199, 210, 239, 0.68);
}

.theme-cosmic .input:focus {
  border-color: #ffffff;
  outline-color: #ffffff;
}

.theme-cosmic .input::placeholder {
  color: #7f8fb8;
}

.theme-cosmic .check-field {
  color: #c7d2ef;
}

.theme-cosmic .notice {
  border-color: var(--line);
}

.theme-cosmic .notice-info {
  background: rgba(255, 255, 255, 0.05);
}

.theme-cosmic .notice-success {
  border-color: rgba(143, 227, 178, 0.34);
  background: rgba(31, 122, 77, 0.17);
}

.theme-cosmic .notice-warning {
  border-color: rgba(255, 207, 158, 0.34);
  background: rgba(138, 90, 0, 0.2);
  color: #f6e6c8;
}

.theme-cosmic .notice-warning .notice-title {
  color: #ffcf9e;
}

.theme-cosmic .notice-error {
  border-color: rgba(255, 154, 138, 0.36);
  background: rgba(180, 35, 24, 0.18);
  color: #ffd8d1;
}

.theme-cosmic .notice-error .notice-title {
  color: #ff9a8a;
}

.theme-cosmic .status-success {
  border-color: rgba(143, 227, 178, 0.34);
  background: rgba(31, 122, 77, 0.16);
  color: #8fe3b2;
}

.theme-cosmic .status-warning {
  border-color: rgba(255, 207, 158, 0.34);
  background: rgba(138, 90, 0, 0.18);
  color: #ffcf9e;
}

.theme-cosmic .status-info {
  border-color: rgba(154, 180, 255, 0.3);
  background: rgba(88, 118, 200, 0.16);
  color: #c7d2ef;
}

.theme-cosmic .code-mask,
.theme-cosmic .code-box {
  background: rgba(255, 255, 255, 0.045);
  border-color: var(--line-strong);
}

.theme-cosmic .muted-code code {
  color: #7f8fb8;
}

.theme-cosmic .legal {
  color: #c7d2ef;
}

.theme-cosmic .legal h2 {
  color: #ffffff;
}

.theme-cosmic .legal a {
  color: #ffffff;
}

.theme-cosmic .support-box {
  background: rgba(255, 255, 255, 0.035);
}

.theme-cosmic .photo-credit-line,
.theme-cosmic .photo-credit-line a {
  color: #7f8fb8;
}

.theme-cosmic .rocket-card .btn-primary {
  background: var(--tier);
  color: #071022;
}

.theme-cosmic .rocket-card .btn-primary:hover {
  background: var(--tier);
  filter: brightness(1.08);
}

.theme-cosmic .rocket-card .btn-secondary {
  border-color: var(--space-line);
  background: transparent;
  color: #eef2ff;
}

.theme-cosmic .rocket-card .btn-secondary:hover {
  border-color: var(--tier);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.theme-cosmic .legal {
  color: #dbe4ff;
}

.theme-cosmic ::selection {
  background: #ffb15c;
  color: #071022;
}

.theme-cosmic .mock-banner {
  border: 1px solid rgba(255, 207, 158, 0.28);
  background: rgba(138, 90, 0, 0.18);
  color: #ffcf9e;
}

/* Minimal three-tier selector: a manifest, not three marketing cards. */
.tier-list {
  max-width: 920px;
  margin: 0 auto;
  border-top: 1px solid rgba(154, 180, 255, 0.2);
}

.tier-row {
  --tier: var(--rocket-orange);
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(280px, 340px);
  align-items: center;
  gap: 28px;
  padding: 22px 4px;
  border-bottom: 1px solid rgba(154, 180, 255, 0.18);
  transition: background-color 160ms ease-out;
}

.tier-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 2px;
  border-radius: 2px;
  background: var(--tier);
  opacity: 0.75;
}

.tier-row:hover {
  background: rgba(255, 255, 255, 0.025);
}

.tier-row:focus-within {
  background: rgba(255, 255, 255, 0.035);
}

.tier-voyager {
  --tier: var(--rocket-cyan);
}

.tier-flagship {
  --tier: var(--rocket-violet);
}

.tier-row-main {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-left: 16px;
  min-width: 0;
}

.tier-row-index {
  width: 22px;
  flex: 0 0 22px;
  color: var(--tier);
  font-family: var(--font-mono);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.tier-row h2 {
  margin: 0 0 3px;
  color: #ffffff;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.tier-row-meta {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.tier-row-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  color: #ffffff;
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.tier-row-price .price {
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.tier-row-price .price-period {
  color: var(--muted);
  font-size: 12px;
}

.tier-row-action {
  min-width: 0;
}

.tier-row .buy-form {
  max-width: none;
  margin: 0;
}

.tier-row .buy-actions {
  flex-wrap: nowrap;
}

.tier-row .buy-actions .btn {
  flex: 1 1 0;
  min-height: 42px;
  font-size: 13px;
}

.tier-row .btn-primary {
  border-color: transparent;
  background: var(--tier);
  color: #071022;
}

.tier-row .btn-primary:hover {
  background: var(--tier);
  filter: brightness(1.08);
}

.tier-row .btn-secondary {
  border-color: rgba(154, 180, 255, 0.32);
  background: transparent;
  color: #eef2ff;
}

.tier-row .btn-secondary:hover {
  border-color: var(--tier);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.tier-row .notice {
  margin: 0;
  border-color: rgba(255, 207, 158, 0.34);
  background: rgba(138, 90, 0, 0.18);
  color: #f6e6c8;
}

.tier-row .notice-title {
  color: #ffcf9e;
}

@media (max-width: 760px) {
  .tier-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px 18px;
    padding: 20px 2px;
  }

  .tier-row::before {
    top: 14px;
    bottom: 14px;
  }

  .tier-row-main {
    padding-left: 12px;
    gap: 10px;
  }

  .tier-row h2 {
    font-size: 20px;
  }

  .tier-row-price .price {
    font-size: 24px;
  }

  .tier-row-action {
    grid-column: 1 / -1;
    padding-left: 12px;
  }

  .tier-row .buy-actions {
    flex-wrap: wrap;
  }

  .tier-row .buy-actions .btn {
    flex: 1 1 130px;
  }
}

.tier-row.tier-flagship {
  background: linear-gradient(90deg, rgba(182, 156, 255, 0.07), transparent 62%);
}

.tier-row-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 3px 9px;
}

.tier-row-title h2 {
  margin-bottom: 3px;
}

.tier-row-rocket {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border: 1px solid color-mix(in srgb, var(--tier) 34%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--tier) 9%, transparent);
  color: var(--tier);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.tier-row-rocket::before {
  content: "";
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--tier);
  box-shadow: 0 0 7px var(--tier);
}

@media (max-width: 760px) {
  .tier-row-title {
    gap: 2px 7px;
  }

  .tier-row-rocket {
    padding: 1px 7px;
    font-size: 11.5px;
  }
}

/* One quiet payment action: the price stays the loudest thing in the row. */
.tier-row {
  grid-template-columns: minmax(0, 1fr) auto minmax(150px, 180px);
}

.tier-row .buy-actions .btn {
  min-height: 40px;
}

.tier-row .btn-primary {
  border: 1px solid rgba(154, 180, 255, 0.34);
  background: transparent;
  color: var(--ink);
  font-weight: 500;
}

.tier-row .btn-primary::after {
  content: "→";
  margin-left: 7px;
  color: var(--tier);
  opacity: 0.8;
}

.tier-row .btn-primary:hover {
  border-color: var(--tier);
  background: color-mix(in srgb, var(--tier) 10%, transparent);
  color: #ffffff;
}

@media (max-width: 760px) {
  .tier-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

.session-guide {
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid rgba(154, 180, 255, 0.24);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.session-guide-title {
  margin-bottom: 7px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.session-guide ol {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #c7d2ef;
  font-size: 12px;
  line-height: 1.6;
}

.session-guide li {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.session-guide li::before {
  color: var(--rocket-orange);
  font-family: var(--font-mono);
  font-size: 10px;
}

.session-guide li:nth-child(1)::before { content: "01"; }
.session-guide li:nth-child(2)::before { content: "02"; }
.session-guide li:nth-child(3)::before { content: "03"; }

.session-guide a {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.35);
  text-underline-offset: 2px;
}

.session-guide a:hover {
  color: #ffcf9e;
}

.session-guide-note {
  margin: 7px 0 0;
  color: #7f8fb8;
  font-size: 11px;
  line-height: 1.55;
}

.session-guide code {
  padding: 1px 4px;
  border: 1px solid rgba(154, 180, 255, 0.18);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  color: #c7d2ef;
  font-family: var(--font-mono);
  font-size: 10px;
}

@media (max-width: 640px) {
  .session-guide ol {
    display: block;
  }

  .session-guide li + li {
    margin-top: 3px;
  }
}


/* Success: a single light pass, a quiet copy reveal, no zooming photography. */
.launch-success {
  animation: success-card-in 600ms ease-out both;
}

.launch-success::before {
  animation: none !important;
}

.launch-success-copy {
  animation: success-copy-in 650ms 120ms cubic-bezier(0.22, 0.7, 0.2, 1) both;
}

.success-sweep {
  position: absolute;
  top: -25%;
  bottom: -25%;
  left: -40%;
  z-index: 0;
  width: 32%;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(219, 228, 255, 0.02) 20%,
    rgba(219, 228, 255, 0.22) 50%,
    rgba(219, 228, 255, 0.02) 80%,
    transparent
  );
  transform: skewX(-18deg);
  animation: success-sweep 1.9s 180ms cubic-bezier(0.2, 0.65, 0.2, 1) both;
}

@keyframes success-card-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes success-copy-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes success-sweep {
  0% {
    left: -40%;
    opacity: 0;
  }
  18% {
    opacity: 1;
  }
  100% {
    left: 112%;
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .launch-success,
  .launch-success-copy,
  .success-sweep {
    animation: none !important;
  }
}

/* Compact inner pages: less frame, more content. */
.section.tight {
  padding: 36px 0 56px;
}

.page-header {
  padding: 44px 0 20px;
}

.page-header h1 {
  font-size: 34px;
}

.page-header .lead {
  font-size: 16px;
  color: #c7d2ef;
}

.help-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.help-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.help-links a {
  color: #c7d2ef;
  text-decoration: none;
}

.help-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.order-head {
  margin-bottom: 12px;
}

.order-head h1 {
  font-size: 32px;
}

.order-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 9px;
  margin: 0 0 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.order-summary span {
  opacity: 0.5;
}

.order-foot {
  margin-top: 28px;
}

.mt-4 {
  margin-top: 24px;
}

.ignition-form .btn-primary {
  border-color: transparent;
  background: #ffffff;
  color: #071022;
}

.ignition-form .btn-primary:hover {
  background: #dfe6ff;
  filter: none;
}

@media (max-width: 640px) {
  .section.tight {
    padding: 28px 0 44px;
  }

  .page-header {
    padding: 34px 0 16px;
  }

  .page-header h1 {
    font-size: 30px;
  }

  .order-head h1 {
    font-size: 28px;
  }
}

.lookup-empty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.lookup-empty p {
  margin: 0;
}

.help-note a {
  margin-left: 6px;
  color: #ffffff;
  white-space: nowrap;
}

.help-note a:hover {
  color: #ffcf9e;
}

/* Small, one-shot browser animation for the Session walkthrough. */
.session-tutorial {
  margin: 8px 0 10px;
  padding-top: 8px;
  border-top: 1px dashed rgba(154, 180, 255, 0.18);
}

.session-tutorial summary {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  list-style: none;
  cursor: pointer;
  color: #c7d2ef;
  font-size: 12px;
}

.session-tutorial summary::-webkit-details-marker {
  display: none;
}

.session-tutorial summary::before {
  content: "▶";
  color: var(--rocket-orange);
  font-size: 8px;
  transition: transform 140ms ease-out;
}

.session-tutorial[open] summary::before {
  transform: rotate(90deg);
}

.session-tutorial summary:hover {
  color: #ffffff;
}

.session-anim {
  margin-top: 8px;
  overflow: hidden;
  border: 1px solid rgba(154, 180, 255, 0.2);
  border-radius: 8px;
  background: #070c1c;
}

.session-anim-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 5px 8px;
  border-bottom: 1px solid rgba(154, 180, 255, 0.14);
  background: rgba(255, 255, 255, 0.035);
}

.session-anim-dots {
  display: flex;
  gap: 3px;
  flex: 0 0 auto;
}

.session-anim-dots i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #617099;
}

.session-anim-url {
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 1;
  color: #c7d2ef;
  font-family: var(--font-mono);
  font-size: 9px;
  white-space: nowrap;
}

.session-anim-url .path {
  display: inline-block;
  width: 0;
  overflow: hidden;
  color: #ffcf9e;
  animation: session-url-type 1.1s 280ms steps(18, end) both;
}

.session-anim-caret {
  display: inline-block;
  width: 1px;
  height: 9px;
  margin-left: 1px;
  background: var(--rocket-orange);
  animation: session-caret 760ms steps(1, end) infinite;
}

.session-anim-copy {
  flex: 0 0 auto;
  padding: 1px 5px;
  border: 1px solid rgba(154, 180, 255, 0.28);
  border-radius: 4px;
  color: #9fb0d9;
  font-size: 8px;
  animation: session-copy-pulse 3.6s 300ms both;
}

.session-anim-body {
  min-height: 96px;
  padding: 9px 12px 12px;
}

.session-anim-login {
  margin-bottom: 7px;
  color: #7f8fb8;
  font-size: 9px;
}

.session-anim-json {
  color: #c7d2ef;
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.7;
}

.session-anim-json span {
  display: block;
  opacity: 0;
  animation: session-json-in 260ms ease-out both;
}

.session-anim-json span:nth-child(1) { animation-delay: 1.4s; }
.session-anim-json span:nth-child(2) { animation-delay: 1.6s; }
.session-anim-json span:nth-child(3) { animation-delay: 1.8s; }
.session-anim-json span:nth-child(4) { animation-delay: 2s; }

@keyframes session-url-type {
  from { width: 0; }
  to { width: 18ch; }
}

@keyframes session-caret {
  0%, 48% { opacity: 1; }
  49%, 100% { opacity: 0; }
}

@keyframes session-json-in {
  from { opacity: 0; transform: translateY(3px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes session-copy-pulse {
  0%, 55% { opacity: 0.55; }
  66%, 78% { opacity: 1; border-color: var(--rocket-orange); color: #ffcf9e; }
  100% { opacity: 0.8; }
}

@media (prefers-reduced-motion: reduce) {
  .session-anim-url .path {
    width: auto;
    animation: none;
  }

  .session-anim-caret {
    display: none;
  }

  .session-anim-json span {
    opacity: 1;
    animation: none;
  }

  .session-anim-copy {
    opacity: 1;
    animation: none;
  }
}
