* {
  box-sizing: border-box;
}

:root {
  --red: #d90000;
  --deep-red: #c90000;
  --cream: #fff3bd;
  --gold: #ffd447;
  --ink: #2c1712;
  --bottom-offset: 128px;
  --page-width: 563px;
  --bottom-width: 525px;
}

html {
  background: #fff7df;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: linear-gradient(180deg, #fff7df 0%, #fff 42%, #fff7df 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang TC", "Microsoft JhengHei", Arial, sans-serif;
  padding-bottom: var(--bottom-offset);
}

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

.page {
  width: 100%;
}

.hero {
  max-width: var(--page-width);
  margin: 0 auto;
  background: #fff;
}

.hero img {
  display: block;
  width: 100%;
  height: auto;
}

.image-disclaimer {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 9px 12px 8px;
  color: #7a4c21;
  background: #fff7df;
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
}

.cta-bar,
.float-panel {
  max-width: var(--bottom-width);
  width: 100%;
  margin: 0 auto;
}

.cta-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 78px;
  overflow: hidden;
  padding: 6px 8px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.price-copy {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  flex: 0 1 auto;
  min-width: 0;
  gap: clamp(5px, 1.5vw, 10px);
  padding: 0;
  color: #fff;
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 2px 4px rgba(97, 0, 0, 0.25);
  white-space: nowrap;
}

.price-copy span {
  font-size: clamp(24px, 5.9vw, 39px);
  font-weight: 500;
}

.price-copy strong {
  color: #fff;
  font-size: clamp(31px, 7.2vw, 45px);
  font-weight: 900;
}

.apply-button {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  width: 100%;
  height: 66px;
  margin: 0 0 0 0;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: #ff0000;
  box-shadow: none;
  cursor: pointer;
  animation: none;
}

.apply-button::after {
  display: none;
}

.apply-button small {
  display: none;
}

.apply-button b {
  position: relative;
  z-index: 1;
  font-size: clamp(28px, 7.8vw, 42px);
  font-weight: 950;
  line-height: 0.92;
  white-space: nowrap;
  animation: signup-text-flash 0.34s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

.float-panel {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 20;
  padding: 8px 0 6px;
  background: rgba(255, 247, 223, 0.96);
  box-shadow: 0 -9px 24px rgba(96, 39, 0, 0.18);
  backdrop-filter: blur(8px);
}

.legal-consent {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 8px 0;
  color: #6f350f;
  font-size: 13px;
  line-height: 1.35;
}

.legal-consent input {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--red);
}

.legal-consent span {
  min-width: 0;
}

.legal-consent a,
.legal-consent button {
  border: 0;
  padding: 0;
  color: var(--deep-red);
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.form-pop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  height: 100vh;
  padding: 18px 0;
  background:
    radial-gradient(circle at 20% 34%, rgba(255, 245, 176, 0.28), transparent 20%),
    radial-gradient(circle at 78% 52%, rgba(255, 255, 215, 0.18), transparent 22%),
    rgba(0, 0, 0, 0.78);
}

.success_box {
  box-sizing: border-box;
  width: 90%;
  max-width: 460px;
  height: auto;
  margin: 0 auto;
  padding: 0 8px 14px;
  color: #fff;
  text-align: center;
  background: transparent;
}

.success_box h3 {
  box-sizing: border-box;
  width: 100%;
  margin: 0 auto 3px;
  padding: 0 4px;
  color: #fff7bf;
  font-family: "Microsoft JhengHei", "PingFang TC", Arial, sans-serif;
  font-size: clamp(24px, 6.4vw, 38px);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}

.success_box p.signup-modal__price {
  display: block;
  box-sizing: border-box;
  width: 100%;
  margin: 0 auto 10px;
  padding: 0 4px;
  color: #fff2a6;
  font-family: "Microsoft JhengHei", "PingFang TC", Arial, sans-serif;
  font-size: clamp(22px, 6.2vw, 33px);
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}

.signup-modal__course {
  display: block;
  width: min(72vw, 350px);
  height: auto;
  margin: 0 auto 12px;
  filter: drop-shadow(0 0 18px rgba(255, 245, 183, 0.72)) drop-shadow(0 14px 24px rgba(0, 0, 0, 0.28));
}

#jump_type {
  padding: 0;
}

#jump_type .btn_open {
  position: relative;
  width: min(88vw, 440px);
  margin: 0 auto 18px;
  padding: 0;
  border: 0;
  background: transparent;
}

#jump_type .btn_open a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  min-height: 72px;
  overflow: hidden;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: #ff0000;
  box-shadow: none;
  font-size: clamp(24px, 6.6vw, 36px);
  font-weight: 950;
  line-height: 1;
  text-align: center;
  text-shadow: none;
  white-space: nowrap;
  animation: none;
}

#jump_type .btn_open a span {
  display: inline-block;
  animation: signup-text-flash 0.34s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

#jump_type .btn_open a.is-loading {
  pointer-events: none;
  cursor: wait;
  filter: brightness(0.96);
  animation: none;
}

#jump_type .btn_open a.is-loading::before {
  width: 1em;
  height: 1em;
  margin-right: 0.4em;
  border: 3px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  content: "";
  animation: signup-loading-spin 0.8s linear infinite;
}

@keyframes button-pop {
  0% {
    transform: scale(0.94);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(0.94);
  }
}

@keyframes button-glow {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.16) saturate(1.25);
  }
}

@keyframes signup-line-flash {
  from {
    transform: scale(0.985);
    filter: brightness(0.96);
  }
  to {
    transform: scale(1.025);
    filter: brightness(1.16);
  }
}

@keyframes signup-text-flash {
  0% {
    transform: scale(0.94);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(0.94);
  }
}

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

@keyframes shine {
  0% {
    left: -42%;
  }
  58%,
  100% {
    left: 118%;
  }
}

@media (max-width: 420px) {
  :root {
    --bottom-offset: 112px;
  }

  .cta-bar {
    height: 70px;
    padding: 5px 7px;
  }

  .price-copy {
    gap: 3px;
    padding: 0;
  }

  .price-copy span {
    font-size: clamp(16px, 4.75vw, 20px);
  }

  .price-copy strong {
    font-size: clamp(24px, 6.65vw, 29px);
  }

  .apply-button {
    height: 60px;
  }

  .apply-button b {
    font-size: clamp(25px, 7.8vw, 32px);
  }

  .legal-consent {
    gap: 5px;
    padding-inline: 6px;
    font-size: 12px;
  }

  .legal-consent input {
    width: 15px;
    height: 15px;
  }

  .success_box {
    width: 92%;
    padding-right: 10px;
    padding-left: 10px;
  }

  .signup-modal__course {
    width: min(74vw, 330px);
    margin-bottom: 12px;
  }

  #jump_type .btn_open a {
    min-height: 62px;
    padding-inline: 14px;
    font-size: clamp(22px, 6.2vw, 28px);
  }
}

@media (max-width: 360px) {
  .cta-bar {
    padding-right: 6px;
    padding-left: 6px;
  }

  .price-copy {
    gap: 2px;
    padding-left: 6px;
  }

  .price-copy span {
    font-size: 15px;
  }

  .price-copy strong {
    font-size: 23px;
  }

  .apply-button {
    height: 56px;
  }

  .apply-button b {
    font-size: 25px;
  }
}
