/* Shared styles for apps.siyyah.com. Each app sets its own colors on <body class="app-...">. */
:root {
  --bg: #F7F6F2;
  --card: #FFFFFF;
  --text: #1B1C1A;
  --muted: #6B7080;
  --border: #E6E3DA;
  --accent: #B8860B;
  --accent-text: #785600;
  --hero: #1E2A44;
  --on-hero: #FFFFFF;
  --on-hero-muted: #AEB7CC;
  --on-hero-accent: #F7BD48;
  --radius: 18px;
  --max: 1080px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F1218;
    --card: #181C24;
    --text: #F2F0EA;
    --muted: #9AA0AE;
    --border: #272C36;
    --accent: #E3B341;
    --accent-text: #E3B341;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 Inter, -apple-system, system-ui, "Segoe UI", sans-serif;
}
h1, h2, h3 { font-family: Manrope, Inter, system-ui, sans-serif; line-height: 1.2; margin: 0 0 .5em; }
a { color: var(--accent-text); }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* Top bar */
.topbar { border-bottom: 1px solid var(--border); }
.topbar .wrap { display: flex; align-items: center; gap: 12px; height: 60px; }
.topbar a { text-decoration: none; color: var(--text); font-weight: 600; }
.topbar .brand { display: flex; align-items: center; gap: 10px; font-family: Manrope, sans-serif; font-weight: 800; }
.topbar .brand img { width: 32px; height: 32px; border-radius: 8px; }
.topbar nav { margin-left: auto; display: flex; gap: 18px; font-size: 15px; }
.topbar nav a { color: var(--muted); font-weight: 500; }

/* Hero */
.hero { background: var(--hero); color: var(--on-hero); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.hero .app-icon { width: 88px; height: 88px; border-radius: 22px; margin-bottom: 20px; }
.hero h1 { font-size: clamp(36px, 6vw, 56px); font-weight: 800; color: var(--on-hero-accent); }
.hero p.lead { font-size: 20px; color: var(--on-hero-muted); margin: 0 0 28px; max-width: 34em; }
.hero .shot { justify-self: center; width: min(320px, 100%); border-radius: 28px; box-shadow: 0 24px 60px rgba(0,0,0,.35); }

/* Store buttons */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px;
  padding: 8px 18px; border-radius: 12px; text-decoration: none;
  background: #000; color: #fff; border: 1px solid rgba(255,255,255,.25);
}
.store svg { width: 24px; height: 24px; fill: currentColor; flex: none; }
.store small { display: block; font-size: 11px; opacity: .8; line-height: 1.1; }
.store strong { display: block; font-size: 17px; line-height: 1.2; }
.store.soon { opacity: .6; pointer-events: none; }

/* Features */
.section { padding: 64px 0; }
.section h2 { font-size: clamp(26px, 4vw, 34px); text-align: center; margin-bottom: 40px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.feature h3 { font-size: 19px; color: var(--accent-text); }
.feature p { margin: 0; color: var(--muted); font-size: 16px; }

/* Screenshot strip */
.shots { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; }
.shots img { width: 240px; flex: none; border-radius: 20px; scroll-snap-align: start; border: 1px solid var(--border); }

/* Legal pages */
.doc { max-width: 760px; margin: 0 auto; padding: 40px 16px 64px; }
.doc h1 { font-size: 32px; }
.doc h2 { font-size: 21px; margin-top: 32px; }
.doc .meta { color: var(--muted); font-size: 15px; margin-bottom: 28px; }

/* App directory */
.apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.app-card { display: flex; gap: 14px; align-items: center; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; text-decoration: none; color: var(--text); }
.app-card img { width: 64px; height: 64px; border-radius: 16px; }
.app-card strong { display: block; font-family: Manrope, sans-serif; font-size: 18px; }
.app-card span { color: var(--muted); font-size: 15px; }

footer { border-top: 1px solid var(--border); color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; padding-top: 24px; padding-bottom: 40px; }
footer a { color: var(--muted); }
footer .copy { margin-left: auto; }

@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 40px; padding-bottom: 40px; }
  .hero .shot { width: min(260px, 80%); }
  .features { grid-template-columns: 1fr; }
  .topbar nav { gap: 12px; font-size: 14px; }
  footer .copy { margin-left: 0; }
}
