/* Floating contact hub. Dark glass to match the homepage command deck. */
.chub-fab {
  position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 80;
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 12px 10px 16px;
  font: 700 .92rem/1 var(--font-body, system-ui); color: #03110d; cursor: pointer;
  background: linear-gradient(100deg, #b5ffd7, #7fe7ff); border: 0; border-radius: 99px;
  box-shadow: 0 18px 50px -12px rgba(127, 231, 255, .7), 0 0 0 1px rgba(255, 255, 255, .25) inset;
  opacity: 0; transform: translateY(20px) scale(.96); pointer-events: none;
  transition: opacity .35s cubic-bezier(.22, 1, .36, 1), transform .35s cubic-bezier(.22, 1, .36, 1), box-shadow .2s;
}
.chub-fab.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.chub-fab:hover { box-shadow: 0 22px 60px -10px rgba(127, 231, 255, .95), 0 0 0 1px rgba(255, 255, 255, .35) inset; }
.chub-fab:focus-visible { outline: 3px solid #eafff5; outline-offset: 3px; }
.chub-fab-dot { position: relative; width: 9px; height: 9px; border-radius: 50%; background: #04281c; }
.chub-fab-dot::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid #04281c; opacity: .5; }
@media (prefers-reduced-motion: no-preference) { .chub-fab-dot::after { animation: chub-ping 1.8s cubic-bezier(0, 0, .2, 1) infinite; } }
@keyframes chub-ping { 80%, 100% { transform: scale(1.8); opacity: 0; } }
.chub-kbd { font: 600 .66rem/1 var(--font-mono, monospace); padding: 5px 7px; border-radius: 6px; background: rgba(3, 17, 13, .14); }
@media (pointer: coarse) { .chub-kbd { display: none; } }

.chub {
  position: fixed; inset: auto max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) auto; margin: 0;
  width: min(420px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; background: transparent; color: #eefaf5; overflow: visible;
}
.chub::backdrop { background: rgba(2, 7, 10, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.chub[open] .chub-panel { animation: chub-in .35s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes chub-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
@media (prefers-reduced-motion: reduce) { .chub[open] .chub-panel { animation: none; } }
.chub-panel {
  max-height: calc(100dvh - 32px); overflow: auto; padding: 18px; border-radius: 22px;
  background: linear-gradient(180deg, rgba(14, 32, 38, .97), rgba(5, 13, 17, .98));
  border: 1px solid rgba(181, 255, 215, .22);
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .9), 0 0 80px -30px rgba(127, 231, 255, .35);
}
.chub-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 14px; }
.chub-live { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font: 600 .62rem/1.2 var(--font-mono, monospace); letter-spacing: .12em; text-transform: uppercase; color: #b5ffd7; }
.chub-live i { width: 7px; height: 7px; border-radius: 50%; background: #b5ffd7; box-shadow: 0 0 12px #b5ffd7; }
.chub h2 { margin: 0; font: 600 1.35rem/1.15 var(--font-body, system-ui); letter-spacing: -.03em; color: #fff; }
.chub-x, .chub-copy, .chub-back { display: inline-flex; align-items: center; gap: 6px; color: #cfe7df; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); cursor: pointer; font: 600 .78rem/1 var(--font-body, system-ui); }
.chub-x { padding: 8px; border-radius: 10px; }
.chub-x:hover, .chub-copy:hover, .chub-back:hover { background: rgba(181, 255, 215, .12); color: #fff; }
.chub-view { display: grid; gap: 8px; }
.chub-view[hidden] { display: none; }
.chub-act {
  display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 12px; width: 100%; padding: 12px; text-align: left;
  color: #eefaf5; text-decoration: none; cursor: pointer; font: inherit;
  background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .08); border-radius: 14px;
  transition: background .2s, border-color .2s, transform .2s cubic-bezier(.22, 1, .36, 1);
}
.chub-act:hover { background: rgba(181, 255, 215, .08); border-color: rgba(181, 255, 215, .35); transform: translateX(2px); }
.chub-act strong { display: block; font-size: .96rem; font-weight: 600; color: #fff; }
.chub-act small { display: block; margin-top: 3px; font-size: .78rem; color: #93aca5; overflow-wrap: anywhere; }
.chub-act b { color: #b5ffd7; font-weight: 600; }
.chub-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: #b5ffd7; background: rgba(181, 255, 215, .08); border: 1px solid rgba(181, 255, 215, .18); }
.chub-act--hero { background: linear-gradient(100deg, rgba(181, 255, 215, .16), rgba(127, 231, 255, .12)); border-color: rgba(181, 255, 215, .4); }
.chub-act--hero .chub-ico { color: #03110d; background: linear-gradient(100deg, #b5ffd7, #7fe7ff); border: 0; }
.chub-act--ghost { background: transparent; }
.chub-split { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.chub-split .chub-act { grid-template-columns: 40px 1fr; }
.chub-mailrow { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.chub-mailrow .chub-act { grid-template-columns: 40px 1fr; }
.chub-copy { padding: 0 14px; border-radius: 14px; }
.chub-copy.is-ok { color: #03110d; background: #b5ffd7; border-color: #b5ffd7; }
.chub-back { justify-self: start; padding: 7px 10px 7px 6px; border-radius: 99px; }
.chub-form { display: grid; gap: 10px; }
.chub-form label { display: grid; gap: 6px; }
.chub-form label > span { font: 600 .66rem/1 var(--font-mono, monospace); letter-spacing: .1em; text-transform: uppercase; color: #93aca5; }
.chub-form input, .chub-form textarea { width: 100%; padding: 12px 13px; font: inherit; font-size: 1rem; color: #fff; background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .1); border-radius: 10px; resize: vertical; }
.chub-form input:focus, .chub-form textarea:focus { outline: none; border-color: rgba(127, 231, 255, .65); box-shadow: 0 0 0 3px rgba(127, 231, 255, .15); }
.chub-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.chub-send { height: 50px; border: 0; border-radius: 12px; cursor: pointer; font: 700 .98rem/1 var(--font-body, system-ui); color: #03110d; background: linear-gradient(100deg, #b5ffd7, #7fe7ff); box-shadow: 0 12px 40px -12px rgba(127, 231, 255, .7); }
.chub-send:disabled { opacity: .7; cursor: progress; }
.chub-form [data-form-status] { margin: 0; font-size: .88rem; color: #d9f5ea; }
.chub-form .form-status--error { color: #ffb4b4; }
.chub-form .form-status--error a, .chub-form .thanks-panel a:not(.btn) { color: #b5ffd7; }
.chub-form .thanks-panel-next { padding-left: 1.1rem; font-size: .8rem; color: #a9c0b9; }
.chub-form .thanks-panel .btn-secondary { color: #eefaf5; border-color: rgba(255, 255, 255, .3); }
.chub-form.is-submitted > label, .chub-form.is-submitted > .chub-row, .chub-form.is-submitted > .chub-send { display: none; }
.chub-foot { margin: 14px 2px 0; font-size: .74rem; color: #6f8a84; }
.chub a:focus-visible, .chub button:focus-visible { outline: 2px solid #7fe7ff; outline-offset: 2px; }
/* Phones get one sticky action: the mobile bar, whose message button opens this hub. */
@media (max-width: 768px) { body:has(.mobile-cta) .chub-fab { display: none; } }
@media (max-width: 520px) {
  .chub { inset: auto 8px max(8px, env(safe-area-inset-bottom)) 8px; width: auto; }
  .chub-row { grid-template-columns: 1fr; }
  .chub-fab-label { font-size: .88rem; }
}
@media (max-width: 520px) {
  .chub-copy span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .chub-copy { padding: 0 16px; }
  .chub-act small { overflow-wrap: normal; }
}
