/* Hidar Najm — developer site */
:root {
  --bg: #f6f4ef;
  --surface: #ffffff;
  --surface-2: #efece4;
  --text: #1c2433;
  --muted: #5d6676;
  --border: #e2ddd1;
  --brand: #1f2b42;
  --accent: #d99a2b;
  --accent-ink: #8a5a08;
  --on-brand: #ffffff;
  --shadow: 0 1px 2px rgba(28, 36, 51, .06), 0 8px 24px rgba(28, 36, 51, .06);
  --radius: 16px;
  --max: 1120px;
  --font-head: "Nunito", system-ui, "Segoe UI", sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #11161f;
    --surface: #18202c;
    --surface-2: #1f2836;
    --text: #e9ecf1;
    --muted: #a1aab8;
    --border: #2a3444;
    --brand: #0c1018;
    --accent: #f0b54a;
    --accent-ink: #f0b54a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); font-weight: 900; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 800; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; z-index: 99; background: var(--surface); padding: 8px 12px; border-radius: 8px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 900 1.15rem var(--font-head); }
.logo svg { width: 30px; height: 30px; flex: none; }
.nav { display: flex; gap: 4px; }
.nav a {
  color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem;
  padding: 8px 12px; border-radius: 10px;
}
.nav a:hover { background: var(--surface-2); }
.nav a[aria-current="page"] { background: var(--surface-2); color: var(--accent-ink); }
.menu-btn {
  display: none; background: none; border: 1px solid var(--border); color: var(--text);
  border-radius: 10px; padding: 8px 10px; font: inherit; cursor: pointer;
}
@media (max-width: 760px) {
  .menu-btn { display: block; }
  .nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; padding: 8px 16px 16px; background: var(--bg);
    border-bottom: 1px solid var(--border);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  font-weight: 700; padding: 12px 20px; border-radius: 12px; border: 1px solid var(--border);
  color: var(--text); background: var(--surface);
}
.btn:hover { border-color: var(--accent); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #1c1405; }
.btn-primary:hover { filter: brightness(1.05); }
.play-badge { display: inline-block; line-height: 0; }
.play-badge img { height: 62px; width: auto; margin: -9px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Hero */
.hero { padding: 72px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-block; font-weight: 800; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-ink); margin-bottom: 12px;
}
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 38ch; }
.hero-art { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 420px; justify-self: end; width: 100%; }
.hero-art img { border-radius: 22px; box-shadow: var(--shadow); border: 1px solid var(--border); aspect-ratio: 9 / 16; object-fit: cover; object-position: top; width: 100%; }
.hero-art img:nth-child(2) { margin-top: 40px; }
@media (max-width: 860px) {
  .hero { padding: 40px 0 32px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 32px; }
  .hero-art { max-width: 360px; justify-self: start; }
}

/* Sections */
section.block { padding: 56px 0; }
section.block.alt { background: var(--surface-2); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head p { margin: 0; color: var(--muted); }

/* Cards */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column;
}
.card-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body p { margin: 0; color: var(--muted); }
.card a.stretch { color: inherit; text-decoration: none; }
.card a.stretch:hover h3 { color: var(--accent-ink); }
.app-card .feature { aspect-ratio: 1024 / 500; object-fit: cover; width: 100%; }
.app-head { display: flex; gap: 14px; align-items: center; }
.app-head img { width: 56px; height: 56px; border-radius: 14px; }
.app-head h3 { margin: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px;
  background: var(--surface-2); color: var(--muted);
}
.card-foot { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: auto; padding-top: 8px; }

.post-card .meta { font-size: .85rem; color: var(--muted); }
.post-card .thumb { aspect-ratio: 16/8; object-fit: cover; width: 100%; }

/* Feature list */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; list-style: none; padding: 0; margin: 0; }
.features li { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px; }
.features strong { display: block; font-family: var(--font-head); font-size: 1.05rem; margin-bottom: 4px; }
.features span { color: var(--muted); font-size: .95rem; }
@media (max-width: 860px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .features { grid-template-columns: 1fr; } }

/* App page */
.app-hero { padding: 48px 0 32px; }
.app-hero .wrap { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; }
.app-hero .icon { width: 128px; height: 128px; border-radius: 28px; box-shadow: var(--shadow); }
.app-hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: .92rem; margin: 6px 0 18px; padding: 0; list-style: none; }
.facts li::before { content: "•"; color: var(--accent); margin-right: 8px; }
@media (max-width: 640px) {
  .app-hero .wrap { grid-template-columns: 1fr; }
  .app-hero .icon { width: 96px; height: 96px; border-radius: 22px; }
}
.banner { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); }
.shots {
  display: flex; gap: 16px; overflow-x: auto; padding: 4px 4px 16px; scroll-snap-type: x mandatory;
}
.shots img {
  height: 440px; width: auto; border-radius: 18px; border: 1px solid var(--border);
  scroll-snap-align: start; flex: none; background: var(--surface-2);
}
@media (max-width: 520px) { .shots img { height: 360px; } }

/* FAQ */
.faq details {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 4px 18px; margin-bottom: 10px;
}
.faq summary { cursor: pointer; font-weight: 700; padding: 12px 0; }
.faq details p { color: var(--muted); }

/* CTA */
.cta {
  background: var(--brand); color: var(--on-brand); border-radius: 22px;
  padding: 40px 32px; display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.cta h2 { color: #fff; margin-bottom: 6px; }
.cta p { margin: 0; color: #c8cfdb; }

/* Prose (articles, legal) */
.page-head { padding: 48px 0 8px; }
.page-head p { color: var(--muted); font-size: 1.1rem; max-width: 62ch; }
.prose { max-width: 720px; margin: 0 auto; padding: 0 16px 64px; }
.prose h2 { margin-top: 1.8em; font-size: 1.5rem; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }
.prose img { border-radius: 14px; border: 1px solid var(--border); margin: 1.4em 0; }
.prose figure { margin: 1.6em 0; }
.prose figure img { margin: 0 auto; max-height: 520px; width: auto; }
.prose figcaption { text-align: center; font-size: .88rem; color: var(--muted); margin-top: 8px; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: .95rem; }
.prose th, .prose td { border-bottom: 1px solid var(--border); padding: 10px 8px; text-align: left; vertical-align: top; }
.prose th { font-family: var(--font-head); }
.post-meta { color: var(--muted); font-size: .92rem; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.post-meta img { width: 28px; height: 28px; border-radius: 8px; margin: 0; border: 0; }
.callout {
  background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--accent);
  border-radius: 12px; padding: 16px 18px; margin: 1.4em 0;
}
.app-promo {
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 18px; margin: 2em 0;
}
.app-promo img { width: 64px; height: 64px; border-radius: 16px; margin: 0; border: 0; }
.app-promo div { flex: 1; min-width: 180px; }
.app-promo strong { font-family: var(--font-head); font-size: 1.1rem; }
.app-promo p { margin: 0; color: var(--muted); font-size: .95rem; }
.breadcrumb { font-size: .88rem; color: var(--muted); margin-bottom: 12px; }
.breadcrumb a { color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0 28px; margin-top: 24px; font-size: .93rem; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; }
.site-footer h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--accent-ink); }
.site-footer .legal { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--border); color: var(--muted); font-size: .85rem; }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } .site-footer .cols > div:first-child { grid-column: 1 / -1; } }
