/*
 * ATAST unified clinical design system.
 * Creates one visual language across homepage, service guides, brand pages and About.
 */
:root {
  --at-ink: #092734;
  --at-navy: #071d2b;
  --at-navy-soft: #0d3444;
  --at-teal: #2f9e94;
  --at-teal-bright: #55c6bb;
  --at-mint: #eaf7f4;
  --at-cream: #f7f3ea;
  --at-paper: #fffdf9;
  --at-line: rgba(9, 39, 52, .13);
  --at-muted: #5c7079;
  --at-shadow-soft: 0 18px 50px rgba(7, 29, 43, .08);
  --at-shadow-strong: 0 30px 80px rgba(7, 29, 43, .18);
  --at-radius: 16px;
  --at-radius-large: 24px;
}

.at-home,
:is(.audx,.stx,.vstx,.apdx,.hvx,.ha4,.phshow,.otx,.skx,.sgx,.ewx,.teamx) {
  font-family: "Source Sans 3", sans-serif !important;
  color: var(--at-ink);
  text-rendering: optimizeLegibility;
}

.at-home :is(h1,h2,h3),
:is(.audx,.stx,.vstx,.apdx,.hvx,.ha4,.phshow,.otx,.skx,.sgx,.ewx,.teamx) :is(h1,h2,h3) {
  font-family: "Fraunces", Georgia, serif !important;
  font-variation-settings: "SOFT" 10, "WONK" 0;
  letter-spacing: -.035em !important;
  text-transform: none !important;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.at-home :is(h1,h2),
:is(.audx,.stx,.vstx,.apdx,.hvx,.ha4,.phshow,.otx,.skx,.sgx,.ewx,.teamx) :is(h1,h2) {
  text-wrap: balance;
}

:is(.audx,.stx,.vstx,.apdx,.hvx,.ha4,.phshow,.otx,.skx,.sgx,.ewx,.teamx) p {
  color: var(--at-muted);
  font-size: 1.03rem;
  line-height: 1.75 !important;
}

/* Shared hero language */
:is(.audx-hero,.stx-hero,.vstx-hero,.apdx-hero,.hvx-hero,.ha4-hero,.phshow-hero,.otx-hero,.skx-hero,.sgx-hero,.ewx-hero) {
  position: relative !important;
  isolation: isolate;
  margin-bottom: 72px !important;
  border-radius: 0 0 var(--at-radius-large) var(--at-radius-large) !important;
  background:
    radial-gradient(circle at 82% 18%, rgba(85,198,187,.28), transparent 27%),
    radial-gradient(circle at 12% 84%, rgba(255,255,255,.08), transparent 23%),
    linear-gradient(135deg, var(--at-navy) 0%, var(--at-navy-soft) 56%, #0f5b78 100%) !important;
  color: #fff !important;
  overflow: hidden !important;
}

:is(.audx-hero,.stx-hero,.vstx-hero,.apdx-hero,.hvx-hero,.ha4-hero,.phshow-hero,.otx-hero,.skx-hero,.sgx-hero,.ewx-hero)::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 520px;
  height: 230px;
  right: -95px;
  bottom: -110px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 50%;
  box-shadow:
    0 0 0 28px rgba(255,255,255,.035),
    0 0 0 58px rgba(255,255,255,.025),
    0 0 0 92px rgba(255,255,255,.018);
  transform: rotate(-10deg);
}

:is(.audx-grid,.stx-grid,.vstx-grid,.apdx-grid,.ha4-grid,.hvx-hero-inner,.phshow-hero-inner,.otx-hero-inner,.skx-hero-inner,.sgx-hero-inner,.ewx-hero-inner) {
  max-width: 1180px !important;
  gap: clamp(34px, 5vw, 72px) !important;
  padding: clamp(64px, 7vw, 96px) 40px !important;
}

:is(.audx,.stx,.vstx,.apdx,.hvx,.ha4,.phshow,.otx,.skx,.sgx,.ewx) :is(.audx-badge,.stx-badge,.vstx-badge,.apdx-badge,.ha4-badge,.hvx-kicker,.phshow-kicker,.otx-kicker,.skx-kicker,.sgx-kicker,.ewx-kicker) {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  padding: 9px 13px !important;
  border: 1px solid rgba(189,244,238,.28) !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,.07) !important;
  color: #bdf4ee !important;
  font-size: .76rem !important;
  font-weight: 800 !important;
  letter-spacing: .12em !important;
  text-transform: uppercase !important;
  backdrop-filter: blur(10px);
}

:is(.audx,.stx,.vstx,.apdx,.hvx,.ha4,.phshow,.otx,.skx,.sgx,.ewx) :is(.audx-badge,.stx-badge,.vstx-badge,.apdx-badge,.ha4-badge,.hvx-kicker,.phshow-kicker,.otx-kicker,.skx-kicker,.sgx-kicker,.ewx-kicker)::before {
  content: "";
  width: 20px;
  height: 2px;
  background: currentColor;
}

:is(.audx,.stx,.vstx,.apdx,.hvx,.ha4,.phshow,.otx,.skx,.sgx,.ewx) :is(.audx-hero,.stx-hero,.vstx-hero,.apdx-hero,.hvx-hero,.ha4-hero,.phshow-hero,.otx-hero,.skx-hero,.sgx-hero,.ewx-hero) h1 {
  max-width: 12ch;
  margin: 18px 0 22px !important;
  color: #fff !important;
  font-size: clamp(3.3rem, 5.4vw, 5.9rem) !important;
  font-weight: 650 !important;
  line-height: .96 !important;
}

:is(.audx-lead,.stx-lead,.vstx-lead,.apdx-lead,.hvx-lead,.ha4-lead,.phshow-lead,.otx-lead,.skx-lead,.sgx-lead,.ewx-lead) {
  max-width: 650px;
  color: rgba(255,255,255,.78) !important;
  font-size: clamp(1.06rem, 1.5vw, 1.2rem) !important;
}

/* Shared actions */
:is(.audx-btn,.stx-btn,.vstx-btn,.apdx-btn,.hvx-btn,.ha4-btn,.phshow-btn,.otx-btn,.skx-btn,.sgx-btn,.ewx-btn,.teamx-btn,.teamx-read) {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px !important;
  border: 1px solid transparent !important;
  border-radius: 999px !important;
  background: var(--at-teal-bright) !important;
  color: var(--at-navy) !important;
  font-family: "Source Sans 3", sans-serif !important;
  font-size: .9rem !important;
  font-weight: 800 !important;
  letter-spacing: .035em !important;
  text-transform: none !important;
  box-shadow: 0 14px 34px rgba(47,158,148,.2) !important;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease !important;
}

:is(.audx-btn,.stx-btn,.vstx-btn,.apdx-btn,.hvx-btn,.ha4-btn,.phshow-btn,.otx-btn,.skx-btn,.sgx-btn,.ewx-btn,.teamx-btn,.teamx-read):hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(47,158,148,.28) !important;
}

:is(.audx-btn,.stx-btn,.vstx-btn,.apdx-btn,.hvx-btn,.ha4-btn,.phshow-btn,.otx-btn,.skx-btn,.sgx-btn,.ewx-btn,.teamx-btn).dark {
  border-color: rgba(255,255,255,.24) !important;
  background: rgba(255,255,255,.08) !important;
  color: #fff !important;
  box-shadow: none !important;
}

/* Editorial section rhythm */
:is(.audx-section,.stx-section,.vstx-section,.apdx-section,.hvx-section,.ha4-section,.phshow-section,.otx-section,.skx-section,.sgx-section,.ewx-section,.teamx-section) {
  padding: clamp(58px, 7vw, 96px) 0 !important;
}

:is(.audx,.stx,.vstx,.apdx,.hvx,.ha4,.phshow,.otx,.skx,.sgx,.ewx,.teamx) h2 {
  max-width: 17ch;
  margin-bottom: 20px !important;
  color: var(--at-ink) !important;
  font-size: clamp(2.35rem, 4.2vw, 4.5rem) !important;
  font-weight: 650 !important;
  line-height: 1.02 !important;
}

/* Preserve high contrast inside the hearing-aid clinical-process band. */
.ha4 .ha4-dark h2,
.ha4 .ha4-dark p,
.ha4 .ha4-dark .ha4-text {
  color: #fff !important;
}

:is(.audx,.stx,.vstx,.apdx,.hvx,.ha4,.phshow,.otx,.skx,.sgx,.ewx,.teamx) h3 {
  color: var(--at-ink) !important;
  font-size: clamp(1.34rem, 1.8vw, 1.75rem) !important;
  font-weight: 650 !important;
  line-height: 1.15 !important;
}

/* Reduce the generic card-wall effect */
:is(.audx,.stx,.vstx,.apdx,.hvx,.ha4,.phshow,.otx,.skx,.sgx,.ewx,.teamx) :is([class*="-card"],[class$="-service"],[class$="-step"],[class$="-faq"],[class$="-path"],[class$="-feature"],[class$="-eq"]) {
  border: 1px solid var(--at-line) !important;
  border-radius: var(--at-radius) !important;
  background: rgba(255,255,255,.82) !important;
  box-shadow: 0 12px 34px rgba(7,29,43,.055) !important;
}

:is(.audx,.stx,.vstx,.apdx,.hvx,.ha4,.phshow,.otx,.skx,.sgx,.ewx,.teamx) :is([class*="-card"],[class$="-service"],[class$="-step"],[class$="-faq"],[class$="-path"],[class$="-feature"]) {
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

:is(.audx,.stx,.vstx,.apdx,.hvx,.ha4,.phshow,.otx,.skx,.sgx,.ewx,.teamx) :is([class*="-card"],[class$="-service"],[class$="-step"],[class$="-faq"],[class$="-path"],[class$="-feature"]):hover {
  transform: translateY(-3px);
  border-color: rgba(47,158,148,.35) !important;
  box-shadow: var(--at-shadow-soft) !important;
}

/* Full-width dark bands */
:is(.audx-band,.stx-band,.vstx-band,.apdx-band,.ha4-band,.hvx-band,.phshow-band,.otx-band,.skx-band,.sgx-band,.ewx-band,.teamx-band) {
  position: relative;
  overflow: hidden;
  border-radius: 0 !important;
  background:
    linear-gradient(110deg, rgba(85,198,187,.12), transparent 35%),
    var(--at-navy) !important;
}

:is(.audx-band,.stx-band,.vstx-band,.apdx-band,.ha4-band,.hvx-band,.phshow-band,.otx-band,.skx-band,.sgx-band,.ewx-band,.teamx-band) :is(h2,h3,p) {
  color: #fff !important;
}

/* Forms and patient decision areas */
:is(.audx-form,.stx-form,.vstx-form,.apdx-form,.hvx-form,.ha4-form,.phshow-form,.otx-form,.skx-form,.sgx-form,.ewx-form,.teamx-form) {
  padding: clamp(26px, 4vw, 46px) !important;
  border: 1px solid rgba(47,158,148,.24) !important;
  border-radius: var(--at-radius-large) !important;
  background: linear-gradient(145deg, #f3fbf9, #fff) !important;
  box-shadow: var(--at-shadow-soft) !important;
}

/* About page aligned to the same system */
.teamx-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(44px, 6vw, 76px) !important;
  border: 1px solid var(--at-line) !important;
  border-radius: var(--at-radius-large) !important;
  background:
    radial-gradient(circle at 88% 12%, rgba(85,198,187,.22), transparent 28%),
    linear-gradient(135deg, #f1fbf8, #fff 58%, #f6f1e8) !important;
}

.teamx-eyebrow,
.at-home-trust-kicker {
  display: inline-flex !important;
  align-items: center;
  gap: 9px;
  padding: 8px 12px !important;
  border: 1px solid rgba(47,158,148,.2) !important;
  border-radius: 999px !important;
  background: rgba(234,247,244,.8) !important;
  color: #236d66 !important;
  font-size: .76rem !important;
  font-weight: 800 !important;
  letter-spacing: .1em !important;
  text-transform: uppercase !important;
}

.teamx h1 {
  max-width: 12ch;
  color: var(--at-ink) !important;
  font-size: clamp(3rem, 5vw, 5.2rem) !important;
  line-height: .98 !important;
}

/* Homepage trust architecture */
.at-home-credibility {
  position: relative;
  overflow: hidden;
  background: var(--at-paper);
}

.at-home-credibility::before {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  top: -250px;
  left: -180px;
  border: 1px solid rgba(47,158,148,.14);
  border-radius: 50%;
  box-shadow: 0 0 0 34px rgba(47,158,148,.035), 0 0 0 72px rgba(47,158,148,.025);
}

.at-home-credibility-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0,1.05fr) minmax(360px,.75fr);
  gap: clamp(46px, 7vw, 90px);
  align-items: start;
}

.at-home-credibility-copy h2 {
  max-width: 12ch;
}

.at-home-trust-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 0 32px;
  margin-top: 38px;
  border-top: 1px solid var(--at-line);
}

.at-home-trust-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  padding: 24px 0;
  border-bottom: 1px solid var(--at-line);
}

.at-home-trust-item svg {
  width: 30px;
  height: 30px;
  padding: 7px;
  border-radius: 50%;
  background: var(--at-mint);
  color: var(--at-teal);
}

.at-home-trust-item strong,
.at-home-trust-item span {
  display: block;
}

.at-home-trust-item strong {
  margin-bottom: 4px;
  color: var(--at-ink);
  font-size: 1.03rem;
}

.at-home-trust-item span {
  color: var(--at-muted);
  font-size: .92rem;
  line-height: 1.5;
}

.at-home-google-panel {
  position: sticky;
  top: 112px;
  padding: clamp(28px, 4vw, 46px);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: var(--at-radius-large);
  background:
    radial-gradient(circle at 85% 15%, rgba(85,198,187,.22), transparent 30%),
    var(--at-navy);
  color: #fff;
  box-shadow: var(--at-shadow-strong);
}

.at-home-google-panel :is(h3,p) {
  color: #fff !important;
}

.at-home-google-panel h3 {
  margin: 18px 0 14px;
  font-size: clamp(2rem, 3vw, 3.2rem) !important;
}

.at-home-google-panel p {
  color: rgba(255,255,255,.72) !important;
}

.at-home-google-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #bdf4ee;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.at-home-google-mark svg {
  width: 22px;
  height: 22px;
}

.at-home-google-points {
  display: grid;
  gap: 12px;
  margin: 28px 0;
  padding: 0;
  list-style: none;
}

.at-home-google-points li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: rgba(255,255,255,.78);
}

.at-home-google-points li::before {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-top: .55em;
  border-radius: 50%;
  background: var(--at-teal-bright);
  box-shadow: 0 0 0 5px rgba(85,198,187,.12);
}

.at-home-google-panel .at-home-btn {
  width: 100%;
}

.at-home-prep-cta {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 28px;
  align-items: center;
  margin-top: 34px;
  padding: 30px;
  border: 1px solid var(--at-line);
  border-radius: var(--at-radius-large);
  background:
    radial-gradient(circle at 92% 15%, rgba(85,198,187,.18), transparent 28%),
    #fff;
  box-shadow: var(--at-shadow-soft);
}

.at-home-prep-cta h3 {
  max-width: 25ch;
  margin: 8px 0 8px;
  color: var(--at-ink);
  font-size: clamp(1.6rem,2.5vw,2.35rem) !important;
}

.at-home-prep-cta p {
  margin: 0;
  color: var(--at-muted);
}

/* Global focus treatment */
:is(.at-home,.audx,.stx,.vstx,.apdx,.hvx,.ha4,.phshow,.otx,.skx,.sgx,.ewx,.teamx) :is(a,button,input,select,textarea):focus-visible {
  outline: 3px solid rgba(85,198,187,.62) !important;
  outline-offset: 4px !important;
}

@media (max-width: 1024px) {
  .at-home-credibility-grid {
    grid-template-columns: 1fr;
  }

  .at-home-google-panel {
    position: relative;
    top: auto;
  }
}

@media (max-width: 767px) {
  :is(.audx-grid,.stx-grid,.vstx-grid,.apdx-grid,.ha4-grid,.hvx-hero-inner,.phshow-hero-inner,.otx-hero-inner,.skx-hero-inner,.sgx-hero-inner,.ewx-hero-inner) {
    padding: 54px 22px 64px !important;
  }

  :is(.audx,.stx,.vstx,.apdx,.hvx,.ha4,.phshow,.otx,.skx,.sgx,.ewx) :is(.audx-hero,.stx-hero,.vstx-hero,.apdx-hero,.hvx-hero,.ha4-hero,.phshow-hero,.otx-hero,.skx-hero,.sgx-hero,.ewx-hero) h1 {
    max-width: 10ch;
    font-size: clamp(2.75rem, 13vw, 4.1rem) !important;
  }

  .at-home-trust-list {
    grid-template-columns: 1fr;
  }

  .teamx-hero {
    padding: 34px 22px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  :is(.at-home,.audx,.stx,.vstx,.apdx,.hvx,.ha4,.phshow,.otx,.skx,.sgx,.ewx,.teamx) *,
  :is(.at-home,.audx,.stx,.vstx,.apdx,.hvx,.ha4,.phshow,.otx,.skx,.sgx,.ewx,.teamx) *::before,
  :is(.at-home,.audx,.stx,.vstx,.apdx,.hvx,.ha4,.phshow,.otx,.skx,.sgx,.ewx,.teamx) *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
