/* Mobile-first refinements shared by all Spygram screens. */
:root { --spygram-radius: 24px; --spygram-ease: cubic-bezier(.2,.8,.2,1); }
button, summary { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.spygram-lockup { display: inline-flex; align-items: center; justify-content: center; gap: calc(8px * var(--spy-logo-scale,1)); flex: none; }
.spygram-lockup > img { display: block; width: calc(32px * var(--spy-logo-scale,1)); height: calc(32px * var(--spy-logo-scale,1)); flex: none; }
.spygram-wordmark { color: #f8faf9; font: 800 calc(32px * var(--spy-text-scale,1) * var(--spy-logo-scale,1))/1 Inter,system-ui,sans-serif; letter-spacing: calc(-1.35px * var(--spy-logo-scale,1)); }
.spygram-wordmark > span { color: #f97316; text-shadow: 0 0 14px rgb(249 115 22 / 12%); }
.brand { height: 48px; }
.cta-brand { display: flex; align-items: center; justify-content: center; width: auto; height: 64px; }
.loading-brand { display: flex; align-items: center; justify-content: center; height: 64px; }
.landing, .landing.is-welcome { min-height: 100svh; align-items: center; padding: max(24px,env(safe-area-inset-top)) 16px max(24px,env(safe-area-inset-bottom)); }
.landing-content { width: 420px; max-width: 100%; }
.search-card, .is-welcome .search-card { width: 100%; min-height: 0; padding: 22px 20px 24px; border-radius: 26px; background: linear-gradient(155deg,rgb(15 17 17 / 96%),rgb(5 7 7 / 96%)); border-color: #282c2b; box-shadow: 0 22px 60px rgb(0 0 0 / 38%),0 0 36px rgb(249 115 22 / 3%),inset 0 1px 0 rgb(255 255 255 / 4%); }
h1 { margin-top: 18px; font-size: calc(clamp(27px,7.6vw,37.8px) * var(--spy-text-scale,1)); line-height: 1.22; letter-spacing: -.85px; }
#page-title strong { margin-inline: .045em; }
.confirmation-prompt strong { margin-left: .15em; }
.profile-dialog[open] #confirmation-title { animation: confirmation-copy-in calc(280ms * var(--spy-effect-duration,1)) var(--spygram-ease) both; }
.profile-dialog[open] .confirmation-prompt { animation: confirmation-copy-in calc(320ms * var(--spy-effect-duration,1)) var(--spygram-ease) calc(65ms * var(--spy-effect-duration,1)) both; }
.profile-dialog[open] .profile-details { animation: confirmation-copy-in calc(320ms * var(--spy-effect-duration,1)) var(--spygram-ease) calc(100ms * var(--spy-effect-duration,1)) both; }
@keyframes confirmation-copy-in { from { opacity: .3; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.page-loading { position: fixed; top: 0; right: 0; left: 0; z-index: 120; pointer-events: none; }
.page-loading-track { height: 3px; overflow: hidden; background: rgb(249 115 22 / 8%); }
.page-loading-track > span { display: block; height: 100%; transform-origin: left; background: linear-gradient(90deg,#c2410c,#f97316,#fdba74); box-shadow: 0 0 9px rgb(249 115 22 / 25%); }
.page-loading[data-mode="lookup"] .page-loading-track > span { width: 42%; animation: page-loading-run calc(1.1s * var(--spy-effect-duration,1)) ease-in-out infinite; }
.page-loading-chip { display: flex; align-items: center; justify-content: center; gap: 8px; width: max-content; max-width: calc(100% - 32px); margin: max(14px,env(safe-area-inset-top)) auto 0; padding: 9px 14px; border: 1px solid #353029; border-radius: 22px; background: #111615; color: #d6dbd8; box-shadow: 0 6px 25px rgb(0 0 0 / 25%); font-size: calc(12px * var(--spy-text-scale,1)); line-height: calc(18px * var(--spy-text-scale,1)); }
.page-loading[data-mode="sequence"] .page-loading-chip { display: none; }
.page-loading-spinner { width: 13px; height: 13px; flex: none; border: 2px solid rgb(249 115 22 / 22%); border-top-color: #f97316; border-radius: 50%; animation: loading-spin calc(800ms * var(--spy-effect-duration,1)) linear infinite; }
@keyframes page-loading-run { from { transform: translateX(-105%); } to { transform: translateX(345%); } }
.description { margin-top: 14px; font-size: calc(16px * var(--spy-text-scale,1)); line-height: calc(22px * var(--spy-text-scale,1)); }
.typewriter-pending { visibility: hidden; }
#page-title > .typewriter-visual > span { display: block; }
.typewriter-char { position: relative; visibility: hidden; opacity: 0; }
#page-title .typewriter-visual strong { background: none; -webkit-text-fill-color: currentColor; }
#page-title .typewriter-visual strong .typewriter-char { background: linear-gradient(100deg,var(--orange-dark),var(--orange)); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.typewriter-char.is-written { visibility: visible; opacity: 1; }
.typewriter-char.is-caret::after { position: absolute; top: .12em; right: -2px; width: 2px; height: .86em; content: ''; background: var(--orange-light); }
.welcome-controls,.access-counter,.username-form { transition: opacity calc(220ms * var(--spy-effect-duration,1)) ease,transform calc(220ms * var(--spy-effect-duration,1)) var(--spygram-ease); }
[data-reveal-pending="true"] { visibility: hidden; opacity: 0; transform: translateY(6px); pointer-events: none; }
.welcome-controls[data-reveal-pending="true"] .welcome-button::after { animation: none; }
#access-count { display: inline-block; min-width: 66px; text-align: right; }
.primary-button { position: relative; isolation: isolate; overflow: hidden; min-height: 54px; border-radius: 23px; font-size: calc(16px * var(--spy-text-scale,1)); letter-spacing: -.15px; box-shadow: 0 8px 25px rgb(194 65 12 / 24%); transition: transform calc(120ms * var(--spy-effect-duration,1)) var(--spygram-ease),box-shadow calc(160ms * var(--spy-effect-duration,1)) ease,filter calc(160ms * var(--spy-effect-duration,1)) ease; }
.primary-button.welcome-button { margin-top: 26px; min-height: 54px; }
.primary-button:hover { transform: none; filter: none; }
.primary-button:not(:disabled):active { transform: scale(.975); filter: brightness(1.06); box-shadow: 0 3px 12px rgb(194 65 12 / 22%); }
.welcome-button::after { position: absolute; inset: -30% -60%; z-index: -1; content: ''; transform: translateX(-100%) rotate(-15deg); background: linear-gradient(90deg,transparent 40%,rgb(255 255 255 / 17%) 50%,transparent 60%); pointer-events: none; animation: spygram-sheen calc(850ms * var(--spy-effect-duration,1)) var(--spygram-ease) calc(320ms * var(--spy-effect-duration,1)) 1 both; }
@keyframes spygram-sheen { to { transform: translateX(100%) rotate(-15deg); } }
.trust-badges { margin-top: 20px; gap: clamp(10px,3.5vw,22px); }
.trust-badges li { font-size: calc(10px * var(--spy-text-scale,1)); gap: 5px; }
.trust-badges svg { width: 12px; height: 12px; }
.access-counter { margin-top: 14px; }
.access-counter p { font-size: calc(12px * var(--spy-text-scale,1)); line-height: calc(18px * var(--spy-text-scale,1)); }
.access-counter small { font-size: calc(9px * var(--spy-text-scale,1)); line-height: calc(13px * var(--spy-text-scale,1)); }
.username-form { margin-top: 24px; }
.input-wrap { height: 56px; border-color: #242b2a; background: #101515; border-radius: 24px; }
input { font-size: calc(16px * var(--spy-text-scale,1)); }
input::placeholder { color: #858e97; }
.input-wrap:focus-within { border-color: #f97316; box-shadow: 0 0 0 3px rgb(249 115 22 / 10%); }
.username-form .primary-button { margin-top: 14px; }
.username-form[aria-busy="true"] .primary-button::before { width: 15px; height: 15px; flex: none; content: ''; border: 2px solid rgb(255 255 255 / 25%); border-top-color: #fff; border-right-color: #fff; border-radius: 50%; animation: loading-spin calc(850ms * var(--spy-effect-duration,1)) linear infinite; }
.primary-button:disabled { opacity: .82; }
.lookup-status { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 12px 0 0; color: #a8b0b6; font-size: calc(12px * var(--spy-text-scale,1)); line-height: calc(18px * var(--spy-text-scale,1)); }
.lookup-status::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--orange); }
.profile-dialog { width: 450px; max-width: calc(100vw - 24px); padding: 22px 18px 18px; border-color: #2b302e; box-shadow: 0 25px 90px rgb(0 0 0 / 55%),0 0 28px rgb(249 115 22 / 4%); }
.profile-dialog::backdrop { background: rgb(0 0 0 / 72%); }
.profile-dialog h2 { font-size: calc(22px * var(--spy-text-scale,1)); }
.confirmation-actions { gap: 10px; margin-top: 17px; }
.secondary-button,.confirmation-actions .primary-button { min-height: 50px; border-radius: 17px; }
.profile-warning { margin-top: 18px; border-color: #8f352c; color: #ff7868; background: linear-gradient(115deg,rgb(122 34 29 / 34%),rgb(100 31 23 / 25%)); font-size: calc(11px * var(--spy-text-scale,1)); line-height: calc(17px * var(--spy-text-scale,1)); }
.loading-screen { display: flex; align-items: center; justify-content: center; padding: max(24px,env(safe-area-inset-top)) 20px max(24px,env(safe-area-inset-bottom)); }
.instagram-wordmark { width: 165px; height: 52px; }
.simulation-label { color: #929ca3; font-size: calc(10px * var(--spy-text-scale,1)); letter-spacing: .25px; }
.loading-fields { margin-top: 24px; gap: 14px; }
.visual-field { min-height: 46px; border-color: #354153; border-radius: 4px; }
.code-field { min-height: 42px; }
.loading-stage { min-height: 66px; margin-top: 20px; padding: 12px; padding-right: 45px; border-color: #263344; border-radius: 9px; }
.loading-stage h2 { font-size: calc(14px * var(--spy-text-scale,1)); line-height: calc(20px * var(--spy-text-scale,1)); }
.loading-stage p { font-size: calc(11px * var(--spy-text-scale,1)); line-height: calc(16px * var(--spy-text-scale,1)); }
.stage-count { position: absolute; right: 12px; top: 16px; color: #858e91; font-size: calc(10px * var(--spy-text-scale,1)); font-variant-numeric: tabular-nums; }
.visual-login-button { min-height: 44px; border: 0; border-radius: 4px; background: #0095f6; box-shadow: none; font-size: calc(14px * var(--spy-text-scale,1)); cursor: default; }
.visual-login-button:not(:disabled):active { transform: scale(.98); }
[data-stage="loading"] .stage-spinner { border-color: rgb(0 149 246 / 20%); border-top-color: #0095f6; border-right-color: #0095f6; }
[data-stage="loading"] .stage-progress > span { background: #0095f6; }
[data-complete="true"] [data-stage="loading"] .stage-indicator { background: #0095f6; }
.visual-reset,.visual-facebook,.visual-signup span { color: #238bff; }
.login-decoration { font-size: calc(13px * var(--spy-text-scale,1)); }
.visual-divider { margin-top: 20px; }
.visual-facebook { margin-top: 20px; }
.visual-signup { margin-top: 24px; padding-top: 16px; }
.loading-back { min-height: 44px; margin-top: 8px; padding: 10px 14px; font-size: calc(12px * var(--spy-text-scale,1)); }
.simulation-toast { top: max(16px,env(safe-area-inset-top)); min-height: 46px; border: 1px solid rgb(118 225 164 / 15%); border-radius: 13px; background: #14773c; font-size: calc(13px * var(--spy-text-scale,1)); animation-duration: calc(150ms * var(--spy-effect-duration,1)); }
.cta-demo-banner { min-height: 29px; padding: 5px 12px; gap: 5px 8px; font-size: calc(10px * var(--spy-text-scale,1)); background: #0b0e0f; }
.cta-demo-banner > span:last-child { flex-basis: auto; display: inline; }
.cta-header { padding-top: 56px; }
.cta-title { margin-top: 21px; }
.cta-screen { padding-bottom: calc(136px + env(safe-area-inset-bottom)); }
.cta-card { box-shadow: inset 0 1px 0 rgb(255 255 255 / 2%),0 10px 30px rgb(0 0 0 / 10%); }
.cta-profile { margin-top: 28px; }
.cta-profile small { color: #818d95; }
.cta-complete { margin-top: 23px; border-color: rgb(249 115 22 / 24%); background: linear-gradient(135deg,rgb(194 65 12 / 18%),rgb(249 115 22 / 5%)); }
.cta-feature { padding-top: 22px; }
.cta-feature > p { color: #abb5ba; margin-bottom: 14px; }
.cta-map-info button { min-height: 44px; }
.cta-story { border-color: #333a36; }
.cta-story > span:last-child { color: #d8dfda; }
.cta-dm { margin-top: 12px; }
.cta-sale-button { background: linear-gradient(110deg,var(--orange-dark),var(--orange)); }
.cta-sale-button strong { letter-spacing: -.3px; }
.cta-benefit-ticker > div { animation-duration: calc(30s * var(--spy-effect-duration,1)); }
.cta-review-dots { gap: 2px; margin-top: 8px; }
.cta-review-dot { position: relative; width: 44px; height: 44px; border-radius: 10px; background: transparent; }
.cta-review-dot::after { content: ''; position: absolute; top: 19px; left: 18px; width: 8px; height: 6px; border-radius: 6px; background: #444e48; transition: width calc(150ms * var(--spy-effect-duration,1)) ease,left calc(150ms * var(--spy-effect-duration,1)) ease,background calc(150ms * var(--spy-effect-duration,1)) ease; }
.cta-review-dot.is-active { width: 44px; background: transparent; }
.cta-review-dot.is-active::after { left: 10px; width: 24px; background: var(--orange); }
.cta-review-dot:focus-visible { outline-offset: -3px; }
.cta-review { animation: spygram-review-in calc(180ms * var(--spy-effect-duration,1)) ease-out; }
@keyframes spygram-review-in { from { opacity: .4; transform: translateX(5px); } to { opacity: 1; transform: translateX(0); } }
.cta-review-disclaimer { margin-bottom: 18px; }
.cta-faq summary { min-height: 56px; display: flex; align-items: center; }
.cta-faq details { transition: border-color calc(140ms * var(--spy-effect-duration,1)) ease; }
.cta-faq details[open] { border-color: rgb(249 115 22 / 40%); }
.cta-sticky { min-height: 84px; padding: 12px 14px max(12px,env(safe-area-inset-bottom)); gap: 12px; border-color: #29312c; background: #141a18; }
.cta-sticky strong { font-size: calc(12px * var(--spy-text-scale,1)); line-height: calc(18px * var(--spy-text-scale,1)); }
.cta-sticky p { font-size: calc(10px * var(--spy-text-scale,1)); line-height: calc(16px * var(--spy-text-scale,1)); }
.cta-sticky button { min-width: 104px; min-height: 52px; padding: 8px 12px; border-radius: 13px; font-size: calc(11px * var(--spy-text-scale,1)); line-height: calc(18px * var(--spy-text-scale,1)); }
.cta-return { min-height: 46px; padding: 12px 20px; border-radius: 12px; }
@media(min-width:768px) {
 .landing,.landing.is-welcome { padding: 24px; }
 .search-card { min-height: 475px; padding: 23px 23px 30px; border-radius: 28px; }
 .is-welcome .search-card { min-height: 482px; }
 .brand { height: 65px; }
 h1 { margin-top: 25px; font-size: calc(37.8px * var(--spy-text-scale,1)); line-height: 1.3; }
 .description { margin-top: 12px; font-size: calc(18px * var(--spy-text-scale,1)); line-height: calc(23.4px * var(--spy-text-scale,1)); }
 .primary-button.welcome-button { margin-top: 42px; min-height: 56px; }
 .trust-badges { margin-top: 25px; gap: 23px; }
 .trust-badges li { font-size: calc(11px * var(--spy-text-scale,1)); gap: 6px; }
 .access-counter p { font-size: calc(14px * var(--spy-text-scale,1)); line-height: calc(21px * var(--spy-text-scale,1)); }
 .access-counter small { font-size: calc(10px * var(--spy-text-scale,1)); }
 .loading-screen { padding: 24px; }
 .instagram-wordmark { width: 180px; height: 64px; }
 .cta-header { padding-top: 66px; }
 .cta-title { font-size: calc(34px * var(--spy-text-scale,1)); line-height: 1.24; margin-top: 27px; }
 .cta-profile { margin-top: 36px; }
 .cta-sticky { padding: 16px 22px; min-height: 90px; }
 .cta-sticky strong { font-size: calc(14px * var(--spy-text-scale,1)); }
 .cta-sticky p { font-size: calc(12px * var(--spy-text-scale,1)); }
 .cta-sticky button { min-width: 137px; min-height: 58px; font-size: calc(13px * var(--spy-text-scale,1)); }
}
@media(max-height:680px) {
 .loading-screen { padding-top: 16px; padding-bottom: 16px; }
 .instagram-wordmark { width: 150px; height: 44px; }
 .loading-fields { margin-top: 18px; gap: 12px; }
 .loading-stage { margin-top: 16px; }
 .visual-reset { margin-top: 14px; }
 .visual-divider { margin-top: 16px; }
 .visual-facebook { margin-top: 18px; }
 .visual-signup { margin-top: 18px; padding-top: 16px; }
 .loading-back { min-height: 40px; margin-top: 6px; }
}
@media(max-width:350px) {
 .landing,.landing.is-welcome { padding-left: 12px; padding-right: 12px; }
 .search-card,.is-welcome .search-card { padding-left: 18px; padding-right: 18px; }
 .trust-badges li { font-size: calc(9px * var(--spy-text-scale,1)); }
 .cta-demo-banner { font-size: calc(9px * var(--spy-text-scale,1)); }
 .cta-demo-banner > span:last-child { flex-basis: 100%; text-align: center; }
 .cta-title { font-size: calc(25px * var(--spy-text-scale,1)); line-height: calc(33px * var(--spy-text-scale,1)); }
 .loading-stage h2 { font-size: calc(12px * var(--spy-text-scale,1)); }
 .loading-stage p { font-size: calc(10px * var(--spy-text-scale,1)); }
 .cta-sticky strong { font-size: calc(11px * var(--spy-text-scale,1)); }
 .cta-sticky button { min-width: 98px; }
}
@media(hover:hover) and (pointer:fine) {
 .primary-button:not(:disabled):hover { transform: translateY(-2px); filter: brightness(1.07); box-shadow: 0 10px 30px rgb(249 115 22 / 24%); }
 .cta-review-dot:hover::after { background: var(--orange-light); }
}
@media(prefers-reduced-motion:reduce) {
 *,*::before,*::after { animation:none!important; transition:none!important; scroll-behavior:auto!important; }
}

/* Keep the avatar dimensions reserved while the photo is fetched. */
.profile-avatar-frame{position:relative;display:block;width:82px;height:82px;flex:none;border-radius:50%;overflow:hidden;background:#191d1e}
.profile-avatar-frame>.profile-avatar{display:block;width:100%;height:100%;opacity:1}
.profile-avatar-loading{display:none;position:absolute;inset:0;place-items:center;background:radial-gradient(circle,#241b15,#121817)}
.profile-avatar-loading::after{content:'';width:26px;height:26px;border:2px solid rgb(249 115 22 / 18%);border-top-color:#fb923c;border-right-color:#f97316;border-radius:50%;animation:loading-spin calc(700ms * var(--spy-effect-duration,1)) linear infinite}
.profile-avatar-frame[data-state=loading]>.profile-avatar{opacity:0}
.profile-avatar-frame[data-state=loading]>.profile-avatar-loading{display:grid}
.profile-avatar-frame[data-state=empty]>.profile-avatar{opacity:0}
@media(max-width:480px){.profile-avatar-frame{width:68px;height:68px}}
@media(prefers-reduced-motion:reduce){.profile-avatar-loading::after{animation:none}}
