/* Shared by every page: floating WhatsApp button and the download popup (see site-extras.js). */

.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 50;
  display: flex; align-items: center; gap: 10px; padding: 12px 18px 12px 14px;
  background: #25d366; color: #fff !important; text-decoration: none; font-weight: 800; font-size: 15px;
  border-radius: 999px; box-shadow: 0 12px 30px rgba(37,211,102,.45);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  transition: transform .15s ease, box-shadow .2s ease;
  animation: wa-in .6s cubic-bezier(.3,1.5,.5,1) .8s both;
}
.wa-float:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(37,211,102,.55); }
.wa-float svg { width: 26px; height: 26px; flex: none; }
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 999px; border: 2px solid #25d366;
  animation: wa-ring 2.4s ease-out infinite; pointer-events: none;
}
@keyframes wa-in { from { transform: scale(.4) translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes wa-ring { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.35); opacity: 0; } }
@media (max-width: 600px) { .wa-float span { display: none; } .wa-float { padding: 14px; right: 16px; bottom: 16px; } }

.dl-modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 16px; font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif; }
.dl-modal.open { display: flex; }
.dl-backdrop { position: absolute; inset: 0; background: rgba(11,19,36,.55); backdrop-filter: blur(4px); animation: dl-fade .2s ease; }
.dl-box {
  position: relative; width: 100%; max-width: 760px; max-height: calc(100vh - 32px); overflow: auto;
  background: #fff; border-radius: 22px; padding: 30px 30px 26px; color: #334155; line-height: 1.55;
  box-shadow: 0 30px 80px rgba(0,0,0,.3); animation: dl-pop .3s cubic-bezier(.2,.8,.2,1);
}
@keyframes dl-fade { from { opacity: 0; } }
@keyframes dl-pop { from { opacity: 0; transform: translateY(18px) scale(.97); } }
.dl-x { position: absolute; top: 14px; right: 16px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #f1f5f9; color: #334155; font-size: 24px; line-height: 1; cursor: pointer; }
.dl-x:hover { background: #e2e8f0; }
.dl-box h2 { margin: 0 44px 2px 0; color: #0b1324; font-size: 24px; }
.dlm-meta { margin: 0 0 20px; color: #64748b; font-size: 14px; }
.dl-cols { display: grid; grid-template-columns: 1fr 1.2fr; gap: 20px; }
@media (max-width: 640px) { .dl-cols { grid-template-columns: 1fr; } .dl-box { padding: 24px 20px 20px; } }
.dl-cols > div { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 14px; padding: 16px 18px; }
.dl-cols h3 { margin: 0 0 8px; color: #0b1324; font-size: 16px; }
.dl-cols ul, .dl-cols ol { margin: 0; padding-left: 20px; font-size: 14.5px; }
.dl-cols li { margin: 4px 0; }
.dl-tally { margin-top: 14px; padding: 12px 16px; border-radius: 12px; background: #fffbeb; border: 1px solid #fde68a; color: #78350f; font-size: 14px; }
.dl-actions { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; margin-top: 20px; }
.dl-badge { display: inline-block; line-height: 0; border-radius: 8px; transition: transform .12s ease; }
.dl-badge img { display: block; width: 200px; height: auto; }
.dl-badge:hover { transform: translateY(-2px); }
.dl-badge:focus-visible { outline: 3px solid #2563eb; outline-offset: 3px; }
.dl-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
@media (max-width: 640px) { .dl-choices { grid-template-columns: 1fr; } }
.dl-choice { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 18px; border: 1px solid #e2e8f0; border-radius: 14px; background: #fff; }
.dl-choice.rec { border: 2px solid #2563eb; background: #f8fbff; }
.dl-choice h3 { margin: 0; color: #0b1324; font-size: 17px; }
.dl-choice ul { margin: 0; padding-left: 20px; font-size: 14px; color: #334155; flex: 1; }
.dl-choice li { margin: 3px 0; }
.dl-tag { position: absolute; top: -11px; left: 16px; padding: 2px 10px; border-radius: 999px; background: #2563eb; color: #fff; font-size: 12px; font-weight: 700; }
.dl-setup { display: inline-block; align-self: flex-start; padding: 12px 20px; border-radius: 8px; background: #0b1324; color: #fff; font-weight: 700; font-size: 15px; text-decoration: none; transition: transform .12s ease; }
.dl-setup:hover { transform: translateY(-2px); }
.dl-setup:focus-visible { outline: 3px solid #2563eb; outline-offset: 3px; }
.dl-setup span { font-weight: 400; opacity: .8; }
.dl-note { margin: 0; color: #64748b; font-size: 12.5px; line-height: 1.5; }
.dl-alt { margin: 16px 0 0; padding-top: 12px; border-top: 1px solid #e2e8f0; color: #64748b; font-size: 13px; line-height: 1.6; }
.dl-alt a { color: #2563eb; font-weight: 600; }
.dl-cols { margin-top: 16px; }
.dl-trial { margin: 14px 0 0; color: #15803d; font-weight: 700; font-size: 14.5px; }

/* Phone menu (site-extras.js): shown only where the page has hidden its header links. */
.menu-btn { display: none; }
header.has-menu .menu-btn { display: grid; place-items: center; flex: none; width: 44px; height: 44px; margin-left: 8px; padding: 0; cursor: pointer;
  border: 1px solid rgba(148, 163, 184, .4); border-radius: 10px; background: transparent; color: inherit; }
.menu-btn svg { width: 22px; height: 22px; }
.menu-btn .mb-close, header.menu-open .menu-btn .mb-open { display: none; }
header.menu-open .menu-btn .mb-close { display: inline; }
/* absolute, not fixed: a blurred header becomes the containing block of fixed children anyway */
header.has-menu .wrap { gap: 10px !important; }
header.has-menu .btn { flex: none; padding-left: 14px !important; padding-right: 14px !important; }
header.has-menu.menu-open nav { display: flex !important; flex-direction: column; gap: 2px; position: absolute; z-index: 1000; left: 12px; right: 12px; top: calc(100% + 8px);
  margin: 0; padding: 8px; max-height: calc(100vh - var(--menu-top, 72px) - 12px); overflow: auto;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; box-shadow: 0 20px 50px rgba(15, 23, 42, .25);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif; }
header.has-menu.menu-open nav a { display: block !important; margin: 0 !important; padding: 13px 14px !important; border-radius: 10px; font-size: 16px; font-weight: 600; color: #0b1324 !important; text-decoration: none; }
header.has-menu.menu-open nav a:hover, header.has-menu.menu-open nav a[aria-current] { background: rgba(37, 99, 235, .08); }
html[data-theme="dark"] header.has-menu.menu-open nav { background: #0b0d12; border-color: rgba(148, 163, 184, .2); box-shadow: 0 20px 50px rgba(0, 0, 0, .7); }
html[data-theme="dark"] header.has-menu.menu-open nav a { color: #f1f5f9 !important; }
html[data-theme="dark"] header.has-menu.menu-open nav a:hover { background: rgba(59, 130, 246, .14); }
html[data-theme="dark"] header.has-menu .menu-btn { color: #f1f5f9; }
