/* NVR Relax / Telegram landing — isolated mobile-first stylesheet.
   Reusable: change CSS custom property --tg-brand from the admin panel. */
.tg-landing-body{background:#070508;color:#fff}
.tg-land{position:relative;isolation:isolate;overflow:hidden;background:
 radial-gradient(ellipse 72% 34% at 50% 40%,rgba(140,24,99,.14),transparent 80%),
 linear-gradient(180deg,#0c0711 0%,#08070e 57%,#090710 100%);min-height:calc(100vh - 80px);padding:32px 16px 48px}
.tg-land:before{content:"";position:absolute;inset:-150px -20% auto;height:550px;background:radial-gradient(ellipse,rgba(227,53,153,.07),transparent 70%);pointer-events:none;z-index:-1}
.tg-hero{max-width:650px;margin:0 auto 4px;text-align:center;position:relative;z-index:1}
.tg-eyebrow{margin:0 0 18px;display:flex;justify-content:center;align-items:center;gap:9px;color:#f3b9da;font:700 10px/1.5 "Montserrat",system-ui,sans-serif;letter-spacing:.18em;text-transform:uppercase}
.tg-eyebrow-dot{width:6px;height:6px;border-radius:50%;background:var(--tg-brand,#e73599);box-shadow:0 0 12px var(--tg-brand,#e73599)}
.tg-hero h1{font:800 clamp(30px,7.6vw,54px)/1.10 "Montserrat",system-ui,sans-serif;letter-spacing:-.043em;color:#fff;margin:0 auto 15px;max-width:610px;text-wrap:balance}
.tg-subtitle{font:400 14px/1.75 "Manrope",system-ui,sans-serif;color:#cbbfcf;max-width:480px;margin:0 auto 22px}
.tg-main-button{display:inline-flex;align-items:center;justify-content:center;gap:13px;min-height:54px;min-width:min(330px,100%);border-radius:16px;padding:12px 20px;text-decoration:none!important;color:#fff!important;background:linear-gradient(135deg,#28a8e8 0%,#147ec7 100%);box-shadow:0 12px 32px rgba(20,143,212,.25),inset 0 1px 0 rgba(255,255,255,.27);font:800 14px/1.35 "Manrope",sans-serif;transition:transform .25s,box-shadow .25s}
.tg-main-button:hover{transform:translateY(-3px);box-shadow:0 15px 35px rgba(20,143,212,.38)}
.tg-main-button svg{width:23px;height:23px;flex:none}
.tg-button-arrow{font-size:17px;font-weight:400;opacity:.9}
.tg-hero-hint{font:500 11px/1.5 "Manrope",sans-serif;color:#94899e;margin:12px 0 0;display:flex;justify-content:center;align-items:center;gap:8px}
.tg-hint-pulse{width:5px;height:5px;background:#74c8ff;border-radius:100%;box-shadow:0 0 11px #56aefe}
.tg-demo{position:relative;width:min(100%,460px);margin:30px auto 0;display:flex;align-items:center;flex-direction:column;isolation:isolate}
.tg-stage-glow{pointer-events:none;position:absolute;top:120px;left:50%;transform:translateX(-50%);height:500px;width:150%;max-width:650px;background:radial-gradient(ellipse at center,rgba(198,36,128,.20),rgba(119,25,96,.06) 45%,transparent 73%);z-index:-1;filter:blur(6px)}
.tg-phone{position:relative;width:min(340px,88vw);filter:drop-shadow(0 30px 50px rgba(0,0,0,.56));animation:tg-phone-rise .65s both cubic-bezier(.16,.9,.3,1)}
.tg-hardware{position:relative;width:100%;aspect-ratio:350/728;background:linear-gradient(112deg,#4e4b53,#111015 12%,#45414a 50%,#111014 85%,#77727b);border-radius:55px;padding:8px;border:1px solid #746b78;box-shadow:inset 1px 0 1px rgba(255,255,255,.5),inset -1px 0 3px rgba(255,255,255,.28),0 0 0 2px #0b0b0d,0 0 0 3px #38313c}
.tg-hardware:before{content:"";position:absolute;z-index:3;inset:4px;border-radius:53px;border:1px solid rgba(255,255,255,.14);pointer-events:none}
.tg-side-button{position:absolute;left:-4px;width:3px;border-radius:4px 0 0 4px;background:linear-gradient(90deg,#7b737e,#29252d);z-index:-1}
.tg-side-button-1{top:16%;height:4%}.tg-side-button-2{top:25%;height:8%}.tg-side-button-3{top:35%;height:8%}
.tg-phone-screen{height:100%;width:100%;border-radius:47px;position:relative;overflow:hidden;background:#17212b;display:flex;flex-direction:column;border:1px solid #09090c}
.tg-statusbar{height:44px;min-height:44px;padding:13px 22px 3px;position:relative;display:flex;align-items:flex-start;justify-content:space-between;background:#202b36;color:#f5f6f9;font:700 13px/1 system-ui;z-index:4}
.tg-dynamic-island{position:absolute;background:#040407;width:91px;height:25px;border-radius:18px;top:6px;left:50%;transform:translateX(-50%);box-shadow:inset 0 0 0 1px rgba(255,255,255,.05)}
.tg-signal{height:15px;width:38px;position:absolute;right:31px;top:10px}.tg-signal svg{width:100%;height:100%}
.tg-battery{width:17px;height:8px;border:1.25px solid #fff;border-radius:2px;position:absolute;right:11px;top:13px}.tg-battery:before{content:"";position:absolute;inset:1.5px;background:#fff;border-radius:1px}.tg-battery:after{content:"";position:absolute;right:-4px;top:1px;width:2px;height:4px;border-radius:0 2px 2px 0;background:#fff}
.tg-channel-head{height:62px;min-height:62px;background:rgba(32,44,57,.98);display:flex;align-items:center;gap:8px;padding:5px 11px;border-bottom:1px solid #293848;z-index:3;box-shadow:0 1px 8px rgba(0,0,0,.14)}
.tg-back{color:#67b9f5;font-size:35px;line-height:1;font-weight:300;transform:translateY(-2px);width:19px;text-align:center}
.tg-channel-avatar{width:40px;height:40px;border-radius:50%;object-fit:cover;background:#222530;border:1px solid rgba(255,255,255,.12);flex:none}
.tg-channel-title{min-width:0;flex:1;display:flex;flex-direction:column;gap:3px}
.tg-channel-title strong{font:700 13px/1.1 system-ui;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#f5f6f8}
.tg-channel-title small{font:400 10px/1.2 system-ui;color:#94a9bc;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tg-head-more{font-size:24px;color:#7892ab;padding:0 5px}
.tg-chat-wall{position:relative;flex:1;min-height:0;overflow:auto;scrollbar-width:none;overscroll-behavior:contain;background:
 radial-gradient(circle at 25% 20%,rgba(68,94,117,.16),transparent 45%),
 radial-gradient(circle at 90% 68%,rgba(78,85,130,.15),transparent 40%),
 linear-gradient(135deg,#12202d,#172734 54%,#1b2635)}
.tg-chat-wall::-webkit-scrollbar{display:none}
.tg-chat-wall:before{content:"";position:absolute;inset:0;pointer-events:none;opacity:.08;background-image:repeating-linear-gradient(45deg,transparent 0,transparent 45px,rgba(157,187,202,.20) 46px,transparent 48px)}
.tg-day-marker{position:relative;margin:14px auto 11px;width:max-content;max-width:90%;border-radius:14px;padding:5px 12px;color:#d2e4f2;background:rgba(12,22,32,.46);font:600 10px/1.2 system-ui}
.tg-chat-contents{position:relative;display:flex;flex-direction:column;gap:11px;padding:0 9px 20px}
.tg-post{width:92%;max-width:298px;align-self:flex-start;border-radius:15px 15px 15px 5px;overflow:hidden;background:#283c4a;box-shadow:0 4px 9px rgba(0,0,0,.21);opacity:0;transform:translateY(19px) scale(.985);transition:transform .62s cubic-bezier(.22,1,.36,1),opacity .52s ease;will-change:transform,opacity;pointer-events:none}
.tg-post.is-visible{opacity:1;transform:translateY(0) scale(1);pointer-events:auto}
.tg-post-image{display:block;width:100%;height:146px;position:relative;background:#121c26;overflow:hidden}
.tg-post-image img{width:100%;height:100%;display:block;object-fit:cover;object-position:center 20%;transition:transform .3s}
.tg-post-image:hover img{transform:scale(1.035)}
.tg-post-copy{padding:9px 11px 8px}
.tg-post-copy strong{display:block;font:700 11.5px/1.3 system-ui;color:#fff;margin-bottom:4px}
.tg-post-copy p{font:400 10.8px/1.45 system-ui;margin:0;color:#d9e4ef;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.tg-post-meta{display:flex;justify-content:flex-end;gap:5px;margin-top:4px;font:400 9px/1.2 system-ui;color:#a2b1be}
.tg-tick{color:#63bdf9;font-weight:bold}
.tg-typing{position:relative;margin:2px 0 18px 13px;border-radius:16px 16px 16px 5px;width:64px;height:34px;background:#304454;display:flex;align-items:center;justify-content:center;gap:5px;opacity:0;transform:translateY(6px);transition:opacity .24s,transform .24s}
.tg-typing.is-visible{opacity:1;transform:translateY(0)}
.tg-typing span{width:6px;height:6px;border-radius:50%;background:#8badc7;animation:tg-dot 1.1s ease-in-out infinite}
.tg-typing span:nth-child(2){animation-delay:.17s}.tg-typing span:nth-child(3){animation-delay:.34s}
.tg-phone-join{min-height:43px;display:flex;align-items:center;justify-content:center;background:#203040;text-decoration:none!important;color:#63baf6!important;font:800 10.5px/1.2 system-ui;letter-spacing:.05em;border-top:1px solid #314456;gap:10px;flex:none}
.tg-phone-join span{font-size:16px}
.tg-home-indicator{height:22px;min-height:22px;background:#203040;position:relative}
.tg-home-indicator:after{content:"";display:block;position:absolute;height:4px;width:104px;background:#fff;bottom:7px;left:50%;transform:translateX(-50%);border-radius:8px;opacity:.94}
.tg-demo-caption{margin-top:26px;color:#d9c2da;font:600 12px/1.45 "Manrope",sans-serif;display:flex;align-items:center;gap:8px;text-align:center;flex-wrap:wrap;justify-content:center}
.tg-live-dot{width:7px;height:7px;background:#3dd890;border-radius:50%;box-shadow:0 0 0 4px rgba(61,216,144,.13)}
.tg-demo-caption-muted{color:#837a8d;font-weight:400}
.tg-demo-progress{height:3px;background:rgba(255,255,255,.1);border-radius:4px;width:160px;margin:15px auto 0;overflow:hidden}
.tg-demo-progress span{height:100%;display:block;width:0;background:linear-gradient(90deg,var(--tg-brand,#e73599),#42b8f1);border-radius:4px}
.tg-demo-progress span.is-running{animation:tg-progress var(--tg-cycle,15s) linear infinite}
.tg-seo{max-width:580px;text-align:center;margin:29px auto 0;border-top:1px solid rgba(255,255,255,.07);padding-top:23px}
.tg-seo p{font:400 12px/1.8 "Manrope",sans-serif;color:#988e9f;margin:0 auto 12px}
.tg-seo a{font:700 12px/1.5 "Manrope",sans-serif;color:#69b9f1!important;text-decoration:none}
@keyframes tg-progress{from{width:0}to{width:100%}}
@keyframes tg-dot{0%,60%,100%{transform:translateY(0);opacity:.45}30%{transform:translateY(-5px);opacity:1}}
@keyframes tg-phone-rise{from{opacity:0;transform:translateY(24px) scale(.97)}to{opacity:1;transform:translateY(0) scale(1)}}
@media (min-width:760px){
 .tg-land{padding:65px 24px 80px}
 .tg-hero h1{font-size:clamp(40px,5vw,62px)}
 .tg-subtitle{font-size:16px}
 .tg-demo{margin-top:42px}
 .tg-phone{width:360px}
 .tg-demo-caption{font-size:13px}
}
@media(max-width:380px){
 .tg-land{padding:22px 10px 42px}
 .tg-hero h1{font-size:29px}
 .tg-subtitle{font-size:13px}
 .tg-phone{width:min(325px,88vw)}
 .tg-demo{margin-top:26px}
 .tg-main-button{min-height:51px;font-size:13px}
}
@media(prefers-reduced-motion:reduce){
 .tg-phone{animation:none}
 .tg-post,.tg-typing,.tg-main-button{transition:none}
 .tg-typing span{animation:none}
 .tg-demo-progress span.is-running{animation:none;width:100%}
}


/* Version 2: compact mobile layout, neutral white typography and one-shot preview. */
.tg-land{
 padding:30px 16px 42px;
 background:radial-gradient(ellipse 78% 30% at 50% 40%,rgba(39,112,170,.08),transparent 82%),linear-gradient(180deg,#09080d 0%,#0a0b12 100%);
}
.tg-land:before{background:radial-gradient(ellipse,rgba(56,98,149,.06),transparent 73%)}
.tg-hero{width:100%;max-width:630px;margin:0 auto;min-width:0}
.tg-hero h1{
 color:var(--tg-brand,#fff)!important;
 font-size:clamp(29px,7vw,54px);
 line-height:1.15;
 letter-spacing:-.04em;
 overflow-wrap:break-word;
 text-wrap:balance;
 max-width:100%;
}
.tg-subtitle{
 max-width:520px;
 color:#ede8f0;
 font-size:14px;
 line-height:1.6;
 margin:0 auto 20px;
}
.tg-demo{margin:23px auto 0;max-width:100%;min-width:0}
.tg-stage-glow{width:110%;height:370px;top:95px;background:radial-gradient(ellipse at center,rgba(36,118,177,.13),transparent 70%)}
.tg-phone{width:min(272px,72vw);max-width:100%;flex:none}
.tg-demo-caption,.tg-demo-progress,.tg-seo,.tg-eyebrow,.tg-hero-hint{display:none!important}
.tg-chat-wall{min-width:0;overflow-x:hidden;overflow-y:auto;contain:paint;scroll-behavior:auto}
.tg-chat-contents{padding-bottom:8px;gap:6px}
.tg-post{max-width:100%;width:94%;border-radius:12px 12px 12px 4px}
.tg-post-image{height:100px}
.tg-post-copy{padding:7px 8px 6px}
.tg-post-copy strong{font-size:10.5px;line-height:1.2}
.tg-post-copy p{font-size:9.8px;line-height:1.25;-webkit-line-clamp:2}
.tg-typing{margin-bottom:9px}
.tg-channel-head{position:relative;z-index:5}
.tg-statusbar{position:relative;z-index:6}
.tg-phone-screen{contain:paint}
.tg-phone-join{font-size:9px;min-height:38px}
.tg-home-indicator{height:19px;min-height:19px}
.tg-home-indicator:after{bottom:6px}
@media(min-width:760px){
 .tg-land{padding:54px 24px 55px}
 .tg-demo{margin-top:30px}
 .tg-phone{width:288px}
 .tg-hero h1{font-size:clamp(38px,4.5vw,56px)}
}
@media(max-width:380px){
 .tg-land{padding:24px 12px 38px}
 .tg-phone{width:min(260px,72vw)}
 .tg-hero h1{font-size:29px;line-height:1.16}
 .tg-subtitle{font-size:13px}
 .tg-demo{margin-top:22px}
}


/* v3: CTA after the phone, not between the text and animated iPhone. */
.tg-bottom-action{position:relative;z-index:2;display:flex;justify-content:center;align-items:center;text-align:center;max-width:100%;margin:29px auto 15px;padding:0 2px}
.tg-bottom-action .tg-main-button{display:inline-flex;max-width:100%;min-width:min(330px,100%);margin:0;gap:12px}
@media(max-width:380px){.tg-bottom-action{margin:25px auto 10px}.tg-bottom-action .tg-main-button{min-width:0;width:100%;max-width:300px}}


/* v4: remove legacy global 68px paddings inherited by tg-hero and tg-demo. */
.tg-land .tg-hero{padding:0!important;margin:0 auto!important;min-height:0!important}
.tg-land .tg-demo{
 padding:0!important;
 margin:10px auto 0!important;
 min-height:0!important;
 gap:0!important;
}
.tg-land .tg-subtitle{margin-bottom:0!important}
.tg-land .tg-phone{margin-top:0!important}
.tg-land .tg-stage-glow{top:45px}
@media(min-width:760px){
 .tg-land .tg-demo{margin-top:14px!important}
}
@media(max-width:380px){
 .tg-land .tg-demo{margin-top:8px!important}
}
