/* Zero WiFi — stylesheet situs publik.
   Berdiri sendiri: tidak memakai Tailwind/Flowbite/Alpine milik panel admin. */

:root {
  --brand-1: #10B981;
  --brand-2: #06B6D4;
  --brand-3: #0EA5E9;
  --brand-grad: linear-gradient(135deg, #10B981 0%, #06B6D4 60%, #0EA5E9 100%);
  --bg: #F7F8FB;
  --bg-elev: #FFFFFF;
  --text: #0B1220;
  --text-2: #475569;
  --text-3: #94A3B8;
  --line: #E5E9F0;
  --ok: #10B981;
  --warn: #F59E0B;
  --err: #EF4444;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(11, 18, 32, .04), 0 8px 24px rgba(11, 18, 32, .05);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }

body {
  font-family: 'Inter Tight', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; height: auto; }
a { color: inherit; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 18px; }

/* Header & menu mobile pindah ke assets/site-header.css (dipakai bersama portal) */

/* ── Tombol ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px; text-decoration: none;
  font-weight: 600; font-size: 14.5px; border: 1px solid transparent;
  cursor: pointer; transition: transform .08s ease, box-shadow .15s ease;
  line-height: 1.2;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 17px; height: 17px; flex: none; }
.btn-primary { background: var(--brand-grad); color: #fff; box-shadow: 0 6px 18px rgba(6,182,212,.28); }
.btn-ghost { background: #fff; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand-2); color: var(--brand-1); }
.btn-wa { background: #25D366; color: #fff; box-shadow: 0 6px 18px rgba(37,211,102,.28); }
.btn-block { width: 100%; }

/* ── Hero ───────────────────────────────────────────────── */
.hero { background: var(--brand-grad); color: #fff; padding: 52px 0 58px; text-align: center; }
.hero h1 { margin: 0 0 12px; font-size: 30px; line-height: 1.22; letter-spacing: -.03em; font-weight: 700; }
.hero p { margin: 0 auto 24px; max-width: 540px; font-size: 16px; color: rgba(255,255,255,.92); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.hero .btn-ghost { background: rgba(255,255,255,.16); color: #fff; border-color: rgba(255,255,255,.34); }
.hero .btn-ghost:hover { background: rgba(255,255,255,.24); color: #fff; }
.hero .btn-primary { background: #fff; color: #047857; box-shadow: 0 8px 22px rgba(0,0,0,.14); }

@media (min-width: 720px) {
  .hero { padding: 76px 0 82px; }
  .hero h1 { font-size: 44px; }
  .hero p { font-size: 17.5px; }
}

/* ── Section ────────────────────────────────────────────── */
.section { padding: 44px 0; }
.section.tight { padding: 32px 0; }
.section-head { text-align: center; margin-bottom: 26px; }
.section-head h2 { margin: 0 0 8px; font-size: 23px; letter-spacing: -.02em; font-weight: 700; }
.section-head p { margin: 0; color: var(--text-2); font-size: 15px; }
@media (min-width: 720px) { .section { padding: 60px 0; } .section-head h2 { font-size: 27px; } }

main { flex: 1; }

/* ── Grid & kartu ───────────────────────────────────────── */
.grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid.cols-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) {
  .grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 6px; font-size: 16.5px; font-weight: 700; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--text-2); font-size: 14.5px; }
.card .icon {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(16,185,129,.1); color: var(--brand-1); margin-bottom: 12px;
}
.card .icon svg { width: 20px; height: 20px; }

/* ── Kartu paket ────────────────────────────────────────── */
.plan { display: flex; flex-direction: column; }
.plan .name { font-size: 17px; font-weight: 700; margin: 0 0 2px; letter-spacing: -.01em; }
.plan .speed { color: var(--brand-1); font-weight: 600; font-size: 14.5px; margin: 0 0 14px; }
.plan .price { font-size: 30px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.plan .price small { font-size: 14px; font-weight: 500; color: var(--text-2); letter-spacing: 0; }
.plan .price.ask { font-size: 20px; color: var(--text-2); }
.plan .validity { color: var(--text-2); font-size: 14px; margin: 4px 0 14px; }
.plan .desc { color: var(--text-2); font-size: 14.5px; margin: 0 0 18px; }
.plan .btn { margin-top: auto; }

/* ── Tabel coverage ─────────────────────────────────────── */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-elev); }
table.data { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 380px; }
table.data th, table.data td { padding: 13px 16px; text-align: left; }
table.data thead th { background: #0F5E9C; color: #fff; font-weight: 600; font-size: 14px; }
table.data tbody tr + tr td { border-top: 1px solid var(--line); }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600; }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.ok { background: rgba(16,185,129,.12); color: #047857; }
.pill.soon { background: rgba(245,158,11,.14); color: #B45309; }
.pill.err { background: rgba(239,68,68,.12); color: #B91C1C; }

/* ── Form ───────────────────────────────────────────────── */
.form-card { max-width: 480px; margin: 0 auto; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field input {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 11px;
  font-size: 16px; font-family: inherit; background: #fff; color: var(--text);
}
.field input:focus { outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(6,182,212,.14); }
.field .hint { font-size: 13px; color: var(--text-3); margin-top: 6px; }

.alert { padding: 12px 14px; border-radius: 11px; font-size: 14px; margin-bottom: 16px; }
.alert.err { background: rgba(239,68,68,.09); color: #B91C1C; border: 1px solid rgba(239,68,68,.2); }
.alert.info { background: rgba(14,165,233,.09); color: #075985; border: 1px solid rgba(14,165,233,.2); }

/* ── Daftar keterangan (hasil cek status) ───────────────── */
.kv { display: grid; grid-template-columns: 1fr; gap: 0; margin: 0; }
.kv div { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.kv div:last-child { border-bottom: 0; }
.kv dt { color: var(--text-2); font-size: 14px; margin: 0; }
.kv dd { margin: 0; font-weight: 600; font-size: 14.5px; text-align: right; }

/* ── FAQ ────────────────────────────────────────────────── */
.faq { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-elev); overflow: hidden; }
.faq details + details { border-top: 1px solid var(--line); }
.faq summary {
  padding: 16px 18px; cursor: pointer; font-weight: 600; font-size: 15px;
  list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: flex-start;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 20px; color: var(--text-3); line-height: 1; flex: none; }
.faq details[open] summary::after { content: '−'; }
.faq details[open] summary { color: var(--brand-1); }
.faq .answer { padding: 0 18px 16px; color: var(--text-2); font-size: 14.5px; }

/* ── Blok CTA ───────────────────────────────────────────── */
.cta-band {
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: 18px;
  padding: 28px 22px; text-align: center; box-shadow: var(--shadow);
}
.cta-band h2 { margin: 0 0 8px; font-size: 21px; letter-spacing: -.02em; }
.cta-band p { margin: 0 0 18px; color: var(--text-2); }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* ── Footer ─────────────────────────────────────────────── */
.site-footer { background: #0B1220; color: #94A3B8; padding: 34px 0 26px; margin-top: 44px; font-size: 14px; }
.site-footer .cols { display: grid; gap: 22px; grid-template-columns: 1fr; margin-bottom: 24px; }
@media (min-width: 720px) { .site-footer .cols { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer .brand { color: #fff; margin-bottom: 10px; }
.site-footer h4 { color: #E2E8F0; font-size: 14px; margin: 0 0 10px; font-weight: 600; }
.site-footer a { color: #94A3B8; text-decoration: none; display: block; padding: 4px 0; }
.site-footer a:hover { color: #fff; }
.site-footer .copy { border-top: 1px solid rgba(255,255,255,.09); padding-top: 18px; font-size: 13px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; background: #fff; padding: 10px 16px; z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; border-radius: 8px; }

/* ── Transisi antar halaman ─────────────────────────────────
   View Transitions API: halaman lama bergeser keluar, halaman baru masuk.
   Progressive enhancement murni — browser tanpa dukungan (mis. Firefox)
   tetap pindah halaman seperti biasa, tanpa JavaScript tambahan. */
@view-transition { navigation: auto; }

/* Header dan tombol WA punya nama sendiri supaya diam di tempat
   sementara isi halaman yang bergeser. */
.site-header { view-transition-name: site-header; }

::view-transition-old(root) { animation: 170ms cubic-bezier(.4, 0, 1, 1) both page-out; }
::view-transition-new(root) { animation: 260ms cubic-bezier(0, 0, .2, 1) both page-in; }

@keyframes page-out { to   { opacity: 0; transform: translateX(-26px); } }
@keyframes page-in  { from { opacity: 0; transform: translateX(26px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  ::view-transition-old(root),
  ::view-transition-new(root) { animation: none; }
}
