/* ======================================================
   JIVIKA â€” SHARED BOOK PAGE STYLES
   Applies to: book1.html, book2.html, book3.html
   ====================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cabinet+Grotesk:wght@400;500;700;800;900&family=Satoshi:wght@400;500;700;900&display=swap');

:root {
  /* Core brand palette */
  --bg: #f0f4ed;
  --bg-card: #ffffff;
  --text-dark: #1a2b1a;
  --text-body: #3d4d3d;
  --text-muted: #7a8c7a;
  --accent-green: #2c5530;
  --accent-light: #4a7c50;
  --border-color: rgba(44, 85, 48, 0.18);
  --gold: #c9943a;

  /* Book accent themes â€” overridden per page */
  --book-accent: #26422d;
  --book-accent-light: #e8f0e8;
  --book-accent-hero-bg: linear-gradient(135deg, #e8f5e9 0%, #f0f4ed 60%);
  --book-badge-bg: rgba(38, 66, 45, 0.1);
  --book-badge-color: #26422d;
}

/* ---- BOOK 1 (7-Day Reset) â€” Deep Green ---- */
.book-theme-1 {
  --book-accent: #26422d;
  --book-accent-light: #e4ede6;
  --book-accent-hero-bg: linear-gradient(135deg, #dceede 0%, #f0f4ed 70%);
  --book-badge-bg: rgba(38, 66, 45, 0.1);
  --book-badge-color: #1e3d26;
}

/* ---- BOOK 2 (Summer Cooling) â€” Sky Teal ---- */
.book-theme-2 {
  --book-accent: #1a6b7a;
  --book-accent-light: #e0f4f7;
  --book-accent-hero-bg: linear-gradient(135deg, #d8eff5 0%, #f0f4ed 70%);
  --book-badge-bg: rgba(26, 107, 122, 0.1);
  --book-badge-color: #1a5a6a;
}

/* ---- BOOK 3 (Fat Burning) â€” Warm Saffron ---- */
.book-theme-3 {
  --book-accent: #b36a14;
  --book-accent-light: #fdf0e0;
  --book-accent-hero-bg: linear-gradient(135deg, #fce8cc 0%, #f5f0e8 70%);
  --book-badge-bg: rgba(179, 106, 20, 0.1);
  --book-badge-color: #8c4f0a;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Cabinet Grotesk', 'Satoshi', sans-serif;
  background: var(--bg);
  color: var(--text-body);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---- FLOATING LEAVES (same as homepage) ---- */
#leaves-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.leaf {
  position: absolute;
  opacity: 0;
  animation: floatLeaf linear infinite;
  pointer-events: none;
  font-size: 1.4rem;
}

.falling-leaf {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  will-change: transform, opacity;
}

@keyframes floatLeaf {
  0%   { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  5%   { opacity: 0.5; }
  90%  { opacity: 0.4; }
  100% { transform: translateY(-120px) rotate(720deg); opacity: 0; }
}

/* ---- BACK NAV ---- */
.back-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
  background: rgba(240, 244, 237, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  transition: box-shadow 0.3s;
}

.back-nav.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: color 0.2s;
}

.back-link:hover { color: var(--book-accent); }
.back-link i { font-size: 1rem; }

.nav-logo {
  font-family: 'Cabinet Grotesk', sans-serif;
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--accent-green);
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-buy-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--book-accent);
  color: #fff;
  text-decoration: none;
  padding: 10px 22px;
  border-radius: 100px;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  transition: all 0.3s;
  white-space: nowrap;
}

.nav-buy-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  opacity: 0.92;
}

/* ---- HERO SECTION ---- */
.book-hero {
  min-height: 100vh;
  padding-top: 90px;
  display: flex;
  align-items: center;
  background: var(--book-accent-hero-bg);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.book-hero-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 60px 40px;
  display: grid;
  grid-template-columns: 1.1fr 460px;
  gap: 80px;
  align-items: center;
  justify-content: space-between;
}

.book-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--book-badge-bg);
  color: var(--book-badge-color);
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 24px;
}

.book-badge::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--book-accent);
  display: inline-block;
}

.book-title {
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  font-weight: 900;
  color: var(--text-dark);
  line-height: 1.05;
  margin-bottom: 18px;
  letter-spacing: -1.5px;
}

.book-title span {
  color: var(--book-accent);
}

.book-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  font-weight: 500;
  line-height: 1.5;
  max-width: 560px;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 40px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.feature-item:last-child {
  border-bottom: none;
}

.feature-item i {
  color: var(--book-accent);
  font-size: 1.2rem;
  margin-top: 2px;
  background: var(--book-badge-bg);
  padding: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.feature-item span {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.45;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 36px;
  margin-top: 10px;
}

.btn-buy-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--book-accent);
  color: #fff;
  text-decoration: none;
  padding: 16px 36px;
  border-radius: 100px;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 20px rgba(0,0,0,0.15), 0 0 35px rgba(0,0,0,0.1);
  animation: book-glowing 2.5s infinite;
  position: relative;
  overflow: hidden;
}

.btn-buy-primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: rgba(255,255,255,0.25);
  transform: rotate(45deg);
  animation: book-shine 3s infinite linear;
}

@keyframes book-shine {
  0% { left: -100%; }
  100% { left: 100%; }
}

@keyframes book-glowing {
  0% { box-shadow: 0 0 15px var(--book-accent), 0 0 25px rgba(0,0,0,0.1); transform: scale(1); }
  50% { box-shadow: 0 0 30px var(--book-accent), 0 0 50px rgba(0,0,0,0.2); transform: scale(1.03); }
  100% { box-shadow: 0 0 15px var(--book-accent), 0 0 25px rgba(0,0,0,0.1); transform: scale(1); }
}

.btn-buy-primary:hover {
  transform: scale(1.06) translateY(-3px);
  box-shadow: 0 0 30px var(--book-accent), 0 0 50px rgba(0,0,0,0.3);
  color: #fff;
}

.btn-inside {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1.5px solid var(--border-color);
  color: var(--text-dark);
  border-radius: 100px;
  padding: 14px 24px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.5px;
  font-family: inherit;
  transition: all 0.3s;
}

.btn-inside:hover {
  border-color: var(--book-accent);
  color: var(--book-accent);
  background: var(--book-accent-light);
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
}

.stars-row {
  display: flex;
  gap: 2px;
  color: #c98e4f;
}

/* ---- BOOK COVER IMAGE ---- */
.book-cover-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}

.book-cover-img {
  width: 100%;
  max-width: 450px;
  height: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 15px 35px rgba(0,0,0,0.15));
  transform: rotate(0deg);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.book-cover-img:hover {
  transform: rotate(0deg) scale(1.05);
}

.book-cover-placeholder {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 3/4;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--book-accent), var(--accent-light));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  padding: 40px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.25);
}

.book-cover-placeholder h2 {
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 16px;
}

.book-cover-placeholder p {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* ---- INSIDE GUIDE SECTION ---- */
.inside-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px 80px;
  display: none;
  animation: fadeSlideUp 0.5s ease;
}

.inside-section.visible { display: block; }

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.section-label {
  text-align: center;
  margin-bottom: 60px;
}

.section-label h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 900;
  color: var(--text-dark);
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.section-label p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto;
}

.inside-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.inside-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.inside-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--book-accent);
}

.inside-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

.inside-card-num {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--book-accent);
  opacity: 0.12;
  line-height: 1;
  margin-bottom: 8px;
  font-family: 'Cabinet Grotesk', sans-serif;
}

.inside-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.inside-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

.inside-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.inside-tag {
  display: inline-block;
  background: var(--book-accent-light);
  color: var(--book-badge-color);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

/* ---- PROBLEMS SECTION ---- */
.problems-section {
  background: var(--text-dark);
  color: #fff;
  padding: 80px 40px;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.problems-section::before {
  content: '';
  position: absolute;
  top: -150px;
  left: -150px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 70%);
  pointer-events: none;
}

.problems-inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.problems-title {
  text-align: center;
  margin-bottom: 60px;
}

.problems-title-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.7);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 18px;
}

.problems-title h2 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 900;
  color: #fff;
  margin-bottom: 14px;
  font-family: 'Cabinet Grotesk', sans-serif;
  letter-spacing: -1px;
  line-height: 1.15;
}

.problems-title h2 span {
  background: linear-gradient(90deg, #a0c878, #d4e8bc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.problems-title p {
  color: rgba(255,255,255,0.5);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}

/* === Top 3 Visual Problem Cards === */
.problems-grid-main {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 16px;
}

.problem-card-visual {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s, border-color 0.3s;
  position: relative;
}

.problem-card-visual:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
  border-color: rgba(255,255,255,0.18);
}

/* ---- The Visual Image Area ---- */
.problem-visual-img-wrap {
  width: 100%;
  aspect-ratio: 4/3;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  /* subtle grid pattern placeholder background */
  background:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(135deg, rgba(255,255,255,0.03) 0%, rgba(0,0,0,0.2) 100%);
  background-size: 28px 28px, 28px 28px, 100% 100%;
}

.problem-visual-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Placeholder shown when no image yet */
.problem-img-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 0;
}

.problem-img-placeholder-icon {
  font-size: 3.5rem;
  line-height: 1;
  filter: grayscale(0.2);
  opacity: 0.5;
}

.problem-img-placeholder-label {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
  text-align: center;
  padding: 0 20px;
}

/* ---- Card Content Below Image ---- */
.problem-visual-content {
  padding: 20px 22px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.problem-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.1);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 10px;
  width: fit-content;
}

.problem-visual-content h4 {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 8px;
  font-weight: 900;
  line-height: 1.3;
  font-family: 'Cabinet Grotesk', sans-serif;
}

.problem-visual-content p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
  margin: 0;
  flex: 1;
}

/* === Bottom 3 Quick-Hit Secondary Cards === */
.problems-grid-secondary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.problem-card-small {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: background 0.2s, border-color 0.2s;
}

.problem-card-small:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
}

.problem-card-small .problem-emoji {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.problem-card-small h4 {
  color: rgba(255,255,255,0.75);
  font-weight: 700;
  font-size: 0.88rem;
  margin: 0;
  line-height: 1.4;
}

/* ---- IMAGE PLACEHOLDER ---- */
.img-placeholder-section {
  max-width: 1100px;
  margin: 80px auto;
  padding: 0 40px;
}

.img-placeholder-box {
  width: 100%;
  aspect-ratio: 16/7;
  background: linear-gradient(135deg, var(--book-accent-light), rgba(240,244,237,0.5));
  border: 2px dashed var(--border-color);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  gap: 12px;
}

.img-placeholder-box i { font-size: 2.5rem; }
.img-placeholder-box p { font-size: 0.88rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }

/* ---- REVIEWS SECTION ---- */
.reviews-section {
  padding: 80px 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.reviews-title {
  text-align: center;
  margin-bottom: 50px;
}

.reviews-title h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 900;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.reviews-marquee-wrap {
  overflow: hidden;
  position: relative;
}

.reviews-marquee-wrap::before,
.reviews-marquee-wrap::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.reviews-marquee-wrap::before {
  left: 0;
  background: linear-gradient(to right, var(--bg), transparent);
}

.reviews-marquee-wrap::after {
  right: 0;
  background: linear-gradient(to left, var(--bg), transparent);
}

.reviews-marquee {
  display: flex;
  gap: 20px;
  animation: scrollReviews 30s linear infinite;
  width: max-content;
}

.reviews-marquee:hover { animation-play-state: paused; }

@keyframes scrollReviews {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.review-card {
  width: 280px;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
}

.review-stars {
  color: #c98e4f;
  font-size: 0.85rem;
  margin-bottom: 10px;
  display: flex;
  gap: 2px;
}

.review-text {
  font-size: 0.9rem;
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: 14px;
}

.review-author {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ---- FINAL CTA SECTION ---- */
.final-cta {
  background: var(--book-accent);
  color: #fff;
  padding: 80px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.final-cta::before {
  content: 'JIVIKA';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 14rem;
  font-weight: 900;
  opacity: 0.04;
  letter-spacing: 20px;
  white-space: nowrap;
  pointer-events: none;
}

.final-cta h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 900;
  color: #fff;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.final-cta p {
  color: rgba(255,255,255,0.75);
  font-size: 1.05rem;
  max-width: 480px;
  margin: 0 auto 36px;
  position: relative;
  z-index: 1;
}

.btn-buy-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: var(--book-accent);
  text-decoration: none;
  padding: 18px 44px;
  border-radius: 100px;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  transition: all 0.3s;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  position: relative;
  z-index: 1;
}

.btn-buy-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 50px rgba(0,0,0,0.3);
}

.price-tag {
  font-size: 0.85rem;
  opacity: 0.7;
  font-weight: 600;
  text-decoration: line-through;
  margin-right: 4px;
}

.final-cta-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 24px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  font-weight: 600;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .book-hero-inner {
    grid-template-columns: 1fr;
    padding: 30px 24px;
    text-align: center;
    gap: 40px;
  }

  .book-cover-wrap { order: -1; }

  .book-cover-img, .book-cover-placeholder {
    max-width: 320px;
    margin: 0 auto;
    transform: none !important;
  }

  .feature-list { max-width: 480px; margin: 0 auto 32px; text-align: left; }
  .hero-cta-row { justify-content: center; }
  .hero-trust { justify-content: center; }
  .inside-grid { grid-template-columns: 1fr; }

  /* Problems grid switches to 2 columns on tablet */
  .problems-grid-main { grid-template-columns: 1fr 1fr; }
  .problems-grid-secondary { grid-template-columns: 1fr 1fr; }

  .back-nav { padding: 14px 20px; }
  .back-nav .nav-buy-btn { display: none; }
  .section-label, .reviews-title, .problems-title { padding: 0 16px; }
}

@media (max-width: 580px) {
  /* ==========================================
     Completely Different Mobile Paradigm
     D2C Native App Feel
  ========================================== */
  .book-hero { padding-top: 60px; min-height: unset; display: block; }
  
  .book-hero-inner { 
    padding: 0; 
    gap: 0; 
    display: flex;
    flex-direction: column;
  }
  
  /* Make the book image edge-to-edge with a colored background */
  .book-cover-wrap { 
    order: -1; 
    background: var(--book-accent-hero-bg);
    padding: 40px 20px;
    border-radius: 0 0 30px 30px;
    width: 100%;
    box-shadow: 0 10px 20px rgba(0,0,0,0.03);
  }
  
  .book-cover-img, .book-cover-placeholder {
    max-width: 75vw !important;
  }
  
  /* Text container */
  .book-hero-left {
    padding: 35px 24px 10px;
    text-align: left;
    background: var(--bg);
  }

  .book-badge { margin-bottom: 20px; }
  
  .book-title { 
    font-size: clamp(2.6rem, 11vw, 3.2rem); 
    margin-bottom: 16px; 
    line-height: 1.05;
    letter-spacing: -1px;
  }
  
  .book-subtitle { 
    font-size: 1.15rem; 
    margin-bottom: 30px; 
    line-height: 1.5;
  }
  
  /* Features */
  .feature-list { margin-bottom: 35px; width: 100%; text-align: left; }
  .feature-item { padding: 12px 0; gap: 14px; border-bottom: 1px solid rgba(0,0,0,0.08); }
  .feature-item i { font-size: 1.1rem; padding: 5px; }
  .feature-item span { font-size: 1rem; line-height: 1.4; }
  
  /* CTAs */
  .hero-cta-row { 
    flex-direction: column; 
    gap: 14px; 
    width: 100%; 
    margin-bottom: 30px; 
  }
  
  .btn-buy-primary { 
    width: 100%; 
    justify-content: center; 
    padding: 18px 20px; 
    font-size: 1.1rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  }
  
  .btn-inside { 
    width: 100%; 
    justify-content: center; 
    padding: 16px 20px; 
  }
  
  .hero-trust { justify-content: flex-start; flex-wrap: wrap; font-size: 0.8rem; }

  /* ==========================================
     PROBLEMS SECTION â€” Full Mobile Redesign
  ========================================== */
  .problems-section {
    padding: 50px 0 44px;
  }

  .problems-inner {
    padding: 0;
  }

  .problems-title {
    padding: 0 20px;
    margin-bottom: 32px;
    text-align: left;
  }

  .problems-title-badge {
    font-size: 0.68rem;
    padding: 5px 12px;
    margin-bottom: 14px;
  }

  .problems-title h2 {
    font-size: clamp(1.65rem, 7.5vw, 2rem);
    letter-spacing: -0.5px;
    margin-bottom: 10px;
  }

  .problems-title p {
    font-size: 0.92rem;
  }

  /* Stack into a HORIZONTAL SCROLL SNAP row on mobile */
  .problems-grid-main {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 14px;
    padding: 4px 20px 16px;
    margin-bottom: 14px;
    /* Hide scrollbar but keep functionality */
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .problems-grid-main::-webkit-scrollbar { display: none; }

  .problem-card-visual {
    flex: 0 0 78vw;   /* Show ~1.2 cards at once for discoverability */
    max-width: 300px;
    scroll-snap-align: start;
    border-radius: 20px;
  }

  .problem-visual-img-wrap {
    aspect-ratio: 16/10;
  }

  .problem-img-placeholder-icon {
    font-size: 2.8rem;
  }

  .problem-img-placeholder-label {
    font-size: 0.6rem;
  }

  .problem-visual-content {
    padding: 16px 18px 20px;
  }

  .problem-badge {
    font-size: 0.58rem;
    padding: 3px 8px;
    margin-bottom: 8px;
  }

  .problem-visual-content h4 {
    font-size: 1rem;
    margin-bottom: 6px;
  }

  .problem-visual-content p {
    font-size: 0.82rem;
    line-height: 1.55;
  }

  /* Scroll hint dots for carousel */
  .problems-scroll-hint {
    display: flex !important;
    justify-content: center;
    gap: 6px;
    margin-bottom: 20px;
  }

  /* Secondary quick-hit cards â€” single column list on mobile */
  .problems-grid-secondary {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 0 20px;
    margin-top: 0;
  }

  .problem-card-small {
    padding: 13px 16px;
    border-radius: 12px;
  }

  .problem-card-small .problem-emoji {
    font-size: 1.4rem;
  }

  .problem-card-small h4 {
    font-size: 0.85rem;
  }

  /* Other Sections */
  .inside-section, .img-placeholder-section, .reviews-section { padding: 0 20px 50px; }
  .inside-card { padding: 24px; }
  
  .final-cta { padding: 60px 20px; text-align: center; }
  
  .btn-buy-cta { width: 100%; padding: 18px 20px; justify-content: center; font-size: 1.1rem; }
}

/* GENTLE IDLE BOOK FLOATING ANIMATION */
@keyframes bookFloat {
  0% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
  100% { transform: translateY(0); }
}

.book-float-container {
  animation: bookFloat 5s ease-in-out infinite;
  display: inline-block;
  width: 100%;
}


/* ---- TINY PHONES: hide Save badge in sticky footer ---- */
@media (max-width: 400px) {
  .sticky-save-badge-el {
    display: none !important;
  }
}

/* ============================================================
   STICKY FOOTER CTA BAR — BOOK PAGES MOBILE RESPONSIVE
   ============================================================ */

@media (max-width: 480px) {
  #sticky-cta-bar > div {
    padding: 11px 14px 11px 16px !important;
    gap: 10px !important;
    border-radius: 18px !important;
  }
  #sticky-cta-btn {
    padding: 11px 18px !important;
    font-size: 0.88rem !important;
    gap: 6px !important;
  }
  .sticky-save-badge-el { display: none !important; }
}

@media (max-width: 380px) {
  #sticky-cta-bar > div {
    padding: 10px 12px 10px 14px !important;
    gap: 8px !important;
  }
  #sticky-cta-btn {
    padding: 10px 14px !important;
    font-size: 0.82rem !important;
    letter-spacing: 0 !important;
  }
  #sticky-cta-btn i { display: none !important; }
}

@media (max-width: 340px) {
  #sticky-cta-bar { padding: 0 10px 12px !important; }
  #sticky-cta-btn {
    padding: 10px 12px !important;
    font-size: 0.78rem !important;
  }
}
