/* ============================================================
   Double J Studios — Candy Burst Design System
   doublejstudios.com
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&family=Work+Sans:wght@400;600;700&display=swap');

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

:root {
  --purple-deep:   #4B0082;
  --purple-mid:    #7B4FBF;
  --purple-soft:   #C9A8F5;
  --pink-hot:      #FF69B4;
  --pink-soft:     #FFB6C1;
  --yellow:        #FFD84A;
  --white:         #FFFFFF;
  --cream:         #FFF8F0;
  --text-dark:     #2D0050;
  --text-mid:      #6B3A8A;
  --radius-lg:     28px;
  --radius-pill:   999px;
  --shadow:        0 8px 32px rgba(75,0,130,0.15);
  --shadow-card:   0 4px 20px rgba(75,0,130,0.12);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Work Sans', sans-serif;
  color: var(--text-dark);
  background: var(--cream);
  line-height: 1.6;
}

h1, h2, h3, .logo-text {
  font-family: 'Fredoka One', cursive;
  letter-spacing: 0.01em;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ── Utility ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  font-family: 'Work Sans', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.2); }

.btn-primary {
  background: var(--pink-hot);
  color: var(--white);
}
.btn-secondary {
  background: var(--yellow);
  color: var(--text-dark);
}
.btn-purple {
  background: var(--purple-deep);
  color: var(--white);
}
.btn-lg { padding: 18px 44px; font-size: 1.15rem; }

/* ── Sparkle dots (decorative) ── */
.sparkle-bg {
  position: relative;
  overflow: hidden;
}
.sparkle-bg::before,
.sparkle-bg::after {
  content: '✦';
  position: absolute;
  color: var(--yellow);
  opacity: 0.35;
  font-size: 2rem;
  pointer-events: none;
}
.sparkle-bg::before { top: 12%; left: 4%; }
.sparkle-bg::after  { bottom: 15%; right: 5%; }

/* ── Nav ── */
.site-nav {
  background: var(--purple-deep);
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(0,0,0,0.25);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo img { height: 40px; border-radius: 8px; }
.logo-text {
  font-size: 1.4rem;
  color: var(--white);
}
.logo-text span { color: var(--yellow); }

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  color: rgba(255,255,255,0.85);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--yellow); }

.nav-cta {
  background: var(--pink-hot);
  color: var(--white) !important;
  padding: 8px 22px;
  border-radius: var(--radius-pill);
}
.nav-cta:hover { background: #ff85c0 !important; color: var(--white) !important; }

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, var(--purple-deep) 0%, #6A0DAD 50%, #9B30D0 100%);
  padding: 80px 24px 90px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '✦';
  position: absolute; top: 10%; left: 6%;
  color: var(--yellow); opacity: 0.4; font-size: 2.5rem;
}
.hero::after {
  content: '✦';
  position: absolute; bottom: 12%; right: 7%;
  color: var(--pink-soft); opacity: 0.4; font-size: 1.8rem;
}
.hero-tag {
  display: inline-block;
  background: var(--yellow);
  color: var(--text-dark);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 20px;
}
.hero h1 span { color: var(--yellow); }
.hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  max-width: 560px;
  margin: 0 auto 36px;
}
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── Section headers ── */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--purple-deep);
  margin-bottom: 12px;
}
.section-header p {
  color: var(--text-mid);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto;
}
.section-tag {
  display: inline-block;
  background: var(--pink-soft);
  color: var(--purple-deep);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 5px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── Book card ── */
.books-section { padding: 80px 24px; }

.book-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  gap: 0;
  max-width: 860px;
  margin: 0 auto;
}
.book-card-cover {
  width: 300px;
  flex-shrink: 0;
  background: linear-gradient(160deg, var(--purple-soft), var(--pink-soft));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
}
.book-card-cover img {
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  max-height: 340px;
  object-fit: contain;
}
.book-card-info {
  padding: 40px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}
.book-badge {
  display: inline-block;
  background: var(--yellow);
  color: var(--text-dark);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  width: fit-content;
}
.book-card-info h3 {
  font-family: 'Fredoka One', cursive;
  font-size: 1.7rem;
  color: var(--purple-deep);
  line-height: 1.2;
}
.book-card-info p {
  color: var(--text-mid);
  font-size: 0.98rem;
  line-height: 1.7;
}
.book-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.book-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-dark);
}
.book-features li::before {
  content: '✓';
  background: var(--pink-hot);
  color: var(--white);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}
.book-card-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }

/* ── Free book banner ── */
.free-banner {
  background: linear-gradient(135deg, var(--pink-hot), #C850A0);
  padding: 70px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.free-banner::before {
  content: '✦';
  position: absolute; top: 15%; left: 5%;
  color: rgba(255,255,255,0.3); font-size: 2rem;
}
.free-banner::after {
  content: '✦';
  position: absolute; bottom: 15%; right: 5%;
  color: rgba(255,255,255,0.3); font-size: 1.5rem;
}
.free-banner h2 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  color: var(--white);
  margin-bottom: 16px;
}
.free-banner p {
  color: rgba(255,255,255,0.9);
  font-size: 1.1rem;
  max-width: 500px;
  margin: 0 auto 32px;
}

/* ── Footer ── */
.site-footer {
  background: var(--purple-deep);
  color: rgba(255,255,255,0.75);
  text-align: center;
  padding: 40px 24px;
}
.site-footer .logo-text { color: var(--white); margin-bottom: 12px; font-size: 1.2rem; }
.site-footer p { font-size: 0.88rem; margin-bottom: 6px; }
.footer-links { display: flex; gap: 24px; justify-content: center; margin-top: 16px; }
.footer-links a { color: var(--purple-soft); font-size: 0.88rem; }
.footer-links a:hover { color: var(--yellow); }

/* ── Free Book Landing Page ── */
.landing-hero {
  background: linear-gradient(135deg, #4B0082 0%, #7B2FBE 60%, #A855C8 100%);
  padding: 70px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.landing-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 16px;
}
.landing-hero h1 span { color: var(--yellow); }
.landing-hero p {
  color: rgba(255,255,255,0.88);
  font-size: 1.1rem;
  max-width: 500px;
  margin: 0 auto;
}

.form-section { padding: 60px 24px 80px; }

.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  max-width: 560px;
  margin: 0 auto;
  padding: 48px 44px;
}
.form-card h2 {
  font-size: 1.8rem;
  color: var(--purple-deep);
  margin-bottom: 8px;
}
.form-card .sub {
  color: var(--text-mid);
  font-size: 0.95rem;
  margin-bottom: 28px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}
.form-group label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-dark);
}
.form-group input {
  padding: 14px 18px;
  border: 2px solid #E8D5F5;
  border-radius: 14px;
  font-family: 'Work Sans', sans-serif;
  font-size: 1rem;
  color: var(--text-dark);
  transition: border-color 0.2s;
  outline: none;
}
.form-group input:focus { border-color: var(--purple-mid); }
.form-submit {
  width: 100%;
  padding: 16px;
  background: var(--pink-hot);
  color: var(--white);
  border: none;
  border-radius: var(--radius-pill);
  font-family: 'Work Sans', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  margin-top: 8px;
}
.form-submit:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255,105,180,0.4); }
.form-disclaimer {
  text-align: center;
  font-size: 0.82rem;
  color: #999;
  margin-top: 16px;
}
.form-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 40px auto;
  max-width: 560px;
}
.form-step {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  border-radius: 16px;
  padding: 18px 24px;
  box-shadow: var(--shadow-card);
}
.step-num {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fredoka One', cursive;
  font-size: 1.3rem;
  color: var(--white);
  flex-shrink: 0;
}
.step-num.pink   { background: var(--pink-hot); }
.step-num.purple { background: var(--purple-mid); }
.step-num.yellow { background: #E6A800; }
.step-text strong { display: block; font-size: 1rem; color: var(--text-dark); }
.step-text span   { font-size: 0.88rem; color: var(--text-mid); }

/* ── Thank you page ── */
.thankyou-section {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  text-align: center;
}
.thankyou-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 60px 48px;
  max-width: 520px;
}
.thankyou-icon { font-size: 4rem; margin-bottom: 20px; }
.thankyou-card h1 {
  font-size: 2.2rem;
  color: var(--purple-deep);
  margin-bottom: 16px;
}
.thankyou-card p {
  color: var(--text-mid);
  font-size: 1.05rem;
  margin-bottom: 12px;
  line-height: 1.7;
}

/* ── Books page ── */
.books-hero {
  background: linear-gradient(135deg, var(--purple-deep), #8B3FC8);
  padding: 60px 24px 70px;
  text-align: center;
}
.books-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  color: var(--white);
  margin-bottom: 12px;
}
.books-hero p { color: rgba(255,255,255,0.85); font-size: 1.05rem; }

/* ── Responsive ── */
@media (max-width: 700px) {
  .book-card { flex-direction: column; }
  .book-card-cover { width: 100%; padding: 24px; }
  .book-card-info { padding: 28px 24px; }
  .nav-links { display: none; }
  .form-card { padding: 32px 24px; }
  .thankyou-card { padding: 40px 24px; }
}