:root {
  --ink: #07111f;
  --muted: #536177;
  --line: #d8e5ec;
  --soft: #eefaff;
  --panel: #ffffff;
  --night: #091222;
  --coral: #ff6f76;
  --green: #6ede78;
  --yellow: #ffed6a;
  --cyan: #28c7da;
  --shadow: 0 26px 70px rgba(7, 17, 31, .12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
select {
  font: inherit;
}

.checkout-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1220px;
  margin: 0 auto;
  padding: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 14px;
  color: white;
  background: linear-gradient(140deg, #07111f 15%, #182337 52%, var(--coral));
  font-weight: 900;
}

.brand strong,
.brand em {
  display: block;
  line-height: .95;
}

.brand strong {
  font-size: 20px;
}

.brand em {
  color: var(--coral);
  font-style: normal;
  font-weight: 900;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.header-actions a {
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
}

.support-link {
  color: var(--coral);
}

main {
  padding-bottom: 64px;
}

.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 48px;
  max-width: 1220px;
  margin: 0 auto;
  padding: 72px 24px 84px;
  color: white;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 24px;
  z-index: -2;
  border-radius: 26px;
  background:
    radial-gradient(circle at 20% 25%, rgba(255, 111, 118, .45), transparent 24%),
    linear-gradient(120deg, #07111f, #10263c 58%, #0b4550);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0 24px;
  z-index: -1;
  opacity: .24;
  background-image:
    linear-gradient(rgba(255, 255, 255, .14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .14) 1px, transparent 1px);
  background-size: 54px 54px;
}

.hero-copy,
.trust-card {
  position: relative;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--coral);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(40px, 6vw, 78px);
  line-height: .95;
  letter-spacing: 0;
}

.hero p:not(.eyebrow) {
  max-width: 700px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, .82);
  font-size: 20px;
  line-height: 1.6;
}

.trust-card {
  align-self: end;
  display: grid;
  gap: 14px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 18px;
  background: rgba(7, 17, 31, .62);
  box-shadow: var(--shadow);
}

.trust-card span {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 850;
}

.trust-card span::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--green);
}

.checkout-shell {
  max-width: 1220px;
  margin: -34px auto 0;
  padding: 0 24px;
}

.progress,
.market-panel,
.catalog,
.summary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .86);
  box-shadow: var(--shadow);
}

.progress {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  width: fit-content;
  margin: 0 auto 20px;
  padding: 10px;
  border-radius: 999px;
}

.progress span {
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 850;
}

.progress .is-active {
  color: var(--ink);
  background: var(--yellow);
}

.market-panel {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  margin-bottom: 20px;
  padding: 24px;
  border-radius: 18px;
}

.market-panel h2,
.catalog-heading h2,
.summary h2 {
  margin: 0;
  letter-spacing: 0;
}

.segmented,
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.market-button,
.product-tab {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: white;
  font-weight: 900;
  cursor: pointer;
}

.market-button.is-active,
.product-tab.is-active {
  border-color: transparent;
  color: var(--ink);
  background: var(--green);
}

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

.catalog,
.summary {
  border-radius: 22px;
}

.catalog {
  padding: 26px;
}

.tabs {
  margin-bottom: 34px;
}

.catalog-heading {
  max-width: 720px;
  margin-bottom: 24px;
}

.catalog-heading h2 {
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1;
}

.catalog-heading p:not(.section-kicker) {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

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

.plan-card {
  position: relative;
  display: flex;
  min-height: 390px;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
}

.plan-card.is-selected {
  border-color: var(--coral);
  box-shadow: 0 20px 42px rgba(255, 111, 118, .16);
}

.badge {
  width: fit-content;
  margin-bottom: 16px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--yellow);
  font-size: 12px;
  font-weight: 950;
}

.plan-card h3 {
  margin: 0 0 8px;
  font-size: 24px;
}

.price {
  margin: 0 0 18px;
  font-size: 34px;
  font-weight: 950;
}

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

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

.plan-card li {
  color: #2d3b50;
  line-height: 1.35;
}

.plan-card li::before {
  content: "✓";
  margin-right: 8px;
  color: #10a55b;
  font-weight: 900;
}

.choose-plan {
  min-height: 48px;
  margin-top: auto;
  border: 0;
  border-radius: 999px;
  color: var(--ink);
  background: #eaf2f7;
  font-weight: 950;
  cursor: pointer;
}

.plan-card.is-selected .choose-plan {
  background: var(--green);
}

.summary {
  position: sticky;
  top: 20px;
  align-self: start;
  padding: 26px;
}

.summary > p:not(.section-kicker) {
  margin: 6px 0 24px;
  color: var(--muted);
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 22px;
  font-weight: 850;
}

.field select {
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}

.summary-lines {
  display: grid;
  gap: 14px;
  margin-bottom: 22px;
  padding: 18px;
  border-radius: 16px;
  background: #f6fbfe;
}

.summary-lines div {
  display: grid;
  gap: 4px;
}

.summary-lines span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.summary-lines strong {
  line-height: 1.25;
}

.primary-action {
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 999px;
  color: var(--ink);
  background: var(--coral);
  font-weight: 950;
  cursor: pointer;
}

.fine-print {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  max-width: 360px;
  padding: 16px 18px;
  border-radius: 14px;
  color: white;
  background: var(--night);
  box-shadow: var(--shadow);
  transform: translateY(24px);
  opacity: 0;
  transition: .2s ease;
  pointer-events: none;
}

.toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

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

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

  .summary {
    position: static;
  }
}

@media (max-width: 720px) {
  .checkout-header,
  .market-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-actions a {
    padding: 10px 12px;
    font-size: 13px;
  }

  .hero {
    padding-top: 48px;
  }

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

  .hero p:not(.eyebrow) {
    font-size: 17px;
  }

  .catalog,
  .summary,
  .market-panel {
    padding: 18px;
  }
}
