/* Light is the existing V6 palette. Dark uses cool graphite surfaces with lime accents. */
:root{--hero-paper:var(--hubiq-background)}

/* Same SVG, 44px control and 350ms sun/moon motion as the shared ThemeToggle. */
.theme-toggle{position:static;display:inline-grid;place-items:center;flex:none;width:44px;height:44px;min-height:44px;padding:8px;border:0;border-radius:50%;background:var(--white);color:var(--ink);transition:background-color 150ms ease,color 150ms ease}
.theme-toggle:hover{background:var(--line)}.theme-toggle:active{transform:scale(.95)}
.theme-toggle:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
html:has(dialog[open]) .theme-toggle{visibility:hidden;pointer-events:none}
/* Beside the open sign-up panel the header stays uncovered, so its theme toggle stays usable:
   the header rises above the panel's click-to-close backdrop and only the theme and language controls take input,
   so every other click still closes the panel. Below 1025px the panel covers the header. */
@media(min-width:1025px){html.beta-native-open .site-header{z-index:1001;pointer-events:none}html.beta-native-open .site-header :is(a,button):not(:is(.theme-toggle,.language-switch)){pointer-events:none}html.beta-native-open .site-header :is(.theme-toggle,.language-switch){pointer-events:auto}}
@media(max-width:1024px){html.beta-native-open :is(.theme-toggle,.language-switch){visibility:hidden;pointer-events:none}}
html[data-theme=dark]{--paper:var(--hubiq-background);--ink:var(--hubiq-foreground);--muted:var(--hubiq-muted-foreground);--line:var(--hubiq-border);--white:var(--hubiq-surface);--blue:#bbe93f;--blue-soft:var(--hubiq-surface-muted);--lavender:var(--hubiq-lavender);--hero-paper:var(--hubiq-background);color-scheme:dark}
html[data-theme=dark] .site-header{background:linear-gradient(var(--paper) 58%,transparent)}
html[data-theme=dark].hero-story-active .site-header{background:linear-gradient(var(--hero-paper) 58%,transparent)}
html[data-theme=dark] .wordmark>img,html[data-theme=dark] .logo-relief>img,html[data-theme=dark] .closing-mark>img{filter:brightness(0) invert(1)}
html[data-theme=dark] .header-cta{background:#1b272d80}
html[data-theme=dark] .button-primary:hover{background:#dce7c3}
html[data-theme=dark] .source-section{background:var(--hubiq-background)}
html[data-theme=dark] .source-close{background:var(--hubiq-surface-muted);color:var(--hubiq-foreground)}
html[data-theme=dark] .design-switcher{background:#1b272df2;color:var(--ink);border-color:var(--line)}
html[data-theme=dark] .design-switcher a{color:var(--muted)}
html[data-theme=dark] .design-switcher a[aria-current=page],html[data-theme=dark] .design-switcher a.active{background:#dce5df;color:var(--hubiq-background)}
html[data-theme=dark] #v1-inline-root .footer,html[data-theme=dark] #v1-inline-root .footer-wrapper{background:var(--paper);color:var(--ink)}
html[data-theme=dark] #v1-inline-root .logo-wrapper>svg{filter:brightness(0) invert(1)}
html[data-theme=dark] #v1-inline-root .legal-links,html[data-theme=dark] #v1-inline-root .legal-links button{color:var(--ink)}
html[data-theme=dark] #v6-beta-host .contact-form{background:var(--hubiq-surface);color:var(--hubiq-foreground)}
html[data-theme=dark] #v6-beta-host :is(input,.label,.form-title,.beta-native-close,.beta-native-note,.beta-native-status,.press){color:var(--hubiq-foreground)}
html[data-theme=dark] #v6-beta-host input{border-color:#63737b;caret-color:var(--hubiq-foreground)}
html[data-theme=dark] #v6-beta-host .press svg{filter:brightness(0) invert(1)}
html[data-theme=dark] #v6-beta-host .errors{color:#ffb8aa}
html[data-theme=dark].v1-tail-docked .site-header{background:none}
@media(max-width:700px){.header-actions .menu-trigger{margin-left:0}.header-actions .header-cta{gap:14px;padding:10px 12px}.theme-toggle{border-color:transparent}}
/* Tablet headers need the menu before translated navigation crowds the fixed-size controls. */
@media(min-width:701px) and (max-width:1024px){
 html:not([data-environment=production]) .site-header nav{display:none}
 html:not([data-environment=production]) .header-actions .menu-trigger{display:inline-flex!important;margin-left:0}
 html:not([data-environment=production]) .mobile-menu{top:92px}
}
/* The slogan belongs to the real footer, outside the stretching wordmark. */
#v1-inline-root .footer-slogan{font-family:'Geist UI',Arial,sans-serif;font-size:clamp(16px,1.4vw,22px);font-weight:300;line-height:1.5;letter-spacing:-.02em;text-align:center;color:var(--ink);padding:24px 20px 0;margin:0;opacity:0;transform:translateY(12px);will-change:opacity,transform}
@media(max-width:700px){#v1-inline-root .footer-slogan{font-size:15px;padding:22px 24px 0;max-width:340px;margin:auto}}
@media(prefers-reduced-motion:reduce){#v1-inline-root .footer-slogan{transform:none!important}}

/* One warm canvas across the light marketing theme; cards retain surface contrast. */
html:not([data-theme=dark]){background:var(--hero-paper);--paper:var(--hero-paper);--thread-accent:color-mix(in srgb,var(--accent) 46%,var(--hero-paper))}
html[data-theme=dark]{--thread-accent:color-mix(in srgb,var(--accent) 46%,var(--hero-paper))}
html:not([data-theme=dark]) :is(.source-section,.builder-section,.control-section,.closing,.site-footer,#v1-inline-root,#v1-inline-root .scroll-container,#v1-inline-root .footer,#v1-inline-root .footer-wrapper,#v6-beta-host .contact-form){background:var(--hero-paper)}

/* Embedded and native scenes share the dark canvas, including rounded gutters. */
html[data-theme=dark] :is(#v1-inline-root,#v1-inline-root .scroll-container,.native-chat-pane,.native-chat-frame){background:var(--paper)}
html[data-theme=dark].v1-tail-dark .site-header .header-cta{background:var(--accent);color:var(--accent-foreground);border-color:var(--accent)}
html[data-theme=dark] #v1-inline-root .text:has(.current) :is(.hl,.n-hl){color:var(--hubiq-muted-foreground)}
html[data-theme=dark] #v1-inline-root .text .hl.current{color:var(--hubiq-foreground)}
