/* =========================================================
   Dompet Pintar — dompetpintar.biz.id
   Mobile-first. Breakpoints: 768px (tablet), 1024px (desktop)
   ========================================================= */

:root {
  --navy: #10223f;
  --navy-deep: #0b1930;
  --navy-soft: #182f54;
  --navy-line: #2a3f63;
  --navy-border: #3a5079;
  --gold: #ffd166;
  --gold-dark: #d9a520;
  --gold-text: #8a6a12;
  --ivory: #faf7f0;
  --white: #ffffff;
  --line: #e8e2d4;
  --text: #10223f;
  --text-muted: #3d4a60;
  --text-soft: #4a5568;
  --on-dark: #d7deea;
  --on-dark-soft: #b6c2d6;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 14px;
  --radius-lg: 20px;
  --gutter: 20px;
  --section-y: 56px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.btn-sm { min-height: 44px; padding: 0 20px; }
.btn-lg { min-height: 56px; padding: 0 30px; font-size: 17px; border-radius: 14px; }
.btn-accent { background: var(--gold); color: var(--navy); }
.btn-accent:hover { background: #ffc53d; }
.btn-dark { background: var(--navy); color: var(--white); }
.btn-ghost { border-color: var(--navy-border); color: var(--white); font-weight: 700; }
.btn-ghost:hover { border-color: var(--on-dark-soft); }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }

.btn-row { display: flex; flex-direction: column; gap: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  border-bottom: 1px solid var(--navy-line);
}
.header-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--white);
}
.brand-mark {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--gold);
  color: var(--navy);
  display: grid; place-items: center;
}
.brand-mark svg { width: 19px; height: 19px; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
}

.menu-toggle {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: transparent;
  border: 1px solid var(--navy-border);
  border-radius: 10px;
  color: var(--white);
  cursor: pointer;
}
.menu-toggle svg { width: 22px; height: 22px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: inline; }

/* Mobile nav = dropdown panel */
.site-nav {
  position: absolute;
  top: 64px; left: 0; right: 0;
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px var(--gutter) 20px;
  background: var(--navy);
  border-bottom: 1px solid var(--navy-line);
}
.site-nav.is-open { display: flex; }
.site-nav a:not(.btn) {
  display: flex;
  align-items: center;
  min-height: 48px;
  color: var(--on-dark);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--navy-line);
}
.site-nav a.nav-login { color: var(--white); font-weight: 700; }
.site-nav .btn { margin-top: 12px; }

/* ---------- Hero ---------- */
.hero {
  background: var(--navy);
  color: var(--white);
  padding: 40px 0 56px;
  overflow: hidden;
}
.hero-grid { display: grid; gap: 36px; }
.hero-copy { display: flex; flex-direction: column; gap: 20px; }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(36px, 8vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.015em;
}
.lead { font-size: 17px; color: var(--on-dark); max-width: 560px; }

.pill {
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.pill-outline { border: 1px solid var(--gold); color: var(--gold); }

/* Hero device illustration (pure CSS) */
.hero-visual {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 520 / 380;
  margin: 0 auto;
}
.laptop {
  position: absolute;
  left: 0; top: 4%;
  width: 84%;
  display: flex; flex-direction: column; align-items: center;
}
.laptop-screen {
  width: 92%;
  aspect-ratio: 16 / 10;
  padding: 2.2%;
  border-radius: 14px 14px 0 0;
  background: var(--navy-deep);
  border: 1px solid var(--navy-line);
  display: flex; flex-direction: column;
}
.laptop-screen > * { background: var(--ivory); }
.ui-bar {
  height: 11%;
  border-radius: 6px 6px 0 0;
  background: var(--navy-soft) !important;
  display: flex; align-items: center; gap: 6px;
  padding: 0 4%;
}
.ui-logo { width: 14%; height: 26%; border-radius: 4px; background: var(--gold); }
.ui-spacer { flex: 1; }
.ui-dot { width: 7%; height: 26%; border-radius: 4px; background: var(--navy-border); }
.ui-body {
  flex: 1;
  border-radius: 0 0 6px 6px;
  padding: 4%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: auto 1fr;
  gap: 3%;
}
.ui-stat {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8% 10%;
  display: flex; flex-direction: column; gap: 5px;
}
.ui-stat small { font-size: clamp(6px, 1.4vw, 9px); font-weight: 700; color: var(--text-soft); line-height: 1.2; }
.ui-stat span { height: 7px; border-radius: 3px; background: var(--navy); }
.ui-chart {
  grid-column: span 3;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4%;
  display: flex; align-items: flex-end; gap: 4%;
}
.ui-chart i { flex: 1; border-radius: 3px; background: var(--navy); }
.ui-chart i.gold { background: var(--gold); }
.laptop-base {
  width: 100%;
  height: 12px;
  border-radius: 0 0 12px 12px;
  background: var(--navy-line);
}
.phone {
  position: absolute;
  right: 0; bottom: 0;
  width: 30%;
  aspect-ratio: 1 / 2;
  padding: 2.4%;
  border-radius: 26px;
  background: var(--navy-deep);
  border: 1px solid var(--navy-line);
  box-shadow: 0 24px 48px rgba(0,0,0,.45);
}
.phone-screen {
  width: 100%; height: 100%;
  border-radius: 20px;
  background: var(--ivory);
  padding: 12% 9%;
  display: flex; flex-direction: column; gap: 6%;
  overflow: hidden;
}
.ph-title { font-size: clamp(6px, 1.5vw, 9px); font-weight: 800; letter-spacing: .08em; color: var(--navy); }
.ph-card { border-radius: 8px; background: var(--navy); padding: 8%; display: flex; flex-direction: column; gap: 5px; }
.ph-card small { font-size: clamp(6px, 1.3vw, 8px); color: var(--on-dark-soft); line-height: 1.2; }
.ph-progress { height: 5px; border-radius: 3px; background: var(--navy-line); }
.ph-progress span { display: block; width: 58%; height: 100%; border-radius: 3px; background: var(--gold); }
.ph-row { height: 8%; border-radius: 6px; background: var(--white); border: 1px solid var(--line); }
.ph-spacer { flex: 1; }
.ph-nav { height: 7%; border-radius: 6px; background: var(--navy-soft); }

/* ---------- Sections ---------- */
.section { padding: var(--section-y) 0; }
.section-white { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-dark { background: var(--navy); color: var(--white); }

.section-head { display: flex; flex-direction: column; gap: 10px; max-width: 720px; margin-bottom: 28px; }
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.14;
}
.eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold-text);
}
.eyebrow-accent { color: var(--gold); }
.muted { color: var(--text-muted); }
.muted a { font-weight: 700; }

.grid { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }

.card {
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 6px;
}
.card h3 { font-size: 18px; font-weight: 800; }
.card p { font-size: 15px; color: var(--text-muted); }

.feature {
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--ivory);
  border: 1px solid var(--line);
  display: flex; gap: 16px;
}
.feature-icon {
  width: 48px; height: 48px;
  flex-shrink: 0;
  border-radius: 14px;
  background: var(--navy);
  color: var(--gold);
  display: grid; place-items: center;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 18px; font-weight: 800; margin-bottom: 4px; }
.feature p { font-size: 15px; color: var(--text-muted); }

.steps {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: 24px;
}
.steps li { display: flex; flex-direction: column; gap: 8px; }
.step-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 40px;
  line-height: 1;
  color: var(--gold-dark);
}
.steps h3 { font-size: 19px; font-weight: 800; }
.steps p { color: var(--text-muted); }

.product {
  padding: 26px;
  border-radius: var(--radius-lg);
  background: var(--navy-soft);
  display: flex; flex-direction: column; gap: 12px; align-items: flex-start;
}
.product h3 { font-family: var(--font-display); font-weight: 800; font-size: 24px; line-height: 1.2; }
.product p { color: var(--on-dark); }
.product .btn { margin-top: 6px; }

/* Pricing */
.price-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 12px;
}
.price-card h3 { font-size: 18px; font-weight: 800; }
.price { font-family: var(--font-display); font-weight: 800; font-size: 32px; line-height: 1.1; }
.price small { font-family: var(--font-body); font-size: 14px; font-weight: 500; color: var(--text-soft); margin-left: 2px; }
.price-desc { font-size: 15px; color: var(--text-muted); flex: 1; }
.price-card-featured {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
  box-shadow: 0 16px 40px rgba(16,34,63,.18);
}
.price-card-featured .price-desc { color: var(--on-dark); }
.price-card-featured strong { color: var(--gold); }
.price-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.badge {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--navy);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}
.note { margin-top: 18px; font-size: 14px; color: var(--text-soft); }

/* FAQ */
.faq-grid { display: grid; gap: 8px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 0; }
.faq-list summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 36px 18px 0;
  position: relative;
  font-weight: 800;
  font-size: 16px;
  line-height: 1.4;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 4px; top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  font-weight: 500;
  color: var(--gold-dark);
}
.faq-list details[open] summary::after { content: "−"; }
.faq-list summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.faq-list details p { padding: 0 0 18px; color: var(--text-muted); }

/* CTA */
.cta { background: var(--gold); padding: 48px 0; }
.cta-inner { display: flex; flex-direction: column; gap: 20px; }
.cta h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.12;
  color: var(--navy);
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: var(--on-dark-soft);
  padding: 44px 0 28px;
  font-size: 15px;
}
.footer-grid { display: grid; gap: 28px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.footer-brand { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 8px; max-width: 420px; }
.footer-brand .brand-name { color: var(--white); font-size: 22px; }
.footer-title { color: var(--white); font-weight: 800; margin-bottom: 6px; }
.footer-grid a {
  display: flex; align-items: center;
  min-height: 36px;
  color: var(--on-dark-soft);
  text-decoration: none;
}
.footer-grid a:hover { color: var(--white); }
.footer-bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--navy-line);
  display: flex; flex-direction: column; gap: 8px;
  font-size: 13px;
}

/* =========================================================
   Tablet ≥ 768px
   ========================================================= */
@media (min-width: 768px) {
  :root { --gutter: 32px; --section-y: 80px; }

  .btn-row { flex-direction: row; }
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
  .step-num { font-size: 48px; }

  .card, .feature, .price-card { padding: 28px; }
  .product { padding: 34px; }
  .product h3 { font-size: 28px; }

  .cta-inner { flex-direction: row; align-items: center; justify-content: space-between; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: row; justify-content: space-between; gap: 32px; }
}

/* =========================================================
   Desktop ≥ 1024px
   ========================================================= */
@media (min-width: 1024px) {
  :root { --gutter: 40px; --section-y: 96px; }

  .header-inner { height: 76px; }
  .menu-toggle { display: none; }
  .site-nav {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 32px;
    padding: 0;
    border: 0;
    background: transparent;
  }
  .site-nav a:not(.btn) { min-height: 44px; border: 0; font-size: 15px; }
  .site-nav a:not(.btn):hover { color: var(--white); }
  .site-nav .btn { margin-top: 0; }

  .hero { padding: 88px 0 104px; }
  .hero-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: 56px; }
  .lead { font-size: 20px; }
  .pill { font-size: 13px; padding: 7px 14px; }

  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .section-head { margin-bottom: 40px; }

  .faq-grid { grid-template-columns: 1fr 2fr; gap: 56px; align-items: start; }
  .faq-list summary { font-size: 18px; padding: 22px 40px 22px 0; }

  .cta { padding: 80px 0; }
}
