/* === RESET + BASE === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #fff;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  font-family: 'DM Sans', system-ui, sans-serif;
  color: #142b6f;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* === LAYOUT === */
#slides {
  width: 100%;
  /* Fully responsive up to the largest mobile sizes */
}

#slides img {
  display: block;
  width: 100%;
  height: auto;
}

/* === SLIDE SECTIONS === */
.slide {
  padding: 28px 24px;
}

/* === HERO SECTION (Slide 01) === */
.hero-section {
  position: relative;
  min-height: 600px;
  height: 85vh;
  /* Responsive height */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-image: url('images/hero-bg.webp');
  background-size: cover;
  background-position: center 80%;
  padding: 40px 24px 24px;
  overflow: hidden;
  border-bottom-left-radius: 34px;
  border-bottom-right-radius: 34px;
}

.hero-title {
  font-size: clamp(28px, 8vw, 36px);
  font-weight: 700;
  line-height: 1.1;
  color: #142b6f;
  text-align: center;
  letter-spacing: -0.02em;
}

.hero-title em {
  font-family: 'DM Sans', sans-serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
}

.glass-card {
  background: rgba(140, 150, 110, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 20px;
  padding: clamp(16px, 5vw, 24px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  text-align: left;
}

.glass-title {
  font-size: clamp(16px, 4.5vw, 20px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.2;
}

.glass-body {
  font-size: clamp(13px, 3.5vw, 15px);
  line-height: 1.5;
  color: #fff;
}

/* === THOUGHT BUBBLE (Hero emoji) === */
.thought-bubble {
  position: absolute;
  top: 25%;
  right: 17%;
  z-index: 10;
  /* Use a single drop-shadow on the parent to merge the shapes seamlessly */
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
}

.thought-emoji {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(66px, 17vw, 86px);
  height: clamp(66px, 17vw, 86px);
  background: #ffffff;
  border-radius: 50%;
  font-size: clamp(30px, 8vw, 42px);
  z-index: 2;
}

.thought-dot {
  position: absolute;
  background: #ffffff;
  border-radius: 50%;
}

.thought-dot-md {
  width: clamp(24px, 6vw, 32px);
  height: clamp(24px, 6vw, 32px);
  bottom: -4px;
  left: -14px;
  z-index: 1;
}

.thought-dot-sm {
  width: clamp(7px, 1.8vw, 10px);
  height: clamp(7px, 1.8vw, 10px);
  bottom: -22px;
  left: -32px;
}

/* === FULL SCREEN BACKGROUND SECTIONS (Slides 03, 04, 05) === */
.full-bg-section {
  position: relative;
  min-height: 600px;
  height: 85vh;
  display: block;
  background-size: cover;
  background-position: center top;
  padding: 0;
  border-radius: 34px;
  margin: 0;
  z-index: 20;
}

#slide-04 {
  margin-top: -40px;
  z-index: 10;
}

#slide-05 {
  margin-top: -40px;
  z-index: 5;
}

/* Base Top Branding */
.top-brand {
  position: absolute;
  top: 36px;
  left: 24px;
  z-index: 10;
}

.brand-line {
  width: 32px;
  height: 3px;
  margin-bottom: 8px;
}

.dark-line {
  background: #142b6f;
}

.light-line {
  background: #ffffff;
}

.brand-title {
  font-size: clamp(28px, 8.5vw, 36px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.dark-text {
  color: #142b6f;
}

.light-text {
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.brand-title strong {
  font-weight: 700;
}

/* Top Icon Box */
.top-icon-box {
  position: absolute;
  top: 32px;
  right: 20px;
  width: clamp(56px, 15vw, 76px);
  height: clamp(56px, 15vw, 76px);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.box-light-blue {
  background: #e6f6ff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5), 0 4px 12px rgba(0, 0, 0, 0.05);
}

.box-white-shadow {
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.icon-emoji {
  font-size: clamp(32px, 9vw, 42px);
}

/* Floating Hearts (Slide 03 specific) */
.floating-hearts {
  position: absolute;
  top: 50%;
  left: 32%;
  z-index: 5;
}

.heart {
  position: absolute;
  font-size: clamp(24px, 7vw, 32px);
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.15));
}

.heart-1 {
  top: 0;
  left: -20px;
  transform: scale(1.1) rotate(-15deg);
}

.heart-2 {
  top: -50px;
  left: 30px;
  transform: scale(0.9) rotate(15deg);
}

.heart-3 {
  top: 40px;
  left: 45px;
  transform: scale(0.8) rotate(-5deg);
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.15)) blur(1px);
}

/* Video CTA layout */
.video-cta {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10;
}

.cta-right {
  right: 24px;
  flex-direction: row;
}

.cta-left {
  left: 24px;
  flex-direction: row;
}

/* Adjusting CTA position per slide based on the glass card */
#slide-03 .video-cta {
  bottom: 210px;
}

#slide-04 .video-cta {
  bottom: 210px;
}

#slide-05 .video-cta {
  bottom: 180px;
  right: 24px;
}

.play-button {
  width: clamp(48px, 13vw, 60px);
  height: clamp(48px, 13vw, 60px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 2;
}

.type-light {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.1) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.play-button svg {
  width: 45%;
  height: 45%;
  margin-left: 6%;
}

.cta-text-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
}

.cta-text {
  color: white;
  font-size: clamp(28px, 8vw, 36px);
  font-weight: 300;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  line-height: 1;
  padding-bottom: 2px;
}

.cta-line {
  position: absolute;
  bottom: 0;
  height: 2px;
  background: white;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.cta-right .cta-line {
  left: -24px;
  width: 100vw;
}

.cta-left .cta-line {
  right: -24px;
  width: 100vw;
}

/* Glass Card */
.slide-glass {
  position: absolute;
  bottom: 0;
  transform: translateY(50%);
  left: 16px;
  right: 16px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 36px;
  padding: clamp(20px, 5.5vw, 28px);
  margin: 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  text-align: left;
  z-index: 10;
}

.glass-brown {
  background: linear-gradient(135deg, rgba(160, 110, 90, 0.8), rgba(120, 80, 60, 0.7));
}

.glass-purple {
  background: linear-gradient(135deg, rgba(55, 65, 155, 0.8), rgba(45, 30, 110, 0.8));
}

.glass-light {
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

/* === SECTION DIVIDER (slides 02, 06) === */
.divider-rule {
  width: 40px;
  height: 3px;
  background: #142b6f;
  border-radius: 2px;
  margin-bottom: 12px;
}

.divider-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

.slide-divider h2 {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
}

.slide-divider .body {
  font-size: 17px;
  line-height: 1.6;
}

/* === PRODUCT DETAIL (slides 08, 17, 28) === */
.product-name {
  font-size: 38px;
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 16px;
}

.product-name strong {
  font-weight: 700;
}

.product-body {
  font-size: 16px;
  line-height: 1.65;
  margin-bottom: 12px;
}

.product-body strong {
  font-weight: 700;
}

.product-callout {
  font-size: 16px;
  line-height: 1.65;
  padding: 16px 0 0;
  border-top: 1px solid #e8e8e8;
}

.product-callout strong {
  font-weight: 700;
}

/* === CARD (generic container) === */
.card {
  border-radius: 16px;
  padding: 24px;
  margin-top: 16px;
}

.card-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
}

.card-body {
  font-size: 15px;
  line-height: 1.6;
}

/* === FEATURE LIST === */
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
}

.feature-emoji {
  font-size: 20px;
  flex-shrink: 0;
  width: 28px;
  text-align: center;
  line-height: 1.4;
}

.feature-text {
  font-size: 15px;
  line-height: 1.5;
}

.feature-text strong {
  font-weight: 700;
}

.feature-divider,
.idea-divider,
.hook-divider {
  height: 1px;
}

/* === CONTENT IDEAS & HOOKS === */
.idea-item,
.hook-item {
  padding: 16px 0;
  font-size: 15px;
  line-height: 1.55;
}

.idea-item strong {
  font-weight: 700;
}

/* === PREP SECTION === */
.prep-card {
  border-radius: 16px;
  padding: 24px;
}

.prep-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.prep-body {
  font-size: 15px;
  line-height: 1.6;
}

.prep-icons {
  display: block;
  width: 100%;
  max-width: 320px;
  margin: 20px auto 0;
}

/* === LINK ROWS === */
.slide-links {
  padding: 4px 24px;
}

.links-title {
  font-size: 20px;
  font-weight: 700;
  padding: 20px 0 8px;
}

.link-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  text-decoration: none;
  color: #007aff;
  font-size: 17px;
}

.link-row:hover .link-text {
  text-decoration: none;
}

.link-emoji {
  font-size: 18px;
}

.link-text {
  text-decoration: underline;
}

.link-divider {
  height: 1px;
  background: #e8e8e8;
}

/* === RULES SLIDE (slide 38) === */
.slide-rules {
  padding: 28px 24px 56px;
}

.rules-label {
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 24px;
}

.rules-badge {
  display: inline-block;
  background: #142b6f;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: 24px;
  margin-bottom: 16px;
}

.rules-heading {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 8px;
}

.rules-subtitle {
  font-size: 17px;
  line-height: 1.5;
  margin-bottom: 28px;
  color: #6b7280;
}

.rule-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.rule-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.rule-icon-red {
  background: #fee2e2;
}

.rule-icon-purple {
  background: #ede9fe;
}

.rule-icon-green {
  background: #dcfce7;
}

.rule-content h4 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.rule-content p {
  font-size: 16px;
  line-height: 1.5;
  color: #6b7280;
}

/* === THEME: NOT COFFEE === */
.theme-nc .card,
.theme-nc .prep-card {
  background: #edf4ff;
}

.theme-nc .feature-divider,
.theme-nc .idea-divider,
.theme-nc .hook-divider {
  background: #dbe8f8;
}

/* === THEME: PROTEIN ICE COFFEE === */
.theme-pic .card,
.theme-pic .prep-card {
  background: #fff7f0;
}

.theme-pic .feature-divider,
.theme-pic .idea-divider,
.theme-pic .hook-divider {
  background: #ffe8d0;
}

/* === THEME: MAGMIX === */
.theme-mm .card,
.theme-mm .prep-card {
  background: #f0ebff;
}

.theme-mm .feature-divider,
.theme-mm .idea-divider,
.theme-mm .hook-divider {
  background: #ddd6f3;
}