/* Public website palette follows the app's default KovaColorTokens
   (LightKovaColors / DarkKovaColors). The slightly stronger light muted color
   keeps small web text readable against tinted cards. The private Workspace
   does not load this stylesheet. */
:root {
  color-scheme: light dark;
  --theme-paper:#fafaf8;
  --theme-ink:#111111;
  --theme-muted:#68655d;
  --theme-line:#ede8df;
  --theme-line-strong:#d6cfc4;
  --theme-surface:#ffffff;
  --theme-raised:#fcfaf6;
  --theme-accent:#946400;
  --theme-accent-hover:#805600;
  --theme-on-accent:#ffffff;
  --theme-tint:#fff5e4;
  --theme-tint-line:#dfc89f;
  --theme-header:#fafaf8f5;
  --theme-footer:#f2f0e9;
  --theme-hero-shade:linear-gradient(90deg,#fafaf8fa 0%,#fafaf8f0 42%,#fafaf8ca 100%),linear-gradient(0deg,#fafaf880,transparent 60%);
  --theme-panel:radial-gradient(ellipse at 0 0,#fff5e455,transparent 65%),#fcfaf6;
  --theme-focus:#805600;
  --theme-shadow:#11111118;
  --theme-on-button:#ffffff;
  --theme-success:#087346;
  --theme-danger:#b7293f;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --theme-paper:#0b0c09;
    --theme-ink:#f8f4ec;
    --theme-muted:#c5baa8;
    --theme-line:#343126;
    --theme-line-strong:#504638;
    --theme-surface:#16160f;
    --theme-raised:#211f16;
    --theme-accent:#f8bb45;
    --theme-accent-hover:#e6a730;
    --theme-on-accent:#000000;
    --theme-tint:#34290f;
    --theme-tint-line:#665232;
    --theme-header:#0b0c09f5;
    --theme-footer:#0b0c09;
    --theme-hero-shade:linear-gradient(90deg,#0b0c09fa 0%,#0b0c09ef 42%,#0b0c09a0 100%),linear-gradient(0deg,#0b0c0990,transparent 60%);
    --theme-panel:radial-gradient(ellipse at 0 0,#34290f55,transparent 65%),#16160f;
    --theme-focus:#f8bb45;
    --theme-shadow:#0005;
    --theme-on-button:#0b0c09;
    --theme-success:#2dce89;
    --theme-danger:#ff6b7a;
  }
}
:root[data-theme="dark"] {
    --theme-paper:#0b0c09;
    --theme-ink:#f8f4ec;
    --theme-muted:#c5baa8;
    --theme-line:#343126;
    --theme-line-strong:#504638;
    --theme-surface:#16160f;
    --theme-raised:#211f16;
    --theme-accent:#f8bb45;
    --theme-accent-hover:#e6a730;
    --theme-on-accent:#000000;
    --theme-tint:#34290f;
    --theme-tint-line:#665232;
    --theme-header:#0b0c09f5;
    --theme-footer:#0b0c09;
    --theme-hero-shade:linear-gradient(90deg,#0b0c09fa 0%,#0b0c09ef 42%,#0b0c09a0 100%),linear-gradient(0deg,#0b0c0990,transparent 60%);
    --theme-panel:radial-gradient(ellipse at 0 0,#34290f55,transparent 65%),#16160f;
    --theme-focus:#f8bb45;
    --theme-shadow:#0005;
    --theme-on-button:#0b0c09;
    --theme-success:#2dce89;
    --theme-danger:#ff6b7a;
}
:root[data-theme="light"] { color-scheme:light; }
:root[data-theme="dark"] { color-scheme:dark; }
:root {
  --ink:var(--theme-ink); --muted:var(--theme-muted); --paper:var(--theme-paper); --line:var(--theme-line);
  --site-ink:var(--theme-ink); --site-muted:var(--theme-muted); --site-paper:var(--theme-paper); --site-line:var(--theme-line);
  --site-gold:var(--theme-accent); --gold:var(--theme-accent); --gold-soft:var(--theme-accent-hover);
}
html { background:var(--theme-paper); accent-color:var(--theme-accent); }
body,body.workspace-page:has(.document-shell) { color:var(--theme-ink); background:var(--theme-paper); }
body.workspace-page:has(.document-shell) { --ws-text:var(--theme-ink); --ws-muted:var(--theme-muted); --ws-border:var(--theme-line); --ws-border-strong:var(--theme-line-strong); --ws-panel:var(--theme-surface); --ws-gold-soft:var(--theme-accent); --ws-gold:var(--theme-accent); --ws-green:var(--theme-success); --ws-red:var(--theme-danger); }
:is(a,button,summary,select,input):focus-visible { outline-color:var(--theme-focus); }
::selection { color:var(--theme-ink); background:var(--theme-tint); }

/* The same navigation, language picker and footer on every public page. */
.public-header.topbar,.document-header { color:var(--theme-ink); background:var(--theme-header); border-color:var(--theme-line); }
.public-header .brand,.public-header .public-nav a:hover { color:var(--theme-ink); }
.public-header .public-nav a { color:var(--theme-muted); }
.public-header .public-nav a:hover { background:var(--theme-raised); }
.public-header .public-nav a[aria-current] { color:var(--theme-accent); background:var(--theme-tint); box-shadow:inset 0 -2px var(--theme-accent); }
.public-header .language-trigger,.public-header .site-language select,.language-trigger,.document-language-field { color:var(--theme-ink); border-color:var(--theme-line); background:var(--theme-surface); }
.public-header .site-language option,.site-language option { color:var(--theme-ink); background:var(--theme-surface); }
.public-header :is(.public-menu,.menu-fallback) { color:var(--theme-ink); border-color:var(--theme-line); }
.public-header .language-fallback { color:var(--theme-accent); background:var(--theme-surface); border-color:var(--theme-line); }
.language-options { color:var(--theme-ink); border-color:var(--theme-line); background:var(--theme-surface); box-shadow:0 16px 48px var(--theme-shadow); }
.language-option:hover,.language-option:focus-visible { background:var(--theme-raised); }
.language-option[aria-selected="true"] { background:var(--theme-tint); }
.language-code { color:var(--theme-muted); }
.language-check { color:var(--theme-accent); }
.public-footer { color:var(--theme-ink); background:var(--theme-footer); }
.public-footer .brand,.public-footer nav h2 { color:var(--theme-ink); }
.footer-about p,.footer-status,.public-footer nav a,.footer-bottom,.publisher-line { color:var(--theme-muted); }
.footer-bottom,.publisher-line { border-color:var(--theme-line); }
.publisher-line a,.public-footer a:hover { color:var(--theme-accent); }
.footer-social a { color:var(--theme-ink); border-color:var(--theme-line); }
.footer-social a:hover { color:var(--theme-accent); background:var(--theme-raised); border-color:var(--theme-accent); }
.seo-language-links { color:var(--theme-muted); background:var(--theme-paper); }
.seo-language-links a { color:var(--theme-accent); }
@media(max-width:1200px) { .public-header .public-nav { background:var(--theme-paper); border-color:var(--theme-line); } }

/* Keep the landscape and original app screenshots; recolor the website UI. */
.hero { color:var(--theme-ink); background-color:var(--theme-paper); }
.hero-shade { background:var(--theme-hero-shade); }
.hero h1 em,.eyebrow,.eyebrow.dark,.hero-privacy .icon { color:var(--theme-accent); }
.hero-privacy { color:var(--theme-ink); background:var(--theme-surface); border-color:var(--theme-tint-line); }
.hero-lede,.release-note,.hero-status-link,.release-facts li { color:var(--theme-muted); }
.release-facts li { border-color:var(--theme-line); background:var(--theme-surface); }
.hero .button-outline { color:var(--theme-ink); border-color:var(--theme-line); background:var(--theme-surface); }
.button-gold,.document-actions a:first-child { color:var(--theme-on-accent); background:var(--theme-accent); border-color:var(--theme-accent); }
.button-gold:hover,.document-actions a:first-child:hover { color:var(--theme-on-accent); background:var(--theme-accent-hover); border-color:var(--theme-accent-hover); }
.button-dark { color:var(--theme-on-button); background:var(--theme-ink); }
.hero .button:focus-visible,.launch-panel .button:focus-visible { outline-color:var(--theme-focus); }
.feature-strip article>span,.legal-cards .legal-link>.icon:first-child { color:var(--theme-accent); background:var(--theme-tint); }
.gallery-hint,.faq summary::after { color:var(--theme-muted); }
.project-overview { background:var(--theme-raised); border-color:var(--theme-line); }
.project-overview p { color:var(--theme-muted); }
.project-overview .eyebrow,.project-links a:hover,.security-cards article>span,.legal-arrow { color:var(--theme-accent); }
.project-links a { border-color:var(--theme-line); }
.security-cards article,.legal-cards .legal-link,.plan-card { background:var(--theme-surface); }
.legal-cards .legal-link:hover { background:var(--theme-raised); border-color:var(--theme-accent); }
.intro-panel,.launch-panel { color:var(--theme-ink); background:var(--theme-panel); border-color:var(--theme-line); }
.intro-panel .intro-heading h2,.intro-cards h3 { color:var(--theme-ink); }
.intro-copy p,.intro-copy .intro-audience,.intro-cards p,.scenario-note,.intro-bottom p,.launch-panel>p:not(.eyebrow),.launch-panel>small { color:var(--theme-muted); }
.intro-for-whom,.intro-icon,.launch-secondary,.text-link,.plan-mark,.plan-card li::before { color:var(--theme-accent); }
.intro-icon { background:var(--theme-tint); border-color:var(--theme-tint-line); }
.intro-cards article,.intro-bottom { border-color:var(--theme-line); }
.scenario-screen { background:var(--theme-paper); border-color:var(--theme-line); }
.scenario-screen:hover { background:var(--theme-raised); border-color:var(--theme-accent); }
.plan-premium { color:var(--theme-ink); background:var(--theme-raised); border-color:var(--theme-tint-line); }
.plan-premium .plan-mark,.plan-premium li::before { color:var(--theme-accent); }
.plan-premium>p { color:var(--theme-muted); }
.plan-premium ul { border-color:var(--theme-line); }
.locale-error { color:var(--theme-ink); background:var(--theme-tint); border-color:var(--theme-tint-line); }

/* Project pages and readable legal drafts use the same palette. */
.page-trail,.page-trail a,.document-back,.section-nav a { color:var(--theme-muted); }
.page-trail [aria-current] { color:var(--theme-ink); }
.page-trail a:hover,.workspace-kicker,.document-card a,.document-notice a,.document-card code { color:var(--theme-accent); }
.section-nav a:hover { color:var(--theme-ink); background:var(--theme-raised); }
.section-nav a[aria-current],.document-chip.warning { color:var(--theme-accent); border-color:var(--theme-tint-line); background:var(--theme-tint); }
.document-chip:not(.warning) { color:var(--theme-muted); background:var(--theme-surface); }
.document-card,.legal-markdown,.legal-toc { background:var(--theme-surface); }
.document-notice { color:var(--theme-muted); background:var(--theme-tint); border-color:var(--theme-tint-line); }
.document-notice strong { color:var(--theme-ink); }
.legal-markdown :is(p,li),.legal-toc a { color:var(--theme-muted); }
.legal-markdown :is(a,code),.legal-source-bar a,.legal-source-notice .workspace-svg-icon { color:var(--theme-accent); }
.legal-markdown code,.document-card code { color:var(--theme-accent); background:var(--theme-raised); border-color:var(--theme-line-strong); }
.legal-markdown blockquote,.legal-source-notice { color:var(--theme-ink); background:var(--theme-tint); border-color:var(--theme-tint-line); }
.legal-source-bar { color:var(--theme-muted); background:var(--theme-surface); border-color:var(--theme-line); }
.legal-markdown th { background:var(--theme-raised); }
.document-actions a:not(:first-child) { background:var(--theme-surface); color:var(--theme-ink); }
.document-actions a:not(:first-child):hover { background:var(--theme-tint); color:var(--theme-accent); border-color:var(--theme-tint-line); }

/* Gallery controls follow the theme; photographs/screenshots are never filtered. */
.video-tour,.lightbox-controls { color:var(--theme-ink); background:var(--theme-surface); border-color:var(--theme-line); }
.video-stage p,.tour-note,.video-stage .tour-note { color:var(--theme-muted); }
.video-stage figcaption span { color:var(--theme-accent); }
.video-controls { border-color:var(--theme-line); }
.video-controls button,.video-chapters button,.lightbox-controls button,.lightbox>button,.video-close { color:var(--theme-ink); background:var(--theme-surface); border-color:var(--theme-line); }
.video-chapters button[aria-current="step"],.video-controls [data-video-play] { color:var(--theme-on-accent); background:var(--theme-accent); border-color:var(--theme-accent); }
.lightbox-controls button:hover { background:var(--theme-raised); }

/* Compact, keyboard-accessible preference menu. Automatic remains the default. */
.theme-picker { position:relative; flex:none; color:var(--theme-ink); }
.theme-picker>summary { display:grid; place-items:center; width:44px; height:44px; padding:0; list-style:none; border:1px solid var(--theme-line); border-radius:14px; background:var(--theme-surface); cursor:pointer; }
.theme-picker>summary::-webkit-details-marker { display:none; }
.theme-picker>summary:hover,.theme-picker[open]>summary { border-color:var(--theme-accent); }
.theme-picker>summary .icon { width:20px; height:20px; }
.theme-options { position:absolute; z-index:85; inset-block-start:calc(100% + 10px); inset-inline-end:0; width:230px; max-width:calc(100vw - 28px); margin:0; padding:10px; border:1px solid var(--theme-line); border-radius:16px; background:var(--theme-surface); box-shadow:0 16px 48px var(--theme-shadow); }
.theme-options legend { float:inline-start; width:100%; padding:4px 10px 10px; color:var(--theme-muted); font-size:12px; font-weight:600; }
.theme-options label { clear:both; display:flex; align-items:center; gap:10px; min-height:46px; padding:10px; border-radius:10px; font:500 14px/1.5 "Segoe UI",system-ui,sans-serif; cursor:pointer; }
.theme-options label:hover { background:var(--theme-raised); }
.theme-options label:has(input:checked) { color:var(--theme-accent); background:var(--theme-tint); }
.theme-options input { width:16px; height:16px; margin:0; flex:none; accent-color:var(--theme-accent); }
.theme-options .icon { width:18px; height:18px; }
.theme-options span { min-width:0; overflow-wrap:anywhere; }
@media(max-width:430px) {
  .public-header:has(.theme-picker) { gap:8px; }
  .public-header:has(.theme-picker) .brand { gap:7px; }
  .public-header:has(.theme-picker) .brand b { font-size:14px; letter-spacing:.16em; }
  .public-header:has(.theme-picker) .header-actions { gap:6px; }
  .public-header:has(.theme-picker) .language-trigger { width:clamp(90px,27vw,112px); }
  .public-header:has(.theme-picker) .site-language select { max-width:100px; }
}
