@import url('https://fonts.cdnfonts.com/css/montserrat-alternates');

.rooted-panel {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  background: url('../images/whysei.png') no-repeat left bottom fixed, #eaf6fa;
  background-size: cover;
  z-index: 1001;
  box-shadow: -2px 0 24px 0 rgba(44,36,61,0.13);
  transform: translateX(85%);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 1.0s cubic-bezier(0.1,0,0.4,1),   /* Opacity fade time */
    transform 2.8s cubic-bezier(0.2,0,0.2,1); /* Slide time */
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  font-family: 'Montserrat Alternates', sans-serif;
  will-change: transform, opacity;
}
.rooted-panel.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}
.rooted-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(44, 36, 61, 0.45);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.4,0,0.2,1);
}
.rooted-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.rooted-close-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.103);
  border: none;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(44,36,61,0.02);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s, box-shadow 0.2s;
  padding: 0;
}
.rooted-close-btn:hover {
  background: #f3eaff1c;
  box-shadow: 0 4px 16px rgba(44,36,61,0.18);
}
.rooted-close-btn svg {
  width: 28px;
  height: 28px;
  stroke: #7c3483;
  display: block;
}
.rooted-main-flex {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding-top: 10vh;
  padding-left: 120px;
  gap: 60px;
  box-sizing: border-box;
}
.rooted-left-col {
  flex: 0 0 38%;
  max-width: 38%;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 6vh 0 0 0;
  box-sizing: border-box;
}
.rooted-right-col {
  flex: 0 0 50%;
  max-width: 50%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 4vh;
}
.rooted-title-row {
  display: flex;
  align-items: center;
  gap: 1px;
  margin-left: 0;
  margin-top: 60px;
  justify-content: flex-start;
  text-align: left;
}
.rooted-sei-logo-container {
  width: 90px;
  height: 90px;
  position: relative;
  opacity: 0.8;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: subtlePulseRooted 2.5s ease-in-out infinite;
}
.rooted-sei-logo-container:hover {
  animation: none;
}
.rooted-sei-logo,
.rooted-sei-logo-hover {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  object-fit: contain;
  transition: opacity 0.2s ease;
}
.rooted-sei-logo-hover {
  opacity: 0;
}
.rooted-sei-logo-container:hover .rooted-sei-logo {
  opacity: 0;
}
.rooted-sei-logo-container:hover .rooted-sei-logo-hover {
  opacity: 1;
  cursor: pointer;
}
.rooted-sei-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
}
.rooted-why-title {
  margin:0;
  font-size: 1.9rem;
  font-weight: 400;
  color: #7c3483;
  letter-spacing: 0rem;
  font-family: 'Montserrat Alternates', sans-serif;
  line-height:2.2rem;
}
.rooted-main-content {
  max-width: 450px;
  margin:0;
  text-align: left;
  font-size: 0.8rem;
  color: #2d3557;
  line-height: 1.7;
}
.rooted-main-content p {
  margin-bottom: 1.5rem;
}
.rooted-main-paragraph {
  margin: 0;
  line-height: 1.7;
}
.rooted-focus {
  font-weight: bold;
  color: #2d3557;
  margin-right: 0.25rem;
}
.rooted-result {
  font-weight: 400;
  color: #7c3483;
  margin-top: 3.2rem;
  margin-bottom: 1.5rem;
  font-size: 1.13rem;
  text-align: left;
}
@keyframes subtlePulseRooted {
  0% { transform: scale(1); opacity: 0.95; }
  50% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); opacity: 0.95; }
}

@media (max-width: 900px) {
  .rooted-panel {
    background: url('../images/whysei-m.png') no-repeat left bottom fixed, #eaf6fa;
    background-size: cover, cover;
    background-position: left bottom, center;
  }
  .rooted-main-flex {
    flex-direction: column;
    align-items: stretch;
    gap: 32px;
    padding-left: 80px;
    padding-right: 40px;
    padding-top: 6vh;
  }
  .rooted-left-col,
  .rooted-right-col {
    max-width: 100%;
    flex: 1 1 100%;
    min-width: 0;
    padding: 0;
    align-items: left;
  }
  .rooted-left-col {
    align-items: flex-start !important;
  }
  .rooted-title-row {
    margin-left: 0 !important;
    justify-content: flex-start !important;
    text-align: left !important;
    align-items: center !important;
    gap: 1px;
  }
  .rooted-sei-badge,
  .rooted-sei-logo-container {
    margin-right: 0.5rem;
  }
  .rooted-main-content {
    max-width: 100%;
    margin: 0 auto;
    text-align: left;
  }
}

/* ========================================
   MOBILE PORTRAIT STYLES (≤600px)
   ======================================== */
@media (max-width: 600px) {
  /* Background container for mobile */
  .rooted-panel-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh !important;
    min-height: 100vh !important;
    background: linear-gradient(135deg, #eaf6fa 0%, #d4f1f7 50%, #b8e6f0 100%);
    background-image: url('../images/whysei-m.png'), linear-gradient(135deg, #eaf6fa 0%, #d4f1f7 50%, #b8e6f0 100%);
    background-repeat: no-repeat, no-repeat;
    background-position: left bottom, center;
    background-size: cover, cover;
    z-index: 1000;
    overflow: visible !important;
  }
  
  /* Hide desktop layout on mobile */
  .rooted-main-flex {
    display: none !important;
  }
  
  /* Close button mobile styles */
  .rooted-close-btn svg {
    width: 20px !important;
    height: 20px !important;
    stroke: #94ffe8 !important;
    fill: none !important;
  }
  
  .rooted-close-btn {
    width: 20px !important;
    height: 20px !important;
  }
  
  /* Sticky header for mobile */
  .rooted-sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 20vh;
    height: 20dvh;
    height: calc(30vh - 36px);
    z-index: 2001;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent;
    pointer-events: none;
    padding-bottom: 2vh;
    padding-top: 1vh;
  }
  
  .rooted-sticky-logo {
    width: 80px;
    height: auto;
    animation: pulse-logo 2.2s infinite;
    pointer-events: none;
    transition: opacity 0.5s cubic-bezier(0.4,0,0.2,1);
    opacity: 1;
    margin-bottom: 5vh;
    margin-top: 0;
  }
  
  .rooted-sticky-logo.fade-out {
    opacity: 0;
    pointer-events: none;
  }
  
  .rooted-panel h3 {
    font-family: 'Montserrat Alternates', sans-serif;
    font-size: 1.6rem;
    color: #7c3483;
    font-weight: 500;
    letter-spacing: 0.04em;
    margin: 0;
    padding-bottom: 1vh;
    margin-top: 0;
    margin-bottom: 0;
    text-align: center;
  }
  
  /* Scrollable content area */
  .rooted-content {
    position: fixed;
    top: 22vh;
    top: 22dvh;
    left: 0;
    width: 100vw;
    height: calc(100vh - 22vh - 5vh);
    height: calc(100dvh - 22dvh - 5dvh);
    height: calc(100vh - 22vh - 5vh - 120px);
    z-index: 2000;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    padding: 0;
    box-sizing: border-box;
    pointer-events: auto;
  }
  
  /* Custom scrollbar styling */
  .rooted-content {
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 255, 232, 0.79) transparent;
  }
  
  /* Webkit scrollbar styling for Chrome/Safari/Edge */
  .rooted-content::-webkit-scrollbar {
    width: 8px;
  }
  
  .rooted-content::-webkit-scrollbar-track {
    background: transparent;
  }
  
  .rooted-content::-webkit-scrollbar-thumb {
    background: rgba(148, 255, 232, 0.79);
    border-radius: 4px;
  }
  
  .rooted-content::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 255, 232, 1);
  }
  
  .rooted-content-inner {
    max-width: 650px;
    width: 100%;
    padding: 20px 24px;
    box-sizing: border-box;
    text-align: center;
  }
  
  /* Show mobile content */
  .mobile-content {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-weight: 400;
    font-size: 0.8rem;
    line-height: 1.5;
    text-align: left;
    color: #2d3557;
    padding-left: 55px;
    padding-right: 10px;
  }
  
  .mobile-content strong {
    color: #7c3483;
    font-weight: 500;
  }
  
  .mobile-content br {
    line-height: 1.8;
  }
  
  /* Mobile result styling */
  .rooted-result {
    font-weight: 500;
    color: #7c3483;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    text-align: left;
    padding-left: 50px;
    line-height: 1.6;
  }
}

/* ========================================
   DESKTOP STYLES (≥601px)
   ======================================== */
@media (min-width: 601px) {
  /* Hide mobile layout on desktop */
  .rooted-sticky-header,
  .rooted-content {
    display: none !important;
  }
  
  /* Hide mobile content on desktop */
  .mobile-content {
    display: none !important;
  }
  
  /* Show desktop layout on desktop */
  .rooted-main-flex {
    display: flex !important;
  }
}

@keyframes pulse-logo {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.85; }
  100% { transform: scale(1); opacity: 1; }
}
