/* ClouHost critical + navigation CSS (works even if Tailwind JS is slow/offline) */

:root {
  --ch-nav-z: 100;
  --ch-panel-z: 120;
  --ch-mobile-z: 200;
  --ch-primary: #4F46E5;
  --ch-primary-hover: #4338CA;
}

html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip; /* clip avoids dropdown clipping bugs from overflow-x:hidden */
}

/* ---- Logo ---- */
.ch-logo {
  display: inline-flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
  flex-shrink: 0;
}
.ch-logo img,
.ch-logo svg {
  height: 36px;
  width: auto;
  display: block;
}
.ch-logo--sm img,
.ch-logo--sm svg { height: 28px; }
html.dark .ch-logo .word-dark { fill: #F8FAFC; }

/* ---- Promo bar ---- */
#promoBar { position: relative; z-index: calc(var(--ch-nav-z) + 1); }

/* ---- Top nav shell ---- */
#topNav {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--ch-nav-z);
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid #f1f5f9;
  box-shadow: 0 1px 0 rgba(15,23,42,0.04);
}
html.dark #topNav {
  background: rgba(2,6,23,0.94);
  border-bottom-color: #1e293b;
}
.ch-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
@media (min-width: 768px) {
  .ch-nav-inner { padding: 0 1.5rem; }
}

/* Desktop menu row */
.ch-desktop-nav {
  display: none;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 2px;
  font-size: 14px;
  font-weight: 600;
}
@media (min-width: 1024px) {
  .ch-desktop-nav { display: flex; }
}

.ch-nav-link,
.ch-nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.5rem 0.85rem;
  border-radius: 0.5rem;
  border: 0;
  background: transparent;
  color: #334155;
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: color .15s, background .15s;
}
html.dark .ch-nav-link,
html.dark .ch-nav-trigger { color: #e2e8f0; }
.ch-nav-link:hover,
.ch-nav-trigger:hover,
.ch-nav-link.is-active,
.ch-nav-trigger.is-active,
.ch-nav-item.is-open > .ch-nav-trigger {
  color: var(--ch-primary);
  background: #f8fafc;
}
/* Dark mode: never leave whitish hover/active bg (was washing out "Tools" label) */
html.dark .ch-nav-link:hover,
html.dark .ch-nav-trigger:hover,
html.dark .ch-nav-link.is-active,
html.dark .ch-nav-trigger.is-active,
html.dark .ch-nav-item.is-open > .ch-nav-trigger {
  color: #c7d2fe;
  background: #1e293b;
}
html.dark .ch-nav-link.is-active,
html.dark .ch-nav-trigger.is-active {
  color: #a5b4fc;
}

.ch-badge {
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 2px 6px;
  border-radius: 999px;
  background: #ede9fe;
  color: #6d28d9;
  line-height: 1.2;
}
.ch-badge--free { background: #d1fae5; color: #047857; }
.ch-badge--new { background: #ede9fe; color: #6d28d9; }

/* Mega / dropdown panels — pure CSS hover + .is-open */
.ch-nav-item {
  position: relative;
}
.ch-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding-top: 12px;
  z-index: var(--ch-panel-z);
  min-width: 280px;
  /* Never spill past viewport edges; gap from window corners */
  max-width: calc(100vw - 2rem);
  box-sizing: border-box;
}
.ch-panel--left { left: 0; transform: none; }
.ch-panel--mega {
  /* Width constrained to viewport with side gutter */
  width: min(920px, calc(100vw - 2rem));
  min-width: min(320px, calc(100vw - 2rem));
  max-width: calc(100vw - 2rem);
}
/* Prefer aligning under trigger but JS repositions to stay in-bounds */
.ch-panel--mega .ch-panel-card {
  max-width: 100%;
  overflow: hidden;
}
.ch-panel--mega .ch-mega-grid {
  max-width: 100%;
}

.ch-nav-item:hover > .ch-panel,
.ch-nav-item:focus-within > .ch-panel,
.ch-nav-item.is-open > .ch-panel {
  display: block;
}

/* Keep open when moving into panel (hover bridge via padding-top) */
.ch-panel-card {
  background: #fff;
  border: 1px solid #f1f5f9;
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.18);
  padding: 1.25rem;
}
html.dark .ch-panel-card {
  background: #0f172a;
  border-color: #1e293b;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.55);
}
.ch-panel--simple .ch-panel-card {
  padding: 0.5rem 0;
  min-width: 260px;
}

.ch-mega-grid {
  display: grid;
  gap: 1.25rem;
  width: 100%;
  min-width: 0;
}
/* When viewport is narrow, stack mega columns instead of clipping */
@media (max-width: 900px) {
  .ch-panel--mega .ch-mega-grid {
    grid-template-columns: 1fr 1fr !important;
  }
}
@media (max-width: 560px) {
  .ch-panel--mega .ch-mega-grid {
    grid-template-columns: 1fr !important;
  }
}
.ch-mega-col-title {
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #94a3b8;
  margin: 0 0 0.75rem;
  padding: 0 0.5rem;
}
.ch-mega-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.6rem 0.5rem;
  border-radius: 0.75rem;
  text-decoration: none;
  color: inherit;
  transition: background .15s;
}
.ch-mega-item:hover { background: #f8fafc; }
html.dark .ch-mega-item:hover { background: rgba(30,41,59,0.8); }
.ch-mega-ico {
  width: 36px;
  height: 36px;
  border-radius: 0.5rem;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #475569;
  font-size: 18px;
}
html.dark .ch-mega-ico {
  background: #1e293b;
  border-color: #334155;
  color: #cbd5e1;
}
.ch-mega-item:hover .ch-mega-ico {
  background: #eef2ff;
  color: var(--ch-primary);
  border-color: #c7d2fe;
}
.ch-mega-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
}
html.dark .ch-mega-label { color: #f1f5f9; }
.ch-mega-desc {
  display: block;
  font-size: 12px;
  color: #64748b;
  line-height: 1.35;
  margin-top: 2px;
  font-weight: 400;
}

.ch-dd-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  text-decoration: none;
  color: #334155;
  font-size: 14px;
  font-weight: 600;
}
html.dark .ch-dd-item { color: #e2e8f0; }
.ch-dd-item:hover { background: #f8fafc; color: var(--ch-primary); }
html.dark .ch-dd-item:hover { background: #1e293b; }

/* Right actions */
.ch-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}
.ch-icon-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  border-radius: 0.75rem;
  color: #64748b;
  cursor: pointer;
  text-decoration: none;
}
.ch-icon-btn:hover { background: #f1f5f9; color: #0f172a; }
html.dark .ch-icon-btn:hover { background: #1e293b; color: #f8fafc; }

.ch-cta {
  display: none;
  padding: 0.5rem 1rem;
  background: var(--ch-primary);
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 10px 15px -3px rgba(79,70,229,0.3);
}
.ch-cta:hover { background: var(--ch-primary-hover); }
@media (min-width: 640px) {
  .ch-cta { display: inline-flex; align-items: center; }
}

/* Mobile hamburger — always visible under lg */
.ch-mobile-toggle {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  border-radius: 0.75rem;
  color: #0f172a;
  cursor: pointer;
  font-size: 24px;
}
html.dark .ch-mobile-toggle { color: #f1f5f9; }
.ch-mobile-toggle:hover { background: #f1f5f9; }
html.dark .ch-mobile-toggle:hover { background: #1e293b; }
@media (min-width: 1024px) {
  .ch-mobile-toggle { display: none !important; }
}

/* Full-screen mobile drawer */
.ch-mobile-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.45);
  z-index: calc(var(--ch-mobile-z) - 1);
}
.ch-mobile-backdrop.is-open { display: block; }

.ch-mobile-drawer {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(100%, 360px);
  background: #fff;
  z-index: var(--ch-mobile-z);
  box-shadow: -20px 0 40px rgba(15,23,42,0.2);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex-direction: column;
}
html.dark .ch-mobile-drawer { background: #020617; }
.ch-mobile-drawer.is-open {
  display: flex;
  animation: chSlideIn .22s ease-out;
}
@keyframes chSlideIn {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}
@media (min-width: 1024px) {
  .ch-mobile-drawer,
  .ch-mobile-backdrop { display: none !important; }
}

.ch-mobile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #f1f5f9;
  position: sticky;
  top: 0;
  background: inherit;
  z-index: 2;
}
html.dark .ch-mobile-head { border-bottom-color: #1e293b; }
.ch-mobile-body { padding: 0.75rem 1rem 1.5rem; flex: 1; }
.ch-mobile-section {
  border: 1px solid #f1f5f9;
  border-radius: 0.85rem;
  margin-bottom: 0.5rem;
  overflow: hidden;
}
html.dark .ch-mobile-section { border-color: #1e293b; }
.ch-mobile-section > summary {
  list-style: none;
  cursor: pointer;
  padding: 0.9rem 1rem;
  font-weight: 700;
  font-size: 14px;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  user-select: none;
}
html.dark .ch-mobile-section > summary { color: #f8fafc; }
.ch-mobile-section > summary::-webkit-details-marker { display: none; }
.ch-mobile-section[open] > summary { background: #f8fafc; }
html.dark .ch-mobile-section[open] > summary { background: #0f172a; }
.ch-mobile-links { padding: 0.25rem 0.5rem 0.75rem; }
.ch-mobile-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.6rem;
  text-decoration: none;
  color: #475569;
  font-size: 14px;
  font-weight: 600;
}
html.dark .ch-mobile-link { color: #cbd5e1; }
.ch-mobile-link:hover { background: #eef2ff; color: var(--ch-primary); }
.ch-mobile-top-link {
  display: block;
  padding: 0.9rem 1rem;
  border-radius: 0.85rem;
  font-weight: 700;
  font-size: 14px;
  color: #0f172a;
  text-decoration: none;
  margin-bottom: 0.35rem;
}
html.dark .ch-mobile-top-link { color: #f8fafc; }
.ch-mobile-top-link:hover { background: #f8fafc; }
html.dark .ch-mobile-top-link:hover { background: #0f172a; }
.ch-mobile-cta {
  display: block;
  text-align: center;
  margin-top: 0.75rem;
  padding: 0.9rem 1rem;
  background: var(--ch-primary);
  color: #fff !important;
  font-weight: 700;
  border-radius: 0.85rem;
  text-decoration: none;
}

/* User menu */
#navUserMenu { position: relative; z-index: calc(var(--ch-panel-z) + 5); }
#navUserDropdown {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 0.5rem;
  width: 14rem;
  background: #fff;
  border: 1px solid #f1f5f9;
  border-radius: 1rem;
  box-shadow: 0 20px 40px rgba(15,23,42,0.12);
  padding: 0.5rem 0;
  z-index: calc(var(--ch-panel-z) + 10);
  pointer-events: auto;
}
html.dark #navUserDropdown {
  background: #0f172a;
  border-color: #1e293b;
}
#navUserDropdown.is-open,
#navUserDropdown[data-open="1"] {
  display: block !important;
}
#navUserDropdown[hidden]:not(.is-open) {
  display: none !important;
}
#navUserDropdown .ch-dd-item { align-items: center; }

/* Ensure theme button always clickable */
#themeToggleBtn,
#navUserBtn {
  position: relative;
  z-index: 6;
  pointer-events: auto;
  cursor: pointer;
}

/* Theme toggle icons — pure CSS (no Tailwind dependency) */
#themeToggleBtn { position: relative; z-index: 5; cursor: pointer; }
.ch-theme-sun { display: none; }
.ch-theme-moon { display: block; }
html.dark .ch-theme-sun { display: block; }
html.dark .ch-theme-moon { display: none; }

/* Public-page dark mode shell */
html.dark body {
  background: #020617;
  color: #e2e8f0;
}
html.dark .ch-host { color: #A5B4FC !important; }
html.dark .ch-clou { color: #F8FAFC !important; }
html.dark .bg-white { background-color: #0f172a !important; }
html.dark .bg-slate-50 { background-color: #020617 !important; }
html.dark .text-slate-900 { color: #f1f5f9 !important; }
html.dark .text-slate-800 { color: #e2e8f0 !important; }
html.dark .text-slate-700 { color: #cbd5e1 !important; }
html.dark .text-slate-600 { color: #94a3b8 !important; }
html.dark .text-slate-500 { color: #94a3b8 !important; }
html.dark .border-slate-100 { border-color: #1e293b !important; }
html.dark .border-slate-200 { border-color: #1e293b !important; }
/* Shared public footer — readable without Tailwind (incl. AI detector page) */
.ch-site-footer {
  position: relative;
  z-index: 5;
  margin-top: 2rem;
  padding: 2.5rem 0;
  border-top: 1px solid #f1f5f9;
  background: #f8fafc;
  color: #64748b;
  font-size: 0.875rem;
}
.ch-site-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.ch-site-footer .ch-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-weight: 700;
}
.ch-site-footer a {
  color: inherit;
  text-decoration: none;
}
.ch-site-footer a:hover { color: var(--ch-primary); }
html.dark .ch-site-footer,
html.dark footer.border-t {
  background-color: #020617 !important;
  border-color: #1e293b !important;
  color: #94a3b8 !important;
}
html.dark .ch-site-footer a,
html.dark footer a { color: #cbd5e1; }
html.dark .ch-site-footer a:hover,
html.dark footer a:hover { color: #a5b4fc; }
/* Mobile drawer summaries stay readable when open/active */
html.dark .ch-mobile-section > summary {
  color: #f8fafc;
}
html.dark .ch-mobile-section[open] > summary {
  color: #e2e8f0;
  background: #0f172a;
}

body.ch-mobile-open { overflow: hidden; }

/* Utility fallbacks used by landing if Tailwind delayed */
.ch-sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* Admin profile dropdown (members dashboard) */
.ch-admin-user-wrap { position: relative; z-index: 100; }
.ch-admin-user-btn {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.375rem 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  background: rgba(255,255,255,0.85);
  color: #475569;
  cursor: pointer;
  font: inherit;
  pointer-events: auto;
}
html.dark .ch-admin-user-btn {
  border-color: #1e293b;
  background: rgba(2,6,23,0.8);
  color: #94a3b8;
}
.ch-admin-user-btn:hover { border-color: #cbd5e1; }
.ch-admin-user-menu {
  display: none !important;
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  width: 15rem;
  background: #fff;
  border: 1px solid #f1f5f9;
  border-radius: 1rem;
  box-shadow: 0 20px 40px rgba(15,23,42,0.14);
  padding: 0.4rem 0;
  z-index: 200;
  pointer-events: auto;
}
html.dark .ch-admin-user-menu {
  background: #0f172a;
  border-color: #1e293b;
}
.ch-admin-user-menu.is-open { display: block !important; }
.ch-admin-user-menu a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 1rem;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  text-decoration: none;
}
html.dark .ch-admin-user-menu a { color: #e2e8f0; }
.ch-admin-user-menu a:hover { background: #f8fafc; color: #4F46E5; }
html.dark .ch-admin-user-menu a:hover { background: #1e293b; }
.ch-admin-user-menu a.is-danger { color: #ef4444; }
.ch-admin-user-menu .ch-admin-user-meta {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #f1f5f9;
}
html.dark .ch-admin-user-menu .ch-admin-user-meta { border-bottom-color: #1e293b; }

/* ---- Critical layout utilities (bridge until deferred Tailwind runs) ----
   Keeps first paint stable when tailwind.js.php is loaded with defer.
   Only the most-used layout / color tokens used above the fold. */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none; }
.block { display: block; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1 1 0%; }
.flex-shrink-0 { flex-shrink: 0; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-stretch { align-items: stretch; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-start { justify-content: flex-start; }
.min-h-screen { min-height: 100vh; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.overflow-hidden { overflow: hidden; }
.overflow-x-clip { overflow-x: clip; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-auto { margin-top: auto; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-black { font-weight: 900; }
.uppercase { text-transform: uppercase; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-14 { padding-top: 3.5rem; padding-bottom: 3.5rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.leading-relaxed { line-height: 1.625; }
.leading-tight { line-height: 1.25; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.text-white { color: #fff; }
.text-slate-300 { color: #cbd5e1; }
.text-slate-400 { color: #94a3b8; }
.text-slate-500 { color: #64748b; }
.text-slate-600 { color: #475569; }
.text-slate-700 { color: #334155; }
.text-slate-800 { color: #1e293b; }
.text-slate-900 { color: #0f172a; }
.text-emerald-400 { color: #34d399; }
.text-emerald-500 { color: #10b981; }
.bg-white { background-color: #fff; }
.bg-slate-50 { background-color: #f8fafc; }
.bg-slate-900 { background-color: #0f172a; }
.bg-transparent { background-color: transparent; }
.border { border-width: 1px; border-style: solid; border-color: #e2e8f0; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-white\/10 { border-color: rgba(255,255,255,0.1); }
.max-w-\[1200px\] { max-width: 1200px; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-7xl { max-width: 80rem; }
.col-span-2 { grid-column: span 2 / span 2; }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) {
  .md\:flex { display: flex; }
  .md\:hidden { display: none; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:col-span-4 { grid-column: span 4 / span 4; }
  .md\:flex-row { flex-direction: row; }
  .md\:items-center { align-items: center; }
  .md\:justify-between { justify-content: space-between; }
  .md\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
  .md\:text-5xl { font-size: 3rem; line-height: 1; }
  .md\:text-6xl { font-size: 3.75rem; line-height: 1; }
}
@media (min-width: 1024px) {
  .lg\:flex { display: flex; }
  .lg\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .lg\:col-span-1 { grid-column: span 1 / span 1; }
  .lg\:text-6xl { font-size: 3.75rem; line-height: 1; }
  .lg\:text-7xl { font-size: 4.5rem; line-height: 1; }
}
/* system font stack until Google Fonts CSS arrives (non-blocking) */
body {
  font-family: var(--font-family-custom, "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);
}

/* ---- FOUC-stable layout primitives (used before Tailwind finishes) ---- */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-stretch { align-items: stretch; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-start { justify-content: flex-start; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.grid { display: grid; }
.hidden { display: none; }
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.inset-0 { inset: 0; }
.w-full { width: 100%; }
.min-h-screen { min-height: 100vh; }
.overflow-hidden { overflow: hidden; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.font-black { font-weight: 900; }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.1); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0,0,0,.25); }

/* Skip link — visually hidden until keyboard focus (never sits above the header) */
.ch-skip-link {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
  z-index: 100000;
  background: #4f46e5;
  color: #fff;
  font-weight: 800;
  font-size: 0.8rem;
  border-radius: 0.75rem;
  text-decoration: none;
}
.ch-skip-link:focus,
.ch-skip-link:focus-visible {
  position: fixed !important;
  left: 0.75rem !important;
  top: 0.75rem !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0.6rem 1rem !important;
  overflow: visible !important;
  clip: auto !important;
  clip-path: none !important;
  outline: 2px solid #a5b4fc;
  outline-offset: 2px;
}
#ch-back-top {
  position: fixed;
  right: 1.25rem;
  bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
  z-index: 2147482990;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  border: 1px solid #e2e8f0;
  background: rgba(255,255,255,0.95);
  color: #334155;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(15,23,42,0.12);
  cursor: pointer;
  font-size: 1.15rem;
  transition: transform .15s ease, background .15s ease, opacity .15s ease;
}
#ch-back-top.is-visible { display: flex; }
#ch-back-top:hover { transform: translateY(-2px); background: #fff; color: #4f46e5; }
html.dark #ch-back-top {
  background: rgba(15,23,42,0.92);
  border-color: #1e293b;
  color: #e2e8f0;
}
html:has(#clouhostWhatsApp) #ch-back-top {
  bottom: calc(6.75rem + env(safe-area-inset-bottom, 0px));
}
