/* Buku Mimpi Pewaris Offline — landing + legal pages
   Palette mirrors the mobile app:
     cream  #FAF7F2  background
     purple #6D28D9  primary
     amber  #D97706  accent
     ink    #1F2937  body text
*/

:root {
  --bg: #FAF7F2;
  --surface: #FFFFFF;
  --surface-soft: #F3EFE8;
  --border: #E7E1D6;
  --primary: #6D28D9;
  --primary-dark: #5B21B6;
  --primary-soft: #F1ECFB;
  --accent: #D97706;
  --accent-soft: #FEF3C7;
  --text: #1F2937;
  --text-soft: #4B5563;
  --text-muted: #6B7280;
  --max-width: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}
a:hover { color: var(--primary-dark); text-decoration: underline; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ───── Header ───── */
header.site {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  background: rgba(250, 247, 242, 0.85);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}
header.site .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 16px;
  color: var(--text);
}
.brand .mark {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 18px;
}
nav.site a {
  margin-left: 22px;
  color: var(--text-soft);
  font-weight: 600;
  font-size: 14px;
}
nav.site a:hover { color: var(--primary); }

/* ───── Hero ───── */
.hero {
  padding: 80px 0 64px;
}
.hero h1 {
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.1;
  margin: 0 0 18px;
  letter-spacing: -0.02em;
}
.hero h1 .accent { color: var(--primary); }
.hero p.lead {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-soft);
  max-width: 640px;
  margin: 0 0 32px;
}
.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
  text-decoration: none;
}
.btn-ghost {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-ghost:hover {
  background: var(--primary-soft);
  text-decoration: none;
}

/* ───── Features grid ───── */
.section {
  padding: 56px 0;
  border-top: 1px solid var(--border);
}
.section h2 {
  font-size: clamp(24px, 3vw, 32px);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.section .lead {
  color: var(--text-soft);
  margin: 0 0 36px;
  max-width: 600px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 720px) {
  .grid-3 { grid-template-columns: 1fr; }
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
}
.card .icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 14px;
}
.card .icon.amber {
  background: var(--accent-soft);
  color: var(--accent);
}
.card h3 {
  margin: 0 0 6px;
  font-size: 17px;
}
.card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 14px;
}

/* ───── How it works ───── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  counter-reset: step;
}
@media (max-width: 720px) {
  .steps { grid-template-columns: 1fr; }
}
.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  counter-increment: step;
}
.step::before {
  content: counter(step);
  position: absolute;
  top: -16px;
  left: 22px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 900;
  display: grid;
  place-items: center;
  font-size: 16px;
}
.step h3 {
  margin: 8px 0 6px;
  font-size: 17px;
}
.step p {
  margin: 0;
  color: var(--text-soft);
  font-size: 14px;
}

/* ───── Disclaimer banner ───── */
.disclaimer {
  background: var(--accent-soft);
  border: 1px solid #FBBF24;
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 32px 0;
  font-size: 14px;
  color: #78350F;
  line-height: 1.55;
}

/* ───── Footer ───── */
footer.site {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  margin-top: 32px;
  font-size: 13px;
  color: var(--text-muted);
}
footer.site .container {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
}
footer.site a {
  color: var(--text-soft);
  margin-right: 16px;
  font-weight: 600;
}

/* ───── Legal page typography ───── */
article.legal {
  padding: 56px 0 80px;
  max-width: 760px;
  margin: 0 auto;
}
article.legal h1 {
  font-size: clamp(28px, 4vw, 38px);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
article.legal .meta {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 32px;
}
article.legal h2 {
  font-size: 20px;
  margin: 36px 0 12px;
  letter-spacing: -0.005em;
}
article.legal h3 {
  font-size: 16px;
  margin: 24px 0 8px;
}
article.legal p,
article.legal li {
  color: var(--text-soft);
}
article.legal ul {
  padding-left: 22px;
}
article.legal li { margin-bottom: 6px; }
article.legal .back {
  font-size: 13px;
  margin-bottom: 24px;
  display: inline-block;
}
