/* ============================================================
   ▼▼▼ TEMPORARY — BETA MODE (remove this whole block after beta) ▼▼▼
   Hides pricing + its nav link and styles the top beta banner.
   To revert: delete this block AND the .dd-beta-banner element in index.html.
   ============================================================ */
.dd-beta-banner {
  display: block;
  text-align: center;
  padding: 0.7rem 1rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
  background: linear-gradient(135deg, #7a40ec 0%, #4550e1 100%);
  text-decoration: none;
}
.dd-beta-banner:hover { color: #fff; text-decoration: underline; }
.dd-beta-banner .dd-beta-cta { text-decoration: underline; }
/* Hide the Pricing section and its nav item during beta */
#pricing { display: none !important; }
.navbar-nav li:has(a[href="#pricing"]) { display: none !important; }
/* ▲▲▲ END TEMPORARY BETA MODE ▲▲▲ */


/* ============================================================
   Daily Decks — custom polish layer (loads after styles.css)
   Brand palette taken from the app icon: violet → blue gradient.
   ============================================================ */

:root {
  --dd-violet: #7a40ec;
  --dd-blue: #4550e1;
  --dd-gradient: linear-gradient(135deg, #7a40ec 0%, #4550e1 100%);
  --dd-gradient-soft: linear-gradient(135deg, rgba(122, 64, 236, 0.12), rgba(69, 80, 225, 0.12));
  /* Re-point the theme's primary onto the brand violet/blue. */
  --primary-color: #6d47e6;
  --primary-rgb: 109, 71, 230;
}

/* ---------- Motion ---------- */
@keyframes dd-rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.dd-rise { animation: dd-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both; }
.dd-rise-2 { animation-delay: 0.08s; }
.dd-rise-3 { animation-delay: 0.16s; }
.dd-rise-4 { animation-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  .dd-rise, .dd-rise-2, .dd-rise-3, .dd-rise-4 { animation: none; }
}

/* ---------- Hero ---------- */
#hero.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 520px at 50% -10%, rgba(122, 64, 236, 0.28), transparent 60%),
    radial-gradient(800px 400px at 85% 10%, rgba(69, 80, 225, 0.22), transparent 55%);
  padding-top: clamp(3rem, 8vw, 6rem);
  padding-bottom: clamp(3rem, 8vw, 6rem);
}
.hero-app-icon {
  width: clamp(96px, 16vw, 132px);
  height: auto;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(109, 71, 230, 0.45), 0 4px 14px rgba(0, 0, 0, 0.18);
}
.hero-wordmark {
  margin: 0.9rem 0 0.4rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  font-size: clamp(1.9rem, 5vw, 2.9rem);
  line-height: 1.05;
  color: var(--text-dark);
}
.hero-title {
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.08;
  font-size: clamp(2.1rem, 5.2vw, 3.6rem);
  max-width: 15ch;
  margin: 0 auto 1.25rem;
}
/* Make the app name in the nav a bit more prominent */
.site-header .brand-name { font-size: 1.3rem; font-weight: 800; }
.hero-title .dd-grad-text {
  background: var(--dd-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-subtitle {
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  color: var(--text-muted);
  max-width: 46ch;
  margin-inline: auto;
}

/* ---------- Trust badges ---------- */
.dd-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-top: 1.5rem;
}
.dd-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  backdrop-filter: blur(6px);
}
.dd-badge i { color: var(--primary-color); }

/* ---------- Buttons ---------- */
.cta-button-primary,
.btn-primary {
  background: var(--dd-gradient);
  border: none;
  font-weight: 700;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  box-shadow: 0 10px 26px rgba(109, 71, 230, 0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cta-button-primary:hover,
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(109, 71, 230, 0.5);
}

/* ---------- Section: How it works ---------- */
.dd-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 768px) { .dd-steps { grid-template-columns: 1fr; } }
.dd-step {
  text-align: center;
  padding: 2rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.dd-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 1rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  background: var(--dd-gradient);
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(109, 71, 230, 0.35);
}
.dd-step h4 { font-weight: 700; margin-bottom: 0.4rem; }
.dd-step p { color: var(--text-muted); margin: 0; }

/* ---------- Feature / highlight card lift ---------- */
.feature-card, .highlight-card {
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.feature-card:hover, .highlight-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(109, 71, 230, 0.35);
}
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--dd-gradient-soft);
  margin-bottom: 0.9rem;
}
.feature-icon-image { font-size: 1.5rem; color: var(--primary-color); }

/* ---------- Feature group labels & Free/Pro tags ---------- */
.dd-group-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin: 2.5rem 0 1.5rem;
}
.dd-group-head h3 { margin: 0; font-weight: 700; font-size: 1.4rem; }
.dd-tag {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
}
.dd-tag-free { color: var(--text-muted); background: var(--border-color); }
.dd-tag-pro { color: #fff; background: var(--dd-gradient); }

/* ---------- Pricing ---------- */
.dd-pricing { padding: var(--section-padding); background: var(--section-surface-b); }
.dd-pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
  align-items: stretch;
}
@media (max-width: 768px) { .dd-pricing-grid { grid-template-columns: 1fr; } }
.dd-price-card {
  display: flex;
  flex-direction: column;
  text-align: center;
  padding: 2.5rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
  height: 100%;
}
.dd-price-card .btn { margin-top: auto; }
/* Free card: plain border, no gradient ring */
.dd-price-card--free { box-shadow: var(--shadow-md); }
.dd-price-card--free::before { display: none; }
/* Free badge: muted, distinct from the Pro gradient badge */
.dd-price-badge.dd-tag-free {
  color: var(--text-muted);
  background: var(--border-color);
}
.dd-price-card::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: var(--radius-lg);
  background: var(--dd-gradient);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.dd-price-badge {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary-color);
  background: var(--dd-gradient-soft);
  border-radius: 999px;
  margin-bottom: 1rem;
}
.dd-price { font-size: 3rem; font-weight: 800; letter-spacing: -0.02em; }
.dd-price small { font-size: 1rem; font-weight: 600; color: var(--text-muted); }
.dd-price-note { margin: 0.35rem 0 0; font-size: 0.8rem; color: var(--text-muted); }
.dd-price-list { list-style: none; padding: 0; margin: 1.5rem 0; text-align: left; }
.dd-price-list li { padding: 0.4rem 0; display: flex; gap: 0.6rem; align-items: flex-start; }
.dd-price-list li i { color: var(--primary-color); margin-top: 0.15rem; }

/* ---------- Screenshots carousel ---------- */
.dd-shots-section { padding: var(--section-padding); }
.dd-carousel { position: relative; }
.dd-shots {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 0.5rem 0.25rem 1.5rem;
  scrollbar-width: none;
}
.dd-shots::-webkit-scrollbar { display: none; }
.dd-shot {
  flex: 0 0 auto;
  width: clamp(210px, 70vw, 240px);
  scroll-snap-align: center;
  margin: 0;
  text-align: center;
}
/* Prev/next arrows (desktop); mobile relies on swipe */
.dd-arrow {
  position: absolute;
  top: 44%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--primary-color);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  z-index: 2;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.dd-arrow:hover { background: var(--dd-gradient); color: #fff; transform: translateY(-50%) scale(1.06); }
.dd-arrow-prev { left: -6px; }
.dd-arrow-next { right: -6px; }
@media (max-width: 768px) { .dd-arrow { display: none; } }

/* Fade hints at the carousel edges (signals more content) */
.dd-carousel::before,
.dd-carousel::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 1.5rem;
  width: 44px;
  z-index: 1;
  pointer-events: none;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}
.dd-carousel::before { left: 0; background: linear-gradient(to right, var(--bg-page), transparent); }
.dd-carousel::after { right: 0; background: linear-gradient(to left, var(--bg-page), transparent); }
.dd-carousel.at-start::before { opacity: 0; }
.dd-carousel.at-end::after { opacity: 0; }

/* Dot indicators */
.dd-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
}
.dd-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--border-color);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.dd-dot.is-active { background: var(--dd-gradient); transform: scale(1.3); }
.dd-shot img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 34px;
  border: 7px solid #0d0d0f;
  background: #0d0d0f;
  box-shadow: 0 18px 44px rgba(17, 12, 46, 0.28);
}
.dd-shot figcaption {
  margin-top: 1rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* ---------- Footer polish ---------- */
.footer-tagline {
  font-size: 1.15rem;
  font-weight: 700;
  background: var(--dd-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.site-footer a { color: var(--primary-color); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
