/* quran.allrize.tech: static, self-hosted fonts, no trackers. */
@font-face { font-family: "Amiri Quran"; src: url("fonts/AmiriQuran.woff2") format("woff2"); font-display: block; }
@font-face { font-family: "Manrope"; src: url("fonts/Manrope.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url("fonts/DMMono-Regular.woff2") format("woff2"); font-display: swap; }

:root {
  --page: #fff8e8; --card: #fffdf4; --ink: #173b39; --body: #3d5d58; --muted: #53716c;
  --line: rgba(45, 117, 98, 0.3); --soft: rgba(45, 117, 98, 0.16);
  --teal: #239c84; --marker: #1f7f6b; --brass: #c97520; --accent: #b0651a; --support: #8f4f0e;
  --gold: #f2bd51; --on-gold: #3b2204; --code-bg: #10211f; --code: #c9dcd8; --code-accent: #4ee1d2;
  --mono: "DM Mono", ui-monospace, Menlo, monospace; --sans: "Manrope", system-ui, sans-serif; --quran: "Amiri Quran", serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page: #0c2321; --card: #12302d; --ink: #fff8e8; --body: #c7dbd6; --muted: #a6c2bc;
    --line: rgba(176, 232, 206, 0.22); --soft: rgba(176, 232, 206, 0.12);
    --teal: #4ee1d2; --marker: #f2bd51; --accent: #f2bd51; --support: #f2bd51; --code-bg: #081a18;
  }
}
:root[data-theme="dark"] {
  --page: #0c2321; --card: #12302d; --ink: #fff8e8; --body: #c7dbd6; --muted: #a6c2bc;
  --line: rgba(176, 232, 206, 0.22); --soft: rgba(176, 232, 206, 0.12);
  --teal: #4ee1d2; --marker: #f2bd51; --accent: #f2bd51; --support: #f2bd51; --code-bg: #081a18;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 40px; } }

.top { border-bottom: 1px solid var(--soft); }
.top .wrap { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; text-decoration: none; color: var(--ink); }
.brand svg { color: var(--marker); }
.links { display: flex; align-items: center; gap: 22px; font-size: 14px; font-weight: 600; }
.links a { text-decoration: none; }
.links a:hover { text-decoration: underline; }
.heart { display: inline-flex; align-items: center; gap: 6px; color: var(--support); }

.hero .wrap { padding-top: 64px; padding-bottom: 56px; display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .hero .wrap { grid-template-columns: minmax(0, 1fr) 420px; } }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em; color: var(--support); }
h1 { margin: 18px 0 0; font-size: clamp(40px, 7vw, 68px); line-height: 1.02; letter-spacing: -0.03em; font-weight: 800; }
h1 span { color: var(--accent); }
.lede { margin: 22px 0 0; max-width: 540px; font-size: 18px; line-height: 1.6; color: var(--body); }
.ctas { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.btn { height: 52px; padding: 0 24px; display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; font-size: 15px; font-weight: 700; text-decoration: none; }
.btn-solid { background: var(--ink); color: var(--page); }
.btn-line { border: 1px solid var(--line); color: var(--ink); }
.btn-gold { background: var(--gold); color: var(--on-gold); justify-content: center; }
.btn:hover { filter: brightness(1.05); }
.code { margin-top: 20px; max-width: 540px; padding: 16px 18px; border-radius: 14px; background: var(--code-bg); color: var(--code); font-family: var(--mono); font-size: 13px; line-height: 1.9; overflow-x: auto; white-space: pre; }
.code b { color: var(--code-accent); font-weight: 400; }
.fine { margin-top: 18px; font-size: 14px; font-weight: 600; color: var(--muted); }

/* Static reader preview (mirrors the app) */
.reader { border: 1px solid var(--line); border-radius: 20px; background: var(--card); box-shadow: 0 30px 80px -30px rgba(23, 59, 57, 0.35); overflow: hidden; }
.reader-bar { height: 52px; padding: 0 22px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--soft); }
.wordmark { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; color: var(--muted); }
.status { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; }
.status i { width: 8px; height: 8px; border-radius: 999px; background: var(--teal); }
.reader-body { padding: 36px 28px 30px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.surah-ar { font-family: var(--quran); font-size: 24px; line-height: 1.5; }
.ref { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: var(--muted); }
.ayah { margin: 6px 0 0; font-family: var(--quran); font-size: 27px; line-height: 2.05; }
.ayah-end { color: var(--marker); white-space: nowrap; }
.reader-foot { height: 44px; padding: 0 22px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--soft); font-family: var(--mono); font-size: 11px; color: var(--muted); }

.steps { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 36px 0; display: grid; gap: 28px; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.step-k { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; color: var(--muted); }
.step-k i { width: 8px; height: 8px; border-radius: 999px; }
.step h3 { margin: 10px 0 6px; font-size: 16px; font-weight: 800; }
.step p, .card p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); }

.cards { padding: 48px 0 64px; display: grid; gap: 16px; }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { padding: 26px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
.card svg { color: var(--marker); }
.card h3 { margin: 12px 0 8px; font-size: 18px; font-weight: 800; }

.foot { border-top: 1px solid var(--soft); }
.foot .wrap { padding-top: 26px; padding-bottom: 26px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; font-size: 13px; color: var(--muted); }
.foot a { font-weight: 600; }

/* Support page */
.support-main { min-height: calc(100vh - 72px - 80px); display: flex; align-items: center; justify-content: center; padding: 48px 16px; }
.panel { width: 100%; max-width: 560px; padding: 44px 36px; border: 1px solid var(--line); border-radius: 24px; background: var(--card); display: flex; flex-direction: column; gap: 22px; }
.panel h1 { margin: 0; font-size: 40px; }
.panel p { margin: 0; font-size: 16px; line-height: 1.65; color: var(--body); }
.panel .small { font-size: 13px; color: var(--muted); }
.promises { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px 20px; font-size: 14px; font-weight: 600; }
@media (min-width: 520px) { .promises { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.promises li { display: flex; align-items: center; gap: 8px; }
.promises svg { color: var(--marker); flex-shrink: 0; }

/* ── "Support" donation (same flow as lpdpfind.allrize.tech) ─────────────── */
.nav-donate {
  padding: 5px 12px; font: 600 13px/1.2 var(--sans); color: var(--on-gold); background: var(--gold);
  border: none; border-radius: 999px; cursor: pointer; white-space: nowrap;
  transition: background 0.2s ease, transform 0.15s ease;
}
.nav-donate:hover { background: #e9ae3a; }
.nav-donate:active { transform: scale(0.97); }
.nav-donate:focus-visible, .sedekah-preset:focus-visible, .sedekah-submit:focus-visible, .sedekah-modal-close:focus-visible {
  outline: 2px solid var(--teal); outline-offset: 2px;
}

.sedekah-modal-overlay {
  position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center;
  padding: 24px; background: rgba(12, 35, 33, 0.45); backdrop-filter: blur(4px);
}
.sedekah-modal-overlay[hidden] { display: none !important; }
.sedekah-modal {
  position: relative; width: 100%; max-width: 360px; padding: 22px 20px 18px;
  background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 30px 80px -20px rgba(12, 35, 33, 0.45); animation: sedekah-in 0.25s ease;
}
@keyframes sedekah-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .sedekah-modal { animation: none; } }
.sedekah-modal-close {
  position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; font-size: 22px; line-height: 1;
  color: var(--muted); background: transparent; border: none; border-radius: 8px; cursor: pointer;
}
.sedekah-modal-close:hover { color: var(--ink); background: var(--page); }
.sedekah-modal h3 { margin: 0 0 4px; font-size: 16px; font-weight: 700; }
.sedekah-modal-desc { margin: 0 0 14px; font-size: 12px; line-height: 1.45; color: var(--body); }
.sedekah-presets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-bottom: 12px; }
.sedekah-preset {
  min-height: 36px; padding: 6px 4px; font: 500 12px var(--sans); color: var(--body); background: var(--page);
  border: 1px solid var(--line); border-radius: 10px; cursor: pointer; transition: all 0.2s ease;
}
.sedekah-preset:hover { border-color: var(--teal); color: var(--ink); }
.sedekah-preset.active { background: rgba(35, 156, 132, 0.12); border-color: var(--teal); color: var(--ink); font-weight: 700; }
.sedekah-custom-label { display: block; margin-bottom: 4px; font-size: 11px; font-weight: 600; color: var(--body); }
.sedekah-custom-input {
  width: 100%; height: 40px; margin-bottom: 8px; padding: 8px 10px; font: 500 13px var(--sans); color: var(--ink);
  background: var(--page); border: 1px solid var(--line); border-radius: 10px;
}
.sedekah-custom-input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(35, 156, 132, 0.18); }
.sedekah-error { margin: 0 0 8px; font-size: 12px; color: #b3261e; }
.sedekah-submit {
  width: 100%; height: 44px; margin-top: 2px; font: 700 14px var(--sans); color: var(--on-gold); background: var(--gold);
  border: none; border-radius: 12px; cursor: pointer;
}
.sedekah-submit:hover { background: #e9ae3a; }
.sedekah-submit:disabled { opacity: 0.6; cursor: wait; }
.sedekah-modal-alt {
  margin-top: 12px; padding: 10px 12px; text-align: center; font-size: 12px; color: var(--muted);
  background: var(--page); border: 1px solid var(--soft); border-radius: 12px;
}
.sedekah-modal-alt p { margin: 0; }
.sedekah-modal-alt a { color: var(--marker); font-weight: 700; text-decoration: none; }
.sedekah-modal-alt a:hover { text-decoration: underline; }
.sedekah-toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 300; transform: translateX(-50%);
  max-width: calc(100% - 32px); padding: 12px 18px; font-size: 14px; font-weight: 600;
  color: var(--page); background: var(--ink); border-radius: 12px; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.4);
}
.sedekah-toast.success { background: var(--marker); color: #fff; }
button.btn { border: none; font-family: inherit; cursor: pointer; }

/* ── "Works with" chips + install cards ─────────────────────────────────── */
.logo { flex-shrink: 0; }
.logo-claude { color: #d97757; }
.logo-openai { color: var(--ink); }
.works { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.works-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.chip {
  height: 44px; padding: 0 18px 0 14px; display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--card);
  font-size: 15px; font-weight: 700; color: var(--ink); text-decoration: none;
  transition: border-color 0.2s ease, transform 0.15s ease;
}
.chip:hover { border-color: var(--teal); }
.chip:active { transform: scale(0.98); }

.install-band { border-top: 1px solid var(--soft); background: color-mix(in srgb, var(--card) 60%, var(--page)); }
.install-band .wrap { padding-top: 44px; padding-bottom: 44px; }
.install-band h2 { margin: 0 0 20px; font-size: 22px; font-weight: 800; letter-spacing: -0.01em; }
.install-grid { display: grid; gap: 16px; }
@media (min-width: 860px) { .install-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.install-card {
  min-width: 0; padding: 20px; display: flex; flex-direction: column; gap: 14px;
  border: 1px solid var(--line); border-radius: 18px; background: var(--card); scroll-margin-top: 24px;
}
.install-card:target { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(35, 156, 132, 0.15); }
.install-head { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 800; }
.install-head span { flex: 1; }
.install-head .logo { width: 22px; height: 22px; }
.cmd { position: relative; }
.cmd pre {
  margin: 0; padding: 14px 16px; border-radius: 12px; background: var(--code-bg); color: var(--code);
  font-family: var(--mono); font-size: 12.5px; line-height: 1.9; overflow-x: auto;
}
.cmd b { color: var(--code-accent); font-weight: 400; }
.copy {
  height: 32px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--page); font: 600 12px var(--sans); color: var(--ink); cursor: pointer;
}
.copy:hover { border-color: var(--teal); }
.copy:focus-visible, .chip:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.install-note { margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.install-note code { font-family: var(--mono); font-size: 12px; }
.install-req { margin: 16px 0 0; font-size: 13px; font-weight: 600; color: var(--muted); }

/* Prompt-first install */
.prompt-label { margin: 0; font-size: 13px; font-weight: 600; color: var(--muted); }
.prompt {
  margin: 0; padding: 14px 16px; border-radius: 12px; background: var(--page); border: 1px solid var(--soft);
  font-size: 14px; line-height: 1.6; color: var(--ink);
}
.btn-copy-prompt {
  height: 46px; border: none; border-radius: 12px; background: var(--ink); color: var(--page);
  font: 700 14px var(--sans); cursor: pointer;
}
.btn-copy-prompt:hover { filter: brightness(1.1); }
.btn-copy-prompt:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.manual summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--muted); }
.manual summary:hover { color: var(--ink); }
.manual[open] summary { margin-bottom: 10px; }
.cmd-list { margin: 0 0 10px; padding: 0; list-style: none; display: grid; gap: 8px; }
.cmd-list li {
  display: flex; align-items: center; gap: 10px; min-width: 0; padding: 8px 8px 8px 14px; border-radius: 10px;
  background: var(--code-bg);
}
.cmd-list code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; font-family: var(--mono); font-size: 12.5px; color: var(--code); }
.copy-sm { height: 28px; padding: 0 10px; background: rgba(255, 255, 255, 0.08); border-color: rgba(201, 220, 216, 0.25); color: var(--code); }
.copy-sm:hover { background: rgba(255, 255, 255, 0.14); }
.prompt code { font-family: var(--mono); font-size: 12px; padding: 1px 6px; border-radius: 6px; background: rgba(45, 117, 98, 0.1); white-space: nowrap; }
