/* Wasla landing. Brand colors and the Cairo font match apps/ops-web. Mobile first; logical properties for RTL and LTR. */
:root {
  --canvas: #f6f7f9;
  --surface: #ffffff;
  --line: #e3e6ea;
  --brand-50: #f0fdfa;
  --brand-100: #ccfbf1;
  --brand-600: #0d9488;
  --brand-700: #0f766e;
  --brand-800: #115e59;
  --ink-500: #6b7280;
  --ink-600: #4b5563;
  --ink-700: #374151;
  --ink-900: #111827;
  --warn-50: #fffbeb;
  --warn-200: #fde68a;
  --warn-800: #92400e;
  --radius: 14px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink-900);
  font-family: "Cairo", "Noto Sans Arabic", "Segoe UI", Tahoma, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  line-height: 1.35;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--brand-600);
  outline-offset: 2px;
}

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

.wrap.narrow {
  max-width: 760px;
}

.skip {
  position: absolute;
  inset-inline-start: 8px;
  top: -60px;
  background: var(--ink-900);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 20;
}

.skip:focus {
  top: 8px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
}

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

.brand img {
  border-radius: 9px;
}

.nav {
  display: none;
  gap: 22px;
  margin-inline-start: auto;
}

.nav a {
  color: var(--ink-700);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}

.nav a:hover {
  color: var(--brand-700);
}

.lang {
  margin-inline-start: auto;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-700);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--brand-700), var(--brand-600) 55%, #14b8a6);
  color: #fff;
  padding-block: 48px 56px;
}

.eyebrow {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 14px;
  font-weight: 600;
}

.hero h1 {
  margin-top: 18px;
  font-size: clamp(28px, 7vw, 46px);
  font-weight: 900;
  max-width: 18ch;
}

.lead {
  margin-top: 16px;
  max-width: 56ch;
  font-size: 18px;
  color: #e6fffa;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 24px;
  border: 1px solid transparent;
  border-radius: 12px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--brand-600);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-700);
}

.hero .btn-primary {
  background: #fff;
  color: var(--brand-800);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}

/* Sections */
.section {
  padding-block: 48px;
}

.section.alt {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.section h2 {
  font-size: clamp(23px, 5vw, 30px);
  font-weight: 900;
}

.section-lead {
  margin-top: 8px;
  color: var(--ink-600);
}

.cards,
.steps,
.checks {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.cards li,
.steps li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.section.alt .steps li {
  background: var(--canvas);
}

.cards h3,
.steps h3 {
  font-size: 18px;
  font-weight: 700;
}

.cards p,
.steps p {
  margin-top: 6px;
  color: var(--ink-600);
  font-size: 16px;
}

.steps {
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-inline-start: 72px;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  inset-inline-start: 18px;
  top: 20px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-600);
  color: #fff;
  font-weight: 900;
}

html[lang="ar"] .steps li::before {
  content: counter(step, arabic-indic);
}

/* Coverage table */
.table-box {
  margin-top: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 12px 16px;
  text-align: start;
  border-bottom: 1px solid var(--line);
}

thead th {
  background: var(--brand-50);
  color: var(--brand-800);
  font-size: 14px;
}

tbody th {
  font-weight: 600;
}

tbody td {
  font-weight: 700;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

tbody tr:last-child th,
tbody tr:last-child td {
  border-bottom: 0;
}

.note {
  margin-top: 14px;
  color: var(--ink-500);
  font-size: 15px;
}

/* Shopify */
.split {
  display: grid;
  gap: 24px;
}

.checks {
  gap: 10px;
}

.checks li {
  position: relative;
  padding-inline-start: 32px;
}

.checks li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 5px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brand-100)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%230f766e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 20px no-repeat;
}

.panel {
  align-self: start;
  display: grid;
  gap: 16px;
  padding: 24px;
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  border-radius: var(--radius);
}

/* Tracking form */
.track-form {
  margin-top: 20px;
}

.track-form label {
  display: block;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 6px;
}

.track-row {
  display: flex;
  gap: 10px;
}

.track-row input {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid #c4c9d0;
  border-radius: 12px;
  background: var(--surface);
  font: inherit;
  text-align: start;
}

/* Contact */
.contact {
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.contact-list {
  margin: 20px 0 0;
  display: grid;
  gap: 12px;
}

.contact-list div {
  padding: 16px 20px;
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.contact-list dt {
  color: var(--ink-500);
  font-size: 14px;
}

.contact-list dd {
  margin: 2px 0 0;
  font-weight: 700;
}

/* Open items */
.todo {
  display: inline-block;
  padding: 0 8px;
  border: 1px dashed var(--warn-800);
  border-radius: 6px;
  background: var(--warn-50);
  color: var(--warn-800);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.82em;
  font-weight: 600;
  overflow-wrap: anywhere;
}

/* Legal pages */
.legal {
  padding-block: 32px 56px;
}

.draft {
  padding: 12px 16px;
  background: var(--warn-50);
  border: 1px solid var(--warn-200);
  border-radius: 12px;
  color: var(--warn-800);
  font-weight: 700;
}

.legal h1 {
  margin-top: 24px;
  font-size: clamp(28px, 6vw, 38px);
  font-weight: 900;
}

.meta {
  margin-top: 8px;
  color: var(--ink-500);
  font-size: 15px;
}

.legal section {
  margin-top: 32px;
}

.legal h2 {
  font-size: 21px;
  font-weight: 700;
}

.legal p,
.legal ul {
  margin: 10px 0 0;
  color: var(--ink-700);
}

.legal ul {
  padding-inline-start: 22px;
}

.legal li + li {
  margin-top: 6px;
}

code {
  padding: 1px 6px;
  border-radius: 6px;
  background: #eceef1;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.88em;
  overflow-wrap: anywhere;
}

/* Footer */
.site-footer {
  background: var(--ink-900);
  color: #c4c9d0;
  padding-block: 28px;
  font-size: 15px;
}

.footer-row {
  display: grid;
  gap: 14px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.site-footer a {
  color: #fff;
}

@media (min-width: 720px) {
  .nav {
    display: flex;
  }

  .lang {
    margin-inline-start: 0;
  }

  .hero {
    padding-block: 80px 88px;
  }

  .section {
    padding-block: 72px;
  }

  .cards,
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .split {
    grid-template-columns: 3fr 2fr;
    align-items: center;
  }

  .contact-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-row {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

@media (min-width: 1000px) {
  .cards {
    grid-template-columns: repeat(4, 1fr);
  }
}

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