/* ff-demo.css - the live guides' look (2026-11-18, phase 1), with src/shared/ff-demo.js. The site serves a
   byte-for-byte copy at /ff-demo.css (check:ffdemo). Two parts: the numbered stills (.ffd-fallback), which are the
   guide without JavaScript and under prefers-reduced-motion, and the player the engine builds beside them.
   Motion: transform and opacity only, custom curves, every press under 300ms; nothing moves under reduced motion.
   Tokens: ink #0F2440, muted #5A6E8C (4.9:1 on white), accent #2F54C9 (AA on white), the device bezel of the site. */
.ffd{--ffd-acc:#2F54C9;--ffd-ink:#0F2440;--ffd-mut:#5A6E8C;--ffd-line:#DCE3EE;--ffd-bezel:#0E1B2E;--ffd-out:cubic-bezier(.23,1,.32,1)}
/* no layout on .ffd itself: FF Business and the Suite use the same class as their design root (a sidebar, a page,
   the body), and the apps load this sheet for their guide window (11-18: a position here undid the fixed sidebar) */

/* ── the numbered stills ── */
.ffd-fallback{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:22px 16px}
.ffd-fallback[data-view=desk]{grid-template-columns:repeat(auto-fill,minmax(260px,1fr))}
.ffd-fallback li{margin:0;padding:0}
.ffd-fallback li::before{content:none!important}
.ffd-fallback figure{margin:0;display:grid;gap:10px;align-content:start}
.ffd-fb-shot{position:relative;border-radius:22px;overflow:hidden;border:5px solid var(--ffd-bezel);background:#EFF4FB;box-shadow:0 14px 30px -18px rgba(15,36,64,.45)}
.ffd-fallback[data-view=desk] .ffd-fb-shot{border-radius:10px}
.ffd-fb-shot picture,.ffd-fb-shot img{display:block;width:100%;height:auto}
.ffd-fb-mark{position:absolute;border-radius:10px;box-shadow:0 0 0 2.5px #C2410C,0 0 0 6px rgba(249,115,22,.28)}
.ffd-fallback figcaption{display:flex;gap:8px;align-items:flex-start;font-size:15px;font-weight:600;line-height:1.35;color:var(--ffd-ink)}
.ffd-fallback figcaption i{font-style:normal;flex:none;width:26px;height:26px;margin-top:-2px;border-radius:50%;display:grid;place-items:center;font-size:12.5px;font-weight:700;background:var(--ffd-acc);color:#fff}
.ffd-fallback .ffd-fb-done figcaption i{background:#0F6E4F}

/* ── the player ── */
.ffd-player{display:none;position:relative}
.ffd.ffd-live .ffd-player{display:block}
.ffd.ffd-live>.ffd-fallback{display:none}
.ffd.ffd-live.ffd-keep>.ffd-fallback{display:grid;margin-top:28px}
.ffd-stage{position:relative;display:flex;align-items:flex-end;justify-content:center;gap:28px}
.ffd-dev{position:relative;transition:opacity .3s var(--ffd-out)}
.ffd-stage[data-two] .ffd-dev:not(.is-on){opacity:.72}
.ffd-phone{width:var(--ffd-pw,290px);flex:none;padding:6px;border-radius:40px;background:var(--ffd-bezel);box-shadow:0 30px 60px -22px rgba(15,36,64,.42),0 12px 24px -10px rgba(15,36,64,.2),inset 0 0 0 1px rgba(255,255,255,.07)}
.ffd-phone .ffd-screen{aspect-ratio:600/1298;border-radius:34px}
.ffd-desk{flex:1 1 auto;min-width:0;max-width:var(--ffd-lw,720px)}
.ffd-lid{padding:2.2% 2.2% 2.6%;border-radius:18px 18px 6px 6px;background:var(--ffd-bezel);box-shadow:0 34px 70px -30px rgba(15,36,64,.45),inset 0 0 0 1px rgba(255,255,255,.07)}
.ffd-desk .ffd-screen{aspect-ratio:16/10;border-radius:6px}
.ffd-base{height:14px;margin:0 -2.5%;border-radius:2px 2px 14px 14px;background:linear-gradient(180deg,#D5DCE7,#B9C3D2)}
.ffd-screen{position:relative;overflow:hidden;background:#EFF4FB;isolation:isolate}
.ffd-cam{position:absolute;inset:0;transform-origin:0 0;will-change:transform}
.ffd-cam img{position:absolute;inset:0;width:100%;height:100%;display:block;object-fit:cover;object-position:top;user-select:none;-webkit-user-drag:none;opacity:0}
.ffd-typed{position:absolute;inset:0;pointer-events:none;opacity:0}
.ffd-typed img{opacity:1}
.ffd-ptr{position:absolute;left:0;top:0;z-index:4;pointer-events:none;opacity:0;will-change:transform}
.ffd-tip{display:block;transition:transform 120ms var(--ffd-out)}
.ffd-ptr.is-press .ffd-tip{transform:scale(.97)}
.ffd-finger .ffd-tip{width:34px;height:34px;margin:-17px 0 0 -17px;border-radius:50%;background:radial-gradient(circle at 50% 45%,rgba(255,255,255,.9),rgba(255,255,255,.6) 60%,rgba(255,255,255,.4));box-shadow:0 0 0 1.5px rgba(15,36,64,.55),0 6px 16px rgba(15,36,64,.28)}
.ffd-ring{position:absolute;left:-17px;top:-17px;width:34px;height:34px;border-radius:50%;box-shadow:0 0 0 2px var(--ffd-acc);opacity:0;transform:scale(.6)}
.ffd-ptr.is-press .ffd-ring{animation:ffdRing 420ms var(--ffd-out)}
@keyframes ffdRing{0%{opacity:.7;transform:scale(.6)}100%{opacity:0;transform:scale(1.6)}}
.ffd-cursor .ffd-tip{width:22px;height:22px;margin:-3px 0 0 -5px;filter:drop-shadow(0 2px 3px rgba(15,36,64,.35))}
.ffd-cursor .ffd-tip svg{display:block}
.ffd-cursor .ffd-ring{left:-12px;top:-12px;width:24px;height:24px}
.ffd-bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:10px 12px;margin-top:24px}
.ffd-steps{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;justify-content:center;gap:6px}
.ffd-steps li{margin:0;padding:0}
.ffd-steps li::before{content:none!important}
.ffd-steps button,.ffd-pp,.ffd-tabs button{all:unset;box-sizing:border-box;cursor:pointer;font-family:inherit}
.ffd-steps button{position:relative;overflow:hidden;display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:6px 14px 6px 6px;border-radius:999px;font-size:14px;font-weight:600;color:var(--ffd-mut);line-height:1.25;border:1px solid var(--ffd-line);background:#fff;transition:color .2s var(--ffd-out),border-color .2s var(--ffd-out)}
[dir=rtl] .ffd-steps button{padding:6px 6px 6px 14px}
.ffd-steps i{font-style:normal;width:26px;height:26px;flex:none;border-radius:50%;display:grid;place-items:center;font-size:12.5px;font-weight:700;background:#F1F4F9;color:var(--ffd-mut);position:relative;z-index:1;transition:background .2s var(--ffd-out),color .2s var(--ffd-out)}
.ffd-steps span{position:relative;z-index:1}
.ffd-steps button[aria-current=step]{color:var(--ffd-ink);border-color:var(--ffd-acc)}
.ffd-steps button[aria-current=step] i{background:var(--ffd-acc);color:#fff}
/* the step's own time, a quiet fill behind the pill; it waits when the guide waits */
.ffd-steps button::after{content:"";position:absolute;inset:0;background:rgba(47,84,201,.09);transform:scaleX(0);transform-origin:left center;pointer-events:none}
[dir=rtl] .ffd-steps button::after{transform-origin:right center}
.ffd-steps button.is-run::after{animation:ffdFill var(--ffd-dur,1500ms) linear forwards}
.ffd.is-paused .ffd-steps button.is-run::after{animation-play-state:paused}
@keyframes ffdFill{to{transform:scaleX(1)}}
.ffd-pp{width:44px;height:44px;flex:none;border-radius:50%;display:grid;place-items:center;color:var(--ffd-ink);background:#fff;border:1px solid var(--ffd-line)}
.ffd-pp svg{display:block}
.ffd-tabs{display:inline-flex;padding:3px;border-radius:999px;background:#EEF2F8;flex:none}
.ffd-tabs button{min-height:38px;padding:0 16px;border-radius:999px;font-size:13.5px;font-weight:600;color:var(--ffd-mut);display:inline-flex;align-items:center}
.ffd-tabs button[aria-pressed=true]{background:#fff;color:var(--ffd-ink);box-shadow:0 1px 3px rgba(15,36,64,.16)}
.ffd-steps button:focus-visible,.ffd-pp:focus-visible,.ffd-tabs button:focus-visible{outline:3px solid var(--ffd-acc);outline-offset:2px}
@media (hover:hover) and (pointer:fine){.ffd-steps button:hover,.ffd-pp:hover{border-color:#B9C7DD}.ffd-tabs button:hover{color:var(--ffd-ink)}}
@media (max-width:900px){
  .ffd-stage .ffd-desk,.ffd-tabs{display:none}
  .ffd-stage[data-two] .ffd-dev{opacity:1}
  .ffd-phone{width:var(--ffd-pwn,min(290px,72vw))}
}
.ffd-now{display:none;margin:0}
@media (max-width:520px){
  /* a phone: the step's words on one line, then the pause and the step numbers on one row */
  .ffd-bar{gap:10px 8px}
  .ffd-now{display:block;order:-1;flex:1 0 100%;min-height:1.4em;text-align:center;font-size:16.5px;font-weight:700;line-height:1.4;color:var(--ffd-ink)}
  .ffd-steps{gap:6px}
  .ffd-steps button span{display:none}
  .ffd-steps button,[dir=rtl] .ffd-steps button{min-height:36px;width:36px;padding:4px;gap:0;justify-content:center}
  .ffd-steps i{width:26px;height:26px}
  .ffd-fallback{grid-template-columns:1fr 1fr}
}
/* reduced motion: the player steps aside, the numbered stills are the guide */
@media (prefers-reduced-motion:reduce){
  .ffd.ffd-live .ffd-player{display:none}
  .ffd.ffd-live>.ffd-fallback{display:grid}
}
/* ── a guide's recorded video (the Business Suite guide, 2026-11-18): nothing loads until play (preload="none") ── */
.ffd-vid{margin:0;display:grid;gap:8px}
.ffd-vid video{display:block;width:100%;height:auto;aspect-ratio:16/9;border-radius:14px;background:#F4F7FB;box-shadow:0 18px 40px -24px rgba(15,36,64,.45)}
.ffd-vid figcaption{font-size:14px;line-height:1.4;color:inherit}
.ffd-suite{margin-top:40px}
.ffd-suite .ffd-h{margin:0 0 6px;font-size:24px;line-height:1.25;text-align:center}
.ffd-suite .ffd-intro{margin:0 auto 24px;max-width:640px;font-size:16.5px;line-height:1.5;text-align:center}
.ffd-suite .ffd-vid{max-width:760px;margin:32px auto 0}
.ffd-vid.fp-guide-vid{max-width:820px;margin:40px auto 0}   /* the business page (tools/site-next): the video under its live guide, not wall to wall */
