/* Shared closing panel + footer for the public marketing pages
   (landing, for-clinicians, for-organisations). Each page keeps its own
   inline styles for everything above the closing panel. */

:root {
  --brand-teal: #0F766E;
}

/* Closing call to action — a contained panel in the logo's teal
   (deepened from #009687 so white text clears WCAG AA), sized to its
   content rather than a full-viewport slab. */
.closing {
  padding: 2rem 2rem 5rem;
  background: #fff;
}

.closing-panel {
  max-width: 1200px;
  margin: 0 auto;
  background: var(--brand-teal);
  color: #fff;
  border-radius: 1.5rem;
  padding: 4rem 4.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3rem;
  align-items: end;
  text-align: left;
}

.closing h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: #fff;
  max-width: 18ch;
  margin: 0 0 1.25rem;
}

.closing p {
  font-size: 1.125rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
  max-width: 34rem;
  margin: 0;
}

.closing-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}

.btn-white {
  background: #fff;
  color: var(--brand-teal);
  font-weight: 600;
}

.btn-white:hover {
  background: #ecfdf8;
}

.closing-link {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color 0.2s;
}

.closing-link:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Footer */
.site-footer {
  background: #fff;
  color: #4A5568;
  padding: 0 2rem 2.5rem;
}

/* The top rule sits on the content column, not the viewport, so it
   lines up with the panel and the footer's own bottom rule. */
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 3.5rem;
  border-top: 1px solid #e5ebe9;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3rem;
  padding-bottom: 2.5rem;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #1A202C;
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.footer-logo img {
  width: 22px;
  height: 22px;
  border-radius: 5px;
}

.footer-brand p {
  margin: 0.75rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  max-width: 22rem;
}

.footer-links {
  display: flex;
  gap: 4.5rem;
}

.footer-col h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1A202C;
  margin: 0 0 0.875rem;
}

.footer-col a {
  display: block;
  color: #4A5568;
  text-decoration: none;
  font-size: 0.9375rem;
  margin-bottom: 0.625rem;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--brand-teal);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 3rem;
  padding-top: 1.75rem;
  border-top: 1px solid #e5ebe9;
  font-size: 0.8125rem;
  line-height: 1.6;
}

.footer-disclaimer {
  max-width: 44rem;
  margin: 0;
}

.footer-copy {
  white-space: nowrap;
}

@media (max-width: 768px) {
  .closing {
    padding: 1rem 1.25rem 4rem;
  }

  .closing-panel {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2.5rem 1.75rem;
    border-radius: 1.25rem;
  }

  .closing p {
    font-size: 1rem;
  }

  .closing-actions {
    align-items: stretch;
    gap: 1rem;
  }

  .closing-actions .btn {
    margin: 0;
    text-align: center;
  }

  .closing-link {
    text-align: center;
  }

  .site-footer {
    padding: 0 1.5rem 2rem;
  }

  .footer-inner {
    padding-top: 3rem;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-links {
    gap: 2rem 3rem;
    flex-wrap: wrap;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .closing h2 {
    font-size: 1.625rem;
  }
}
