:root {
  color-scheme: light;
  --ink: #172027;
  --muted: #5f6f75;
  --line: #dce8e8;
  --teal: #008489;
  --teal-dark: #006b70;
  --coral: #ef4438;
  --gold: #f4b942;
  --bg: #f7fbfa;
  --panel: #ffffff;
  --shadow: 0 18px 50px rgba(24, 52, 56, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 8%, rgba(0, 132, 137, 0.12), transparent 34rem),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 46%, #ffffff 100%);
  overflow-x: hidden;
}

a {
  color: var(--teal-dark);
}

main {
  width: calc(100% - 32px);
  max-width: 1180px;
  margin: 0 auto;
}

.hero {
  min-height: 620px;
  display: grid;
  align-content: center;
  gap: 28px;
  padding: 48px 0 34px;
}

.hero__content {
  display: grid;
  grid-template-columns: minmax(220px, 380px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(26px, 6vw, 82px);
}

.hero__copy,
.flow article,
.referral-card {
  min-width: 0;
}

.logo {
  width: 100%;
  max-width: 380px;
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.12));
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal-dark);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0;
}

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

h1 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(2.35rem, 6vw, 5.7rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.lead {
  max-width: 660px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.04rem, 2vw, 1.28rem);
  line-height: 1.58;
}

.hero__action {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--coral);
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 14px 24px rgba(239, 68, 56, 0.28);
}

.flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 0 0 64px;
}

.flow article {
  min-height: 190px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 28px rgba(24, 52, 56, 0.08);
}

.flow span {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: #edf7f6;
  color: var(--teal-dark);
  font-weight: 900;
}

.flow strong {
  display: block;
  font-size: 1.12rem;
}

.flow p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.flow__reward {
  background: var(--teal) !important;
  color: #ffffff;
}

.flow__reward span {
  background: #ffffff;
  color: var(--teal-dark);
}

.flow__reward p {
  color: rgba(255, 255, 255, 0.84);
}

.forms {
  padding: 24px 0 70px;
}

.forms__heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 22px;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
  letter-spacing: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.referral-card {
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--line);
  border-top: 6px solid var(--teal);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.referral-card--accent {
  border-top-color: var(--gold);
}

.card-title {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 74px;
  margin-bottom: 22px;
}

.card-icon {
  display: grid;
  place-items: center;
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--teal);
  color: #ffffff;
  font-weight: 900;
}

.referral-card--accent .card-icon {
  background: var(--gold);
  color: #3d3420;
}

h3 {
  margin: 0;
  font-size: 1.32rem;
  letter-spacing: 0;
}

.card-title p {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.4;
}

label {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  color: #34454a;
  font-size: 0.92rem;
  font-weight: 750;
}

input,
select {
  width: 100%;
  min-height: 48px;
  border: 1px solid #cbdada;
  border-radius: 8px;
  padding: 0 14px;
  color: var(--ink);
  background: #fbfefd;
  font: inherit;
}

input:focus,
select:focus {
  border-color: var(--teal);
  outline: 3px solid rgba(0, 132, 137, 0.14);
}

.terms {
  grid-template-columns: 18px 1fr;
  align-items: start;
  gap: 10px;
  margin: 18px 0;
  font-weight: 650;
  line-height: 1.4;
}

.terms input {
  min-height: 18px;
  height: 18px;
  margin-top: 2px;
}

button {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 8px;
  background: var(--teal);
  color: #ffffff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

button:hover {
  background: var(--teal-dark);
}

button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.status {
  min-height: 44px;
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.status--success {
  color: var(--teal-dark);
  font-weight: 800;
}

.status--error {
  color: #b42318;
  font-weight: 800;
}

.hp {
  position: absolute;
  left: -9999px;
}

footer {
  width: calc(100% - 32px);
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px 0 34px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

footer img {
  width: 146px;
  height: auto;
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
  }

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

  .flow {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  main,
  footer {
    width: calc(100% - 32px);
    max-width: 1180px;
  }

  .hero {
    padding: 28px 0 24px;
    text-align: center;
  }

  .logo {
    max-width: min(270px, 86vw);
    justify-self: center;
  }

  h1 {
    max-width: 12ch;
    margin-inline: auto;
    font-size: clamp(2rem, 10vw, 2.7rem);
    line-height: 1.08;
  }

  .lead {
    max-width: 30ch;
    margin-inline: auto;
    font-size: 1rem;
  }

  .hero__action {
    justify-self: center;
  }

  .flow {
    grid-template-columns: 1fr;
    margin-bottom: 38px;
  }

  .flow article {
    min-height: auto;
    text-align: center;
  }

  .flow span {
    margin-inline: auto;
  }

  .forms__heading {
    text-align: center;
  }

  .card-title {
    display: grid;
    justify-items: center;
    text-align: center;
  }

  .forms__heading,
  footer {
    display: block;
  }

  footer p {
    margin: 12px 0 0;
  }
}
