/* =====================================================================
   Solutions rail: sideways travel, every card runs a live mini demo.
   ===================================================================== */
.sol { color: #fff; }
.sol__stage { height: 100svh; overflow: hidden; display: flex; align-items: center; background: #050421; }
.sol__bg { position: absolute; inset: -4%; background: url("assets/b-port-poster.webp") center / cover no-repeat;
  transform: scale(calc(1.06 + var(--sc-p, 0) * 0.14)) translateX(calc(var(--sc-p, 0) * 3%)); opacity: 0.55; will-change: transform; }
.sol__stage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,4,33,.55), rgba(5,4,33,.25) 50%, rgba(5,4,33,.7)); pointer-events: none; }
.sol .mirror { position: relative; z-index: 1; transform: scaleX(-1); width: 100%; direction: ltr; }
.sol .rail { display: flex; gap: 1.4rem; padding-inline: var(--sc-gutter); width: max-content; direction: ltr; align-items: stretch; }
.sol .rail > * { transform: scaleX(-1); direction: rtl; text-align: right; }
.sol__lead { width: clamp(18rem, 30vw, 27rem); align-self: center; }
.sol__lead h2 { margin: 0; font-weight: 900; font-size: clamp(2.2rem, 1.4rem + 3vw, 4.2rem); line-height: 1.02; text-wrap: balance; }
.sol__lead p { color: #D2CFE6; font-size: 1.12rem; line-height: 1.6; margin: 1rem 0 0; }
.sol__lead .hint { display: inline-flex; gap: 0.5rem; align-items: center; margin-top: 1.6rem; color: var(--brand-200); font-weight: 700; }
.sol__lead .hint i { display: inline-block; width: 2.2rem; height: 2px; background: currentColor; animation: hint 1.6s ease-in-out infinite; transform-origin: right; }
@keyframes hint { 50% { transform: scaleX(.4); } }

.scard { width: clamp(20rem, 34vw, 30rem); height: min(78svh, 44rem); border-radius: 30px; padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem;
  background: linear-gradient(160deg, rgba(42,28,158,.92), rgba(14,11,51,.94) 70%); border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 50px 100px -40px rgba(0,0,0,.85); text-decoration: none; color: inherit; transition: border-color 200ms ease; }
.scard:hover { border-color: var(--brand-300); }
.scard__who { font-size: 0.82rem; color: var(--brand-200); font-weight: 700; display: flex; justify-content: space-between; align-items: center; }
.scard__who .live { display: inline-flex; align-items: center; gap: 0.35rem; color: #86EFAC; font-size: 0.78rem; }
.scard__who .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #22C55E; box-shadow: 0 0 0 4px rgba(34,197,94,.2); animation: live 1.6s ease-in-out infinite; }
@keyframes live { 50% { box-shadow: 0 0 0 7px rgba(34,197,94,0); } }
.scard h3 { margin: 0; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); font-weight: 900; line-height: 1.15; }
.scard > p { margin: 0; color: #D5D2EA; font-size: 0.98rem; line-height: 1.55; }
.scard__go { margin-top: auto; display: inline-flex; align-self: flex-start; align-items: center; gap: 0.4rem; height: 2.6rem; padding: 0 1.1rem; border-radius: 999px; background: #fff; color: var(--ink); font-weight: 700; font-size: 0.92rem; }

/* the demo window */
.demo { flex: 1; min-height: 0; border-radius: 20px; background: #F3F2F9; color: var(--ink); padding: 0.8rem; display: flex; flex-direction: column; gap: 0.45rem; overflow: hidden; position: relative; }
.demo__bar { display: flex; align-items: center; gap: 0.5rem; font-size: 0.78rem; font-weight: 700; padding-bottom: 0.5rem; border-bottom: 1px solid #E3E1EE; }
.demo__bar img { height: 14px; }
.demo__bar .av { width: 1.6rem; height: 1.6rem; border-radius: 50%; background: #E9E6FF; color: var(--brand); display: grid; place-items: center; font-size: 0.75rem; }
.demo__body { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 0.45rem; }
.demo [data-step] { opacity: 0; transform: translateY(8px) scale(.98); transition: opacity 350ms ease, transform 350ms cubic-bezier(.2,.7,.2,1); }
.demo [data-step].on { opacity: 1; transform: none; }
.m { max-width: 86%; padding: 0.5rem 0.7rem; border-radius: 14px; font-size: 0.82rem; line-height: 1.45; }
.m--a { align-self: flex-start; background: #fff; border-bottom-left-radius: 4px; box-shadow: 0 2px 6px rgba(8,6,44,.06); }
.m--c { align-self: flex-end; background: #DCD6FF; border-bottom-right-radius: 4px; }
.m--s { align-self: center; font-size: 0.76rem; font-weight: 700; color: #15803D; background: #DCFCE7; border-radius: 999px; padding: 0.25rem 0.7rem; }
.m--h { align-self: center; font-size: 0.76rem; font-weight: 700; color: #fff; background: var(--ink); border-radius: 999px; padding: 0.3rem 0.8rem; }
.rec { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0.5rem; background: #fff; border-radius: 12px; padding: 0.5rem 0.7rem; font-size: 0.78rem; }
.rec b { font-family: var(--sc-font-mono); }
.pill { padding: 0.15rem 0.55rem; border-radius: 999px; font-size: 0.72rem; font-weight: 700; background: #FEF3C7; color: #92400E; transition: background-color 300ms ease, color 300ms ease; }
.demo.paid .pill { background: #DCFCE7; color: #15803D; }
.slots { display: flex; gap: 0.35rem; align-self: flex-start; }
.slot { font-size: 0.74rem; padding: 0.3rem 0.6rem; border-radius: 999px; border: 1px solid #CFCBE6; background: #fff; transition: background-color 300ms ease, color 300ms ease; }
.demo.picked .slot--x { background: var(--brand); color: #fff; border-color: var(--brand); }
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.35rem; }
.qt { background: #fff; border-radius: 10px; padding: 0.4rem; text-align: center; font-size: 0.7rem; color: #4A4570; }
.qt b { display: block; font-size: 0.95rem; color: var(--ink); font-family: var(--sc-font-mono); }
.qt--best { outline: 2px solid var(--brand); }
.chart { background: #fff; border-radius: 12px; padding: 0.5rem; }
.chart svg { width: 100%; height: 5.2rem; display: block; }
.chart .ln { fill: none; stroke: var(--brand); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 420; stroke-dashoffset: 420; }
.demo.drawn .chart .ln { stroke-dashoffset: 0; transition: stroke-dashoffset 2.2s ease; }
.chart .dip { fill: #EF4444; opacity: 0; transition: opacity 300ms ease; }
.demo.alert .chart .dip { opacity: 1; animation: dip 1s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes dip { 50% { transform: scale(1.6); } }
.alertbox { background: #FEE2E2; color: #991B1B; border-radius: 12px; padding: 0.45rem 0.7rem; font-size: 0.78rem; font-weight: 700; }

@media (max-width: 900px) {
  .scard { width: 84vw; height: 74svh; padding: 1.1rem; }
  .sol__lead { width: 78vw; }
}
@media (prefers-reduced-motion: reduce) { .demo [data-step] { opacity: 1; transform: none; } }
