/* Home page: task tiles and picture guides (assets/home.js). Colours come from style.css. */
#home-app { text-align: center; margin-bottom: 40px; }
#home-app[dir="rtl"] { font-family: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", "Noto Naskh Arabic", "Segoe UI", sans-serif; line-height: 2; }
main:has(#home-app) { padding-top: 16px; }

.lang-bar { display: flex; justify-content: center; gap: 8px; margin-bottom: 14px; direction: ltr; }
.lang-btn { font: inherit; font-weight: 700; min-width: 110px; min-height: 46px; border: 2px solid var(--green); border-radius: 999px; background: transparent; color: var(--green); cursor: pointer; }
.lang-btn[aria-pressed="true"] { background: var(--green); color: #fff; }

.home-title { font-size: 1.7rem; margin: 0 0 6px; }
.home-lead { font-size: 1.1rem; margin: 0 auto 14px; max-width: 560px; color: var(--muted); }
.promise { background: linear-gradient(135deg, var(--green), var(--green-dark)); color: #fff; border-radius: 14px; padding: 12px 16px; display: flex; flex-direction: column; gap: 2px; }
.promise strong { font-size: 1.3rem; }
.promise span { font-size: 0.95rem; }
.note { color: var(--muted); font-size: 0.9rem; margin: 12px 0 4px; }

.tile-group { font-size: 1.2rem; margin: 18px 0 10px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.tile { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 4px; padding: 16px 10px; border: 2px solid var(--border); border-radius: 16px; background: var(--bg-soft); color: var(--ink); font: inherit; line-height: inherit; cursor: pointer; }
.tile:hover, .tile:focus-visible { border-color: var(--green); }
.tile-icon { font-size: 3rem; line-height: 1.2; }
.tile strong { font-size: 1.1rem; }
.tile-sub { font-size: 0.85rem; color: var(--muted); }

.guide { max-width: 460px; margin: 0 auto; }
.guide h2 { font-size: 1.5rem; margin: 14px 0; outline: none; }
.guide-back { font: inherit; font-weight: 600; min-height: 44px; padding: 0 18px; border: 1px solid var(--border); border-radius: 999px; background: var(--bg-soft); color: var(--ink); cursor: pointer; }
.steps { list-style: none; padding: 0; margin: 0; }
.step { border: 1px solid var(--border); border-radius: 16px; padding: 14px; margin-bottom: 26px; position: relative; background: var(--bg-soft); }
.step:not(:last-child)::after { content: "▼"; position: absolute; left: 50%; bottom: -24px; transform: translateX(-50%); color: var(--green); font-size: 0.9rem; line-height: 22px; }
.step-head { display: flex; align-items: center; gap: 12px; text-align: start; }
.step-head p { margin: 0; font-size: 1.1rem; }
.step-num { flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%; background: var(--green); color: #fff; font: 700 1.25rem/42px "Segoe UI", sans-serif; text-align: center; }
.step-shot { display: block; width: 100%; height: auto; margin-top: 12px; border: 1px solid var(--border); border-radius: 10px; }
.step-icon { font-size: 3.4rem; line-height: 1.3; margin-top: 6px; }
.guide-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.btn.big { display: block; text-align: center; font-size: 1.15rem; padding: 14px 20px; }

.guide-video { max-width: 300px; margin: 28px auto 0; }
.guide-video h3 { margin: 0 0 8px; }
.guide-video video { display: block; width: 100%; aspect-ratio: 9 / 16; background: #000; border-radius: 12px; margin-bottom: 8px; }
.guide-video .clip-btn { font-family: inherit; }

.install { border-top: 1px solid var(--border); margin-top: 32px; }
.install h2 { font-size: 1.2rem; }
.install p { max-width: 520px; margin: 8px auto; font-size: 0.95rem; }

/* On a phone the header keeps only Apps and Help, so the tiles come up sooner.
   The other links are in this page's footer. */
@media (max-width: 600px) {
  nav.main-nav > a:not([href="downloads.html"]) { display: none; }
}

/* The shared .clip-btn is white in both themes; keep its text readable on it. */
@media (prefers-color-scheme: dark) { .guide-video .clip-btn { background: var(--bg-soft); } }
.step-rupees { display: inline-block; direction: ltr; margin-top: 10px; padding: 8px 34px; border: 3px double #fff; border-radius: 8px; background: var(--green); color: #fff; font: 700 2rem/1.3 "Segoe UI", sans-serif; }

/* On a phone, a third tile on its own row fills it. */
@media (max-width: 600px) { .tile:last-child:nth-child(odd) { grid-column: 1 / -1; } }

.brand-ur { font-weight: 900; }
/* Hidden from sight and screen readers, but keeps its room. */
#home-app .blank { visibility: hidden; }
.guide-actions .btn.btn-outline { background: transparent; color: var(--green); border: 2px solid var(--green); }
