/* AHA Site — concept redesign (home + inner pages)
   Palette: navy + gold + white (mockup guideline)
   Typography: edit css/aha-typography.css for fonts sitewide */

@import url('aha-typography.css');

:root {
  --aha-navy: #062c5b;
  --aha-navy-deep: #041f42;
  --aha-navy-soft: #0a3a73;
  --aha-gold: #c4a35a;
  --aha-gold-dark: #a8883f;
  --aha-gold-soft: #d4b87a;
  --aha-ink: #1a2a3a;
  --aha-muted: #5a6a7a;
  --aha-line: #e2e6ec;
  --aha-bg: #f7f8fa;
  --aha-white: #ffffff;
  --aha-radius: 12px;
  --aha-shadow: 0 12px 40px rgba(6, 44, 91, 0.12);
  --aha-container: 1140px;
  --aha-header-h: 120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.aha-site {
  margin: 0;
  color: var(--aha-ink);
  background: var(--aha-white);
  -webkit-font-smoothing: antialiased;
}

body.aha-site .boxed {
  width: 100%;
  max-width: none;
  margin: 0;
  box-shadow: none;
  overflow: visible;
}

.aha-wrap {
  width: 100%;
  overflow-x: hidden;
}

.aha-container {
  width: min(100% - 48px, var(--aha-container));
  margin-inline: auto;
}

/* ---------- Header ---------- */
.aha-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(6, 44, 91, 0.06);
  transition: box-shadow 0.3s ease;
}

.aha-header.is-scrolled {
  box-shadow: 0 4px 24px rgba(6, 44, 91, 0.08);
}

.aha-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--aha-header-h);
}

.aha-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.aha-logo img {
  height: 150px;
  width: auto;
  display: block;
}

.aha-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.aha-nav > li {
  position: relative;
}

.aha-nav > li > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  font-family: var(--aha-text-nav-family);
  font-size: var(--aha-text-nav-size);
  font-weight: var(--aha-text-nav-weight);
  color: var(--aha-navy);
  text-decoration: none;
  transition: color 0.2s ease;
}

.aha-nav > li > a:hover,
.aha-nav > li > a:focus {
  color: var(--aha-gold-dark);
}

.aha-nav .aha-chevron {
  font-size: 10px;
  opacity: 0.7;
}

.aha-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: var(--aha-white);
  border: 1px solid var(--aha-line);
  border-radius: 10px;
  box-shadow: var(--aha-shadow);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all 0.2s ease;
  list-style: none;
  margin: 0;
}

.aha-nav > li:hover > .aha-dropdown,
.aha-nav > li:focus-within > .aha-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.aha-dropdown a {
  display: block;
  padding: 10px 14px;
  font-size: var(--aha-size-small);
  color: var(--aha-ink);
  text-decoration: none;
  border-radius: 6px;
}

.aha-dropdown a:hover {
  background: var(--aha-bg);
  color: var(--aha-navy);
}

.aha-nav__mobile-cta {
  display: none;
}

.aha-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.aha-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-family: var(--aha-text-btn-family);
  font-size: var(--aha-text-btn-size);
  font-weight: var(--aha-text-btn-weight);
  letter-spacing: var(--aha-text-btn-letter);
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.aha-btn:hover {
  transform: translateY(-1px);
}

.aha-btn--navy {
  background: var(--aha-navy);
  color: var(--aha-white);
  border-color: var(--aha-navy);
}

.aha-btn--navy:hover {
  background: var(--aha-navy-soft);
  border-color: var(--aha-navy-soft);
  color: var(--aha-white);
}

.aha-btn--outline {
  background: transparent;
  color: var(--aha-navy);
  border-color: #c8d0da;
}

.aha-btn--outline:hover {
  border-color: var(--aha-navy);
  color: var(--aha-navy);
}

.aha-btn--gold {
  background: var(--aha-gold);
  color: var(--aha-navy-deep);
  border-color: var(--aha-gold);
}

.aha-btn--gold:hover {
  background: var(--aha-gold-soft);
  border-color: var(--aha-gold-soft);
  color: var(--aha-navy-deep);
}

.aha-btn--ghost-light {
  background: transparent;
  color: var(--aha-navy);
  border-color: #c8d0da;
}

.aha-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--aha-line);
  border-radius: 8px;
  background: var(--aha-white);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
}

.aha-menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--aha-navy);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.aha-menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.aha-menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.aha-menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.aha-hero {
  position: relative;
  min-height: calc(100vh - var(--aha-header-h));
  min-height: max(560px, calc(100svh - var(--aha-header-h)));
  display: flex;
  align-items: center;
  color: var(--aha-white);
  overflow: hidden;
  background: var(--aha-navy-deep);
}

.aha-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.aha-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 28%;
  display: block;
  animation: aha-kenburns 22s ease-out forwards;
}

.aha-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(4, 31, 66, 0.88) 0%, rgba(4, 31, 66, 0.72) 42%, rgba(4, 31, 66, 0.35) 100%),
    radial-gradient(ellipse at 70% 40%, transparent 30%, rgba(4, 31, 66, 0.25) 100%);
  z-index: 1;
}

.aha-hero__map {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.18;
  background: url('../images/map-background.png') center / cover no-repeat;
  pointer-events: none;
  mix-blend-mode: screen;
}

.aha-hero__content {
  position: relative;
  z-index: 2;
  padding: 80px 0 120px;
  max-width: 640px;
}

.aha-hero__brand {
  font-family: var(--aha-text-brand-family);
  font-size: var(--aha-text-brand-size);
  font-weight: var(--aha-text-brand-weight);
  letter-spacing: var(--aha-text-brand-letter);
  text-transform: var(--aha-text-brand-transform);
  color: var(--aha-gold-soft);
  margin: 0 0 18px;
}

.aha-hero h1 {
  font-family: var(--aha-text-hero-family);
  font-size: var(--aha-text-hero-size);
  font-weight: var(--aha-text-hero-weight);
  line-height: var(--aha-text-hero-line);
  margin: 0 0 20px;
  color: var(--aha-white);
  letter-spacing: var(--aha-text-hero-letter);
}

.aha-hero__since {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 22px;
}

.aha-hero__since span {
  font-family: var(--aha-text-eyebrow-family);
  font-size: var(--aha-text-eyebrow-size);
  font-weight: var(--aha-text-eyebrow-weight);
  letter-spacing: var(--aha-text-eyebrow-letter);
  text-transform: var(--aha-text-eyebrow-transform);
  color: var(--aha-gold);
}

.aha-hero__since::after {
  content: '';
  flex: 1;
  max-width: 120px;
  height: 1px;
  background: var(--aha-gold);
}

.aha-hero__lead {
  font-family: var(--aha-text-lead-family);
  font-size: var(--aha-text-lead-size);
  font-weight: var(--aha-text-lead-weight);
  line-height: var(--aha-text-lead-line);
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 32px;
  max-width: 480px;
}

.aha-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.aha-hero .aha-btn--outline {
  color: var(--aha-white);
  border-color: rgba(255, 255, 255, 0.45);
}

.aha-hero .aha-btn--outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--aha-white);
  color: var(--aha-white);
}

/* ---------- Stats bar ---------- */
.aha-stats {
  position: relative;
  z-index: 5;
  margin-top: -56px;
  padding-bottom: 20px;
}

/* Inner course listing pages — pull bar up over page hero */
.aha-stats--page {
  margin-top: -40px;
  padding-bottom: 0;
}

.aha-stats--page + .aha-section {
  padding-top: 48px;
}

.aha-stats__bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  background: var(--aha-white);
  border-radius: 14px;
  box-shadow: var(--aha-shadow);
  padding: 28px 20px;
  border: 1px solid rgba(6, 44, 91, 0.06);
}

.aha-stat {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 16px;
  justify-content: center;
}

.aha-stat + .aha-stat {
  border-left: 1px solid var(--aha-line);
}

.aha-stat__icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  color: var(--aha-gold);
}

.aha-stat__icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

.aha-stat__text strong {
  display: block;
  font-family: var(--aha-text-stat-family);
  font-size: var(--aha-text-stat-size);
  font-weight: var(--aha-text-stat-weight);
  color: var(--aha-navy);
  line-height: var(--aha-text-stat-line);
}

.aha-stat__text span {
  display: block;
  font-size: var(--aha-text-stat-label-size);
  font-weight: var(--aha-text-stat-label-weight);
  color: var(--aha-muted);
  margin-top: 2px;
}

/* ---------- Sections shared ---------- */
.aha-section {
  padding: 88px 0;
}

.aha-section__head {
  text-align: center;
  margin-bottom: 48px;
}

.aha-section__head h2 {
  font-family: var(--aha-text-section-family);
  font-size: var(--aha-text-section-size);
  font-weight: var(--aha-text-section-weight);
  color: var(--aha-navy);
  margin: 0 0 12px;
  line-height: var(--aha-text-section-line);
}

.aha-section__head p {
  margin: 0 auto;
  max-width: 520px;
  color: var(--aha-muted);
  font-family: var(--aha-text-lead-family);
  font-size: var(--aha-text-lead-size);
  font-weight: 400;
  line-height: var(--aha-text-lead-line);
}

/* ---------- Programs ---------- */
.aha-programs {
  background: var(--aha-bg);
}

.aha-programs__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.aha-program {
  position: relative;
  border-radius: var(--aha-radius);
  overflow: hidden;
  background: var(--aha-white);
  box-shadow: 0 8px 30px rgba(6, 44, 91, 0.08);
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.aha-program:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 48px rgba(6, 44, 91, 0.14);
}

.aha-program__media {
  aspect-ratio: 16 / 11;
  overflow: hidden;
}

.aha-program__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.aha-program:hover .aha-program__media img {
  transform: scale(1.05);
}

.aha-program__body {
  position: relative;
  margin: -48px 20px 20px;
  background: var(--aha-white);
  border-radius: 14px;
  padding: 28px 24px 24px;
  box-shadow: 0 8px 24px rgba(6, 44, 91, 0.08);
}

.aha-program__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(196, 163, 90, 0.12);
  color: var(--aha-gold-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.aha-program__icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
}

.aha-program__body h3 {
  font-family: var(--aha-text-feature-title-family);
  font-size: var(--aha-text-feature-title-size);
  font-weight: var(--aha-text-feature-title-weight);
  line-height: var(--aha-text-feature-title-line);
  color: var(--aha-navy);
  margin: 0 0 10px;
}

.aha-program__body p {
  margin: 0 0 16px;
  color: var(--aha-muted);
  font-size: var(--aha-text-card-body-size);
  font-weight: var(--aha-text-card-body-weight);
  line-height: var(--aha-text-card-body-line);
}

.aha-program__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--aha-size-eyebrow);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--aha-navy);
}

.aha-program__link i {
  transition: transform 0.25s ease;
}

.aha-program:hover .aha-program__link i {
  transform: translateX(4px);
}

/* ---------- Trust ---------- */
.aha-trust__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
}

.aha-trust__item {
  padding: 12px 20px;
}

.aha-trust__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  color: var(--aha-gold);
}

.aha-trust__icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.4;
}

.aha-trust__item h3 {
  font-family: var(--aha-text-card-title-family);
  font-size: var(--aha-text-card-title-size);
  font-weight: var(--aha-text-card-title-weight);
  line-height: var(--aha-text-card-title-line);
  color: var(--aha-navy);
  margin: 0 0 10px;
}

.aha-trust__item p {
  margin: 0;
  color: var(--aha-muted);
  font-size: var(--aha-text-card-body-size);
  font-weight: var(--aha-text-card-body-weight);
  line-height: var(--aha-text-card-body-line);
}

/* ---------- Stories ---------- */
.aha-stories {
  background: var(--aha-navy);
  color: var(--aha-white);
  overflow: hidden;
}

.aha-stories .aha-section__head h2 {
  color: var(--aha-white);
}

.aha-stories .aha-section__head p {
  color: rgba(255, 255, 255, 0.7);
}

.aha-stories__viewport {
  position: relative;
}

.aha-stories__track {
  display: flex;
  gap: 24px;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.aha-story {
  flex: 0 0 calc((100% - 48px) / 3);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  min-height: 300px;
}

.aha-story__stars {
  color: var(--aha-gold);
  font-size: var(--aha-size-small);
  letter-spacing: 2px;
  margin-bottom: 18px;
}

.aha-story__quote {
  flex: 1;
  font-family: var(--aha-text-quote-family);
  font-size: var(--aha-text-quote-size);
  font-style: italic;
  font-weight: var(--aha-text-quote-weight);
  line-height: var(--aha-text-quote-line);
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 28px;
}

.aha-story__author {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
}

.aha-story__author img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--aha-gold);
}

.aha-story__author strong {
  display: block;
  font-size: var(--aha-size-small);
  font-weight: 600;
  font-style: normal;
}

.aha-story__author span {
  display: block;
  font-size: var(--aha-size-eyebrow);
  font-weight: 400;
  color: var(--aha-gold-soft);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.aha-stories__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 36px;
}

.aha-stories__btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: var(--aha-white);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.aha-stories__btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--aha-gold);
}

.aha-stories__dots {
  display: flex;
  gap: 8px;
}

.aha-stories__dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.aha-stories__dots button.is-active {
  background: var(--aha-gold);
  transform: scale(1.25);
}

/* ---------- Impact ---------- */
.aha-impact {
  position: relative;
  background: var(--aha-white);
  overflow: hidden;
}

.aha-impact__map {
  position: absolute;
  inset: 0;
  background: url('../images/map-background.png') center / 90% no-repeat;
  opacity: 0.28;
  pointer-events: none;
}

.aha-impact__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.aha-impact__item strong {
  display: block;
  font-family: var(--aha-text-display-num-family);
  font-size: var(--aha-text-display-num-size);
  font-weight: var(--aha-text-display-num-weight);
  color: var(--aha-navy);
  line-height: var(--aha-text-display-num-line);
  margin-bottom: 10px;
}

.aha-impact__item span {
  display: block;
  font-size: var(--aha-size-small);
  color: var(--aha-muted);
  max-width: 180px;
  margin-inline: auto;
  line-height: var(--aha-line-small);
}

/* ---------- CTA banner ---------- */
.aha-cta {
  background: linear-gradient(135deg, var(--aha-navy-deep) 0%, var(--aha-navy) 55%, var(--aha-navy-soft) 100%);
  color: var(--aha-white);
  text-align: center;
  padding: 72px 0;
  position: relative;
  overflow: hidden;
}

.aha-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(196, 163, 90, 0.18), transparent 45%);
  pointer-events: none;
}

.aha-cta__inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin-inline: auto;
}

.aha-cta__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 18px;
  color: var(--aha-gold);
}

.aha-cta__icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.4;
}

.aha-cta h2 {
  font-family: var(--aha-text-cta-family);
  font-size: var(--aha-text-cta-size);
  font-weight: var(--aha-text-cta-weight);
  margin: 0 0 14px;
  color: var(--aha-white);
}

.aha-cta p {
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.78);
  font-family: var(--aha-text-lead-family);
  font-size: var(--aha-text-lead-size);
  font-weight: 400;
  line-height: var(--aha-text-lead-line);
}

/* ---------- Footer ---------- */
.aha-footer {
  background: var(--aha-navy-deep);
  color: rgba(255, 255, 255, 0.78);
  padding: 64px 0 0;
}

.aha-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 48px;
}

.aha-footer__brand img {
  height: 48px;
  width: auto;
  margin-bottom: 16px;
}

.aha-footer__brand p {
  margin: 0;
  font-size: var(--aha-text-muted-size);
  font-weight: var(--aha-text-muted-weight);
  line-height: var(--aha-text-muted-line);
  max-width: 240px;
  color: rgba(255, 255, 255, 0.65);
}

.aha-footer h4 {
  font-family: var(--aha-text-footer-heading-family);
  font-size: var(--aha-text-footer-heading-size);
  font-weight: var(--aha-text-footer-heading-weight);
  letter-spacing: var(--aha-text-footer-heading-letter);
  text-transform: var(--aha-text-footer-heading-transform);
  color: var(--aha-white);
  margin: 0 0 18px;
}

.aha-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.aha-footer li {
  margin-bottom: 10px;
}

.aha-footer a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-size: var(--aha-text-footer-link-size);
  font-weight: var(--aha-text-footer-link-weight);
  transition: color 0.2s ease;
}

.aha-footer a:hover {
  color: var(--aha-gold-soft);
}

.aha-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.aha-footer__social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--aha-white);
  font-size: 14px;
}

.aha-footer__social a:hover {
  border-color: var(--aha-gold);
  color: var(--aha-gold);
  background: rgba(196, 163, 90, 0.12);
}

.aha-footer__copy {
  font-size: var(--aha-size-eyebrow);
  color: rgba(255, 255, 255, 0.45);
  margin: 0;
}

.aha-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.aha-footer__bottom a {
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- Motion helpers ---------- */
@keyframes aha-kenburns {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.08);
  }
}

/* ---------- Go top ---------- */
body.aha-site .go-top {
  background: var(--aha-navy) !important;
  border-color: var(--aha-navy) !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .aha-stats__bar {
    grid-template-columns: 1fr 1fr;
  }

  .aha-stat:nth-child(3) {
    border-left: none;
  }

  .aha-stat:nth-child(odd) {
    border-left: none;
  }

  .aha-stat:nth-child(even) {
    border-left: 1px solid var(--aha-line);
  }

  .aha-story {
    flex: 0 0 calc((100% - 24px) / 2);
  }

  .aha-impact__grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px 24px;
  }

  .aha-footer__grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .aha-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .aha-nav {
    display: none;
  }

  .aha-header__actions .aha-btn--outline {
    display: none;
  }

  .aha-menu-toggle {
    display: inline-flex;
  }

  .aha-header.is-open .aha-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 100%;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    background: var(--aha-white);
    border-bottom: 1px solid var(--aha-line);
    box-shadow: var(--aha-shadow);
    padding: 12px 24px 24px;
    gap: 0;
  }

  .aha-header.is-open .aha-nav > li > a {
    padding: 14px 4px;
    border-bottom: 1px solid var(--aha-line);
  }

  .aha-header.is-open .aha-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0 0 8px 12px;
    min-width: 0;
  }

  .aha-header.is-open .aha-nav__mobile-cta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
    padding-top: 8px;
  }

  .aha-nav__mobile-cta {
    display: none;
  }

  .aha-programs__grid,
  .aha-trust__grid {
    grid-template-columns: 1fr;
  }

  .aha-logo img {
    height: 72px;
  }
}

@media (max-width: 640px) {
  .aha-container {
    width: min(100% - 32px, var(--aha-container));
  }

  .aha-hero {
    min-height: 78svh;
  }

  .aha-hero__content {
    padding: 56px 0 100px;
  }

  .aha-stats {
    margin-top: -40px;
  }

  .aha-stats__bar {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .aha-stat,
  .aha-stat + .aha-stat,
  .aha-stat:nth-child(even) {
    border-left: none;
    border-top: 1px solid var(--aha-line);
    justify-content: flex-start;
    padding: 14px 8px;
  }

  .aha-stat:first-child {
    border-top: none;
  }

  .aha-section {
    padding: 64px 0;
  }

  .aha-story {
    flex: 0 0 100%;
  }

  .aha-impact__grid {
    grid-template-columns: 1fr;
  }

  .aha-footer__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .aha-hero__ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .aha-hero__ctas .aha-btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .aha-hero__media img,
  .aha-stories__track {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}

/* ========== Inner pages ========== */

.aha-page-hero {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  color: var(--aha-white);
  overflow: hidden;
  background: var(--aha-navy-deep);
}

.aha-page-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.aha-page-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  display: block;
}

.aha-page-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(105deg, rgba(4, 31, 66, 0.92) 0%, rgba(4, 31, 66, 0.75) 50%, rgba(4, 31, 66, 0.55) 100%);
}

.aha-page-hero__content {
  position: relative;
  z-index: 2;
  padding: 72px 0 56px;
  max-width: 720px;
}

.aha-page-hero__eyebrow {
  margin: 0 0 12px;
  font-family: var(--aha-text-eyebrow-family);
  font-size: var(--aha-text-eyebrow-size);
  font-weight: var(--aha-text-eyebrow-weight);
  letter-spacing: var(--aha-text-eyebrow-letter);
  text-transform: var(--aha-text-eyebrow-transform);
  color: var(--aha-gold-soft);
}

.aha-page-hero h1 {
  margin: 0 0 14px;
  font-family: var(--aha-text-page-hero-family);
  font-size: var(--aha-text-page-hero-size);
  font-weight: var(--aha-text-page-hero-weight);
  line-height: var(--aha-text-page-hero-line);
  letter-spacing: var(--aha-text-page-hero-letter);
  color: var(--aha-white);
}

.aha-page-hero p {
  margin: 0;
  max-width: 540px;
  font-family: var(--aha-text-lead-family);
  font-size: var(--aha-text-lead-size);
  font-weight: var(--aha-text-lead-weight);
  color: rgba(255, 255, 255, 0.85);
  line-height: var(--aha-text-lead-line);
}

.aha-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 18px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.65);
}

.aha-breadcrumb a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}

.aha-breadcrumb a:hover {
  color: var(--aha-gold-soft);
}

.aha-breadcrumb span {
  opacity: 0.5;
}

.aha-prose {
  max-width: 760px;
}

.aha-prose h2,
.aha-prose h3 {
  font-family: var(--aha-h2-family);
  color: var(--aha-navy);
  font-weight: var(--aha-h2-weight);
  line-height: 1.2;
}

.aha-prose h2 {
  font-size: var(--aha-text-prose-h2-size);
  margin: 0 0 16px;
}

.aha-prose h3 {
  font-size: var(--aha-text-prose-h3-size);
  margin: 28px 0 12px;
}

.aha-prose p,
.aha-prose li {
  color: var(--aha-muted);
  font-size: var(--aha-text-paragraph-size);
  font-weight: var(--aha-text-paragraph-weight);
  line-height: var(--aha-text-paragraph-line);
}

.aha-prose p {
  margin: 0 0 16px;
}

.aha-prose ul {
  margin: 0 0 20px;
  padding-left: 1.2em;
}

.aha-prose a {
  color: var(--aha-navy);
  font-weight: var(--aha-text-link-weight);
}

.aha-prose a:hover {
  color: var(--aha-gold-dark);
}

.aha-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.aha-split__media {
  border-radius: var(--aha-radius);
  overflow: hidden;
  box-shadow: var(--aha-shadow);
}

.aha-split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 320px;
}

.aha-course-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.aha-course-card {
  background: var(--aha-white);
  border-radius: var(--aha-radius);
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(6, 44, 91, 0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.aha-course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(6, 44, 91, 0.14);
}

.aha-course-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.aha-course-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.aha-course-card:hover .aha-course-card__media img {
  transform: scale(1.04);
}

.aha-course-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.aha-course-card__body h3 {
  margin: 0 0 10px;
  font-family: var(--aha-text-card-title-family);
  font-size: var(--aha-text-card-title-size);
  font-weight: var(--aha-text-card-title-weight);
  color: var(--aha-navy);
  line-height: var(--aha-text-card-title-line);
}

.aha-course-card__body p {
  margin: 0 0 20px;
  color: var(--aha-muted);
  font-size: var(--aha-text-card-body-size);
  font-weight: var(--aha-text-card-body-weight);
  line-height: var(--aha-text-card-body-line);
  flex: 1;
}

.aha-course-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.aha-course-card__actions .aha-btn {
  padding: 10px 18px;
  font-size: 12px;
}

.aha-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 48px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.aha-contact-card {
  text-align: center;
  padding: 32px 24px;
  background: var(--aha-bg);
  border-radius: var(--aha-radius);
}

.aha-contact-card__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  color: var(--aha-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.aha-contact-card h3 {
  margin: 0 0 8px;
  font-family: var(--aha-h4-family);
  font-size: var(--aha-h4-size);
  font-weight: var(--aha-h4-weight);
  color: var(--aha-navy);
}

.aha-contact-card p,
.aha-contact-card a {
  margin: 0;
  color: var(--aha-muted);
  text-decoration: none;
  font-size: var(--aha-text-card-body-size);
  line-height: var(--aha-text-card-body-line);
}

.aha-contact-card a:hover {
  color: var(--aha-navy);
}

.aha-form-status {
  margin: 0 0 20px;
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 15px;
  line-height: 1.4;
}

.aha-form-status--banner {
  max-width: 860px;
  margin: 0 auto 28px;
  text-align: center;
  font-weight: 600;
}

.aha-form-status--success {
  background: #e8f5e9;
  color: #1b5e20;
  border: 1px solid #a5d6a7;
}

.aha-form-status--error {
  background: #fdecea;
  color: #8a1c14;
  border: 1px solid #f5c6cb;
}

.aha-form__captcha {
  min-height: 78px;
}

.aha-form__captcha iframe {
  max-width: 100%;
}

.aha-form {
  background: var(--aha-white);
  border: 1px solid var(--aha-line);
  border-radius: var(--aha-radius);
  padding: 36px;
  box-shadow: 0 8px 30px rgba(6, 44, 91, 0.06);
}

.aha-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 24px;
}

.aha-form__grid--full {
  grid-template-columns: 1fr;
}

.aha-form__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.aha-form__field--full {
  grid-column: 1 / -1;
}

.aha-form label {
  font-size: var(--aha-text-form-label-size);
  font-weight: var(--aha-text-form-label-weight);
  color: var(--aha-navy);
  letter-spacing: 0.02em;
}

.aha-form input,
.aha-form select,
.aha-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--aha-line);
  border-radius: 8px;
  font-family: var(--aha-text-body-family);
  font-size: var(--aha-text-form-input-size);
  font-weight: var(--aha-text-form-input-weight);
  color: var(--aha-ink);
  background: var(--aha-white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.aha-form input:focus,
.aha-form select:focus,
.aha-form textarea:focus {
  outline: none;
  border-color: var(--aha-navy);
  box-shadow: 0 0 0 3px rgba(6, 44, 91, 0.1);
}

.aha-form textarea {
  min-height: 140px;
  resize: vertical;
}

.aha-form__dob {
  display: flex;
  gap: 8px;
}

.aha-form__dob select {
  flex: 1;
}

.aha-form__panel {
  background: var(--aha-navy);
  color: var(--aha-white);
  border-radius: var(--aha-radius);
  padding: 28px;
}

.aha-form__panel label {
  color: var(--aha-white);
}

.aha-form__panel input,
.aha-form__panel select {
  background: rgba(255, 255, 255, 0.96);
}

.aha-form__panel p,
.aha-form__panel .aha-form__note {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  line-height: 1.55;
}

.aha-form__panel a {
  color: var(--aha-gold-soft);
}

.aha-form__check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 12px 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.88);
}

.aha-form__check input {
  width: auto;
  margin-top: 4px;
}

.aha-form__fee {
  text-align: right;
  margin-bottom: 24px;
}

.aha-form__fee strong {
  display: block;
  font-family: var(--aha-text-course-title-family);
  font-size: var(--aha-text-course-title-size);
  color: var(--aha-navy);
  font-weight: var(--aha-text-course-title-weight);
}

.aha-form__fee span {
  color: var(--aha-muted);
  font-size: 0.9rem;
}

.aha-enroll-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.aha-course-detail {
  display: grid;
  grid-template-columns: 1.5fr 0.85fr;
  gap: 40px;
  align-items: start;
}

/* Desktop: keep Enroll + Courses list visible while scrolling */
.aha-course-sticky {
  position: sticky;
  top: calc(var(--aha-header-h) + 16px);
  z-index: 2;
}

.aha-course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin: 0 0 28px;
  padding: 16px 20px;
  background: var(--aha-bg);
  border-radius: 10px;
}

.aha-course-meta span {
  font-size: 14px;
  color: var(--aha-muted);
}

.aha-course-meta strong {
  color: var(--aha-navy);
  font-weight: 600;
}

.aha-feature-img {
  border-radius: var(--aha-radius);
  overflow: hidden;
  margin-bottom: 28px;
  box-shadow: var(--aha-shadow);
}

.aha-feature-img img {
  width: 100%;
  display: block;
}

.aha-learn-list {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.aha-learn-list li {
  position: relative;
  padding: 12px 16px 12px 42px;
  background: var(--aha-bg);
  border-radius: 8px;
  color: var(--aha-ink);
  font-size: 0.95rem;
}

.aha-learn-list li::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--aha-gold);
}

.aha-syllabus {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: syllabus;
}

.aha-syllabus li {
  counter-increment: syllabus;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--aha-line);
}

.aha-syllabus li:last-child {
  border-bottom: none;
}

.aha-syllabus__num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(196, 163, 90, 0.15);
  color: var(--aha-gold-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.aha-syllabus__num::before {
  content: counter(syllabus);
}

.aha-syllabus h4 {
  margin: 0 0 4px;
  font-size: 1.05rem;
  color: var(--aha-navy);
  font-weight: 600;
}

.aha-syllabus p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--aha-muted);
  line-height: 1.5;
}

.aha-sidebar-card {
  background: var(--aha-bg);
  border-radius: var(--aha-radius);
  padding: 24px;
  margin-bottom: 24px;
}

.aha-sidebar-card h3 {
  margin: 0 0 16px;
  font-family: var(--aha-h4-family);
  font-size: var(--aha-h4-size);
  font-weight: var(--aha-h4-weight);
  color: var(--aha-navy);
}

.aha-pathways {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 1;
  gap: 8px;
}

.aha-pathways li {
  padding: 6px 0;
  font-size: 0.9rem;
  color: var(--aha-muted);
  border-bottom: 1px solid rgba(6, 44, 91, 0.06);
}

.aha-course-sticky .aha-sidebar-card {
  margin-bottom: 12px;
}

.aha-course-sticky .aha-sidebar-card:last-child {
  margin-bottom: 0;
  padding: 16px 18px;
}

.aha-course-sticky .aha-sidebar-card:last-child h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.aha-course-nav h4 {
  margin: 0 0 4px;
  font-family: var(--aha-font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--aha-gold-dark);
}

.aha-course-nav h4:not(:first-child) {
  margin-top: 10px;
}

.aha-course-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.aha-course-nav a,
.aha-course-nav .is-current {
  display: block;
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 0.8rem;
  line-height: 1.25;
  color: var(--aha-navy);
  text-decoration: none;
  transition: color 0.2s ease;
}

.aha-course-nav a:hover {
  color: var(--aha-gold-dark);
}

.aha-course-nav .is-current {
  position: relative;
  padding-left: 18px;
  font-weight: 600;
  color: var(--aha-navy);
  pointer-events: none;
}

.aha-course-nav .is-current::before {
  content: '\f061'; /* Font Awesome arrow-right */
  font-family: FontAwesome;
  font-weight: 400;
  font-size: 0.7em;
  position: absolute;
  left: 2px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--aha-gold-dark);
}

.aha-legal {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 0 80px;
}

.aha-legal h1 {
  font-family: var(--aha-h1-family);
  font-size: var(--aha-h1-size);
  font-weight: var(--aha-h1-weight);
  line-height: var(--aha-h1-line);
  color: var(--aha-navy);
  margin: 0 0 24px;
}

.aha-teaser-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.aha-teaser {
  position: relative;
  border-radius: var(--aha-radius);
  overflow: hidden;
  min-height: 280px;
  display: flex;
  align-items: flex-end;
  text-decoration: none;
  color: var(--aha-white);
  box-shadow: var(--aha-shadow);
}

.aha-teaser img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.aha-teaser:hover img {
  transform: scale(1.05);
}

.aha-teaser__body {
  position: relative;
  z-index: 1;
  padding: 28px;
  background: linear-gradient(transparent, rgba(4, 31, 66, 0.9));
  width: 100%;
}

.aha-teaser__body h3 {
  margin: 0 0 8px;
  font-family: var(--aha-text-feature-title-family);
  font-size: var(--aha-text-feature-title-size);
  font-weight: var(--aha-text-feature-title-weight);
}

.aha-teaser__body p {
  margin: 0;
  font-size: var(--aha-text-card-body-size);
  color: rgba(255, 255, 255, 0.85);
}

.aha-nav a.is-active {
  color: var(--aha-gold-dark);
}

@media (max-width: 1024px) {
  .aha-split,
  .aha-course-detail,
  .aha-enroll-layout,
  .aha-contact-grid {
    grid-template-columns: 1fr;
  }

  .aha-course-sticky {
    position: static;
  }
}

@media (max-width: 740px) {
  .aha-course-grid,
  .aha-teaser-grid,
  .aha-form__grid {
    grid-template-columns: 1fr;
  }

  .aha-page-hero {
    min-height: 260px;
  }

  .aha-form {
    padding: 24px 18px;
  }

  .aha-form__panel {
    padding: 22px 18px;
  }
}

/* ========== Floating Leave a Message chat ========== */

.aha-chat {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1200;
  font-family: var(--aha-text-body-family);
}

.aha-chat__launcher {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border: none;
  border-radius: 999px;
  background: var(--aha-navy);
  color: var(--aha-white);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(6, 44, 91, 0.28);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.aha-chat__launcher:hover {
  background: var(--aha-navy-soft);
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(6, 44, 91, 0.32);
}

.aha-chat__launcher-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--aha-gold-soft);
}

.aha-chat.is-open .aha-chat__launcher {
  display: none;
}

.aha-chat__panel {
  display: none;
  flex-direction: column;
  width: min(360px, calc(100vw - 32px));
  height: min(480px, calc(100vh - 100px));
  background: var(--aha-white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(6, 44, 91, 0.22);
  border: 1px solid rgba(6, 44, 91, 0.08);
}

.aha-chat.is-open .aha-chat__panel {
  display: flex;
  animation: aha-chat-in 0.28s ease;
}

@keyframes aha-chat-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.aha-chat__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  background: linear-gradient(135deg, var(--aha-navy-deep), var(--aha-navy));
  color: var(--aha-white);
}

.aha-chat__head-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.aha-chat__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(196, 163, 90, 0.2);
  border: 2px solid var(--aha-gold);
  color: var(--aha-gold-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
}

.aha-chat__head h3 {
  margin: 0;
  font-family: var(--aha-h5-family);
  font-size: var(--aha-h5-size);
  font-weight: var(--aha-h5-weight);
  line-height: var(--aha-h5-line);
}

.aha-chat__head p {
  margin: 2px 0 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

.aha-chat__close {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--aha-white);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.aha-chat__close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.aha-chat__messages {
  flex: 1;
  overflow-y: auto;
  padding: 18px 16px;
  background: var(--aha-bg);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.aha-chat__bubble {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.45;
  word-wrap: break-word;
}

.aha-chat__bubble--bot {
  align-self: flex-start;
  background: var(--aha-white);
  color: var(--aha-ink);
  border: 1px solid var(--aha-line);
  border-bottom-left-radius: 4px;
}

.aha-chat__bubble--user {
  align-self: flex-end;
  background: var(--aha-navy);
  color: var(--aha-white);
  border-bottom-right-radius: 4px;
}

.aha-chat__bubble--typing {
  align-self: flex-start;
  background: var(--aha-white);
  border: 1px solid var(--aha-line);
  color: var(--aha-muted);
  font-size: 13px;
  padding: 10px 16px;
}

.aha-chat__compose {
  padding: 12px 14px 14px;
  background: var(--aha-white);
  border-top: 1px solid var(--aha-line);
  display: grid;
  gap: 8px;
}

.aha-chat__compose input[type="email"],
.aha-chat__compose input[type="text"] {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--aha-line);
  border-radius: 8px;
  font-family: inherit;
  font-size: 13px;
  color: var(--aha-ink);
}

.aha-chat__compose input[type="email"]:focus,
.aha-chat__compose input[type="text"]:focus {
  outline: none;
  border-color: var(--aha-navy);
}

.aha-chat__compose input.is-invalid,
.aha-chat__compose textarea.is-invalid {
  border-color: #c0392b;
}

.aha-chat__row {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

.aha-chat__compose textarea {
  flex: 1;
  min-height: 96px;
  max-height: 160px;
  padding: 10px 12px;
  border: 1px solid var(--aha-line);
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  color: var(--aha-ink);
  resize: vertical;
  line-height: 1.4;
}

.aha-chat__compose textarea:focus {
  outline: none;
  border-color: var(--aha-navy);
}

.aha-chat__send {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 10px;
  background: var(--aha-gold);
  color: var(--aha-navy-deep);
  cursor: pointer;
  flex-shrink: 0;
  font-size: 16px;
  transition: background 0.2s ease;
}

.aha-chat__send:hover {
  background: var(--aha-gold-soft);
}

.aha-chat__send:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

@media (max-width: 480px) {
  .aha-chat {
    right: 12px;
    bottom: 12px;
  }

  .aha-chat__launcher span.aha-chat__launcher-label {
    display: none;
  }

  .aha-chat__launcher {
    width: 56px;
    height: 56px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }

  .aha-chat__panel {
    width: calc(100vw - 24px);
    height: min(70vh, 520px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .aha-chat.is-open .aha-chat__panel {
    animation: none;
  }
}
