/* Bumelerze website — single shared stylesheet.
 * Tokens follow the app's design language (.claude/research/design-language.md):
 * dark as the primary theme, true-black OLED surfaces, Zagros Blue brand hue
 * pulled from src/theme/palette.ts (light #1F4E5F / dark #3E7C93), big type,
 * system font stack, no images, no frameworks. RTL locales (ckb, ar) rely on
 * dir="rtl" + the CSS logical properties used throughout — nothing here is
 * hard-coded left/right.
 */

:root {
  --surface-base: #000000;
  --surface-raised: #141414;
  --surface-sunken: #1e1e1e;
  --text-primary: #f2f2f3;
  --text-secondary: #a6a6aa;
  --border-default: #2a2a2c;
  --brand: #3e7c93;
  --brand-strong: #5ea3bb;
  --focus-ring: #5ea3bb;
}

@media (prefers-color-scheme: light) {
  :root {
    --surface-base: #ffffff;
    --surface-raised: #f7f7f8;
    --surface-sunken: #ededef;
    --text-primary: #161616;
    --text-secondary: #5b5b5e;
    --border-default: #e2e2e5;
    --brand: #1f4e5f;
    --brand-strong: #1f4e5f;
    --focus-ring: #1f4e5f;
  }
}

* {
  box-sizing: border-box;
}

html {
  font-size: 100%;
}

body {
  margin: 0;
  background: var(--surface-base);
  color: var(--text-primary);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans",
    "Noto Sans Arabic", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem; /* body.default floor: never small type */
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}

/* Arabic-script locales need taller line-height (design-language.md §2). */
html[dir="rtl"] body {
  line-height: 1.7;
}

main,
.site-header-inner,
.site-footer-inner {
  max-width: 44rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

main {
  padding-block: 1rem 3rem;
}

/* ---------- header ---------- */

.site-header {
  border-block-end: 1px solid var(--border-default);
  padding-block: 0.9rem;
}

.site-header-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.25rem;
}

.brand-link svg {
  color: var(--brand);
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  gap: 1.1rem;
  margin-inline-start: auto;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  padding-block: 0.35rem;
}

.site-nav a[aria-current="page"],
.site-nav a:hover {
  color: var(--text-primary);
}

/* ---------- language switcher ---------- */

.lang-switcher {
  border-block-end: 1px solid var(--border-default);
  background: var(--surface-raised);
}

.lang-switcher ul {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0.45rem 1.25rem;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  font-size: 0.95rem;
}

.lang-switcher a {
  color: var(--text-secondary);
  text-decoration: none;
  padding-block: 0.3rem;
  display: inline-block;
}

.lang-switcher a:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

.lang-switcher [aria-current="true"] {
  color: var(--brand-strong);
  font-weight: 700;
}

/* ---------- typography ---------- */

h1 {
  font-size: clamp(1.9rem, 5.5vw, 2.6rem);
  line-height: 1.25;
  margin-block: 1.4rem 0.5rem;
  letter-spacing: -0.01em;
}

html[dir="rtl"] h1 {
  line-height: 1.4;
  letter-spacing: 0;
}

h2 {
  font-size: 1.4rem;
  line-height: 1.3;
  margin-block: 2.2rem 0.6rem;
}

html[dir="rtl"] h2 {
  line-height: 1.45;
}

h3 {
  font-size: 1.15rem;
  margin-block: 1.4rem 0.4rem;
}

p,
li {
  color: var(--text-primary);
}

.lede {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 38rem;
  margin-block-start: 0;
}

a {
  color: var(--brand-strong);
}

:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Numbers, codes, and Latin technical terms inside RTL text must not be
 * reordered by the bidi algorithm. */
bdi,
.ltr-isolate {
  unicode-bidi: isolate;
  direction: ltr;
}

/* ---------- feature grid ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 0.9rem;
  padding: 0;
  margin-block: 1.8rem;
  list-style: none;
}

.features li {
  background: var(--surface-raised);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  padding: 1.1rem 1.2rem;
}

.features h3 {
  margin-block: 0 0.35rem;
  color: var(--brand-strong);
}

.features p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 1rem;
}

/* ---------- store badges (placeholders, not links) ---------- */

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-block: 1.2rem;
}

.store-badge {
  border: 1px solid var(--border-default);
  background: var(--surface-sunken);
  color: var(--text-secondary);
  border-radius: 10px;
  padding: 0.7rem 1.1rem;
  font-weight: 600;
  display: inline-flex;
  flex-direction: column;
  gap: 0.1rem;
}

.store-badge .soon {
  font-size: 0.85rem;
  font-weight: 400;
}

/* ---------- notes, contact, FAQ ---------- */

.note {
  background: var(--surface-raised);
  border: 1px solid var(--border-default);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  color: var(--text-secondary);
  font-size: 0.98rem;
}

.meta {
  color: var(--text-secondary);
  font-size: 0.98rem;
}

dl.faq dt {
  font-weight: 700;
  font-size: 1.15rem;
  margin-block-start: 1.6rem;
}

dl.faq dd {
  margin-inline-start: 0;
  margin-block-start: 0.4rem;
  color: var(--text-primary);
}

/* ---------- footer ---------- */

.site-footer {
  border-block-start: 1px solid var(--border-default);
  padding-block: 1.4rem 2.2rem;
  margin-block-start: 2rem;
}

.site-footer-inner {
  color: var(--text-secondary);
  font-size: 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.site-footer a {
  color: var(--text-secondary);
}

.site-footer a:hover {
  color: var(--text-primary);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
