/* DistroKid Referral Page Styles */

.dk-page {
  font-family: var(--font);
  color: var(--text);
}

/* ── Hero ───────────────────────────────────────────── */
.dk-hero {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a0e2e 50%, #0a0a0a 100%);
  padding: 80px 24px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.dk-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 30%, rgba(164,136,217,.15) 0%, transparent 70%);
  pointer-events: none;
}

.dk-hero-inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}

.dk-discount-badge {
  display: inline-block;
  background: linear-gradient(135deg, #A488D9, #f5d05e);
  color: #080808;
  font-size: .85rem;
  font-weight: 700;
  padding: 6px 20px;
  border-radius: var(--radius-full);
  margin-bottom: 24px;
  letter-spacing: .02em;
  box-shadow: 0 0 20px rgba(164,136,217,.4);
}

.dk-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 20px;
  color: var(--text);
}

.dk-gold {
  color: var(--gold);
}

.dk-hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,.75);
  line-height: 1.7;
  margin: 0 0 36px;
}

.dk-hero-note {
  font-size: .8rem;
  color: rgba(255,255,255,.4);
  margin-top: 16px;
}

/* ── CTA Buttons ─────────────────────────────────────── */
.dk-cta-btn {
  display: inline-block;
  background: linear-gradient(135deg, #A488D9, #b8931f);
  color: #080808;
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: transform .2s, box-shadow .2s, filter .2s;
  box-shadow: 0 4px 24px rgba(164,136,217,.35);
}

.dk-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(164,136,217,.5);
  filter: brightness(1.1);
  color: #080808;
  text-decoration: none;
}

.dk-cta-btn-outline {
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--gold);
  box-shadow: none;
}

.dk-cta-btn-outline:hover {
  background: rgba(164,136,217,.1);
  color: var(--gold);
}

.dk-cta-btn-large {
  font-size: 1.15rem;
  padding: 18px 48px;
}

/* ── Sections ─────────────────────────────────────────── */
.dk-section {
  padding: 72px 24px;
}

.dk-section-dark {
  background: rgba(255,255,255,.02);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.dk-container {
  max-width: 1100px;
  margin: 0 auto;
}

.dk-section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--text);
  text-align: center;
  margin: 0 0 48px;
}

/* ── Intro Card ───────────────────────────────────────── */
.dk-intro-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  max-width: 800px;
  margin: 0 auto;
  backdrop-filter: blur(12px);
}

.dk-intro-card p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(255,255,255,.85);
  margin: 0 0 16px;
}

.dk-intro-card p:last-child {
  margin-bottom: 0;
}

/* ── Audience Grid ────────────────────────────────────── */
.dk-audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.dk-audience-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  transition: border-color .2s, transform .2s;
}

.dk-audience-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
}

.dk-audience-icon {
  font-size: 2.4rem;
  display: block;
  margin-bottom: 14px;
}

.dk-audience-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 10px;
}

.dk-audience-card p {
  font-size: .9rem;
  color: rgba(255,255,255,.65);
  line-height: 1.6;
  margin: 0;
}

/* ── Features Grid ────────────────────────────────────── */
.dk-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.dk-feature-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: border-color .2s, transform .2s;
}

.dk-feature-card:hover {
  border-color: rgba(164,136,217,.4);
  transform: translateY(-3px);
}

.dk-feature-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 12px;
}

.dk-feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold);
  margin: 0 0 8px;
}

.dk-feature-card p {
  font-size: .9rem;
  color: rgba(255,255,255,.65);
  line-height: 1.6;
  margin: 0;
}

/* ── Pricing ──────────────────────────────────────────── */
.dk-pricing-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 700px;
  margin: 0 auto 20px;
}

.dk-pricing-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color .2s;
}

.dk-pricing-card:hover {
  border-color: rgba(164,136,217,.5);
}

.dk-pricing-card-plus {
  border-color: rgba(164,136,217,.3);
}

.dk-pricing-plan {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold);
}

.dk-pricing-desc {
  font-size: .9rem;
  color: rgba(255,255,255,.6);
  line-height: 1.5;
}

.dk-pricing-price {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dk-price-original {
  font-size: .9rem;
  color: rgba(255,255,255,.4);
  text-decoration: line-through;
}

.dk-price-final {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
}

.dk-per-year {
  font-size: .9rem;
  font-weight: 400;
  color: rgba(255,255,255,.5);
}

.dk-pricing-badge {
  display: inline-block;
  background: rgba(164,136,217,.15);
  border: 1px solid rgba(164,136,217,.3);
  color: var(--gold);
  font-size: .8rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  width: fit-content;
}

.dk-pricing-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dk-pricing-features li {
  font-size: .9rem;
  color: rgba(255,255,255,.75);
}

.dk-pricing-note {
  font-size: .8rem;
  color: rgba(255,255,255,.35);
  text-align: center;
  margin: 0;
}

/* ── FAQ ──────────────────────────────────────────────── */
.dk-faq {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dk-faq-item {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color .2s;
}

.dk-faq-item.open {
  border-color: rgba(164,136,217,.4);
}

.dk-faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  color: var(--text);
  font-size: 1rem;
  font-weight: 500;
  font-family: var(--font);
  text-align: right;
}

.dk-faq-q:hover {
  background: rgba(255,255,255,.03);
}

.dk-faq-arrow {
  font-size: .8rem;
  color: var(--gold);
  transition: transform .25s;
  flex-shrink: 0;
}

.dk-faq-item.open .dk-faq-arrow {
  transform: rotate(180deg);
}

.dk-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
  padding: 0 24px;
}

.dk-faq-item.open .dk-faq-a {
  max-height: 200px;
  padding: 0 24px 20px;
}

.dk-faq-a p {
  font-size: .95rem;
  color: rgba(255,255,255,.7);
  line-height: 1.7;
  margin: 0;
}

/* ── Final CTA ────────────────────────────────────────── */
.dk-section-cta {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a0e2e 50%, #0a0a0a 100%);
  border-top: 1px solid var(--border);
  text-align: center;
}

.dk-cta-final {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.dk-cta-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin: 0;
}

.dk-cta-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,.75);
  margin: 0;
}

.dk-cta-disclaimer {
  font-size: .78rem;
  color: rgba(255,255,255,.3);
  margin: 0;
}

/* ── RTL adjustments ──────────────────────────────────── */
.dk-page[dir="rtl"] .dk-faq-q {
  flex-direction: row-reverse;
  text-align: right;
}

.dk-page[dir="rtl"] .dk-faq-arrow {
  order: -1;
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 640px) {
  .dk-hero {
    padding: 56px 16px 48px;
  }

  .dk-section {
    padding: 48px 16px;
  }

  .dk-intro-card {
    padding: 24px 20px;
  }

  .dk-pricing-wrapper {
    grid-template-columns: 1fr;
  }

  .dk-cta-btn-large {
    font-size: 1rem;
    padding: 14px 28px;
  }
}
