/* =========================================================
   Serahin — Landing page
   Mobile-first. Sections follow the order in index.html.
   ========================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  --yellow: #ffe674;
  --yellow-soft: #fff6c9;
  --yellow-deep: #f6d54a;
  --green: #2b6233;
  --green-700: #22502a;
  --green-200: #bbdab8;
  --green-100: #d9ebd7;
  --mint: #e8f4e9;
  --mist: #f3f7f4;
  --ink: #1e1e1e;
  --ink-2: #444a45;
  --ink-3: #8a8f8b;
  --line: #dde6de;
  --red: #e8474a;
  --white: #fff;

  --font-head: "Kulim Park", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;

  --gutter: clamp(16px, 2.8vw, 40px);
  --edge: clamp(10px, 1.4vw, 20px);          /* hero/panel distance to viewport edge */
  --max: 1440px;
  --r-xl: clamp(24px, 3vw, 40px);
  --r-lg: 24px;
  --r-md: 18px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --header-h: 72px;
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
address { font-style: normal; }
.icon { width: 1em; height: 1em; flex: none; }

:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 10px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 200; padding: 10px 16px; background: var(--green); color: #fff; border-radius: 999px; transition: top .2s; }
.skip-link:focus { top: 12px; }

/* ---------- 3. Typography helpers ---------- */
.h2 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(2rem, 1.2rem + 3.3vw, 3.75rem);
  line-height: 1.08;
  letter-spacing: -.01em;
  text-align: center;
  text-wrap: balance;
}
.h2--left { text-align: left; }
.eyebrow {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.15rem, 1rem + .6vw, 1.6rem);
  color: var(--green);
  text-align: center;
  margin-bottom: .35em;
}
.eyebrow--left { text-align: left; }
.lead { font-size: clamp(.95rem, .9rem + .2vw, 1.05rem); color: var(--ink-2); max-width: 54ch; }
.section-head { margin-bottom: clamp(28px, 4vw, 56px); }

/* ---------- 4. Buttons & pills ---------- */
.btn {
  --btn-bg: var(--white);
  --btn-fg: var(--green);
  --btn-ic-bg: var(--ink);
  --btn-ic-fg: var(--white);
  display: inline-flex; align-items: center; gap: 14px;
  padding: 6px 6px 6px 22px;
  min-height: 52px;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
  font-size: .95rem;
  border: 1px solid #cfd6d0;
  white-space: nowrap;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background-color .3s;
}
.btn__icon {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--btn-ic-bg); color: var(--btn-ic-fg);
  font-size: 18px;
  transition: transform .45s var(--ease-spring);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -12px rgba(30, 60, 35, .45); }
.btn:hover .btn__icon { transform: rotate(45deg); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--primary { --btn-bg: var(--green); --btn-fg: #fff; --btn-ic-bg: #fff; --btn-ic-fg: var(--green); border-color: var(--green); }
.btn--primary:hover { --btn-bg: var(--green-700); }
.btn--ghost:hover { --btn-bg: #fbfdfb; }
.btn--sm { min-height: 46px; padding-left: 18px; font-size: .9rem; }
.btn--sm .btn__icon { width: 34px; height: 34px; font-size: 16px; }
.btn--block { width: 100%; justify-content: space-between; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

.pill {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 0 20px;
  border-radius: 999px;
  font-size: .9rem; font-weight: 600;
  transition: transform .3s var(--ease-out), background-color .3s, box-shadow .3s;
}
.pill:hover { transform: translateY(-1px); }
.pill--katalog { background: var(--yellow-soft); color: var(--green); border: 1px solid var(--green); }
.pill--katalog:hover { background: var(--yellow); }
.pill__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(43, 98, 51, .5); animation: pulse 2.4s infinite; }
.pill--primary { background: var(--green); color: #fff; }
.pill--primary:hover { background: var(--green-700); box-shadow: 0 10px 22px -12px rgba(30, 60, 35, .6); }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(43, 98, 51, 0); } 100% { box-shadow: 0 0 0 0 rgba(43, 98, 51, 0); } }

.tag {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 6px 14px 6px 8px;
  border: 1px solid var(--green);
  border-radius: 999px;
  font-size: .9rem; color: var(--green);
  font-weight: 500;
}
.tag__check {
  display: grid; place-items: center;
  width: 22px; height: 22px; border-radius: 4px;
  background: var(--green); color: #fff; font-size: 13px; flex: none;
}
.hero__chips .tag__check { border-radius: 50%; }

/* ---------- 5. Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  padding-top: env(safe-area-inset-top, 0px);
  transition: box-shadow .3s;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px -18px rgba(0, 0, 0, .35); }
.site-header__inner {
  max-width: var(--max); margin: 0 auto;
  height: var(--header-h);
  padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: flex-start; gap: 16px;
}
.brand img { width: 200px; }
.nav { display: none; }
.nav__list { display: flex; gap: 24px; }
.nav__link { position: relative; font-size: .92rem; color: var(--ink-2); padding: 6px 0; transition: color .25s; }
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px;
  background: var(--green); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease-out);
}
.nav__link:hover, .nav__link.is-current { color: var(--green); }
.nav__link:hover::after, .nav__link.is-current::after { transform: scaleX(1); transform-origin: left; }

.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.header-actions > .pill { display: none; }

.cart { position: relative; }
.cart__btn {
  position: relative; display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--mint); color: var(--green); font-size: 24px;
  transition: transform .3s var(--ease-spring), background-color .3s;
}
.cart__btn:hover { transform: scale(1.06); background: var(--green-100); }
.cart__btn[aria-expanded="true"] { background: var(--green); color: #fff; }
.cart__badge {
  position: absolute; top: -2px; right: -2px;
  min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
  background: var(--red); color: #fff; font-size: .72rem; font-weight: 800; line-height: 20px; text-align: center;
  border: 2px solid #fff; box-sizing: content-box;
}
.cart__badge.bump { animation: bump .45s var(--ease-spring); }
@keyframes bump { 50% { transform: scale(1.35); } }
.cart__badge[data-empty] { display: none; }

.cart__panel {
  position: fixed; left: 12px; right: 12px; top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 6px);
  background: #fff; border-radius: 22px;
  box-shadow: 0 30px 60px -20px rgba(20, 50, 25, .35), 0 0 0 1px rgba(0, 0, 0, .05);
  padding: 18px;
  transform-origin: top right;
  animation: drop .35s var(--ease-out);
  max-height: calc(100vh - var(--header-h) - 40px); overflow: auto;
}
@keyframes drop { from { opacity: 0; transform: translateY(-8px) scale(.97); } }
.cart__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.cart__title { font-family: var(--font-head); font-weight: 600; font-size: 1.25rem; }
.cart__meta { font-size: .82rem; color: var(--ink-3); }
.cart__item {
  display: grid; grid-template-columns: 54px 1fr auto; gap: 12px; align-items: center;
  padding: 12px 0; border-top: 1px solid var(--line);
  animation: drop .35s var(--ease-out) backwards;
}
.cart__item.is-removing { transition: opacity .25s, transform .25s; opacity: 0; transform: translateX(20px); }
.cart__thumb { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; color: var(--green); }
.cart__name { font-weight: 700; font-size: .92rem; line-height: 1.3; }
.cart__var { font-size: .78rem; color: var(--ink-3); }
.cart__status { display: inline-block; margin-top: 4px; font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.cart__status--ok { background: var(--mint); color: var(--green); }
.cart__status--wait { background: var(--yellow-soft); color: #7a5b00; }
.cart__side { text-align: right; display: grid; justify-items: end; gap: 6px; }
.cart__price { font-weight: 800; font-size: .9rem; }
.cart__remove { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-3); font-size: 16px; transition: background-color .2s, color .2s; }
.cart__remove:hover { background: #fdecec; color: var(--red); }
.cart__foot { border-top: 1px solid var(--line); padding-top: 14px; display: grid; gap: 12px; }
.cart__total { display: flex; justify-content: space-between; font-size: .88rem; color: var(--ink-2); }
.cart__total strong { color: var(--ink); font-size: 1rem; }
.cart__empty { text-align: center; padding: 18px 6px 4px; color: var(--ink-2); font-size: .9rem; display: grid; gap: 6px; justify-items: center; }
.cart__empty .btn { margin-top: 8px; }

.menu-btn { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; font-size: 24px; background: var(--ink); color: #fff; }
.mobile-menu { padding: 8px var(--gutter) 24px; border-top: 1px solid var(--line); animation: drop .3s var(--ease-out); }
.mobile-menu ul a { display: block; padding: 14px 0; font-family: var(--font-head); font-weight: 600; font-size: 1.4rem; border-bottom: 1px solid var(--line); }
.mobile-menu__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.mobile-menu__cta .pill { flex: 1 1 0; justify-content: center; min-height: 50px; }

/* ---------- 6. Hero ---------- */
.hero {
  max-width: var(--max); margin: 0 auto;
  padding: 8px var(--edge) 0;
  display: grid; gap: var(--edge);
}
.hero__copy {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--yellow);
  border-radius: var(--r-xl);
  padding: clamp(24px, 3vw, 28px) clamp(20px, 2vw, 24px);
  display: flex; flex-direction: column; gap: 22px;
}
.hero__decor { position: absolute; right: -60px; bottom: 0px; width: 360px; color: #f8d75e; opacity: .8; }

/* Fade the bottom of the icon into the card colour */
.hero__fade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 45%;
  pointer-events: none;
  background: linear-gradient(to top, var(--yellow) 18%, rgba(255, 230, 116, 0) 100%);
}
.hero__title {
  font-family: var(--font-head); font-weight: 600;
  font-size: clamp(2.6rem, 1.6rem + 4.4vw, 4.85rem);
  line-height: 1.02; letter-spacing: -.015em;
}
.hero__line { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.hero__line > span { display: inline-block; position: relative; }
.hero__line em { color: var(--green); font-style: italic; }
.hero__swoosh { position: absolute; left: -2%; right: 0; bottom: -.08em; width: 104%; height: .26em; color: var(--green); }
.hero__swoosh path { stroke-dasharray: 400; stroke-dashoffset: 0; }
.hero__lead { max-width: 52ch; font-size: clamp(.95rem, .9rem + .2vw, 1.05rem); color: #3b3b33; }
.hero__chips { margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px; padding-top: 20px; }
.hero__chips .tag { background: rgba(255, 255, 255, .0); font-size: .88rem; }

.hero__media {
  position: relative; overflow: hidden;
  border-radius: var(--r-xl);
  background: var(--green-200);
  aspect-ratio: 1 / 1;
}
.hero__media > img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }

.is-loaded .hero__decor { animation: heroFade 1.4s var(--ease-out) .55s backwards; }

/* Layers inside the yellow card, back to front:
   1 icon · 2 fade · 3 light sweep · 4 text, buttons, chips */
.hero__copy > .hero__decor { position: absolute; z-index: 1; }
.hero__copy > .hero__fade  { position: absolute; z-index: 2; }
.hero__copy::after         { z-index: 3; }
.hero__copy > :not(.hero__decor):not(.hero__fade) { position: relative; z-index: 4; }

.spin-badge {
  position: absolute; left: clamp(14px, 3vw, 36px); top: clamp(14px, 3vw, 40px);
  width: clamp(120px, 14vw, 184px); aspect-ratio: 1;
  border-radius: 50%; background: #262626; color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .55);
  transition: transform .5s var(--ease-spring);
}
.spin-badge::after { content: ""; position: absolute; inset: 22%; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); }
.spin-badge__ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 16s linear infinite; }
.spin-badge__ring text { fill: #fff; font-family: var(--font-body); font-size: 15.5px; letter-spacing: .06em; font-weight: 500; }
.spin-badge__core { width: 30%; transition: transform .5s var(--ease-spring); }
.spin-badge:hover { transform: scale(1.06); }
.spin-badge:hover .spin-badge__ring { animation-duration: 5s; }
.spin-badge:hover .spin-badge__core { transform: rotate(-12deg) scale(1.08); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 7. Modules fan ---------- */
.modules {
  position: relative; max-width: var(--max); margin: 0 auto;
  padding: clamp(80px, 12vw, 170px) var(--gutter) clamp(60px, 9vw, 120px);
  display: grid; justify-items: center;
  overflow: hidden;
}
.modules__grid {
  position: absolute; inset: clamp(40px, 7vw, 90px) clamp(16px, 5vw, 80px) clamp(20px, 6vw, 80px);
  display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: 1fr 1fr; gap: 20px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 45%, #000 20%, transparent 80%);
          mask-image: radial-gradient(ellipse 60% 70% at 50% 45%, #000 20%, transparent 80%);
  pointer-events: none;
}
.modules__grid span { border-radius: 18px; background: linear-gradient(180deg, #f2f4f2, #fbfbfb); }
.modules__glow { position: absolute; left: 50%; top: 45%; width: 420px; height: 300px; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(255, 238, 170, .55), transparent); pointer-events: none; }
.modules__fan { position: relative; width: 100%; max-width: 980px; height: clamp(190px, 30vw, 340px); }
.mod {
  --w: clamp(96px, 13vw, 182px);
  position: absolute; left: 50%; top: 50%;
  width: var(--w); aspect-ratio: 1.07;
  margin: calc(var(--w) * -.47) 0 0 calc(var(--w) * -.5);
  background: #fff; border-radius: clamp(12px, 1.6vw, 20px);
  box-shadow: 0 18px 40px -16px rgba(40, 60, 40, .22), 0 0 0 1px rgba(0, 0, 0, .03);
  padding: clamp(10px, 1.4vw, 20px);
  display: flex; flex-direction: column; justify-content: space-between;
  transform: translate(var(--tx), var(--ty)) rotate(var(--rot));
  transition: transform .9s var(--ease-out), box-shadow .4s;
  cursor: default;
}
.mod__icon img { width: 50%; height: 50%; }
.mod:nth-child(1) { --tx: -215%; --ty: 34%;  --rot: -12deg; z-index: 1; }
.mod:nth-child(2) { --tx: -132%; --ty: -12%; --rot: -8deg;  z-index: 2; }
.mod:nth-child(3) { --tx: -48%;  --ty: -48%; --rot: -5deg;  z-index: 3; }
.mod:nth-child(4) { --tx: 44%;   --ty: -50%; --rot: 4deg;   z-index: 4; }
.mod:nth-child(5) { --tx: 128%;  --ty: -12%; --rot: 8deg;   z-index: 3; }
.mod:nth-child(6) { --tx: 210%;  --ty: 34%;  --rot: 12deg;  z-index: 2; }
.mod__icon { width: clamp(34px, 4.2vw, 58px); aspect-ratio: 1; border-radius: 50%; background: var(--yellow); color: var(--green); display: grid; place-items: center; font-size: clamp(16px, 2vw, 28px); }
.mod__label { font-family: var(--font-head); font-weight: 700; color: var(--green); font-size: clamp(.8rem, .55rem + 1vw, 1.3rem); letter-spacing: -.02em; }
.mod:hover { z-index: 9; transform: translate(var(--tx), calc(var(--ty) - 10%)) rotate(0deg) scale(1.06); box-shadow: 0 28px 50px -18px rgba(40, 60, 40, .35); }
.mod:hover .mod__icon { animation: wiggle .6s var(--ease-out); }
@keyframes wiggle { 30% { transform: rotate(-12deg); } 60% { transform: rotate(8deg); } }
.js .modules__fan:not(.is-in) .mod { transform: translate(-50%, 30%) rotate(0deg) scale(.9); }
.js .modules__fan .mod { transition-delay: calc(var(--i) * 60ms); }
.js .modules__fan.is-in .mod:hover { transition-delay: 0s; }
.modules__title { position: relative; margin-top: clamp(0px, 1vw, 12px); text-align: center; font-family: var(--font-head); font-weight: 600; font-size: clamp(1.9rem, 1.1rem + 3vw, 3.4rem); line-height: 1.08; }

/* ---------- 8. Kenapa (compare) ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(40px, 6vw, 80px) var(--gutter); }
.compare { display: grid; gap: 20px; max-width: 1300px; margin: 0 auto; }
.compare__card {
  position: relative; overflow: hidden; isolation: isolate;
  display: block; width: 100%; text-align: left;
  aspect-ratio: 1 / 1.02;
  border-radius: 20px;
  background: var(--mist);
  border: 1.5px solid transparent;
  transition: background-color .6s var(--ease-out), border-color .6s, box-shadow .6s var(--ease-out), transform .4s var(--ease-out);
}
.compare__card:not(.is-active):hover { transform: translateY(-4px); box-shadow: 0 20px 40px -26px rgba(0, 0, 0, .4); }
.compare__card.is-active { background: var(--green-200); border-color: transparent; box-shadow: 0 30px 70px -40px rgba(20, 60, 25, .55); cursor: default; }
.compare__card::before {
  content: ""; position: absolute; inset: -1.5px; z-index: 4; pointer-events: none;
  border-radius: inherit; padding: 3px;
  background:
    linear-gradient(147deg, #2d6435, rgba(45, 100, 53, 0) 194px),   /* top-left accent  — from testi-card.svg */
    linear-gradient(318deg, #2d6435, rgba(45, 100, 53, 0) 194px),   /* bottom-right accent */
    #b3cab6;                                                         /* base stroke */
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0; transition: opacity .6s var(--ease-out);
}
.compare__card.is-active::before { opacity: 1; }

.compare__glow {
  position: absolute; z-index: -1; left: 52%; top: 28%; width: 60%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 238, 120, .95), rgba(255, 238, 120, 0));
  transform: translate(-50%, -50%) scale(.6); opacity: 0;
  transition: opacity .7s, transform .9s var(--ease-out);
}
.compare__card.is-active .compare__glow { opacity: .9; transform: translate(-50%, -50%) scale(1); }
.compare__img {
  position: absolute; z-index: 1; left: 50%; bottom: -2%; width: 96%; max-width: none; transform: translateX(-50%);
  filter: grayscale(1) contrast(1.02);
  transition: filter .8s var(--ease-out), transform .8s var(--ease-out);
}
/* Fade at the bottom of the photo, tinted to match the card background */
.compare__card::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 32%;
  z-index: 1;                                   /* above the photo (also z 1, but later in order), below list (2) and pill (3) */
  pointer-events: none;
  background-color: var(--mist);                /* unselected bg */
  -webkit-mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, .85) 35%, transparent 100%);
          mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, .85) 35%, transparent 100%);
  transition: background-color .6s var(--ease-out);
}
.compare__card.is-active::after { background-color: var(--green-200); }   /* selected bg */
.compare__card.is-active .compare__img { filter: none; transform: translateX(-50%) scale(1.02); }
.compare__card:not(.is-active):hover .compare__img { filter: grayscale(.6); }

.compare__badge {
  position: absolute; top: 22%; width: 25%; aspect-ratio: 1;   /* 25% ≈ same visible size as before; the circle fills ~84% of the SVG */
  transition: transform .7s var(--ease-spring);
}
.compare__card--tanpa .compare__img { width: 100%; }
.compare__card--pakai .compare__badge { left: 12%; }
.compare__card--tanpa .compare__badge { right: 15%; top: 20%; }
.compare__badge img { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .5s; }
.compare__badge-on { opacity: 0; }
.compare__card.is-active .compare__badge-on { opacity: 1; }
.compare__card.is-active .compare__badge { transform: scale(1.04); }

.compare__pill {
  position: absolute; z-index: 3; left: 50%; bottom: 7%;
  font-family: var(--font-head); font-weight: 600; color: #fff;
  font-size: clamp(1.75rem, 1.2rem + 2.2vw, 3rem);
  padding: .1em .65em .14em; border-radius: 999px;
  background: #7a7a7a;
  transform: translateX(-50%);
  transition: background-color .5s, transform .7s var(--ease-spring), bottom .7s var(--ease-out);
  white-space: nowrap;
}
.compare__card.is-active .compare__pill { bottom: calc(3.5% + var(--list-h, 30%) - .35em); }
.compare__card--pakai.is-active .compare__pill { background: var(--green); transform: translateX(-50%) rotate(-4deg); }
.compare__card--tanpa.is-active .compare__pill { background: var(--red); transform: translateX(-50%) rotate(4deg); }

.compare__list {
  position: absolute; z-index: 2; left: 3.5%; right: 3.5%; bottom: 3.5%;
  display: grid; gap: clamp(4px, .9vw, 12px);
  padding: clamp(16px, 3vw, 32px) clamp(14px, 2.4vw, 28px) clamp(12px, 2.4vw, 28px);
  border-radius: 18px;
  background: rgba(200, 227, 207, .4);
  border: 2px solid rgba(255, 255, 255, .9);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  opacity: 0; transform: translateY(24px); visibility: hidden;
  transition: opacity .5s, transform .7s var(--ease-out), visibility 0s .5s;
}
.compare__card.is-active .compare__list { opacity: 1; transform: none; visibility: visible; transition-delay: .15s, .15s, 0s; }
.compare__item { display: flex; align-items: center; gap: 10px; font-size: clamp(.72rem, .62rem + .4vw, .92rem); color: #2f342f; line-height: 1.35; }
.compare__tick { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 4px; background: var(--green); color: #fff; font-size: 12px; flex: none; }
.compare__card--tanpa .compare__tick { border-radius: 50%; background: var(--red); }
.compare__card.is-active .compare__item { animation: itemIn .6s var(--ease-out) backwards; }
.compare__card.is-active .compare__item:nth-child(2) { animation-delay: .08s; }
.compare__card.is-active .compare__item:nth-child(3) { animation-delay: .16s; }
.compare__card.is-active .compare__item:nth-child(4) { animation-delay: .24s; }
@keyframes itemIn { from { opacity: 0; transform: translateX(-10px); } }

/* ---------- 9. Panels (rounded tinted sections) ---------- */
.panel {
  max-width: none;                                      /* was var(--max) */
  margin: clamp(40px, 6vw, 80px) 0 0;                   /* was … auto 0 — no side margins */
  padding: clamp(56px, 8vw, 120px) var(--gutter);       /* was var(--edge) */
  border-radius: var(--r-xl);
  background: var(--mist);
}
.panel--green { background: var(--green-200); }

/* ---------- 10. Fitur ---------- */
.tabs {
  position: relative; display: grid; grid-template-columns: 1fr 1fr;
  width: min(100%, 548px); margin: 0 auto clamp(20px, 2.4vw, 32px);
  padding: 12px; border-radius: 16px; background: var(--ink);
}
.tabs__indicator {
  position: absolute; top: 12px; bottom: 12px; left: 12px; width: calc(50% - 12px);
  border-radius: 10px; background: var(--yellow);
  transition: transform .55s var(--ease-out);
}
.tabs[data-active="1"] .tabs__indicator { transform: translateX(100%); }
.tabs__btn { position: relative; z-index: 1; min-height: 50px; border-radius: 10px; font-size: .95rem; font-weight: 600; color: #fff; transition: color .4s; }
.tabs__btn[aria-selected="true"] { color: var(--ink); }

.feature-grid { display: grid; gap: 20px; max-width: 1400px; margin: 0 auto; }
.feature-grid[hidden] { display: none; }
.feature-grid.is-entering .feature { animation: featIn .7s var(--ease-out) backwards; }
.feature-grid.is-entering .feature:nth-child(2) { animation-delay: .06s; }
.feature-grid.is-entering .feature:nth-child(3) { animation-delay: .12s; }
.feature-grid.is-entering .feature:nth-child(4) { animation-delay: .18s; }
@keyframes featIn { from { opacity: 0; transform: translateY(18px) scale(.98); filter: blur(4px); } }

.feature {
  display: grid; grid-template-columns: 1fr; gap: 16px;
  padding: 20px; border-radius: var(--r-lg);
  background: #fff;
  box-shadow: 0 24px 50px -36px rgba(30, 50, 30, .35);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.feature:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -32px rgba(30, 50, 30, .45); }
.feature__body { display: flex; flex-direction: column; }
.feature__icon { width: 64px; height: 64px; border-radius: 50%; background: var(--mint); color: var(--green); display: grid; place-items: center; font-size: 28px; margin-bottom: 28px; transition: transform .5s var(--ease-spring); }
.feature:hover .feature__icon { transform: rotate(-8deg) scale(1.06); }
.feature__kicker { margin-top: auto; font-family: var(--font-head); font-weight: 600; color: var(--ink-3); font-size: 1.05rem; }
.feature__title { font-family: var(--font-head); font-weight: 600; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); line-height: 1.12; margin: 2px 0 10px; letter-spacing: -.01em; }
.feature__text { font-size: .93rem; color: var(--ink-2); line-height: 1.55; }

/* Buyer tab — yellow theme */
#panel-buyer .feature__icon { background: #fffae6; color: #e5be09; }
#panel-buyer .feature__media { background: linear-gradient(180deg, #fffae6 0%, #f3e9bb 100%); }

/* Media pane: keep this container + .feature__frost. Swap only the <img>. */
.feature__media {
  position: relative; overflow: hidden;
  border-radius: 16px;
  min-height: 240px; aspect-ratio: 230 / 275;
  max-height: 320px;
  background: linear-gradient(180deg, #f2f6f2 0%, #e7f0e6 45%, #bbd9b8 100%);
}
.feature__img {
  position: absolute; left: 50%; top: 10%;
  width: 100%; height: 88%; object-fit: contain;
  transform: translateX(-50%);
  transition: transform .7s var(--ease-out);
}
.feature:hover .feature__img { transform: translateX(-50%) translateY(-4px) scale(1.04); }

/* Frosted shape: raised tab on the left half, S-curve step down to the bar on the right */
.feature__frost {
  --step: 22px;   /* height difference between the tab and the lower bar */
  --r: 10px;      /* radius of the S-curve and of the bar's top-right corner */
  --frost-mask:
    /* lower bar */
    linear-gradient(#000 0 0) 0 var(--step) / calc(100% - var(--r)) calc(100% - var(--step)) no-repeat,
    linear-gradient(#000 0 0) right 0 top calc(var(--step) + var(--r)) / var(--r) calc(100% - var(--step) - var(--r)) no-repeat,
    radial-gradient(circle at 0 100%, #000 calc(var(--r) - .5px), #0000 var(--r)) right 0 top var(--step) / var(--r) var(--r) no-repeat,
    /* tab (left half) */
    linear-gradient(#000 0 0) 0 0 / calc(50% - var(--r)) calc(var(--step) + 1px) no-repeat,
    radial-gradient(circle at 0 100%, #000 calc(var(--r) - .5px), #0000 var(--r)) calc(50% - var(--r) / 2) 0 / var(--r) var(--r) no-repeat,
    linear-gradient(#000 0 0) calc(50% - var(--r) / 2) var(--r) / var(--r) calc(var(--step) - var(--r) + 1px) no-repeat,
    /* curved join between tab and bar */
    radial-gradient(circle at 100% 0, #0000 calc(var(--r) - .5px), #000 var(--r)) calc(50% + var(--r) / 2) calc(var(--step) - var(--r)) / var(--r) var(--r) no-repeat;

  position: absolute; left: 5%; right: 5%; bottom: 5%; height: 30%;
  border-radius: 12px;
  background: rgba(255, 255, 255, .42);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  -webkit-mask: var(--frost-mask);
          mask: var(--frost-mask);
}

/* ---------- 11. Cara kerja ---------- */
.cara { position: relative; }
.cara__sticky { max-width: var(--max); margin: 0 auto; padding: clamp(70px, 9vw, 120px) var(--gutter); }
.cara__inner { display: grid; gap: 40px; }
.cara__intro .lead { margin: 16px 0 28px; }

.steps { display: grid; gap: 16px; }
.step {
  position: relative;
  display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center;
  padding: 24px 22px; border-radius: 18px;
  background: var(--mist); border: 1px solid var(--green-200);
  transition: background-color .5s, border-color .5s, box-shadow .5s;
}
.step__num { font-family: var(--font-head); font-weight: 600; font-size: 2rem; color: #b0b4b1; transition: color .5s; }
.step__title { font-family: var(--font-head); font-weight: 600; font-size: clamp(1.25rem, 1.1rem + .5vw, 1.6rem); line-height: 1.15; margin-bottom: 6px; }
.step__text { font-size: .9rem; color: var(--ink-2); }
.step.is-active { background: var(--yellow); border-color: var(--yellow); }
.step.is-active .step__num { color: var(--green); }
.step__link { display: none; }

/* Pinned mode is enabled by JS → .cara.is-pinned */
.cara.is-pinned { height: calc(100vh + 260vh); }
.cara.is-pinned .cara__sticky { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; padding-top: var(--header-h); padding-bottom: 0; overflow: hidden; }
.cara.is-pinned .cara__inner { width: 100%; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: 7vw; align-items: center; }
.cara.is-pinned .steps { position: relative; display: block; height: calc(100vh - var(--header-h) - 120px); }
.cara.is-pinned .step {
  position: absolute; left: 0; right: 0; top: 0;
  transform: translateY(var(--y, 0)) rotate(var(--rot, 0deg));
  transition: transform .8s var(--ease-out), background-color .5s, border-color .5s, box-shadow .5s, opacity .5s;
  will-change: transform;
}
.cara.is-pinned .step.is-pending { box-shadow: 0 -10px 24px -18px rgba(30, 60, 30, .3); }
.cara.is-pinned .step.is-active { box-shadow: 0 30px 50px -30px rgba(160, 120, 0, .55); }
.cara.is-pinned .step.is-done { background: var(--mist); border-color: var(--green-200); }
.cara.is-pinned .step.is-done .step__num { color: var(--green); }
.cara.is-pinned .step__link {
  display: block; position: absolute; left: 50%; top: 100%; height: var(--gap, 56px); width: 0;
  border-left: 3px dashed var(--green);
  transform-origin: top; transform: scaleY(0); transition: transform .6s var(--ease-out) .2s;
}
.cara.is-pinned .step.is-linked .step__link { transform: scaleY(1); }

/* ---------- 12. Pengalaman buyer ---------- */
.buyer__inner { max-width: 1300px; margin: 0 auto; display: grid; gap: 48px; align-items: center; }
.buyer__visual { position: relative; padding: 30px 0 0; display: grid; justify-items: center; }
/* Screenshot runs under the yellow bar: its bottom ~13% is transparent shadow, so pull it down */
.buyer__shot { position: relative; width: min(100%, 600px); height: auto; margin-bottom: -40px; }

.float-card {
  position: absolute;
  display: grid; grid-template-columns: auto auto; column-gap: 16px; align-items: center;
  width: max-content; max-width: 92%;
  padding: 16px 32px 16px 16px;
  background: #fff; border-radius: 22px;
  box-shadow: 0 24px 40px -24px rgba(20, 50, 25, .4);
  transition: transform .5s var(--ease-out);
}
.float-card:hover { transform: translateY(-4px) rotate(-1deg); }

.float-card--top    { top: 4%;  right: 2%; }
.float-card--bottom { top: 34%; left: 0; bottom: auto; }

/* icon spans both rows; title above text on the right */
.float-card__head { display: contents; }
.float-card__icon {
  grid-row: 1 / span 2;
  width: 58px; height: 58px; border-radius: 14px;
  background: var(--mint); color: var(--green);
  display: grid; place-items: center; font-size: 28px;
}
.float-card__title { align-self: end; font-weight: 600; font-size: 1.1rem; color: var(--ink); }
.float-card__text  { grid-column: 2; align-self: start; margin-top: 2px; font-size: 1rem; color: var(--ink-2); }

.buyer__cta {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; flex-wrap: wrap; align-items: center;
  padding: 14px 16px 14px 14px; gap: 16px; border-radius: 18px; background: var(--yellow);
}
.buyer__cta p { flex: 1 1 180px; font-size: .92rem; font-weight: 600; line-height: 1.4; }
.buyer__cta em { font-weight: 800; }
.buyer__cta-icon { width: 60px; height: 60px; border-radius: 16px; flex: none; background: var(--green); color: #fff; display: grid; place-items: center; font-size: 30px; }
.buyer__cta-icon .icon { color: #fff; }

.buyer__copy .lead { margin: 18px 0 26px; }

.points { display: grid; gap: 14px; }
.point {
  padding: 22px 24px 24px; border-radius: 20px; background: var(--mist);
  transition: transform .4s var(--ease-out), background-color .3s;
}
.point:hover { transform: translateX(6px); background: #fff; }
.point__kicker { font-size: .92rem; color: var(--green); margin-bottom: 8px; font-weight: 600; }
.point__title {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-head); font-weight: 600; font-size: clamp(1.15rem, 1rem + .5vw, 1.4rem); line-height: 1.2; letter-spacing: -.01em;
  margin-bottom: 12px;
}
.point__title .icon { width: 24px; height: 24px; color: var(--green); }
.point__text { font-size: .95rem; color: var(--ink-2); line-height: 1.6; }

/* ---------- 13. Testimonial ---------- */
.testi { position: relative; }
.testi__sticky { max-width: var(--max); margin: 0 auto; padding: clamp(70px, 9vw, 130px) var(--gutter); }
.testi__inner { display: grid; gap: 32px; }
.testi__inner > * { min-width: 0; }
.testi__copy { order: -1; }
.testi__copy .lead { margin-top: 16px; }
.testi__counter { display: block; margin-top: 20px; font-family: var(--font-head); font-size: 1rem; color: var(--ink-3); }   /* was display: none */
.testi__stage { position: relative; }
.testi__glow { display: none; }

/* Mobile: native swipe carousel */
.testi__stack {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 6px var(--gutter) 30px; margin: 0 calc(var(--gutter) * -1);
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.testi__stack::-webkit-scrollbar { display: none; }

/* ---- Testimonial card — measured from testi-card.svg (500×260) ---- */
.tcard {
  --card-bg: var(--mist); --card-bd: var(--line); --foot-bg: transparent;
  --mark: var(--green); --txt: #494949; --name: #1c1c1c;
  position: relative;
  flex: 0 0 min(88%, 500px); scroll-snap-align: center;     /* mobile carousel sizing */
  display: flex; flex-direction: column;
  min-height: 260px; padding: 10px;                          /* 2px border + 10px = 12px inset */
  border-radius: 20px; border: 2px solid var(--card-bd); background: var(--card-bg);
  transition: background-color .6s var(--ease-out), border-color .6s;
}
.tcard.is-focus { --card-bg: #bbdab8; --card-bd: transparent; --foot-bg: var(--mist); }

/* Focused stroke: #B3CAB6 base + green accents from top-left / bottom-right */
.tcard::before {
  content: ""; position: absolute; inset: -2px; border-radius: inherit; padding: 2px; pointer-events: none;
  background:
    linear-gradient(147deg, #2d6435, rgba(45, 100, 53, 0) 194px),
    linear-gradient(318deg, #2d6435, rgba(45, 100, 53, 0) 194px),
    #b3cab6;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0; transition: opacity .6s var(--ease-out);
}
.tcard.is-focus::before { opacity: 1; }

.tcard__quote {
  flex: 1;
  display: grid; grid-template-columns: 43px 1fr; column-gap: 52px; align-items: start;
  padding: 28px 24px 16px 38px;
}
.tcard__mark { width: 43px; height: 32px; margin-top: 20px; color: var(--mark); }
.tcard blockquote p { font-size: 1rem; line-height: 1.5; color: var(--txt); }
.tcard blockquote p::before { content: "\201C"; }
.tcard blockquote p::after  { content: "\201D"; }

.tcard__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 88px; padding: 0 28px;
  border-radius: 12px; background: var(--foot-bg);
  transition: background-color .6s var(--ease-out);
}
.tcard__name { font-family: var(--font-head); font-weight: 600; font-size: 1.75rem; line-height: 1; color: var(--name); letter-spacing: -.01em; }

.tcard__role {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  height: 32px; padding: 0 13px 0 15px; border-radius: 999px;
  background: var(--green); color: var(--yellow);
  font-family: var(--font-body); font-style: italic; font-weight: 600; font-size: .94rem;
  white-space: nowrap;
}
.tcard__role .icon { width: 17px; height: 17px; }
.tcard__role--buyer { background: var(--yellow); color: var(--green); }

/* Pinned mode → .testi.is-pinned */
.testi.is-pinned .tcard.is-ghost { box-shadow: none; }            /* was also overriding --card-bg / --card-bd */
.testi.is-pinned .tcard.is-ghost > * { opacity: 0; }              /* optional — see note */
.testi.is-pinned { height: calc(100vh + 240vh); }
.testi.is-pinned .testi__sticky { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; padding-top: var(--header-h); padding-bottom: 0; }
.testi.is-pinned .testi__copy { order: 0; }
.testi.is-pinned .testi__inner { width: 100%; grid-template-columns: 1fr 1fr; gap: 6vw; align-items: center; }
.testi.is-pinned .testi__stage { height: 400px; display: block; }
.testi.is-pinned .testi__glow {
  display: block; position: absolute; z-index: 25;      
  left: 50%; top: 110px; width: 700px; height: 280px;    
  transform: translateX(-50%);
  background: url("../img/testi-glow.svg") center / 100% 100% no-repeat;
  pointer-events: none;
}
.testi.is-pinned .testi__stack { position: relative; display: block; overflow: visible; width: min(500px, 100%); height: 260px; margin: 24px auto 0; padding: 0; }
.testi.is-pinned .tcard {
  position: absolute; inset: 0; width: 100%;
  transform: translateY(var(--ty, 0)) scale(var(--sc, 1)) rotate(var(--rot, 0deg));
  opacity: var(--op, 1);
  transition: transform .8s var(--ease-out), opacity .6s, background-color .6s, border-color .6s, box-shadow .6s;
  will-change: transform;
}
.testi.is-pinned .tcard > * { transition: opacity .4s .15s; }
.testi.is-pinned .testi__dots { display: none; }
.testi.is-pinned .testi__counter { display: block; margin-top: 32px; font-family: var(--font-head); font-size: 1.1rem; color: var(--ink-3); }
.testi.is-pinned .testi__counter strong { color: var(--green); font-size: 1.6rem; }

/* ---------- 14. FAQ ---------- */
.faq .h2 { margin-bottom: clamp(32px, 4.5vw, 64px); }
.accordion { max-width: 800px; margin: 0 auto; display: grid; gap: 12px; }
.acc { border-radius: 18px; background: #fff; transition: background-color .45s var(--ease-out), box-shadow .45s; }
.acc:hover:not(.is-open) { box-shadow: 0 16px 30px -24px rgba(30, 60, 30, .45); }
.acc.is-open { background: var(--yellow); }
.acc__h { font: inherit; }
.acc__btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 26px 22px; text-align: left;
  font-family: var(--font-head); font-weight: 600; font-size: clamp(1.05rem, .95rem + .4vw, 1.3rem); letter-spacing: -.01em;
  transition: padding .45s var(--ease-out), color .3s;
}
.acc.is-open .acc__btn { color: var(--green); padding-left: 38px; padding-right: 38px; }
.acc__chev { font-size: 22px; color: var(--ink-2); transition: transform .45s var(--ease-out); }
.acc.is-open .acc__chev { transform: rotate(180deg); color: var(--green); }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease-out); }
.acc.is-open .acc__panel { grid-template-rows: 1fr; }
.acc__inner { overflow: hidden; }
.acc__inner p { margin: 0 38px; padding: 20px 0 30px; border-top: 1px solid rgba(0, 0, 0, .1); font-size: .95rem; color: var(--ink-2); opacity: 0; transform: translateY(-6px); transition: opacity .35s, transform .45s var(--ease-out); }
.acc.is-open .acc__inner p { opacity: 1; transform: none; transition-delay: .12s; }

/* ---------- 15. CTA ---------- */
.cta {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(80px, 12vw, 190px) var(--gutter) clamp(40px, 4vw, 56px);
  display: grid; gap: 28px; align-items: end;
  border-bottom: 1px solid var(--line);
  max-width: none; margin: 0;
  padding-inline: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
}
.cta__title { max-width: 16ch; margin-bottom: 14px; font-size: clamp(2rem, 1.2rem + 3vw, 3.5rem); }

/* ---------- 16. Playground ---------- */
.play {
  position: relative; max-width: none; margin: 0;
  padding-top: clamp(24px, 4vw, 60px);
  background: linear-gradient(180deg, #fff 30%, #d6e8d4 85%, var(--green-200));
}
.play__word { display: block; width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1vw; pointer-events: none; user-select: none; }
.play__arena {
  position: relative; height: clamp(170px, 18vw, 250px);
  margin-top: clamp(-120px, -9vw, -40px);
  padding-bottom: clamp(40px, 4vw, 60px);
  touch-action: pan-y;
  max-width: var(--max); margin-left: auto; margin-right: auto;
}
.chip {
  position: absolute; left: 0; top: 0;
  display: inline-flex; align-items: center; justify-content: center;
  padding: .5em 1em; border-radius: 999px;
  background: #fff; color: var(--green);
  font-family: var(--font-head); font-weight: 700; text-transform: uppercase; white-space: nowrap;
  font-size: clamp(.8rem, .5rem + 1.1vw, 1.55rem); letter-spacing: .01em;
  box-shadow: 0 14px 28px -16px rgba(20, 60, 25, .45);
  cursor: grab; user-select: none; -webkit-user-select: none; touch-action: none;
  will-change: transform;
  transition: box-shadow .3s;
}
.chip.is-drag { cursor: grabbing; box-shadow: 0 28px 40px -18px rgba(20, 60, 25, .55); z-index: 5; }
.chip--logo { padding: 0; width: clamp(64px, 7vw, 104px); aspect-ratio: 1; background: var(--green); }
.chip--logo img { width: 54%; pointer-events: none; }
.no-js .chip, html:not(.js) .chip { position: relative; display: inline-flex; margin: 6px; }

/* ---------- 17. Footer ---------- */
.footer {
  position: relative; max-width: none; margin: -40px 0 0;      /* was max-width: var(--max); margin: -40px auto 0 */
  padding: clamp(36px, 4vw, 48px) 0 28px;
  padding-inline: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
  background: #fff; border-radius: var(--r-xl) var(--r-xl) 0 0;
}
.footer__top { display: grid; gap: 32px; padding-bottom: 36px; border-bottom: 1px solid var(--line); }
.footer__brand img { width: 300px; margin-bottom: 18px; }
.footer__brand p { max-width: 30ch; font-size: .88rem; color: var(--ink-2); letter-spacing: .02em; line-height: 1.5; }
.subscribe { width: 100%; max-width: 500px; }
.subscribe__label { display: block; font-family: var(--font-head); font-weight: 600; font-size: 1.45rem; color: var(--green); margin-bottom: 12px; }
.subscribe__field { display: flex; align-items: center; gap: 8px; padding: 4px; border-radius: 999px; background: var(--mint); border: 1.5px solid transparent; transition: border-color .3s, box-shadow .3s; }
.subscribe__field:focus-within { border-color: var(--green); box-shadow: 0 0 0 4px rgba(43, 98, 51, .12); }
.subscribe__field input { flex: 1; min-width: 0; padding: 12px 18px; border: 0; background: none; font: inherit; font-size: .92rem; color: var(--ink); outline: none; }
.subscribe__btn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px; background: var(--green); color: #fff; font-weight: 600; font-size: .92rem; transition: background-color .3s; }
.subscribe__btn:hover { background: var(--green-700); }
.subscribe__btn .icon { transition: transform .35s var(--ease-out); }
.subscribe__btn:hover .icon { transform: translateX(4px); }
.subscribe__note { margin-top: 14px; font-size: .85rem; color: var(--ink-2); letter-spacing: .02em; }
.subscribe__note a { color: var(--green); font-weight: 800; }
.subscribe__note.is-error { color: var(--red); }
.subscribe__note.is-ok { color: var(--green); font-weight: 700; }
.subscribe.is-shake .subscribe__field { animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

.footer__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; padding: 40px 0; border-bottom: 1px solid var(--line); }
.footer__h { font-family: var(--font-head); font-weight: 600; font-size: 1.4rem; color: var(--green); margin-bottom: 16px; }
.footer__cols li + li { margin-top: 10px; }
.footer__cols a { position: relative; font-size: .9rem; letter-spacing: .03em; transition: color .25s; }
.footer__cols a:hover { color: var(--green); }
.footer__contact { display: inline-flex; align-items: center; gap: 10px; }
.footer__contact .icon { color: var(--green); font-size: 18px; }
.footer__copy { text-align: center; padding-top: 28px; font-size: .88rem; color: var(--ink-2); letter-spacing: .03em; }

/* ---------- 18. Reveal animations ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(6px);
  transition: opacity .9s var(--ease-out), transform 1s var(--ease-out), filter .9s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.js [data-reveal="scale"] { transform: translateY(20px) scale(.94) rotate(-6deg); }
.js [data-reveal].is-in { opacity: 1; transform: none; filter: none; }
.js [data-reveal="scale"].is-in { transform: rotate(-6deg); }
/* Elements that carry their own transforms after reveal */
.js .compare__card[data-reveal].is-in { transition: background-color .6s var(--ease-out), border-color .6s, box-shadow .6s var(--ease-out), transform .4s var(--ease-out), opacity .9s, filter .9s; }
.js .feature[data-reveal].is-in { transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), opacity .9s, filter .9s; transition-delay: 0s; }
.js .step[data-reveal], .js .tcard[data-reveal] { filter: none; }

/* Hero load sequence */
.js .hero__line > span { transform: translateY(105%); transition: transform 1.1s var(--ease-out); }
.js .hero__line--accent > span { transition-delay: .12s; }
.js .hero__swoosh path { stroke-dashoffset: 400; transition: stroke-dashoffset 1.1s var(--ease-out) .7s; }
.js .hero__media { clip-path: inset(6% 6% 6% 6% round var(--r-xl)); transition: clip-path 1.3s var(--ease-out) .1s; }
.js .hero__media > img { transform: scale(1.12); transition: transform 1.8s var(--ease-out) .1s; }
.js .spin-badge { opacity: 0; transform: scale(.6) rotate(-40deg); transition: opacity .6s .7s, transform 1s var(--ease-spring) .7s; }
.is-loaded .hero__line > span { transform: none; }
.is-loaded .hero__swoosh path { stroke-dashoffset: 0; }
.is-loaded .hero__media { clip-path: inset(0 0 0 0 round var(--r-xl)); }
.is-loaded .hero__media > img { transform: none; }
.is-loaded .spin-badge { opacity: 1; transform: none; }
.is-loaded .spin-badge:hover { transform: scale(1.06); transition-delay: 0s; }

/* ---------- 19. Breakpoints ---------- */
@media (min-width: 640px) {
  .feature { grid-template-columns: minmax(0, 1fr) minmax(0, 230px); }
  .feature__media { min-height: 0; max-height: none; }
  .footer__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cart__panel { position: absolute; left: auto; right: 0; top: calc(100% + 12px); width: 380px; }
}

@media (min-width: 900px) {
  .hero { grid-template-columns: minmax(0, 0.77fr) minmax(0, 1fr); min-height: min(700px, calc(100vh - var(--header-h) - 10px)); }
  .hero__copy { padding: 26px 20px 20px; }
  .hero__media { aspect-ratio: auto; min-height: 560px; }
  .compare { grid-template-columns: 1fr 1fr; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .buyer__inner { grid-template-columns: 1fr 1fr; gap: 6vw; }
  .cta { grid-template-columns: 1fr auto; }
  .footer__top { grid-template-columns: 1fr minmax(0, 500px); align-items: start; }
  .footer__cols { grid-template-columns: 1fr 1.2fr 1.2fr 1.2fr 1.1fr; }
}

@media (min-width: 1100px) {
  :root { --header-h: 88px; }
  .brand img { width: 152px; }
  .nav { display: block; }
  .header-actions > .pill { display: inline-flex; }
  .menu-btn, .mobile-menu { display: none !important; }
  .feature { padding: 20px; min-height: 310px; }

  .float-card--top { right: 4%; }
  .nav { display: block; margin-left: clamp(24px, 3vw, 56px); }
}

/* =========================================================
   21. Mobile & tablet layouts
   Not just smaller desktop: sections get their own phone layouts.
   ========================================================= */

/* Kenapa switch: only used on phones */
.compare-switch { display: none; }

/* Cara Kerja timeline — used whenever the section is NOT pinned (phones, tablets, short screens) */
.cara:not(.is-pinned) .steps { position: relative; gap: 14px; }
.cara:not(.is-pinned) .steps::before {
  content: ""; position: absolute; left: 21px; top: 24px; bottom: 24px;
  border-left: 2px dashed var(--green-200);
}
.cara:not(.is-pinned) .step {
  grid-template-columns: 44px 1fr; gap: 14px; align-items: start;
  padding: 0; background: none; border: 0;
}
.cara:not(.is-pinned) .step__num {
  position: relative; z-index: 1;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 1.05rem; color: var(--ink-3);
  background: #fff; border: 2px solid var(--green-200);
  transition: background-color .4s, border-color .4s, color .4s;
}
.cara:not(.is-pinned) .step > div {
  padding: 16px 18px; border-radius: 16px;
  background: var(--mist); border: 1px solid var(--line);
  transition: background-color .4s, border-color .4s;
}
.cara:not(.is-pinned) .step.is-done .step__num { background: var(--green-200); border-color: var(--green-200); color: var(--green); }
.cara:not(.is-pinned) .step.is-active .step__num { background: var(--green); border-color: var(--green); color: var(--yellow); }
.cara:not(.is-pinned) .step.is-active > div { background: var(--yellow); border-color: var(--yellow); }

/* Non-pinned layout: centred intro, steps, then a centred button */
.cara:not(.is-pinned) .cara__inner { gap: 0; }
.cara:not(.is-pinned) .cara__intro { display: contents; }

.cara:not(.is-pinned) .cara__intro > .eyebrow,
.cara:not(.is-pinned) .cara__intro > .h2 { text-align: center; }
.cara:not(.is-pinned) .cara__intro > .h2 { max-width: 20ch; margin: 0 auto; }
.cara:not(.is-pinned) .cara__intro > .lead { text-align: center; margin: 16px auto 32px; }

.cara:not(.is-pinned) .steps { order: 1; }
.cara:not(.is-pinned) .cara__intro > .btn { order: 2; justify-self: center; margin-top: 32px; }

/* Testimonial heading (non-pinned): counter beside the title, styled like desktop */
.testi:not(.is-pinned) .testi__copy {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "eyebrow eyebrow"
    "title   count"
    "lead    lead";
  column-gap: 16px;
  align-items: end;
}
.testi:not(.is-pinned) .testi__copy > .eyebrow { grid-area: eyebrow; }
.testi:not(.is-pinned) .testi__copy > .h2      { grid-area: title; }
.testi:not(.is-pinned) .testi__copy > .lead    { grid-area: lead; }
.testi:not(.is-pinned) .testi__counter {
  grid-area: count;
  align-self: start;                 /* top of the title row, level with "Cerita dari" */
  display: block; margin: .15em 0 0; /* was margin: 0 0 .2em */
  white-space: nowrap;
  font-family: var(--font-head); font-size: 1.4rem; color: var(--ink-3);   /* was 1.1rem */
}
.testi:not(.is-pinned) .testi__counter strong { font-size: 2.4rem; color: var(--green); }

/* Mobile menu: dropdown panel + dimmed overlay (tablet + phone) */
@media (max-width: 1099px) {
  html.menu-open { overflow: hidden; }

  /* Solid white header while the menu is open, even when scrolled */
  html.menu-open .site-header {
    background: #fff;
    backdrop-filter: none; -webkit-backdrop-filter: none;
    box-shadow: none;
  }

  .mobile-menu {
    position: absolute; left: 0; right: 0; top: 100%;
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    padding: 8px var(--gutter) 24px;
    background: #fff;
    border-radius: 0 0 24px 24px;
    box-shadow: 0 24px 40px -20px rgba(0, 0, 0, .25);
  }

  .menu-overlay {
    position: fixed; inset: 0; z-index: 99;            /* just under the header (100) */
    background: rgba(20, 35, 22, .45);
    animation: overlayIn .3s ease;
  }

  /* Cart: same dropdown panel as the menu on tablet + phone */
  .cart { position: static; }                 /* lets the panel anchor to the header, not the small cart button */
  .cart__panel {
    position: absolute; left: 0; right: 0; top: 100%;
    width: auto;
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    padding: 16px var(--gutter) 24px;
    border-radius: 0 0 24px 24px;
    box-shadow: 0 24px 40px -20px rgba(0, 0, 0, .25);
    transform-origin: top center;
  }
}
@media (min-width: 1100px) { .menu-overlay { display: none !important; } }
@keyframes overlayIn { from { opacity: 0; } }

/* Etalase: copy → visual → points (single column) */
@media (max-width: 899px) {
  .buyer__inner { gap: 0; }
  .buyer__copy { display: contents; }
  .buyer__copy > .eyebrow, .buyer__copy > .h2, .buyer__copy > .lead { order: 0; }
  .buyer__visual { order: 1; margin: 4px 0 36px; }
  .points { order: 2; }

  /* Footer top: centred logo, tagline and subscribe */
  .footer__top { justify-items: center; text-align: center; }
  .footer__brand img { margin-left: auto; margin-right: auto; }
  .footer__brand p { margin-left: auto; margin-right: auto; }
  .subscribe { width: 100%; }
  .subscribe__field { text-align: left; }

  .footer__brand img { width: 240px; }
  .footer__brand { width: 100%; }
  .footer__brand p { max-width: none; }
}

/* Kenapa: switch + one card at a time (tablet + phone) */
@media (max-width: 899px) {
  .kenapa .section-head { margin-bottom: 20px; }
  .compare-switch {
    position: relative; display: grid; grid-template-columns: 1fr 1fr;
    width: min(100%, 360px); margin: 0 auto 16px; padding: 5px;
    border-radius: 999px; background: var(--mist); border: 1px solid var(--line);
  }
  .compare-switch__thumb {
    position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px);
    border-radius: 999px; background: var(--green);
    transition: transform .5s var(--ease-out), background-color .4s;
  }
  .compare-switch[data-active="1"] .compare-switch__thumb { transform: translateX(100%); background: var(--red); }
  .compare-switch__btn {
    position: relative; z-index: 1; min-height: 44px; border-radius: 999px;
    font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; color: var(--ink-2);
    transition: color .4s;
  }
  .compare-switch__btn[aria-pressed="true"] { color: #fff; }
  .compare__card:not(.is-active) { display: none; }
  .compare__card.is-active { animation: cardSwap .55s var(--ease-out); }
  @keyframes cardSwap { from { opacity: 0; transform: translateY(14px) scale(.98); } }
  .compare { max-width: 600px; }
  .compare__card { aspect-ratio: 1 / 1.05; }

  .cta { grid-template-columns: minmax(0, 1fr); }
}

/* Tablet only */
@media (min-width: 640px) and (max-width: 899px) {
  .hero__media { aspect-ratio: 16 / 10; }
  .hero__media > img { object-position: 60% 30%; }
}

/* ---------- Phones ---------- */
@media (max-width: 639px) {
  /* Hero */
  .hero { gap: 10px; }
  .hero__copy { padding: 28px 20px 20px; gap: 18px; }
  .hero__lead { font-size: .95rem; }
  .hero__chips { padding-top: 6px; gap: 8px; }
  .hero__chips .tag { font-size: .82rem; }
  .hero__decor { width: 260px; right: -80px; bottom: 40px; }
  .hero__media { aspect-ratio: 1 / 1.05; }
  .spin-badge { width: 104px; left: 14px; top: 14px; }

  /* Modules: tilted 3×2 grid instead of the shrunken fan */
  .modules { padding-top: 56px; padding-bottom: 48px; }
  .modules__grid, .modules__glow { display: none; }
  .modules__fan {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
    height: auto; max-width: 380px; transform: none;
  }
  .mod {
    position: relative; left: auto; top: auto; width: auto; margin: 0;
    aspect-ratio: 1; padding: 12px; border-radius: 16px;
    transform: rotate(var(--mr, 0deg));
  }
  .mod:nth-child(1) { --mr: -4deg; } .mod:nth-child(2) { --mr: 2deg; }  .mod:nth-child(3) { --mr: -2deg; }
  .mod:nth-child(4) { --mr: 3deg; }  .mod:nth-child(5) { --mr: -3deg; } .mod:nth-child(6) { --mr: 2deg; }
  .mod:hover, .js .modules__fan.is-in .mod:hover { transform: rotate(0deg) scale(1.05); }
  .js .modules__fan:not(.is-in) .mod { transform: translateY(24px) rotate(var(--mr, 0deg)) scale(.9); opacity: 0; }
  .js .modules__fan .mod { transition: transform .8s var(--ease-out), opacity .6s, box-shadow .4s; }
  .mod__icon { width: 40px; font-size: 20px; }
  .mod__label { font-size: .88rem; }
  .modules__title { margin-top: 36px; font-size: 1.9rem; }

  /* Kenapa (phone proportions) */
  .compare__card { aspect-ratio: 1 / 1.34; }
  .compare__card--pakai .compare__img { width: 112%; }
  .compare__card--tanpa .compare__img { width: 116%; }
  .compare__badge { width: 26%; }
  .compare__list { padding: 20px 14px 12px; gap: 6px; }   /* was 12px 14px */
  .compare__item { font-size: .78rem; align-items: flex-start; }
  .compare__tick { width: 18px; height: 18px; font-size: 11px; margin-top: 1px; }

  /* Fitur: swipeable cards, illustration on top */
  .fitur .section-head { margin-bottom: 24px; }
  .tabs { padding: 8px; border-radius: 14px; }
  .tabs__indicator { top: 8px; bottom: 8px; left: 8px; width: calc(50% - 8px); }
  .tabs__btn { min-height: 44px; font-size: .9rem; }
  .feature-grid {
    display: flex; gap: 12px;
    overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin: 0 calc(var(--gutter) * -1); padding: 4px var(--gutter) 20px;
    scrollbar-width: none;
  }
  .feature-grid::-webkit-scrollbar { display: none; }
  .feature {
    flex: 0 0 84%; scroll-snap-align: center;
    display: flex; flex-direction: column; gap: 0; padding: 10px;
  }
  .feature:hover { transform: none; }
  .feature__media { order: -1; aspect-ratio: 4 / 3; min-height: 0; max-height: none; }
  .feature__img { top: 10%; height: 80%; }
  .feature__body { padding: 16px 8px 8px; }
  .feature__icon { display: none; }
  .feature__kicker { margin-top: 0; font-size: .95rem; }
  .feature__title { font-size: 1.35rem; }
  .feature__text { font-size: .9rem; }

  /* Cara Kerja */
  .step__title { font-size: 1.15rem; }

  /* Etalase */
  .buyer__visual { padding: 18px 0 64px; }   /* the bar is taller on phones (button wraps) */
  .buyer__cta { padding: 12px; gap: 12px; }
  .buyer__cta-icon { width: 44px; height: 44px; border-radius: 12px; font-size: 22px; }
  .buyer__cta p { flex: 1 1 160px; font-size: .86rem; }
  .buyer__cta .btn { width: 100%; justify-content: space-between; }
  .point { padding: 18px 18px 20px; border-radius: 18px; }
  .point:hover { transform: none; }
  .point__title { font-size: 1.12rem; }
  .point__text { font-size: .9rem; }

  .buyer__shot { width: 100%; margin-bottom: 0; }

  .float-card { padding: 10px 18px 10px 10px; column-gap: 10px; border-radius: 16px; }
  .float-card__icon { width: 40px; height: 40px; border-radius: 10px; font-size: 20px; }
  .float-card__title { font-size: .9rem; }
  .float-card__text { font-size: .82rem; }
  .float-card--top { top: 0; right: 0; }
  .float-card--bottom { top: 32%; left: 0; }

  /* Testimonial (mobile carousel) */
  .tcard__quote { grid-template-columns: 30px 1fr; column-gap: 16px; padding: 20px 14px 14px 18px; }
  .tcard__mark { width: 30px; height: 23px; margin-top: 4px; }
  .tcard__foot { min-height: 72px; padding: 0 16px; }
  .tcard__name { font-size: 1.3rem; }

  /* Testimonial heading (non-pinned): counter beside the title */
  .testi:not(.is-pinned) .testi__copy {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "eyebrow eyebrow"
      "title   count"
      "lead    lead";
    column-gap: 16px;
    align-items: end;                         /* counter lines up with the title's last line */
  }
  .testi:not(.is-pinned) .testi__copy > .eyebrow { grid-area: eyebrow; }
  .testi:not(.is-pinned) .testi__copy > .h2      { grid-area: title; }
  .testi:not(.is-pinned) .testi__copy > .lead    { grid-area: lead; }

  /* Counter styled like desktop: big green current number, grey total */
  .testi:not(.is-pinned) .testi__counter {
    grid-area: count;
    display: block; margin: 0 0 .2em;         /* small lift so it sits on the title's baseline */
    white-space: nowrap;
    font-family: var(--font-head); font-size: 1.1rem; color: var(--ink-3);
  }
  .testi:not(.is-pinned) .testi__counter strong { font-size: 1.6rem; color: var(--green); }

  /* FAQ */
  .acc__btn { padding: 20px 18px; font-size: 1.02rem; }
  .acc.is-open .acc__btn { padding-left: 20px; padding-right: 20px; }
  .acc__inner p { margin: 0 20px; font-size: .9rem; }

  /* CTA */
  .cta { padding-top: 72px; }

  /* Playground + footer */
  .chip { padding: .45em .8em; }
  .footer { margin-top: -24px; }
  .footer__cols > :last-child { grid-column: 1 / -1; }
  .subscribe__btn { padding: 12px 16px; }
}

@media (max-width: 899px) {
  /* CTA: centred content and buttons */
  .cta { justify-items: center; text-align: center; }
  .cta__title { margin-left: auto; margin-right: auto; }
  .cta .lead { margin-left: auto; margin-right: auto; }
  /* Hero + CTA buttons: equal width = the longest button */
  .hero .btn-row,
  .cta .btn-row {
    display: grid;
    grid-auto-flow: column;          /* side by side */
    grid-auto-columns: 1fr;          /* equal columns… */
    width: max-content;              /* …sized to the widest button */
    gap: 10px;
  }
  .hero .btn-row .btn,
  .cta .btn-row .btn { justify-content: space-between; }
}

/* Phones: shorter label + compact buttons so both fit side by side */
@media (max-width: 639px) {
  .hide-sm { display: none; }

  .hero .btn-row .btn,
  .cta .btn-row .btn { gap: 8px; padding-left: 14px; min-height: 46px; font-size: .88rem; }

  .hero .btn-row .btn__icon,
  .cta .btn-row .btn__icon { width: 34px; height: 34px; font-size: 15px; }
}

/* ---------- 20. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js [data-reveal] { opacity: 1; transform: none; filter: none; }
  .js .hero__line > span, .js .hero__media, .js .hero__media > img, .js .spin-badge { transform: none; opacity: 1; clip-path: none; }
  .js .hero__swoosh path { stroke-dashoffset: 0; }
}

[hidden] { display: none !important; }
@media (max-width: 639px) { .hide-sm { display: none; } }
