/* Skip link, focus, scroll reveal, trust strip, comparison, sticky CTA, back-to-top */

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -100px;
  z-index: 10000;
  padding: 0.65rem 1rem;
  background: var(--accent, #e8a54b);
  color: var(--bg-deep, #0a0a0c);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 0.35rem;
  text-decoration: none;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 0.75rem;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible + label.nav-burger {
  outline: 2px solid var(--accent, #e8a54b);
  outline-offset: 3px;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.trust-strip {
  padding: 1.25rem clamp(1rem, 4vw, 2rem);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(232, 165, 75, 0.04), transparent);
}

.trust-strip__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: center;
  align-items: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.78);
}

.trust-strip__list li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.trust-strip__icon {
  font-size: 1.1rem;
  filter: grayscale(0.2);
}

.compare-section {
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 4vw, 2rem);
  max-width: 52rem;
  margin: 0 auto;
}

.compare-section h2 {
  text-align: center;
  margin-bottom: 0.5rem;
}

.compare-section .section-lead {
  text-align: center;
  margin-bottom: 2rem;
}

.compare-table {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
}

.compare-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  align-items: stretch;
  font-size: 0.92rem;
}

.compare-row > div {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.compare-row--head {
  font-weight: 600;
  background: rgba(232, 165, 75, 0.08);
  color: rgba(255, 255, 255, 0.95);
}

.compare-row--head > div {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.compare-row:last-child > div {
  border-bottom: none;
}

.compare-col--hoofy {
  color: var(--accent, #e8a54b);
  font-weight: 500;
}

@media (max-width: 640px) {
  .compare-row--head {
    display: none;
  }

  .compare-row:not(.compare-row--head) {
    display: block;
    padding: 1rem;
    margin-bottom: 0.5rem;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
  }

  .compare-row:not(.compare-row--head) > div {
    border: none;
    padding: 0.4rem 0;
  }

  .compare-row:not(.compare-row--head) > div:nth-child(1) {
    font-weight: 600;
    margin-bottom: 0.35rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .compare-row:not(.compare-row--head) > div:nth-child(2)::before {
    content: "Hoofy: ";
    color: var(--accent, #e8a54b);
    font-weight: 600;
  }

  .compare-row:not(.compare-row--head) > div:nth-child(3)::before {
    content: "Typical stack: ";
    color: rgba(255, 255, 255, 0.45);
    font-weight: 600;
  }
}

.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, transparent, rgba(10, 10, 12, 0.95) 30%);
  transform: translateY(110%);
  transition: transform 0.35s ease;
  pointer-events: none;
}

.sticky-cta.sticky-cta--visible {
  transform: translateY(0);
  pointer-events: auto;
}

.sticky-cta .btn {
  width: 100%;
  max-width: 28rem;
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

@media (min-width: 900px) {
  .sticky-cta {
    display: none;
  }
}

.back-to-top {
  position: fixed;
  bottom: calc(5.5rem + env(safe-area-inset-bottom));
  right: 1rem;
  z-index: 190;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(10, 10, 12, 0.85);
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.2s ease;
  backdrop-filter: blur(8px);
}

.back-to-top:hover {
  background: rgba(232, 165, 75, 0.15);
  border-color: rgba(232, 165, 75, 0.4);
}

.back-to-top.back-to-top--visible {
  opacity: 1;
  visibility: visible;
}

@media (min-width: 900px) {
  .back-to-top {
    bottom: calc(1.25rem + env(safe-area-inset-bottom));
  }
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 1rem;
}

.footer-social a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
}

.footer-social a:hover {
  color: var(--accent, #e8a54b);
}

.site-footer .footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  align-items: baseline;
  text-align: left;
  width: 100%;
  box-sizing: border-box;
}

.footer-updated {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
}

/* Legal pages — tie web policy to the iPhone app */
.legal-app-banner {
  padding: 1rem 1.25rem;
  margin-bottom: 1.75rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(232, 165, 75, 0.28);
  background: rgba(232, 165, 75, 0.07);
  font-size: 0.95rem;
  line-height: 1.5;
}

.legal-app-banner p {
  margin: 0;
}

.legal-app-banner p + p {
  margin-top: 0.65rem;
}

.legal-app-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  margin-top: 0.85rem;
  align-items: center;
}
