/* ─────────────────────────────────────────────
   DREAMSPUN BRAND STYLESHEET
   "Their story. Their hero. Their adventure."
   Used inside .ds-section blocks within TDIH chrome
   ───────────────────────────────────────────── */

:root {
  --ds-night: #0D0D2B;        /* Deep navy — primary background */
  --ds-deep-sky: #1A1A4E;     /* Deep navy — glow ring */
  --ds-story-hour: #2E4A7A;   /* Mid navy — card backgrounds */
  --ds-starlight: #E9A84C;    /* Gold — primary accent, CTAs */
  --ds-dark-gold: #BA7517;    /* Darker gold — depth */
  --ds-aurora: #9FE1CB;       /* Teal — secondary accent */
  --ds-page-white: #FFFDF7;   /* Warm off-white — body text */
}

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,500;1,500;1,600&display=swap');

/* ─── BASE SECTION ─────────────────────────── */
.ds-section {
  background: var(--ds-night);
  color: var(--ds-page-white);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  position: relative;
  overflow: hidden;
}

/* Atmospheric background glow on every section */
.ds-section::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 800px;
  background: radial-gradient(circle, rgba(159, 225, 203, 0.10) 0%, rgba(13, 13, 43, 0) 60%);
  pointer-events: none;
  z-index: 0;
}

.ds-section > * { position: relative; z-index: 1; }

/* Container */
.ds-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ─── TYPOGRAPHY ───────────────────────────── */
.ds-section h1,
.ds-section h2,
.ds-section h3,
.ds-section h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  font-style: italic;
  color: var(--ds-page-white);
  line-height: 1.15;
  letter-spacing: -0.005em;
}

.ds-section h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  margin-bottom: 1.25rem;
}

.ds-section h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  margin-bottom: 1rem;
}

.ds-section h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.ds-section p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(255, 253, 247, 0.78);
  margin-bottom: 1rem;
  font-weight: 300;
}

.ds-section a {
  color: var(--ds-starlight);
  text-decoration: none;
  transition: color .15s;
}
.ds-section a:hover {
  color: var(--ds-aurora);
}

.ds-eyebrow {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ds-starlight);
  margin-bottom: 1rem;
}

/* ─── WORDMARK ─────────────────────────────── */
.ds-wordmark {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 600;
  letter-spacing: -0.01em;
  display: inline-block;
}
.ds-wordmark .dream { color: var(--ds-page-white); }
.ds-wordmark .spun  { color: var(--ds-starlight); }

/* ─── HERO (full-bleed watercolor) ─────────── */
.ds-section.ds-hero::before { display: none; }
.ds-hero {
  padding: 6rem 0 5rem;
  text-align: center;
  position: relative;
  background-image:
    linear-gradient(
      180deg,
      rgba(13, 13, 43, 0.78) 0%,
      rgba(13, 13, 43, 0.55) 35%,
      rgba(13, 13, 43, 0.7) 75%,
      rgba(13, 13, 43, 0.92) 100%
    ),
    url('/dreamspun/img/dreamspun-watercolor.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}
.ds-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(13, 13, 43, 0.45) 100%);
  pointer-events: none;
  z-index: 0;
}
.ds-hero > * { position: relative; z-index: 1; }

.ds-hero-logo {
  width: 110px;
  height: 110px;
  margin: 0 auto 1.5rem;
  display: block;
  filter: drop-shadow(0 0 30px rgba(233, 168, 76, 0.55))
          drop-shadow(0 0 12px rgba(233, 168, 76, 0.4));
}

.ds-hero .ds-wordmark {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: 1.25rem;
}

.ds-hero h1 {
  margin-bottom: 1.25rem;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.ds-hero .ds-tagline {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--ds-aurora);
  margin-bottom: 1rem;
}

.ds-hero .ds-subhead {
  font-size: 1.1rem;
  color: rgba(255, 253, 247, 0.85);
  max-width: 600px;
  margin: 0 auto 2.25rem;
  line-height: 1.65;
}

.ds-hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

/* ─── BUTTONS ──────────────────────────────── */
.ds-btn-primary,
.ds-btn-ghost,
.ds-appstore-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .95rem 2rem;
  border-radius: 999px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .01em;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s, background .15s;
  white-space: nowrap;
}

.ds-btn-primary {
  background: var(--ds-starlight);
  color: var(--ds-night);
  box-shadow: 0 8px 28px rgba(233, 168, 76, 0.35);
}
.ds-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 40px rgba(233, 168, 76, 0.5);
  color: var(--ds-night);
}

.ds-btn-ghost {
  background: transparent;
  color: var(--ds-page-white);
  border: 1.5px solid rgba(255, 253, 247, 0.4);
}
.ds-btn-ghost:hover {
  border-color: var(--ds-starlight);
  color: var(--ds-starlight);
  background: rgba(233, 168, 76, 0.08);
}

.ds-appstore-btn {
  background: var(--ds-page-white);
  color: var(--ds-night);
  gap: .75rem;
  padding: .85rem 1.6rem;
}
.ds-appstore-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 40px rgba(255, 253, 247, 0.25);
  color: var(--ds-night);
}
.ds-appstore-btn svg {
  width: 22px; height: 22px; flex-shrink: 0;
}

/* ─── INTRO / SECTION HEADERS ──────────────── */
.ds-section-intro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}
.ds-section-intro h2 { margin-bottom: 1rem; }
.ds-section-intro p {
  font-size: 1.1rem;
  color: rgba(255, 253, 247, 0.75);
}

/* Standard content section */
.ds-section.ds-content {
  padding: 5rem 0;
}

/* ─── FEATURE CARDS ────────────────────────── */
.ds-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.ds-feature-card {
  background: rgba(46, 74, 122, 0.35);
  border: 1px solid rgba(159, 225, 203, 0.12);
  border-radius: 18px;
  padding: 2rem 1.75rem;
  text-align: left;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.ds-feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(233, 168, 76, 0.4);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}
.ds-feature-card .ds-feature-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--ds-starlight), var(--ds-dark-gold));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--ds-night);
  font-size: 1.4rem;
  font-weight: 800;
}
.ds-feature-card h3 {
  color: var(--ds-page-white);
  margin-bottom: .5rem;
}
.ds-feature-card p {
  font-size: .95rem;
  margin-bottom: 0;
}

/* ─── HOW IT WORKS — STEPS ─────────────────── */
.ds-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  counter-reset: ds-step;
  margin: 2.5rem 0 1.5rem;
}
.ds-step {
  text-align: center;
  padding: 1.5rem 1rem;
  position: relative;
}
.ds-step::before {
  counter-increment: ds-step;
  content: counter(ds-step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--ds-starlight);
  color: var(--ds-night);
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-style: italic;
  font-size: 1.2rem;
  margin: 0 auto 1rem;
  box-shadow: 0 0 0 4px rgba(233, 168, 76, 0.18);
}
.ds-step h4 {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--ds-page-white);
  margin: 0 0 .25rem;
}
.ds-step p {
  font-size: .85rem;
  color: rgba(255, 253, 247, 0.65);
  margin: 0;
}
.ds-steps-followup {
  text-align: center;
  font-style: italic;
  color: var(--ds-aurora);
  font-size: 1.05rem;
  margin-top: 1.25rem;
}

/* ─── STORY STYLES — 3 CARDS ──────────────── */
.ds-styles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.ds-style-card {
  background: rgba(46, 74, 122, 0.4);
  border: 1px solid rgba(159, 225, 203, 0.15);
  border-radius: 18px;
  padding: 2rem 1.75rem;
  position: relative;
  overflow: hidden;
}
.ds-style-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ds-starlight), var(--ds-aurora));
  opacity: .85;
}
.ds-style-emoji {
  font-size: 2rem;
  margin-bottom: .75rem;
  display: block;
}
.ds-style-card h3 {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: var(--ds-page-white);
  margin-bottom: .35rem;
}
.ds-style-card .ds-style-desc {
  font-size: .95rem;
  color: rgba(255, 253, 247, 0.78);
  margin-bottom: 1.25rem;
}
.ds-style-sample {
  background: rgba(13, 13, 43, 0.55);
  border-left: 3px solid var(--ds-starlight);
  padding: .85rem 1rem;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: .95rem;
  color: var(--ds-aurora);
  border-radius: 0 8px 8px 0;
  line-height: 1.55;
}

/* ─── PRICING TIERS ────────────────────────── */
.ds-pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
  max-width: 820px;
  margin: 2.5rem auto 0;
}
.ds-price-card {
  background: rgba(46, 74, 122, 0.4);
  border: 1px solid rgba(159, 225, 203, 0.15);
  border-radius: 22px;
  padding: 2.25rem 2rem;
  position: relative;
}
.ds-price-card.is-featured {
  border-color: rgba(233, 168, 76, 0.55);
  background: linear-gradient(155deg, rgba(46, 74, 122, 0.55) 0%, rgba(13, 13, 43, 0.55) 100%);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}
.ds-price-card .ds-price-badge {
  position: absolute;
  top: -12px;
  left: 2rem;
  background: var(--ds-starlight);
  color: var(--ds-night);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .35rem .75rem;
  border-radius: 99px;
}
.ds-price-card h3 {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 1.4rem;
  color: var(--ds-page-white);
  margin-bottom: .25rem;
}
.ds-price-card .ds-price-tagline {
  font-size: .9rem;
  color: rgba(255, 253, 247, 0.6);
  margin-bottom: 1.5rem;
}
.ds-price-amount {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 600;
  color: var(--ds-starlight);
  font-size: 2.4rem;
  line-height: 1;
  margin-bottom: .35rem;
}
.ds-price-period {
  font-family: 'DM Sans', sans-serif;
  font-style: normal;
  font-size: .9rem;
  color: rgba(255, 253, 247, 0.65);
  margin-bottom: 1.5rem;
  font-weight: 400;
}
.ds-price-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
}
.ds-price-features li {
  padding: .55rem 0;
  font-size: .95rem;
  color: rgba(255, 253, 247, 0.85);
  border-bottom: 1px solid rgba(159, 225, 203, 0.08);
  display: flex; align-items: flex-start; gap: .55rem;
}
.ds-price-features li:last-child { border-bottom: 0; }
.ds-price-features li::before {
  content: '✦';
  color: var(--ds-starlight);
  font-size: .85rem;
  flex-shrink: 0;
  margin-top: .15rem;
}

/* ─── FAQ ──────────────────────────────────── */
.ds-faq {
  max-width: 760px;
  margin: 0 auto;
}
.ds-faq-item {
  border-bottom: 1px solid rgba(159, 225, 203, 0.15);
  padding: 1.5rem 0;
}
.ds-faq-item:first-child { padding-top: 0; }
.ds-faq-item h3 {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 1.2rem;
  color: var(--ds-page-white);
  margin-bottom: .5rem;
}
.ds-faq-item p {
  margin-bottom: 0;
  font-size: 1rem;
}

/* ─── CTA STRIP ────────────────────────────── */
.ds-cta-strip {
  text-align: center;
  padding: 4.5rem 0;
  background: linear-gradient(135deg, var(--ds-night) 0%, var(--ds-deep-sky) 100%);
  position: relative;
  overflow: hidden;
  color: var(--ds-page-white);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}
.ds-cta-strip::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center top, rgba(233, 168, 76, 0.22) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.ds-cta-strip > * { position: relative; z-index: 1; }
.ds-cta-strip h2 {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  line-height: 1.2;
  margin-bottom: .75rem;
  color: var(--ds-page-white);
}
.ds-cta-strip p {
  font-size: 1.1rem;
  color: rgba(255, 253, 247, 0.85);
  margin-bottom: 1.75rem;
  font-weight: 300;
  line-height: 1.6;
}

/* ─── DRIFTING STARS (subtle) ───────────────── */
.ds-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.ds-star {
  position: absolute;
  width: 2px; height: 2px;
  background: var(--ds-page-white);
  border-radius: 50%;
  opacity: 0;
  animation: ds-twinkle 4s ease-in-out infinite;
}
@keyframes ds-twinkle {
  0%, 100% { opacity: 0; transform: scale(0.8); }
  50% { opacity: 0.9; transform: scale(1); }
}

/* ─── RESPONSIVE ───────────────────────────── */
@media (max-width: 900px) {
  .ds-feature-grid { grid-template-columns: 1fr; }
  .ds-styles-grid { grid-template-columns: 1fr; }
  .ds-pricing-grid { grid-template-columns: 1fr; max-width: 480px; }
  .ds-steps { grid-template-columns: repeat(2, 1fr); }
  .ds-section.ds-content { padding: 3.5rem 0; }
  .ds-hero { padding: 4rem 0 3.5rem; }
}
@media (max-width: 540px) {
  .ds-steps { grid-template-columns: 1fr; }
  .ds-hero-actions { flex-direction: column; }
  .ds-btn-primary, .ds-btn-ghost, .ds-appstore-btn { width: 100%; }
}

/* About-page specific layout */
.ds-about-grid {
  display: grid;
  grid-template-columns: 5fr 4fr;
  gap: 3rem;
  align-items: center;
  margin: 2rem 0;
}
.ds-about-illustration {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(233, 168, 76, 0.25);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.4);
}
.ds-about-illustration img {
  display: block;
  width: 100%;
  height: auto;
}
@media (max-width: 900px) {
  .ds-about-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* Big anchor pull-quote */
.ds-anchor-quote {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  line-height: 1.4;
  color: var(--ds-aurora);
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
}
.ds-anchor-quote::before { content: '"'; color: var(--ds-starlight); margin-right: .15em; }
.ds-anchor-quote::after  { content: '"'; color: var(--ds-starlight); margin-left: .15em; }

/* Section dividers */
.ds-divider {
  border: 0;
  border-top: 1px solid rgba(159, 225, 203, 0.15);
  margin: 0 auto;
  max-width: 80%;
}
