/* صنعة | SAN3A — landing page. Mobile first, no external resources. */

@font-face {
  font-family: "Cairo";
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/cairo-arabic-400-normal.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200F, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: "Cairo";
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/cairo-arabic-700-normal.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200F, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: "Cairo";
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/cairo-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC;
}
@font-face {
  font-family: "Cairo";
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/cairo-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC;
}

:root {
  --bg: #0A0A0A;
  --surface: #141414;
  --line: #2A2A2A;
  --accent: #FF9500;
  --accent-strong: #FF7A00;
  --text: #FFFFFF;
  --muted: #B8B8B8;
  --radius: 12px;
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Cairo", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--accent); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.wrap {
  width: 100%;
  max-width: 960px;
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-right)) max(var(--gutter), env(safe-area-inset-left));
}

.skip {
  position: absolute;
  inset-inline-start: var(--gutter);
  top: -100px;
  padding: 8px 12px;
  background: var(--accent);
  color: var(--bg);
  border-radius: var(--radius);
  z-index: 1;
}
.skip:focus { top: 8px; }

/* Header */
.top { display: flex; align-items: center; padding-block: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.125rem; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.latin { letter-spacing: 0.04em; }
b { color: var(--accent); font-weight: 700; }

/* Hero */
.hero { text-align: center; padding-block: 24px 40px; }
.hero-icon { width: 112px; height: 112px; margin: 0 auto 16px; border-radius: 24px; }
h1 { font-size: 1.75rem; line-height: 1.4; margin: 0 0 12px; }
.slogan { color: var(--accent); font-weight: 700; font-size: 1.125rem; margin: 0 0 4px; }
.lead { color: var(--muted); margin: 0 0 24px; }

.actions { display: flex; flex-direction: column; gap: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 20px;
  border-radius: var(--radius);
  border: 2px solid var(--accent);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.btn-outline { background: transparent; color: var(--accent); }
.btn-outline:hover { background: rgba(255, 149, 0, 0.1); }
.btn.is-disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

/* Sections */
section { padding-block: 24px; }
h2 { font-size: 1.375rem; margin: 0 0 16px; }
h3 { font-size: 1.0625rem; margin: 0 0 4px; }
p { margin: 0 0 8px; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps li, .card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}
.steps p, .card p { color: var(--muted); margin: 0; }
.step-no {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 8px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
}

.cards { display: grid; gap: 12px; }
.card { border-inline-start: 4px solid var(--accent); }

/* FAQ */
.faq { display: grid; gap: 8px; }
details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 16px;
}
summary {
  cursor: pointer;
  font-weight: 700;
  padding-block: 14px;
  list-style-position: inside;
}
details[open] summary { color: var(--accent); }
details p { color: var(--muted); }
details > :last-child { margin-bottom: 16px; }

/* Footer */
.foot { padding-block: 32px; border-top: 1px solid var(--line); margin-top: 24px; text-align: center; color: var(--muted); font-size: 0.875rem; }
.foot nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 8px; }

/* Simple pages (privacy, terms) */
.page { min-height: 60vh; text-align: center; padding-block: 48px; }
.page .soon { color: var(--accent); font-size: 1.5rem; font-weight: 700; }

/* Legal pages (privacy, terms) */
.legal { max-width: 760px; padding-block: 16px 40px; }
.legal h1 { font-size: 1.625rem; }
.legal h2 { font-size: 1.1875rem; margin: 28px 0 8px; color: var(--accent); }
.legal p, .legal li { color: var(--text); }
.legal ul { padding-inline-start: 20px; margin: 0 0 8px; }
.legal li { margin-bottom: 6px; }
.draft {
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 16px;
  font-weight: 700;
}
.updated { color: var(--muted); font-size: 0.875rem; }
.tbd { color: var(--accent); font-weight: 700; white-space: nowrap; }
.back { display: inline-block; margin-block: 8px; font-weight: 700; }

@media (min-width: 640px) {
  h1 { font-size: 2.25rem; }
  .actions { flex-direction: row; justify-content: center; }
  .steps, .cards { grid-template-columns: repeat(3, 1fr); }
}

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