/* ===== Tailwind-ish Reset (dipertahankan seperlunya) ===== */
*,
::before,
::after {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  border-color: #e5e7eb;
}
::before, ::after { --tw-content: ''; }

html, :host {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -moz-tab-size: 4; -o-tab-size: 4; tab-size: 4;
  font-family: Manrope, system-ui, Segoe UI, Roboto, Arial, sans-serif;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
}
body { margin: 0; line-height: inherit; background:#fff; color:#0f172a; }
hr { height: 0; color: inherit; border-top-width: 1px; }
a { color: inherit; text-decoration: none; }
b, strong { font-weight: 700; }
img, svg, video, canvas, audio, iframe, embed, object { display: block; vertical-align: middle; }
img, video { max-width: 100%; height: auto; }
[hidden]:where(:not([hidden="until-found"])) { display: none; }

/* ===== Tokens ===== */
:root { --border: #e2e8f0; /* slate-200 */ }

/* ===== Layout & Typography ===== */
.container-soft { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 4rem 0; }
@media (min-width: 768px) { .section { padding: 5rem 0; } }

.h1 {
  font-size: 2.25rem; line-height: 2.5rem;
  font-weight: 800; line-height: 1.25; letter-spacing: -0.025em;
}
@media (min-width: 768px) { .h1 { font-size: 3rem; line-height: 1; } }

.h2 { font-size: 1.875rem; line-height: 2.25rem; font-weight: 800; letter-spacing: -0.025em; }
.lead { font-size: 1.125rem; line-height: 1.75rem; color: #334155; }
.muted { color: #475569; }

/* ===== Components ===== */
.card {
  border-radius: 14px; border: 1px solid var(--border); background: #fff; padding: 1.25rem;
  box-shadow: 0 6px 24px rgba(2,8,23,.08);
}

/* ===== Buttons fixed ===== */
.btn,
.btn-brand,
.btn-rose,
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border-radius: 9999px;
  border: 1px solid transparent;
  padding: .75rem 1.25rem;
  font-weight: 700;
  box-shadow: 0 6px 24px rgba(2,8,23,.08);
  transition: transform .15s cubic-bezier(.4,0,.2,1);
}
.btn:hover,
.btn-brand:hover,
.btn-rose:hover,
.btn-outline:hover {
  transform: translateY(-2px);
}

/* Variants */
.btn-brand {
  background:#0ea5e9;
  color:#fff;
}
.btn-brand:hover {
  background:#0284c7;
}

.btn-rose {
  background:#f43f5e;
  color:#fff;
}
.btn-rose:hover {
  background:#be123c;
}

.btn-outline {
  background:#fff;
  border-color: var(--border);
  color:#0f172a;
}

.icon {
  display:grid; place-items:center; width:2.5rem; height:2.5rem; border-radius:.75rem;
  background:#e0f2fe; color:#0ea5e9; font-weight:900;
}

.header-border { border-color: var(--border); }
.hr-soft { margin-top:1.5rem; padding-top:1rem; border-top:1px solid var(--border); }

/* ===== Media (video) ===== */
.media-wrap { position: relative; width: 100%; overflow: hidden; border-radius: .75rem; }
.media-9x16 { aspect-ratio: 9 / 16; }            /* ganti padding hack → aspect-ratio */
.media {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
}
.media-unmute{
  position:absolute; right:.75rem; bottom:.75rem;
  padding:.25rem .75rem; border-radius:999px;
  background:rgba(0,0,0,.6); color:#fff; font-size:.75rem; line-height:1rem;
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);
  transition: background-color .15s ease;
}
.media-unmute:hover{ background:rgba(0,0,0,.8); }

/* ===== FAB popup animation ===== */
#fabPopup { transform: translateY(10px); opacity: 0; transition: all .25s ease; }
#fabPopup.show { transform: translateY(0); opacity: 1; }

/* ===== Utilities yang dipakai HTML (keep minimal) ===== */
.fixed { position: fixed; } .absolute { position: absolute; } .sticky { position: sticky; }
.inset-x-0 { left:0; right:0; }
.bottom-0 { bottom:0; } .bottom-16 { bottom:4rem; } .bottom-20 { bottom:5rem; }
.right-0 { right:0; } .right-4 { right:1rem; }
.top-0 { top:0; }
.z-40 { z-index: 40; } /* tambahkan ini kalau perlu lebih tinggi: .z-50 { z-index:50; } */

.mx-auto { margin-left:auto; margin-right:auto; }
.mb-1 { margin-bottom:.25rem; } .mb-3 { margin-bottom:.75rem; } .mb-8 { margin-bottom:2rem; }
.mt-2 { margin-top:.5rem; } .mt-3 { margin-top:.75rem; } .mt-4 { margin-top:1rem; }
.mt-5 { margin-top:1.25rem; } .mt-6 { margin-top:1.5rem; } .mt-8 { margin-top:2rem; }

.block{display:block} .flex{display:flex} .grid{display:grid}
.hidden{display:none}

.h-14{height:3.5rem} .h-16{height:4rem} .h-6{height:1.5rem}
.w-14{width:3.5rem} .w-60{width:15rem} .w-auto{width:auto} .w-full{width:100%}
.max-w-prose{max-width:65ch}

.cursor-pointer{cursor:pointer} .list-decimal{list-style-type:decimal}
.flex-col{flex-direction:column} .flex-wrap{flex-wrap:wrap}
.place-items-center{place-items:center}
.items-center{align-items:center}
.justify-center{justify-content:center}
.justify-between{justify-content:space-between}

.gap-2{gap:.5rem} .gap-3{gap:.75rem} .gap-4{gap:1rem} .gap-5{gap:1.25rem} .gap-6{gap:1.5rem}
.space-y-2 > :not([hidden]) ~ :not([hidden]){ --tw-space-y-reverse:0; margin-top: calc(.5rem * (1 - var(--tw-space-y-reverse))); margin-bottom: calc(.5rem * var(--tw-space-y-reverse)); }

.rounded{border-radius:.25rem} .rounded-lg{border-radius:.5rem} .rounded-xl{border-radius:.75rem} .rounded-full{border-radius:9999px}
.border{border-width:1px} .border-b{border-bottom-width:1px} .border-t{border-top-width:1px}

.bg-[#25D366]{ background:#25D366; }
.bg-slate-100{ background:#f1f5f9; }
.bg-white{ background:#fff; }
.bg-white\/95{ background: rgba(255,255,255,.95); }

.bg-gradient-to-b{ background-image: linear-gradient(to bottom, var(--tw-gradient-stops)); }
.from-rose-50\/40{ --tw-gradient-from: rgb(255 241 242 / .4) var(--tw-gradient-from-position); --tw-gradient-to: rgb(255 241 242 / 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.from-sky-50{ --tw-gradient-from: #f0f9ff var(--tw-gradient-from-position); --tw-gradient-to: rgb(240 249 255 / 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.via-rose-50\/30{ --tw-gradient-to: rgb(255 241 242 / 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), rgb(255 241 242 / .3) var(--tw-gradient-via-position), var(--tw-gradient-to); }
.to-sky-50\/40{ --tw-gradient-to: rgb(240 249 255 / .4) var(--tw-gradient-to-position); }
.to-transparent{ --tw-gradient-to: transparent var(--tw-gradient-to-position); }

.object-cover{ object-fit: cover; }

.p-3{ padding:.75rem; } .py-2{ padding:.5rem 0; } .py-3{ padding:.75rem 0; } .py-5{ padding:1.25rem 0; }
.pl-5{ padding-left:1.25rem; }

.text-center{text-align:center}
.text-sm{ font-size:.875rem; line-height:1.25rem; }
.text-xs{ font-size:.75rem; line-height:1rem; }

.font-bold{ font-weight:700; }
.font-semibold{ font-weight:600; }
.font-extrabold{ font-weight:800; }
.tracking-tight{ letter-spacing:-.025em; }

.text-brand{ color:#0ea5e9; }
.text-leaf{ color:#22c55e; }
.text-white{ color:#fff; }
.text-slate-500{ color:#64748b; }
.text-slate-600{ color:#475569; }
.text-slate-700{ color:#334155; }
.text-slate-800{ color:#1e293b; }

.opacity-80{ opacity:.8; }
.shadow-lg{ box-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1); }
.backdrop-blur{ backdrop-filter: blur(8px); }

/* ===== Responsive grid yang kamu pakai ===== */
@media (min-width: 768px) {
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ===== Hover util yang dipakai ===== */
.hover\:bg-green-600:hover { background:#16a34a; }

/* ===== Sticky CTA (FINAL) ===== */
:root { --sticky-h: 72px; }                          /* tinggi bar */
body { padding-bottom: calc(var(--sticky-h) + 12px); }

.fixed.bottom-0.inset-x-0.border-t.header-border.bg-white{
  position: fixed;
  left: 0; right: 0;
  bottom: max(env(safe-area-inset-bottom,0px), 0px);
  height: var(--sticky-h);
  background: #fff;
  border-top: 1px solid var(--border);
  box-shadow: 0 -6px 24px rgba(2,8,23,.06);
  z-index: 1000;
  box-sizing: border-box;
  /* padding horizontal termasuk safe-area kiri/kanan */
  padding-left: calc(16px + env(safe-area-inset-left, 0px));
  padding-right: calc(16px + env(safe-area-inset-right, 0px));
  overflow: visible;
}

.fixed.bottom-0.inset-x-0.border-t.header-border.bg-white .container-soft{
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  padding-bottom: 12px;
  /* no double padding */
  padding-left: 0;
  padding-right: 0;
}

.fixed.bottom-0.inset-x-0.border-t.header-border.bg-white .text-sm .font-extrabold{ line-height:1.2; }
.fixed.bottom-0.inset-x-0.border-t.header-border.bg-white .text-slate-500{ line-height:1.2; }
.fixed.bottom-0.inset-x-0.border-t.header-border.bg-white .btn-rose{ flex-shrink:0; }

@media (max-width: 420px){
  .fixed.bottom-0.inset-x-0.border-t.header-border.bg-white .container-soft{
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 8px;
  }
  .fixed.bottom-0.inset-x-0.border-t.header-border.bg-white .btn-rose{
    width: 100%;
    text-align: center;
  }
}

/* ===== Floating chat WA (FINAL) ===== */
#fabToggle{
  background-color:#25D366 !important;
  color:#fff;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
  /* naikkan sedikit kalau nabrak sticky bar + safe-area */
  bottom: calc(5rem + env(safe-area-inset-bottom, 0px));
}
#fabToggle:hover{ background-color:#128C7E !important; transform: translateY(-2px); }

#fabPopup a[data-wa]{
  display:block; width:100%; text-align:center;
  background:#25D366; color:#fff; font-weight:700;
  padding:.5rem .75rem; border-radius:.75rem;
  transition: background-color .2s ease, transform .2s ease;
}
#fabPopup a[data-wa]:hover{ background:#128C7E; }

/* Logo image supaya fleksibel */
.logo-img {
  max-height: 40px;   /* atur tinggi maksimal (misal header = 64px, logo jangan lebih tinggi) */
  height: auto;
  width: auto;
  max-width: 100%;    /* biar nggak melewati container */
  object-fit: contain; /* biar tidak ketarik aneh */
}
