/* =============================================================================
   FinLevel Landing — land-specific styles
   ─────────────────────────────────────────────────────────────────────────
   Базова стилізація (hero, for-whom, lessons, price, reviews) → спільний файл:
       /resources/css/course.css  (підключається перед цим файлом).
   Тут лежить ТІЛЬКИ те, що унікальне для FinLevel:
   — одно-рядковий заголовок hero
   — інтерактивний відео-телефон у hero
   — блок гарантії в ціні
   — пульс Telegram-кнопки
   ============================================================================= */

/* Hero — single-line title (одне речення, без поділу name+accent) */
.hero__titles h1 {
  font-family: "Gilroy";
  font-weight: 700;
  font-size: 52px;
  line-height: 56px;
  letter-spacing: -1px;
  color: #212121;
  text-align: center;
}

/* Hero — interactive video phone (права колонка) */
.hero__phone {
  position: relative;
  width: 156px;
  cursor: pointer;
}

.hero__phone:hover .hero__phone-screen {
  background: #1a1a1a;
  box-shadow: 0 0 30px rgba(255, 0, 0, 0.5), 0 0 60px rgba(255, 0, 0, 0.3), 0 0 120px rgba(255, 0, 0, 0.15);
}

.hero__phone-frame {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
  display: block;
}

.hero__phone-screen {
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #111;
  border-radius: 18%;
  overflow: hidden;
  transition: background 0.3s ease;
}

.hero__phone-screen::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 1);
  z-index: 1;
  transition: background 0.5s ease;
}

.hero__phone-screen.poster-playing::after {
  background: rgba(0, 0, 0, 0.35);
}

.hero__phone-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.hero__play-icon {
  width: 56px;
  height: auto;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
  transition: transform 0.2s ease;
}

.hero__phone:hover .hero__phone-play {
  transform: translate(-50%, -50%) scale(1.15);
}

.hero__play-text {
  font-family: "Gilroy";
  font-weight: 600;
  font-size: 13px;
  color: #fff;
  white-space: nowrap;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

.hero__tap-hint {
  position: absolute;
  z-index: 3;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  opacity: 0;
  animation: tap-appear 5s ease 1.5s forwards;
}

.tap-icon {
  width: 72px;
  height: 72px;
  transform: scaleY(-1);
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
  animation: tap-press 5s ease 1.5s forwards;
}

.tap-ripple {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 48px;
  height: 48px;
  margin: -24px 0 0 -24px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  opacity: 0;
  animation: tap-ripple-anim 5s ease 1.5s forwards;
}

@keyframes tap-appear {
  0% { opacity: 0; transform: translateX(-50%) translateY(-8px); }
  8% { opacity: 1; transform: translateX(-50%) translateY(0); }
  80% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes tap-press {
  0%, 15% { transform: scale(1); }
  20% { transform: scale(0.82); }
  28% { transform: scale(1); }
  45% { transform: scale(1); }
  50% { transform: scale(0.82); }
  58% { transform: scale(1); }
  100% { transform: scale(1); }
}

@keyframes tap-ripple-anim {
  0%, 18% { opacity: 0; transform: scale(0.5); }
  22% { opacity: 0.7; transform: scale(0.5); }
  35% { opacity: 0; transform: scale(1.8); }
  48% { opacity: 0; transform: scale(0.5); }
  52% { opacity: 0.7; transform: scale(0.5); }
  65% { opacity: 0; transform: scale(1.8); }
  100% { opacity: 0; }
}

.hero__poster-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__phone-screen video,
.hero__phone-screen iframe {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* Price — guarantee note */
.price__guarantee {
  margin-top: 16px;
  font-family: "Gilroy";
  font-weight: 400;
  font-size: 14px;
  line-height: 150%;
  color: #888;
}

/* Telegram CTA — attention pulse */
.btn-telegram--pulse {
  animation: cta-pulse 10s ease forwards;
}

@keyframes cta-pulse {
  /* Group 1: 3 pulses */
  0%    { transform: scale(1);    box-shadow: 0 0 0 0 rgba(0,191,165,0); }
  2.5%  { transform: scale(1.06); box-shadow: 0 0 20px 8px rgba(0,191,165,0.3); }
  5%    { transform: scale(1);    box-shadow: 0 0 0 0 rgba(0,191,165,0); }
  7.5%  { transform: scale(1.06); box-shadow: 0 0 20px 8px rgba(0,191,165,0.3); }
  10%   { transform: scale(1);    box-shadow: 0 0 0 0 rgba(0,191,165,0); }
  12.5% { transform: scale(1.06); box-shadow: 0 0 20px 8px rgba(0,191,165,0.3); }
  15%   { transform: scale(1);    box-shadow: 0 0 0 0 rgba(0,191,165,0); }
  /* 2s pause */
  35%   { transform: scale(1);    box-shadow: 0 0 0 0 rgba(0,191,165,0); }
  /* Group 2: 3 pulses */
  37.5% { transform: scale(1.06); box-shadow: 0 0 20px 8px rgba(0,191,165,0.3); }
  40%   { transform: scale(1);    box-shadow: 0 0 0 0 rgba(0,191,165,0); }
  42.5% { transform: scale(1.06); box-shadow: 0 0 20px 8px rgba(0,191,165,0.3); }
  45%   { transform: scale(1);    box-shadow: 0 0 0 0 rgba(0,191,165,0); }
  47.5% { transform: scale(1.06); box-shadow: 0 0 20px 8px rgba(0,191,165,0.3); }
  50%   { transform: scale(1);    box-shadow: 0 0 0 0 rgba(0,191,165,0); }
  /* 2s pause */
  70%   { transform: scale(1);    box-shadow: 0 0 0 0 rgba(0,191,165,0); }
  /* Group 3: 3 pulses */
  72.5% { transform: scale(1.06); box-shadow: 0 0 20px 8px rgba(0,191,165,0.3); }
  75%   { transform: scale(1);    box-shadow: 0 0 0 0 rgba(0,191,165,0); }
  77.5% { transform: scale(1.06); box-shadow: 0 0 20px 8px rgba(0,191,165,0.3); }
  80%   { transform: scale(1);    box-shadow: 0 0 0 0 rgba(0,191,165,0); }
  82.5% { transform: scale(1.06); box-shadow: 0 0 20px 8px rgba(0,191,165,0.3); }
  85%   { transform: scale(1);    box-shadow: 0 0 0 0 rgba(0,191,165,0); }
  100%  { transform: scale(1);    box-shadow: 0 0 0 0 rgba(0,191,165,0); }
}

/* -----------------------------------------------------------------------------
   RESPONSIVE — лише унікальні елементи (база → course.css)
   -------------------------------------------------------------------------- */
@media only screen and (max-width: 1279.98px) {
  .hero__titles h1 { font-size: 36px; line-height: 42px; }
  .hero__phone     { width: 126px; }
  .hero__play-icon { width: 40px; }
  .hero__play-text { font-size: 10px; }
  .hero__phone-play { gap: 8px; }
}

@media only screen and (max-width: 743.98px) {
  .hero__titles h1 { font-size: 26px; line-height: 32px; }
  .hero__row       { flex-direction: column; align-items: center; gap: 32px; }
  .hero__phone     { width: 160px; }
  .hero__play-icon { width: 48px; }
  .hero__play-text { font-size: 12px; }
  .hero__phone-play { gap: 10px; }
  .btn-telegram    { width: 100%; max-width: 320px; }
}
