/* ============================================================
   TRIAL PAGE — Halaman Publik Uji Coba Gratis
   Dapat diakses tanpa login oleh siapa saja.
   ============================================================ */

/* ── Base reset untuk trial page ── */
body.trial-page {
  background: var(--ink);
  color: var(--surface);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* ── Animated Background ── */
.trial-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.trial-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
  animation: blobFloat 8s ease-in-out infinite alternate;
}

.blob-1 {
  width: 600px;
  height: 600px;
  background: var(--brand);
  top: -200px;
  right: -100px;
  animation-delay: 0s;
}

.blob-2 {
  width: 500px;
  height: 500px;
  background: var(--accent);
  bottom: -150px;
  left: -120px;
  animation-delay: 3s;
}

.blob-3 {
  width: 350px;
  height: 350px;
  background: #6C63FF;
  top: 40%;
  left: 50%;
  transform: translateX(-50%);
  animation-delay: 1.5s;
}

/* Warna blob menyesuaikan accent produk */
body.trial-page[data-product="intisari-clips"] .blob-1 { background: #6C63FF; }
body.trial-page[data-product="intisari-clips"] .blob-3 { background: #8B5CF6; }
body.trial-page[data-product="intisari-autocut"] .blob-1 { background: #F97316; }
body.trial-page[data-product="intisari-autocut"] .blob-3 { background: #ea580c; }

@keyframes blobFloat {
  from { transform: translateY(0) scale(1); }
  to   { transform: translateY(-30px) scale(1.05); }
}

/* ── Wrapper utama ── */
.trial-wrap {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Header ── */
.trial-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.trial-header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.trial-logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 7px;
}

.trial-wordmark {
  font-family: 'Manrope', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}

.trial-dot {
  color: var(--accent);
}

.trial-wordmark-soft {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.45);
  margin-left: 2px;
}

.trial-header-login-link {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color 0.2s ease;
}

.trial-header-login-link:hover {
  color: #fff;
}

/* ── Main Hero ── */
.trial-main {
  flex: 1;
  max-width: 780px;
  width: 100%;
  margin: 0 auto;
  padding: 60px 24px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 56px;
}

.trial-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

/* Badge */
.trial-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.trial-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.85); }
}

/* Product Icon */
.trial-product-icon {
  width: 80px;
  height: 80px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: background 0.3s;
}

.trial-product-icon span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 20px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 1px;
}

/* Title & Tagline */
.trial-title {
  font-size: clamp(28px, 6vw, 48px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -1px;
  line-height: 1.15;
  margin: 0;
}

.trial-tagline {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.6;
  max-width: 460px;
  margin: 0;
}

/* Feature Badges */
.trial-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  min-height: 24px;
}

.trial-feature-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 100px;
  letter-spacing: 0.3px;
}

/* CTA Group */
.trial-cta-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 380px;
}

/* Tombol Download Utama */
.trial-btn-download {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 28px;
  border-radius: 14px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  box-shadow: 0 6px 24px rgba(42, 77, 220, 0.5);
}

.trial-btn-download:hover {
  transform: translateY(-2px);
  filter: brightness(1.12);
  box-shadow: 0 10px 32px rgba(42, 77, 220, 0.6);
}

.trial-btn-download:active {
  transform: translateY(0);
}

/* Tombol Download Sekunder (Mac) */
.trial-btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 20px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.75);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.trial-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* Tombol GitHub */
.trial-btn-github {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  transition: color 0.2s ease;
}

.trial-btn-github:hover {
  color: rgba(255, 255, 255, 0.75);
}

/* Version info */
.trial-version {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
}

/* ── Panduan Langkah-Langkah ── */
.trial-steps {
  width: 100%;
}

.trial-steps-title {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.3px;
  margin: 0 0 24px;
  text-align: center;
}

.trial-steps-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.trial-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.trial-step:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.14);
}

.trial-step-num {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  flex-shrink: 0;
}

.trial-step-body {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.trial-step-icon {
  color: rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
  margin-top: 2px;
}

.trial-step-label {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.trial-step-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.55;
}

/* ── Info Box ── */
.trial-info-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  border-radius: 14px;
  background: rgba(42, 77, 220, 0.12);
  border: 1px solid rgba(42, 77, 220, 0.25);
  width: 100%;
}

.trial-info-icon {
  color: var(--brand);
  flex-shrink: 0;
  margin-top: 1px;
}

.trial-info-text {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.55;
}

.trial-info-text strong {
  color: rgba(255, 255, 255, 0.85);
}

.trial-info-text a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
}

.trial-info-text a:hover {
  text-decoration: underline;
}

/* ── Product Cards (fallback tanpa app_id) ── */
.trial-product-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.trial-product-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.trial-product-card:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.trial-product-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.08);
}

.trial-product-card-icon[data-product="clips"] {
  background: rgba(108, 99, 255, 0.2);
  border: 1px solid rgba(108, 99, 255, 0.3);
}

.trial-product-card-icon[data-product="autocut"] {
  background: rgba(249, 115, 22, 0.2);
  border: 1px solid rgba(249, 115, 22, 0.3);
}

.trial-product-card-icon .glyph {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
}

.trial-product-card-body {
  flex: 1;
}

.trial-product-card-name {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 3px;
}

.trial-product-card-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.4;
}

.trial-product-card svg {
  color: rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
}

/* ── Footer ── */
.trial-footer {
  padding: 24px 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.trial-footer span,
#trialFooterBrand {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.3);
}

.trial-footer-links {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.25);
}

.trial-footer-links a {
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  transition: color 0.2s;
}

.trial-footer-links a:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .trial-header {
    padding: 14px 20px;
  }

  .trial-main {
    padding: 40px 16px 60px;
    gap: 40px;
  }

  .trial-title {
    font-size: 28px;
  }

  .trial-tagline {
    font-size: 14.5px;
  }

  .trial-step {
    padding: 16px 18px;
  }

  .trial-footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }
}

/* ── Google Auth & Trial Active Styling ── */
.btn-google-trial {
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.btn-google-trial:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3) !important;
  background: rgba(255, 255, 255, 0.02) !important;
}
.btn-google-trial:active {
  transform: translateY(0);
}

.btn-copy-code {
  transition: all 0.15s ease;
}
.btn-copy-code:hover {
  filter: brightness(1.15);
  box-shadow: 0 4px 12px rgba(var(--accent-rgb, 108, 99, 255), 0.3);
}
.btn-copy-code:active {
  transform: scale(0.95);
}

.trial-code-val::-webkit-scrollbar {
  height: 4px;
}
.trial-code-val::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

.btn-trial-logout:hover {
  text-decoration: underline;
  opacity: 0.9;
}

.trial-btn-upgrade:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.35) !important;
  filter: brightness(1.05);
}
.trial-btn-upgrade:active {
  transform: translateY(0);
}

/* Dynamic button colors according to product variable */
body[data-product="intisari-clips"] {
  --accent-rgb: 108, 99, 255;
}
body[data-product="intisari-autocut"] {
  --accent-rgb: 249, 115, 22;
}

/* ── Universal Trial License Card ── */
.trial-universal-card {
  width: 100%;
  max-width: 560px;
  margin: 20px auto 0;
  padding: 22px 24px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(var(--accent-rgb, 108, 99, 255), 0.35);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35), 0 0 24px rgba(var(--accent-rgb, 108, 99, 255), 0.12);
  box-sizing: border-box;
  text-align: left;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.trial-universal-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.trial-universal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.trial-universal-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 8px;
  background: rgba(var(--accent-rgb, 108, 99, 255), 0.18);
  border: 1px solid rgba(var(--accent-rgb, 108, 99, 255), 0.35);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.trial-universal-tag {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.06);
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.trial-universal-desc {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.55;
  margin: 0 0 16px 0;
}

/* Key container */
.trial-key-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  margin-bottom: 8px;
}

.trial-key-code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
  user-select: all;
  -webkit-user-select: all;
  overflow-x: auto;
  white-space: nowrap;
}

.trial-key-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  border: none;
  background: var(--accent);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(var(--accent-rgb, 108, 99, 255), 0.35);
  flex-shrink: 0;
}

.trial-key-copy-btn:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
}

.trial-key-copy-btn:active {
  transform: scale(0.97);
}

.trial-key-copy-btn.copied {
  background: #10B981 !important;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4) !important;
}

/* GIF Demo Preview */
.trial-gif-container {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.trial-gif-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 12px;
}

.trial-gif-header svg {
  color: var(--accent);
  flex-shrink: 0;
}

.trial-gif-wrapper {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.5);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.trial-gif-media {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

@media (max-width: 600px) {
  .trial-universal-card {
    padding: 18px 16px;
  }
  .trial-key-container {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .trial-key-code {
    text-align: center;
    font-size: 15px;
  }
  .trial-key-copy-btn {
    justify-content: center;
    width: 100%;
    padding: 10px;
  }
}

