/* Integration adapter only. Palette/layout source: Muse main.css; no alternate brand. */
.muse-inline-1{margin-top:24px}
.muse-inline-2{margin-bottom:32px}
.muse-inline-3{grid-template-columns:1.5fr 1fr;gap:32px}
.muse-inline-4{font-size:1.375rem}
.muse-inline-5{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.muse-inline-6{margin-top:12px}
.muse-inline-7{margin-top:32px}

:root[data-theme=light]{--bg:var(--paper);--bg-subtle:var(--paper-2);--bg-inset:var(--paper-2);--surface:var(--paper);--surface-2:var(--paper-2);--surface-hover:var(--accent-soft);--border:var(--hairline);--border-strong:var(--hairline);--text:var(--ink);--text-2:var(--muted);--text-3:var(--muted);--accent:#C2410C;--accent-hover:#9A3412;--accent-fg:#fff;--accent-soft:#FDF0E9;--accent-line:#E8E5DF;--font-sans:var(--sans);--font-mono:var(--mono);color-scheme:light}
.gateway-surface h1{font-size:var(--fs-2xl)}.gateway-surface h2{font-size:var(--fs-lg)}
.gateway-surface .app,.gateway-surface .auth{min-height:calc(100vh - 64px)}
.gateway-surface .side{top:64px;height:calc(100vh - 64px)}
.muse-product .site-header{z-index:30}.muse-product .site-footer{position:relative}
.muse-marketing .alert{background:var(--accent-soft);padding:16px 24px;border-bottom:1px solid var(--hairline)}
@media(max-width:960px){.gateway-surface .side{top:0;height:100vh}}

/* P0 frontend slice — integration overrides only; Muse tokens kept (ink/paper/accent). */
/* Reveal is progressive enhancement: content stays readable without JS. */
.reveal{opacity:1;transform:none}
html.js .reveal.is-pending{
  opacity:0;
  transform:translateY(12px);
  transition:opacity .45s ease,transform .45s ease;
}
html.js .reveal.is-pending.is-visible,
html.js .reveal.is-visible{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  html.js .reveal,
  html.js .reveal.is-pending{opacity:1;transform:none;transition:none}
}

/* Body 16px / 1.5, helper 14px, titles 24–32px. 8px spacing unchanged. */
/* typography comes from design-tokens.css / pack.css (17px/1.6) */
.muse-marketing h1,.muse-product .hero h1{font-size:clamp(1.5rem,4vw,2rem);line-height:1.2}
.muse-marketing h2{font-size:clamp(1.5rem,3vw,1.75rem)}
.muse-marketing .kicker,
.muse-marketing .eyebrow,
.muse-marketing .small,
.muse-marketing .footer-col h4,
.muse-marketing .footer-bottom,
.muse-marketing .news-list time,
.muse-marketing .lang-toggle,
.muse-marketing .field-error,
.muse-marketing thead th{font-size:.875rem}
/* Auth left column: keep white copy on the dark brand panel for clear contrast. */
.gateway-surface .auth-side{background:#0A0B10;color:#FFFFFF}
.gateway-surface .auth-side .logo{color:#FFFFFF}
.gateway-surface .auth-side .logo .lm-bg{fill:#FFFFFF}
.gateway-surface .auth-side .logo .lm-fg{stroke:#0A0B10}
.gateway-surface .auth-quote h2{color:#FFFFFF}
.gateway-surface .auth-quote p{color:#D1D5DB}
.gateway-surface .auth-foot{color:#D1D5DB;font-size:.875rem}
.gateway-surface .auth-points{color:#F3F4F6}
.gateway-surface .auth-points .ic{color:#FDBA74}

/* 820: stack auth if space is tight (form first). 390: form-only single column. */
@media (max-width:820px){
  .gateway-surface .auth{grid-template-columns:minmax(0,1fr)}
  .gateway-surface .auth-side{order:2}
  .gateway-surface .auth-main{order:1;padding:16px 20px}
  .gateway-surface .auth-top .logo{visibility:visible}
}
@media (max-width:390px){
  .gateway-surface .auth-side{display:none}
  .gateway-surface .auth-main{padding:16px}
}

/* 820: fold primary nav early so language + signup/console stay reachable.
   44px is a recommended control size this slice, not a WCAG AA hard floor. */
@media (max-width:820px){
  .muse-nav-toggle{display:block;margin-left:auto;min-height:44px;min-width:44px}
  .header-inner{position:relative;flex-wrap:nowrap;min-width:0}
  .main-nav{display:none;position:absolute;top:64px;left:0;right:0;background:var(--paper);border-bottom:1px solid var(--hairline);padding:8px 16px 16px;z-index:40}
  .main-nav.open{display:block}
  .main-nav ul{flex-direction:column}
  .main-nav a{padding:12px 8px;min-height:44px}
  .header-actions{flex-shrink:0}
  .header-actions .btn{display:inline-flex;min-height:44px;align-items:center}
  .header-actions .lang-toggle{display:inline-flex;align-items:center;min-height:44px}
}
@media (max-width:768px){
  /* Re-assert after Muse 768 rule that hid the header CTA. */
  .header-actions .btn{display:inline-flex}
}

html{scroll-padding-top:72px}
[id]{scroll-margin-top:72px}
.btn,.muse-nav-toggle,.lang-toggle{min-height:44px}
.legal-draft-notice{margin:0 0 var(--space-3)}
