/* Growth Assistant: pop-up chat. Uses the brand tokens from styles.css; square corners like the ticket and stamp buttons. */
.ga-launch { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 70; display: inline-flex; align-items: center; gap: .6rem; min-height: 52px; padding: 0 1.1rem 0 .9rem;
  border: 0; background: var(--ink); color: var(--chalk); font: 600 .8rem/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; cursor: pointer;
  box-shadow: 0 14px 30px -10px rgb(10 9 32 / .55), inset 0 0 0 1px var(--line-on-ink); transition: transform .25s var(--ease), background .2s; }
.ga-launch:hover { background: var(--safety); transform: translateY(-2px); }
.ga-launch-icon { position: relative; width: 22px; height: 18px; border: 2px solid currentColor; flex: none; }
.ga-launch-icon::after { content: ""; position: absolute; left: 3px; bottom: -7px; border: 5px solid transparent; border-top-color: currentColor; border-left-color: currentColor; }
.ga-launch-icon::before { content: ""; position: absolute; right: -6px; top: -6px; width: 9px; height: 9px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 2px var(--ink); }
.ga-launch:hover .ga-launch-icon::before { box-shadow: 0 0 0 2px var(--safety); }
.ga-open .ga-launch { background: var(--safety); }

.ga-teaser { position: fixed; right: 1.25rem; bottom: 5.1rem; z-index: 70; max-width: 15rem; padding: .75rem .9rem; border: 1px solid var(--line); background: var(--chalk); color: var(--ink);
  font: 500 .9rem/1.35 var(--font-body); text-align: left; cursor: pointer; box-shadow: 0 14px 30px -14px rgb(10 9 32 / .45); animation: ga-pop .35s var(--ease) both; }
.ga-teaser::after { content: ""; position: absolute; right: 1.6rem; bottom: -8px; width: 14px; height: 14px; background: var(--chalk); border: solid var(--line); border-width: 0 1px 1px 0; transform: rotate(45deg); }

.ga-panel { position: fixed; right: 1.25rem; bottom: 5.25rem; z-index: 71; width: min(24rem, calc(100vw - 2.5rem)); height: min(38rem, calc(100dvh - 7.5rem));
  display: flex; flex-direction: column; background: var(--paper); color: var(--ink); box-shadow: 0 30px 70px -20px rgb(10 9 32 / .6), 0 0 0 1px var(--line); animation: ga-pop .3s var(--ease) both; }
.ga-panel[hidden] { display: none; }
.ga-head { display: flex; align-items: center; gap: .85rem; padding: .9rem 1rem; background: var(--hero-gradient); color: var(--chalk); }
.ga-mark { width: 30px; height: 30px; flex: none; margin: 0 .2rem; color: var(--chalk); --mark-accent: #9C9AFF; }
.ga-head p { margin: 0; }
.ga-kicker { font: 500 .7rem/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--safety-hot); }
.ga-title { font: 800 1.35rem/1.1 var(--font-display); text-transform: uppercase; margin-top: .25rem !important; }
.ga-close { margin-left: auto; position: relative; width: 44px; height: 44px; border: 0; background: none; color: inherit; cursor: pointer; }
.ga-close::before, .ga-close::after { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 2px; margin: -1px 0 0 -9px; background: currentColor; transform: rotate(45deg); }
.ga-close::after { transform: rotate(-45deg); }

.ga-log { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 1rem; display: flex; flex-direction: column; gap: .65rem; }
.ga-msg { max-width: 88%; padding: .7rem .85rem; font: 400 .93rem/1.45 var(--font-body); word-wrap: break-word; animation: ga-in .25s var(--ease) both; }
.ga-msg ul { margin: .45rem 0; padding-left: 1.1rem; }
.ga-msg li + li { margin-top: .3rem; }
.ga-msg a { color: var(--safety-2); font-weight: 600; }
.ga-msg--bot { align-self: flex-start; background: var(--chalk); border: 1px solid var(--line); border-left: 3px solid var(--safety); }
.ga-msg--user { align-self: flex-end; background: var(--safety); color: #fff; }
.ga-typing { display: flex; gap: .3rem; padding: .85rem 1rem; }
.ga-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--steel); animation: ga-dot 1s infinite; }
.ga-typing span:nth-child(2) { animation-delay: .15s; }
.ga-typing span:nth-child(3) { animation-delay: .3s; }

.ga-chips { display: flex; flex-wrap: wrap; gap: .45rem; padding: 0 1rem .75rem; }
.ga-chips:empty { display: none; }
.ga-chip { min-height: 36px; display: inline-flex; align-items: center; padding: .45rem .7rem; border: 1px solid var(--safety); background: var(--chalk); color: var(--safety-2);
  font: 500 .74rem/1.1 var(--font-mono); letter-spacing: .04em; text-decoration: none; cursor: pointer; transition: background .2s, color .2s; }
.ga-chip:hover { background: var(--safety); color: #fff; }

.ga-form { display: flex; border-top: 1px solid var(--line); background: var(--chalk); }
.ga-form input { flex: 1; min-width: 0; min-height: 52px; padding: 0 1rem; border: 0; background: none; color: var(--ink); font: 400 1rem var(--font-body); }
.ga-form input:focus-visible { outline: none; }
.ga-form:focus-within { box-shadow: inset 0 0 0 2px var(--safety); }
.ga-send { position: relative; width: 52px; flex: none; border: 0; background: var(--safety); color: #fff; cursor: pointer; }
.ga-send::before { content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; margin: -5px 0 0 -7px; border: solid currentColor; border-width: 2px 2px 0 0; transform: rotate(45deg); }
.ga-send::after { content: ""; position: absolute; left: 50%; top: 50%; width: 15px; height: 2px; margin: -1px 0 0 -9px; background: currentColor; }
.ga-send:hover { background: var(--accent-bright); }
.ga-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@keyframes ga-pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@keyframes ga-in { from { opacity: 0; transform: translateY(6px); } }
@keyframes ga-dot { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }

/* Phones and tablets: sit above the sticky "Get a free audit" bar */
@media (max-width: 900px) {
  .ga-launch { bottom: calc(56px + .9rem); right: 1rem; min-height: 48px; }
  .ga-panel { bottom: calc(56px + 4.6rem); right: 1rem; width: min(24rem, calc(100vw - 2rem)); height: min(34rem, calc(100dvh - 56px - 9rem)); }
}
/* Phones: the chat takes the whole screen */
@media (max-width: 600px) {
  .ga-launch-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ga-launch { width: 52px; height: 52px; padding: 0; justify-content: center; }
  .ga-panel { inset: 0; width: auto; height: auto; animation: none; }
  .ga-open .ga-launch, .ga-open .mobile-cta { display: none; }
  .ga-open { overflow: hidden; }
}
