/* Kooleh website. Tokens follow docs/kooleh-design-system (light / navy dark, as in the app).
   No inline styles anywhere: the CSP allows styles from this file only. */
@font-face { font-family: Vazirmatn; src: url(/assets/Vazirmatn.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #FBFBFD; --surface: #F1F2F6; --raised: #FFFFFF; --border: #DDE0E7;
  --text: #1A1C24; --muted: #5D6273; --accent: #D9481F; --accent-text: #FFFFFF; --accent-soft: #C2410C;
  --tint: #FFE4D9; --success: #16865B; --warning: #A7650B;
  --ink: #1C2434; --ink-text: #F0F2F8; --ink-muted: #C4CBD8;
  --brand-grad: linear-gradient(135deg, #F2643D, #F9A03F);
  --r-sm: 10px; --r-md: 16px; --r-lg: 24px;
  --shadow-1: 0 1px 2px rgba(25, 30, 45, .05), 0 6px 18px rgba(25, 30, 45, .06);
  --shadow-2: 0 18px 48px rgba(25, 30, 45, .14), 0 4px 12px rgba(25, 30, 45, .06);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --max: 1160px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E1016; --surface: #161922; --raised: #1C2030; --border: #2A3040;
    --text: #E9ECF4; --muted: #9AA3B5; --accent: #FF8A5E; --accent-text: #2A0F05; --accent-soft: #FF8A5E;
    --tint: #2A2232; --success: #59C99A; --warning: #E8B45F;
    --ink: #161922; --ink-text: #E9ECF4; --ink-muted: #9AA3B5;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 18px rgba(0, 0, 0, .25);
    --shadow-2: 0 18px 48px rgba(0, 0, 0, .45), 0 4px 12px rgba(0, 0, 0, .3);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0E1016; --surface: #161922; --raised: #1C2030; --border: #2A3040;
  --text: #E9ECF4; --muted: #9AA3B5; --accent: #FF8A5E; --accent-text: #2A0F05; --accent-soft: #FF8A5E;
  --tint: #2A2232; --success: #59C99A; --warning: #E8B45F;
  --ink: #161922; --ink-text: #E9ECF4; --ink-muted: #9AA3B5;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 18px rgba(0, 0, 0, .25);
  --shadow-2: 0 18px 48px rgba(0, 0, 0, .45), 0 4px 12px rgba(0, 0, 0, .3);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.9 Vazirmatn, Tahoma, sans-serif; overflow-x: hidden; -webkit-font-smoothing: antialiased; transition: background-color .18s, color .18s; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; line-height: 1.5; }
h1 { font-size: clamp(34px, 4.3vw, 58px); font-weight: 900; line-height: 1.35; letter-spacing: -1.2px; }
h2 { font-size: clamp(26px, 3vw, 38px); font-weight: 800; letter-spacing: -.4px; }
h3 { font-size: 17px; font-weight: 800; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .86em; direction: ltr; unicode-bidi: isolate; }
code { background: var(--surface); border: 1px solid var(--border); padding: 1px 6px; border-radius: 6px; }
pre { direction: ltr; text-align: left; background: var(--surface); border: 1px solid var(--border); padding: 14px 16px; border-radius: var(--r-sm); overflow-x: auto; font-size: 14px; line-height: 1.7; margin: 12px 0; }
pre code { background: none; border: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--tint); }

.wrap { width: min(var(--max), calc(100% - 48px)); margin-inline: auto; }
@media (max-width: 800px) { .wrap { width: calc(100% - 32px); } }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; z-index: 99; background: var(--raised); padding: 8px 14px; border-radius: var(--r-sm); }
.skip:focus { inset-inline-start: 16px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.eyebrow { font-size: 13px; font-weight: 900; color: var(--accent); margin: 0 0 12px; }
.lead { font-size: 18px; color: var(--muted); max-width: 540px; margin: 0 0 28px; }
.accent { color: var(--accent); }
.hide { display: none !important; }

/* Header */
.top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 88%, transparent); -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.top.scrolled { border-bottom-color: var(--border); }
.top .wrap { height: 76px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 900; letter-spacing: -.3px; }
.mark { width: 40px; height: 40px; border-radius: 12px; background: var(--brand-grad); display: grid; place-items: center; flex-shrink: 0; box-shadow: 0 6px 16px rgba(242, 100, 61, .28); }
.mark svg { width: 25px; height: 25px; }
.nav { display: flex; gap: 6px; }
.nav a { color: var(--muted); font-size: 14px; font-weight: 600; padding: 6px 12px; border-radius: 999px; position: relative; transition: color .15s; }
.nav a:hover { color: var(--text); }
.nav a[aria-current] { color: var(--text); }
.nav a[aria-current]::after { content: ''; position: absolute; inset-inline: 12px; bottom: -2px; height: 2px; border-radius: 2px; background: var(--accent); }
.top .spacer { flex: 1; }
.top .actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle { display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); }
.theme-toggle button { width: 34px; height: 34px; border: 0; border-radius: 999px; display: grid; place-items: center; background: transparent; color: var(--muted); cursor: pointer; transition: background .15s, color .15s; }
.theme-toggle button svg { width: 18px; height: 18px; }
.theme-toggle button[aria-pressed="true"] { background: var(--raised); color: var(--accent); box-shadow: var(--shadow-1); }
.menu-btn { display: none; width: 42px; height: 42px; border: 1px solid var(--border); border-radius: 999px; background: var(--raised); color: var(--text); place-items: center; cursor: pointer; }
.menu-btn svg { width: 20px; height: 20px; }
@media (max-width: 860px) {
  .top .wrap { height: 66px; gap: 12px; }
  .nav { display: none; position: absolute; top: 66px; inset-inline: 0; flex-direction: column; gap: 0; padding: 8px 16px 16px; background: var(--raised); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-2); }
  .nav.open { display: flex; }
  .nav a { font-size: 16px; padding: 12px; }
  .nav a[aria-current]::after { display: none; }
  .nav .theme-row { display: flex; justify-content: space-between; align-items: center; padding: 12px; color: var(--muted); font-size: 15px; }
  .menu-btn { display: grid; }
  .top .actions > .theme-toggle { display: none; }
  .top .btn { min-height: 40px; padding: 0 14px; font-size: 13px; }
}
@media (min-width: 861px) { .nav .theme-row { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 0 22px; border: 1px solid var(--border); border-radius: 999px; background: var(--raised); color: var(--text); font: inherit; font-weight: 800; font-size: 14px; cursor: pointer; white-space: nowrap; transition: transform .15s var(--ease), box-shadow .15s, border-color .15s, background .15s; }
.btn:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); }
.btn:active { transform: scale(.98); }
.btn svg { width: 19px; height: 19px; flex-shrink: 0; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 30%, transparent); }
.btn.primary:hover { box-shadow: 0 10px 28px color-mix(in srgb, var(--accent) 38%, transparent); transform: translateY(-1px); }
.btn.small { min-height: 40px; padding: 0 16px; }
.btn.big { min-height: 54px; padding: 0 26px; font-size: 15px; }
.meta { font-size: 12px; color: var(--muted); margin: 10px 6px 0; }
.link { color: var(--accent); font-weight: 750; display: inline-flex; align-items: center; gap: 6px; }
.link::after { content: '←'; transition: transform .2s var(--ease); }
.link:hover::after { transform: translateX(-4px); }

/* Hero */
.hero { display: grid; grid-template-columns: 1.02fr .98fr; gap: 48px; align-items: center; padding: 64px 0 56px; min-height: 600px; }
.hero h1 em { font-style: normal; color: var(--accent); white-space: nowrap; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.stage { position: relative; aspect-ratio: 1.18; }
.showcase { min-width: 0; }
.laptop { position: absolute; inset-inline-end: 0; top: 10%; width: 88%; }
.laptop .lid { border-radius: 14px 14px 6px 6px; background: #14161D; padding: 2.2% 2.2% 3%; box-shadow: var(--shadow-2); }
.laptop .lid .screen { border-radius: 4px; overflow: hidden; aspect-ratio: 1.6; background: var(--surface); position: relative; }
.laptop .base { height: 12px; margin: 0 -5%; border-radius: 0 0 16px 16px; background: linear-gradient(#C9CDD6, #9EA3AE); }
.laptop .base::before { content: ''; display: block; width: 16%; height: 5px; margin: 0 auto; border-radius: 0 0 6px 6px; background: #8A8F99; }
.phone { position: absolute; inset-inline-start: 2%; bottom: 4%; width: 27%; border-radius: 30px; background: #14161D; padding: 2.4%; box-shadow: var(--shadow-2); }
.phone .screen { border-radius: 24px; overflow: hidden; aspect-ratio: 9 / 19.5; background: var(--surface); position: relative; }
.screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; position: absolute; inset: 0; }
.deck > picture:not(.on) { display: none; }
.screen > picture, .crop > picture { position: absolute; inset: 0; }
.theme-img-dark { display: none; }
:root[data-theme="dark"] .theme-img-light { display: none; }
:root[data-theme="dark"] .theme-img-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-img-light { display: none; }
  :root:not([data-theme="light"]) .theme-img-dark { display: block; }
}
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding: 32px 0 24px; gap: 24px; min-height: 0; }
  .lead { font-size: 16px; }
  .stage { aspect-ratio: 1.25; }
}

/* Proof line */
.proofline { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border-radius: var(--r-lg); padding: 22px 8px; margin-bottom: 96px; }
.proofline > div { display: flex; gap: 12px; align-items: center; justify-content: center; padding: 4px 16px; border-inline-start: 1px solid var(--border); font-weight: 800; font-size: 15px; line-height: 1.6; }
.proofline > div:first-child { border: 0; }
.proofline svg { width: 26px; height: 26px; color: var(--accent); flex-shrink: 0; }
.proofline small { display: block; color: var(--muted); font-weight: 500; font-size: 12px; }
@media (max-width: 860px) {
  .proofline { grid-template-columns: 1fr 1fr; gap: 16px 8px; padding: 18px; margin-bottom: 48px; }
  .proofline > div { border: 0; justify-content: flex-start; padding: 0; }
}

/* Sections */
.section { padding: 72px 0; }
.section-head { max-width: 660px; margin-bottom: 36px; }
.section-head p:last-child { color: var(--muted); margin: 10px 0 0; }
@media (max-width: 800px) { .section { padding: 44px 0; } }

/* Features: the one card grid on the home page */
.features { display: grid; grid-template-columns: .78fr 1.22fr; gap: 56px; align-items: start; }
.features .intro { position: sticky; top: 110px; }
.features .intro p { color: var(--muted); margin-top: 14px; }
.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.feature { background: var(--surface); border: 1px solid transparent; border-radius: var(--r-md); padding: 20px; transition: border-color .18s, background .18s; }
.feature:hover { border-color: var(--border); background: var(--raised); }
.feature b { display: block; font-size: 16px; margin-bottom: 4px; }
.feature span { font-size: 14px; color: var(--muted); }
.feature .tag { display: inline-block; font-size: 11px; font-weight: 800; color: var(--accent); margin-bottom: 8px; }
@media (max-width: 860px) {
  .features { grid-template-columns: 1fr; gap: 24px; }
  .features .intro { position: static; }
}
@media (max-width: 520px) { .feature-list { grid-template-columns: 1fr; } }

/* A day with Kooleh */
.day { position: relative; }
.day::before { content: ''; position: absolute; right: 105px; top: 30px; bottom: 30px; width: 2px; background: var(--border); }
.stop { display: grid; grid-template-columns: 90px 1fr; gap: 32px; align-items: center; padding: 14px 0; }
.stop .time { font-size: 22px; font-weight: 900; color: var(--accent); text-align: start; font-feature-settings: 'tnum'; position: relative; }
.stop .time::after { content: ''; position: absolute; left: -22px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: var(--bg); border: 3px solid var(--accent); }
.stop .card { display: grid; grid-template-columns: 1fr 200px; gap: 24px; align-items: center; background: var(--surface); border-radius: var(--r-md); padding: 18px 22px; }
.stop .card b { display: block; font-size: 17px; }
.stop .card span { color: var(--muted); font-size: 14px; }
.crop { border-radius: 12px; overflow: hidden; background: var(--raised); border: 1px solid var(--border); box-shadow: var(--shadow-1); aspect-ratio: 2.2; position: relative; }
.crop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stop.wide .card { grid-template-columns: 1fr 260px; }
@media (max-width: 700px) {
  .day::before { right: 5px; }
  .stop { grid-template-columns: 1fr; gap: 6px; padding: 10px 0 10px 0; padding-inline-start: 26px; }
  .stop .time { font-size: 18px; }
  .stop .time::after { left: auto; right: -26px; }
  .stop .card, .stop.wide .card { grid-template-columns: 1fr; gap: 14px; padding: 16px; }
}

/* Systems row */
.systems { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px 24px; padding: 30px 0; border-block: 1px solid var(--border); font-weight: 850; font-size: clamp(16px, 2vw, 20px); }
.systems span { color: var(--muted); transition: color .2s; }
.systems span:hover { color: var(--text); }

/* Sync panel */
.panel { background: var(--surface); border-radius: var(--r-lg); padding: 44px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.panel p { color: var(--muted); }
.sync-art { position: relative; display: flex; justify-content: center; align-items: flex-end; gap: 28px; min-height: 230px; }
.sync-laptop { width: 62%; }
.sync-laptop .lid { background: #14161D; border-radius: 10px 10px 4px 4px; padding: 6px 6px 8px; }
.sync-laptop .lid > div { aspect-ratio: 1.6; border-radius: 3px; background: var(--raised); display: grid; place-items: center; }
.sync-laptop .base { height: 8px; margin: 0 -6%; border-radius: 0 0 10px 10px; background: linear-gradient(#C9CDD6, #9EA3AE); }
.qr { width: 34%; aspect-ratio: 1; position: relative; overflow: hidden; border-radius: 6px; }
.qr svg { width: 100%; height: 100%; color: var(--text); }
.qr::after { content: ''; position: absolute; inset-inline: 0; height: 3px; top: 0; background: var(--accent); box-shadow: 0 0 12px var(--accent); opacity: 0; }
.in .qr::after { animation: scan 1.6s .4s var(--ease) 2; }
@keyframes scan { 0% { top: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: calc(100% - 3px); opacity: 0; } }
.sync-phone { width: 22%; background: #14161D; border-radius: 20px; padding: 5px; }
.sync-phone > div { aspect-ratio: 9 / 18; border-radius: 16px; background: var(--raised); display: grid; place-items: center; }
.done { width: 46%; aspect-ratio: 1; border-radius: 50%; background: var(--success); color: #fff; display: grid; place-items: center; transform: scale(.6); opacity: 0; transition: transform .4s var(--ease) 3.4s, opacity .3s 3.4s; }
.in .done { transform: none; opacity: 1; }
.done svg { width: 60%; height: 60%; }
@media (max-width: 860px) { .panel { grid-template-columns: 1fr; padding: 26px; gap: 22px; } }

/* Privacy */
.privacy { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.ink-box { background: var(--ink); color: var(--ink-text); border-radius: var(--r-lg); padding: 38px; position: relative; overflow: hidden; }
.ink-box .eyebrow { color: #FF8A5E; }
.ink-box h2 { color: var(--ink-text); margin-bottom: 14px; }
.ink-box p { color: var(--ink-muted); margin: 0; }
.ink-box svg.shield { position: absolute; inset-inline-end: -18px; bottom: -22px; width: 150px; height: 150px; color: rgba(255, 255, 255, .05); }
.points > div { padding: 16px 0; border-bottom: 1px solid var(--border); }
.points b { display: block; }
.points span { color: var(--muted); font-size: 14px; }
.points .btn { margin-top: 18px; }
@media (max-width: 860px) { .privacy { grid-template-columns: 1fr; gap: 20px; } .ink-box { padding: 26px; } }

/* Platforms band */
.platforms { background: var(--ink); color: var(--ink-text); border-radius: var(--r-lg); padding: 40px; display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; }
.platforms h2 { color: var(--ink-text); font-size: clamp(22px, 2.6vw, 30px); }
.platforms p { color: var(--ink-muted); margin: 4px 0 0; }
.platforms .row { display: flex; flex-wrap: wrap; gap: 10px; }
.platforms .btn { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .16); color: var(--ink-text); }
.platforms .btn:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .3); }
@media (max-width: 800px) { .platforms { padding: 26px; } .platforms .btn { flex: 1 1 140px; } }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-weight: 850; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; width: 10px; height: 10px; border-inline-end: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s var(--ease); flex-shrink: 0; margin-top: -4px; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.faq details p { color: var(--muted); margin: -6px 0 20px; }

/* Final CTA */
.final { margin: 40px 0 80px; background: var(--surface); border-radius: var(--r-lg); padding: 40px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.final h2 { font-size: clamp(24px, 2.6vw, 30px); }
.final p { color: var(--muted); margin: 6px 0 0; }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 40px 0 36px; font-size: 14px; }
footer .cols { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 24px; }
footer h4 { font-size: 14px; font-weight: 800; margin-bottom: 10px; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin-bottom: 6px; }
footer li a { color: var(--muted); transition: color .15s; }
footer li a:hover { color: var(--text); }
footer .about p { color: var(--muted); margin-top: 12px; max-width: 300px; font-size: 13px; }
footer .fine { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--muted); font-size: 12px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; }
@media (max-width: 860px) { footer .cols { grid-template-columns: 1fr 1fr; } footer .about { grid-column: 1 / -1; } }

/* Inner pages */
.page-head { padding: 52px 0 12px; }
.page-head .lead { margin-bottom: 0; }
.crumbs { font-size: 13px; color: var(--muted); margin: 22px 0 0; }
.crumbs a:hover { color: var(--text); }
.prose { max-width: 760px; font-size: 16px; }
.prose h2 { font-size: 24px; margin: 1.8em 0 .6em; }
.prose h3 { margin: 1.4em 0 .4em; }
.prose ul, .prose ol { padding-inline-start: 22px; }
.prose li { margin-bottom: .45em; }
.prose a { color: var(--accent); }
.steps { counter-reset: s; list-style: none; padding: 0 !important; }
.steps > li { counter-increment: s; position: relative; padding-inline-start: 54px; margin-bottom: 24px; }
.steps > li::before { content: counter(s, persian); position: absolute; inset-inline-start: 0; top: 0; width: 38px; height: 38px; border-radius: 12px; background: var(--tint); color: var(--accent-soft); font-weight: 900; display: grid; place-items: center; }
.note { background: var(--surface); border-inline-start: 3px solid var(--accent); padding: 14px 18px; border-radius: 0 var(--r-sm) var(--r-sm) 0; margin: 1.4em 0; }
[dir="rtl"] .note { border-radius: var(--r-sm) 0 0 var(--r-sm); }
.note.warn { border-color: var(--warning); }
.ui { display: inline-block; direction: ltr; unicode-bidi: isolate; font-size: .88em; font-weight: 700; padding: 0 8px; border-radius: 7px; background: var(--raised); border: 1px solid var(--border); box-shadow: 0 1px 0 var(--border); white-space: nowrap; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--raised); margin: 16px 0; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: start; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--muted); font-weight: 800; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.facts > div { background: var(--surface); border-radius: var(--r-md); padding: 20px; }
.facts b { display: block; margin-bottom: 4px; }
.facts span { color: var(--muted); font-size: 14px; }
@media (max-width: 600px) { .facts { grid-template-columns: 1fr; } }

/* Download page */
.dl-hero { text-align: center; padding: 56px 0 24px; }
.dl-hero .lead { margin-inline: auto; }
.dl-hero .meta { text-align: center; }
.os-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.os { background: var(--surface); border: 1px solid transparent; border-radius: var(--r-md); padding: 22px 18px; display: flex; flex-direction: column; gap: 8px; transition: border-color .18s; }
.os.me { border-color: var(--accent); background: var(--raised); box-shadow: var(--shadow-1); }
.os .os-ic { width: 44px; height: 44px; border-radius: 12px; background: var(--raised); display: grid; place-items: center; }
.os.me .os-ic { background: var(--tint); }
.os .os-ic svg { width: 24px; height: 24px; }
.os h3 { display: flex; align-items: center; gap: 8px; }
.os p { color: var(--muted); font-size: 13px; margin: 0; flex: 1; }
.os .btn { margin-top: 8px; width: 100%; }
.pill { font-size: 11px; font-weight: 800; padding: 1px 9px; border-radius: 999px; background: var(--tint); color: var(--accent-soft); }
@media (max-width: 1000px) { .os-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .os-grid { grid-template-columns: 1fr; } }
.warns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.warns > a { background: var(--surface); border-radius: var(--r-md); padding: 22px; transition: background .18s; }
.warns > a:hover { background: var(--raised); }
.warns ol { margin: 8px 0 0; padding-inline-start: 18px; color: var(--muted); font-size: 14px; }
@media (max-width: 860px) { .warns { grid-template-columns: 1fr; } }
.hash-list { display: grid; gap: 8px; margin-top: 14px; }
.hash { display: flex; gap: 10px; align-items: center; background: var(--raised); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 6px 6px 6px 12px; }
.hash > span { color: var(--muted); font-size: 13px; min-width: 60px; }
.hash, .hash-list, .panel > * { min-width: 0; }
.hash code { flex: 1; min-width: 0; background: none; border: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.hash button { border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: 8px; padding: 4px 12px; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.guide-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }

/* Changelog */
.release { padding: 6px 0 14px; border-bottom: 1px solid var(--border); }
.release h2 { font-size: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 1.4em; }
.release h2 a:hover { color: var(--accent); }

/* 404 */
.lost { text-align: center; padding: 96px 0 80px; }
.lost .big { font-size: clamp(64px, 12vw, 120px); font-weight: 900; color: var(--accent); line-height: 1; font-feature-settings: 'tnum'; }
.lost .cta-row { justify-content: center; margin-top: 24px; }
.lost .lead { margin-inline: auto; }
.lost h1 { font-size: clamp(28px, 4vw, 40px); margin: 12px 0; }

/* Motion: hero on load, sections once on scroll (≤16px), calm everywhere else */
@media (prefers-reduced-motion: no-preference) {
  .hero .copy { animation: rise .45s var(--ease) both; }
  .hero .stage { animation: rise .55s .08s var(--ease) both; }
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .35s var(--ease) var(--d, 0ms), transform .35s var(--ease) var(--d, 0ms); }
  .js .reveal.in { opacity: 1; transform: none; }
  @keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .done { opacity: 1; transform: none; }
}

.dl-main { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.btn-meta { font-size: 12px; color: var(--muted); padding: 0 6px; }
.btn-meta a { color: var(--accent); }
.faq-more { margin-top: 22px; }
.help-search { width: 100%; max-width: 520px; min-height: 52px; border: 1px solid var(--border); border-radius: 999px; background: var(--raised); color: var(--text); font: inherit; padding: 0 22px; margin-top: 22px; }
.help-search:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.articles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.articles > a { background: var(--surface); border: 1px solid transparent; border-radius: var(--r-md); padding: 20px 22px; transition: border-color .18s, background .18s; }
.articles > a:hover { background: var(--raised); border-color: var(--border); }
.articles b { display: block; font-size: 16px; margin-bottom: 4px; }
.articles span { color: var(--muted); font-size: 14px; }
@media (max-width: 700px) { .articles { grid-template-columns: 1fr; } }
.tight { padding: 24px 0 72px; }
.todo { display: inline-block; font-size: 12px; font-weight: 800; padding: 1px 10px; border-radius: 999px; border: 1.5px dashed var(--warning); color: var(--warning); background: color-mix(in srgb, var(--warning) 10%, transparent); vertical-align: middle; }

/* Support form (/help/#contact) */
.support-form { display: grid; gap: 8px; }
.support-form label { font-weight: 700; font-size: 14px; margin-top: 4px; }
.support-form input, .support-form select, .support-form textarea { font: inherit; color: inherit; background: var(--bg, transparent); border: 1px solid var(--border); border-radius: 14px; padding: 11px 14px; width: 100%; }
.support-form textarea { resize: vertical; min-height: 120px; }
.support-form input:focus, .support-form select:focus, .support-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.support-form .btn { justify-self: start; margin-top: 6px; }
.support-form .hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.form-msg { margin: 0; font-size: 14px; min-height: 1.4em; }
.form-msg[data-kind="ok"] { color: #16865B; }
.form-msg[data-kind="err"] { color: #C2341B; }

/* Download: this system first, the rest behind «سیستم‌های دیگر» */
.os-grid.focused .os:not(.me), .hash-list.focused .hash:not(:first-child) { display: none; }
.os-grid.focused { grid-template-columns: minmax(0, 520px); }
.more-os { margin-top: 14px; }

/* Phones: a shorter home page */
@media (max-width: 520px) {
  .feature-list { grid-template-columns: 1fr 1fr; gap: 8px; }
  .feature { padding: 14px; }
  .feature b { font-size: 14.5px; }
  .feature span { font-size: 12.5px; line-height: 1.7; }
  .feature .tag { margin-bottom: 4px; }
}
@media (max-width: 700px) {
  /* The day becomes a row to swipe through. */
  .day { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; margin-inline: -16px; padding-inline: 16px; scrollbar-width: none; }
  .day::-webkit-scrollbar { display: none; }
  .day::before { display: none; }
  .stop { flex: 0 0 82%; scroll-snap-align: center; padding: 0; padding-inline-start: 0; grid-template-columns: 1fr; }
  .stop .time::after { display: none; }
  .stop .card { height: 100%; align-content: start; }
}

/* Feature pages */
.feature-shot { padding-top: 0; }
.crop.wide-shot { aspect-ratio: 1.6; border-radius: var(--r-md); }
.faq-list { display: grid; gap: 8px; margin: 12px 0 24px; }
.versions .ver { font-weight: 800; white-space: nowrap; }
.versions .files { display: flex; flex-wrap: wrap; gap: 6px; }

/* /s/: a shared deadline or pack */
.share-card { background: var(--surface); border-radius: var(--r-md); padding: 20px 22px; margin: 18px 0; max-width: 560px; }
.share-card dl { margin: 0; display: grid; gap: 10px; }
.share-card dl > div { display: grid; grid-template-columns: 80px 1fr; gap: 12px; }
.share-card dt { color: var(--muted); font-size: 14px; }
.share-card dd { margin: 0; font-weight: 700; }
.share-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }

/* Product-led mobile layout: readable rows, explicit screenshot controls. */
[hidden] { display: none !important; }
.preview-controls { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px; }
.preview-controls button { font: inherit; font-size: 13px; font-weight: 700; min-height: 44px; padding: 8px 14px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; }
.preview-controls button:hover { color: var(--text); background: var(--surface); }
.preview-controls button[aria-pressed="true"] { color: var(--text); background: var(--surface); border-color: var(--border); }
.preview-caption { color: var(--muted); text-align: center; font-size: 12px; margin: 8px 0 0; }
.swipe-hint { display: none; color: var(--muted); font-size: 13px; }
.systems a { min-height: 44px; display: inline-flex; align-items: center; color: var(--muted); }
.systems a:hover { color: var(--accent); }
.top .nav { max-height: calc(100dvh - 66px); overflow-y: auto; }
@media (max-width: 700px) {
  .hero { padding-block: 28px 32px; gap: 20px; }
  .hero h1 { font-size: clamp(27px, 7.8vw, 38px); line-height: 1.65; letter-spacing: -.6px; }
  .hero .lead { max-width: 36em; margin-bottom: 20px; line-height: 1.9; }
  .hero .cta-row { gap: 8px; }
  .hero .cta-row .btn { white-space: normal; text-align: center; padding-inline: 16px; }
  .hero .cta-row .primary { flex: 1 1 170px; }
  .stage { aspect-ratio: 1.2; max-width: 540px; margin-inline: auto; }
  .phone { width: 30%; inset-inline-start: 0; }
  .preview-controls { justify-content: space-between; }
  .preview-controls button { flex: 1; padding-inline: 8px; }
  .proofline { margin-bottom: 16px; border-radius: 16px; gap: 20px 12px; padding: 20px 16px; }
  .proofline > div { min-width: 0; font-size: 14px; gap: 8px; }
  .proofline small { font-size: 11px; }
  .feature-list { display: block; }
  .feature { padding: 18px 0; background: transparent; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; }
  .feature:hover { background: transparent; }
  .feature b { font-size: 17px; }
  .feature span { font-size: 14px; line-height: 1.9; }
  .feature .tag { font-size: 12px; }
  .swipe-hint { display: block; }
  .day { scrollbar-width: thin; }
  .day::-webkit-scrollbar { display: block; height: 5px; }
  .day::-webkit-scrollbar-thumb { background: var(--border); border-radius: 5px; }
  .systems { gap: 8px 20px; font-size: 16px; }
  .section-head h2, .intro h2 { font-size: clamp(23px, 6vw, 29px); }
  .platforms .row { width: 100%; }
}
@media (max-width: 360px) {
  .top .wrap { gap: 8px; }
  .top .brand { font-size: 19px; gap: 6px; }
  .top .mark { width: 34px; height: 34px; }
  .btn.big { font-size: 14px; }
  .proofline { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
