.hg-ai-hub-page #type-feature-page {
  margin-top: 0 !important;
}

.hg-ai-hub {
  --hg-ai-ink: #18262f;
  --hg-ai-muted: #53616b;
  --hg-ai-line: #dde7e8;
  --hg-ai-green: #1d9771;
  --hg-ai-blue: #1866b4;
  --hg-ai-orange: #f27a24;
  --hg-ai-red: #c3232f;
  --hg-ai-teal: #0d7377;
  color: var(--hg-ai-ink);
  background: #fff;
}

/* /chat is an app/OS hub. Let the shared shell own the page surface and carry
   this nested legacy hero to the same framed edge and wave used by /plan. */
body.hg-site-shell--app .hg-ai-hub {
  background: transparent;
}

body.hg-site-shell--app
  .hg-site-shell-content > #type-feature-page > .hg-ai-hub > .hg-site-shell-hero-edge {
  width: auto;
  height: 480px;
  min-height: 480px;
  margin:
    calc(var(--hg-shell-edge) - var(--hg-shell-content-pad) - 10px)
    calc(var(--hg-shell-edge) - var(--hg-shell-content-pad))
    0;
  overflow: hidden;
  border-radius:
    calc(var(--hg-shell-radius) - var(--hg-shell-edge))
    calc(var(--hg-shell-radius) - var(--hg-shell-edge))
    0 0;
}

body.hg-site-shell--app .hg-ai-hero-inner {
  min-height: 480px;
  padding-top: 58px;
  padding-bottom: 54px;
}

body.hg-site-shell--app
  .hg-site-shell-content > #type-feature-page > .hg-ai-hub > .hg-site-shell-hero-wave {
  position: relative;
  z-index: 3;
  width: auto;
  margin:
    -32px
    calc(var(--hg-shell-edge) - var(--hg-shell-content-pad))
    0;
  color: var(--hg-shell-hero-surface);
  line-height: 0;
  pointer-events: none;
}

.hg-ai-hub a {
  text-decoration: none;
}

.hg-ai-hero {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background-color: #12313d;
  background-position: center;
  background-size: cover;
  color: #fff;
}

.hg-ai-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 28, 35, 0.9) 0%, rgba(9, 28, 35, 0.74) 44%, rgba(9, 28, 35, 0.34) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.12));
  z-index: 1;
}

.hg-ai-back {
  position: absolute;
  top: 18px;
  left: clamp(16px, 4vw, 46px);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.24);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.hg-ai-back:hover,
.hg-ai-back:focus {
  background: rgba(0, 0, 0, 0.38);
  color: #fff;
}

.hg-ai-hero .hgos-hero-add {
  min-height: 44px;
}

.hg-ai-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(310px, 0.75fr);
  gap: 36px;
  align-items: center;
  max-width: 1160px;
  min-height: 560px;
  margin: 0 auto;
  padding: 86px 16px 54px;
}

.hg-ai-hero-copy {
  max-width: 720px;
}

.hg-ai-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  color: var(--hg-ai-green);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hg-ai-hero .hg-ai-kicker {
  color: #a5f0d0;
}

.hg-ai-hero h1 {
  max-width: 760px;
  margin: 0 0 16px;
  color: #fff !important;
  font-size: 50px;
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: 0;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.42);
}

.hg-ai-hero-lede {
  max-width: 690px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 20px;
  line-height: 1.58;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.34);
}

.hg-ai-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hg-ai-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 17px;
  border: 2px solid transparent;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.hg-ai-btn:hover,
.hg-ai-btn:focus {
  transform: translateY(-2px);
  text-decoration: none;
}

.hg-ai-btn-primary {
  background: #117457;
  color: #fff;
  box-shadow: 0 8px 22px rgba(29, 151, 113, 0.28);
}

.hg-ai-btn-primary:hover,
.hg-ai-btn-primary:focus {
  background: #0c5e46;
  color: #fff;
}

.hg-ai-btn-secondary {
  border-color: rgba(255, 255, 255, 0.76);
  background: rgba(6, 32, 31, 0.58);
  color: #fff;
  box-shadow: none;
}

.hg-ai-btn-secondary:hover,
.hg-ai-btn-secondary:focus {
  background: rgba(6, 32, 31, 0.78);
  color: #fff;
}

.hg-ai-btn-light {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.hg-ai-btn-light:hover,
.hg-ai-btn-light:focus {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.hg-ai-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 18px 0 0;
}

.hg-ai-trust span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  background: rgba(3, 18, 20, 0.58);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.hg-ai-preview {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--hg-ai-ink);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.32);
}

.hg-ai-preview-top {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 14px;
  border-bottom: 1px solid #dce6e8;
  background: #f4f8f7;
}

.hg-ai-preview-top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #c8d3d5;
}

.hg-ai-preview-top span:nth-child(1) {
  background: var(--hg-ai-red);
}

.hg-ai-preview-top span:nth-child(2) {
  background: var(--hg-ai-orange);
}

.hg-ai-preview-top span:nth-child(3) {
  background: var(--hg-ai-green);
}

.hg-ai-preview-top strong {
  margin-left: 5px;
  color: #26343a;
  font-size: 13px;
}

.hg-ai-preview-body {
  padding: 18px;
}

.hg-ai-preview-prompt,
.hg-ai-preview-answer {
  margin: 0 0 12px;
  border-radius: 8px;
  padding: 13px 14px;
  font-size: 14px;
  line-height: 1.5;
}

.hg-ai-preview-prompt {
  margin-left: 34px;
  background: #e9f4ff;
  color: #17344d;
}

.hg-ai-preview-answer {
  margin-right: 18px;
  border: 1px solid #dce8df;
  background: #f6fbf8;
  color: #2d3a33;
}

.hg-ai-preview-answer p {
  margin: 5px 0 0;
  color: #40504a;
}

.hg-ai-preview-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.hg-ai-preview-links span {
  display: inline-flex;
  padding: 6px 9px;
  border-radius: 8px;
  background: #edf2f2;
  color: #53616b;
  font-size: 12px;
  font-weight: 800;
}

.hg-ai-aff {
  max-width: 1160px;
  margin: 12px auto 0;
}

.hg-ai-aff .hg-aff-text {
  color: #304b45;
}

.hg-ai-aff .hg-aff-text a {
  color: #304b45 !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hg-ai-section {
  max-width: 1160px;
  margin: 34px auto 0;
  padding: 0 16px;
}

.hg-ai-section-intro {
  margin-top: 28px;
}

.hg-ai-section-head {
  max-width: 760px;
  margin: 0 0 18px;
}

.hg-ai-section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  max-width: none;
}

.hg-ai-section-head h2,
.hg-ai-search-copy h2,
.hg-ai-note h2,
.hg-ai-final-cta h2 {
  margin: 0 0 8px;
  color: var(--hg-ai-ink);
  font-size: 30px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0;
}

.hg-ai-section-head p,
.hg-ai-search-copy p,
.hg-ai-note-copy p,
.hg-ai-final-cta p {
  margin: 0;
  color: var(--hg-ai-muted);
  font-size: 16px;
  line-height: 1.58;
}

.hg-ai-section-head-row > p {
  max-width: 440px;
}

.hg-ai-path-grid,
.hg-ai-card-grid,
.hg-ai-smart-grid,
.hg-ai-island-grid {
  display: grid;
  gap: 16px;
}

.hg-ai-path-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hg-ai-path {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-height: 158px;
  padding: 18px;
  border: 1px solid var(--hg-ai-line);
  border-radius: 8px;
  background: #fff;
  color: var(--hg-ai-ink);
  box-shadow: 0 8px 24px rgba(18, 40, 48, 0.06);
}

.hg-ai-path:hover,
.hg-ai-path:focus,
.hg-ai-smart:hover,
.hg-ai-smart:focus,
.hg-ai-island:hover,
.hg-ai-island:focus {
  border-color: #b9d7cc;
  box-shadow: 0 12px 28px rgba(18, 40, 48, 0.1);
  text-decoration: none;
}

.hg-ai-path i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #ecf8f3;
  color: var(--hg-ai-green);
  font-size: 18px;
}

.hg-ai-path strong,
.hg-ai-smart strong,
.hg-ai-island strong {
  color: var(--hg-ai-ink);
  font-size: 18px;
  line-height: 1.24;
}

.hg-ai-path span,
.hg-ai-smart span,
.hg-ai-island span {
  color: var(--hg-ai-muted);
  font-size: 14px;
  line-height: 1.45;
}

.hg-ai-card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hg-ai-card {
  position: relative;
  display: flex;
  min-height: 100%;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid var(--hg-ai-line);
  border-radius: 8px;
  background: #fff;
  color: inherit;
  box-shadow: 0 8px 24px rgba(18, 40, 48, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.hg-ai-card:hover,
.hg-ai-card:focus {
  transform: translateY(-3px);
  border-color: #bdd8d0;
  box-shadow: 0 14px 32px rgba(18, 40, 48, 0.12);
  text-decoration: none;
}

.hg-ai-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #eef4f4;
}

.hg-ai-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 8px;
  background: #117457;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hg-ai-badge-orange {
  background: #b94700;
}

.hg-ai-badge-blue {
  background: #15558f;
}

.hg-ai-badge-teal {
  background: rgba(13, 115, 119, 0.94);
}

.hg-ai-badge-red {
  background: #a91f2b;
}

.hg-ai-badge-gray {
  background: rgba(55, 65, 81, 0.9);
}

.hg-ai-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.hg-ai-card-body h3 {
  margin: 0 0 8px;
  color: var(--hg-ai-ink);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.22;
}

.hg-ai-card-body p {
  flex: 1;
  margin: 0;
  color: var(--hg-ai-muted);
  font-size: 15px;
  line-height: 1.55;
}

.hg-ai-card-cta {
  display: inline-flex;
  align-items: center;
  margin-top: 14px;
  color: #006a4b;
  font-size: 14px;
  font-weight: 900;
}

.hg-ai-card-cta::after {
  content: "\00a0\00bb";
}

.hg-ai-smart-section {
  padding-top: 26px;
  padding-bottom: 30px;
  background: linear-gradient(180deg, #f5fbf9 0%, #fff 100%);
  border-top: 1px solid #edf3f3;
  border-bottom: 1px solid #edf3f3;
  max-width: none;
}

.hg-ai-smart-section > .hg-ai-section-head,
.hg-ai-smart-section > .hg-ai-smart-grid {
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
}

.hg-ai-smart-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hg-ai-smart {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 4px 12px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--hg-ai-line);
  border-radius: 8px;
  background: #fff;
  color: inherit;
}

.hg-ai-smart i {
  grid-row: span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #eef7ff;
  color: var(--hg-ai-blue);
  font-size: 18px;
}

.hg-ai-search-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1.1fr);
  gap: 24px;
  align-items: center;
  padding: 24px 16px;
  border: 1px solid #dce8e9;
  border-radius: 8px;
  background: #173642;
  color: #fff;
}

.hg-ai-search-copy h2,
.hg-ai-search-copy p {
  color: #fff;
}

.hg-ai-search-copy p {
  opacity: 0.88;
}

.hg-ai-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.hg-ai-search-form input {
  min-height: 48px;
  width: 100%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 12px 14px;
  color: #17252c;
  font-size: 15px;
}

.hg-ai-search-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  padding: 12px 16px;
  background: var(--hg-ai-orange);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
}

.hg-ai-island-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hg-ai-island {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 164px;
  padding: 18px;
  border: 1px solid var(--hg-ai-line);
  border-radius: 8px;
  background: #fff;
  color: inherit;
  box-shadow: 0 8px 24px rgba(18, 40, 48, 0.06);
}

.hg-ai-island i {
  font-size: 32px;
  line-height: 1;
}

.hg-ai-island-oahu i {
  color: var(--hg-ai-orange);
}

.hg-ai-island-maui i {
  color: var(--hg-ai-blue);
}

.hg-ai-island-kauai i {
  color: var(--hg-ai-green);
}

.hg-ai-island-big i {
  color: var(--hg-ai-red);
}

.hg-ai-note {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--hg-ai-line);
}

.hg-ai-note-copy p + p {
  margin-top: 12px;
}

.hg-ai-note-copy a {
  color: var(--hg-ai-blue);
  font-weight: 800;
}

.hg-ai-final-cta {
  margin-bottom: 40px;
  padding: 28px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(24, 102, 180, 0.9), rgba(29, 151, 113, 0.9)),
    url("https://cdn.hawaiiguide.io/images/jcogs_img/cache/explore-hawaii-2025_-_abcdef_-_e38cbb61b8e06a74b06f63a8c203f073e31856a7.jpg") center/cover;
  color: #fff;
  text-align: center;
}

.hg-ai-final-cta h2,
.hg-ai-final-cta p {
  color: #fff;
}

.hg-ai-final-cta p {
  max-width: 620px;
  margin: 0 auto 18px;
  opacity: 0.92;
}

.hg-ai-final-cta .hg-ai-actions {
  justify-content: center;
}

@media (max-width: 980px) {
  body.hg-site-shell--app .hg-ai-preview {
    display: none;
  }

  .hg-ai-hero-inner {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .hg-ai-preview {
    max-width: 520px;
  }

  .hg-ai-path-grid,
  .hg-ai-island-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hg-ai-card-grid,
  .hg-ai-smart-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hg-ai-search-section,
  .hg-ai-note {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body.hg-site-shell--app
    .hg-site-shell-content > #type-feature-page > .hg-ai-hub > .hg-site-shell-hero-edge {
    height: auto;
    min-height: 520px;
  }

  body.hg-site-shell--app .hg-ai-hero-inner {
    min-height: 520px;
    padding-top: 68px;
    padding-bottom: 50px;
  }

  body.hg-site-shell--app
    .hg-site-shell-content > #type-feature-page > .hg-ai-hub > .hg-site-shell-hero-wave {
    margin-top: -24px;
  }

  .hg-ai-hero {
    min-height: 0;
  }

  .hg-ai-hero-inner {
    min-height: 0;
    padding: 82px 16px 34px;
  }

  .hg-ai-hero h1 {
    font-size: 34px;
  }

  .hg-ai-hero-lede {
    font-size: 17px;
  }

  .hg-ai-actions,
  .hg-ai-search-form {
    flex-direction: column;
    grid-template-columns: 1fr;
  }

  .hg-ai-btn,
  .hg-ai-search-form button {
    width: 100%;
  }

  .hg-ai-trust span {
    width: 100%;
  }

  .hg-ai-preview {
    display: none;
  }

  .hg-ai-section {
    margin-top: 28px;
  }

  .hg-ai-section-head-row {
    display: block;
  }

  .hg-ai-section-head-row > p {
    max-width: none;
  }

  .hg-ai-section-head h2,
  .hg-ai-search-copy h2,
  .hg-ai-note h2,
  .hg-ai-final-cta h2 {
    font-size: 25px;
  }

  .hg-ai-path-grid,
  .hg-ai-card-grid,
  .hg-ai-smart-grid,
  .hg-ai-island-grid {
    grid-template-columns: 1fr;
  }

  .hg-ai-path,
  .hg-ai-island {
    min-height: 0;
  }

  .hg-ai-smart {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .hg-ai-smart i {
    width: 38px;
    height: 38px;
  }

  .hg-ai-final-cta {
    padding: 24px 16px;
  }
}

/* ============================================================================
   AI-HUB EFFECTS (June 2026) — aurora hero, self-typing preview, button glow.
   /chat is the designated "fancy effects" surface; keep this look scoped
   here. Everything degrades to the static page under prefers-reduced-motion
   and without JS.
   ============================================================================ */

/* --- Aurora layer: three drifting gradient blobs, screen-blended over the
       hero photo. The blobs are soft radial gradients (no filter: blur, so
       no per-frame raster cost) and animate transform only. --- */
.hg-ai-aurora {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  mix-blend-mode: screen;
}
.hg-ai-aurora-blob {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}
.hg-ai-aurora-blob--teal {
  width: 64vw; height: 64vw;
  max-width: 980px; max-height: 980px;
  top: -34%; left: -14%;
  background: radial-gradient(circle at center, rgba(31, 151, 180, 0.55) 0%, rgba(31, 151, 180, 0.18) 38%, rgba(31, 151, 180, 0) 68%);
  animation: hg-ai-drift-a 26s ease-in-out infinite alternate;
}
.hg-ai-aurora-blob--green {
  width: 58vw; height: 58vw;
  max-width: 880px; max-height: 880px;
  bottom: -38%; right: -10%;
  background: radial-gradient(circle at center, rgba(29, 151, 113, 0.5) 0%, rgba(29, 151, 113, 0.16) 40%, rgba(29, 151, 113, 0) 68%);
  animation: hg-ai-drift-b 32s ease-in-out infinite alternate;
}
.hg-ai-aurora-blob--gold {
  width: 36vw; height: 36vw;
  max-width: 560px; max-height: 560px;
  top: 6%; right: 22%;
  background: radial-gradient(circle at center, rgba(240, 196, 26, 0.32) 0%, rgba(240, 196, 26, 0.1) 42%, rgba(240, 196, 26, 0) 66%);
  animation: hg-ai-drift-c 38s ease-in-out infinite alternate;
}
@keyframes hg-ai-drift-a {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(10vw, 9vh) scale(1.18); }
}
@keyframes hg-ai-drift-b {
  from { transform: translate(0, 0) scale(1.1); }
  to   { transform: translate(-9vw, -7vh) scale(0.94); }
}
@keyframes hg-ai-drift-c {
  from { transform: translate(0, 0) scale(0.92); }
  to   { transform: translate(-12vw, 10vh) scale(1.22); }
}
@media (prefers-reduced-motion: reduce) {
  .hg-ai-aurora-blob { animation: none; }
}

/* --- Self-typing preview card states (driven by the inline script) --- */
.hg-ai-preview-body { transition: opacity 0.32s ease; }
.hg-ai-preview-body.is-switching { opacity: 0; }

.hg-ai-preview-prompt { min-height: 44px; }
.hg-ai-preview-prompt.is-typing::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 2px;
  vertical-align: -2px;
  background: #17344d;
  animation: hg-ai-caret 0.8s steps(1) infinite;
}
@keyframes hg-ai-caret { 50% { opacity: 0; } }

.hg-ai-preview-answer,
.hg-ai-preview-links { transition: opacity 0.32s ease, transform 0.32s ease; }
.hg-ai-preview-answer.is-waiting,
.hg-ai-preview-links.is-waiting { opacity: 0; transform: translateY(6px); }

.hg-ai-preview-answer.is-thinking {
  position: relative;
  opacity: 1;
  transform: none;
  min-height: 58px;
}
.hg-ai-preview-answer.is-thinking strong,
.hg-ai-preview-answer.is-thinking p { visibility: hidden; }
.hg-ai-preview-answer.is-thinking::after {
  content: "\2022 \2022 \2022";
  position: absolute;
  top: 13px;
  left: 14px;
  color: #1D9771;
  font-size: 16px;
  letter-spacing: 3px;
  animation: hg-ai-dots 0.9s steps(1) infinite;
}
@keyframes hg-ai-dots {
  0%   { content: "\2022"; }
  33%  { content: "\2022 \2022"; }
  66%  { content: "\2022 \2022 \2022"; }
}

/* --- Primary CTA glow pulse (hero + final CTA) --- */
@media (prefers-reduced-motion: no-preference) {
  .hg-ai-btn-primary {
    animation: hg-ai-glow 3.8s ease-in-out infinite;
  }
  @keyframes hg-ai-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(94, 234, 212, 0); }
    50%      { box-shadow: 0 0 22px 2px rgba(94, 234, 212, 0.4); }
  }
}
