/* Fullscreen Pulse/Ведение entry: the same two scenes and copy as native Welcome. */
body[data-route="welcome"] { background: #101521; }
body main.fc-welcome { max-width: none !important; padding: 0 !important; margin: 0 !important; display: block; }
.fc-welcome { position: relative; isolation: isolate; color: #fff; background: #101521; min-height: 100svh; }
.fc-welcome-media { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: -1; background: #101521; }
.fc-welcome-scene { position: absolute; inset: 0; overflow: hidden; background: #101521; }
.fc-welcome-scene.community { opacity: 1; }
.fc-welcome-scene.coach { opacity: 0; transition: opacity 320ms cubic-bezier(.65,0,.35,1); }
.fc-welcome[data-space="coach"] .fc-welcome-scene.coach { opacity: 1; }
.fc-welcome-poster, .fc-welcome-video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.fc-welcome-poster img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 35% 50%; }
.fc-welcome-video { object-fit: cover; object-position: 35% 50%; opacity: 0; transition: opacity 180ms ease-out; }
.fc-welcome-scene.video-ready .fc-welcome-video { opacity: 1; }
.fc-welcome-scene.coach :is(.fc-welcome-poster,.fc-welcome-video) { inset: 0 auto auto 0; width: 100%; height: calc(100vw * 2348 / 1080); object-fit: fill; }
.fc-welcome-scene.coach .fc-welcome-poster img { object-fit: fill; }
.fc-welcome-shade { position: absolute; inset: 0; background: linear-gradient(180deg,rgba(16,21,33,.12) 0%,rgba(16,21,33,0) 26%,rgba(16,21,33,.3) 48%,rgba(16,21,33,.65) 70%,rgba(16,21,33,.92) 100%); }
.fc-welcome-brand { position: absolute; top: calc(env(safe-area-inset-top,0px) + 16px); left: calc(env(safe-area-inset-left,0px) + 24px); color: #fff; font-size: 35px; line-height: 39px; letter-spacing: -2.5px; font-weight: 800; }
.fc-welcome-brand span { color: #DFFF70; }
.fc-welcome-content { position: relative; box-sizing: border-box; width: calc(100% - 48px); max-width: 470px; margin-inline: auto; min-height: 100svh; padding-top: max(342px,calc(50svh - 8px),calc(env(safe-area-inset-top,0px) + 250px)); padding-bottom: max(env(safe-area-inset-bottom,0px),14px); }
.fc-welcome-spaces { position: relative; display: flex; padding: 4px; gap: 4px; border-radius: 30px; border: 1px solid #ffffff38; background: #10152180; margin-bottom: 20px; }
.fc-welcome-spaces button { position: relative; z-index: 1; flex: 1; min-width: 0; min-height: 50px; padding: 9px 12px; border: 0; border-radius: 26px; background: transparent; color: white; font: inherit; font-size: 18px; font-weight: 700; text-align: center; cursor: pointer; transition: color 320ms ease; }
.fc-welcome-spaces button[aria-checked="true"] { color: #12173A; }
.fc-welcome-indicator { position: absolute; inset: 5px auto 5px 5px; width: calc((100% - 14px) / 2); border-radius: 26px; background: #DFFF70; transform: translateX(0); transition: transform 320ms cubic-bezier(.65,0,.35,1); }
.fc-welcome[data-space="coach"] .fc-welcome-indicator { transform: translateX(calc(100% + 4px)); }
.fc-welcome-copy { display: grid; min-height: 178px; }
.fc-welcome-copy-pane { grid-area: 1 / 1; pointer-events: none; opacity: 0; transition: opacity 320ms cubic-bezier(.65,0,.35,1); }
.fc-welcome[data-space="community"] .fc-welcome-copy-pane.community, .fc-welcome[data-space="coach"] .fc-welcome-copy-pane.coach { opacity: 1; }
.fc-welcome h1 { color: white; font-size: 44px; line-height: 46px; font-weight: 800; letter-spacing: -1.6px; min-height: 92px; margin: 0 0 18px; }
.fc-welcome-copy p { color: #F2F3F8D9; font-size: 15px; line-height: 22.5px; min-height: 67.5px; margin: 0; }
.fc-welcome-entry { margin-top: 24px; }
.fc-welcome-primary { min-height: 58px; box-sizing: border-box; border-radius: 30px; padding: 13px 18px; display: flex; align-items: center; justify-content: center; gap: 12px; background: #DFFF70; color: #12173A; text-decoration: none; font-size: 15px; font-weight: 800; text-align: center; }
.fc-welcome-primary svg { width: 20px; height: 20px; flex: 0 0 20px; }
.fc-welcome-login { min-height: 44px; box-sizing: border-box; margin-top: 6px; padding: 10px 0; display: flex; align-items: center; justify-content: center; gap: 4px; color: #FFFFFFB8; text-decoration: none; text-align: center; font-size: 12px; line-height: 18px; }
.fc-welcome-login strong { color: #fff; font-weight: 700; }
.fc-welcome-footer { margin: 10px 0 0; color: #FFFFFFB8; font-size: 10px; line-height: 14.5px; text-align: center; }
.fc-welcome :is(a,button):focus-visible { outline: 2px solid white; outline-offset: 4px; }
@media (max-width:349px) { .fc-welcome h1 { font-size: 38px; line-height: 41px; min-height: 82px; } }
@media (min-width:900px) {
  .fc-welcome-content { padding-top: max(180px,calc(100svh - 470px)); }
  .fc-welcome h1 { font-size: 42px; }
  .fc-welcome-scene.coach :is(.fc-welcome-poster,.fc-welcome-video) { inset: 0; height: 100%; object-fit: cover; object-position: 50% 50%; }
  .fc-welcome-scene.coach .fc-welcome-poster img { object-fit: cover; object-position: 50% 50%; }
}
@media (prefers-reduced-motion:reduce) {
  .fc-welcome *, .fc-welcome *::before, .fc-welcome *::after { transition-duration: 0ms !important; animation: none !important; scroll-behavior: auto !important; }
  .fc-welcome-video { display: none; }
}

/* Desktop keeps the accepted scene and copy, with room for the whole entry
   even in a short window. Small screens retain their native composition. */
@media(min-width:900px){
  .fc-welcome-content{display:flex;flex-direction:column;justify-content:center;padding-top:max(88px,env(safe-area-inset-top,0px));padding-bottom:max(32px,env(safe-area-inset-bottom,0px));}
  .fc-welcome-content>.fc-welcome-spaces,.fc-welcome-content>.fc-welcome-copy,.fc-welcome-content>.fc-welcome-entry,.fc-welcome-content>.fc-welcome-footer{flex-shrink:0}
  .fc-welcome-content>.fc-welcome-entry{margin-top:20px}
}

/* PC entry: the scene sits beside the form, using the product's type,
   controls and surfaces. Phone/tablet composition stays above unchanged. */
@media(min-width:1100px){
 body[data-route="welcome"]{background:var(--p-bg,#fafbff)}
 body[data-route="welcome"] main.fc-welcome{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:clamp(40px,6vw,112px);box-sizing:border-box;min-height:100svh;padding:128px clamp(40px,5vw,96px) 72px!important;color:var(--p-text);background:var(--p-bg,#fafbff)}
 .fc-welcome-media{position:absolute;z-index:0;inset:24px 24px 24px 52%;border-radius:28px;background:var(--p-raised);box-shadow:0 12px 40px #1016380a}
 .fc-welcome-scene{background:var(--p-raised)}
 .fc-welcome-shade{display:none!important}
 .fc-welcome-scene.coach .fc-welcome-poster{height:100%;inset:0;width:100%}
 .fc-welcome-scene.coach .fc-welcome-poster img{object-fit:cover;object-position:50% 50%}
 .fc-welcome-scene.community :is(.fc-welcome-poster img,.fc-welcome-video){object-fit:cover;object-position:42% 50%}
 .fc-welcome-brand{top:36px;left:clamp(40px,5vw,96px);color:var(--p-text);font-size:38px;line-height:42px;z-index:1}
 .fc-welcome-content{grid-column:1;min-height:0;max-width:520px;width:100%;margin:0;padding:0!important;z-index:1;align-items:flex-start;justify-content:center}
 .fc-welcome-content>.fc-welcome-spaces{width:320px;max-width:100%;box-sizing:border-box;margin:0 0 36px;padding:4px;border:1px solid var(--p-line);background:var(--p-raised);border-radius:16px}
 .fc-welcome-spaces button{min-height:42px;padding:8px 12px;font-size:14px;color:var(--p-text-2);border-radius:12px}
 .fc-welcome-indicator{border-radius:12px;background:var(--p-lime)}
 .fc-welcome-copy{min-height:0;width:100%}
 .fc-welcome h1{font-size:clamp(46px,4.2vw,72px);line-height:1.08;letter-spacing:-.045em;min-height:0;color:var(--p-text);margin-bottom:24px}
 .fc-welcome-copy p{max-width:420px;font-size:17px;line-height:1.6;min-height:0;color:var(--p-text-2)}
 .fc-welcome-content>.fc-welcome-entry{width:360px;max-width:100%;margin-top:32px}
 .fc-welcome-primary{min-height:52px;border-radius:14px;background:var(--p-lime);color:var(--p-lime-ink);font-size:15px}
 .fc-welcome-login{justify-content:flex-start;color:var(--p-text-2);font-size:13px;margin-top:12px;gap:5px}
 .fc-welcome-login strong{color:var(--p-text)}
 .fc-welcome-content>.fc-welcome-footer{margin-top:28px;text-align:left;font-size:12px;line-height:1.6;color:var(--p-text-2)}
 .fc-welcome :is(a,button):focus-visible{outline-color:var(--p-text)}
}
@media(min-width:1100px) and (max-height:700px){
 body[data-route="welcome"] main.fc-welcome{padding-top:104px!important;padding-bottom:32px!important}
 .fc-welcome-content>.fc-welcome-spaces{margin-bottom:20px}
 .fc-welcome h1{font-size:46px;margin-bottom:16px}
 .fc-welcome-content>.fc-welcome-entry{margin-top:22px}
 .fc-welcome-content>.fc-welcome-footer{margin-top:16px}
}
