/* Home page layout (tiles) */

.home-hero{
  margin-top: 6px;
  padding: 10px 2px 0;
}

.home-hero h1{
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: -0.02em;
}

.home-hero p{
  margin: 0;
  color: var(--muted);
  max-width: 72ch;
  line-height: 1.5;
}

.home-grid{
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.nav-tile{
  display: block;
  text-decoration: none;
  color: var(--text);

  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 10px 26px rgba(0,0,0,0.06);

  padding: 18px;
  min-height: 220px;

  transform: translateY(0) scale(1);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.nav-tile:hover{
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 18px 34px rgba(0,0,0,0.10);
  border-color: rgba(37,99,235,0.45);
}

.nav-tile:active{
  transform: translateY(-2px) scale(1.01);
}

.tile-top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.tile-icon{
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #ffffff;
}

.tile-icon svg{
  width: 28px;
  height: 28px;
}

.tile-tag{
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(31,41,55,0.70);
  background: rgba(243,244,246,0.95);
  border: 1px solid rgba(229,231,235,0.95);
  padding: 6px 10px;
  border-radius: 999px;
}

/* Tile themes */
.tile-bp .tile-icon{
  background: linear-gradient(135deg, #2563eb, #1e40af);
}

.tile-med .tile-icon{
  background: linear-gradient(135deg, #0ea5e9, #0369a1);
}

.tile-pain .tile-icon{
  background: linear-gradient(135deg, #7c3aed, #4c1d95);
}

.nav-tile h2{
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.nav-tile p{
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  min-height: 48px;
}

.tile-cta{
  margin-top: 16px;
  font-weight: 800;
  color: #1e40af;
}

/* Help card under tiles */
.home-help{
  margin-top: 18px;
}

.home-help h3{
  margin: 0 0 10px;
}

.home-help ul{
  margin: 0 0 10px 18px;
  color: var(--text);
}

.home-note{
  margin: 0;
  color: var(--muted);
}

@media (max-width: 980px){
  .home-grid{
    grid-template-columns: 1fr;
  }
  .nav-tile{
    min-height: auto;
  }
}