/* learningquran.net — shared styles
   Fonts + base colours taken from the current site; purple + yellow from the LQ logo. */
:root {
  --paper: #FAF5E5;      /* site background */
  --text: #4A4A4A;       /* site body text */
  --heading: #0F172A;    /* site headings */
  --gold: #DCA54A;       /* site accent — decoration only (fails contrast as text) */
  --purple: #49316B;     /* logo letters — links, buttons, hero */
  --yellow: #F8E830;     /* logo background — highlights */
  --line: #E6DDC4;
  --danger: #9B2C2C;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
*, *::before, *::after { box-sizing: inherit; }
html, body { margin: 0; }
body {
  background: var(--paper);
  color: var(--text);
  font: 400 1rem/1.75 "Montserrat", "Segoe UI", Arial, sans-serif;
}
h1, h2, h3 { font-family: "Mulish", "Segoe UI", Arial, sans-serif; color: var(--heading); line-height: 1.25; }
h1 { font-size: 1.7rem; font-weight: 700; margin: 0; }
h2 { font-size: 1.3rem; font-weight: 700; margin: 0 0 1rem; }
h3 { font-size: 1.05rem; font-weight: 700; margin: 1.6rem 0 .4rem; }
a { color: var(--purple); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--gold); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 2px; }
strong { color: var(--heading); font-weight: 600; }

main { max-width: 40rem; margin: 0 auto; padding: 0 1.25rem 4rem; }
section { padding: 2.5rem 0 0; }

/* Top bar (shared) */
.bar { max-width: 40rem; margin: 0 auto; padding: 1rem 1.25rem; display: flex; align-items: center; gap: .6rem; }
.bar img { width: 32px; height: 32px; border-radius: 7px; }
.bar a { color: var(--heading); text-decoration: none; font: 700 1rem "Mulish", Arial, sans-serif; }

/* Home hero */
.hero { text-align: center; padding: 2rem 0 2.5rem; border-bottom: 1px solid var(--line); }
.iqra {
  font-family: "Amiri", serif; font-weight: 700;
  font-size: clamp(4.5rem, 18vw, 7.5rem); line-height: 1.1;
  color: var(--purple); margin: 0;
}
.iqra-gloss { color: var(--gold); font-weight: 500; letter-spacing: .02em; margin: .25rem 0 2rem; }
.app-id { display: inline-flex; align-items: center; gap: .9rem; text-align: left; }
.app-id img { width: 64px; height: 64px; border-radius: 14px; }
.tagline { margin: .15rem 0 0; font-size: .95rem; }

.btn {
  display: inline-block; margin-top: 2rem; padding: .85rem 1.6rem;
  background: var(--purple); color: #fff; text-decoration: none;
  border: 0; border-radius: 8px; font: 600 1rem "Montserrat", Arial, sans-serif; cursor: pointer;
  box-shadow: 0 3px 0 var(--yellow);
}
.btn:hover { background: #3A2656; }
.btn:disabled { opacity: .6; cursor: wait; }
.platform-note { margin: 1rem auto 0; font-size: .9rem; max-width: 30rem; }
.platform-note.ios { color: var(--danger); font-weight: 500; }

.promises { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .1rem 1.5rem; }
.promises li { padding: .6rem 0 .6rem 1.6rem; position: relative; border-bottom: 1px solid var(--line); color: var(--heading); font-weight: 600; }
.promises li::before { content: "۞"; position: absolute; left: 0; color: var(--gold); font-family: "Amiri", serif; font-weight: 400; }
.promises small { display: block; color: var(--text); font-weight: 400; font-size: .87rem; line-height: 1.5; }

.steps { margin: 0; padding-left: 1.4rem; }
.steps li { margin-bottom: .6rem; padding-left: .3rem; }
.steps li::marker { color: var(--purple); font-weight: 700; }
.req { background: #FFF; border-left: 4px solid var(--yellow); padding: .8rem 1rem; border-radius: 4px; font-size: .93rem; margin-top: 1.2rem; }

form { display: grid; gap: 1rem; }
label { display: block; font-weight: 600; font-size: .93rem; color: var(--heading); margin-bottom: .3rem; }
input, textarea {
  width: 100%; padding: .7rem .8rem; font: inherit; font-size: 1rem;
  border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--heading);
}
textarea { min-height: 8rem; resize: vertical; }
.hint { font-size: .83rem; margin-top: .25rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.status { min-height: 1.5em; font-size: .93rem; margin: 0; }
.status.ok { color: var(--purple); font-weight: 600; }
.status.err { color: var(--danger); }

/* Policy page */
.doc { padding-top: 1.5rem; }
.doc .updated { font-size: .9rem; margin-top: .3rem; }
.doc p, .doc li { max-width: 38rem; }
.doc ul { padding-left: 1.2rem; }

footer { max-width: 40rem; margin: 0 auto; padding: 2rem 1.25rem 3rem; border-top: 1px solid var(--line); font-size: .88rem; }

@media (max-width: 34rem) { .promises { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: no-preference) {
  .iqra { animation: rise .9s ease-out both; }
  @keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}
