:root {
  --surf-ink: #211821;
  --surf-rose: #f2a9be;
  --surf-lilac: #ead2f8;
  --surf-lime: #e6fa85;
  --surf-paper: #fff8ef;
  --surf-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --surf-brand-wash: linear-gradient(95deg, rgb(230 132 153 / 91%), rgb(238 188 222 / 90%) 52%, rgb(235 196 251 / 91%));
  --surf-brand-edge: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 100' preserveAspectRatio='none'%3E%3Cpath d='M0 0H1200V84C1082 100 999 87 872 90S678 84 558 91 338 89 214 95 63 95 0 99Z'/%3E%3C/svg%3E");
  --surf-nav-height: 74px;
  --surf-nav-overhang: 12px;
}

:is(.site-nav, .surf-header-compact) {
  --surf-nav-wash: var(--surf-brand-wash);
  color: var(--surf-ink);
  background: transparent;
  border-bottom: 0;
  backdrop-filter: none;
  isolation: isolate;
}

:is(.site-nav, .surf-header-compact)::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 calc(-1 * var(--surf-nav-overhang));
  background: var(--surf-nav-wash);
  mask: var(--surf-brand-edge) center / 100% 100% no-repeat;
  pointer-events: none;
}

:where(.surf-header-compact) { position: relative; }

.site-nav {
  height: var(--surf-nav-height);
  min-height: 0;
  padding-inline: clamp(18px, 4%, 64px);
  z-index: 1000;
}

.site-nav.nav-hidden:not(:focus-within) { transform: translateY(calc(-100% - var(--surf-nav-overhang))); }
.site-nav .brand { gap: 0; }
.site-nav .brand img { display: block; width: 110px; }
.site-nav .brand span { display: none; }

.site-nav .nav-links {
  justify-content: center;
  gap: clamp(0.75rem, 1.55vw, 1.85rem);
  font-family: var(--surf-display);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.3;
}

.site-nav .nav-links a {
  color: var(--surf-ink);
  text-underline-offset: 0.3em;
}

.site-nav .nav-links a:hover,
.site-nav .nav-links a[aria-current="page"] { text-decoration: underline; }
.pricing-guide-link { color: inherit; text-decoration: underline; text-underline-offset: 0.2em; }
.site-nav .nav-socials a { border-color: rgb(33 24 33 / 28%); }
.site-nav .nav-socials img { filter: brightness(0); }

:is(.site-footer, .policy-footer) {
  position: relative;
  isolation: isolate;
  color: var(--surf-ink);
  background: transparent;
  border-top: 0;
}

:is(.site-footer, .policy-footer)::before {
  --surf-footer-edge: 3.5rem;
  content: "";
  position: absolute;
  z-index: -1;
  inset: -12px 0 0;
  background: var(--surf-brand-wash);
  mask: linear-gradient(black, black) top / 100% max(0px, calc(100% - var(--surf-footer-edge) + 1px)) no-repeat,
    var(--surf-brand-edge) bottom / 100% var(--surf-footer-edge) no-repeat;
  transform: scaleY(-1);
  pointer-events: none;
}

.site-footer .footer-columns {
  width: min(100%, 1200px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.site-footer .footer-business img,
.site-footer .footer-socials a img { filter: brightness(0); }
.site-footer .footer-socials a { border-color: rgb(33 24 33 / 35%); }
.site-footer .footer-columns .footer-links a,
.site-footer .footer-business p,
.site-footer .footer-contact p,
.site-footer .footer-secure { color: var(--surf-ink); }
.site-footer .footer-columns .footer-links { text-transform: none; letter-spacing: 0; }
.site-footer .footer-links a:hover { text-decoration: underline; }

.button-link,
button#shareDesignButton.button-3,
.save-dialog-actions button[type="submit"] {
  background: var(--surf-lime);
  border-color: var(--surf-ink);
  color: var(--surf-ink);
}

.site-nav a:focus-visible,
.surf-header-compact a:focus-visible,
.site-footer a:focus-visible { outline: 2px solid var(--surf-ink); outline-offset: 4px; }
.site-nav:focus-within { transform: none; }

@media (max-width: 820px) {
  :root { --surf-nav-height: 64px; --surf-nav-overhang: 8px; }
  .site-nav { padding-block: 10px; }
  .site-nav .brand img { width: 95px; }
  .site-nav .nav-links { justify-content: start; gap: 1rem; font-size: 1rem; }
  .site-nav .menu-toggle {
    display: block;
    position: absolute;
    inset-block-start: 10px;
    inset-inline-end: 18px;
    width: 44px;
    height: 44px;
    opacity: 0;
  }
  .site-nav .menu-toggle:focus-visible + .menu-button { outline: 2px solid var(--surf-ink); }
  .site-nav:has(.menu-toggle:checked) {
    --surf-nav-wash: linear-gradient(90deg, var(--surf-rose), var(--surf-lilac));
  }
  .site-nav:has(.menu-toggle:checked)::before { inset-block-end: 0; mask: none; }
  .site-nav .nav-menu {
    position: absolute;
    inset: 100% 0 auto;
    grid-area: auto;
    width: auto;
    max-height: calc(100dvh - var(--surf-nav-height));
    overflow: auto;
    padding: 1rem 18px 1.5rem;
    background: var(--surf-nav-wash);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .site-nav, .site-nav .menu-button span { transition: none; }
}

@media (max-width: 700px) {
  .site-footer .footer-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer .footer-business img { max-width: 100%; }
}
