/* assets/css/home-v2.css — beranda baru (desain Okt 2026), dipakai home-v2.php */
:root {
  /* Warna merek Cataloid (sama dengan marketing.css): oranye + teks gelap di atasnya */
  --h2-accent: #FF7A00;
  --h2-accent-hover: #E56600;
  --h2-on-accent: #16181D;
  --h2-accent-ink: #C24D00;
  --h2-accent-soft: #FFF1E5;
  --h2-ink: #16181D;
  --h2-ink-2: #3D424D;
  --h2-muted: #4A505C;
  --h2-faint: #6B7280;
  --h2-bg: #FBFAF7;
  --h2-line: #ECEAE4;
  --h2-white: #FFFFFF;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body.h2-page {
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--h2-ink);
  background: var(--h2-bg);
  line-height: 1.5;
}
.h2-page a { color: inherit; }
.h2-page img { max-width: 100%; display: block; }
[id] { scroll-margin-top: 16px; }

.h2-wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.h2-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.h2-ic { flex: 0 0 auto; color: var(--h2-accent-ink); }
.h2-muted { margin: 0; color: var(--h2-muted); font-size: 16px; line-height: 1.55; }

/* ── Tombol ── */
.h2-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 12px; font: inherit; font-weight: 700; text-decoration: none;
  cursor: pointer; text-align: center; min-height: 48px; padding: 0 20px;
}
.h2-btn-sm { min-height: 44px; padding: 0 18px; border-radius: 10px; font-size: 15px; }
.h2-btn-lg { min-height: 56px; padding: 0 24px; font-size: 17px; }
.h2-btn-block { width: 100%; padding: 14px; }
.h2-page .h2-btn-dark { background: var(--h2-ink); color: var(--h2-white); }
.h2-page .h2-btn-accent { background: var(--h2-accent); color: var(--h2-on-accent); }
.h2-page .h2-btn-accent:hover { background: var(--h2-accent-hover); }
.h2-page .h2-btn-outline { border: 1.5px solid var(--h2-ink); color: var(--h2-ink); background: transparent; }
.h2-btn:hover { filter: brightness(1.08); }
.h2-btn:focus-visible, .h2-page a:focus-visible, .h2-page summary:focus-visible { outline: 3px solid #FFB066; outline-offset: 2px; }

/* ── Header ── */
.h2-header { border-bottom: 1px solid var(--h2-line); background: var(--h2-bg); }
.h2-header-in { padding-top: 16px; padding-bottom: 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.h2-page .h2-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--h2-ink); font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.h2-logo-mark { width: 32px; height: 32px; display: block; flex: 0 0 auto; }
.h2-nav { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; }
.h2-page .h2-nav a:not(.h2-btn) { color: var(--h2-ink-2); text-decoration: none; }
.h2-page .h2-nav a:not(.h2-btn):hover { color: var(--h2-ink); text-decoration: underline; }

/* ── Hero ── */
.h2-hero { padding-top: 72px; padding-bottom: 64px; display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.h2-hero-text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.h2-pill { align-self: flex-start; background: var(--h2-accent-soft); color: #A84200; font-size: 14px; font-weight: 600; padding: 7px 12px; border-radius: 999px; }
.h2-h1 { margin: 0; font-size: clamp(36px, 5vw, 60px); line-height: 1.05; letter-spacing: -0.035em; font-weight: 800; }
.h2-lead { margin: 0; font-size: 19px; line-height: 1.55; color: var(--h2-muted); max-width: 520px; }
.h2-claim { display: flex; flex-direction: column; gap: 10px; max-width: 520px; }
.h2-claim-label { font-size: 14px; font-weight: 600; color: var(--h2-ink-2); }
.h2-claim-row { display: flex; flex-wrap: wrap; gap: 10px; }
.h2-claim-box { flex: 1 1 260px; display: flex; align-items: center; background: var(--h2-white); border: 1.5px solid #D9D6CE; border-radius: 12px; padding: 0 14px; min-height: 56px; }
.h2-claim-box:focus-within { border-color: var(--h2-accent); box-shadow: 0 0 0 3px rgba(255, 122, 0, .2); }
.h2-claim-box.is-plain { border: 0; }
.h2-claim-pre { font-size: 17px; color: var(--h2-faint); font-weight: 500; white-space: nowrap; }
.h2-slug { border: 0; outline: none; font: inherit; font-size: 17px; font-weight: 600; color: var(--h2-ink); background: transparent; flex: 1; min-width: 80px; padding: 0 2px; }
.h2-claim-row .h2-btn { flex: 0 1 auto; }
.h2-ticks { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; color: var(--h2-muted); padding-top: 4px; }
.h2-ticks span { display: flex; align-items: center; gap: 6px; }
/* Hasil cek nama link (api/claim-check.php) */
.h2-claim-status { margin: 0; flex: 1 1 100%; font-size: 14px; line-height: 1.5; font-weight: 600; color: var(--h2-muted); }
.h2-claim-status.is-ok { color: #13653F; }
.h2-claim-status.is-bad { color: #A8321C; }
.h2-page .h2-claim-use { font: inherit; font-weight: 700; color: var(--h2-accent-ink); background: none; border: 0; padding: 0 2px; text-decoration: underline; cursor: pointer; }
.h2-final .h2-claim-status, .h2-final .h2-claim-status.is-ok, .h2-final .h2-claim-status.is-bad { color: var(--h2-on-accent); text-align: center; }
.h2-final .h2-claim-use { color: var(--h2-on-accent); }

/* Mockup HP + notifikasi WA */
.h2-hero-visual { flex: 1 1 400px; min-width: 0; display: flex; justify-content: center; position: relative; padding: 12px 0 40px; }
.h2-phone { width: 300px; max-width: 100%; background: var(--h2-ink); border-radius: 40px; padding: 12px; box-shadow: 0 30px 60px -20px rgba(22, 24, 29, .35); }
.h2-phone-screen { background: var(--h2-white); border-radius: 30px; overflow: hidden; display: flex; flex-direction: column; }
.h2-phone-head { padding: 22px 18px 14px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid #F0EEE9; }
.h2-phone-avatar { width: 42px; height: 42px; border-radius: 50%; background: #F4D9C6; display: flex; align-items: center; justify-content: center; font-weight: 800; color: #8A4B26; flex: 0 0 auto; }
.h2-phone-id { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.h2-phone-name { font-weight: 700; font-size: 15px; }
.h2-phone-url { font-size: 12px; color: var(--h2-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h2-phone-tabs { display: flex; gap: 6px; padding: 12px 18px 4px; font-size: 12px; font-weight: 600; }
.h2-phone-tabs span { background: #F3F2EE; color: var(--h2-ink-2); padding: 6px 10px; border-radius: 999px; white-space: nowrap; }
.h2-phone-tabs span.is-on { background: var(--h2-ink); color: var(--h2-white); }
.h2-phone-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 12px 18px 16px; }
.h2-phone-item { display: flex; flex-direction: column; gap: 6px; font-size: 12px; }
.h2-phone-img { height: 96px; border-radius: 12px; }
.h2-phone-pname { font-weight: 600; }
.h2-phone-price { color: var(--h2-accent-ink); font-weight: 700; }
.h2-phone-cart { margin: 0 18px 18px; background: var(--h2-accent); color: var(--h2-on-accent); border-radius: 12px; padding: 12px 14px; display: flex; justify-content: space-between; gap: 8px; font-size: 12px; font-weight: 700; }
.h2-phone-cart span { white-space: nowrap; }
.h2-bubble { position: absolute; inset-inline-end: 0; bottom: 0; width: 230px; background: var(--h2-white); border-radius: 16px; padding: 14px; box-shadow: 0 18px 40px -12px rgba(22, 24, 29, .28); display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--h2-line); }
.h2-bubble-head { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--h2-accent-ink); }
.h2-bubble-body { background: var(--h2-accent-soft); border-radius: 10px; padding: 10px; font-size: 12px; line-height: 1.5; color: #1F2937; }

/* ── Toko nyata ── */
.h2-proof { border-top: 1px solid var(--h2-line); border-bottom: 1px solid var(--h2-line); background: var(--h2-white); }
.h2-proof-in { padding-top: 40px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 22px; }
.h2-proof-title { margin: 0; font-size: 17px; font-weight: 600; }
.h2-proof-title strong { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.h2-stores { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.h2-page .h2-store { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--h2-ink); border: 1px solid var(--h2-line); border-radius: 14px; padding: 10px; background: var(--h2-bg); transition: border-color .15s, transform .15s; }
.h2-page .h2-store:hover { border-color: #CFCBC1; transform: translateY(-2px); }
.h2-store-shot { height: 110px; border-radius: 10px; overflow: hidden; margin-bottom: 6px; }
.h2-store-shot img { width: 100%; height: 100%; object-fit: cover; }
.h2-store-shot.is-mosaic { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 2px; }
.h2-store-name { font-size: 14px; font-weight: 700; padding: 0 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h2-store-meta { font-size: 12px; color: var(--h2-faint); padding: 0 4px 4px; }
.h2-page .h2-proof-all { align-self: flex-start; color: var(--h2-accent-ink); }

/* ── Bagian umum ── */
.h2-section { padding-top: 96px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 48px; }
.h2-head { display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
.h2-head.is-center { text-align: center; align-items: center; max-width: 620px; }
.h2-eyebrow { font-size: 14px; font-weight: 700; color: var(--h2-accent-ink); letter-spacing: .06em; text-transform: uppercase; }
.h2-h2 { margin: 0; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 800; }
.h2-h3 { margin: 0; font-size: 21px; font-weight: 700; letter-spacing: -0.01em; }
.h2-sub { font-size: 17px; }

.h2-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.h2-card { background: var(--h2-white); border: 1px solid var(--h2-line); border-radius: 18px; padding: 28px; }
.h2-step { display: flex; flex-direction: column; gap: 14px; }
.h2-step-no { width: 40px; height: 40px; border-radius: 10px; background: var(--h2-ink); color: var(--h2-white); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.h2-step-no.is-accent { background: var(--h2-accent); color: var(--h2-on-accent); }

/* ── Sebelum / sesudah ── */
.h2-dark { background: var(--h2-ink); color: var(--h2-white); }
.h2-ba-title { max-width: 720px; }
.h2-ba { display: flex; flex-wrap: wrap; gap: 20px; }
.h2-ba-card { flex: 1 1 420px; min-width: 0; border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.h2-ba-card.is-before { background: #23262D; }
.h2-ba-card.is-after { background: var(--h2-bg); color: var(--h2-ink); }
.h2-tag { align-self: flex-start; font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; }
.h2-tag.is-before { color: #F5B7A8; background: #3A2A27; }
.h2-tag.is-after { color: var(--h2-accent-ink); background: var(--h2-accent-soft); }
.h2-chat { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.h2-chat span { padding: 9px 13px; max-width: 85%; }
.h2-chat .in { align-self: flex-start; border-radius: 14px 14px 14px 4px; }
.h2-chat .out { align-self: flex-end; border-radius: 14px 14px 4px 14px; }
.is-before .h2-chat .in { background: #33363E; color: #E5E7EB; }
.is-before .h2-chat .out { background: #4A3424; color: #E5E7EB; }
.is-after .h2-chat .in { background: var(--h2-white); border: 1px solid var(--h2-line); }
.is-after .h2-chat .out { background: #FFE2C7; }
.h2-ba-list { margin: 0; padding-inline-start: 18px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; line-height: 1.5; }
.is-before .h2-ba-list { color: #C7CBD3; }
.is-after .h2-ba-list { color: var(--h2-ink-2); }

/* ── Harga ── */
.h2-pricing { align-items: center; gap: 44px; }
.h2-plans { display: flex; flex-wrap: wrap; gap: 20px; width: 100%; max-width: 860px; }
.h2-plan { flex: 1 1 340px; min-width: 0; background: var(--h2-white); border: 1px solid var(--h2-line); border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 20px; position: relative; }
.h2-plan.is-featured { border: 2px solid var(--h2-accent); }
.h2-plan-badge { position: absolute; top: -14px; inset-inline-start: 32px; background: var(--h2-accent); color: var(--h2-on-accent); font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 999px; }
.h2-plan-top { display: flex; flex-direction: column; gap: 6px; }
.h2-plan-name { font-size: 15px; font-weight: 700; color: var(--h2-muted); }
.h2-plan-name.is-accent { color: var(--h2-accent-ink); }
.h2-plan-price { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; }
.h2-plan-price small { font-size: 16px; font-weight: 500; color: var(--h2-faint); letter-spacing: 0; }
.h2-plan-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.h2-plan-list li { display: flex; align-items: flex-start; gap: 10px; }
.h2-plan-list .h2-ic { margin-top: 3px; }
.h2-plan .h2-btn { margin-top: auto; }
.h2-page .h2-link { font-size: 15px; font-weight: 600; color: var(--h2-accent-ink); text-align: center; }

/* ── FAQ ── */
.h2-faq-band { border-top: 1px solid var(--h2-line); background: var(--h2-white); }
.h2-faq-in { max-width: 820px; margin: 0 auto; padding: 88px 24px; display: flex; flex-direction: column; gap: 28px; }
.h2-faq-title { font-size: clamp(28px, 3vw, 38px); }
.h2-faq-item { border-bottom: 1px solid var(--h2-line); padding: 20px 0; }
.h2-faq-item summary { list-style: none; cursor: pointer; min-height: 44px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 18px; font-weight: 700; }
.h2-faq-item summary::-webkit-details-marker { display: none; }
.h2-faq-sign::before { content: '+'; font-size: 22px; font-weight: 500; color: var(--h2-faint); }
.h2-faq-item[open] .h2-faq-sign::before { content: '\2212'; }
.h2-faq-item p { margin-top: 10px; }

/* ── Ajakan penutup ── */
.h2-final { background: var(--h2-accent); color: var(--h2-on-accent); }
.h2-final-in { max-width: 900px; margin: 0 auto; padding: 88px 24px; display: flex; flex-direction: column; gap: 24px; align-items: center; text-align: center; }
.h2-final-title { margin: 0; font-size: clamp(30px, 4vw, 48px); line-height: 1.08; letter-spacing: -0.035em; font-weight: 800; }
.h2-final-form { width: 100%; max-width: 560px; justify-content: center; }
.h2-final-note { font-size: 14px; color: #3B2410; }

/* ── Footer ── */
.h2-footer { background: var(--h2-bg); }
.h2-footer-in { padding-top: 36px; padding-bottom: 36px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; font-size: 14px; color: var(--h2-muted); }
.h2-footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.h2-page .h2-footer-links a, .h2-lang summary { color: var(--h2-muted); }
.h2-footer-legal { flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 6px 18px; padding-top: 14px; border-top: 1px solid var(--h2-line); font-size: 13px; }
.h2-page .h2-footer-legal a { color: var(--h2-faint); text-decoration: none; }
.h2-page .h2-footer-legal a:hover { color: var(--h2-ink); text-decoration: underline; }
.h2-lang { position: relative; }
.h2-lang summary { cursor: pointer; text-decoration: underline; list-style: none; }
.h2-lang summary::-webkit-details-marker { display: none; }
.h2-lang ul { position: absolute; bottom: calc(100% + 8px); inset-inline-end: 0; z-index: 10; margin: 0; padding: 8px; list-style: none; min-width: 200px; max-height: 60vh; overflow: auto; background: var(--h2-white); border: 1px solid var(--h2-line); border-radius: 12px; box-shadow: 0 18px 40px -12px rgba(22, 24, 29, .28); }
.h2-page .h2-lang a { display: block; padding: 8px 10px; border-radius: 8px; text-decoration: none; color: var(--h2-ink); }
.h2-page .h2-lang a:hover, .h2-page .h2-lang a[aria-current] { background: var(--h2-accent-soft); }

/* Pemilih bahasa di header (dropdown ke bawah) */
.h2-lang-top summary { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; text-decoration: none; color: var(--h2-ink-2); font-weight: 600; }
.h2-lang-top summary:hover { color: var(--h2-ink); }
.h2-lang-top ul { top: calc(100% + 6px); bottom: auto; }

/* ── Kanan-ke-kiri (Arab) ── */
[dir="rtl"] .h2-chat .in { border-radius: 14px 14px 4px 14px; }
[dir="rtl"] .h2-chat .out { border-radius: 14px 14px 14px 4px; }
[dir="rtl"] .h2-h1, [dir="rtl"] .h2-h2, [dir="rtl"] .h2-final-title, [dir="rtl"] .h2-plan-price { letter-spacing: 0; }

/* ── Layar kecil ── */
/* 5b. Panduan (tautan internal, IB-293 L2) */
.h2-guide { gap: 24px; }
.h2-guide-text { display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
.h2-guide-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.h2-guide-links a { display: flex; align-items: center; min-height: 48px; padding: 10px 16px; border: 1px solid var(--h2-line, #eadfce); border-radius: 12px; background: #fff; color: var(--h2-accent-ink); font-weight: 600; text-decoration: none; }
.h2-guide-links a:hover { border-color: var(--h2-accent-ink); }

@media (max-width: 760px) {
  .h2-wrap { padding-left: 16px; padding-right: 16px; }
  .h2-nav { gap: 16px; }
  .h2-nav .h2-nav-sec { display: none; }
  .h2-hero { padding-top: 40px; padding-bottom: 48px; gap: 40px; }
  .h2-hero-text, .h2-hero-visual { flex-basis: 100%; }
  .h2-lead { font-size: 17px; }
  .h2-claim-row .h2-btn { flex: 1 1 100%; }
  .h2-section { padding-top: 64px; padding-bottom: 64px; gap: 32px; }
  .h2-steps { grid-template-columns: 1fr; }
  .h2-card, .h2-ba-card { padding: 22px; }
  .h2-ba-card, .h2-plan { flex-basis: 100%; }
  .h2-plan { padding: 26px 22px; }
  .h2-stores { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .h2-faq-in, .h2-final-in { padding: 64px 16px; }
  .h2-hero-visual { padding-bottom: 120px; }
  .h2-bubble { width: 210px; }
  .h2-footer-in { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  /* H-2026W47-120: "Masuk" tetap terlihat di HP (dulu disembunyikan); target sentuh 44px.
     Supaya muat 360px di semua bahasa: pemilih bahasa atas disembunyikan (tetap ada di footer), tombol boleh 2 baris. */
  .h2-header-in { gap: 10px; }
  .h2-page .h2-logo { flex: 0 0 auto; font-size: 18px; gap: 8px; }
  .h2-nav { gap: 10px; min-width: 0; }
  .h2-nav .h2-lang-top { display: none; }
  .h2-nav .h2-nav-login { display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px; font-size: 14px; white-space: nowrap; }
  .h2-nav .h2-btn-sm { white-space: normal; text-align: center; line-height: 1.2; padding: 4px 12px; font-size: 14px; min-width: 0; }
}
@media (max-width: 380px) {
  .h2-logo { font-size: 18px; }
  .h2-nav .h2-btn-sm { padding: 4px 10px; font-size: 14px; }
  .h2-phone { width: 270px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .h2-page .h2-store { transition: none; }
}
