/* ===================================================
   Date Night Card Generator – Landing Page
   =================================================== */

/* ── Reset ──────────────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: #2d2d2d;
  min-height: 100%;
  min-height: 100dvh;
  overflow-x: hidden;
}

.sr-only {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

/* ── Entrance Keyframes ─────────────────────────── */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes zoomFadeIn {
  from { opacity: 0; transform: scale(0.8); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.035); }
}


/* ══════════════════════════════════════════════════
   Layer 1 – Concentric-Hearts Background
   Bold alternating pink ↔ red, sharp edges
   ══════════════════════════════════════════════════ */
.hearts-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: #EAA4B8;                /* solid pink page fill */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  animation: fadeIn 0.9s ease-out both;
}

.hearts-svg {
  width: 95vmin;
  height: 95vmin;
  will-change: transform;
  animation: heartbeat 4s ease-in-out 1.5s infinite;
}


/* ══════════════════════════════════════════════════
   Layer 2 – Hero Content
   ══════════════════════════════════════════════════ */
.hero {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 2rem 1rem;
  text-align: center;
}


/* ══════════════════════════════════════════════════
   3-D Glossy Heart
   Balloon-like with per-bump specular highlights
   ══════════════════════════════════════════════════ */

.hero-heart-wrapper {
  filter:
    drop-shadow(0 22px 50px rgba(140, 14, 42, 0.45))
    drop-shadow(0  8px 16px rgba(140, 14, 42, 0.28));
  animation: zoomFadeIn 0.9s cubic-bezier(.16, 1, .3, 1) 0.2s both;
}

.glossy-heart {
  position: relative;
  width:  min(520px, 82vw);
  aspect-ratio: 1;
  clip-path: url(#heart-clip);

  /* ── Multi-layer 3-D lighting ── */
  background:
    /* 1 ▸ Left-bump specular (bright hot-spot) */
    radial-gradient(
      ellipse 38% 42% at 30% 24%,
      rgba(255, 255, 255, 0.65) 0%,
      rgba(255, 255, 255, 0.18) 45%,
      transparent 72%
    ),
    /* 2 ▸ Right-bump specular (softer) */
    radial-gradient(
      ellipse 32% 36% at 68% 22%,
      rgba(255, 255, 255, 0.40) 0%,
      rgba(255, 255, 255, 0.08) 50%,
      transparent 70%
    ),
    /* 3 ▸ Center crease shadow (where bumps meet) */
    radial-gradient(
      ellipse 14% 28% at 50% 22%,
      rgba(90, 0, 20, 0.32) 0%,
      transparent 70%
    ),
    /* 4 ▸ Bottom shadow (away from light) */
    radial-gradient(
      ellipse 65% 45% at 50% 82%,
      rgba(80, 0, 18, 0.38) 0%,
      transparent 70%
    ),
    /* 5 ▸ Edge darkening for 3-D roundness */
    radial-gradient(
      ellipse 72% 72% at 50% 42%,
      transparent 42%,
      rgba(90, 0, 18, 0.22) 100%
    ),
    /* 6 ▸ Subtle bottom-edge rim / ambient bounce */
    radial-gradient(
      ellipse 80% 25% at 50% 92%,
      rgba(255, 160, 180, 0.22) 0%,
      transparent 70%
    ),
    /* 7 ▸ Base gradient – lit upper-left → shadow lower-right */
    linear-gradient(
      148deg,
      #f06878  0%,
      #e84e66 18%,
      #dc3c58 34%,
      #d0304e 52%,
      #c02442 70%,
      #ab1a38 100%
    );

  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
  transition: transform 0.45s cubic-bezier(.25, .46, .45, .94);
}

.glossy-heart:hover {
  transform: scale(1.03);
}

/* ── Per-bump glass-shine overlays ──────────────── */
.heart-shine {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

/* Left bump — large bright crescent */
.heart-shine--left {
  top: 4%;
  left: 8%;
  width: 40%;
  height: 30%;
  background:
    radial-gradient(
      ellipse 70% 60% at 45% 40%,
      rgba(255, 255, 255, 0.52) 0%,
      rgba(255, 255, 255, 0.10) 60%,
      transparent 100%
    );
}

/* Right bump — smaller, softer */
.heart-shine--right {
  top: 3%;
  right: 12%;
  width: 32%;
  height: 24%;
  background:
    radial-gradient(
      ellipse 65% 55% at 50% 42%,
      rgba(255, 255, 255, 0.35) 0%,
      rgba(255, 255, 255, 0.06) 60%,
      transparent 100%
    );
}


/* ── Heart Text ─────────────────────────────────── */
.heart-text {
  position: relative;
  z-index: 1;
  width: 62%;
  padding-bottom: 14%;          /* push text up away from narrow tip */
  pointer-events: none;
  user-select: none;
}

.heart-heading {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-weight: 700;
  font-size: clamp(1.05rem, 3.2vw, 1.65rem);
  line-height: 1.35;
  color: #fff;
  text-shadow:
    0 2px 8px  rgba(80, 5, 20, 0.45),
    0 0  20px  rgba(255, 60, 90, 0.15);
  letter-spacing: 0.01em;
  margin-bottom: 0.45em;
}

.heart-subheading {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-weight: 500;
  font-style: italic;
  font-size: clamp(0.8rem, 2.2vw, 1.05rem);
  color: rgba(255, 255, 255, 0.93);
  text-shadow: 0 1px 5px rgba(80, 5, 20, 0.35);
  letter-spacing: 0.02em;
}


/* ── Tagline ────────────────────────────────────── */
.tagline {
  margin-top: 1.8rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: clamp(0.92rem, 2.2vw, 1.125rem);
  font-weight: 400;
  color: #fff;
  text-shadow: 0 1px 8px rgba(120, 15, 40, 0.32);
  max-width: 520px;
  line-height: 1.55;
  animation: fadeInUp 0.7s ease-out 0.6s both;
}


/* ── CTA Button ─────────────────────────────────── */
.cta-btn {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 16px 48px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: #c02444;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.92);
  border: none;
  border-radius: 100px;
  box-shadow:
    0 4px 20px rgba(140, 14, 42, 0.20),
    0 1.5px 5px rgba(140, 14, 42, 0.12);
  cursor: pointer;
  animation: fadeInUp 0.7s ease-out 0.8s both;
  transition:
    transform  0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.cta-btn:hover {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.98);
  box-shadow:
    0 8px 30px rgba(140, 14, 42, 0.30),
    0 2px  8px rgba(140, 14, 42, 0.16);
}

.cta-btn:active {
  transform: scale(0.98);
  box-shadow: 0 2px 8px rgba(140, 14, 42, 0.22);
}


/* ══════════════════════════════════════════════════
   Scroll Hint
   ══════════════════════════════════════════════════ */
.scroll-hint {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  animation: fadeInUp 0.7s ease-out 1.2s both;
}

.scroll-hint-text {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.04em;
}

.scroll-hint svg {
  animation: bounceDown 1.8s ease-in-out 2s infinite;
}

@keyframes bounceDown {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50%      { transform: translateY(5px); opacity: 1; }
}


/* ══════════════════════════════════════════════════
   Section 2 – Card Preview
   ══════════════════════════════════════════════════ */
.preview-section {
  position: relative;
  z-index: 1;
  background: #fdf2f5;
  padding: 5rem 1.5rem 4rem;
}

.preview-inner {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.preview-heading {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.6rem, 4.5vw, 2.4rem);
  font-weight: 700;
  color: #1F2937;
  margin-bottom: 0.6rem;
}

.preview-sub {
  font-family: 'Inter', sans-serif;
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  color: #6B7280;
  max-width: 520px;
  margin: 0 auto 3rem;
  line-height: 1.6;
}


/* ── Preview Cards Grid ──────────────────────── */
.preview-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 3.5rem;
}

.preview-card {
  background: #fff;
  border-radius: 12px;
  display: flex;
  overflow: hidden;
  box-shadow:
    0 4px 20px rgba(0,0,0,0.06),
    0 1px 4px rgba(0,0,0,0.04);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 220px;
}

.preview-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 12px 36px rgba(0,0,0,0.10),
    0 2px 8px rgba(0,0,0,0.06);
}

/* Sidebar */
.preview-sidebar {
  width: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-sidebar span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
}

/* Category colors */
.preview-card.adventure .preview-sidebar { background: #C04040; }
.preview-card.athome .preview-sidebar    { background: #4D8484; }
.preview-card.intown .preview-sidebar    { background: #5872A8; }

.preview-card.adventure .preview-dots { color: #C04040; }
.preview-card.athome .preview-dots    { color: #4D8484; }
.preview-card.intown .preview-dots    { color: #5872A8; }

/* Content */
.preview-content {
  flex: 1;
  min-width: 0;
  padding: 16px 16px 12px 14px;
  display: flex;
  flex-direction: column;
}

.preview-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.25;
  color: #1a1a1a;
  margin-bottom: 6px;
}

.preview-desc {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  line-height: 1.5;
  color: #555;
  flex: 1;
}

/* Footer */
.preview-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  margin-top: auto;
}

.preview-meta {
  display: flex;
  gap: 14px;
}

.preview-meta-col {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.preview-meta-label {
  font-family: 'Inter', sans-serif;
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #999;
}

.preview-dots {
  display: flex;
  align-items: center;
  gap: 2px;
  line-height: 0;
}

/* Expense dots */
.pdot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  opacity: 0.25;
}

.pdot.on {
  background: currentColor;
  opacity: 1;
}

/* Time clocks */
.pclock { display: inline-block; vertical-align: middle; }

/* Names */
.preview-names {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 10px;
  color: #aaa;
  white-space: nowrap;
}


/* ── Features Row ──────────────────────────────── */
.preview-features {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.feature-icon {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 28px;
  font-weight: 700;
  color: #D43862;
  width: 56px;
  height: 56px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(212, 56, 98, 0.12);
}

.feature-icon svg {
  stroke: #D43862;
}

.feature-text {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #4B5563;
}


/* ── Preview CTA ─────────────────────────────── */
.preview-cta {
  animation: none;
  margin-top: 0;
  background: linear-gradient(135deg, #FF6B9D 0%, #FF5252 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(255,107,157,0.3);
}

.preview-cta:hover {
  background: linear-gradient(135deg, #FF7DAD 0%, #FF6262 100%);
  color: #fff;
  box-shadow: 0 8px 28px rgba(255,107,157,0.4);
}

.preview-cta:active {
  box-shadow: 0 2px 8px rgba(255,107,157,0.3);
}


/* ══════════════════════════════════════════════════
   Responsive
   ══════════════════════════════════════════════════ */

@media (max-width: 860px) {
  .preview-cards {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
  .preview-features { gap: 24px; }
}

@media (max-width: 480px) {
  .hero { padding: 1.5rem 0.75rem; }
  .tagline { padding: 0 1rem; }
  .cta-btn { padding: 14px 36px; font-size: 1rem; }
  .preview-section { padding: 3.5rem 1rem 3rem; }
  .preview-features { gap: 16px; }
  .feature-icon { width: 48px; height: 48px; font-size: 24px; }
}

@media (max-width: 360px) {
  .glossy-heart { width: min(380px, 90vw); }
  .heart-text   { width: 66%; }
}

@media (max-height: 600px) and (orientation: landscape) {
  .glossy-heart { width: min(300px, 52vh); }
  .hearts-svg   { width: 75vmin; height: 75vmin; }
  .tagline      { margin-top: 1rem; }
  .cta-btn      { margin-top: 1rem; padding: 12px 32px; }
}

/* ══════════════════════════════════════════════════
   Accessibility – reduced motion
   ══════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
