*, *::before, *::after { box-sizing: border-box; }

html { overflow-x: hidden; }

body {
  margin: 0;
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  background: #FFFFFF;
  color: #474545;
  font-family: 'Lexend', sans-serif;
  font-weight: 300;
}

h1, p, ol { margin: 0; }
ol { padding: 0; list-style: none; }
strong { font-weight: 500; color: #000000; }
a { color: #0A6263; }
img { display: block; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid #0A6263; outline-offset: 2px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.bg { position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }

/* Background shapes */
.blob {
  position: absolute;
  z-index: 0;
  background: #EAF7F7;
  border-radius: 50%;
  pointer-events: none;
}
.blob-top { width: 520px; height: 300px; top: -170px; right: -230px; transform: rotate(-24deg); }
.blob-bottom { width: 520px; height: 300px; bottom: -190px; left: -250px; transform: rotate(-24deg); }

main, .site-footer { position: relative; z-index: 1; }

/* Phone view is the default; desktop views switch on at 900px */
.desktop, .site-footer { display: none; }

.phone-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 24px;
  max-width: 420px;
  margin: 0 auto;
}
.phone-view .logo { width: 72px; height: 72px; }
.phone-view h1 { margin-top: 20px; font-size: 23px; font-weight: 400; color: #000000; }
.phone-view .lead { margin-top: 12px; font-size: 16px; line-height: 1.6; }
.phone-view .badges { margin-top: 24px; }
.phone-referral { width: 100%; margin-top: 24px; text-align: left; }
.fee-line { margin-top: 24px; font-size: 14px; }

.badges { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.badges.stacked { flex-direction: column; align-items: center; }
.badges img { height: 54px; width: auto; }
.badges img { max-width: 100%; }
.badges img.badge-gp { height: 80px; margin: -13px; max-width: none; }
.phone-view { width: 100%; box-sizing: border-box; }

@media (min-width: 900px) {
  .blob-top { width: 900px; height: 520px; top: -240px; right: -300px; }
  .blob-bottom { width: 900px; height: 520px; bottom: -260px; left: -320px; }
  .phone-view { display: none; }
  .desktop { display: block; padding: 72px 24px 96px; }
  .site-footer {
    display: block;
    padding: 24px;
    text-align: center;
    font-size: 12px;
    font-weight: 300;
    color: #474545;
  }
}

/* Left column */
.row { display: flex; justify-content: center; align-items: flex-start; gap: 80px; }
.left { width: 460px; }
.right { width: 520px; }

.logo { width: 74px; height: auto; }
.eyebrow { margin-top: 28px; font-size: 15px; font-weight: 500; color: #0A6263; }
.title { margin-top: 8px; font-size: 26px; font-weight: 400; color: #000000; }
.lead { margin-top: 16px; font-size: 16px; font-weight: 300; line-height: 1.6; }

.steps { margin-top: 32px; display: flex; flex-direction: column; gap: 24px; }
.steps li { display: flex; gap: 16px; align-items: flex-start; }
.num {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #EAF7F7;
  color: #0A6263;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-title { font-size: 16px; font-weight: 400; color: #000000; }
.step-sub { margin-top: 2px; font-size: 14px; font-weight: 300; color: #474545; }

/* Card + form */
.card {
  background: #FFFFFF;
  border: 1px solid #E1DDDD;
  border-radius: 16px;
  box-shadow: 0 0 10px 3px rgba(0, 0, 0, 0.05);
  padding: 20px;
}
.form { display: flex; flex-direction: column; gap: 14px; }

.field { position: relative; }
.field input,
.phone {
  width: 100%;
  height: 56px;
  border: 1px solid #919191;
  border-radius: 8px;
  background: #FFFFFF;
  font-family: inherit;
  font-size: 16px;
  font-weight: 300;
  color: #0A0614;
}
.field input { padding: 0 52px 0 20px; }
.field input::placeholder, .phone input::placeholder { color: #5E5E5E; opacity: 1; }
.field input:focus-visible, .phone:focus-within { outline: 2px solid #0A6263; outline-offset: 2px; }

.icon, .toggle {
  position: absolute;
  right: 16px;
  top: 16px;
  width: 24px;
  height: 24px;
  color: #474545;
}
.icon { pointer-events: none; }
.toggle { padding: 0; border: 0; background: none; cursor: pointer; }
.toggle svg { display: block; }

.phone { display: flex; align-items: center; padding: 0 8px 0 12px; }
.phone select {
  flex: none;
  width: 124px;
  height: 100%;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 16px;
  font-weight: 300;
  color: #0A0614;
  cursor: pointer;
}
.phone input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  padding: 0 12px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 300;
  color: #0A0614;
}
.phone select:focus-visible, .phone input:focus-visible { outline: none; }

.helper { margin-top: 6px; font-size: 12px; font-weight: 300; color: #646A6A; }

.referral-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 16px 0 20px;
  background: #F4F8F7;
  border: 1px solid #919191;
  border-radius: 8px;
}
.referral-text { display: flex; flex-direction: column; }
.referral-label { font-size: 14px; font-weight: 300; color: #5E5E5E; }
.referral-code { font-size: 16px; font-weight: 500; color: #0A6263; letter-spacing: 0.5px; }
.lock { color: #474545; flex: none; }

.fee, .note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #EAF7F7;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 300;
}
.fee svg, .note svg { flex: none; color: #0A6263; }

.terms { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; }
.terms input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: #0A6263; }

.error { font-size: 14px; color: #B42318; }

.btn {
  width: 100%;
  height: 56px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(to top, #14AFB1 0%, #084A4B 100%);
  color: #FFFFFF;
  font-family: inherit;
  font-size: 18px;
  font-weight: 300;
  cursor: pointer;
}
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

.already { margin-top: 16px; text-align: center; font-size: 14px; font-weight: 300; }

/* Thank-you view */
.thanks { text-align: center; }
.thanks .logo-center { margin: 0 auto; }
.thanks-card {
  width: 600px;
  max-width: 100%;
  margin: 32px auto 0;
  padding: 40px;
  text-align: left;
}
.check {
  width: 64px;
  height: 64px;
  border: 2px solid #128807;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.thanks-card .title { margin-top: 20px; }
.thanks-card .steps { margin-top: 28px; }
.thanks-card .note { margin-top: 28px; }
.thanks-card .title:focus { outline: none; }
.thanks-footer {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #E1DDDD;
  font-size: 14px;
}
.thanks-footer .js-code { font-weight: 500; color: #0A6263; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
