/* Telalead — one-page site (2026-11-18). Navy and teal, light and dark by the device. */
:root {
  color-scheme: light dark;
  --bg: #f6f8fb;
  --card: #ffffff;
  --ink: #0f1b2d;
  --ink-2: #47566b;
  --line: #dde4ee;
  --accent: #0b7d6f;
  --accent-ink: #ffffff;
  --soft: #e3f4f1;
  --bubble-in: #eef1f6;
  --bubble-out: #d6f2ec;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c1420;
    --card: #131e2e;
    --ink: #eef2f8;
    --ink-2: #a7b4c7;
    --line: #25344a;
    --accent: #35c2ae;
    --accent-ink: #06231f;
    --soft: #12302d;
    --bubble-in: #1b2940;
    --bubble-out: #17403a;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Tajawal', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.75;
}

/* Two languages in one page: js/site.js sets data-l on <html>. */
html[data-l="ar"] .en,
html[data-l="en"] .ar {
  display: none;
}

.wrap {
  width: min(1040px, 100% - 32px);
  margin-inline: auto;
}

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

h1,
h2,
h3 {
  line-height: 1.3;
  margin: 0 0 12px;
}

h1 {
  font-size: clamp(1.9rem, 5vw, 3rem);
}

h2 {
  font-size: clamp(1.4rem, 3.4vw, 2rem);
}

h3 {
  font-size: 1.125rem;
}

p {
  margin: 0 0 12px;
  color: var(--ink-2);
}

.header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.25rem;
  text-decoration: none;
}

.brand svg {
  width: 34px;
  height: 34px;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn--sm {
  min-height: 40px;
  padding: 0 14px;
  font-size: 0.9375rem;
}

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

.hero {
  padding: 56px 0 40px;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.tag {
  display: inline-block;
  margin-bottom: 14px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 700;
}

.hero p {
  font-size: 1.125rem;
  max-width: 46ch;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.chat {
  position: relative;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
}

.chat__label {
  display: inline-block;
  margin-bottom: 10px;
  padding: 2px 10px;
  border: 1px dashed var(--ink-2);
  border-radius: 8px;
  color: var(--ink-2);
  font-size: 0.8125rem;
  font-weight: 700;
}

.msg {
  width: fit-content;
  max-width: 85%;
  margin: 0 0 8px;
  padding: 8px 14px;
  border-radius: 14px;
  background: var(--bubble-in);
  color: var(--ink);
  font-size: 0.9688rem;
}

.msg--out {
  margin-inline-start: auto;
  background: var(--bubble-out);
}

section {
  padding: 40px 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
}

.card p:last-child {
  margin-bottom: 0;
}

.step {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: var(--soft);
  color: var(--accent);
  font-weight: 800;
}

details {
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}

details + details {
  margin-top: 10px;
}

summary {
  cursor: pointer;
  font-weight: 700;
}

details p {
  margin: 10px 0 0;
}

.contact {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.contact a,
.contact span.v {
  display: block;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact a:hover {
  color: var(--accent);
}

.ltr {
  direction: ltr;
  unicode-bidi: isolate;
}

.footer {
  margin-top: 24px;
  padding: 24px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 0.9375rem;
}

.footer__in {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}

.legal {
  padding: 40px 0;
}

.legal h2 {
  margin-top: 28px;
  font-size: 1.25rem;
}

.legal ul {
  margin: 0 0 12px;
  padding-inline-start: 22px;
  color: var(--ink-2);
}

@media (max-width: 820px) {
  .hero__grid,
  .grid,
  .grid--3,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
