/* ==========================================================================
   THEMOST.IDN — stylesheet utama (beranda & halaman dukungan)
   Urutan: token > dasar > tata letak > komponen > bagian halaman > responsif
   ========================================================================== */

/* --- Token brand: ubah warna di sini, jangan di tiap class --- */
:root {
  --navy: #051336;
  --navy-2: #0E2152;      /* kotak ikon di bagian transparansi */
  --navy-line: #27345E;
  --white: #FFFFFF;
  --magenta: #FF00BF;     /* hanya untuk latar gelap / aksen */
  --magenta-text: #B5007F; /* magenta untuk teks kecil di latar putih */
  --cyan: #00E6F6;
  --teal: #00B8C4;
  --purple: #782A98;      /* aksen VERIFYMOST */
  --text: #3A4260;
  --muted: #5A6380;
  --on-navy: #C9D1E6;
  --on-navy-2: #E4E8F3;
  --on-navy-3: #8E99BA;
  --light: #F4F6FB;
  --line: #DDE2EE;
  --line-2: #EEF0F6;
  --line-dash: #A9B2CB;
  --radius-pill: 999px;
  --font: 'Inter Tight', system-ui, sans-serif;
}

/* --- Dasar --- */
body {
  margin: 0;
  background: var(--white);
  color: var(--navy);
  font-family: var(--font);
}

h1, h2, h3, p { margin: 0; }
h1 { font-weight: 800; letter-spacing: -0.02em; }
h2 { font-weight: 800; }
h3 { font-weight: 800; }

a { color: var(--navy); text-decoration: none; }

img, svg { display: block; }

/* Indikator fokus keyboard yang terlihat di latar terang maupun gelap */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--magenta-text);
  outline-offset: 2px;
}
.band--navy a:focus-visible,
.band--navy button:focus-visible,
.site-footer a:focus-visible {
  outline-color: var(--cyan);
}

/* Teks untuk pembaca layar saja */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* --- Tata letak --- */
/* Lebar konten 1200px + padding, sama dengan desain */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}
.container--1000 { max-width: 1000px; }
.container--860 { max-width: 860px; }

.section { padding-top: 96px; padding-bottom: 96px; }
.section--88 { padding-top: 88px; padding-bottom: 88px; }

.stack-40 { display: flex; flex-direction: column; gap: 40px; }
.stack-32 { display: flex; flex-direction: column; gap: 32px; }
.stack-28 { display: flex; flex-direction: column; gap: 28px; }
.stack-16 { display: flex; flex-direction: column; gap: 16px; }
.stack-12 { display: flex; flex-direction: column; gap: 12px; }

.band--navy { background: var(--navy); color: var(--white); }
.band--light { background: var(--light); }

/* Grid otomatis; min() mencegah kolom lebih lebar dari layar ponsel */
.grid { display: grid; }
.grid--300 { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 24px; }
.grid--240 { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; }
.grid--260 { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 16px; }
.grid--200 { grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 16px; }

/* Dua kolom: judul di kiri, isi di kanan */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 56px;
  align-items: start;
}
.split--32 { gap: 32px; }

/* --- Komponen teks --- */
.eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--magenta-text);
}
.eyebrow--cyan { color: var(--cyan); }

.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 720px; }
.section-head--760 { max-width: 760px; }
.section-head--full { max-width: none; }

.title { font-size: 40px; line-height: 1.15; letter-spacing: -0.01em; }
.title--36 { font-size: 36px; letter-spacing: 0; }
.title--32 { font-size: 32px; line-height: 1.2; letter-spacing: 0; }

.lead { font-size: 18px; line-height: 1.6; color: var(--text); }
.lead--on-navy { color: var(--on-navy); }
.note { font-size: 15px; line-height: 1.6; color: var(--muted); }

/* --- Tombol --- */
.btn {
  display: inline-block;
  font-weight: 700;
  font-size: 17px;
  padding: 16px 28px;
  border-radius: var(--radius-pill);
  transition: filter 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.btn:hover { filter: brightness(1.12); }

.btn--cyan { background: var(--cyan); color: var(--navy); }
.btn--magenta { background: var(--magenta); color: var(--navy); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { filter: none; background: #0E2152; }

/* Tombol garis: padding dikurangi 1px agar tinggi sama dengan tombol isi */
.btn--ghost,
.btn--outline { padding: 15px 27px; }
.btn--ghost { color: var(--white); font-weight: 600; border: 1px solid #5A6690; }
.btn--ghost:hover { filter: none; border-color: var(--white); }
.btn--outline { color: var(--navy); border: 1px solid var(--navy); }
.btn--outline:hover { filter: none; background: var(--navy); color: var(--white); }

/* Tombol di dalam kartu harga: selebar kartu, teks tengah */
.btn--block { font-size: 16px; text-align: center; padding: 15px 20px; }
.btn--block.btn--outline { padding: 14px 20px; }

/* Soft launch: pengganti tombol yang belum tersambung ke pembayaran */
.btn--disabled { background: var(--line-2); color: var(--muted); cursor: not-allowed; }
.btn--disabled:hover { filter: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.btn-row--center { justify-content: center; }

/* Link teks tebal, mis. "Buka FORMMOST →" */
.link-strong { font-weight: 700; font-size: 16px; color: var(--navy); }
.link-strong:hover { color: var(--magenta-text); }
.link-strong--cyan { color: var(--cyan); }
.link-strong--cyan:hover { color: var(--white); }
.link-strong--magenta { color: var(--magenta-text); }
.link-strong--magenta:hover { color: var(--navy); }

/* Label kecil berbentuk pil */
.badge {
  font-size: 13px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.badge--live { background: #E3FBFD; color: #04606A; }
.badge--coming { background: #F3E8F8; color: #5E1F78; }
.badge--soon { background: var(--line-2); color: var(--text); }
.badge--popular { background: var(--magenta); color: var(--navy); }

/* --- Header & navigasi --- */
.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  padding-bottom: 24px;
}
.brand { display: block; }
.brand img { height: 44px; width: auto; }

.nav__menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  font-size: 15px;
}
.nav__link { color: var(--white); font-size: 15px; }
.nav__link:hover { color: var(--cyan); }
.nav__cta { font-size: 15px; padding: 12px 20px; min-height: 20px; }

/* Tombol hamburger: hanya tampil di ponsel (lihat bagian responsif) */
.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid #5A6690;
  border-radius: 10px;
  color: var(--white);
  cursor: pointer;
}
.nav__icon-close { display: none; }
.nav__toggle[aria-expanded="true"] .nav__icon-open { display: none; }
.nav__toggle[aria-expanded="true"] .nav__icon-close { display: block; }

/* --- Hero beranda --- */
.hero {
  padding-top: 72px;
  padding-bottom: 112px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.hero__title {
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.04;
  max-width: 980px;
}
.hero__accent { color: var(--cyan); }
.hero__sub { font-size: 20px; line-height: 1.6; color: var(--on-navy); max-width: 720px; }
.hero__checks {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  font-size: 15px;
  color: var(--on-navy);
  padding-top: 8px;
}

/* --- Cerita pembuat --- */
.story { display: flex; flex-direction: column; gap: 18px; font-size: 18px; line-height: 1.7; color: var(--text); }
.story__sign { font-weight: 600; color: var(--navy); }

/* --- Kartu tools --- */
.tool-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.tool-card--soon { border: 1px dashed var(--line-dash); }
.tool-card--idea { background: var(--navy); color: var(--white); border: 0; }

.tool-card__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.tool-card__name { display: flex; flex-direction: column; gap: 4px; }
.tool-card__name h3,
.tool-card--idea h3 { font-size: 24px; }
.tool-card__host { font-size: 14px; color: var(--muted); }
.tool-card__desc { font-size: 16px; line-height: 1.6; color: var(--text); }
.tool-card__desc--grow { flex-grow: 1; }
.tool-card--idea .tool-card__desc { color: var(--on-navy); }

.soon-head { padding-top: 24px; }

/* --- Untuk siapa --- */
.audience { border-top: 4px solid var(--navy); padding-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.audience--teal { border-top-color: var(--teal); }
.audience--magenta { border-top-color: var(--magenta-text); }
.audience h3 { font-size: 22px; }
.audience p { font-size: 16px; line-height: 1.65; color: var(--text); }

/* --- Daftar langkah bernomor --- */
.steps { margin: 0; padding: 0; list-style: none; }
.step {
  background: var(--white);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.step--bordered { border: 1px solid var(--line); }
.step__num { font-size: 32px; font-weight: 800; color: var(--magenta-text); }
.step__title { font-size: 18px; }
.step__text { font-size: 15px; line-height: 1.55; color: var(--text); }

/* --- Manfaat dukungan --- */
.benefit { background: var(--light); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.benefit strong { font-size: 18px; }
.benefit span { font-size: 15px; line-height: 1.55; color: var(--text); }
.btn-note { font-size: 15px; color: var(--muted); }

/* --- Transparansi --- */
.cost {
  border: 1px solid var(--navy-line);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
}
.cost__icon {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--navy-2);
  border: 1px solid var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cost__icon--magenta { border-color: var(--magenta); }
.cost__body { display: flex; flex-direction: column; gap: 6px; }
.cost__body strong { font-size: 18px; }
.cost__body span { font-size: 16px; line-height: 1.55; color: var(--on-navy); }

/* --- Papan komunitas --- */
.board {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.board__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.board__title { font-size: 18px; }
.board__count { font-size: 14px; color: var(--muted); }
.board__divider { height: 1px; background: var(--line); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { font-size: 15px; background: var(--light); padding: 8px 14px; border-radius: var(--radius-pill); }
.chip--empty { background: none; border: 1px dashed var(--line-dash); padding: 7px 13px; color: var(--muted); }

.proposal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: var(--light);
  border-radius: 12px;
  padding: 14px 16px;
}
.proposal__text { display: flex; flex-direction: column; gap: 2px; }
.proposal__name { font-size: 16px; font-weight: 600; }
.proposal__status { font-size: 14px; color: var(--muted); }
.proposal__vote {
  flex: none;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--line-dash);
  border-radius: 10px;
  min-width: 64px;
  min-height: 44px;
}

/* --- FAQ (elemen details bawaan, tanpa JavaScript) --- */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--white); border-radius: 14px; padding: 20px 24px; }
.faq summary { font-size: 18px; font-weight: 700; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq p { margin-top: 12px; font-size: 16px; line-height: 1.65; color: var(--text); }

/* --- Ajakan akhir --- */
.final-cta { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; }
.final-cta h2 {
  font-size: clamp(32px, 4.5vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 860px;
}

/* --- Footer --- */
.site-footer { background: var(--navy); color: var(--on-navy); }
.site-footer a { color: var(--on-navy); }
.site-footer a:hover { color: var(--cyan); }

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  font-size: 15px;
  line-height: 1.9;
  padding-top: 56px;
  padding-bottom: 56px;
}
.footer-col { display: flex; flex-direction: column; }
.footer-col strong { color: var(--white); }
.footer-col--brand { gap: 8px; }
.footer-logo { height: 56px; width: auto; align-self: flex-start; }
.footer-copy { font-size: 14px; color: var(--on-navy-3); padding-bottom: 32px; }

/* Footer ringkas di halaman dukungan */
.footer-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  font-size: 15px;
  padding-top: 40px;
  padding-bottom: 40px;
}
.footer-bar__links { display: flex; flex-wrap: wrap; gap: 24px; }

/* --- Halaman dukungan: judul --- */
.page-head {
  padding-top: 48px;
  padding-bottom: 88px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.page-head h1 { font-size: clamp(36px, 5vw, 60px); line-height: 1.08; max-width: 900px; }
.page-head p { font-size: 19px; line-height: 1.6; color: var(--on-navy); max-width: 720px; }

/* --- Halaman dukungan: kartu harga --- */
/* Margin negatif membuat kartu menumpuk ke latar navy di atasnya */
.pricing {
  margin-top: -48px;
  padding-bottom: 80px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.pricing__grid { align-items: stretch; }
.pricing__note { font-size: 14px; color: var(--muted); }

.price-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
/* Kartu utama memakai aksen glitch magenta-cyan di kedua sisi */
.price-card--featured {
  background: var(--navy);
  color: var(--white);
  border: 0;
  box-shadow: -4px 0 0 var(--magenta), 4px 0 0 var(--cyan);
}
.price-card__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.price-card__name { display: flex; flex-direction: column; gap: 6px; }
.price-card__name h2 { font-size: 22px; }
.price-card__for { font-size: 15px; color: var(--muted); }
.price-card__price { display: flex; flex-direction: column; gap: 4px; }
.price-card__small { font-size: 15px; color: var(--muted); }
.price-card__amount { font-size: 36px; font-weight: 800; }
.price-card__period { font-size: 16px; font-weight: 500; color: var(--muted); }
.price-card__list {
  margin: 0;
  padding-left: 20px;
  font-size: 16px;
  line-height: 1.9;
  color: var(--text);
  flex-grow: 1;
}
.price-card--featured .price-card__for,
.price-card--featured .price-card__small,
.price-card--featured .price-card__period { color: var(--on-navy); }
.price-card--featured .price-card__small--accent { color: var(--cyan); }
.price-card--featured .price-card__list { color: var(--on-navy-2); }

/* --- Halaman dukungan: tabel Gratis vs Pro --- */
.table-wrap {
  overflow-x: auto;
  background: var(--white);
  border-radius: 16px;
  border: 1px solid var(--line);
}
.compare { width: 100%; border-collapse: collapse; font-size: 16px; min-width: 560px; }
.compare th { padding: 18px 24px; font-weight: 800; text-align: left; }
.compare td { padding: 18px 24px; color: var(--text); }
.compare thead tr { border-bottom: 1px solid var(--line); }
.compare tbody tr { border-bottom: 1px solid var(--line-2); }
.compare tbody tr:last-child { border-bottom: 0; }
.compare__pro { color: var(--magenta-text); }
.compare td.compare__tool { font-weight: 700; color: var(--navy); }
.compare__soon { font-size: 13px; font-weight: 600; color: #5E1F78; }

/* ==========================================================================
   Responsif
   ========================================================================== */

/* Menu berubah menjadi hamburger. Kelas .js dipasang di <head>:
   tanpa JavaScript menu tetap terbuka sehingga link tidak hilang. */
@media (max-width: 860px) {
  .js .nav__toggle { display: inline-flex; }

  .nav__menu {
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    font-size: 17px;
  }
  .js .nav__menu { display: none; }
  .js .nav__menu.is-open { display: flex; }

  /* Target sentuh minimal 44px */
  .nav__link { display: flex; align-items: center; min-height: 48px; font-size: 17px; }
  .nav__cta { margin-top: 12px; text-align: center; font-size: 16px; }
}

@media (max-width: 640px) {
  .container { padding-left: 20px; padding-right: 20px; }

  .section,
  .section--88 { padding-top: 64px; padding-bottom: 64px; }

  .hero { padding-top: 40px; padding-bottom: 72px; }
  .hero__title { font-size: 38px; }
  .hero__sub { font-size: 18px; }
  .hero__checks { flex-direction: column; gap: 8px; }

  .title { font-size: 30px; }
  .title--36 { font-size: 28px; }
  .title--32 { font-size: 26px; }
  .story { font-size: 17px; }
  .split { gap: 32px; }

  .btn-row .btn { flex: 1 1 100%; text-align: center; }
  .tool-card, .price-card { padding: 24px; }
  .board { padding: 20px; }
  .faq details { padding: 18px 20px; }

  .footer-grid { padding-top: 48px; padding-bottom: 40px; }
}
