// =============================================================================
// Landing Pages — Focused conversion layout
// =============================================================================

// --- Mini header ---
.landing-header {
  padding: 1rem 0;
  background: var(--bg, #fff);
  border-bottom: 1px solid var(--border, #e2e8f0);

  .container {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  &__logo img {
    height: 40px;
    width: auto;
  }

  &__sitename {
    font-family: var(--font-family-secondary, var(--font-family));
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text, #0f172a);
    text-decoration: none;
  }
}

// --- Hero ---
.landing-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 90%, #000), color-mix(in srgb, var(--primary) 60%, #000));
  overflow: hidden;

  &--with-image {
    background: none;
  }

  &__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
  }

  &__overlay {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 4rem 0;
  }

  &--with-image &__overlay {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.65) 100%);
    min-height: 70vh;
    display: flex;
    align-items: center;
  }

  &__content {
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
  }

  &__title {
    font-family: var(--font-family-secondary, var(--font-family));
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #fff;
    margin-bottom: 1.25rem;
  }

  &__subtitle {
    font-size: clamp(1rem, 2.5vw, 1.35rem);
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin-bottom: 2rem;
  }
}

// --- CTA Button ---
.landing-cta {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-family);
  font-size: 1.125rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  border-radius: var(--radius, 0.75rem);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);

  &:hover,
  &:focus {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    color: #fff;
    text-decoration: none;
    background: color-mix(in srgb, var(--primary) 85%, #000);
  }

  &:active {
    transform: translateY(0) scale(1);
  }

  &--lg {
    padding: 1.25rem 3rem;
    font-size: 1.25rem;
  }

  &--form {
    margin-top: 0.5rem;
    padding: 0.875rem 2rem;
  }
}

// --- Sections ---
.landing-section {
  padding: 4rem 0;

  &:nth-child(even) {
    background: var(--surface, #f8fafc);
  }

  &--form {
    background: var(--surface, #f8fafc);
    padding: 4rem 0 5rem;
  }

  &--cta-final {
    padding: 3rem 0 4rem;
    background: var(--bg, #fff);
  }
}

// --- Content area ---
.landing-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--text, #0f172a);

  h2 {
    font-family: var(--font-family-secondary, var(--font-family));
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text, #0f172a);
  }

  h3 {
    font-size: 1.35rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
  }

  ul, ol {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
  }

  li {
    margin-bottom: 0.5rem;
  }
}

// --- Form card ---
.landing-form {
  max-width: 480px;
  margin: 0 auto;
  background: var(--bg, #fff);
  border-radius: var(--radius, 0.75rem);
  padding: 2.5rem 2rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border, #e2e8f0);

  &__title {
    font-family: var(--font-family-secondary, var(--font-family));
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--text, #0f172a);
  }

  .form-control {
    border-radius: calc(var(--radius, 0.75rem) * 0.6);
    padding: 0.75rem 1rem;
    border: 1px solid var(--border, #e2e8f0);
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;

    &:focus {
      border-color: var(--primary);
      box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 20%, transparent);
    }
  }

  label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-muted, #64748b);
    margin-bottom: 0.35rem;
  }
}

// --- Footer minimal ---
.landing-footer {
  padding: 1.5rem 0;
  border-top: 1px solid var(--border, #e2e8f0);
  background: var(--bg, #fff);

  p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted, #64748b);
  }

  a {
    color: var(--text-muted, #64748b);
    text-decoration: underline;

    &:hover {
      color: var(--primary);
    }
  }
}

// --- Mobile ---
@media (max-width: 767.98px) {
  .landing-hero {
    min-height: 60vh;

    &__content {
      padding: 0 1rem;
    }
  }

  .landing-cta {
    padding: 0.875rem 2rem;
    font-size: 1rem;
    width: 100%;
    text-align: center;

    &--lg {
      padding: 1rem 2rem;
      font-size: 1.1rem;
    }
  }

  .landing-section {
    padding: 2.5rem 0;
  }

  .landing-form {
    padding: 1.75rem 1.25rem;
    margin: 0 0.5rem;
  }
}
