/* emonster public website chrome, matched to PriceTagFX. */
:root { --font-chrome: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Helvetica, Arial, sans-serif; --chrome-height: 76px; }
html { scroll-padding-top: calc(var(--chrome-height) + 24px); }
.site-header, .site-footer { font-family: var(--font-chrome); }
.tabler-icon { display: inline-block; width: 22px; height: 22px; flex-shrink: 0; vertical-align: -.15em; }
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent; background: var(--header-bg); backdrop-filter: blur(16px) saturate(120%); transition: border-color 180ms ease; }
.site-header.is-scrolled { border-color: var(--line); }
.site-header .header-inner { width: min(calc(100% - 48px), 1440px); min-height: var(--chrome-height); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-header .brand { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 12px; font-size: 22px; font-weight: 780; letter-spacing: -.045em; white-space: nowrap; }
.site-header .brand img { width: 38px; height: 38px; border-radius: .45rem; }
.desktop-nav { display: flex; align-items: center; gap: clamp(12px, 1.5vw, 26px); }
.desktop-nav > a { color: var(--muted); font-size: .9rem; font-weight: 650; white-space: nowrap; }
.desktop-nav > a:hover, .desktop-nav > a[aria-current="page"] { color: var(--ink); }
.legal-menu { position: relative; }
.legal-menu summary { min-height: 42px; display: inline-flex; align-items: center; gap: 7px; padding: 8px 0; color: var(--muted); font-size: .92rem; font-weight: 650; line-height: 1.2; cursor: pointer; list-style: none; white-space: nowrap; }
.legal-menu summary::-webkit-details-marker { display: none; }
.legal-menu[open] summary, .legal-menu summary:hover { color: var(--blue); }
.legal-menu-panel { position: absolute; z-index: 60; top: calc(100% + 10px); left: 50%; display: grid; width: 240px; overflow: hidden; border: 1px solid #263a55; border-radius: 8px; background: #101e31; box-shadow: 0 22px 70px #0006; transform: translateX(-50%); }
.legal-menu-panel a { min-height: 44px; display: flex; align-items: center; padding: 10px 13px; color: #c0cad9; font-size: 13px; font-weight: 650; text-decoration: none; }
.legal-menu-panel a:hover, .legal-menu-panel a:focus-visible { color: #f1f6ff; background: #182b44; }
.public-theme-control { display: inline-grid; place-items: center; width: 42px; height: 42px; min-width: 42px; flex: 0 0 42px; padding: 0; border: 1px solid #263a55; border-radius: 8px; color: #f1f6ff; background: #101e31; }
.public-theme-control:hover { border-color: #38506f; background: #132339; color: #fff; }
.public-theme-control .tabler-icon { stroke-width: 1.8; }
.theme-mode-icons { display: grid; place-items: center; }
.theme-mode-icon { display: none; }
[data-theme-state="system"] .theme-mode-icon-system, [data-theme-state="light"] .theme-mode-icon-light, [data-theme-state="dark"] .theme-mode-icon-dark { display: grid; }
.menu-button { display: none; width: 44px; height: 44px; padding: 0; place-items: center; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-raised); color: var(--ink); }
.menu-icon-close, .menu-button[aria-expanded="true"] .menu-icon-open { display: none; }
.menu-button[aria-expanded="true"] .menu-icon-close { display: grid; }
.site-footer { padding: 0; border-top: 1px solid #203451; color: #fff; background: #050b12; color-scheme: dark; }
.site-footer .footer-inner { width: min(calc(100% - 48px), 1440px); display: grid; grid-template-columns: minmax(210px, 1.1fr) minmax(0, 4fr); align-items: start; gap: 32px; margin-inline: auto; padding: 52px 0 28px; }
.site-footer .footer-brand { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; align-self: stretch; margin: 0; }
.footer-brand-link { display: inline-flex; align-items: center; gap: 14px; color: #fff; font-size: clamp(1.35rem, 2.2vw, 1.8rem); font-weight: 780; line-height: 1.1; letter-spacing: -.045em; text-decoration: none; }
.footer-brand-link img { width: 64px; height: 64px; flex: 0 0 auto; border-radius: 12px; }
.site-footer .footer-brand p { max-width: 330px; margin: 14px 0 24px; color: #f7f8f5c7; font-size: .86rem; font-weight: 400; text-wrap: balance; }
.footer-studio-link { min-height: 44px; display: inline-flex; align-items: center; margin-top: auto; }
.footer-studio-link img { width: 140px; height: auto; }
.footer-columns { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; align-items: start; }
.site-footer nav { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.site-footer h2 { min-height: 20px; display: flex; align-items: center; gap: 8px; margin: 4px 0 16px; color: #fff; font-size: .82rem; font-weight: 750; letter-spacing: 0; line-height: 1.5; }
.site-footer h2 .tabler-icon { width: 20px; height: 20px; flex: 0 0 20px; }
.footer-column a, .footer-link-button { max-width: 100%; min-height: 28px; display: block; width: fit-content; margin: 0; padding: 0; border: 0; color: #f7f8f5c7; background: none; font: 670 .82rem/1.65 var(--font-chrome); text-align: start; text-decoration: none; cursor: pointer; transition: color 160ms ease; }
.footer-column a:hover, .footer-link-button:hover { color: #8fb8ff; }
.footer-company a, .footer-apps a { display: inline-flex; align-items: baseline; gap: 7px; }
.footer-company a .tabler-icon, .footer-apps a .tabler-icon { align-self: flex-start; margin-top: 2px; }
.footer-company-logo-frame { position: relative; width: 20px; height: 20px; flex: 0 0 20px; overflow: hidden; }
.footer-company-logo { position: absolute; top: 50%; left: 50%; width: 142.222px; max-width: none; height: auto; transform: translate(-50%, -50%); }
.site-footer .footer-bottom { display: block; grid-column: 1 / -1; width: 100%; margin: 24px 0 0; padding: 22px 0 0; border-top: 1px solid #203451; }
.site-footer .footer-bottom p { max-width: none; margin: 0 0 8px; color: #f7f8f594; font-size: .75rem; }

.footer-company a .tabler-icon, .footer-apps a .tabler-icon { width: 16px; height: 16px; flex: 0 0 16px; }
@media (max-width: 74rem) {
  :root { --chrome-height: 68px; }
  .site-footer .footer-inner { grid-template-columns: minmax(190px, .8fr) minmax(0, 2fr); }
  .footer-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-column a, .footer-link-button { min-height: 36px; }
}
@media (max-width: 600px) {
  .site-footer .footer-inner { width: calc(100% - 32px); display: block; }
  .site-footer .footer-brand { margin-bottom: 40px; }
  .footer-studio-link { margin-top: 0; }
  .footer-columns { gap: 28px 16px; }
  .footer-brand-link { font-size: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) { .site-header, .footer-column a, .footer-link-button { transition: none; } }

/* Download popover follows the PriceTagFX QR and App Store interaction. */
.download-control { display: inline-flex; flex: 0 0 auto; }
.download-trigger { min-height: 42px; padding: 9px 15px; gap: 12px; white-space: nowrap; cursor: pointer; }
.download-trigger svg { width: 14px; height: 14px; stroke-width: 1.8; transition: transform 160ms ease; }
.download-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.chrome-download-panel { position: fixed; z-index: 1300; inset: auto; width: 236px; max-width: calc(100vw - 24px); max-height: calc(100dvh - 24px); margin: 0; padding: 12px 16px 16px; overflow: auto; border: 1px solid var(--line); border-radius: 18px; color: var(--ink); background: var(--surface-raised); box-shadow: var(--shadow-menu); text-align: center; }
.download-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 4px; margin-bottom: 10px; font-size: .84rem; font-weight: 750; line-height: 1.35; text-align: start; }
.download-close { width: 44px; height: 44px; display: inline-grid; flex: 0 0 44px; place-items: center; margin-inline-end: -8px; padding: 0; border: 0; border-radius: 10px; color: var(--muted); background: transparent; cursor: pointer; }
.download-close:hover { color: var(--ink); background: var(--surface-raised); }
.download-close .tabler-icon { width: 20px; height: 20px; }
.download-qr { width: 180px; height: 180px; display: block; margin: 14px auto 0; padding: 12px; border-radius: 12px; background: #fff; image-rendering: pixelated; }
.download-hint { margin: 10px 0 0; color: var(--muted); font-size: .78rem; font-weight: 600; line-height: 1.4; }
.download-trigger[hidden], .chrome-download-panel[hidden] { display: none; }

.desktop-nav .download-trigger { border: 0; font-family: inherit; line-height: 1.2; }
.desktop-nav [data-download-fallback][hidden], .desktop-nav [data-download-trigger][hidden] { display: none; }
@media (max-width: 74rem) {
  .download-control { display: block; }
  .desktop-nav .download-trigger { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .download-trigger svg { transition: none; } }

.site-header .header-inner { height: var(--chrome-height); }
.site-header .brand-name { font-size: inherit; }
.site-header .desktop-nav { margin-left: auto; gap: clamp(12px, 1.5vw, 26px); }
.site-header .desktop-nav > a::after { display: none; }
.site-header .header-actions { gap: 16px; }
.site-header .download-trigger { min-height: 42px; border: 0; border-radius: 8px; background: var(--yellow); color: var(--on-yellow); font-size: .9rem; line-height: 1.2; padding: 9px 15px; }
.site-header .download-trigger:hover { background: var(--yellow-deep); }
.site-header .language-menu summary { height: 42px; min-height: 42px; gap: 8px; padding: 0 11px; border: 1px solid #263a55; border-radius: 8px; background: #101e31; color: #f1f6ff; font-size: 13px; }
.site-header .language-menu summary::after { display: none; }
.site-header .language-menu .tabler-icon { width: 20px; height: 20px; }
.site-header .nav-panel { padding: 0; border-color: #263a55; border-radius: 8px; background: #101e31; }
.site-header .nav-panel a { border-radius: 0; padding: 10px 14px; color: #c0cad9; font-size: 13px; }
.site-header .nav-panel a:hover, .site-header .nav-panel a[aria-current] { color: #f1f6ff; background: #182b44; }
.site-header .menu-button::before, .site-header .menu-button::after { display: none; }
.site-header .menu-button span { width: auto; height: auto; background: none; opacity: 1; transform: none; }
.site-header .menu-button .menu-icon-close, .site-header .menu-button[aria-expanded="true"] .menu-icon-open { display: none; }
.site-header .menu-button[aria-expanded="true"] .menu-icon-close { display: grid; }
.chrome-store-badge { display: block; width: 180px; margin: auto; }
.chrome-store-badge img { display: block; width: 180px; height: auto; }
.site-header .download-trigger[hidden], .chrome-download-panel[hidden] { display: none; }
.site-header .mobile-menu { display: none; }
.site-footer a:focus-visible, .site-footer button:focus-visible { outline-color: #8fb8ff; }
@media (max-width: 74rem) {
  .site-header .header-inner { width: calc(100% - 32px); gap: 10px; }
  .site-header .brand { font-size: 20px; }
  .site-header .desktop-nav, .header-actions .download-control { display: none; }
  .site-header .header-actions { gap: 10px; }
  .site-header .menu-button { display: inline-grid; }
  .site-header .mobile-menu { display: none; top: var(--chrome-height); min-height: 0; max-height: calc(100dvh - var(--chrome-height)); padding: 16px; border-bottom: 1px solid var(--line); transform: none; visibility: visible; }
  .site-header .mobile-menu.is-open { display: grid; }
  .mobile-menu > a { min-height: 52px; border: 0; padding: 10px 4px; font-size: 1rem; font-weight: 650; }
  .mobile-menu > a:not(.mobile-menu-download) { margin: 0; background: transparent; color: var(--ink); justify-content: start; border: 0; border-radius: 0; }
  .mobile-menu .legal-menu summary { width: 100%; padding: 12px 4px; }
  .mobile-menu .legal-menu-panel { position: static; width: 100%; transform: none; box-shadow: none; margin: 2px 0 8px; }
  .mobile-menu .mobile-lang { margin: 12px 0 0; padding: 18px 0 0; gap: 0; border-top: 1px solid var(--line); }
  .mobile-menu .mobile-lang a { min-height: 44px; padding: 10px; font-size: 13px; font-weight: 650; border: 0; border-radius: 8px; }
  html:not(.js) .site-header { position: static; }
  html:not(.js) .site-header .mobile-menu { position: static; display: grid; max-height: none; }
  html:not(.js) .menu-button, html:not(.js) .theme-toggle { display: none; }
}
@media print { .site-header, .site-footer { display: none; } }

html:not(.js) .theme-toggle { display: none; }
