/* ==========================================================================
   FirstLook — auth (login/signup/setup), connect, get-extension, 404
   ========================================================================== */

/* ---------- Split auth layout ---------- */
.auth { display: grid; grid-template-columns: minmax(440px, 46%) minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }
.auth__brand { position: relative; overflow: hidden; background: var(--fl-gradient); color: #fff; isolation: isolate; }
.auth__brand::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 50% at 85% 10%, rgba(255, 255, 255, .16), transparent 70%), radial-gradient(60% 60% at 0% 100%, rgba(0, 0, 0, .18), transparent 70%); }
.auth__brand-bg { position: absolute; right: -210px; bottom: -230px; z-index: -1; pointer-events: none; animation: slow-spin 120s linear infinite; }
.auth__brand-bg svg { width: 620px; height: 620px; }
@keyframes slow-spin { to { transform: rotate(360deg); } }
.auth__brand-in { position: relative; height: 100%; min-height: 100vh; display: flex; flex-direction: column; gap: 40px; padding: 44px clamp(32px, 4.5vw, 64px) 36px; }
.auth__lockup { display: inline-flex; align-items: center; gap: 15px; color: #fff; align-self: flex-start; border-radius: 12px; }
.auth__lockup svg { filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .18)); transition: transform var(--fl-slow) var(--fl-ease); }
.auth__lockup:hover svg { transform: rotate(-16deg); }
.auth__lockup-word { font-size: 31px; font-weight: 800; line-height: .86; letter-spacing: .5px; }
.auth__pitch { display: grid; gap: 14px; margin-top: auto; }
.auth__tag { color: #fff; font-size: clamp(38px, 3.6vw, 54px); line-height: 1.02; letter-spacing: -1.8px; font-weight: 800; }
.auth__sub { font-size: 16px; line-height: 1.55; font-weight: 600; color: rgba(255, 255, 255, .86); max-width: 440px; }
.auth__bullets { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 14px; max-width: 460px; }
.auth__bullets li { display: flex; gap: 14px; align-items: flex-start; font-size: 13px; line-height: 1.5; font-weight: 600; color: rgba(255, 255, 255, .8); }
.auth__bullets li > span { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 12px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .18); color: #fff; }
.auth__bullets li > span svg { width: 18px; height: 18px; }
.auth__bullets b { display: block; font-size: 14px; font-weight: 800; color: #fff; }
.auth__art { position: relative; height: 230px; margin-bottom: auto; }
.auth__foot { font-size: 12.5px; font-weight: 700; color: rgba(255, 255, 255, .7); }

/* Product mock */
.mock { position: absolute; left: 0; top: 10px; width: min(400px, 92%); padding: 10px 10px 12px; border-radius: 20px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28); backdrop-filter: blur(10px); box-shadow: 0 30px 70px rgba(60, 8, 6, .35); transform: rotate(-2.5deg); animation: mock-in 1s var(--fl-ease) both; }
@keyframes mock-in { from { opacity: 0; transform: rotate(-2.5deg) translateY(20px); } }
.mock__video { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #fff; }
.mock__screen { position: absolute; inset: 0; padding: 14% 10% 0 34%; display: grid; align-content: start; gap: 8px; background: linear-gradient(180deg, #f7f8fa, #eef0f4); }
.mock__screen i { height: 8px; border-radius: 4px; background: #dfe3ea; }
.mock__screen i:nth-child(1) { width: 70%; background: rgba(var(--fl-red-rgb), .25); }
.mock__screen i:nth-child(2) { width: 92%; }
.mock__screen i:nth-child(3) { width: 80%; }
.mock__screen i.s { width: 55%; height: 34px; border-radius: 8px; margin-top: 4px; }
.mock__cam { position: absolute; left: 6%; bottom: 9%; width: 25%; aspect-ratio: 1; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 8px 20px rgba(0, 0, 0, .25); background: radial-gradient(circle at 50% 40%, #f2c4a0 0 18%, transparent 19%), radial-gradient(circle at 50% 102%, #344054 0 40%, transparent 41%), linear-gradient(160deg, #cfe0ff, #a9c3f5); }
.mock__play { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; display: grid; place-items: center; border-radius: 50%; background: var(--fl-red); color: #fff; box-shadow: 0 10px 24px rgba(var(--fl-red-rgb), .5), 0 0 0 7px rgba(255, 255, 255, .5); }
.mock__play svg { width: 18px; height: 18px; margin-left: 3px; }
.mock__float { position: absolute; bottom: 8%; font-size: 20px; opacity: 0; animation: mock-float 4.5s ease-out infinite; }
.mock__float.f1 { left: 62%; }
.mock__float.f2 { left: 74%; animation-delay: 1.5s; }
.mock__float.f3 { left: 84%; animation-delay: 3s; }
@keyframes mock-float { 0% { opacity: 0; transform: translateY(0) scale(.6); } 15% { opacity: 1; transform: translateY(-14px) scale(1.1); } 70% { opacity: 1; } 100% { opacity: 0; transform: translateY(-90px) scale(.9); } }
.mock__bar { position: relative; height: 5px; margin: 16px 6px 4px; border-radius: 999px; background: rgba(255, 255, 255, .3); }
.mock__bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: inherit; background: #fff; }
.mock__bar b { position: absolute; bottom: 8px; transform: translateX(-50%); font-size: 13px; font-weight: 400; }
.mock__bar em { position: absolute; top: 50%; width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, .3); }
.mock-cmt { position: absolute; right: 2%; bottom: -6px; display: flex; gap: 10px; align-items: flex-start; max-width: 250px; padding: 11px 13px; border-radius: 14px; background: #fff; color: var(--fl-text); font-size: 12px; line-height: 1.45; font-weight: 600; box-shadow: 0 20px 44px rgba(60, 8, 6, .3); animation: mock-in 1s .25s var(--fl-ease) both, float 5s ease-in-out 1.2s infinite; }
.mock-cmt b { color: var(--fl-ink); font-weight: 800; }
.mock-cmt__av { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: #175cd3; color: #fff; font-size: 10px; font-weight: 800; }
.mock-cmt__t { display: inline-block; padding: 1px 7px; border-radius: 999px; background: var(--fl-red-soft); color: var(--fl-red); font-size: 10.5px; font-weight: 800; }
@keyframes float { 50% { transform: translateY(-6px); } }

.auth__main { position: relative; display: grid; place-items: center; align-content: center; gap: 18px; padding: 48px 24px; background: radial-gradient(80% 60% at 100% 0%, rgba(var(--fl-red-rgb), .05), transparent 70%), var(--fl-bg); }
.auth__mobilebrand { display: none; }
.auth__card { width: min(452px, 100%); padding: 38px 36px 32px; border-radius: 24px; background: #fff; border: 1px solid var(--fl-line-3); box-shadow: 0 30px 70px rgba(15, 23, 42, .08), 0 2px 6px rgba(15, 23, 42, .04); animation: fl-pop .5s var(--fl-ease); }
.auth__head h1 { font-size: 28px; letter-spacing: -.8px; line-height: 1.15; }
.auth__head p { margin-top: 10px; font-size: 14px; line-height: 1.6; color: var(--fl-text-2); font-weight: 600; }
.auth__eyebrow { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 12px; margin-bottom: 14px; border-radius: 999px; background: var(--fl-red-soft); color: var(--fl-red); font-size: 11.5px; font-weight: 800; letter-spacing: .02em; }
.auth__eyebrow svg { width: 14px; height: 14px; }
.auth-form { display: grid; gap: 16px; margin-top: 26px; }
.auth-form.is-shake { animation: shake .42s var(--fl-ease); }
@keyframes shake { 15%, 55% { transform: translateX(-7px); } 35%, 75% { transform: translateX(6px); } 100% { transform: none; } }
.auth-form .fl-label { font-size: 10.5px; }
.fl-input--lg { height: 46px; font-size: 14px; border-radius: 12px; padding: 0 14px; }
.fl-pw .fl-input--lg { padding-right: 46px; }
.auth-submit { margin-top: 6px; height: 50px; font-size: 14.5px; }
.auth-submit svg { transition: transform var(--fl-med) var(--fl-ease); }
.auth-submit:hover svg { transform: translateX(3px); }
.auth-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.auth-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--fl-surface-2); border: 1px solid var(--fl-line-soft); font-size: 12.5px; line-height: 1.5; color: var(--fl-text-2); font-weight: 600; }
.auth-note svg { width: 17px; height: 17px; flex: none; color: var(--fl-red); margin-top: 1px; }
.auth-note b { color: var(--fl-ink); }
.auth__alt { margin-top: 22px; text-align: center; font-size: 13px; color: var(--fl-muted); font-weight: 600; }
.auth__alt a { color: var(--fl-red); font-weight: 800; }
.auth__alt a:hover { text-decoration: underline; }
.auth__alt--muted { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border-radius: 12px; background: var(--fl-surface-2); font-size: 12.5px; text-align: left; }
.auth__alt--muted svg { width: 16px; height: 16px; flex: none; }
.auth__legal { font-size: 11.5px; color: var(--fl-muted-2); font-weight: 700; }
.auth-err { margin-bottom: 2px; }

/* Password strength meter */
.pw-meter { display: flex; align-items: center; gap: 5px; margin-top: 2px; }
.pw-meter i { flex: 1; height: 4px; border-radius: 999px; background: var(--fl-line-3); transition: background var(--fl-med) ease; }
.pw-meter span { min-width: 58px; text-align: right; font-size: 11px; font-weight: 800; color: var(--fl-muted); }
.pw-meter[data-s="1"] i:nth-child(-n+1) { background: #f04438; }
.pw-meter[data-s="2"] i:nth-child(-n+2) { background: #f79009; }
.pw-meter[data-s="3"] i:nth-child(-n+3) { background: #66c61c; }
.pw-meter[data-s="4"] i:nth-child(-n+4) { background: #12b76a; }

@media (max-height: 860px) { .auth__art { display: none; } .auth__pitch { margin-bottom: auto; } }
@media (max-width: 980px) {
  .auth { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .auth__brand-in { min-height: 0; padding: 26px 22px 70px; gap: 18px; }
  .auth__lockup svg { width: 44px; height: 44px; }
  .auth__lockup-word { font-size: 22px; }
  .auth__pitch { margin: 0; gap: 6px; }
  .auth__tag { font-size: 32px; letter-spacing: -1px; }
  .auth__sub { font-size: 14px; }
  .auth__bullets, .auth__art, .auth__foot { display: none; }
  .auth__brand-bg { right: -160px; bottom: -300px; }
  .auth__brand-bg svg { width: 420px; height: 420px; }
  .auth__main { place-items: start center; align-content: start; padding: 0 14px 40px; background: var(--fl-bg); }
  .auth__card { margin-top: -48px; padding: 28px 22px 24px; border-radius: 22px; }
  .auth__head h1 { font-size: 24px; }
  .auth-row { grid-template-columns: 1fr; }
}

/* ---------- Connect page ---------- */
body.cx-page { background: var(--fl-bg); }
.cx { position: relative; min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; align-content: center; gap: 22px; padding: 40px 16px; overflow: hidden; }
.cx::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 46vh; background: var(--fl-gradient); z-index: -1; border-radius: 0 0 50% 50% / 0 0 60px 60px; }
.cx__logo { color: #fff; }
.cx__logo .fl-logo__word b, .cx__logo .fl-logo__word i { color: #fff; }
.cx__card { width: min(470px, 100%); padding: 34px 32px 30px; border-radius: 24px; background: #fff; box-shadow: 0 40px 90px rgba(15, 23, 42, .16); text-align: center; animation: fl-pop .45s var(--fl-ease); }
.cx__card h1 { font-size: 24px; letter-spacing: -.6px; line-height: 1.2; }
.cx__card p { margin-top: 10px; font-size: 14px; line-height: 1.6; color: var(--fl-text-2); font-weight: 600; }
.cx__card .auth-form { text-align: left; }
.cx__link { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 4px 0 22px; }
.cx__node { position: relative; display: grid; place-items: center; width: 62px; height: 62px; border-radius: 20px; background: var(--fl-surface-2); border: 1px solid var(--fl-line-3); color: var(--fl-text-2); box-shadow: var(--fl-shadow-xs); }
.cx__node svg { width: 26px; height: 26px; }
.cx__node--brand { background: #fff; }
.cx__dots { display: flex; gap: 6px; }
.cx__dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--fl-line); animation: cx-dot 1.2s ease-in-out infinite; }
.cx__dots i:nth-child(2) { animation-delay: .15s; }
.cx__dots i:nth-child(3) { animation-delay: .3s; }
@keyframes cx-dot { 0%, 100% { background: var(--fl-line); transform: scale(1); } 40% { background: var(--fl-red); transform: scale(1.35); } }
.cx__card.is-done .cx__dots i { animation: none; background: #12b76a; }
.cx__check { display: grid; place-items: center; width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 50%; background: var(--fl-success-bg); color: #12b76a; animation: check-pop .6s var(--fl-ease); }
.cx__check svg { width: 42px; height: 42px; stroke-width: 2.6; }
.cx__check path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .5s .2s var(--fl-ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes check-pop { 0% { transform: scale(.4); opacity: 0; } 60% { transform: scale(1.08); opacity: 1; } 100% { transform: none; } }
.cx__warn { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 22px; background: var(--fl-warning-bg); color: var(--fl-warning); }
.cx__warn svg { width: 32px; height: 32px; }
.cx__keys { display: inline-flex; align-items: center; gap: 4px; margin-top: 16px; padding: 10px 16px; border-radius: 14px; background: var(--fl-surface-2); border: 1px solid var(--fl-line-soft); font-size: 12.5px; font-weight: 700; color: var(--fl-text-2); }
.cx__keys .fl-kbd { height: 26px; min-width: 26px; font-size: 12px; }
.cx__actions { display: grid; gap: 10px; margin-top: 22px; }
.cx__fine { margin-top: 14px; font-size: 12px; color: var(--fl-muted); font-weight: 600; }
.cx__user { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--fl-surface-2); border: 1px solid var(--fl-line-soft); font-size: 12.5px; font-weight: 700; color: var(--fl-text-2); }
.cx__user .fl-avatar { width: 28px; height: 28px; font-size: 10.5px; }
.cx__spin { width: 34px; height: 34px; margin: 10px auto; border-width: 3px; }

/* ---------- Get extension ---------- */
body.gx-page { background: var(--fl-bg); }
.gtop { position: sticky; top: 0; z-index: 50; height: 62px; background: rgba(255, 255, 255, .86); backdrop-filter: blur(14px) saturate(1.5); border-bottom: 1px solid var(--fl-line-3); }
.gtop__in { height: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 10px; }
.gtop__grow { flex: 1; }
.gx { max-width: 1180px; margin: 0 auto; padding: 0 24px 80px; }
.gx-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: center; padding: 56px 0 48px; }
.gx-hero__eyebrow { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 13px; border-radius: 999px; background: var(--fl-red-soft); color: var(--fl-red); font-size: 12px; font-weight: 800; }
.gx-hero__eyebrow svg { width: 15px; height: 15px; }
.gx-hero h1 { margin-top: 16px; font-size: clamp(32px, 4vw, 50px); line-height: 1.04; letter-spacing: -1.6px; }
.gx-hero h1 em { font-style: normal; color: var(--fl-red); }
.gx-hero p { margin-top: 16px; font-size: 16px; line-height: 1.65; color: var(--fl-text-2); font-weight: 600; max-width: 520px; }
.gx-hero__cta { display: flex; align-items: center; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.gx-hero__meta { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 20px; font-size: 12.5px; font-weight: 700; color: var(--fl-muted); }
.gx-hero__meta span { display: inline-flex; align-items: center; gap: 6px; }
.gx-hero__meta svg { width: 15px; height: 15px; color: #12b76a; }
.gx-banner { display: flex; align-items: center; gap: 14px; margin-top: 26px; padding: 14px 16px; border-radius: 16px; background: var(--fl-success-bg); border: 1px solid var(--fl-success-line); color: var(--fl-success-text); font-size: 13px; font-weight: 700; animation: fl-pop .4s var(--fl-ease); }
.gx-banner__ic { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 12px; background: #fff; color: #12b76a; }
.gx-banner__ic svg { width: 18px; height: 18px; stroke-width: 2.8; }
.gx-banner b { color: #054f31; }
.gx-banner .fl-btn { margin-left: auto; }
.gx-warn { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: var(--fl-warning-bg); border: 1px solid var(--fl-warning-line); color: var(--fl-warning); font-size: 12.5px; font-weight: 700; line-height: 1.5; max-width: 520px; }
.gx-warn svg { width: 16px; height: 16px; flex: none; margin-top: 1px; }

/* Browser mock with popup */
.bmock { position: relative; border-radius: 18px; background: #fff; border: 1px solid var(--fl-line-2); box-shadow: 0 40px 90px rgba(15, 23, 42, .16); overflow: hidden; animation: fl-pop .7s var(--fl-ease); }
.bmock__bar { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; background: #f2f4f7; border-bottom: 1px solid var(--fl-line-3); }
.bmock__dots { display: flex; gap: 6px; }
.bmock__dots i { width: 10px; height: 10px; border-radius: 50%; background: #d0d5dd; }
.bmock__dots i:nth-child(1) { background: #f97066; } .bmock__dots i:nth-child(2) { background: #fdb022; } .bmock__dots i:nth-child(3) { background: #32d583; }
.bmock__url { flex: 1; height: 28px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 999px; background: #fff; font-size: 11.5px; font-weight: 600; color: var(--fl-muted); }
.bmock__url svg { width: 12px; height: 12px; }
.bmock__tools { display: flex; align-items: center; gap: 8px; }
.bmock__tool { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: var(--fl-text-2); }
.bmock__tool svg { width: 16px; height: 16px; }
.bmock__tool--fl { position: relative; background: var(--fl-red-soft); }
.bmock__tool--fl::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--fl-red); animation: ring-ping 1.8s var(--fl-ease) infinite; }
@keyframes ring-ping { 0% { transform: scale(.75); opacity: 1; } 100% { transform: scale(1.4); opacity: 0; } }
.bmock__page { position: relative; height: 330px; padding: 28px; background: linear-gradient(180deg, #fafbfc, #f2f4f7); }
.bmock__page > i { display: block; height: 12px; margin-bottom: 12px; border-radius: 6px; background: #e4e7ec; }
.bmock__page > i:nth-child(1) { width: 40%; height: 18px; background: #d0d5dd; }
.bmock__page > i:nth-child(2) { width: 62%; } .bmock__page > i:nth-child(3) { width: 54%; } .bmock__page > i:nth-child(4) { width: 30%; height: 80px; border-radius: 12px; margin-top: 18px; }
.bmock__pop { position: absolute; right: 14px; top: 8px; width: 272px; padding: 14px; border-radius: 16px; background: #fff; border: 1px solid var(--fl-line-3); box-shadow: 0 24px 50px rgba(15, 23, 42, .2); display: grid; gap: 10px; animation: fl-drop .6s .3s var(--fl-ease) both; }
.bmock__pophead { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; }
.bmock__back { display: grid; place-items: center; width: 20px; height: 20px; margin-left: -4px; border-radius: 6px; color: var(--fl-muted); }
.bmock__back svg { width: 15px; height: 15px; }
.bmock__seg { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--fl-surface-3); }
.bmock__seg span { flex: 1 1 auto; white-space: nowrap; padding: 0 8px; height: 24px; display: grid; place-items: center; border-radius: 999px; font-size: 10.5px; font-weight: 800; color: var(--fl-muted); }
.bmock__seg span.on { background: #fff; color: var(--fl-ink); box-shadow: 0 1px 3px rgba(16, 24, 40, .12); }
.bmock__row { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--fl-line-3); font-size: 11px; font-weight: 700; color: var(--fl-text-2); }
.bmock__row svg { width: 14px; height: 14px; color: var(--fl-muted); }
.bmock__row em { margin-left: auto; width: 26px; height: 6px; border-radius: 3px; background: linear-gradient(90deg, #12b76a 60%, var(--fl-line-3) 60%); }
.bmock__start { height: 38px; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; background: var(--fl-red); color: #fff; font-size: 12px; font-weight: 800; box-shadow: var(--fl-shadow-red); }
.bmock__start i { width: 10px; height: 10px; border-radius: 50%; background: #fff; }
.bmock__cam { position: absolute; left: 24px; bottom: 22px; width: 92px; height: 92px; border-radius: 50%; border: 4px solid #fff; box-shadow: 0 14px 30px rgba(15, 23, 42, .25); background: radial-gradient(circle at 50% 40%, #f2c4a0 0 18%, transparent 19%), radial-gradient(circle at 50% 102%, #d93025 0 40%, transparent 41%), linear-gradient(160deg, #fde9e7, #f8d4d0); animation: float 4s ease-in-out infinite; }

.gx-steps-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 16px 0 20px; flex-wrap: wrap; }
.gx-steps-h h2 { font-size: 24px; letter-spacing: -.6px; }
.gx-steps-h p { color: var(--fl-muted); font-size: 13.5px; font-weight: 600; margin-top: 4px; }
.gx-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: gx; }
.gstep { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 14px 14px 20px; border-radius: 20px; background: #fff; border: 1px solid var(--fl-line-3); box-shadow: var(--fl-shadow-xs); transition: transform var(--fl-med) var(--fl-ease), box-shadow var(--fl-med) ease; animation: card-in .5s var(--fl-ease) both; animation-delay: calc(var(--i) * 60ms); }
@keyframes card-in { from { opacity: 0; transform: translateY(12px); } }
.gstep:hover { transform: translateY(-3px); box-shadow: var(--fl-shadow-lift); }
.gstep__vis { position: relative; height: 150px; border-radius: 14px; background: linear-gradient(180deg, #f7f8fa, #eef0f4); border: 1px solid var(--fl-line-soft); overflow: hidden; display: grid; place-items: center; margin-bottom: 10px; }
.gstep__n { counter-increment: gx; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--fl-ink); color: #fff; font-size: 12px; font-weight: 800; margin: 0 4px; }
.gstep__n::before { content: counter(gx); }
.gstep h3 { display: flex; align-items: center; gap: 8px; font-size: 15px; letter-spacing: -.2px; padding: 0 2px; }
.gstep p { font-size: 13px; line-height: 1.55; color: var(--fl-text-2); font-weight: 600; padding: 0 6px; }
.gstep p code { font-family: var(--fl-mono); font-size: 12px; padding: 1px 6px; border-radius: 6px; background: var(--fl-surface-3); color: var(--fl-ink); }
.gstep--wide { grid-column: span 1; }
/* step visuals */
.v-zip { display: flex; align-items: center; gap: 16px; }
.v-zip__file, .v-zip__folder { display: grid; place-items: center; width: 66px; height: 78px; border-radius: 12px; background: #fff; border: 1px solid var(--fl-line-2); box-shadow: var(--fl-shadow-sm); color: var(--fl-text-2); }
.v-zip__file svg, .v-zip__folder svg { width: 30px; height: 30px; }
.v-zip__file { color: var(--fl-red); }
.v-zip__folder { width: 78px; color: #f79009; }
.v-zip__arrow { color: var(--fl-muted-2); animation: nudge 1.6s ease-in-out infinite; }
.v-zip__arrow svg { width: 22px; height: 22px; }
@keyframes nudge { 50% { transform: translateX(5px); } }
.v-url { width: 86%; display: grid; gap: 10px; }
.v-url__bar { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 6px 0 14px; border-radius: 999px; background: #fff; border: 1.5px solid rgba(var(--fl-red-rgb), .5); box-shadow: 0 0 0 4px rgba(var(--fl-red-rgb), .1); font-family: var(--fl-mono); font-size: 12.5px; font-weight: 600; color: var(--fl-ink); }
.v-url__bar span { flex: 1; overflow: hidden; white-space: nowrap; }
.v-url__bar span::after { content: '|'; animation: blink 1s steps(1) infinite; color: var(--fl-red); margin-left: 1px; }
@keyframes blink { 50% { opacity: 0; } }
.v-copy { height: 28px; padding: 0 11px; border: 0; border-radius: 999px; background: var(--fl-red-soft); color: var(--fl-red); font: 800 11px var(--fl-font); display: inline-flex; align-items: center; gap: 5px; }
.v-copy svg { width: 12px; height: 12px; }
.v-copy:hover { background: var(--fl-red-tint); }
.v-dev { width: 86%; display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-radius: 14px; background: #fff; border: 1px solid var(--fl-line-2); box-shadow: var(--fl-shadow-sm); font-size: 13px; font-weight: 800; color: var(--fl-ink); }
.v-toggle { position: relative; width: 40px; height: 22px; border-radius: 999px; background: var(--fl-line); animation: tog-bg 3s ease-in-out infinite; }
.v-toggle::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0, 0, 0, .2); animation: tog-knob 3s var(--fl-ease) infinite; }
@keyframes tog-bg { 0%, 25% { background: var(--fl-line); } 40%, 100% { background: #1a73e8; } }
@keyframes tog-knob { 0%, 25% { transform: none; } 40%, 100% { transform: translateX(18px); } }
.v-load { width: 88%; display: grid; gap: 10px; }
.v-load__btns { display: flex; gap: 6px; }
.v-load__btns span { height: 28px; padding: 0 9px; white-space: nowrap; display: grid; place-items: center; border-radius: 7px; border: 1px solid var(--fl-line-2); background: #fff; font-size: 10.5px; font-weight: 800; color: #1a73e8; }
.v-load__btns span.hl { border-color: #1a73e8; box-shadow: 0 0 0 3px rgba(26, 115, 232, .18); }
.v-load__pick { display: flex; align-items: center; gap: 9px; padding: 9px 12px; border-radius: 10px; background: #fff; border: 1px solid var(--fl-line-2); font-size: 12px; font-weight: 700; color: var(--fl-text); box-shadow: var(--fl-shadow-xs); }
.v-load__pick svg { width: 16px; height: 16px; color: #f79009; }
.v-load__pick b { margin-left: auto; font-size: 10.5px; color: #fff; background: #1a73e8; padding: 4px 9px; border-radius: 6px; }
.v-pin { width: 86%; display: grid; gap: 8px; justify-items: end; }
.v-pin__bar { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 10px; border-radius: 999px; background: #fff; border: 1px solid var(--fl-line-2); color: var(--fl-text-2); }
.v-pin__bar svg { width: 16px; height: 16px; }
.v-pin__menu { width: 100%; padding: 6px; border-radius: 12px; background: #fff; border: 1px solid var(--fl-line-2); box-shadow: var(--fl-shadow-sm); }
.v-pin__item { display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: 8px; font-size: 12px; font-weight: 800; background: var(--fl-surface-2); }
.v-pin__item .pin { margin-left: auto; color: #1a73e8; animation: pin-pulse 1.8s ease-in-out infinite; }
.v-pin__item .pin svg { width: 15px; height: 15px; }
@keyframes pin-pulse { 50% { transform: scale(1.25) rotate(-12deg); } }
.v-rec { display: grid; justify-items: center; gap: 12px; }
.v-rec__keys { display: flex; align-items: center; gap: 4px; }
.v-rec__keys .fl-kbd { height: 34px; min-width: 34px; padding: 0 10px; font-size: 13px; border-radius: 9px; }
.v-rec__pill { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 14px; border-radius: 999px; background: var(--fl-night-2); color: #fff; font-size: 12px; font-weight: 800; box-shadow: 0 10px 24px rgba(15, 23, 42, .25); font-variant-numeric: tabular-nums; }
.gx-final { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 28px; padding: 26px 28px; border-radius: 22px; background: var(--fl-night-2); color: #fff; flex-wrap: wrap; position: relative; overflow: hidden; }
.gx-final::after { content: ''; position: absolute; right: -60px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(var(--fl-red-rgb), .45), transparent 70%); }
.gx-final h3 { color: #fff; font-size: 19px; }
.gx-final p { color: rgba(255, 255, 255, .7); font-size: 13.5px; font-weight: 600; margin-top: 4px; }
.gx-final .fl-btn { position: relative; z-index: 1; }
@media (max-width: 960px) {
  .gx-hero { grid-template-columns: 1fr; gap: 32px; padding-top: 32px; }
  .gx-steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .gx, .gtop__in { padding-left: 16px; padding-right: 16px; }
  .gx-steps { grid-template-columns: 1fr; }
  .bmock__page { height: 280px; }
  .bmock__pop { width: 220px; }
  .gtop__in .fl-btn span.hide-sm { display: none; }
}

/* ---------- 404 ---------- */
body.nf-page { background: var(--fl-bg); }
.nf { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 32px 18px; text-align: center; }
.nf__in { display: grid; justify-items: center; gap: 14px; max-width: 600px; animation: fl-pop .5s var(--fl-ease); }
.nf__mark { position: relative; margin-bottom: 8px; }
.nf__mark .fl-mark__needle { transform-box: fill-box; transform-origin: 50% 50%; animation: lost 3.2s var(--fl-ease) infinite; }
@keyframes lost { 0% { transform: rotate(0); } 20% { transform: rotate(70deg); } 35% { transform: rotate(-40deg); } 55% { transform: rotate(160deg); } 70% { transform: rotate(120deg); } 100% { transform: rotate(360deg); } }
.nf__mark::after { content: ''; position: absolute; left: 50%; bottom: -16px; width: 90px; height: 12px; margin-left: -45px; border-radius: 50%; background: rgba(15, 23, 42, .1); filter: blur(4px); }
.nf__code { display: inline-flex; height: 28px; padding: 0 12px; align-items: center; border-radius: 999px; background: var(--fl-red-soft); color: var(--fl-red); font-size: 12px; font-weight: 800; letter-spacing: .06em; }
.nf h1 { font-size: clamp(28px, 4vw, 38px); letter-spacing: -1px; line-height: 1.1; }
.nf p { font-size: 15px; line-height: 1.6; color: var(--fl-text-2); font-weight: 600; }
.nf__actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 10px; }
