/* The home page's look, shared by index.html (Arabic) and en.html (English). */
:root { --bg: #f5f8fb; --text: #1b1c1f; --muted: #5f6368; --line: #dfe3e8;
  --dot: #c5cbd3; --accent: #1da1f2; --button: #000; --button-text: #fff; color-scheme: light dark; }
@media (prefers-color-scheme: dark) {
  :root { --bg: #121316; --text: #e6e7ea; --muted: #a0a4ab; --line: #2a2c31;
    --dot: #3a3d44; --button: #fff; --button-text: #000; }
}
* { box-sizing: border-box; }
html, body { margin: 0; overflow-x: hidden; }
body { background: var(--bg); color: var(--text);
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Tahoma, Arial, sans-serif; }
main { max-width: 1160px; margin: 0 auto; padding: 16px 16px 40px; }

/* name, slogan, language */
header { display: flex; align-items: center; gap: 12px; }
header img { width: 52px; height: 52px; border-radius: 12px; flex: none; }
.name { flex: 1; min-width: 0; }
h1 { margin: 0; font-size: 24px; line-height: 1.2; }
.slogan { margin: 2px 0 0; color: var(--muted); font-size: 15px; }
.lang { flex: none; font-size: 15px; padding: 6px 14px; border-radius: 999px; text-decoration: none;
  border: 1px solid var(--line); color: var(--text); }
/* the intro: dark text with a bold first line, so it does not read as a second (gray) slogan */
.intro { margin: 20px 0 0; text-align: start; color: var(--text); font-size: 15px;
  line-height: 1.5; text-wrap: pretty; }

/* screenshots */
.shots { position: relative; margin-top: 16px; }
.shots h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; padding: 4px 0 8px; margin: 0; list-style: none; scrollbar-width: none; }
.track::-webkit-scrollbar { display: none; }
.track li { flex: none; scroll-snap-align: center; }
.track img { display: block; width: min(72vw, 300px); aspect-ratio: 600 / 1304; height: auto;
  border-radius: 20px; background: var(--line); box-shadow: 0 4px 16px rgba(0, 0, 0, .12); }
.dots { display: flex; justify-content: center; gap: 4px; margin-top: 12px; }
.dots button { width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer;
  display: grid; place-items: center; }
.dots button::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--dot);
  transition: width .2s, background .2s; }
.dots button[aria-current="true"]::after { width: 20px; border-radius: 4px; background: var(--accent); }
.arrow { display: none; }

/* store buttons and terms */
/* the two stores, always one row: each is one link, its QR code over its button.
   On a small phone they share the width and get a little smaller. */
.stores { display: flex; justify-content: center; gap: 12px; margin-top: 40px; }
.store { display: flex; flex-direction: column; align-items: stretch; gap: 10px; flex: 0 1 190px;
  min-width: 0; text-decoration: none; }
.qr { display: block; width: 100%; height: auto; border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .1); }
.badge { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 14px;
  border-radius: 12px; background: var(--button); color: var(--button-text); white-space: nowrap; }
.badge svg { width: 28px; height: 28px; fill: currentColor; flex: none; }
.badge small { display: block; font-size: 11px; line-height: 1.2; }
.badge b { display: block; font-size: 19px; line-height: 1.2; }
@media (max-width: 400px) {
  .stores { gap: 8px; }
  .badge { gap: 6px; padding: 8px 10px; }
  .badge svg { width: 22px; height: 22px; }
  .badge small { font-size: 10px; }
  .badge b { font-size: 16px; }
}
footer { text-align: center; margin-top: 24px; }
footer a { color: var(--muted); font-size: 14px; }

/* desktop: show more screenshots, add arrows */
@media (min-width: 760px) {
  main { padding-top: 32px; }
  header img { width: 64px; height: 64px; border-radius: 14px; }
  h1 { font-size: 30px; }
  .slogan { font-size: 17px; }
  .intro { margin-top: 24px; font-size: 17px; }
  .shots { margin-top: 32px; padding: 0 52px; }
  .track { gap: 24px; }
  .track li { scroll-snap-align: start; }
  .stores { margin-top: 64px; }
  .track img { width: 240px; }
  .arrow { display: grid; place-items: center; position: absolute; top: calc(50% - 22px);
    width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
    background: var(--bg); color: var(--text); cursor: pointer; font-size: 22px; }
  .arrow:disabled { opacity: .3; cursor: default; }
  .prev { inset-inline-start: 0; }
  .next { inset-inline-end: 0; }
}
