/* Static content pages (guides, tools, instruments). Matches the app's dark brand. */
:root {
  --bg: #0e0e12;
  --surface: #16171c;
  --surface-2: #1d1e24;
  --line: rgba(255, 255, 255, 0.08);
  --text: #e8e8ed;
  --muted: #a0a0ab;
  --accent: #ff9f0a;
  --accent-ink: #1a1206;
  --link: #8fb4ff;
  --radius: 14px;
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, 'Helvetica Neue', 'Noto Sans Arabic', sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-underline-offset: 2px; }
a:hover { color: #b9d0ff; }
img, svg { display: inline-block; vertical-align: middle; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: linear-gradient(90deg, #121317 0%, #161714 45%, #1c1d1a 100%);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  max-width: 1120px; margin: 0 auto; padding: 10px 16px;
  display: flex; align-items: center; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 650; font-size: 18px; letter-spacing: -0.01em; }
.site-nav { display: flex; gap: 18px; margin-inline-start: auto; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.site-nav a:hover { color: var(--text); }
@media (max-width: 720px) { .site-nav { display: none; } .site-header .btn { margin-inline-start: auto; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: 16px;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
}
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: #ffb340; color: var(--accent-ink); }
.btn--sm { padding: 7px 14px; font-size: 14px; }

/* Layout */
.page { max-width: 820px; margin: 0 auto; padding: 24px 16px 48px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--muted); }
.crumbs li + li::before { content: '›'; margin-inline-end: 6px; color: #6e6e73; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }

.hero { padding: 28px 0 8px; }
.hero h1 { font-size: clamp(30px, 5vw, 44px); line-height: 1.12; letter-spacing: -0.02em; margin-bottom: 14px; }
.lead { font-size: 19px; color: #d0d0d8; max-width: 66ch; }
.hero__fine { margin-top: 10px; font-size: 14px; color: var(--muted); }

.uploader { margin-top: 24px; }
.uploader__zone {
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
  padding: 30px 16px; border: 1.5px dashed rgba(255, 159, 10, 0.55); border-radius: var(--radius);
  background: radial-gradient(120% 140% at 50% 0%, rgba(255, 159, 10, 0.09), transparent 60%), var(--surface);
  cursor: pointer; transition: border-color .15s, background-color .15s;
}
.uploader__zone:hover, .uploader__zone.is-over { border-color: var(--accent); background-color: var(--surface-2); }
.uploader__zone.is-busy { opacity: .6; pointer-events: none; }
.uploader__icon { color: var(--accent); }
.uploader__title { font-weight: 650; font-size: 18px; }
.uploader__hint { color: var(--muted); font-size: 14px; }

/* Long-form content */
.prose { margin-top: 28px; }
.prose > * + * { margin-top: 16px; }
.prose h2 { font-size: 26px; line-height: 1.25; letter-spacing: -0.01em; margin-top: 40px; }
.prose h3 { font-size: 20px; margin-top: 28px; }
.prose ul, .prose ol { padding-inline-start: 1.4em; }
.prose li + li { margin-top: 6px; }
.prose strong { color: #f2f2f7; }
.prose code { font: 0.92em 'SF Mono', ui-monospace, Menlo, Consolas, monospace; background: var(--surface-2); padding: 1px 6px; border-radius: 6px; }
.prose blockquote { border-inline-start: 3px solid var(--accent); padding: 4px 16px; color: #d0d0d8; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; }
.prose th, .prose td { text-align: start; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--surface); font-weight: 650; }
.prose tr:last-child td { border-bottom: 0; }
.callout { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }

.steps { counter-reset: step; list-style: none; padding: 0 !important; }
.steps li { counter-increment: step; position: relative; padding-inline-start: 48px; min-height: 36px; }
.steps li::before {
  content: counter(step); position: absolute; inset-inline-start: 0; top: 0;
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 159, 10, 0.14); color: var(--accent); font-weight: 700;
}

.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; float: inline-end; color: var(--muted); font-weight: 400; }
.faq details[open] summary::after { content: '–'; }
.faq__a { margin-top: 8px; color: #d0d0d8; }
.faq__a > * + * { margin-top: 10px; }

.related { margin-top: 48px; }
.related h2 { font-size: 22px; margin-bottom: 14px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.card {
  display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--text);
}
.card:hover { border-color: rgba(255, 159, 10, 0.5); color: var(--text); }
.card__title { font-weight: 650; }
.card__text { color: var(--muted); font-size: 14px; line-height: 1.5; }

.cta-band {
  margin-top: 48px; padding: 28px 20px; text-align: center; border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(47, 111, 224, 0.18), rgba(255, 159, 10, 0.14));
  border: 1px solid var(--line);
}
.cta-band h2 { font-size: 24px; }
.cta-band p { color: #d0d0d8; margin: 8px 0 18px; }
.updated { margin-top: 28px; font-size: 13px; color: #6e6e73; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: #0b0b0f; }
.site-footer__inner { max-width: 1120px; margin: 0 auto; padding: 36px 16px 28px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 24px; }
.footer-col h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 10px; }
.footer-col ul { list-style: none; }
.footer-col li + li { margin-top: 6px; }
.footer-col a, .footer-langs a { color: #c7c7cc; text-decoration: none; font-size: 14px; }
.footer-col a:hover, .footer-langs a:hover { color: var(--text); }
.footer-langs { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 14px; }
.footer-note { margin-top: 16px; font-size: 13px; color: #6e6e73; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
