:root {
  --font: "Poppins", sans-serif;
  --white: #ffffff;
  --text-dark: #1e1515;
  --text-muted: #4a5565;
  --border: #e3e9f0;
  --badge-bg: #f7f7f7;
  --surface: #f5f7fa;
  --accent: #14532d;
  --accent-soft: #e7f3eb;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font);
  overflow-x: hidden;
  color: var(--text-dark);
  background: var(--white);
}

/* ================= HERO ================= */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  color: var(--white);
  background: url("/how-it-works/bg.png") center/cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.hero-content {
  position: relative;
  max-width: 900px;
  z-index: 1;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: 50.9px;
  font-weight: 600;
  margin-bottom: 16px;
}

.hero p {
  font-size: 22px;
  font-weight: 400;
  text-align: center;
  line-height: 1.6;
  max-width: 760px;
  margin: 0 auto;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid #42cbb2;
  background: #42cbb2;
  color: var(--white);
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.cta-button:hover,
.cta-button:focus-visible {
  background: #2e9b87;
  border-color: #2e9b87;
  transform: translateY(-1px);
}

.cta-button:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.35);
  outline-offset: 3px;
}

.cta-button-secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.48);
}

.cta-button-secondary:hover,
.cta-button-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.75);
}

.cta-button-light {
  margin-top: 18px;
  background: var(--white);
  border-color: var(--white);
  color: var(--accent);
}

.cta-button-light:hover,
.cta-button-light:focus-visible {
  background: #f0f6f2;
  border-color: #f0f6f2;
  color: var(--accent);
}

.desktop-break {
  display: inline;
}
.signup-registration-form {
  display: flex;
}
.signup-registration-form-group {
  position: relative;
}

.signup-registration-form-group.invalid .signup-registration-form-control {
  border-color: red;
}

.signup-registration-form-control {
  text-align: center;
  height: 56px;
  width: 100%;
  max-width: 280px;
  padding: 0 16px;
  font-size: var(--text-base);
  border: 2px solid var(--primary);
  border-radius: var(--rounded-md) 0 0 var(--rounded-md);
  font-weight: 700;
  text-transform: uppercase;
  outline: none;
  border-right: none;
  background-color: var(--white);
}
input,
select,
textarea,
button {
  font-family: inherit;
}
.signup-registration-form-invalid-feedback {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 8px 12px;
  font-size: var(--text-sm);
  display: flex;
  align-items: center;
  white-space: nowrap;
  border-radius: var(--rounded-md);
  opacity: 0;
  z-index: 10;
  visibility: hidden;
  transition-property: opacity, visibility, top;
  transition-duration: var(--duration-300);
}

.signup-registration-form-group.invalid
  .signup-registration-form-invalid-feedback {
  opacity: 1;
  visibility: visible;
  top: calc(100% + 16px);
}

.signup-registration-form-submit {
  height: 56px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: var(--primary);
  color: var(--black);
  font-size: var(--text-base);
  border: 2px solid var(--primary);
  outline: none;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  border-radius: 0 var(--rounded-md) var(--rounded-md) 0;
  transition-property: background-color, color, border-color;
  transition-duration: var(--duration-150);
}

.signup-registration-form-submit:hover {
  background-color: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.signup-registration-form-submit > :first-child {
  margin-right: 8px;
}
.signup-registration-form-invalid-feedback::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid;
  border-color: transparent transparent var(--white) transparent;
}
.signup-registration-form-invalid-feedback > :first-child {
  margin-right: 8px;
  color: red;
}
@media (max-width: 768px) {
  .hero h1 {
    font-size: 34px;
  }

  .hero p {
    font-size: 18px;
  }

  .hero-actions {
    margin-top: 24px;
  }

  .desktop-break {
    display: none;
  }
}

/* ================= STEPS ================= */
.steps {
  padding: 90px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr);
  gap: 24px;
  margin-bottom: 72px;
  padding: 36px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: linear-gradient(135deg, var(--surface), #ffffff);
}

.page-intro h2 {
  font-size: 38px;
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 18px;
}

.page-intro p {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-muted);
}

.page-intro-cta {
  margin-top: 14px;
  color: var(--text-dark);
  font-weight: 600;
}

.intro-points {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 12px;
}

.intro-points li {
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--white);
  color: var(--text-dark);
  font-size: 15px;
  font-weight: 500;
}

.step {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 60px;
  padding-bottom: 57px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 57px;
}

.step-left {
  display: flex;
  gap: 60px;
  flex: 1;
}

.number {
  width: 72px;
  height: 72px;
  border-radius: 36px;
  background: var(--badge-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  font-weight: 500;
  color: var(--text-dark);
  flex-shrink: 0;
}

.text-content h2,
.text-content h3 {
  font-size: 40px;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 24px;
}

.text-content p {
  font-size: 20px;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 600px;
}

.step-right {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-visual {
  width: 220px;
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(160deg, var(--accent-soft), #ffffff);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  gap: 14px;
}

.step-visual-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.step-visual-text {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text-dark);
}

.closing-cta {
  margin-top: 24px;
  padding: 36px;
  border-radius: 28px;
  background: linear-gradient(135deg, #42cbb2, #1d7968);
  color: var(--white);
}

.closing-cta h2 {
  font-size: 36px;
  font-weight: 600;
  margin-bottom: 12px;
}

.closing-cta p {
  font-size: 18px;
  line-height: 1.7;
  max-width: 720px;
  margin-bottom: 20px;
}

.svg-placeholder {
  width: 180px;
  height: 100%;
  background: #f2f2f2;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 14px;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
  .page-intro {
    grid-template-columns: 1fr;
  }

  .step {
    flex-direction: column;
  }

  .step-left {
    flex-direction: row;
  }

  .step-visual {
    width: 100%;
  }

  .svg-placeholder {
    width: 100%;
    height: 180px;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 64px 20px;
  }

  .page-intro {
    padding: 24px;
  }

  .page-intro h2 {
    font-size: 30px;
  }

  .page-intro p,
  .closing-cta p {
    font-size: 16px;
  }

  .cta-button {
    width: 100%;
  }

  .step-left {
    gap: 20px;
    flex-direction: column;
  }

  .navbar-wrapper {
    height: fit-content;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .text-content h2,
  .text-content h3 {
    font-size: 28px;
  }

  .text-content p {
    font-size: 16px;
  }

  .number {
    width: 56px;
    height: 56px;
    font-size: 28px;
  }

  .step-visual-text {
    font-size: 20px;
  }

  .closing-cta {
    padding: 24px;
  }

  .closing-cta h2 {
    font-size: 28px;
  }
}
