/* Colours from the mobile app's BRAND palette (mobile/src/jobby/brand.tsx) */
:root {
  --page-bg: #1270F0;     /* BRAND.blue */
  --ink: #0E1B2E;         /* BRAND.ink */
  --body: #4A5A72;        /* BRAND.body */
  --muted: #8A97AB;       /* BRAND.muted */
  --accent: #1270F0;      /* BRAND.blue */
  --accent-deep: #0B5FD9; /* BRAND.blueDark */
  --yellow: #FFC24B;      /* BRAND.yellow */
  --card: #ffffff;
  --page-light: #F3F6FB;  /* BRAND.page */
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--page-light);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
html { scroll-behavior: smooth; }

/* The opening screen: the map tour fills the first screen, and the page scrolls on below it */
.opening {
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: var(--page-bg);
}

/* Map fills the opening screen. Touches go to the page (so it scrolls); the tour drives the map itself. */
#map {
  position: absolute;
  inset: 0;
  background: var(--page-bg);
  pointer-events: none;
}

/* Map credits, in the opening screen's corner */
.credit {
  position: absolute;
  inset-inline-start: 8px;
  bottom: 6px;
  z-index: 10;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.85);
  pointer-events: none;
}

/* Browsers need a tap before they play sound */
/* Headline card at the top */
/* Blue header band that fades down into the map */
.intro {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  padding: max(18px, env(safe-area-inset-top)) 18px 56px;
  background: linear-gradient(to bottom, var(--page-bg) 0%, var(--page-bg) 55%, rgba(28, 121, 246, 0) 100%);
  pointer-events: none;
}
/* The logo reads left to right in every language */
.brand { display: flex; width: fit-content; direction: ltr; align-items: center; gap: 10px; margin-bottom: 12px; }
.jmark { width: 22px; height: auto; flex: none; }
.logo-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); margin-left: -6px; margin-top: -14px; flex: none; }
.wordmark { color: #fff; font-size: 26px; font-weight: 800; font-style: italic; letter-spacing: -0.5px; line-height: 1; }
.intro h1 { margin: 0; font-size: 18px; line-height: 1.25; color: #fff; }
.intro p { margin: 4px 0 0; font-size: 13px; color: rgba(255, 255, 255, 0.85); }

/* Finale: the three cards on the map are a little smaller, so they sit side by side without overlapping */
/* Finale: the button to vote for your district */
.vote-link {
  display: none;
  position: absolute;
  left: 50%;
  bottom: max(34px, env(safe-area-inset-bottom));
  z-index: 26;
  transform: translateX(-50%);
  padding: 14px 26px;
  border-radius: 999px;
  background: #fff;
  color: var(--accent-deep);
  font: 700 16px system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  text-decoration: none;
  box-shadow: 0 12px 26px rgba(5, 20, 50, 0.35);
  white-space: nowrap;
}
body.showcase-on .vote-link { display: block; }

/* Finale: a tapped card lifts to the front; its feature description appears in bold below the cards */
body.showcase-on .tip-icon .tip {
  transition: transform 0.35s cubic-bezier(0.2, 1.3, 0.4, 1), scale 0.35s ease;
}
body.showcase-on .tip-icon.lifted { z-index: 20; }
/* A card held invisible while it is centred, then popped in */
body.showcase-on .tip-icon.hold .tip { animation: none; opacity: 0; }
/* Only the selected card's icon bobs; the others stay still */
body.showcase-on .tip-icon:not(.lifted) .hero { animation: none; }
body.showcase-on .tip-icon.lifted .tip {
  animation: none;
  opacity: 1;
  transform: translateX(-50%) translateY(-34px) rotate(0deg);
  scale: calc(var(--finale-scale, 0.72) * 1.15);
}
.finale-caption {
  position: absolute;
  left: 50%;
  top: 74%;
  z-index: 25;
  width: min(460px, 86vw);
  transform: translateX(-50%);
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
  color: #fff;
  text-align: center;
  text-shadow: 0 1px 8px rgba(5, 20, 50, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
body.caption-on .finale-caption { opacity: 1; }
.finale-caption.hint { font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, 0.85); }
.finale-caption b { display: block; margin-bottom: 4px; font-size: 19px; font-weight: 800; }
.finale-caption span { display: block; font-size: 15px; font-weight: 500; line-height: 1.45; color: rgba(255, 255, 255, 0.92); }

/* No round pin dots in the finale, and no float bob, so the three cards stay level */
body.showcase-on .tip-icon .pin { display: none; }
body.showcase-on .tip-icon .float { animation: none; }
body.showcase-on .tip-icon .tip {
  scale: var(--finale-scale, 0.72);
  height: 440px; /* all three finale cards share the same height; content is spread evenly */
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  transform: translateX(-50%) rotate(var(--tilt, 0deg));
  animation: popFlat 0.35s cubic-bezier(0.2, 1.3, 0.4, 1) forwards;
}
@keyframes popFlat {
  0%   { opacity: 0; transform: translateX(-50%) rotate(var(--tilt, 0deg)) scale(0.2); }
  100% { opacity: 1; transform: translateX(-50%) rotate(var(--tilt, 0deg)); }
}

/* Showcase: the map and the blue header fade out, and the carousel of features fades in */
#map, .intro, .credit, .cta {
  transition: opacity 0.6s ease;
}
/* Finale: the map is a faint, still background that can't be used; its edges fade out.
   Only the cards take taps. */
body.showcase-on #map { pointer-events: none; }
body.showcase-on .tip-icon,
body.showcase-on .tip-icon * { pointer-events: auto; }
body.showcase-on .maplibregl-canvas {
  opacity: 0.3;
  transition: opacity 0.6s ease;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 35%, transparent 75%);
  mask-image: radial-gradient(ellipse at center, #000 35%, transparent 75%);
}
body.showcase-on .credit,
body.showcase-on .cta {
  opacity: 0;
  pointer-events: none;
}
.showcase {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  background: transparent; /* the map stays visible underneath, with no gradient */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease 0.3s;
}
body.showcase-on .showcase {
  opacity: 1;
  pointer-events: auto;
}
.showcase .carousel {
  display: flex;
  gap: 20px;
  width: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  align-items: flex-start; /* cards keep their own height, so the captions line up across the row */
  padding: 24px max(24px, calc(50% - 130px));
  scrollbar-width: none;
}
.showcase .carousel::-webkit-scrollbar { display: none; }
.showcase .slide {
  flex: 0 0 260px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 16px;
  scroll-snap-align: center;
  margin: 0;
}
/* The card, shown as a still card rather than pinned to the map */
.showcase .slide .tip {
  position: relative;
  left: auto;
  bottom: auto;
  transform: none;
  opacity: 1;
  animation: none;
  width: 232px;
  padding: 0 14px 16px;
  border-radius: 22px;
  text-align: center;
  background: linear-gradient(165deg, #ffffff 0%, #eaf3ff 100%);
  box-shadow: 0 18px 36px rgba(5, 20, 50, 0.18), 0 4px 10px rgba(5, 20, 50, 0.1);
}
.showcase .slide .tip::after { display: none; }
.showcase .slide figcaption {
  max-width: 250px;
  font-size: 15px;
  line-height: 1.45;
  color: #fff;
  text-shadow: 0 1px 6px rgba(5, 20, 50, 0.6);
  text-align: center;
}


/* Main call to action */
.cta {
  position: absolute;
  left: 50%;
  bottom: max(34px, env(safe-area-inset-bottom));
  z-index: 20;
  transform: translateX(-50%);
  padding: 14px 28px;
  border-radius: 999px;
  background: #fff;
  color: var(--accent-deep);
  font: 700 16px system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  text-decoration: none;
  box-shadow: 0 12px 26px rgba(5, 20, 50, 0.35);
  white-space: nowrap;
}

/* User position */
.you {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid #fff;
  animation: ping 1s infinite;
}
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.6); }
  70%, 100% { box-shadow: 0 0 0 18px rgba(255, 255, 255, 0); }
}

/* ---------- Store pin + deal card ----------
   The marker element is 0x0, so children position from its centre.
   perspective on the wrapper gives the card real 3D depth. */
.tip-icon { width: 0; height: 0; overflow: visible; }

/* Gentle float: the wrapper moves, the card keeps its own pop and fade animations */
.tip-icon .float {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 0;
  perspective: 700px;
  animation: float 1.7s ease-in-out 0.35s infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
@media (prefers-reduced-motion: reduce) {
  .tip-icon .float { animation: none; }
}

.tip-icon .pin {
  position: absolute;
  left: -8px;
  top: -8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--accent);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  animation: dot 0.15s ease both;
}

.tip-icon .tip {
  position: absolute;
  left: 0;
  bottom: 26px;
  width: 176px;
  padding: 0 14px 16px;
  border-radius: 22px;
  text-align: center;
  background: linear-gradient(165deg, #ffffff 0%, #eaf3ff 100%);
  box-shadow:
    inset 0 1px 0 #fff,
    0 22px 40px rgba(5, 20, 50, 0.35),
    0 4px 10px rgba(5, 20, 50, 0.2);
  transform-style: preserve-3d;
  transform-origin: 50% 100%;
  transform: translateX(-50%) rotateX(14deg);
  opacity: 0;
  animation: pop 0.35s cubic-bezier(0.2, 1.3, 0.4, 1) forwards;
  cursor: pointer;
}
.tip-icon .tip::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-bottom: 0;
  border-top-color: #eaf3ff;
}

/* Avatar floats above the card */
.tip .avatar {
  width: 68px;
  height: 68px;
  margin: -34px auto 8px;
  padding: 3px;
  border-radius: 50%;
  background: var(--fg, #1270F0);
  box-shadow: 0 12px 24px rgba(5, 20, 50, 0.3);
  transform: translateZ(36px);
}
/* Category icon, for shops without a logo */
.tip .avatar-icon {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid #fff;
}
.tip .cat-icon { width: 60%; height: 60%; }
.tip .avatar img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid #fff;
  object-fit: cover;
  background: #dbe8ff;
}

.tip h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  transform: translateZ(20px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Promo badge with the percentage */
.tip .deal {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  margin: 10px 0 0;
  padding: 8px 16px 9px;
  border-radius: 999px;
  color: #fff;
  background: var(--fg, #1270F0);
  box-shadow: 0 10px 22px rgba(5, 20, 50, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transform: translateZ(40px);
}
.tip .deal .pct {
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.5px;
}
.tip .deal .off {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  opacity: 0.9;
}

/* Shops without a deal yet: a teaser, not an empty card */
/* Excitement: a sparkle burst when a deal appears, and a ripple when the pin lands */
.tip .deal { position: relative; }
.tip .deal .burst {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  pointer-events: none;
  box-shadow:
    0 -18px var(--fg), 13px -13px var(--fg), 18px 0 var(--fg), 13px 13px var(--fg),
    0 18px var(--fg), -13px 13px var(--fg), -18px 0 var(--fg), -13px -13px var(--fg);
}
.tip .deal .burst.once {
  opacity: 0;
  animation: burstOnce 0.45s ease-out 0.225s 1 forwards;
}
@keyframes burstOnce {
  0%   { opacity: 1; transform: scale(0.3); }
  100% { opacity: 0; transform: scale(2.2); }
}
.tip-icon .pin::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid var(--fg, var(--accent));
  animation: ripple 0.5s ease-out 2;
}
@keyframes ripple {
  0%   { transform: scale(1); opacity: 0.9; }
  100% { transform: scale(4); opacity: 0; }
}

/* Demo scenes: a wider card with an offer, a filling loyalty card, or a booking */
.tip-icon .tip.wide { width: 232px; }
.tip .item { margin: 6px 0 0; font-size: 13px; color: var(--muted); font-weight: 600; }
.tip .reward {
  margin: 10px 0 0;
  font-size: 15px;
  font-weight: 800;
  color: var(--fg);
  animation: fadeUp 0.2s ease-out var(--d, 0s) both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

/* Loyalty card: stamps fill one by one, the last one is the reward */
.tip .deal.stamps {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
  background: none;
  box-shadow: none;
  color: var(--fg);
  padding: 0;
}
.tip .stamp {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px dashed var(--fg);
  font-size: 13px;
  line-height: 22px;
  animation: stampIn 0.2s ease-out var(--d) both;
}
.tip .stamp.gift { border-style: solid; }
@keyframes stampIn {
  0%   { transform: scale(0); background-color: transparent; }
  70%  { transform: scale(1.2); background-color: var(--fg); }
  100% { transform: scale(1); background-color: var(--fg); }
}

/* Booking: slots appear, one gets picked */
.tip .deal.calendar {
  display: block;
  margin-top: 10px;
  padding: 0;
  background: none;
  box-shadow: none;
  color: var(--fg);
}
.tip .slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.tip .slot {
  padding: 6px 4px;
  border-radius: 10px;
  border: 1.5px solid var(--fg);
  background: #fff;
  color: var(--fg);
  font-size: 12px;
  font-weight: 700;
  animation: slotIn 0.15s ease-out var(--d) both;
}
.tip .slot.picked {
  animation: slotIn 0.15s ease-out var(--d) both, pick 0.2s ease-out var(--pick) both;
}
@keyframes slotIn {
  from { opacity: 0; transform: scale(0.6); }
  to   { opacity: 1; transform: none; }
}
@keyframes pick {
  from { background: #fff; color: var(--fg); }
  to   { background: var(--fg); color: #fff; transform: scale(1.08); }
}

/* Loyalty card: a card with a header, a stamp grid, and a tick in each filled stamp */
.tip .deal.stampcard {
  display: block;
  margin-top: 10px;
  padding: 10px;
  border-radius: 14px;
  border: 1.5px dashed var(--fg);
  background: #fff;
  color: var(--fg);
  box-shadow: 0 6px 14px rgba(5, 20, 50, 0.1);
}
.tip .stamp-head {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg);
}
.tip .stamps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 8px;
  justify-items: center;
}
.tip .stamp {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px dashed var(--fg);
  animation: stampIn 0.2s ease-out var(--d) both;
}
.tip .stamp.gift { border-style: solid; font-size: 17px; }
.tip .stamp svg { width: 18px; height: 18px; opacity: 0; animation: tickIn 0.15s ease-out forwards; }
@keyframes tickIn { to { opacity: 1; } }

/* Rich scene details: a floating 3D icon, prices, stock, days and info chips */
.tip .hero {
  display: block;
  margin: 6px auto 0;
  object-fit: contain;
  filter: drop-shadow(0 8px 10px rgba(5, 20, 50, 0.25));
  animation: bob 1.2s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50%      { transform: translateY(-6px) rotate(4deg); }
}
.tip .prices { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.tip .prices s { margin-right: 8px; }
.tip .prices b { color: var(--fg); font-size: 16px; }
.tip .stock { height: 6px; margin-top: 10px; border-radius: 3px; background: #eef1f6; overflow: hidden; }
.tip .stock .fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 3px;
  background: var(--fg);
  animation: fillBar 0.6s ease-out 0.3s forwards;
}
@keyframes fillBar { to { width: var(--w); } }
.tip .days { display: flex; justify-content: center; gap: 6px; margin-top: 8px; }
.tip .day {
  padding: 4px 7px;
  border-radius: 999px;
  background: #f2f4f8;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}
.tip .day.on { background: var(--fg); color: #fff; }
.tip .chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 10px; }
.tip .chip {
  padding: 4px 9px;
  border-radius: 999px;
  background: #f2f4f8;
  color: #4A5A72;
  font-size: 11px;
  font-weight: 600;
}

/* Shops without a deal: a "??%" pill that flies off, explodes into sparks, and comes back */
.tip .deal.teaser {
  position: relative;
  background: #fff;
  color: var(--fg, var(--accent-deep));
  box-shadow: inset 0 0 0 2px var(--fg, var(--accent)), 0 8px 18px rgba(5, 20, 50, 0.2);
  animation: tease 2s ease-in-out infinite;
}
.tip .deal.teaser .pct { font-size: 24px; }
.tip .deal.teaser .burst {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  pointer-events: none;
  box-shadow:
    0 -18px var(--fg), 13px -13px var(--fg), 18px 0 var(--fg), 13px 13px var(--fg),
    0 18px var(--fg), -13px 13px var(--fg), -18px 0 var(--fg), -13px -13px var(--fg);
  animation: burst 2s infinite;
}
@keyframes tease {
  0%, 55%  { transform: translateZ(40px) translate(0, 0) rotate(0) scale(1); opacity: 1; }
  70%      { transform: translateZ(40px) translate(40px, -70px) rotate(12deg) scale(1.08); opacity: 1; }
  78%      { transform: translateZ(40px) translate(60px, -90px) rotate(18deg) scale(0); opacity: 0; }
  85%      { transform: translateZ(40px) translate(0, 0) scale(0); opacity: 0; }
  100%     { transform: translateZ(40px) translate(0, 0) rotate(0) scale(1); opacity: 1; }
}
@keyframes burst {
  0%, 77%  { transform: scale(0.2); opacity: 0; }
  80%      { transform: scale(0.8); opacity: 1; }
  100%     { transform: scale(2); opacity: 0; }
}

/* Animations */
@keyframes pop {
  0%   { opacity: 0; transform: translateX(-50%) translateY(-60px) rotateX(-70deg) scale(0.6); }
  60%  { opacity: 1; transform: translateX(-50%) translateY(4px) rotateX(20deg) scale(1.04); }
  100% { opacity: 1; transform: translateX(-50%) translateY(0) rotateX(14deg) scale(1); }
}
/* Leaving: the deal label floats up first, then the card fades out */
.tip-icon .tip.leaving .deal {
  animation: dealFloat 0.12s ease-out forwards;
}
.tip-icon .tip.leaving {
  animation: fadeout 0.1s ease 0.12s forwards;
}
@keyframes dealFloat {
  to { transform: translateZ(40px) translateY(-60px) scale(1.15); opacity: 0; }
}
@keyframes fadeout {
  to { opacity: 0; transform: translateX(-50%) translateY(12px) rotateX(14deg) scale(0.9); }
}
@keyframes dot {
  from { transform: scale(0); }
  to   { transform: scale(1); }
}

/* ---------- Below the opening screen: what Jobby is, for first-time visitors ---------- */

/* Invites a scroll from the opening screen */
.more-cue {
  position: absolute;
  inset-inline-end: 14px;
  bottom: max(10px, env(safe-area-inset-bottom));
  z-index: 27;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}
.more-cue span { display: inline-block; animation: cue 1.6s ease-in-out infinite; }
@keyframes cue { 50% { transform: translateY(3px); } }
.credit { max-width: 52%; }

body { background: #fff; }
.wrap { width: min(1080px, 100% - 40px); margin: 0 auto; }
section:not(.opening) h2 { margin: 0 0 14px; font-size: clamp(26px, 4.2vw, 40px); line-height: 1.12; letter-spacing: -0.02em; }
section:not(.opening) h3 { margin: 0 0 8px; font-size: 20px; letter-spacing: -0.01em; }
section:not(.opening) p { color: var(--body); line-height: 1.6; }

/* One sentence, with the places it names drawn in */
.statement { padding: 76px 0 40px; }
.say {
  max-width: 920px;
  margin: 0;
  font-size: clamp(26px, 4.4vw, 46px);
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -0.02em;
  color: var(--ink) !important;
}
.pic {
  display: inline-grid;
  place-items: center;
  width: 1.3em;
  height: 1.3em;
  margin: 0 0.2em 0 0.05em;
  border-radius: 0.34em;
  background: var(--page-light);
  vertical-align: -0.26em;
}
.pic img { width: 0.95em; height: 0.95em; }

/* What Jobby does: one row per feature, the words beside the screen it's about */
.features { padding-bottom: 24px; }
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 56px 0;
  border-top: 1px solid #EEF2F8;
}
.feature.flip .feature-text { order: 2; }
.feature-text p { max-width: 460px; margin: 0; font-size: 17px; }
.num { display: block; margin-bottom: 14px; color: var(--accent); font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; }
.kinds { margin-top: 18px !important; color: var(--ink) !important; font-size: 14px !important; font-weight: 600; }

/* A piece of the app, drawn in HTML */
.screen {
  position: relative;
  width: 100%;
  max-width: 400px;
  justify-self: center;
  padding: 22px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 0 0 1px #EEF2F8, 0 30px 70px rgba(14, 27, 46, 0.12);
}
.ex { position: absolute; top: 16px; inset-inline-end: 18px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.screen-head { margin: 0 0 16px !important; color: var(--ink) !important; font-size: 16px; font-weight: 800; line-height: 1.3 !important; }
.screen-head span { display: block; color: var(--muted); font-size: 13px; font-weight: 600; }

/* Offers */
.deal { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid #EEF2F8; }
.deal:first-of-type { border-top: 0; padding-top: 18px; }
.deal > img { width: 52px; height: 52px; flex: none; padding: 6px; border-radius: 14px; background: var(--page-light); }
.deal-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.deal-body b { font-size: 15px; }
.deal-body .shop { font-size: 12px; color: var(--muted); }
.deal-body .stock { height: 5px; margin-top: 4px; border-radius: 3px; background: #EEF1F6; overflow: hidden; }
.deal-body .stock i { display: block; height: 100%; border-radius: 3px; background: var(--yellow); }
.deal-body small { font-size: 11px; color: var(--body); }
.deal-price { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.deal-price em { padding: 2px 8px; border-radius: 999px; background: #E9F2FF; color: var(--accent-deep); font-size: 12px; font-style: normal; font-weight: 800; }
.deal-price s { font-size: 12px; color: var(--muted); }
.deal-price b { font-size: 17px; }

/* Booking */
.days { display: flex; gap: 6px; margin-bottom: 12px; }
.days span { flex: 1; padding: 10px 0; border-radius: 12px; background: var(--page-light); text-align: center; font-size: 13px; font-weight: 700; color: var(--body); }
.days .on { background: var(--accent); color: #fff; }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.slots span { padding: 11px 0; border-radius: 12px; border: 1px solid #E3EAF5; text-align: center; font-size: 14px; font-weight: 700; }
.slots .off { color: #C2CBD8; background: #F7F9FC; text-decoration: line-through; }
.slots .on { background: var(--yellow); border-color: var(--yellow); }
.confirm { display: block; margin-top: 16px; padding: 14px; border-radius: 14px; background: var(--ink); color: #fff; text-align: center; font-size: 15px; font-weight: 800; }

/* Stamp card */
.stamp-top { display: flex; align-items: center; gap: 12px; }
.stamp-top img { width: 46px; height: 46px; padding: 6px; border-radius: 14px; background: var(--page-light); }
.stamp-top .screen-head { margin: 0 !important; }
.stamp-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin: 22px 0 16px; }
.stamp-grid i { position: relative; aspect-ratio: 1; border-radius: 50%; border: 2px dashed #CDD7E6; }
.stamp-grid .on { border: 0; background: var(--accent); }
.stamp-grid .on::after { content: '✓'; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 16px; font-weight: 800; }
.stamp-grid .gift { border-color: var(--yellow); background: #FFF6E2; }
.stamp-grid .gift::after { content: '★'; position: absolute; inset: 0; display: grid; place-items: center; color: #E6A21E; font-size: 16px; }
.stamp-note { margin: 0 !important; font-size: 14px; }
.stamp-note b { color: var(--ink); }

/* A request, and the offers coming in */
.bubble { margin: 18px 0 !important; margin-inline-start: auto !important; max-width: 85%; width: fit-content; padding: 12px 16px; border-radius: 18px 18px 4px 18px; background: var(--accent); color: #fff !important; font-weight: 600; line-height: 1.4 !important; }
.screen-sub { margin: 0 0 4px !important; color: var(--muted) !important; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.offer { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid #EEF2F8; }
.offer:first-of-type { border-top: 0; }
.offer > div { flex: 1; min-width: 0; }
.offer b { display: block; font-size: 16px; }
.offer > div span { font-size: 12px; color: var(--muted); }
.who { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #E9F2FF; color: var(--accent-deep); font-weight: 800; }
.chat { flex: none; padding: 6px 14px; border-radius: 999px; border: 1.5px solid var(--accent); color: var(--accent); font-size: 12px; font-weight: 800; }

/* Getting started: three steps on one line, joined */
.start { padding: 72px 0; background: var(--ink); }
.start h2 { color: #fff; }
.line { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 32px 0 0; padding: 0; list-style: none; counter-reset: step; }
.line li { position: relative; padding-top: 52px; counter-increment: step; }
.line li::before { content: counter(step); position: absolute; top: 0; inset-inline-start: 0; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--yellow); color: var(--ink); font-weight: 800; }
.line li:not(:last-child)::after { content: ''; position: absolute; top: 16px; inset-inline-start: 48px; inset-inline-end: -12px; height: 2px; background: rgba(255, 255, 255, 0.18); }
.line b { display: block; margin-bottom: 4px; color: #fff; font-size: 18px; }
.line span { color: rgba(255, 255, 255, 0.65); font-size: 15px; }

/* Where it opens: a plain list of cities, each a way into its vote */
.launch { padding: 80px 0; }
.launch-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.launch-grid p { margin: 0; font-size: 17px; }
.city-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid #E3EAF5; }
.city-list li { border-bottom: 1px solid #E3EAF5; }
.city-list a { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: baseline; padding: 22px 4px; color: var(--ink); text-decoration: none; }
.city-list b { font-size: 24px; letter-spacing: -0.01em; transition: color 0.15s ease; }
.city-list span { color: var(--muted); font-size: 14px; }
.city-list em { color: var(--accent); font-size: 15px; font-style: normal; font-weight: 800; }
.city-list em::after { content: ' →'; }
[dir="rtl"] .city-list em::after { content: ' ←'; }
.city-list a:hover b { color: var(--accent); }

/* Shops and pros: two short columns */
.others { padding: 64px 0; background: var(--page-light); }
.others-grid { display: grid; grid-template-columns: 1fr 1fr; }
.others-grid > div { padding-inline-end: 40px; }
.others-grid > div + div { padding: 0; padding-inline-start: 40px; border-inline-start: 1px solid #DDE5F1; }
.others-grid p { margin: 0 0 14px; }
.others-grid a { color: var(--accent); font-weight: 800; text-decoration: none; }

/* Questions */
.questions { padding: 80px 0; }
.questions-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; align-items: start; }
.faq { border-top: 1px solid #E3EAF5; }
.faq details { border-bottom: 1px solid #E3EAF5; }
.faq summary { position: relative; padding: 20px 0; padding-inline-end: 32px; font-size: 17px; font-weight: 700; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; inset-inline-end: 4px; top: 16px; font-size: 22px; color: var(--accent); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; }

/* The way in */
.final { padding: 80px 0; background: var(--accent); text-align: center; }
.final h2 { color: #fff; }
.final .lead { max-width: 560px; margin: 0 auto 28px; color: rgba(255, 255, 255, 0.85) !important; font-size: 17px; }
.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 22px; }
.store { min-width: 170px; display: flex; flex-direction: column; align-items: flex-start; padding: 10px 20px; border-radius: 14px; background: var(--ink); color: #fff; text-decoration: none; box-shadow: 0 12px 28px rgba(5, 20, 50, 0.3); }
.store small { font-size: 11px; opacity: 0.8; }
.store b { font-size: 18px; }
.vote-cta { color: #fff; font-weight: 700; }

.foot { padding: 26px 0 34px; background: var(--ink); color: rgba(255, 255, 255, 0.7); font-size: 13px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: baseline; }
.foot-brand { color: #fff; font-size: 18px; font-weight: 800; font-style: italic; }
.foot-credit { flex-basis: 100%; font-size: 11px; opacity: 0.7; }

/* The app screens rise in as they scroll into view */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.seen { opacity: 1; transform: none; }

/* Phones: everything stacks, words before their screen */
@media (max-width: 760px) {
  .statement { padding: 56px 0 24px; }
  .feature { grid-template-columns: 1fr; gap: 28px; padding: 44px 0; }
  .feature.flip .feature-text { order: 0; }
  .line { grid-template-columns: 1fr; gap: 26px; }
  .line li { padding: 4px 0 0; padding-inline-start: 52px; min-height: 34px; }
  .line li:not(:last-child)::after { top: 42px; bottom: -22px; inset-inline-start: 16px; inset-inline-end: auto; width: 2px; height: auto; }
  .launch, .questions, .final { padding: 60px 0; }
  .launch-grid, .questions-grid { grid-template-columns: 1fr; gap: 24px; }
  .city-list b { font-size: 21px; }
  .others-grid { grid-template-columns: 1fr; }
  .others-grid > div { padding: 0 0 28px; }
  .others-grid > div + div { padding: 28px 0 0; border-inline-start: 0; border-top: 1px solid #DDE5F1; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .more-cue span { animation: none; }
}

/* ---------- Languages (i18n.js) ---------- */

/* Hidden for a moment, until the words are in the visitor's language */
html.i18n-pending body { visibility: hidden; }
/* Arabic gets an Arabic face; Latin words in it keep the page's own */
html[lang="ar"] body { font-family: "IBM Plex Sans Arabic", "Plus Jakarta Sans", system-ui, sans-serif; }
html[lang="ar"] .say { line-height: 1.5; letter-spacing: 0; }
html[lang="ar"] section:not(.opening) h2, html[lang="ar"] .eyebrow { letter-spacing: 0; }

/* The language switch: ع · FR · EN */
.lang-switch { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, 0.18); }
.lang-switch button { min-width: 34px; padding: 5px 9px; border: 0; border-radius: 999px; background: transparent; color: #fff; font-family: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.lang-switch button[aria-current] { background: #fff; color: var(--accent-deep); }
.opening .lang-switch { position: absolute; top: max(16px, env(safe-area-inset-top)); inset-inline-end: 14px; z-index: 28; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.foot .lang-switch { margin-inline-start: auto; }

/* ---------- The page stays blue below the tour ----------
   Sections alternate brand blue and a deeper blue; text is white, the app screens stay white cards,
   and the closing call to action turns white so it stands out. */
body { background: var(--page-bg); }
.statement, .features, .launch, .questions { background: var(--page-bg); }
.start, .others { background: var(--accent-deep); }
section:not(.opening):not(.final) h2,
section:not(.opening):not(.final) h3,
section:not(.opening):not(.final) p { color: #fff; }
/* The app screens are white cards: their text stays dark */
section:not(.opening):not(.final) .screen p { color: var(--body); }
.say { color: #fff !important; }
.pic { background: rgba(255, 255, 255, 0.18); }
.feature { border-top-color: rgba(255, 255, 255, 0.16); }
.num { color: var(--yellow); }
.kinds { color: #fff !important; }
.screen { box-shadow: 0 30px 70px rgba(5, 20, 47, 0.32); }
.line li::before { color: var(--ink); }
.city-list, .city-list li { border-color: rgba(255, 255, 255, 0.25); }
.city-list a, .city-list a:hover b { color: #fff; }
.city-list span { color: rgba(255, 255, 255, 0.8); }
.city-list em { color: var(--yellow); }
.others-grid > div + div { border-color: rgba(255, 255, 255, 0.25); }
.others-grid a { color: var(--yellow); }
.faq, .faq details { border-color: rgba(255, 255, 255, 0.25); }
.faq summary { color: #fff; }
.faq summary::after { color: var(--yellow); }
.final { background: #fff; }
.final h2 { color: var(--ink); }
.final .lead { color: var(--body) !important; }
.vote-cta { color: var(--accent); }

/* Shown until the map has loaded: a pin pulsing in a ring, then it fades away */
.map-loader {
  position: absolute;
  inset: 0;
  z-index: 15; /* over the map and the fade, under the header */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: var(--page-bg);
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  font-weight: 600;
  transition: opacity 0.5s ease, visibility 0.5s;
}
.map-loader.done { opacity: 0; visibility: hidden; }
.map-loader .pin { position: relative; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.25); }
.map-loader .pin::before, .map-loader .pin::after {
  content: '';
  position: absolute;
  inset: -4px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  animation: loaderRing 1.6s ease-out infinite;
}
.map-loader .pin::after { animation-delay: 0.8s; }
@keyframes loaderRing { from { transform: scale(0.6); opacity: 1; } to { transform: scale(3.2); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .map-loader .pin::before, .map-loader .pin::after { animation: none; } }

/* The map fades into the blue page below it, instead of ending on a hard edge */
.opening::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 140px;
  z-index: 5; /* over the map, under the credit and the "What is Jobby?" button */
  background: linear-gradient(to bottom, rgba(18, 112, 240, 0) 0%, var(--page-bg) 100%);
  pointer-events: none;
}
