/* وقفة: the public site. Same tokens as the app (waqfa_colors.dart); dark is the reference design. */

@font-face { font-family: "Readex Pro"; src: url("fonts/readex-pro.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("fonts/plex-arabic-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("fonts/plex-arabic-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("fonts/plex-arabic-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  color-scheme: dark light;
  --bg: #0E1714;
  --surface: #16231F;
  --raised: #1D2C27;
  --line: #2A3B36;
  --text: #EEEBE3;
  --muted: #9FAEA8;
  --amber: #E9B44C;
  --accent: #E9B44C;      /* amber as text: darker in the light theme so it stays readable */
  --on-amber: #0E1714;
  --teal: #6CC3AE;
  --pause: #09110E;
  --track: #1F2D28;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --heading: "Readex Pro", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --body: "IBM Plex Sans Arabic", "Noto Sans Arabic", "Segoe UI", Tahoma, system-ui, sans-serif;
  --radius: 22px;
  --gutter: 20px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #F7F4EC;
    --surface: #FFFFFF;
    --raised: #FBF3DF;
    --line: #E3DECF;
    --text: #14201C;
    --muted: #55655F;
    --accent: #8A5F0C;
    --teal: #2E8C77;
    --pause: #EFEADD;
    --track: #E3DECF;
    --shadow: 0 24px 60px rgba(40, 30, 10, 0.16);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; } /* the icon sprite: an author display rule would otherwise reveal it */
img, svg { max-width: 100%; display: block; }
figure { margin: 0; }
a { color: var(--accent); text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--heading); line-height: 1.35; margin: 0; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(38px, 7.2vw, 66px); }
h2 { font-size: clamp(27px, 4.4vw, 40px); }
h3 { font-size: 20px; }
p { margin: 0; text-wrap: pretty; }

.wrap { width: min(1120px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip {
  position: absolute; inset-inline-start: var(--gutter); top: -60px; z-index: 10;
  background: var(--amber); color: var(--on-amber); padding: 8px 16px; border-radius: 12px; text-decoration: none; font-weight: 700;
}
.skip:focus { top: 12px; }

/* ------------------------------------------------------------------ header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; }
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.brand span { font-family: var(--heading); font-weight: 700; font-size: 24px; color: var(--accent); line-height: 1; }
.nav { display: none; gap: 26px; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 16px; }
.nav a:hover { color: var(--text); }
.badge-soon {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-size: 14.5px; font-weight: 500; white-space: nowrap;
}
.badge-soon::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
@media (min-width: 820px) { .nav { display: flex; } }

/* ------------------------------------------------------------------ hero */
.hero { padding: 48px 0 72px; overflow: hidden; }
.hero .wrap { display: grid; gap: 48px; align-items: center; }
.eyebrow { color: var(--teal); font-weight: 700; font-size: 16px; letter-spacing: 0; margin-bottom: 14px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.lead { margin-top: 22px; font-size: clamp(18px, 2.6vw, 21px); color: var(--muted); max-width: 33em; }
.cta-row { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 28px;
  border-radius: 999px; font-family: var(--body); font-weight: 700; font-size: 17px; text-decoration: none; border: 1.5px solid transparent;
}
.btn-primary { background: var(--amber); color: var(--on-amber); }
.btn-primary[aria-disabled="true"] { cursor: default; background: var(--surface); color: var(--text); border-color: var(--line); }
.btn-ghost { color: var(--text); border-color: var(--line); background: transparent; }
.btn-ghost:hover { background: var(--surface); }
.fine { margin-top: 18px; color: var(--muted); font-size: 15px; }

@media (min-width: 940px) {
  .hero { padding: 76px 0 108px; }
  .hero .wrap { grid-template-columns: 1.15fr 0.85fr; gap: 72px; }
}

/* ------------------------------------------------------------------ phone mock-ups (the real screens, drawn in CSS) */
.phone {
  position: relative; width: min(300px, 78vw); aspect-ratio: 9 / 18.4; margin-inline: auto;
  border-radius: 46px; padding: 11px; background: #060B09; border: 1px solid var(--line); box-shadow: var(--shadow);
}
.phone::before { /* camera */
  content: ""; position: absolute; top: 22px; inset-inline: 0; margin-inline: auto; width: 11px; height: 11px; border-radius: 50%;
  background: #1a2521; z-index: 2;
}
.screen { height: 100%; border-radius: 36px; overflow: hidden; position: relative; display: flex; flex-direction: column; }
.hero-phone { filter: drop-shadow(0 0 70px color-mix(in srgb, var(--amber) 18%, transparent)); }

/* pause screen */
.pause { background: #09110E; color: #EEEBE3; padding: 50px 22px 24px; align-items: center; text-align: center; }
.pause .seen { font-size: 12.5px; color: #9FAEA8; line-height: 1.6; }
.pause h4 { font-family: var(--heading); font-weight: 700; font-size: 30px; line-height: 1.3; margin: 12px 0 0; }
.ring { position: relative; width: 132px; height: 132px; margin-top: 20px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .track { fill: none; stroke: #1F2D28; stroke-width: 10; }
.ring .arc {
  fill: none; stroke: #E9B44C; stroke-width: 10; stroke-linecap: round;
  stroke-dasharray: 314; stroke-dashoffset: 0;
  animation: drain 10s linear infinite;
}
.ring .count {
  position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1.1;
}
.ring .count b { font-family: var(--heading); font-size: 46px; font-weight: 700; }
.ring .count small { font-size: 12px; color: #9FAEA8; }
@property --t { syntax: "<integer>"; inherits: false; initial-value: 10; }
.ring .count b { counter-reset: t var(--t); animation: tick 10s linear infinite; }
.ring .count b::before { content: counter(t, arabic-indic); }
@keyframes drain { to { stroke-dashoffset: 314; } }
@keyframes tick { from { --t: 10; } to { --t: 0; } }
.pause .ask { font-family: var(--heading); font-weight: 600; font-size: 14px; margin-top: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; margin-top: 10px; }
.chips span { font-size: 11.5px; padding: 5px 11px; border-radius: 999px; background: #16231F; border: 1px solid #2A3B36; color: #EEEBE3; }
.pause .actions { margin-top: auto; width: 100%; display: grid; gap: 8px; }
.pause .actions span { display: block; padding: 11px 0; border-radius: 999px; font-weight: 700; font-size: 13.5px; }
.pause .back { background: #E9B44C; color: #0E1714; }
.pause .open { border: 1px solid #2A3B36; color: #5f6f69; font-weight: 500; }
.pause .next { font-size: 10.5px; color: #7f8e88; margin-top: 8px; }

/* home screen */
.home { background: var(--bg); padding: 44px 14px 14px; gap: 10px; }
.home .top { display: flex; justify-content: space-between; align-items: flex-end; padding: 0 4px; }
.home .top small { display: block; color: var(--muted); font-size: 11px; line-height: 1.2; }
.home .top strong { font-family: var(--heading); color: var(--accent); font-size: 24px; line-height: 1.2; }
.home .card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 12px 14px; }
.home .card small { color: var(--muted); font-size: 10.5px; }
.home .big { font-family: var(--heading); font-size: 25px; font-weight: 700; line-height: 1.3; }
.bar { height: 7px; border-radius: 99px; background: var(--track); margin: 8px 0 6px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 27%; background: var(--teal); border-radius: 99px; margin-inline-start: auto; }
.home .row { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); }
.home .row .good { color: var(--teal); }
.prayer { background: #E9B44C; color: #0E1714; border-radius: 18px; padding: 11px 14px; display: flex; align-items: center; gap: 11px; }
.prayer .moon { width: 34px; height: 34px; border-radius: 11px; background: #D1A040; display: grid; place-items: center; flex: none; }
.prayer .moon svg { width: 18px; height: 18px; }
.prayer small { display: block; font-size: 10px; opacity: 0.8; }
.prayer b { font-family: var(--heading); font-size: 14.5px; line-height: 1.3; }
.prayer .in { margin-inline-start: auto; text-align: end; font-size: 10px; line-height: 1.3; }
.prayer .in b { display: block; font-size: 12px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pair .card { padding: 10px 12px; }
.pair .big { font-size: 19px; }
.list-title { display: flex; justify-content: space-between; font-family: var(--heading); font-weight: 700; font-size: 13px; padding: 4px 4px 0; }
.list-title span { color: var(--accent); font-weight: 500; font-size: 11px; font-family: var(--body); }
.app-row { display: flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 500; padding: 4px; }
.app-row .glyph { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, #f9a03f, #d6249f 55%, #5b51d8); flex: none; }
.app-row em { margin-inline-start: auto; font-style: normal; color: var(--accent); font-size: 10.5px; font-weight: 500; }

/* ------------------------------------------------------------------ sections */
section { padding: 72px 0; }
.section-head { max-width: 40em; margin-bottom: 40px; }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 18px; }
.band { background: var(--surface); border-block: 1px solid var(--line); }

.steps { display: grid; gap: 18px; counter-reset: step; }
.step {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px 26px;
  counter-increment: step;
}
.band .step { background: var(--bg); }
.step::before {
  content: counter(step, arabic-indic); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px;
  background: var(--amber); color: var(--on-amber); font-family: var(--heading); font-weight: 700; font-size: 22px; margin-bottom: 18px;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); }
.steps-note { margin-top: 26px; color: var(--muted); font-size: 16px; }

.features { display: grid; gap: 18px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.feature .ico { width: 46px; height: 46px; border-radius: 14px; background: var(--raised); border: 1px solid var(--line); display: grid; place-items: center; margin-bottom: 16px; color: var(--accent); }
.feature .ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 16.5px; }

.showcase { display: grid; gap: 52px; align-items: center; }
.showcase .lead { margin-top: 14px; }
.points { display: grid; gap: 22px; margin-top: 30px; padding: 0; list-style: none; }
.points li { display: grid; grid-template-columns: 30px 1fr; gap: 14px; align-items: start; }
.points li::before { content: "✓"; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: color-mix(in srgb, var(--teal) 20%, transparent); color: var(--teal); font-weight: 700; font-size: 15px; margin-top: 3px; }
.points b { display: block; font-size: 18px; }
.points span { color: var(--muted); font-size: 16.5px; }

.privacy-points { display: grid; gap: 18px; margin-top: 8px; }
.privacy-points div { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.privacy-points b { display: block; font-family: var(--heading); font-size: 19px; margin-bottom: 6px; }
.privacy-points span { color: var(--muted); font-size: 16.5px; }
.more { margin-top: 28px; }

.faq { display: grid; gap: 12px; max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 24px; font-family: var(--heading); font-weight: 600; font-size: 18px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--body); font-size: 26px; line-height: 1; color: var(--accent); flex: none; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 24px 22px; color: var(--muted); }

.final { text-align: center; }
.final .wrap { display: grid; justify-items: center; gap: 22px; }
.final p { color: var(--muted); max-width: 32em; font-size: 18px; }

@media (min-width: 720px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .privacy-points { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 940px) {
  section { padding: 96px 0; }
  .features { grid-template-columns: repeat(3, 1fr); }
  .showcase { grid-template-columns: 0.8fr 1.2fr; gap: 80px; }
}

/* ------------------------------------------------------------------ footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--muted); font-size: 15px; }
.site-footer .wrap { display: grid; gap: 18px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
@media (min-width: 720px) { .site-footer .wrap { grid-template-columns: 1fr auto; align-items: center; } }

/* ------------------------------------------------------------------ long-form pages (privacy, deletion) */
.doc { padding: 56px 0 88px; }
.doc .wrap { max-width: 800px; }
.doc h1 { font-size: clamp(32px, 6vw, 48px); margin-bottom: 12px; }
.doc .meta { color: var(--muted); font-size: 15.5px; margin-bottom: 40px; }
.doc h2 { font-size: 24px; margin: 44px 0 12px; }
.doc h3 { font-size: 18.5px; margin: 24px 0 6px; }
.doc p, .doc li { color: color-mix(in srgb, var(--text) 86%, var(--muted)); }
.doc p + p { margin-top: 14px; }
.doc ul, .doc ol { padding-inline-start: 24px; margin: 12px 0; }
.doc ol { list-style-type: arabic-indic; }
.doc li { margin: 6px 0; }
.doc .callout { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin: 22px 0; }
.doc .callout strong { color: var(--text); }
.doc table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 16px; }
.doc th, .doc td { text-align: start; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { color: var(--text); font-weight: 700; font-size: 15px; background: var(--surface); }
.doc td:first-child { white-space: nowrap; color: var(--text); font-weight: 500; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; margin: 16px 0; }
.table-scroll table { margin: 0; min-width: 560px; }
.table-scroll tr:last-child td { border-bottom: 0; }
.doc a { word-break: break-word; }
.doc td::before { display: none; }
@media (max-width: 719px) {
  /* The data table becomes one small card per row, so nothing scrolls sideways on a phone. */
  .table-scroll { overflow: visible; border: 0; border-radius: 0; }
  .table-scroll table, .table-scroll tbody, .table-scroll tr, .table-scroll td { display: block; min-width: 0; width: 100%; }
  .table-scroll thead { display: none; }
  .table-scroll tr { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px 18px; margin-bottom: 12px; }
  .table-scroll td { border: 0; padding: 6px 0; white-space: normal; }
  .table-scroll td:first-child { font-family: var(--heading); font-size: 17.5px; padding-bottom: 8px; }
  .table-scroll td::before { display: block; content: attr(data-label); color: var(--accent); font-size: 13.5px; font-weight: 700; }
}
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 24px; margin: 0 0 12px; }
.toc b { display: block; margin-bottom: 6px; font-family: var(--heading); }
.toc ol { margin: 0; padding-inline-start: 22px; columns: 1; }
@media (min-width: 640px) { .toc ol { columns: 2; column-gap: 32px; } }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--accent); }

.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 64px 0; }
.notfound .wrap { display: grid; justify-items: center; gap: 18px; }
.notfound .code { font-family: var(--heading); font-weight: 700; font-size: clamp(88px, 22vw, 168px); line-height: 1; color: var(--accent); }
.notfound p { color: var(--muted); font-size: 19px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ring .arc, .ring .count b { animation: none; }
  .ring .arc { stroke-dashoffset: 120; }
  .ring .count b { --t: 6; }
}
