/**
 * Видеоконференция — welcome page & meeting chrome
 * Depends on brand-tokens.css
 */

/* ---------- Atmosphere ---------- */
body.welcome-page,
.welcome {
  background:
    radial-gradient(900px 520px at 12% 8%, rgba(30, 212, 192, 0.2), transparent 60%),
    radial-gradient(700px 480px at 88% 12%, rgba(242, 184, 106, 0.12), transparent 55%),
    radial-gradient(1000px 700px at 50% 110%, rgba(19, 68, 87, 0.5), transparent 65%),
    linear-gradient(165deg, var(--vc-graphite-deep) 0%, var(--vc-graphite) 45%, #0d2f3c 100%) !important;
  color: var(--vc-text);
  font-family: var(--vc-font-ui);
}

.welcome .header {
  background: transparent !important;
  animation: vc-rise var(--vc-duration) var(--vc-ease) both;
}

@keyframes vc-rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Hero typography ---------- */
.welcome .header-text-title,
.welcome .header .header-text-title,
.welcome .header-text-title span {
  font-family: var(--vc-font-display) !important;
  font-weight: 600 !important;
  font-size: clamp(2.1rem, 6vw, 3.4rem) !important;
  letter-spacing: -0.03em !important;
  line-height: 1.08 !important;
  background: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  -webkit-text-fill-color: #ffffff !important;
  color: #ffffff !important;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
  margin-bottom: 0.4rem !important;
}

.welcome .header-text-subtitle,
.welcome .header .header-text-subtitle,
.welcome .header-text-subtitle span {
  font-family: var(--vc-font-ui) !important;
  font-size: clamp(1.05rem, 2.4vw, 1.25rem) !important;
  -webkit-text-fill-color: #d7e4eb !important;
  color: #d7e4eb !important;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.45 !important;
}

.welcome .header .watermark img,
.welcome .welcome-watermark img,
.welcome-watermark img {
  max-height: 72px !important;
  width: auto !important;
  border-radius: 50%;
  filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.35));
}

/* Support line under subtitle (injected via additional content is below; this styles enter room) */
.welcome #enter_room {
  animation: vc-rise var(--vc-duration) var(--vc-ease) 120ms both;
}

.welcome #enter_room input,
.welcome #enter_room .enter-room-input {
  background: rgba(15, 42, 56, 0.72) !important;
  border: 1px solid var(--vc-border) !important;
  border-radius: var(--vc-control-radius) !important;
  color: var(--vc-text) !important;
  font-family: var(--vc-font-ui) !important;
  font-size: 1rem !important;
  box-shadow: none !important;
}

.welcome #enter_room input::placeholder {
  color: var(--vc-text-muted) !important;
}

.welcome #enter_room input:focus,
.welcome #enter_room .enter-room-input:focus {
  border-color: var(--vc-border-strong) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px var(--vc-accent-muted) !important;
}

.welcome .welcome-page-button,
.welcome #enter_room .welcome-page-button {
  background: linear-gradient(135deg, var(--vc-accent), #14b8a8) !important;
  color: #041014 !important;
  font-family: var(--vc-font-ui) !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
  border: 0 !important;
  border-radius: var(--vc-control-radius) !important;
  box-shadow: none !important;
  transition: background 180ms ease, transform 180ms ease !important;
}

.welcome .welcome-page-button:hover,
.welcome #enter_room .welcome-page-button:hover {
  background: linear-gradient(135deg, var(--vc-accent-hover), var(--vc-accent)) !important;
  transform: translateY(-1px);
}

.welcome .welcome-page-settings {
  background: rgba(15, 42, 56, 0.55) !important;
  border: 1px solid var(--vc-border);
  border-radius: var(--vc-radius-sm);
}

.welcome .welcome-page-content {
  width: 100%;
}

/* Site menu in the welcome header (cloned below-fold, pinned to the top) */
.welcome .header {
  padding-top: 76px !important;
}

.welcome .header .header-container {
  margin-top: 24px !important;
}

.welcome .welcome-watermark {
  display: none;
}

.welcome .welcome-page-settings {
  position: fixed !important;
  top: 16px !important;
  right: 10px !important;
  z-index: 40;
}

.vc-welcome-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  border-bottom: 1px solid var(--vc-border);
  background: rgba(4, 14, 20, 0.72);
  backdrop-filter: blur(14px);
}

.vc-welcome-header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  max-width: 920px;
  min-height: 68px;
  margin: 0 auto;
  padding: 10px 56px 10px 20px;
}

.vc-welcome-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  text-decoration: none;
}

.vc-welcome-brand img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35));
}

.vc-welcome-brand span {
  font-family: var(--vc-font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.vc-welcome-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 4px;
}

.vc-welcome-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: var(--vc-control-radius);
  color: var(--vc-text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.vc-welcome-nav a:hover {
  color: var(--vc-text);
  background: var(--vc-accent-muted);
}

.vc-welcome-nav a[aria-current="page"] {
  color: var(--vc-accent-soft);
  background: var(--vc-accent-muted);
}

/* ---------- Below-fold additional content ---------- */
.vc-below {
  max-width: 920px;
  margin: 0 auto;
  padding: 24px 20px 72px;
  color: var(--vc-text);
  font-family: var(--vc-font-ui);
  animation: vc-rise var(--vc-duration) var(--vc-ease) 200ms both;
}

/* Этап 1: баннер на главной */
.vc-ad {
  margin-top: 36px;
  padding: 12px 12px 14px;
  border: 1px solid var(--vc-border);
  border-radius: var(--vc-radius-lg);
  background: rgba(15, 42, 56, 0.5);
}

.vc-ad-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--vc-text-muted);
  margin: 0 0 8px;
}

.vc-ad-unit {
  min-height: 0;
  overflow: hidden;
}

.vc-ad-unit:empty {
  display: none;
}

.vc-ad-house {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: var(--vc-radius-md);
  color: inherit;
  background:
    linear-gradient(135deg, rgba(30, 212, 192, 0.12), transparent 55%),
    rgba(10, 28, 40, 0.55);
  border: 1px solid var(--vc-border);
}

.vc-ad-house-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex-shrink: 0;
}

.vc-ad-house-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: var(--vc-control-radius);
  background: linear-gradient(135deg, var(--vc-accent), #14b8a8);
  color: #041014 !important;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none !important;
  white-space: nowrap;
}

.vc-ad-house-cta:hover {
  filter: brightness(1.06);
}

.vc-ad-house-cta--appgallery {
  background: linear-gradient(135deg, #f04a3a, #cf0a2c);
  color: #ffffff !important;
}

.vc-ad-house-cta--appgallery:hover {
  filter: brightness(1.08);
}

.vc-ad.is-filled .vc-ad-house {
  display: none;
}

.vc-ad-house-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.vc-ad-house-copy strong {
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
}

.vc-ad-house-copy span {
  color: var(--vc-text-muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.vc-support-line {
  text-align: center;
  color: var(--vc-accent-soft);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  margin: 8px 0 28px;
}

.vc-section {
  margin-top: 48px;
  padding-top: 8px;
}

.vc-section h2,
.vc-app h2,
.vc-footer .brand {
  margin: 0 0 8px;
  font-family: var(--vc-font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

.vc-section p.lead {
  margin: 0 0 20px;
  color: var(--vc-text-muted);
  font-size: 0.98rem;
  line-height: 1.45;
}

.vc-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: vcstep;
}

.vc-steps li {
  counter-increment: vcstep;
  padding: 18px 16px;
  border: 1px solid var(--vc-border);
  border-radius: var(--vc-radius-lg);
  background: rgba(15, 42, 56, 0.5);
}

.vc-steps li::before {
  content: counter(vcstep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-bottom: 10px;
  border-radius: 8px;
  background: var(--vc-accent-muted);
  color: var(--vc-accent);
  font-weight: 700;
  font-size: 0.9rem;
}

.vc-steps strong {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.vc-steps span {
  color: var(--vc-text-muted);
  font-size: 0.92rem;
  line-height: 1.4;
}

.vc-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.vc-features li {
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px 14px;
  border-bottom: 1px solid var(--vc-border);
  color: var(--vc-text-muted);
  font-size: 0.98rem;
}

.vc-features li::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--vc-accent);
  box-shadow: 0 0 0 4px var(--vc-accent-muted);
}

.vc-features b {
  color: var(--vc-text);
  font-weight: 600;
}

.vc-app {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 22px 20px;
  border: 1px solid var(--vc-border-strong);
  border-radius: var(--vc-radius-lg);
  background:
    linear-gradient(135deg, rgba(30, 212, 192, 0.12), transparent 50%),
    rgba(15, 42, 56, 0.65);
}

.vc-app h2 { margin-bottom: 6px; color: #ffffff !important; }
.vc-app .lead { margin-bottom: 16px; }

.vc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: var(--vc-control-radius);
  background: linear-gradient(135deg, var(--vc-accent), #14b8a8);
  color: #041014 !important;
  font-weight: 600;
  text-decoration: none !important;
  border: 0;
}

.vc-btn:hover {
  background: linear-gradient(135deg, var(--vc-accent-hover), var(--vc-accent));
}

.vc-qr {
  width: 132px;
  height: 132px;
  padding: 8px;
  border-radius: var(--vc-radius-md);
  background: #fff;
}

.vc-qr img {
  display: block;
  width: 100%;
  height: 100%;
}

.vc-audience {
  color: var(--vc-text-muted);
  font-size: 1.02rem;
  line-height: 1.5;
  margin: 0;
}

.vc-faq details {
  border-bottom: 1px solid var(--vc-border);
  padding: 12px 0;
}

.vc-faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--vc-text);
  list-style: none;
}

.vc-faq summary::-webkit-details-marker { display: none; }

.vc-faq summary::after {
  content: "+";
  float: right;
  color: var(--vc-accent);
  font-weight: 700;
}

.vc-faq details[open] summary::after { content: "–"; }

.vc-faq p {
  margin: 8px 0 4px;
  color: var(--vc-text-muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.vc-about-copy {
  margin: 0 0 4px;
  max-width: 40rem;
  color: var(--vc-text-muted);
  font-size: 1rem;
  line-height: 1.55;
}

.vc-more {
  margin: 12px 0 0;
}

.vc-more a {
  color: var(--vc-accent-soft);
  font-weight: 600;
  text-decoration: none;
}

.vc-more a:hover {
  text-decoration: underline;
}

.vc-support-mail {
  margin-top: 16px;
  color: var(--vc-text-muted);
}

.vc-support-mail a {
  color: var(--vc-accent-soft);
  text-decoration: none;
  font-weight: 600;
}

.vc-footer {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--vc-border);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
  color: var(--vc-text-muted);
  font-size: 0.9rem;
}

.vc-footer .brand {
  font-family: var(--vc-font-display);
  color: var(--vc-text);
  font-weight: 600;
}

.vc-footer a {
  color: var(--vc-text-muted);
  text-decoration: none;
}

.vc-footer a:hover { color: var(--vc-accent-soft); }

.vc-who-list {
  list-style: none;
}

.vc-steps.vc-who-list li::before {
  content: none;
  display: none;
}

.vc-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Static homepage in body.html: crawlers and no-JS. Hidden once Jitsi welcome is up. */
#vc-static-home {
  min-height: 100vh;
  color: var(--vc-text);
  font-family: var(--vc-font-ui);
  background:
    radial-gradient(900px 520px at 12% 8%, rgba(30, 212, 192, 0.2), transparent 60%),
    radial-gradient(700px 480px at 88% 12%, rgba(242, 184, 106, 0.12), transparent 55%),
    linear-gradient(165deg, var(--vc-graphite-deep) 0%, var(--vc-graphite) 45%, #0d2f3c 100%);
}

#vc-static-home .vc-static-header {
  position: relative;
}

#vc-static-home h1 {
  font-family: var(--vc-font-display);
  font-weight: 600;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: #ffffff;
  margin: 0 0 12px;
}

#vc-static-home .lead {
  margin: 0 0 16px;
  color: #d7e4eb;
  font-size: 1.05rem;
  line-height: 1.45;
  max-width: 40rem;
}

body.welcome #vc-static-home,
body.welcome-page #vc-static-home,
html.vc-room #vc-static-home,
#vc-static-home[hidden] {
  display: none !important;
}

.vc-noscript {
  margin: 0;
  padding: 16px 20px 18px;
  background: #0A1C28;
  border-bottom: 1px solid var(--vc-border-strong);
  color: #d7e4eb;
  font-family: var(--vc-font-ui), sans-serif;
  text-align: center;
}

.vc-noscript p {
  margin: 0 0 12px;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.45;
}

.vc-noscript p:last-child {
  margin-bottom: 0;
}

.vc-noscript-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: var(--vc-control-radius);
  background: linear-gradient(135deg, var(--vc-accent), #14b8a8);
  color: #041014 !important;
  font-weight: 600;
  text-decoration: none !important;
}

#vc-static-home h1 {
  text-align: center;
}

#vc-static-home .lead {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.vc-join {
  max-width: 32rem;
  margin: 8px auto 28px;
  padding: 18px 16px 16px;
  border: 1px solid var(--vc-border-strong);
  border-radius: var(--vc-radius-lg);
  background: rgba(15, 42, 56, 0.72);
}

.vc-join label {
  display: block;
  margin: 0 0 8px;
  font-weight: 600;
  color: #ffffff;
}

.vc-join-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.vc-join input {
  flex: 1 1 12rem;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--vc-border);
  border-radius: var(--vc-control-radius);
  background: rgba(15, 42, 56, 0.72);
  color: var(--vc-text);
  font-family: var(--vc-font-ui);
  font-size: 1rem;
}

.vc-join input:focus {
  outline: none;
  border-color: var(--vc-border-strong);
  box-shadow: 0 0 0 3px var(--vc-accent-muted);
}

.vc-join button {
  flex: 0 0 auto;
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--vc-control-radius);
  background: linear-gradient(135deg, var(--vc-accent), #14b8a8);
  color: #041014;
  font-family: var(--vc-font-ui);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

.vc-join button:hover {
  background: linear-gradient(135deg, var(--vc-accent-hover), var(--vc-accent));
}

.vc-join-hint {
  margin: 10px 0 0;
  color: var(--vc-text-muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.vc-join-hint a {
  color: var(--vc-accent-soft);
  font-weight: 600;
}

.vc-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.vc-chips li {
  margin: 0;
  padding: 8px 12px;
  border: 1px solid var(--vc-border);
  border-radius: var(--vc-control-radius);
  background: rgba(15, 42, 56, 0.55);
  color: var(--vc-text);
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.3;
}

.vc-step-note {
  margin: 12px 0 0;
  color: var(--vc-text-muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.vc-footer-note {
  margin: 0;
  width: 100%;
  color: var(--vc-text-muted);
  font-size: 0.92rem;
}

.vc-footer-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.vc-btn-ghost {
  background: transparent !important;
  color: var(--vc-text) !important;
  border: 1px solid var(--vc-border);
}

.vc-btn-ghost:hover {
  background: var(--vc-accent-muted) !important;
  border-color: var(--vc-border-strong);
}

/* Hide default Jitsi promo cards / store badges clutter when present */
.welcome .welcome-cards-container .welcome-card--blue,
.welcome a[href*="apps.apple.com"],
.welcome a[href*="f-droid.org"],
.welcome a[href*="play.google.com/store/apps/details?id=org.jitsi"] {
  display: none !important;
}

.vc-store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.vc-store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 8px 16px 8px 8px;
  border-radius: 12px;
  background: #111111;
  color: #ffffff !important;
  text-decoration: none !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.vc-store-badge:hover {
  text-decoration: none !important;
  filter: brightness(1.08);
}

.vc-store-badge-icon {
  display: inline-flex;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
}

.vc-store-badge-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.vc-store-badge-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.15;
}

.vc-store-badge-caption {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.72);
}

.vc-store-badge-copy strong {
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
}

/* Meeting chrome */
.leftwatermark {
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.35));
}

@media (max-width: 720px) {
  .welcome .header { padding-top: 118px !important; }
  .vc-welcome-header-inner { min-height: 0; }
  .vc-steps { grid-template-columns: 1fr; }
  .vc-app { grid-template-columns: 1fr; }
  .vc-qr { margin: 0 auto; }
  .vc-ad-house { flex-direction: column; align-items: stretch; }
  .vc-ad-house-ctas { width: 100%; }
  .vc-ad-house-cta { flex: 1; min-width: 0; }
  .vc-join button { width: 100%; }
}
