/* Shared footer, navigation and audit form for every page. */
.unified-footer,
.nav-overlay,
.audit-popup {
  --display-font: Unbounded, Arial, sans-serif;
  --body-font: "Inter Tight", Arial, sans-serif;
  --accent: #bdcbf7;
  font-family: var(--body-font);
  color: #fff;
}

.unified-footer a,
.nav-overlay a,
.audit-popup a {
  color: inherit;
  text-decoration: none;
}

.unified-footer {
  margin-top: clamp(42px, 8vw, 100px);
  border-top: 1px solid #363636;
  background: #080808;
}

.unified-footer-inner,
.nav-overlay-inner {
  width: min(100%, 1280px);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 56px);
}

.unified-footer-main {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: clamp(20px, 5vw, 48px);
  padding-block: clamp(30px, 6vw, 76px);
}

.footer-name {
  display: inline-block;
  width: fit-content;
  font: 650 clamp(2rem, 5.2vw, 5rem)/.9 var(--display-font);
  letter-spacing: -.065em;
}

.footer-name span { color: #999; }

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  column-gap: clamp(16px, 3vw, 48px);
}

.footer-nav a,
.unified-footer-bottom a {
  display: inline-flex;
  min-height: 44px;
  gap: .45em;
  align-items: center;
  text-underline-offset: .3em;
}

.footer-audit,
.nav-overlay-audit {
  width: max-content;
  max-width: 100%;
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid #696969;
  border-radius: 99px;
  font: 550 1rem/1.2 var(--body-font);
  text-align: left;
  color: #fff;
  background: transparent;
  cursor: pointer;
  transition: border-color .2s, background .2s, color .2s;
}

.footer-audit span { margin-inline-start: .5em; }

.unified-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 65px;
  border-top: 1px solid #363636;
  font-size: .875rem;
  color: #b5b5b5;
}

.nav-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 0;
  background: #080808;
}

.nav-overlay::backdrop { background: transparent; }
html:has(.nav-overlay[open]) { scrollbar-gutter: stable; }
body:has(.nav-overlay[open]) { overflow: hidden; }

.nav-overlay-inner {
  min-height: 100%;
  padding-top: clamp(12px, 3vw, 36px);
  padding-bottom: clamp(24px, 5vw, 60px);
}

.nav-overlay-head,
.audit-popup-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-overlay-head {
  margin-bottom: clamp(18px, 4vw, 56px);
}

.nav-overlay-head h2,
.audit-popup-label {
  margin: 0;
  color: #ccc;
  font: 460 .78rem/1 var(--display-font);
  letter-spacing: .035em;
  text-transform: uppercase;
}

.overlay-close {
  display: grid;
  place-items: center;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  padding: 0 0 3px;
  border: 1px solid #64646a;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font: 300 1.8rem/1 var(--body-font);
  cursor: pointer;
  transition: color .2s, background .2s, border-color .2s;
}

.nav-overlay-links {
  display: grid;
  margin-bottom: clamp(18px, 4vw, 50px);
  border-top: 1px solid #38383c;
}

.nav-overlay-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .35em;
  min-height: 52px;
  padding-block: .25em;
  border-bottom: 1px solid #38383c;
  font: 300 clamp(1.38rem, 5.7vw, 5.3rem)/1.15 var(--display-font);
  letter-spacing: -.06em;
  transition: color .2s;
}

.nav-overlay-links a::after {
  content: "↗" / "";
  flex: none;
  color: var(--accent);
  font: 450 clamp(1.15rem, 3.1vw, 3rem)/1 var(--body-font);
}

.nav-overlay-links a[aria-current="page"] { color: var(--accent); }

.final-card > :only-child { grid-column: 1 / -1; }

.audit-popup {
  --accent: #fff;
  --audit-padding: clamp(17px, 4.5vw, 36px);
  width: min(calc(100% - 22px), 590px);
  max-width: none;
  max-height: calc(100% - 22px);
  max-height: calc(100dvh - 22px);
  padding: var(--audit-padding);
  border: 1px solid #585858;
  border-radius: 20px;
  background: #080808;
  color-scheme: dark;
  overflow: auto;
  overscroll-behavior: contain;
}

.audit-popup::backdrop {
  background: #000b;
  backdrop-filter: blur(5px);
}

.audit-popup-top { align-items: center; }

.audit-popup-label {
  color: #b9b9b9;
  font-weight: 400;
  letter-spacing: 0;
}

.audit-popup .overlay-close { border-color: #666; }

.audit-popup h2 {
  margin: clamp(16px, 4vw, 28px) 0 0;
  font: 650 clamp(1.32rem, 5.1vw, 2.6rem)/.98 var(--display-font);
  letter-spacing: -.056em;
  text-transform: uppercase;
}

.audit-popup h2 span { display: block; color: #aaa; }

.audit-popup-intro p {
  margin: 15px 0 0;
  font: 400 clamp(1rem, 2vw, 1.125rem)/1.35 var(--body-font);
  color: #c3c3c3;
}

#audit-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 12px;
  margin-top: clamp(18px, 4vw, 26px);
  padding-top: clamp(18px, 3vw, 23px);
  border-top: 1px solid #393939;
  color: #fff;
}

.audit-field {
  display: grid;
  gap: 7px;
  min-width: 0;
  font: 500 .94rem/1.2 var(--body-font);
}

.audit-field input {
  width: 100%;
  min-width: 0;
  min-height: 49px;
  padding: 11px 13px;
  border: 1px solid #666;
  border-radius: 12px;
  color: #fff;
  background: #080808;
  font: 400 1rem/1.2 var(--body-font);
}

.audit-field input::placeholder { color: #a1a1a1; opacity: 1; }

#audit-form :focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.audit-consent,
.audit-submit,
#audit-form #form-status { grid-column: 1 / -1; }

.audit-consent:not([hidden]) {
  display: flex;
  align-items: start;
  gap: 9px;
  font-size: .875rem;
  line-height: 1.4;
}

.audit-consent input { margin: .2em 0 0; }
.audit-popup .audit-consent a { text-decoration: underline; }

.audit-submit {
  position: relative;
  min-height: 50px;
  padding: 11px 40px;
  border: 1px solid #fff;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font: 650 .96rem/1.2 var(--body-font);
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .2s, color .2s;
}

.audit-submit span {
  position: absolute;
  inset-inline-end: 15px;
  top: 50%;
  translate: 0 -50%;
}

.audit-submit:disabled {
  border-color: #727272;
  color: #c7c7c7;
  opacity: 1;
  cursor: default;
}

#audit-form #form-status { margin: 0; font-size: .9rem; }
#audit-form #form-status:empty { display: none; }

@media (max-width: 480px) {
  #audit-form { grid-template-columns: minmax(0, 1fr); gap: 13px; }
}

.unified-footer :focus-visible,
.nav-overlay :focus-visible,
.audit-popup :focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

@media (hover: hover) {
  .footer-nav a:hover, .unified-footer-bottom a:hover { text-decoration: underline; }
  .nav-overlay-links a:hover { color: var(--accent); }
  .footer-audit:hover, .nav-overlay-audit:hover, .overlay-close:hover {
    border-color: var(--accent);
    background: var(--accent);
    color: #10121a;
  }
  .audit-submit:hover:not(:disabled) { background: #fff; color: #080808; }
}

@media (max-width: 680px) {
  .unified-footer-main { grid-template-columns: 1fr; }
  .footer-name { font-size: clamp(2.2rem, 10vw, 4rem); }
  .nav-overlay-links a {
    min-height: 58px;
    font-size: clamp(1.5rem, 7vw, 2.7rem);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .nav-overlay[open] .nav-overlay-links a {
    animation: overlay-copy-in .44s cubic-bezier(.2,.72,.3,1) both;
    animation-delay: calc(.12s + var(--order, 0) * .045s);
  }

  .nav-overlay-links a:nth-child(2) { --order: 1; }
  .nav-overlay-links a:nth-child(3) { --order: 2; }
  .nav-overlay-links a:nth-child(4) { --order: 3; }
  .nav-overlay-links a:nth-child(5) { --order: 4; }
  .nav-overlay-links a:nth-child(6) { --order: 5; }

  .audit-popup[open] { animation: overlay-copy-in .25s cubic-bezier(.2,.72,.3,1) both; }

  .scroll-reveal-pending {
    opacity: 0;
    translate: 0 4px;
  }

  .scroll-reveal-enter {
    animation: scroll-reveal .7s cubic-bezier(.25,.6,.35,1);
  }

  @keyframes scroll-reveal {
    from { opacity: 0; translate: 0 4px; }
  }

  .hero-copy h1,
  .hero-copy .hero-description,
  .phone-intro h1,
  .phone-intro h1 + p,
  .phone-cases-intro h1,
  .phone-cases-intro h1 + p {
    animation: text-enter .62s cubic-bezier(.2,.72,.3,1) both;
  }

  .hero-copy .hero-description,
  .phone-intro h1 + p,
  .phone-cases-intro h1 + p { animation-delay: .095s; }

  @keyframes overlay-copy-in {
    from { opacity: 0; translate: 0 14px; }
    to { opacity: 1; translate: 0 0; }
  }

  @keyframes text-enter {
    from { opacity: .15; translate: 0 8px; }
    to { opacity: 1; translate: 0 0; }
  }
}

.hero-copy > .button[data-audit],
.phone-intro .item-0-7[data-audit],
.phone-cases-intro .case-item-0-7[data-audit] {
  background: #fff;
  color: #080808;
}

@media (hover: hover) {
  .hero-copy > .button[data-audit]:hover,
  .phone-intro .item-0-7[data-audit]:hover,
  .phone-cases-intro .case-item-0-7[data-audit]:hover { background: #bdcbf7; border-color: #bdcbf7; }
}


#audit-form[hidden],
.audit-popup-intro[hidden] { display: none; }

.hero-header-space { min-height: 44px; }

html:has(.site-header) {
  scroll-padding-top: var(--site-anchor-offset, calc(80px + var(--wp-admin--admin-bar--height, 0px)));
}

.site-header {
  position: fixed;
  inset: calc(12px + var(--wp-admin--admin-bar--height, 0px)) 0 auto;
  z-index: 20;
  pointer-events: none;
  color: #fff;
}

.site-header-row {
  position: relative;
  isolation: isolate;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  pointer-events: auto;
}

.site-header-row::before {
  content: "";
  position: absolute;
  inset: 0 -12px;
  z-index: -1;
  border: 1px solid transparent;
  border-radius: 12px;
}

.site-header--scrolled .site-header-row::before {
  background: rgba(15, 17, 21, .94);
  border-color: #ffffff29;
  backdrop-filter: blur(14px);
}

.site-header-brand {
  display: grid;
  gap: 5px;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  font-family: Unbounded, Arial, sans-serif;
  line-height: 1;
}

.site-header-brand strong { font-size: 19px; font-weight: 650; letter-spacing: -.035em; }
.site-header-brand span { font-size: 11px; color: #d3d5d9; }
.site-header-brand i { padding-inline: 2px; font-style: normal; }

.site-header-actions { display: flex; align-items: center; flex: none; gap: 9px; }

.site-header-audit,
.site-header-menu {
  border-radius: 999px;
  min-height: 40px;
  padding: 5px 16px;
  font: 675 15px/1.05 "Inter Tight", Arial, sans-serif;
  white-space: nowrap;
  cursor: pointer;
}

.site-header-audit { border: 1px solid #fff; background: #fff; color: #0c0d0e; }
.site-header-menu { min-width: 78px; border: 1px solid #ffffffdd; background: transparent; color: #fff; text-transform: uppercase; }

.site-header :focus-visible { outline: 2px solid #bdcbf7; outline-offset: 3px; }

@media (hover: hover) {
  .site-header-audit:hover { background: #bdcbf7; border-color: #bdcbf7; }
  .site-header-menu:hover { background: #fff; color: #080808; }
}

@media (max-width: 639px) {
  .site-header { top: calc(7px + var(--wp-admin--admin-bar--height, 0px)); }
  .site-header .site-header-shell { width: auto; margin-inline: 10px; padding-inline: 7px; }
  .site-header-row { min-height: 49px; }
  .site-header-row::before { inset-inline: -7px; border-radius: 11px; }
  .site-header-brand { gap: 4px; }
  .site-header-brand strong { font-size: clamp(11px, 4vw, 17px); }
  .site-header-brand span { font-size: clamp(7px, 2.47vw, 10px); }
  .site-header-actions { gap: clamp(4px, 1.55vw, 8px); }
  .site-header-audit, .site-header-menu { min-width: 0; min-height: 34px; padding-inline: clamp(7px, 2.55vw, 11px); font-size: clamp(10px, 3.08vw, 13px); }
  .nav-overlay-inner { padding-inline: 14px; }
}

@media (max-width: 600px) {
  .site-header { top: 7px; }
}

@media (max-width: 359px) {
  .site-header-row { gap: 6px; }
  .site-header-audit, .site-header-menu { padding-inline: 7px; }
}
