/* App Store badges (official artwork) */
.as-badge{display:inline-block;height:56px;aspect-ratio:119.66/40;background:url("/apps/shared/badges/badge-1.svg") center/contain no-repeat;border-radius:12px;transition:transform .15s}html[lang="en"] .as-badge{background-image:url("/apps/shared/badges/badge-2.svg")}@media (prefers-color-scheme:dark){.as-badge{background-image:url("/apps/shared/badges/badge-3.svg")}html[lang="en"] .as-badge{background-image:url("/apps/shared/badges/badge-4.svg")}}.as-badge:hover{transform:scale(1.03)}.as-badge.sm{height:40px;border-radius:8px}
/* ===== abod.ws — design & conversion additions (Nov 2026) ===== */

/* Headings: Alyamama for Arabic, system for English */
h1, .section-title, .callout h2 { font-family: "Alyamama", var(--ar); font-weight: 900; letter-spacing: 0; }
html[lang="en"] h1, html[lang="en"] .section-title, html[lang="en"] .callout h2 { font-family: var(--en); font-weight: 800; }
html[lang="ar"] h1 { line-height: 1.2; }

/* Hero: official badge + trust chips + QR */
.hero .actions { align-items: center; }
.hero .as-badge { height: 56px; }
.chips-trust { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 22px auto 0; padding: 0; max-width: 640px; }
.chips-trust li { font-size: 14px; font-weight: 600; padding: 7px 14px; border-radius: 999px; color: var(--text);
  background: color-mix(in srgb, var(--accent) 10%, var(--card)); border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent); }
.qr { display: none; }
@media (min-width: 900px) and (hover: hover) {
  .qr { display: inline-flex; align-items: center; gap: 14px; margin-top: 24px; padding: 10px 18px 10px 10px; border-radius: 18px;
    background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
  html[dir="rtl"] .qr { padding: 10px 10px 10px 18px; }
  .qr-code { width: 92px; height: 92px; border-radius: 10px; overflow: hidden; background: #fff; flex: none; }
  .qr-code svg { width: 100%; height: 100%; display: block; }
  .qr span { font-size: 14px; color: var(--muted); max-width: 150px; line-height: 1.5; text-align: start; }
}

/* FAQ */
.faq-list { max-width: 760px; margin: 30px auto 0; display: grid; gap: 10px; }
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.faq-item summary { cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 700; font-size: 17px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 22px; font-weight: 400; color: var(--accent); flex: none; transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 22px 20px; color: var(--muted); font-size: 16px; line-height: 1.8; }

/* Header on small phones: keep it on one row */
.dock a .lbl { display: block; }
@media (max-width: 520px) {
  .links { flex-wrap: nowrap; gap: 2px; }
  .links a { padding: 6px 8px; }
  .lang-btn { padding: 5px 10px; font-size: 13px; }
  .dock a .lbl { display: none; }
  .dock { gap: 0; }
  .dock a { padding: 5px 6px 8px; }
}

/* Sticky download bar (phones only, after the hero button scrolls away) */
.dl-bar { position: fixed; inset-inline: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 60; display: flex; align-items: center; gap: 12px;
  padding: 10px 10px 10px 14px; border-radius: 22px; background: var(--glass); border: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); box-shadow: 0 12px 40px rgba(0,0,0,.18);
  transform: translateY(0); transition: transform .3s cubic-bezier(.3,1.2,.5,1), opacity .3s; }
html[dir="rtl"] .dl-bar { padding: 10px 14px 10px 10px; }
.dl-bar[hidden] { display: flex; transform: translateY(140%); opacity: 0; pointer-events: none; }
.dl-bar img { width: 40px; height: 40px; border-radius: 22.5%; flex: none; }
.dl-txt { flex: 1; min-width: 0; line-height: 1.3; }
.dl-txt b { display: block; font-size: 15px; }
.dl-txt small { display: block; font-size: 12px; color: var(--muted); }
.dl-btn { flex: none; background: var(--accent); color: #fff; font-weight: 700; font-size: 15px; padding: 10px 20px; border-radius: 999px; }
.dl-btn:hover { text-decoration: none; }
@media (prefers-color-scheme: dark) { .dl-btn { color: #000; } }
@media (min-width: 701px) { .dl-bar { display: none !important; } }
@media (max-width: 700px) { .site-footer { padding-bottom: 110px; } }

/* Mac tag on the home page tile */
.mac-tag { font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 8px; background: var(--fill); color: var(--muted); }

/* Header links: same baseline for Arabic & Latin labels */
.links a, .links .lang-btn { display: inline-flex; align-items: center; line-height: 1.3; min-height: 34px; }

/* Home: Mawaqit (Mac) tile spans the full row on wide screens */
@media (min-width: 760px) {
  #apps .app-tile.wide { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 24px; }
  #apps .app-tile.wide p { flex: 1; margin: 0; }
  #apps .app-tile.wide .links2 { gap: 16px; }
}

.app-tile .links2 a { white-space: nowrap; }

/* keep the pill outline on the language link */
.links .lang-btn { border: 1px solid var(--line); font-weight: 600; }

/* ===== Guide (article) pages ===== */
.guide { max-width: 760px; padding: 40px 0 20px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; color: var(--muted); margin-bottom: 26px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--text); }
.guide h1 { font-size: clamp(32px, 5.2vw, 52px); line-height: 1.25; margin: 6px 0 16px; }
.guide-lead { font-size: 20px; line-height: 1.85; color: var(--muted); }
.guide-meta { font-size: 14px; color: var(--muted); margin-top: 14px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.guide-body { font-size: 18px; line-height: 1.95; }
.guide-body h2 { font-family: "Alyamama", var(--ar); font-weight: 900; font-size: clamp(24px, 3.4vw, 30px); line-height: 1.35; margin: 38px 0 12px; }
.guide-body p { margin: 0 0 14px; }
.guide-body ul, .guide-body ol { margin: 0 0 16px; padding-inline-start: 24px; }
.guide-body li { margin-bottom: 8px; }
.guide-body a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.guide-body .formula { margin: 16px 0; padding: 16px 20px; border-radius: 16px; font-weight: 700; font-size: 17px;
  background: color-mix(in srgb, var(--accent) 10%, var(--card)); border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent); }
.guide-body .example { margin: 16px 0; padding: 16px 20px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 17px; line-height: 1.9; }
.guide-body .note { font-size: 14px; color: var(--muted); }
.guide-body blockquote { margin: 16px 0; padding: 16px 22px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); font-size: 20px; line-height: 2; }
.guide-body blockquote cite { display: block; font-style: normal; font-size: 14px; color: var(--muted); margin-top: 4px; }
.guide-body code { font-family: ui-monospace, monospace; font-size: 15px; background: var(--fill); padding: 1px 6px; border-radius: 6px; }
.guide-cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin: 40px 0 10px; padding: 22px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.guide-cta img { width: 64px; height: 64px; border-radius: 22.5%; flex: none; box-shadow: var(--icon-shadow); }
.guide-cta > div { flex: 1; min-width: 180px; }
.guide-cta b { font-size: 20px; display: block; }
.guide-cta p { color: var(--muted); font-size: 15px; margin: 2px 0 0; }
.guide-more { margin-top: 34px; }
.guide-more h2 { font-family: "Alyamama", var(--ar); font-weight: 900; font-size: 24px; margin-bottom: 12px; }
.guide-more ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.guide-more a { display: block; padding: 14px 18px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); color: var(--text); font-weight: 600; }
.guide-more a:hover { text-decoration: none; border-color: var(--accent); }

/* Guides section on app pages */
.guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 30px; }
.guide-card { display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: var(--radius); background: var(--card);
  border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--text); transition: transform .25s cubic-bezier(.3,1.4,.5,1); }
.guide-card:hover { text-decoration: none; transform: translateY(-3px); }
.guide-card b { font-size: 18px; line-height: 1.45; }
.guide-card span { color: var(--muted); font-size: 15px; flex: 1; line-height: 1.7; }
.guide-card em { font-style: normal; font-weight: 600; color: var(--accent); font-size: 15px; }

html[lang="en"] .guide-body h2, html[lang="en"] .guide-more h2 { font-family: var(--en); font-weight: 800; letter-spacing: -.01em; }

/* ===== Names of Allah pages ===== */
.name-hero { text-align: center; padding: 10px 0 26px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.name-num { display: inline-block; font-size: 13px; font-weight: 700; color: var(--accent); padding: 4px 12px; border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 10%, var(--card)); }
.name-big { font-family: "Alyamama", var(--ar); font-weight: 900; font-size: clamp(64px, 14vw, 120px); line-height: 1.35; margin: 10px 0 0; color: var(--text); }
.name-page h1 { font-size: clamp(26px, 4vw, 36px); margin: 4px 0 12px; }
.name-hero .guide-lead { max-width: 620px; margin-inline: auto; }
.name-cats { margin-top: 16px; }
.guide-body blockquote.dua { font-size: 19px; }
.dua-kind { display: block; font-size: 13px; font-weight: 700; color: var(--accent); margin-bottom: 4px; }
.name-nav { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 34px 0 0; }
.name-nav a { flex: 1; min-width: 110px; text-align: center; padding: 12px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); color: var(--text); font-weight: 600; }
.name-nav a:hover { text-decoration: none; border-color: var(--accent); }
.name-rel { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.name-rel a { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); color: var(--text); }
.name-rel a:hover { text-decoration: none; border-color: var(--accent); }
.name-rel b { font-size: 20px; }
.name-rel span { font-size: 14px; color: var(--muted); line-height: 1.6; }
.names-index { max-width: 1080px; }
.names-index .guide-body, .names-index .guide-lead { max-width: 760px; }
.names-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-top: 30px; }
.name-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: 20px; background: var(--card);
  border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--text); transition: transform .2s; }
.name-card:hover { text-decoration: none; transform: translateY(-3px); border-color: var(--accent); }
.name-card .n { position: absolute; top: 14px; inset-inline-end: 16px; font-size: 12px; color: var(--muted); font-weight: 700; }
.name-card b { font-family: "Alyamama", var(--ar); font-weight: 900; font-size: 30px; line-height: 1.4; }
.name-card em { font-style: normal; font-weight: 700; color: var(--accent); font-size: 15px; }
.name-card span:last-child { font-size: 14px; color: var(--muted); line-height: 1.7; }
.names-sample { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 820px; margin: 0 auto; }
.names-sample a { padding: 8px 16px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--text); font-weight: 600; }
.names-sample a:hover { text-decoration: none; border-color: var(--accent); }
