/* Public page navigation and footer only; account and Studio layouts are separate. */
@media (prefers-reduced-motion: no-preference) {
  html:has(> body:is(.site-page,.hc-desktop-footer)) { scroll-behavior:smooth; }
}
:is(.site-page,.hc-desktop-footer) main [id] { scroll-margin-top:24px; }
:is(.site-page,.hc-desktop-footer) > .site-footer { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:20px 28px; padding:clamp(24px,3vw,44px); }
:is(.site-page,.hc-desktop-footer) .footer-top { grid-column:1 / -1; display:grid; grid-template-columns:minmax(160px,.8fr) minmax(0,3fr); align-items:start; gap:clamp(24px,4vw,64px); padding-bottom:26px; border-bottom:1px solid #ffffff24; }
:is(.site-page,.hc-desktop-footer) .footer-brand { display:grid; align-content:start; justify-content:start; gap:12px; margin:0; }
:is(.site-page,.hc-desktop-footer) .footer-brand p { font-size:13px; }
:is(.site-page,.hc-desktop-footer) .footer-links { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:24px; }
:is(.site-page,.hc-desktop-footer) .footer-links > div { gap:0; }
:is(.site-page,.hc-desktop-footer) .footer-links strong { margin-bottom:10px; font-size:13px; color:var(--paper); }
:is(.site-page,.hc-desktop-footer) .footer-links a { font-size:13px; line-height:1.5; padding-block:8px; }
:is(.site-page,.hc-desktop-footer) .footer-bottom { display:flex; flex-direction:row; flex-wrap:wrap; justify-content:flex-start; align-items:center; gap:6px 24px; min-width:0; }
:is(.site-page,.hc-desktop-footer) .footer-bottom small { flex:0 0 auto; color:#d9d7ce; font-size:12px; }
:is(.site-page,.hc-desktop-footer) .footer-legal { display:flex; flex-wrap:wrap; gap:0 18px; }
:is(.site-page,.hc-desktop-footer) .footer-legal a { display:inline-flex; align-items:center; min-height:36px; font-size:12px; color:#eae7df; text-decoration:none; }
:is(.site-page,.hc-desktop-footer) .footer-legal a:hover { color:white; text-decoration:underline; }
:is(.site-page,.hc-desktop-footer) .site-footer > .lumera-analytics-preferences { align-self:center; justify-self:start; margin:0 64px 0 0; padding:8px 0; min-height:36px; font-size:12px; }
:is(.site-page,.hc-desktop-footer) .site-footer a:focus-visible,:is(.site-page,.hc-desktop-footer) .site-footer button:focus-visible { outline:2px solid #f0c7ad; outline-offset:4px; }
:is(.site-page,.hc-desktop-footer) .footer-desktop { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); justify-content:start; text-align:left; }
@media (min-width:1024px) {
  :is(.site-page,.hc-desktop-footer) > .site-footer { display:flex; flex-wrap:wrap; justify-content:flex-start; }
  :is(.site-page,.hc-desktop-footer) .footer-top { flex:0 0 100%; grid-template-columns:220px max-content; justify-content:start; }
  :is(.site-page,.hc-desktop-footer) .footer-desktop { display:grid; grid-template-columns:repeat(2,minmax(160px,max-content)); justify-content:start; text-align:left; gap:clamp(32px,5vw,80px); }
  :is(.site-page,.hc-desktop-footer) .site-footer > .lumera-analytics-preferences { margin:0; }
}
@media (max-width:1023px) {
  :is(.site-page,.hc-desktop-footer) .footer-top { grid-template-columns:1fr; gap:24px; }
  :is(.site-page,.hc-desktop-footer) .footer-brand { display:flex; flex-wrap:wrap; align-items:center; gap:12px 24px; }
  :is(.site-page,.hc-desktop-footer) .footer-bottom { grid-column:1 / -1; }
  :is(.site-page,.hc-desktop-footer) .site-footer > .lumera-analytics-preferences { grid-column:1 / -1; justify-self:start; margin-right:0; }
}
@media (max-width:650px) {
  :is(.site-page,.hc-desktop-footer) > .site-footer { padding:24px 20px; gap:12px; }
  :is(.site-page,.hc-desktop-footer) .footer-links { grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px 20px; }
  :is(.site-page,.hc-desktop-footer) .footer-links a,:is(.site-page,.hc-desktop-footer) .footer-legal a { min-height:44px; }
  :is(.site-page,.hc-desktop-footer) .site-footer > .lumera-analytics-preferences { min-height:44px; }
}

@media screen and (max-width:1023px), screen and (max-width:1280px) and (max-height:600px) and (hover:none) and (pointer:coarse) {
 :is(.site-page,.hc-desktop-footer) > .site-footer { display:grid; grid-template-columns:minmax(0,1fr); gap:20px; }
 :is(.site-page,.hc-desktop-footer) .footer-top { grid-template-columns:minmax(0,1fr); gap:24px; }
 :is(.site-page,.hc-desktop-footer) .footer-brand { margin:0; }
 :is(.site-page,.hc-desktop-footer) .footer-brand .wordmark { min-height:44px; }
 :is(.site-page,.hc-desktop-footer) .footer-desktop { grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
 :is(.site-page,.hc-desktop-footer) .footer-links a,
 :is(.site-page,.hc-desktop-footer) .footer-legal a { display:flex; align-items:center; min-height:44px; }
 :is(.site-page,.hc-desktop-footer) .footer-bottom { grid-column:1; align-items:flex-start; flex-direction:column; gap:12px; }
 :is(.site-page,.hc-desktop-footer) .site-footer > .lumera-analytics-preferences { margin:0; min-height:44px; }
}

.site-page #site-navigation .site-nav-icon { display:none; }

/* Public mobile navigation. Keep desktop rules and the signed-in app separate.
   Wide, short touch screens cover phone landscape without changing short desktops. */
@media screen and (max-width:1023px), screen and (max-width:1280px) and (max-height:600px) and (hover:none) and (pointer:coarse) {
 .site-page .site-header {
  width:calc(100% - max(var(--site-gutter),env(safe-area-inset-left)) - max(var(--site-gutter),env(safe-area-inset-right)));
  margin-left:max(var(--site-gutter),env(safe-area-inset-left)); margin-right:max(var(--site-gutter),env(safe-area-inset-right));
  min-height:68px; padding:12px 0; flex-wrap:wrap; gap:0; align-items:center;
 }
 .site-page .site-header .header-actions { margin-left:auto; gap:8px; }
 .site-page .site-header .nav-waitlist { min-height:44px; padding:10px 12px; font-size:12px; }
 .site-page .site-header .site-menu-toggle:not([hidden]) {
  display:block; width:44px; height:44px; padding:11px; flex:none;
  border:1px solid var(--line); border-radius:10px; background:#fffdf8; color:var(--ink);
 }
 .site-page .site-menu-toggle[aria-expanded=true] { background:#eee6dd; border-color:#bdb3a7; }
 .site-page .site-menu-toggle[aria-expanded=true] span:first-child { transform:translateY(5.5px) rotate(45deg); }
 .site-page .site-menu-toggle[aria-expanded=true] span:nth-child(2) { opacity:0; }
 .site-page .site-menu-toggle[aria-expanded=true] span:last-child { transform:translateY(-5.5px) rotate(-45deg); }
 .site-page .site-header #site-navigation {
  order:3; flex-basis:100%; display:grid; grid-template-columns:minmax(0,1fr); align-items:stretch; justify-content:stretch; gap:4px;
  width:100%; margin:12px 0 0; padding:8px; background:#fffdf8;
  border:1px solid var(--line); border-radius:16px; box-shadow:0 12px 32px #202b351a;
 }
 .site-page .site-header.nav-ready #site-navigation {
  display:none; position:absolute; inset:calc(100% + 4px) 0 auto auto;
  width:min(100%,380px); margin:0; max-height:calc(100dvh - 88px - env(safe-area-inset-bottom));
  overflow-y:auto; overscroll-behavior:contain; scroll-padding:8px;
 }
 .site-page .site-header.nav-ready #site-navigation.is-open { display:grid; }
 .site-page .site-header #site-navigation a {
  display:grid; grid-template-columns:22px minmax(0,1fr) 14px; align-items:center; gap:12px;
  min-height:52px; padding:12px; border:0; border-inline-start:3px solid transparent;
  border-radius:10px; color:var(--ink); background:transparent; box-shadow:none;
  font-size:16px; font-weight:500; line-height:1.4; text-decoration:none;
 }
 .site-page .site-header #site-navigation a[aria-current=page] {
  border-inline-start-color:var(--accent); background:#eee6dd; font-weight:700; box-shadow:none;
 }
 .site-page .site-header #site-navigation a:hover { background:#f1eee7; }
 .site-page .site-header #site-navigation a:focus-visible { outline:2px solid var(--accent); outline-offset:-3px; }
 .site-page #site-navigation .site-nav-icon { display:block; width:22px; height:22px; }
 .site-page #site-navigation a::after {
  content:""; display:block; width:7px; height:7px; justify-self:center;
  border-top:1.5px solid currentColor; border-right:1.5px solid currentColor;
  transform:rotate(45deg); opacity:.65;
 }
 /* Keep the menu's final row reachable in short landscape. */
 .site-page:has(#site-navigation.is-open) :is(.help-public-launcher,.help-invitation) { visibility:hidden; pointer-events:none; }
 .site-page.page-home .demo-stage.app-demo { display:none; }
}
