/* Kamel landing — brand tokens from packages/design_system (DEC-055). */

@font-face { font-family: "Cairo"; src: url("/assets/fonts/cairo-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Cairo"; src: url("/assets/fonts/cairo-semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Cairo"; src: url("/assets/fonts/cairo-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --bg: #ffffff;
  --sand: #F7F5EF;
  --muted: #F3F1EC;
  --ink: #2C2C2C;
  --ink-2: #6B6760;
  --ink-3: #9E998F;
  --line: #EFEBE3;
  --border: #E6E1D8;
  --action: #117C7C;
  --action-press: #0E6A6A;
  --teal: #18A6A6;
  --teal-soft: #E4F4F3;
  --brown: #8D6E63;
  --dark: #1F2321;
  --on-dark: #F7F5EF;

  --r-md: 12px;
  --r-lg: 24px;
  --r-xl: 32px;
  --shadow: 0 1px 2px rgba(44, 44, 44, .05), 0 8px 28px rgba(44, 44, 44, .08);
  --shadow-phone: 0 2px 6px rgba(44, 44, 44, .08), 0 30px 70px rgba(44, 44, 44, .18);
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.75 "Cairo", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.25; letter-spacing: -.01em; }
h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 700; }
h3 { font-size: 20px; font-weight: 700; }
p { margin: 0; }

.wrap { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; }

.skip { position: absolute; inset-inline-start: 8px; top: -60px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 8px; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 30px;
  background: var(--action); color: #fff;
  border-radius: var(--r-md);
  font-weight: 700; font-size: 18px; text-decoration: none;
  transition: transform .15s var(--ease), background .2s;
  box-shadow: 0 1px 0 rgba(255,255,255,.15) inset, 0 6px 18px rgba(17, 124, 124, .22);
}
.btn:hover { background: var(--action-press); }
.btn:active { transform: scale(.97); }
.btn--small { min-height: 44px; padding: 0 18px; font-size: 16px; box-shadow: none; }
.btn--dark { background: var(--ink); box-shadow: 0 6px 18px rgba(44, 44, 44, .2); }
.btn--dark:hover { background: #000; }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--action); margin-bottom: 12px; }
.eyebrow--light { color: #7FD3D3; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--action); box-shadow: 0 0 0 4px var(--teal-soft); }
.lead { font-size: clamp(18px, 2vw, 20px); color: var(--ink-2); max-width: 34em; }
.micro { font-size: 14px; color: var(--ink-3); }

.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--ink-2); font-size: 15px; }
.ticks li { display: flex; align-items: center; gap: 8px; }
.ticks li::before { content: ""; width: 18px; height: 18px; flex: none; border-radius: 50%; background: var(--teal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.5l2.6 2.5L13 6.5' fill='none' stroke='%23117C7C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; }
.ticks--stack { flex-direction: column; gap: 12px; margin: 24px 0 32px; font-size: 17px; color: var(--ink); }

.section-head { margin-bottom: clamp(32px, 5vw, 56px); max-width: 640px; }

/* ── Nav ─────────────────────────────────────────────────── */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); transition: box-shadow .25s; }
.nav.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.nav__in { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 22px; }
.brand img { border-radius: 8px; }
.nav__links { display: flex; gap: 26px; margin-inline-start: auto; font-size: 15px; font-weight: 600; }
.nav__links a { text-decoration: none; color: var(--ink-2); transition: color .2s; }
.nav__links a:hover { color: var(--ink); }
@media (max-width: 860px) { .nav__links { display: none; } .nav .btn { margin-inline-start: auto; } }

/* ── Hero ────────────────────────────────────────────────── */
.hero { padding: clamp(32px, 6vw, 72px) 0 clamp(48px, 7vw, 96px); background: radial-gradient(1200px 520px at 15% 0%, var(--sand), transparent 70%); }
.hero__in { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero h1 { font-size: clamp(40px, 5.6vw, 64px); font-weight: 700; line-height: 1.15; margin-bottom: 22px; }
.inline-van { display: inline-block; width: 1.25em; height: 1.25em; vertical-align: -.22em; margin-inline: .06em; }
.hero__cta { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 32px; }
@media (max-width: 920px) {
  .hero__in { grid-template-columns: 1fr; }
  .hero__phone { order: 2; }
}

/* Phone mockup */
.hero__phone { display: flex; justify-content: center; }
.phone {
  width: min(320px, 82vw); aspect-ratio: 9 / 19;
  padding: 10px; border-radius: 46px;
  background: #1c1c1c; box-shadow: var(--shadow-phone);
  --t: 0;
  transform: rotateX(calc((1 - var(--t)) * 18deg)) scale(calc(.94 + var(--t) * .06)) translateY(calc(var(--t) * -18px));
  transform-origin: 50% 100%;
}
.hero__phone { perspective: 1200px; }
.phone__screen { position: relative; height: 100%; border-radius: 37px; overflow: hidden; background: #F3F1EB; }
.map { position: absolute; inset: 0; width: 100%; height: 66%; }
.sheet {
  position: absolute; inset-inline: 0; bottom: 0;
  background: #fff; border-radius: 22px 22px 0 0; padding: 8px 18px 18px;
  box-shadow: 0 -8px 24px rgba(44, 44, 44, .08);
  font-size: 13px; line-height: 1.6;
}
.sheet__grip { width: 34px; height: 4px; border-radius: 2px; background: var(--border); margin: 0 auto 8px; }
.sheet__title { font-weight: 700; font-size: 15px; margin-bottom: 8px; }
.sheet__row { display: flex; gap: 10px; align-items: center; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--action); box-shadow: 0 0 0 4px var(--teal-soft); flex: none; animation: pulse 2s var(--ease) infinite; }
.sheet__name { font-weight: 700; font-size: 14px; }
.sheet__status { color: var(--ink-2); }
.ready { margin: 10px 0; padding: 8px 12px; border-radius: 10px; background: var(--muted); font-weight: 600; font-size: 12.5px; }
.journey { display: flex; align-items: center; gap: 8px; color: var(--ink-3); font-size: 11.5px; }
.journey__line { position: relative; flex: 1; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.journey__line i { position: absolute; inset-block: 0; inset-inline-start: 0; width: 38%; background: var(--brown); border-radius: 2px; animation: journey 9s linear infinite; }
.sheet__captain { margin-top: 10px; color: var(--ink-2); font-size: 12.5px; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(17, 124, 124, .1); } }
@keyframes journey { from { width: 6%; } to { width: 96%; } }

/* ── Feeling ─────────────────────────────────────────────── */
.feel { padding: clamp(56px, 8vw, 104px) 0; background: var(--sand); }
.feel__in { max-width: 820px; }
.feel__q { font-size: clamp(22px, 3vw, 32px); font-weight: 600; color: var(--ink-2); line-height: 1.6; }
.feel__q strong { color: var(--ink); }
.feel__a { margin-top: 18px; font-size: clamp(22px, 3vw, 32px); font-weight: 700; color: var(--action); }

/* ── Steps (journey points) ──────────────────────────────── */
.how { padding: clamp(72px, 9vw, 120px) 0; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; position: relative; }
.steps::before { content: ""; position: absolute; top: 21px; inset-inline: 22px; height: 4px; border-radius: 2px; background: linear-gradient(to left, var(--brown), var(--brown)) no-repeat; background-size: 100% 100%; opacity: .9; }
.steps li { position: relative; }
.step__point { position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #fff; border: 9px solid var(--teal); font-size: 0; margin-bottom: 18px; }
.steps h3 { margin-bottom: 6px; }
.steps p { color: var(--ink-2); font-size: 16px; }
@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .steps::before { top: 22px; bottom: 22px; inset-inline-start: 21px; inset-inline-end: auto; width: 4px; height: auto; }
  .steps li { display: grid; grid-template-columns: 46px 1fr; column-gap: 18px; }
  .step__point { grid-row: span 2; margin: 0; }
}

/* ── A day, zig-zag ──────────────────────────────────────── */
.day { padding: clamp(72px, 9vw, 120px) 0; background: linear-gradient(var(--bg), var(--sand)); }
.daytrack { position: relative; --p: 0; }
.daytrack__rail { position: absolute; top: 0; bottom: 0; inset-inline-start: 50%; width: 4px; margin-inline-start: -2px; border-radius: 2px; background: var(--line); }
.daytrack__rail i { position: absolute; inset-inline: 0; top: 0; height: calc(var(--p) * 100%); border-radius: 2px; background: var(--brown); }
.moment { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 8vw, 112px); align-items: center; padding: clamp(28px, 4vw, 48px) 0; }
.moment__dot { position: absolute; inset-inline-start: 50%; top: 50%; width: 26px; height: 26px; margin: -13px 0 0 0; transform: translateX(50%); border-radius: 50%; background: #fff; border: 6px solid var(--border); transition: border-color .4s var(--ease), transform .4s var(--ease); z-index: 1; }
[dir="rtl"] .moment__dot { transform: translateX(50%); }
.moment.is-active .moment__dot { border-color: var(--teal); transform: translateX(50%) scale(1.15); }
.moment__art, .moment__copy { transition: opacity .6s var(--ease), transform .6s var(--ease); }
.moment:not(.is-active) .moment__art, .moment:not(.is-active) .moment__copy { opacity: .35; transform: translateY(16px); }
.moment--flip .moment__art { order: 2; }
.moment__art { display: grid; place-items: center; background: #fff; border-radius: var(--r-xl); aspect-ratio: 4 / 3; box-shadow: var(--shadow); }
.moment__art picture { display: block; width: min(260px, 70%); }
.moment__art img, .safety__art img, .captains__art img { width: 100%; }
.moment__time { font-weight: 700; color: var(--brown); margin-bottom: 8px; font-size: 15px; }
.moment h3 { font-size: clamp(22px, 2.6vw, 28px); margin-bottom: 12px; }
.moment p:last-child { color: var(--ink-2); font-size: 18px; max-width: 30em; }
@media (max-width: 820px) {
  .daytrack__rail { inset-inline-start: 11px; margin: 0; }
  .moment { grid-template-columns: 1fr; gap: 20px; padding-inline-start: 40px; }
  .moment--flip .moment__art { order: 0; }
  .moment__dot { inset-inline-start: 0; top: clamp(28px, 4vw, 48px); margin: 0; transform: none; }
  .moment.is-active .moment__dot { transform: scale(1.15); }
}

/* ── Bento ───────────────────────────────────────────────── */
.bento { padding: clamp(72px, 9vw, 120px) 0; background: var(--sand); }
.bento__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile { background: #fff; border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow); }
.tile img { width: 88px; height: 88px; margin-bottom: 14px; }
.tile h3 { margin-bottom: 6px; }
.tile p { color: var(--ink-2); font-size: 16px; }
.tile--wide { grid-column: span 2; display: flex; gap: 22px; align-items: center; }
.tile--wide img { width: 120px; height: 120px; margin: 0; flex: none; }
.tile--teal { background: var(--teal-soft); box-shadow: none; }
.tile__big { font-size: 44px; font-weight: 700; color: var(--action); line-height: 1.1; margin-bottom: 14px; }
.tile--dark { background: var(--dark); color: var(--on-dark); box-shadow: none; display: flex; align-items: flex-end; }
.tile--dark p { color: rgba(247, 245, 239, .72); }
@media (max-width: 900px) {
  .bento__grid { grid-template-columns: 1fr 1fr; }
  .tile--wide { grid-column: span 2; }
}
@media (max-width: 600px) {
  .bento__grid { grid-template-columns: 1fr; }
  .tile--wide { grid-column: auto; flex-direction: column; align-items: flex-start; }
  .tile--wide img { width: 96px; height: 96px; }
}

/* ── Safety (dark) ───────────────────────────────────────── */
.safety { padding: clamp(72px, 9vw, 120px) 0; background: var(--dark); color: var(--on-dark); }
.safety__in { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.safety__art { display: grid; place-items: center; background: #fff; border-radius: var(--r-xl); aspect-ratio: 1; max-width: 380px; }
.safety__art picture { display: block; width: 72%; }
.checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; }
.checks li { position: relative; padding-inline-start: 34px; color: rgba(247, 245, 239, .78); font-size: 17px; }
.checks li::before { content: ""; position: absolute; inset-inline-start: 0; top: 6px; width: 20px; height: 20px; border-radius: 50%; border: 5px solid var(--teal); }
.checks strong { color: var(--on-dark); }
@media (max-width: 820px) { .safety__in { grid-template-columns: 1fr; } .safety__art { max-width: 280px; } }

/* ── Captains ────────────────────────────────────────────── */
.captains { padding: clamp(72px, 9vw, 120px) 0; }
.captains__in { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.captains__art { display: grid; place-items: center; background: #fff; border-radius: var(--r-xl); aspect-ratio: 1; box-shadow: var(--shadow); }
.captains__art picture { display: block; width: 78%; }
@media (max-width: 820px) { .captains__in { grid-template-columns: 1fr; } .captains__art { order: -1; max-width: 360px; } }

/* ── Districts ───────────────────────────────────────────── */
.districts { padding: 0 0 clamp(72px, 9vw, 120px); }
.districts__in { display: flex; gap: 32px; align-items: center; justify-content: space-between; background: var(--teal-soft); border-radius: var(--r-xl); padding: clamp(28px, 5vw, 56px); }
.districts h2 { margin-bottom: 10px; }
.districts p { color: var(--ink-2); max-width: 36em; }
@media (max-width: 820px) { .districts__in { flex-direction: column; align-items: flex-start; } }

/* ── FAQ ─────────────────────────────────────────────────── */
.faq { padding: clamp(72px, 9vw, 120px) 0; background: var(--sand); }
.faq__in { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(24px, 6vw, 80px); align-items: start; }
.faq__list { display: grid; gap: 12px; }
details { background: #fff; border-radius: var(--r-md); padding: 0 22px; box-shadow: 0 1px 2px rgba(44,44,44,.04); }
summary { list-style: none; cursor: pointer; padding: 20px 0; font-weight: 700; font-size: 18px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; width: 12px; height: 12px; flex: none; border-inline-end: 2.5px solid var(--ink-3); border-bottom: 2.5px solid var(--ink-3); transform: rotate(45deg) translateY(-3px); transition: transform .25s var(--ease); }
details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
details p { padding: 0 0 20px; color: var(--ink-2); }
@media (max-width: 820px) { .faq__in { grid-template-columns: 1fr; } }

/* ── Final CTA ───────────────────────────────────────────── */
.final { padding: clamp(80px, 10vw, 136px) 0; text-align: center; }
.final__in { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.final__in img { border-radius: 16px; margin-bottom: 6px; }
.final p { color: var(--ink-2); font-size: 18px; }
.final .btn { margin-top: 14px; }

/* ── Footer ──────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--line); padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); font-size: 15px; color: var(--ink-3); }
.footer__in { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer nav a { text-decoration: none; color: var(--ink-2); }
.footer .brand { font-size: 18px; color: var(--ink); }

/* ── Motion ──────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .status-dot, .journey__line i { animation: none; }
  .phone { transform: none; }
  .moment:not(.is-active) .moment__art, .moment:not(.is-active) .moment__copy { opacity: 1; transform: none; }
}
