/* dewa33.work — gaya bersama. Satu berkas untuk semua halaman. */

:root {
  --bg: #06070d;
  --panel: #0c1122;
  --panel-2: #111833;
  --garis: #273050;
  --teks: #eef2fb;
  --redup: #a9b4cf;
  --emas: #f2c14e;
  --emas-2: #c9962c;
  --emas-3: #7d5c14;
  --biru: #4f8cff;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--teks);
  font-family: var(--font); line-height: 1.68; font-size: 16px;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  overflow-wrap: break-word;
}
@supports (overflow: clip) {
  body { overflow-x: clip; }
}
img, video { display: block; max-width: 100%; }
a { color: var(--emas); -webkit-tap-highlight-color: transparent; }
h1, h2, h3 { line-height: 1.22; letter-spacing: -.015em; margin: 0 0 .6em; }
h1 { font-size: clamp(1.5rem, 5.4vw, 2.6rem); font-weight: 800; }
h2 { font-size: clamp(1.22rem, 3.6vw, 1.85rem); font-weight: 800; }
h3 { font-size: 1.06rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li { margin-bottom: .45em; }
strong { color: #fff; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid var(--emas); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 18px; }

/* ===== HERO ===== */
.hero {
  position: relative; height: 100vh; height: 100svh;
  min-height: 560px; overflow: hidden;
  isolation: isolate; background: #000;
}
.hero video.latar {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: -2;
}
.hero .skrim {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(120% 60% at 50% 42%, rgba(6,7,13,0) 38%, rgba(6,7,13,.55) 100%),
    linear-gradient(180deg,
      rgba(6,7,13,.90) 0, rgba(6,7,13,.34) 22%,
      rgba(6,7,13,.28) 46%, rgba(6,7,13,.86) 74%,
      rgba(6,7,13,.98) 88%, #06070d 100%);
}
.hero .isi {
  position: absolute; left: 0; right: 0;
  bottom: max(24px, env(safe-area-inset-bottom));
  display: grid; gap: 12px;
}
/* pita gelap lokal di belakang teks bawah: bikin H1 & subjudul kebaca
   walau kebetulan kena bagian terang video */
.hero .isi::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: -20px; right: -20px; top: -34px; bottom: -34px;
  background: radial-gradient(100% 100% at 50% 100%,
    rgba(6,7,13,.86) 0, rgba(6,7,13,.62) 55%, rgba(6,7,13,0) 100%);
}
.hero .isi h1 { margin: 0 0 2px; text-shadow: 0 2px 20px rgba(0,0,0,.95), 0 0 3px rgba(0,0,0,.8); }
.hero .isi .ket { color: #e3e9f7; margin: 0; font-size: .95rem; text-shadow: 0 1px 14px rgba(0,0,0,1), 0 0 3px rgba(0,0,0,.9); }

@media (min-width: 960px) {
  .hero { background: radial-gradient(58% 68% at 50% 38%, #16214a 0, #06070d 100%); }
  .hero video.latar, .hero .skrim {
    left: 50%; right: auto; transform: translateX(-50%);
    width: calc(100svh * 9 / 16);
  }
  .hero .isi { max-width: 620px; margin: 0 auto; }
}

/* ===== BAR ATAS ===== */
.bar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 5;
  padding: max(12px, env(safe-area-inset-top)) 0 0;
}
.bar .wrap { display: flex; align-items: center; gap: 10px; }
.merek {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  font-weight: 900; letter-spacing: .06em; font-size: 1.02rem;
  color: var(--emas); text-decoration: none;
  text-shadow: 0 2px 14px rgba(0,0,0,.8);
}
.merek span.titik {
  width: 8px; height: 8px; border-radius: 50%; background: var(--emas);
  box-shadow: 0 0 12px var(--emas);
}
.bar nav { margin-left: auto; display: flex; align-items: center; gap: 7px; }
.bar nav a.kecil {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 13px;
  border-radius: 999px; font-size: .85rem; font-weight: 700; text-decoration: none;
  color: var(--teks); border: 1px solid rgba(255,255,255,.22);
  background: rgba(10,14,28,.6); -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}
.bar nav a.kecil.utama {
  color: #1a1200; border-color: transparent;
  background: linear-gradient(180deg, #f7cf6a, var(--emas-2));
}
.bar nav a.kecil:active { transform: scale(.97); }

/* bar padat untuk halaman dalam */
.bar.padat {
  position: sticky; top: 0; background: rgba(6,7,13,.94);
  border-bottom: 1px solid var(--garis); backdrop-filter: blur(10px);
}

/* ===== TOMBOL ===== */
.tombol { display: grid; gap: 10px; }
.tombol.dua { grid-template-columns: 1fr 1fr; }
.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 18px; border-radius: 999px;
  font-weight: 800; font-size: 1rem; text-decoration: none; letter-spacing: -.01em;
  text-align: center;
  -webkit-tap-highlight-color: transparent; transition: transform .12s ease, filter .12s ease;
}
.btn.utama {
  color: #1a1200; background: linear-gradient(180deg, #f9d274, var(--emas-2));
  box-shadow: 0 10px 26px -12px rgba(242,193,78,.75);
}
.btn.garis {
  color: var(--teks); background: rgba(10,14,28,.6);
  border: 1.5px solid rgba(242,193,78,.55);
}
.btn:active { transform: scale(.98); filter: brightness(1.06); }
@media (hover: hover) { .btn:hover { filter: brightness(1.08); } }

/* ===== BAGIAN KONTEN ===== */
.bagian { padding: 56px 0; border-bottom: 1px solid rgba(39,48,80,.5); }
.bagian.akhir { border-bottom: 0; }
.bagian .ket { color: var(--redup); }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.kartu {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--garis); border-radius: 16px; padding: 18px;
}
.kartu h3 { margin: 0 0 6px; color: var(--emas); }
.kartu p { margin: 0; color: var(--redup); font-size: .95rem; }

.langkah { counter-reset: l; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.langkah li {
  counter-increment: l; position: relative; padding: 14px 16px 14px 54px;
  background: var(--panel); border: 1px solid var(--garis); border-radius: 14px; margin: 0;
}
.langkah li::before {
  content: counter(l); position: absolute; left: 14px; top: 13px;
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font-size: .85rem; font-weight: 800; color: #1a1200;
  background: linear-gradient(180deg, #f9d274, var(--emas-2));
}

/* ===== TABEL: desktop ===== */
.tabel-bungkus { border: 1px solid var(--garis); border-radius: 14px; overflow: hidden; }
table { width: 100%; border-collapse: collapse; font-size: .94rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid rgba(39,48,80,.6); vertical-align: top; }
th { background: rgba(17,24,51,.9); color: var(--emas); font-weight: 700; font-size: .82rem; letter-spacing: .05em; text-transform: uppercase; }
tbody tr:last-child td { border-bottom: 0; }
td.isi { color: var(--redup); }
.kosong { color: #8b97b5; font-style: italic; }

/* ===== TABEL: HP — jadi kartu bertumpuk, tanpa scroll samping ===== */
@media (max-width: 620px) {
  .tabel-bungkus { border: 0; border-radius: 0; overflow: visible; }
  table, thead, tbody, tr, th, td { display: block; width: 100%; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  tbody tr {
    background: var(--panel); border: 1px solid var(--garis);
    border-radius: 14px; padding: 4px 14px; margin-bottom: 10px;
  }
  tbody tr:last-child { margin-bottom: 0; }
  td {
    padding: 9px 0; border-bottom: 1px solid rgba(39,48,80,.5);
    display: block;
  }
  tbody tr td:last-child { border-bottom: 0; }
  td::before {
    content: attr(data-label);
    display: block; font-size: .72rem; font-weight: 700;
    letter-spacing: .06em; text-transform: uppercase; color: #8b97b5;
    margin-bottom: 1px;
  }
  td:not([data-label])::before { display: none; }
  td:first-child { font-weight: 700; color: var(--teks); }
}

/* ===== FAQ ===== */
.faq details {
  background: var(--panel); border: 1px solid var(--garis); border-radius: 14px;
  padding: 14px 16px; margin-bottom: 10px;
}
.faq summary { cursor: pointer; font-weight: 700; color: var(--teks); list-style: none; padding-right: 26px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: -2px;
  color: var(--emas); font-weight: 800; font-size: 1.15rem;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 10px 0 0; color: var(--redup); font-size: .95rem; }

.catatan {
  border-left: 3px solid var(--emas-3); background: rgba(242,193,78,.07);
  padding: 12px 16px; border-radius: 0 12px 12px 0; color: #c3cddf; font-size: .93rem;
}

footer {
  padding: 32px 0 max(32px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--garis); background: #04050a;
  color: var(--redup); font-size: .88rem;
}
footer nav { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 14px; }
footer nav a { color: var(--redup); text-decoration: none; display: inline-flex; align-items: center; min-height: 32px; }
footer nav a:hover { color: var(--emas); }
footer .tautan-cta { margin-bottom: 16px; }

/* ===== HP KECIL ===== */
@media (max-width: 400px) {
  .wrap { padding: 0 14px; }
  .tombol.dua { grid-template-columns: 1fr; }
  .hero .isi h1 { font-size: 1.4rem; }
  .hero .isi .ket { font-size: .9rem; }
  .bagian { padding: 44px 0; }
  .bar nav a.kecil { padding: 0 11px; font-size: .82rem; }
  .merek { font-size: .96rem; }
}

/* HP pendek: rapatkan hero supaya tombol tidak menutupi subjek video */
@media (max-height: 640px) {
  .hero { min-height: 500px; }
  .hero .isi { gap: 9px; }
  .hero .isi h1 { font-size: 1.28rem; }
  .hero .isi .ket { display: none; }
  .btn { min-height: 48px; font-size: .95rem; }
}
