:root {
  --ink: #05261c;
  --ink-soft: #2f6253;
  --evergreen: #003f2f;
  --teal: #08bd9b;
  --teal-strong: #009879;
  --mint: #e4f0e9;
  --ivory: #fbf7ef;
  --gold: #f6c75c;
  --white: #ffffff;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --z-header: 20;
  --z-sticky: 30;
  --z-skip: 40;
  --iphone-17-pro-screen: 1206 / 2622;
  --phone-stage-bottom-space: 44px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--ivory);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  margin: 0;
  min-width: 320px;
}

body,
button {
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

h1,
h2 {
  font-weight: 900;
  letter-spacing: -0.038em;
  line-height: 0.98;
  margin: 0;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

section[id] {
  scroll-margin-top: 104px;
}

.skip-link {
  background: var(--white);
  border-radius: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  left: 16px;
  padding: 12px 16px;
  position: fixed;
  text-decoration: none;
  top: 12px;
  transform: translateY(-160%);
  transition: transform 180ms var(--ease-out);
  z-index: var(--z-skip);
}

.skip-link:focus {
  transform: translateY(0);
}

.primary-cta {
  align-items: center;
  background: var(--teal);
  border-radius: 10px;
  color: #002c21;
  display: inline-flex;
  font-size: 16px;
  font-weight: 900;
  gap: 16px;
  justify-content: center;
  min-height: 52px;
  padding: 12px 20px;
  text-decoration: none;
  transition: background-color 170ms ease, transform 170ms var(--ease-out);
}

.primary-cta:hover {
  background: #32d6b7;
  transform: translateY(-2px);
}

.primary-cta:active {
  transform: scale(0.98);
}

.launch-hero {
  background-image:
    linear-gradient(90deg, rgba(1, 36, 27, 0.94) 0%, rgba(1, 36, 27, 0.7) 43%, rgba(1, 36, 27, 0.93) 100%),
    url("/landing/assets/kagolf-premium-course-hero-email.jpg?v=20260808a");
  background-position: center;
  background-size: cover;
  color: var(--white);
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(440px, 1.1fr);
  min-height: min(760px, calc(100svh - 88px));
  overflow: hidden;
  padding: 0 max(24px, calc((100vw - 1240px) / 2));
  position: relative;
}

.hero-product {
  align-items: flex-end;
  align-self: end;
  animation: product-rise 760ms var(--ease-out) both;
  display: flex;
  height: auto;
  justify-content: center;
  justify-self: center;
  min-height: min(680px, calc(100svh - 116px));
  overflow: visible;
  padding: 36px 0 28px;
  width: min(430px, 88%);
}

.hero-phone {
  flex: 0 0 auto;
  width: min(27vw, 300px);
}

.hero-copy {
  align-self: center;
  animation: copy-rise 620ms var(--ease-out) both;
  max-width: 660px;
  padding: 72px 0;
  position: relative;
  z-index: 1;
}

@keyframes product-rise {
  from { transform: translateY(28px); }
  to { transform: translateY(0); }
}

@keyframes copy-rise {
  from { transform: translateY(16px); }
  to { transform: translateY(0); }
}

.campaign-label {
  color: var(--teal-strong);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1.2;
  margin: 0 0 22px;
  text-transform: uppercase;
}

.campaign-label-gold {
  color: var(--gold);
}

.hero-copy h1 {
  font-size: clamp(3.6rem, 6.4vw, 5.9rem);
  max-width: 640px;
}

.hero-copy > p:not(.campaign-label) {
  color: #e7f0eb;
  font-size: clamp(1.35rem, 2.1vw, 2rem);
  font-weight: 530;
  line-height: 1.28;
  margin: 28px 0 34px;
}

.hero-copy .primary-cta {
  min-height: 62px;
  padding: 14px 26px;
}

.hero-copy small {
  color: #c3d5cc;
  display: block;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.45;
  margin-top: 15px;
}

.feature {
  align-items: center;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  min-height: 650px;
  overflow: hidden;
  padding: clamp(64px, 8vw, 112px) max(24px, calc((100vw - 1120px) / 2));
}

.feature-copy {
  max-width: 520px;
}

.feature-copy h2 {
  font-size: clamp(3rem, 5.7vw, 5rem);
}

.feature-copy > p:not(.campaign-label) {
  color: var(--ink-soft);
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  line-height: 1.38;
  margin: 30px 0;
  max-width: 460px;
}

.text-link {
  color: var(--teal-strong);
  display: inline-flex;
  font-size: 17px;
  font-weight: 900;
  gap: 10px;
  text-decoration: none;
}

.text-link span {
  transition: transform 170ms var(--ease-out);
}

.text-link:hover span {
  transform: translateX(4px);
}

.feature-product {
  align-self: end;
  justify-self: center;
  margin: 0;
  width: min(460px, 100%);
}

.feature-product img {
  height: auto;
  margin: 0 auto;
  width: 100%;
}

.phone-device {
  aspect-ratio: auto;
  background: linear-gradient(135deg, #343943 0%, #090a0d 42%, #1c2028 100%);
  border: 1px solid #3e4149;
  border-radius: 52px;
  box-shadow: 0 34px 70px rgba(1, 19, 8, 0.48), inset 0 0 0 2px #0b0c10;
  padding: 8px;
  position: relative;
}

.phone-device::before {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  content: "";
  inset: 3px;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.phone-screen-frame {
  aspect-ratio: var(--iphone-17-pro-screen);
  background: #050608;
  border-radius: 44px;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.phone-screen-image {
  display: block;
  height: 100%;
  margin: 0;
  object-fit: contain;
  width: 100%;
}

.phone-side {
  background: linear-gradient(180deg, #2d3139 0%, #07080a 100%);
  border-radius: 999px;
  position: absolute;
  width: 4px;
}

.phone-side-left {
  height: 52px;
  left: -4px;
  top: 138px;
}

.phone-side-right {
  height: 78px;
  right: -4px;
  top: 240px;
}

.feature-phone {
  width: min(28vw, 282px);
}

.feature-circle {
  background: var(--ivory);
  padding-bottom: var(--phone-stage-bottom-space);
}

.feature-product-clubs {
  align-items: flex-end;
  display: flex;
  justify-content: center;
  width: min(470px, 100%);
}

.feature-round {
  background: var(--mint);
  grid-template-columns: minmax(320px, 0.8fr) minmax(0, 1fr);
  padding-bottom: var(--phone-stage-bottom-space);
}

.round-phone {
  align-self: end;
  display: flex;
  justify-content: center;
  width: min(390px, 82%);
}

.feature-course {
  background: var(--evergreen);
  color: var(--white);
  padding-bottom: var(--phone-stage-bottom-space);
}

.feature-course .feature-copy > p:not(.campaign-label) {
  color: #d6e6df;
}

.text-link-gold {
  color: var(--gold);
}

.feature-product-gps {
  align-items: flex-end;
  display: flex;
  justify-content: center;
  justify-self: end;
  width: min(520px, 100%);
}

.mobile-download {
  display: none;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

@media (max-width: 920px) {
  .launch-hero {
    grid-template-columns: minmax(240px, 0.7fr) minmax(380px, 1.3fr);
  }

  .hero-product {
    width: 100%;
  }

  .hero-phone {
    width: min(31vw, 286px);
  }

  .feature {
    min-height: 580px;
  }
}

@media (max-width: 700px) {
  :root {
    --phone-stage-bottom-space: 48px;
  }

  body {
    padding-bottom: calc(82px + env(safe-area-inset-bottom));
  }

  section[id] {
    scroll-margin-top: 136px;
  }

  .launch-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 0 22px;
  }

  .hero-copy {
    padding: 58px 0 12px;
  }

  .hero-copy h1 {
    font-size: clamp(3.2rem, 16vw, 4.8rem);
  }

  .hero-copy > p:not(.campaign-label) {
    font-size: clamp(1.2rem, 6vw, 1.55rem);
  }

  .hero-copy .primary-cta {
    width: 100%;
  }

  .hero-product {
    grid-row: 2;
    justify-self: center;
    margin-top: 22px;
    min-height: 0;
    padding: 12px 0 32px;
    width: min(370px, 96%);
  }

  .hero-phone {
    width: min(66vw, 252px);
  }

  .feature,
  .feature-round {
    gap: 40px;
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 72px 22px var(--phone-stage-bottom-space);
  }

  .feature-copy {
    max-width: 580px;
  }

  .feature-copy h2 {
    font-size: clamp(3rem, 15vw, 4.4rem);
  }

  .feature-copy > p:not(.campaign-label) {
    font-size: 1.22rem;
    margin: 24px 0;
  }

  .feature-product {
    width: min(390px, 92%);
  }

  .feature-circle .feature-product {
    margin-top: -12px;
  }

  .feature-round .feature-product {
    grid-row: 2;
  }

  .round-phone {
    width: min(330px, 82%);
  }

  .feature-phone {
    width: min(66vw, 276px);
  }

  .feature-product-gps {
    justify-self: center;
    width: min(440px, 100%);
  }

  .phone-device {
    border-radius: 44px;
    box-shadow: 0 28px 58px rgba(2, 23, 9, 0.42), inset 0 0 0 2px #0b0c10;
    padding: 7px;
  }

  .phone-device::before {
    border-radius: 42px;
  }

  .phone-screen-frame {
    border-radius: 38px;
  }

  .phone-side {
    display: none;
  }

  .mobile-download {
    align-items: center;
    background: var(--teal);
    bottom: max(10px, env(safe-area-inset-bottom));
    color: #002c21;
    display: flex;
    justify-content: space-between;
    left: 10px;
    min-height: 64px;
    padding: 10px 18px;
    position: fixed;
    right: 10px;
    text-decoration: none;
    z-index: var(--z-sticky);
  }

  .mobile-download > span:first-child {
    display: grid;
    gap: 3px;
  }

  .mobile-download strong {
    font-size: 16px;
    line-height: 1.1;
  }

  .mobile-download small {
    font-size: 11px;
    font-weight: 720;
  }

  .mobile-download > span:last-child {
    font-size: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
