/* ==========================================================================
   Follow My Site — premium interaction & design layer
   Additive only: loads AFTER the theme's inline <style>, upgrades in place.
   No framework, no build step. Progressive enhancement — the page reads
   fine with this file (or its JS partner) missing.
   ========================================================================== */

/* ---------- Tokens (extend, never replace, the theme's :root) ---------- */
:root {
  --fms-display: "Plus Jakarta Sans", "Inter", -apple-system, "Segoe UI", sans-serif;

  /* Depth: two-part shadows read as real light, not a grey blur. */
  --fms-sh-1: 0 1px 2px rgba(15, 23, 42, .04), 0 2px 8px rgba(15, 23, 42, .04);
  --fms-sh-2: 0 2px 4px rgba(15, 23, 42, .04), 0 12px 28px -8px rgba(79, 70, 229, .16);
  --fms-sh-3: 0 4px 8px rgba(15, 23, 42, .05), 0 28px 56px -16px rgba(79, 70, 229, .28);
  --fms-sh-brand: 0 8px 24px -6px rgba(99, 102, 241, .45);

  --fms-ease: cubic-bezier(.22, .9, .3, 1);
  --fms-ease-out: cubic-bezier(.16, 1, .3, 1);

  --fms-mint: #10b981;
  --fms-mint-ink: #047857;
  --fms-amber: #f59e0b;
  --fms-wa: #25d366;
}

/* ---------- Typography ---------- */
.fms-up h1,
.fms-up h2,
.fms-up h3,
.fms-up .fms-display {
  font-family: var(--fms-display);
  letter-spacing: -.028em;
}

.fms-up h1 { letter-spacing: -.035em; line-height: 1.04; }
.fms-up h2 { line-height: 1.12; }

/* Optical balance: the theme's lead paragraph runs long on desktop. */
.fms-up .hero .lead { max-width: 33rem; text-wrap: pretty; }
.fms-up .sec-head h2 { text-wrap: balance; }

/* ---------- Icon system ----------
   Replaces emoji, which render differently on every OS and read as clip-art.
   Icons inherit colour from their parent so one sprite serves every context. */
.fms-i {
  width: 1em; height: 1em;
  display: inline-block;
  vertical-align: -.125em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.fms-i--fill { fill: currentColor; stroke: none; }

/* Problem cards: tinted square tile instead of a bare emoji. */
.fms-up .prob .x {
  width: 52px; height: 52px;
  margin: 0 auto 16px;
  display: grid; place-items: center;
  border-radius: 15px;
  font-size: 23px;
  color: #e11d48;
  background: linear-gradient(145deg, #fff1f2, #ffe4e6);
  box-shadow: inset 0 0 0 1px rgba(225, 29, 72, .1);
}

/* Feature tiles, once the mixed uploaded PNGs are swapped for sprite icons. */
.fms-up .ico.fms-featico {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 15px;
  font-size: 23px;
  color: var(--brand-d, #4f46e5);
  background: linear-gradient(145deg, #eef0ff, #e6e3ff);
  box-shadow: inset 0 0 0 1px rgba(99, 102, 241, .12);
}
.fms-up .fcard:hover .ico.fms-featico {
  color: #fff;
  background: linear-gradient(145deg, var(--brand, #6366f1), var(--brand-2, #8b5cf6));
  box-shadow: var(--fms-sh-brand);
}
.fms-up .ico.fms-featico { transition: background .3s, color .3s, box-shadow .3s; }

/* Solution / feature ticks. */
.fms-up .fms-tick {
  color: var(--fms-mint-ink);
  background: #d1fae5;
  width: 22px; height: 22px;
  border-radius: 999px;
  display: inline-grid; place-items: center;
  font-size: 12px;
  flex: none;
}

/* Comparison-table marks. */
.fms-up td .fms-i { font-size: 18px; }
.fms-up .yes .fms-i { color: var(--fms-mint); }
.fms-up .no  .fms-i { color: #cbd5e1; }

/* Stars become a real glyph set at a consistent weight. */
.fms-up .stars { color: var(--fms-amber); letter-spacing: .08em; }

/* ---------- Buttons ---------- */
/* The theme pulses the primary button forever. Constant motion is noise and
   it competes with the real CTA moments, so it is replaced by a hover sheen. */
.fms-up .btn-primary { animation: none !important; }

.fms-up .btn {
  position: relative;
  overflow: hidden;
  transition: transform .18s var(--fms-ease), box-shadow .25s var(--fms-ease), background-color .2s;
  isolation: isolate;
}
.fms-up .btn-primary { box-shadow: var(--fms-sh-brand); }
.fms-up .btn:hover { transform: translateY(-2px); }
.fms-up .btn-primary:hover { box-shadow: 0 14px 34px -8px rgba(99, 102, 241, .55); }
.fms-up .btn:active { transform: translateY(0); }

.fms-up .btn-primary::after {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, .38) 42%, transparent 64%);
  transform: translateX(-120%);
}
.fms-up .btn-primary:hover::after { animation: fms-sheen .85s var(--fms-ease-out); }
@keyframes fms-sheen { to { transform: translateX(120%); } }

/* Arrow glyphs in buttons travel on hover. */
.fms-up .btn .fms-i--arrow { transition: transform .22s var(--fms-ease); }
.fms-up .btn:hover .fms-i--arrow { transform: translateX(3px); }

/* ---------- Card depth ---------- */
.fms-up .prob,
.fms-up .fcard,
.fms-up .tcard,
.fms-up .step,
.fms-up .bizcard,
.fms-up .qa {
  box-shadow: var(--fms-sh-1);
  transition: transform .28s var(--fms-ease), box-shadow .28s var(--fms-ease), border-color .28s;
}
.fms-up .prob:hover,
.fms-up .fcard:hover,
.fms-up .tcard:hover,
.fms-up .bizcard:hover {
  transform: translateY(-4px);
  box-shadow: var(--fms-sh-2);
  border-color: #d9d9ec;
}
.fms-up .pcard { box-shadow: var(--fms-sh-1); }
.fms-up .pcard:hover { box-shadow: var(--fms-sh-2); }

/* ---------- Scroll progress ---------- */
.fms-progress {
  position: fixed; top: 0; left: 0;
  height: 3px; width: 100%;
  transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--brand, #6366f1), var(--brand-2, #8b5cf6));
  z-index: 9999;
  pointer-events: none;
}

/* ---------- Reveal on scroll (staggered) ---------- */
.fms-up .reveal { transition-timing-function: var(--fms-ease-out); }
.fms-up [data-fms-stagger] > * {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .62s var(--fms-ease-out), transform .62s var(--fms-ease-out);
  transition-delay: calc(var(--fms-i, 0) * 70ms);
}
.fms-up [data-fms-stagger].is-in > * { opacity: 1; transform: none; }

/* ---------- Profession ticker ---------- */
.fms-ticker {
  position: relative;
  overflow: hidden;
  padding: 18px 0;
  background: var(--bg-soft, #f7f7fb);
  border-block: 1px solid var(--line, #e7e7f0);
  /* Fade the strip into the page instead of cutting it off hard. */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.fms-ticker__track {
  display: flex;
  width: max-content;
  gap: 12px;
  animation: fms-marquee 46s linear infinite;
}
.fms-ticker:hover .fms-ticker__track { animation-play-state: paused; }
.fms-ticker__item {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 10px 18px;
  background: #fff;
  border: 1px solid var(--line, #e7e7f0);
  border-radius: 999px;
  font-size: 14px; font-weight: 600;
  color: var(--ink, #0f172a);
  white-space: nowrap;
  box-shadow: var(--fms-sh-1);
}
.fms-ticker__item .fms-i { color: var(--brand, #6366f1); font-size: 16px; }
@keyframes fms-marquee { to { transform: translateX(-50%); } }

/* ---------- Hero: the tap moment ---------- */
.fms-stage {
  position: relative;
  width: 100%;
  /* Phone (436) + clearance for the replay control beneath it. */
  min-height: 506px;
  display: grid;
  place-items: center;
  perspective: 1100px;
}
.fms-stage__glow {
  position: absolute; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, .16), transparent 66%);
  filter: blur(6px);
  pointer-events: none;
}

/* Phone */
.fms-phone {
  position: relative;
  width: 252px; height: 436px;
  border-radius: 34px;
  background: #0f172a;
  padding: 9px;
  box-shadow: var(--fms-sh-3);
  transform-style: preserve-3d;
  transition: transform .5s var(--fms-ease);
}
.fms-phone__screen {
  position: relative;
  height: 100%;
  border-radius: 26px;
  background: #fff;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.fms-phone__notch {
  position: absolute; top: 7px; left: 50%; transform: translateX(-50%);
  width: 78px; height: 20px; border-radius: 999px; background: #0f172a; z-index: 5;
}

/* Idle state before the card lands */
.fms-phone__idle {
  position: absolute; inset: 0;
  display: grid; place-items: center; gap: 10px;
  align-content: center;
  color: var(--muted, #94a3b8);
  font-size: 13px; font-weight: 600;
  text-align: center; padding: 0 28px;
  transition: opacity .4s ease;
}
.fms-phone__idle .fms-i { font-size: 34px; color: #cbd5e1; }

/* The rendered vCard */
.fms-vcard {
  position: relative;
  padding: 40px 16px 10px;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .5s ease, transform .6s var(--fms-ease-out);
  display: flex; flex-direction: column; gap: 9px;
  height: 100%;
  background: linear-gradient(180deg, #eef0ff 0 112px, #fff 112px);
}
.fms-vcard__av {
  width: 62px; height: 62px; border-radius: 50%;
  margin: 0 auto;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand, #6366f1), var(--brand-2, #8b5cf6));
  color: #fff; font-weight: 800; font-size: 21px;
  border: 3px solid #fff;
  box-shadow: var(--fms-sh-2);
  font-family: var(--fms-display);
}
.fms-vcard__name { text-align: center; font-weight: 800; font-size: 15px; color: var(--ink, #0f172a); font-family: var(--fms-display); }
.fms-vcard__role { text-align: center; font-size: 11.5px; color: var(--body, #475569); margin-top: -7px; }
.fms-vcard__badge {
  margin: 2px auto 0;
  font-size: 10px; font-weight: 700;
  color: var(--fms-mint-ink);
  background: #d1fae5;
  padding: 3px 9px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 4px;
}
.fms-vcard__save {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  background: linear-gradient(135deg, var(--brand, #6366f1), var(--brand-2, #8b5cf6));
  color: #fff; font-weight: 700; font-size: 12.5px;
  padding: 10px; border-radius: 11px;
  box-shadow: var(--fms-sh-brand);
}
.fms-vcard__acts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.fms-vcard__act {
  display: grid; place-items: center; gap: 4px;
  padding: 9px 2px; border-radius: 10px;
  background: #f5f5fb; border: 1px solid var(--line, #e7e7f0);
  font-size: 9px; font-weight: 600; color: var(--body, #475569);
}
.fms-vcard__act .fms-i { font-size: 15px; color: var(--brand, #6366f1); }
.fms-vcard__act--wa .fms-i { color: var(--fms-wa); }
.fms-vcard__sec { font-size: 9.5px; font-weight: 800; letter-spacing: .09em; color: var(--muted, #94a3b8); margin-top: 2px; }
.fms-vcard__row { display: flex; gap: 8px; align-items: center; padding: 7px; border: 1px solid var(--line, #e7e7f0); border-radius: 9px; }
.fms-vcard__thumb { width: 28px; height: 28px; border-radius: 7px; background: linear-gradient(135deg, #e0e7ff, #ede9fe); flex: none; }
.fms-vcard__row b { font-size: 11px; color: var(--ink, #0f172a); display: block; }
.fms-vcard__row small { font-size: 9.5px; color: var(--muted, #94a3b8); }

/* The NFC card that taps the phone */
.fms-nfc {
  position: absolute;
  /* Anchored to the phone's centre line so the overlap holds at any column width.
     Only transform/opacity are animated, so these offsets stay put. */
  right: calc(50% + 18px); top: 94px;
  width: 196px; height: 118px;
  border-radius: 14px;
  padding: 13px;
  background: linear-gradient(135deg, #1e1b4b, #312e81 55%, #4c1d95);
  color: #fff;
  box-shadow: var(--fms-sh-3);
  opacity: 0;
  transform: translate(-28px, 26px) rotate(-16deg);
  transition: opacity .5s ease, transform .75s var(--fms-ease-out);
  z-index: 4;
}
.fms-nfc__brand { font-size: 10px; font-weight: 800; letter-spacing: .04em; opacity: .85; font-family: var(--fms-display); }
.fms-nfc__name { margin-top: 26px; font-size: 13.5px; font-weight: 800; font-family: var(--fms-display); }
.fms-nfc__role { font-size: 10px; opacity: .72; }
.fms-nfc__chip {
  position: absolute; right: 13px; bottom: 13px;
  width: 26px; height: 26px; border-radius: 7px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .22);
}
.fms-nfc__chip .fms-i { font-size: 14px; color: #fff; }

/* Tap ripple */
.fms-ripple { position: absolute; left: calc(50% - 26px); top: 152px; z-index: 3; pointer-events: none; }
.fms-ripple i {
  position: absolute; left: 0; top: 0;
  width: 18px; height: 18px; margin: -9px 0 0 -9px;
  border-radius: 50%;
  border: 2px solid var(--brand, #6366f1);
  opacity: 0;
}

/* Floating toasts */
.fms-toast {
  position: absolute;
  display: flex; align-items: center; gap: 9px;
  background: #fff;
  border: 1px solid var(--line, #e7e7f0);
  border-radius: 13px;
  padding: 10px 13px;
  box-shadow: var(--fms-sh-3);
  font-size: 12px;
  opacity: 0;
  transform: translateY(12px) scale(.94);
  transition: opacity .45s ease, transform .55s var(--fms-ease-out);
  z-index: 6;
  max-width: 215px;
}
.fms-toast b { display: block; font-size: 12px; color: var(--ink, #0f172a); font-weight: 700; }
.fms-toast small { font-size: 11px; color: var(--muted, #94a3b8); }
.fms-toast__ico { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; flex: none; }
/* Kept inside the stage: .hero clips overflow and this column ends at the
   viewport edge, so a negative offset would amputate the card. */
.fms-toast--lead { left: 0; top: 264px; }
.fms-toast--lead .fms-toast__ico { background: #d1fae5; color: var(--fms-mint-ink); }
.fms-toast--wa { right: 0; top: 92px; }
.fms-toast--wa .fms-toast__ico { background: #dcfce7; color: var(--fms-wa); }
.fms-toast--saved { right: 0; bottom: 46px; }
.fms-toast--saved .fms-toast__ico { background: #e0e7ff; color: var(--brand-d, #4f46e5); }

/* Timeline — JS sets data-step on .fms-stage, CSS does the rest. */
.fms-stage[data-step="1"] .fms-nfc,
.fms-stage[data-step="3"] .fms-nfc,
.fms-stage[data-step="4"] .fms-nfc,
.fms-stage[data-step="5"] .fms-nfc { opacity: 1; transform: translate(0, 0) rotate(-11deg); }
.fms-stage[data-step="2"] .fms-nfc { opacity: 1; transform: translate(30px, 16px) rotate(-5deg); }
.fms-stage[data-step="2"] .fms-ripple i { animation: fms-ripple 1.25s var(--fms-ease-out) forwards; }
.fms-stage[data-step="2"] .fms-ripple i:nth-child(2) { animation-delay: .18s; }
.fms-stage[data-step="2"] .fms-ripple i:nth-child(3) { animation-delay: .36s; }
.fms-stage[data-step="3"] .fms-phone__idle,
.fms-stage[data-step="4"] .fms-phone__idle,
.fms-stage[data-step="5"] .fms-phone__idle { opacity: 0; }
.fms-stage[data-step="3"] .fms-vcard,
.fms-stage[data-step="4"] .fms-vcard,
.fms-stage[data-step="5"] .fms-vcard { opacity: 1; transform: none; }
.fms-stage[data-step="3"] .fms-toast--saved,
.fms-stage[data-step="4"] .fms-toast--saved,
.fms-stage[data-step="5"] .fms-toast--saved { opacity: 1; transform: none; }
.fms-stage[data-step="4"] .fms-toast--lead,
.fms-stage[data-step="5"] .fms-toast--lead { opacity: 1; transform: none; }
.fms-stage[data-step="5"] .fms-toast--wa { opacity: 1; transform: none; transition-delay: .12s; }
.fms-stage.is-idle .fms-nfc__chip { animation: fms-pulse 2.4s ease-in-out infinite; }

@keyframes fms-ripple {
  from { opacity: .85; transform: scale(.4); }
  to   { opacity: 0;   transform: scale(7); }
}
@keyframes fms-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .5); }
  60%      { box-shadow: 0 0 0 11px rgba(255, 255, 255, 0); }
}
@keyframes fms-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-9px); }
}

.fms-stage__replay {
  position: absolute; left: 50%; bottom: 0;
  transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; border: 0; cursor: pointer;
  color: var(--muted, #94a3b8);
  font: inherit; font-size: 13px; font-weight: 600;
  padding: 7px 12px; border-radius: 9px;
  transition: color .2s, background-color .2s;
}
.fms-stage__replay:hover { color: var(--brand-d, #4f46e5); background: #eef0ff; }
.fms-stage__replay .fms-i { font-size: 14px; }

/* No-JS / reduced-motion fallback: show the finished state, hide the control. */
.fms-stage--static .fms-nfc { opacity: 1; transform: rotate(-11deg); }
.fms-stage--static .fms-phone__idle { opacity: 0; }
.fms-stage--static .fms-vcard,
.fms-stage--static .fms-toast { opacity: 1; transform: none; }
.fms-stage--static .fms-stage__replay { display: none; }

/* ---------- Claim-your-link checker ---------- */
.fms-claim { margin-top: 26px; max-width: 480px; }
.fms-claim__label {
  display: block;
  font-size: 13px; font-weight: 700;
  color: var(--ink, #0f172a);
  margin-bottom: 8px;
}
.fms-claim__box {
  display: flex; align-items: center;
  background: #fff;
  border: 1.5px solid var(--line, #e7e7f0);
  border-radius: 14px;
  padding: 5px 5px 5px 15px;
  box-shadow: var(--fms-sh-1);
  transition: border-color .2s, box-shadow .2s;
  gap: 2px;
}
.fms-claim__box:focus-within {
  border-color: var(--brand, #6366f1);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, .13);
}
.fms-claim__host { font-size: 14.5px; font-weight: 600; color: var(--muted, #94a3b8); white-space: nowrap; }
.fms-claim__input {
  flex: 1; min-width: 0;
  border: 0; outline: 0; background: transparent;
  font: inherit; font-size: 14.5px; font-weight: 600;
  color: var(--ink, #0f172a);
  padding: 11px 6px;
}
.fms-claim__input::placeholder { color: #c3c9d6; font-weight: 500; }
.fms-claim__btn {
  display: inline-flex; align-items: center; gap: 7px;
  border: 0; cursor: pointer;
  background: linear-gradient(135deg, var(--brand, #6366f1), var(--brand-2, #8b5cf6));
  color: #fff;
  font: inherit; font-size: 14px; font-weight: 700;
  padding: 11px 18px; border-radius: 10px;
  box-shadow: var(--fms-sh-brand);
  transition: transform .18s var(--fms-ease), box-shadow .22s;
  white-space: nowrap;
}
.fms-claim__btn:hover { transform: translateY(-1px); }
.fms-claim__btn[disabled] { opacity: .6; cursor: default; transform: none; }
.fms-claim__msg {
  display: none;
  margin-top: 11px;
  font-size: 13.5px; font-weight: 600;
  align-items: flex-start; gap: 8px;
  line-height: 1.45;
}
.fms-claim__msg.is-on { display: flex; }
.fms-claim__msg .fms-i { font-size: 17px; margin-top: 1px; }
.fms-claim__msg--ok   { color: var(--fms-mint-ink); }
.fms-claim__msg--bad  { color: #e11d48; }
.fms-claim__msg--wait { color: var(--muted, #94a3b8); }
.fms-claim__msg a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.fms-claim__go {
  display: inline-flex; align-items: center; gap: 6px;
  margin-left: 2px;
  color: var(--brand-d, #4f46e5);
  font-weight: 700;
  text-decoration: none;
}
.fms-claim__go:hover { text-decoration: underline; }

/* Spinner for the pending state */
.fms-spin {
  width: 15px; height: 15px; flex: none;
  border: 2px solid #e2e8f0;
  border-top-color: var(--brand, #6366f1);
  border-radius: 50%;
  animation: fms-spin .7s linear infinite;
  margin-top: 1px;
}
@keyframes fms-spin { to { transform: rotate(360deg); } }

/* ---------- Feature tour ---------- */
.fms-tour {
  position: relative;
  background:
    radial-gradient(900px 420px at 88% -10%, rgba(139, 92, 246, .22), transparent 62%),
    linear-gradient(160deg, #1e1b4b, #312e81 58%, #1e1b4b);
  color: #fff;
  overflow: hidden;
  padding: 84px 0;
}
.fms-tour::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(700px 440px at 30% 40%, #000, transparent 72%);
  -webkit-mask-image: radial-gradient(700px 440px at 30% 40%, #000, transparent 72%);
  pointer-events: none;
}
.fms-tour__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: 54px;
  align-items: center;
}
.fms-tour .eyebrow { background: rgba(255, 255, 255, .12); color: #c7d2fe; }
.fms-tour h2 { color: #fff; }
.fms-tour__lead { color: #c7d2fe; font-size: 16.5px; line-height: 1.6; margin-bottom: 26px; max-width: 34rem; }

.fms-tour__steps { display: flex; flex-direction: column; gap: 9px; }
.fms-tour__step {
  position: relative;
  display: flex; gap: 14px; align-items: flex-start;
  width: 100%; text-align: left;
  padding: 15px 17px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .045);
  color: #fff;
  font: inherit; cursor: pointer;
  overflow: hidden;
  transition: background-color .3s, border-color .3s, transform .3s var(--fms-ease);
}
.fms-tour__step:hover { background: rgba(255, 255, 255, .09); }
.fms-tour__step.is-on {
  background: rgba(255, 255, 255, .13);
  border-color: rgba(199, 210, 254, .45);
}
.fms-tour__step .fms-tour__ico {
  width: 36px; height: 36px; border-radius: 11px;
  display: grid; place-items: center; flex: none;
  background: rgba(255, 255, 255, .12);
  color: #c7d2fe;
  transition: background-color .3s, color .3s;
}
.fms-tour__step.is-on .fms-tour__ico {
  background: linear-gradient(135deg, var(--brand, #6366f1), var(--brand-2, #8b5cf6));
  color: #fff;
}
.fms-tour__ico .fms-i { font-size: 18px; }
.fms-tour__step b { display: block; font-size: 14.5px; font-weight: 700; font-family: var(--fms-display); }
.fms-tour__step span { display: block; font-size: 13px; color: #a5b4fc; line-height: 1.5; margin-top: 2px; }

/* The progress rail fills while a step is active, so the auto-advance is legible. */
.fms-tour__bar {
  position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: linear-gradient(90deg, var(--brand-2, #8b5cf6), #c7d2fe);
  transform: scaleX(0); transform-origin: 0 50%;
}
.fms-tour__step.is-on .fms-tour__bar { animation: fms-tourbar var(--fms-tour-dur, 4600ms) linear forwards; }
.fms-tour.is-paused .fms-tour__step.is-on .fms-tour__bar { animation-play-state: paused; }
@keyframes fms-tourbar { to { transform: scaleX(1); } }

.fms-tour__stage { position: relative; display: grid; place-items: center; min-height: 440px; }
.fms-tour__phone {
  position: relative;
  width: 248px; height: 430px;
  border-radius: 34px; background: #0b1020; padding: 9px;
  box-shadow: 0 40px 80px -24px rgba(0, 0, 0, .6);
}
.fms-tour__screen {
  position: relative; height: 100%;
  border-radius: 26px; background: #fff; overflow: hidden;
}
.fms-tour__scene {
  position: absolute; inset: 0;
  padding: 38px 16px 16px;
  display: flex; flex-direction: column; gap: 11px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .45s ease, transform .5s var(--fms-ease-out);
  pointer-events: none;
}
.fms-tour__scene.is-on { opacity: 1; transform: none; pointer-events: auto; }
.fms-tour__num {
  font-family: var(--fms-display);
  font-size: 40px; font-weight: 800;
  color: var(--brand-d, #4f46e5);
  line-height: 1;
  letter-spacing: -.03em;
}

/* ---------- Sticky mobile CTA ---------- */
.fms-sticky {
  position: fixed; left: 0; right: 0; bottom: 0;
  z-index: 900;
  display: none;
  gap: 10px; align-items: center;
  padding: 11px 14px calc(11px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, .93);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line, #e7e7f0);
  box-shadow: 0 -8px 28px rgba(15, 23, 42, .1);
  transform: translateY(110%);
  transition: transform .4s var(--fms-ease-out);
}
.fms-sticky.is-visible { transform: none; }
.fms-sticky__txt { flex: 1; min-width: 0; line-height: 1.25; }
.fms-sticky__txt b { display: block; font-size: 14px; font-weight: 800; color: var(--ink, #0f172a); font-family: var(--fms-display); }
.fms-sticky__txt small { font-size: 11.5px; color: var(--body, #475569); }
.fms-sticky .btn { flex: none; padding: 11px 17px; font-size: 14px; }

@media (max-width: 860px) {
  .fms-sticky { display: flex; }
}

/* The theme's own bottom bar, given the same glass treatment. */
.fms-up .fms-mcta {
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 -10px 30px rgba(15, 23, 42, .22);
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 10px);
}
.fms-up .fms-mcta .btn { box-shadow: var(--fms-sh-brand); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .fms-tour__grid { grid-template-columns: 1fr; gap: 40px; }
  .fms-tour__stage { order: -1; min-height: 0; }
}
@media (max-width: 640px) {
  .fms-stage { min-height: 470px; transform: scale(.9); transform-origin: center top; }
  /* Three floating cards bury the card's own buttons on a phone. Keep the two
     that carry the promise and move them clear of the action row. */
  .fms-toast--wa { display: none; }
  .fms-toast { max-width: 180px; padding: 8px 11px; }
  .fms-toast--lead { left: -10px; top: 300px; }
  .fms-toast--saved { right: -10px; top: 150px; bottom: auto; }
  .fms-claim__box { flex-wrap: wrap; padding: 10px; }
  .fms-claim__host { padding-left: 4px; }
  .fms-claim__input { flex-basis: 60%; }
  .fms-claim__btn { width: 100%; justify-content: center; margin-top: 6px; }
  .fms-tour { padding: 60px 0; }
}

/* ---------- Motion preferences ----------
   Everything above degrades to a legible static layout. */
@media (prefers-reduced-motion: reduce) {
  .fms-ticker__track { animation: none; }
  .fms-tour__step.is-on .fms-tour__bar { animation: none; transform: scaleX(1); }
  .fms-up [data-fms-stagger] > * { opacity: 1; transform: none; transition: none; }
  .fms-progress { display: none; }
  .fms-stage .fms-nfc,
  .fms-stage .fms-vcard,
  .fms-stage .fms-toast { transition: none; }
  .fms-up .btn:hover { transform: none; }
  .fms-up .prob:hover,
  .fms-up .fcard:hover,
  .fms-up .tcard:hover,
  .fms-up .bizcard:hover { transform: none; }
  .fms-stage__replay { display: none; }
}
