/* Tecages site: shared styles. No outside files, fonts or trackers. */
:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --text: #15233b;
  --muted: #55627a;
  --navy: #1c355e;
  --teal: #217882;
  --teal-soft: #e3f2f3;
  --line: #dfe5ee;
  --shadow: 0 1px 2px rgb(21 35 59 / 6%), 0 8px 24px rgb(21 35 59 / 6%);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1520;
    --surface: #142030;
    --text: #e6edf6;
    --muted: #a3b1c4;
    --navy: #cdd9ea;
    --teal: #6cc8d1;
    --teal-soft: #17323a;
    --line: #243246;
    --shadow: none;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Arabic", Tahoma, sans-serif;
}
[dir="rtl"] body, body[dir="rtl"] { font-size: 18px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

/* One language at a time; English until the script picks. */
html:not([data-lang="ar"]) [data-l="ar"],
html[data-lang="ar"] [data-l="en"] { display: none !important; }

.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 16px; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; margin-inline-end: auto; }
.brand .sym { height: 34px; width: auto; }
.brand .name { height: 22px; width: auto; }
.top nav { display: flex; align-items: center; gap: 4px; }
.top nav a {
  color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem;
  padding: 8px 10px; border-radius: 10px;
}
.top nav a:hover { background: var(--teal-soft); }
.lang {
  font: inherit; font-weight: 700; font-size: .95rem;
  color: var(--teal); background: transparent;
  border: 1.5px solid var(--teal); border-radius: 999px;
  padding: 5px 14px; cursor: pointer;
}
.lang:hover { background: var(--teal-soft); }
@media (max-width: 640px) {
  .top nav a { display: none; }
  .brand .name { height: 20px; }
}

/* Light and dark logo files */
.on-dark { display: none; }
@media (prefers-color-scheme: dark) {
  .on-light { display: none; }
  .on-dark { display: block; }
}

/* Sections */
section { padding: 56px 0; }
section + section { border-top: 1px solid var(--line); }
h1, h2, h3 { line-height: 1.25; color: var(--navy); }
h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 16px; letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); margin: 0 0 8px; }
h3 { font-size: 1.15rem; margin: 0 0 6px; }
[dir="rtl"] h1, [dir="rtl"] h2 { letter-spacing: 0; }
.lead { font-size: 1.15rem; color: var(--muted); margin: 0 0 28px; max-width: 36em; }
.eyebrow {
  display: inline-block; font-size: .85rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 12px;
}
[dir="rtl"] .eyebrow { letter-spacing: 0; text-transform: none; font-size: .95rem; }
.section-lead { color: var(--muted); margin: 0 0 32px; max-width: 40em; }

/* Hero */
.hero { padding: 64px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: center; }
.hero-logo {
  justify-self: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 32px;
  padding: 36px 32px; box-shadow: var(--shadow); width: min(100%, 360px);
}
.hero-icon { justify-self: center; width: min(100%, 220px); border-radius: 22%; box-shadow: var(--shadow); }
@media (max-width: 760px) {
  .hero { padding: 40px 0; }
  .hero .wrap { grid-template-columns: 1fr; gap: 28px; }
  .hero-logo { order: -1; width: min(100%, 260px); padding: 24px; border-radius: 24px; }
  .hero-icon { order: -1; justify-self: start; width: 112px; }
}

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 700; text-decoration: none;
  border: 1.5px solid var(--teal);
}
.btn.primary { background: var(--teal); color: #fff; }
@media (prefers-color-scheme: dark) { .btn.primary { color: #0d1520; } }
.btn.ghost { color: var(--teal); }
.btn.ghost:hover { background: var(--teal-soft); }
.btn[aria-disabled="true"] { background: var(--teal-soft); color: var(--teal); border-color: transparent; cursor: default; }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  padding: 22px 20px; box-shadow: var(--shadow);
}
.card p { margin: 0; color: var(--muted); }
.icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--teal-soft); color: var(--teal); margin-bottom: 14px;
}
.icon svg { width: 24px; height: 24px; }

/* App card */
.app {
  display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px;
  padding: 24px; box-shadow: var(--shadow);
}
.app img { width: 88px; height: 88px; border-radius: 22px; }
.app h3 { font-size: 1.35rem; margin-bottom: 2px; }
.app .sub { color: var(--muted); margin: 0 0 12px; }
.app p { margin: 0 0 16px; }
.links { display: flex; flex-wrap: wrap; gap: 8px 18px; font-weight: 600; }
.badge {
  display: inline-block; font-size: .8rem; font-weight: 700; color: var(--teal);
  background: var(--teal-soft); border-radius: 999px; padding: 2px 10px; margin-bottom: 8px;
}
@media (max-width: 520px) {
  .app { grid-template-columns: 1fr; }
  .app img { width: 72px; height: 72px; border-radius: 18px; }
}

/* Feature list */
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-inline-start: 30px; }
.ticks li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: .35em;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--teal-soft) no-repeat center / 12px
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23217882' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}

/* Screenshots: a row that scrolls sideways on its own, never the page. */
.shots {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(180px, 230px);
  gap: 16px; overflow-x: auto; padding: 4px 2px 16px; scroll-snap-type: x mandatory;
}
.shots img { border-radius: 18px; border: 1px solid var(--line); scroll-snap-align: start; }

/* Contact */
.contact {
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px;
  padding: 32px 24px; text-align: center; box-shadow: var(--shadow);
}
.contact p { color: var(--muted); margin: 0 auto 20px; max-width: 32em; }
.contact .actions { justify-content: center; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: .92rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
footer a { color: var(--muted); }
