/* ==========================================================================
   Vibers — home hero: a project in chat mode and game mode inside a laptop (views/partials/laptop_mock.php)
   ========================================================================== */
.sf-laptop { position: relative; width: 100%; max-width: 640px; margin: 0 auto; filter: drop-shadow(0 40px 70px rgba(76, 29, 149, .45)); }
.sf-laptop-screen { position: relative; background: #0b0816; border: 12px solid #1b1827; border-bottom-width: 16px; border-radius: 18px 18px 6px 6px; aspect-ratio: 16 / 10; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.sf-laptop-cam { position: absolute; top: -9px; left: 50%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: #3a3650; z-index: 3; }
.sf-laptop-base { position: relative; height: 16px; width: 114%; margin-left: -7%; background: linear-gradient(180deg, #d9d6e3, #a19db0 70%, #807c90); border-radius: 2px 2px 16px 16px; box-shadow: 0 10px 18px rgba(0, 0, 0, .35); }
.sf-laptop-base span { position: absolute; left: 50%; top: 0; width: 18%; height: 7px; margin-left: -9%; background: #b3afc2; border-radius: 0 0 10px 10px; }

/* Mini project screen: chat mode, then game mode, 16 s per loop (all timing lives here). */
.sf-lm { position: absolute; inset: 0; overflow: hidden; font-size: 10px; color: #1e1b3a; background: #ede9fe; }
.sf-lm-c-strategy { --c: #eab308; } .sf-lm-c-code { --c: #22c55e; } .sf-lm-c-marketing { --c: #f97316; } .sf-lm-c-support { --c: #14b8a6; }
.sf-lm-c-sales { --c: #a855f7; } .sf-lm-c-finance { --c: #0ea5e9; } .sf-lm-c-designer { --c: #d946ef; } .sf-lm-c-me { --c: #3b82f6; }
.sf-lm-vib { --c2: color-mix(in srgb, var(--c, #8b5cf6) 70%, #fff); position: relative; display: block; flex: none; width: 1.9em; height: 1.9em; border-radius: .6em; background: linear-gradient(160deg, var(--c2), var(--c, #8b5cf6)); box-shadow: inset 0 -.22em 0 rgba(0, 0, 0, .14), 0 .2em .5em rgba(30, 27, 58, .18); }
.sf-lm-vib::before, .sf-lm-vib::after { content: ""; position: absolute; top: 34%; width: .16em; height: .55em; border-radius: 99px; background: #fff; transform: skewX(-14deg); }
.sf-lm-vib::before { left: 33%; } .sf-lm-vib::after { right: 33%; }

/* Top bar (shared): logo, project, and which mode is on */
.sf-lm-top { position: absolute; z-index: 3; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: .8em; padding: .8em 1em; }
.sf-lm-pill { display: inline-flex; align-items: center; padding: .45em .8em; border-radius: .8em; background: #fff; box-shadow: 0 .3em .9em rgba(76, 29, 149, .12); }
.sf-lm-logo { height: 1.5em; width: auto; }
.sf-lm-project { display: inline-flex; align-items: center; gap: .6em; min-width: 0; white-space: nowrap; }
.sf-lm-project b { font-size: 1.15em; font-weight: 800; overflow: hidden; text-overflow: ellipsis; }
.sf-lm-project em { font-style: normal; font-size: .8em; font-weight: 700; color: #2563eb; background: #dbeafe; border-radius: 99px; padding: .2em .65em; }
.sf-lm-modes { margin-left: auto; display: inline-flex; gap: .2em; padding: .25em; border-radius: .9em; background: #fff; box-shadow: 0 .3em .9em rgba(76, 29, 149, .12); }
.sf-lm-mode { display: inline-flex; align-items: center; gap: .35em; padding: .3em .7em; border-radius: .65em; font-size: .9em; white-space: nowrap; color: #6d28d9; animation: sf-lm-mode-chat 16s infinite; }
.sf-lm-mode.is-game { animation-name: sf-lm-mode-game; }
.sf-lm-mode b { font-weight: 700; }
@keyframes sf-lm-mode-chat { 0%, 48% { color: #fff; background: linear-gradient(135deg, #8b3dff, #6d28d9); } 50%, 100% { color: #6d28d9; background: transparent; } }
@keyframes sf-lm-mode-game { 0%, 48% { color: #6d28d9; background: transparent; } 50%, 98% { color: #fff; background: linear-gradient(135deg, #8b3dff, #6d28d9); } 100% { color: #6d28d9; background: transparent; } }

.sf-lm-scene { position: absolute; inset: 0; opacity: 0; }
.sf-lm-chat { display: flex; flex-direction: column; gap: .8em; padding: 4.1em 1em 1em; background: radial-gradient(40em 22em at 15% 100%, rgba(236, 72, 153, .1), transparent 70%), linear-gradient(180deg, #f6f3ff, #efeafe); animation: sf-lm-show-chat 16s infinite; }
.sf-lm-game { background: radial-gradient(circle at 6% 20%, #3f6f45 0 2.2em, transparent 2.3em), radial-gradient(circle at 96% 30%, #3f6f45 0 2.4em, transparent 2.5em), radial-gradient(circle at 92% 92%, #3f6f45 0 2em, transparent 2.1em), radial-gradient(circle at 4% 88%, #3f6f45 0 2.3em, transparent 2.4em), #5c8a58; animation: sf-lm-show-game 16s infinite; }
@keyframes sf-lm-show-chat { 0% { opacity: 0; } 3%, 46% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes sf-lm-show-game { 0%, 46% { opacity: 0; } 50%, 96% { opacity: 1; } 100% { opacity: 0; } }

/* Chat mode: the team bar, the conversation and the preview being built */
.sf-lm-team { display: flex; gap: .3em; flex-wrap: nowrap; overflow: hidden; }
.sf-lm-chip { display: inline-flex; align-items: center; gap: .4em; padding: .2em .55em .2em .2em; border: 1px solid transparent; border-radius: 99px; white-space: nowrap; }
.sf-lm-chip .sf-lm-vib { width: 1.8em; height: 1.8em; }
.sf-lm-chip b { display: flex; flex-direction: column; font-size: .85em; line-height: 1.1; }
.sf-lm-chip small { font-size: .78em; font-weight: 500; color: #6b6890; }
.sf-lm-chip.sf-lm-c-strategy { animation: sf-lm-on-a 16s infinite; }
.sf-lm-chip.sf-lm-c-designer { animation: sf-lm-on-b 16s infinite; }
.sf-lm-chip.sf-lm-c-code { animation: sf-lm-on-c 16s infinite; }
@keyframes sf-lm-on-a { 0%, 12% , 21%, 100% { border-color: transparent; background: transparent; } 13%, 20% { border-color: var(--c); background: color-mix(in srgb, var(--c) 14%, #fff); } }
@keyframes sf-lm-on-b { 0%, 20%, 29%, 100% { border-color: transparent; background: transparent; } 21%, 28% { border-color: var(--c); background: color-mix(in srgb, var(--c) 14%, #fff); } }
@keyframes sf-lm-on-c { 0%, 28%, 47%, 100% { border-color: transparent; background: transparent; } 29%, 46% { border-color: var(--c); background: color-mix(in srgb, var(--c) 14%, #fff); } }

.sf-lm-cols { flex: 1; min-height: 0; display: flex; gap: 1em; }
.sf-lm-talk { flex: 0 0 50%; min-width: 0; display: flex; flex-direction: column; gap: .7em; }
.sf-lm-msgs { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: .6em; overflow: hidden; }
.sf-lm-msg { display: flex; flex-direction: column; gap: .38em; padding: .6em .7em; border-radius: .25em .9em .9em .9em; background: #fff; border: 1px solid #e4defa; }
.sf-lm-msg > i { height: .42em; border-radius: 99px; background: rgba(30, 27, 58, .16); }
.sf-lm-msg > i.is-short { width: 55%; }
.sf-lm-msg.is-user { align-self: flex-end; width: 50%; border: 0; border-radius: .9em .9em .25em .9em; background: linear-gradient(135deg, #8b3dff, #6d28d9); }
.sf-lm-msg.is-user > i { background: rgba(255, 255, 255, .6); }
.sf-lm-say { display: flex; align-items: flex-start; gap: .5em; }
.sf-lm-say .sf-lm-msg { flex: 1; min-width: 0; background: color-mix(in srgb, var(--c) 9%, #fff); border-color: color-mix(in srgb, var(--c) 35%, #fff); }
.sf-lm-say .sf-lm-vib { width: 1.7em; height: 1.7em; }
.sf-lm-layout { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: .7em 2.6em 1.5em; gap: .3em; padding: .4em; border-radius: .6em; background: #fff; }
.sf-lm-layout span { border-radius: .25em; background: #f5d0fe; }
.sf-lm-layout .is-nav { grid-column: span 3; background: #e9d5ff; }
.sf-lm-layout .is-hero { grid-column: span 3; background: linear-gradient(135deg, #8b5cf6, #ec4899); }
.sf-lm-code { display: flex; flex-direction: column; gap: .32em; padding: .5em .6em; border-radius: .6em; background: #14111f; }
.sf-lm-code i { height: .4em; border-radius: 99px; width: 75%; background: rgba(196, 181, 253, .4); }
.sf-lm-code i.k { width: 45%; background: rgba(240, 171, 252, .65); }
.sf-lm-code i.s { width: 62%; background: rgba(134, 239, 172, .6); }
.sf-lm-code i.is-short { width: 30%; animation: sf-lm-type 1s steps(4) infinite; }
@keyframes sf-lm-type { from { width: 8%; } to { width: 40%; } }
.sf-lm-s1 { animation: sf-lm-in-1 16s infinite both; }
.sf-lm-s2 { animation: sf-lm-in-2 16s infinite both; }
.sf-lm-s3 { animation: sf-lm-in-3 16s infinite both; }
.sf-lm-s4 { animation: sf-lm-in-4 16s infinite both; }
@keyframes sf-lm-in-1 { 0%, 5% { opacity: 0; transform: translateY(.8em); } 7.5%, 100% { opacity: 1; transform: none; } }
@keyframes sf-lm-in-2 { 0%, 12% { opacity: 0; transform: translateY(.8em); } 14.5%, 100% { opacity: 1; transform: none; } }
@keyframes sf-lm-in-3 { 0%, 20% { opacity: 0; transform: translateY(.8em); } 22.5%, 100% { opacity: 1; transform: none; } }
@keyframes sf-lm-in-4 { 0%, 28% { opacity: 0; transform: translateY(.8em); } 30.5%, 100% { opacity: 1; transform: none; } }
.sf-lm-composer, .sf-lm-dock { display: flex; align-items: center; gap: .5em; }
.sf-lm-composer span, .sf-lm-dock span { flex: 1; display: flex; align-items: center; gap: .6em; height: 2.6em; padding: 0 .9em; border-radius: 99px; background: #fff; border: 1px solid #ddd6fe; color: #8b5cf6; }
.sf-lm-composer em, .sf-lm-dock em { flex: 1; height: .45em; max-width: 70%; border-radius: 99px; background: rgba(30, 27, 58, .12); }
.sf-lm-composer b, .sf-lm-dock b, .sf-lm-dock u { width: 2.6em; height: 2.6em; flex: none; display: grid; place-items: center; border-radius: .8em; color: #fff; background: linear-gradient(135deg, #8b3dff, #6d28d9); }

.sf-lm-preview { flex: 1; min-width: 0; display: flex; flex-direction: column; border-radius: .9em; overflow: hidden; background: #fff; border: 1px solid #1d1830; box-shadow: 0 .6em 1.6em rgba(76, 29, 149, .18); }
.sf-lm-bar { display: flex; align-items: center; gap: .35em; padding: .55em .7em; background: #1d1830; }
.sf-lm-bar span { width: .5em; height: .5em; border-radius: 50%; background: #4b4566; }
.sf-lm-bar em { flex: 1; height: 1.3em; margin: 0 .4em; border-radius: 99px; background: #2c2645; }
.sf-lm-bar b { font-size: .75em; font-weight: 800; color: #f87171; }
.sf-lm-site { flex: 1; display: flex; flex-direction: column; gap: .55em; padding: .7em; background: #fffaf3; }
.sf-lm-site-nav { height: 1em; border-radius: .3em; background: linear-gradient(90deg, #7c2d12 0 18%, transparent 18% 60%, #fed7aa 60% 70%, transparent 70% 74%, #fed7aa 74% 84%, transparent 84% 88%, #fb923c 88%); }
.sf-lm-site-hero { display: flex; flex-direction: column; gap: .4em; justify-content: center; padding: .9em; min-height: 6.4em; border-radius: .6em; background: linear-gradient(135deg, #f97316, #db2777); }
.sf-lm-site-hero i { height: .65em; width: 70%; border-radius: 99px; background: rgba(255, 255, 255, .85); }
.sf-lm-site-hero i.is-short { width: 45%; height: .45em; background: rgba(255, 255, 255, .6); }
.sf-lm-site-hero b { width: 4.6em; height: 1.4em; margin-top: .2em; border-radius: .4em; background: #fff; }
.sf-lm-site-cards { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: .45em; }
.sf-lm-site-cards i { border-radius: .5em; background: linear-gradient(180deg, #fed7aa 0 45%, #fff 45%); border: 1px solid #fde4cc; }
.sf-lm-chat .sf-lm-site-nav { animation: sf-lm-in-5 16s infinite both; }
.sf-lm-chat .sf-lm-site-hero { animation: sf-lm-in-6 16s infinite both; }
.sf-lm-chat .sf-lm-site-cards { animation: sf-lm-in-7 16s infinite both; }
@keyframes sf-lm-in-5 { 0%, 31% { opacity: 0; transform: translateY(.8em); } 33.5%, 100% { opacity: 1; transform: none; } }
@keyframes sf-lm-in-6 { 0%, 35% { opacity: 0; transform: scale(.94); } 37.5%, 100% { opacity: 1; transform: none; } }
@keyframes sf-lm-in-7 { 0%, 39% { opacity: 0; transform: translateY(.8em); } 41.5%, 100% { opacity: 1; transform: none; } }

/* Game mode: the office seen from above, one room per vib, the big screen in the meeting room */
.sf-lm-office { position: absolute; left: 3%; right: 3%; top: 4.2em; bottom: 3.2em; display: flex; gap: .5em; padding: .5em; border-radius: .5em; background: #8c7bb8; transform: perspective(70em) rotateX(12deg); transform-origin: 50% 100%; box-shadow: 0 1em 2em rgba(20, 40, 20, .35); }
.sf-lm-wing { flex: 0 0 27%; display: flex; flex-direction: column; gap: .4em; }
.sf-lm-wing.is-right { order: 3; }
.sf-lm-center { order: 2; flex: 1; display: flex; flex-direction: column; gap: .4em; min-width: 0; }
.sf-lm-room, .sf-lm-meeting, .sf-lm-hall { position: relative; border-radius: .25em; background: radial-gradient(circle, rgba(76, 61, 130, .35) .09em, transparent .11em) 0 0 / 1.1em 1.1em, #b8a8da; overflow: visible; }
.sf-lm-room { flex: 1; border-top: .9em solid #4a3d78; }
.sf-lm-shelf { position: absolute; top: -.9em; left: 8%; width: 26%; height: 1.5em; border-radius: .1em; background: linear-gradient(180deg, #5b3a1f, #3d2714); box-shadow: inset 0 .25em 0 rgba(255, 255, 255, .08); }
.sf-lm-desk { position: absolute; top: 22%; left: 50%; width: 38%; height: 22%; transform: translateX(-50%); border-radius: .15em; background: #6b4426; }
.sf-lm-desk i { position: absolute; top: -.55em; width: 30%; height: .7em; border-radius: .1em; background: var(--c); border: .12em solid #1b1530; }
.sf-lm-desk i:nth-child(1) { left: 2%; transform: rotate(-12deg); } .sf-lm-desk i:nth-child(2) { left: 35%; } .sf-lm-desk i:nth-child(3) { right: 2%; transform: rotate(12deg); }
.sf-lm-c-code .sf-lm-desk i { animation: sf-lm-blink 1.4s steps(2) infinite; }
@keyframes sf-lm-blink { 50% { background: #bbf7d0; } }
.sf-lm-rug { position: absolute; left: 26%; right: 26%; top: 48%; bottom: 8%; border-radius: .2em; background: #3b2f66; }
.sf-lm-body { position: absolute; left: 50%; top: 46%; width: 2em; height: 2em; margin-left: -1em; animation: sf-lm-bob 1.6s ease-in-out infinite; }
@keyframes sf-lm-bob { 50% { transform: translateY(-.15em); } }
.sf-lm-c-me .sf-lm-body { display: none; }
.sf-lm-tag { position: absolute; z-index: 2; top: -1.9em; right: -4%; display: inline-flex; align-items: center; gap: .35em; padding: .25em .6em .25em .25em; border-radius: .6em; font-size: .78em; font-weight: 800; white-space: nowrap; color: #fff; background: #1e1840; box-shadow: 0 .3em .8em rgba(0, 0, 0, .3); }
.sf-lm-tag .sf-lm-vib { width: 1.5em; height: 1.5em; border-radius: .45em; }
.sf-lm-chart { position: absolute; top: -.8em; right: 8%; display: flex; align-items: flex-end; gap: .15em; height: 1.5em; padding: .15em .25em; background: #1b1530; border-radius: .1em; }
.sf-lm-chart i { width: .3em; background: #a855f7; animation: sf-lm-grow 16s infinite; }
.sf-lm-chart i:nth-child(1) { height: 30%; } .sf-lm-chart i:nth-child(2) { height: 55%; background: #22c55e; } .sf-lm-chart i:nth-child(3) { height: 75%; background: #eab308; } .sf-lm-chart i:nth-child(4) { height: 95%; background: #ec4899; }
@keyframes sf-lm-grow { 0%, 55% { transform: scaleY(.3); transform-origin: bottom; } 65%, 100% { transform: none; transform-origin: bottom; } }
.sf-lm-easel { position: absolute; left: 9%; top: 55%; width: 1.5em; height: 1.1em; border-radius: .1em; background: #fff; border: .15em solid #d4c8ec; }
.sf-lm-server { position: absolute; right: 9%; top: 40%; width: .9em; height: 2.2em; border-radius: .1em; background: repeating-linear-gradient(180deg, #1b1530 0 .35em, #22c55e .35em .45em); }
.sf-lm-notes { position: absolute; top: -.75em; right: 7%; display: grid; grid-template-columns: repeat(2, .55em); gap: .12em; }
.sf-lm-notes i { height: .55em; background: #fde047; } .sf-lm-notes i:nth-child(2) { background: #f9a8d4; } .sf-lm-notes i:nth-child(3) { background: #86efac; }
.sf-lm-bubble { position: absolute; z-index: 2; left: 58%; top: 18%; display: flex; gap: .2em; padding: .35em .5em; border-radius: .6em .6em .6em .15em; background: #fff; box-shadow: 0 .3em .8em rgba(0, 0, 0, .2); animation: sf-lm-pop 16s infinite both; }
.sf-lm-bubble i { width: .35em; height: .35em; border-radius: 50%; background: var(--c); }
@keyframes sf-lm-pop { 0%, 56% { opacity: 0; transform: scale(.4); } 58.5%, 76% { opacity: 1; transform: none; } 78%, 100% { opacity: 0; transform: scale(.4); } }

.sf-lm-meeting { flex: 1.35; display: flex; flex-direction: column; align-items: center; padding: 0 6% .5em; border-top: .9em solid #4a3d78; }
.sf-lm-screen { position: relative; z-index: 2; width: 100%; flex: 1; margin-top: -1.6em; display: flex; border-radius: .4em; overflow: hidden; border: .3em solid #110d1f; background: #fff; box-shadow: 0 .6em 1.6em rgba(17, 13, 31, .45), 0 0 2em rgba(255, 255, 255, .25); }
.sf-lm-screen .sf-lm-site { font-size: .62em; }
.sf-lm-table { width: 80%; height: 1.3em; margin-top: .5em; border-radius: .2em; background: #6b4426; box-shadow: 0 .45em 0 #3b2f66; }
.sf-lm-hall { flex: 1; }
.sf-lm-clock { position: absolute; left: 10%; top: 12%; padding: .1em .4em; border-radius: .25em; font: 700 .8em/1.2 ui-monospace, monospace; color: #6ee7b7; background: #0f2f2a; border: .15em solid #2dd4bf; }
.sf-lm-sign { position: absolute; left: 50%; top: 30%; transform: translateX(-50%); font-size: 1.6em; font-weight: 800; letter-spacing: -.02em; color: #fff; text-shadow: 0 0 .5em rgba(196, 181, 253, .9); }
.sf-lm-sofa { position: absolute; left: 8%; bottom: 12%; width: 22%; height: 1.4em; border-radius: .25em; background: #2f2557; }
.sf-lm-plant { position: absolute; right: 10%; top: 14%; width: 1.3em; height: 1.3em; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #4ade80, #166534); }
.sf-lm-plant.is-b { right: auto; left: 34%; top: auto; bottom: 10%; }
.sf-lm-walker { position: absolute; z-index: 2; right: -1.2em; top: 18%; animation: sf-lm-walk 16s infinite; }
@keyframes sf-lm-walk {
    0%, 52% { transform: translate(0, 0); }
    60% { transform: translate(-4em, 2.6em); }
    68%, 80% { transform: translate(-8.5em, 4.8em); }
    92%, 100% { transform: translate(0, 0); }
}
.sf-lm-dock { position: absolute; left: 50%; bottom: .6em; width: 62%; transform: translateX(-50%); padding: .3em; border-radius: 99px; background: rgba(255, 255, 255, .55); }
.sf-lm-dock span { height: 2.2em; }
.sf-lm-dock b, .sf-lm-dock u { width: 2.2em; height: 2.2em; border-radius: 50%; }
.sf-lm-dock u { color: #6d28d9; background: #fff; text-decoration: none; }

/* Dark theme: the app inside the laptop follows the site (the viber's site in the preview stays as it is). */
:root[data-theme="dark"] .sf-lm { color: #ece8ff; background: #0e0b1a; }
:root[data-theme="dark"] .sf-lm-chat { background: radial-gradient(40em 22em at 15% 100%, rgba(236, 72, 153, .12), transparent 70%), radial-gradient(40em 20em at 90% 0%, rgba(124, 58, 237, .22), transparent 70%), #0f0c1c; }
:root[data-theme="dark"] .sf-lm-pill, :root[data-theme="dark"] .sf-lm-modes { background: #1a1630; box-shadow: 0 .3em .9em rgba(0, 0, 0, .4); }
:root[data-theme="dark"] .sf-lm-project em { color: #93c5fd; background: rgba(59, 130, 246, .2); }
:root[data-theme="dark"] .sf-lm-mode { color: #c4b5fd; }
@keyframes sf-lm-mode-chat-dk { 0%, 48% { color: #fff; background: linear-gradient(135deg, #8b3dff, #6d28d9); } 50%, 100% { color: #c4b5fd; background: transparent; } }
@keyframes sf-lm-mode-game-dk { 0%, 48% { color: #c4b5fd; background: transparent; } 50%, 98% { color: #fff; background: linear-gradient(135deg, #8b3dff, #6d28d9); } 100% { color: #c4b5fd; background: transparent; } }
:root[data-theme="dark"] .sf-lm-mode.is-chat { animation-name: sf-lm-mode-chat-dk; }
:root[data-theme="dark"] .sf-lm-mode.is-game { animation-name: sf-lm-mode-game-dk; }
:root[data-theme="dark"] .sf-lm-chip small { color: #9d97c4; }
@keyframes sf-lm-on-a-dk { 0%, 12%, 21%, 100% { border-color: transparent; background: transparent; } 13%, 20% { border-color: var(--c); background: color-mix(in srgb, var(--c) 18%, #14111f); } }
@keyframes sf-lm-on-b-dk { 0%, 20%, 29%, 100% { border-color: transparent; background: transparent; } 21%, 28% { border-color: var(--c); background: color-mix(in srgb, var(--c) 18%, #14111f); } }
@keyframes sf-lm-on-c-dk { 0%, 28%, 47%, 100% { border-color: transparent; background: transparent; } 29%, 46% { border-color: var(--c); background: color-mix(in srgb, var(--c) 18%, #14111f); } }
:root[data-theme="dark"] .sf-lm-chip.sf-lm-c-strategy { animation-name: sf-lm-on-a-dk; }
:root[data-theme="dark"] .sf-lm-chip.sf-lm-c-designer { animation-name: sf-lm-on-b-dk; }
:root[data-theme="dark"] .sf-lm-chip.sf-lm-c-code { animation-name: sf-lm-on-c-dk; }
:root[data-theme="dark"] .sf-lm-msg { background: #1a1630; border-color: #2c2547; }
:root[data-theme="dark"] .sf-lm-msg > i { background: rgba(236, 232, 255, .22); }
:root[data-theme="dark"] .sf-lm-msg.is-user { background: linear-gradient(135deg, #8b3dff, #6d28d9); }
:root[data-theme="dark"] .sf-lm-msg.is-user > i { background: rgba(255, 255, 255, .6); }
:root[data-theme="dark"] .sf-lm-say .sf-lm-msg { background: color-mix(in srgb, var(--c) 12%, #15121f); border-color: color-mix(in srgb, var(--c) 40%, #15121f); }
:root[data-theme="dark"] .sf-lm-layout { background: #241f3a; }
:root[data-theme="dark"] .sf-lm-composer span, :root[data-theme="dark"] .sf-lm-dock span { background: #1a1630; border-color: #2c2547; color: #a78bfa; }
:root[data-theme="dark"] .sf-lm-composer em, :root[data-theme="dark"] .sf-lm-dock em { background: rgba(236, 232, 255, .16); }
:root[data-theme="dark"] .sf-lm-preview { border-color: #2c2547; box-shadow: 0 .6em 1.6em rgba(0, 0, 0, .5); }
:root[data-theme="dark"] .sf-lm-game { background: radial-gradient(circle at 6% 20%, #1f3a26 0 2.2em, transparent 2.3em), radial-gradient(circle at 96% 30%, #1f3a26 0 2.4em, transparent 2.5em), radial-gradient(circle at 92% 92%, #1f3a26 0 2em, transparent 2.1em), radial-gradient(circle at 4% 88%, #1f3a26 0 2.3em, transparent 2.4em), #2b4530; }
:root[data-theme="dark"] .sf-lm-office { background: #4b3f73; }
:root[data-theme="dark"] .sf-lm-room, :root[data-theme="dark"] .sf-lm-meeting, :root[data-theme="dark"] .sf-lm-hall { background: radial-gradient(circle, rgba(20, 14, 40, .45) .09em, transparent .11em) 0 0 / 1.1em 1.1em, #6e5f9c; }
:root[data-theme="dark"] .sf-lm-dock { background: rgba(14, 11, 26, .6); }
:root[data-theme="dark"] .sf-lm-dock u { color: #c4b5fd; background: #1a1630; }

@media (max-width: 575.98px) {
    .sf-lm { font-size: 6.2px; }
    .sf-lm-project em, .sf-lm-mode b { display: none; }
    .sf-laptop-screen { border-width: 8px; border-bottom-width: 11px; }
}
/* Reduced motion: the two modes still take turns, but nothing slides, walks or blinks. */
@media (prefers-reduced-motion: reduce) {
    .sf-lm-scene { animation-timing-function: steps(1, end) !important; }
    .sf-lm-msgs > *, .sf-lm-site > *, .sf-lm-bubble, .sf-lm-chart i { animation: none !important; }
    .sf-lm-walker, .sf-lm-body, .sf-lm-desk i, .sf-lm-code i { animation: none !important; }
}

/* Home: Vibers vs. only an AI subscription (drag the divider sideways) */
.sf-cmp-side-title { display: flex; align-items: center; gap: .5rem; font-size: 1.05rem; font-weight: 800; margin-bottom: 1rem; }
.sf-cmp-side-title.is-good { color: #15803d; }
.sf-cmp-side-title.is-bad { color: #b91c1c; }
.sf-cmp-list li { display: flex; gap: .75rem; padding: .7rem 0; border-bottom: 1px solid rgba(124, 58, 237, .14); }
.sf-cmp-list li:last-child { border-bottom: 0; }
.sf-cmp-list li > i { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 1rem; }
.sf-cmp-list.is-good li > i { background: #dcfce7; color: #15803d; }
.sf-cmp-list.is-bad li > i { background: #fee2e2; color: #b91c1c; }
.sf-cmp-list b { display: block; font-size: .92rem; color: inherit; }
.sf-cmp-list span { display: block; font-size: .82rem; opacity: .72; line-height: 1.4; }

.sf-cmp { position: relative; height: 420px; border-radius: 22px; overflow: hidden; box-shadow: 0 24px 60px rgba(76, 29, 149, .22); user-select: none; touch-action: pan-y; }
.sf-cmp-pane { position: absolute; inset: 0; padding: 1.4rem; display: flex; flex-direction: column; gap: 1rem; }
.sf-cmp-pane.is-bad { background: linear-gradient(160deg, #2a1215 0%, #1a0d10 100%); color: #fecaca; }
.sf-cmp-pane.is-good { background: linear-gradient(160deg, #3b0764 0%, #1e1b4b 100%); color: #ede9fe; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.sf-cmp-pane.is-bad { align-items: flex-end; text-align: right; }
.sf-cmp-tag { display: inline-flex; align-items: center; gap: .4rem; font-weight: 800; font-size: .85rem; padding: .35rem .75rem; border-radius: 999px; width: max-content; }
.is-good > .sf-cmp-tag { background: rgba(34, 197, 94, .18); color: #86efac; }
.is-bad > .sf-cmp-tag { background: rgba(239, 68, 68, .18); color: #fca5a5; }
.sf-cmp-meter { width: min(100%, 300px); font-size: .78rem; }
.sf-cmp-meter span { opacity: .75; }
.sf-cmp-meter b { display: block; margin-top: .25rem; font-size: .9rem; }
.sf-cmp-bar { height: 10px; border-radius: 99px; background: rgba(255, 255, 255, .12); overflow: hidden; margin-top: .3rem; }
.sf-cmp-bar i { display: block; height: 100%; border-radius: 99px; }
.is-good .sf-cmp-bar i { background: linear-gradient(90deg, #22c55e, #a3e635); }
.is-bad .sf-cmp-bar i { background: linear-gradient(90deg, #f97316, #ef4444); animation: sf-cmp-burn 1.6s ease-in-out infinite alternate; }
@keyframes sf-cmp-burn { from { filter: brightness(1); } to { filter: brightness(1.35); } }
.sf-cmp-mock { width: min(100%, 300px); border-radius: 14px; padding: .9rem; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.sf-cmp-mock-line { height: 10px; border-radius: 6px; background: rgba(255, 255, 255, .14); margin: 0 0 .5rem auto; }
.sf-cmp-mock-box { font-size: .78rem; padding: .5rem .6rem; border-radius: 8px; border: 1px dashed rgba(252, 165, 165, .5); text-align: center; }
.sf-cmp-mock-hero { border-radius: 10px; padding: .9rem; background: linear-gradient(135deg, #7c3aed, #db2777); color: #fff; }
.sf-cmp-mock-hero b { display: block; font-size: 1.1rem; }
.sf-cmp-mock-hero span { display: block; width: 60%; height: 8px; border-radius: 6px; background: rgba(255, 255, 255, .5); margin-top: .4rem; }
.sf-cmp-mock-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; margin-top: .5rem; }
.sf-cmp-mock-cards i { height: 34px; border-radius: 8px; background: rgba(255, 255, 255, .14); }
.sf-cmp-facts { margin: auto 0 0; font-size: .85rem; display: grid; gap: .35rem; }
.sf-cmp-facts li { display: flex; align-items: center; gap: .45rem; }
.is-bad .sf-cmp-facts li { flex-direction: row-reverse; }
.is-good .sf-cmp-facts i { color: #86efac; }
.is-bad .sf-cmp-facts i { color: #fca5a5; }
.sf-cmp-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 4px; margin-left: -2px; background: #fff; box-shadow: 0 0 18px rgba(255, 255, 255, .6); pointer-events: none; }
.sf-cmp-handle span { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 46px; height: 46px; border-radius: 50%; background: #fff; color: #6d28d9; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(0, 0, 0, .3); font-size: .9rem; }
.sf-cmp-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; -webkit-appearance: none; appearance: none; }
.sf-cmp-range:focus-visible + .sf-cmp-handle, .sf-cmp:focus-within .sf-cmp-handle span { outline: 3px solid #a78bfa; }
.sf-cmp-hint { text-align: center; opacity: .7; font-size: .82rem; margin: .75rem 0 0; display: flex; gap: .4rem; justify-content: center; align-items: center; }

.sf-cmp-cta { margin-top: 2.5rem; display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; padding: 1.6rem 1.8rem; border-radius: 22px; color: #fff; background: linear-gradient(120deg, #b91c1c 0%, #7c3aed 60%, #4c1d95 100%); box-shadow: 0 20px 50px rgba(124, 58, 237, .3); }
.sf-cmp-cta h3 { font-size: 1.45rem; font-weight: 800; margin: 0 0 .25rem; }
.sf-cmp-cta p { opacity: .9; }
.sf-cmp-cta-icon { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; font-size: 1.7rem; background: rgba(255, 255, 255, .16); animation: sf-cmp-shake 2.4s ease-in-out infinite; }
@keyframes sf-cmp-shake { 0%, 80%, 100% { transform: rotate(0); } 85% { transform: rotate(-8deg); } 90% { transform: rotate(8deg); } 95% { transform: rotate(-4deg); } }
@media (max-width: 575.98px) { .sf-cmp { height: 460px; } .sf-cmp-pane { padding: 1rem; } .sf-cmp-cta { padding: 1.25rem; } .sf-cmp-cta .btn { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .is-bad .sf-cmp-bar i, .sf-cmp-cta-icon { animation: none; } }
.sf-cmp { --pos: 50%; }
.sf-cmp-head { max-width: 720px; }
.sf-cmp-bar i.is-96 { width: 96%; }
.sf-cmp-bar i.is-28 { width: 28%; }

/* Home: token savings (one section, platform style) */
.sf-tk2-steps { display: grid; gap: .9rem; margin: 1.25rem 0 1.5rem; }
.sf-tk2-steps li { display: flex; gap: .8rem; align-items: flex-start; }
.sf-tk2-ico { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(124, 58, 237, .1); color: #7c3aed; font-size: 1.1rem; }
.sf-tk2-steps b { display: block; font-size: .95rem; }
.sf-tk2-steps span:not(.sf-tk2-ico) { display: block; font-size: .85rem; opacity: .72; line-height: 1.45; }
.sf-tk2-card { border-radius: 22px; padding: 1.5rem; background: var(--sf-card, #fff); border: 1px solid rgba(124, 58, 237, .14); box-shadow: 0 24px 60px rgba(76, 29, 149, .12); }
.sf-tk2-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: .75rem; }
.sf-tk2-head b { font-size: 1rem; }
.sf-tk2-head b i { color: #7c3aed; }
.sf-tk2-head small { opacity: .6; }
.sf-tk2-row { display: grid; grid-template-columns: minmax(0, 2.2fr) 1.1fr .9fr .9fr; gap: .6rem; align-items: center; padding: .6rem .2rem; border-bottom: 1px solid rgba(124, 58, 237, .08); font-size: .88rem;
    opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .35s; }
.sf-tk2.is-in .sf-tk2-row { opacity: 1; transform: none; }
.sf-tk2-row:nth-of-type(3) { transition-delay: .1s; } .sf-tk2-row:nth-of-type(4) { transition-delay: .2s; } .sf-tk2-row:nth-of-type(5) { transition-delay: .3s; }
.sf-tk2-row:nth-of-type(6) { transition-delay: .4s; } .sf-tk2-row:nth-of-type(7) { transition-delay: .5s; }
.sf-tk2-row > span:nth-child(n+3) { text-align: right; white-space: nowrap; }
.sf-tk2-row.is-head { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; opacity: .55; }
.sf-tk2.is-in .sf-tk2-row.is-head { opacity: .55; }
.sf-tk2-row.is-total { border-bottom: 0; font-weight: 800; font-size: 1rem; }
.sf-tk2-old { opacity: .55; text-decoration: line-through; text-decoration-thickness: 1px; }
.sf-tk2-new { color: #16a34a; font-weight: 700; }
.sf-tk2-tier { font-style: normal; font-size: .72rem; font-weight: 700; padding: .2rem .55rem; border-radius: 999px; white-space: nowrap; }
.sf-tk2-tier.is-premium { background: rgba(124, 58, 237, .14); color: #6d28d9; }
.sf-tk2-tier.is-mid { background: rgba(14, 165, 233, .14); color: #0369a1; }
.sf-tk2-tier.is-basic { background: rgba(34, 197, 94, .14); color: #15803d; }
.sf-tk2-bars { display: grid; gap: .6rem; margin-top: 1rem; }
.sf-tk2-bars small { display: block; font-size: .75rem; opacity: .65; margin-bottom: .2rem; }
.sf-tk2-bar { height: 10px; border-radius: 99px; background: rgba(124, 58, 237, .08); overflow: hidden; }
.sf-tk2-bar i { display: block; height: 100%; width: 0; border-radius: 99px; transition: width 1.4s ease .3s; }
.sf-tk2-bar i.is-all { background: linear-gradient(90deg, #f97316, #ef4444); }
.sf-tk2-bar i.is-team { background: linear-gradient(90deg, #7c3aed, #22c55e); }
.sf-tk2.is-in .sf-tk2-bar i.is-all { width: 100%; }
.sf-tk2.is-in .sf-tk2-bar i.is-team { width: 56%; }
.sf-tk2-save { margin-top: 1rem; padding: .7rem .9rem; border-radius: 14px; background: rgba(34, 197, 94, .1); color: #15803d; font-weight: 700; font-size: .9rem; }
.sf-tk2-foot { font-size: .72rem; opacity: .6; margin: .75rem .25rem 0; }
[data-theme="dark"] .sf-tk2-tier.is-premium, [data-bs-theme="dark"] .sf-tk2-tier.is-premium { color: #c4b5fd; }
[data-theme="dark"] .sf-tk2-tier.is-mid, [data-bs-theme="dark"] .sf-tk2-tier.is-mid { color: #7dd3fc; }
[data-theme="dark"] .sf-tk2-tier.is-basic, [data-bs-theme="dark"] .sf-tk2-tier.is-basic, [data-bs-theme="dark"] .sf-tk2-save { color: #86efac; }
@media (max-width: 575.98px) {
    .sf-tk2-card { padding: 1rem; }
    .sf-tk2-row { grid-template-columns: minmax(0, 1.6fr) .9fr .9fr; font-size: .8rem; }
    .sf-tk2-row > span:nth-child(2) { display: none; }
}
@media (prefers-reduced-motion: reduce) { .sf-tk2 * { transition: none !important; } }
