.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.feature-card {
  border: 1.5px solid #ddd;
  border-radius: 12px;
  padding: 1rem 1.2rem;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.08);
  transition: transform 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
}

.feature-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}

.feature-icon {
  font-size: 1.8rem;
}

.feature-card h3 {
  font-size: 1.1rem;
  margin: 0;
}

.feature-card p {
  font-size: 0.95rem;
  line-height: 1.5;
  text-align: center;
}

/* (rolled back) header button styling removed */

/* QR modal styles */
.qr-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

/* Footer row layout */
.footer-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.4rem;
}
.footer-left { justify-self: start; }
.footer-center { justify-self: center; }
.footer-right { justify-self: end; display: flex; align-items: center; gap: 0.6rem; }
.footer-note { font-size: 0.6rem; opacity: 0.9; }
.footer-copy { opacity: 0.9; font-size: 0.6rem; }

/* Enlarge social icon in footer */
.md-footer .md-social__link svg {
  width: 40px;
  height: 40px;
}
.qr-modal-overlay.open { display: flex; }
.qr-modal {
  position: relative;
  background: #fff;
  border-radius: 12px;
  padding: 30px 20px 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  text-align: center;
  max-width: 360px;
}
.qr-modal-img { width: 280px; height: auto; }
.qr-modal-text { margin-top: 8px; font-size: 0.95rem; }
.qr-modal-close {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 22px;
  line-height: 22px;
  background: transparent;
  border: 0;
  cursor: pointer;
}
