/* ==========================================================================
   JPG ke PDF — components.css
   Komponen berbagi: tombol, header/navigasi, footer, kartu, fitur,
   persona, ulasan, akordeon FAQ, blok catatan, tombol scroll.
   ========================================================================== */

/* ---------- Tombol ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
  white-space: nowrap;
  text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn__icon { width: 1.15em; height: 1.15em; flex-shrink: 0; }

.btn--primary { background: var(--indigo); color: var(--white); box-shadow: var(--shadow-indigo); }
.btn--primary:hover { background: var(--indigo-deep); color: var(--white); transform: translateY(-2px); box-shadow: 0 16px 34px rgba(87, 93, 199, 0.4); }

.btn--secondary { background: var(--white); color: var(--navy); border-color: var(--slate-200); box-shadow: var(--shadow-sm); }
.btn--secondary:hover { border-color: var(--indigo); color: var(--indigo-deep); transform: translateY(-2px); }

.btn--ghost { background: transparent; color: var(--navy); border-color: var(--slate-200); }
.btn--ghost:hover { background: var(--indigo-soft); color: var(--indigo-deep); border-color: var(--indigo); }

.btn--on-dark { background: var(--white); color: var(--navy); }
.btn--on-dark:hover { background: var(--indigo-soft); color: var(--navy); transform: translateY(-2px); }

.btn--ghost-dark { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.28); }
.btn--ghost-dark:hover { background: rgba(255, 255, 255, 0.1); color: var(--white); border-color: rgba(255, 255, 255, 0.5); }

.btn--green { background: var(--green); color: var(--white); box-shadow: 0 12px 28px rgba(46, 189, 89, 0.32); }
.btn--green:hover { background: var(--green-deep); color: var(--white); transform: translateY(-2px); }

.btn--sm { padding: 0.6rem 1.1rem; font-size: 0.875rem; }
.btn--lg { padding: 1rem 1.9rem; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }

/* ---------- Header / Navigasi ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 248, 252, 0.9);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.site-header.is-stuck {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 6px 24px rgba(10, 18, 48, 0.07);
}
.nav {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  color: var(--navy);
  flex-shrink: 0;
}
.brand__mark { width: 38px; height: 38px; }
.brand__name {
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy);
  display: inline-flex;
  align-items: baseline;
}
.brand__name em { color: var(--magenta); font-style: normal; margin-inline: 0.12em; font-weight: 700; }
.brand__name b { color: var(--indigo); font-weight: 800; }

/* Menu utama: satu kapsul berbingkai di tengah bar */
.nav__menu {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin-inline: auto;
  padding: 0.28rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.nav__menu-head { display: none; }
.nav__menu-title {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.nav__close {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--navy);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.nav__close:hover { background: var(--indigo); color: var(--white); border-color: var(--indigo); }
.nav__close svg { width: 18px; height: 18px; }

.nav__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.68rem 1.05rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--slate-700);
  white-space: nowrap;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.nav__link:hover,
.nav__link:focus-visible { background: var(--indigo); color: var(--white); }
.nav__link[aria-current="page"] { background: var(--navy); color: var(--white); }
.nav__link[aria-current="page"]:hover { background: var(--indigo); color: var(--white); }

.nav__menu-cta { margin-left: 0.35rem; display: none; }
.nav__actions { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }

.nav__toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--navy);
  font-weight: 600;
  font-size: 0.9rem;
}
.nav__toggle-bars { display: inline-flex; flex-direction: column; gap: 4px; width: 18px; }
.nav__toggle-bars span {
  height: 2px; width: 100%; background: currentColor; border-radius: 2px;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.nav__toggle[aria-expanded="true"] .nav__toggle-bars span:first-child { transform: translateY(3px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars span:last-child { transform: translateY(-3px) rotate(-45deg); }

.nav__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 18, 48, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur) var(--ease), visibility var(--dur) var(--ease);
  z-index: 90;
}
.nav__backdrop.is-open { opacity: 1; visibility: visible; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--slate-900);
  color: var(--text-on-dark);
  padding-block: var(--space-8) var(--space-6);
  margin-top: auto;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: var(--space-6);
  padding-bottom: var(--space-7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer__brand .brand { color: var(--white); margin-bottom: var(--space-4); }
.footer__brand .brand__name { color: var(--white); }
.footer__brand .brand__name b { color: #8E93E6; }
.footer__brand .brand__name em { color: var(--magenta); }
.footer__brand-desc { color: var(--text-on-dark); font-size: 0.92rem; line-height: 1.7; max-width: 34ch; }

.footer__heading {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: var(--space-4);
  font-family: var(--font-display);
}
.footer__list { display: flex; flex-direction: column; gap: 0.7rem; }
.flink {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text-on-dark);
  font-size: 0.9rem;
}
.flink:hover { color: var(--white); }
.flink__icon { width: 1.1em; height: 1.1em; opacity: 0.7; flex-shrink: 0; }

.footer__bottom {
  padding-top: var(--space-5);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  text-align: center;
}
.footer__copy { font-size: 0.88rem; color: var(--text-on-dark); text-align: center; }
.footer__brand-link { color: #8E93E6; font-weight: 600; }
.footer__brand-link:hover { color: var(--white); }
.footer__disclaimer {
  margin: var(--space-4) auto 0;
  font-size: 0.8rem;
  color: var(--slate-400);
  line-height: 1.65;
  max-width: 88ch;
  text-align: center;
}

/* ---------- Scroll to top ---------- */
.scroll-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  background: var(--indigo);
  color: var(--white);
  border-radius: 50%;
  box-shadow: var(--shadow-indigo);
  z-index: 80;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--dur) var(--ease), visibility var(--dur) var(--ease), transform var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.scroll-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover { background: var(--indigo-deep); }
.scroll-top svg { width: 22px; height: 22px; }

/* ---------- Kartu fitur ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
}
.feature {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--indigo-soft); }
.feature__icon {
  display: inline-grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  background: var(--indigo-soft);
  color: var(--indigo-deep);
  margin-bottom: var(--space-4);
}
.feature__icon svg { width: 26px; height: 26px; }
.feature h3 { font-size: var(--fs-h4); margin-bottom: var(--space-2); }
.feature p { font-size: 0.94rem; color: var(--text-muted); }

/* variasi warna ikon fitur */
.feature:nth-child(3n+2) .feature__icon { background: var(--green-soft); color: var(--green-deep); }
.feature:nth-child(3n) .feature__icon { background: var(--magenta-soft); color: #C81CA0; }

/* ---------- Kartu di atas latar gelap ----------
   Di seksi gelap kartu tetap gelap: hanya bingkai dan teks yang diterangkan. */
.section--dark .feature,
.section--dark .persona,
.section--dark .step,
.section--dark .review-card,
.section--dark .value-card,
.section--dark .accordion__item {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: none;
}
.section--dark .feature:hover,
.section--dark .persona:hover,
.section--dark .value-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.34);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}
.section--dark .feature h3,
.section--dark .persona__title,
.section--dark .step h3,
.section--dark .value-card h3 { color: var(--white); }
.section--dark .feature p,
.section--dark .persona__text,
.section--dark .step p,
.section--dark .review-card__text,
.section--dark .value-card p { color: var(--text-on-dark); }
.section--dark .feature__icon,
.section--dark .value-card__icon {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #C4C8FF !important;
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.section--dark .persona__icon {
  background: rgba(255, 255, 255, 0.1);
  color: #C4C8FF;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

/* ---------- Persona ---------- */
.personas {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
}
.persona {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-align: center;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.persona:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.persona__icon {
  display: inline-grid;
  place-items: center;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--indigo-soft), var(--magenta-soft));
  color: var(--indigo-deep);
  margin-bottom: var(--space-4);
}
.persona__icon svg { width: 30px; height: 30px; }
.persona__title { font-size: var(--fs-h4); margin-bottom: var(--space-2); }
.persona__text { font-size: 0.92rem; color: var(--text-muted); }

/* ---------- Langkah (how it works) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-5);
  counter-reset: step;
}
.step {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  padding-top: calc(var(--space-6) + 1rem);
}
.step__num {
  position: absolute;
  top: calc(-1 * var(--space-4));
  left: var(--space-6);
  width: 46px; height: 46px;
  display: grid; place-items: center;
  background: var(--indigo);
  color: var(--white);
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  box-shadow: var(--shadow-indigo);
}
.step:nth-child(2) .step__num { background: var(--magenta); box-shadow: 0 12px 30px rgba(247, 72, 205, 0.32); }
.step:nth-child(3) .step__num { background: var(--green); box-shadow: 0 12px 30px rgba(46, 189, 89, 0.32); }
.step h3 { font-size: var(--fs-h4); margin-bottom: var(--space-2); }
.step p { font-size: 0.94rem; color: var(--text-muted); }

/* ---------- Blok catatan ---------- */
.note-block {
  display: flex;
  gap: var(--space-5);
  background: var(--indigo-soft);
  border: 1px solid #D5D8F6;
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}
.note-block__icon {
  flex-shrink: 0;
  display: grid; place-items: center;
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--indigo-deep);
}
.note-block__icon svg { width: 28px; height: 28px; }
.note-block__title { font-size: var(--fs-h4); margin-bottom: var(--space-2); }
.note-block p { font-size: 0.95rem; color: var(--slate-700); }

/* ---------- Ulasan ---------- */
.reviews-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-5);
  flex-wrap: wrap;
  margin-bottom: var(--space-6);
}
.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--green-soft);
  color: var(--green-deep);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.9rem;
}
.rating-badge__stars { display: inline-flex; gap: 2px; color: var(--green); }
.rating-badge__stars svg { width: 16px; height: 16px; }

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-5);
}

/* ---------- Korsel ulasan (bergerak terus, dengan kontrol) ---------- */
.reviews-carousel { position: relative; }
.reviews-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  padding-block: 6px;
  /* bilah gulir disembunyikan; gulir sentuh tetap jalan */
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  mask-image: linear-gradient(90deg, transparent 0, #000 3.5%, #000 96.5%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 3.5%, #000 96.5%, transparent 100%);
}
.reviews-viewport::-webkit-scrollbar { width: 0; height: 0; display: none; }
.reviews-viewport:focus-visible { outline: 3px solid var(--indigo); outline-offset: 4px; border-radius: var(--radius-md); }

.reviews-track {
  display: flex;
  align-items: stretch;
  gap: var(--space-5);
  width: max-content;
}
.reviews-track .review-card {
  flex: 0 0 340px;
  width: 340px;
  height: auto;
}
.reviews-track .review-card__text {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.reviews-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin-top: var(--space-5);
}
.reviews-btn {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--navy);
  box-shadow: var(--shadow-sm);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease),
    border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.reviews-btn:hover { background: var(--indigo); color: var(--white); border-color: var(--indigo); transform: translateY(-2px); }
.reviews-btn svg { width: 18px; height: 18px; }
.reviews-btn--toggle svg { width: 16px; height: 16px; }
.reviews-carousel .reviews-btn__play { display: none; }
.reviews-carousel.is-paused .reviews-btn__play { display: block; }
.reviews-carousel.is-paused .reviews-btn__pause { display: none; }

.review-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.review-card__stars { display: inline-flex; gap: 2px; color: var(--green); }
.review-card__stars svg { width: 18px; height: 18px; }
.review-card__text { font-size: 0.96rem; color: var(--slate-700); line-height: 1.65; font-style: normal; }
.review-card__person { display: flex; align-items: center; gap: 0.75rem; margin-top: auto; }
.review-card__avatar {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--indigo);
  color: var(--white);
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 0.9rem;
  flex-shrink: 0;
}
.review-card:nth-child(2n) .review-card__avatar { background: var(--magenta); }
.review-card:nth-child(3n) .review-card__avatar { background: var(--green); }
.review-card__name { display: block; font-weight: 600; color: var(--navy); font-size: 0.92rem; }
.review-card__role { display: block; font-size: 0.82rem; color: var(--text-muted); }

/* ---------- Akordeon FAQ ---------- */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-5);
  align-items: start;
}
.accordion { display: flex; flex-direction: column; gap: var(--space-3); }
.accordion__item {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease);
}
.accordion__item:has(.accordion__trigger[aria-expanded="true"]) { border-color: var(--indigo); }
.accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  width: 100%;
  padding: var(--space-4) var(--space-5);
  text-align: left;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--navy);
}
.accordion__icon { width: 22px; height: 22px; flex-shrink: 0; color: var(--indigo); transition: transform var(--dur) var(--ease); }
.accordion__trigger[aria-expanded="true"] .accordion__icon { transform: rotate(45deg); }
.accordion__panel { padding: 0 var(--space-5) var(--space-4); }
.accordion__panel p { font-size: 0.94rem; color: var(--text-muted); }

/* ---------- CTA akhir ---------- */
.cta-final { text-align: center; }

/* ---------- Roti (breadcrumb) ---------- */
.breadcrumb { font-size: 0.85rem; color: var(--text-muted); margin-bottom: var(--space-4); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.breadcrumb li { display: inline-flex; align-items: center; gap: 0.4rem; }
.breadcrumb li:not(:last-child)::after { content: "/"; color: var(--slate-400); }
.breadcrumb a { color: var(--indigo-deep); }
.breadcrumb [aria-current="page"] { color: var(--text-muted); }
