:root {
  --blue: #0737f4;
  --red: #ff0b10;
  --charcoal: #48484b;
  --black: #000000;
  --white: #ffffff;
  --bg: #f5f7ff;
  --card: #ffffff;
  --border: rgba(7, 55, 244, 0.12);
  --shadow: 0 16px 40px rgba(7, 55, 244, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background:
    radial-gradient(circle at top left, rgba(7, 55, 244, 0.08), transparent 28%),
    radial-gradient(circle at top right, rgba(255, 11, 16, 0.08), transparent 22%),
    var(--bg);
  color: var(--black);
}

img {
  max-width: 100%;
  display: block;
}

button,
a {
  font: inherit;
}

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

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

.brand-wrap {
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  width: auto;
  max-height: 58px;
}

.back-link {
  color: var(--blue);
  text-decoration: none;
  font-weight: 700;
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 420px);
  gap: 24px;
  align-items: start;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.checkout-main,
.order-sidebar {
  padding: 32px;
}

.eyebrow,
.label {
  margin: 0 0 10px;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue);
  font-weight: 800;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
}

.lead {
  margin: 16px 0 0;
  color: var(--charcoal);
  font-size: 1.02rem;
  line-height: 1.7;
}

.package-summary {
  margin-top: 28px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
}

.package-summary h2 {
  margin: 0;
  font-size: 1.55rem;
}

.package-description {
  margin: 8px 0 0;
  color: var(--charcoal);
}

.price-block {
  text-align: right;
}

.price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--blue);
}

.divider {
  height: 1px;
  background: rgba(72, 72, 75, 0.14);
  margin: 28px 0;
}

.bump-box {
  background: linear-gradient(180deg, rgba(7, 55, 244, 0.04), rgba(255, 11, 16, 0.04));
  border: 1px solid rgba(7, 55, 244, 0.12);
  border-radius: 22px;
  padding: 24px;
}

.bump-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.bump-header h3 {
  margin: 0;
  font-size: 1.35rem;
}

.badge {
  background: var(--red);
  color: var(--white);
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.bump-option {
  margin-top: 18px;
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  gap: 14px;
  align-items: start;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(7, 55, 244, 0.12);
  cursor: pointer;
}

.bump-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.custom-check {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid var(--blue);
  position: relative;
  margin-top: 2px;
}

.bump-option input:checked + .custom-check {
  background: var(--blue);
}

.bump-option input:checked + .custom-check::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 1px;
  width: 5px;
  height: 11px;
  border: solid var(--white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.bump-copy {
  display: grid;
  gap: 8px;
}

.bump-desc {
  color: var(--charcoal);
  line-height: 1.55;
}

.bump-price {
  font-weight: 800;
  color: var(--blue);
  font-size: 1.1rem;
}

.assurance-grid {
  display: grid;
  gap: 14px;
}

.assurance-item {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  align-items: start;
}

.assurance-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(7, 55, 244, 0.1);
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.assurance-item p,
.note-box p,
.microcopy {
  margin: 6px 0 0;
  color: var(--charcoal);
  line-height: 1.6;
}

.summary-row,
.summary-total {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.summary-row {
  font-size: 1rem;
  margin-bottom: 14px;
}

.summary-package {
  font-weight: 700;
}

.summary-total {
  font-size: 1.35rem;
  font-weight: 800;
  align-items: center;
}

.checkout-button {
  width: 100%;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--blue), #2f58ff);
  color: var(--white);
  padding: 18px 20px;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  margin-top: 28px;
  box-shadow: 0 18px 35px rgba(7, 55, 244, 0.22);
}

.checkout-button:hover {
  transform: translateY(-1px);
}

.note-box {
  margin-top: 18px;
  background: rgba(255, 11, 16, 0.04);
  border: 1px solid rgba(255, 11, 16, 0.12);
  border-radius: 18px;
  padding: 18px;
}

@media (max-width: 920px) {
  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .order-sidebar {
    order: -1;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 20px, 100%);
    padding-top: 18px;
  }

  .topbar,
  .package-summary,
  .bump-header,
  .summary-row,
  .summary-total {
    gap: 12px;
  }

  .topbar,
  .package-summary,
  .bump-header {
    flex-direction: column;
    align-items: start;
  }

  .checkout-main,
  .order-sidebar {
    padding: 22px;
  }

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

  .bump-option {
    grid-template-columns: auto auto 1fr;
  }

  .bump-price {
    grid-column: 3;
  }
}
