@font-face { font-family: Vazirmatn; src: url('/fonts/Vazirmatn-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: Vazirmatn; src: url('/fonts/Vazirmatn-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: Pelak; src: url('/fonts/Pelak-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: Pelak; src: url('/fonts/Pelak-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
:root { color-scheme: light; --indigo: #243dcd; --lime: #cbf178; --ink: #142544; --paper: #f3f5fa; --muted: #405367; --line: #bcc5d8; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 24px; scrollbar-color: var(--indigo) var(--paper); }
body { margin: 0; color: var(--ink); background: var(--paper); font: 400 17px/1.85 Vazirmatn, sans-serif; font-synthesis: none; }
html:lang(fa) body { font-family: Pelak, sans-serif; }
::selection { background: var(--lime); color: var(--ink); }
a { color: var(--indigo); text-underline-offset: .25em; overflow-wrap: anywhere; }
header, footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 20px max(24px, calc((100% - 1120px)/2)); }
header { background: var(--indigo); color: white; }
header a { color: white; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-size: 24px; font-weight: 700; }
.brand img { display: block; }
nav { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; }
nav a { padding-block: 10px; }
select { font: inherit; min-height: 48px; border: 1px solid #bec6ff; border-radius: 12px; background: var(--indigo); color: white; padding: 8px 12px; cursor: pointer; }
main { max-width: 1168px; margin-inline: auto; padding: 0 24px 64px; }
.download-desk { margin-inline: -24px; padding: 48px 24px 36px; background: var(--indigo); color: white; }
h1 { margin: 0 0 20px; max-width: 23ch; font-size: clamp(32px, 4.5vw, 60px); line-height: 1.5; font-weight: 700; text-wrap: balance; }
.lead { font-size: 20px; max-width: 70ch; margin: 0 0 28px; }
.channels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding-block: 14px 18px; }
.channel { display: flex; align-items: center; justify-content: center; min-height: 64px; padding: 14px; border: 1px solid var(--lime); border-radius: 12px; background: var(--lime); color: var(--ink); font-weight: 700; text-align: center; text-decoration: none; transition: background 160ms ease-out; }
.channel[aria-disabled=true] { background: transparent; color: white; border-color: #bec6ff; }
.availability { color: #dce2ff; font-size: 15px; margin: 10px 0 0; }
.safety { margin: 12px 0 0; padding-block-start: 20px; border-block-start: 1px solid #778ae4; color: #e3f6bc; }
.release-note { font-size: 14px; overflow-wrap: anywhere; }
.reading { max-width: 75ch; margin-block-start: 40px; padding-block-start: 24px; border-block-start: 1px solid var(--line); }
h2 { margin: 0 0 12px; font-size: 26px; line-height: 1.6; }
p { margin: 0 0 18px; }
ol { padding-inline-start: 26px; }
li { padding-inline-start: 8px; margin-block-end: 12px; }
.privacy-page { max-width: 800px; padding-block-start: 44px; }
.privacy-page h1 { font-size: clamp(30px, 4vw, 44px); }
footer { border-block-start: 1px solid var(--line); font-size: 15px; justify-content: flex-start; }
.project-credit { color: var(--muted); overflow-wrap: anywhere; }
:focus-visible { outline: 3px solid var(--indigo); outline-offset: 5px; }
header :focus-visible, .download-desk :focus-visible { outline-color: var(--lime); }
.skip { position: absolute; top: 8px; inset-inline-start: 16px; transform: translateY(-200%); background: var(--lime); color: var(--ink); padding: 10px 18px; z-index: 2; }
.skip:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (hover: hover) and (pointer: fine) { .channel[href]:hover { background: #b6df60; } a:hover { text-decoration: underline; } }
@media (max-width: 700px) { .channels { grid-template-columns: 1fr; gap: 18px; } .download-desk { padding-block-start: 32px; } header { gap: 12px; } nav { gap: 16px; } h1 { font-size: clamp(30px, 7vw, 44px); } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Keep the official remote trust seal readable on light and dark footers. */
footer .enamad-seal{display:block;width:126px;max-width:100%;padding:8px;margin-block-start:16px;background:#fff;border-radius:8px;cursor:pointer}
footer .enamad-seal img{display:block;width:110px;height:120px;max-width:100%;object-fit:contain}

footer .enamad-seal img[hidden]{display:none}
footer .enamad-seal .enamad-caption{display:block;width:110px;max-width:100%;color:#14233d;text-align:center;font-size:12px;line-height:1.7}
