/* Rekobah website — one stylesheet for every page. Arabic, RTL, mobile first. */
:root {
  --teal: #0e7c66;
  --teal-deep: #00614f;
  --teal-ink: #0b3d36;
  --mint: #e6f7f2;
  --yellow: #f9a825;
  --yellow-soft: #fff4dc;
  --ink: #12211e;
  --muted: #5f6b68;
  --bg: #f7f5f0;
  --card: #ffffff;
  --line: #e3e7e2;
  --danger: #c62828;
  --shadow: 0 10px 30px rgba(18, 33, 30, 0.08);
  --radius: 22px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --teal: #34d3a9;
    --teal-deep: #1fae8a;
    --teal-ink: #0a2621;
    --mint: #12302a;
    --yellow: #ffb938;
    --yellow-soft: #2d2410;
    --ink: #e8f0ed;
    --muted: #9fb1ac;
    --bg: #0e1513;
    --card: #15201d;
    --line: #24332f;
    --danger: #ff6b6b;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Cairo", "Segoe UI", Tahoma, sans-serif;
  font-size: 17px;
  line-height: 1.8;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; inset-inline-start: -999px; }
.skip:focus { inset-inline-start: 16px; top: 8px; z-index: 99; background: var(--card); padding: 8px 14px; border-radius: 10px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 14px; min-height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 900; font-size: 1.35rem; }
.brand img { width: 40px; height: 40px; border-radius: 12px; }
.nav { margin-inline-start: auto; display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 700; font-size: .95rem; padding: 8px 12px; border-radius: 999px; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--mint); color: var(--teal); }
.menu-btn { display: none; margin-inline-start: auto; background: none; border: 1px solid var(--line); border-radius: 12px; width: 44px; height: 44px; color: var(--ink); cursor: pointer; }
.menu-btn svg { width: 22px; height: 22px; }

@media (max-width: 860px) {
  .menu-btn { display: grid; place-items: center; }
  .nav { display: none; position: absolute; top: 66px; inset-inline: 0; flex-direction: column; align-items: stretch; gap: 0;
         background: var(--card); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 12px; border-radius: 12px; }
  .nav .btn { margin-top: 8px; justify-content: center; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  font: inherit; font-weight: 800; text-decoration: none; cursor: pointer;
  border-radius: 16px; padding: 12px 22px; border: 2px solid transparent; transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--yellow); color: #12211e; box-shadow: 0 8px 20px rgba(249, 168, 37, .35); }
.btn-dark { background: var(--teal); color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--card); }
.btn[aria-disabled="true"] { cursor: default; opacity: .92; }
.btn[aria-disabled="true"]:hover { transform: none; }
.btn small { display: block; font-size: .72rem; font-weight: 700; opacity: .8; line-height: 1.2; }
.btn .stack { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.25; }
.btn svg { width: 24px; height: 24px; flex: none; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 56px 0 40px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset-inline-end: -220px; top: -260px; width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--teal) 22%, transparent), transparent 65%);
  pointer-events: none;
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; position: relative; }
.pill { display: inline-flex; align-items: center; gap: 8px; background: var(--yellow-soft); color: color-mix(in srgb, var(--yellow) 55%, var(--ink));
        font-weight: 800; font-size: .88rem; padding: 6px 14px; border-radius: 999px; }
.hero h1 { font-size: clamp(2rem, 5.2vw, 3.4rem); line-height: 1.25; margin: 16px 0 14px; font-weight: 900; letter-spacing: -.5px; }
.hero h1 em { font-style: normal; color: var(--teal); }
.hero p.lead { font-size: 1.12rem; color: var(--muted); margin: 0 0 26px; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; color: var(--muted); font-weight: 700; font-size: .92rem; padding: 0; list-style: none; }
.trust li { display: flex; align-items: center; gap: 6px; }
.trust svg { width: 18px; height: 18px; color: var(--teal); }

@media (max-width: 860px) {
  .hero { padding-top: 32px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- phone mockup (pure CSS illustration) ---------- */
.phone {
  width: min(320px, 82vw); aspect-ratio: 9 / 18.5; margin: 0 auto; position: relative;
  border-radius: 42px; background: #12211e; padding: 12px; box-shadow: 0 30px 60px rgba(18, 33, 30, .28);
}
.screen { position: relative; width: 100%; height: 100%; border-radius: 32px; overflow: hidden; background: #e8efe9; }
.map {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, transparent 47%, #fff 47%, #fff 53%, transparent 53%) 0 0 / 120px 120px,
    linear-gradient(0deg, transparent 47%, #fff 47%, #fff 53%, transparent 53%) 0 0 / 120px 120px,
    linear-gradient(30deg, transparent 48%, #fff 48%, #fff 51%, transparent 51%) 0 0 / 260px 260px,
    #dfe9e2;
}
.route { position: absolute; inset: 0; width: 100%; height: 100%; }
.pin { position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 4px solid #fff; box-shadow: 0 3px 8px rgba(0,0,0,.25); }
.pin.a { background: #0e7c66; top: 24%; right: 26%; }
.pin.b { background: #c62828; top: 56%; right: 64%; }
.tuk { position: absolute; top: 37%; right: 40%; width: 42px; height: 42px; border-radius: 12px; background: #f9a825; display: grid; place-items: center;
       box-shadow: 0 6px 14px rgba(0,0,0,.25); }
.tuk svg { width: 26px; height: 26px; }
.sheet { position: absolute; inset-inline: 10px; bottom: 10px; background: #fff; color: #12211e; border-radius: 22px; padding: 14px 14px 12px; box-shadow: 0 -4px 20px rgba(0,0,0,.08); }
.sheet .row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sheet .t { font-weight: 900; font-size: .95rem; }
.sheet .s { color: #5f6b68; font-size: .78rem; }
.sheet .fare { font-weight: 900; color: #0e7c66; font-size: 1.25rem; direction: ltr; }
.sheet .go { margin-top: 10px; background: #0e7c66; color: #fff; text-align: center; font-weight: 900; border-radius: 14px; padding: 9px; font-size: .9rem; }
.sheet .chip { display: inline-block; background: #e6f7f2; color: #0e7c66; font-weight: 800; font-size: .72rem; border-radius: 999px; padding: 2px 10px; }
.mock-note { text-align: center; color: var(--muted); font-size: .8rem; margin-top: 12px; }

/* ---------- sections ---------- */
section.block { padding: 64px 0; }
section.block.alt { background: var(--card); border-block: 1px solid var(--line); }
.head { text-align: center; max-width: 680px; margin: 0 auto 34px; }
.head .kicker { color: var(--teal); font-weight: 900; font-size: .9rem; letter-spacing: .3px; }
.head h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); line-height: 1.35; margin: 6px 0 10px; font-weight: 900; }
.head p { color: var(--muted); margin: 0; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; padding: 0; list-style: none; margin: 0; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: relative; }
.alt .steps li { background: var(--bg); }
.steps li::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: var(--yellow); color: #12211e; font-weight: 900; margin-bottom: 12px;
}
.steps h3 { margin: 0 0 6px; font-size: 1.12rem; }
.steps p { margin: 0; color: var(--muted); font-size: .97rem; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.alt .card { background: var(--bg); }
.card .ic { width: 48px; height: 48px; border-radius: 15px; background: var(--mint); color: var(--teal); display: grid; place-items: center; margin-bottom: 12px; }
.card .ic svg { width: 26px; height: 26px; }
.card h3 { margin: 0 0 6px; font-size: 1.08rem; }
.card p { margin: 0; color: var(--muted); font-size: .96rem; }

@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid, .steps { grid-template-columns: 1fr; } section.block { padding: 48px 0; } }

/* safety band */
.band { background: linear-gradient(135deg, var(--teal-ink), #14806f); color: #fff; border-radius: 30px; padding: 40px 28px; position: relative; overflow: hidden; }
.band::after { content: ""; position: absolute; inset-inline-start: -120px; bottom: -160px; width: 380px; height: 380px; border-radius: 50%; background: rgba(249,168,37,.18); }
.band .head h2, .band .head p, .band .head .kicker { color: #fff; }
.band .head .kicker { color: #ffd27a; }
.band .grid { position: relative; z-index: 1; }
.band .card { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); color: #fff; }
.band .card p { color: rgba(255,255,255,.82); }
.band .card .ic { background: rgba(249,168,37,.2); color: #ffd27a; }

/* split (pricing / captain teaser) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.list li { display: flex; gap: 12px; align-items: flex-start; }
.list li svg { width: 22px; height: 22px; color: var(--teal); flex: none; margin-top: 5px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.alt .panel { background: var(--bg); }
.panel h3 { margin: 0 0 14px; font-size: 1.25rem; }
.table { width: 100%; border-collapse: collapse; font-size: .97rem; }
.table td { padding: 10px 4px; border-bottom: 1px dashed var(--line); vertical-align: top; }
.table td:last-child { text-align: left; font-weight: 900; color: var(--teal); white-space: nowrap; }
.note { color: var(--muted); font-size: .86rem; margin-top: 12px; }

.captain-teaser { background: var(--yellow-soft); border: 1px solid color-mix(in srgb, var(--yellow) 40%, transparent); border-radius: 30px; padding: 34px 28px;
                  display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; }
.captain-teaser h2 { margin: 0 0 6px; font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
.captain-teaser p { margin: 0; color: var(--muted); }
.big-num { font-size: clamp(2.6rem, 7vw, 4.2rem); font-weight: 900; color: var(--teal); line-height: 1; }
@media (max-width: 700px) { .captain-teaser { grid-template-columns: 1fr; text-align: center; } }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 4px 18px; }
.alt .faq details { background: var(--bg); }
.faq summary { cursor: pointer; font-weight: 800; padding: 12px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--teal); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 14px; color: var(--muted); white-space: pre-line; }

/* download */
.download { text-align: center; }
.download .phone-mini { width: 86px; height: 86px; margin: 0 auto 14px; border-radius: 24px; box-shadow: var(--shadow); }
.download .cta-row { justify-content: center; }

/* ---------- footer ---------- */
.site-footer { background: var(--teal-ink); color: rgba(255,255,255,.82); padding: 44px 0 26px; margin-top: 40px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 26px; }
.foot h4 { color: #fff; margin: 0 0 10px; font-size: 1rem; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.foot .brand { color: #fff; }
.foot p { margin: 10px 0 0; font-size: .93rem; }
.legal-line { border-top: 1px solid rgba(255,255,255,.14); margin-top: 28px; padding-top: 16px; font-size: .85rem; display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: space-between; }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr; } }

/* ---------- legal pages ---------- */
.doc { max-width: 860px; margin: 0 auto; padding: 36px 16px 30px; }
.doc-head { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin-bottom: 16px; }
.doc-head h1 { margin: 0 0 4px; font-size: clamp(1.6rem, 4vw, 2.2rem); }
.doc-head .meta { color: var(--muted); font-size: .92rem; }
.doc-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.doc-tabs a { text-decoration: none; font-weight: 800; font-size: .9rem; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); background: var(--bg); }
.doc-tabs a[aria-current="page"] { background: var(--teal); color: #fff; border-color: var(--teal); }
.toc { background: var(--mint); border-radius: 18px; padding: 16px 20px; margin-bottom: 16px; }
.toc h2 { margin: 0 0 6px; font-size: 1rem; color: var(--teal); }
.toc ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 28px; font-size: .93rem; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--teal); }
@media (max-width: 640px) { .toc ul { columns: 1; } }
.doc section { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; margin: 12px 0; scroll-margin-top: 80px; }
.doc section h2 { font-size: 1.12rem; margin: 0 0 8px; color: var(--teal); }
.doc section p { margin: 0; white-space: pre-line; }
.doc .intro { font-size: 1.04rem; }
.draft { background: #fff4dc; color: #6d4c00; border: 1px solid #f9a825; border-radius: 14px; padding: 12px 16px; margin-bottom: 14px; font-weight: 700; }

/* 404 */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 40px 16px; }
.notfound .big-num { font-size: 5rem; }

@media print {
  .site-header, .site-footer, .doc-tabs, .toc { display: none; }
  body { background: #fff; color: #000; }
  .doc section, .doc-head { border: none; padding: 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* fixes */
.pill svg { width: 18px; height: 18px; flex: none; }
.nav .btn { padding: 6px 14px; border-radius: 14px; box-shadow: none; margin-inline-start: 6px; }
.nav .btn svg { width: 20px; height: 20px; }
@media (max-width: 860px) { .nav .btn { margin-inline-start: 0; } }
