/* Sage Courtyard tokens, reconciled with docs/landing/landing.css so this
   satellite page reads as the same product. */
:root{
  --stone:#f7f3ed;
  --stone-2:#fffaf4;
  --ink:#17212b;
  --muted:#5f6b76;
  --primary:#3f7d63;
  --primary-deep:#2f6350;
  --card:#fffaf4;
  --line:rgba(23,33,43,.12);
  --err:#a43f31;
  --shadow:0 16px 40px rgba(23,33,43,.08);
}
@media (prefers-color-scheme: dark){
  :root{
    --stone:#211e19; --stone-2:#2a2620; --ink:#eae4d6; --muted:#a79f8d;
    --primary:#6fae91; --primary-deep:#3f7d63; --card:#2a2620; --line:rgba(234,228,214,.16);
    --err:#e08a8a; --shadow:0 18px 40px -24px rgba(0,0,0,.7);
  }
}
:root[data-theme="light"]{
  --stone:#f7f3ed; --stone-2:#fffaf4; --ink:#17212b; --muted:#5f6b76;
  --primary:#3f7d63; --primary-deep:#2f6350; --card:#fffaf4; --line:rgba(23,33,43,.12);
}
:root[data-theme="dark"]{
  --stone:#211e19; --stone-2:#2a2620; --ink:#eae4d6; --muted:#a79f8d;
  --primary:#6fae91; --primary-deep:#3f7d63; --card:#2a2620; --line:rgba(234,228,214,.16);
}

*{box-sizing:border-box}
body{
  margin:0;
  background:var(--stone);
  color:var(--ink);
  font-family:"Noto Naskh Arabic", "Amiri", system-ui, sans-serif;
  line-height:1.5;
}

.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:1rem 1.25rem;
  background:var(--stone-2);
  border-bottom:1px solid var(--line);
}
.topbar h1{font-size:1.1rem;margin:0}
.lang-switch{color:var(--primary-deep);text-decoration:none;font-weight:600}
.lang-switch:hover{text-decoration:underline}

main{max-width:640px;margin:0 auto;padding:1.25rem}
.lead{color:var(--muted);margin-top:0}

.notice{
  background:var(--stone-2);
  border:1px solid var(--line);
  border-radius:.5rem;
  padding:.75rem 1rem;
  margin-block:1rem;
}

.apps{display:flex;flex-direction:column;gap:1rem}
.app-card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:.75rem;
  padding:1rem;
  box-shadow:var(--shadow);
}
.app-card__header{display:flex;gap:.75rem;align-items:center;margin-bottom:.75rem}
.app-card__icon{border-radius:.75rem;flex-shrink:0}
.app-card__header h2{margin:0;font-size:1.05rem}
.app-card__description{margin:.15rem 0 0;color:var(--muted);font-size:.9rem}

.empty-state{color:var(--muted);font-style:italic;margin:0}

.release{
  display:flex;
  align-items:center;
  gap:.6rem;
  flex-wrap:wrap;
}
.release--latest{margin-top:.5rem}
.release__badge{
  background:var(--primary-soft, rgba(63,125,99,.12));
  color:var(--primary-deep);
  border-radius:999px;
  padding:.15rem .6rem;
  font-size:.75rem;
  font-weight:700;
}
.release__version{font-weight:600}
.release__size,.release time{color:var(--muted);font-size:.85rem}

.download-cta{
  margin-inline-start:auto;
  background:var(--primary);
  color:#fff;
  text-decoration:none;
  font-weight:700;
  padding:.55rem 1.1rem;
  border-radius:.5rem;
  min-height:44px;
  min-width:44px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.download-cta:hover,.download-cta:focus-visible{background:var(--primary-deep)}
.download-cta--secondary{
  background:transparent;
  color:var(--primary-deep);
  border:1px solid var(--primary);
  min-height:36px;
  padding:.35rem .8rem;
}
.download-cta[data-state="pending"]{opacity:.6;pointer-events:none}

details.history{margin-top:.75rem}
details.history summary{
  cursor:pointer;
  font-weight:600;
  color:var(--primary-deep);
  min-height:44px;
  display:flex;
  align-items:center;
}
details.history ul{list-style:none;margin:.5rem 0 0;padding:0;display:flex;flex-direction:column;gap:.5rem}
details.history li.release{border-top:1px solid var(--line);padding-top:.5rem}

.error-page{max-width:480px;margin:3rem auto;text-align:center}
.error-page h1{color:var(--err)}
