/* Wakazi public website — shared design system (DEC-142).
   Ivory, forest and warm gold; editorial serif display type; the broken
   emerald ring + gold circle as the recurring signature. No web fonts, no
   video, lazy scenes: the first screen stays light on mobile data.
   Logical properties throughout so Arabic (dir="rtl") mirrors cleanly. */

:root {
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ivory: #f7f2e8;
  --paper: #fffcf5;
  --sand: #efe7d6;
  --line: #e2d8c3;
  --ink: #10261e;
  --muted: #5a6b62;
  --forest: #0c221b;
  --forest-2: #123328;
  --emerald: #1b5e45;
  --leaf: #23744f;
  --gold: #c79a4b;
  --gold-soft: #e5c77e;
  --gold-ink: #97701f;
  --radius: 22px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --pad: clamp(18px, 5vw, 72px);
  --max: 1320px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --ivory: #0b1712; --paper: #10221a; --sand: #15291f; --line: #23443a; --ink: #f3eee2; --muted: #b3c0b6; --gold-ink: #e5c77e; }
}
html[dir="rtl"] { --serif: "Geeza Pro", "Noto Naskh Arabic", "Segoe UI", Tahoma, serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0; color: var(--ink); font: 400 1.0625rem/1.65 var(--sans);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(199,154,75,.10), transparent 60%),
    var(--ivory);
  overflow-x: clip;
}
/* Barely-there paper grain for warmth (pure CSS, no image). */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .35;
  background-image: repeating-radial-gradient(circle at 17% 23%, rgba(16,38,30,.018) 0 1px, transparent 1px 3px);
}
main, header, footer { position: relative; z-index: 1; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--leaf); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--paper); padding: 10px 14px; border-radius: 10px; z-index: 50; }
.skip:focus { top: 12px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--max); margin-inline: auto; }

/* ---------- Type ---------- */
.eyebrow { font: 700 .76rem/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-ink); }
html[dir="rtl"] .eyebrow { letter-spacing: 0; font-size: .9rem; }
.eyebrow--gold { color: var(--gold-soft); }
.display { font: 500 clamp(2.9rem, 6.6vw, 6.2rem)/.98 var(--serif); letter-spacing: -.035em; margin: 18px 0 22px; }
.display em { font-style: italic; color: var(--emerald); }
html[dir="rtl"] .display, html[dir="rtl"] .title { letter-spacing: 0; line-height: 1.2; }
html[dir="rtl"] .display em, html[dir="rtl"] .title em { font-style: normal; }
@media (prefers-color-scheme: dark) { .display em { color: #7fcba4; } }
.display--light { color: #fffcf5; }
.title { font: 500 clamp(2rem, 4vw, 3.4rem)/1.05 var(--serif); letter-spacing: -.025em; margin-top: 12px; }
.title em { font-style: italic; color: var(--gold-soft); }
.title--light { color: #fffcf5; }
.lede { font-size: clamp(1.08rem, 1.5vw, 1.28rem); line-height: 1.6; color: var(--muted); max-width: 40ch; }
.lede--narrow { max-width: 52ch; margin-top: 14px; }
.lede--light { color: #cfe0d6; margin: 16px auto 0; }
.muted { color: var(--muted); font-size: .95rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px;
  border-radius: 999px; border: 1.5px solid transparent; font: 650 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.btn svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(12,34,27,.16); }
.btn--sm { min-height: 44px; padding: 10px 18px; font-size: .92rem; }
.btn--lg { min-height: 56px; padding: 15px 28px; font-size: 1.05rem; }
.btn--dark { background: var(--forest); color: #fffcf5; }
@media (prefers-color-scheme: dark) { .btn--dark { background: #fffcf5; color: #0c221b; } }
.btn--gold { background: var(--gold); color: #1b1407; }
.btn--gold:hover { background: var(--gold-soft); }
.btn--ghost { border-color: var(--line); background: transparent; color: var(--ink); }
.btn--ghost-light { border-color: rgba(229,199,126,.45); background: transparent; color: #fffcf5; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-row--center { justify-content: center; margin-top: 28px; }
.text-link { color: var(--emerald); font-weight: 700; text-underline-offset: 4px; }
@media (prefers-color-scheme: dark) { .text-link { color: #7fcba4; } }

/* ---------- Header ---------- */
.top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 20px;
  padding: 14px var(--pad); background: color-mix(in srgb, var(--ivory) 86%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font: 750 1.5rem/1 var(--sans); letter-spacing: -.04em; text-decoration: none; color: var(--ink); }
.brand img { width: 32px; height: 32px; }
.brand--light { color: #fffcf5; }
.top__nav { display: flex; gap: 24px; margin-inline-start: auto; }
.top__nav a { text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--muted); padding: 6px 0; }
.top__nav a:hover, .top__nav a[aria-current="page"] { color: var(--ink); }
.top__nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--gold); }
.top__end { display: flex; align-items: center; gap: 10px; }
/* Language picker: an invisible native select over a visible pill (app.js keeps .lang-current in sync). */
.lang { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border-radius: 999px;
  border: 1.5px solid var(--line); font-weight: 650; font-size: .9rem; color: var(--ink); }
.lang svg { width: 16px; height: 16px; flex: none; }
.lang select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 16px; }
.lang:focus-within { outline: 3px solid var(--leaf); outline-offset: 2px; }
.menu-btn { display: none; min-height: 44px; min-width: 44px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line);
  background: transparent; color: var(--ink); font: 650 .92rem/1 var(--sans); cursor: pointer; align-items: center; gap: 8px; }
.menu-btn svg { width: 18px; height: 18px; }

/* ---------- Ring signature ---------- */
.ring { position: absolute; overflow: visible; pointer-events: none; }
.ring__gold { fill: none; stroke: var(--gold); stroke-width: 1.2; opacity: .75; }
.ring__leaf { fill: none; stroke: var(--leaf); stroke-width: 7; stroke-linecap: round; opacity: .5; }
.svc-ring {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: radial-gradient(circle at 50% 38%, #fff8e6, var(--sand)); box-shadow: inset 0 0 0 1.5px var(--gold), 0 6px 18px rgba(12,34,27,.08);
  color: var(--emerald); transition: transform .4s var(--ease), color .25s var(--ease);
}
@media (prefers-color-scheme: dark) { .svc-ring { background: radial-gradient(circle at 50% 38%, #1d3a2e, var(--sand)); color: #7fcba4; } }
.svc-ring svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Home: hero ---------- */
.hero {
  --px: 0; --py: 0; --sy: 0;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); align-items: center; gap: clamp(24px, 4vw, 60px);
  padding: clamp(28px, 6vw, 88px) var(--pad) clamp(40px, 7vw, 110px); min-height: min(92vh, 900px);
  overflow-x: clip;
}
.trust-chips { list-style: none; margin: 30px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: .92rem; font-weight: 600; }
.trust-chips li { display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(199,154,75,.22); flex: none; }
.hero__art { position: relative; aspect-ratio: 1 / .9; direction: ltr; }
.hero__art .ring { inset: -4% -2% -2% 2%; width: 100%; height: 100%; transform: translate3d(calc(var(--px) * -10px), calc(var(--py) * -8px), 0) rotate(calc(var(--sy) * 18deg)); transition: transform .6s var(--ease); }
.hero__world { position: absolute; inset: 6% -8% 4% -4%; transform: translate3d(calc(var(--px) * 12px), calc(var(--py) * 8px + var(--sy) * -30px), 0); transition: transform .6s var(--ease); }
.hero__world img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 55%;
  -webkit-mask-image: radial-gradient(68% 64% at 60% 54%, #000 60%, transparent 96%); mask-image: radial-gradient(68% 64% at 60% 54%, #000 60%, transparent 96%); }
.phone {
  position: absolute; margin: 0; width: 30%; aspect-ratio: 420 / 913; border-radius: 30px; overflow: hidden;
  border: 7px solid #0b1612; background: #0b1612; box-shadow: 0 34px 60px rgba(12,34,27,.32), 0 0 0 1px rgba(199,154,75,.35);
  transition: transform .6s var(--ease);
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone--a { left: 2%; bottom: -6%; transform: translate3d(calc(var(--px) * 22px), calc(var(--py) * 14px + var(--sy) * -60px), 0) rotate(-8deg); }
.phone--b { right: 0; top: 2%; width: 27%; transform: translate3d(calc(var(--px) * 30px), calc(var(--py) * 20px + var(--sy) * -20px), 0) rotate(7deg); }
html.motion .hero__copy > * { animation: rise .9s var(--ease) both; }
html.motion .hero__copy > *:nth-child(2) { animation-delay: .06s; }
html.motion .hero__copy > *:nth-child(3) { animation-delay: .12s; }
html.motion .hero__copy > *:nth-child(4) { animation-delay: .18s; }
html.motion .hero__art { animation: settle 1.2s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }

/* Hand-drawn gold underline under the promise. */
.underlined { position: relative; display: inline-block; }
.scribble { position: absolute; left: 0; right: 0; bottom: -.12em; width: 100%; height: .28em; overflow: visible; }
.scribble path { fill: none; stroke: var(--gold); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 320; stroke-dashoffset: 0; }
html.motion .scribble path { animation: draw 1.4s .9s var(--ease) both; }
@keyframes draw { from { stroke-dashoffset: 320; } to { stroke-dashoffset: 0; } }

/* Arrival route drawn along the street, ending in a live pin. */
.route { position: absolute; inset: 6% -8% 4% -4%; width: 112%; height: 90%; overflow: visible; pointer-events: none;
  transform: translate3d(calc(var(--px) * 12px), calc(var(--py) * 8px + var(--sy) * -30px), 0); transition: transform .6s var(--ease); }
.route__halo { fill: none; stroke: rgba(255,252,245,.85); stroke-width: 11; stroke-linecap: round; }
.route__path { fill: none; stroke: var(--gold); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 1 11; filter: drop-shadow(0 0 4px rgba(229,199,126,.9)); }
.route__pin { fill: var(--gold); stroke: #fffcf5; stroke-width: 3; transform-box: fill-box; transform-origin: center; }
.route__pulse { fill: none; stroke: var(--gold); stroke-width: 2; transform-box: fill-box; transform-origin: center; }
html.motion .route__path, html.motion .route__halo { stroke-dasharray: 320; animation: draw-route 2.2s 1s var(--ease) both; }
html.motion .route__path { animation: draw-route 2.2s 1s var(--ease) both, dashes 0s 3.2s forwards; }
html.motion .route__pin { animation: pop .5s 3.4s var(--ease) both; }
html.motion .route__pulse { animation: pulse 2.2s 3.6s ease-out infinite both; }
@keyframes draw-route { from { stroke-dashoffset: 320; } to { stroke-dashoffset: 0; } }
@keyframes dashes { to { stroke-dasharray: 1 11; } }
@keyframes pop { from { transform: scale(0); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes pulse { from { transform: scale(1); opacity: .9; } to { transform: scale(4); opacity: 0; } }
.live-chip { position: absolute; right: 4%; bottom: 10%; z-index: 3; display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px;
  background: rgba(255,252,245,.94); color: #10261e; font-weight: 700; font-size: .9rem; box-shadow: 0 14px 30px rgba(12,34,27,.22);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.live-chip__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--leaf); }
html.motion .live-chip { animation: rise .7s 3.6s var(--ease) both; }
html.motion .live-chip__dot { animation: beacon 1.8s 4s ease-out infinite; }
@keyframes beacon { 0% { box-shadow: 0 0 0 0 rgba(35,116,79,.55); } 100% { box-shadow: 0 0 0 12px rgba(35,116,79,0); } }

/* Slow band of service names. */
.band { overflow: hidden; border-block: 1px solid var(--line); background: var(--paper); padding: 18px 0; direction: ltr;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.band__track { display: flex; width: max-content; }
.band span { font: italic 500 clamp(1.3rem, 2.2vw, 1.9rem)/1 var(--serif); color: var(--ink); padding: 0 28px; display: inline-flex; align-items: center; white-space: nowrap; }
.band span::after { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--gold); margin-inline-start: 56px; }
html.motion .band__track { animation: band 60s linear infinite; }
.band:hover .band__track { animation-play-state: paused; }
@keyframes band { to { transform: translateX(-50%); } }

/* ---------- Home: services ---------- */
.need { padding: clamp(56px, 8vw, 120px) var(--pad); }
.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.services { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.services a {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 16px; min-height: 96px; padding: 16px 18px; border-radius: var(--radius);
  background: var(--paper); border: 1px solid var(--line); text-decoration: none; font-weight: 700; font-size: 1.05rem;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.services a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(229,199,126,.28) 50%, transparent 65%);
  transform: translateX(-100%); transition: transform .8s var(--ease); pointer-events: none; }
.services a:hover { transform: translateY(-3px); border-color: var(--gold); box-shadow: 0 16px 34px rgba(12,34,27,.10); }
.services a:hover::after { transform: translateX(100%); }
.services a:hover .svc-ring { color: var(--gold-ink); transform: rotate(-8deg) scale(1.06); }
.more-link { margin-top: 22px; font-weight: 700; }

/* ---------- Home: story ---------- */
.story { position: relative; padding: 0 var(--pad) clamp(40px, 6vw, 80px); }
.story__stage { display: none; }
.story__steps ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.step { position: relative; padding-block: 26px 24px; padding-inline: 84px 26px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.step__n { position: absolute; inset-inline-start: 24px; top: 24px; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  font: 600 1.2rem/1 var(--serif); color: var(--gold-soft); background: var(--forest); }
.step h3 { font: 600 1.45rem/1.2 var(--serif); margin-bottom: 8px; }
.step p { color: var(--muted); max-width: 46ch; }
.step__img { margin-top: 16px; border-radius: 16px; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
html.story-live .story { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
html.story-live .story__stage { display: block; position: sticky; top: 90px; height: calc(100vh - 120px); max-height: 760px; border-radius: 32px; overflow: hidden;
  box-shadow: 0 30px 70px rgba(12,34,27,.18); background: var(--sand); }
html.story-live .story__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; clip-path: circle(0% at 50% 55%); transform: scale(1.12);
  transition: clip-path 1.1s var(--ease), transform 1.8s var(--ease); }
html.story-live .story__img.is-on { clip-path: circle(80% at 50% 55%); transform: scale(1); z-index: 1; }
html.story-live .story__img.was-on { clip-path: circle(80% at 50% 55%); transform: scale(1); }
html.story-live .step { min-height: 58vh; display: flex; flex-direction: column; justify-content: center; background: transparent; border: 0; opacity: .35; transition: opacity .5s var(--ease); }
html.story-live .step.is-on { opacity: 1; }
html.story-live .step__img { display: none; }
html.story-live .step__n { top: 50%; transform: translateY(-50%); margin-top: -40px; transition: background .4s var(--ease), color .4s var(--ease), box-shadow .4s var(--ease); z-index: 1; }
html.story-live .step.is-on .step__n { background: var(--gold); color: #1b1407; box-shadow: 0 0 0 8px rgba(199,154,75,.18); }
html.story-live .section-head--story { position: sticky; top: 72px; padding-top: 18px; z-index: 3; background: linear-gradient(var(--ivory) 82%, transparent); padding-bottom: 12px; }
html.story-live .story__steps ol { position: relative; z-index: 0; }
html.story-live .story__steps ol::before, html.story-live .story__steps ol::after { content: ""; position: absolute; inset-inline-start: 44px; top: calc(29vh - 40px); width: 2px; border-radius: 2px; }
html.story-live .story__steps ol::before { bottom: calc(29vh + 40px); background: var(--line); }
html.story-live .story__steps ol::after { height: calc(var(--story, 0) * (100% - 58vh)); background: linear-gradient(var(--gold-soft), var(--gold)); transition: height .3s linear; }

/* ---------- Dark feature panel (workers, CTAs) ---------- */
.workers {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 5vw, 80px);
  margin: clamp(30px, 5vw, 70px) var(--pad); padding: clamp(28px, 5vw, 72px); border-radius: 36px; background: linear-gradient(140deg, var(--forest), var(--forest-2));
  color: #fffcf5; overflow: hidden; position: relative;
}
.workers::after { content: ""; position: absolute; inset: auto -120px -160px auto; width: 420px; height: 420px; border-radius: 50%; border: 1.5px solid rgba(199,154,75,.4); pointer-events: none; }
.workers__art { position: relative; }
.frame { position: absolute; inset: 18px -14px -14px 18px; border: 1.5px solid rgba(229,199,126,.55); border-radius: 30px; }
.workers__art img { position: relative; border-radius: 26px; aspect-ratio: 4 / 3.2; object-fit: cover; box-shadow: 0 24px 60px rgba(0,0,0,.35); width: 100%; }
.ticks { list-style: none; margin: 26px 0 30px; padding: 0; display: grid; gap: 14px; color: #d8e6dd; font-size: 1.08rem; }
.ticks li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; }
.ticks li::before { content: "✓"; color: var(--gold-soft); font-weight: 800; }

/* ---------- Home: safety ---------- */
.safety { padding: clamp(56px, 8vw, 120px) var(--pad); }
.grid-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.grid-cards > li, .grid-cards > article { padding: 26px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); display: grid; gap: 12px; align-content: start; }
.grid-cards h3 { font: 600 1.3rem/1.2 var(--serif); }
.grid-cards p { color: var(--muted); }

/* ---------- Home: pricing + languages ---------- */
.price { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 18px; padding: 0 var(--pad) clamp(56px, 8vw, 120px); }
.price__card, .price__lang { padding: clamp(24px, 4vw, 48px); border-radius: 30px; background: var(--paper); border: 1px solid var(--line); display: grid; gap: 16px; align-content: start; }
.price__card { background: linear-gradient(160deg, var(--paper), var(--sand)); }
.price__card .btn { justify-self: start; }
.langs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.langs li { padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--gold); font-weight: 700; }

/* ---------- Get the app + Android waitlist ---------- */
.get { position: relative; overflow: hidden; text-align: center; margin: 0 var(--pad) clamp(40px, 6vw, 80px); padding: clamp(56px, 8vw, 110px) var(--pad);
  border-radius: 40px; background: radial-gradient(900px 500px at 50% 0%, #1b4a39, var(--forest)); color: #fffcf5; }
.ring--get { width: 760px; height: 760px; left: 50%; top: 50%; transform: translate(-50%, -50%); opacity: .5; }
.get > *:not(.ring) { position: relative; }
.get .lede--light { max-width: 52ch; }
.android { max-width: 580px; margin: 40px auto 0; padding: 24px; border-radius: 24px; background: rgba(255,252,245,.06); border: 1px solid rgba(229,199,126,.3); display: grid; gap: 14px; text-align: start; }
.android h3 { font: 600 1.25rem/1.3 var(--serif); text-align: center; }
.android__row { display: flex; gap: 10px; flex-wrap: wrap; }
.android input[type="email"] { flex: 1; min-width: 200px; min-height: 52px; padding: 12px 16px; border-radius: 999px; border: 1.5px solid rgba(229,199,126,.5); background: rgba(255,252,245,.95); color: #10261e; font-size: 1rem; }
.android__consent { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; color: #cfe0d6; font-size: .92rem; cursor: pointer; }
.android__consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--gold); }
.android__fine { color: #9fbcae; font-size: .85rem; }
.android__fine a { color: var(--gold-soft); }
.android__msg { color: var(--gold-soft); font-weight: 700; min-height: 1.4em; }
.android__msg.is-error { color: #ffb4a8; }
.hp { position: absolute !important; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Inner pages ---------- */
.page-hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; overflow-x: clip;
  padding: clamp(36px, 6vw, 92px) var(--pad) clamp(32px, 5vw, 72px); }
.page-hero--art { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.page-hero h1 { font: 500 clamp(2.6rem, 5.6vw, 5rem)/1 var(--serif); letter-spacing: -.035em; margin: 16px 0 20px; }
html[dir="rtl"] .page-hero h1 { letter-spacing: 0; line-height: 1.2; }
.page-hero .hero-sub { font-size: clamp(1.08rem, 1.5vw, 1.28rem); line-height: 1.6; color: var(--muted); max-width: 46ch; }
.page-hero .cta-row { margin-top: 28px; }
.page-art { position: relative; }
.page-art img { position: relative; width: 100%; aspect-ratio: 16 / 10.5; object-fit: cover; border-radius: 32px; box-shadow: 0 30px 70px rgba(12,34,27,.18); }
.page-art .ring { inset: -8% -6%; width: 112%; height: 116%; }
.page-art__frame { position: absolute; inset: 16px -14px -14px 16px; border: 1.5px solid var(--gold); border-radius: 36px; opacity: .6; }
.section { padding: clamp(40px, 6vw, 88px) var(--pad); }
.section--tight { padding-top: 0; }
.section--sand { background: color-mix(in srgb, var(--sand) 60%, transparent); border-block: 1px solid var(--line); }
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.feature { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 22px; align-items: start; padding: clamp(22px, 3vw, 32px); border-radius: var(--radius);
  background: var(--paper); border: 1px solid var(--line); }
.feature h2, .feature h3 { font: 600 clamp(1.3rem, 2vw, 1.6rem)/1.2 var(--serif); margin-bottom: 8px; }
.feature p { color: var(--muted); max-width: 62ch; }
.feature .btn { margin-top: 16px; }
.cards-2 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.note { margin-top: 26px; padding: 18px 22px; border-radius: 18px; border: 1px dashed var(--gold); color: var(--muted); font-size: .95rem; }
.guide-meta { color: var(--muted); font-size: .85rem; }
.source-note { margin-top: 18px; color: var(--muted); font-size: .85rem; }
.contact-card { display: grid; gap: 14px; justify-items: start; padding: clamp(24px, 4vw, 48px); border-radius: 30px; background: linear-gradient(160deg, var(--paper), var(--sand)); border: 1px solid var(--line); }
.contact-card h2 { font: 500 clamp(1.8rem, 3vw, 2.6rem)/1.1 var(--serif); }
.contact-card p { color: var(--muted); max-width: 60ch; }
.numbered { font: 600 .9rem/1 var(--sans); color: var(--gold-ink); letter-spacing: .12em; }
/* Dark call-to-action band shared by inner pages. */
.cta-band { position: relative; overflow: hidden; text-align: center; margin: clamp(24px, 4vw, 48px) var(--pad) clamp(40px, 6vw, 80px); padding: clamp(48px, 7vw, 96px) var(--pad);
  border-radius: 40px; background: radial-gradient(900px 500px at 50% 0%, #1b4a39, var(--forest)); color: #fffcf5; }
.cta-band > *:not(.ring) { position: relative; }
.cta-band h2 { font: 500 clamp(2rem, 4vw, 3.2rem)/1.08 var(--serif); letter-spacing: -.02em; max-width: 22ch; margin-inline: auto; }
.cta-band p { color: #cfe0d6; margin: 14px auto 0; max-width: 56ch; }
.cta-band .ring--get { opacity: .4; }
/* How it works: two journeys. */
.switch { display: inline-flex; gap: 6px; padding: 6px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); margin-bottom: 36px; }
.switch a { padding: 10px 20px; border-radius: 999px; text-decoration: none; font-weight: 700; color: var(--muted); }
.switch a:hover { background: var(--sand); color: var(--ink); }
.journey-track { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 72px); align-items: start; padding-block: 24px 64px; }
.journey-aside { position: sticky; top: 100px; display: grid; gap: 16px; }
.journey-aside h2 { font: 500 clamp(2rem, 3.6vw, 3rem)/1.05 var(--serif); }
.journey-aside img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 28px; box-shadow: 0 24px 60px rgba(12,34,27,.16); }
.journey-caption { color: var(--muted); font-size: .9rem; }
.journey-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.journey-step { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 18px; padding: 22px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.journey-number { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--forest); color: var(--gold-soft); font: 600 1.05rem/1 var(--serif); }
.journey-step h3 { font: 600 1.3rem/1.2 var(--serif); margin-bottom: 6px; }
.journey-step p { color: var(--muted); }
/* Community roles. */
.roles { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); margin-top: 16px; }
.roles article { padding: 26px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.roles h3 { font: 600 1.3rem/1.2 var(--serif); }
.roles p { color: var(--muted); }
/* Legal / long-form text. */
.prose { max-width: 760px; margin-inline: auto; padding: clamp(36px, 6vw, 80px) var(--pad); }
.prose h1 { font: 500 clamp(2.4rem, 5vw, 4rem)/1.05 var(--serif); letter-spacing: -.03em; margin: 12px 0 24px; }
.prose h2 { font: 600 clamp(1.5rem, 2.4vw, 2rem)/1.2 var(--serif); margin: 44px 0 14px; padding-top: 24px; border-top: 1px solid var(--line); }
.prose h3 { font: 700 1.1rem/1.3 var(--sans); margin: 26px 0 10px; }
.prose p, .prose ul, .prose ol { margin: 0 0 16px; color: var(--ink); }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--emerald); text-underline-offset: 3px; }
@media (prefers-color-scheme: dark) { .prose a { color: #7fcba4; } }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 20px; font-size: .95rem; }
.prose th, .prose td { text-align: start; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--sand); }
.back-link { font-weight: 700; text-decoration: none; color: var(--emerald); }
/* Small standalone cards (email preferences). */
.solo { max-width: 560px; margin: clamp(40px, 8vw, 110px) auto; padding: clamp(28px, 5vw, 44px); border-radius: 30px; background: var(--paper); border: 1px solid var(--line); display: grid; gap: 16px; box-shadow: 0 24px 70px rgba(12,34,27,.08); }
.solo h1 { font: 500 clamp(2rem, 5vw, 2.8rem)/1.1 var(--serif); }
.solo .btn { justify-self: start; }

/* ---------- Reveal ---------- */
html.motion .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
html.motion .reveal.in { opacity: 1; transform: none; }
html.motion .stagger.reveal { opacity: 1; transform: none; }
html.motion .stagger.reveal > * { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
html.motion .stagger.reveal.in > * { opacity: 1; transform: none; }
html.motion .stagger.in > :nth-child(2) { transition-delay: .04s; } html.motion .stagger.in > :nth-child(3) { transition-delay: .08s; }
html.motion .stagger.in > :nth-child(4) { transition-delay: .12s; } html.motion .stagger.in > :nth-child(5) { transition-delay: .16s; }
html.motion .stagger.in > :nth-child(6) { transition-delay: .2s; }  html.motion .stagger.in > :nth-child(7) { transition-delay: .24s; }
html.motion .stagger.in > :nth-child(8) { transition-delay: .28s; } html.motion .stagger.in > :nth-child(n+9) { transition-delay: .32s; }

/* Magnetic primary buttons (pointer devices only; set by site.js). */
html.motion .btn.is-magnetic { transform: translate3d(var(--mx, 0px), var(--my, 0px), 0); }
html.motion .btn.is-magnetic:hover { transform: translate3d(var(--mx, 0px), calc(var(--my, 0px) - 2px), 0); }

/* ---------- Footer ---------- */
.foot { position: relative; display: flow-root; background: var(--forest); color: #cfe0d6; margin-top: clamp(110px, 14vw, 210px); }
.skyline { --sky: clamp(100px, 13.3vw, 200px); display: block; width: 100%; height: var(--sky); margin-top: calc(1px - var(--sky)); fill: var(--forest); stroke: var(--gold); stroke-width: 1; stroke-opacity: .7; stroke-linejoin: round; }
.foot__inner { padding: 20px var(--pad) 40px; display: grid; gap: 26px; max-width: var(--max); margin-inline: auto; }
.foot__title { font: 700 .76rem/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-soft); }
.foot__links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 4px 20px; }
.foot__links a, .foot__small a { color: #cfe0d6; text-decoration: none; font-size: .95rem; min-height: 36px; display: inline-flex; align-items: center; }
.foot__links a:hover, .foot__small a:hover { color: var(--gold-soft); }
.foot__small { display: flex; flex-wrap: wrap; gap: 4px 22px; border-top: 1px solid rgba(229,199,126,.2); padding-top: 18px; }
.foot__fine { color: #8fa89b; font-size: .85rem; }

/* ---------- Dark mode artwork ---------- */
@media (prefers-color-scheme: dark) {
  .hero__world img, .story__img, .step__img, .page-art img, .journey-aside img { filter: brightness(.86) saturate(.95); }
  .band { background: var(--sand); }
  .live-chip { background: rgba(16,34,26,.9); color: #f3eee2; }
  .top { background: color-mix(in srgb, var(--ivory) 88%, transparent); }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .top__nav { gap: 16px; }
  .top__nav a { font-size: .9rem; }
}
@media (max-width: 980px) {
  .menu-btn { display: inline-flex; }
  .top { flex-wrap: wrap; }
  .top__end { margin-inline-start: auto; }
  .top__nav { display: none; order: 3; flex-basis: 100%; flex-direction: column; gap: 0; margin: 0; padding: 8px 0 4px; }
  .top.is-open .top__nav { display: flex; }
  .top__nav a { font-size: 1.1rem; padding: 12px 4px; border-top: 1px solid var(--line); }
  .top__nav a[aria-current="page"] { box-shadow: none; color: var(--emerald); }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero__art { order: -1; aspect-ratio: 1 / .78; margin-bottom: 9%; }
  .workers, .price, .page-hero--art, .journey-track { grid-template-columns: 1fr; }
  .page-hero--art .page-art { order: -1; }
  .journey-aside { position: static; }
}
@media (max-width: 560px) {
  .top { gap: 10px; padding-block: 10px; }
  .top .btn--sm { display: none; }
  .lang { padding: 0 10px; }
  .display { font-size: 2.7rem; }
  .phone { width: 34%; border-width: 5px; border-radius: 22px; }
  .phone--b { width: 30%; }
  .route { display: none; }
  .hero__art { margin-bottom: 6%; }
  .live-chip { right: 2%; bottom: 4%; font-size: .8rem; padding: 8px 12px; }
  .scribble { display: none; }
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .services a { flex-direction: column; align-items: flex-start; min-height: 130px; font-size: .98rem; }
  .step { padding-inline: 72px 20px; padding-block: 22px 20px; }
  .step__n { inset-inline-start: 18px; }
  .workers { margin-inline: 12px; border-radius: 28px; }
  .workers::after { display: none; }
  .get, .cta-band { margin-inline: 12px; border-radius: 30px; }
  .cta-row .btn { width: 100%; }
  .feature { grid-template-columns: 1fr; gap: 14px; }
  .journey-step { grid-template-columns: 1fr; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* web/store-links.js hides the Android launch-list form once the public
   Google Play listing is live (explicit twin of the global [hidden] rule). */
.android[hidden] { display: none; }
