.course-checkout-page {
  width: 100%;
  max-width: var(--mobile-max-width);
  min-height: 100dvh;
  margin: 0 auto;

  padding:
    calc(var(--safe-top) + 12px)
    clamp(14px, 4vw, 18px)
    calc(var(--safe-bottom) + 14px);

  background:
    radial-gradient(circle at 50% 0%, rgba(255, 230, 237, 0.5), transparent 34%),
    linear-gradient(180deg, #fffdfb 0%, #fff8f8 100%);
}

.course-checkout-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.course-back-button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #ececf2;
  color: var(--color-navy);
  font-size: 21px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(7, 20, 63, 0.06);
}

.course-secure-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  padding: 9px 11px;
  border-radius: 999px;

  background: #ffffff;
  border: 1px solid #ececf2;
  color: var(--color-navy);
  box-shadow: 0 8px 18px rgba(7, 20, 63, 0.05);
}

.course-secure-badge svg {
  width: 16px;
  height: 16px;
}

.course-secure-badge p {
  font-size: 12px;
  line-height: 1;
  font-weight: 850;
}

.course-checkout-content {
  margin-top: 13px;
  display: grid;
  gap: 11px;
}

/* HERO */

.course-hero-card,
.course-product-card,
.course-value-card,
.course-price-card {
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(236, 236, 242, 0.96);
  box-shadow: 0 12px 28px rgba(7, 20, 63, 0.07);
}

.course-hero-card {
  padding: 16px;
  text-align: center;
}

.course-hero-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.course-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.course-special-pill {
  padding: 7px 11px;
  border-radius: 999px;
  background: #fff0f4;
  color: #ff3d7d;
  font-size: 11px;
  line-height: 1;
  font-weight: 950;
}

.course-hero-card h1 {
  margin-top: 12px;
  color: var(--color-navy);
  font-size: clamp(27px, 7.2vw, 35px);
  line-height: 1.02;
  letter-spacing: -1px;
  font-weight: 950;
}

.course-hero-card h1 span {
  display: block;
  color: #ff3d7d;
}

.course-hero-card p {
  max-width: 330px;
  margin: 10px auto 0;
  color: #63677d;
  font-size: 13.5px;
  line-height: 1.42;
  font-weight: 560;
}

/* PRODUCT */

.course-product-card {
  padding: 14px;

  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 14px;
  align-items: center;

  background:
    radial-gradient(circle at 0% 100%, rgba(255, 47, 117, 0.08), transparent 36%),
    linear-gradient(135deg, #fff7f1 0%, #fff0f5 100%);
}

.course-product-visual {
  position: relative;
  min-height: 132px;
}

.course-book-cover {
  position: absolute;
  left: 0;
  bottom: 0;

  width: 82px;
  height: 118px;
  padding: 15px 7px;

  border-radius: 4px 10px 10px 4px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.09) 0 7px, transparent 7px),
    linear-gradient(135deg, #081743 0%, #142766 100%);

  box-shadow: 0 13px 22px rgba(7, 20, 63, 0.19);
}

.course-book-cover p {
  color: #ffffff;
  font-family: var(--font-title);
  text-align: center;
  font-size: 12.3px;
  line-height: 1.12;
}

.course-book-cover img {
  width: 24px;
  height: 24px;
  margin-top: 9px;
}

.course-phone-preview {
  position: absolute;
  right: 0;
  bottom: 0;

  width: 56px;
  height: 96px;

  border-radius: 13px;
  border: 4px solid #1f2130;
  background: #fff9fb;
  box-shadow: 0 10px 20px rgba(7, 20, 63, 0.13);
  overflow: hidden;
}

.phone-notch {
  width: 18px;
  height: 3px;
  border-radius: 999px;
  background: #1f2130;
  margin: 5px auto 8px;
}

.phone-video {
  width: 32px;
  height: 25px;
  margin: 6px auto;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #ff5b8b;
  color: #ffffff;
  font-size: 11px;
}

.phone-line {
  height: 7px;
  margin: 7px 8px;
  border-radius: 999px;
  background: #ffdce7;
}

.phone-line.short {
  width: 25px;
}

.course-product-info h2 {
  color: var(--color-navy);
  font-size: 18px;
  line-height: 1.08;
  font-weight: 950;
}

.course-product-info ul {
  margin-top: 10px;
  display: grid;
  gap: 7px;
}

.course-product-info li {
  position: relative;
  padding-left: 20px;

  color: #343a56;
  font-size: 11.8px;
  line-height: 1.25;
  font-weight: 700;
}

.course-product-info li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: -1px;

  width: 15px;
  height: 15px;
  border-radius: 50%;

  display: grid;
  place-items: center;

  background: #ff6b8f;
  color: #ffffff;
  font-size: 10px;
  font-weight: 950;
}

/* VALUE */

.course-value-card {
  padding: 13px;
}

.course-value-card h2 {
  color: var(--color-navy);
  text-align: center;
  font-size: 17px;
  line-height: 1.1;
  font-weight: 950;
}

.course-value-grid {
  margin-top: 11px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.course-value-item {
  min-height: 77px;
  padding: 10px;
  border-radius: 15px;
  background: #fff8fa;
  border: 1px solid #f5edf1;
  text-align: center;
}

.course-value-item span {
  display: block;
  font-size: 22px;
  line-height: 1;
  margin-bottom: 6px;
}

.course-value-item strong {
  display: block;
  color: var(--color-navy);
  font-size: 12px;
  line-height: 1.1;
  font-weight: 950;
}

.course-value-item p {
  margin-top: 4px;
  color: #6d7085;
  font-size: 10px;
  line-height: 1.2;
  font-weight: 600;
}

/* PRICE */

.course-price-card {
  padding: 14px;
  text-align: center;
}

.course-price-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.old-course-price {
  color: #8b8e9f;
  font-size: 18px;
  text-decoration: line-through;
  font-weight: 800;
}

.course-price-head strong {
  color: #ff3d7d;
  font-size: 43px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: -1px;
}

.course-price-head em {
  padding: 7px 9px;
  border-radius: 999px;

  background: #fff0f4;
  color: #ff3d7d;

  font-size: 11px;
  line-height: 1;
  font-style: normal;
  font-weight: 950;
}

.course-price-card > p {
  max-width: 300px;
  margin: 7px auto 0;
  color: #6d7085;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 650;
}

.course-trust-row {
  margin-top: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  flex-wrap: wrap;

  color: var(--color-navy);
  font-size: 11.5px;
  line-height: 1;
  font-weight: 850;
}

.course-trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.course-trust-row svg {
  width: 16px;
  height: 16px;
}

.course-upgrade-button {
  width: 100%;
  min-height: 52px;
  margin-top: 13px;

  border-radius: 14px;
  background: var(--gradient-primary);
  color: #ffffff;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  font-size: 14px;
  line-height: 1.1;
  font-weight: 950;

  box-shadow: 0 13px 25px rgba(255, 47, 117, 0.25);
}

.course-upgrade-button svg {
  width: 19px;
  height: 19px;
}

.course-upgrade-button.is-loading {
  opacity: 0.75;
  pointer-events: none;
}

.course-upgrade-button.is-loading strong {
  font-size: 0;
}

.course-upgrade-button.is-loading strong::after {
  content: "Processing upgrade...";
  font-size: 14px;
}

.course-skip-button {
  margin-top: 9px;
  color: #777d91;
  font-size: 12px;
  line-height: 1;
  font-weight: 750;
}

.course-checkout-note {
  text-align: center;
  color: #8b8e9f;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 600;
}

/* IPHONE NORMAL */

@media (max-width: 414px) and (max-height: 880px) {
  .course-checkout-content {
    gap: 9px;
  }

  .course-hero-card {
    padding: 14px;
  }

  .course-hero-card h1 {
    font-size: 28px;
  }

  .course-product-card {
    grid-template-columns: 118px 1fr;
    gap: 12px;
  }

  .course-product-visual {
    min-height: 118px;
  }

  .course-book-cover {
    width: 74px;
    height: 108px;
  }

  .course-phone-preview {
    width: 50px;
    height: 86px;
  }

  .course-product-info h2 {
    font-size: 16px;
  }

  .course-price-head strong {
    font-size: 38px;
  }
}

/* SMALL PHONES */

@media (max-width: 374px), (max-height: 760px) {
  .course-product-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .course-product-visual {
    width: 136px;
    margin: 0 auto;
  }

  .course-product-info li {
    text-align: left;
  }

  .course-value-grid {
    grid-template-columns: 1fr;
  }
}