/* ================================================================
   GeoSift — Mobile / Field Mode (Solar Pack)
   375x812 baseline · iPhone 13/14/15 · dark mode only
   Inherits visual system from styles.css (desktop)
   ================================================================ */

:root {
  /* surfaces — same as desktop */
  --bg:        #0F172A;
  --bg-2:      #0B1220;
  --surface:   #1E293B;
  --surface-2: #172033;
  --surface-3: #243049;
  --border:    #334155;
  --border-soft: #2A3650;
  --border-strong: #475569;

  /* text */
  --text:      #F1F5F9;
  --text-2:    #CBD5E1;
  --text-mute: #94A3B8;
  --text-dim:  #64748B;

  /* accents */
  --emerald-700: #047857;
  --emerald-600: #059669;
  --emerald-500: #10B981;
  --emerald-400: #34D399;
  --cyan-500:    #06B6D4;
  --cyan-400:    #22D3EE;
  --amber:       #F59E0B;
  --amber-400:   #FBBF24;
  --rust:        #DC2626;
  --sky:         #0EA5E9;
  --violet:      #8B5CF6;

  /* gradients */
  --grad-ai: linear-gradient(135deg, #10B981 0%, #06B6D4 100%);
  --grad-ai-soft: linear-gradient(135deg, rgba(16,185,129,.18) 0%, rgba(6,182,212,.18) 100%);

  /* radii */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 12px;
  --r-xl: 16px;
  --r-2xl: 20px;

  /* type */
  --font-display: "Geist", "Geist Sans", "Inter", system-ui, -apple-system, sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #000;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;     /* outdoor readability */
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
  overscroll-behavior: none;
}

button {
  background: transparent;
  border: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
input { font: inherit; color: inherit; background: transparent; border: 0; outline: 0; }

/* ============================== STAGE ============================== */
/* The stage simulates an iPhone frame so the mockup is reviewable in
   any viewport. Centered in dark void. On a real phone the stage and
   bezel disappear via the @media (max-width: 420px) override below. */

.stage {
  width: 100%;
  height: 100vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse at center, #0a0f1c 0%, #000 80%);
  padding: 24px;
}

.phone {
  position: relative;
  width: 375px;
  height: 812px;
  border-radius: 48px;
  background: #000;
  box-shadow:
    0 0 0 10px #18181b,
    0 0 0 11px #3f3f46,
    0 60px 120px rgba(0,0,0,.8),
    0 30px 60px rgba(0,0,0,.5);
  overflow: hidden;
}

/* iOS notch / dynamic island fake */
.phone::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 32px;
  background: #000;
  border-radius: 999px;
  z-index: 100;
  pointer-events: none;
}

/* iOS status bar (time + battery) */
.status-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 47px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 50;
  pointer-events: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: #fff;
  letter-spacing: -0.01em;
}
.status-bar .time {
  padding-top: 14px;
}
.status-bar .indicators {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding-top: 14px;
}
.status-bar .indicators svg { display: block; color: #fff; }

/* On real mobile devices, drop the bezel */
@media (max-width: 420px) {
  .stage { padding: 0; height: 100vh; height: 100dvh; }
  .phone {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    border-radius: 0;
    box-shadow: none;
  }
  .phone::before { display: none; }
  .status-bar { display: none; }
}

/* ============================== APP CANVAS ============================== */

.app {
  position: absolute;
  inset: 0;
  background: var(--bg-2);
  overflow: hidden;
}

/* ============================== MAP (full bleed) ============================== */

.map {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.map svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* subtle vignette + atmosphere */
.map::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 30%, transparent 30%, rgba(0,0,0,.45) 100%),
    radial-gradient(ellipse at 50% 90%, rgba(0,0,0,.55) 0%, transparent 50%);
}

/* you-are-here pulse */
.you-are-here {
  position: absolute;
  top: 44%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 28px;
  height: 28px;
  z-index: 4;
  pointer-events: none;
}
.you-are-here .core {
  position: absolute;
  inset: 8px;
  border-radius: 999px;
  background: var(--emerald-400);
  border: 2px solid #fff;
  box-shadow: 0 0 16px rgba(16,185,129,.7), 0 2px 4px rgba(0,0,0,.4);
}
.you-are-here .ring {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--emerald-500);
  opacity: .5;
  animation: hereRing 2.4s ease-out infinite;
}
.you-are-here .ring.delay { animation-delay: 1.2s; }
@keyframes hereRing {
  0%   { transform: scale(.4); opacity: .55; }
  80%  { transform: scale(2.2); opacity: 0; }
  100% { transform: scale(2.2); opacity: 0; }
}

.you-label {
  position: absolute;
  top: calc(44% + 22px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--emerald-400);
  background: rgba(15,23,42,.7);
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(16,185,129,.32);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  white-space: nowrap;
  pointer-events: none;
}

/* ============================== TOP STATUS BAR ============================== */

.topbar {
  position: absolute;
  top: 47px;          /* below iOS status bar */
  left: 0; right: 0;
  z-index: 20;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: linear-gradient(180deg, rgba(15,23,42,.7) 0%, rgba(15,23,42,.4) 70%, transparent 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.topbar-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.topbar-right {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px 0 8px;
  background: rgba(15,23,42,.7);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
}
.brand-pill .brand-mark {
  width: 22px;
  height: 22px;
  filter: drop-shadow(0 0 6px rgba(16,185,129,.4));
}
.brand-pill .brand-word {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.015em;
  color: var(--text);
}

.pack-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px 0 8px;
  background: rgba(245,158,11,.14);
  border: 1px solid rgba(245,158,11,.32);
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: -0.005em;
  color: var(--amber-400);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.pack-pill svg { color: var(--amber-400); }
.pack-pill .caret { color: rgba(251,191,36,.6); }

/* offline status */
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 12px;
  background: rgba(15,23,42,.7);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
  letter-spacing: -0.005em;
}
.status-chip .pulse-dot {
  width: 8px; height: 8px;
  border-radius: 999px;
  background: var(--amber);
  box-shadow: 0 0 8px rgba(245,158,11,.7);
  position: relative;
}
.status-chip .pulse-dot::before {
  content: "";
  position: absolute; inset: -3px;
  border-radius: 999px;
  border: 1.5px solid rgba(245,158,11,.5);
  animation: hereRing 2s ease-out infinite;
}
.status-chip .label { color: var(--amber-400); font-weight: 600; }
.status-chip .meta { color: var(--text-mute); font-size: 11px; }
.status-chip .dot-sep { color: var(--text-dim); }

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: linear-gradient(135deg, #1E293B 0%, #475569 100%);
  border: 1px solid var(--border-strong);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--text);
  display: inline-grid;
  place-items: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
}

/* ============================== RIGHT-SIDE FLOATING CONTROLS ============================== */

.map-ctrls {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ctrl {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  background: rgba(15,23,42,.72);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  color: var(--text);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 6px 16px rgba(0,0,0,.4), 0 1px 0 rgba(255,255,255,.04) inset;
  transition: background-color 200ms ease, transform 150ms ease;
}
.ctrl:active { transform: scale(.94); background: rgba(36,48,73,.85); }
.ctrl.active {
  background: rgba(16,185,129,.18);
  border-color: rgba(16,185,129,.45);
  color: var(--emerald-400);
}

/* ============================== HOUSE / PROPERTY MARKERS ============================== */

.house {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  transform: translate(-50%, -50%);
}
.house .badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 26px;
  padding: 0 8px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: -0.02em;
  color: #fff;
  border: 1.5px solid rgba(15,23,42,.7);
  box-shadow: 0 3px 8px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.08) inset;
  font-variant-numeric: tabular-nums;
  position: relative;
}
.house .badge::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 8px; height: 8px;
  background: inherit;
  border-right: 1.5px solid rgba(15,23,42,.7);
  border-bottom: 1.5px solid rgba(15,23,42,.7);
  z-index: -1;
}
.house .badge.high   { background: var(--emerald-600); }
.house .badge.high::after { background: var(--emerald-600); }
.house .badge.med    { background: #D97706; }
.house .badge.med::after  { background: #D97706; }
.house .badge.low    { background: #B91C1C; }
.house .badge.low::after  { background: #B91C1C; }

.house.selected {
  z-index: 5;
}
.house.selected .badge {
  font-size: 15px;
  min-width: 44px;
  height: 32px;
  border: 2px solid #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,.6), 0 0 0 4px rgba(16,185,129,.25), 0 0 24px rgba(16,185,129,.4);
}
.house.selected .badge::after { border-color: #fff; }

.house .halo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(16,185,129,.35) 0%, rgba(16,185,129,0) 70%);
  pointer-events: none;
  animation: pulseHalo 2.4s ease-in-out infinite;
}
@keyframes pulseHalo {
  0%, 100% { opacity: .65; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 1;   transform: translate(-50%, -50%) scale(1.15); }
}

/* ============================== BOTTOM SHEET ============================== */

.sheet {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 96px;       /* leaves thumb-zone visible (mic + camera below) */
  z-index: 12;
  background: rgba(15,23,42,.88);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-xl) var(--r-xl) var(--r-xl) var(--r-xl);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow:
    0 -10px 40px rgba(0,0,0,.55),
    0 -2px 8px rgba(0,0,0,.3),
    0 1px 0 rgba(255,255,255,.04) inset;
  padding: 8px 16px 14px;
}

.sheet-handle {
  display: block;
  width: 40px;
  height: 4px;
  border-radius: 999px;
  background: var(--border-strong);
  margin: 2px auto 10px;
  opacity: .85;
}

.sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}
.sheet-title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.sheet-title .pin {
  width: 22px; height: 22px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 999px;
  background: rgba(16,185,129,.16);
  color: var(--emerald-400);
}
.sheet-title h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.015em;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sheet-close {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 999px;
  color: var(--text-mute);
  background: rgba(255,255,255,.04);
  flex-shrink: 0;
}
.sheet-close:active { background: rgba(255,255,255,.08); }

.sheet-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 8px;
  font-size: 13px;
  color: var(--text-mute);
  letter-spacing: -0.005em;
  margin-bottom: 12px;
  padding-left: 30px;
}
.sheet-meta .dot-sep { color: var(--text-dim); }

/* score row */
.sheet-score {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: linear-gradient(135deg, rgba(16,185,129,.10) 0%, rgba(6,182,212,.06) 100%);
  border: 1px solid rgba(16,185,129,.22);
  border-radius: var(--r-lg);
  margin-bottom: 12px;
}
.score-num {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--emerald-400);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.score-body { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.score-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.score-val { display: inline-flex; align-items: center; gap: 8px; }
.score-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 22px;
  padding: 0 8px;
  background: rgba(16,185,129,.18);
  border: 1px solid rgba(16,185,129,.45);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--emerald-400);
  font-family: var(--font-display);
}
.score-pill svg { color: var(--emerald-400); }
.score-bar {
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  overflow: hidden;
}
.score-bar > span {
  display: block;
  height: 100%;
  width: 87%;
  background: linear-gradient(90deg, var(--emerald-500), var(--cyan-500));
  border-radius: 999px;
}

.sheet-actions {
  display: flex;
  gap: 8px;
}
.btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  transition: transform 150ms ease, background-color 200ms ease;
  border: 1px solid transparent;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  background: var(--emerald-600);
  color: white;
  box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 6px 14px rgba(5,150,105,.3);
}
.btn-primary:active { background: var(--emerald-500); }
.btn-ghost {
  background: rgba(255,255,255,.05);
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:active { background: var(--surface-3); }

/* ============================== THUMB-ZONE BOTTOM ROW ============================== */

.thumbzone {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 22px;
  z-index: 14;
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.btn-mic {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  height: 64px;
  border-radius: 999px;
  background: var(--grad-ai);
  color: #fff;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  box-shadow:
    0 10px 30px rgba(16,185,129,.45),
    0 4px 12px rgba(6,182,212,.3),
    0 1px 0 rgba(255,255,255,.2) inset;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  transition: transform 150ms ease;
}
.btn-mic:active { transform: scale(.97); }
.btn-mic .mic-icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.25);
  flex-shrink: 0;
  position: relative;
}
.btn-mic .mic-icon::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,.35);
  opacity: .6;
  animation: micPulse 2.2s ease-out infinite;
}
@keyframes micPulse {
  0%   { transform: scale(.85); opacity: .55; }
  80%  { transform: scale(1.4); opacity: 0; }
  100% { transform: scale(1.4); opacity: 0; }
}
.btn-mic .mic-text { display: flex; flex-direction: column; line-height: 1.15; }
.btn-mic .mic-text small {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: .85;
  margin-top: 2px;
}

.btn-cam {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(15,23,42,.88);
  border: 1px solid var(--border);
  color: var(--text);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 24px rgba(0,0,0,.5), 0 1px 0 rgba(255,255,255,.06) inset;
  flex-shrink: 0;
  transition: transform 150ms ease;
}
.btn-cam:active { transform: scale(.94); }

/* ============================== AI MODAL (mobile-ai.html) ============================== */

.modal-shade {
  position: absolute;
  inset: 0;
  z-index: 60;
  background: rgba(8, 12, 20, .55);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  display: flex;
  flex-direction: column;
}

.modal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 60px 18px 0;
}
.modal-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--emerald-400);
}
.modal-cancel {
  font-size: 15px;
  color: var(--text-2);
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 500;
}
.modal-title {
  padding: 8px 24px 0;
  text-align: center;
}
.modal-title h1 {
  margin: 6px 0 0;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--text);
}
.modal-title p {
  margin: 6px 0 0;
  font-size: 13.5px;
  color: var(--text-mute);
  letter-spacing: -0.005em;
}

/* listening indicator */
.listening {
  flex: 1;
  display: grid;
  place-items: center;
  position: relative;
  padding: 0 24px;
}
.listening-orb {
  width: 200px;
  height: 200px;
  border-radius: 999px;
  position: relative;
  display: grid;
  place-items: center;
}
.orb-glow {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--grad-ai);
  filter: blur(40px);
  opacity: .7;
  animation: orbGlow 3.4s ease-in-out infinite;
}
@keyframes orbGlow {
  0%, 100% { transform: scale(1);    opacity: .55; }
  50%      { transform: scale(1.15); opacity: .85; }
}
.orb-core {
  position: relative;
  width: 116px;
  height: 116px;
  border-radius: 999px;
  background: var(--grad-ai);
  box-shadow:
    0 0 60px rgba(16,185,129,.6),
    0 0 0 6px rgba(15,23,42,.6),
    0 0 0 1px rgba(255,255,255,.1) inset;
  display: grid;
  place-items: center;
  animation: orbCore 1.2s ease-in-out infinite;
}
@keyframes orbCore {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.06); }
}
.orb-core svg { color: #fff; }
.orb-ring {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 1.5px solid rgba(16,185,129,.35);
  animation: orbRing 2.6s ease-out infinite;
}
.orb-ring.r2 { animation-delay: .8s; }
.orb-ring.r3 { animation-delay: 1.6s; }
@keyframes orbRing {
  0%   { transform: scale(.6); opacity: .8; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* equalizer bars under the orb */
.eq {
  position: absolute;
  bottom: 56px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: flex-end;
  gap: 5px;
  height: 32px;
}
.eq span {
  display: block;
  width: 4px;
  border-radius: 999px;
  background: var(--grad-ai);
  opacity: .85;
  animation: eqBar 1.1s ease-in-out infinite;
}
.eq span:nth-child(1) { height: 14px; animation-delay: .00s; }
.eq span:nth-child(2) { height: 22px; animation-delay: .12s; }
.eq span:nth-child(3) { height: 30px; animation-delay: .04s; }
.eq span:nth-child(4) { height: 18px; animation-delay: .22s; }
.eq span:nth-child(5) { height: 26px; animation-delay: .08s; }
.eq span:nth-child(6) { height: 14px; animation-delay: .18s; }
.eq span:nth-child(7) { height: 24px; animation-delay: .02s; }
.eq span:nth-child(8) { height: 18px; animation-delay: .14s; }
.eq span:nth-child(9) { height: 12px; animation-delay: .20s; }
@keyframes eqBar {
  0%, 100% { transform: scaleY(.4); }
  50%      { transform: scaleY(1.05); }
}

/* transcript */
.transcript {
  padding: 0 24px 18px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--text);
  font-weight: 500;
}
.transcript .said { color: var(--text); }
.transcript .pending { color: var(--text-mute); }
.transcript .caret-blink {
  display: inline-block;
  width: 2px;
  height: 22px;
  background: var(--emerald-400);
  vertical-align: -3px;
  margin-left: 2px;
  animation: caretBlink 1s steps(2) infinite;
}
@keyframes caretBlink {
  0%, 50% { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}

/* fallback text input bar */
.fallback {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 18px 18px;
  padding: 6px 6px 6px 16px;
  background: rgba(15,23,42,.7);
  border: 1px solid var(--border);
  border-radius: 999px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.fallback input {
  flex: 1;
  font-size: 15px;
  color: var(--text);
  height: 44px;
}
.fallback input::placeholder { color: var(--text-mute); }
.fallback .send {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--grad-ai);
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 4px 12px rgba(16,185,129,.35);
}

/* big mic at bottom */
.modal-mic-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 24px 36px;
}
.modal-mic-btn {
  width: 76px;
  height: 76px;
  border-radius: 999px;
  background: var(--grad-ai);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow:
    0 16px 40px rgba(16,185,129,.55),
    0 4px 12px rgba(6,182,212,.3),
    0 0 0 1px rgba(255,255,255,.18) inset;
  position: relative;
}
.modal-mic-btn::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 999px;
  border: 2px solid rgba(16,185,129,.35);
  animation: hereRing 2s ease-out infinite;
}
.modal-side-btn {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: rgba(15,23,42,.7);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--text-2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ============================== UTILITY ============================== */

.demo-link {
  position: fixed;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-mute);
  background: rgba(15,23,42,.7);
  border: 1px solid var(--border-soft);
  padding: 6px 12px;
  border-radius: 999px;
  text-decoration: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: auto;
}
.demo-link:hover { color: var(--emerald-400); border-color: rgba(16,185,129,.32); }
@media (max-width: 420px) {
  .demo-link { display: none; }
}
