/* FT8AF — Android phone mockup + recreated app screens */

/* ───── Android device frame ───── */
.phone {
  --pw: 320px;
  --ph: 660px;
  width: var(--pw);
  height: var(--ph);
  border-radius: 42px;
  background: linear-gradient(160deg, #20262f, #0c0f15 55%);
  padding: 11px;
  box-shadow:
    0 40px 90px -30px rgba(0,0,0,0.85),
    0 0 0 1px rgba(255,255,255,0.05),
    inset 0 0 0 1.5px rgba(0,0,0,0.6);
  position: relative;
  flex-shrink: 0;
}
.phone::after {
  /* side buttons */
  content: '';
  position: absolute;
  right: -2px; top: 150px;
  width: 3px; height: 64px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, #2a313c, #161b22);
}
.phone-screen {
  width: 100%; height: 100%;
  border-radius: 32px;
  overflow: hidden;
  background: var(--bg-app);
  position: relative;
  display: flex;
  flex-direction: column;
}
.phone-screen::before {
  /* app ambient glow */
  content: '';
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(420px 220px at 100% 0%, rgba(255,175,94,0.06), transparent 55%),
    radial-gradient(360px 300px at 0% 100%, rgba(92,214,232,0.05), transparent 55%);
}
/* punch-hole camera + status bar */
.phone-statusbar {
  position: relative; z-index: 3;
  height: 38px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px;
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 600;
  color: var(--text);
}
.phone-statusbar .cam {
  position: absolute; left: 50%; top: 11px; transform: translateX(-50%);
  width: 9px; height: 9px; border-radius: 50%;
  background: #05070b; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.08);
}
.phone-statusbar .sb-right { display: flex; align-items: center; gap: 6px; color: var(--text); }
.phone-statusbar .sb-right svg { width: 15px; height: 15px; }

.phone-body { flex: 1; position: relative; z-index: 1; overflow: hidden; display: flex; flex-direction: column; }

/* ───── App top bar ───── */
.app-topbar {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 8px 18px 12px;
}
.app-topbar h1 { font-size: 23px; font-weight: 600; letter-spacing: -0.01em; }
.app-topbar .sub {
  font-size: 12px; color: var(--text-muted); margin-top: 3px;
  display: flex; align-items: center; gap: 7px; font-family: var(--font-mono);
}
.app-topbar .dot-live { color: var(--signal); display: inline-flex; align-items: center; gap: 5px; }
.app-topbar .dot-live::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--signal); box-shadow: 0 0 6px var(--signal);
}
.icon-btn {
  width: 34px; height: 34px; border-radius: 999px; flex-shrink: 0;
  background: rgba(148,163,184,0.08); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
}
.icon-btn svg { width: 17px; height: 17px; }

/* ───── Filter chips ───── */
.chips { display: flex; gap: 6px; padding: 0 14px 10px; overflow: hidden; }
.chip {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 11px; border-radius: 999px;
  border: 1px solid var(--border-strong); background: var(--bg-surface);
  color: var(--text-muted); font-size: 12.5px; font-weight: 500;
  white-space: nowrap;
}
.chip.active { border-color: var(--accent); background: rgba(255,175,94,0.12); color: var(--accent); }
.chip .ct {
  font-family: var(--font-mono); font-size: 10.5px;
  background: rgba(148,163,184,0.1); padding: 1px 6px; border-radius: 99px;
  color: var(--text-faint);
}
.chip.active .ct { background: rgba(255,175,94,0.2); color: var(--accent); }

/* ───── Decode rows ───── */
.decode-list { flex: 1; overflow: hidden; padding-bottom: 6px; }
.drow {
  margin: 0 12px 6px; padding: 11px 13px;
  border-radius: 14px; position: relative;
  border: 1px solid transparent;
}
.drow.cq { background: var(--bg-surface); border-color: var(--border); }
.drow.tome {
  background: linear-gradient(90deg, rgba(92,214,232,0.1), rgba(92,214,232,0.02));
  border-color: rgba(92,214,232,0.32);
}
.drow .accent-bar {
  position: absolute; left: 0; top: 13px; bottom: 13px; width: 3px;
  border-radius: 0 2px 2px 0;
}
.drow .r-head { display: flex; align-items: center; gap: 9px; margin-bottom: 4px; }
.drow .tag {
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  letter-spacing: 0.08em; white-space: nowrap;
}
.drow .call {
  font-family: var(--font-mono); font-size: 16.5px; font-weight: 600;
  color: var(--text); letter-spacing: 0.01em;
}
.drow .grid { font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); }
.drow .spacer { flex: 1; }
.drow .r-meta {
  display: flex; align-items: center; gap: 9px;
  font-size: 11.5px; color: var(--text-muted);
  font-family: var(--font-mono); white-space: nowrap;
}
.drow .r-meta .sep { color: var(--text-dim); }
.drow .r-meta .t { color: var(--text-faint); }
.drow .r-loc {
  margin-top: 6px; font-size: 11.5px; color: var(--text-muted);
  display: flex; align-items: center; gap: 6px;
}
.drow .r-loc svg { width: 11px; height: 11px; color: var(--text-faint); }

/* signal bars */
.sig { display: inline-flex; align-items: flex-end; gap: 2px; height: 11px; }
.sig i { width: 3px; border-radius: 1px; background: rgba(148,163,184,0.18); display: block; }
.sig i.on { box-shadow: 0 0 4px currentColor; }
.sig i:nth-child(1){height:4px} .sig i:nth-child(2){height:6px}
.sig i:nth-child(3){height:8px} .sig i:nth-child(4){height:9px} .sig i:nth-child(5){height:11px}

/* mini status pill in screen */
.spill {
  display: inline-flex; align-items: center; gap: 5px;
  height: 18px; padding: 0 7px; border-radius: 99px;
  font-family: var(--font-mono); font-size: 9.5px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.spill .d { width: 5px; height: 5px; border-radius: 50%; }

/* ───── TX strip + tab bar ───── */
.tx-strip {
  display: flex; align-items: center; justify-content: space-between;
  padding: 7px 16px; border-top: 1px solid var(--border);
  background: var(--bg-surface);
  font-family: var(--font-mono); font-size: 11.5px; color: var(--text-muted);
}
.tx-strip .live { display: inline-flex; align-items: center; gap: 7px; }
.tx-strip .live b { color: var(--text); font-weight: 600; }
.tx-strip .live::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--signal); box-shadow: 0 0 0 3px rgba(92,214,232,0.18);
  animation: txpulse 1.6s ease-out infinite;
}
@keyframes txpulse {
  0% { box-shadow: 0 0 0 0 rgba(92,214,232,0.4); }
  100% { box-shadow: 0 0 0 8px rgba(92,214,232,0); }
}
.tx-strip .freq b { color: var(--accent); font-weight: 600; }
.tx-strip .freq span { color: var(--text-faint); }

.tabbar {
  display: grid; grid-template-columns: repeat(5,1fr); gap: 2px;
  padding: 7px 10px 16px;
  background: linear-gradient(180deg, transparent, rgba(7,9,15,0.95) 30%);
}
.tabbtn {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 6px 2px; color: var(--text-faint);
  font-size: 10px; font-weight: 500;
}
.tabbtn svg { width: 21px; height: 21px; }
.tabbtn.active { color: var(--accent); }

/* ───── Waterfall canvas block (features/hero) ───── */
.waterfall-card {
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden;
}
.waterfall-card canvas { display: block; width: 100%; }
.wf-axis {
  display: flex; justify-content: space-between;
  padding: 8px 12px 4px; font-family: var(--font-mono);
  font-size: 9.5px; color: var(--text-faint); letter-spacing: 0.04em;
}
.wf-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 14px; border-top: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 11px; color: var(--text-muted);
}
.wf-foot .live { color: var(--signal); }
