/* Landing page (index.html). No script: the 3D motion is CSS scroll-driven animation, so
   browsers without it (Firefox today) and reduced-motion visitors get the same page, still. */

@font-face { font-family: "Rubik"; font-weight: 400; font-display: swap; src: url("/fonts/rubik-400.woff2") format("woff2"); }
@font-face { font-family: "Rubik"; font-weight: 700; font-display: swap; src: url("/fonts/rubik-700.woff2") format("woff2"); }
@font-face { font-family: "Rubik"; font-weight: 800; font-display: swap; src: url("/fonts/rubik-800.woff2") format("woff2"); }

:root {
  --bg: #FAF6F2; --surface: #FFFFFF; --muted-fill: #F3EBE5; --text: #1C1B1A; --muted: #67625C;
  --primary: #A3322A; --primary-soft: #F8E3E0; --success: #25603F; --success-soft: #E5F4EA;
  --warning: #835C13; --warning-soft: #FBF2DE; --info: #1F6F6B; --info-soft: #E3F1EF;
  --highlight: #6842A6; --highlight-soft: #F0EAFE; --star: #E8A23A; --dark: #1C1B1A;
  --shadow: 0 30px 60px -30px rgba(58, 31, 28, 0.45), 0 12px 24px -12px rgba(58, 31, 28, 0.2);
  --gutter: max(16px, env(safe-area-inset-left));
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: "Rubik", system-ui, sans-serif; line-height: 1.5; overflow-x: clip; }
img { display: block; max-width: 100%; }
/* 3D tilts and glows may stick out past the screen edge; clip them here so a phone never pans sideways
   (overflow-x on body alone does not stop mobile browsers). clip, unlike hidden, keeps sticky working. */
main { overflow-x: clip; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.02em; line-height: 1.08; }
h1 { font-size: clamp(40px, 7vw, 84px); }
h2 { font-size: clamp(32px, 5vw, 60px); }
h3 { font-size: 22px; }
p { margin: 0; }
.eyebrow { display: block; margin-bottom: 14px; font-size: 14px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--primary); }
.eyebrow.gold { color: var(--star); }
.lead { margin-top: 18px; font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 34em; }

/* buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 999px;
  background: var(--primary); color: #fff; font-weight: 700; font-size: 17px; text-decoration: none;
  box-shadow: 0 14px 30px -14px rgba(163, 50, 42, 0.8); transition: transform 0.15s ease; }
.btn:active { transform: scale(0.97); }
.btn svg { width: 20px; height: 20px; }
.btn-small { min-height: 44px; padding: 0 18px; font-size: 15px; box-shadow: none; }
.btn-ghost { background: var(--muted-fill); color: var(--text); box-shadow: none; }
.btn-ghost-light { background: rgba(255, 255, 255, 0.12); color: #fff; box-shadow: none; }
@media (hover: hover) { .btn:hover { transform: translateY(-2px); } }
a:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px; padding: 12px var(--gutter);
  padding-top: max(12px, env(safe-area-inset-top)); background: rgba(250, 246, 242, 0.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 22px; text-decoration: none; margin-inline-end: auto; }
.nav-links { display: none; gap: 28px; }
.nav-links a { color: var(--muted); font-weight: 700; text-decoration: none; }
@media (min-width: 760px) { .nav-links { display: flex; } }
/* Language switch: one static page per language (index.html, fr.html, ar.html). Small phones drop the
   header’s app button, which the hero repeats just below, so the switch fits. */
.lang-switch { display: flex; padding: 3px; border-radius: 999px; background: var(--muted-fill); }
.lang-switch a { min-width: 44px; min-height: 40px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px;
  color: var(--muted); font-size: 14px; font-weight: 700; text-decoration: none; }
.lang-switch a[aria-current] { background: var(--surface); color: var(--text); box-shadow: 0 1px 4px rgba(28, 27, 26, 0.12); }
@media (max-width: 479px) { .nav > .btn { display: none; } }
/* Arabic letters join, so no letter spacing, and they need taller lines. */
:lang(ar) :is(h1, h2, h3, .eyebrow) { letter-spacing: 0; line-height: 1.3; }

/* ---------- phone mockup (sizes in em; the phone sets the base size) ---------- */
.phone { --w: clamp(250px, 27vw, 340px); width: var(--w); height: calc(var(--w) * 2.04); font-size: calc(var(--w) / 24);
  padding: 0.9em; border-radius: 4.2em; background: var(--dark); box-shadow: var(--shadow), inset 0 0 0 2px #3a3633; }
.screen { position: relative; height: 100%; border-radius: 3.4em; background: var(--bg); overflow: hidden; }
.notch { position: absolute; top: 0.8em; left: 50%; width: 7.5em; height: 2.1em; margin-left: -3.75em; border-radius: 2em; background: var(--dark); }
.status { height: 3.7em; display: flex; justify-content: space-between; align-items: center; padding: 0.4em 2.2em 0; font-size: 0.95em; font-weight: 700; }
.bars-icon { width: 2.2em; height: 0.9em; border-radius: 0.3em; background: var(--text); }
/* Discover, as in the app: search bar, filter and bell buttons, category chips with icons,
   "For you", photo-tile cards (add button on the photo, price in brick, rating and shop), full-width tab bar. */
.search-row { display: flex; gap: 0.5em; padding: 0.3em 1.1em 0.2em; }
.search-field { flex: 1; min-width: 0; display: flex; align-items: center; gap: 0.5em; height: 3.2em; padding-inline: 1em 0.8em; border-radius: 1.1em; background: var(--muted-fill); color: var(--placeholder, #8F8A84); font-size: 0.92em; white-space: nowrap; overflow: hidden; }
.search-field svg { width: 1.35em; height: 1.35em; flex: none; color: var(--muted); }
.search-field span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.icon-btn { flex: none; width: 3em; height: 3em; border-radius: 1em; background: var(--muted-fill); color: var(--text); display: grid; place-items: center; }
.icon-btn.primary { background: var(--primary); color: #fff; }
.icon-btn svg { width: 1.4em; height: 1.4em; }
.chips { display: flex; gap: 0.5em; padding: 0.75em 1.1em 0.2em; overflow: hidden; }
.chip { display: flex; align-items: center; gap: 0.35em; padding: 0.6em 0.9em; border-radius: 1em; background: var(--muted-fill); font-size: 0.85em; font-weight: 700; white-space: nowrap; }
.chip svg { width: 1.2em; height: 1.2em; }
.chip.on { background: var(--primary); color: #fff; }
.feed-title { margin: 0.7em 1.1em 0.55em; font-size: 1.2em; font-weight: 700; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.95em 0.55em; padding: 0 1.1em; }
.pcard { display: flex; flex-direction: column; min-width: 0; }
.ph { position: relative; }
.pcard img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 1.5em; background: var(--muted-fill); }
.add { position: absolute; top: 0.5em; inset-inline-end: 0.5em; width: 2.4em; height: 2.4em; border-radius: 50%; background: rgba(255, 255, 255, 0.92); display: grid; place-items: center; }
.add svg { width: 1.3em; height: 1.3em; }
.pcard b { margin: 0.5em 0.15em 0; font-size: 0.92em; font-weight: 500; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard .price { margin: 0.05em 0.15em 0; color: var(--primary); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meta { display: flex; align-items: center; gap: 0.25em; margin: 0.1em 0.15em 0; font-size: 0.78em; font-weight: 700; white-space: nowrap; overflow: hidden; }
.meta i { font-style: normal; color: var(--star); }
.meta em { font-style: normal; font-weight: 400; color: var(--muted); }
.meta span { min-width: 0; margin-inline-start: 0.2em; font-weight: 400; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.tabbar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: 0.2em; padding: 0.5em 0.5em 1.5em; background: var(--surface);
  box-shadow: 0 -0.5em 1.5em -1em rgba(58, 31, 28, 0.35); }
.tab { flex: 1; height: 4em; border-radius: 1.1em; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.15em;
  color: var(--muted); font-size: 0.8em; font-weight: 700; }
.tab svg { width: 1.7em; height: 1.7em; }
.tab.on { background: var(--text); color: #fff; }

/* Order details, as in the app: back header, order number with the status badge,
   "Order tracking" card with check dots and Yalidine's number, then the product and the total. */
.back { display: flex; align-items: center; gap: 0.7em; padding: 0.1em 1.1em 0.6em; font-size: 1.25em; font-weight: 700; }
.back span { flex: 1; text-align: center; }
.back i { width: 2em; height: 2em; border-radius: 50%; background: var(--muted-fill); display: grid; place-items: center; font-style: normal; font-size: 1.1em; }
.back i.spacer { background: none; }
.o-head { display: flex; align-items: center; justify-content: space-between; gap: 0.6em; padding: 0 1.2em 0.9em; }
.o-head b, .o-head small { display: block; white-space: nowrap; }
.o-head small { color: var(--muted); font-size: 0.82em; }
.o-card { margin: 0 1em 0.8em; padding: 1em; border-radius: 1.4em; background: var(--surface); box-shadow: 0 0.6em 1.4em -0.9em rgba(58, 31, 28, 0.45); }
.card-title { display: block; margin-bottom: 0.6em; font-size: 1.1em; }
.o-prod { display: flex; gap: 0.9em; align-items: center; }
.o-prod img { width: 4.2em; height: 4.2em; border-radius: 1em; object-fit: cover; }
.o-prod b, .o-prod small { display: block; }
.o-prod small { color: var(--muted); font-size: 0.9em; }
.o-total { display: flex; justify-content: space-between; align-items: center; }
.o-total span { color: var(--muted); }
.o-total b { font-size: 1.25em; }
.status-chip { position: relative; flex: none; width: 6.6em; height: 1.9em; }
.st { position: absolute; inset-inline-end: 0; top: 0; padding: 0.3em 0.75em; border-radius: 2em; font-size: 0.85em; font-weight: 700; white-space: nowrap; }
.st0 { background: var(--warning-soft); color: var(--warning); }
.st1 { background: var(--info-soft); color: var(--info); }
.st2 { background: var(--highlight-soft); color: var(--highlight); }
.st3 { background: var(--success-soft); color: var(--success); }
.st0, .st1, .st2 { opacity: 0; }  /* without motion the order shows as delivered */
.timeline { position: relative; display: flex; flex-direction: column; padding-inline-start: 2.4em; }
.line, .line-fill { position: absolute; inset-inline-start: 0.72em; top: 1.5em; width: 0.16em; height: 9em; background: #E4D9CF; }
.line-fill { background: var(--success); transform-origin: top; }
.tl-step { position: relative; height: 3em; display: flex; align-items: center; font-weight: 500; }
.dot { position: absolute; inset-inline-start: -2.4em; top: 50%; width: 1.6em; height: 1.6em; margin-top: -0.8em; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 0.14em #E4D9CF; }
.dot.on { display: grid; place-items: center; background: var(--success); box-shadow: none; }
.dot.on::after { content: "✓"; color: #fff; font-size: 0.85em; font-weight: 700; font-style: normal; }
.carrier { display: flex; align-items: center; gap: 0.5em; margin-top: 0.4em; padding-top: 0.7em; border-top: 1px solid #E4D9CF; color: var(--muted); font-size: 0.85em; }
.carrier svg { width: 1.4em; height: 1.4em; color: var(--info); flex: none; }

/* ---------- hero ---------- */
.hero-stage { display: grid; gap: 48px; align-items: center; padding: 40px var(--gutter) 64px; max-width: 1240px; margin: 0 auto; }
.hero-visual { position: relative; display: grid; place-items: center; perspective: 1600px; padding: 20px 0 40px; }
.hero-phone { transform-style: preserve-3d; transform: rotateY(-16deg) rotateX(6deg); }
.float { position: absolute; z-index: 2; }
.f1 { left: -40px; top: 60%; }
.f2 { right: -30px; top: 40%; }
.f3 { right: 6%; top: 8%; }
.toast { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); font-size: 15px; max-width: 270px; }
.toast b, .toast small { display: block; }
.toast small { color: var(--muted); font-size: 13px; }
.toast-icon { flex: none; width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; }
.toast-icon.info { background: var(--info-soft); color: var(--info); }
.toast-icon svg { width: 24px; height: 24px; }
.stars { color: var(--star); font-size: 15px; letter-spacing: 1px; }
.toast .verified { color: var(--success); font-weight: 700; }
.tag { padding: 10px 18px; border-radius: 999px; background: var(--text); color: #fff; font-weight: 700; font-size: 15px; box-shadow: var(--shadow); }
@media (max-width: 559px) {
  /* on a phone the floating cards would cover the screen mockup: keep one small review card on the edge */
  .f1, .f3 { display: none; } .f2 { right: -4px; top: auto; bottom: 4%; }
  .toast { padding: 10px 12px; font-size: 13px; max-width: 200px; } .toast small { font-size: 12px; }
}
@media (min-width: 900px) {
  .hero { height: 190vh; }
  .hero-stage { position: sticky; top: 0; height: 100vh; height: 100svh; grid-template-columns: 1.05fr 1fr; padding-top: 70px; padding-bottom: 40px; }
}

/* ---------- sections ---------- */
.section { max-width: 1240px; margin: 0 auto; padding: 72px var(--gutter); }
.section-head { text-align: center; display: flex; flex-direction: column; align-items: center; }
.cards3 { display: grid; gap: 18px; margin-top: 44px; perspective: 1400px; }
@media (min-width: 760px) { .cards3 { grid-template-columns: repeat(3, 1fr); } }
.feature { padding: 30px; border-radius: 28px; background: var(--surface); box-shadow: 0 20px 40px -30px rgba(58, 31, 28, 0.5); }
.feature p { margin-top: 10px; color: var(--muted); font-size: 17px; }
.f-icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 20px; border-radius: 18px; background: var(--primary-soft); color: var(--primary); }
.f-icon svg { width: 28px; height: 28px; }
.perks { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 34px 0 0; padding: 0; list-style: none; }
.perks button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 18px; border: 0; border-radius: 999px;
  background: var(--muted-fill); color: var(--text); font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; transition: transform 0.15s ease, background 0.15s ease; }
.perks button::after { content: "i"; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%;
  background: var(--text); color: var(--muted-fill); font-size: 12px; font-weight: 800; font-style: italic; }
.perks button:hover { background: var(--primary-soft); }
.perks button:active { transform: scale(0.97); }
.perks button:focus-visible, .perk-note .btn:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.perk-note { width: min(440px, calc(100% - 32px)); padding: 28px; border: 0; border-radius: 28px; background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.perk-note::backdrop { background: rgba(28, 27, 26, 0.4); }
.perk-note p { margin: 10px 0 22px; color: var(--muted); font-size: 17px; }
.perk-note .btn { border: 0; font-family: inherit; cursor: pointer; }
.split { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 72px; } }

/* journey */
.journey-stage { display: grid; gap: 40px; align-items: center; max-width: 1240px; margin: 0 auto; padding: 56px var(--gutter); }
.steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.step { padding: 18px 20px; border-radius: 20px; background: var(--surface); box-shadow: 0 16px 34px -28px rgba(58, 31, 28, 0.6); }
.step b { display: block; font-size: 20px; }
.step span { color: var(--muted); }
.journey-visual { display: grid; place-items: center; perspective: 1600px; }
.journey-phone { transform: rotateY(14deg) rotateX(4deg); }

/* search */
.search-demo { padding: 26px; border-radius: 30px; background: var(--surface); box-shadow: var(--shadow); }
.search-big { display: flex; align-items: center; gap: 12px; height: 60px; padding-inline: 20px 10px; border-radius: 30px; background: var(--muted-fill); font-size: 19px; font-weight: 700; }
.search-big > svg { width: 24px; height: 24px; color: var(--muted); flex: none; }
.typed { flex: 1; white-space: nowrap; overflow: hidden; }
.cam-btn { width: 44px; height: 44px; border-radius: 22px; background: var(--primary); color: #fff; display: grid; place-items: center; }
.cam-btn svg { width: 22px; height: 22px; }
.langs { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 20px; }
.langs span { padding: 6px 14px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-weight: 700; font-size: 14px; }
.results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; font-size: 15px; }

/* choices: the app’s buy sheet (colour dots, then sizes) and a pack, as in components/buy-sheet.tsx */
.sheet-demo { display: grid; gap: 16px; }
.sheet { padding: 22px; border-radius: 28px; background: var(--surface); box-shadow: var(--shadow); }
.sheet-head { display: flex; align-items: center; gap: 14px; }
.sheet-head img { width: 72px; height: 72px; flex: none; border-radius: 18px; object-fit: cover; }
.sheet-head b, .sheet-head .price, .sheet-head small { display: block; }
.sheet-head .price { color: var(--primary); font-size: 22px; font-weight: 800; }
.sheet-head small { color: var(--muted); }
.opt { margin: 18px 0 10px; color: var(--muted); font-weight: 700; }
.opt b { color: var(--text); }
.dots { display: flex; gap: 12px; }
.sw { width: 34px; height: 34px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(28, 27, 26, 0.1); }
.sw.on { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--text); }
.sw.off { opacity: 0.35; background: linear-gradient(135deg, transparent 46%, var(--text) 46% 54%, transparent 54%), var(--c); }
.c-red { --c: #A3322A; } .c-cream { --c: #EADBC8; } .c-indigo { --c: #2F3A6B; } .c-ochre { --c: #C98A2B; } .c-pink { --c: #E58FA6; } .c-nude { --c: #D4A58A; }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.sizes span { padding: 8px 14px; border-radius: 14px; background: var(--muted-fill); font-weight: 700; }
.sizes .on { background: var(--text); color: #fff; }
.sizes .off { color: var(--muted); text-decoration: line-through; }
.sheet-btn { width: 100%; margin-top: 22px; }
.pack-title { display: flex; align-items: center; gap: 10px; font-size: 19px; }
.pack-badge { padding: 3px 10px; border-radius: 999px; background: var(--text); color: #fff; font-size: 13px; }
.save { display: inline-block; margin-top: 18px; padding: 6px 12px; border-radius: 999px; background: var(--success-soft); color: var(--success); font-size: 14px; font-weight: 700; }
@media (min-width: 560px) { .sheet-demo { grid-template-columns: 1.2fr 1fr; align-items: start; } }

/* ---------- sellers (dark) ---------- */
.sellers { color: #fff; background: radial-gradient(1000px 700px at 80% 10%, #3a1f1c 0%, rgba(58, 31, 28, 0) 70%), var(--dark); border-radius: 40px 40px 0 0; }
.sellers .lead, .sellers .tile p { color: rgba(255, 255, 255, 0.72); }
.dash-wrap { perspective: 1600px; }
.dash { --ry-from: -38deg; --ry: -8deg; position: relative; display: grid; gap: 14px; grid-template-columns: 1.5fr 1fr; color: var(--text);
  transform-style: preserve-3d; transform: rotateY(var(--ry)) rotateX(6deg); }
.rev, .side { border-radius: 24px; background: var(--surface); box-shadow: 0 40px 70px -30px rgba(0, 0, 0, 0.7); }
.rev { grid-row: span 2; display: flex; flex-direction: column; padding: 24px; }
.rev-label { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.rev-value { margin-top: 6px; font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; letter-spacing: -0.02em; }
.trend { align-self: flex-start; margin-top: 8px; padding: 6px 12px; border-radius: 999px; background: var(--success-soft); color: var(--success); font-size: 14px; font-weight: 700; }
.chart { display: flex; align-items: flex-end; gap: 8px; height: 150px; margin-top: auto; padding-top: 24px; }
.chart i { flex: 1; height: var(--h); border-radius: 8px 8px 4px 4px; background: var(--primary-soft); transform-origin: bottom; }
.chart i.hot { background: var(--primary); }
.chart i:nth-child(1) { --h: 38%; --i: 0; } .chart i:nth-child(2) { --h: 55%; --i: 1; } .chart i:nth-child(3) { --h: 46%; --i: 2; }
.chart i:nth-child(4) { --h: 70%; --i: 3; } .chart i:nth-child(5) { --h: 62%; --i: 4; } .chart i:nth-child(6) { --h: 84%; --i: 5; }
.chart i:nth-child(7) { --h: 100%; --i: 6; }
.side { display: flex; flex-direction: column; gap: 10px; padding: 18px; font-size: 14px; }
.side b { font-size: 16px; }
.side span { display: flex; align-items: center; gap: 10px; }
.side img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; flex: none; }
.side small { margin-inline-start: auto; color: var(--muted); white-space: nowrap; }
.side.alert { border-inline-start: 5px solid var(--primary); }

/* shop style: cover pattern in the accent, avatar over its edge, announcement, colour presets, short link */
.shop-demo { display: grid; place-items: center; }
.shop-card { width: min(100%, 380px); overflow: hidden; border-radius: 28px; background: var(--surface); color: var(--text); box-shadow: 0 40px 70px -30px rgba(0, 0, 0, 0.7); }
.shop-cover { aspect-ratio: 5 / 2; background: repeating-conic-gradient(from 45deg, rgba(255, 255, 255, 0.18) 0 25%, transparent 0 50%) 0 0 / 26px 26px, var(--primary); }
.shop-body { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 0 22px 22px; }
.shop-avatar { display: grid; place-items: center; width: 72px; height: 72px; margin-top: -36px; border-radius: 50%; background: var(--primary-soft); color: var(--primary);
  font-size: 30px; font-weight: 800; box-shadow: 0 0 0 4px var(--surface); }
.shop-body > b { font-size: 22px; }
.shop-note { padding: 6px 12px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); font-size: 14px; font-weight: 700; }
.shop-themes { display: flex; gap: 8px; margin-top: 10px; }
.shop-themes i { width: 26px; height: 26px; border-radius: 50%; }
.shop-themes .on { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--text); }
.t1 { background: #A3322A; } .t2 { background: #1F6F6B; } .t3 { background: #6842A6; } .t4 { background: #2F5D8C; } .t5 { background: #835C13; } .t6 { background: #B23A6B; }
.shop-link { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 10px 14px; border-radius: 14px; background: var(--muted-fill); font-weight: 700; font-size: 15px; }
.shop-link svg { width: 22px; height: 22px; flex: none; }
.sellers .split .lead + .lead { margin-top: 12px; }
@media (max-width: 559px) {
  .dash { grid-template-columns: 1fr; --ry-from: -14deg; --ry: -3deg; }
  .rev { grid-row: auto; }
  .side.best { display: none; }
  .results { font-size: 13px; gap: 8px; }
  .search-demo { padding: 18px; }
}
.tiles { display: grid; gap: 14px; perspective: 1400px; }
@media (min-width: 640px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .tiles { grid-template-columns: repeat(4, 1fr); } }
.tile { padding: 26px; border-radius: 24px; background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.tile p { margin-top: 8px; }
.founders { display: grid; gap: 40px; align-items: center; justify-items: center; text-align: center; padding-bottom: 96px; }
@media (min-width: 900px) { .founders { grid-template-columns: auto 1fr; justify-items: start; text-align: start; } }
.coin-wrap { position: relative; width: 240px; height: 240px; perspective: 1200px; }
.coin-wrap::before { content: ""; position: absolute; inset: -60%; border-radius: 50%; background: radial-gradient(circle, rgba(207, 81, 41, 0.45) 0%, rgba(207, 81, 41, 0) 60%); }
.face { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: #fff; font-size: 92px; font-weight: 800; letter-spacing: -0.04em;
  background: radial-gradient(circle at 35% 30%, #d4584c 0%, #a3322a 55%, #7d241e 100%); box-shadow: inset 0 0 0 9px rgba(255, 255, 255, 0.16), inset 0 -10px 0 9px rgba(0, 0, 0, 0.12), 0 30px 50px -20px rgba(0, 0, 0, 0.7);
  transform: rotateY(-12deg) rotateX(6deg); }
.face small { font-size: 0.6em; margin-top: 0.3em; }

/* final */
.final { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 96px var(--gutter); }
.final img { margin-bottom: 18px; }
.final .btn { margin-top: 30px; }
.footer { display: flex; justify-content: space-between; gap: 16px; padding: 24px var(--gutter); padding-bottom: max(24px, env(safe-area-inset-bottom));
  border-top: 1px solid #E4D9CF; color: var(--muted); font-size: 14px; }
.footer a { color: var(--muted); }

/* ---------- coming soon (app.html) ---------- */
.soon { position: relative; isolation: isolate; display: grid; gap: 40px; grid-template-areas: "head" "visual" "paths"; align-items: center;
  max-width: 1180px; min-height: calc(100svh - 68px); margin: 0 auto; padding: 32px var(--gutter) 72px; }
/* spans the whole window width so the glow never shows the column's edge */
.soon-glow { position: absolute; inset: 0 calc(50% - 50vw); z-index: -1; pointer-events: none;
  background: radial-gradient(circle 380px at 68% 42%, rgba(207, 81, 41, 0.16), transparent), radial-gradient(circle 320px at 22% 74%, rgba(232, 162, 58, 0.14), transparent); }
.soon-head { grid-area: head; text-align: center; }
.soon-head .lead { margin-inline: auto; }
.soon-head h1 em { font-style: normal; color: var(--primary); }
.soon-pill { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; padding: 8px 16px 8px 12px; border-radius: 999px;
  background: var(--surface); box-shadow: 0 10px 24px -14px rgba(58, 31, 28, 0.5); color: var(--primary); font-size: 14px; font-weight: 700; }
.soon-pill i { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); }
.soon-pill i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--primary); opacity: 0; }
.soon-langs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px; }
.soon-langs span { padding: 6px 14px; border-radius: 999px; background: var(--muted-fill); color: var(--muted); font-size: 15px; font-weight: 700; }

.soon-visual { grid-area: visual; position: relative; justify-self: center; padding: 28px 64px 56px; }
.soon-ring { position: absolute; top: 50%; left: 50%; width: 125%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; border: 2px dashed rgba(163, 50, 42, 0.22); z-index: -1; }
.soon-ring::before { content: ""; position: absolute; inset: 14%; border-radius: 50%; background: radial-gradient(circle, rgba(207, 81, 41, 0.22), rgba(207, 81, 41, 0) 70%); }
.soon-phone { transform: rotate(-4deg); }
.soon-phone .phone { --w: clamp(190px, 50vw, 260px); }
.soon-screen { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5em; background: linear-gradient(180deg, #FFF9F4, var(--bg)); }
.soon-screen img { width: 7em; height: 7em; }
.soon-screen b { font-size: 2.3em; font-weight: 800; letter-spacing: -0.02em; }
.soon-screen small { font-size: 0.95em; color: var(--muted); }
.soon-bar { width: 10em; height: 0.55em; margin-top: 1.6em; border-radius: 1em; background: var(--muted-fill); overflow: hidden; }
.soon-bar i { display: block; width: 86%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--primary), #CF5129, var(--star), #CF5129, var(--primary)); background-size: 200% 100%; }
.bubble { position: absolute; width: clamp(62px, 16vw, 92px); aspect-ratio: 1; padding: 5px; border-radius: 26px; background: var(--surface); box-shadow: var(--shadow); }
.bubble img { width: 100%; height: 100%; object-fit: cover; border-radius: 21px; }
.b1 { top: 8%; left: 0; rotate: -8deg; }
.b2 { top: 34%; right: -4%; rotate: 7deg; }
.b3 { bottom: 22%; left: -4%; rotate: 5deg; }
.b4 { top: 0; right: 6%; width: clamp(50px, 12vw, 70px); border-radius: 20px; rotate: 10deg; }
.b4 img { border-radius: 15px; }
.b5 { bottom: 4%; right: 2%; width: clamp(54px, 13vw, 78px); border-radius: 22px; rotate: -6deg; }
.b5 img { border-radius: 17px; }
.soon-badge { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 10px 18px 10px 14px;
  border-radius: 16px; background: var(--dark); color: #fff; box-shadow: var(--shadow); white-space: nowrap; }
.soon-badge svg { width: 26px; height: 26px; }
.soon-badge span { display: flex; flex-direction: column; line-height: 1.15; }
.soon-badge small { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.75; }
.soon-badge b { font-size: 18px; }

.soon-paths { grid-area: paths; display: grid; gap: 16px; }
.soon-card { padding: 26px; border-radius: 28px; background: var(--surface); box-shadow: var(--shadow); }
.soon-card h2 { font-size: 24px; }
.soon-card p { margin-top: 8px; color: var(--muted); }
.soon-card .btn { margin-top: 20px; }
.soon-card.dark { background: var(--dark); color: #fff; }
.soon-card.dark p { color: rgba(255, 255, 255, 0.72); }
.soon-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 16px; border-radius: 16px; background: var(--primary-soft); color: var(--primary); }
.soon-card.dark .soon-icon { background: rgba(255, 255, 255, 0.1); color: var(--star); }
.soon-icon svg { width: 26px; height: 26px; }
@media (min-width: 700px) { .soon-paths { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) {
  .soon { grid-template-columns: 1.1fr 0.9fr; grid-template-areas: "head visual" "paths visual"; column-gap: 56px; row-gap: 36px; padding-top: 48px; }
  .soon-head { align-self: end; text-align: left; }
  .soon-head .lead { margin-inline: 0; }
  .soon-langs { justify-content: flex-start; }
  .soon-paths { align-self: start; }
}

/* ---------- motion ---------- */
@keyframes bob { 50% { translate: 0 -10px; } }
@keyframes soon-in { from { opacity: 0; transform: translateY(24px); } }
@keyframes soon-pulse { from { opacity: 0.6; } to { transform: scale(2.8); opacity: 0; } }
@keyframes soon-spin { to { rotate: 360deg; } }
@keyframes soon-load { from { width: 12%; } }
@keyframes soon-shimmer { to { background-position: -200% 0; } }
@keyframes soon-float { 50% { transform: rotate(-2deg) translateY(-12px); } }
@media (prefers-reduced-motion: no-preference) {
  .soon-head, .soon-visual, .soon-paths { animation: soon-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) both; }
  .soon-visual { animation-delay: 0.12s; } .soon-paths { animation-delay: 0.24s; }
  .soon-pill i::after { animation: soon-pulse 1.8s ease-out infinite; }
  .soon-ring { animation: soon-spin 80s linear infinite; }
  .soon-phone { animation: soon-float 7s ease-in-out infinite; }
  .soon-bar i { animation: soon-load 2.4s 0.4s cubic-bezier(0.22, 1, 0.36, 1) both, soon-shimmer 2.4s linear infinite; }
  .bubble, .soon-badge { animation: bob 6s ease-in-out infinite; }
  .b2 { animation-delay: -1.2s; } .b3 { animation-delay: -2.4s; } .b4 { animation-delay: -3.6s; } .b5 { animation-delay: -4.8s; }
  .soon-badge { animation-duration: 5s; }
}
@media (prefers-reduced-motion: no-preference) {
  .float-in { animation: bob 6s ease-in-out infinite; }
  .f2 .float-in { animation-delay: -2s; } .f3 .float-in { animation-delay: -4s; }
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    /* reveal on enter: content rises out of depth */
    @keyframes rise { from { opacity: 0; transform: translateY(60px) translateZ(-160px) rotateX(18deg); } to { opacity: 1; transform: none; } }
    .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 5% cover 30%; }

    /* sellers dashboard flattens, bars grow, coin tilts in */
    @keyframes dash-in { from { transform: rotateY(var(--ry-from)) rotateX(24deg) translateZ(-200px); opacity: 0.2; } to { transform: rotateY(var(--ry)) rotateX(6deg); opacity: 1; } }
    .dash { animation: dash-in linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
    @keyframes grow { from { transform: scaleY(0); } }
    .chart i { animation: grow linear both; animation-timeline: view(); animation-range: entry calc(30% + var(--i) * 8%) cover calc(35% + var(--i) * 4%); }
    /* one gentle turn that never goes edge-on, eased, over most of the section's entry */
    @keyframes coin-in { from { transform: rotateY(-55deg) rotateX(18deg) scale(0.7); opacity: 0; } to { transform: rotateY(-12deg) rotateX(6deg); opacity: 1; } }
    .coin { animation: coin-in both; animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); animation-timeline: view(); animation-range: entry 10% cover 55%; }

    @media (min-width: 900px) {
      /* hero: the tilted phone turns toward you, the cards drift away in depth */
      .hero { view-timeline: --hero block; }
      @keyframes hero-phone { to { transform: rotateY(0deg) rotateX(0deg) translateZ(80px) scale(1.04); } }
      .hero-phone { animation: hero-phone linear both; animation-timeline: --hero; animation-range: contain 0% contain 100%; }
      @keyframes drift-l { to { transform: translate3d(-120px, -60px, 160px) rotateY(18deg); opacity: 0; } }
      @keyframes drift-r { to { transform: translate3d(120px, 60px, 160px) rotateY(-18deg); opacity: 0; } }
      .f1 { animation: drift-l linear both; animation-timeline: --hero; animation-range: contain 10% contain 90%; }
      .f2, .f3 { animation: drift-r linear both; animation-timeline: --hero; animation-range: contain 10% contain 90%; }
      @keyframes copy-out { to { transform: translateY(-40px); opacity: 0.15; } }
      .hero-copy { animation: copy-out linear both; animation-timeline: --hero; animation-range: contain 55% contain 100%; }

      /* journey: the phone stays, the order moves on with the scroll */
      .journey { height: 420vh; view-timeline: --journey block; }
      .journey-stage { position: sticky; top: 0; height: 100vh; height: 100svh; grid-template-columns: 1fr 1fr; }
      .steps { position: relative; display: block; height: 150px; }
      .step { position: absolute; inset: 0 0 auto; }
      .step, .st, .d1, .d2, .d3, .line-fill, .journey-phone { animation-timeline: --journey; animation-range: contain 0% contain 100%; animation-timing-function: linear; animation-fill-mode: both; }
      @keyframes s0 { 0%, 20% { opacity: 1; transform: none; } 26%, 100% { opacity: 0; transform: translateY(-24px); } }
      @keyframes s1 { 0%, 21% { opacity: 0; transform: translateY(24px); } 27%, 45% { opacity: 1; transform: none; } 51%, 100% { opacity: 0; transform: translateY(-24px); } }
      @keyframes s2 { 0%, 46% { opacity: 0; transform: translateY(24px); } 52%, 70% { opacity: 1; transform: none; } 76%, 100% { opacity: 0; transform: translateY(-24px); } }
      @keyframes s3 { 0%, 71% { opacity: 0; transform: translateY(24px); } 77%, 100% { opacity: 1; transform: none; } }
      .step.s0, .st0 { animation-name: s0; } .step.s1, .st1 { animation-name: s1; }
      .step.s2, .st2 { animation-name: s2; } .step.s3, .st3 { animation-name: s3; }
      @keyframes on1 { 0%, 23% { transform: scale(0); } 27%, 100% { transform: scale(1); } }
      @keyframes on2 { 0%, 48% { transform: scale(0); } 52%, 100% { transform: scale(1); } }
      @keyframes on3 { 0%, 73% { transform: scale(0); } 77%, 100% { transform: scale(1); } }
      .d1 { animation-name: on1; } .d2 { animation-name: on2; } .d3 { animation-name: on3; }
      @keyframes fill { 0%, 21% { transform: scaleY(0); } 26%, 46% { transform: scaleY(0.333); } 51%, 71% { transform: scaleY(0.667); } 76%, 100% { transform: scaleY(1); } }
      .line-fill { animation-name: fill; }
      @keyframes journey-phone { from { transform: rotateY(24deg) rotateX(8deg); } to { transform: rotateY(-10deg) rotateX(2deg); } }
      .journey-phone { animation-name: journey-phone; }
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* Legal pages (public/legal/, written by scripts/legal-pages.mjs) */
.legal { max-width: 760px; margin: 0 auto; padding: 32px var(--gutter) 64px; color: var(--text); line-height: 1.6; }
.legal h1 { font-size: clamp(28px, 5vw, 40px); line-height: 1.15; margin: 0 0 8px; }
.legal h2 { font-size: 20px; margin: 32px 0 8px; }
.legal p { margin: 0 0 8px; }
.legal .legal-date { color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: flex-end; }
