/* Alhamdulillah.com — gaya dasar (selaras dengan app Qibla Finder) */
:root {
  --bg: #F2F2F7; --card: #FFFFFF; --ink: #1C1C1E; --muted: #6C6C70;
  --accent: #0B6E4F; --accent-ink: #FFFFFF; --soft: #E3F3EC; --line: #E5E5EA;
  --gold: #B8912B;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000; --card: #1C1C1E; --ink: #F2F2F7; --muted: #98989F;
    --accent: #3DDC97; --accent-ink: #000000; --soft: #13261E; --line: #38383A;
    --gold: #E2C26A;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, "Helvetica Neue", sans-serif;
}
a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 16px; }
.site-header { padding: 18px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 18px; flex-wrap: wrap; }
.wordmark { font-weight: 700; font-size: 20px; letter-spacing: -0.3px; color: var(--ink); text-decoration: none; }
.wordmark span { color: var(--accent); }
.nav { display: flex; gap: 18px; flex-wrap: wrap; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav a:hover { color: var(--accent); }
.hero { padding: 48px 0 32px; }
.eyebrow { color: var(--accent); font-weight: 600; font-size: 15px; letter-spacing: 0.2px; }
h1 { font-size: clamp(32px, 6vw, 52px); line-height: 1.1; letter-spacing: -1px; margin: 8px 0 16px; }
h2 { font-size: clamp(24px, 4vw, 32px); line-height: 1.2; letter-spacing: -0.5px; margin: 0 0 12px; }
h3 { font-size: 19px; margin: 0 0 6px; }
.lead { font-size: clamp(18px, 2.4vw, 21px); color: var(--muted); max-width: 680px; margin: 0; }
.section { padding: 32px 0; }
.card { background: var(--card); border-radius: 22px; padding: 22px; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.feature { display: flex; flex-direction: column; gap: 6px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }
.tag { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0.4px;
  padding: 3px 10px; border-radius: 999px; background: var(--soft); color: var(--accent); width: fit-content; }
.tag.soon { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.app-card { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.app-card img { width: 112px; height: 112px; border-radius: 26px; flex: none; }
.app-card .body { flex: 1 1 300px; min-width: 0; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 16px; }
.pill { font-size: 14px; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: var(--soft); color: var(--accent); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
  padding: 0 20px; border-radius: 14px; font-weight: 600; text-decoration: none; font-size: 16px; }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.ghost { border: 1.5px solid var(--line); color: var(--ink); }
.btn[aria-disabled="true"] { opacity: 0.6; pointer-events: none; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
ul.clean { padding-left: 20px; margin: 8px 0; }
ul.clean li { margin: 4px 0; }
.site-footer { padding: 40px 0 56px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 22px; }
.site-footer a { color: var(--muted); }
.ayah { font-size: 15px; color: var(--muted); border-left: 3px solid var(--gold); padding-left: 12px; margin-top: 20px; max-width: 680px; }
@media (max-width: 480px) {
  .nav { gap: 14px; }
  .nav a { font-size: 14px; }
  .nav .hide-sm { display: none; }
}
/* Pemilih bahasa / language switch: "ID | EN" */
.lang-switch { display: inline-flex; align-items: center; gap: 2px; font-size: 14px; font-weight: 600; }
.lang-switch a { min-width: 32px; min-height: 32px; display: inline-flex; align-items: center; justify-content: center;
  padding: 0 6px; border-radius: 8px; color: var(--muted); text-decoration: none; letter-spacing: 0.4px; }
.lang-switch a:hover { color: var(--ink); background: var(--soft); }
.lang-switch a[aria-current="true"] { color: var(--accent); font-weight: 800; }
.lang-switch .sep { color: var(--muted); opacity: 0.6; font-weight: 400; padding: 0 2px; }
/* Halaman dokumen (privasi) */
.narrow { max-width: 760px; }
.doc-head { display: flex; align-items: center; gap: 14px; margin: 24px 0 8px; }
.doc-head img { border-radius: 14px; flex: none; }
.doc-head h1 { font-size: clamp(26px, 5vw, 34px); margin: 2px 0 0; }
.narrow .card { margin: 14px 0; }
.narrow h2 { font-size: 20px; }
.narrow .pills { margin: 0 0 4px; }
/* Bagian penguji / tester signup */
.tester { border: 1.5px solid var(--accent); }
.steps { margin: 18px 0 8px; padding-left: 22px; display: grid; gap: 18px; }
.steps li { line-height: 1.5; }
.steps .btn { margin-top: 10px; }

/* Halaman panduan ibadah / worship guide */
.dalil { border-left: 3px solid var(--gold); padding: 2px 0 2px 14px; margin: 14px 0; }
.dalil .ar { font-size: 22px; line-height: 1.9; direction: rtl; text-align: right; margin: 0 0 6px; }
.dalil .tr { margin: 0; }
.dalil .src { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.pillar-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.pillar-head h3 { margin: 0; font-size: 21px; }
.num { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.stack > .card { margin-top: 14px; }
ul.check { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 8px; }
ul.check li { padding-left: 30px; position: relative; }
ul.check li::before { content: "\2713"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.guide-card { text-decoration: none; color: inherit; transition: transform .15s; }
.guide-card:hover { transform: translateY(-2px); }
.guide-card h3 { color: var(--ink); }
.guide-card .more { color: var(--accent); font-weight: 600; font-size: 15px; margin-top: 4px; }

/* Beranda gaya A (zamrud) + tombol bagikan */
.card { box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 10px 30px -18px rgba(0,0,0,.25); }
.hero-g { background-color: #0B6E4F; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.10' stroke-width='1.2'%3E%3Cpath d='M40 6l9 21 22-9-9 22 21 9-21 9 9 22-22-9-9 21-9-21-22 9 9-22-21-9 21-9-9-22 22 9z'/%3E%3C/g%3E%3C/svg%3E"), linear-gradient(160deg, #0B6E4F, #07402F 70%); color: #fff; padding-bottom: 70px; border-radius: 0 0 36px 36px; }
.hero-g .wordmark { color: #fff; } .hero-g .wordmark span { color: #E2C26A; }
.hero-g .nav a { color: #fff; opacity: .92; } .hero-g .nav a:hover { color: #E2C26A; }
.hero-g .lang-switch a { color: rgba(255,255,255,.7); } .hero-g .lang-switch a:hover { background: rgba(255,255,255,.14); color: #fff; }
.hero-g .lang-switch a[aria-current="true"] { color: #fff; } .hero-g .lang-switch .sep { color: #fff; }
.hero-g .hero { padding: 36px 0 0; } .hero-g h1 { color: #fff; max-width: 720px; }
.hero-g .lead { color: rgba(255,255,255,.88); }
.bsm { font-size: 34px; margin: 0; opacity: .92; text-align: right; }
.chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.chip { background: rgba(255,255,255,.14); padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; }
.chip::before { content: "\2713  "; color: #3DDC97; }
.pull { margin-top: -46px; position: relative; }
.ic { width: 52px; height: 52px; border-radius: 16px; background: var(--soft); color: var(--accent); display: flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.share .card { text-align: center; }
.share .actions { justify-content: center; margin-top: 14px; }
.share .ar { font-size: 22px; line-height: 1.9; margin: 0 0 4px; }

.video { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; margin: 14px 0; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.share .actions .btn[hidden] { display: none; }

/* Deretan screenshot app */
.shots { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 1fr); gap: 14px; overflow-x: auto;
  scroll-snap-type: x mandatory; padding: 10px 2px 14px; -webkit-overflow-scrolling: touch; }
.shots figure { margin: 0; scroll-snap-align: start; }
.shots img { width: 100%; height: auto; display: block; border-radius: 18px; box-shadow: 0 10px 30px -16px rgba(0,0,0,.35); }
.shots figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; line-height: 1.4; }
@media (max-width: 640px) { .shots { grid-auto-columns: 62%; } }

/* Penjelasan cek medan magnet */
.mag { border: 1.5px solid var(--accent); }
.mag-grid { display: grid; gap: 22px; grid-template-columns: 1.1fr 1fr; margin-top: 6px; }
.mag-grid p { margin: 0 0 12px; }
.mag-grid h3 { margin-top: 2px; }
@media (max-width: 760px) { .mag-grid { grid-template-columns: 1fr; } }
.mag-demo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 4px 0 14px; }
.mag-demo div { background: var(--soft); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; }
.mag-demo div:last-child { background: rgba(230,145,40,.14); }
.mag-demo b { font-size: 22px; line-height: 1.2; }
.mag-demo span { font-size: 12px; color: var(--muted); }
.mag-demo em { font-style: normal; font-size: 13px; font-weight: 600; margin-top: 4px; }
.mag-demo .ok { color: var(--accent); }
.mag-demo .warn { color: #C26A00; }
@media (prefers-color-scheme: dark) { .mag-demo .warn { color: #F2A34A; } }
ul.check.cause li::before { content: "!"; background: #E69128; color: #fff; }
.mag ul.check.cause { margin-bottom: 14px; }

/* Video cara kerja */
.vid-card { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: 26px; align-items: center; }
.vid { width: 100%; height: auto; aspect-ratio: 9 / 16; border-radius: 18px; background: #000; display: block; }
.vid-steps { margin: 6px 0 12px; padding-left: 22px; display: grid; gap: 8px; }
@media (max-width: 640px) { .vid-card { grid-template-columns: 1fr; } .vid { max-width: 340px; margin: 0 auto; } }

/* FAQ (tool/add_faq_schema.py) */
details.faq { margin: 10px 0; padding: 14px 18px; }
details.faq summary { cursor: pointer; font-weight: 600; }
details.faq p { margin: 8px 0 0; color: var(--muted); }
