/* ==========================================================
   FROSÓ — DESIGN TOKENS
   Palet   : krem hangat + biru es + hijau tua (dari logo)
   Font    : Baloo 2 (display, bulat & ramah) + Inter (body)
   Signature: "Kabut Beku" — blob es yang bernapas pelan di
              belakang produk, ganti warna sesuai varian
   ========================================================== */
:root {
  --cream: #FBF6EC;
  --cream-2: #F3EEE1;
  --deep-teal: #163F38;
  --deep-teal-2: #1F5850;
  --sky: #5EA9C0;
  --sky-light: #BFE3ED;
  --ice-mist: #E7F2EF;
  --white: #FFFFFF;
  --ink: #23302D;
  --muted: #6B7A75;

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 10px;
  --shadow-soft: 0 20px 45px rgba(22, 63, 56, 0.10);
  --ease: cubic-bezier(.22,.9,.32,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, .display {
  font-family: 'Baloo 2', sans-serif;
  color: var(--deep-teal);
  margin: 0;
  line-height: 1.08;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- NAVBAR ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px) saturate(140%);
  background: rgba(251, 246, 236, 0.72);
  border-bottom: 1px solid rgba(22, 63, 56, 0.06);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
  max-width: 1180px;
  margin: 0 auto;
}
.logo img { height: 34px; width: auto; }

.nav-links {
  display: flex;
  gap: 6px;
  background: var(--white);
  padding: 6px;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(22,63,56,0.06);
}
.nav-links a {
  padding: 9px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--muted);
  transition: all .25s var(--ease);
}
.nav-links a.active,
.nav-links a:hover {
  background: var(--deep-teal);
  color: var(--white);
}

.nav-actions { display: flex; align-items: center; gap: 14px; }
.icon-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(22,63,56,0.06);
  border: none;
  position: relative;
}
.icon-btn svg { width: 19px; height: 19px; stroke: var(--deep-teal); }
.cart-badge {
  position: absolute; top: -4px; right: -4px;
  background: var(--sky); color: white;
  font-size: 0.65rem; font-weight: 700;
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding: 50px 0 30px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 24px;
  min-height: 520px;
}
.hero-copy .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--deep-teal-2);
  background: var(--ice-mist);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.hero-copy h1 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.hero-copy h1 .accent { color: var(--sky); }
.hero-copy p.lead {
  margin-top: 20px;
  max-width: 430px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
}
.hero-cta {
  margin-top: 30px;
  display: flex;
  gap: 14px;
  align-items: center;
}
.btn {
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.96rem;
  border: 2px solid transparent;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-solid {
  background: var(--deep-teal);
  color: var(--white);
  box-shadow: 0 14px 26px rgba(22,63,56,0.22);
}
.btn-solid:hover { transform: translateY(-2px); box-shadow: 0 18px 30px rgba(22,63,56,0.28); }
.btn-outline {
  background: transparent;
  border-color: var(--deep-teal);
  color: var(--deep-teal);
}
.btn-outline:hover { background: var(--deep-teal); color: var(--white); }

.hero-trust {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.trust-avatars { display: flex; }
.trust-avatars span {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 3px solid var(--cream);
  background: var(--sky-light);
  margin-left: -12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700; color: var(--deep-teal);
}
.trust-avatars span:first-child { margin-left: 0; }
.trust-text b { color: var(--deep-teal); display: block; font-size: 0.92rem; }
.trust-text span { color: var(--muted); font-size: 0.8rem; }

/* ---------- HERO PRODUCT STAGE (rotasi) ---------- */
.stage {
  position: relative;
  height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stage-blob {
  position: absolute;
  width: 480px; height: 480px;
  border-radius: 46% 54% 60% 40% / 50% 45% 55% 50%;
  background: var(--ice-mist);
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  transition: background 0.7s var(--ease);
  animation: breathe 7s ease-in-out infinite;
  /* Beri tahu browser: elemen ini akan bergerak -> taruh di layer GPU
     sendiri, jangan ikut menggambar ulang bagian halaman lain. */
  will-change: transform;
}
/* Dulu animasi ini mengubah `border-radius`. Bentuk (radius) TIDAK BISA
   dipercepat GPU — browser harus menggambar ulang blob 480px ini di
   SETIAP frame, terus-menerus selama 7 detik tanpa henti. Itu penyebab
   scroll terasa tersendat.

   Sekarang efeknya dibuat dengan `transform` (skala + putar pelan).
   Karena bentuk blob-nya memang asimetris, memutarnya sedikit membuat
   siluetnya ikut "berubah" — hasil visualnya mirip, tapi GPU yang
   mengerjakan dan halaman tidak perlu digambar ulang sama sekali. */
@keyframes breathe {
  0%, 100% { transform: translateY(-50%) scale(1)      rotate(0deg); }
  50%      { transform: translateY(-50%) scale(1.045)  rotate(6deg); }
}
.stage-mist {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.mist-puff {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.9), rgba(255,255,255,0));
  opacity: 0;
  animation: rise 5s ease-in infinite;
}
.mist-puff:nth-child(1) { width: 60px; height: 60px; left: 58%; bottom: 30%; animation-delay: 0s; }
.mist-puff:nth-child(2) { width: 40px; height: 40px; left: 68%; bottom: 25%; animation-delay: 1.6s; }
.mist-puff:nth-child(3) { width: 50px; height: 50px; left: 62%; bottom: 35%; animation-delay: 3.2s; }
@keyframes rise {
  0% { opacity: 0; transform: translateY(0) scale(0.6); }
  30% { opacity: 0.55; }
  100% { opacity: 0; transform: translateY(-160px) scale(1.3); }
}

.tagline-vertical {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  font-family: 'Baloo 2', sans-serif;
  font-size: 2.6rem;
  font-weight: 700;
  color: rgba(22, 63, 56, 0.08);
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: color 0.6s var(--ease);
}
.tagline-vertical .solid {
  position: absolute;
  inset: 0;
  color: var(--deep-teal-2);
  -webkit-mask-image: linear-gradient(to top, black 55%, transparent 100%);
  mask-image: linear-gradient(to top, black 55%, transparent 100%);
}

.product-frame {
  position: relative;
  width: 300px;
  z-index: 2;
}
.product-frame-link {
  display: block;
  position: relative;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.product-frame img {
  width: 100%;
  filter: drop-shadow(0 30px 30px rgba(22,63,56,0.25));
  animation: float 4.5s ease-in-out infinite;
  transition: filter .25s var(--ease), transform .25s var(--ease);
}
.product-frame-link:hover img,
.product-frame-link:focus-visible img {
  filter: drop-shadow(0 34px 36px rgba(22,63,56,0.34));
}

/* Penanda "bisa dipencet": lingkaran kecil di pojok kanan atas foto.
   Ikut melayang bersama fotonya, jadi tidak pernah menabrak dot navigasi
   atau tombol panah di bawah panggung. */
.product-frame-hint {
  position: absolute;
  top: 4%;
  right: -10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--white);
  color: var(--deep-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(22,63,56,0.20);
  font-size: 0;
  animation: float 4.5s ease-in-out infinite;
  transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
  pointer-events: none;
  z-index: 3;
}
.product-frame-hint::before {
  content: '';
  width: 15px;
  height: 15px;
  background: currentColor;
  -webkit-mask: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E");
  mask: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E");
}
.product-frame-link:hover .product-frame-hint,
.product-frame-link:focus-visible .product-frame-hint {
  background: var(--deep-teal);
  color: var(--white);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.stage-nav {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}
.stage-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(22,63,56,0.18);
  border: none;
  padding: 0;
  transition: all .3s var(--ease);
}
.stage-dot.active { background: var(--deep-teal); width: 26px; border-radius: 999px; }

.stage-arrow {
  position: absolute;
  bottom: 16px;
  right: 24px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--deep-teal);
  color: var(--white);
  border: none;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 20px rgba(22,63,56,0.25);
  z-index: 3;
  transition: transform .2s var(--ease);
}
.stage-arrow:hover { transform: scale(1.08); }
.stage-arrow svg { width: 18px; height: 18px; }

/* ---------- SECTION: KENAPA FROSÓ ---------- */
.section { padding: 60px 0; }
.section-head {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 38px;
}
.section-head .eyebrow {
  color: var(--sky);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-top: 10px;
}
.section-head p { color: var(--muted); margin-top: 14px; }
.swipe-hint {
  display: none;
  margin-top: 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--sky);
  letter-spacing: 0.02em;
}

/* ---------- BRAND VIDEO (animasi logo yang menyatu) ---------- */
.brand-video {
  margin: 6px auto 30px;
  max-width: 620px;
  position: relative;
}
.brand-video-el {
  display: block;
  width: 100%;
  height: auto;
  /* Background abu video hilang & menyatu dengan cream */
  mix-blend-mode: multiply;
  /* Tepi video di-fade lembut ke sekeliling supaya tak ada garis kotak */
  -webkit-mask-image: radial-gradient(ellipse 65% 68% at 50% 48%, #000 45%, transparent 78%);
          mask-image: radial-gradient(ellipse 65% 68% at 50% 48%, #000 45%, transparent 78%);
}

.perks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 8px;
}
.perk-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 34px 30px 30px;
  box-shadow: 0 10px 30px rgba(22, 63, 56, 0.06);
  border: 1px solid rgba(22, 63, 56, 0.05);
  overflow: hidden;
  transition: transform .32s var(--ease), box-shadow .32s var(--ease);
}
/* garis aksen gradient di atas, muncul saat hover */
.perk-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--deep-teal), var(--sky));
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease);
}
.perk-card:hover { transform: translateY(-6px); box-shadow: 0 22px 46px rgba(22, 63, 56, 0.13); }
.perk-card:hover::before { transform: scaleX(1); }

/* nomor besar samar di pojok */
.perk-num {
  position: absolute; top: 16px; right: 24px;
  font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 3.4rem;
  line-height: 1; color: var(--deep-teal); opacity: 0.07; pointer-events: none;
}
/* motif frost/salju halus di pojok bawah */
.perk-frost {
  position: absolute; right: -18px; bottom: -18px;
  width: 120px; height: 120px; color: var(--sky);
  opacity: 0.06; pointer-events: none; transition: transform .5s var(--ease), opacity .4s;
}
.perk-card:hover .perk-frost { transform: rotate(45deg) scale(1.1); opacity: 0.1; }

.perk-icon {
  position: relative; z-index: 1;
  width: 62px; height: 62px;
  border-radius: 18px;
  background: linear-gradient(140deg, var(--deep-teal) 0%, var(--sky) 100%);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
  box-shadow: 0 10px 20px rgba(43, 110, 150, 0.28);
  transition: transform .32s var(--ease);
}
.perk-icon svg { width: 28px; height: 28px; stroke: #fff; color: #fff; }
.perk-card:hover .perk-icon { transform: translateY(-3px) rotate(-8deg) scale(1.06); }

.perk-card h3 { position: relative; z-index: 1; font-size: 1.15rem; color: var(--deep-teal); }
.perk-card p { position: relative; z-index: 1; color: var(--muted); font-size: 0.92rem; margin-top: 8px; line-height: 1.6; }

/* ---------- WIDGET KENAPA FROSÓ: kartu = tab, connector, panel hijau bersambung ---------- */
.kenapa-widget { position: relative; }
.kenapa-widget .perks { position: relative; z-index: 2; cursor: pointer; }
.kenapa-widget .perk-card { cursor: pointer; -webkit-tap-highlight-color: transparent; }
/* kartu aktif: garis gradient atasnya menyala, sudut bawah diratakan
   supaya siluetnya menyatu mulus dengan connector di bawahnya.
   Bayangan hanya ke arah atas supaya tak ada garis di perbatasan connector. */
.kenapa-widget .perk-card.is-active {
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: 0 -10px 26px rgba(22, 63, 56, 0.10);
}
.kenapa-widget .perk-card.is-active::before { transform: scaleX(1); }
.kenapa-widget .perk-card.is-active:hover { transform: none; }
.kenapa-widget .perk-card { transition: transform .32s var(--ease), box-shadow .32s var(--ease), border-radius .32s var(--ease); }
.kenapa-widget .perk-card:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }

/* Aksen penyambung MELENGKUNG: bentuk SVG dengan kaki kurva yang menyapu
   keluar (flare) lalu melebur ke panel, diisi gradasi putih → hijau.
   Container-nya memotong flare dengan rapi di tepi panel untuk kartu pinggir.
   ANIMASI: opacity fade in/out + transform, bukan slide left. */
.kenapa-connector {
  position: relative;
  z-index: 1;
  height: 64px;
  margin-top: -24px;
  margin-bottom: -2px;
  overflow: hidden;
  pointer-events: none;
}
.kenapa-connector-svg {
  position: absolute;
  top: 0;
  height: 100%;
  /* transisi opacity (fade in/out) dan transform (scale), bukan left position */
  transition: opacity .35s var(--ease), transform .35s var(--ease);
  will-change: opacity, transform;
  opacity: 1;
}

/* Panel hijau: satu kartu memanjang, kontennya bergeser sesuai kartu aktif */
.fresh-panel-wrap {
  position: relative;
  z-index: 2;
  /* atas dibikin lurus (rata) supaya nyatu total dengan connector & tab di atasnya;
     bawah tetap membulat seperti kartu pada umumnya */
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, var(--deep-teal), var(--deep-teal-2));
  touch-action: pan-y;
}
.fresh-track {
  display: flex;
  width: 300%;
  transition: transform .5s var(--ease);
}
.fresh-track .fresh-panel {
  width: 33.3334%;
  flex-shrink: 0;
  border-radius: 0;      /* radius dipegang wrap-nya */
  background: transparent;
}

/* Bingkai media panel 01 & 02 (meniru gaya foto stack) */
.panel-media {
  width: 300px; height: 400px;
  border-radius: 22px;
  overflow: hidden;
  border: 5px solid #fff;
  box-shadow: 0 22px 46px rgba(0,0,0,0.4);
  background: var(--ice-mist);
  transform: rotate(-3deg);
}
.panel-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.panel-media-placeholder {
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 42%, rgba(94,169,192,0.35), transparent 68%), #143530;
  color: rgba(191,227,237,0.6);
}
.panel-media-placeholder svg { width: 64px; height: 64px; }

/* ---------- PRODUCT GRID (beranda) ---------- */
.product-teaser-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.p-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: 0 18px 40px rgba(22, 63, 56, 0.12);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.p-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 34px 60px rgba(22, 63, 56, 0.20);
}
.p-card .p-img {
  background: var(--ice-mist);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  height: 260px;
  padding: 20px;
}
.p-card .p-img img { max-height: 220px; width: auto; margin: 0 auto; }
.p-card h4 { margin-top: 16px; font-family: 'Baloo 2', sans-serif; font-size: 1.1rem; color: var(--deep-teal); }
.p-card .p-price { color: var(--sky); font-weight: 700; margin-top: 4px; }
.p-card .p-cta {
  margin-top: 14px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--deep-teal);
  display: inline-flex; align-items: center; gap: 6px;
}

/* ---------- BANNER FRESH ---------- */
.fresh-banner-section { padding: 0 0 28px; }
.fresh-banner {
  background: linear-gradient(135deg, var(--deep-teal), var(--deep-teal-2));
  border-radius: var(--radius-lg);
  padding: 48px 52px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  align-items: center;
  gap: 32px;
  overflow: hidden;
  position: relative;
}
.fresh-banner-content .fresh-eyebrow {
  display: inline-block;
  background: rgba(255,255,255,0.14);
  color: #FFE8C9;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.fresh-banner-content h2 {
  color: var(--white);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
}
.fresh-banner-content p {
  color: rgba(255,255,255,0.82);
  margin-top: 14px;
  line-height: 1.65;
  max-width: 460px;
}
.fresh-points {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fresh-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
}
.fresh-points svg {
  width: 20px; height: 20px;
  stroke: #7FD1B9;
  background: rgba(127,209,185,0.15);
  border-radius: 50%;
  padding: 3px;
  flex-shrink: 0;
}
.fresh-banner-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
}
/* Tumpukan kartu foto (seperti memegang kartu, berganti otomatis) */
.card-stack {
  position: relative;
  width: 300px;
  height: 400px;
}
.stack-card {
  position: absolute;
  top: 0; left: 50%;
  width: 270px; height: 400px;
  margin-left: -135px;
  border-radius: 22px;
  overflow: hidden;
  border: 5px solid #fff;
  box-shadow: 0 22px 46px rgba(0,0,0,0.4);
  background: var(--ice-mist);
  transform-origin: bottom center;
  transition: transform 0.9s cubic-bezier(.22,.61,.36,1), opacity 0.9s ease;
  will-change: transform;
  backface-visibility: hidden;
}
.stack-card img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }

/* biar bisa di-swipe: geser horizontal ditangani JS, scroll vertikal tetap jalan */
.card-stack { touch-action: pan-y; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.stack-card[data-pos="0"] { cursor: grab; }
.stack-card[data-pos="0"]:active { cursor: grabbing; }

/* Posisi tiap kartu dalam deck (fan seperti kartu di tangan) */
.stack-card[data-pos="0"] { transform: rotate(-4deg) translateY(0) scale(1);        z-index: 40; }
.stack-card[data-pos="1"] { transform: rotate(4deg)  translate(20px, 6px) scale(0.95); z-index: 30; }
.stack-card[data-pos="2"] { transform: rotate(10deg) translate(38px, 14px) scale(0.9); z-index: 20; }
.stack-card[data-pos="3"] { transform: rotate(15deg) translate(52px, 24px) scale(0.86); z-index: 10; }

/* ---------- FOOTER ---------- */
.footer {
  background: var(--deep-teal);
  color: rgba(255,255,255,0.8);
  padding: 60px 0 28px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}
.footer .logo-white { font-family: 'Baloo 2'; font-size: 1.6rem; color: white; }
.footer h5 { color: white; font-size: 0.9rem; margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 10px; font-size: 0.9rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  margin-top: 40px;
  padding-top: 20px;
  text-align: center;
  font-size: 0.8rem;
}

/* ---------- BOTTOM NAV (mobile) — tersembunyi di desktop ---------- */
.bottom-nav { display: none; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .stage { height: 380px; margin-top: 20px; }
  .stage-blob { width: 320px; height: 320px; right: 0; }
  .product-frame { width: 220px; }
  .product-frame-hint { width: 30px; height: 30px; right: -6px; }
  .tagline-vertical { font-size: 1.6rem; }
  .nav-links { display: none; }
  /* Kartu 01/02/03 jadi 3 kolom ringkas di HP (berfungsi sebagai indikator + tab).
     Deskripsi disembunyikan supaya muat; teks lengkap tampil di panel hijau. */
  /* MOBILE: "folder" — tab aktif nempel langsung ke panel hijau,
     tab 02 & 03 jadi tumpukan yang mengintip di belakangnya. Tanpa connector. */
  .kenapa-connector { display: none; }

  .kenapa-widget .perks {
    display: flex;
    grid-template-columns: none;
    align-items: flex-end;
    gap: 0;
    position: relative;
    z-index: 2;
    margin: 8px 0 0;
  }
  .kenapa-widget .perk-card {
    box-sizing: border-box;
    transition: width .3s var(--ease), background .3s var(--ease);
  }
  .perk-card p, .perk-frost { display: none; }

  /* TAB AKTIF: header depan, lebar, menyatu langsung dengan panel di bawah */
  .kenapa-widget .perk-card.is-active {
    order: 0;
    position: relative;
    z-index: 5;
    flex: 1 1 auto;
    min-width: 0;
    border-radius: 18px 18px 0 0;
    padding: 15px 16px;
    display: flex; flex-direction: row; align-items: center; gap: 11px;
    box-shadow: 0 -6px 16px rgba(22, 63, 56, 0.06);
  }
  .kenapa-widget .perk-card.is-active .perk-icon {
    display: flex; order: 1;
    width: 40px; height: 40px; border-radius: 12px; margin: 0; flex: 0 0 auto;
  }
  .kenapa-widget .perk-card.is-active .perk-icon svg { width: 19px; height: 19px; }
  .kenapa-widget .perk-card.is-active h3 {
    display: block; order: 2;
    font-size: 0.98rem; line-height: 1.2; margin: 0;
  }
  .kenapa-widget .perk-card.is-active .perk-num {
    position: static; order: 3; margin: 0;
    font-size: 1.05rem; opacity: 0.4;
  }

  /* TAB NON-AKTIF: tumpukan di belakang, mengintip di kanan */
  .kenapa-widget .perk-card:not(.is-active) {
    order: 1;
    position: relative;
    z-index: 3;
    flex: 0 0 auto;
    width: 74px;
    height: 68px;
    margin-left: -18px;
    border-radius: 15px 15px 0 0;
    padding: 12px 0 0;
    display: flex; align-items: flex-start; justify-content: center;
    background: #F1ECE1;
    box-shadow: -7px -3px 12px rgba(22, 63, 56, 0.06);
  }
  .kenapa-widget .perk-card:not(.is-active) .perk-icon,
  .kenapa-widget .perk-card:not(.is-active) h3 { display: none; }
  .kenapa-widget .perk-card:not(.is-active) .perk-num {
    position: static; margin: 0;
    font-size: 1.5rem; opacity: 0.5;
  }
  /* kartu paling belakang (non-aktif kedua): lebih pendek & lebih gelap */
  .kenapa-widget .perk-card:not(.is-active) ~ .perk-card:not(.is-active) {
    z-index: 2;
    height: 62px;
    background: #E9E3D6;
    box-shadow: -7px -3px 10px rgba(22, 63, 56, 0.05);
  }

  .kenapa-connector { height: 46px; margin-top: -18px; }

  .footer-grid { grid-template-columns: 1fr; }
  .fresh-banner { grid-template-columns: 1fr; padding: 36px 28px; }
  .fresh-banner-visual { display: flex; margin-top: 18px; min-height: 340px; }
  .card-stack { width: 250px; height: 340px; }
  .stack-card { width: 230px; height: 340px; margin-left: -115px; }
  .panel-media { width: 230px; height: 320px; }

  .hero { padding: 16px 0 20px; }
  .hero-grid { min-height: auto; gap: 8px; }

  /* Padatkan jarak antar-section di mobile (dari 90px jadi lebih rapat) */
  .section { padding: 28px 0; }

  /* --- Bagian Favorit jadi carousel geser horizontal di mobile --- */
  .swipe-hint { display: block; }
  .product-teaser-grid {
    display: flex;
    grid-template-columns: none;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    /* beri ruang tepi + kartu terakhir tidak mepet */
    padding: 4px 20px 16px;
    margin: 0 -20px;
    scrollbar-width: none; /* Firefox: sembunyikan scrollbar */
  }
  .product-teaser-grid::-webkit-scrollbar { display: none; } /* Chrome/Safari */
  .product-teaser-grid .p-card {
    flex: 0 0 78%;      /* tiap kartu ~78% lebar layar, kartu berikut "mengintip" */
    max-width: 300px;
    scroll-snap-align: center;
  }
  .p-card .p-img { height: 220px; }

  /* --- Footer dipadatkan + 2 kolom di mobile --- */
  .footer { padding: 30px 0 18px; }
  .footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;   /* 2 kolom sama lebar */
    gap: 16px 20px;
  }
  .footer-grid > div:first-child {
    grid-column: 1 / -1;              /* blok Frosó penuh di baris atas */
  }
  .footer .logo-white { font-size: 1.4rem; }
  .footer p { margin-top: 8px !important; font-size: 0.86rem; }
  .footer h5 { margin-bottom: 8px; }
  .footer li { margin-bottom: 6px; font-size: 0.86rem; }
  .footer-bottom { margin-top: 20px; padding-top: 14px; font-size: 0.76rem; }

  /* --- BOTTOM NAV: melengkung di atas, menempel ke dasar layar --- */
  .bottom-nav {
    display: flex;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 60;
    background: var(--white);
    /* lengkung hanya di sisi atas; bawah lurus supaya nyambung ke pojok HP */
    border-radius: 26px 26px 0 0;
    box-shadow: 0 -6px 24px rgba(22, 63, 56, 0.12);
    /* menempel penuh ke dasar + aman dari gesture bar HP */
    padding: 10px 8px calc(10px + env(safe-area-inset-bottom));
    justify-content: space-around;
    align-items: stretch;
  }
  .bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px 0;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 600;
    border-radius: 14px;
    transition: color .2s var(--ease), background .2s var(--ease);
  }
  .bottom-nav-item svg { width: 23px; height: 23px; stroke: currentColor; }
  .bottom-nav-item.active {
    color: var(--deep-teal);
    background: rgba(94, 169, 192, 0.12);
    font-weight: 700;
  }
  .bottom-nav-item.active svg { stroke: var(--deep-teal); stroke-width: 2.5; }
  .bottom-nav-item:active { background: var(--ice-mist); }

  /* beri ruang di bawah halaman supaya konten tidak tertutup bottom nav */
  body { padding-bottom: 72px; }
  .footer { margin-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .stage-blob, .product-frame img, .mist-puff { animation: none !important; }
}

/* ==========================================================
   <picture> — pembungkus dari froso_img()
   Elemen <picture> defaultnya "inline", jadi bisa memunculkan
   celah kecil di dalam kartu/flex. Dibuat "contents" supaya
   <picture> seolah tidak ada dan <img> langsung jadi anak
   dari kartunya (semua CSS lama tetap berlaku apa adanya).
   ========================================================== */
picture { display: contents; }

/* PENTING — pasangan wajib untuk atribut width/height.
   Sejak froso_img() menulis width="388" height="644" di HTML,
   browser akan memakai angka itu apa adanya. Kalau CSS cuma
   mengatur lebar (mis. .product-frame img { width:100% }), tingginya
   tetap ikut angka HTML -> gambar melar ke bawah dan menabrak tombol.
   `height: auto` membuat tinggi mengikuti rasio aslinya. */
img,
picture > img {
  max-width: 100%;
  height: auto;
}
