/* JasaGIGAS — base.css
   Reset, variabel default, layout & komponen umum.
   Tema gaya menimpa variabel :root + beberapa komponen. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #ffffff;
  --surface: #f6f7f9;
  --text: #1a1d21;
  --muted: #5b6470;
  --primary: #1a56db;
  --primary-contrast: #ffffff;
  --accent: #f59e0b;
  --border: #e5e7eb;
  --radius: 14px;
  --font-head: "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Segoe UI", system-ui, -apple-system, sans-serif;
  --shadow: 0 8px 24px rgba(16, 24, 40, .08);
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }

.container { width: min(1120px, 92%); margin-inline: auto; }
section { padding: 72px 0; }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.25; letter-spacing: -.01em; }
h2.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 12px; text-align: center; }
.section-sub { color: var(--muted); text-align: center; max-width: 640px; margin: 0 auto 40px; }

/* Navigasi */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.brand { font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; color: var(--text); }
.brand span { color: var(--primary); }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a { color: var(--text); font-weight: 500; font-size: .95rem; }
.nav-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px; font-size: 1.1rem; cursor: pointer; color: var(--text); }

/* Tombol */
.btn { display: inline-block; padding: 13px 26px; border-radius: var(--radius); font-weight: 700; font-size: .98rem; border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--primary); color: var(--primary-contrast); box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn-sm { padding: 9px 18px; font-size: .9rem; }

/* Hero */
.hero { padding: 96px 0 72px; background: var(--surface); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); margin-bottom: 16px; }
.hero h1 .hl { color: var(--primary); }
.hero p.lead { color: var(--muted); font-size: 1.08rem; margin-bottom: 28px; max-width: 520px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-badges { display: flex; gap: 22px; margin-top: 30px; flex-wrap: wrap; color: var(--muted); font-size: .92rem; }
.hero-visual { background: var(--bg); border: 1px solid var(--border); border-radius: calc(var(--radius) + 6px); box-shadow: var(--shadow); padding: 22px; }
.browser-dots { display: flex; gap: 7px; margin-bottom: 14px; }
.browser-dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--border); display: block; }
.mock-block { border-radius: 8px; background: var(--surface); border: 1px dashed var(--border); padding: 26px 18px; text-align: center; color: var(--muted); font-size: .9rem; margin-bottom: 12px; }
.mock-block:last-child { margin-bottom: 0; }

/* Kartu */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: 10px; font-size: 1.15rem; }
.card p { color: var(--muted); font-size: .95rem; }
.card .icon { font-size: 1.9rem; margin-bottom: 14px; }

/* Galeri */
.style-card { overflow: hidden; padding: 0; display: flex; flex-direction: column; }
.style-swatch { height: 150px; }
.style-body { padding: 22px; }
.style-body h3 { margin-bottom: 6px; }
.style-body p { font-size: .9rem; margin-bottom: 16px; }
.tag { display: inline-block; font-size: .75rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--muted); margin: 0 6px 14px 0; }

/* Harga */
.price-card { text-align: center; display: flex; flex-direction: column; }
.price-card.featured { border: 2px solid var(--primary); position: relative; }
.price-card .plan { font-weight: 800; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .06em; color: var(--primary); }
.price-card .amount { font-size: 1.6rem; font-weight: 800; margin: 12px 0 4px; font-family: var(--font-head); }
.price-card ul { list-style: none; margin: 18px 0 26px; text-align: left; }
.price-card li { padding: 8px 0; border-bottom: 1px dashed var(--border); font-size: .93rem; color: var(--muted); }
.price-card li::before { content: "✓ "; color: var(--primary); font-weight: 800; }
.price-card .btn { margin-top: auto; }

/* Langkah */
.step { display: flex; gap: 18px; align-items: flex-start; }
.step-num { flex: 0 0 44px; height: 44px; border-radius: 50%; background: var(--primary); color: var(--primary-contrast); display: grid; place-items: center; font-weight: 800; }

/* FAQ */
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; background: var(--bg); }
.faq-item summary { padding: 18px 22px; cursor: pointer; font-weight: 700; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .faq-a { padding: 0 22px 20px; color: var(--muted); font-size: .95rem; }

/* CTA + footer */
.cta-band { background: var(--primary); color: var(--primary-contrast); border-radius: calc(var(--radius) + 6px); padding: 56px 40px; text-align: center; }
.cta-band h2 { margin-bottom: 10px; }
.cta-band p { opacity: .9; margin-bottom: 26px; }
.cta-band .btn-outline { color: var(--primary-contrast); border-color: rgba(255,255,255,.5); }
footer { border-top: 1px solid var(--border); padding: 36px 0; color: var(--muted); font-size: .9rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* Tombol WA melayang */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: #25d366; display: grid; place-items: center; font-size: 1.7rem; box-shadow: 0 10px 26px rgba(37, 211, 102, .45); }

/* Theme switcher (halaman sampel) */
.theme-bar { position: sticky; top: 0; z-index: 50; background: #111; color: #fff; padding: 10px 0; }
.theme-bar .container { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.theme-bar small { opacity: .7; margin-right: 8px; }
.theme-btn { background: #222; color: #fff; border: 1px solid #444; border-radius: 999px; padding: 7px 15px; font-size: .82rem; cursor: pointer; }
.theme-btn.active, .theme-btn:hover { background: #fff; color: #111; border-color: #fff; }

/* Responsif */
@media (max-width: 860px) {
  .hero-grid, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); flex-direction: column; padding: 18px; border-bottom: 1px solid var(--border); gap: 16px; align-items: stretch; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .nav-inner { position: relative; }
  section { padding: 54px 0; }
}

/* === Perbaikan 2026-10-12 (feedback Gilang) === */

/* Bug 1: tombol di nav harus pakai warna kontrasnya sendiri, bukan warna link nav */
.nav-links a.btn-primary { color: var(--primary-contrast); }
.nav-links a.btn-outline { color: var(--text); }

/* Bug 2: mini preview gaya di hero */
.pv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pv-card { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--bg); }
.pv-card > p { text-align: center; font-size: .76rem; color: var(--muted); padding: 8px 6px; margin: 0; }
.pv-chrome { display: flex; gap: 5px; padding: 8px 10px; border-bottom: 1px solid var(--border); }
.pv-chrome i { width: 7px; height: 7px; border-radius: 50%; background: var(--border); display: block; }
.pv-page { padding: 0 10px 12px; }
.pv-page.dark { background: #171512; }
.pv-nav { height: 9px; border-radius: 3px; margin-top: 10px; opacity: .9; }
.pv-hero { height: 42px; border-radius: 5px; margin-top: 8px; }
.pv-line { height: 6px; border-radius: 3px; background: var(--border); margin-top: 8px; }
.pv-line.w60 { width: 60%; }
.pv-page.dark .pv-line { background: #3a342a; }
.pv-btn { height: 13px; width: 46%; border-radius: 7px; margin-top: 10px; }
.pv-more { text-align: center; margin-top: 14px; font-size: .9rem; }

/* Bug 3: tombol kembali di theme bar halaman sampel */
.theme-back { color: #fff; border: 1px solid #555; border-radius: 999px; padding: 7px 15px; font-size: .82rem; margin-right: 10px; white-space: nowrap; }
.theme-back:hover { background: #fff; color: #111; border-color: #fff; }

/* Bug 5: logo di brand nav */
.brand { display: inline-flex; align-items: center; }
.brand img { height: 56px; width: auto; border-radius: 8px; display: block; }

/* Tagline positioning tiap paket */
.plan-tag { color: var(--muted); font-style: italic; font-size: .92rem; margin: 8px 0 0; }
