/* MediTap static demo bundle
   - Lightweight, no frameworks
   - Mobile-first
*/

:root{
  --bg:#0b0f14;
  --panel:#0f1620;
  --panel2:#0c131c;
  --text:#e7eef7;
  --muted:#a7b6c7;
  --border:rgba(231,238,247,0.12);
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --radius:16px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background: radial-gradient(1200px 700px at 20% -10%, rgba(88,135,255,0.22), transparent 60%),
              radial-gradient(900px 500px at 90% 0%, rgba(255,120,120,0.18), transparent 55%),
              var(--bg);
  color:var(--text);
}

a{ color:inherit; text-decoration:none; }
code{ background: rgba(231,238,247,0.08); padding: 0.15rem 0.35rem; border-radius: 8px; border:1px solid var(--border); }

.container{ width:min(1100px, 92vw); margin:0 auto; }
.row{ display:flex; gap:14px; align-items:center; }
.between{ justify-content:space-between; }
.grid2{ display:grid; grid-template-columns: 1.2fr 0.8fr; gap:18px; }
.grid3{ display:grid; grid-template-columns: repeat(3, 1fr); gap:18px; }

@media (max-width: 900px){
  .grid2{ grid-template-columns:1fr; }
  .grid3{ grid-template-columns:1fr; }
  .nav{ display:none; }
}

.topbar{
  position: sticky;
  top:0;
  z-index:10;
  background: rgba(11,15,20,0.72);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--border);
}

.brand{ display:flex; align-items:center; gap:12px; padding: 14px 0; }
.logo{
  width:38px; height:38px; border-radius:12px;
  display:grid; place-items:center;
  background: linear-gradient(135deg, rgba(88,135,255,.9), rgba(255,120,120,.9));
  box-shadow: var(--shadow);
  font-weight:800;
}
.brand-text{ display:flex; flex-direction:column; line-height:1.1; }
.muted{ color:var(--muted); }
.small{ font-size: .9rem; }

.nav{ display:flex; gap:14px; align-items:center; }
.nav a{ padding: 10px 10px; border-radius: 10px; color: var(--muted); }
.nav a:hover{ background: rgba(231,238,247,0.06); color: var(--text); }

.hero{ padding: 40px 0 26px; }
.hero h1{ font-size: clamp(2rem, 3vw, 3rem); margin: 0 0 12px; letter-spacing:-0.02em; }
.lead{ font-size:1.1rem; color: var(--muted); line-height:1.5; }

.section{ padding: 34px 0; }
.section.alt{ background: rgba(231,238,247,0.03); border-top:1px solid var(--border); border-bottom:1px solid var(--border); }
.section-gap{ height: 18px; }

.card{
  background: linear-gradient(180deg, rgba(15,22,32,0.9), rgba(12,19,28,0.9));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}

.hero-card{ padding: 0; overflow:hidden; }
.card-header{
  display:flex; align-items:center; gap:8px;
  padding: 10px 12px;
  border-bottom:1px solid var(--border);
  background: rgba(231,238,247,0.03);
}
.dot{ width:10px; height:10px; border-radius:99px; opacity:.9; }
.dot.green{ background:#2ee59d; }
.dot.yellow{ background:#ffc857; }
.dot.red{ background:#ff5c6c; }

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:10px;
  padding: 12px 14px;
  border-radius: 12px;
  border:1px solid rgba(231,238,247,0.22);
  background: rgba(231,238,247,0.10);
  color: var(--text);
  cursor:pointer;
  font-weight:600;
}
.btn:hover{ background: rgba(231,238,247,0.16); }
.btn.small{ padding: 10px 12px; border-radius: 10px; font-size:.95rem; }
.btn.ghost{
  background: transparent;
  border: 1px solid rgba(231,238,247,0.16);
  color: var(--muted);
}
.btn.ghost:hover{ color: var(--text); background: rgba(231,238,247,0.06); }

.cta-row{ display:flex; gap:12px; flex-wrap:wrap; margin: 14px 0 10px; }
.pill-row{ display:flex; gap:8px; flex-wrap:wrap; margin-top: 10px; }
.pill{
  font-size:.9rem;
  padding: 8px 10px;
  border-radius: 999px;
  border:1px solid rgba(231,238,247,0.14);
  color: var(--muted);
  background: rgba(231,238,247,0.05);
}

.linkcard{ transition: transform .12s ease, border-color .12s ease; }
.linkcard:hover{ transform: translateY(-2px); border-color: rgba(231,238,247,0.26); }
.link{ color: var(--text); opacity:.9; font-weight:700; }

.feed{ padding: 12px; display:flex; flex-direction:column; gap:12px; }
.scan{
  border:1px solid rgba(231,238,247,0.14);
  border-radius: 14px;
  padding: 12px;
  background: rgba(231,238,247,0.04);
}
.scan .top{ display:flex; justify-content:space-between; gap:10px; align-items:flex-start; }
.scan .name{ font-weight:800; letter-spacing:-0.01em; }
.badge{
  font-size:.82rem;
  padding: 5px 8px;
  border-radius: 999px;
  border:1px solid rgba(231,238,247,0.18);
  color: var(--muted);
}
.badge.emergency{
  color: #ffe7ea;
  border-color: rgba(255,92,108,0.55);
  background: rgba(255,92,108,0.12);
}
.scan.emergency{
  border-color: rgba(255,92,108,0.65);
  background: radial-gradient(500px 300px at 20% 0%, rgba(255,92,108,0.25), transparent 60%),
              rgba(231,238,247,0.04);
  animation: pulse 1.2s ease-in-out infinite;
}
@keyframes pulse{
  0%,100%{ box-shadow: 0 0 0 rgba(255,92,108,0.0); }
  50%{ box-shadow: 0 0 0 6px rgba(255,92,108,0.06); }
}

label{ display:flex; flex-direction:column; gap:8px; color: var(--muted); font-weight:600; }
input, textarea{
  font: inherit;
  color: var(--text);
  background: rgba(231,238,247,0.04);
  border: 1px solid rgba(231,238,247,0.14);
  border-radius: 12px;
  padding: 10px 12px;
  outline: none;
}
textarea{ min-height: 90px; resize: vertical; }

.stack{ display:flex; flex-direction:column; gap:12px; }

.bullets{ margin: 10px 0 0; color: var(--muted); }
.bullets li{ margin: 8px 0; }

.footer{ padding: 22px 0; border-top: 1px solid var(--border); background: rgba(11,15,20,0.7); }

.toast{
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  background: rgba(15,22,32,0.92);
  border: 1px solid rgba(231,238,247,0.18);
  border-radius: 14px;
  padding: 10px 12px;
  color: var(--text);
  box-shadow: var(--shadow);
  opacity:0;
  pointer-events:none;
  transition: opacity .18s ease, transform .18s ease;
}
.toast.show{
  opacity:1;
  transform: translateX(-50%) translateY(-4px);
}
