/* SHRAYTA (شريته) "coming soon" home page: / (Arabic, RTL) and /en/ (English). Only these two pages use this file; the
   legal, auth and /open pages keep site.css. Brand: navy #101C26, amber #F5A712, cream #FBF9F5.
   Motion follows the app's launch animation (src/components/launch-animation.tsx): the seven amber dots of the logo, a
   soft light that travels through them right to left (the way the Arabic wordmark reads), a faint amber glow, lines
   that rise from behind an invisible edge. Calm: nothing bounces. Only transform and opacity move continuously;
   everything stops with prefers-reduced-motion. The dot centres (.d1-.d7) come from web/tools/teaser-assets.py. */

:root {
  color-scheme: light dark;
  --bg: #FBF9F5;
  --bg-alt: #F4EFE5;
  --surface: #FFFFFF;
  --text: #101C26;
  --text-2: #4F5A68;
  --line: rgba(16, 28, 38, 0.12);
  --line-soft: rgba(16, 28, 38, 0.07);
  --navy: #101C26;
  --cream: #FBF9F5;
  --amber: #F5A712;
  --amber-ink: #8A5A00;
  --accent-1: #B87100;
  --accent-2: #8A5A00;
  --focus: #8A5A00;
  --glow: rgba(245, 167, 18, 0.30);
  --glow-2: rgba(245, 167, 18, 0.10);
  --viz-ink: #101C26;
  --viz-soft: rgba(16, 28, 38, 0.13);
  --viz-line: rgba(16, 28, 38, 0.30);
  --head-bg: rgba(251, 249, 245, 0.88);
  --shadow: 0 1px 2px rgba(16, 28, 38, 0.04), 0 10px 30px rgba(16, 28, 38, 0.06);
  --grain-opacity: 0.05;
  --max: 1160px;
  --gutter: 20px;
  --radius: 24px;
  --ease-out: cubic-bezier(0.16, 0.84, 0.24, 1);
  --ease-soft: cubic-bezier(0.45, 0, 0.25, 1);
  --font-ar: "IBM Plex Sans Arabic", "Inter", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --font-en: "Inter", "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101C26;
    --bg-alt: #0C161F;
    --surface: #15232E;
    --text: #F6F3EC;
    --text-2: #AAB4BF;
    --line: rgba(246, 243, 236, 0.13);
    --line-soft: rgba(246, 243, 236, 0.07);
    --amber-ink: #F5B83A;
    --accent-1: #F5A712;
    --accent-2: #FFC85A;
    --focus: #F5A712;
    --glow: rgba(245, 167, 18, 0.27);
    --glow-2: rgba(245, 167, 18, 0.09);
    --viz-ink: #F6F3EC;
    --viz-soft: rgba(246, 243, 236, 0.13);
    --viz-line: rgba(246, 243, 236, 0.32);
    --head-bg: rgba(16, 28, 38, 0.84);
    --shadow: 0 0 0 1px rgba(246, 243, 236, 0.06), 0 18px 40px rgba(0, 0, 0, 0.25);
    --grain-opacity: 0.07;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ar);
  font-size: 1.0625rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
:lang(en) { font-family: var(--font-en); }
html:lang(en) body { line-height: 1.65; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.icon { width: 20px; height: 20px; flex: none; }
.icon-sm { width: 16px; height: 16px; flex: none; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 10px; }
.skip-link { position: absolute; inset-inline-start: 12px; top: -100px; z-index: 100; background: var(--navy); color: var(--cream); padding: 10px 16px; border-radius: 12px; text-decoration: none; font-weight: 600; }
.skip-link:focus { top: 12px; }

/* ---------- Header ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background-color 0.35s ease, box-shadow 0.35s ease;
}
.top.is-scrolled { background: var(--head-bg); box-shadow: 0 1px 0 var(--line-soft); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: inline-flex; border-radius: 10px; transition: opacity 0.35s ease, transform 0.35s ease; }
.brand img { width: 104px; height: auto; }
.js .top:not(.is-scrolled) .brand { opacity: 0; transform: translateY(-6px); pointer-events: none; }
.top-nav { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  border-radius: 999px; border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 60%, transparent);
  color: var(--text); text-decoration: none; font-size: 0.9375rem; font-weight: 500;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.chip:hover { border-color: var(--amber); }
.chip-icon { width: 44px; padding: 0; justify-content: center; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: clip;
  min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center;
  padding: 96px 0 104px;
  text-align: center;
}
.hero::after { /* static film grain: hides banding in the large glow; drawn once */
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: var(--grain-opacity);
  -webkit-mask-image: linear-gradient(to bottom, #000 45%, transparent); mask-image: linear-gradient(to bottom, #000 45%, transparent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.glow-wrap { position: absolute; left: 50%; top: 38%; width: 0; height: 0; }
.glow {
  position: absolute; width: min(1100px, 190vw); aspect-ratio: 1; translate: -50% -50%;
  background: radial-gradient(closest-side, var(--glow), var(--glow-2) 48%, transparent 100%);
  animation: glow-rise 1.6s var(--ease-out) 0.2s both, glow-breathe 9s var(--ease-soft) 2s infinite alternate;
}

.hero-in { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.stage { position: relative; width: min(64vw, 440px); container-type: inline-size; margin-bottom: clamp(28px, 5vh, 44px); }

/* The logo, as layers: letters + seven dots (centres measured from the brand file). */
.mark { position: relative; z-index: 1; direction: ltr; aspect-ratio: 962 / 474; }
.mark .ink { display: block; }
.mark .ink img { width: 100%; height: auto; animation: ink-in 1.1s var(--ease-out) 0.15s both; }
.dot {
  position: absolute; left: var(--x); top: var(--y); width: 7.38%; aspect-ratio: 1;
  translate: -50% -50%;
  animation: dot-in 1.35s var(--ease-out) calc(0.45s + var(--i) * 0.11s) both;
}
.dot::before { /* the halo: once when the dot lands, then with every light wave */
  content: ""; position: absolute; inset: -95%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(245, 167, 18, 0.55), rgba(245, 167, 18, 0.18) 55%, transparent);
  opacity: 0;
  animation: halo-land 1.5s var(--ease-out) calc(0.45s + var(--i) * 0.11s) both,
             halo-wave 8s var(--ease-soft) calc(3.4s + var(--i) * 0.11s) infinite;
}
.coin { position: absolute; inset: 0; perspective: 240px; animation: swell 8s var(--ease-soft) calc(3.4s + var(--i) * 0.11s) infinite; }
.coin img { width: 100%; height: 100%; animation: coin-flip 1.35s var(--ease-out) calc(0.45s + var(--i) * 0.11s) both; }
.coin::after { /* the glint that crosses a coin as it lands */
  content: ""; position: absolute; inset: 0; border-radius: 50%; overflow: hidden; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.85) 48%, transparent 66%) no-repeat;
  background-size: 260% 100%; background-position: 130% 0;
  opacity: 0;
  animation: glint 0.9s ease-out calc(1.25s + var(--i) * 0.11s) both;
}
/* Right to left, like the wordmark: d1 is the right-most dot. --a and --r: where each dot starts its spiral in. */
.d1 { --x: 90.27%; --y: 19.79%; --i: 0; --a: -150deg; --r: 620%; }
.d2 { --x: 86.65%; --y: 6.60%;  --i: 1; --a: 160deg;  --r: 760%; }
.d3 { --x: 82.57%; --y: 19.77%; --i: 2; --a: -210deg; --r: 700%; }
.d4 { --x: 44.09%; --y: 72.61%; --i: 3; --a: 140deg;  --r: 820%; }
.d5 { --x: 36.67%; --y: 72.65%; --i: 4; --a: -170deg; --r: 900%; }
.d6 { --x: 34.79%; --y: 14.74%; --i: 5; --a: 200deg;  --r: 760%; }
.d7 { --x: 27.88%; --y: 14.74%; --i: 6; --a: -130deg; --r: 860%; }

/* Ambient dots orbiting the logo on tilted ellipses (two nested sine-like moves make each ellipse). */
.orbits { position: absolute; inset: 0; z-index: 0; animation: fade-in 1.6s ease 1.2s both; }
.orb { position: absolute; left: 50%; top: 50%; width: 0; height: 0; rotate: var(--tilt, -10deg); animation: orb-x var(--t) var(--ease-soft) var(--d) infinite alternate; }
.orb > i { display: block; animation: orb-y var(--t) var(--ease-soft) calc(var(--d) - var(--t) / 2) infinite alternate; }
.orb img { width: var(--s); height: var(--s); max-width: none; translate: -50% -50%; opacity: var(--o, 0.8); }
.orb.soft img { filter: blur(1.5px); }
.o2, .o4, .o5, .o6, .o8 { animation-direction: alternate-reverse; }
.o1 { --rx: 70cqi; --ry: 22cqi; --t: 7s;   --d: -1s;  --s: 12px; --o: 0.85; --tilt: -8deg; }
.o2 { --rx: 86cqi; --ry: 30cqi; --t: 9.5s; --d: -6s;  --s: 18px; --o: 0.65; --tilt: 12deg; }
.o3 { --rx: 64cqi; --ry: 34cqi; --t: 8s;   --d: -3s;  --s: 8px;  --o: 0.9;  --tilt: -24deg; }
.o4 { --rx: 98cqi; --ry: 26cqi; --t: 11s;  --d: -8s;  --s: 22px; --o: 0.45; --tilt: 6deg; }
.o5 { --rx: 76cqi; --ry: 40cqi; --t: 10s;  --d: -2s;  --s: 10px; --o: 0.75; --tilt: 18deg; }
.o6 { --rx: 108cqi; --ry: 36cqi; --t: 13s; --d: -9s;  --s: 14px; --o: 0.5;  --tilt: -16deg; }
.o7 { --rx: 58cqi; --ry: 18cqi; --t: 6.5s; --d: -4s;  --s: 7px;  --o: 0.8;  --tilt: 3deg; }
.o8 { --rx: 92cqi; --ry: 44cqi; --t: 12s;  --d: -5s;  --s: 26px; --o: 0.3;  --tilt: -4deg; }
.o9 { --rx: 120cqi; --ry: 30cqi; --t: 14s; --d: -4s;  --s: 9px;  --o: 0.55; --tilt: 9deg; }
.hero-off .orb, .hero-off .orb > i, .hero-off .glow, .hero-off .coin, .hero-off .dot::before { animation-play-state: paused; }

/* Status pill, headline, line, actions */
.status {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 14px;
  border-radius: 999px; border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 70%, transparent);
  color: var(--text-2); font-size: 0.9375rem; font-weight: 500; line-height: 1.5;
  animation: rise-in 0.9s var(--ease-out) 1.25s both;
}
.status::after { /* one sweep of light across the pill */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 35%, rgba(245, 167, 18, 0.28) 50%, transparent 65%);
  transform: translateX(-120%);
  animation: sweep 1.4s var(--ease-soft) 2.1s both;
}
.status strong { color: var(--text); font-weight: 600; }
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); flex: none; }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--amber); animation: ping 2.4s ease-out 2s infinite; }

h1 {
  margin-top: 22px;
  font-size: clamp(2.05rem, 1.2rem + 4.6vw, 4.4rem);
  line-height: 1.22; font-weight: 700; letter-spacing: 0;
  text-wrap: balance;
}
html:lang(en) h1 { letter-spacing: -0.025em; line-height: 1.08; }
h1 .line { display: block; overflow: hidden; padding-block: 0.06em 0.12em; }
h1 .line > span { display: inline-block; animation: line-rise 1s var(--ease-out) both; }
h1 .line:nth-child(1) > span { animation-delay: 1.45s; }
h1 .line:nth-child(2) > span { animation-delay: 1.6s; }
.accent {
  color: var(--accent-2);
  background: linear-gradient(100deg, var(--accent-2) 0 38%, #FFD98A 50%, var(--accent-1) 62% 100%);
  background-size: 260% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
h1 .line > .accent { animation: line-rise 1s var(--ease-out) 1.6s both, shimmer 1.8s var(--ease-soft) 2.4s both; }

.lead {
  max-width: 34em; margin-top: 18px;
  color: var(--text-2); font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem); line-height: 1.8;
  animation: rise-in 0.9s var(--ease-out) 1.85s both;
}
html:lang(en) .lead { line-height: 1.6; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; animation: rise-in 0.9s var(--ease-out) 2s both; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 999px;
  font: inherit; font-weight: 600; font-size: 1rem; text-decoration: none; line-height: 1.2;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.btn-amber { background: var(--amber); color: var(--navy); box-shadow: 0 8px 24px rgba(245, 167, 18, 0.28); }
.btn-amber:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(245, 167, 18, 0.38); }
.btn-ghost { border-color: var(--line); color: var(--text); background: color-mix(in srgb, var(--surface) 55%, transparent); }
.btn-ghost:hover { border-color: var(--amber); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.cue {
  position: absolute; left: 50%; bottom: 26px; translate: -50% 0; z-index: 1;
  width: 26px; height: 42px; border-radius: 14px; border: 1.5px solid var(--line);
  animation: fade-in 1s ease 2.6s both;
}
.cue i { position: absolute; left: 50%; top: 8px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--amber); animation: cue 2.2s var(--ease-soft) 3s infinite; }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(72px, 10vw, 128px) 0; }
.section-head { max-width: 640px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--amber-ink); font-weight: 600; font-size: 0.9375rem; letter-spacing: 0;
}
html:lang(en) .kicker { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8125rem; }
.kicker .mini-coin { width: 18px; height: 18px; perspective: 120px; }
.kicker .mini-coin img { width: 100%; height: 100%; }
h2 { margin-top: 12px; font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.75rem); line-height: 1.3; font-weight: 700; text-wrap: balance; }
html:lang(en) h2 { letter-spacing: -0.02em; line-height: 1.15; }
.section-head p { margin-top: 14px; color: var(--text-2); font-size: 1.0625rem; }

/* ---------- Hint tiles ---------- */
.tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .tiles { grid-template-columns: repeat(2, 1fr); gap: 20px; } .tile:last-child { grid-column: 1 / -1; } }
@media (min-width: 980px) {
  .tiles { grid-template-columns: repeat(6, 1fr); }
  .tile:nth-child(1), .tile:nth-child(2) { grid-column: span 3; }
  .tile:nth-child(n + 3) { grid-column: span 2; }
  .tile:last-child { grid-column: span 2; }
}
.tile {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column;
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line-soft); box-shadow: var(--shadow);
  scroll-margin-top: 90px;
}
.tile::before { /* a thin amber light along the top edge, crossing once on reveal */
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; z-index: 2;
  background: linear-gradient(90deg, transparent, var(--amber), transparent);
  transform: translateX(-100%); opacity: 0;
}
.viz {
  position: relative; height: 210px; overflow: hidden;
  background:
    radial-gradient(60% 80% at 50% 45%, var(--glow-2), transparent 70%),
    linear-gradient(to bottom, var(--bg-alt), transparent);
}
.viz > * { position: absolute; inset: 0; width: 100%; height: 100%; }
.haze { filter: blur(7px); opacity: 0.9; will-change: transform; transform: scale(1.04); }
.haze .v-ink { fill: var(--viz-line); }
.viz svg { overflow: visible; }
.viz::after { /* frosted edge: the bottom of every picture melts into the card */
  content: ""; position: absolute; inset: auto 0 0 0; height: 46%; z-index: 1;
  background: linear-gradient(to bottom, transparent, var(--surface));
}
.tile-copy { position: relative; z-index: 2; padding: 4px 24px 24px; }
.num { font-family: var(--font-en); font-weight: 600; font-size: 0.8125rem; letter-spacing: 0.08em; color: var(--amber-ink); direction: ltr; unicode-bidi: isolate; }
.tile h3 { margin-top: 4px; font-size: 1.3125rem; line-height: 1.45; font-weight: 700; }
html:lang(en) .tile h3 { letter-spacing: -0.01em; line-height: 1.3; }
.tile p { margin-top: 6px; color: var(--text-2); font-size: 1rem; line-height: 1.7; }
.sealed {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; padding: 4px 12px 4px 10px;
  border-radius: 999px; background: var(--line-soft); color: var(--text-2); font-size: 0.8125rem; font-weight: 500; line-height: 1.6;
}
.t-coin { position: absolute; top: 16px; inset-inline-end: 16px; z-index: 3; width: 28px; height: 28px; perspective: 160px; }
.t-coin img { width: 100%; height: 100%; }

/* SVG pieces (colours from the theme) */
.v-soft { fill: var(--viz-soft); }
.v-ink { fill: var(--viz-ink); }
.v-amber { fill: var(--amber); }
.v-stroke { fill: none; stroke: var(--viz-ink); stroke-linecap: round; stroke-linejoin: round; }
.v-thin { fill: none; stroke: var(--viz-line); stroke-width: 1.5; }
.v-dash { fill: none; stroke: var(--viz-line); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 0 8; }

/* 1. Trust: amber dots march around a shield; two parties on either side. */
.v-march { fill: none; stroke: var(--amber); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 0 6.25; animation: march 1.6s linear infinite; }
/* 2. Find it faster: a sweep, specks drifting in, one amber find with a ripple. */
.v-sweep { transform-box: view-box; transform-origin: 160px 100px; animation: spin 4.5s linear infinite; }
.v-sweep line { stroke: var(--amber); stroke-width: 2; stroke-linecap: round; opacity: 0.55; }
.v-speck { fill: var(--viz-line); transform-box: fill-box; transition: transform 1.4s var(--ease-out), opacity 1.4s ease; }
.js .tile:not(.is-in) .v-speck { transform: translate(var(--dx), var(--dy)); opacity: 0; }
.v-speck:nth-child(1) { --dx: -60px; --dy: -30px; } .v-speck:nth-child(2) { --dx: 70px; --dy: -40px; }
.v-speck:nth-child(3) { --dx: -80px; --dy: 30px; }  .v-speck:nth-child(4) { --dx: 60px; --dy: 50px; }
.v-speck:nth-child(5) { --dx: -30px; --dy: 60px; }  .v-speck:nth-child(6) { --dx: 40px; --dy: -60px; }
.v-speck:nth-child(7) { --dx: -90px; --dy: -10px; } .v-speck:nth-child(8) { --dx: 90px; --dy: 10px; }
.v-ripple { fill: none; stroke: var(--amber); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: ripple 2.4s ease-out infinite; }
.v-ripple.late { animation-delay: 1.2s; }
/* 3. Made for Kuwait, in Arabic first: "س" + the logo's three dots = "ش", the first letter of شريته. */
.letters span { position: absolute; font-weight: 700; line-height: 1; color: var(--viz-soft); }
.letters span:nth-child(1) { font-size: 92px; top: 12%; inset-inline-start: 8%; }
.letters span:nth-child(2) { font-size: 70px; top: 46%; inset-inline-start: 22%; }
.letters span:nth-child(3) { font-size: 84px; top: 8%; inset-inline-end: 10%; }
.letters span:nth-child(4) { font-size: 66px; top: 48%; inset-inline-end: 22%; }
.glyph { display: grid; place-items: center; }
.glyph-in { position: relative; direction: rtl; }
.sin { display: block; font-family: var(--font-ar); font-weight: 700; font-size: 112px; line-height: 1.15; color: var(--viz-ink); }
.tri { position: absolute; left: 50%; top: 2px; width: 62px; height: 52px; translate: -38% 0; }
.tri span { position: absolute; width: 24px; height: 24px; perspective: 160px; }
.tri span img { width: 100%; height: 100%; }
.tri span:nth-child(1) { left: 19px; top: 0; }
.tri span:nth-child(2) { left: 6px; top: 22px; }
.tri span:nth-child(3) { left: 32px; top: 22px; }
.js .tile:not(.is-in) .tri span { opacity: 0; transform: translateY(-26px); }
.tri span { transition: opacity 0.6s ease, transform 1.1s var(--ease-out); }
.tri span:nth-child(1) { transition-delay: 0.35s; } .tri span:nth-child(2) { transition-delay: 0.5s; } .tri span:nth-child(3) { transition-delay: 0.65s; }
/* 4. Sellers and businesses: a storefront in the haze, a turning seal in focus. */
.v-seal-ring { fill: none; stroke: var(--amber); stroke-width: 2; stroke-dasharray: 3 6; stroke-linecap: round; transform-box: fill-box; transform-origin: center; animation: spin 14s linear infinite; }
.v-check { fill: none; stroke: var(--navy); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
/* 5. Buyers on the move: a route of dots, a traveller that runs along it, a pin that waits. */
.v-route { fill: none; stroke: var(--viz-line); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 0 3.4; }
.v-traveller { fill: none; stroke: var(--amber); stroke-width: 14; stroke-linecap: round; stroke-dasharray: 0 100; animation: travel 4.2s var(--ease-soft) infinite; }

/* Tile loops run only while the tile is on screen (teaser.js sets .is-live). */
.js .tile:not(.is-live) .loop, .js .tile:not(.is-live) .loop * { animation-play-state: paused; }

/* ---------- Stay tuned ---------- */
.soon { padding-top: 0; }
.soon-card {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: calc(var(--radius) + 8px);
  background: var(--navy); color: #F6F3EC;
  padding: clamp(40px, 7vw, 80px) clamp(22px, 6vw, 72px);
  text-align: center;
}
@media (prefers-color-scheme: dark) { .soon-card { background: var(--surface); box-shadow: 0 0 0 1px var(--line-soft); } }
.soon-card::before {
  content: ""; position: absolute; left: 50%; top: 0; width: 900px; aspect-ratio: 1; translate: -50% -55%; z-index: -1;
  background: radial-gradient(closest-side, rgba(245, 167, 18, 0.26), rgba(245, 167, 18, 0.06) 55%, transparent);
}
.soon-card .kicker { color: #F5B83A; }
.soon-card h2 { color: #F6F3EC; }
.soon-card p { max-width: 36em; margin: 14px auto 0; color: #C9D0D8; }
.soon-card .actions { animation: none; margin-top: 28px; }
.soon-card .btn-ghost { color: #F6F3EC; border-color: rgba(246, 243, 236, 0.22); background: transparent; }
.soon-card .btn-ghost:hover { border-color: var(--amber); }
.soon-card :focus-visible { outline-color: #F5A712; }
.build { display: flex; flex-direction: row-reverse; justify-content: center; gap: 10px; margin: 0 auto 22px; direction: ltr; }
.build span { width: 14px; height: 14px; animation: wave-dot 2.8s var(--ease-soft) infinite; animation-delay: calc(var(--k) * 0.11s); }
.build span img { width: 100%; height: 100%; }
.build span:nth-child(1) { --k: 0; } .build span:nth-child(2) { --k: 1; } .build span:nth-child(3) { --k: 2; }
.build span:nth-child(4) { --k: 3; } .build span:nth-child(5) { --k: 4; } .build span:nth-child(6) { --k: 5; } .build span:nth-child(7) { --k: 6; }
.js .soon:not(.is-live) .build span { animation-play-state: paused; }
.note { margin-top: 20px !important; font-size: 0.9375rem; color: #AAB4BF !important; }
.note a { color: #F6F3EC; text-underline-offset: 3px; }

/* ---------- Launch waitlist (assets/js/waitlist.js; hidden until that script runs: it posts to the Edge Function) ---------- */
.wl { display: none; position: relative; width: 100%; max-width: 520px; margin: 26px auto 0; text-align: center; }
.wl-ready .wl { display: block; }
.wl-compact { max-width: 470px; margin-top: 22px; animation: rise-in 0.9s var(--ease-out) 2.15s both; }
.wl-row {
  display: flex; align-items: center; gap: 6px; padding: 5px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow);
  transition: border-color 0.2s ease, box-shadow 0.25s ease;
}
.wl-row:focus-within { border-color: var(--amber); box-shadow: 0 0 0 4px rgba(245, 167, 18, 0.18), var(--shadow); }
.wl-input {
  flex: 1 1 auto; min-width: 0; min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent;
  color: var(--text); font: inherit; font-family: var(--font-en); font-size: 1rem; text-align: left;
}
.wl-input::placeholder { color: var(--text-2); opacity: 0.75; }
.wl-input:focus { outline: none; }
.wl-input:focus-visible { outline: none; }
.wl-btn { flex: none; min-height: 44px; padding: 0 20px; font-size: 0.9375rem; box-shadow: none; }
.wl-btn:hover { transform: none; box-shadow: 0 6px 18px rgba(245, 167, 18, 0.32); }
.wl-btn:disabled { cursor: progress; opacity: 0.85; }
.wl-spin { display: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(16, 28, 38, 0.25); border-top-color: var(--navy); animation: spin 0.8s linear infinite; }
.wl[data-state="sending"] .wl-spin { display: inline-block; }
.wl[data-state="invalid"] .wl-row { border-color: #C2410C; }
.wl-check { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 8px; padding-inline: 6px; cursor: pointer; font-size: 0.9375rem; color: var(--text-2); }
.wl-check input { width: 20px; height: 20px; margin: 0; accent-color: var(--amber); flex: none; }
.wl-hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; left: -9999px; }
.wl-msg { margin-top: 10px; padding-inline: 8px; font-size: 0.9375rem; line-height: 1.6; color: var(--text-2); min-height: 0; }
.wl-msg:empty { display: none; }
.wl-msg.is-error { color: #B42318; }
.wl-msg.is-hint { color: var(--text); }
.wl-msg bdi { font-family: var(--font-en); font-weight: 600; }
.wl-msg .wl-quiet { display: block; color: var(--text-2); font-size: 0.875rem; }
.wl-use, .wl-again {
  min-height: 36px; padding: 0 14px; margin-inline-start: 4px; border-radius: 999px; border: 1px solid var(--line);
  background: transparent; color: inherit; font: inherit; font-size: 0.875rem; font-weight: 600; cursor: pointer;
}
.wl-use:hover, .wl-again:hover { border-color: var(--amber); }
.wl-msg.is-ok {
  display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 14px; padding: 16px 18px;
  border-radius: 18px; border: 1px solid rgba(245, 167, 18, 0.45); background: rgba(245, 167, 18, 0.08); color: var(--text);
  animation: rise-in 0.5s var(--ease-out) both;
}
.wl-ok-title { font-weight: 700; font-size: 1.0625rem; }
.wl-ok-title:focus { outline: none; }
.wl-ok-title::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-inline-end: 8px; border-radius: 50%; background: var(--amber); vertical-align: 0.05em; }
.wl-ok-body { color: var(--text-2); }
.wl-again { margin: 6px 0 0; }
.wl[data-state="success"] .wl-row, .wl[data-state="success"] .wl-check { display: none; }
.wl-consent { margin-top: 10px; padding-inline: 8px; font-size: 0.8125rem; line-height: 1.6; color: var(--text-2); }
.wl-consent a { color: inherit; text-underline-offset: 3px; }
.wl-burst { position: absolute; inset-inline-end: 70px; top: 26px; width: 0; height: 0; pointer-events: none; }
.wl-burst i { position: absolute; left: 0; top: 0; width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2); border-radius: 50%; background: var(--amber); opacity: 0; }
.wl[data-state="success"] .wl-burst { inset-inline-end: auto; left: 50%; top: 34px; }
.wl-burst.is-on i { animation: wl-pop 1.1s var(--ease-out) both; }
@keyframes wl-pop { 0% { opacity: 1; transform: translate(0, 0) scale(0.4); } 60% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1); } }
/* on the navy "Stay tuned" card */
.soon-card .wl-row { background: rgba(246, 243, 236, 0.06); border-color: rgba(246, 243, 236, 0.22); box-shadow: none; }
.soon-card .wl-input { color: #F6F3EC; }
.soon-card .wl-input::placeholder { color: #AAB4BF; }
.soon-card .wl-check, .soon-card .wl-consent, .soon-card .wl-msg { color: #C9D0D8; }
.soon-card .wl-msg.is-error { color: #FDA29B; }
.soon-card .wl-msg.is-hint, .soon-card .wl-msg.is-ok { color: #F6F3EC; }
.soon-card .wl-ok-body, .soon-card .wl-msg .wl-quiet { color: #C9D0D8; }
.soon-card .wl-consent a { color: #F6F3EC; }
.soon-card .wl[data-state="invalid"] .wl-row { border-color: #FDA29B; }
.soon-card p.wl-msg, .soon-card p.wl-consent { max-width: none; margin-inline: 0; }
@media (prefers-color-scheme: dark) {
  .wl-msg.is-error { color: #FDA29B; }
  .wl[data-state="invalid"] .wl-row { border-color: #FDA29B; }
}
@media (max-width: 480px) {
  .wl-row { flex-direction: column; align-items: stretch; border-radius: 24px; padding: 6px; }
  .wl-input { text-align: center; }
  .wl-btn { width: 100%; }
  .wl-burst { inset-inline-end: 50%; top: 80px; }
}

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line-soft); padding: 44px 0 32px; font-size: 0.9375rem; color: var(--text-2); }
.foot-grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.foot .brand img { width: 112px; }
.foot-brand p { margin-top: 12px; max-width: 26em; }
.foot h2 { margin: 0 0 10px; font-size: 0.875rem; font-weight: 600; color: var(--text); letter-spacing: 0; }
html:lang(en) .foot h2 { text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.75rem; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot a { color: var(--text-2); text-decoration: none; text-underline-offset: 3px; }
.foot a:hover { color: var(--text); text-decoration: underline; }
.foot-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line-soft); }
.foot .chip { color: var(--text); }

/* ---------- Reveal on scroll (teaser.js adds .js and .is-in) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.9s ease, transform 1.1s var(--ease-out); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.tiles .tile:nth-child(2) { transition-delay: 0.08s; }
.tiles .tile:nth-child(3) { transition-delay: 0.12s; }
.tiles .tile:nth-child(4) { transition-delay: 0.2s; }
.tiles .tile:nth-child(5) { transition-delay: 0.28s; }
.js .tile.is-in::before { animation: edge-light 1.6s var(--ease-soft) 0.3s both; }
.js .is-in .t-coin img, .js .is-in .mini-coin img { animation: coin-flip 1.3s var(--ease-out) 0.25s both; }
.js .is-in .tri span img { animation: coin-flip 1.2s var(--ease-out) both; }
.js .is-in .tri span:nth-child(1) img { animation-delay: 0.35s; } .js .is-in .tri span:nth-child(2) img { animation-delay: 0.5s; } .js .is-in .tri span:nth-child(3) img { animation-delay: 0.65s; }
.js .tile .haze { transition: opacity 1.4s ease, transform 1.6s var(--ease-out); }
.js .tile:not(.is-in) .haze { opacity: 0; transform: scale(1.14); }

/* ---------- Keyframes ---------- */
@keyframes ink-in { from { opacity: 0; transform: translateY(10px) scale(0.985); filter: blur(6px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes dot-in {
  0% { opacity: 0; transform: rotate(var(--a)) translateX(var(--r)) rotate(calc(var(--a) * -1)) scale(0.35); }
  30% { opacity: 1; }
  100% { opacity: 1; transform: rotate(0deg) translateX(0%) rotate(0deg) scale(1); }
}
@keyframes coin-flip { from { transform: rotateY(-720deg); } to { transform: rotateY(0deg); } }
@keyframes glint { 0% { opacity: 0; background-position: 130% 0; } 20% { opacity: 1; } 100% { opacity: 0; background-position: -30% 0; } }
@keyframes halo-land { 0%, 55% { opacity: 0; transform: scale(0.5); } 78% { opacity: 0.9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.1); } }
@keyframes halo-wave { 0% { opacity: 0; transform: scale(0.55); } 5% { opacity: 0.85; transform: scale(1); } 11%, 100% { opacity: 0; transform: scale(1); } }
@keyframes swell { 0% { transform: scale(1); } 5% { transform: scale(1.08); } 11%, 100% { transform: scale(1); } }
@keyframes glow-rise { from { opacity: 0; transform: scale(0.7); } to { opacity: 1; transform: scale(1); } }
@keyframes glow-breathe { from { opacity: 1; } to { opacity: 0.7; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes line-rise { from { transform: translateY(110%); } to { transform: none; } }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0% 0; } }
@keyframes sweep { from { transform: translateX(-120%); } to { transform: translateX(120%); } }
@keyframes ping { 0% { transform: scale(1); opacity: 0.7; } 70%, 100% { transform: scale(3.2); opacity: 0; } }
@keyframes orb-x { from { transform: translateX(calc(var(--rx) * -1)); } to { transform: translateX(var(--rx)); } }
@keyframes orb-y { from { transform: translateY(calc(var(--ry) * -1)) scale(0.62); opacity: 0.55; } to { transform: translateY(var(--ry)) scale(1.08); opacity: 1; } }
@keyframes cue { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { transform: translateY(14px); opacity: 0; } }
@keyframes march { to { stroke-dashoffset: -6.25; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ripple { 0% { transform: scale(1); opacity: 0.9; } 100% { transform: scale(4.2); opacity: 0; } }
@keyframes travel { 0% { stroke-dashoffset: 0; opacity: 0; } 8% { opacity: 1; } 86% { opacity: 1; } 100% { stroke-dashoffset: -99; opacity: 0; } }
@keyframes edge-light { 0% { transform: translateX(-100%); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateX(100%); opacity: 0; } }
@keyframes wave-dot { 0%, 100% { transform: translateY(0) scale(1); opacity: 0.55; } 18% { transform: translateY(-6px) scale(1.12); opacity: 1; } 36% { transform: translateY(0) scale(1); opacity: 0.55; } }

/* ---------- Reduced motion: everything is shown in its final place, nothing moves ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .orbits, .cue, .coin::after, .status::after, .wl-burst { display: none; }
  .js [data-reveal], .js .tile .haze, .js .tile .v-speck, .js .tile .tri span { opacity: 1 !important; transform: none !important; }
  .js .tile .haze { transform: scale(1.04) !important; }
  .accent { background-position: 0 0; }
}

/* ---------- Larger screens ---------- */
@media (min-width: 760px) {
  :root { --gutter: 32px; }
  .top-row { height: 72px; }
  .brand img { width: 116px; }
  .hero { padding-top: 104px; }
}
@media (max-width: 420px) {
  .actions .btn { width: 100%; }
  .actions { width: 100%; max-width: 340px; }
  .chip-lang span { font-size: 0.875rem; }
}
