:root,
:root[data-palette="refresh"] {
  --ink: #17182c;
  --muted: #596078;
  --paper: #f6f7fb;
  --line: #dfe1ee;
  --surface-blue: #eeedfa;
  --accent: #5840dc;
  --accent-hover: #4530ba;
  --accent-on-dark: #bfb3ff;
  --midnight: #101122;
  --dark: #17182d;
  --dark-raised: #23243d;
  --dark-line: #3e405c;
  --on-dark: #fafaff;
  --on-dark-muted: #c6c8dc;
  --recorded: #a0f0cb;
  --recorded-background: #16392d;
  --review: #ffd087;
  --review-background: #422e1c;
  --teal: var(--accent);
  --teal-dark: var(--accent-hover);
  --mint: var(--surface-blue);
}

body { background: var(--paper); color: var(--ink); }
:focus-visible { outline-color: var(--accent); }

.site-header, .header, .footer { background: #fff; border-color: var(--line); }
.site-header { box-shadow: 0 1px 0 #17182c08; }
.nav-menu { box-shadow: 0 18px 42px #17182c23; }
.nav-menu a:hover, .nav-menu a:focus-visible { color: var(--accent-hover); background: var(--surface-blue); }
.site-nav > .home-link, .nav nav > .home-link {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: .14rem .55rem;
  border: 1px solid #dcd7fc;
  border-radius: .4rem;
  color: var(--accent-hover);
  background: #f5f2ff;
  font-weight: 740;
  white-space: nowrap;
}
.site-nav > .home-link:hover, .nav nav > .home-link:hover { color: var(--accent-hover); background: #eae3ff; }
.site-nav > .home-link[aria-current="page"], .nav nav > .home-link[aria-current="page"] { color: #fff; background: var(--accent); border-color: var(--accent); }

.button-primary, .header .button, .setup .button-main { background: var(--accent); color: #fff; }
.button-primary:hover, .header .button:hover, .setup .button-main:hover { background: var(--accent-hover); color: #fff; }
.button-secondary { color: var(--accent-hover); background: #fff; border-color: #b7a9ec; }
.button-secondary:hover { color: var(--accent-hover); background: #f2eeff; border-color: var(--accent); }
.text-link, .product-shortcuts a { color: var(--accent-hover); }
.text-link:hover, .product-shortcuts a:hover { color: var(--accent); }

:root :is(.hero, .page-hero, .about-hero, .product-hero) {
  position: relative;
  isolation: isolate;
  color: var(--on-dark);
  background: var(--midnight);
  border-bottom-color: #443a71;
}
:root :is(.hero, .page-hero, .about-hero, .product-hero)::before {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 48%;
  background-image: radial-gradient(circle, #bfb3ff32 .8px, transparent 1.25px);
  background-size: 23px 23px;
  mask-image: linear-gradient(90deg, transparent, black 50%);
  content: "";
  pointer-events: none;
}
:root :is(.hero, .page-hero, .about-hero, .product-hero) h1 { color: var(--on-dark); text-wrap: balance; }
:root :is(.hero, .page-hero, .about-hero, .product-hero) .eyebrow { color: var(--accent-on-dark); }
:root :is(.hero .lede, .page-hero .lede, .about-hero p:not(.eyebrow), .product-hero .intro) { color: var(--on-dark-muted); }
:root :is(.hero, .page-hero, .about-hero, .product-hero) :is(.button-primary, .button-main) { background: var(--accent); color: #fff; }
:root :is(.hero, .page-hero, .about-hero, .product-hero) :is(.button-primary, .button-main):hover { background: var(--accent-hover); }
:root :is(.hero, .page-hero, .about-hero, .product-hero) :is(.button-secondary, .button-ghost, .button-nav, .sector-shortcuts a) { color: var(--on-dark); background: var(--dark); border-color: #70679a; }
:root :is(.hero, .page-hero, .about-hero, .product-hero) :is(.button-secondary, .button-ghost, .button-nav, .sector-shortcuts a):hover { background: var(--dark-raised); border-color: var(--accent-on-dark); }
:root :is(.hero .eyebrow, .page-hero .eyebrow, .about-hero .eyebrow, .product-hero .eyebrow) > span { background: var(--accent-on-dark); }
:is(.hero, .page-hero, .about-hero, .product-hero, .example-panel, .workflows, .gate-demo) :focus-visible { outline-color: var(--accent-on-dark); }

.scenario {
  position: relative;
  background: var(--dark);
  border-color: #5549a0;
  box-shadow: 0 25px 60px #09081787;
}
.scenario::before {
  position: absolute;
  inset: -1px auto auto 1.5rem;
  width: 3.25rem;
  height: 2px;
  border-radius: 2px;
  background: var(--accent-on-dark);
  content: "";
}
.scenario-label { color: #e6deff; background: #322858; border-color: #615299; }
.scenario-steps { background: #111222; border-color: var(--dark-line); }
.scenario-steps button { color: var(--on-dark-muted); }
.scenario-steps button:hover { background: var(--dark-raised); }
.scenario-steps button[aria-pressed="true"] { color: #17122b; background: var(--accent-on-dark); border-color: var(--accent-on-dark); }
.scenario-event { background: var(--dark-raised); }
.scenario-event [data-stage-label], .scenario-timeline time { color: var(--on-dark-muted); }
.scenario-event-value, .scenario-timeline li { color: var(--on-dark); }
.scenario-timeline li::before { background: var(--recorded); }
.scenario-timeline li:first-child::before { background: var(--review); }
.scenario-timeline li:first-child > span { color: var(--review); }

.module-card, .panel, .industry { background: #fff; border-color: var(--line); }
.module-card h3 a { text-decoration-color: #9784ed; }
.module-icon, .answer, .proof, .note, .page-section dl > div, .restore-grid article, .restore-faq details, .methods-grid .panel:last-child, .arrival-story-card--zone { background: var(--surface-blue); border-color: #d8d1f0; }
.module-icon { color: var(--accent-hover); }
.industry, .answer { border-color: #917be8; }
.workflows { background: var(--midnight); }
.workflows .eyebrow, .workflow-card > strong { color: var(--accent-on-dark); }
.workflow-card { background: var(--dark); border-color: var(--dark-line); border-top-color: #8a75ed; }
.cta-band, .about-deployment, .setup, .stereo-proof-inner { background: var(--surface-blue); border-color: var(--line); }
.setup-cta { background: #fff; border-color: var(--line); }

.example-panel, .gate-demo { background: var(--dark); border-color: #514780; }
.example-panel .eyebrow, .example-panel .text-link, .example-steps summary time, .example-list time { color: var(--accent-on-dark); }
.example-panel .text-link:hover { color: #e1d6ff; }
.example-filters select { color: var(--ink); background: #f3f0ff; border-color: #9f91cb; }
.gate-head > span { color: #e6deff; background: #322858; }
.gate-events .feed-list li span { color: var(--recorded); background: var(--recorded-background); }
.gate-events .feed-list li .needs-review { color: var(--review); background: var(--review-background); }
.gate-events .feed-list time { color: var(--on-dark-muted); }
.gate-events .feed-list li.is-current, .gate-replay button { background: #30284e; }
.gate-replay button { color: #fff; border-color: #8f7cc5; }
.gate-image, .gate-zone, .gate-marker > span { color: var(--on-dark); background: #16162de8; }
.gate-zone { border-color: #8272b5; }
.gate-demo .gate-marker { border-color: var(--accent-on-dark); box-shadow: 0 0 0 1px var(--dark); }
.gate-demo .gate-marker.is-current { background: #bfb3ff30; }

.method-table thead th { background: #edeff7; }
.method-table td:last-child, .method-table thead th:last-child { background: #efebff; }
.flow-branch { border-color: var(--line); }
.flow-branch-review { background: #fff9f0; border-color: #ecd2a9; }
.gate-estimate { --gate-ink: var(--ink); --gate-muted: var(--muted); --gate-line: var(--line); --gate-accent: var(--accent); }
.pilot-sheet { --pilot-ink: var(--ink); --pilot-muted: var(--muted); --pilot-line: var(--line); --pilot-accent: var(--accent); }
.gate-estimate__presets button, .gate-estimate__form input, .pilot-sheet__fields input { border-color: #aeb1ca; }
.gate-estimate__presets button, .pilot-sheet__result output { color: var(--accent-hover); }
.gate-estimate__presets button:hover, .gate-estimate__presets button[aria-pressed="true"], .gate-estimate__results div, .pilot-sheet__result { background: var(--surface-blue); }
.gate-estimate__form input[aria-invalid="true"], .pilot-sheet__fields input[aria-invalid="true"] { border-color: #a43f2b; }

@media (min-width: 761px) and (max-width: 920px) {
  .site-header .header-inner { flex-wrap: wrap; row-gap: .55rem; }
  .site-header .site-nav { order: 3; flex: 0 0 100%; gap: 1rem; }
}

@media (max-width: 780px) {
  :root :is(.hero, .page-hero, .about-hero, .product-hero)::before { inset-inline-start: 26%; background-size: 20px 20px; }
  .site-nav > .home-link, .nav nav > .home-link { min-height: 1.8rem; }
}

.motion-hero-grid { display: grid; grid-template-columns: minmax(0, .94fr) minmax(0, 1fr); gap: clamp(1.25rem, 4vw, 3.6rem); align-items: center; }
.motion-hero-grid h1 { max-width: 16ch; font-size: clamp(2.5rem, 5vw, 4.55rem); }
.product-motion { --motion-ink: #f5f3ff; --motion-muted: #c4c1db; --motion-line: #423963; --motion-surface: #1b162b; --motion-accent: #baa5ff; position: relative; margin: 0; min-width: 0; padding: clamp(.9rem, 2.4vw, 1.65rem); overflow: hidden; border: 1px solid #5a4683; border-radius: 15px; background: #141020; color: var(--motion-ink); box-shadow: 0 22px 52px #08061193; }
.product-motion::before { position: absolute; inset: 0 auto auto 1rem; width: 3.5rem; height: 2px; background: #a48bff; content: ""; }
.motion-head { display: flex; align-items: flex-start; justify-content: space-between; gap: .6rem; }
.motion-head p { margin-bottom: .32rem; color: var(--motion-accent); font-size: .68rem; font-weight: 720; letter-spacing: .095em; text-transform: uppercase; }
.motion-head h2 { color: var(--motion-ink); font-size: clamp(1.12rem, 2.3vw, 1.55rem); }
.motion-play { flex: none; min-width: 4.45rem; min-height: 2.3rem; padding: .28rem .55rem; border: 1px solid #8972c0; border-radius: 6px; color: #f7f2ff; background: #29203e; font-size: .8rem; font-weight: 700; }
.motion-play:hover { background: #453067; }
.motion-context { margin-top: .55rem; color: var(--motion-muted); font-size: .84rem; }
.motion-content { display: grid; grid-template-columns: minmax(100px, .77fr) minmax(0, 1fr); min-height: 156px; align-items: center; gap: .8rem; margin-block: .77rem; padding: .8rem; border: 1px solid var(--motion-line); border-radius: 9px; background: var(--motion-surface); }
.motion-readout p { margin: .35rem 0 0; color: var(--motion-muted); font-size: .82rem; line-height: 1.42; }
.motion-readout [data-motion-caption] { color: #bfb1ec; font-size: .69rem; font-weight: 700; letter-spacing: .03em; }
.motion-readout [data-motion-value] { display: block; margin-top: .32rem; color: var(--motion-ink); font-size: clamp(1rem, 1.8vw, 1.24rem); line-height: 1.2; }
.motion-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .35rem; margin: 0; padding: 0; list-style: none; }
.motion-steps button { width: 100%; min-height: 2.62rem; padding: .3rem .36rem; border: 1px solid #4c3f6a; border-radius: 6px; background: #201932; color: #ded6f8; font-size: .75rem; font-weight: 690; line-height: 1.25; }
.motion-steps button:hover { background: #37264e; }
.motion-steps button[aria-pressed=true] { border-color: #cabaff; background: #c6b6ff; color: #19102c; }
.product-motion :focus-visible { outline: 2px solid #e1d7ff; outline-offset: 3px; }

.motion-art { position: relative; display: grid; align-content: center; gap: .5rem; height: 124px; min-width: 0; padding: .7rem; overflow: hidden; isolation: isolate; border: 1px solid #4b4068; border-radius: 7px; background: #100e1a; }
.motion-art i { display: block; background: #6f5a9c; opacity: .5; transition: width .48s ease, opacity .42s ease, transform .48s ease, background .4s ease, box-shadow .4s ease; }
.motion-art i:nth-child(1), [data-motion-index="2"] .motion-art i:nth-child(2), [data-motion-index="3"] .motion-art i:nth-child(3) { opacity: 1; background: var(--motion-accent); }
.motion-art i:nth-child(3) { --resolved-art: #83e9be; }
[data-motion-index="3"] .motion-art--arrival i:nth-child(3) { background: var(--resolved-art); }
[data-motion-index="3"] .motion-art--review i:nth-child(3) { background: #f0bd7c; }
.motion-art--arrival { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; }
.motion-art--arrival::before { position: absolute; inset: 12px 22%; content: ""; border: 1px dashed #9b84e3; border-radius: 7px; background: #b6a1ff18; }
.motion-art--arrival i { height: 48px; width: 70%; justify-self: center; border-radius: 20px 20px 8px 8px; }
[data-motion-index="2"] .motion-art--arrival i:nth-child(2), [data-motion-index="3"] .motion-art--arrival i:nth-child(3) { transform: translateY(-5px); box-shadow: 0 0 16px #c6b2ff6b; }
.motion-art--filter i, .motion-art--dashboard i { height: 19px; border-radius: 4px; }
.motion-art--filter i:nth-child(1) { width: 98%; }
.motion-art--filter i:nth-child(2) { width: 82%; }
.motion-art--filter i:nth-child(3) { width: 70%; }
[data-motion-index="2"] .motion-art--filter i:nth-child(3), [data-motion-index="3"] .motion-art--filter :is(i:nth-child(1),i:nth-child(2)) { width: 21%; opacity: .22; }
[data-motion-index="3"] .motion-art--filter i:nth-child(3) { width: 98%; }
.motion-art--timeline, .motion-art--review { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; }
.motion-art--timeline::before, .motion-art--review::before { position: absolute; inset: 50% 9% auto; height: 1px; background: #7d68a9; content: ""; z-index: -1; }
.motion-art--timeline i { width: 1.1rem; height: 1.1rem; border: 3px solid #554174; justify-self: center; border-radius: 50%; }
[data-motion-index="2"] .motion-art--timeline i:nth-child(2), [data-motion-index="3"] .motion-art--timeline i:nth-child(3) { transform: scale(1.3); box-shadow: 0 0 12px #c6b2ff86; }
.motion-art--evidence { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 7px; padding: 1rem; }
.motion-art--evidence i:first-child { grid-column: 1 / -1; height: 43px; border: 1px dashed #bdabf2; border-radius: 5px; background: #8c71bb37; }
.motion-art--evidence i:not(:first-child) { height: 16px; border-radius: 4px; }
[data-motion-index="2"] .motion-art--evidence i:first-child, [data-motion-index="3"] .motion-art--evidence i:first-child { transform: scale(.9); opacity: .58; }
.motion-art--analytics { grid-template-columns: repeat(3, minmax(0, 1fr)); align-content: end; align-items: end; }
.motion-art--analytics i { height: 35px; border-radius: 4px 4px 0 0; transform-origin: bottom; }
.motion-art--analytics i:nth-child(2) { height: 54px; }
.motion-art--analytics i:nth-child(3) { height: 73px; }
[data-motion-index="1"] .motion-art--analytics :is(i:nth-child(2), i:nth-child(3)), [data-motion-index="2"] .motion-art--analytics i:nth-child(3) { transform: scaleY(.46); }
.motion-art--review i { width: 1.6rem; height: 1.6rem; justify-self: center; border-radius: 6px; }
.motion-art--review i:first-child { background: #f0bd7c; }
.motion-art--hours i { height: 14px; border-radius: 5px; }
.motion-art--hours i:nth-child(1) { width: 75%; }
.motion-art--hours i:nth-child(2) { width: 83%; }
.motion-art--hours i:nth-child(3) { width: 19%; }
[data-motion-index="2"] .motion-art--hours i:nth-child(2), [data-motion-index="3"] .motion-art--hours i:nth-child(2) { width: 99%; }
.motion-art--dashboard i:nth-child(2) { width: 82%; }
.motion-art--dashboard i:nth-child(3) { width: 69%; }
[data-motion-index="2"] .motion-art--dashboard i:nth-child(2), [data-motion-index="3"] .motion-art--dashboard i:nth-child(3) { width: 100%; }
.restored-replay { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1fr); align-items: center; gap: clamp(1rem, 3vw, 2.5rem); }
.restored-replay .gate-demo { justify-self: stretch; }
.restored-replay p { max-width: 45ch; margin-top: .7rem; color: var(--muted); }
.platform-next { display: flex; flex-wrap: wrap; gap: .7rem 1.6rem; }
.practice-toggle { padding: .85rem 1rem; border: 1px solid var(--line); border-radius: 8px; font-weight: 700; background: #fff; }
.practice-toggle > summary { color: var(--ink); }
.practice-toggle[open] { padding-bottom: 0; border-color: transparent; }
.practice-toggle .example-panel { margin-top: .8rem; font-weight: 400; }
@media (width <= 830px) {
  .motion-hero-grid, .restored-replay { grid-template-columns: minmax(0, 1fr); }
  .motion-hero-grid h1 { max-width: 19ch; }
}
@media (width <= 390px) {
  .motion-content { grid-template-columns: minmax(0, 1fr); }
  .motion-art { height: 86px; }
  .motion-art--analytics i:nth-child(3) { height: 59px; }
  .motion-art--evidence i:first-child { height: 25px; }
}
@media (prefers-reduced-motion: reduce) { .motion-art i { transition: none; } }
