/* Shared Above the Shoulders brand polish layer. */

html {
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  text-rendering: optimizeLegibility;
}

a,
button,
[role="button"] {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
}

nav {
  isolation: isolate;
  max-width: 100vw;
}

.nav-logo {
  white-space: nowrap;
  min-width: 0;
}

.nav-links a,
.mobile-menu a,
.footer-links a {
  text-underline-offset: 4px;
}

.nav-links a.active,
.mobile-menu a.active {
  color: var(--yellow);
  font-weight: 700;
}

nav.solid .nav-links a.active,
nav.solid + .mobile-menu a.active {
  color: var(--navy);
}

.nav-cta,
.btn-yellow,
.btn-navy,
.btn-outline,
.btn-ghost-white,
.btn-ghost-dark {
  min-height: 46px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  line-height: 1.1;
  white-space: nowrap;
}

.nav-hamburger {
  width: 44px !important;
  height: 44px !important;
  flex-shrink: 0;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: 999px;
  background: rgba(10,18,38,0.2);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.nav-hamburger:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-1px);
}

nav.solid .nav-hamburger {
  border-color: rgba(26,39,68,0.16);
  background: rgba(26,39,68,0.04);
}

.nav-hamburger.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.nav-hamburger span {
  transform-origin: center;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease), background 0.4s;
}

.mobile-menu {
  border-top: 1px solid rgba(26,39,68,0.05);
}

.mobile-menu .btn-navy,
.mobile-menu .btn-yellow {
  width: 100%;
  min-height: 48px;
}

.footer-inner {
  align-items: center !important;
}

.footer-logo {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.footer-links {
  max-width: 720px;
  align-items: center;
}

.footer-links a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  line-height: 1.1;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 999px;
  color: rgba(255,255,255,0.52);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}

.footer-social a:hover {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--navy);
  transform: translateY(-2px);
}

.footer-social a::before {
  content: "";
  width: 17px;
  height: 17px;
  background: currentColor;
  -webkit-mask: var(--social-icon) center / contain no-repeat;
  mask: var(--social-icon) center / contain no-repeat;
}

.footer-social a[aria-label="Instagram"] {
  --social-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M7.5 0h9A7.5 7.5 0 0 1 24 7.5v9A7.5 7.5 0 0 1 16.5 24h-9A7.5 7.5 0 0 1 0 16.5v-9A7.5 7.5 0 0 1 7.5 0Zm0 2A5.5 5.5 0 0 0 2 7.5v9A5.5 5.5 0 0 0 7.5 22h9a5.5 5.5 0 0 0 5.5-5.5v-9A5.5 5.5 0 0 0 16.5 2h-9ZM12 6a6 6 0 1 1 0 12 6 6 0 0 1 0-12Zm0 2a4 4 0 1 0 0 8 4 4 0 0 0 0-8Zm6.25-2.25a1.25 1.25 0 1 1 0 2.5 1.25 1.25 0 0 1 0-2.5Z'/%3E%3C/svg%3E");
}

.footer-social a[aria-label="TikTok"] {
  --social-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12.525.02c1.31-.02 2.61-.01 3.91-.02.08 1.53.63 3.09 1.75 4.17 1.12 1.11 2.7 1.62 4.24 1.79v4.03c-1.44-.05-2.89-.35-4.2-.97-.57-.26-1.1-.59-1.62-.93-.01 2.92.01 5.84-.02 8.75-.08 1.4-.54 2.79-1.35 3.94-1.31 1.92-3.58 3.17-5.91 3.21-1.43.08-2.86-.31-4.08-1.03-2.02-1.19-3.44-3.37-3.65-5.71-.02-.5-.03-1-.01-1.49.18-1.9 1.12-3.72 2.58-4.96 1.66-1.44 3.98-2.13 6.15-1.72.02 1.48-.04 2.96-.04 4.44-.99-.32-2.15-.23-3.02.37-.63.41-1.11 1.04-1.36 1.75-.21.51-.15 1.07-.14 1.61.24 1.64 1.82 3.02 3.5 2.87 1.12-.01 2.19-.66 2.77-1.61.19-.33.4-.67.41-1.06.1-1.79.06-3.57.07-5.36.01-4.03-.01-8.05.02-12.07Z'/%3E%3C/svg%3E");
}

.footer-social a[aria-label="YouTube"] {
  --social-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814ZM9.545 15.568V8.432L15.818 12l-6.273 3.568Z'/%3E%3C/svg%3E");
}

.footer-social svg {
  width: 17px;
  height: 17px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-social .social-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.footer-copy {
  line-height: 1.6;
}

@media (min-width: 769px) {
  .footer-inner {
    display: grid !important;
    grid-template-columns: auto auto minmax(0, 1fr);
    column-gap: clamp(1.5rem,4vw,3rem) !important;
    row-gap: 1.5rem !important;
  }

  .footer-social {
    justify-self: start;
  }

  .footer-links {
    justify-self: end;
    justify-content: flex-end;
  }

  .footer-copy {
    grid-column: 1 / -1;
  }
}

[id] {
  scroll-margin-top: 82px;
}

#hero {
  padding: 0 !important;
}

.speaking-page .hero-overlay {
  background:
    linear-gradient(90deg, rgba(10,18,38,0.94) 0%, rgba(10,18,38,0.78) 38%, rgba(10,18,38,0.42) 66%, rgba(10,18,38,0.78) 100%),
    linear-gradient(to bottom, rgba(10,18,38,0.38) 0%, rgba(10,18,38,0.18) 28%, rgba(10,18,38,0.7) 72%, rgba(10,18,38,0.96) 100%) !important;
}

.app-page .hero-bg {
  background-position: center 54% !important;
}

.app-page .hero-overlay {
  background:
    linear-gradient(90deg, rgba(10,18,38,0.96) 0%, rgba(10,18,38,0.86) 42%, rgba(10,18,38,0.66) 64%, rgba(10,18,38,0.92) 100%),
    linear-gradient(to bottom, rgba(10,18,38,0.42) 0%, rgba(10,18,38,0.2) 30%, rgba(10,18,38,0.75) 68%, rgba(10,18,38,0.98) 100%) !important;
}

.app-page .dark-break {
  background-image: url("/images/ats-app-reset-lake.jpg") !important;
  background-position: center 58% !important;
  background-attachment: scroll !important;
  background-color: var(--navy-deep);
}

.app-page .dark-break::before {
  background:
    linear-gradient(90deg, rgba(10,18,38,0.86) 0%, rgba(10,18,38,0.62) 48%, rgba(10,18,38,0.78) 100%),
    linear-gradient(to bottom, rgba(10,18,38,0.18) 0%, rgba(10,18,38,0.5) 54%, rgba(10,18,38,0.82) 100%) !important;
}

.parallax-break,
.tagline-break,
.book-cta-break,
.contact-cta-break {
  background-image: url("/images/ats-contact-mountain-cta.jpg") !important;
  background-position: center 47% !important;
  background-attachment: scroll !important;
  background-color: var(--navy-deep);
}

.parallax-overlay,
.tagline-break-overlay,
.book-cta-break .parallax-overlay,
.contact-cta-break .parallax-overlay {
  background:
    linear-gradient(90deg, rgba(10,18,38,0.82) 0%, rgba(10,18,38,0.48) 50%, rgba(10,18,38,0.62) 100%),
    linear-gradient(to bottom, rgba(10,18,38,0.12) 0%, rgba(10,18,38,0.38) 58%, rgba(10,18,38,0.78) 100%) !important;
}

.app-page .final-cta {
  position: relative;
  overflow: hidden;
  background-image: url("/images/ats-contact-mountain-cta.jpg") !important;
  background-size: cover;
  background-position: center 47% !important;
  background-attachment: scroll !important;
  background-color: var(--navy-deep);
}

.app-page .final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10,18,38,0.82) 0%, rgba(10,18,38,0.48) 50%, rgba(10,18,38,0.62) 100%),
    linear-gradient(to bottom, rgba(10,18,38,0.12) 0%, rgba(10,18,38,0.38) 58%, rgba(10,18,38,0.78) 100%);
  pointer-events: none;
}

.app-page .final-cta .container-narrow {
  position: relative;
  z-index: 1;
}

.app-page .final-title {
  color: var(--white) !important;
  text-shadow: 0 16px 34px rgba(10,18,38,0.55);
}

.app-page .final-copy {
  color: rgba(255,255,255,0.78) !important;
  text-shadow: 0 12px 28px rgba(10,18,38,0.55);
}

.app-page .final-cta .btn-navy {
  background: var(--yellow) !important;
  color: var(--navy) !important;
}

.app-page .final-cta .btn-navy:hover {
  background: var(--yellow-light) !important;
}

.parallax-inner,
.tagline-break-inner,
.book-cta-break .parallax-inner,
.contact-cta-break .parallax-inner {
  padding-top: clamp(3.6rem, 6vw, 5.4rem) !important;
  padding-bottom: clamp(3.6rem, 6vw, 5.4rem) !important;
}

.parallax-text,
.parallax-sub,
.tagline-break-text,
.tagline-break-sub,
.book-cta-break .parallax-text,
.book-cta-break .parallax-sub,
.contact-cta-break .parallax-text,
.contact-cta-break .parallax-sub {
  text-shadow: 0 16px 34px rgba(10,18,38,0.55);
}

.form-hp {
  position: absolute !important;
  left: -100vw !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.speaking-page .speaking-services-section {
  padding-bottom: clamp(3.4rem, 5vw, 4.8rem) !important;
}

.speaking-page .speaking-topics-section {
  padding-top: clamp(3.4rem, 5vw, 4.8rem) !important;
}

.speaking-page .services-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 14px !important;
}

.speaking-page .topics-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 14px !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  overflow: visible !important;
}

.speaking-page .topic-card {
  min-height: 176px;
  border: 1px solid var(--gray);
  border-radius: 8px;
}

.hero-actions {
  align-items: center;
}

.hero-tagline {
  text-wrap: pretty;
}

.hero-title,
.section-title,
.dark-title,
.final-title,
.kirkus-title,
.parallax-text,
.tagline-break-text,
.signup-title {
  text-wrap: balance;
}

.hero-preview {
  max-height: calc(100vh - 150px);
}

.phone-shell {
  max-height: inherit;
}

.phone-screen {
  min-height: 500px !important;
}

.app-prompt {
  font-size: 1.08rem !important;
}

.reflection-box {
  min-height: 92px !important;
}

@media (min-width: 981px) {
  body:not(.app-page) #hero .hero-content {
    align-self: center !important;
    padding-top: clamp(3.25rem, 5vh, 4.75rem) !important;
    padding-bottom: clamp(1.75rem, 3.5vh, 2.75rem) !important;
    transform: translateY(-3vh);
  }

  .book-page #hero .hero-content,
  .contact-page #hero .hero-content {
    transform: translateY(-2vh);
  }

  body:not(.app-page) #hero .hero-kicker {
    margin-bottom: 1rem !important;
  }

  .hero-preview {
    width: min(100%, 330px) !important;
  }

  .app-page .hero-preview {
    width: min(100%, 290px) !important;
    max-height: none;
  }

  .app-page .phone-screen.screenshot-screen {
    min-height: 0 !important;
  }
}

@media (max-width: 980px) {
  .nav-links {
    display: none !important;
  }

  .nav-hamburger {
    display: flex !important;
    position: fixed !important;
    top: 10px;
    right: clamp(1rem,5vw,1.5rem);
    z-index: 120;
    background: rgba(10,18,38,0.34) !important;
    border-color: rgba(255,255,255,0.36) !important;
  }

  .nav-hamburger span {
    background: var(--white) !important;
  }

  nav.solid .nav-hamburger {
    background: rgba(26,39,68,0.06) !important;
    border-color: rgba(26,39,68,0.18) !important;
  }

  nav.solid .nav-hamburger span {
    background: var(--navy) !important;
  }

  .mobile-menu {
    display: flex !important;
    gap: 0.25rem !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
  }

  .mobile-menu.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .mobile-menu a {
    min-height: 44px;
    display: flex;
    align-items: center;
    border-radius: 8px;
    padding: 0 0.75rem;
    color: var(--navy) !important;
    font-weight: 600 !important;
  }
}

@media (max-width: 768px) {
  body.menu-open {
    overflow: hidden;
  }

  nav {
    height: 64px !important;
    padding: 0 clamp(1.1rem,5vw,1.5rem) !important;
  }

  .nav-logo {
    max-width: calc(100vw - 92px);
    font-size: clamp(1rem,4.4vw,1.18rem) !important;
    letter-spacing: 0.045em !important;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav-logo-dot {
    width: 7px !important;
    height: 7px !important;
  }

  .nav-links {
    display: none !important;
  }

  .nav-hamburger {
    display: flex !important;
    position: fixed !important;
    top: 10px;
    right: clamp(1rem,5vw,1.5rem);
    z-index: 120;
    background: rgba(10,18,38,0.34) !important;
    border-color: rgba(255,255,255,0.36) !important;
  }

  .nav-hamburger span {
    background: var(--white) !important;
  }

  nav.solid .nav-hamburger {
    background: rgba(26,39,68,0.06) !important;
    border-color: rgba(26,39,68,0.18) !important;
  }

  nav.solid .nav-hamburger span {
    background: var(--navy) !important;
  }

  .mobile-menu {
    top: 64px !important;
    display: flex !important;
    gap: 0.25rem !important;
    padding: 0.75rem clamp(1rem,5vw,1.5rem) 1.1rem !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
  }

  .mobile-menu.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .mobile-menu a {
    min-height: 44px;
    display: flex;
    align-items: center;
    border-radius: 8px;
    padding: 0 0.75rem;
    color: var(--navy) !important;
    font-weight: 600 !important;
  }

  .mobile-menu a.active {
    background: var(--yellow-dim);
  }

  .mobile-menu a.btn-navy,
  .mobile-menu a.btn-yellow {
    margin-top: 0.35rem;
    justify-content: center;
    border-radius: 999px;
    color: var(--white) !important;
  }

  #hero {
    min-height: auto !important;
    height: auto !important;
    grid-template-rows: 64px 1fr !important;
  }

  .hero-bg {
    background-position: center top !important;
  }

  .speaking-page .hero-bg {
    background-position: center center !important;
  }

  .app-page .hero-bg {
    background-position: center 54% !important;
  }

  .hero-overlay {
    background: linear-gradient(to bottom,
      rgba(10,18,38,0.44) 0%,
      rgba(10,18,38,0.28) 26%,
      rgba(10,18,38,0.76) 66%,
      rgba(10,18,38,0.98) 100%
    ) !important;
  }

  .speaking-page .hero-overlay {
    background:
      linear-gradient(90deg, rgba(10,18,38,0.92) 0%, rgba(10,18,38,0.68) 56%, rgba(10,18,38,0.5) 100%),
      linear-gradient(to bottom, rgba(10,18,38,0.38) 0%, rgba(10,18,38,0.22) 28%, rgba(10,18,38,0.76) 72%, rgba(10,18,38,0.98) 100%) !important;
  }

  .app-page .hero-overlay {
    background:
      linear-gradient(90deg, rgba(10,18,38,0.92) 0%, rgba(10,18,38,0.78) 58%, rgba(10,18,38,0.58) 100%),
      linear-gradient(to bottom, rgba(10,18,38,0.42) 0%, rgba(10,18,38,0.24) 28%, rgba(10,18,38,0.76) 72%, rgba(10,18,38,0.98) 100%) !important;
  }

  .speaking-page .topics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .speaking-page .services-grid {
    grid-template-columns: 1fr !important;
  }

  .hero-content {
    display: block !important;
    padding: clamp(4.6rem,17vw,5.7rem) clamp(1.25rem,6vw,1.7rem) 2rem !important;
    align-self: end !important;
    max-width: none !important;
  }

  .hero-kicker {
    font-size: 10px !important;
    letter-spacing: 0.12em !important;
    padding: 5px 12px 5px 9px !important;
    margin-bottom: 0.9rem !important;
  }

  .hero-title {
    font-size: clamp(2.5rem,12.2vw,3.55rem) !important;
    line-height: 0.9 !important;
    margin-bottom: 1rem !important;
    max-width: 9.8ch !important;
  }

  .app-page .hero-content {
    padding-top: clamp(4.35rem,15vw,5.15rem) !important;
  }

  .app-page .hero-title {
    font-size: clamp(2.05rem,10.4vw,2.85rem) !important;
    max-width: 10.4ch !important;
    margin-bottom: 0.75rem !important;
  }

  .speaking-page .hero-title {
    font-size: clamp(2.35rem,10.6vw,3.2rem) !important;
    max-width: 100% !important;
  }

  #hero .hero-title .y {
    display: inline;
  }

  .hero-tagline {
    font-size: clamp(0.98rem,4.1vw,1.08rem) !important;
    line-height: 1.45 !important;
    margin-bottom: 1.15rem !important;
    max-width: 34ch !important;
  }

  .app-page .hero-tagline {
    display: block;
    overflow: visible;
    font-size: 0.94rem !important;
    max-width: 34ch !important;
    margin-bottom: 1rem !important;
  }

  .hero-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0.7rem !important;
    width: 100% !important;
    max-width: 320px !important;
    margin-bottom: 0.85rem !important;
  }

  .app-page .hero-actions {
    grid-template-columns: 1fr !important;
    max-width: 300px !important;
    gap: 0.6rem !important;
  }

  .app-page .hero-actions .btn-yellow {
    grid-column: 1 / -1;
  }

  .app-page .hero-actions .btn-ghost-white {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .hero-actions a,
  .hero-actions button {
    width: 100% !important;
    min-height: 48px;
  }

  .hero-actions .btn-ghost-white {
    background: rgba(10,18,38,0.28) !important;
  }

  .hero-access {
    display: block !important;
    max-width: 33ch;
    font-size: 11.5px !important;
    line-height: 1.55;
  }

  .hero-access span {
    display: inline;
  }

  .hero-access span + span::before {
    content: " · ";
    color: rgba(255,255,255,0.34);
  }

  .hero-preview,
  .hero-book,
  .hero-book-float {
    display: none !important;
  }

  .proof-bar-inner {
    grid-template-columns: 1fr 1fr !important;
  }

  .proof-item {
    min-height: 118px;
  }

  section {
    padding: 3.2rem clamp(1.25rem,6vw,1.7rem) !important;
  }

  .section-title,
  .dark-title,
  .final-title {
    font-size: clamp(2rem,10.4vw,3rem) !important;
    line-height: 0.96 !important;
  }

  .lead {
    font-size: 14.5px !important;
    line-height: 1.75 !important;
  }

  .features-grid,
  .topics-grid,
  .services-grid,
  .inside-grid,
  .reviews-grid,
  .testimonials-grid {
    margin-top: 1.75rem !important;
  }

  .feature-card,
  .service-card,
  .topic-card,
  .inside-card,
  .review-card,
  .tcard,
  .audience-card,
  .info-card {
    padding: 1.35rem !important;
  }

  .footer-tagline {
    padding: 0.85rem 1.25rem !important;
    font-size: 0.82rem !important;
    line-height: 1.5 !important;
    letter-spacing: 0.07em !important;
  }

  .footer-inner {
    padding: 2.35rem clamp(1.25rem,6vw,1.7rem) !important;
    gap: 1.25rem !important;
  }

  .footer-links {
    gap: 0.85rem 1rem !important;
  }

  .footer-social {
    width: 100%;
    order: 2;
  }

  .footer-links {
    order: 3;
  }

  .footer-copy {
    order: 4;
  }

  .footer-links a {
    font-size: 12.5px !important;
  }
}

@media (max-width: 430px) {
  .speaking-page .topics-grid {
    grid-template-columns: 1fr !important;
  }

  .hero-title {
    font-size: clamp(2.35rem,11.7vw,3.15rem) !important;
    max-width: 9.2ch !important;
  }

  .hero-tagline {
    max-width: 32ch !important;
  }
}

@media (max-width: 360px) {
  .nav-logo {
    font-size: 0.95rem !important;
  }

  .hero-title {
    font-size: 2.18rem !important;
  }

  .btn-yellow,
  .btn-navy,
  .btn-outline,
  .btn-ghost-white,
  .btn-ghost-dark {
    font-size: 12px !important;
    padding-left: 18px !important;
    padding-right: 18px !important;
  }
}
