/* SafariClose public marketing footer */

.site-footer {
  background: var(--forest-900);
  color: var(--forest-100);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.site-footer-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 3rem 1.25rem 2rem;
}

.site-footer-grid {
  display: grid;
  gap: 2rem 2.5rem;
}

@media (min-width: 900px) {
  .site-footer-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1.2fr) minmax(0, 0.95fr);
    align-items: start;
  }
}

.site-footer-brand {
  max-width: 26rem;
}

.site-footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
  text-decoration: none;
  margin-bottom: 1rem;
  padding: 0.55rem 0.75rem;
  border-radius: 0.75rem;
  background: rgba(253, 251, 247, 0.97);
  box-shadow: 0 12px 28px -20px rgba(0, 0, 0, 0.55);
}

.site-footer-logo:hover {
  text-decoration: none;
  color: var(--ochre-300);
}

.site-footer-logo .brand-logo-wordmark {
  width: 190px;
  max-width: min(70vw, 190px);
}

.site-footer-logo strong {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.site-footer-desc {
  margin: 0 0 1.25rem;
  font-size: 0.8125rem;
  line-height: 1.65;
  color: rgba(214, 231, 220, 0.82);
}

.site-footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.site-footer-social-link {
  display: inline-flex;
  width: 2.25rem;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--forest-100);
  background: rgba(255, 255, 255, 0.03);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.site-footer-social-link svg {
  width: 1rem;
  height: 1rem;
}

.site-footer-social-link:hover {
  color: var(--ochre-300);
  border-color: rgba(232, 194, 107, 0.35);
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
}

.site-footer-social-link:focus-visible {
  outline: 2px solid var(--ochre-300);
  outline-offset: 2px;
}

.site-footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 2rem;
}

@media (min-width: 640px) {
  .site-footer-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.site-footer-heading {
  margin: 0 0 0.75rem;
  font-family: var(--font);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(214, 231, 220, 0.55);
}

.site-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.site-footer-links a {
  color: rgba(240, 247, 242, 0.88);
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
}

.site-footer-links a:hover {
  color: var(--ochre-300);
  text-decoration: none;
}

.site-footer-links a:focus-visible {
  outline: 2px solid var(--ochre-300);
  outline-offset: 2px;
  border-radius: 0.25rem;
}

.site-footer-subscribe {
  max-width: 20rem;
}

.site-footer-subcopy {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: rgba(214, 231, 220, 0.78);
}

.site-footer-form {
  display: grid;
  gap: 0.65rem;
}

.site-footer-field input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
  padding: 0.65rem 0.8rem;
  font-size: 0.875rem;
}

.site-footer-field input::placeholder {
  color: rgba(214, 231, 220, 0.45);
}

.site-footer-field input:focus {
  outline: none;
  border-color: rgba(232, 194, 107, 0.45);
  box-shadow: 0 0 0 3px rgba(232, 194, 107, 0.12);
}

.site-footer-submit {
  border: 0;
  border-radius: 0.65rem;
  padding: 0.7rem 1rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--forest-900);
  background: linear-gradient(180deg, var(--ochre-300), var(--ochre-400));
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.15s ease;
}

.site-footer-submit:hover {
  filter: brightness(1.03);
}

.site-footer-submit:focus-visible {
  outline: 2px solid var(--ochre-300);
  outline-offset: 2px;
}

.site-footer-submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

.site-footer-form-msg {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.5;
}

.site-footer-form-msg.is-success {
  color: #b8e6c8;
}

.site-footer-form-msg.is-error {
  color: #f5c4b8;
}

.site-footer-bottom {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .site-footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.site-footer-copy {
  margin: 0;
  font-size: 0.75rem;
  color: rgba(214, 231, 220, 0.55);
}

.site-footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-footer-bottom-links a {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(214, 231, 220, 0.65);
  text-decoration: none;
}

.site-footer-bottom-links a:hover {
  color: var(--ochre-300);
}

.site-footer-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.public-page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.public-page > main {
  flex: 1 1 auto;
  min-height: 0;
}

/* auth-shell defaults to 100dvh, which pushes the footer an entire screen below the fold */
.public-page > .auth-shell {
  min-height: auto;
}

.public-page > .site-footer {
  flex-shrink: 0;
  margin-top: auto;
}

/* Legal + pricing public pages */
.public-content {
  max-width: 42rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
}

.public-content h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin-bottom: 0.75rem;
}

.public-content .lede {
  color: var(--sand-600);
  margin-bottom: 2rem;
}

.public-content h2 {
  font-size: 1.125rem;
  margin: 2rem 0 0.75rem;
}

.public-content p,
.public-content li {
  color: var(--sand-700);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.public-content ul {
  padding-left: 1.2rem;
}

.public-topbar {
  border-bottom: 1px solid var(--sand-200);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
}

.public-topbar-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.public-topbar .brand strong {
  color: var(--forest-800);
}

.pricing-grid {
  max-width: 72rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 1rem;
  display: grid;
  gap: 1rem;
}

@media (min-width: 900px) {
  .pricing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.pricing-card {
  border: 1px solid var(--sand-200);
  border-radius: var(--radius);
  background: var(--white);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.pricing-card.is-popular {
  border-color: var(--forest-300);
  box-shadow: 0 0 0 1px rgba(47, 111, 79, 0.08), var(--shadow);
}

.pricing-card h2 {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
}

.pricing-card .price {
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 650;
  color: var(--forest-800);
  margin: 0.75rem 0;
}

.pricing-card .tagline {
  color: var(--sand-600);
  font-size: 0.875rem;
  line-height: 1.55;
  min-height: 2.75rem;
}

.pricing-card .cta {
  display: inline-flex;
  margin-top: 1rem;
  padding: 0.65rem 1rem;
  border-radius: 0.65rem;
  background: var(--forest-700);
  color: var(--white);
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none;
}

.pricing-card .cta:hover {
  background: var(--forest-800);
  text-decoration: none;
}

.pricing-intro {
  max-width: 42rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 0;
  text-align: center;
}

.pricing-intro h1 {
  margin-bottom: 0.75rem;
}

.pricing-intro p {
  color: var(--sand-600);
}
