:root {
  --accent: #0071ff;
  --lines: #9900ff;
  --bg: #f8fafc;
  --text: #020617;
  --text-muted: #64748b;
  --border-color: #cbd5e1;
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* CRITICAL: Prevent ALL horizontal overflow */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw;
  width: 100%;
}

* { 
  margin: 0; 
  padding: 0; 
  box-sizing: border-box; 
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  padding: 60px 0 40px;
  line-height: 1.5;
  width: 100%;
}

.folder-container {
  width: 100%;
  max-width: 900px;
  overflow: hidden;
  position: relative;
  padding: 0 15px;
  margin: 0px auto 60px;
}
.container {
  width: 100%;
  max-width: 800px; 
  margin: 0 auto;    
  padding: 40px 20px;
}
@keyframes folderAppear {
  0% { 
    opacity: 0; 
    transform: translateY(25px); 
  }
  100% { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

.folder-main {
  position: relative;
  background: white;
  border: 1px solid var(--border-color);
  display: grid;
  grid-template-columns: 1.3fr 0.7fr; 
  min-height: 155px; 
  z-index: 2;
  opacity: 0;
  animation: folderAppear 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: var(--transition);
  overflow: visible;
  box-shadow: 0 15px 40px -15px rgba(0,0,0,0.08);
  width: 100%;
}

.folder-main:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px -15px rgba(0,113,255,0.2);
  border-color: var(--accent);
}

.folder-top {
  border-radius: 24px 24px 0 24px;
  margin-bottom: 28px;
  animation-delay: 0.1s;
}

/* EXTRUDE - Mobile-safe positioning (NO OVERFLOW) */
.extrude-bottom-right {
  position: absolute;
  bottom: -20px; 
  right: -1px;   
  width: 50%;    
  height: 21px;  
  background: white;
  border: 1px solid var(--border-color);
  border-top: none; 
  border-radius: 0 0 24px 15px; 
  clip-path: polygon(0% 0%, 15px 100%, 100% 100%, 100% 0%);
  z-index: 1;
  /* CRITICAL: Prevent overflow on small screens */
  right: clamp(-1px, calc(100% - 100vw + 15px), -1px);
}

.folder-bottom {
  grid-template-columns: 0.7fr 1.3fr; 
  border-radius: 0 24px 24px 24px; 
  border-top: 1px solid var(--border-color);
  animation-delay: 0.4s;
}
.emphasize {
  font-weight: 800;
}
.extrude-top-left {
  position: absolute;
  top: -20px; 
  left: -1px;   
  width: 50%;    
  height: 21px;  
  background: white;
  border: 1px solid var(--border-color);
  border-bottom: none; 
  border-radius: 24px 0 0 0; 
  clip-path: polygon(0% 0%, calc(100% - 15px) 0%, 100% 100%, 0% 100%);
  z-index: 3;
  /* CRITICAL: Prevent overflow on small screens */
  left: clamp(-1px, calc(0px - (100vw - 100%)), -1px);
}

/* ✅ CENTERED CONTENT (RESTORED - MATCHES YOUR ORIGINAL MAGIC SCROLLER) */
.content-area {
  padding: 16px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center; /* ✅ CENTERS BUTTONS + TEXT */
  text-align: center;  /* ✅ CENTERS TEXT CONTENT */
  z-index: 5;
  width: 100%;
}

.headline {
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
  color: var(--text);
}

.headline2 {
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
  color: var(--text);
}
.highlight { 
  background: linear-gradient(90deg, var(--accent), #00c6ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}
.highlight2 { 
  background: linear-gradient(90deg, var(--accent), #00c6ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

/* Base style for both subheads */
.subhead {
  font-size: clamp(0.9rem, 2.2vw, 1.1rem);
  color: var(--text-muted);
  font-weight: 300;             /* Extra thin font weight */
  line-height: 1.6;
  margin-bottom: 28px;
  display: block;
  max-width: 550px;
}



/* RIGHT LINE VERSION (For the Facebook Ad protection) */
.subhead-right {
  border-right: 2px solid var(--lines);
  border-left: none;
  padding-right: 18px;
  padding-left: 0;
  text-align: right;
}

.subhead2 {
  font-size: clamp(0.9rem, 2.2vw, 1.1rem);
  color: var(--text-muted);
  font-weight: 300;             /* Extra thin font weight */
  line-height: 1.6;
  margin-bottom: 28px;
  display: block;
  max-width: 550px;
}
/* LEFT LINE VERSION (For the 24/7 Bot system) */
.subhead2-left {
  border-left: 2px solid var(--lines);
  border-right: none;
  padding-left: 18px;
  padding-right: 0;
  text-align: left;
}

.image-area {
  position: relative;
  display: flex;
  align-items: flex-end; 
  justify-content: center;
  overflow: visible;
  padding: 20px 0;
  width: 100%;
}

.photo-container {
  position: relative;
  width: 90%;
  max-width: 900px;
  aspect-ratio: 4/5;
  z-index: 10;
  transition: var(--transition);
}

.top-img { 
  margin-top: 25px; 
  margin-bottom: -40px; 
} 

.bottom-img { 
  margin-top: -25px; 
  margin-bottom: -21px;
  margin-right: -50px; 
}

.founder-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 16px;
  max-width: 100%;
}

/* ✅ CENTERED BUTTONS (RESTORED - YOUR ORIGINAL DESIGN) */
.btn {
  background: var(--accent);
  color: white;
  padding: 14px 32px;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.95rem;
  display: inline-block;
  width: fit-content;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(0,113,255,0.3);
  border: 2px solid transparent;
  /* ✅ BUTTONS CENTERED IN BOTH FOLDERS */
  align-self: center;
  margin-top: 10px;
}

.btn:hover {
  background: #005fd6;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,113,255,0.4);
}

/* ===== MOBILE FIXES (NO DESKTOP CHANGES) ===== */
/* ===== MOBILE FIXES: FORCED TO MATCH DESKTOP EXACTLY ===== */
@media (max-width: 768px) {
  body {
    padding: 40px 0 30px;
  }
  
  .folder-container {
    padding: 0 10px; 
    margin: 25px auto 45px; 
  }
  
  /* Keep the grid exactly like desktop */
  .folder-main {
    display: grid !important;
    grid-template-columns: 0.9fr 0.7fr !important; /* Restore Desktop Ratio */
    min-height: 155px;
    overflow: visible !important;; 
  }

  /* Reversed grid for the bottom folder */
  .folder-bottom {
    grid-template-columns: 0.9fr 1.3fr !important; /* Restore Desktop Ratio */
  }

  .content-area {
    padding: 85px 15px 20px;
    text-align: center;
    align-items: center;
    justify-content: center;
    background: transparent;
    z-index: 10;
  }
  .subhead, .subhead2 {
    text-align: center;
    font-size: clamp(0.7rem, 3vw, 1.25rem);
  }
  .headline, .headline2 {
    text-align: center;
    font-size: clamp(1.6rem, 4vw, 2rem);
  }
  /* Aligning image head to the headline level */
  .image-area {
    display: flex;
    align-items: center; /* Centers image vertically to match headline text */
    justify-content: center;
    padding: 0;
    overflow: hidden;
    z-index: 1;
  }

  .photo-container {
    width: 90% !important;
    max-width: none !important;
    aspect-ratio: 4/5 !important;
    margin: 0 !important; /* Remove the mobile shifts */
    transform: none;
    overflow:hidden;
  }

  /* Desktop-style image offsets */
  .top-img { 
    margin-top: 25px !important; 
    margin-bottom: -40px !important;
    margin-left: -5px !important; /* Center the image on mobile */
    min-width: 250px;
    z-index: 2; 
  } 

  .bottom-img { 
    margin-top: -25px !important; 
    margin-bottom: -58px !important;
    margin-right: -10px !important; /* Adjusted for mobile width */
    min-width: 250px;
  }
  .founder-photo {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
    max-width: 400px;
  }
  .btn {
    align-self: center !important;
  }

  /* Keep the "tabs" (extrudes) visible and sized like desktop */
  .extrude-bottom-right, .extrude-top-left {
    display: block !important;
    width: 50% !important;
  }

  
  /* ✅ FIX EXTRUDE OVERFLOW ON SMALL SCREENS */
  .extrude-bottom-right {
    right: clamp(-1px, calc(100% - 100vw + 10px), -1px);
    width: 48%;
  }
  
  .extrude-top-left {
    left: clamp(-1px, calc(0px - (100vw - 100%)), -1px);
    width: 48%;
  }
  
  /* ABSOLUTE LAST RESORT: Hide extrudes ONLY on tiny screens (<360px) */
  @media (max-width: 360px) {
    .extrude-bottom-right,
    .extrude-top-left {
      display: none;
    }
    
    .folder-top {
      border-radius: 22px 22px 0 22px;
      margin-bottom: 26px;
    }
    
    .folder-bottom {
      border-radius: 0 22px 22px 22px;
    }
  }
}