/* ============================================================
   screen-5-trial.css — paywall screen.
   Contains trial layout, video player styles, and checkout bar.
   ============================================================ */

.trial {
  background: linear-gradient(180deg, #0b0e30 0%, #07090a 100%);
  padding: 60px 22px 22px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.trial-bg {
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(ellipse 80% 40% at 50% 0%, rgba(80, 60, 180, 0.4) 0%, transparent 60%);
}

.trial-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: none;
  color: rgba(255,255,255,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  transition: all 0.2s;
}
.trial-close:hover { background: rgba(255,255,255,0.15); color: #fff; }

.trial-content { position: relative; z-index: 2; flex: 1; display: flex; flex-direction: column; }

.trial h1 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 42px;
  line-height: 1.0;
  letter-spacing: -0.035em;
  margin-bottom: 12px;
}
.trial h1 .italic {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  color: #d8e870;
  font-weight: 400;
}

.rating { color: var(--text-dim); font-size: 15px; margin-bottom: 28px; }
.rating .star { color: #fff; }

.timeline { margin-bottom: 24px; position: relative; }

.step { display: flex; gap: 14px; padding: 12px 0; position: relative; }

.step-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
}

.step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 22px;
  top: 56px;
  width: 1px;
  height: calc(100% - 30px);
  background: rgba(255,255,255,0.1);
}

.step-body { flex: 1; padding-top: 4px; }
.step-body .light { color: var(--text-dim); font-size: 15px; line-height: 1.4; }
.step-body .bold { color: #fff; font-weight: 600; font-size: 16px; line-height: 1.4; }

/* ---- Functional Video Player ---- */
.video-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 14px;
  aspect-ratio: 16 / 11;
  background: #1a1a25;
  cursor: pointer;
}

.video-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: opacity 0.3s;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.4) 100%);
}
.video-overlay.hidden { opacity: 0; }

.play-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
.play-btn::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 16px solid #333;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  margin-left: 4px;
}
.play-btn.pause::after {
  border: none;
  width: 14px;
  height: 14px;
  margin-left: 0;
  background: linear-gradient(to right, #333 0 4px, transparent 4px 10px, #333 10px 14px);
}

.video-caption {
  display: none;
}

.video-controls {
  position: absolute;
  bottom: 8px;
  left: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 3;
}

.video-progress {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.3);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}
.video-progress-fill {
  height: 100%;
  background: #fff;
  border-radius: 2px;
  width: 0%;
  position: relative;
  transition: width 0.1s linear;
}
.video-progress-fill::after {
  content: '';
  position: absolute;
  right: -4px;
  top: -3px;
  width: 10px;
  height: 10px;
  background: #fff;
  border-radius: 50%;
}

.video-time {
  color: #fff;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  min-width: 70px;
  text-align: right;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.access-note {
  text-align: center;
  color: var(--text-dim);
  font-size: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.checkout-bar { display: flex; gap: 10px; align-items: center; padding-top: 10px; }

.pay-method {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.pay-method .pay-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #002970 0%, #00BAF2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 12px;
  font-family: 'Bricolage Grotesque', sans-serif;
}
.pay-method-label { font-size: 11px; color: var(--text-dim); }
.pay-method-name { font-size: 13px; color: #fff; font-weight: 600; }
.pay-method .chev { color: var(--text-dim); font-size: 10px; margin-left: 2px; }

.start-trial-btn {
  flex: 1;
  background: linear-gradient(180deg, #4ade80 0%, #22c55e 100%);
  color: #003a1f;
  border: none;
  padding: 16px;
  border-radius: 14px;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 8px 24px -6px rgba(34, 197, 94, 0.5), inset 0 1px 0 rgba(255,255,255,0.3);
}
.start-trial-btn:active { transform: scale(0.98); }

/* ---- Lightweight spinner inside the start-trial CTA ---- */
.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(0, 58, 31, 0.3);
  border-top-color: #003a1f;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: -2px;
  margin-right: 8px;
}
@keyframes spin { to { transform: rotate(360deg); } }
