/* ============================================
   style.css — Page-specific styles for nawrasalali.com
   ============================================ */

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--accent-glow, var(--gold-glow)) 0%, transparent 70%);
  pointer-events: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  min-height: calc(100vh - var(--nav-height));
  padding: 60px 0;
}

.hero__content {
  z-index: 1;
}

.hero__badge {
  display: inline-block;
  background: rgba(212, 165, 116, 0.12);
  border: 1px solid rgba(212, 165, 116, 0.25);
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 24px;
}

.hero__badge--crimson {
  background: rgba(196, 25, 25, 0.12);
  border-color: rgba(196, 25, 25, 0.3);
  color: var(--crimson);
}

.hero__badge--sunflower {
  background: rgba(253, 184, 19, 0.12);
  border-color: rgba(253, 184, 19, 0.3);
  color: var(--sunflower);
}

.hero__title {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin-bottom: 16px;
  line-height: 1.1;
}

.hero__subtitle {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 12px;
  line-height: 1.5;
}

.hero__tagline {
  color: var(--gold);
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.hero__author {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 32px;
}

.hero__buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__image {
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
  position: relative;
}

.hero__cover {
  width: 340px;
  max-width: 100%;
  border-radius: var(--radius-md);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 60px var(--accent-glow, var(--gold-glow));
  animation: floatBook 6s ease-in-out infinite;
}

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

/* --- Books Grid --- */
.books-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* --- Apps Section --- */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.app-card {
  background: var(--bg-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: all var(--transition-med);
  text-decoration: none;
  display: block;
}
.app-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}

.app-card__icon {
  font-size: 2.4rem;
  margin-bottom: 20px;
  color: var(--gold);
}
.app-card__icon svg {
  width: 40px;
  height: 40px;
}

.app-card__name {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.app-card__domain {
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 16px;
}

.app-card__desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.app-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold);
  font-weight: 600;
  font-size: 0.9rem;
}
.app-card__link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}
.app-card:hover .app-card__link svg {
  transform: translateX(4px);
}

/* --- Author Section --- */
.author {
  position: relative;
}

.author__grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: start;
}

.author__photo {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  border: 2px solid var(--surface-border);
}

.author__text p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.author__highlight {
  color: var(--gold) !important;
  font-weight: 600;
  font-size: 1.25rem !important;
  font-family: 'Playfair Display', serif;
  font-style: italic;
}

/* --- Intro / Backstory Section --- */
.backstory {
  position: relative;
}

.backstory__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.backstory__text h2 {
  margin-bottom: 24px;
}

.backstory__text p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.backstory__stat-list {
  list-style: none;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.backstory__stat-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 1rem;
}

.backstory__stat-list li strong {
  color: var(--gold);
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  min-width: 60px;
}

/* --- Big Pull Quote --- */
.pullquote {
  position: relative;
  text-align: center;
  padding: 80px 0;
}

.pullquote::before {
  content: '"';
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Playfair Display', serif;
  font-size: 10rem;
  color: var(--accent-glow, var(--gold-glow));
  line-height: 1;
  pointer-events: none;
}

.pullquote__text {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 16px;
  position: relative;
  z-index: 1;
}

.pullquote__author {
  color: var(--text-muted);
  font-size: 0.95rem;
  position: relative;
  z-index: 1;
}

/* --- Chapter Breakdown (Parts) --- */
.parts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.part-card {
  background: var(--bg-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.part-card__label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent, var(--gold));
  margin-bottom: 8px;
}

.part-card__title {
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.part-card__chapters {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.part-card__chapters li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
}

.part-card__chapters li span.ch-num {
  color: var(--accent, var(--gold));
  font-weight: 700;
  font-family: 'Playfair Display', serif;
  min-width: 28px;
  flex-shrink: 0;
}

/* --- Cross-Promo Section --- */
.crosspromo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 800px;
  margin: 0 auto;
}

.crosspromo-card {
  display: flex;
  gap: 20px;
  background: var(--bg-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-decoration: none;
  transition: all var(--transition-med);
}
.crosspromo-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.crosspromo-card__img {
  width: 80px;
  height: auto;
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  flex-shrink: 0;
}

.crosspromo-card__info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.crosspromo-card__title {
  font-size: 1.05rem;
  font-family: 'Playfair Display', serif;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.crosspromo-card__desc {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.crosspromo-card__link {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.85rem;
}

/* --- Origin Story Block --- */
.origin {
  position: relative;
}

.origin__content {
  max-width: 780px;
  margin: 0 auto;
}

.origin__content p {
  font-size: 1.15rem;
  line-height: 1.9;
  margin-bottom: 20px;
}

.origin__content p:first-of-type::first-letter {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  float: left;
  line-height: 1;
  margin-right: 12px;
  color: var(--accent, var(--gold));
  font-weight: 700;
}

/* --- Chapter with Description List --- */
.chapter-desc-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chapter-desc-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 24px 28px;
  background: var(--bg-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}
.chapter-desc-item:hover {
  border-color: var(--accent, var(--gold));
}

.chapter-desc-item__num {
  font-family: 'Playfair Display', serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent, var(--gold));
  text-transform: uppercase;
  letter-spacing: 1px;
}

.chapter-desc-item__title {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.chapter-desc-item__desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 0;
}

/* --- Crisis Stats (dramatic) --- */
.crisis-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
  padding: 48px 0;
}

.crisis-stat {
  padding: 32px 24px;
  background: var(--bg-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
}

.crisis-stat__number {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--crimson);
  margin-bottom: 8px;
  line-height: 1;
}

.crisis-stat__label {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* --- Dramatic Text Block --- */
.dramatic-text {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.dramatic-text h2 {
  margin-bottom: 24px;
}

.dramatic-text p {
  font-size: 1.15rem;
  line-height: 1.9;
  max-width: 680px;
  margin: 0 auto 16px;
}

/* --- Illustration Gallery --- */
.illus-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.illus-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--surface-border);
  transition: all var(--transition-med);
  background: var(--bg-card);
}
.illus-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}

.illus-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.illus-card__caption {
  padding: 16px 20px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-style: italic;
}

/* --- Two-Column Layout --- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* --- Chapter Sunflower Illustrations --- */
.sunflower-chapter-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sunflower-chapter {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast);
}
.sunflower-chapter:hover {
  border-color: var(--sunflower);
}

.sunflower-chapter__img {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.sunflower-chapter__num {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--sunflower);
  margin-bottom: 4px;
}

.sunflower-chapter__title {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.sunflower-chapter__desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
    padding: 40px 0;
  }

  .hero__buttons {
    justify-content: center;
  }

  .hero__image {
    order: -1;
  }

  .hero__cover {
    width: 260px;
  }

  .books-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .apps-grid {
    grid-template-columns: 1fr;
  }

  .backstory__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .author__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .author__photo {
    width: 200px;
    margin: 0 auto;
  }

  .crosspromo-grid {
    grid-template-columns: 1fr;
  }

  .crisis-stats {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .illus-grid {
    grid-template-columns: 1fr;
  }

  .two-col {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .parts-grid {
    grid-template-columns: 1fr;
  }

  .chapter-desc-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .sunflower-chapter {
    grid-template-columns: 1fr;
  }

  .sunflower-chapter__img {
    width: 100%;
    height: 160px;
  }
}

@media (max-width: 480px) {
  .pullquote__text {
    font-size: 1.2rem;
  }

  .pullquote::before {
    font-size: 6rem;
  }
}

/* --- Free Chapter Email Gate --- */
.free-chapter {
  position: relative;
  overflow: hidden;
}

.free-chapter__inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.free-chapter__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  background: rgba(212, 165, 116, 0.1);
  border: 1px solid rgba(212, 165, 116, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent, var(--gold));
}

.free-chapter__icon svg {
  width: 28px;
  height: 28px;
}

.free-chapter__form {
  display: flex;
  gap: 12px;
  max-width: 500px;
  margin: 32px auto 0;
  flex-wrap: wrap;
  justify-content: center;
}

.free-chapter__input {
  flex: 1;
  min-width: 260px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.free-chapter__input:focus {
  border-color: var(--accent, var(--gold));
}

.free-chapter__input::placeholder {
  color: var(--text-muted);
}

.free-chapter__submit {
  padding: 16px 32px;
  background: linear-gradient(135deg, var(--accent, var(--gold)), var(--gold-dark));
  color: #0A1628;
  border: none;
  border-radius: var(--radius-md);
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.free-chapter__submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-glow, var(--gold-glow));
}

.free-chapter__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.free-chapter__privacy {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.free-chapter__success {
  display: none;
  margin-top: 32px;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--accent, var(--gold));
  border-radius: var(--radius-lg);
  animation: fadeInUp 0.5s ease;
}

.free-chapter__success.visible {
  display: block;
}

.free-chapter__success h3 {
  color: var(--accent, var(--gold));
  margin-bottom: 12px;
  font-size: 1.3rem;
}

.free-chapter__success p {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.free-chapter__download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 40px;
  background: linear-gradient(135deg, var(--accent, var(--gold)), var(--gold-dark));
  color: #0A1628;
  border-radius: var(--radius-md);
  font-family: 'DM Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.free-chapter__download:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-glow, var(--gold-glow));
  color: #0A1628;
}

.free-chapter__download svg {
  width: 20px;
  height: 20px;
}

.free-chapter__error {
  display: none;
  color: #ef4444;
  font-size: 0.9rem;
  margin-top: 12px;
}

.free-chapter__error.visible {
  display: block;
}

/* =============================================
   DESKTOP ENHANCEMENTS — Page-specific (1024px+)
   ============================================= */
@media (min-width: 1024px) {
  /* Hero: larger cover, wider gap, bigger text */
  .hero__grid {
    gap: 80px;
    padding: 80px 0;
  }

  .hero__cover {
    width: 400px;
  }

  .hero__title {
    font-size: clamp(2.8rem, 4.5vw, 4rem);
    margin-bottom: 20px;
  }

  .hero__subtitle {
    font-size: 1.3rem;
    margin-bottom: 16px;
  }

  .hero__tagline {
    font-size: 1.15rem;
    margin-bottom: 12px;
  }

  .hero__author {
    font-size: 1.05rem;
    margin-bottom: 40px;
  }

  .hero__buttons {
    gap: 20px;
  }

  /* Books grid: bigger gap, wider cards */
  .books-grid {
    gap: 40px;
  }

  /* Apps grid: 3 columns on desktop */
  .apps-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
  }

  .app-card {
    padding: 36px 28px;
  }

  .app-card__name {
    font-size: 1.4rem;
  }

  .app-card__desc {
    font-size: 1rem;
    line-height: 1.7;
  }

  /* Author section: wider photo column */
  .author__grid {
    grid-template-columns: 320px 1fr;
    gap: 64px;
  }

  .author__text p {
    font-size: 1.15rem;
    line-height: 1.85;
  }

  .author__highlight {
    font-size: 1.35rem !important;
  }

  /* Backstory: wider gap */
  .backstory__grid {
    gap: 80px;
  }

  .backstory__text p {
    font-size: 1.15rem;
    line-height: 1.85;
  }

  .backstory__stat-list li {
    font-size: 1.05rem;
  }

  .backstory__stat-list li strong {
    font-size: 1.3rem;
    min-width: 70px;
  }

  /* Pullquote: bigger on desktop */
  .pullquote {
    padding: 100px 0;
  }

  .pullquote__text {
    font-size: 2.2rem;
    max-width: 900px;
  }

  /* Parts grid: always 3-col for chapter breakdown */
  .parts-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
  }

  .part-card {
    padding: 40px;
  }

  .part-card__title {
    font-size: 1.4rem;
  }

  .part-card__chapters li {
    font-size: 1rem;
  }

  /* Cross-promo: wider grid */
  .crosspromo-grid {
    max-width: 1000px;
    gap: 40px;
  }

  .crosspromo-card {
    padding: 28px;
    gap: 24px;
  }

  .crosspromo-card__img {
    width: 100px;
  }

  .crosspromo-card__title {
    font-size: 1.15rem;
  }

  /* Origin story: wider text block */
  .origin__content {
    max-width: 900px;
  }

  .origin__content p {
    font-size: 1.2rem;
    line-height: 1.95;
  }

  /* Chapter descriptions: wider layout */
  .chapter-desc-item {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 28px 32px;
  }

  .chapter-desc-item__title {
    font-size: 1.15rem;
  }

  .chapter-desc-item__desc {
    font-size: 0.95rem;
  }

  /* Chapter desc list: single-column inside two-col (Prepare Now Part I / Part II) */
  .two-col .chapter-desc-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  /* Crisis stats: bigger numbers */
  .crisis-stats {
    gap: 40px;
    padding: 64px 0;
  }

  .crisis-stat {
    padding: 40px 32px;
  }

  .crisis-stat__number {
    font-size: 3.2rem;
  }

  .crisis-stat__label {
    font-size: 1.05rem;
  }

  /* Dramatic text: wider */
  .dramatic-text {
    max-width: 900px;
  }

  .dramatic-text p {
    font-size: 1.25rem;
    max-width: 780px;
  }

  /* Illustration grid: 3 columns */
  .illus-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }

  .illus-card img {
    height: 300px;
  }

  /* Two-column: wider gap */
  .two-col {
    gap: 64px;
  }

  /* Sunflower chapter list: 2-column grid */
  .sunflower-chapter-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }

  .sunflower-chapter {
    grid-template-columns: 1fr;
    padding: 32px;
  }

  .sunflower-chapter__title {
    font-size: 1.15rem;
  }

  .sunflower-chapter__desc {
    font-size: 0.95rem;
    line-height: 1.7;
  }
}

/* Extra-wide desktop (1440px+) */
@media (min-width: 1440px) {
  .hero__grid {
    gap: 100px;
  }

  .hero__cover {
    width: 440px;
  }

  .hero__title {
    font-size: 4rem;
  }

  .backstory__grid {
    gap: 100px;
  }

  .author__grid {
    grid-template-columns: 360px 1fr;
    gap: 80px;
  }

  .apps-grid {
    gap: 40px;
  }

  .app-card {
    padding: 56px 40px;
  }
}

/* ===== LAYOUT FIXES — Desktop Improvements ===== */

/* Reduce excessive section padding on desktop */
@media (min-width: 1024px) {
  .section.free-chapter {
    padding: 64px 0;
  }

  /* Tighter section spacing where content is light */
  .section:has(.pullquote__text) {
    padding: 48px 0;
  }
}

/* Fix chapter cards on Prepare Now — equal height rows */
.two-col {
  align-items: start;
}

.two-col .chapter-desc-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chapter-desc-item {
  display: flex;
  flex-direction: column;
  height: auto;
}

/* Fix sunflower chapter cards — proper grid on desktop */
@media (min-width: 768px) {
  .sunflower-chapter-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .sunflower-chapter {
    height: 100%;
  }
}

/* Fix pricing grid for 3 cards on desktop */
@media (min-width: 768px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 960px;
    margin: 0 auto;
    gap: 24px;
  }
}

/* Ensure download button SVG never overflows */
.free-chapter__download svg,
.free-chapter__icon svg,
.free-chapter__success svg {
  width: 20px;
  height: 20px;
  max-width: 20px;
  max-height: 20px;
  flex-shrink: 0;
}
