/* Landing page layout refinements */
:root {
  --landing-ink: #16324f;
  --landing-muted: #526579;
  --landing-brand: #0b5d78;
  --landing-accent: #e6a23c;
  --landing-surface: #f4f8fa;
  --landing-brand-dark: #08465c;
  --landing-header-h: 56px;
  --landing-display: 'Literata', Georgia, 'Times New Roman', serif;
  --landing-body: 'Public Sans', 'Segoe UI', Arial, sans-serif;
}

body {
  color: var(--landing-ink);
  font-family: var(--landing-body);
  background: #ffffff;
}

body > header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid #dbe5ea;
  background: #ffffff !important;
  box-shadow: 0 2px 12px rgba(22, 50, 79, 0.08);
}

body > header nav {
  min-height: var(--landing-header-h);
  padding: 8px 24px !important;
}

body > header img {
  max-height: 36px;
}

/* Header CTA: hidden until the hero form's button scrolls out of view (see index.html). */
.header-cta {
  flex-shrink: 0;
  border-radius: 7px;
  background: var(--landing-brand);
  padding: 9px 18px;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms, background 160ms ease;
}

body > header.cta-shown .header-cta {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.header-cta:hover {
  background: var(--landing-brand-dark);
}

#start-form {
  scroll-margin-top: calc(var(--landing-header-h) + 22px);
}

main > section:first-child {
  background-color: var(--landing-surface) !important;
  background-image: none !important;
  padding: 12px 0 32px;
}

main > section:first-child > div {
  min-height: 500px;
  max-width: 1180px;
  gap: 64px;
  padding: 20px 28px !important;
}

main > section:first-child h1 {
  max-width: 560px;
  color: var(--landing-ink);
  font-family: var(--landing-display);
  font-size: clamp(1.9rem, 3vw, 2.6rem) !important;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.18 !important;
}

main > section:first-child h2 {
  max-width: 560px;
  color: var(--landing-muted);
  font-size: clamp(1.1rem, 1.7vw, 1.45rem) !important;
  line-height: 1.55 !important;
}

main > section:first-child p:first-child {
  color: var(--landing-brand);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
}

main > section:first-child ul {
  max-width: 510px;
  color: var(--landing-ink);
  font-size: 1rem;
  line-height: 1.55;
}

main > section:first-child li {
  position: relative;
  padding-left: 28px;
}

main > section:first-child li::before {
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--landing-accent);
  content: '';
}

#start-form {
  width: 100%;
  max-width: 470px;
  justify-self: end;
  border: 1px solid #dbe5ea;
  border-radius: 12px;
  padding: 34px !important;
  box-shadow: 0 18px 45px rgba(22, 50, 79, 0.16);
}

#start-form .start-form-head {
  margin: -34px -34px 26px;
  border-radius: 11px 11px 0 0;
  background: var(--landing-brand);
  padding: 13px 34px;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

#start-form h3 {
  color: var(--landing-ink);
  font-family: var(--landing-display);
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

#start-form p,
main section p {
  line-height: 1.65;
}

#start-form select {
  border: 1px solid #b9cbd5;
  border-radius: 7px;
  background-color: #fff;
}

#start-form button {
  background: var(--landing-brand) !important;
  border-radius: 7px;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

#start-form button:hover {
  background: var(--landing-brand-dark) !important;
  box-shadow: 0 8px 18px rgba(11, 93, 120, 0.24);
  transform: translateY(-2px);
}

main > section:nth-child(6) a {
  background: var(--landing-accent) !important;
  border-radius: 7px;
  color: var(--landing-ink) !important;
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

main > section:nth-child(6) a:hover {
  background: #f0b45a !important;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
  transform: translateY(-2px);
}

main > section:not(:first-child) {
  padding-top: 76px !important;
  padding-bottom: 76px !important;
}

main > section:nth-child(2) {
  background: var(--landing-brand) !important;
  padding-top: 38px !important;
  padding-bottom: 38px !important;
}

main > section:nth-child(2) p:first-child {
  font-family: var(--landing-display);
  font-size: clamp(1.45rem, 2.5vw, 2rem) !important;
  font-weight: 600;
  line-height: 1.3;
}

main > section:nth-child(3) h2,
main > section:nth-child(4) h2,
main > section:nth-child(5) h2,
main > section:nth-child(6) h2 {
  color: var(--landing-ink);
  font-family: var(--landing-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem) !important;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.22;
}

main > section:nth-child(3) > div > div:first-child,
main > section:nth-child(5) > div {
  max-width: 760px;
}

main > section:nth-child(3) .mt-10 {
  margin-top: 48px;
}

main > section:nth-child(3) .rounded-full {
  background: var(--landing-accent) !important;
  color: var(--landing-ink) !important;
  font-family: var(--landing-display);
  font-weight: 700;
  box-shadow: none;
}

main > section:nth-child(4) {
  background: var(--landing-surface) !important;
}

main > section:nth-child(4) > div > div {
  border: 1px solid #dbe5ea;
  border-radius: 10px;
  background: #ffffff;
  padding: 30px;
  box-shadow: 0 8px 24px rgba(22, 50, 79, 0.06);
}

main > section:nth-child(4) ul {
  font-size: 1rem;
  line-height: 1.65;
}

main > section:nth-child(5) {
  border-top: 1px solid #e5edf0;
  border-bottom: 1px solid #e5edf0;
}

main > section:nth-child(6) {
  background: var(--landing-ink) !important;
}

main > section:nth-child(6) h2 {
  color: #ffffff;
}

main > section:nth-child(6) details {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

/* Site footer: keep identical in landing-layout.css and mvav2-layout.css. */
body > footer {
  border: 0;
  background: #ffffff !important;
  padding: 42px 24px !important;
  text-align: center;
}

body > footer > div {
  max-width: 56rem;
  margin: 0 auto;
}

body > footer p {
  color: #475569;
  font-size: 14px;
  line-height: 20px;
}

body > footer .footer-copyright {
  margin-top: 20px;
  color: #1e2022;
  font-weight: 600;
}

body > footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin-top: 12px;
}

body > footer a {
  color: #4b5563;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  white-space: nowrap;
}

body > footer a:hover {
  color: var(--landing-brand);
}

@media (max-width: 767px) {
  :root {
    --landing-header-h: 48px;
  }

  body > header nav {
    min-height: var(--landing-header-h);
    padding: 6px 16px !important;
    justify-content: center;
    gap: 12px;
  }

  /* Let the logo shrink so logo + CTA fit on very narrow phones (~320px). */
  body > header nav > a:first-child {
    min-width: 0;
  }

  body > header img {
    max-width: min(150px, 100%);
    max-height: 38px;
  }

  .header-cta {
    padding: 10px 14px;
    font-size: 0.8rem;
  }

  main > section:first-child {
    padding: 4px 0 16px;
  }

  main > section:first-child > div {
    min-height: auto;
    gap: 20px;
    padding: 10px 18px !important;
  }

  main > section:first-child h1,
  main > section:first-child h2 {
    text-align: center !important;
  }

  main > section:first-child h1 {
    font-size: 1.65rem !important;
    line-height: 1.12 !important;
    letter-spacing: -0.03em;
  }

  main > section:first-child h2 {
    font-size: 1.05rem !important;
    line-height: 1.45 !important;
  }

  main > section:first-child ul {
    display: none !important;
  }

  main > section:first-child p:first-child {
    margin-bottom: 10px;
    font-size: 0.68rem;
  }

  main > section:first-child ul {
    margin: 16px auto 0;
    max-width: 330px;
    font-size: 0.92rem;
    line-height: 1.45;
  }

  #start-form {
    max-width: none;
    justify-self: stretch;
    padding: 18px !important;
  }

  #start-form .start-form-head {
  margin: -18px -18px 20px;
  padding: 11px 18px;
  }

  #start-form h3 {
  font-size: 1.35rem;
  }

  #start-form p {
    font-size: 0.9rem;
    line-height: 1.45;
  }

  #start-form select {
    height: 52px;
    font-size: 1rem;
  }

  #start-form button {
    height: 56px;
    font-size: 1rem;
  }

  main > section:not(:first-child) {
    padding-top: 38px !important;
    padding-bottom: 38px !important;
  }

  main > section:nth-child(2) p:first-child {
    font-size: 1.25rem !important;
  }

  main > section:nth-child(3) h2,
  main > section:nth-child(4) h2,
  main > section:nth-child(5) h2,
  main > section:nth-child(6) h2 {
    font-size: 1.65rem !important;
    line-height: 1.2;
  }

  main > section:nth-child(4) > div > div {
    padding: 18px;
  }
}

@media (min-width: 768px) {
  main > section:first-child > div > div:first-child {
    padding-top: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
