/* Tecages site: shared styles. No outside files, fonts or trackers. */
:root {
  --bg: #ffffff;
  --bg-alt: #f4f7fa;
  --surface: #ffffff;
  --text: #13213a;
  --muted: #56647b;
  --heading: #13294b;
  --teal: #1d717b;
  --teal-soft: #e3f1f2;
  --line: #e1e7ef;
  --shadow: 0 1px 2px rgb(19 33 58 / 5%), 0 10px 30px rgb(19 33 58 / 7%);
  /* The navy bands (hero, call to action, footer) look the same in both modes. */
  --band: #0f2340;
  --band-2: #12384c;
  --on-band: #eef3f9;
  --on-band-muted: #aebdd0;
  --band-accent: #6cc8d1;
  --band-line: rgb(255 255 255 / 12%);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b121c;
    --bg-alt: #0f1825;
    --surface: #131e2d;
    --text: #e4ebf4;
    --muted: #a2b0c3;
    --heading: #eef3f9;
    --teal: #6cc8d1;
    --teal-soft: #15303a;
    --line: #22314a;
    --shadow: none;
    --band: #0c1a2e;
    --band-2: #0f2d3b;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Arabic", Tahoma, sans-serif;
}
html[dir="rtl"] body { font-size: 18px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); }
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px;
}
.band a:focus-visible, .band button:focus-visible, footer a:focus-visible { outline-color: var(--band-accent); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Read by screen readers only. */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* 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: 1120px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 780px; }
@media (max-width: 520px) { .wrap { padding: 0 16px; } }

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

/* ---------- Header ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 12px; min-height: 68px; }
.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: 2px; }
.top nav a {
  color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem;
  padding: 8px 12px; border-radius: 10px;
}
.top nav a:hover { background: var(--teal-soft); color: var(--teal); }
.top nav a[aria-current="page"] { color: var(--teal); }
.lang {
  font: inherit; font-weight: 700; font-size: .92rem; line-height: 1;
  color: var(--teal); background: transparent;
  border: 1.5px solid var(--teal); border-radius: 999px;
  padding: 8px 14px; cursor: pointer;
}
.lang:hover { background: var(--teal-soft); }
.menu-btn {
  display: none; width: 42px; height: 42px; padding: 0; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface); color: var(--heading); cursor: pointer;
}
.menu-btn svg { width: 22px; height: 22px; margin: auto; }
.menu-btn .close, .top.open .menu-btn .open { display: none; }
.top.open .menu-btn .close { display: block; }
@media (max-width: 860px) {
  .menu-btn { display: grid; }
  .top nav {
    display: none; position: absolute; inset-inline: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px 16px 16px; box-shadow: var(--shadow);
  }
  .top.open nav { display: flex; }
  .top nav a { padding: 12px; font-size: 1rem; }
  .brand .name { height: 20px; }
}

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section.alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
@media (max-width: 760px) { .section { padding: 60px 0; } }
h1, h2, h3 { line-height: 1.22; color: var(--heading); }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.2rem); font-weight: 800; margin: 0 0 18px; letter-spacing: -.02em; }
h2 { font-size: clamp(1.65rem, 3.6vw, 2.35rem); font-weight: 800; margin: 0 0 12px; letter-spacing: -.015em; }
h3 { font-size: 1.15rem; margin: 0 0 6px; }
html[dir="rtl"] h1, html[dir="rtl"] h2 { letter-spacing: 0; line-height: 1.35; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 12px;
}
html[dir="rtl"] .eyebrow { letter-spacing: 0; text-transform: none; font-size: .95rem; }
.lead { font-size: 1.15rem; color: var(--muted); margin: 0 0 30px; max-width: 36em; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin: 0; }

/* ---------- Navy bands ---------- */
.band {
  color: var(--on-band);
  background:
    radial-gradient(60% 80% at 85% 20%, rgb(108 200 209 / 18%), transparent 70%),
    radial-gradient(50% 60% at 10% 100%, rgb(64 120 194 / 18%), transparent 70%),
    linear-gradient(160deg, var(--band), var(--band-2));
  position: relative; overflow: hidden;
}
.band h1, .band h2, .band h3 { color: #fff; }
.band .lead, .band p { color: var(--on-band-muted); }
.band .eyebrow { color: var(--band-accent); }
.grid-bg::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgb(255 255 255 / 4%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 4%) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, #000, transparent 85%);
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 85%);
}

/* ---------- Hero ---------- */
.hero { padding: 96px 0 104px; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.2fr .9fr; gap: 48px; align-items: center; }
.hero-art { width: 100%; max-width: 500px; justify-self: end; }
.points { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .95rem; }
.points li { display: flex; align-items: center; gap: 8px; }
.points li::before {
  content: ""; width: 18px; height: 18px; flex: none; border-radius: 50%;
  background: rgb(108 200 209 / 18%) no-repeat center / 11px
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236cc8d1' 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");
}
.band .points li { color: var(--on-band); }
@media (max-width: 860px) {
  .hero { padding: 64px 0 72px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { justify-self: center; max-width: 420px; }
}

/* App hero: light, with the app's icon and a screenshot. */
.app-hero {
  padding: 72px 0 80px;
  background:
    radial-gradient(55% 70% at 90% 10%, color-mix(in srgb, var(--teal) 14%, transparent), transparent 70%),
    var(--bg-alt);
  border-bottom: 1px solid var(--line);
}
.app-hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.app-title { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.app-title img { width: 84px; height: 84px; border-radius: 22%; box-shadow: var(--shadow); }
.app-title h1 { margin: 0; }
.app-title p { margin: 2px 0 0; color: var(--muted); font-weight: 600; }
.app-hero .points li { color: var(--text); }
.app-hero .points li::before { background-color: var(--teal-soft); }
.phone-shot { justify-self: center; width: min(100%, 300px); border-radius: 26px; filter: drop-shadow(0 18px 40px rgb(19 33 58 / 22%)); }
@media (max-width: 860px) {
  .app-hero { padding: 48px 0 56px; }
  .app-hero .wrap { grid-template-columns: 1fr; gap: 36px; }
  .phone-shot { width: min(100%, 260px); }
}
@media (max-width: 420px) { .app-title img { width: 64px; height: 64px; } }

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px; border-radius: 12px;
  font-weight: 700; text-decoration: none; border: 1.5px solid var(--teal);
  transition: background-color .15s, border-color .15s, transform .15s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn.primary { background: var(--teal); color: #fff; }
.btn.primary:hover { background: color-mix(in srgb, var(--teal) 86%, #000); }
@media (prefers-color-scheme: dark) {
  .btn.primary { color: #0b121c; }
  .btn.primary:hover { background: color-mix(in srgb, var(--teal) 86%, #fff); }
}
.btn.ghost { color: var(--teal); background: transparent; }
.btn.ghost:hover { background: var(--teal-soft); }
.btn[aria-disabled="true"] { background: var(--teal-soft); color: var(--teal); border-color: transparent; cursor: default; }
.band .btn.primary { background: var(--band-accent); border-color: var(--band-accent); color: #0b1c30; }
.band .btn.primary:hover { background: #8bd6dd; }
.band .btn.ghost { color: #fff; border-color: rgb(255 255 255 / 35%); }
.band .btn.ghost:hover { background: rgb(255 255 255 / 8%); }
html[dir="rtl"] .btn .arrow { transform: scaleX(-1); }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 20px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .grid-4 { grid-template-columns: 1fr; } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  padding: 26px 24px; box-shadow: var(--shadow);
}
.card p { margin: 0; color: var(--muted); }
.icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: var(--teal-soft); color: var(--teal); margin-bottom: 18px;
}
.icon svg { width: 24px; height: 24px; }

/* Steps */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { position: relative; }
.steps .num {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--teal); color: #fff; font-weight: 800; margin-bottom: 16px;
}
@media (prefers-color-scheme: dark) { .steps .num { color: #0b121c; } }
@media (min-width: 981px) {
  .steps li:not(:last-child)::after {
    content: ""; position: absolute; top: 46px; inset-inline-start: calc(24px + 40px + 12px);
    inset-inline-end: -21px; height: 2px; background: linear-gradient(90deg, var(--teal-soft), var(--line));
  }
}

/* ---------- Product showcase (home) ---------- */
.showcase {
  display: grid; grid-template-columns: 1.2fr .8fr; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px;
  box-shadow: var(--shadow); overflow: hidden;
}
.showcase-text { padding: 44px 44px; }
.showcase-media {
  align-self: stretch; display: grid; place-items: end center; padding: 40px 32px 0;
  background:
    radial-gradient(70% 60% at 50% 30%, rgb(108 200 209 / 30%), transparent 75%),
    linear-gradient(160deg, var(--band), var(--band-2));
}
.showcase-media img { width: min(100%, 260px); border-radius: 18px 18px 0 0; }
.app-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.app-head img { width: 64px; height: 64px; border-radius: 22%; }
.app-head h3 { font-size: 1.5rem; margin: 0; }
.app-head p { margin: 0; color: var(--muted); }
.showcase-text > p { color: var(--muted); margin: 0 0 18px; }
.showcase .ticks { margin-bottom: 28px; }
.text-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 18px; font-weight: 600; font-size: .95rem; }
.badge {
  display: inline-block; font-size: .8rem; font-weight: 700; color: var(--teal);
  background: var(--teal-soft); border-radius: 999px; padding: 3px 12px; margin-bottom: 14px;
}
@media (max-width: 860px) {
  .showcase { grid-template-columns: 1fr; }
  .showcase-text { padding: 28px 24px; }
  .showcase-media { padding: 32px 24px 0; }
  .showcase-media img { width: min(100%, 220px); }
}

/* 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: .32em;
  width: 19px; height: 19px; 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='%231d717b' 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: three across; on phones a row that scrolls sideways on its own, never the page. */
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; max-width: 900px; margin: 0 auto; }
.shots img { border-radius: 20px; border: 1px solid var(--line); box-shadow: var(--shadow); }
@media (max-width: 760px) {
  .shots {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 70%;
    overflow-x: auto; padding: 4px 2px 16px; scroll-snap-type: x mandatory; gap: 16px;
  }
  .shots img { scroll-snap-align: center; }
}

/* Highlight box (privacy promise on the app page) */
.highlight {
  display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px;
  padding: 32px; box-shadow: var(--shadow);
}
.highlight .icon { margin: 0; width: 56px; height: 56px; }
.highlight h2 { font-size: 1.5rem; margin-bottom: 6px; }
.highlight p { margin: 0; color: var(--muted); }
@media (max-width: 860px) { .highlight { grid-template-columns: 1fr; padding: 26px 22px; } }

/* ---------- Call to action band ---------- */
.cta { padding: 80px 0; text-align: center; }
.cta .wrap { position: relative; max-width: 720px; }
.cta p { font-size: 1.1rem; margin: 0 0 28px; }
.cta .actions { justify-content: center; }
.cta small { display: block; margin-top: 18px; color: var(--on-band-muted); font-size: .92rem; }

/* ---------- Documents (privacy policy, support) ---------- */
.doc-head { background: var(--bg-alt); border-bottom: 1px solid var(--line); padding: 48px 0 36px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: .92rem; color: var(--muted); margin-bottom: 10px; }
.crumbs a { color: var(--muted); text-decoration: none; font-weight: 600; }
.crumbs a:hover { color: var(--teal); }
.crumbs span[aria-hidden] { opacity: .6; display: inline-block; }
html[dir="rtl"] .crumbs span[aria-hidden] { transform: scaleX(-1); }
.doc-head h1 { font-size: clamp(1.9rem, 4.4vw, 2.6rem); margin: 0 0 6px; }
.doc-head p { margin: 0; color: var(--muted); }
.doc { padding: 40px 0 88px; }
.doc h2 { font-size: 1.3rem; margin: 40px 0 10px; letter-spacing: 0; }
.doc p, .doc ul { margin: 0 0 14px; }
.doc ul { padding-inline-start: 22px; }
.doc li { margin-bottom: 8px; }
.doc .summary {
  border-inline-start: 4px solid var(--teal); border-radius: 10px;
  background: var(--teal-soft); padding: 14px 18px; font-weight: 600; color: var(--heading);
}
.doc .contact {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  padding: 22px 24px; box-shadow: var(--shadow); margin-bottom: 8px;
}
.doc .contact p:last-child { margin-bottom: 0; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; padding: 0; list-style: none; }
.toc a {
  display: inline-block; padding: 7px 14px; border-radius: 999px; font-weight: 600; font-size: .92rem;
  text-decoration: none; color: var(--teal); background: var(--teal-soft);
}
.toc a:hover { background: color-mix(in srgb, var(--teal) 20%, transparent); }
.doc details {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 0; margin-bottom: 10px;
}
.doc summary {
  cursor: pointer; font-weight: 700; color: var(--heading); padding: 16px 20px;
  list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.doc summary::-webkit-details-marker { display: none; }
.doc summary::after {
  content: ""; flex: none; width: 10px; height: 10px; margin-top: -4px;
  border-right: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(45deg);
  transition: transform .15s;
}
.doc details[open] summary::after { transform: rotate(225deg); margin-top: 4px; }
.doc details > :not(summary) { margin: 0 20px 16px; }
.doc details ul { padding-inline-start: 40px; margin-inline-start: 0; }

/* ---------- Footer ---------- */
footer { color: var(--on-band-muted); background: var(--band); font-size: .95rem; }
footer .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; padding: 56px 0 40px; }
footer .brand { margin-bottom: 14px; }
footer p { margin: 0; max-width: 26em; }
footer h2 { font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: #fff; margin: 0 0 14px; }
html[dir="rtl"] footer h2 { letter-spacing: 0; font-size: .95rem; }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
footer a { color: var(--on-band); text-decoration: none; }
footer a:hover { color: var(--band-accent); text-decoration: underline; }
footer .bottom {
  border-top: 1px solid var(--band-line); padding: 20px 0 28px;
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: .88rem;
}
@media (max-width: 760px) { footer .cols { grid-template-columns: 1fr 1fr; } footer .about { grid-column: 1 / -1; } }

/* Not found page */
.not-found { padding: 112px 0; text-align: center; }
.not-found .code { font-size: 1rem; font-weight: 800; color: var(--teal); letter-spacing: .2em; margin-bottom: 8px; }
.not-found .lead { margin-inline: auto; }
.not-found .actions { justify-content: center; }
