/* ==========================================================================
   Blitz — minimal custom layer on top of Tailwind (Play CDN) + Flowbite.
   Tailwind utilities do the heavy lifting; this file only holds the few
   bespoke bits Tailwind classes can't express cleanly.
   Theme: WARM LIGHT (page #FAF8F4 · text #1A1A1A · accent #E0531F).
   ========================================================================== */

/* prevent flash before Tailwind's in-browser build runs (FOUC guard) */
html { background: #FAF8F4; color: #1A1A1A; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
::selection { background: #E0531F; color: #fff; }

/* tabular figures for all data numbers */
.tnum { font-variant-numeric: tabular-nums; }

/* ambient accent glow blob (place absolutely; size via Tailwind w-/h-) */
.glow {
  position: absolute; pointer-events: none; border-radius: 9999px;
  filter: blur(70px); opacity: .18;
  background: radial-gradient(circle, rgba(224,83,31,.30), transparent 60%);
}

/* live status dot pulse (green) */
@keyframes blitz-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(21,128,61,.45); }
  70%  { box-shadow: 0 0 0 9px rgba(21,128,61,0); }
  100% { box-shadow: 0 0 0 0 rgba(21,128,61,0); }
}
.pulse-dot { animation: blitz-pulse 2s infinite; }

/* scroll-reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .pulse-dot { animation: none; }
}

/* graceful-hide for image slots whose file isn't supplied yet */
img[data-slot]:not([src]), img[data-slot][src=""] { display: none; }

/* card hover-lift (apply .lift to any card; pairs with Tailwind hover:border-*) */
.lift { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.lift:hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(26,26,26,.10); }

/* staggered reveal — add .stagger to a .reveal container; its children cascade in */
.stagger > * { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in.stagger > * { opacity: 1; transform: none; }
.stagger > *:nth-child(1) { transition-delay: .05s; } .stagger > *:nth-child(2) { transition-delay: .12s; }
.stagger > *:nth-child(3) { transition-delay: .19s; } .stagger > *:nth-child(4) { transition-delay: .26s; }
.stagger > *:nth-child(5) { transition-delay: .33s; } .stagger > *:nth-child(6) { transition-delay: .40s; }
.stagger > *:nth-child(7) { transition-delay: .47s; } .stagger > *:nth-child(8) { transition-delay: .54s; }
.stagger > *:nth-child(n+9) { transition-delay: .6s; }
@media (prefers-reduced-motion: reduce) {
  .lift, .lift:hover { transition: none; transform: none; }
  .stagger > * { opacity: 1; transform: none; transition: none; }
}

/* dashboard mockups: bars grow in when their .reveal lands (stagger via inline transition-delay) */
.bar-fill { transform: scaleX(0); transform-origin: left center; transition: transform .9s cubic-bezier(.4,0,.2,1); }
.reveal.in .bar-fill { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) {
  .bar-fill { transform: none; transition: none; }
}

/* ===== Ask-Blitz chat widget (injected by site.js; posts to ask.php) ===== */
.ba-launch { position:fixed; right:18px; bottom:18px; z-index:70; display:inline-flex; align-items:center; gap:8px;
  background:#E0531F; color:#fff; border:0; border-radius:9999px; padding:12px 18px; font:600 15px "Inter Tight",Inter,sans-serif;
  box-shadow:0 10px 30px rgba(224,83,31,.35); cursor:pointer; transition:transform .2s ease, box-shadow .2s ease; }
.ba-launch:hover { transform:translateY(-2px); box-shadow:0 14px 36px rgba(224,83,31,.4); }
.ba-launch svg { width:18px; height:18px; }
.ba-panel { position:fixed; right:18px; bottom:80px; z-index:70; width:min(370px, calc(100vw - 24px));
  display:none; flex-direction:column; max-height:min(560px, calc(100vh - 120px));
  background:#FFFFFF; border:1px solid #E7E1D6; border-radius:18px; box-shadow:0 24px 60px rgba(26,26,26,.18); overflow:hidden; }
.ba-panel.open { display:flex; }
.ba-head { padding:14px 16px; border-bottom:1px solid #E7E1D6; background:#FAF8F4; display:flex; align-items:center; justify-content:space-between; gap:8px; }
.ba-head b { font:700 15px "Inter Tight",Inter,sans-serif; color:#1A1A1A; }
.ba-head small { display:block; font-size:11px; color:#6E6D65; font-weight:400; }
.ba-x { background:none; border:0; color:#5A5A54; cursor:pointer; font-size:20px; line-height:1; padding:4px; }
.ba-msgs { flex:1; overflow-y:auto; padding:14px; display:flex; flex-direction:column; gap:8px; background:#FAF8F4; }
.ba-m { max-width:88%; padding:9px 12px; border-radius:14px; font-size:14px; line-height:1.45; color:#1A1A1A; white-space:pre-wrap; overflow-wrap:break-word; }
.ba-m-user { margin-left:auto; background:rgba(224,83,31,.10); border:1px solid rgba(224,83,31,.3); border-bottom-right-radius:5px; }
.ba-m-bot { background:#FFFFFF; border:1px solid #E7E1D6; border-bottom-left-radius:5px; }
.ba-m-err { background:#fff; border:1px solid rgba(185,28,28,.35); color:#7f1d1d; }
.ba-form { display:flex; gap:8px; padding:12px; border-top:1px solid #E7E1D6; background:#fff; }
.ba-in { flex:1; min-width:0; border:1px solid #E7E1D6; border-radius:12px; padding:10px 12px; font:400 14px Inter,sans-serif; color:#1A1A1A; outline:none; background:#FAF8F4; }
.ba-in:focus { border-color:#E0531F; box-shadow:0 0 0 3px rgba(224,83,31,.15); }
.ba-send { border:0; border-radius:12px; background:#E0531F; color:#fff; font:600 14px "Inter Tight",Inter,sans-serif; padding:0 16px; cursor:pointer; }
.ba-send:disabled { opacity:.55; cursor:wait; }
.ba-foot { padding:7px 12px 10px; font-size:10.5px; color:#6E6D65; text-align:center; background:#fff; }
.ba-foot a { color:#E0531F; text-decoration:none; }
.ba-gate-form { margin-top:8px; display:flex; gap:6px; }
.ba-gate-in { width:80px; border:1px solid #E7E1D6; border-radius:10px; padding:7px 10px; font:600 14px Inter,sans-serif; color:#1A1A1A; outline:none; background:#FAF8F4; }
.ba-gate-in:focus { border-color:#E0531F; box-shadow:0 0 0 3px rgba(224,83,31,.15); }
.ba-gate-ok { border:0; border-radius:10px; background:#E0531F; color:#fff; font:600 13px "Inter Tight",Inter,sans-serif; padding:0 14px; cursor:pointer; }
@media (max-width:480px) { .ba-launch span { display:none; } .ba-launch { padding:14px; } }
@media (prefers-reduced-motion: reduce) { .ba-launch, .ba-launch:hover { transition:none; transform:none; } }

/* Jarvis demo chat (animated phone mockup in "What you get") */
.jd-msg { opacity: 0; transform: translateY(6px); transition: opacity .35s ease, transform .35s ease; }
.jd-msg.in { opacity: 1; transform: none; }
.jd-dot { display: inline-block; width: 6px; height: 6px; border-radius: 9999px; background: #5A5A54; margin: 0 2px; vertical-align: middle; animation: jdblink 1.2s infinite both; }
.jd-dot:nth-child(2) { animation-delay: .18s; }
.jd-dot:nth-child(3) { animation-delay: .36s; }
@keyframes jdblink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .jd-msg { opacity: 1; transform: none; transition: none; }
  .jd-dot { animation: none; }
}

/* ==========================================================================
   NIGHT LAYER — "The Factory Wakes Up" redesign.
   Dark bookend surfaces (hero · CTA band · footer) are painted by these
   plain-CSS classes so they apply at FIRST PAINT, before the Tailwind Play
   CDN compiles utilities. Never style a large dark surface with utilities
   alone. Inside a night band, the light-world utility classes are re-skinned
   by the descendant overrides below (higher specificity than one utility).
   Palette: night #17130E · night-soft #211B14 · ember #FF6B2C · live #4ADE80
   ========================================================================== */

.band-night, .cta-night { background-color: #17130E; color: #FAF8F4; }

/* re-skin light-world utilities inside night bands */
.band-night .text-strong,   .cta-night .text-strong   { color: #FAF8F4; }
.band-night .text-muted,    .cta-night .text-muted    { color: rgba(250,248,244,.72); }
.band-night .text-faint,    .cta-night .text-faint    { color: rgba(250,248,244,.55); }
.band-night .border-subtle, .cta-night .border-subtle { border-color: rgba(250,248,244,.12); }
.band-night .divide-subtle > :not([hidden]) ~ :not([hidden]),
.cta-night  .divide-subtle > :not([hidden]) ~ :not([hidden]) { border-color: rgba(250,248,244,.12); }
.band-night .bg-card,    .cta-night .bg-card,
.band-night .bg-surface, .cta-night .bg-surface { background-color: #211B14; }
.band-night .bg-page,    .cta-night .bg-page    { background-color: #17130E; }
.band-night .bg-subtle,  .cta-night .bg-subtle  { background-color: rgba(250,248,244,.08); }
.band-night .hover\:text-strong:hover,   .cta-night .hover\:text-strong:hover   { color: #FAF8F4; }
.band-night .hover\:bg-subtle:hover,     .cta-night .hover\:bg-subtle:hover     { background-color: rgba(250,248,244,.08); }
.band-night .hover\:border-strong\/30:hover, .cta-night .hover\:border-strong\/30:hover { border-color: rgba(250,248,244,.35); }
.band-night .shadow-sm, .cta-night .shadow-sm,
.band-night .shadow-xl, .cta-night .shadow-xl { box-shadow: none; }
.band-night .text-accent,   .cta-night .text-accent   { color: #FF6B2C; }
.band-night .text-positive, .cta-night .text-positive { color: #4ADE80; }
.band-night .bg-positive,   .cta-night .bg-positive   { background-color: #4ADE80; }
.band-night .bg-positive.pulse-dot, .cta-night .bg-positive.pulse-dot { animation-name: blitz-pulse-night; }
@keyframes blitz-pulse-night {
  0%   { box-shadow: 0 0 0 0 rgba(74,222,128,.45); }
  70%  { box-shadow: 0 0 0 9px rgba(74,222,128,0); }
  100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); }
}
.cta-night .glow { opacity: .3; }

/* content inside night bookends sits above the injected dots-field canvas */
footer.band-night > div:not(.dots-field) { position: relative; }
.cta-night > div:not(.dots-field):not(.glow) { position: relative; }

/* dusk hand-off band (index problem section): night fades to the warm-light world */
.band-dusk {
  background: linear-gradient(180deg,
    #17130E 0%, #211910 30%, #45321D 55%, #9C6B3F 72%, #D9BF9C 85%, #FAF8F4 100%);
}

/* Instrument Serif italic emphasis (display headlines: "agent", "talk", …) */
.serif-em { font-family: "Instrument Serif", Georgia, serif; font-style: italic; letter-spacing: .01em; font-weight: 400; }

/* ---------- nav: hide-on-scroll + night skin (toggled by motion.js) ---------- */
#nav { transition: transform .35s ease, box-shadow .3s ease, background-color .3s ease, border-color .3s ease; }
#nav.nav-hidden { transform: translateY(-100%); }
#nav.nav-night { background-color: rgba(23,19,14,.85); border-color: rgba(250,248,244,.12); }
#nav.nav-night .text-strong { color: #FAF8F4; }
#nav.nav-night .text-muted  { color: rgba(250,248,244,.72); }
#nav.nav-night .text-faint  { color: rgba(250,248,244,.55); }
#nav.nav-night .border-subtle { border-color: rgba(250,248,244,.18); }
#nav.nav-night .bg-card { background-color: #211B14; }
#nav.nav-night .hover\:text-strong:hover { color: #FAF8F4; }
#nav.nav-night .hover\:bg-subtle:hover { background-color: rgba(250,248,244,.08); }
@media (max-width: 767px) {
  #nav.nav-night #navmenu { background-color: #17130E; }
}
@media (prefers-reduced-motion: reduce) {
  #nav { transition: none; }
}

/* ---------- dots-field: ambient live signals on night bands (canvas by motion.js) ---------- */
.dots-field { position: absolute; inset: 0; pointer-events: none; overflow: hidden; opacity: .85; }
.dots-field canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
footer .dots-field { opacity: .5; }

/* ---------- keyboard focus, visible on both worlds ---------- */
a:focus-visible, button:focus-visible, summary:focus-visible,
[role="tab"]:focus-visible, input[type="range"]:focus-visible { outline: 2px solid #E0531F; outline-offset: 2px; }
.band-night :focus-visible, .cta-night :focus-visible, #nav.nav-night :focus-visible { outline-color: #FF6B2C; }

/* ---------- animated <details> accordions (driven by motion.js) ---------- */
.acc-wrap { will-change: height; }

/* ==========================================================================
   SHARED SCENE COMPONENTS (scenes.js + showpiece pages)
   ========================================================================== */

/* industry machine-glyph area (animated SVG injected by the glyph registry) */
.ind-glyph { position: relative; height: 7rem; background-color: #F3EFE8;
  background-image: radial-gradient(circle at 1px 1px, rgba(26,26,26,.06) 1px, transparent 0);
  background-size: 14px 14px; overflow: hidden; }
.ind-glyph svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* watch-alert scene: arm a goal -> stock drains -> Jarvis reaches out */
.watch-switch { position: relative; width: 54px; height: 30px; border-radius: 9999px; border: 1px solid #E7E1D6;
  background: #15803D; cursor: pointer; transition: background .25s ease; flex-shrink: 0; }
.watch-switch[aria-checked="false"] { background: #E7E1D6; }
.ws-knob { position: absolute; top: 3px; left: 27px; width: 22px; height: 22px; border-radius: 9999px;
  background: #fff; box-shadow: 0 2px 6px rgba(26,26,26,.25); transition: left .25s ease; }
.watch-switch[aria-checked="false"] .ws-knob { left: 3px; }
.wg-track { position: relative; height: 14px; border-radius: 9999px; background: #F3EFE8; border: 1px solid #E7E1D6; }
.wg-fill { position: absolute; top: 0; bottom: 0; left: 0; width: 100%; border-radius: 9999px;
  background: linear-gradient(90deg, #15803D, #4ADE80); }
.wg-fill.wg-low { background: linear-gradient(90deg, #C2461A, #E0531F); }
.wg-threshold { position: absolute; top: -7px; bottom: -7px; width: 2px; background: #E0531F; }
.wg-threshold > span { position: absolute; top: -16px; left: 50%; transform: translateX(-50%); color: #C2461A; white-space: nowrap; }
.watch-alert { transition: opacity .45s ease, transform .45s ease; }
.watch-alert.wa-hidden { opacity: 0; transform: translateY(10px) scale(.98); }
@media (prefers-reduced-motion: reduce) {
  .watch-alert, .watch-alert.wa-hidden { opacity: 1; transform: none; transition: none; }
}

/* mini dashboard card (scrollytelling act 2 + industry live-shed) */
.dash-card { background: #fff; border: 1px solid #E7E1D6; border-radius: 18px;
  box-shadow: 0 18px 44px rgba(26,26,26,.08); padding: 18px; }
.dash-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.dash-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dash-tile { border: 1px solid #E7E1D6; border-radius: 12px; padding: 12px 14px; background: #FAF8F4; }
.dash-tile .dt-label, .dash-bar .dt-label { display: block; font: 500 11px Inter, sans-serif; color: #6E6D65;
  letter-spacing: .04em; text-transform: uppercase; }
.dash-tile .dt-val { display: block; margin-top: 3px; font: 700 19px "Inter Tight", Inter, sans-serif; color: #1A1A1A; }
.dash-tile.dt-hero { background: rgba(224,83,31,.06); border-color: rgba(224,83,31,.3); }
.dt-low { font: 600 9px "Geist Mono", monospace; color: #C2461A; background: rgba(224,83,31,.12);
  border-radius: 6px; padding: 2px 5px; vertical-align: 2px; }
.dash-bar { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.dash-bar .dt-label { flex-shrink: 0; }
.db-track { flex: 1; height: 8px; border-radius: 9999px; background: #F3EFE8; overflow: hidden; }
.db-fill { display: block; width: 86%; height: 100%; border-radius: 9999px; background: linear-gradient(90deg, #E0531F, #FF6B2C); }
.dash-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 2px;
  border-bottom: 1px dashed #E7E1D6; font-size: 13.5px; }
.dash-row:last-child { border-bottom: 0; }
.dash-status { display: inline-flex; align-items: center; gap: 7px; color: #5A5A54; }
.dash-status .ds-dot { width: 8px; height: 8px; border-radius: 9999px; background: #15803D; }
.dash-row.is-stopped .ds-dot { background: #E0531F; }
.dash-row.is-stopped .ds-state { color: #C2461A; font-weight: 600; }

/* mini phone (scrollytelling act 3 + conversation scenes) */
.mini-phone { max-width: 300px; margin: 0 auto; background: #1A1A1A; border-radius: 26px; padding: 9px;
  box-shadow: 0 24px 60px rgba(26,26,26,.25); }
.mp-head { display: flex; align-items: center; gap: 8px; background: #fff; border-bottom: 1px solid #E7E1D6;
  border-radius: 18px 18px 0 0; padding: 10px 14px; }
.mp-body { background: #FAF8F4; border-radius: 0 0 18px 18px; padding: 14px; display: flex; flex-direction: column;
  gap: 8px; min-height: 190px; justify-content: flex-end; }
.mp-msg { max-width: 88%; border-radius: 14px; padding: 9px 12px; font-size: 13.5px; line-height: 1.45; color: #1A1A1A; }
.mp-alert { background: #fff; border: 1px solid #E7E1D6; border-bottom-left-radius: 5px; }
.mp-user { margin-left: auto; background: rgba(224,83,31,.10); border: 1px solid rgba(224,83,31,.3); border-bottom-right-radius: 5px; }

/* contact form: focus glow + success check draw (CSS-only; the form JS is untouched) */
#demo-form input:focus, #demo-form select:focus, #demo-form textarea:focus {
  border-color: #E0531F; box-shadow: 0 0 0 3px rgba(224,83,31,.13); outline: none; }
#demo-ok:not(.hidden) > span { animation: ok-pop .5s cubic-bezier(.34,1.56,.64,1) both; }
#demo-ok:not(.hidden) svg path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: ok-draw .55s .2s ease forwards; }
@keyframes ok-pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes ok-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  #demo-ok:not(.hidden) > span { animation: none; }
  #demo-ok:not(.hidden) svg path { animation: none; stroke-dasharray: none; stroke-dashoffset: 0; }
}

/* glossary letter rail (injected by the page script) */
.gl-rail { position: sticky; top: 4.5rem; z-index: 30; display: flex; flex-wrap: wrap; gap: 6px;
  max-width: 48rem; margin: 0 auto 1.5rem; padding: 8px 10px; border: 1px solid #E7E1D6;
  border-radius: 14px; background: rgba(250,248,244,.92); backdrop-filter: blur(6px); }
.gl-rail a { min-width: 30px; text-align: center; padding: 4px 6px; border-radius: 8px;
  font: 600 13px "Geist Mono", monospace; color: #5A5A54; }
.gl-rail a:hover { background: rgba(224,83,31,.1); color: #C2461A; }
#terms dt { scroll-margin-top: 7rem; }

/* fixed section rail (features.html, xl+) */
.band-rail { display: none; }
@media (min-width: 1280px) {
  .band-rail { display: flex; flex-direction: column; gap: 14px; position: fixed; right: 22px; top: 50%;
    transform: translateY(-50%); z-index: 40; }
  .band-rail a { position: relative; width: 10px; height: 10px; border-radius: 9999px;
    background: #E7E1D6; border: 1px solid #D8D2C6; transition: background .25s ease, transform .25s ease; }
  .band-rail a:hover { background: #C2461A; }
  .band-rail a.is-on { background: #E0531F; transform: scale(1.35); border-color: #E0531F; }
  .band-rail a::after { content: attr(data-label); position: absolute; right: 20px; top: 50%;
    transform: translateY(-50%); white-space: nowrap; font: 600 11px "Inter Tight", Inter, sans-serif;
    color: #5A5A54; background: #fff; border: 1px solid #E7E1D6; border-radius: 8px; padding: 4px 9px;
    opacity: 0; pointer-events: none; transition: opacity .2s ease; }
  .band-rail a:hover::after, .band-rail a:focus-visible::after, .band-rail a.is-on:hover::after { opacity: 1; }
}

/* margin-calculator range slider (why-blitz) */
.mc-range { -webkit-appearance: none; appearance: none; height: 6px; border-radius: 9999px;
  background: linear-gradient(90deg, #E0531F, #FF6B2C); outline-offset: 4px; cursor: pointer; min-width: 140px; }
.mc-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 22px; height: 22px;
  border-radius: 9999px; background: #fff; border: 3px solid #E0531F; box-shadow: 0 2px 8px rgba(26,26,26,.25); cursor: grab; }
.mc-range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 9999px; background: #fff;
  border: 3px solid #E0531F; box-shadow: 0 2px 8px rgba(26,26,26,.25); cursor: grab; }

/* flow arrows (senses -> memory -> mind at-a-glance rows) breathe forward */
.flow-arrow svg { animation: arrow-nudge 1.9s ease-in-out infinite; }
@keyframes arrow-nudge { 0%, 100% { transform: translateX(0); opacity: .75; } 50% { transform: translateX(5px); opacity: 1; } }
@media (max-width: 767px) {
  .flow-arrow svg { animation-name: arrow-nudge-y; }
  @keyframes arrow-nudge-y { 0%, 100% { transform: rotate(90deg) translateX(0); opacity: .75; } 50% { transform: rotate(90deg) translateX(5px); opacity: 1; } }
}
@media (prefers-reduced-motion: reduce) { .flow-arrow svg { animation: none; } }

/* jarvis mode cards (jarvis.html: pick a card, hear that mode) */
.mode-card { cursor: pointer; transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease; }
.mode-card:hover { transform: translateY(-3px); }
.mode-card.is-on { border-color: rgba(255,107,44,.55); box-shadow: 0 0 0 1px rgba(255,107,44,.35), 0 16px 40px rgba(0,0,0,.3); }
.band-night .glow { opacity: .28; }
@media (prefers-reduced-motion: reduce) { .mode-card, .mode-card:hover { transition: none; transform: none; } }

/* the-two-ways emphasis toggle (index) */
.way-toggle { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid #E7E1D6; border-radius: 9999px;
  background: #fff; margin-bottom: 22px; }
.wt-btn { border: 0; background: transparent; border-radius: 9999px; padding: 9px 20px;
  font: 600 14px "Inter Tight", Inter, sans-serif; color: #5A5A54; cursor: pointer;
  transition: background .25s ease, color .25s ease; }
.wt-btn[aria-pressed="true"] { background: #E0531F; color: #fff; }
.way-card { transition: opacity .4s ease, transform .4s ease, box-shadow .4s ease; }
.ways-new #way-old, .ways-old #way-new { opacity: .45; transform: scale(.985); }
.ways-new #way-new, .ways-old #way-old { opacity: 1; transform: scale(1); box-shadow: 0 18px 44px rgba(224,83,31,.10); }
@media (prefers-reduced-motion: reduce) {
  /* kill only the MOTION — the dim/scale emphasis is a state, and states stay */
  .way-card { transition: none; }
}

/* cost-stack bars: each component row carries a tinted share-of-total bar */
.cs-bar { position: absolute; left: -8px; top: 4px; bottom: 4px; width: 0;
  background: rgba(224,83,31,.08); border-left: 2px solid rgba(224,83,31,.45);
  border-radius: 4px; transition: width .8s cubic-bezier(.4,0,.2,1); pointer-events: none; }

/* glyph motion vocabulary (used by the SVG machine portraits) */
.gA-flow { stroke-dasharray: 4 9; animation: gA-flow 1.2s linear infinite; }
.gA-flow-slow { stroke-dasharray: 6 10; animation: gA-flow 2.2s linear infinite; }
@keyframes gA-flow { to { stroke-dashoffset: -13; } }
.gA-shuttle { animation: gA-shuttle 1.7s ease-in-out infinite alternate; }
@keyframes gA-shuttle { to { transform: translateX(var(--gx, 60px)); } }
.gA-spin { transform-box: fill-box; transform-origin: center; animation: gA-spin var(--gs, 3.6s) linear infinite; }
.gA-orbit { transform-box: fill-box; transform-origin: center; animation: gA-spin var(--gs, 4.2s) linear infinite; }
@keyframes gA-spin { to { transform: rotate(360deg); } }
.gA-bob { animation: gA-bob 1.4s ease-in-out infinite alternate; }
@keyframes gA-bob { to { transform: translateY(var(--gy, 8px)); } }
@media (prefers-reduced-motion: reduce) {
  .gA-flow, .gA-flow-slow, .gA-shuttle, .gA-spin, .gA-orbit, .gA-bob { animation: none; }
  .cs-bar { transition: none; }
}

/* Blitz Plus shimmer (plans cards) */
.plus-shimmer { position: relative; overflow: hidden; }
.plus-shimmer::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255,107,44,.14) 48%, transparent 62%);
  transform: translateX(-100%); animation: plus-sheen 4.5s ease-in-out infinite; }
@keyframes plus-sheen { 0%, 55% { transform: translateX(-100%); } 85%, 100% { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .plus-shimmer::after { animation: none; display: none; } }
