:root {
  color-scheme: dark;
  --bg: #07110f;
  --surface: rgba(10, 22, 22, 0.82);
  --surface-strong: rgba(13, 29, 28, 0.94);
  --text: #f4fff9;
  --muted: #a9bbb4;
  --line: rgba(201, 255, 231, 0.18);
  --accent: #3bffd2;
  --accent-2: #d9ff70;
  --hot: #ff6a9a;
  --bad: #ff8a8a;
  --ok: #95ffbd;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
}

#network-scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.site-header {
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand,
.support-link,
.header-nav a,
.legal-links a {
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 900;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(59, 255, 210, 0.11);
  color: var(--accent-2);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.header-nav a,
.support-link,
.legal-links a {
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
}

.header-nav a:hover,
.support-link:hover,
.legal-links a:hover {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.support-link {
  border-color: var(--line);
  color: var(--accent);
  font-weight: 800;
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.checkout-hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(390px, 0.72fr);
  align-items: center;
  gap: 28px;
  padding: 18px 0 42px;
}

.hero-copy {
  padding: 26px 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 16px;
  font-size: clamp(64px, 10vw, 132px);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: 0;
}

.lead {
  max-width: 610px;
  color: #d7e8e1;
  font-size: 21px;
  line-height: 1.45;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 650px;
  margin-top: 28px;
}

.hero-metrics span,
.checkout-panel,
.trust-band article,
.flow-section,
.legal-section,
.site-footer {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(9, 21, 20, 0.66);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-metrics span {
  min-height: 78px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 14px;
  color: var(--muted);
}

.hero-metrics b {
  color: var(--accent-2);
  font-size: 22px;
}

.checkout-panel {
  padding: 22px;
  background: var(--surface-strong);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 18px;
}

.step {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.step.active {
  border-color: rgba(59, 255, 210, 0.5);
  color: var(--accent);
}

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

.section-title span {
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.plans {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.plan {
  width: 100%;
  min-height: 86px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 14px;
  align-items: center;
  padding: 14px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.plan:hover:not(:disabled) {
  border-color: rgba(59, 255, 210, 0.58);
}

.plan.active {
  border-color: var(--accent);
  background: rgba(59, 255, 210, 0.1);
}

.plan:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.plan-name,
.plan-price {
  font-weight: 900;
}

.plan-meta {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.plan-price {
  color: var(--accent-2);
  font-size: 21px;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 13px;
}

.field span,
.payment-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.field input {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  outline: none;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
}

.field input:focus {
  border-color: var(--accent);
}

.payment-row {
  min-height: 92px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 6px 0 13px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.payment-row strong,
.payment-row small {
  display: block;
}

.payment-row strong {
  margin: 5px 0;
  font-size: 18px;
}

.payment-row small {
  color: var(--muted);
  line-height: 1.35;
}

.lava-widget-card {
  border: 1px solid rgba(59, 255, 210, 0.2);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  margin: 6px 0 13px;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(59, 255, 210, 0.08), rgba(217, 255, 112, 0.035)),
    rgba(255, 255, 255, 0.035);
}

.lava-widget-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
}

.lava-widget-head strong,
.lava-widget-head small {
  display: block;
}

.lava-widget-head strong {
  margin-top: 5px;
  font-size: 18px;
}

.lava-widget-head small {
  max-width: 210px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  text-align: right;
}

.lava-widget-shell {
  width: min(350px, 100%);
  height: 60px;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 18px 36px rgba(1, 253, 186, 0.16);
}

.lava-widget-button {
  width: 100%;
  height: 60px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #01fdba;
  color: #ffffff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 900;
  transition: filter 0.15s ease, transform 0.15s ease;
}

.lava-widget-button:hover {
  filter: brightness(0.9);
  transform: translateY(-1px);
}

.state-pill {
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(149, 255, 189, 0.11);
  color: var(--ok);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.state-pill[data-state="bad"] {
  background: rgba(255, 138, 138, 0.1);
  color: var(--bad);
}

.consent {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.consent input {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--accent);
}

.consent a {
  color: var(--accent);
}

.primary-button {
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #06110e;
  cursor: pointer;
  font-weight: 950;
}

.primary-button:disabled {
  opacity: 0.62;
  cursor: progress;
}

.message {
  min-height: 22px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.4;
}

.message[data-type="error"] {
  color: var(--bad);
}

.message[data-type="success"] {
  color: var(--ok);
}

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

.trust-band article {
  min-height: 190px;
  padding: 18px;
}

.trust-icon {
  width: 42px;
  height: 34px;
  border: 1px solid rgba(217, 255, 112, 0.42);
  border-radius: 8px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: var(--accent-2);
  font-weight: 900;
}

.trust-band p,
.flow-copy p,
.legal-section p {
  color: var(--muted);
  line-height: 1.5;
}

.flow-section,
.legal-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: 24px;
  margin-bottom: 18px;
  padding: 22px;
  background: var(--surface);
}

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

.flow-list li {
  min-height: 70px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 13px;
  background: rgba(255, 255, 255, 0.035);
}

.flow-list span,
.flow-list b {
  display: block;
}

.flow-list span {
  color: var(--accent);
  font-weight: 900;
}

.flow-list b {
  color: var(--text);
}

.legal-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.legal-links a {
  border-color: var(--line);
  min-height: 48px;
  justify-content: center;
  color: var(--text);
  font-weight: 800;
}

.legal-pro {
  grid-template-columns: minmax(0, 0.86fr) minmax(360px, 1fr);
  align-items: start;
}

.legal-copy h2 {
  max-width: 520px;
}

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

.legal-facts span {
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font-size: 13px;
}

.legal-facts b {
  display: block;
  color: var(--accent-2);
  font-size: 14px;
}

.legal-doc-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.legal-doc-grid a {
  min-height: 104px;
  align-items: start;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.legal-doc-grid a:hover {
  border-color: rgba(59, 255, 210, 0.52);
}

.legal-doc-grid span,
.legal-doc-grid small {
  display: block;
}

.legal-doc-grid span {
  color: var(--text);
  font-size: 17px;
  font-weight: 900;
}

.legal-doc-grid small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.site-footer {
  width: min(1180px, calc(100% - 32px));
  min-height: 58px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 18px;
  color: var(--muted);
}

@media (max-width: 940px) {
  .site-header,
  .checkout-hero,
  .trust-band,
  .flow-section,
  .legal-section {
    grid-template-columns: 1fr;
  }

  .checkout-hero {
    min-height: auto;
    padding-top: 28px;
  }

  .header-nav {
    display: none;
  }
}

@media (max-width: 620px) {
  .hero-metrics,
  .steps,
  .legal-links {
    grid-template-columns: 1fr;
  }

  .site-header {
    width: min(100% - 22px, 1180px);
  }

  main,
  .site-footer {
    width: min(100% - 22px, 1180px);
  }

  .checkout-panel,
  .flow-section,
  .legal-section {
    padding: 16px;
  }

  .payment-row,
  .lava-widget-head,
  .section-title,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .lava-widget-head small {
    max-width: none;
    text-align: left;
  }

  .section-title span,
  .state-pill {
    width: fit-content;
  }

  .legal-facts,
  .legal-doc-grid {
    grid-template-columns: 1fr;
  }
}
