/*
 * MyFAQ public site: product screenshots in 3D cards and explanatory motion.
 * Loaded by the faq_site marketing pages (landing, capabilities, RFx projects,
 * cloud integration). Driven by static/js/myfaq_site.js; everything degrades
 * to a static, readable layout without JS or with prefers-reduced-motion.
 */

:root {
  --mf-ink: #0b1220;
  --mf-navy: #0f172a;
  --mf-cyan: #22d3ee;
  --mf-cyan-strong: #0891b2;
  --mf-indigo: #3b5bdb;
  --mf-green: #10b981;
  --mf-amber: #f59e0b;
  --mf-rose: #f43f5e;
  --mf-radius: 18px;
}

/* ------------------------------------------------------------------ */
/* Scroll reveal                                                        */
/* ------------------------------------------------------------------ */
.mf-js [data-mf-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--mf-delay, 0ms);
}
.mf-js [data-mf-reveal].is-visible { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ */
/* Section helpers                                                      */
/* ------------------------------------------------------------------ */
.mf-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--mf-cyan-strong);
}
.mf-dark .mf-eyebrow { color: #67e8f9; }
.mf-grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(148,163,184,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,163,184,.08) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
}
.mf-orb {
  position: absolute; border-radius: 9999px; filter: blur(70px); pointer-events: none;
  animation: mf-orb 16s ease-in-out infinite alternate;
}
@keyframes mf-orb {
  from { transform: translate3d(0,0,0) scale(1); }
  to   { transform: translate3d(40px,-30px,0) scale(1.15); }
}
.mf-gradient-text {
  background: linear-gradient(90deg, #67e8f9, #a5b4fc 55%, #f0abfc);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ------------------------------------------------------------------ */
/* 3D screenshot card                                                   */
/* ------------------------------------------------------------------ */
.mf-tilt {
  --rx: 0deg; --ry: 0deg; --gx: 50%; --gy: 0%;
  perspective: 1600px;
}
.mf-screen {
  position: relative;
  border-radius: var(--mf-radius);
  transform-style: preserve-3d;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .5s cubic-bezier(.2,.7,.2,1), box-shadow .5s;
  background: linear-gradient(145deg, rgba(255,255,255,.95), rgba(226,232,240,.9));
  padding: 6px;
  box-shadow:
    0 1px 0 rgba(255,255,255,.6) inset,
    0 30px 60px -20px rgba(15,23,42,.45),
    0 18px 36px -18px rgba(8,145,178,.35);
}
.mf-tilt.is-tilting .mf-screen { transition: transform .12s linear, box-shadow .5s; }
.mf-dark .mf-screen {
  background: linear-gradient(145deg, rgba(51,65,85,.9), rgba(15,23,42,.95));
  box-shadow:
    0 0 0 1px rgba(148,163,184,.18),
    0 40px 80px -24px rgba(0,0,0,.7),
    0 0 80px -20px rgba(34,211,238,.35);
}
/* Glowing gradient rim */
.mf-screen::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
  background: linear-gradient(135deg, rgba(34,211,238,.7), rgba(99,102,241,.2) 40%, rgba(240,171,252,.5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none; opacity: .75;
}
.mf-screen-bar {
  display: flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px;
  border-radius: calc(var(--mf-radius) - 6px) calc(var(--mf-radius) - 6px) 0 0;
  background: rgba(241,245,249,.95); border-bottom: 1px solid rgba(148,163,184,.25);
}
.mf-dark .mf-screen-bar { background: rgba(30,41,59,.95); border-bottom-color: rgba(148,163,184,.15); }
.mf-screen-bar i { width: 9px; height: 9px; border-radius: 9999px; background: #cbd5e1; }
.mf-screen-bar i:nth-child(1) { background: #fb7185; }
.mf-screen-bar i:nth-child(2) { background: #fbbf24; }
.mf-screen-bar i:nth-child(3) { background: #34d399; }
.mf-screen-bar span {
  margin: 0 auto; padding: 2px 14px; border-radius: 9999px; font-size: 10px; font-weight: 600;
  color: #64748b; background: rgba(255,255,255,.8); letter-spacing: .02em;
}
.mf-dark .mf-screen-bar span { color: #94a3b8; background: rgba(15,23,42,.7); }
.mf-screen-view {
  position: relative; overflow: hidden; aspect-ratio: 1600 / 828;
  border-radius: 0 0 calc(var(--mf-radius) - 6px) calc(var(--mf-radius) - 6px);
  background: #e2e8f0;
}
.mf-screen-view img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left;
  transition: opacity .6s ease, transform .9s cubic-bezier(.2,.7,.2,1);
}
.mf-screen-view img.mf-dark-img { opacity: 0; }
.mf-mode-dark .mf-screen-view img.mf-dark-img { opacity: 1; }
.mf-mode-dark .mf-screen-view img.mf-light-img { opacity: 0; }
/* Pointer-following glare */
.mf-glare {
  position: absolute; inset: 0; pointer-events: none; border-radius: inherit; mix-blend-mode: soft-light;
  background: radial-gradient(circle at var(--gx) var(--gy), rgba(255,255,255,.75), transparent 45%);
  opacity: 0; transition: opacity .4s;
}
.mf-tilt.is-tilting .mf-glare { opacity: 1; }
/* Floor reflection */
.mf-floor {
  position: absolute; left: 8%; right: 8%; bottom: -36px; height: 50px; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(8,145,178,.35), transparent 70%);
  filter: blur(14px); transform: translateZ(-60px); pointer-events: none;
}

/* Floating annotation chips on top of screenshots */
.mf-chip {
  position: absolute; z-index: 5; display: inline-flex; align-items: center; gap: .45rem;
  padding: .5rem .8rem; border-radius: 12px; font-size: .8rem; font-weight: 700; white-space: nowrap;
  color: #0f172a; background: rgba(255,255,255,.96);
  box-shadow: 0 14px 30px -12px rgba(15,23,42,.45), 0 0 0 1px rgba(148,163,184,.25);
  transform: translateZ(80px);
  animation: mf-float 6s ease-in-out infinite;
}
.mf-chip svg { width: 16px; height: 16px; }
.mf-chip.is-green svg { color: var(--mf-green); }
.mf-chip.is-amber svg { color: var(--mf-amber); }
.mf-chip.is-cyan svg { color: var(--mf-cyan-strong); }
@keyframes mf-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}

/* ------------------------------------------------------------------ */
/* Hero: stacked 3D screens                                             */
/* ------------------------------------------------------------------ */
.mf-hero-stage { position: relative; perspective: 2000px; min-height: 340px; }
.mf-stack {
  position: relative; transform-style: preserve-3d;
  transform: rotateX(calc(10deg + var(--rx, 0deg))) rotateY(calc(-16deg + var(--ry, 0deg))) rotateZ(2deg);
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.mf-hero-stage.is-tilting .mf-stack { transition: transform .15s linear; }
.mf-stack .mf-screen { transform: none; }
.mf-stack-layer { position: relative; transform-style: preserve-3d; }
.mf-stack-layer.is-back {
  position: absolute; width: 78%; top: -14%; right: -10%;
  transform: translateZ(-160px); opacity: .9;
}
.mf-stack-layer.is-mid {
  position: absolute; width: 62%; bottom: -20%; left: -2%;
  transform: translateZ(90px);
}
.mf-stack-layer.is-front { transform: translateZ(0); }
.mf-stack-layer.is-back .mf-screen, .mf-stack-layer.is-mid .mf-screen { padding: 4px; }
.mf-stack-layer.is-mid .mf-screen { box-shadow: 0 40px 70px -20px rgba(0,0,0,.75), 0 0 0 1px rgba(148,163,184,.3); }

@media (max-width: 1023px) {
  .mf-hero-stage { min-height: 0; }
  .mf-stack { transform: rotateX(8deg) rotateY(-8deg); }
  .mf-stack-layer.is-back { display: none; }
  .mf-stack-layer.is-mid { width: 62%; bottom: -12%; left: -4%; }
}
@media (max-width: 639px) {
  .mf-stack-layer.is-mid { display: none; }
  .mf-hero-stage .mf-chip { display: none; }
}

/* ------------------------------------------------------------------ */
/* Integration marquee                                                  */
/* ------------------------------------------------------------------ */
.mf-marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.mf-marquee-track {
  display: flex; gap: 1rem; width: max-content;
  animation: mf-marquee 36s linear infinite;
}
.mf-marquee:hover .mf-marquee-track { animation-play-state: paused; }
@keyframes mf-marquee { to { transform: translateX(-50%); } }
.mf-logo-pill {
  display: inline-flex; align-items: center; gap: .55rem; padding: .6rem 1.1rem; border-radius: 9999px;
  font-weight: 600; font-size: .9rem; color: #334155; background: #fff;
  border: 1px solid #e2e8f0; box-shadow: 0 6px 14px -10px rgba(15,23,42,.35); white-space: nowrap;
}
.mf-logo-pill svg { width: 18px; height: 18px; }

/* ------------------------------------------------------------------ */
/* How-it-works pipeline                                                */
/* ------------------------------------------------------------------ */
.mf-pipeline { position: relative; display: grid; gap: 1.25rem; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.mf-pipeline-beam {
  position: absolute; left: 10%; right: 10%; top: 44px; height: 3px; border-radius: 9999px;
  background: linear-gradient(90deg, rgba(34,211,238,.15), rgba(99,102,241,.15));
  overflow: hidden;
}
.mf-pipeline-beam::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 22%; left: -22%;
  background: linear-gradient(90deg, transparent, #22d3ee, #818cf8, transparent);
  animation: mf-beam 5s linear infinite;
}
@keyframes mf-beam { to { left: 100%; } }
.mf-step { position: relative; text-align: center; }
.mf-step-tile {
  position: relative; z-index: 1; margin: 0 auto 1rem; width: 88px; height: 88px; border-radius: 24px;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(145deg, #1e293b, #0f172a);
  border: 1px solid rgba(148,163,184,.2);
  box-shadow: 0 20px 40px -18px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.08);
  transform: perspective(500px) rotateX(18deg);
  animation: mf-step-pulse 10s ease-in-out infinite;
  animation-delay: calc(var(--i) * 2s);
}
.mf-step-tile svg { width: 34px; height: 34px; color: #67e8f9; transition: color .3s; }
.mf-step-tile::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; opacity: 0;
  box-shadow: 0 0 0 2px rgba(34,211,238,.9), 0 0 40px 6px rgba(34,211,238,.45);
  animation: mf-step-glow 10s ease-in-out infinite; animation-delay: calc(var(--i) * 2s);
}
@keyframes mf-step-pulse {
  0%, 22%, 100% { transform: perspective(500px) rotateX(18deg) translateY(0); }
  8% { transform: perspective(500px) rotateX(0deg) translateY(-10px) scale(1.06); }
}
@keyframes mf-step-glow { 0%, 22%, 100% { opacity: 0; } 6%, 12% { opacity: 1; } }
.mf-step-num {
  position: absolute; z-index: 2; top: -8px; right: calc(50% - 54px); width: 26px; height: 26px; border-radius: 9999px;
  display: grid; place-items: center; font-size: .72rem; font-weight: 800; color: #0f172a; background: #67e8f9;
}
.mf-step h3 { font-weight: 700; color: #fff; font-size: .98rem; line-height: 1.35; }
@media (max-width: 1023px) {
  .mf-pipeline { grid-template-columns: 1fr; gap: 1.5rem; }
  .mf-pipeline-beam { left: 43px; right: auto; top: 8%; bottom: 8%; width: 3px; height: auto; }
  .mf-pipeline-beam::after { width: auto; height: 22%; left: 0; right: 0; top: -22%; animation-name: mf-beam-v; }
  @keyframes mf-beam-v { to { top: 100%; } }
  .mf-step { display: flex; align-items: center; gap: 1.25rem; text-align: left; }
  .mf-step-tile { margin: 0; flex-shrink: 0; }
  .mf-step-num { right: auto; left: 70px; }
}

/* ------------------------------------------------------------------ */
/* Retrieval demo: generic search vs. whole-questionnaire scope          */
/* ------------------------------------------------------------------ */
.mf-demo { position: relative; border-radius: 24px; padding: 1.5rem; overflow: hidden; }
.mf-demo.is-bad { background: rgba(244,63,94,.06); border: 1px solid rgba(244,63,94,.25); }
.mf-demo.is-good { background: rgba(34,211,238,.07); border: 1px solid rgba(34,211,238,.3); }
.mf-sheet {
  position: relative; border-radius: 12px; overflow: hidden; background: rgba(2,6,23,.55);
  border: 1px solid rgba(148,163,184,.2); font-size: .78rem; color: #cbd5e1;
}
.mf-sheet-row { display: grid; grid-template-columns: 34px 1fr; border-top: 1px solid rgba(148,163,184,.12); }
.mf-sheet-row:first-child { border-top: 0; }
.mf-sheet-row > span { padding: .45rem .6rem; }
.mf-sheet-row > span:first-child { color: #64748b; border-right: 1px solid rgba(148,163,184,.12); text-align: center; }
.mf-sheet-row.is-active > span:last-child { color: #fff; font-weight: 600; }
.mf-bar { display: block; height: 7px; border-radius: 4px; background: rgba(148,163,184,.25); margin: .2rem 0; }
.mf-scan {
  position: absolute; left: 0; right: 0; height: 32px; top: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(34,211,238,.35), transparent);
  animation: mf-scan 3.6s ease-in-out infinite;
}
@keyframes mf-scan { 0% { top: -32px; } 100% { top: 100%; } }
.mf-doc {
  display: flex; align-items: center; gap: .6rem; padding: .6rem .75rem; border-radius: 12px;
  font-size: .8rem; font-weight: 600; color: #e2e8f0; background: rgba(15,23,42,.7);
  border: 1px solid rgba(148,163,184,.2);
}
.mf-doc svg { width: 16px; height: 16px; flex-shrink: 0; }
.mf-doc .mf-tag { margin-left: auto; font-size: .7rem; padding: .15rem .5rem; border-radius: 9999px; }
.mf-doc.is-wrong { animation: mf-wrong 4s ease-in-out infinite; }
.mf-doc.is-wrong .mf-tag { background: rgba(244,63,94,.18); color: #fda4af; }
.mf-doc.is-right { border-color: rgba(16,185,129,.5); box-shadow: 0 0 24px -6px rgba(16,185,129,.55); }
.mf-doc.is-right .mf-tag { background: rgba(16,185,129,.18); color: #6ee7b7; }
.mf-doc.is-out { opacity: .4; text-decoration: line-through; }
@keyframes mf-wrong {
  0%, 30%, 100% { box-shadow: none; transform: none; }
  40% { box-shadow: 0 0 24px -4px rgba(244,63,94,.7); transform: translateX(-3px); }
  45% { transform: translateX(3px); }
  50% { transform: none; }
}
.mf-link {
  height: 26px; margin: .35rem auto; width: 2px;
  background: repeating-linear-gradient(180deg, currentColor 0 4px, transparent 4px 8px);
  background-size: 2px 16px; animation: mf-dash .8s linear infinite;
}
@keyframes mf-dash { to { background-position: 0 16px; } }

/* ------------------------------------------------------------------ */
/* Answer-quality micro illustrations                                   */
/* ------------------------------------------------------------------ */
.mf-quality-card {
  position: relative; border-radius: 22px; padding: 1.5rem; background: #fff; border: 1px solid #cffafe;
  box-shadow: 0 10px 30px -18px rgba(8,145,178,.45);
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s;
}
.mf-quality-card:hover { transform: translateY(-6px); box-shadow: 0 24px 40px -20px rgba(8,145,178,.55); }
.mf-illu {
  position: relative; height: 128px; margin-bottom: 1.25rem; border-radius: 16px; overflow: hidden;
  background: linear-gradient(160deg, #0f172a, #1e293b); color: #e2e8f0;
}
/* 01 provenance: buyer dot bounces off the wall, supplier dot passes */
.mf-wall { position: absolute; left: 50%; top: 14px; bottom: 14px; width: 3px; border-radius: 3px; background: linear-gradient(#f59e0b, #f43f5e); box-shadow: 0 0 14px rgba(245,158,11,.6); }
.mf-side { position: absolute; top: 12px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; }
.mf-side svg { width: 18px; height: 18px; }
.mf-side.is-buyer { left: 12px; background: rgba(245,158,11,.18); color: #fcd34d; }
.mf-side.is-supplier { right: 12px; background: rgba(16,185,129,.18); color: #6ee7b7; }
.mf-answer-box { position: absolute; right: 12px; bottom: 12px; width: 38%; height: 40px; border-radius: 10px; border: 1px dashed rgba(110,231,183,.6); }
.mf-dot { position: absolute; width: 12px; height: 12px; border-radius: 9999px; }
.mf-dot.is-buyer { background: #fbbf24; left: 20%; top: 70%; animation: mf-bounce 3s ease-in-out infinite; }
.mf-dot.is-supplier { background: #34d399; right: 30%; top: 30%; animation: mf-drop 3s ease-in-out infinite; }
@keyframes mf-bounce { 0%, 100% { left: 14%; } 45% { left: calc(50% - 14px); } 55% { left: calc(50% - 16px); } }
@keyframes mf-drop { 0%, 20% { top: 30%; right: 30%; opacity: 1; } 70% { top: 72%; right: 22%; opacity: 1; } 100% { top: 72%; right: 22%; opacity: 0; } }
/* 02 claims: highlighted claim wired to its citation */
.mf-claim-lines { position: absolute; left: 14px; right: 14px; top: 18px; }
.mf-claim-lines .mf-bar { background: rgba(148,163,184,.3); }
.mf-claim-lines .mf-bar.is-claim { position: relative; overflow: hidden; background: rgba(34,211,238,.18); }
.mf-claim-lines .mf-bar.is-claim::after {
  content: ""; position: absolute; inset: 0; background: #22d3ee; transform-origin: left;
  animation: mf-highlight 3.2s ease-in-out infinite;
}
@keyframes mf-highlight { 0% { transform: scaleX(0); } 40%, 80% { transform: scaleX(1); } 100% { transform: scaleX(1); opacity: 0; } }
.mf-cite {
  position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: .35rem;
  padding: .3rem .6rem; border-radius: 8px; font-size: .7rem; font-weight: 700; color: #0f172a; background: #67e8f9;
  animation: mf-pop 3.2s ease-in-out infinite;
}
.mf-cite svg { width: 12px; height: 12px; }
@keyframes mf-pop { 0%, 35% { transform: scale(.6); opacity: 0; } 50%, 90% { transform: scale(1); opacity: 1; } 100% { opacity: 0; } }
/* 03 calculations */
.mf-calc { position: absolute; inset: 0; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.mf-calc-expr { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .95rem; color: #cbd5e1; }
.mf-calc-expr b { color: #fff; }
.mf-calc-check {
  display: inline-grid; place-items: center; width: 22px; height: 22px; margin-left: .4rem; vertical-align: middle;
  border-radius: 9999px; background: #10b981; color: #fff; animation: mf-pop 3.2s ease-in-out infinite;
}
.mf-calc-check svg { width: 14px; height: 14px; }
/* 04 coverage */
.mf-checklist { position: absolute; left: 16px; right: 16px; top: 16px; display: grid; gap: 10px; }
.mf-check-row { display: flex; align-items: center; gap: .6rem; }
.mf-check-row .mf-bar { flex: 1; margin: 0; }
.mf-tick { width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; flex-shrink: 0; }
.mf-tick svg { width: 13px; height: 13px; }
.mf-tick.is-ok { background: rgba(16,185,129,.25); color: #6ee7b7; }
.mf-tick.is-gap { background: rgba(245,158,11,.25); color: #fcd34d; animation: mf-gap 1.6s ease-in-out infinite; }
@keyframes mf-gap { 0%, 100% { box-shadow: 0 0 0 0 rgba(245,158,11,.6); } 50% { box-shadow: 0 0 0 6px rgba(245,158,11,0); } }
.mf-check-row.is-gap .mf-bar { background: repeating-linear-gradient(90deg, rgba(245,158,11,.5) 0 6px, transparent 6px 10px); }

/* ------------------------------------------------------------------ */
/* Product tour tabs                                                     */
/* ------------------------------------------------------------------ */
.mf-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.mf-tab {
  display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1rem; border-radius: 9999px;
  font-size: .9rem; font-weight: 600; color: #cbd5e1; background: rgba(30,41,59,.6);
  border: 1px solid rgba(148,163,184,.2); transition: all .25s; cursor: pointer;
}
.mf-tab svg { width: 16px; height: 16px; }
.mf-tab:hover { color: #fff; border-color: rgba(103,232,249,.5); }
.mf-tab[aria-selected="true"] {
  color: #0f172a; background: linear-gradient(90deg, #67e8f9, #a5b4fc); border-color: transparent;
  box-shadow: 0 10px 30px -10px rgba(103,232,249,.7);
}
.mf-tab-progress { display: block; height: 2px; margin-top: .35rem; border-radius: 2px; background: rgba(15,23,42,.25); overflow: hidden; }
.mf-tour-panel[hidden] { display: none; }
.mf-tour-panel .mf-screen-view img { transform: scale(1.02); }
.mf-tour-panel.is-entering .mf-screen { animation: mf-flip-in .8s cubic-bezier(.2,.7,.2,1); }
@keyframes mf-flip-in {
  from { opacity: 0; transform: rotateX(14deg) rotateY(-10deg) translateY(30px) scale(.96); }
  to { opacity: 1; transform: rotateX(var(--rx)) rotateY(var(--ry)); }
}
.mf-mode-toggle {
  display: inline-flex; padding: 3px; border-radius: 9999px; background: rgba(30,41,59,.7); border: 1px solid rgba(148,163,184,.2);
}
.mf-mode-toggle button {
  display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .8rem; border-radius: 9999px;
  font-size: .8rem; font-weight: 600; color: #94a3b8; transition: all .25s;
}
.mf-mode-toggle button svg { width: 14px; height: 14px; }
.mf-mode-toggle button[aria-pressed="true"] { background: #f8fafc; color: #0f172a; }

/* ------------------------------------------------------------------ */
/* Pain -> benefit transform rows                                        */
/* ------------------------------------------------------------------ */
.mf-shift { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; }
.mf-shift-card {
  display: flex; align-items: center; gap: .9rem; padding: 1rem 1.1rem; border-radius: 18px; font-weight: 700;
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.mf-shift-card svg { width: 22px; height: 22px; flex-shrink: 0; }
.mf-shift-card.is-pain { color: #881337; background: #fff1f2; border: 1px solid #fecdd3; }
.mf-shift-card.is-gain { color: #064e3b; background: #ecfdf5; border: 1px solid #a7f3d0; box-shadow: 0 12px 26px -18px rgba(16,185,129,.7); }
.mf-shift:hover .mf-shift-card.is-gain { transform: translateX(4px); }
.mf-shift:hover .mf-shift-card.is-pain { transform: translateX(-4px); opacity: .75; }
.mf-shift-arrow {
  position: relative; width: 56px; height: 2px; background: linear-gradient(90deg, #fda4af, #6ee7b7);
}
.mf-shift-arrow::after {
  content: ""; position: absolute; top: -4px; width: 10px; height: 10px; border-radius: 9999px; background: #10b981;
  animation: mf-travel 2.4s ease-in-out infinite;
}
@keyframes mf-travel { from { left: 0; opacity: 0; } 20% { opacity: 1; } to { left: calc(100% - 10px); opacity: 1; } }
@media (max-width: 767px) {
  .mf-shift { grid-template-columns: 1fr; gap: .5rem; }
  .mf-shift-arrow { width: 2px; height: 22px; margin: 0 auto; background: linear-gradient(#fda4af, #6ee7b7); }
  .mf-shift-arrow::after { display: none; }
}

/* ------------------------------------------------------------------ */
/* Isolation rings (security)                                            */
/* ------------------------------------------------------------------ */
.mf-rings { position: relative; width: min(100%, 360px); aspect-ratio: 1; margin: 0 auto; }
.mf-ring {
  position: absolute; border-radius: 9999px; border: 1px solid rgba(103,232,249,.35);
  display: grid; place-items: start center;
}
.mf-ring:nth-child(1) { inset: 0; animation: mf-spin 40s linear infinite; }
.mf-ring:nth-child(2) { inset: 17%; border-color: rgba(165,180,252,.45); animation: mf-spin 28s linear infinite reverse; }
.mf-ring:nth-child(3) { inset: 34%; border-color: rgba(240,171,252,.5); animation: mf-spin 18s linear infinite; }
.mf-ring > i {
  width: 12px; height: 12px; margin-top: -6px; border-radius: 9999px; background: #67e8f9; box-shadow: 0 0 16px #67e8f9;
}
.mf-ring:nth-child(2) > i { background: #a5b4fc; box-shadow: 0 0 16px #a5b4fc; }
.mf-ring:nth-child(3) > i { background: #f0abfc; box-shadow: 0 0 16px #f0abfc; }
@keyframes mf-spin { to { transform: rotate(360deg); } }
.mf-ring-core {
  position: absolute; inset: 41%; border-radius: 22px; display: grid; place-items: center; color: #0f172a;
  background: linear-gradient(145deg, #67e8f9, #a5b4fc); box-shadow: 0 0 60px rgba(103,232,249,.55);
}
.mf-ring-core svg { width: 32px; height: 32px; }
.mf-ring-label {
  position: absolute; left: 50%; transform: translateX(-50%); font-size: .7rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: #94a3b8; white-space: nowrap; background: #020617; padding: 0 .5rem;
}

/* Generic feature tile with subtle 3D hover */
.mf-tile {
  border-radius: 22px; padding: 1.4rem; transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s, border-color .35s;
}
.mf-tile:hover { transform: translateY(-4px) perspective(800px) rotateX(3deg); }
.mf-icon {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex-shrink: 0;
}
.mf-icon svg { width: 22px; height: 22px; }

/* Showcase rows (capabilities, RFx projects, integrations) */
.mf-showcase { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1024px) {
  .mf-showcase { grid-template-columns: 0.8fr 1.2fr; gap: 4rem; }
  .mf-showcase.is-flipped { grid-template-columns: 1.2fr 0.8fr; }
  .mf-showcase.is-flipped > :first-child { order: 2; }
}

/* ------------------------------------------------------------------ */
/* Blog: compact hero with an abstract "pages being written" 3D scene   */
/* ------------------------------------------------------------------ */
.mf-blog-thumb-empty {
  position: absolute; inset: 0; display: grid; place-items: center; color: rgba(103,232,249,.7);
  background: radial-gradient(circle at 30% 20%, rgba(34,211,238,.35), transparent 55%), linear-gradient(135deg, #1e3a8a, #0f172a);
}
.mf-blog-thumb-empty svg { width: 44px; height: 44px; }
.mf-blog-art { --rx: 0deg; --ry: 0deg; width: 300px; height: 190px; perspective: 900px; }
.mf-blog-scene {
  position: relative; width: 136px; height: 170px; margin: 0 auto; top: 4px;
  transform-style: preserve-3d;
  transform: rotateX(calc(52deg + var(--rx))) rotateZ(calc(-38deg + var(--ry)));
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.mf-blog-art.is-tilting .mf-blog-scene { transition: transform .15s linear; }
.mf-blog-sheet {
  position: absolute; inset: 0; border-radius: 14px;
  background: linear-gradient(145deg, rgba(255,255,255,.16), rgba(255,255,255,.04));
  border: 1px solid rgba(165,243,252,.35);
  box-shadow: 0 0 34px -10px rgba(34,211,238,.6);
}
.mf-blog-sheet.is-back { opacity: .45; transform: translateZ(0); animation: mf-sheet-back 6s ease-in-out infinite; }
.mf-blog-sheet.is-mid { opacity: .7; transform: translateZ(26px); animation: mf-sheet-mid 6s ease-in-out infinite; }
.mf-blog-sheet.is-front {
  display: grid; gap: 11px; align-content: start; padding: 20px 16px;
  background: linear-gradient(145deg, rgba(30,41,59,.92), rgba(15,23,42,.85));
  border-color: rgba(103,232,249,.6);
  transform: translateZ(52px); animation: mf-sheet-front 6s ease-in-out infinite;
}
@keyframes mf-sheet-back { 0%, 100% { transform: translateZ(0); } 50% { transform: translateZ(8px); } }
@keyframes mf-sheet-mid { 0%, 100% { transform: translateZ(26px); } 50% { transform: translateZ(40px); } }
@keyframes mf-sheet-front { 0%, 100% { transform: translateZ(52px); } 50% { transform: translateZ(74px); } }
/* Lines "typed" one after another, then fade and start again */
.mf-blog-sheet.is-front > i {
  display: block; height: 7px; border-radius: 4px; transform-origin: left;
  background: linear-gradient(90deg, #67e8f9, #a5b4fc);
  animation: mf-type 6s cubic-bezier(.6,0,.3,1) infinite;
}
.mf-blog-sheet.is-front > i:nth-child(1) { height: 11px; width: 72%; margin-bottom: 4px; background: linear-gradient(90deg, #f0abfc, #a5b4fc); }
.mf-blog-sheet.is-front > i:nth-child(2) { width: 100%; animation-delay: .45s; }
.mf-blog-sheet.is-front > i:nth-child(3) { width: 88%; animation-delay: .9s; }
.mf-blog-sheet.is-front > i:nth-child(4) { width: 95%; animation-delay: 1.35s; }
.mf-blog-sheet.is-front > i:nth-child(5) { width: 58%; animation-delay: 1.8s; }
@keyframes mf-type {
  0%, 6% { transform: scaleX(0); opacity: .3; }
  18%, 78% { transform: scaleX(1); opacity: 1; }
  92%, 100% { transform: scaleX(1); opacity: 0; }
}
.mf-blog-pen {
  position: absolute; right: -18px; top: -18px; width: 42px; height: 42px; border-radius: 13px;
  display: grid; place-items: center; color: #0f172a;
  background: linear-gradient(145deg, #67e8f9, #a5b4fc);
  box-shadow: 0 0 30px rgba(103,232,249,.65);
  transform: translateZ(64px); animation: mf-pen 6s ease-in-out infinite;
}
.mf-blog-pen svg { width: 20px; height: 20px; }
@keyframes mf-pen {
  0%, 100% { transform: translateZ(64px) translate(0, 0); }
  25% { transform: translateZ(70px) translate(-46px, 40px); }
  50% { transform: translateZ(76px) translate(-20px, 80px); }
  75% { transform: translateZ(70px) translate(-60px, 110px); }
}


/* Category filter docked on the hero edge */
.mf-filter-dock {
  display: flex; gap: .5rem; overflow-x: auto; padding: .45rem; border-radius: 9999px; max-width: 100%;
  background: rgba(255,255,255,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 20px 40px -20px rgba(15,23,42,.45), 0 0 0 1px rgba(148,163,184,.25);
  scrollbar-width: none;
}
.mf-filter-dock::-webkit-scrollbar { display: none; }
.mf-filter-dock a {
  flex-shrink: 0; padding: .55rem 1.1rem; border-radius: 9999px; font-size: .875rem; font-weight: 600;
  color: #334155; white-space: nowrap; transition: background .25s, color .25s;
}
.mf-filter-dock a:hover { background: #f1f5f9; color: #0f172a; }
.mf-filter-dock a.is-active { background: #0f172a; color: #fff; box-shadow: 0 6px 16px -6px rgba(15,23,42,.6); }
.mf-filter-dock a:focus-visible { outline: 3px solid #0891b2; outline-offset: 2px; }

/* Article cards: pointer tilt + glare, image zoom, gradient rim on hover */
.mf-post { height: 100%; }
.mf-post-card {
  position: relative; display: flex; flex-direction: column; height: 100%; overflow: hidden;
  border-radius: 22px; background: #fff; border: 1px solid #e2e8f0;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .5s cubic-bezier(.2,.7,.2,1), box-shadow .4s, border-color .4s;
  box-shadow: 0 1px 2px rgba(15,23,42,.04);
}
.mf-post.is-tilting .mf-post-card { transition: transform .12s linear, box-shadow .4s, border-color .4s; }
.mf-post:hover .mf-post-card {
  border-color: rgba(34,211,238,.5);
  box-shadow: 0 30px 50px -28px rgba(15,23,42,.45), 0 18px 40px -24px rgba(8,145,178,.45);
}
.mf-post-card::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; z-index: 3;
  background: linear-gradient(90deg, #22d3ee, #6366f1, #f0abfc);
  transform: scaleX(0); transform-origin: left; transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.mf-post:hover .mf-post-card::after { transform: scaleX(1); }
.mf-post-thumb { position: relative; display: block; overflow: hidden; aspect-ratio: 2 / 1; background: #0f172a; }
.mf-post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.mf-post:hover .mf-post-thumb img { transform: scale(1.06); }
.mf-post .mf-glare { z-index: 2; }
.mf-post.is-tilting .mf-glare { opacity: .6; }
.mf-post-arrow { transition: transform .3s; }
.mf-post:hover .mf-post-arrow { transform: translateX(4px); }

/* ------------------------------------------------------------------ */
/* Founder portrait: conic halo, holographic orbit, scan, 3D tilt        */
/* ------------------------------------------------------------------ */
@property --mf-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.mf-portrait { position: relative; perspective: 1200px; isolation: isolate; }
.mf-portrait-halo {
  position: absolute; inset: -18px; z-index: -1; border-radius: 40px;
  background: conic-gradient(from var(--mf-angle), #22d3ee, #6366f1, #f0abfc, #22d3ee);
  filter: blur(26px); opacity: .55;
  animation: mf-angle 8s linear infinite;
}
@keyframes mf-angle { to { --mf-angle: 360deg; } }
.mf-portrait-orbit {
  position: absolute; left: -8%; right: -8%; bottom: -12%; height: 34%; z-index: -1; border-radius: 50%;
  border: 1.5px dashed rgba(34,211,238,.55);
  transform: rotateX(72deg); transform-style: preserve-3d;
}
.mf-portrait-orbit::before {
  content: ""; position: absolute; inset: 12%; border-radius: 50%;
  border: 1px solid rgba(165,180,252,.45);
  background: radial-gradient(ellipse at center, rgba(34,211,238,.25), transparent 70%);
}
.mf-portrait-orbit > i {
  position: absolute; inset: -1.5px; border-radius: 50%; animation: mf-spin 9s linear infinite;
}
.mf-portrait-orbit > i::before {
  content: ""; position: absolute; top: -7px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 9999px;
  background: #67e8f9; box-shadow: 0 0 18px 4px rgba(103,232,249,.8);
}
.mf-portrait-card {
  position: relative; border-radius: 28px; overflow: hidden; background: #0f172a;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d;
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
  box-shadow: 0 40px 70px -30px rgba(15,23,42,.6), 0 0 0 1px rgba(255,255,255,.6) inset;
  animation: mf-portrait-float 7s ease-in-out infinite;
}
.mf-portrait.is-tilting .mf-portrait-card { transition: transform .12s linear; }
/* Animated gradient rim */
.mf-portrait-card::before {
  content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; padding: 3px; pointer-events: none;
  background: conic-gradient(from var(--mf-angle), #22d3ee, #6366f1 30%, transparent 45%, #f0abfc 70%, #22d3ee);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: mf-angle 6s linear infinite;
}
@keyframes mf-portrait-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
.mf-portrait-card img {
  display: block; width: 100%; height: 100%; aspect-ratio: 900 / 845; object-fit: cover; object-position: 50% 30%;
  transition: transform 1.2s cubic-bezier(.2,.7,.2,1), clip-path 1.3s cubic-bezier(.65,0,.35,1), filter 1.6s ease;
}
.mf-portrait:hover .mf-portrait-card img { transform: scale(1.04); }
/* Entrance: the photo is "scanned in" from bottom to top, colour last */
.mf-js .mf-portrait[data-mf-reveal] .mf-portrait-card img { clip-path: inset(100% 0 0 0); filter: grayscale(1) contrast(1.1); }
.mf-js .mf-portrait[data-mf-reveal].is-visible .mf-portrait-card img { clip-path: inset(0 0 0 0); filter: none; transition-delay: .15s, .15s, .9s; }
.mf-portrait-scan {
  position: absolute; left: 0; right: 0; top: -20%; height: 18%; z-index: 2; pointer-events: none;
  background: linear-gradient(transparent, rgba(103,232,249,.28) 70%, rgba(165,243,252,.9) 98%, transparent);
  mix-blend-mode: screen; animation: mf-portrait-scan 9s cubic-bezier(.45,0,.2,1) 1.4s infinite;
}
@keyframes mf-portrait-scan { 0% { top: -20%; opacity: 1; } 22% { top: 102%; opacity: 1; } 23%, 100% { top: 102%; opacity: 0; } }
.mf-portrait .mf-glare { z-index: 2; }
.mf-portrait.is-tilting .mf-glare { opacity: 1; }
.mf-portrait .mf-chip { z-index: 4; }

/* Compact variant: round avatar (contact page) */
.mf-portrait.is-compact { width: 96px; height: 96px; flex-shrink: 0; }
.mf-portrait.is-compact .mf-portrait-halo { inset: -6px; border-radius: 50%; filter: blur(10px); opacity: .8; }
.mf-portrait.is-compact .mf-portrait-card { width: 100%; height: 100%; border-radius: 50%; animation: none; box-shadow: 0 16px 30px -14px rgba(0,0,0,.7); }
.mf-portrait.is-compact .mf-portrait-card::before { padding: 2px; }
.mf-portrait.is-compact .mf-portrait-card img { aspect-ratio: 1; object-position: 45% 25%; }
.mf-portrait.is-compact .mf-portrait-scan { animation-duration: 7s; }
.mf-portrait-pulse {
  position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(103,232,249,.6); z-index: -1;
  animation: mf-pulse-ring 3s ease-out infinite;
}
.mf-portrait-pulse.is-late { animation-delay: 1.5s; }
@keyframes mf-pulse-ring { from { transform: scale(1); opacity: .9; } to { transform: scale(1.55); opacity: 0; } }

@media (max-width: 639px) {
  .mf-portrait:not(.is-compact) .mf-chip { font-size: .72rem; padding: .4rem .6rem; }
}

/* ------------------------------------------------------------------ */
/* Pricing: currency toggle, 3D plan cards, shared credit-pool visual    */
/* ------------------------------------------------------------------ */
.mf-currency {
  display: inline-flex; padding: .3rem; border-radius: 9999px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(148,163,184,.25);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.mf-currency a {
  display: inline-flex; align-items: center; gap: .45rem; padding: .55rem 1.1rem; border-radius: 9999px;
  font-size: .875rem; font-weight: 700; color: #cbd5e1; transition: background .25s, color .25s;
}
.mf-currency a:hover { color: #fff; background: rgba(255,255,255,.08); }
.mf-currency a[aria-pressed="true"] {
  color: #0f172a; background: linear-gradient(135deg, #67e8f9, #a5b4fc);
  box-shadow: 0 8px 24px -8px rgba(103,232,249,.7);
}
.mf-currency a:focus-visible { outline: 3px solid #22d3ee; outline-offset: 2px; }
.mf-currency-label { color: #94a3b8; font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }

.mf-plan { --rx: 0deg; --ry: 0deg; perspective: 1400px; height: 100%; }
.mf-plan-card {
  position: relative; display: flex; flex-direction: column; height: 100%; padding: 1.75rem;
  border-radius: 26px; background: #fff; color: #334155; border: 1px solid #e2e8f0;
  box-shadow: 0 24px 50px -30px rgba(15,23,42,.45);
  transform: rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d;
  transition: transform .5s cubic-bezier(.2,.7,.2,1), box-shadow .4s, border-color .4s;
}
.mf-plan.is-tilting .mf-plan-card { transition: transform .12s linear, box-shadow .4s, border-color .4s; }
.mf-plan:hover .mf-plan-card {
  border-color: rgba(34,211,238,.55);
  box-shadow: 0 40px 70px -34px rgba(15,23,42,.55), 0 20px 50px -30px rgba(8,145,178,.6);
}
.mf-plan .mf-glare { z-index: 1; }
.mf-plan.is-tilting .mf-glare { opacity: .7; }
.mf-plan-card > * { position: relative; z-index: 2; }
.mf-plan-title { font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; color: #0f172a; }
.mf-plan-tagline { margin-top: .4rem; min-height: 3rem; font-size: .875rem; line-height: 1.5; color: #64748b; }
.mf-plan-icon {
  display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border-radius: 14px;
  background: #f1f5f9; color: #334155;
}
.mf-plan-icon svg { width: 20px; height: 20px; }
.mf-plan-price { display: flex; align-items: flex-end; gap: .4rem; margin: 1.4rem 0 .35rem; }
.mf-plan-price strong { font-size: 3rem; line-height: 1; font-weight: 900; letter-spacing: -.04em; color: #0f172a; }
.mf-plan-price span { padding-bottom: .35rem; font-size: .875rem; font-weight: 600; color: #64748b; }
.mf-plan-note { font-size: .75rem; line-height: 1.5; color: #64748b; }
.mf-plan-trial {
  display: inline-flex; align-items: center; gap: .4rem; align-self: flex-start; margin-bottom: 1.1rem;
  padding: .35rem .75rem; border-radius: 9999px; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: #047857; background: #ecfdf5; border: 1px solid #a7f3d0;
}
.mf-plan-trial svg { width: 14px; height: 14px; }
.mf-plan-trial.is-custom { color: #4338ca; background: #eef2ff; border-color: #c7d2fe; }
.mf-plan-features { flex: 1; display: grid; gap: .8rem; align-content: start; margin: 1.5rem 0; padding-top: 1.4rem; border-top: 1px solid #f1f5f9; font-size: .875rem; color: #334155; }
.mf-plan-features li { display: flex; align-items: flex-start; gap: .7rem; }
.mf-plan-features strong { color: #0f172a; font-weight: 800; }
.mf-plan-check {
  display: grid; place-items: center; width: 20px; height: 20px; flex-shrink: 0; margin-top: .1rem; border-radius: 9999px;
  background: #cffafe; color: #0e7490;
}
.mf-plan-check svg { width: 12px; height: 12px; }
.mf-plan-btn {
  display: flex; align-items: center; justify-content: center; gap: .5rem; width: 100%; padding: .9rem 1.25rem;
  border-radius: 14px; font-size: .875rem; font-weight: 800; color: #0f172a; background: #fff;
  border: 1px solid #cbd5e1; transition: border-color .25s, background .25s, transform .25s;
}
.mf-plan-btn:hover { border-color: #06b6d4; background: #ecfeff; }
.mf-plan-btn svg { width: 16px; height: 16px; transition: transform .25s; }
.mf-plan-btn:hover svg { transform: translateX(3px); }
.mf-plan-btn:focus-visible { outline: 3px solid #0891b2; outline-offset: 3px; }
.mf-plan-topup { margin-bottom: .9rem; text-align: center; font-size: .75rem; color: #64748b; }

/* Featured plan: dark card with an animated gradient rim, lifted */
.mf-plan.is-featured .mf-plan-card {
  color: #cbd5e1; border-color: transparent;
  background: radial-gradient(120% 70% at 50% 0%, rgba(8,145,178,.45), transparent 60%), #0b1220;
  box-shadow: 0 40px 80px -30px rgba(8,145,178,.7), 0 0 0 1px rgba(103,232,249,.15);
}
@media (min-width: 1280px) { .mf-plan.is-featured { translate: 0 -14px; } }
.mf-plan.is-featured .mf-plan-card::before {
  content: ""; position: absolute; inset: 0; z-index: 0; border-radius: inherit; padding: 2px; pointer-events: none;
  background: conic-gradient(from var(--mf-angle), #22d3ee, #6366f1 30%, transparent 50%, #f0abfc 75%, #22d3ee);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: mf-angle 6s linear infinite;
}
.mf-plan-badge {
  position: absolute; top: -13px; left: 50%; z-index: 3; translate: -50% 0; white-space: nowrap;
  padding: .35rem .9rem; border-radius: 9999px; font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: #0f172a; background: linear-gradient(90deg, #67e8f9, #a5b4fc, #f0abfc);
  box-shadow: 0 8px 24px -6px rgba(103,232,249,.7);
}
.mf-plan.is-featured .mf-plan-title { color: #fff; }
.mf-plan.is-featured .mf-plan-tagline, .mf-plan.is-featured .mf-plan-note,
.mf-plan.is-featured .mf-plan-topup, .mf-plan.is-featured .mf-plan-price span { color: #94a3b8; }
.mf-plan.is-featured .mf-plan-price strong {
  background: linear-gradient(90deg, #67e8f9, #a5b4fc 60%, #f0abfc);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.mf-plan.is-featured .mf-plan-icon { background: rgba(103,232,249,.15); color: #67e8f9; }
.mf-plan.is-featured .mf-plan-features { border-top-color: rgba(148,163,184,.18); color: #cbd5e1; }
.mf-plan.is-featured .mf-plan-features strong { color: #fff; }
.mf-plan.is-featured .mf-plan-check { background: rgba(103,232,249,.18); color: #67e8f9; }
.mf-plan.is-featured .mf-plan-trial { color: #6ee7b7; background: rgba(16,185,129,.12); border-color: rgba(110,231,183,.35); }
.mf-plan.is-featured .mf-plan-btn {
  color: #0f172a; border: 0; background: linear-gradient(135deg, #67e8f9, #a5b4fc);
  box-shadow: 0 12px 30px -10px rgba(103,232,249,.8);
}
.mf-plan.is-featured .mf-plan-btn:hover { background: linear-gradient(135deg, #a5f3fc, #c7d2fe); }
.mf-plan.is-custom .mf-plan-icon { background: #eef2ff; color: #4338ca; }
.mf-plan.is-custom .mf-plan-check { background: #e0e7ff; color: #4338ca; }

/* Shared credit pool: users orbit a glowing pool of credits */
.mf-pool { position: relative; width: min(100%, 340px); aspect-ratio: 1; margin: 0 auto; }
.mf-pool-ripple {
  position: absolute; inset: 31%; border-radius: 9999px; border: 2px solid rgba(103,232,249,.5);
  animation: mf-pulse-ring 3.6s ease-out infinite;
}
.mf-pool-ripple.is-late { animation-delay: 1.8s; }
.mf-pool-core {
  position: absolute; inset: 29%; z-index: 2; display: grid; place-items: center; align-content: center; gap: .1rem;
  border-radius: 9999px; text-align: center; color: #0f172a;
  background: radial-gradient(circle at 30% 25%, #cffafe, #67e8f9 40%, #818cf8);
  box-shadow: 0 0 60px rgba(103,232,249,.55), inset 0 -10px 30px rgba(67,56,202,.35);
}
.mf-pool-core svg { width: 22px; height: 22px; }
.mf-pool-core strong { font-size: 1.6rem; line-height: 1.05; font-weight: 900; letter-spacing: -.03em; }
.mf-pool-core small { font-size: .62rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; opacity: .75; }
.mf-pool-orbit {
  position: absolute; inset: 4%; border-radius: 9999px; border: 1px dashed rgba(148,163,184,.4);
  animation: mf-spin 36s linear infinite;
}
.mf-pool-orbit::before {
  content: ""; position: absolute; inset: 14%; border-radius: 9999px; border: 1px solid rgba(165,180,252,.18);
}
.mf-pool-user {
  position: absolute; width: 52px; height: 52px; margin: -26px 0 0 -26px; display: grid; place-items: center;
  border-radius: 9999px; color: #fff; background: rgba(15,23,42,.9); border: 1px solid rgba(148,163,184,.35);
  box-shadow: 0 10px 24px -8px rgba(0,0,0,.6);
  animation: mf-spin 36s linear infinite reverse;
}
.mf-pool-user svg { width: 22px; height: 22px; }
.mf-pool-user::after { /* credit beam towards the core */
  content: ""; position: absolute; width: 8px; height: 8px; border-radius: 9999px; background: #67e8f9;
  box-shadow: 0 0 12px #67e8f9; opacity: 0; animation: mf-pool-drip 3s ease-in infinite;
}
.mf-pool-user:nth-child(1) { left: 50%; top: 0%; color: #67e8f9; }
.mf-pool-user:nth-child(2) { left: 97.6%; top: 34.5%; color: #a5b4fc; }
.mf-pool-user:nth-child(3) { left: 79.4%; top: 90.5%; color: #f0abfc; }
.mf-pool-user:nth-child(4) { left: 20.6%; top: 90.5%; color: #6ee7b7; }
.mf-pool-user:nth-child(5) { left: 2.4%; top: 34.5%; color: #fcd34d; }
.mf-pool-user:nth-child(2)::after { animation-delay: .6s; }
.mf-pool-user:nth-child(3)::after { animation-delay: 1.2s; }
.mf-pool-user:nth-child(4)::after { animation-delay: 1.8s; }
.mf-pool-user:nth-child(5)::after { animation-delay: 2.4s; }
@keyframes mf-pool-drip { 0% { opacity: 0; transform: scale(.4); } 30% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(.2); } }

/* ------------------------------------------------------------------ */
/* Screen deck: product screens cycle through a 3D stack                 */
/* (corporate MyFAQ page hero). Slots set by myfaq_site.js:              */
/*   0 front · 1 behind · 2 far behind · 3 leaving · 4 parked (hidden)  */
/* ------------------------------------------------------------------ */
.mf-deck {
  position: relative; width: 86%; aspect-ratio: 1600 / 890;
  transform-style: preserve-3d;
  transform: rotateX(calc(9deg + var(--rx, 0deg))) rotateY(calc(-15deg + var(--ry, 0deg))) rotateZ(1.5deg);
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.mf-hero-stage.is-tilting .mf-deck { transition: transform .15s linear; }
.mf-deck-card {
  position: absolute; top: 0; left: 0; width: 100%;
  transform-style: preserve-3d;
  transition: transform 1.1s cubic-bezier(.65,0,.25,1), opacity .9s ease, filter .9s ease;
  will-change: transform, opacity;
}
.mf-deck-card .mf-screen { transform: none; }
.mf-deck-card[data-slot="0"] { transform: translate3d(0, 0, 0); }
.mf-deck-card[data-slot="1"] { transform: translate3d(11%, -11%, -170px); opacity: .85; filter: brightness(.72) saturate(.9); }
.mf-deck-card[data-slot="2"] { transform: translate3d(21%, -21%, -340px); opacity: .5; filter: brightness(.55) saturate(.8); }
.mf-deck-card[data-slot="3"] { transform: translate3d(-26%, 16%, 260px) rotateY(16deg) rotateZ(-3deg); opacity: 0; pointer-events: none; }
.mf-deck-card[data-slot="4"] { transform: translate3d(30%, -30%, -500px); opacity: 0; pointer-events: none; }
.mf-deck-card.is-snap { transition: none; }
.mf-deck-card:not([data-slot="0"]) .mf-floor { opacity: 0; }

/* A scan line sweeps each screen as it arrives at the front */
.mf-deck-scan {
  position: absolute; left: 6px; right: 6px; top: 32px; bottom: 6px; overflow: hidden; pointer-events: none;
  border-radius: 0 0 12px 12px; opacity: 0; transition: opacity .4s;
}
.mf-deck-scan::before {
  content: ""; position: absolute; left: 0; right: 0; top: -40%; height: 38%;
  background: linear-gradient(180deg, transparent, rgba(34,211,238,.14) 70%, rgba(34,211,238,.45));
  border-bottom: 2px solid rgba(103,232,249,.95);
  box-shadow: 0 10px 28px rgba(34,211,238,.4);
}
.mf-deck-card[data-slot="0"] .mf-deck-scan { opacity: 1; }
.mf-deck-card[data-slot="0"] .mf-deck-scan::before { animation: mf-deck-scan 2.2s cubic-bezier(.5,0,.3,1) .55s both; }
@keyframes mf-deck-scan { from { top: -40%; } to { top: 108%; } }

/* Screen picker under the deck, with an autoplay progress line */
.mf-deck-nav {
  position: relative; z-index: 6; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 3.25rem;
}
.mf-deck-nav button {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: .4rem;
  padding: .4rem .85rem; border-radius: 9999px; font-size: .78rem; font-weight: 600; color: #94a3b8;
  background: rgba(15,23,42,.6); border: 1px solid rgba(148,163,184,.2); cursor: pointer;
  transition: color .25s, border-color .25s, background-color .25s;
}
.mf-deck-nav button svg { width: 14px; height: 14px; }
.mf-deck-nav button:hover { color: #e2e8f0; border-color: rgba(103,232,249,.4); }
.mf-deck-nav button[aria-current="true"] { color: #fff; border-color: rgba(103,232,249,.6); background: rgba(8,145,178,.28); }
.mf-deck-nav button::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: linear-gradient(90deg, #67e8f9, #a5b4fc);
}
.is-playing .mf-deck-nav button[aria-current="true"]::after { animation: mf-deck-progress var(--mf-deck-interval, 5s) linear forwards; }
@keyframes mf-deck-progress { to { width: 100%; } }

@media (max-width: 1023px) {
  .mf-deck { width: 84%; margin: 0 auto 0 4%; transform: rotateX(7deg) rotateY(-8deg); }
}
@media (max-width: 639px) {
  .mf-deck { width: 90%; margin-left: 0; }
  .mf-deck-card[data-slot="1"] { transform: translate3d(7%, -9%, -120px); }
  .mf-deck-card[data-slot="2"] { transform: translate3d(13%, -17%, -240px); }
  .mf-deck-nav { margin-top: 2rem; }
}

/* ------------------------------------------------------------------ */
/* Teams stages: genuine Teams screenshot crops recomposed from the      */
/* Teams Store cards (faq_site/partials/teams/stage_*.html). Everything  */
/* is positioned in % of a 920x768 canvas and sized in cqw so the scene  */
/* scales as one picture. Elements play in on reveal (--d = delay).      */
/* ------------------------------------------------------------------ */
.mf-tm-stage {
  position: relative; overflow: hidden; border-radius: 28px; container-type: inline-size; perspective: 1800px;
  background:
    radial-gradient(60% 60% at 70% 30%, rgba(46,163,242,.30), transparent 70%),
    radial-gradient(55% 60% at 100% 105%, rgba(123,97,255,.34), transparent 70%),
    linear-gradient(135deg, #081129 0%, #0d1a3c 55%, #111c48 100%);
  box-shadow: 0 40px 80px -30px rgba(2,8,26,.85), 0 0 0 1px rgba(148,163,184,.16);
}
.mf-tm-stage::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px); background-size: 2.8cqw 2.8cqw;
  -webkit-mask-image: radial-gradient(75% 70% at 60% 45%, #000, transparent 80%);
  mask-image: radial-gradient(75% 70% at 60% 45%, #000, transparent 80%);
}
.mf-tm-canvas {
  position: relative; aspect-ratio: 920 / 768; transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.mf-tm-stage.is-tilting .mf-tm-canvas { transition: transform .15s linear; }
.mf-tm-panel {
  position: absolute; background: #fff; border-radius: 1.75cqw; padding: .87cqw;
  box-shadow: 0 3.2cqw 6.5cqw -1.3cqw rgba(2,8,26,.75), 0 1.3cqw 2.6cqw -.9cqw rgba(2,8,26,.5), 0 0 0 1px rgba(255,255,255,.18);
}
.mf-tm-panel img { display: block; width: 100%; height: auto; border-radius: 1cqw; }
.mf-tm-panel.is-fade { overflow: hidden; -webkit-mask-image: linear-gradient(#000 80%, transparent); mask-image: linear-gradient(#000 80%, transparent); }
.mf-tm-panel.is-fade-r { -webkit-mask-image: linear-gradient(90deg, #000 84%, transparent); mask-image: linear-gradient(90deg, #000 84%, transparent); }
.mf-tm-step {
  position: absolute; z-index: 20; display: flex; align-items: center; gap: 1.1cqw; white-space: nowrap;
  font-size: max(11px, 1.65cqw); font-weight: 700; color: #fff; translate: 0 0 40px;
}
.mf-tm-num {
  display: grid; place-items: center; width: 3.3cqw; height: 3.3cqw; border-radius: 9999px; font-size: 1.55cqw; font-weight: 800;
  background: linear-gradient(135deg, #2ea3f2, #7b61ff); box-shadow: 0 .65cqw 1.5cqw rgba(0,0,0,.35);
}
.mf-tm-pill {
  position: absolute; z-index: 30; white-space: nowrap; font-size: max(11.5px, 1.75cqw); font-weight: 700; color: #fff;
  padding: 1.1cqw 1.75cqw; border-radius: 9999px;
  background: linear-gradient(135deg, #1e8fe0, #6d4ff0);
  box-shadow: 0 1.1cqw 2.8cqw rgba(4,10,30,.55), inset 0 0 0 1px rgba(255,255,255,.22);
}
.mf-tm-hl {
  position: absolute; z-index: 25; pointer-events: none; border: max(2px, .28cqw) solid #4aa8ff; border-radius: 1.1cqw;
  box-shadow: 0 0 0 .45cqw rgba(74,168,255,.18), 0 0 2.6cqw rgba(74,168,255,.35);
}
.mf-tm-lines { position: absolute; inset: 0; z-index: 24; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.mf-tm-lines path { fill: none; stroke: #7cc4ff; stroke-width: 2; stroke-dasharray: 5 5; }
.mf-tm-lines .is-arrow path { stroke-width: 2.5; stroke-dasharray: 6 6; }
.mf-tm-lines marker path { fill: #7cc4ff; stroke: none; }
.mf-tm-lines circle { fill: #4aa8ff; stroke: #fff; stroke-width: 2; }

/* Choreography: panels rise in, then steps, highlights, connector lines and pills. */
.mf-js .mf-tm-stage :is(.mf-tm-panel, .mf-tm-step, .mf-tm-hl, .mf-tm-pill, .mf-tm-lines g) { opacity: 0; }
.mf-js .mf-tm-stage.is-visible .mf-tm-panel { animation: mf-tm-rise .95s cubic-bezier(.2,.7,.2,1) var(--d, 0ms) both; }
.mf-js .mf-tm-stage.is-visible .mf-tm-step { animation: mf-tm-slide .6s cubic-bezier(.2,.7,.2,1) var(--d, 0ms) both; }
.mf-js .mf-tm-stage.is-visible .mf-tm-hl {
  animation: mf-tm-draw .7s cubic-bezier(.2,.7,.2,1) var(--d, 0ms) both, mf-tm-glow 3s ease-in-out calc(var(--d, 0ms) + .7s) infinite;
}
.mf-js .mf-tm-stage.is-visible .mf-tm-pill {
  animation: mf-tm-pop .65s cubic-bezier(.34,1.56,.64,1) var(--d, 0ms) both, mf-float 6s ease-in-out calc(var(--d, 0ms) + .65s) infinite;
}
.mf-js .mf-tm-stage.is-visible .mf-tm-lines g { animation: mf-tm-fade .5s ease var(--d, 0ms) both; }
.mf-tm-lines path { animation: mf-tm-ants 1.1s linear infinite; }
@keyframes mf-tm-rise {
  from { opacity: 0; transform: translateY(7cqw) scale(.94) rotateX(12deg); }
  to { opacity: 1; transform: none; }
}
@keyframes mf-tm-slide { from { opacity: 0; transform: translateX(-2.5cqw); } to { opacity: 1; transform: none; } }
@keyframes mf-tm-draw {
  from { opacity: 0; transform: scale(1.08); clip-path: inset(0 100% 0 0 round 1.1cqw); }
  to { opacity: 1; transform: none; clip-path: inset(-2cqw round 1.1cqw); }
}
@keyframes mf-tm-glow {
  0%, 100% { box-shadow: 0 0 0 .45cqw rgba(74,168,255,.18), 0 0 2.6cqw rgba(74,168,255,.35); }
  50% { box-shadow: 0 0 0 .9cqw rgba(74,168,255,.08), 0 0 4cqw rgba(74,168,255,.6); }
}
@keyframes mf-tm-pop { from { opacity: 0; transform: scale(.55); } to { opacity: 1; transform: none; } }
@keyframes mf-tm-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes mf-tm-ants { to { stroke-dashoffset: -20; } }

/* Small stages: keep the screenshots and step numbers, drop labels that would be unreadable. */
@container (max-width: 560px) {
  .mf-tm-pill, .mf-tm-lines g:not(.is-arrow), .mf-tm-step-text { display: none; }
  .mf-tm-num { width: 5cqw; height: 5cqw; font-size: 2.6cqw; }
}

/* Scene copy next to each stage */
.mf-tm-kicker { display: inline-flex; align-items: center; gap: .75rem; font-size: .8rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #8fd0ff; }
.mf-tm-kicker b { color: #fff; background: linear-gradient(135deg, #2ea3f2, #7b61ff); border-radius: 8px; padding: .3rem .55rem; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.mf-tm-title em { font-style: normal; background: linear-gradient(90deg, #5cc0ff, #a08bff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mf-tm-points { display: grid; gap: .8rem; }
.mf-tm-points li { display: flex; gap: .7rem; align-items: flex-start; color: #e6eeff; font-weight: 500; line-height: 1.4; }
.mf-tm-points li::before {
  content: ""; flex: none; width: 20px; height: 20px; margin-top: 1px; border-radius: 9999px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.3l3 3 6-6.2' stroke='%23fff' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat, linear-gradient(135deg, #2ea3f2, #7b61ff);
}
.mf-tm-cmd { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85em; padding: .1rem .4rem; border-radius: 6px; background: rgba(148,163,184,.18); color: inherit; }

/* Scene progress rail (sticky chapter list on wide screens) */
.mf-tm-rail a { display: flex; align-items: center; gap: .6rem; padding: .45rem .9rem; border-radius: 9999px; font-size: .85rem; font-weight: 600; color: #94a3b8; border: 1px solid transparent; transition: color .25s, background-color .25s, border-color .25s; white-space: nowrap; }
.mf-tm-rail a b { display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 9999px; font-size: .72rem; background: rgba(148,163,184,.15); color: #cbd5e1; transition: background .25s; }
.mf-tm-rail a:hover { color: #e2e8f0; }
.mf-tm-rail a[aria-current="true"] { color: #fff; background: rgba(8,145,178,.22); border-color: rgba(103,232,249,.45); }
.mf-tm-rail a[aria-current="true"] b { background: linear-gradient(135deg, #2ea3f2, #7b61ff); color: #fff; }

/* AI agent page: icon step bubbles (hero stage) and the agent badge next to each scene kicker. */
.mf-tm-num svg { width: 58%; height: 58%; }
.mf-ag-badge { display: inline-flex; align-items: center; gap: .45rem; padding: .3rem .75rem; border-radius: 9999px; font-size: .8rem; font-weight: 600; color: #a7f3d0; background: rgba(16,185,129,.12); border: 1px solid rgba(52,211,153,.35); }
.mf-ag-badge.is-claude { color: #fed7aa; background: rgba(234,88,12,.12); border-color: rgba(251,146,60,.4); }
.mf-ag-badge svg { width: 14px; height: 14px; }

/* ------------------------------------------------------------------ */
/* Reduced motion                                                        */
/* ------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  .mf-orb, .mf-chip, .mf-marquee-track, .mf-pipeline-beam::after, .mf-step-tile, .mf-step-tile::after,
  .mf-scan, .mf-doc.is-wrong, .mf-link, .mf-dot, .mf-claim-lines .mf-bar.is-claim::after, .mf-cite,
  .mf-calc-check, .mf-tick.is-gap, .mf-shift-arrow::after, .mf-ring, .mf-tour-panel.is-entering .mf-screen,
  .mf-portrait-halo, .mf-portrait-orbit > i, .mf-portrait-card, .mf-portrait-card::before,
  .mf-portrait-pulse, .mf-blog-sheet, .mf-blog-sheet.is-front > i, .mf-blog-pen,
  .mf-plan.is-featured .mf-plan-card::before, .mf-pool-ripple, .mf-pool-orbit, .mf-pool-user, .mf-pool-user::after,
  .mf-deck-scan::before, .mf-deck-nav button::after,
  .mf-tm-panel, .mf-tm-step, .mf-tm-hl, .mf-tm-pill, .mf-tm-lines g, .mf-tm-lines path {
    animation: none !important;
  }
  .mf-js .mf-tm-stage :is(.mf-tm-panel, .mf-tm-step, .mf-tm-hl, .mf-tm-pill, .mf-tm-lines g) { opacity: 1; }
  .mf-deck-card { transition: none; }
  .mf-deck-scan { display: none; }
  .mf-portrait-scan, .mf-portrait-pulse { display: none; }
  .mf-js .mf-portrait[data-mf-reveal] .mf-portrait-card img { clip-path: none; filter: none; }
  .mf-cite, .mf-calc-check { opacity: 1; transform: none; }
  .mf-marquee-track { flex-wrap: wrap; justify-content: center; width: auto; }
  .mf-marquee-track [aria-hidden="true"] { display: none; }
  .mf-js [data-mf-reveal] { opacity: 1; transform: none; transition: none; }
}
.mf-plan.is-custom .mf-plan-price strong { font-size: 2.4rem; }
