@font-face { font-family: 'Readex Pro'; src: url('../fonts/readexpro-latin.woff') format('woff'); font-weight: 400 600; font-display: swap; }
@font-face { font-family: 'Baloo Bhaijaan 2'; src: url('../fonts/baloobhaijaan2-latin.woff') format('woff'); font-weight: 700 800; font-display: swap; }
@font-face { font-family: 'Alexandria'; src: url('../fonts/alexandria-arabic.woff') format('woff'); font-weight: 400 700; font-display: swap; }
@font-face { font-family: 'Lalezar'; src: url('../fonts/lalezar-arabic.woff') format('woff'); font-display: swap; }

:root {
  --page: #FBF6E9; --card: #FFFDF8; --text: #2A1A12; --soft: #6B5A4E; --line: #E6DCC6;
  --brand: #0E7A73; --action: #0E7A73; --on-action: #FFFFFF; --edge: #06504B; --tint: #D6EEEA; --tint-text: #06504B;
  --err-bg: #FDE7E3; --err-text: #7A1C10;
  --head: 'Baloo Bhaijaan 2', 'Lalezar', system-ui, sans-serif; --body: 'Readex Pro', 'Alexandria', system-ui, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}
:root[data-theme='dark'] {
  --page: #0F2A28; --card: #163937; --text: #EEF6F3; --soft: #A9C5BF; --line: #24504C;
  --brand: #6FD6C9; --action: #6FD6C9; --on-action: #0F2A28; --edge: #3E8F86; --tint: #24504C; --tint-text: #EEF6F3;
  --err-bg: #4A2020; --err-text: #FFD9D3;
  color-scheme: dark;
}
:root[data-ui='ar'] { --head: 'Lalezar', 'Baloo Bhaijaan 2', system-ui, sans-serif; --body: 'Alexandria', 'Readex Pro', system-ui, 'Segoe UI', sans-serif; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--text); font: 400 17px/1.55 var(--body); overflow-wrap: anywhere; }
:root[data-ui='ar'] body { line-height: 1.8; }
.wrap { max-inline-size: 1080px; margin-inline: auto; padding-inline: 20px; }
.sr-only { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hp { position: absolute; inset-inline-start: -9999px; inline-size: 1px; block-size: 1px; overflow: hidden; }
a { color: var(--brand); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
[hidden] { display: none !important; }

header.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.lockup { inline-size: 220px; text-decoration: none; display: block; }
.lockup img { display: block; inline-size: 100%; block-size: auto; }
.lockup.ar { display: none; }
:root[data-ui='ar'] .lockup.ar { display: block; }
:root[data-ui='ar'] .lockup.en { display: none; }
.tagline { margin: -18px 0 0; font: 600 15px/1.2 var(--body); color: var(--soft); white-space: nowrap; }
.lockup.en .tagline { padding-inline: 35.6% 7.3%; }
.lockup.ar .tagline { padding-inline: 44.3% 9.1%; font-size: 16px; }
.toggles { display: flex; flex-wrap: wrap; gap: 8px; }
.langs { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { font: 600 14px var(--body); color: var(--text); background: var(--card); border: 2px solid var(--line); border-radius: 999px; padding: 4px 12px; cursor: pointer; min-block-size: 44px; min-inline-size: 44px; }
.pill:hover { border-color: var(--brand); }
.pill[aria-pressed='true'], a.pill[aria-current='page'] { background: var(--brand); color: var(--on-action); border-color: var(--brand); }
a.pill { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
#theme { background: var(--card); color: var(--text); }

.hero { padding-block: 28px 20px; max-inline-size: 760px; }
h1 { font: 800 clamp(29px, 5vw, 54px)/1.1 var(--head); margin: 0 0 18px; letter-spacing: -.01em; }
:root[data-ui='ar'] h1 { font-weight: 400; line-height: 1.4; letter-spacing: 0; }
.lead { font-size: 19px; margin: 0 0 8px; font-weight: 600; }
.sub { color: var(--soft); margin: 0 0 26px; }

form { background: var(--card); border: 2px solid var(--line); border-radius: 16px; padding: 20px; display: grid; gap: 12px; }
label { display: grid; gap: 4px; font-weight: 600; font-size: 15px; }
.opt { font-weight: 400; color: var(--soft); }
input[type='email'], input[type='text'], select { font: inherit; font-size: 16px; color: var(--text); background: var(--page); border: 2px solid var(--line); border-radius: 14px; min-block-size: 48px; padding-inline: 14px; inline-size: 100%; min-inline-size: 0; }
input:focus, select:focus { border-color: var(--brand); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row.one { grid-template-columns: 1fr; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.trip { border: 0; margin: 0; padding: 0; min-inline-size: 0; display: grid; gap: 8px; }
.lbl { font-weight: 600; font-size: 15px; padding: 0; }
.chips label.chip { display: inline-flex; position: relative; font-weight: 600; font-size: 14px; }
.chip input { position: absolute; inline-size: 1px; block-size: 1px; opacity: 0; margin: 0; }
.chip span { display: inline-flex; align-items: center; justify-content: center; color: var(--text); background: var(--card); border: 2px solid var(--line); border-radius: 999px; padding: 4px 14px; min-block-size: 44px; min-inline-size: 44px; cursor: pointer; }
.chip:hover span { border-color: var(--brand); }
.chip input:checked + span { background: var(--brand); color: var(--on-action); border-color: var(--brand); }
.chip input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 2px; }
label.check { display: flex; align-items: flex-start; gap: 12px; font-weight: 400; font-size: 15px; min-block-size: 44px; }
label.check input { inline-size: 24px; block-size: 24px; flex: none; margin: 2px 0 0; accent-color: var(--brand); }
.btn { display: inline-flex; align-items: center; justify-content: center; font: 600 17px var(--body); color: var(--on-action); background: var(--action); border: 0; border-radius: 14px; min-block-size: 52px; padding-inline: 24px; box-shadow: 0 3px 0 var(--edge); cursor: pointer; text-decoration: none; }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--edge); }
.btn[disabled] { opacity: .7; cursor: progress; }
.closed-note { margin: 0; font-size: 15px; color: var(--soft); text-align: center; }
form.closed label, form.closed .btn { opacity: .55; }
form.closed .btn[disabled], form.closed input[disabled], form.closed select[disabled], form.closed label.check input { cursor: not-allowed; }
.privacy { font-size: 13.5px; color: var(--soft); margin: 4px 0 0; }
.msg { border-radius: 12px; padding: 12px 14px; font-size: 15px; margin: 0; }
.msg.ok { background: var(--tint); color: var(--tint-text); }
.msg .hint { display: block; margin-block-start: 10px; padding: 10px 12px; border-inline-start: 5px solid var(--brand); border-radius: 8px; background: var(--card); color: var(--text); font-weight: 700; font-size: 18px; line-height: 1.45; }
:root[data-theme='dark'] .msg .hint { background: var(--page); border-inline-start-color: var(--brand); }
.msg.err { background: var(--err-bg); color: var(--err-text); }
#ts { min-block-size: 0; }

.phone { inline-size: 100%; max-inline-size: 270px; margin-inline: auto; border-radius: 40px; padding: 12px; background: #20160E; box-shadow: 0 24px 48px rgba(32,22,14,.18); }
.phone img { display: block; inline-size: 100%; block-size: auto; aspect-ratio: 375 / 700; object-fit: cover; object-position: top; border-radius: 30px; background: var(--card); }
.phone .ph { aspect-ratio: 375 / 700; border-radius: 30px; background: var(--card); border: 2px dashed var(--brand); display: grid; place-items: center; text-align: center; padding: 18px; color: var(--text); font-weight: 600; font-size: 14.5px; line-height: 1.45; }
.phone .ph small { display: block; margin-top: 8px; font-weight: 400; color: var(--soft); font-size: 12.5px; }
figure { margin: 0; min-inline-size: 0; }
.caption { text-align: center; font-size: 13px; color: var(--soft); margin: 10px 0 0; }
.screens { display: grid; grid-template-columns: 1fr; gap: 28px; }

section { padding-block: 44px; border-block-start: 1px solid var(--line); }
h2 { font: 800 30px/1.2 var(--head); margin: 0 0 22px; }
:root[data-ui='ar'] h2 { font-weight: 400; line-height: 1.5; }
.cards { display: grid; gap: 16px; }
.card { background: var(--card); border: 2px solid var(--line); border-radius: 16px; padding: 20px; min-inline-size: 0; }
.card h3 { font: 600 18px/1.35 var(--body); margin: 0 0 6px; }
.card p { margin: 0; color: var(--soft); }
.num { display: inline-grid; place-items: center; inline-size: 34px; block-size: 34px; border-radius: 50%; background: var(--tint); color: var(--tint-text); font-weight: 600; margin-block-end: 10px; }
.icon { inline-size: 28px; block-size: 28px; color: var(--brand); margin-block-end: 8px; }
.small { font-size: 14px; color: var(--soft); margin: 18px 0 0; }

.cols { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "hero" "taste" "form" "shots" "why"; column-gap: 40px; align-items: start; }
.cols > .herorow { grid-area: hero; }
.cols > .tastebox { grid-area: taste; }
.cols > .firstshot { grid-area: pic; display: none; }
.cols > .formbox { grid-area: form; padding-block: 8px 28px; border-block-start: 0; }
.cols > .whybox { grid-area: why; }
.cols > .screens-col { grid-area: shots; border-block-start: 0; padding-block: 8px 28px; }
.cards.five { grid-template-columns: 1fr; }
.steps5 { grid-template-columns: 1fr; }

footer.bottom { border-block-start: 1px solid var(--line); padding-block: 26px 40px; font-size: 14px; color: var(--soft); display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; margin-block-start: 20px; }
footer .sym { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; }
footer .sym img { inline-size: 28px; block-size: 28px; }
footer .legal { flex: 1 1 320px; }
footer .legal small { display: block; margin-block-start: 4px; }
footer nav { display: flex; flex-wrap: wrap; gap: 4px 8px; }
footer nav a { color: var(--soft); display: inline-flex; align-items: center; min-block-size: 44px; padding-inline: 6px; }
bdi { unicode-bidi: isolate; }

.light-only { display: block; } .dark-only { display: none !important; }
:root[data-theme='dark'] .light-only { display: none !important; }
:root[data-theme='dark'] .dark-only { display: block !important; }

/* Single-message pages: confirm, unsubscribe, privacy and terms placeholders */
.single { max-inline-size: 640px; padding-block: 36px 24px; }
.single h1 { font-size: clamp(28px, 5vw, 40px); }
.single p { margin: 0 0 18px; }
.marker { display: inline-block; background: #FFE9A8; color: #3A2A00; border-radius: 999px; padding: 4px 14px; font-weight: 600; font-size: 14px; margin-block-end: 14px; }
:root[data-theme='dark'] .marker { background: #5A4A12; color: #FFF3C8; }

@media (min-width: 821px) {
  .cols { grid-template-columns: minmax(0, 1fr) 290px; grid-template-areas: "hero shots" "taste shots" "form shots" "why shots"; grid-template-rows: auto auto auto 1fr; }
  .cards.five { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1001px) { .steps5 { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 821px) and (max-width: 1000px) { .steps5 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) {
  .wrap { padding-inline: 16px; }
  .lockup { inline-size: 170px; }
  .tagline { font-size: 13px; margin-top: -14px; }
  .row { grid-template-columns: 1fr; }
  h2 { font-size: 25px; }
  .phone { max-inline-size: 250px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

.doc { margin-block-end: 24px; }
.doc h1 { font-size: clamp(26px, 5vw, 38px); }
.doc h2 { font-size: 22px; margin: 28px 0 10px; }
.doc ul { padding-inline-start: 22px; margin: 0 0 18px; }
.doc li { margin-block-end: 6px; }
.doc hr { border: 0; border-block-start: 1px solid var(--line); margin-block: 20px; }
.doc code { font-size: .95em; }
.doc .table { overflow-x: auto; margin: 0 0 18px; }
.doc table { border-collapse: collapse; inline-size: 100%; font-size: .95em; }
.doc th, .doc td { border: 1px solid var(--line); padding: 8px 10px; text-align: start; vertical-align: top; }
.doc th { font-weight: 600; }
.single:has(.doc) { max-inline-size: 760px; }

/* Traveller in the empty cell of the five-card grid (decorative) */
.herorow { display: block; }
.card-char { display: flex; align-items: center; justify-content: center; padding: 4px 8px; }
.card-char .char { max-inline-size: 300px; }
.char { display: block; inline-size: 100%; block-size: auto; overflow: visible; --teal: #0E7A73; --edge: #06504B; --mint: #6FD6C9; --ink: #2A1A12; --tint: #D6EEEA; --line: #E6DCC6; }
.char .ground { fill: #E6DCC6; }
.char .sign { font: 800 12.5px var(--body); fill: #FFFDF8; }
:root[lang='de'] .char .sign { font-size: 10.5px; }
:root[lang='ru'] .char .sign { font-size: 10.3px; }
:root[lang='fr'] .char .sign { font-size: 11px; }
:root[lang='es'] .char .sign { font-size: 11.5px; }
:root[data-ui='ar'] .char .sign { font-weight: 700; font-size: 13.5px; }
:root[data-theme='dark'] .char .ground { fill: #0A1E1D; }
:root[data-theme='dark'] .char { filter: drop-shadow(0 0 1.5px rgba(238, 246, 243, .55)); }
@media (prefers-reduced-motion: no-preference) {
  .char .walk { animation: char-walk 4s ease-in-out infinite; }
  .char .dash { stroke-dasharray: 8 6; animation: char-dash 3s linear infinite; }
}
@keyframes char-walk { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(10px); } }
@keyframes char-dash { to { stroke-dashoffset: -28; } }

/* My trip phone: Start, dates filled in, Generate, Trip plan (real app screens). A slow cross-fade (opacity only, no movement) plays for everyone; the tap ring only when motion is OK. */
.stack { position: relative; display: grid; border-radius: 30px; overflow: hidden; background: var(--card); }
.stack img { grid-area: 1 / 1; }
.stack .frame, .stack .shot { display: block; opacity: 0; animation: seq-fade 9.6s ease-in-out infinite both; }
.stack .frame[data-n='1'] { animation-delay: 0s; }
.stack .frame[data-n='2'] { animation-delay: 2.4s; }
.stack .frame[data-n='3'] { animation-delay: 4.8s; }
.stack .shot { animation-delay: 7.2s; }
.stack .tap { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .stack .tap { display: block; position: absolute; left: 72%; top: 77%; inline-size: 32px; block-size: 32px; margin: -16px 0 0 -16px; border-radius: 50%; background: rgba(255, 255, 255, .15); border: 3px solid #fff; box-shadow: 0 0 0 2px rgba(6, 80, 75, .55); opacity: 0; pointer-events: none; animation: seq-tap 9.6s ease-in-out infinite both; }
}
@keyframes seq-fade { 0% { opacity: 0; } 5% { opacity: 1; } 25% { opacity: 1; } 30% { opacity: 0; } 100% { opacity: 0; } }
@keyframes seq-tap { 0%, 58% { opacity: 0; transform: scale(1.5); } 62% { opacity: 1; transform: scale(1); } 67% { opacity: 1; transform: scale(.75); } 71% { opacity: 1; transform: scale(1); } 75%, 100% { opacity: 0; transform: scale(1); } }

/* About and offer sections (home page) */
.aboutbox p { max-inline-size: 760px; margin: 0 0 14px; }
.aboutbox .soft { color: var(--soft); }
.offer { background: var(--card); border: 2px solid var(--line); border-radius: 16px; padding: 24px; max-inline-size: 640px; }
.offer-label { display: inline-block; margin: 0 0 12px; padding: 4px 14px; border-radius: 999px; background: var(--tint); color: var(--tint-text); font-weight: 600; font-size: 14px; }
.offer h3 { font: 800 26px/1.2 var(--head); margin: 0 0 6px; }
:root[data-ui='ar'] .offer h3 { font-weight: 400; }
.offer-price { font: 800 40px/1.1 var(--head); color: var(--brand); margin: 0 0 8px; }
.offer-line { font-weight: 600; margin: 0 0 12px; }
.offer ul { padding-inline-start: 22px; margin: 0 0 14px; }
.offer li { margin-block-end: 8px; }
.offer .small { margin: 0 0 18px; }
.offer-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.btn.ghost { background: transparent; color: var(--brand); border: 2px solid var(--brand); box-shadow: none; }

/* "A look inside": three more real app screens (from the approved demo) */
.seegrid { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 700px) { .seegrid { grid-template-columns: repeat(3, 1fr); } }
.card-char .char-img { display: block; inline-size: 100%; max-inline-size: 240px; block-size: auto; }
:root[data-theme='dark'] .card-char .char-img { filter: drop-shadow(0 0 1.5px rgba(238, 246, 243, .55)); }
#cityErr { margin-block-start: -8px; }

/* D-CT-83 D13: free taste, a small fixed sample of downtown Cairo between the headline and the form. */
.tastebox { padding-block: 8px 28px; border-block-start: 0; }
.tastebox h2 { margin-block-end: 8px; }
.tastebox .intro { margin: 0 0 14px; }
.tchips { display: flex; flex-wrap: wrap; gap: 8px; }
.tchip { font: 600 15px var(--body); color: #2A1A12; background: #D6EEEA; border: 0; border-radius: 999px; padding: 4px 16px; min-block-size: 44px; box-shadow: 0 2px 0 #A9D3CC; cursor: pointer; }
.tchip:active { transform: translateY(1px); box-shadow: 0 1px 0 #A9D3CC; }
.tchip[aria-pressed='true'] { box-shadow: 0 2px 0 var(--edge); outline: 2px solid var(--brand); }
.results { display: grid; gap: 12px; margin-block-start: 18px; }
.results:empty { display: none; }
.results h3 { font: 600 18px/1.35 var(--body); margin: 0; }
.result { background: var(--card); border: 2px solid var(--line); border-radius: 16px; padding: 14px 16px; display: grid; gap: 6px; }
.result .name { font: 600 18px/1.3 var(--body); margin: 0; }
.result .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.result .kind { font-size: 13.5px; font-weight: 600; background: var(--tint); color: var(--tint-text); border-radius: 999px; padding: 1px 10px; white-space: nowrap; }
.result .dist { color: var(--brand); font-weight: 600; font-size: 15px; font-variant-numeric: tabular-nums; }
.result a.dir, .result .dir { justify-self: start; color: var(--brand); font-weight: 600; font-size: 15px; text-decoration: underline; text-underline-offset: 3px; display: inline-flex; align-items: center; min-block-size: 44px; }
.calm { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--tint); color: var(--tint-text); font-size: 15px; }
.tastebox .small { margin: 16px 0 14px; }
.results .credit { margin: 0; font-size: 12.5px; }
.tastebox .credit { margin: -6px 0 14px; font-size: 12.5px; }
.tastebox .btn { inline-size: 100%; }

/* D-CT-83 D5: the three new pictures (Home, Around me, Speak like a local) show the whole app screen, with the tab bar. */
.phone.tall img { aspect-ratio: 390 / 844; }

/* D-CT-83 D11: one language button (opens the same six languages). It is only for a phone; the page is a single column there. */
.langmenu { display: none; position: relative; }
.langmenu summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.langmenu summary::-webkit-details-marker { display: none; }
.langmenu summary svg { inline-size: 14px; block-size: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.langmenu[open] summary svg { transform: rotate(180deg); }
.langmenu .langs { position: absolute; inset-block-start: calc(100% + 6px); inset-inline-end: 0; z-index: 5; inline-size: 232px; padding: 10px; background: var(--card); border: 2px solid var(--line); border-radius: 16px; box-shadow: 0 12px 24px rgba(32, 22, 14, .18); }
@media (max-width: 600px) {
  header.top.has-menu { flex-wrap: nowrap; }
  header.top.has-menu .toggles { flex-wrap: nowrap; }
  header.top.has-menu .toggles > .langs { display: none; }
  .langmenu { display: block; }
  /* D-CT-83 D11: headline, ONE app picture (Home), the free taste, then the form; the other pictures follow the form. */
  .cols { grid-template-areas: "hero" "pic" "taste" "form" "shots" "why"; }
  .cols > .firstshot { display: block; border-block-start: 0; padding-block: 0 28px; }
  .screens figure.home-again { display: none; }
}
