/* mypptmaker 2.6 effects (see fx.js; adapted from React Bits, MIT + Commons Clause). Most rules are scoped to the html.fx-* classes fx.js sets,
   so the pages keep the 2.5 look if fx.js does not run. */

/* ---------- background: the Iridescence WebGL canvas replaces the ribbons and blobs ---------- */
html.fx-gl .site .ribbons, html.fx-gl .site .blob { display: none !important; }
.fxbg { position: fixed; left: 0; top: 0; width: 100%; height: 100%; display: block; pointer-events: none; }

/* ---------- 2 StatusMark ---------- */
html.fx-sm .steps.sm li span.smw { position: relative; background: none !important; border: 0 !important; box-shadow: none !important; animation: none !important; color: inherit; }
.smk { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.smt { fill: #fff; fill-opacity: 0; stroke: #1B2340; stroke-opacity: 0; stroke-width: 1.6; transition: fill-opacity .2s ease, stroke-opacity .2s ease; }
.smr { transform-box: view-box; transform-origin: 12px 12px; }
.smr circle { fill: none; stroke: rgba(27, 35, 64, .3); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 2.5 5.83;
  transition: stroke-dasharray .3s cubic-bezier(.77, 0, .175, 1), stroke .2s ease; }
.smc { fill: none; stroke: var(--green); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 2; stroke-dashoffset: 1.05; opacity: 0;
  transition: stroke-dashoffset .16s cubic-bezier(.23, 1, .32, 1), opacity 0s linear .16s; }
.smn { position: relative; font: 700 12.5px var(--f-num); font-style: normal; color: var(--t-mute); transition: opacity .2s ease, transform .3s cubic-bezier(.23, 1, .32, 1); }
.steps.sm li.now .smt { fill-opacity: .85; stroke-opacity: .12; }
.steps.sm li.now .smr circle { stroke: #1B2340; stroke-dasharray: 45.29 21.31; }
.steps.sm li.now .smr { animation: smspin 1.1s linear infinite; }
.steps.sm li.now .smn { color: var(--ink); }
.steps.sm li.done .smt { fill-opacity: 1; }
.steps.sm li.done .smr circle { stroke: var(--green); stroke-dasharray: 66.6 0; }
.steps.sm li.done .smc { stroke-dashoffset: 0; opacity: 1; transition: stroke-dashoffset .26s cubic-bezier(.23, 1, .32, 1) .12s, opacity 0s linear .12s; }
.steps.sm li.done .smn { opacity: 0; transform: scale(.5); }
@keyframes smspin { to { transform: rotate(360deg); } }
.steps.smi, .steps.smi * { transition: none !important; }

/* ---------- 3 Counter ---------- */
.odo { font-variant-numeric: tabular-nums; white-space: nowrap; }
.odc { display: inline; }
.odc .dg { display: inline-block; height: 1.2em; line-height: 1.2em; overflow: hidden; vertical-align: -.24em; }
.odc .dg i { display: block; font-style: normal; transition: transform 1.1s var(--spring, cubic-bezier(.2, .8, .2, 1.1)); will-change: transform; }
.odc .dg i o-n { display: block; height: 1.2em; text-align: center; }
.odc .sep { display: inline; }
.kpi b.odo, .stat b.odo { line-height: 1.2; }
.kpi b.odo .dg, .stat b.odo .dg { vertical-align: top; }

/* ---------- 4 RefineFrame ---------- */
.rfc { position: absolute; left: 0; top: 0; width: 100%; height: 100%; border-radius: inherit; pointer-events: none; transition: opacity .28s ease; }
.rfc.out { opacity: 0; }
.slot .rfc { border-radius: var(--rs); }
html.fx-rf .slot.gen { position: relative; isolation: isolate; animation: none; background: rgba(255, 255, 255, .28); }
.rfg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; image-rendering: pixelated; border-radius: inherit; }

/* ---------- 5 ThoughtLine ---------- */
html.fx-tl .activity.tl { display: block; padding: 0; min-height: 44px; }
.tlh { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 9px 14px; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: default; border-radius: inherit; }
.tlh.has { cursor: pointer; }
.tlg { flex: none; width: 26px; height: 26px; border-radius: 8px; display: flex; align-items: center; justify-content: center; background: var(--btn-grad); color: #fff; animation: tlbr 1.6s cubic-bezier(.77, 0, .175, 1) infinite; }
@keyframes tlbr { 50% { opacity: .5; } }
.tll { display: grid; flex: 1 1 auto; min-width: 0; }
.tlt { grid-area: 1 / 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; filter: blur(3px); transform: translateY(6px);
  transition: opacity .38s cubic-bezier(.23, 1, .32, 1), filter .38s cubic-bezier(.23, 1, .32, 1), transform .38s cubic-bezier(.23, 1, .32, 1); }
.tlt.on { opacity: 1; filter: none; transform: none; }
.tlt.out { transform: translateY(-6px); }
.tlt.on .tlb { background: linear-gradient(100deg, rgba(14, 22, 48, .42) 30%, #0E1630 50%, rgba(14, 22, 48, .42) 70%); background-size: 250% 100%; background-position: 125% 0;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: tlsh 1.8s linear infinite; }
@keyframes tlsh { to { background-position: -125% 0; } }
.tlm { flex: none; font: 600 12.5px var(--f-num); font-variant-numeric: tabular-nums; color: var(--t-mute); }
.tlv { flex: none; display: none; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--t-sub); }
.tlh.has .tlv { display: inline-flex; }
.tlv b { font-weight: 600; }
.tlv svg { transition: transform .25s cubic-bezier(.23, 1, .32, 1); }
.activity.tl.open .tlv svg { transform: rotate(180deg); }
.tlx { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .38s cubic-bezier(.23, 1, .32, 1); }
.activity.tl.open .tlx { grid-template-rows: 1fr; }
.tlx ol { min-height: 0; overflow: hidden; list-style: none; margin: 0; padding: 0 14px 0 50px; }
.tlx li { display: flex; align-items: center; gap: 8px; padding: 3px 0; font-size: 12.5px; color: var(--t-sub); }
.tlx li:last-child { padding-bottom: 10px; }
.tlx li i { flex: none; display: flex; color: var(--green); }
.tlx li span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tlx li small { margin-left: auto; padding-left: 10px; flex: none; font: 600 12px var(--f-num); font-variant-numeric: tabular-nums; color: var(--t-mute); }

/* ---------- 6 CardSwap ---------- */
html.fx-cs .stack { perspective: 900px; }
html.fx-cs .stack .bk, html.fx-cs .stack .fr { animation: none !important; will-change: transform, opacity; }
html.fx-cs .stack .bk { border: 3px solid #fff; background: #fff; }
html.fx-cs .slabwrap .fl { animation: none !important; right: auto; will-change: transform, opacity; }
/* login samples: every card is an original/new pair. Without CardSwap the back cards stay still and show the new slide. */
.site .stack .bk .wipe { animation: none !important; clip-path: inset(0 0 0 0); }
.site .stack .bk .line, .site .stack .bk .t { display: none; }
/* with CardSwap: cards wait on the original; the one at the front scans once to the new slide, then holds it */
html.fx-cs .stack.cs-wipe .t { display: block; }
html.fx-cs .site .stack.cs-wipe .wipe { animation: none !important; clip-path: inset(0 100% 0 0); }
html.fx-cs .site .stack.cs-wipe .line { display: block; animation: none; left: 0; opacity: 0; }
html.fx-cs .site .stack.cs-wipe .cs-on .wipe { animation: cs-wipe 4.6s cubic-bezier(.6,0,.3,1) .5s both !important; }
html.fx-cs .site .stack.cs-wipe .cs-on .line { animation: cs-line 4.6s cubic-bezier(.6,0,.3,1) .5s both; }
@keyframes cs-wipe { 0%, 14% { clip-path: inset(0 100% 0 0); } 62%, 100% { clip-path: inset(0 0 0 0); } }
@keyframes cs-line { 0% { left: 0; opacity: 0; } 6%, 14% { left: 0; opacity: 1; } 62% { left: 100%; opacity: 1; } 72%, 100% { left: 100%; opacity: 0; } }
/* phone: leave room on the right for the cards waiting behind */
@media (max-width: 600px) { html.fx-cs .lg-left .stack { width: calc(100% - 64px); margin-left: 4px; } }

/* ---------- 7 RubberSegment ---------- */
html.fx-rs .ftabs.rs { position: relative; }
html.fx-rs .ftabs.rs button { position: relative; z-index: 1; }
html.fx-rs .ftabs.rs button[aria-pressed="true"] { background: transparent; box-shadow: none; }
.rsth { position: absolute; left: 0; top: 0; border-radius: 999px; background: var(--btn-grad); box-shadow: 0 8px 18px -10px rgba(21, 27, 51, .8); pointer-events: none;
  transition: scale .45s var(--spring, ease); }
.rsth.press { scale: .94; transition-duration: .12s; }

/* ---------- 8 GlideSelect ---------- */
html.fx-gs .site .pop { transform-origin: top right; transition: opacity .18s cubic-bezier(.23, 1, .32, 1), transform .18s cubic-bezier(.23, 1, .32, 1), visibility 0s; }
html.fx-gs .site .pop[hidden] { display: block; opacity: 0; transform: scale(.95); visibility: hidden; pointer-events: none;
  transition: opacity .12s cubic-bezier(.23, 1, .32, 1), transform .12s cubic-bezier(.23, 1, .32, 1), visibility 0s linear .12s; }
html.fx-gs .pop button { position: relative; z-index: 1; }
html.fx-gs .pop button:hover { background: transparent; }
html.fx-gs.fx-gs .site .pop button[aria-checked="true"] { background: var(--btn-grad); }
.gsp { position: absolute; left: 8px; right: 8px; top: 0; border-radius: var(--rm); background: rgba(var(--g), .13); opacity: 0; pointer-events: none;
  transition: transform .22s cubic-bezier(.23, 1, .32, 1), height .22s cubic-bezier(.23, 1, .32, 1), opacity .15s ease; }
.gsp.on { opacity: 1; }
html.fx-gs .mdl > button svg { transition: transform .2s cubic-bezier(.23, 1, .32, 1); }
html.fx-gs .mdl > button[aria-expanded="true"] svg { transform: rotate(180deg); }
html.fx-gs .mdl > button { transition: transform .16s cubic-bezier(.23, 1, .32, 1); }
html.fx-gs .mdl > button:active { transform: scale(.97); }
#mdlName.gsw { animation: gsw .18s ease; }
@keyframes gsw { from { opacity: .55; filter: blur(2px); } }

/* ---------- 9 AnimatedContent ---------- */
.rv { opacity: 0; }

/* ---------- login title "My PPT Maker": italic serif, a coloured light band drifts through the ink letters ---------- */
/* Fraunces (SIL OFL, fonts/fraunces-OFL.txt), pinned to italic 600 / SOFT 100 / WONK 1 / opsz 144 and cut to Latin letters */
@font-face { font-family: "Fraunces MP"; src: url(fonts/fraunces-title.woff2) format("woff2"); font-weight: 600; font-style: italic; font-display: block; }
.site .lg-left h1.bt { margin: 0 0 18px; font: italic 600 86px/1.02 "Fraunces MP", Georgia, serif; letter-spacing: -.025em; color: #1B2340; text-wrap: nowrap; white-space: nowrap; }
.site .lg-left h1.bt .bt-in { display: inline-block; animation: bt-in 1.1s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes bt-in { from { opacity: 0; filter: blur(14px); transform: translateY(18px); } to { opacity: 1; filter: none; transform: none; } }
.bt-a { display: inline-block; padding: .04em .14em .14em .02em; margin: -.04em -.14em -.14em -.02em;
  background: linear-gradient(100deg, #1B2340 0 30%, #6C5CE0 40%, #7FA2FF 50%, #E88BC4 60%, #1B2340 70% 100%) 0 0 / 200% 100% repeat-x;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: bt-flow 7s linear infinite; }
@keyframes bt-flow { to { background-position: 200% 0; } }
@media (max-width: 600px) { .site .lg-left h1.bt { font-size: 54px; } }
