/* Shared palette for the custom Mindbox pages, after their layout styles. */
:root[data-palette="refresh"] {
  --ink: #172a3e;
  --muted: #47575c;
  --paper: #f8f6ef;
  --cream: #fffdf8;
  --line: #d6d6cb;
  --surface-blue: #e9eeeb;
  --control-line: #81948c;
  --accent: #213a4d;
  --accent-hover: #285952;
  --focus: #28655c;
  --teal: #31665c;
  --teal-dark: #285952;
  --mint: var(--surface-blue);
  --midnight: #172a3e;
  --dark: #192c3b;
  --dark-raised: #243c4d;
  --dark-line: #506b76;
  --on-dark: #f8f7ef;
  --on-dark-muted: #ced9d8;
  --accent-on-dark: #a7cfc6;
  --recorded: #c0e3d4;
  --recorded-background: #254b42;
  --review: #f3dbad;
  --review-background: #54422f;
}

.site-header, .header, .footer, .nav-menu, .nav-toggle, .skip-link,
.site-header[data-nav-enhanced] .site-nav:not([hidden]) { background-color: var(--cream); }
.site-header, .nav-menu, .site-header[data-nav-enhanced] .site-nav:not([hidden]) {
  box-shadow: 0 .75rem 1.75rem #172a3e14;
}
.nav-toggle:hover, .nav-toggle[aria-expanded="true"] { background-color: var(--surface-blue); }
.site-nav > .home-link, .nav nav > .home-link { background-color: #edf0eb; border-color: #b8c6c1; }
.site-nav > .home-link:hover, .nav nav > .home-link:hover { background-color: #e1eae5; }
.site-nav > .home-link[aria-current="page"], .nav nav > .home-link[aria-current="page"] {
  background-color: var(--accent);
  border-color: var(--accent);
}
:root :focus-visible { outline-color: var(--focus); }

:root :is(.hero, .page-hero, .about-hero, .product-hero) {
  color: var(--ink);
  background: linear-gradient(115deg, #fcfaf3, #f1eee4);
  border-bottom-color: var(--line);
}
:root :is(.hero, .page-hero, .about-hero, .product-hero)::before { content: none; }
:root :is(.hero, .page-hero, .about-hero, .product-hero) h1 { color: var(--ink); }
:root :is(.hero, .page-hero, .about-hero, .product-hero) .eyebrow { color: var(--teal-dark); }
:root :is(.hero .lede, .page-hero .lede, .about-hero p:not(.eyebrow), .product-hero .intro) { color: var(--muted); }
:root :is(.hero .eyebrow, .page-hero .eyebrow, .about-hero .eyebrow, .product-hero .eyebrow) > span { background-color: var(--teal); }
:root :is(.hero, .page-hero, .about-hero, .product-hero) :is(.button-primary, .button-main),
.setup .button-main, .mindbox-contact-form .wpcf7-submit { color: #fff; background-color: var(--accent); }
:root :is(.hero, .page-hero, .about-hero, .product-hero) :is(.button-primary, .button-main):hover,
.setup .button-main:hover, .mindbox-contact-form .wpcf7-submit:hover:not(:disabled) { background-color: var(--accent-hover); }
.button-secondary,
:root :is(.hero, .page-hero, .about-hero, .product-hero) :is(.button-secondary, .button-ghost, .button-nav, .sector-shortcuts a) {
  color: var(--accent);
  background-color: var(--cream);
  border-color: var(--control-line);
}
.button-secondary:hover,
:root :is(.hero, .page-hero, .about-hero, .product-hero) :is(.button-secondary, .button-ghost, .button-nav, .sector-shortcuts a):hover {
  color: var(--accent-hover);
  background-color: var(--surface-blue);
  border-color: var(--accent-hover);
}

.module-card, .panel, .industry, .detail-card, .proof, .product-shortcuts,
.platform-next article, .practice-toggle, .setup-cta, .method-criteria,
.attendance-faq-list details, .arrival-story-card, .flow-branch,
.gate-estimate__panel, .pilot-sheet__form, .about-image {
  background-color: var(--cream);
  border-color: var(--line);
}
.module-card h3 a { text-decoration-color: #75938c; }
.industry > span, .flow li span, .stereo-metric { color: var(--teal-dark); }
.module-icon, .answer, .note, .page-section dl > div, .restore-grid article,
.restore-faq details, .methods-grid .panel:last-child, .arrival-story-card--zone,
.cta-band, .about-deployment, .configured, .setup, .stereo-proof-inner {
  background-color: var(--surface-blue);
  border-color: var(--line);
}
.answer, .note { border-inline-start-color: #839d91; }
.flow-branch-review { background-color: #fbf4e5; border-color: #d9c9ac; }
.inner-demo { background-color: var(--surface-blue); border-color: var(--line); }
.inner-demo p { color: var(--muted); }
.inner-demo strong { color: var(--ink); }
.method-table thead th { background-color: #efeee6; }
.method-table td:last-child, .method-table thead th:last-child { background-color: var(--surface-blue); }

.studio-hero-link, .studio-legacy {
  color: var(--ink);
  background: var(--cream);
  border-color: #c9d1c8;
  box-shadow: 0 1rem 2.6rem #2338471c;
}
.studio-hero-link span, .studio-disclosure { color: var(--muted); }
.studio-hero-link a, .studio-legacy a, .studio-fallback { color: var(--teal-dark); }
.studio-panel { background-color: var(--cream); border-color: var(--line); }
.studio-panel > summary { color: var(--ink); background-color: var(--surface-blue); }
.studio-panel > summary:hover { color: var(--teal-dark); background-color: #e1eae5; }
.studio-mount iframe { background-color: var(--paper); color-scheme: light; }
.studio-hero-link a:focus-visible, .studio-panel summary:focus-visible,
.studio-section a:focus-visible, .studio-legacy a:focus-visible { outline-color: var(--focus); }

.workflow-card { border-top-color: #7da79d; }
.scenario, .example-panel, .gate-demo, .console { color: var(--on-dark); background: var(--dark); border-color: var(--dark-line); }
.scenario, .gate-demo, .console { box-shadow: 0 1rem 2.6rem #172a3e25; }
.scenario-steps, .motion-art, .console-scene, .bars { background-color: #152636; }
.scenario-label, .gate-head > span, .console-header > span { color: var(--recorded); background-color: var(--recorded-background); border-color: #648980; }
.scenario-steps button[aria-pressed="true"], .motion-steps button[aria-pressed="true"] {
  color: var(--midnight);
  background-color: var(--accent-on-dark);
  border-color: var(--accent-on-dark);
}
.example-panel .text-link:hover, .gate-demo .gate-replay-status,
.restored-replay .gate-replay-status, .gate-caption span { color: var(--on-dark); }
.gate-events .feed-list li.is-current, .gate-replay button, .modes button[aria-pressed="true"] {
  color: var(--on-dark);
  background-color: #345951;
  border-color: #709b91;
}
.gate-image { background: var(--dark-raised); }
.gate-zone, .gate-marker > span, .scene-label { color: var(--on-dark); background-color: #192c3bf2; border-color: #7b9eaa; }
.gate-demo .gate-marker.is-current { background-color: #a7cfc630; }
.console-header, .modes, .feed-list li { border-color: var(--dark-line); }
.modes button:hover { border-color: var(--accent-on-dark); }
.feed-head span, .feed-list time, .bars-row { color: var(--on-dark-muted); }
.feed-list li span { color: var(--recorded); background-color: var(--recorded-background); }
.bars-row div { background-color: var(--dark-line); }
.bars-row i { background-color: var(--accent-on-dark); }

.product-motion {
  --motion-ink: var(--on-dark);
  --motion-muted: var(--on-dark-muted);
  --motion-line: var(--dark-line);
  --motion-surface: var(--dark-raised);
  --motion-accent: var(--accent-on-dark);
  background: var(--dark);
  border-color: var(--dark-line);
  box-shadow: 0 1rem 2.6rem #172a3e25;
}
.product-motion::before { background-color: var(--accent-on-dark); }
.motion-readout [data-motion-caption], .motion-art--floorplan span { color: var(--accent-on-dark); }
.motion-play, .motion-steps button { color: var(--on-dark); background-color: var(--dark-raised); border-color: #719087; }
.motion-play:hover, .motion-steps button:hover { background-color: #345951; }
.motion-art { border-color: var(--motion-line); }
.motion-art i { background-color: #73978e; }
.motion-art--arrival::before, .motion-art--evidence i:first-child { background-color: #a7cfc627; border-color: #95b9b1; }
.motion-art--timeline::before, .motion-art--review::before { background-color: #95b9b1; }
.motion-art--timeline i, .motion-art--floorplan::before { border-color: #95b9b1; }
.motion-art--floorplan i { box-shadow: 0 0 0 .2rem var(--dark-raised); }
[data-motion-index="2"] :is(.motion-art--arrival, .motion-art--timeline, .motion-art--floorplan) i:nth-child(2),
[data-motion-index="3"] :is(.motion-art--arrival, .motion-art--timeline, .motion-art--floorplan) i:nth-child(3) { box-shadow: 0 0 .75rem #a7cfc675; }
:root :is(.product-motion, .scenario, .example-panel, .gate-demo, .console, .workflows) :focus-visible { outline-color: var(--accent-on-dark); }

.example-filters select,
.gate-estimate__presets button, .gate-estimate__form input, .pilot-sheet__fields input,
.mindbox-contact-form .mindbox-field :is(input, textarea) {
  background-color: var(--cream);
  border-color: var(--control-line);
  color: var(--ink);
}
.gate-estimate__presets button:hover, .gate-estimate__presets button[aria-pressed="true"] {
  color: var(--teal-dark);
  background-color: var(--surface-blue);
  border-color: var(--teal);
}
.gate-estimate__form input[aria-invalid="true"], .pilot-sheet__fields input[aria-invalid="true"],
.mindbox-contact-form .mindbox-field [aria-invalid="true"] { border-color: #a2221d; }
.mindbox-interest input { accent-color: var(--teal-dark); }

@media (max-width: 760px) {
  .method-table tbody th:first-child { background-color: var(--cream); }
  .method-table thead th:first-child { background-color: #efeee6; }
}
