:root {
  color-scheme: light;
  --ink: #071634;
  --navy: #071f57;
  --night: #041331;
  --gold: #ffd84d;
  --sun: #ff8a1f;
  --paper: #fffaf0;
  --line: rgba(7, 22, 52, 0.12);
  --shadow: 0 24px 70px rgba(7, 22, 52, 0.12);
  --content: min(1120px, calc(100vw - 40px));
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, #fffdf8 0%, #f7fbff 52%, #fffaf0 100%);
  color: var(--ink);
}

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

button,
input {
  font: inherit;
}

p,
h1,
h2,
strong,
span {
  overflow-wrap: anywhere;
}

.subscribe-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  width: var(--content);
  min-height: 72px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 253, 248, 0.84);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  font-weight: 950;
}

.logo {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: var(--navy);
}

.logo img {
  width: 100%;
  height: 100%;
}

.header-link,
.contact-button,
.coupon-form button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  background: var(--gold);
  color: var(--night);
  cursor: pointer;
  font-weight: 950;
}

.header-link {
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
}

.hero,
.redeem-shell,
.payment-note,
.course-links,
.subscribe-footer {
  width: var(--content);
  margin: 0 auto;
}

.hero {
  display: grid;
  min-height: min(640px, calc(100svh - 72px));
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.42fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  padding: 52px 0 64px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--sun);
  font-size: 0.8rem;
  font-weight: 950;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  max-width: 850px;
  font-size: clamp(3.2rem, 8vw, 7rem);
  line-height: 0.94;
  text-transform: uppercase;
}

h2 {
  font-size: clamp(2.1rem, 5vw, 4.2rem);
  line-height: 1;
}

.hero-copy > p:not(.eyebrow),
.redeem-copy p,
.payment-note p {
  max-width: 680px;
  margin: 20px 0 0;
  color: rgba(7, 22, 52, 0.68);
  font-size: 1.04rem;
  line-height: 1.62;
}

.price-panel {
  padding: 28px;
  border-radius: 8px;
  background: var(--navy);
  color: white;
  box-shadow: var(--shadow);
}

.price-panel span {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.price-panel strong {
  display: block;
  margin-top: 14px;
  font-size: clamp(3rem, 8vw, 5.2rem);
  line-height: 0.95;
}

.price-panel p {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
}

.redeem-shell,
.payment-note {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(320px, 0.58fr);
  gap: clamp(22px, 4vw, 48px);
  align-items: center;
  margin-top: 28px;
  padding: clamp(24px, 5vw, 44px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.coupon-form {
  display: grid;
  gap: 12px;
  padding: 24px;
  border-radius: 8px;
  background: var(--paper);
}

.coupon-form label {
  font-weight: 950;
}

.form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.coupon-form input {
  min-width: 0;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 16px;
  background: white;
  color: var(--ink);
  text-transform: uppercase;
}

.status-message {
  min-height: 24px;
  margin: 0;
  color: rgba(7, 22, 52, 0.66);
  font-weight: 850;
  line-height: 1.45;
}

.status-message.success {
  color: #17683d;
}

.status-message.error {
  color: #a43322;
}

.payment-note {
  background: var(--navy);
  color: white;
}

.payment-note .eyebrow {
  color: var(--gold);
}

.payment-note p {
  color: rgba(255, 255, 255, 0.76);
}

.payment-note .contact-button {
  justify-self: end;
}

.course-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.course-links a {
  min-height: 150px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: white;
  box-shadow: 0 16px 42px rgba(7, 22, 52, 0.08);
}

.course-links span,
.course-links strong {
  display: block;
}

.course-links span {
  color: var(--sun);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.course-links strong {
  margin-top: 42px;
  font-size: 1.35rem;
  line-height: 1.1;
}

.subscribe-footer {
  display: flex;
  min-height: 98px;
  align-items: center;
  justify-content: space-between;
  color: rgba(7, 22, 52, 0.68);
}

@media (max-width: 820px) {
  :root {
    --content: min(100vw - 28px, 760px);
  }

  .hero,
  .redeem-shell,
  .payment-note,
  .course-links {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding: 42px 0 46px;
  }

  .payment-note .contact-button {
    justify-self: stretch;
  }
}

@media (max-width: 560px) {
  :root {
    --content: min(100vw - 24px, 760px);
  }

  .subscribe-header {
    min-height: 64px;
    gap: 10px;
  }

  .brand span:last-child {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 38px 0 42px;
  }

  h1 {
    font-size: clamp(2.6rem, 15vw, 4.4rem);
  }

  .redeem-shell,
  .payment-note {
    padding: 20px 14px;
  }

  .coupon-form {
    padding: 16px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .coupon-form button,
  .contact-button {
    width: 100%;
  }

  .subscribe-footer {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
  }
}
