/* Hearing Aids page (css/pages/hearing-aids.css belongs to the homepage) */

/* Hero */
.ha-hero{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6fr);gap:4rem;align-items:center}
.ha-hero_text{display:flex;flex-direction:column;gap:1.5rem}
.ha-hero_text h1,.ha-hero_text p{margin:0}
.ha-hero_actions{display:flex;gap:.75rem;flex-wrap:wrap}
.ha-hero_media{aspect-ratio:4/3;border-radius:.5rem}

/* Placeholder captions can be long on this page */
.about_placeholder span{max-width:26rem;padding:1rem;text-align:center}

/* Photos dropped into the old placeholder slots */
img.ha-photo{display:block;width:100%;height:auto;object-fit:cover;background:var(--neutreals--gray-10,#e6e6e3)}
img.ha-photo.is-wide{aspect-ratio:16/9;border-radius:.25rem}
/* Styles of hearing aid */
.ha-styles_grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1.25rem}
.ha-card{background:#fff;border:1px solid #e6e6e3;border-radius:.5rem;padding:1.5rem;display:flex;flex-direction:column;gap:.875rem}
.ha-card h3,.ha-card p{margin:0}
.ha-card_media{aspect-ratio:4/3;border-radius:.25rem}
.ha-abbr{display:inline-block;margin-left:.375rem;padding:.1rem .45rem;border-radius:999px;background:var(--neutreals--gray-05,#f2f2ef);color:var(--neutreals--gray-60,#6b6b66);font-size:.75rem;letter-spacing:.04em;vertical-align:middle;white-space:nowrap}

/* Brands: two-column grid of text panels, fifth panel full width */
.ha-brands_grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.25rem;align-items:start}
.ha-brand{background:#fff;border:1px solid #e6e6e3;border-radius:.5rem;padding:2rem;display:flex;flex-direction:column;gap:1.25rem}
.ha-brand p{margin:0}
.ha-brand_logo{display:block;width:auto;max-width:100%;max-height:3rem;object-fit:contain}
.ha-brand_points{list-style:none;margin:0;padding:0;display:grid;gap:.625rem}
.ha-brand_points li{position:relative;padding-left:1.375rem;font-size:1rem;line-height:1.5;font-weight:300;color:var(--neutreals--gray-90,#1a1a1a)}
.ha-brand_points li::before{content:"";position:absolute;left:0;top:.5em;width:.5rem;height:.5rem;border-radius:999px;background:#09C9CF}
.ha-brand--wide{grid-column:1/-1}
.ha-brand--wide .ha-brand_points{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:2rem}

/* At a glance table */
.ha-glance{display:flex;flex-direction:column;gap:1.25rem}
.ha-glance h3{margin:0}
.ha-glance_scroll{overflow-x:auto;-webkit-overflow-scrolling:touch;border:1px solid #e6e6e3;border-radius:.5rem;background:#fff}
.ha-glance_table{width:100%;min-width:34rem;border-collapse:collapse;font-size:1rem}
.ha-glance_table th,.ha-glance_table td{padding:.875rem 1.25rem;text-align:left;border-bottom:1px solid #ececea;font-weight:300}
.ha-glance_table thead th{font-weight:500;font-size:.8125rem;letter-spacing:.04em;text-transform:uppercase;color:var(--neutreals--gray-50,#8a8a85)}
.ha-glance_table tbody th{font-weight:500}
.ha-glance_table tbody tr:last-child th,.ha-glance_table tbody tr:last-child td{border-bottom:0}

.ha-brands_cta{display:flex;flex-direction:column;align-items:center;gap:1.5rem;text-align:center;max-width:44rem;margin:0 auto}
.ha-brands_cta p{margin:0}

/* Features */
.ha-features_grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:1.25rem}
.ha-feature{display:flex;flex-direction:column;gap:.75rem;padding:1.5rem;background:var(--neutreals--gray-03,#f7f7f5);border-radius:.5rem}
.ha-feature h3,.ha-feature p{margin:0}
.ha-feature_icon{display:inline-flex;width:1.5rem;height:1.5rem;color:#09C9CF}
.ha-feature_icon svg{width:100%;height:auto}

/* Journey */
.ha-steps{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1.25rem}

/* Final CTA */
.ha-close{display:grid;grid-template-columns:minmax(0,6fr) minmax(0,5fr);gap:4rem;align-items:center}
.ha-close_media{aspect-ratio:4/3;border-radius:.5rem}
.ha-close_text{display:flex;flex-direction:column;align-items:flex-start;gap:1.5rem}
.ha-close_text h2,.ha-close_text p{margin:0}

@media screen and (max-width:991px){
  .ha-hero{grid-template-columns:1fr;gap:2rem}
  .ha-styles_grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ha-brands_grid{grid-template-columns:1fr}
  .ha-features_grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ha-steps{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ha-close{grid-template-columns:1fr;gap:2rem}
}
@media screen and (max-width:600px){
  .ha-styles_grid,.ha-features_grid,.ha-steps{grid-template-columns:1fr}
  .ha-brand{padding:1.25rem}
  .ha-brand--wide .ha-brand_points{grid-template-columns:1fr}
}

/* Styles section: image settles as the card reveals, gentle lift on hover */
.ha-card{transition:transform .45s cubic-bezier(.215,.61,.355,1),box-shadow .45s cubic-bezier(.215,.61,.355,1)}
.ha-card:hover{transform:translateY(-.25rem);box-shadow:0 12px 28px rgb(26 26 26 / 8%)}
.ha-card.reveal-init{transition-property:opacity,transform,box-shadow}
@media (prefers-reduced-motion:reduce){.ha-card,.ha-card .ha-card_media{transition:none}.ha-card:hover{transform:none}}

/* Animated ear diagrams in the style cards */
.ha-anim{display:flex;align-items:center;justify-content:center;background:var(--neutreals--gray-03,#f7f7f5);border-radius:.25rem;aspect-ratio:4/3;overflow:hidden}
.ha-anim svg{width:82%;height:auto;display:block}
.ha-anim .e-bg{fill:#fff}
.ha-anim .e-out{stroke:#1a1a1a;stroke-width:3;stroke-linecap:round;fill:none}
.ha-anim .e-in{stroke:#b4b4af;stroke-width:2.25;stroke-linecap:round;fill:none}
.ha-anim .e-dev rect,.ha-anim .e-dev circle,.ha-anim .e-dev ellipse{fill:#013A83}
.ha-anim .e-dev .e-wire{fill:none;stroke:#013A83;stroke-width:2.5;stroke-linecap:round}
.ha-anim .e-dev .e-dot{fill:#fff;opacity:.7}
.ha-anim .e-dev .e-dash{fill:none;stroke:#8a8a85;stroke-width:1.5;stroke-dasharray:3 5;opacity:.6}
.ha-anim .e-wav{stroke:#09C9CF;stroke-width:3;stroke-linecap:round;fill:none;opacity:0;animation:ha-wave 2.4s ease-out infinite}
.ha-anim .e-wav.w2{animation-delay:.3s}
.ha-anim .e-wav.w3{animation-delay:.6s}
@keyframes ha-wave{0%{opacity:0}20%{opacity:1}60%{opacity:.9}100%{opacity:0}}
/* draw in as the card reveals (JS only; without JS everything is simply visible).
   The hidden state carries no transition, so it applies instantly; the transition
   lives on the revealed state and so only ever animates the draw-in. */
.ha-card.reveal-init .e-out{stroke-dasharray:640;stroke-dashoffset:640}
.ha-card.reveal-init .e-in{stroke-dasharray:240;stroke-dashoffset:240}
.ha-card.reveal-in .e-out{stroke-dashoffset:0;transition:stroke-dashoffset 1.1s cubic-bezier(.215,.61,.355,1) .2s}
.ha-card.reveal-in .e-in{stroke-dashoffset:0;transition:stroke-dashoffset .8s cubic-bezier(.215,.61,.355,1) .55s}
.ha-card.reveal-init .e-dev{opacity:0;transform:translateY(6px)}
.ha-card.reveal-in .e-dev{opacity:1;transform:none;transition:opacity .6s ease .9s,transform .6s cubic-bezier(.215,.61,.355,1) .9s}
.ha-card.reveal-init .e-wav{animation-play-state:paused}
.ha-card.reveal-in .e-wav{animation-play-state:running}
@media (prefers-reduced-motion:reduce){.ha-anim .e-wav{animation:none;opacity:.9}}
