/* ==========================================================================
   SnipTik — custom styles layered on top of Tailwind
   (Tailwind is loaded via the Play CDN in index.html)
   ========================================================================== */

/* ---------- Hero background blobs ---------------------------------------- */
.blob {
  position: absolute;
  border-radius: 9999px;
  filter: blur(90px);
  opacity: .55;
  animation: float 14s ease-in-out infinite;
}
.blob-1 { width: 380px; height: 380px; top: -120px; left: -80px;  background: #fe2c55; }
.blob-2 { width: 420px; height: 420px; top: 40px;  right: -140px; background: #25f4ee; animation-delay: -5s; opacity: .32; }
.blob-3 { width: 320px; height: 320px; bottom: -160px; left: 40%; background: #a21caf; animation-delay: -9s; opacity: .3; }

:root.dark .blob { opacity: .38; }
:root.dark .blob-2 { opacity: .22; }

@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(0, 30px, 0) scale(1.08); }
}

.hero-glow::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 160px;
  background: linear-gradient(to bottom, transparent, rgba(254, 44, 85, .06));
  pointer-events: none;
}

/* ---------- Badge -------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  border-radius: 9999px;
  border: 1px solid rgba(254, 44, 85, .35);
  background: rgba(254, 44, 85, .08);
  padding: .4rem .9rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .01em;
  color: #b91339; /* AA-contrast red on the tinted pill */
}
:root.dark .badge { color: #ff8fa6; }

/* ---------- Loader ------------------------------------------------------- */
.spinner {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 3px solid rgba(148, 163, 184, .25);
  border-top-color: #fe2c55;
  border-right-color: #25f4ee;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Result actions ----------------------------------------------- */
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  border-radius: .9rem;
  padding: .95rem 1.1rem;
  font-size: .9375rem;
  font-weight: 700;
  text-align: center;
  transition: transform .15s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn-primary {
  background: linear-gradient(135deg, #e01844, #c81e6e);
  color: #fff;
  box-shadow: 0 10px 30px -12px rgba(254, 44, 85, .7);
}
.btn-primary:hover  { filter: brightness(1.07); transform: translateY(-1px); }
.btn-primary:active { transform: scale(.98); }
.btn-secondary {
  border: 1px solid rgba(148, 163, 184, .35);
  background: rgba(148, 163, 184, .08);
  color: #334155;
}
.btn-secondary:hover { background: rgba(148, 163, 184, .18); transform: translateY(-1px); }
.btn-secondary:active { transform: scale(.98); }
:root.dark .btn-secondary { color: #e2e8f0; border-color: rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .05); }
:root.dark .btn-secondary:hover { background: rgba(255, 255, 255, .1); }
.btn-primary.is-disabled,
.btn-secondary.is-disabled { opacity: .45; pointer-events: none; filter: grayscale(.5); }

/* ---------- How-to / step cards ------------------------------------------ */
.step-card {
  position: relative;
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 1.5rem;
  background: #fff;
  padding: 2rem 1.5rem 1.6rem;
  box-shadow: 0 18px 50px -30px rgba(0, 0, 0, .5);
  transition: transform .25s ease, box-shadow .25s ease;
}
.step-card:hover { transform: translateY(-4px); box-shadow: 0 24px 55px -30px rgba(0, 0, 0, .55); }
.step-card h3 { margin-top: 1rem; font-size: 1.0625rem; font-weight: 700; color: #0f172a; }
.step-card p  { margin-top: .5rem; font-size: .9rem; line-height: 1.65; color: #64748b; }
:root.dark .step-card { background: rgba(255, 255, 255, .035); border-color: rgba(255, 255, 255, .09); }
:root.dark .step-card h3 { color: #f1f5f9; }
:root.dark .step-card p  { color: #94a3b8; }

.step-number {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, #e01844, #a21caf);
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  box-shadow: 0 10px 24px -12px rgba(254, 44, 85, .9);
}

/* ---------- Feature cards ------------------------------------------------ */
.feature-card {
  border: 1px solid rgba(148, 163, 184, .25);
  border-radius: 1.35rem;
  background: #fff;
  padding: 1.5rem;
  transition: transform .25s ease, border-color .25s ease, background-color .25s ease;
}
.feature-card:hover { transform: translateY(-4px); border-color: rgba(254, 44, 85, .45); }
.feature-card h3 { margin-top: .9rem; font-size: 1rem; font-weight: 700; color: #0f172a; }
.feature-card p  { margin-top: .45rem; font-size: .875rem; line-height: 1.6; color: #64748b; }
.feature-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  font-size: 1.3rem;
  background: rgba(254, 44, 85, .1);
}
:root.dark .feature-card { background: rgba(255, 255, 255, .035); border-color: rgba(255, 255, 255, .08); }
:root.dark .feature-card h3 { color: #f1f5f9; }
:root.dark .feature-card p  { color: #94a3b8; }
:root.dark .feature-icon { background: rgba(254, 44, 85, .16); }

/* ---------- FAQ accordion ------------------------------------------------ */
.faq-item {
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 1.1rem;
  background: #fff;
  overflow: hidden;
  transition: border-color .2s ease;
}
.faq-item[open] { border-color: rgba(254, 44, 85, .45); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  list-style: none;
  padding: 1.05rem 1.25rem;
  font-size: .96rem;
  font-weight: 600;
  color: #0f172a;
  -webkit-tap-highlight-color: transparent;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-chevron {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 9999px;
  background: rgba(254, 44, 85, .12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fe2c55' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 9l-7 7-7-7'/%3E%3C/svg%3E") center/12px no-repeat;
  transition: transform .25s ease;
}
.faq-item[open] .faq-chevron { transform: rotate(180deg); }
.faq-body { padding: 0 1.25rem 1.15rem; font-size: .9rem; line-height: 1.7; color: #475569; }
.faq-body code { border-radius: .35rem; background: rgba(148, 163, 184, .18); padding: .1rem .35rem; font-size: .85em; }
:root.dark .faq-item { background: rgba(255, 255, 255, .035); border-color: rgba(255, 255, 255, .09); }
:root.dark .faq-item summary { color: #f1f5f9; }
:root.dark .faq-body { color: #94a3b8; }

/* ---------- Toasts ------------------------------------------------------- */
.toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  width: min(24rem, calc(100vw - 2rem));
  border-radius: 1rem;
  padding: .85rem 1rem;
  font-size: .875rem;
  font-weight: 500;
  color: #0f172a;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, .4);
  box-shadow: 0 20px 45px -20px rgba(0, 0, 0, .55);
  backdrop-filter: blur(8px);
  animation: toast-in .32s cubic-bezier(.21, 1.02, .73, 1) both;
}
.toast.is-leaving { animation: toast-out .25s ease forwards; }
.toast--success { border-left: 4px solid #16a34a; }
.toast--error   { border-left: 4px solid #fe2c55; }
.toast--info    { border-left: 4px solid #25f4ee; }
:root.dark .toast { background: #16161f; border-color: rgba(255, 255, 255, .12); color: #e2e8f0; }

@keyframes toast-in  { from { opacity: 0; transform: translateY(18px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to    { opacity: 0; transform: translateY(12px) scale(.96); } }

/* ---------- Scroll reveal ------------------------------------------------ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.22, 1, .36, 1); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Legal pages -------------------------------------------------- */
.legal h2 { margin-top: 2rem; font-size: 1.15rem; font-weight: 700; color: #0f172a; }
.legal h3 { margin-top: 1.4rem; font-size: 1rem; font-weight: 600; color: #0f172a; }
.legal p, .legal li { margin-top: .7rem; font-size: .93rem; line-height: 1.75; color: #475569; }
.legal ul { list-style: disc; padding-left: 1.4rem; margin-top: .6rem; }
.legal a { color: #e01844; text-decoration: underline; text-underline-offset: 3px; }
:root.dark .legal h2, :root.dark .legal h3 { color: #f1f5f9; }
:root.dark .legal p, :root.dark .legal li { color: #a8b3c4; }

/* ---------- Reduced motion ---------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
