/* =========================================================
   KaribuFans — "The Kanga"
   Layout: every section is a kanga — patterned border (pindo),
   central image or motif (mji), Swahili saying as signature (jina).
   Mobile-first · logical properties (RTL-safe) · light + dark.
   ========================================================= */

:root {
  /* Brand */
  --ocean: #062B44;
  --ocean-2: #0B3A5A;
  --turq: #00A6B4;
  --turq-ink: #007480;      /* turquoise dark enough for small text on sand (AA) */
  --sun: #FFC21A;
  --sun-deep: #D99A00;
  --red: #E4322B;
  --sand: #F7EDDC;
  --white: #FFFFFF;
  --on-dark: #FFFFFF;
  --on-dark-2: #CFE3EE;
  --wa: #128C4B;            /* WhatsApp green darkened for AA with white text */

  /* Theme (light) */
  --bg: #F7EDDC;
  --bg-2: #F1E2C8;
  --surface: #FFFDF8;
  --surface-2: #FBF3E4;
  --text: #062B44;
  --text-2: #3D5466;
  --line: #E4D3B4;
  --link: #007480;
  --icon-bg: #E3F4F4;
  --icon-fg: #007480;
  --open-fg: #0E7A43;
  --closed-fg: #B4231D;
  --shadow-1: 0 1px 2px rgba(6,43,68,.06), 0 2px 6px rgba(6,43,68,.06);
  --shadow-2: 0 2px 4px rgba(6,43,68,.06), 0 12px 28px rgba(6,43,68,.10);
  --shadow-3: 0 4px 8px rgba(6,43,68,.08), 0 24px 56px rgba(6,43,68,.18);

  /* Type */
  --f-display: "Unbounded", "Arial Black", "Segoe UI", system-ui, sans-serif;
  --f-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-ar: "Noto Kufi Arabic", "Segoe UI", Tahoma, system-ui, sans-serif;

  /* 8px spacing system */
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 40px; --s6: 48px; --s8: 64px; --s10: 80px; --s12: 96px;
  --r1: 8px; --r2: 16px; --r3: 24px; --r4: 32px;
  --nav-h: 64px;
  --secnav-h: 56px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --ease: cubic-bezier(.2,.8,.2,1);

  /* Kanga border (pindo) tile — original pattern: sun stripes, turquoise zigzag, red dots, sun diamonds */
  --pindo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='32' viewBox='0 0 48 32'%3E%3Crect width='48' height='32' fill='%23062B44'/%3E%3Crect width='48' height='4' fill='%23FFC21A'/%3E%3Crect y='28' width='48' height='4' fill='%23FFC21A'/%3E%3Cpath d='M0 8l12 8L24 8l12 8 12-8' fill='none' stroke='%2300A6B4' stroke-width='3'/%3E%3Cpath d='M24 18l4 4-4 4-4-4z' fill='%23FFC21A'/%3E%3Ccircle cx='0' cy='22' r='2.5' fill='%23E4322B'/%3E%3Ccircle cx='48' cy='22' r='2.5' fill='%23E4322B'/%3E%3Ccircle cx='12' cy='24' r='1.6' fill='%23F7EDDC'/%3E%3Ccircle cx='36' cy='24' r='1.6' fill='%23F7EDDC'/%3E%3C/svg%3E");
  /* Fine dot field used behind headings (mji texture) */
  --dots: radial-gradient(circle, rgba(6,43,68,.12) 1.4px, transparent 1.6px);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #05202F;
    --bg-2: #082A3D;
    --surface: #0C3249;
    --surface-2: #0F3A54;
    --text: #F7EDDC;
    --text-2: #B9CCD8;
    --line: #1C4A66;
    --link: #5FD6DF;
    --icon-bg: #0F4560;
    --icon-fg: #FFC21A;
    --open-fg: #63E29A;
    --closed-fg: #FF8A84;
    --shadow-1: 0 1px 2px rgba(0,0,0,.3);
    --shadow-2: 0 2px 4px rgba(0,0,0,.3), 0 12px 28px rgba(0,0,0,.35);
    --shadow-3: 0 4px 8px rgba(0,0,0,.35), 0 24px 56px rgba(0,0,0,.45);
    --dots: radial-gradient(circle, rgba(247,237,220,.10) 1.4px, transparent 1.6px);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #05202F;
  --bg-2: #082A3D;
  --surface: #0C3249;
  --surface-2: #0F3A54;
  --text: #F7EDDC;
  --text-2: #B9CCD8;
  --line: #1C4A66;
  --link: #5FD6DF;
  --icon-bg: #0F4560;
  --icon-fg: #FFC21A;
  --open-fg: #63E29A;
  --closed-fg: #FF8A84;
  --shadow-1: 0 1px 2px rgba(0,0,0,.3);
  --shadow-2: 0 2px 4px rgba(0,0,0,.3), 0 12px 28px rgba(0,0,0,.35);
  --shadow-3: 0 4px 8px rgba(0,0,0,.35), 0 24px 56px rgba(0,0,0,.45);
  --dots: radial-gradient(circle, rgba(247,237,220,.10) 1.4px, transparent 1.6px);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + var(--secnav-h) + var(--s1)); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.6 var(--f-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--ocean); }
:lang(ar) body, html[lang="ar"] body { font-family: var(--f-ar); line-height: 1.75; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 800; line-height: 1.05; letter-spacing: -.01em; margin: 0; text-wrap: balance; }
html[lang="ar"] :is(h1, h2, h3) { font-family: var(--f-ar); letter-spacing: 0; line-height: 1.3; }
h2 { font-size: clamp(1.9rem, 6.4vw, 3.25rem); }
h3 { font-size: 1.15rem; font-weight: 600; line-height: 1.25; }
p { margin: 0; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--turq); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
[dir="rtl"] .flip { transform: scaleX(-1); }

.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
@media (min-width: 768px) { .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); } }

.skip { position: absolute; inset-inline-start: var(--s1); top: -100px; z-index: 100; background: var(--sun); color: var(--ocean); padding: var(--s1) var(--s2); border-radius: var(--r1); font-weight: 700; }
.skip:focus { top: var(--s1); }

/* ---------- Kanga pieces ---------- */
.pindo { height: 32px; background: var(--pindo) 0 0 / 48px 32px repeat-x; }
.kicker {
  display: inline-flex; align-items: center; gap: var(--s1);
  font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--turq-ink); margin-bottom: var(--s2);
}
html[lang="ar"] .kicker { letter-spacing: 0; font-size: .85rem; }
.kicker::before { content: ""; width: 24px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--red) 0 33%, var(--sun) 33% 66%, var(--turq) 66%); }
.kicker--light { color: var(--sun); }
.kicker--sun { color: var(--sun); }

/* Jina: the Swahili saying that signs a section */
.jina { display: grid; gap: 2px; margin-top: var(--s3); padding-inline-start: var(--s2); border-inline-start: 4px solid var(--red); max-width: 52ch; }
.jina__label { font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); }
.jina__sw { font-family: var(--f-display); font-weight: 600; font-size: 1rem; line-height: 1.3; }
.jina__tr { font-size: .9rem; font-style: italic; color: var(--text-2); }
.jina--light { border-color: var(--sun); color: var(--on-dark); }
.jina--light .jina__tr, .jina--light .jina__label { color: var(--on-dark-2); }

/* Section heading block */
.head { position: relative; max-width: 720px; margin-bottom: var(--s5); }
.head__motif { position: absolute; inset-inline-end: 0; top: -24px; width: 112px; height: 112px; color: var(--turq); opacity: .12; pointer-events: none; }
@media (min-width: 1100px) { .head__motif { width: 160px; height: 160px; inset-inline-end: -200px; } }
.head__intro { margin-top: var(--s2); font-size: 1.08rem; color: var(--text-2); max-width: 60ch; }
.head--light { color: var(--on-dark); }
.head--light .head__intro { color: var(--on-dark-2); }
.head--light .head__motif { color: var(--sun); opacity: .16; }

.demo-badge {
  display: inline-flex; align-items: center; gap: 6px; width: fit-content; flex: none;
  font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
  background: repeating-linear-gradient(-45deg, var(--sun) 0 8px, #FFD25A 8px 16px);
  color: var(--ocean);
}
html[lang="ar"] .demo-badge { letter-spacing: 0; }
.demo-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.fineprint { font-size: .8rem; color: var(--text-2); margin-top: var(--s2); }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s1);
  min-height: 48px; padding: 12px 24px;
  border: 0; border-radius: 999px;
  font-weight: 800; font-size: 1rem; line-height: 1.2; text-decoration: none; text-align: center;
  transition: transform .16s var(--ease), box-shadow .16s var(--ease), background-color .2s, filter .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 20px; height: 20px; flex: none; transition: transform .2s var(--ease); }
.btn:hover svg.flip { transform: translateX(3px); }
[dir="rtl"] .btn:hover svg.flip { transform: scaleX(-1) translateX(3px); }
.btn--lg { min-height: 56px; padding: 14px 28px; font-size: 1.04rem; }
.btn--block { width: 100%; }
.btn--sun { background: var(--sun); color: var(--ocean); box-shadow: 0 4px 0 var(--sun-deep), 0 10px 24px rgba(255,194,26,.35); }
.btn--sun:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--sun-deep), 0 16px 32px rgba(255,194,26,.45); }
.btn--sun:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--sun-deep), 0 4px 12px rgba(255,194,26,.3); }
.btn--glass { background: rgba(6,43,68,.35); color: var(--white); border: 1.5px solid rgba(255,255,255,.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn--glass:hover { background: rgba(6,43,68,.55); }
.btn--glass:active { transform: scale(.97); }
.btn--wa { background: var(--wa); color: var(--white); box-shadow: 0 4px 0 #0A6334; }
.btn--wa:hover { transform: translateY(-2px); box-shadow: 0 6px 0 #0A6334, 0 12px 24px rgba(18,140,75,.3); }
.btn--wa:active { transform: translateY(3px); box-shadow: 0 1px 0 #0A6334; }
.btn--ghost { background: transparent; color: var(--text); border: 1.5px solid var(--line); }

.btn-icon {
  display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 var(--s1);
  border: 0; border-radius: 999px; background: transparent; color: inherit;
  transition: background-color .2s, transform .15s;
}
.btn-icon:active { transform: scale(.94); }
.btn-icon svg { width: 22px; height: 22px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--ocean) 92%, transparent);
  backdrop-filter: blur(12px) saturate(1.4); -webkit-backdrop-filter: blur(12px) saturate(1.4);
  color: var(--on-dark);
  box-shadow: 0 1px 0 rgba(255,255,255,.08);
}
.nav__inner { display: flex; align-items: center; gap: var(--s1); height: var(--nav-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--on-dark); min-width: 0; }
.logo__mark { width: 36px; height: 36px; flex: none; }
.logo__word { font-family: var(--f-display); font-weight: 800; font-size: 1.1rem; letter-spacing: -.01em; white-space: nowrap; }
.logo__word b { color: var(--sun); font-weight: 800; }
@media (max-width: 519px) {
  .logo__word { font-size: .98rem; }
  .lang select { padding-inline: 32px 10px; max-width: 84px; }
}
@media (max-width: 339px) { .logo__word { display: none; } }

.nav__links {
  display: none;
  position: absolute; top: 100%; left: 0; right: 0; z-index: 2;
  flex-direction: column;
  background: var(--ocean);
  padding: var(--s1) var(--gutter-r) var(--s3) var(--gutter-l);
  box-shadow: 0 16px 32px rgba(0,0,0,.25);
}
.nav__links.is-open { display: flex; }
.nav__links a { text-decoration: none; font-weight: 600; padding: 14px 4px; border-bottom: 1px solid rgba(255,255,255,.1); color: var(--on-dark-2); }
.nav__links a:last-child { border-bottom: 0; }
.nav__links a:hover, .nav__links a.is-current { color: var(--sun); }
.nav__tools { margin-inline-start: auto; display: flex; align-items: center; gap: 4px; }

.lang { position: relative; display: flex; align-items: center; }
.lang svg { position: absolute; inset-inline-start: 10px; width: 18px; height: 18px; pointer-events: none; color: var(--sun); }
.lang select {
  appearance: none; -webkit-appearance: none;
  height: 40px; padding-inline: 34px 14px; border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: var(--on-dark);
  font-weight: 700; font-size: .9rem; cursor: pointer; max-width: 128px;
}
.lang select:hover { border-color: var(--sun); }
.lang option { color: #062B44; background: #fff; }
.ask-btn { gap: 6px; display: inline-flex; align-items: center; padding: 0 12px; }
.ask-btn:hover, .burger:hover { background: rgba(255,255,255,.1); }
.ask-btn__label { display: none; font-weight: 700; font-size: .92rem; }
.burger { display: inline-grid; gap: 5px; align-content: center; }
.burger span { display: block; width: 22px; height: 2.5px; border-radius: 2px; background: currentColor; transition: transform .25s var(--ease), opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (min-width: 640px) { .ask-btn__label { display: inline; } }
@media (min-width: 640px) {
  .nav__links { left: auto; right: var(--gutter-r); width: 300px; border-radius: 0 0 var(--r2) var(--r2); }
  [dir="rtl"] .nav__links { right: auto; left: var(--gutter-l); }
}
/* Section bar: Watch · Eat · Sleep · Ride (sticky with the header, all screen sizes) */
.secnav { height: var(--secnav-h); border-top: 1px solid rgba(255,255,255,.08); background: color-mix(in srgb, var(--ocean-2) 92%, transparent); }
.secnav__track {
  display: flex; align-items: center; gap: var(--s1); height: 100%;
  overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}
.secnav__track::-webkit-scrollbar { display: none; }
.pill {
  flex: none; scroll-snap-align: start;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,.22); background: rgba(255,255,255,.06);
  color: var(--on-dark); text-decoration: none; font-weight: 700; font-size: .95rem; white-space: nowrap;
  transition: background-color .2s, border-color .2s, color .2s, transform .12s;
}
.pill:hover { border-color: var(--sun); }
.pill:active { transform: scale(.96); }
.pill.is-active { background: var(--sun); border-color: var(--sun); color: var(--ocean); }
.pill__emoji { font-size: 1.1rem; line-height: 1; }
@media (min-width: 768px) { .secnav__track { justify-content: center; } }
/* Phones: four equal buttons on one row, icon above label, no sideways scrolling */
@media (max-width: 559px) {
  .secnav__track { gap: 4px; overflow-x: visible; scroll-snap-type: none; }
  .pill {
    flex: 1 1 0; min-width: 0; flex-direction: column; justify-content: center; gap: 1px;
    min-height: 46px; padding: 3px 2px; border-radius: 14px;
    font-size: 14px; line-height: 1.1; text-align: center; white-space: nowrap;
  }
  .pill__emoji { font-size: 1rem; }
}


/* ---------- Photos: one warm grade for the whole set ---------- */
.photo { position: relative; margin: 0; overflow: hidden; background: var(--ocean-2); isolation: isolate; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(160deg, rgba(255,186,90,.30), rgba(255,140,60,.10) 45%, rgba(228,50,43,.18));
  mix-blend-mode: soft-light;
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: calc(100svh - var(--nav-h) - var(--secnav-h));
  display: flex; flex-direction: column; justify-content: flex-end;
  color: var(--on-dark); background: var(--ocean);
}
@supports not (height: 100svh) { .hero { min-height: calc(100vh - var(--nav-h) - var(--secnav-h)); } }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; transform-origin: 60% 45%; }
@media (prefers-reduced-motion: no-preference) {
  .hero__media img { animation: kenburns 26s ease-in-out infinite alternate; }
}
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.12) translate(-1%, -1%); } }
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(6,43,68,.55) 0%, rgba(6,43,68,0) 22%),
    linear-gradient(0deg, rgba(6,43,68,.96) 0%, rgba(6,43,68,.82) 34%, rgba(6,43,68,.2) 62%, rgba(6,43,68,0) 80%),
    linear-gradient(160deg, rgba(255,186,90,.22), rgba(228,50,43,.12));
}
.hero__inner { position: relative; display: grid; gap: var(--s3); padding-block: var(--s8) var(--s4); }
.hero__copy { display: grid; gap: var(--s2); max-width: 760px; }
.hero__copy > * { animation: fadeUp .9s var(--ease) both; }
.hero__copy > :nth-child(2) { animation-delay: .08s; }
.hero__copy > :nth-child(3) { animation-delay: .16s; }
.hero__copy > :nth-child(4) { animation-delay: .24s; }
.hero__copy > :nth-child(5) { animation-delay: .32s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.chip { display: inline-flex; align-items: center; gap: var(--s1); width: fit-content; padding: 6px 14px; border-radius: 999px; font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; background: rgba(6,43,68,.55); border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
html[lang="ar"] .chip { letter-spacing: 0; font-size: .82rem; }
.chip__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 3px rgba(255,194,26,.3); flex: none; }
.hero h1 { font-size: clamp(2.1rem, 9.2vw, 4.6rem); line-height: 1.02; text-shadow: 0 2px 24px rgba(6,43,68,.5); }
html[lang="ar"] .hero h1 { line-height: 1.25; }
.hero__sub { font-size: clamp(1.02rem, 3.6vw, 1.3rem); color: #E6F0F5; max-width: 46ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--s1); }
.hero__ctas .btn { flex: 1 1 auto; }
@media (min-width: 560px) { .hero__ctas .btn { flex: 0 0 auto; } }
.cities { display: flex; flex-wrap: wrap; gap: var(--s1); margin-top: var(--s1); }
.city { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 14px; border-radius: 999px; font-size: .85rem; font-weight: 700; background: rgba(6,43,68,.5); border: 1px solid rgba(255,255,255,.22); }
.city svg { width: 16px; height: 16px; color: var(--sun); }
.city.is-active { background: var(--white); color: var(--ocean); border-color: var(--white); }
.city.is-active svg { color: var(--red); }
.city.is-soon { color: var(--on-dark-2); }
.city em { font-style: normal; font-size: .64rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: var(--sun); color: var(--ocean); padding: 2px 7px; border-radius: 999px; }
.hero__jina { display: none; margin: 0; padding: var(--s2) var(--s3); border: 0; border-radius: var(--r2); background: rgba(6,43,68,.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); position: relative; max-width: 300px; justify-self: end; align-self: start; }
.hero__jina::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 6px; background: var(--pindo) 0 0 / 24px 16px; -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude; pointer-events: none; }
@media (min-width: 900px) {
  .hero__inner { grid-template-columns: 1fr auto; align-items: end; padding-block: var(--s12) var(--s6); }
  .hero__jina { display: grid; order: 2; }
}
.pindo--hero { position: relative; z-index: 1; }

/* ---------- Countdown ---------- */
.countdown { background: var(--ocean); color: var(--on-dark); }
.countdown__inner { display: grid; gap: var(--s2); padding-block: var(--s4); }
.countdown__label { font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--sun); }
html[lang="ar"] .countdown__label { letter-spacing: 0; font-size: .9rem; }
.countdown__nums { display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--s1) var(--s3); margin-top: var(--s1); }
.countdown__nums b { font-family: var(--f-display); font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; }
.countdown__nums small { font-size: .85rem; font-weight: 700; color: var(--on-dark-2); margin-inline-start: 6px; }
.countdown__big b { font-size: clamp(3rem, 14vw, 5rem); color: var(--sun); }
.countdown__big small { font-size: 1rem; color: var(--white); }
.countdown__small b { font-size: 1.6rem; }
.countdown__msg { font-family: var(--f-display); font-weight: 800; font-size: 1.6rem; color: var(--sun); margin-top: var(--s1); }
.countdown__meta { display: grid; gap: var(--s1); align-content: center; }
.countdown__dates { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 600; font-size: 1.05rem; }
.countdown__dates svg { width: 22px; height: 22px; color: var(--turq); flex: none; }
.countdown__note { display: inline-flex; width: fit-content; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); font-size: .88rem; color: var(--on-dark-2); }
@media (min-width: 768px) { .countdown__inner { grid-template-columns: 1fr auto; align-items: center; } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 10vw, 112px); position: relative; overflow-x: clip; }
.section--tint { background: var(--bg-2); background-image: var(--dots); background-size: 24px 24px; }
.section--ocean { background: var(--ocean); color: var(--on-dark); padding-block: 0; }
.section__pad { padding-block: clamp(56px, 9vw, 96px); }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 28%; }
    @keyframes reveal { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }
  }
}

/* ---------- Matchday ---------- */
.match { display: grid; gap: var(--s3); }
@media (min-width: 1000px) { .match { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--s5); align-items: start; } }
.match--single { max-width: 820px; }
@media (min-width: 1000px) { .match--single { grid-template-columns: 1fr; } }

.planner { background: var(--surface); border-radius: var(--r3); box-shadow: var(--shadow-2); padding: var(--s3) var(--s2) var(--s3); border: 1px solid var(--line); min-width: 0; }
@media (min-width: 560px) { .planner { padding: var(--s4); } }
.planner__bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2);
  padding: var(--s2) var(--s2) var(--s2) var(--s3); margin-bottom: var(--s4);
  border-radius: var(--r2); color: var(--on-dark);
  background: linear-gradient(135deg, var(--ocean), var(--ocean-2));
  position: relative; overflow: hidden;
}
.planner__bar::after { content: ""; position: absolute; inset: auto 0 0 0; height: 6px; background: var(--pindo) 0 -13px / 24px 16px repeat-x; }
.planner__label { font-family: var(--f-display); font-weight: 800; font-size: 1.3rem; line-height: 1.1; }
.planner__hint { font-size: .82rem; color: var(--on-dark-2); }
.stepper { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: var(--r2); background: rgba(255,255,255,.1); border: 2px solid var(--sun); direction: ltr; }
.stepper button { width: 44px; height: 44px; border: 0; border-radius: 12px; background: rgba(255,255,255,.14); color: var(--on-dark); font-size: 1.4rem; font-weight: 800; line-height: 1; transition: background-color .15s, transform .12s; }
.stepper button:hover { background: var(--sun); color: var(--ocean); }
.stepper button:active { transform: scale(.92); }
.stepper output { min-width: 4.6ch; text-align: center; font-family: var(--f-display); font-weight: 800; font-size: 1.5rem; font-variant-numeric: tabular-nums; }

.timeline { list-style: none; margin: 0 0 var(--s4); padding: 0; position: relative; }
.timeline::before {
  content: ""; position: absolute; inset-inline-start: 43px; top: 12px; bottom: 12px; width: 6px; border-radius: 3px;
  background: repeating-linear-gradient(180deg, var(--turq) 0 14px, var(--sun) 14px 20px, var(--turq) 20px 34px, var(--red) 34px 40px);
}
.timeline li { position: relative; display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: var(--s2); padding-bottom: var(--s3); }
.timeline li:last-child { padding-bottom: 0; }
.timeline__when {
  position: relative; z-index: 1; align-self: start;
  display: grid; justify-items: center; gap: 2px;
  padding: 10px 4px; border-radius: var(--r2);
  background: var(--sun); color: var(--ocean);
  box-shadow: 0 4px 0 var(--sun-deep);
}
.timeline__clock { font-family: var(--f-display); font-weight: 800; font-size: 1.15rem; font-variant-numeric: tabular-nums; line-height: 1.1; direction: ltr; }
.timeline__when span { font-size: .72rem; font-weight: 800; }
.timeline li:last-child .timeline__when { background: var(--ocean); color: var(--sun); box-shadow: 0 4px 0 #021827; }
.timeline__clock.is-flash { animation: flash .5s var(--ease); }
@keyframes flash { 0% { transform: scale(1.2); } 100% { transform: none; } }
.timeline__body h3 { font-size: 1.15rem; margin-top: 6px; }
.timeline__body p { margin-top: 6px; color: var(--text-2); }

.ride { display: grid; gap: var(--s3); align-items: start; }
@media (min-width: 900px) { .ride { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--s4); } }
.cards--stack { grid-template-columns: 1fr !important; }
.cards--stack .card--soon { max-width: none; }
.transport { display: grid; gap: 0; min-width: 0; border-radius: var(--r3); overflow: hidden; box-shadow: var(--shadow-2); background: var(--surface); border: 1px solid var(--line); }
.photo--transport { aspect-ratio: 16 / 10; }
.photo--transport img { object-position: 45% 70%; }
@media (min-width: 1000px) { .photo--transport { aspect-ratio: 4 / 3; } }
.transport__card { padding: var(--s3); }
.transport__head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--s1); margin-bottom: var(--s1); }
.transport__head h3 { font-size: 1.25rem; }
.transport__list { list-style: none; margin: 0; padding: 0; }
.transport__list li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: var(--s2); padding-block: var(--s2); border-bottom: 1px dashed var(--line); }
.transport__list li:last-child { border-bottom: 0; }
.transport__list h4 { margin: 0; font-size: 1rem; }
.transport__list p { font-size: .92rem; color: var(--text-2); }
.price { display: inline-block; margin-top: 4px; font-weight: 800; color: var(--closed-fg); font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }
.price small { font-weight: 600; color: var(--text-2); margin-inline-end: 4px; }

.icon-badge { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--icon-bg); color: var(--icon-fg); flex: none; }
.icon-badge svg { width: 26px; height: 26px; }

/* ---------- Photo banners ---------- */
.banner { position: relative; border-radius: var(--r3); overflow: hidden; box-shadow: var(--shadow-3); color: var(--on-dark); margin-bottom: var(--s4); min-height: 320px; display: flex; align-items: flex-end; }
.photo--banner { position: absolute; inset: 0; }
.banner--eat .photo--banner img { object-position: 50% 50%; }
/* Eat: heading beside a small framed photo. The pilau photo is 387x516, so it is never shown
   wider than 387px. Swap in a bigger photo later and this can grow. */
.feature { display: grid; gap: var(--s3); margin-bottom: var(--s4); align-items: center; }
.feature__text { max-width: 640px; display: grid; gap: var(--s4); }
.feature__photo { margin: 0; width: 100%; max-width: 420px; aspect-ratio: 4 / 5; border-radius: var(--r3); overflow: hidden; box-shadow: var(--shadow-2); background: var(--surface-2); }
.feature__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 768px) { .feature { grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: var(--s5); } .feature__photo { justify-self: end; } }
@media (min-width: 768px) { .feature--flip { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); } .feature--flip .feature__photo { order: -1; justify-self: start; } }

.banner::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(6,43,68,.94) 0%, rgba(6,43,68,.6) 45%, rgba(6,43,68,0) 85%); }
.banner__text { position: relative; z-index: 2; padding: var(--s4) var(--s3) var(--s3); }
.banner__text .jina { margin-top: var(--s2); }
@media (min-width: 768px) { .banner { min-height: 420px; } .banner__text { padding: var(--s6); } }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2); margin-bottom: var(--s3); }
.toolbar__intro { font-size: 1.05rem; color: var(--text-2); max-width: 56ch; }
.toolbar__end { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* switch */
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 16px 6px 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); font-weight: 700; font-size: .9rem; cursor: pointer; user-select: none; }
[dir="rtl"] .switch { padding: 6px 6px 6px 16px; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch__track { position: relative; width: 44px; height: 28px; border-radius: 999px; background: var(--line); transition: background-color .2s; flex: none; }
.switch__track::after { content: ""; position: absolute; top: 4px; inset-inline-start: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--white); box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .25s var(--ease); }
.switch input:checked + .switch__track { background: var(--wa); }
.switch input:checked + .switch__track::after { transform: translateX(16px); }
[dir="rtl"] .switch input:checked + .switch__track::after { transform: translateX(-16px); }
.switch input:focus-visible + .switch__track { outline: 3px solid var(--turq); outline-offset: 2px; }

/* tabs */
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); width: 100%; max-width: 420px; }
.tabs button { flex: 1; min-height: 44px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; font-weight: 800; transition: background-color .2s, color .2s; }
.tabs button:hover { background: var(--surface-2); }
.tabs button[aria-selected="true"] { background: var(--ocean); color: var(--white); }
:root[data-theme="dark"] .tabs button[aria-selected="true"] { background: var(--turq); color: var(--ocean); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tabs button[aria-selected="true"] { background: var(--turq); color: var(--ocean); } }

/* ---------- Cards ---------- */
.cards { display: grid; gap: var(--s2); }
@media (min-width: 680px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); } }
@media (min-width: 1040px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card {
  position: relative; min-width: 0;
  display: flex; flex-direction: column; gap: 12px;
  padding: var(--s3); padding-top: calc(var(--s3) + 8px);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r3);
  box-shadow: var(--shadow-1);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s;
  overflow: hidden;
}
.card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 8px; background: var(--pindo) 0 -12px / 24px 16px repeat-x; }
@media (hover: hover) { .card:hover { transform: translateY(-4px); box-shadow: var(--shadow-3); border-color: var(--turq); } }
.card__top { display: flex; align-items: center; gap: 12px; }
.card__top > div { min-width: 0; }
.card h3 { font-size: 1.08rem; }
.card__area { font-size: .86rem; color: var(--text-2); }
.card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1) 12px; }
.card__time { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .88rem; font-variant-numeric: tabular-nums; direction: ltr; }
.card__time svg { width: 16px; height: 16px; color: var(--turq-ink); }
.card__note { font-size: .82rem; color: var(--text-2); }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
html[lang="ar"] .status { letter-spacing: 0; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status--open { color: var(--open-fg); background: color-mix(in srgb, var(--open-fg) 14%, transparent); }
.status--closed { color: var(--closed-fg); background: color-mix(in srgb, var(--closed-fg) 12%, transparent); }
.card__price { font-weight: 800; color: var(--closed-fg); font-variant-numeric: tabular-nums; }
.card__text { color: var(--text-2); font-size: .95rem; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.tags li { font-size: .74rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.card .btn { margin-top: auto; width: 100%; }
/* "Coming soon" listing card: one per category until real venues are added */
.card--soon { grid-column: 1 / -1; max-width: 640px; border-style: dashed; border-width: 2px; border-color: var(--turq); }
.card--soon .card__text { font-size: 1.05rem; color: var(--text); }
.card--soon .btn { width: auto; align-self: flex-start; margin-top: var(--s1); }
.soon-badge { display: inline-block; margin-bottom: 4px; padding: 2px 10px; border-radius: 999px; background: var(--sun); color: var(--ocean); font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
html[lang="ar"] .soon-badge { letter-spacing: 0; }
#get-featured { position: relative; top: calc(-1 * var(--nav-h)); }
.empty { grid-column: 1 / -1; padding: var(--s4); text-align: center; border: 2px dashed var(--line); border-radius: var(--r3); color: var(--text-2); }

/* ---------- Swahili ---------- */
/* Every card gets the height of the tallest one, so rows line up evenly */
.phrases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: var(--s2); align-items: stretch; }
/* stretch each card to its grid row without percentage heights (those confuse the row sizing) */
.phrases .phrase-card { display: flex; }
.phrases .phrase { flex: 1; display: flex; }
.phrases .phrase__inner { flex: 1; }
/* the phrase title is at least as tall as the speaker button, so the pronunciation starts below it */
.phrase__front strong, .phrase__back strong { min-height: 40px; }
@media (min-width: 900px) { .phrases { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); } }
.phrase-card { position: relative; min-width: 0; }
.phrase { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: start; perspective: 1000px; border-radius: var(--r2); }
/* Front and back share one grid cell, so the card is exactly as tall as its longer side — no clipping, no padding gap */
.phrase__inner { position: relative; display: grid; transform-style: preserve-3d; transition: transform .6s var(--ease); }
.phrase__inner > .phrase__face { grid-area: 1 / 1; }
.phrase[aria-expanded="true"] .phrase__inner { transform: rotateY(180deg); }
.phrase__face {
  position: relative; display: flex; flex-direction: column; gap: 4px;
  padding: var(--s2); border-radius: var(--r2); overflow: hidden;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.phrase__front { background: var(--sand); color: var(--ocean); box-shadow: 0 6px 0 var(--turq); }
.phrase__front::after { content: ""; position: absolute; inset: auto 0 0 0; height: 8px; background: var(--pindo) 0 -12px / 24px 16px repeat-x; }
.phrase__front strong { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.05rem, 4.4vw, 1.5rem); line-height: 1.1; padding-inline-end: 44px; color: var(--ocean); }
.phrase__say { font-size: .76rem; color: #5A6B78; font-weight: 600; overflow-wrap: anywhere; direction: ltr; text-align: start; }
.phrase__meaning { font-size: .92rem; font-weight: 700; color: #24465D; margin-top: 2px; }
.phrase__hint { margin-top: auto; padding-top: 8px; font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--turq-ink); padding-bottom: 6px; }
.phrase__back { background: var(--sun); color: var(--ocean); transform: rotateY(180deg); box-shadow: 0 6px 0 var(--sun-deep); font-size: .88rem; line-height: 1.4; }
.phrase__back strong { font-family: var(--f-display); font-weight: 800; font-size: 1.1rem; padding-inline-end: 44px; }
.speak {
  position: absolute; top: 10px; inset-inline-end: 10px; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; border: 0;
  display: grid; place-items: center;
  background: var(--ocean); color: var(--sun); box-shadow: var(--shadow-2);
  transition: transform .15s var(--ease), background-color .2s;
}
.speak:hover { transform: scale(1.06); }
.speak:active { transform: scale(.94); }
.speak svg { width: 22px; height: 22px; }
.speak.is-speaking { background: var(--red); color: var(--white); }
@media (prefers-reduced-motion: no-preference) { .speak.is-speaking { animation: pulse 1s ease-in-out infinite; } }
@keyframes pulse { 50% { transform: scale(1.12); } }

/* ---------- Zanzibar teaser ---------- */
.teaser { position: relative; border-radius: var(--r4); overflow: hidden; min-height: 460px; display: flex; align-items: flex-end; color: var(--on-dark); box-shadow: var(--shadow-3); }
.photo--teaser { position: absolute; inset: 0; }
.photo--teaser img { object-position: 30% 50%; }
.teaser::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(6,43,68,.92) 0%, rgba(6,43,68,.55) 42%, rgba(6,43,68,0) 75%); }
.teaser__text { position: relative; z-index: 2; padding: var(--s4) var(--s3); max-width: 640px; }
/* Zanzibar card without a photo: turquoise sea, sun and a large kanga border pattern */
.teaser--pattern {
  background:
    radial-gradient(circle at 82% 22%, var(--sun) 0 64px, rgba(255,194,26,.25) 65px 110px, transparent 111px),
    repeating-linear-gradient(170deg, rgba(255,255,255,.07) 0 14px, transparent 14px 40px),
    linear-gradient(160deg, #00A6B4 0%, #007480 45%, var(--ocean) 100%);
}
.teaser--pattern::after { content: ""; position: absolute; inset: auto 0 0 0; height: 32px; background: var(--pindo) 0 0 / 48px 32px repeat-x; z-index: 2; }
.teaser--pattern::before { background: linear-gradient(0deg, rgba(6,43,68,.85) 0%, rgba(6,43,68,.2) 55%, transparent 80%); }
.teaser--pattern .teaser__text { padding-bottom: calc(var(--s4) + 32px); }
[dir="rtl"] .teaser--pattern { background:
    radial-gradient(circle at 18% 22%, var(--sun) 0 64px, rgba(255,194,26,.25) 65px 110px, transparent 111px),
    repeating-linear-gradient(190deg, rgba(255,255,255,.07) 0 14px, transparent 14px 40px),
    linear-gradient(200deg, #00A6B4 0%, #007480 45%, var(--ocean) 100%); }
.teaser h2 { font-size: clamp(2.6rem, 12vw, 6rem); }
.teaser__body { margin-top: var(--s2); font-size: 1.05rem; color: #E6F0F5; }
.ribbon {
  position: absolute; z-index: 3; top: 24px; inset-inline-end: -48px;
  transform: rotate(35deg); width: 220px; padding: 8px 0; text-align: center;
  background: var(--red); color: var(--white); font-weight: 800; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  box-shadow: 0 6px 16px rgba(0,0,0,.25);
}
[dir="rtl"] .ribbon { transform: rotate(-35deg); }
html[lang="ar"] .ribbon { letter-spacing: 0; }
@media (min-width: 768px) { .teaser { min-height: 560px; } .teaser__text { padding: var(--s6); } .teaser--pattern .teaser__text { padding-bottom: calc(var(--s6) + 32px); } }

/* ---------- Good to know ---------- */
.bento { display: grid; gap: var(--s2); }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r3); padding: var(--s3); box-shadow: var(--shadow-1); min-width: 0; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
@media (hover: hover) { .tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); } }
.tile h3 { margin: var(--s2) 0 var(--s1); font-size: 1.1rem; }
.tile p { color: var(--text-2); }
.tile__icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--ocean); color: var(--sun); }
.tile__icon svg { width: 28px; height: 28px; }
.tile__clock { font-family: var(--f-display); font-weight: 800; font-size: 2rem; color: var(--text) !important; line-height: 1.1; margin-bottom: var(--s1); font-variant-numeric: tabular-nums; }
@media (min-width: 700px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); } .converter { grid-column: 1 / -1; } }
@media (min-width: 1040px) { .bento { grid-template-columns: repeat(4, minmax(0, 1fr)); } .converter { grid-column: span 2; grid-row: span 2; } }

.converter { display: flex; flex-direction: column; gap: 12px; background: var(--ocean); color: var(--on-dark); border-color: transparent; position: relative; overflow: hidden; }
.converter::after { content: ""; position: absolute; inset: auto 0 0 0; height: 10px; background: var(--pindo) 0 -11px / 24px 16px repeat-x; }
.converter__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s1); }
.converter h3 { margin: 0; font-size: 1.4rem; }
.converter__label { font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-2); }
html[lang="ar"] .converter__label { letter-spacing: 0; font-size: .85rem; }
.converter__input { display: flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: var(--r2); background: rgba(255,255,255,.08); border: 2px solid rgba(255,255,255,.2); transition: border-color .2s; direction: ltr; }
.converter__input:focus-within { border-color: var(--sun); }
.converter__input span { font-weight: 800; color: var(--sun); }
.converter__input input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; color: var(--white); font-family: var(--f-display); font-weight: 800; font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.converter__presets { display: flex; flex-wrap: wrap; gap: var(--s1); }
.converter__presets button { min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.06); color: var(--white); font-size: .84rem; font-weight: 600; transition: border-color .2s, background-color .2s; }
.converter__presets button:hover { border-color: var(--sun); background: rgba(255,194,26,.12); }
.converter__presets b { color: var(--sun); margin-inline-start: 6px; direction: ltr; unicode-bidi: isolate; }
.converter__out { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: auto; }
.converter__out div { padding: var(--s2); border-radius: var(--r2); background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); min-width: 0; }
.converter__out span { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .12em; color: var(--on-dark-2); }
.converter__out strong { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.4rem, 6vw, 2rem); color: var(--sun); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.converter .fineprint { color: var(--on-dark-2); margin: 0 0 var(--s1); }

/* ---------- Business ---------- */
.biz {
  position: relative; overflow: hidden;
  display: grid; gap: var(--s5);
  padding: var(--s5) var(--s3);
  border-radius: var(--r4); color: var(--on-dark);
  background: radial-gradient(80% 70% at 100% 0%, rgba(0,166,180,.45), transparent 60%), linear-gradient(160deg, var(--ocean-2), var(--ocean));
  box-shadow: var(--shadow-3);
}
.biz::before { /* kanga frame */
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 10px;
  background: var(--pindo) 0 0 / 30px 20px;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
  pointer-events: none;
}
.biz__text { position: relative; min-width: 0; }
.biz__intro { margin-top: var(--s2); font-size: 1.08rem; color: var(--on-dark-2); max-width: 48ch; }
.package { list-style: none; margin: var(--s3) 0; padding: 0; display: grid; gap: 12px; }
.package li { display: flex; align-items: flex-start; gap: 12px; font-weight: 700; }
.check { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--sun); position: relative; }
.check::after { content: ""; position: absolute; left: 10px; top: 5px; width: 7px; height: 12px; border: solid var(--ocean); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.biz__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.biz__note { font-size: .85rem; color: var(--on-dark-2); }
@media (min-width: 960px) { .biz { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; padding: var(--s8); } }

.phone-wrap { position: relative; display: grid; justify-items: center; gap: var(--s2); min-width: 0; }
.phone-wrap__label { display: inline-flex; align-items: center; gap: var(--s1); padding: 6px 12px; border-radius: 999px; background: rgba(0,0,0,.25); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
html[lang="ar"] .phone-wrap__label { letter-spacing: 0; }
.phone { position: relative; width: 272px; max-width: 100%; aspect-ratio: 9 / 18.5; padding: 12px; border-radius: 44px; background: #021522; box-shadow: 0 0 0 2px #1E4A66, 0 32px 64px rgba(0,0,0,.45); }
@media (prefers-reduced-motion: no-preference) { .phone { animation: float 7s ease-in-out infinite; } }
@keyframes float { 50% { transform: translateY(-10px); } }
.phone__notch { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 84px; height: 22px; border-radius: 999px; background: #000; z-index: 2; }
.phone__screen { height: 100%; border-radius: 34px; overflow: hidden; background: #F7EDDC; color: #062B44; display: flex; flex-direction: column; gap: 8px; padding: 48px 14px 14px; font-family: var(--f-body); }
.phone__screen[dir="rtl"] { font-family: var(--f-ar); }
.mock__langs { display: flex; gap: 4px; align-self: flex-end; }
.phone__screen[dir="rtl"] .mock__langs { align-self: flex-start; }
.mock__langs button { border: 0; cursor: pointer; font: inherit; font-size: .62rem; font-weight: 800; padding: 4px 8px; border-radius: 999px; background: #E4D3B4; color: #062B44; transition: background-color .3s, color .3s; }
.mock__langs button.is-on { background: #00A6B4; color: #062B44; }
.mock__hero { display: grid; gap: 2px; padding: 14px; border-radius: 16px; color: #fff; background: linear-gradient(135deg, #062B44, #00808C); }
.mock__hero strong { font-family: var(--f-display); font-weight: 800; font-size: 1.15rem; }
.mock__hero em { font-size: .78rem; }
.mock__stars { font-size: .62rem; color: #FFC21A; }
.mock__h { font-family: var(--f-display); font-weight: 800; font-size: .85rem; color: #B4231D; }
.mock__menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.mock__menu li { display: flex; justify-content: space-between; gap: 8px; font-size: .72rem; padding: 6px 9px; border-radius: 10px; background: #fff; border: 1px solid #E4D3B4; }
.mock__menu b { color: #B4231D; }
.mock__open { font-size: .68rem; font-weight: 700; color: #0E7A43; }
.mock__wa { padding: 9px; border-radius: 999px; background: #128C4B; color: #fff; font-size: .8rem; font-weight: 800; text-align: center; }
.mock__map { margin-top: auto; display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 12px; font-size: .66rem; background: repeating-linear-gradient(45deg, #E3F0E0 0 10px, #D7EAD3 10px 20px); }
.mock__map span { width: 14px; height: 14px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: #E4322B; flex: none; }
.mock-fade { animation: mockFade .45s var(--ease); }
@keyframes mockFade { from { opacity: 0; transform: translateY(6px); } }

/* ---------- Footer ---------- */
.footer { background: var(--ocean); color: var(--on-dark-2); }
.footer__inner { display: grid; gap: var(--s4); padding-block: var(--s6) var(--s8); }
.logo__word--footer { font-size: 1.6rem; color: var(--white); margin-bottom: var(--s1); }
.footer__offline { display: inline-flex; align-items: center; gap: var(--s1); margin-top: var(--s2); font-size: .88rem; }
.footer__offline::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--turq); flex: none; }
.footer__legal { display: grid; gap: var(--s1); font-size: .92rem; }
.footer__disclaimer { font-weight: 800; color: var(--white); }
.footer__translated { font-style: italic; }
html[lang="en"] .footer__translated { display: none; }
.footer__credits, .footer__copy { font-size: .82rem; opacity: .85; }
.footer__credits a { color: inherit; text-underline-offset: 2px; }
.footer__credits a:hover { color: var(--sun); }
@media (min-width: 800px) { .footer__inner { grid-template-columns: 1fr 1.4fr; } }

/* ---------- Phone dock (sticky CTA after hero) ---------- */
.dock {
  position: fixed; z-index: 40; left: 0; right: 0; bottom: 0;
  display: flex; gap: var(--s1); align-items: center;
  padding: var(--s1) var(--gutter-r) calc(var(--s1) + env(safe-area-inset-bottom, 0px)) var(--gutter-l);
  background: color-mix(in srgb, var(--ocean) 94%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 -8px 24px rgba(0,0,0,.2);
  transform: translateY(110%); transition: transform .3s var(--ease); visibility: hidden;
}
.dock.is-visible { transform: none; visibility: visible; }
.dock__plan { flex: 1; min-height: 52px; }
@media (max-width: 899px) { body.has-dock .footer { padding-bottom: 72px; } }
@media (min-width: 900px) { .dock { display: none; } }

/* ---------- Ask KaribuFans ---------- */
.ai-backdrop { position: fixed; inset: 0; z-index: 84; background: rgba(2,21,34,.5); }
.ai {
  position: fixed; z-index: 85;
  left: var(--gutter-l); right: var(--gutter-r); bottom: calc(var(--s1) + env(safe-area-inset-bottom, 0px));
  max-height: min(640px, calc(100dvh - var(--nav-h) - 24px));
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); color: var(--text);
  border-radius: var(--r3); border: 1px solid var(--line); box-shadow: var(--shadow-3);
}
@media (prefers-reduced-motion: no-preference) { .ai { animation: aiIn .3s var(--ease); } }
@keyframes aiIn { from { opacity: 0; transform: translateY(16px); } }
@media (min-width: 640px) { .ai { left: auto; width: 400px; top: calc(var(--nav-h) + 12px); bottom: auto; } [dir="rtl"] .ai { right: auto; left: var(--gutter-l); } }
.ai__head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px var(--s2); background: var(--ocean); color: var(--white); }
.ai__head > div { flex: 1; min-width: 0; }
.ai__head h2 { font-size: 1.05rem; }
.ai__head p { font-size: .74rem; color: var(--sun); font-weight: 700; }
.ai__orb { width: 36px; height: 36px; border-radius: 50%; flex: none; background: conic-gradient(var(--sun), var(--red), var(--turq), var(--sun)); position: relative; }
.ai__orb::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--ocean); }
.ai__close { width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: var(--white); font-size: 1.5rem; line-height: 1; }
.ai__log { flex: 1; min-height: 160px; overflow-y: auto; padding: var(--s2); display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 88%; padding: 10px 14px; border-radius: 18px; font-size: .94rem; line-height: 1.5; }
.msg--bot { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--line); border-end-start-radius: 6px; }
.msg--user { align-self: flex-end; background: var(--ocean); color: var(--white); border-end-end-radius: 6px; }
.msg a { display: inline-block; margin-top: 6px; font-weight: 800; color: var(--link); }
.typing { display: inline-flex; gap: 4px; padding: 4px 0; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--text-2); }
@media (prefers-reduced-motion: no-preference) { .typing i { animation: typing 1s infinite; } .typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; } }
@keyframes typing { 50% { opacity: .3; transform: translateY(-3px); } }
.ai__chips { display: flex; gap: var(--s1); overflow-x: auto; padding: 0 var(--s2) 12px; scrollbar-width: none; }
.ai__chips button { flex: none; min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: .84rem; font-weight: 700; }
.ai__chips button:hover { border-color: var(--turq); }
.ai__form { display: flex; gap: var(--s1); padding: 12px; border-top: 1px solid var(--line); }
.ai__form input { flex: 1; min-width: 0; height: 48px; padding: 0 var(--s2); border-radius: 999px; border: 1.5px solid var(--line); background: var(--bg); font-size: 16px; }
.ai__form input:focus { outline: none; border-color: var(--turq); }
.ai__send { width: 48px; height: 48px; flex: none; border: 0; border-radius: 50%; background: var(--sun); color: var(--ocean); display: grid; place-items: center; }
.ai__send svg { width: 22px; height: 22px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; z-index: 90; left: 50%; bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  max-width: calc(100% - 32px); padding: 12px 18px; border-radius: var(--r2);
  background: var(--ocean); color: var(--white); font-weight: 700; box-shadow: var(--shadow-3);
  border-inline-start: 6px solid var(--sun);
  transform: translate(-50%, 16px); opacity: 0; visibility: hidden; pointer-events: none;
  transition: transform .25s var(--ease), opacity .25s, visibility .25s;
}
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
@media (min-width: 900px) { .toast { bottom: 32px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
