/* Tech Watt — shared styles for the legal/landing static site.
   Self-contained, no external frameworks or CDNs. */

:root {
  --brand-1: #2b6fff;
  --brand-2: #7c5cff;
  --ink: #1c2430;
  --muted: #5b6675;
  --line: #e7eaf0;
  --bg: #f5f7fb;
  --card: #ffffff;
  --link: #2b6fff;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(20, 30, 60, 0.08);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: 'Segoe UI', Tahoma, 'Helvetica Neue', Arial, system-ui,
    -apple-system, 'Noto Naskh Arabic', 'Noto Sans Arabic', sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* ---------- Header / brand bar ---------- */
.topbar {
  background: linear-gradient(120deg, var(--brand-1), var(--brand-2));
  color: #fff;
  box-shadow: 0 8px 24px rgba(43, 111, 255, 0.22);
}

.topbar-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.2px;
  color: #fff;
  text-decoration: none;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #0b1020;
  padding: 4px;
  object-fit: contain;
}

.lang-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font: inherit;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.lang-btn:hover { background: rgba(255, 255, 255, 0.26); }

/* ---------- Page nav ---------- */
.nav {
  max-width: 760px;
  margin: 0 auto;
  padding: 14px 20px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  font-size: 0.92rem;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 4px 2px;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--brand-1); }
.nav a.active {
  color: var(--brand-1);
  border-bottom-color: var(--brand-1);
  font-weight: 700;
}
.nav .sep { color: var(--line); }

/* ---------- Main card ---------- */
main {
  max-width: 760px;
  margin: 18px auto 36px;
  padding: 0 20px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 26px;
}

h1 {
  margin: 0 0 6px;
  font-size: 1.7rem;
  line-height: 1.3;
  font-weight: 900;
}

.updated {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

.intro {
  margin: 0 0 18px;
  font-size: 1.02rem;
}

section.doc { margin-bottom: 8px; }

h2 {
  font-size: 1.12rem;
  margin: 22px 0 6px;
  font-weight: 800;
  color: var(--ink);
}

p { margin: 0 0 12px; }

hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 26px 0 18px;
}

.contact-line { margin: 0 0 8px; }

.email-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  text-decoration: none;
  color: var(--brand-1);
  padding: 4px 0;
}
.email-link:hover { text-decoration: underline; }
.email-link .ico { font-size: 1.05rem; }

/* ---------- Landing-specific ---------- */
.hero {
  text-align: center;
  padding: 6px 0 2px;
}
.hero .logo-lg {
  width: 76px;
  height: 76px;
  border-radius: 18px;
  background: #0b1020;
  padding: 8px;
  object-fit: contain;
  margin: 4px auto 12px;
  display: block;
}
.hero .tagline {
  color: var(--muted);
  font-size: 1.08rem;
  margin: 4px 0 22px;
}
.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 4px 0 26px;
}
.badge {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 18px;
  min-width: 175px;
  text-align: center;
  background: #fafbff;
}
.badge .store { font-weight: 700; font-size: 0.98rem; }
.badge .soon {
  display: inline-block;
  margin-top: 5px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(120deg, var(--brand-1), var(--brand-2));
  padding: 2px 10px;
  border-radius: 999px;
}
.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 8px;
}
.tile {
  display: block;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 14px;
  text-align: center;
  background: #fff;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.tile:hover {
  border-color: var(--brand-1);
  transform: translateY(-2px);
}
.tile .t-title { font-weight: 700; }
.tile .t-sub { font-size: 0.82rem; color: var(--muted); margin-top: 2px; }

/* ---------- Footer ---------- */
footer {
  max-width: 760px;
  margin: 0 auto;
  padding: 4px 20px 40px;
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
}
footer .built a {
  color: var(--brand-1);
  font-weight: 700;
  text-decoration: none;
}
footer .built a:hover { text-decoration: underline; }
footer .built .label { display: block; color: var(--muted); margin-bottom: 1px; }
footer .meta { margin-top: 10px; }
footer .meta a { color: var(--brand-1); text-decoration: none; }
footer .meta a:hover { text-decoration: underline; }
footer .copy { margin-top: 6px; }

/* ---------- Language toggle visibility ---------- */
[data-lang] { display: none; }
html[lang="ar"] [data-lang="ar"] { display: revert; }
html[lang="en"] [data-lang="en"] { display: revert; }
html[lang="ar"] span[data-lang="ar"],
html[lang="en"] span[data-lang="en"] { display: inline; }

/* ---------- Responsive ---------- */
@media (max-width: 540px) {
  .card { padding: 22px 18px; }
  h1 { font-size: 1.45rem; }
  .tiles { grid-template-columns: 1fr; }
}
