/* Shared native theme switch. */
.theme-switch { display: inline-flex; align-items: center; gap: 11px; min-height: 44px; cursor: pointer; font-size: .8rem; font-weight: 700; color: var(--muted); }
.theme-switch input { appearance: none; position: relative; width: 42px; height: 24px; margin: 0; border: 1px solid var(--company-line, var(--line)); border-radius: 20px; background: #d4d4cb; cursor: pointer; }
.theme-switch input::before { content: ''; position: absolute; width: 16px; height: 16px; top: 3px; left: 3px; border-radius: 50%; background: #fffdf8; box-shadow: 0 1px 3px #0002; }
.theme-switch input:checked { background: #d6bd92; border-color: #d6bd92; }
.theme-switch input:checked::before { transform: translateX(18px); background: #252723; }
.theme-switch input:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }

/* Policy and support pages follow their parent product’s palette. */
.document-voice { --page:#fffaf2; --surface:#fffaf2; --ink:#452d24; --muted:#765d4d; --accent:#a94716; --line:#e9dcc9; }
.document-cast { --page:#fff; --surface:#fff; --ink:#202126; --muted:#60636c; --line:#e3e5ea; --accent:#765706; --focus:#1974a5; }
.document-company { --page:#fffaf4; --surface:#fffefc; --ink:#302b25; --muted:#736a5f; --accent:#80613d; --line:#e1d5c5; --focus:#236590; }
@media screen {
 .document-page:has(#page-dark:checked) { color-scheme:dark; --focus:#f1c771; }
 .document-voice:has(#page-dark:checked) { --page:#181513; --surface:#241d19; --ink:#f7eee3; --muted:#c6b6a7; --accent:#efb989; --line:#49382d; }
 .document-cast:has(#page-dark:checked) { --page:#171816; --surface:#222420; --ink:#f5f0e7; --muted:#b9bcb7; --line:#383c34; --accent:#edc66d; }
 .document-company:has(#page-dark:checked) { --page:#191715; --surface:#28221c; --ink:#f5ede2; --muted:#bfb1a2; --accent:#dfbd8a; --line:#3b332c; }
 .document-page header.site a { color:var(--ink); }
}
.document-page header.site nav { align-items:center; gap:12px 24px; }
.document-brand { color:var(--ink); font-size:1.4rem; font-weight:800; letter-spacing:-.04em; }
.document-page header.site a { font-size:.9rem; }
.document-page .theme-switch { margin-left:auto; }
.document-page h1 { font-size:clamp(2rem,5vw,3rem); letter-spacing:-.04em; margin-block:2.5rem 1rem; }
.document-page h2 { letter-spacing:-.025em; }

/* Store destinations will be connected when the listings are supplied. */

/* Shared spring motion preserves native scrolling and each preview’s rotation. */
@media (prefers-reduced-motion:no-preference) {
 :is(.home,.cast) { --spring:cubic-bezier(.2,1.4,.35,1); }
 :is(.home,.cast) .panel-button,
 :is(.home,.cast) header nav a,
 :is(.home,.cast) .theme-option input { transition:scale .55s var(--spring),translate .55s var(--spring),background .2s,box-shadow .2s; }
 :is(.home,.cast) .theme-switch input::before { transition:transform .55s var(--spring); }
 :is(.home,.cast) .panel-button:active,
 :is(.home,.cast) header nav a:active,
 :is(.home,.cast) .theme-option input:active { scale:.96; }
 @media (hover:hover) {
  :is(.home,.cast) .panel-button:hover { translate:0 -2px; scale:1.025; }
  :is(.home,.cast) header nav a:hover { translate:0 -2px; }
  :is(.home,.cast) .theme-option input:hover { scale:1.1; }
 }
 @supports (animation-timeline:view()) {
  .company .app-panel,
  .voice-home :is(.voice-fan,.category-books li,.voice-create-art,.learning-cards li),
  .cast :is(.hero-visual,.import-guide,.inside-grid > .screen,.theme-picker) {
   animation:preview-settle 1s ease-out both;
   animation-timeline:view();
   animation-range:entry 0% cover 30%;
  }
 }
}
@keyframes preview-settle {
 from { translate:0 32px; }
 75% { translate:0 -4px; }
 to { translate:0 0; }
}
