/* Shared accessibility and responsive refinements; loaded after page styles. */
:root { --focus-ring: #2563eb; }
:focus-visible { outline: 3px solid var(--focus-ring) !important; outline-offset: 4px; }
html { scroll-padding-top: 100px; }
.skip-link { position: fixed; top: 10px; left: 12px; z-index: 10000; padding: 12px 18px; background: #fff; color: #0f172a; border-radius: 8px; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
main:focus { outline: none; }
/* Essential content stays visible when JS or IntersectionObserver is unavailable. */
.fade-up { opacity: 1 !important; transform: none !important; }
.nav-link { color: #d1d5db !important; }
.hero-sub, .sec-sub.light { color: #cbd5e1 !important; }
.ft-nav a, .ft-copy, .ft-tag { color: #94a3b8 !important; }
.hero .btn-primary-cta:hover, .btn-nav-cta:hover, .btn-login:hover { background: #0f766e; color: #fff; }
input, select, textarea { max-width: 100%; }
button, .btn-primary-cta, .btn-outline-cta, .btn-nav-cta, .soc-btn { min-height: 44px; }
.navbar .btn-nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .65rem 1.1rem !important;
  line-height: 1;
  color: #fff !important;
  white-space: nowrap;
}
.navbar .btn-nav-cta i { margin: 0 !important; line-height: 1; }
.site-credit { display: inline-block; margin-left: .4rem; }
.site-credit a { color: #5eead4; text-decoration: none; }
.site-credit a:hover { text-decoration: underline; }
.standalone-credit { margin: 0; padding: 1.25rem; background: #0f172a; color: #94a3b8; text-align: center; font-size: .8rem; }
.soc-btn { min-width: 44px; }
img { max-width: 100%; }
.topbar-logout { font: inherit; cursor: pointer; }
#mta-chat { position: fixed; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); z-index: 1100; font: 14px/1.55 'Inter', system-ui, sans-serif; color: #1e293b; }
#mta-chat button, #mta-chat input { font: inherit; }
.mta-chat-launcher { display: flex; align-items: center; gap: 9px; min-height: 52px; padding: 12px 18px; border: 1px solid #2dd4bf; border-radius: 999px; background: #0f766e; color: white; box-shadow: 0 6px 24px #0f172a33; font-weight: 600 !important; cursor: pointer; }
.mta-chat-launcher:hover { background: #115e59; }
.mta-chat-panel { position: absolute; right: 0; bottom: 66px; display: flex; flex-direction: column; width: 370px; max-width: calc(100vw - 32px); max-height: min(660px, calc(100dvh - 110px)); margin: 0; padding: 0; text-align: left; background: white; border: 1px solid #dbe5ea; border-radius: 18px; box-shadow: 0 16px 50px #0f172a33; overflow: hidden; }
.mta-chat-panel[hidden] { display: none; }
.mta-chat-header { display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; padding: 18px; background: #0f172a; color: white; }
.mta-chat-header h2 { margin: 0 0 3px; font: 700 17px/1.3 'Inter', system-ui, sans-serif; color: white; }
.mta-chat-header p { margin: 0; color: #a7f3d0; font-size: 12px; }
.mta-chat-close { border: 0; border-radius: 8px; width: 44px; background: transparent; color: #e2e8f0; font-size: 26px !important; cursor: pointer; }
.mta-chat-close:hover { background: #ffffff14; }
.mta-chat-messages { flex: 1 1 auto; overflow-y: auto; min-height: 90px; max-height: 280px; padding: 16px; background: #f8fafc; overscroll-behavior: contain; }
.mta-chat-bubble { margin: 0 28px 12px 0; padding: 12px 14px; border: 1px solid #e2e8f0; border-radius: 0 13px 13px 13px; background: white; overflow-wrap: anywhere; }
.mta-chat-bubble p { margin: 0; }
.mta-chat-bubble a { display: inline-block; margin-top: 8px; color: #0f766e; font-weight: 600; text-decoration: underline; }
.mta-chat-user { margin: 0 0 12px 28px; border-color: #99f6e4; border-radius: 13px 0 13px 13px; background: #ccfbf1; }
.mta-chat-topics { flex-shrink: 0; display: flex; gap: 7px; flex-wrap: wrap; max-height: 110px; overflow-y: auto; padding: 12px 16px; border-top: 1px solid #e2e8f0; }
.mta-chat-topics button { min-height: 36px; padding: 7px 10px; border: 1px solid #cbd5e1; border-radius: 8px; background: white; color: #334155; font-size: 12px !important; cursor: pointer; }
.mta-chat-topics button:hover { border-color: #0f766e; color: #0f766e; background: #f0fdfa; }
.mta-chat-form { flex-shrink: 0; display: flex; gap: 8px; margin: 0; padding: 10px 16px; }
.mta-chat-form input { min-width: 0; flex: 1; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 9px; background: white; color: #0f172a; }
.mta-chat-form button { display: grid; place-items: center; width: 44px; flex-shrink: 0; border: 0; border-radius: 9px; color: white; background: #0f766e; cursor: pointer; }
.mta-chat-note { flex-shrink: 0; margin: 0; padding: 0 16px 10px; font-size: 11px; color: #475569; }
.mta-chat-whatsapp { flex-shrink: 0; display: block; padding: 12px 16px; border-top: 1px solid #e2e8f0; background: #f0fdfa; color: #0f766e; text-align: center; font-weight: 600; text-decoration: none; }
.mta-chat-whatsapp:hover { background: #ccfbf1; color: #115e59; }
.mta-chat-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-height: 600px) {
  .mta-chat-header { padding: 10px 16px; }
  .mta-chat-messages { min-height: 40px; }
  .mta-chat-topics { flex-shrink: 1; min-height: 0; max-height: 48px; padding: 6px 12px; }
  .mta-chat-note { padding-bottom: 5px; }
}
@media (max-width: 575px) {
  #mta-chat { right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); }
  .mta-chat-panel { width: calc(100vw - 32px); max-height: calc(100dvh - 104px); }
  .mta-chat-topics button { min-height: 44px; }
  .mta-chat-topics { max-height: 104px; }
}
@media (max-width: 575px) {
  .hero { min-height: auto; padding: 110px 0 56px; }
  .hero h1 { font-size: clamp(2rem, 9vw, 2.8rem); }
  .hero-stats { gap: 1.25rem; }
  .btn-primary-cta, .btn-outline-cta { justify-content: center; }
  .login-card { padding: 1.75rem 1.25rem; }
  input, select, textarea { font-size: 16px !important; }
  .term-body { overflow-x: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
