/* ============================================================
   InteractiveWish — Christmas Scratch Card Landing CSS
   Prefix: tsc-
   Extends universal-landing.css
   Palette allineata all'editor: rosso #C62828,
   verde abete #1F5C34, abete scuro #14361F, crema #FDF8F2.
   ============================================================ */

/* ── FOGLIE (hero) ─────────────────────────────────────────── */
.xsc-snow-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.xsc-snow-item {
  position: absolute;
  animation: tsc-float linear infinite;
  opacity: 0;
  user-select: none;
  font-style: normal;
}
@keyframes tsc-float {
  0%   { opacity: 0; transform: translate(0, 0) rotate(-20deg) scale(0.8); }
  8%   { opacity: 0.85; }
  50%  { transform: translate(18px, 55vh) rotate(160deg) scale(1); }
  92%  { opacity: 0.5; }
  100% { opacity: 0; transform: translate(-12px, 110vh) rotate(330deg) scale(1.05); }
}

/* ── HERO title em ──────────────────────────────────────────── */
.ulp-hero-title em {
  background: linear-gradient(135deg, #c62828 0%, #d4af37 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── Idea card borders — alternate pumpkin / cranberry ──────────── */
.ulp-idea-card {
  border-left-color: #c62828;
}
.ulp-idea-card:nth-child(2n) {
  border-left-color: #1f5c34;
}

/* ── Emotional close block ──────────────────────────────────── */
.tsc-emotional-close {
  background: linear-gradient(135deg, rgba(198, 40, 40,0.16) 0%, rgba(31, 92, 52,0.14) 100%);
  border-color: rgba(198, 40, 40,0.3);
}

/* ── CTA primary ────────────────────────────────────────────── */
.ulp-cta--primary {
  background: linear-gradient(135deg, #c62828 0%, #9e1c1c 100%);
  color: #14361f;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(198, 40, 40,0.4);
}
.ulp-cta--primary:hover {
  background: linear-gradient(135deg, #d63c3c 0%, #c62828 100%);
  box-shadow: 0 8px 26px rgba(198, 40, 40,0.5);
}

/* ── Step number — maroon for even ────────────────────── */
.ulp-how-step:nth-child(2n) .ulp-how-step-num {
  background: linear-gradient(135deg, #1f5c34 0%, #0f2a17 100%);
  color: #fff;
}

/* ── Nav CTA ────────────────────────────────────────────────── */
.ulp-nav-cta--primary {
  background: linear-gradient(135deg, #c62828 0%, #9e1c1c 100%);
  color: #14361f;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(198, 40, 40,0.38);
}

/* ── Eyebrow gradient ───────────────────────────────────────── */
.ulp-eyebrow {
  background: linear-gradient(135deg, #c62828 0%, #1f5c34 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── Logo gradient ──────────────────────────────────────────── */
.ulp-logo-text {
  background: linear-gradient(135deg, #c62828 0%, #d4af37 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── Sections: crema calda e lavanda, come l'editor ─────────── */
.ulp-section--alt {
  background: #fdf8f2;
}
.ulp-section--light {
  background: #f9ecec;
}

/* ── Example cards: il messaggio e il protagonista ──────────── */
.ulp-example-card {
  border-color: rgba(198, 40, 40,0.3);
}
.ulp-example-label {
  color: #9e1c1c;
}

/* ── Stars ──────────────────────────────────────────────────── */
.ulp-stars {
  color: #c62828;
}

@media (prefers-reduced-motion: reduce) {
  .xsc-snow-item {
    animation: none;
    opacity: 0.4;
  }
}

/* ── PLANS (free vs premium) ────────────────────────────────── */
.tsc-plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  align-items: start;
  max-width: 760px;
  margin: 0 auto;
}
.tsc-plan {
  background: #fff;
  border-radius: var(--ulp-radius, 16px);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(23, 19, 38, 0.12);
  display: flex;
  flex-direction: column;
  position: relative;
}
/* Il premium sta leggermente più in alto: a parità di contenuto l'occhio
   si ferma prima sul riquadro che sporge. */
.tsc-plan--featured {
  box-shadow: 0 10px 40px rgba(198, 40, 40, 0.28);
  border: 2px solid rgba(198, 40, 40, 0.45);
}
@media (min-width: 720px) {
  .tsc-plan--featured {
    transform: translateY(-8px);
  }
}
.tsc-plan-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, #c62828 0%, #9e1c1c 100%);
  color: #14361f;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 5px 11px;
  border-radius: 999px;
  z-index: 2;
}
.tsc-plan-header {
  padding: 28px 22px 20px;
  text-align: center;
}
.tsc-plan-header--free {
  background: #f9ecec;
}
.tsc-plan-header--premium {
  background: linear-gradient(160deg, #fff4f4 0%, #fbdada 100%);
}
.tsc-plan-emoji {
  font-size: 2.2rem;
  display: block;
  margin-bottom: 8px;
}
.tsc-plan-header h3 {
  margin: 0 0 6px;
  font-size: 1.3rem;
  color: #14361f;
}
.tsc-plan-price {
  font-size: 1.9rem;
  font-weight: 800;
  color: #9e1c1c;
  line-height: 1.1;
}
.tsc-plan-header--free .tsc-plan-price {
  color: #1f5c34;
}
.tsc-plan-price s {
  font-size: 1rem;
  font-weight: 600;
  opacity: 0.55;
  margin-left: 6px;
}
.tsc-plan-desc {
  margin: 10px 0 0;
  font-size: 0.92rem;
  color: #3f4a42;
  line-height: 1.5;
}
.tsc-plan-features {
  list-style: none;
  margin: 0;
  padding: 20px 22px;
  flex: 1;
}
.tsc-plan-features li {
  padding: 9px 0;
  font-size: 0.94rem;
  color: #102518;
  border-bottom: 1px solid rgba(31, 92, 52, 0.1);
}
.tsc-plan-features li:last-child {
  border-bottom: none;
}
.tsc-plan-cta {
  margin: 0 22px 22px;
  text-align: center;
}
/* La gratuita non deve competere col premium: contorno invece di pieno. */
.tsc-plan-cta--free {
  background: #fff;
  color: #1f5c34;
  border: 2px solid #1f5c34;
  box-shadow: none;
}
.tsc-plan-cta--free:hover {
  background: #f9ecec;
}
.tsc-plans-note {
  text-align: center;
  margin: 28px auto 0;
  font-size: 0.88rem;
  color: #3f4a42;
  max-width: 480px;
}
