/* ============ TopBar (running text / marquee) ============ */
.topbar {
  background: var(--mono-darker);
  height: 40px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.topbar-track {
  display: flex;
  align-items: center;
  gap: 40px;
  white-space: nowrap;
  width: max-content;
}

.topbar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--mono-white);
  font-size: 13px;
  flex-shrink: 0;
}

.topbar-icon { width: 16px; height: 16px; }

@media (max-width: 767px) {
  .topbar-track {
    animation: marquee 22s linear infinite;
  }
  @keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
  }
}

/* ==========================================================================
   Header (logo + hamburger drawer) & Footer — diekstrak dari index-1.html
   (header.html / footer.html), Hero — dari hero-home.html. Style dasar jsxtopup.
   ========================================================================== */
:root {
  --jx-bg: #14171a;
  --jx-white: #ffffff;
  --jx-pink: #ef6fa3;
  --jx-amber: #f4a93a;
  --jx-radius-lg: 24px;
  --jx-radius-md: 16px;
  --jx-radius-full: 999px;
  --jx-font: "DM Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --jx-font-display: "DM Serif Display", Georgia, "Times New Roman", serif;
  --jx-green-dark: #0f8f4d;
  --jx-star: #18c96e;
  --jx-text-muted: #a2a8ae;
  --jx-hairline: rgba(255, 255, 255, 0.12);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

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

.jx-home-page {
  background: var(--jx-bg);
  color: var(--jx-white);
  font-family: var(--jx-font);
}

/* ---------- Header: nav pill + menu drawer ---------- */
.jx-header {
  position: relative;
}

.jx-nav-wrap {
  padding: 16px 16px 0;
}

.jx-home-page .jx-nav-wrap {
  position: relative;
  z-index: 3;
  margin-bottom: -76px;
}

.jx-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--jx-white);
  border-radius: 0;
  padding: 10px 10px 10px 18px;
}

.jx-menu-panel {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10;
  padding: 28px 28px calc(28px + var(--safe-bottom));
  background: #ffffff;
  color: #14171a;
  overflow-y: auto;
}

.jx-nav-wrap.is-menu-open .jx-menu-panel {
  display: block;
}

.jx-menu-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 640px;
  margin: 0 auto 48px;
}

.jx-menu-logo {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 20px;
  font-weight: 800;
  color: #14171a;
}

.jx-menu-logo .jx-suffix {
  color: #7a8086;
  font-weight: 600;
}

.jx-menu-close {
  width: 42px;
  height: 42px;
  background: transparent;
  color: #0875c9;
  font-size: 42px;
  font-weight: 400;
  line-height: 1;
}

.jx-menu-list {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
}

.jx-menu-link {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 74px;
  padding: 10px 0;
  border-bottom: 1px solid #e1e1e1;
  font-size: 22px;
  font-weight: 700;
}

.jx-menu-link:active {
  color: var(--jx-green-dark);
}

.jx-menu-link-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.jx-menu-chevron {
  width: 25px;
  height: 25px;
  margin-left: auto;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

/* Subtle desktop affordance (mobile-first original only has :active) */
.jx-menu-link:hover .jx-menu-chevron {
  transform: translateX(3px);
}

@media (max-width: 380px) {
  .jx-menu-panel {
    padding-left: 22px;
    padding-right: 22px;
  }

  .jx-menu-topbar {
    margin-bottom: 32px;
  }

  .jx-menu-link {
    gap: 14px;
    min-height: 66px;
    font-size: 18px;
  }
}

.jx-menu-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease;
}

.jx-menu-btn:hover {
  background: rgba(20, 23, 26, 0.06);
}

.jx-menu-btn:active {
  background: rgba(20, 23, 26, 0.12);
}

.jx-menu-btn svg {
  width: 22px;
  height: 22px;
  color: #14171a;
}

/* ---------- Hero ---------- */
.jx-hero {
  position: relative;
  padding: 40px 20px 48px;
  overflow: hidden;
  min-height: 560px;
}

.jx-home-page .jx-hero {
  padding-top: 116px;
  min-height: 0;
}

.jx-home-page .jx-hero-content {
  max-width: 600px;
  margin: 0 auto;
}

.jx-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(20,23,26,0.28) 0%, rgba(20,23,26,0.68) 75%, var(--jx-bg) 100%),
    radial-gradient(120% 90% at 75% 15%, #54434b 0%, #302a31 55%, #202428 100%);
}

.jx-hero-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.jx-hero-bg--home-gradient {
  background: linear-gradient(180deg, #f97316 0%, #fb923c 30%, #c95a3d 62%, #683238 84%, var(--jx-bg) 100%);
}

.jx-hero-content {
  position: relative;
  z-index: 1;
}

.jx-hero h1 {
  font-family: var(--jx-font-display);
  font-size: min(55px, 12vw);
  line-height: 1.08;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.jx-hero h1 .jx-gradient-word {
  background: linear-gradient(90deg, #e9edf0 0%, var(--jx-pink) 55%, var(--jx-amber) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.jx-hero-sub {
  margin-top: 28px;
  background: rgba(20, 23, 26, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(6px);
  border-radius: var(--jx-radius-lg);
  padding: 22px;
}

.jx-hero-sub--home {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(20, 23, 26, 0.08);
  color: #14171a;
}

.jx-hero-sub label {
  display: block;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 14px;
}

.jx-phone-field {
  display: flex;
  align-items: center;
  background: var(--jx-white);
  border-radius: var(--jx-radius-md);
  padding: 14px 16px;
  margin-bottom: 14px;
}

.jx-phone-field input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  color: #14171a;
  background: transparent;
}

.jx-phone-field input::placeholder {
  color: #8b9096;
}

.jx-phone-field--home {
  background: var(--jx-white);
}

.jx-phone-field--home input {
  color: #14171a;
}

.jx-home-form-error {
  min-height: 18px;
  margin-top: 8px;
  color: #c5362c;
  font-size: 12px;
  font-weight: 600;
}

.jx-cta {
  width: 100%;
  background: #0d0f11;
  color: var(--jx-white);
  font-size: 16px;
  font-weight: 700;
  padding: 16px;
  border-radius: var(--jx-radius-full);
}

.jx-cta:active {
  background: #000;
}

@media (max-width: 380px) {
  .jx-home-page .jx-hero { padding: 96px 16px 36px; }
  .jx-home-page .jx-hero h1 { font-size: min(48px, 11.6vw); }
  .jx-home-page .jx-hero-sub { padding: 18px; }
}

@media (min-width: 768px) {
  .jx-home-page .jx-hero { padding-top: 128px; padding-bottom: 64px; }
  .jx-home-page .jx-hero h1 { font-size: 65px; }
  .jx-home-page .jx-hero-sub { max-width: 560px; }
}

/* ==========================================================================
   Footer — diekstrak dari footer.html (rating + accordion + desc + legal)
   ========================================================================== */
.jx-footer {
  background: var(--jx-bg);
  color: var(--jx-white);
  font-family: var(--jx-font);
  padding: 32px 20px calc(24px + var(--safe-bottom));
}

.jx-rating {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  padding-bottom: 24px;
}

.jx-rating-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
}

.jx-stars {
  display: flex;
  gap: 3px;
}

.jx-stars .jx-star-box {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background: var(--jx-star);
  display: flex;
  align-items: center;
  justify-content: center;
}

.jx-stars .jx-star-box.empty {
  background: #3a3f44;
}

.jx-stars svg {
  width: 14px;
  height: 14px;
  color: var(--jx-white);
}

.jx-rating-sub {
  font-size: 14px;
  color: var(--jx-text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.jx-rating-sub a {
  color: var(--jx-white);
  text-decoration: underline;
}

.jx-trust-star {
  color: var(--jx-star);
}

.jx-accordion {
  border-top: 1px solid var(--jx-hairline);
}

.jx-accordion-item {
  border-bottom: 1px solid var(--jx-hairline);
}

.jx-accordion-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 4px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: color 0.15s ease;
}

/* Subtle desktop affordance for the accordion rows */
.jx-accordion-item summary:hover {
  color: var(--jx-pink);
}

.jx-accordion-item summary::-webkit-details-marker {
  display: none;
}

.jx-accordion-item summary svg {
  width: 18px;
  height: 18px;
  color: var(--jx-white);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.jx-accordion-item[open] summary svg {
  transform: rotate(180deg);
}

.jx-accordion-item .jx-accordion-body {
  padding: 0 4px 18px;
  font-size: 14px;
  color: var(--jx-text-muted);
}

.jx-footer-desc {
  margin-top: 28px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--jx-text-muted);
  text-align: left;
}

.jx-footer-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2px;
  margin-top: 32px;
  font-weight: 800;
  font-size: 20px;
  color: var(--jx-white);
}

.jx-footer-copy {
  margin-top: 20px;
  text-align: center;
  font-size: 13px;
  color: var(--jx-text-muted);
}

.jx-footer-links {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
}

.jx-footer-links a {
  font-size: 13px;
  color: var(--jx-text-muted);
}

.jx-footer-links a:active {
  color: var(--jx-white);
}

/* ==========================================================================
   Home Sections (Most Popular s.d. Trustpilot) — diekstrak dari
   css/style.css (.centered + Sections/Tabs/Cards/Stats/Reviews)
   ========================================================================== */
.centered {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--wrapper-padding);
}

@media (min-width: 1280px) {
  :root { --wrapper-padding: 32px; }
}

/* ---------- Sections ---------- */
.section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px var(--wrapper-padding);
}

.section-title {
  font-family: var(--jx-font-display);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -0.005em;
  color: var(--mono-darker);
  margin-bottom: 20px;
}
@media (min-width: 1280px) {
  .section-title { font-size: 32px; }
}

.row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.row-head .section-title { margin-bottom: 0; }

.show-all {
  color: var(--interaction);
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.show-all:hover { text-decoration: underline; }
.show-all-arrow { font-size: 18px; line-height: 1; }

/* ---------- Tabs (Most Popular) ---------- */
.tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 24px;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }

.tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: 9999px;
  border: 1px solid var(--mono-light);
  background: var(--mono-lighter);
  color: var(--mono-darker);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.tab-icon { width: 20px; height: 20px; }

.tab.is-selected {
  background: var(--mono-white);
  border: 1px solid transparent;
  background-image: linear-gradient(var(--mono-white), var(--mono-white)),
    linear-gradient(90deg, var(--primary-main), var(--interaction));
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

/* ---------- Product cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (min-width: 640px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 768px) {
  .card-grid { grid-template-columns: repeat(6, 1fr); }
}

.card-row {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.card-row::-webkit-scrollbar { display: none; }

.product-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.card-row .product-card { flex-shrink: 0; width: 188px; }

.product-card-img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.25);
  aspect-ratio: 8 / 5;
  object-fit: cover;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
@media (min-width: 768px) {
  .card-row .product-card { width: 244px; }
  .card-grid .product-card { width: 188px; }
}
.product-card:hover .product-card-img {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}
.product-card:hover .product-card-name { color: var(--interaction); }

.product-card-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--mono-darker);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.15s ease;
}

/* ---------- Stats ---------- */
.stats {
  background: var(--mono-lighter);
  padding: 40px 0;
  margin: 24px 0;
}

.stats-title {
  font-family: var(--jx-font-display);
  text-align: center;
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -0.005em;
  color: var(--mono-darker);
  max-width: 720px;
  margin: 0 auto 40px;
}
@media (min-width: 1280px) { .stats-title { font-size: 32px; } }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  text-align: center;
  padding: 0 var(--wrapper-padding);
}
@media (min-width: 768px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .stats { padding: 64px 0; }
}

.stat-icon { width: 64px; height: 64px; margin: 0 auto 12px; }
.stat-number { font-size: 24px; font-weight: 600; color: var(--mono-darker); }
.stat-label { font-size: 16px; font-weight: 600; color: var(--mono-darker); }
.stat-text { font-size: 14px; color: var(--mono-mid); margin-top: 6px; }

/* ---------- Reviews (Trustpilot) ---------- */
.reviews { gap: 16px; }

.review-card {
  flex-shrink: 0;
  width: 280px;
  background: var(--mono-lighter);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.review-stars { height: 16px; width: auto; }
.review-by { font-size: 14px; color: var(--mono-mid); }
.review-by strong { color: var(--mono-darker); }
.review-title { font-size: 18px; font-weight: 600; color: var(--mono-darker); }
.review-text {
  font-size: 16px;
  color: var(--mono-dark);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==========================================================================
   Sentuhan APK / mobile-first: rasa native di WebView
   ========================================================================== */
html {
  -webkit-tap-highlight-color: transparent;
}

body {
  overscroll-behavior-y: none;
}

button, a, [role="button"], label {
  touch-action: manipulation;
}

@media (prefers-reduced-motion: reduce) {
  .topbar-track { animation: none !important; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ---------- Trustpilot summary (static) ---------- */
.tp-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 18px;
  margin: 0 0 18px;
  border: 1px solid var(--border-grey, #e5e5e5);
  border-radius: 16px;
  background: #fff;
  text-decoration: none;
  color: var(--mono-darker, #1f1f1f);
  transition: box-shadow .15s ease, transform .15s ease;
}
.tp-summary:hover {
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  transform: translateY(-1px);
}
.tp-summary .tp-logo {
  font-weight: 700;
  color: #00b67a;
  font-size: 15px;
}
.tp-summary .tp-stars { display: inline-flex; line-height: 0; }
.tp-summary .tp-score { font-size: 14px; color: var(--mono-mid, #6b6b6b); }
.tp-summary .tp-score strong { color: var(--mono-darker, #1f1f1f); font-size: 16px; }
.tp-summary .tp-count { font-size: 13px; color: var(--mono-mid, #6b6b6b); }
.tp-summary .tp-cta {
  margin-left: auto;
  font-size: 13px;
  font-weight: 600;
  color: #00b67a;
}
.review-card--verified { border-color: #00b67a33; }
.review-card--verified .tp-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: #00b67a;
  border-radius: 10px;
  vertical-align: middle;
}
