/* WhatsApp message template pages (whatsapp-message-templates/). */
.qr-logo { display: flex; align-items: center; gap: 6px; text-decoration: none; }
.qr-logo img { width: 40px; height: 40px; object-fit: contain; }
.qr-logo-text {
  display: flex; flex-direction: column;
  font-family: var(--font-display); font-weight: 700; font-size: 14px; line-height: 1.1; color: #006B35;
}
.qr-logo-text span:first-child { color: var(--ink); }

.mt-hero { padding: 7rem 0 1rem; }
@media (min-width: 1024px) { .mt-hero { padding: 8.5rem 0 1.5rem; } }
.mt-crumbs { font-size: 0.85rem; color: var(--ink-muted); margin-bottom: 10px; }
.mt-crumbs a { color: var(--primary-700); text-decoration: none; }
.mt-hero h1 { font-family: var(--font-display); font-size: clamp(1.7rem, 5vw, 2.6rem); line-height: 1.2; color: var(--ink); max-width: 860px; }
.mt-hero p { color: var(--ink-light); font-size: 1.05rem; max-width: 760px; margin-top: 0.75rem; }

/* Controls */
.mt-controls {
  background: #fff; border: 1px solid var(--sand-200); border-radius: 16px; box-shadow: var(--shadow-soft);
  padding: 16px; display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); margin: 1rem 0 1.5rem;
}
@media (min-width: 900px) {
  .mt-controls { grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr); align-items: end; position: sticky; top: 84px; z-index: 5; }
}
.mt-label { display: block; font-weight: 600; font-size: 0.85rem; color: var(--ink); margin-bottom: 6px; }
.mt-input {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: #fff;
  border: 1px solid var(--sand-300); border-radius: 10px; padding: 9px 12px; min-height: 44px;
}
.mt-input:focus { outline: none; border-color: var(--primary-500); box-shadow: 0 0 0 3px var(--primary-100); }
.mt-langs { display: flex; gap: 6px; flex-wrap: wrap; }
.mt-filters { display: flex; gap: 6px; flex-wrap: wrap; grid-column: 1 / -1; }
.mt-chip {
  font: inherit; font-size: 0.88rem; border: 1px solid var(--sand-300); background: var(--sand-50); color: var(--ink);
  border-radius: 999px; padding: 7px 14px; cursor: pointer; min-height: 40px;
}
.mt-chip[aria-pressed="true"] { background: var(--primary-50); border-color: var(--primary-500); color: var(--primary-900); font-weight: 600; }

/* Kinds explainer */
.mt-kinds { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); margin: 1rem 0 2rem; padding: 0; list-style: none; }
@media (min-width: 760px) { .mt-kinds { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.mt-kinds li { background: var(--sand-50); border-radius: 12px; padding: 14px 16px; font-size: 0.92rem; color: var(--ink-light); line-height: 1.55; }
.mt-kinds strong { display: block; margin-bottom: 4px; }

.mt-kind { font-size: 0.75rem; font-weight: 700; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.mt-kind-utility { background: var(--primary-50); color: var(--primary-900); }
.mt-kind-marketing { background: #fff3e0; color: var(--accent-600); }
.mt-kind-reply { background: var(--sand-100); color: var(--ink-light); }

/* Templates */
.mt-section { margin-bottom: 2.25rem; }
.mt-section h2 { font-family: var(--font-display); font-size: clamp(1.25rem, 3vw, 1.6rem); color: var(--ink); margin-bottom: 14px; }
.mt-grid { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .mt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .mt-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.mt-card {
  background: #fff; border: 1px solid var(--sand-200); border-radius: 14px; padding: 16px;
  display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow-soft);
}
.mt-card[hidden] { display: none; }
.mt-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.mt-card h3 { font-family: var(--font-display); font-size: 1rem; color: var(--ink); margin: 0; }
.mt-text {
  background: var(--primary-50); border-radius: 0 12px 12px 12px; padding: 10px 12px; margin: 0;
  color: var(--ink); font-size: 0.95rem; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; flex: 1;
}
.mt-text[hidden] { display: none; }
.mt-ph { background: rgba(0, 166, 81, 0.15); border-radius: 4px; padding: 0 2px; font-weight: 600; }
.mt-ph.filled { background: transparent; font-weight: inherit; padding: 0; }
.mt-actions { display: flex; gap: 8px; }
.mt-actions .btn { flex: 1; justify-content: center; padding: 9px 12px; font-size: 0.9rem; min-height: 44px; }

/* Pages list on the hub */
.mt-pages { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); margin-bottom: 2.5rem; }
@media (min-width: 760px) { .mt-pages { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mt-page-link {
  display: block; text-decoration: none; background: #fff; border: 1px solid var(--sand-200); border-radius: 14px;
  padding: 18px; box-shadow: var(--shadow-soft); color: var(--ink-light);
}
.mt-page-link:hover { border-color: var(--primary-400); }
.mt-page-link strong { display: block; font-family: var(--font-display); color: var(--ink); font-size: 1.1rem; margin-bottom: 6px; }

/* Content and FAQ */
.mt-content { padding: 1rem 0 3rem; }
.mt-content h2 { font-family: var(--font-display); font-size: clamp(1.3rem, 3.2vw, 1.75rem); color: var(--ink); margin: 0 0 12px; }
.mt-content p { color: var(--ink-light); line-height: 1.7; }
.mt-narrow { max-width: 820px; }
.mt-faq details { border-bottom: 1px solid var(--sand-200); padding: 14px 0; }
.mt-faq summary { cursor: pointer; font-weight: 600; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.mt-faq summary::-webkit-details-marker { display: none; }
.mt-faq summary::after { content: "+"; color: var(--primary-500); font-size: 1.3rem; line-height: 1; }
.mt-faq details[open] summary::after { content: "–"; }
.mt-faq details p { margin-top: 8px; }
.mt-cta { background: var(--ink); color: #fff; border-radius: 20px; padding: 28px 20px; margin: 2.5rem 0; text-align: center; }
@media (min-width: 640px) { .mt-cta { padding: 40px; } }
.mt-cta h2 { color: #fff; }
.mt-cta p { color: rgba(255, 255, 255, 0.75); max-width: 640px; margin: 0 auto 20px; }
.mt-cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.mt-cta .btn-outline-light { border: 1px solid rgba(255, 255, 255, 0.4); color: #fff; background: transparent; }

.qr-toast {
  position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 20px);
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 0.9rem;
  opacity: 0; transition: all 0.2s; pointer-events: none; z-index: 2000; max-width: calc(100% - 32px);
}
.qr-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Navbar and footer, as on the other pages */
@media (max-width: 1000px) {
  .nav-links, .nav-cta { display: none !important; }
  .mobile-menu-btn { display: block !important; }
}

/* Proof and the WhatsApp keyword offer */
.mt-proof { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin: 0 0 22px; padding: 0; list-style: none; }
.mt-proof li { color: rgba(255, 255, 255, 0.75); font-size: 0.9rem; }
.mt-proof strong { display: block; color: #fff; font-family: var(--font-display); font-size: 1.4rem; }
.mt-offer {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--primary-50); border: 1px solid var(--primary-200); border-radius: 14px; padding: 14px 16px; margin-top: 1rem; max-width: 860px;
}
.mt-offer p { margin: 0; color: var(--ink); font-size: 0.95rem; line-height: 1.5; flex: 1 1 260px; }
.mt-offer .btn { white-space: nowrap; min-height: 44px; }
