/* Palet dan komponen disamakan dengan perekam.punyagw.id dan jadwalshalat.punyagw.id. */
:root {
  --bg: #0a0a0a;
  --surface: #141414;
  --line: #2a2a2a;
  --text: #ededed;
  --muted: #a8a8a8;
  --red: #e5202a;
  --red-deep: #b3261e;
  --red-text: #ff5a5f;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--sans);
}

h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
img { max-width: 100%; height: auto; display: block; }

a { color: var(--red-text); text-underline-offset: 0.2em; }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--red-text); outline-offset: 3px; }
section[id] { scroll-margin-top: 1rem; }

.wrap { width: 100%; max-width: 68rem; margin-inline: auto; padding-inline: 1rem; }
@media (min-width: 40rem) { .wrap { padding-inline: 2rem; } }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 1;
  padding: 0.5rem 1rem; background: var(--text); color: var(--bg);
}
.skip:focus { top: 0.5rem; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 0.8rem 1rem; flex-wrap: wrap;
  padding-block: 0.9rem;
}
.brand { display: flex; align-items: center; gap: 0.7rem; color: var(--text); text-decoration: none; font-weight: 600; white-space: nowrap; }
.brand small { display: block; font-weight: 400; color: var(--muted); font-size: 0.8rem; line-height: 1.2; }
.site-nav { display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }
@media (max-width: 40rem) { .site-nav { width: 100%; } }

/* Hero */
.hero { padding-block: 3.5rem 2.5rem; }
.hero__inner { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 56rem) { .hero__inner { grid-template-columns: 1.15fr 1fr; } }
.hero__mark img { width: min(70vw, 22rem); margin-inline: auto; }
.eyebrow { color: var(--red-text); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1.12; margin-top: 0.5rem; letter-spacing: -0.01em; text-wrap: balance; }
.hero .lead { margin-top: 1.1rem; color: var(--muted); font-size: 1.15rem; max-width: 34rem; }
.cta { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; margin-top: 1.8rem; }
.btn {
  padding: 0.75rem 1.2rem; border-radius: 0.8rem; font-weight: 600;
  border: 1px solid var(--line); color: var(--text); background: var(--surface);
}
.meta { color: var(--muted); font-size: 0.9rem; }

/* Bagian */
.section { padding-block: 3rem; border-top: 1px solid var(--line); }
.section h2 { font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -0.01em; }
.section .intro { color: var(--muted); margin-top: 0.6rem; max-width: 40rem; }

.grid { display: grid; gap: 1rem; margin-top: 1.8rem; }
@media (min-width: 40rem) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 60rem) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 1rem; padding: 1.3rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.card h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.card p { color: var(--muted); font-size: 0.98rem; }
.card .icon {
  width: 2.4rem; height: 2.4rem; border-radius: 0.7rem; display: grid; place-items: center;
  background: rgba(229, 32, 42, 0.14); color: var(--red-text); margin-bottom: 0.9rem;
}
.card .icon svg { width: 1.3rem; height: 1.3rem; }
.card .step {
  width: 2rem; height: 2rem; border-radius: 999px; display: grid; place-items: center;
  background: var(--red-deep); color: #fff; font-weight: 700; margin-bottom: 0.9rem;
}
.card:hover {
  border-color: var(--red-deep);
  box-shadow: 0 0 0.6rem rgba(229, 32, 42, 0.15);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  50% { border-color: var(--red); box-shadow: 0 0 1.4rem rgba(229, 32, 42, 0.4); }
}
@media (prefers-reduced-motion: reduce) {
  .card { transition: none; }
  .card:hover { animation: none; }
}

/* FAQ */
.faq { margin-top: 1.2rem; }
details { border-top: 1px solid var(--line); padding-block: 0.9rem; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--red-text); font-weight: 700; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin-top: 0.6rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 2rem 2.5rem; color: var(--muted); font-size: 0.92rem; }
.site-footer__inner { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }

/* Halaman teks: privasi dan dukungan */
.prose { padding-block: 3rem 4rem; }
.prose > * { max-width: 40rem; }
.prose h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); letter-spacing: -0.01em; }
.prose h2 { font-size: 1.3rem; margin-top: 2rem; }
.prose p, .prose ul { margin-top: 0.8rem; }
.prose ul { list-style: disc; padding-left: 1.3rem; }
.prose li { margin-top: 0.4rem; }
.prose .lead { margin-top: 0.5rem; color: var(--muted); }
.prose .note {
  margin-top: 1.5rem; padding: 1rem 1.2rem; border-radius: 1rem;
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--red);
}
