/* ==================== CSS VARIABLES ==================== */
:root {
  --bg: #fff9eb;
  --pink: #bd2059;
  --green: #00a69c;
  --yellow: #fddb8a;
  --blue: #00a8df;
  --orange: #f05a3b;
  --purple: #84246f;
  --purple2: #982880;
  --deep: #6c235a;
  --font-head: "Funnel Display", sans-serif;
  --font-body: "Lexend Deca", sans-serif;
}

/* ==================== RESET & BASE ==================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--pink);
}

/* ==================== SECTION ==================== */
.section {
  padding: 80px 60px;
}

/* ==================== PINK BTN ==================== */
button img,
.pink-btn img {
  display: inline-block;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  object-fit: contain;
}

.pink-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--pink);
  border: 2px solid var(--pink);
  border-radius: 50px;
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
  white-space: nowrap;
}

/* ==================== FEATURE TABS SECTION ==================== */
.feature-tabs-section {
  padding: 80px 0 0;
  overflow: visible !important;
  position: relative;
}

/* ---- Header ---- */
.feature-tabs-header {
  text-align: center;
  margin-bottom: 48px;
  padding: 0 60px;
}

.feature-tabs-header h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 60px;
  color: var(--pink);
  line-height: 1;
  margin-bottom: 12px;
}

.feature-tabs-header p {
  font-size: 20px;
  color: var(--pink);
  font-weight: 300;
}

/* ---- Container ---- */
.feature-tabs-container {
  position: relative;
}

/* ==================== TAB BUTTONS (base / mobile default) ==================== */
.feature-tab-buttons {
  display: flex;
  gap: 0;
  padding: 0 60px;
  position: relative;
  z-index: 2;
}

.feature-tab-btn {
  flex: 0 0 auto;
  width: 140px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 16px;
  height: 90px;
  background: var(--tab-color, #ccc);
  border-radius: 48px 48px 0 0;
  border: 2px solid var(--purple);
  border-bottom: none;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.25s;
  position: relative;
}

.feature-tab-btn + .feature-tab-btn {
  margin-left: 0;
  border-left-width: 0;
}

.feature-tab-btn.active {
  opacity: 1;
  z-index: 3;
}

.tab-icon-wrap {
  width: 56px;
  height: 56px;
  background: var(--bg);
  border: 2px solid var(--purple);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tab-icon-wrap img {
  display: block !important;
  width: 32px !important;
  height: 32px !important;
  object-fit: contain;
}

/* ==================== FEATURE PANELS ==================== */
.feature-panels {
  position: relative;
  height: min(720px, calc(100vh - 220px));
}

.feature-panel {
  background-color: var(--panel-color, #00a69c);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  padding: 56px 60px 60px;
  min-height: 55vh;
  height: auto;
  position: relative;
  overflow: visible;
  flex-direction: row;
  align-items: flex-start;
  gap: 40px;
  display: none;

}

.feature-panel.active {
  display: flex;
}

.feature-panel[data-panel="0"] { background-image: url("../images/feature-bg-1.svg"); }
.feature-panel[data-panel="1"] { background-image: url("../images/feature-bg-2.svg"); }
.feature-panel[data-panel="2"] { background-image: url("../images/feature-bg-3.svg"); }
.feature-panel[data-panel="3"] { background-image: url("../images/feature-bg-4.svg"); }
.feature-panel[data-panel="4"] { background-image: url("../images/feature-bg-5.svg"); }
.feature-panel[data-panel="5"] { background-image: url("../images/feature-bg-6.svg"); }
.feature-panel[data-panel="6"] { background-image: url("../images/feature-bg-7.svg"); }
.feature-panel[data-panel="7"] { background-image: url("../images/feature-bg-8.svg"); }

/* ---- Panel Icon ---- */
.panel-icon-wrap {
  width: 75px;
  height: 80px;
  background: var(--bg);
  border: 2px solid var(--purple);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: absolute;
  top: 30px;
  left: 60px;
  z-index: 1;
}

.panel-icon-wrap img {
  display: block !important;
  width: 44px !important;
  height: 44px !important;
  object-fit: contain;
}

/* ---- Panel Content ---- */
.panel-content {
  flex: 0 0 800px;
  padding-top: 90px;
  color: #fff;
  position: relative;
  z-index: 1;
}

.feature-panel[data-panel="6"] .panel-content,
.feature-panel[data-panel="6"] .panel-content h3,
.feature-panel[data-panel="6"] .panel-content p,
.feature-panel--light .panel-content,
.feature-panel--light .panel-content h3,
.feature-panel--light .panel-content p {
  color: #3d1a00;
}

.panel-content h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 36px;
  line-height: 1.2;
  margin-bottom: 20px;
  color: inherit;
}

.panel-content p {
  font-size: 17px;
  line-height: 1.75;
  font-weight: 300;
  margin-bottom: 32px;
  color: inherit;
}

.panel-content .pink-btn {
  background: var(--pink);
  border-color: var(--pink);
  color: #fff;
  font-size: 16px;
  padding: 12px 28px;
}

/* ---- Panel Visual ---- */
.panel-visual {
  flex: 1;
  position: relative;
  height: 480px;
  align-self: flex-end;
}

/* .panel-person {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 380px;
  width: auto;
  max-width: none;
  object-fit: contain;
  display: block;
  z-index: 1;
} */

.panel-app {
  position: absolute;
  right: 0;
  top: 40px;
  width: 300px ;    /*   300 */
  height: 380px;
  object-fit: cover;
  border-radius: 20px;
  display: block;
  z-index: 0;
}

/* .panel-play {
  position: absolute;
  right: -12px;
  bottom: 140px;
  width: 52px;
  height: 52px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
} */

/* .panel-play img {
  display: block !important;
  width: 22px !important;
  height: 22px !important;
  margin-left: 3px;
} */

/* ==================== TABLET (≤1024px) ==================== */
@media (max-width: 1024px) {
  .section {
    padding: 60px 20px;
  }

  .feature-tabs-section {
    padding: 60px 0 0;
  }

  .feature-tabs-header {
    padding: 0 12px;
    margin-bottom: 32px;
    text-align: left;
  }

  .feature-tabs-header h2 {
    font-size: 48px;
    line-height: 58px;
    letter-spacing: 0;
  }

  .feature-tabs-header p {
    font-size: 20px;
    line-height: 32px;
  }

  .feature-tab-buttons {
    display: none;
  }

  .feature-panels {
    display: flex;
    height: min(720px, calc(100vh - 220px));
    flex-direction: column;
    gap: 24px;
    padding: 0 2px !important;
    height: auto !important;
  }

  .feature-panel {
    display: flex !important;
    flex-direction: column;
    padding: 24px 2px 40px !important;
    min-height: auto;
    border-radius: 48px;
    border: 2px solid #84246f;
    background-image: none !important;
    overflow: hidden;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    width: 100% !important;
    max-width: 100% !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    opacity: 1 !important;
  }

  .panel-icon-wrap {
    position: static;
    width: 75px;
    height: 88px;
  }

  .panel-content {
    flex: none;
    padding-top: 0;
  }

  .panel-content h3 {
    font-size: 40px;
    line-height: 1.2;
  }

  .panel-content p {
    font-size: 20px;
    line-height: 32px;
  }

  .panel-visual {
    height: 232px;
    width: 100%;
    align-self: stretch;
    margin-top: auto;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 0;
    overflow: hidden;
  }

/*   .panel-person {
    position: relative;
    width: 152px;
    height: auto;
    left: auto;
    bottom: 7px;
    z-index: 2;
    margin-right: 50px;
  } */

  .panel-app {
    position: relative;
/*     width: 270px; */
     width: 300px;
    height: 240px;
    right: 105px;
    top: auto;
    bottom: auto;
    border-radius: 14px;
    z-index: 1;
  }

/*   .panel-play {
    position: absolute;
    width: 34px;
    height: 34px;
    right: 225px;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    z-index: 3;
  }

  .panel-play img {
    width: 14px !important;
    height: 14px !important;
    margin-left: 2px;
  } */
}

/* ==================== MOBILE (≤640px) ==================== */
@media (max-width: 640px) {
  .section {
    padding: 48px 10px;
  }

  .feature-tabs-section {
    padding: 40px 0 0;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .feature-tabs-header {
    padding: 0 12px;
  }

  .feature-tabs-header h2 {
    font-size: 48px;
    line-height: 58px;
  }

  .feature-tabs-header p {
    font-size: 20px;
    line-height: 32px;
  }

  .feature-panels {
    padding: 0 2px !important;
    gap: 24px;
    height: auto !important;
  }

  .feature-panel {
    padding: 24px 2px 40px !important;
    border-radius: 48px;
    width: 100% !important;
    max-width: 100% !important;
  }

  .panel-icon-wrap {
    width: 75px;
    height: 88px;
  }

  .panel-icon-wrap img {
    width: 52px !important;
    height: 52px !important;
  }

  .panel-content {
    padding: 0 20px 24px;
  }

  .panel-content h3 {
    font-size: 40px;
    line-height: 1.2;
    margin-bottom: 24px;
  }

  .panel-content p {
    font-size: 20px;
    line-height: 32px;
  }

  .panel-content .pink-btn {
    display: block;
  width: 65%;              
  max-width: 100%;
  text-align: center;
  margin: 20px 0 0 !important;
  }

  .panel-visual {
    height: 220px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
  }

/*   .panel-person {
    position: relative;
    width: 140px;
    height: auto;
    left: auto;
    bottom: auto;
    z-index: 2;
    margin-right: -28px;
  } */

  .panel-app {
    position: relative;
/*     width: 360px; */
    width:100%;
    height: 205px;
    top: auto;
    bottom: auto;
    right: 0px;
    z-index: 1;
  }

/*   .panel-play {
    position: absolute;
    width: 32px;
    height: 32px;
    right: 125px;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    z-index: 3;
  } */
}

@media (min-width: 1025px) {

  .feature-tabs-section {
    padding-top: 100px;
    overflow: visible !important;
  }

  .feature-tabs-header {
    margin-bottom: 40px;  /* -------- */
    text-align: right;
    padding: 0 60px;
  }

  .feature-tabs-header h2 {
    font-size: 64px;
    line-height: 74px;
    letter-spacing: -1.28px;
  }

  .feature-tabs-header p {
    width: 872px;
    margin-left: auto;
    font-size: 20px;
    line-height: 32px;
  }

  /* hide original tabs (Splose style) */
  .feature-tab-buttons {
    display: none !important;
  }

  /* 🔥 STACK CONTAINER */
  .feature-panels {
    position: relative;
/*     height: 100vh; */
      height: min(720px, calc(100vh - 220px));
  }

  /* 🔥 ALL PANELS STACKED */
  .feature-panel {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    display: flex !important;
    flex-direction: row;
    align-items: flex-start;
    border-radius: 48px;
/*     padding: 80px 56px 56px; */
   padding:  40px 56px 40px;
    gap: 36px;
    overflow: hidden;
    transform-origin: top center;
    will-change: transform;
  }

  .panel-icon-wrap {
    position: absolute;
    top: 30px;
    left: 56px;
   width: 75px; 
    height: 75px;
  }

  .panel-content {
/*     flex: 0 0 680px; */
    flex: 1;
  max-width: 560px;
    padding-top: 80px;
  }

  .panel-visual {
    flex: 1;
    position: relative;
    height: 420px;
    align-self: center;
     overflow: visible;   /* ............................. */
/*     flex          : 0 0 480px;  
    max-width     : 480px;
    height        : 420px;
    align-self    : flex-end;
    position      : relative;
    overflow      : visible; */
  }

/*   .panel-person {
/*     position : absolute;
    right    : 500px;       
    left     : auto;
    bottom   : 0;
    height   : 420px;
    width    : auto; */
   /*     right    : 460px;    */
   /*  position : absolute;
    right    :410px; 
    left     : auto;
    bottom   : 0;
    height   : 400px;
    width    : auto;
    top     : 70px;
    z-index  : 0;   
  } */

  .panel-app {
/*     right  : 20px;
    left   : auto;
    bottom : 0;
    top    : auto;
    width  : 560px;
    height : 360px; */
    position      : absolute;
    right         : 5px;   /*   20 */
    left          : auto;
    bottom        : 0;
    top           : auto;
/*     width         : 560px; */
    width         : 720px;
    height        : 360px;
    border-radius : 20px;
    z-index       : 1; 

  }

/*   .panel-play {
    position: absolute;
    right: 175px;
    top: 50%;
    transform: translate(50%, -50%);
    width: 56px;
    height: 56px;
  } */
}
 @media (min-width: 1025px) {

  .feature-tab-buttons {
    position: absolute;
    top: -60px;
    right: 60px;
    width: 400px;
    height: 120px;
    z-index: 100;
  }

  .feature-tab-btn {
    position: absolute;
    right: 0;
    top: 0;
    width: 260px;
    height: 70px;
    border-radius: 40px;
    transition: transform 0.4s ease;
  }

}
@media (min-width: 1025px) {
  .feature-panel {
    position: absolute;
    top: 0;
    left: 0;
    transform: none; 
    width: 100%;
    transform-origin: top center;
  }
}
