/* Dirty Dice Couple Night - Theme Stylesheet */
:root {
  --cream: #FFFDF9;
  --cream-soft: #FFF5F0;
  --blush: #FDE8EC;
  --blush-dark: #F5CCD5;
  --wine: #820D38;
  --wine-deep: #5A0624;
  --wine-light: #9B1D48;
  --ink: #2D1728;
  --muted: #7E6A74;
  --peach: #FFD5A6;
  --peach-light: #FFF0E0;
  --gold: #DDA35D;
  --border-light: rgba(130, 13, 56, 0.12);
  --shadow-sm: 0 4px 16px rgba(130, 13, 56, 0.06);
  --shadow-md: 0 10px 30px rgba(130, 13, 56, 0.1);
  --shadow-lg: 0 20px 48px rgba(130, 13, 56, 0.16);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --radius-full: 9999px;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--cream);
  color: var(--ink);
  line-height: 1.6;
}

body {
  overflow-x: hidden;
  background-color: var(--cream);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Typography */
h1, h2, h3, h4, .serif-heading {
  font-family: var(--font-serif);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 3.8vw, 3rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
}

p {
  color: var(--muted);
  font-size: 1.05rem;
}

a {
  color: var(--wine);
  text-decoration: none;
  transition: all 0.25s ease;
}

a:hover {
  color: var(--wine-light);
}

/* Header & Navigation */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(255, 253, 249, 0.88);
  border-bottom: 1px solid var(--border-light);
  padding: 1rem 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.brand-logo img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(130, 13, 56, 0.2);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
}

.nav-links a:hover, .nav-links a.active {
  color: var(--wine);
}

.nav-btn {
  background: var(--wine);
  color: #fff !important;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(130, 13, 56, 0.25);
  transition: transform 0.2s, box-shadow 0.2s;
}

.nav-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(130, 13, 56, 0.35);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--ink);
}

/* Eyebrow badge */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--wine);
  background: var(--blush);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.2rem;
  border: 1px solid rgba(130, 13, 56, 0.15);
}

/* Hero Section */
.hero-section {
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3.5rem;
}

.hero-content p.subtitle {
  font-size: 1.25rem;
  line-height: 1.6;
  margin: 1.5rem 0 2rem;
  color: var(--muted);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-bottom: 2.5rem;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.8rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.cta-btn-primary {
  background: var(--wine);
  color: #fff !important;
  box-shadow: 0 8px 24px rgba(130, 13, 56, 0.3);
}

.cta-btn-primary:hover {
  background: var(--wine-deep);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(130, 13, 56, 0.4);
}

.cta-btn-secondary {
  background: var(--cream-soft);
  color: var(--wine) !important;
  border: 1.5px solid var(--blush-dark);
}

.cta-btn-secondary:hover {
  background: var(--blush);
  transform: translateY(-2px);
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 600;
}

.trust-badge-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.trust-badge-item svg {
  color: var(--wine);
}

/* Phone Mockup */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone-card {
  position: relative;
  width: 100%;
  max-width: 380px;
  border-radius: 40px;
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 12px rgba(255, 255, 255, 0.8), 0 0 0 14px var(--blush-dark);
  background: var(--cream);
}

.phone-card img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
}

.phone-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(45, 23, 40, 0.1) 0%, rgba(90, 6, 36, 0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  color: #fff;
}

.phone-overlay h4 {
  color: #fff;
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
}

.phone-overlay p {
  color: var(--peach-light);
  font-size: 0.95rem;
}

.floating-pill {
  position: absolute;
  top: 1.5rem;
  right: -1rem;
  background: #fff;
  border-radius: var(--radius-full);
  padding: 0.6rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-md);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--wine);
  border: 1px solid var(--blush);
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Features Grid */
.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--cream-soft);
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem;
}

.section-header p {
  margin-top: 1rem;
  font-size: 1.15rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.feature-icon-wrapper {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  background: var(--blush);
  color: var(--wine);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(130, 13, 56, 0.15);
}

.feature-card h3 {
  margin-bottom: 0.75rem;
}

/* Feature Spotlight Banners */
.spotlight-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  margin-bottom: 3rem;
}

.spotlight-card.reverse {
  direction: rtl;
}

.spotlight-card.reverse > * {
  direction: ltr;
}

.spotlight-content {
  padding: 3.5rem;
}

.spotlight-img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
  display: block;
}

/* Privacy Callout */
.privacy-banner {
  background: linear-gradient(135deg, var(--wine-deep) 0%, var(--wine) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 4rem 3rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.privacy-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 213, 166, 0.15) 0%, transparent 70%);
}

.privacy-banner h2 {
  color: #fff;
  margin-bottom: 1rem;
}

.privacy-banner p {
  color: var(--peach-light);
  font-size: 1.15rem;
  max-width: 600px;
}

.privacy-banner .cta-btn {
  background: var(--peach);
  color: var(--wine-deep) !important;
  font-weight: 800;
}

.privacy-banner .cta-btn:hover {
  background: #fff;
  transform: translateY(-2px);
}

/* Blog Styles */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.blog-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.blog-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-body {
  padding: 1.8rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-meta {
  font-size: 0.8rem;
  color: var(--wine);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.blog-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.blog-card p {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex: 1;
}

.blog-link {
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* Policy Content Pages */
.policy-container {
  max-width: 860px;
  margin: 3rem auto 6rem;
  background: #fff;
  padding: 3.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.policy-container h1 {
  margin-bottom: 0.8rem;
}

.policy-meta {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-light);
}

.policy-content h2 {
  font-size: 1.5rem;
  margin: 2.2rem 0 1rem;
  color: var(--wine);
}

.policy-content h3 {
  font-size: 1.2rem;
  margin: 1.5rem 0 0.8rem;
}

.policy-content p, .policy-content ul, .policy-content ol {
  margin-bottom: 1.2rem;
  font-size: 1.02rem;
  line-height: 1.7;
}

.policy-content ul, .policy-content ol {
  padding-left: 1.5rem;
  color: var(--muted);
}

.policy-content li {
  margin-bottom: 0.5rem;
}

.highlight-box {
  background: var(--cream-soft);
  border-left: 4px solid var(--wine);
  padding: 1.5rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.8rem 0;
}

.highlight-box strong {
  color: var(--wine);
}

/* Form Styles */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  color: var(--ink);
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 0.9rem 1.2rem;
  border: 1.5px solid var(--blush-dark);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  background: #fff;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--wine);
  box-shadow: 0 0 0 3px rgba(130, 13, 56, 0.15);
}

/* Footer */
footer.site-footer {
  background: var(--ink);
  color: var(--peach-light);
  padding: 4.5rem 0 2rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand p {
  color: #C0AEB8;
  margin: 1rem 0 1.5rem;
  font-size: 0.95rem;
  max-width: 320px;
}

.footer-col h4 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #C0AEB8;
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: var(--peach);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  color: #9C8994;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-cta {
    justify-content: center;
  }
  .trust-badges {
    justify-content: center;
  }
  .spotlight-card, .spotlight-card.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }
  .spotlight-img {
    height: 280px;
  }
  .spotlight-content {
    padding: 2rem;
  }
  .privacy-banner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .privacy-banner .cta-btn {
    margin: 0 auto;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid var(--border-light);
  }
  .nav-links.show {
    display: flex;
  }
  .mobile-toggle {
    display: block;
  }
  .policy-container {
    padding: 2rem 1.25rem;
    margin: 1.5rem auto 3rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* -------------------------------------------------------------
   Interactive Downloader, Alert Message & Disabled Button States
   ------------------------------------------------------------- */
@keyframes spinAnimation {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.download-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spinAnimation 0.75s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

.cta-btn-secondary .download-spinner {
  border: 2.5px solid rgba(130, 13, 56, 0.25);
  border-top-color: var(--wine);
}

.cta-btn.btn-downloading-disabled,
.cta-btn[disabled],
.cta-btn[aria-disabled="true"] {
  opacity: 0.65 !important;
  pointer-events: none !important;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
  filter: grayscale(0.2) !important;
}

/* Download Alert Overlay & Modal */
.download-alert-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(45, 23, 40, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.download-alert-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.download-alert-modal {
  background: #FFFDF9;
  border: 2px solid var(--wine);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(130, 13, 56, 0.3);
  max-width: 440px;
  width: 100%;
  padding: 2.25rem 2rem;
  text-align: center;
  transform: translateY(20px) scale(0.96);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.download-alert-overlay.active .download-alert-modal {
  transform: translateY(0) scale(1);
}

.alert-modal-icon-wrap {
  width: 68px;
  height: 68px;
  margin: 0 auto 1.25rem;
  background: linear-gradient(135deg, var(--blush) 0%, var(--peach) 100%);
  border: 2px solid rgba(130, 13, 56, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--wine);
  box-shadow: 0 8px 24px rgba(130, 13, 56, 0.12);
  animation: pulseBadge 2s infinite ease-in-out;
}

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

.alert-modal-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.alert-modal-msg {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.alert-modal-badge {
  background: #FFF0E0;
  border: 1px solid rgba(221, 163, 93, 0.4);
  color: #7A4200;
  padding: 0.7rem 1rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-align: left;
  margin-bottom: 1.5rem;
}

.alert-modal-btn {
  width: 100%;
  justify-content: center;
  padding: 0.9rem 1.5rem;
  font-size: 1rem;
  cursor: pointer;
}

/* Floating Top Alert Toast */
.download-top-toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-30px);
  z-index: 10001;
  background: #FFFDF9;
  border: 1.5px solid var(--wine);
  border-radius: 99px;
  padding: 0.75rem 1.4rem;
  box-shadow: 0 12px 36px rgba(130, 13, 56, 0.2);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  max-width: 90vw;
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.download-top-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.download-top-toast.success {
  border-color: #2E7D32;
  background: #F1F8E9;
  color: #1B5E20;
}

.download-top-toast .toast-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--wine);
  display: inline-block;
  box-shadow: 0 0 0 3px rgba(130, 13, 56, 0.2);
  animation: pulseIndicator 1.5s infinite;
}

@keyframes pulseIndicator {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}

.download-top-toast.success .toast-indicator {
  background: #2E7D32;
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.2);
}

.download-top-toast .toast-text {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
}

.download-top-toast.success .toast-text {
  color: #1B5E20;
}

.download-top-toast .toast-close-btn {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--muted);
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
}

/* In-Card Progress Alert Box */
.download-alert-card {
  background: var(--cream-soft);
  border: 1.5px solid var(--blush-dark);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-top: 1rem;
  box-shadow: var(--shadow-sm);
}

.in-card-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  font-size: 0.84rem;
  line-height: 1.4;
  margin-bottom: 0.9rem;
}

.in-card-alert-warning {
  background: #FFF0E0;
  border: 1px solid rgba(221, 163, 93, 0.35);
  color: #7A4200;
}

.in-card-alert-warning .in-card-alert-icon {
  color: #C07010;
  flex-shrink: 0;
  margin-top: 1px;
}

.in-card-alert-success {
  background: #E8F5E9;
  border: 1px solid #A5D6A7;
  color: #1B5E20;
}

.in-card-alert-success .in-card-alert-icon {
  color: #2E7D32;
  flex-shrink: 0;
  margin-top: 1px;
}

