/* The marketing page on the Boundry design foundation (vendor/stack-ui).
   Scoped to the marketing page (.marketing), as portal-theme.css is to the
   portal (#app): both follow the shared theme — the operating system by
   default, or the visitor's choice (data-stack-theme). AppBoundry's teal stays
   the marketing accent, in a darker shade on light backgrounds so it keeps
   its contrast. */
:root:has(.marketing){
  --bg:var(--stack-color-bg-canvas);
  --panel:var(--stack-color-bg-surface);
  --line:var(--stack-color-border-default);
  --text:var(--stack-color-text-default);
  --muted:var(--stack-color-text-muted);
  --cyan:#55e6d2;
  --appboundry-panel:var(--stack-color-bg-surface);
  --appboundry-on-cyan:#07100f;
}
@media (prefers-color-scheme:light){
  :root:has(.marketing):not([data-stack-theme="dark"]){--cyan:#0b7268;--appboundry-on-cyan:#ffffff}
}
:root[data-stack-theme="light"]:has(.marketing){--cyan:#0b7268;--appboundry-on-cyan:#ffffff}
:root:has(.marketing):not([data-stack-theme]){color-scheme:light dark}
body:has(.marketing){background:var(--bg);color:var(--text)}
body:has(.marketing):before{background-image:linear-gradient(var(--text) 1px,transparent 1px),linear-gradient(90deg,var(--text) 1px,transparent 1px);opacity:.025}

/* Surfaces the marketing stylesheets colour by hand. */
.marketing .boundary-visual{background:radial-gradient(circle,color-mix(in srgb,var(--cyan) 8%,transparent) 0,transparent 58%),var(--appboundry-panel)}
.marketing .boundary-visual:before,.marketing .boundary-visual:after{border-color:color-mix(in srgb,var(--cyan) 18%,transparent)}
.marketing .boundary-core{background:var(--appboundry-panel)}
.marketing .boundary-ring span,.marketing .know-grid span,.marketing .agent-questions span{background:var(--appboundry-panel)}
.marketing .final-cta,.marketing .marketing-actions .primary{color:var(--appboundry-on-cyan)}

/* Logo: white on dark, black on light. */
.marketing .marketing-logo .logo-on-light{display:none}
@media (prefers-color-scheme:light){
  :root:not([data-stack-theme="dark"]) .marketing .logo-on-light{display:block}
  :root:not([data-stack-theme="dark"]) .marketing .logo-on-dark{display:none}
}
:root[data-stack-theme="light"] .marketing .logo-on-light{display:block}
:root[data-stack-theme="light"] .marketing .logo-on-dark{display:none}

/* The Boundry family link and the shared theme control in the bar. */
.marketing .marketing-identity{display:flex;flex-direction:column;gap:2px}
.marketing .marketing-family{color:var(--muted);font-size:12px;text-decoration:none}
.marketing .marketing-family:hover{color:var(--text);text-decoration:underline}
.marketing .marketing-nav nav{flex-wrap:wrap}
/* Narrow screens: the bar wraps (identity, then links and the theme control). */
@media (max-width:620px){
  .marketing-v2 .marketing-nav{height:auto;flex-wrap:wrap;gap:12px;padding:16px 0}
  .marketing-v2 .marketing-nav nav{gap:14px}
}
