:root {
  --brand: #05976A;
  --brand-700: #04704f;
  --brand-50: #eef8f3;
  --accent: #FFB420;
  --ink: #0a0f0d;
  --ink-2: #2a3430;
  --muted: #5e6a64;
  --line: #e8ecea;
  --line-strong: #d6dcd9;
  --bg: #ffffff;
  --subtle: #f7f9f8;
  --dark: #0a0f0d;
  --dark-2: #121a17;
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(10, 15, 13, .05);
  --shadow: 0 1px 2px rgba(10, 15, 13, .04), 0 12px 32px -12px rgba(10, 15, 13, .16);
  --shadow-lg: 0 1px 2px rgba(10, 15, 13, .04), 0 32px 64px -24px rgba(10, 15, 13, .22);
  --font-latin: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font: var(--font-latin);
}
html[lang="ar"] { --font: "IBM Plex Sans Arabic", "Plus Jakarta Sans", system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg);
  font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0 0 .5em; font-weight: 700; color: var(--ink); }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.25rem); line-height: 1.05; letter-spacing: -.04em; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); line-height: 1.1; letter-spacing: -.03em; }
h3 { font-size: 1.125rem; line-height: 1.35; letter-spacing: -.01em; }
html[lang="ar"] :is(h1, h2, h3) { letter-spacing: 0; line-height: 1.3; }
p { margin: 0 0 1em; }

.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 40px); }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: var(--r-sm); z-index: 100; }
.skip:focus { inset-inline-start: 8px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

/* Icons */
.i { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
html[dir="rtl"] .i--dir { transform: scaleX(-1); }
.icon-box { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--brand); box-shadow: var(--shadow-sm); flex: none; }
.icon-box .i { width: 20px; height: 20px; }
.icon-box--lg { width: 48px; height: 48px; border-radius: 12px; }
.icon-box--lg .i { width: 22px; height: 22px; }

/* Logo */
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-latin); font-weight: 800; font-size: 1.3rem; letter-spacing: -.03em; color: var(--ink); direction: ltr; }
.logo__word span { color: var(--brand); }
.logo__mark { display: inline-flex; align-items: baseline; justify-content: center; line-height: 32px; white-space: nowrap; width: 32px; height: 32px; border-radius: 9px; background: var(--brand); color: #fff; font-size: 1rem; letter-spacing: -.04em; box-shadow: inset 0 -2px 0 rgba(0,0,0,.12); }
.logo__mark b { color: var(--accent); font-size: .72em; }
.logo--light { color: #fff; }
.logo--light .logo__word span { color: var(--accent); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; height: 48px; padding: 0 1.35em; border-radius: 10px; font-weight: 600; font-size: .975rem; border: 1px solid transparent; transition: background .18s, border-color .18s, color .18s, box-shadow .18s; cursor: pointer; white-space: nowrap; }
.btn .i { transition: transform .18s; }
.btn:hover .i--dir { transform: translateX(3px); }
html[dir="rtl"] .btn:hover .i--dir { transform: scaleX(-1) translateX(3px); }
.btn--sm { height: 40px; padding: 0 1em; font-size: .9rem; }
.btn--primary { background: var(--brand); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 1px 2px rgba(5,151,106,.3); }
.btn--primary:hover { background: var(--brand-700); }
.btn--accent { background: var(--accent); color: var(--ink); }
.btn--accent:hover { background: #f5a50c; }
.btn--white { background: #fff; color: var(--ink); }
.btn--white:hover { background: #eef2f0; }
.btn--ghost { border-color: rgba(255,255,255,.22); color: #fff; }
.btn--ghost:hover { border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.04); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.82); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.nav__links { display: flex; gap: 32px; font-weight: 500; font-size: .925rem; color: var(--ink-2); }
.nav__links a { transition: color .15s; }
.nav__links a:hover { color: var(--brand); }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.lang { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 .85em; border: 1px solid var(--line); background: #fff; border-radius: 10px; font: 600 .875rem var(--font); color: var(--ink-2); cursor: pointer; transition: border-color .15s, color .15s; }
#langLabel { font-family: "IBM Plex Sans Arabic", var(--font-latin); }
.lang:hover { border-color: var(--line-strong); color: var(--ink); }
.lang .i { color: var(--muted); }
.burger { display: none; width: 42px; height: 42px; border: 0; background: transparent; cursor: pointer; padding: 10px; }
.burger span { display: block; height: 1.5px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: .25s; }

/* Hero */
.hero { position: relative; padding: 72px 0 104px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 70% 20%, #000 10%, transparent 70%);
          mask-image: radial-gradient(ellipse 60% 70% at 70% 20%, #000 10%, transparent 70%); }
html[dir="rtl"] .hero::before { -webkit-mask-image: radial-gradient(ellipse 60% 70% at 30% 20%, #000 10%, transparent 70%); mask-image: radial-gradient(ellipse 60% 70% at 30% 20%, #000 10%, transparent 70%); }
.hero__inner { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: 64px; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); color: var(--ink-2); font-weight: 600; font-size: .825rem; padding: .4em .9em .4em .8em; border-radius: 999px; margin: 0; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px rgba(5,151,106,.15); }
.dot--sm { width: 6px; height: 6px; box-shadow: 0 0 0 2px rgba(5,151,106,.18); }
.hero h1 { margin: 24px 0 20px; max-width: 13ch; }
html[lang="ar"] .hero h1 { max-width: 14ch; }
.hero h1 em { font-style: normal; color: var(--brand); }
.lead { font-size: 1.175rem; line-height: 1.65; color: var(--muted); max-width: 520px; margin-bottom: 32px; }

.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.store { display: inline-flex; align-items: center; gap: 12px; background: var(--ink); color: #fff; height: 56px; padding: 0 20px; border-radius: 12px; min-width: 184px; transition: background .18s; }
.store:hover { background: #1f2825; }
.store svg { width: 24px; height: 24px; }
.store span { display: flex; flex-direction: column; line-height: 1.2; }
.store small { font-size: .7rem; opacity: .7; }
.store strong { font-size: 1.02rem; font-weight: 600; font-family: var(--font-latin); }

.hero__points { list-style: none; padding: 24px 0 0; margin: 0; display: flex; flex-wrap: wrap; gap: 12px 28px; border-top: 1px solid var(--line); color: var(--ink-2); font-weight: 500; font-size: .925rem; max-width: 560px; }
.hero__points li { display: inline-flex; align-items: center; gap: 8px; }
.hero__points .i { color: var(--brand); }

/* Hero product shot (real app screen) */
.hero__visual { position: relative; display: grid; place-items: center; }
.hero__visual::before { content: ""; position: absolute; inset: 8% -4% -6% 10%; border-radius: 32px; background: radial-gradient(closest-side, rgba(5,151,106,.22), transparent); filter: blur(30px); }
.hero__shot { position: relative; margin: 0; width: min(100%, 500px); border-radius: 24px; overflow: hidden; background: var(--brand); box-shadow: 0 0 0 10px #fff, 0 0 0 11px var(--line), var(--shadow-lg); }
.hero__shot img { width: 100%; height: auto; }

/* Value strip */
.values { border-block: 1px solid var(--line); background: var(--subtle); }
.values__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.value { display: flex; gap: 14px; align-items: flex-start; padding: 28px 24px; border-inline-start: 1px solid var(--line); }
.value:first-child { border-inline-start: 0; padding-inline-start: 0; }
.value strong { display: block; font-size: .95rem; font-weight: 600; margin-bottom: 2px; }
.value small { color: var(--muted); font-size: .85rem; }
.value__icon { color: var(--brand); padding-top: 2px; }
.value__icon .i { width: 20px; height: 20px; }

/* Sections */
.section { padding: 112px 0; }
.section--compact { padding: 80px 0; }
.section--tint { background: var(--subtle); border-block: 1px solid var(--line); }
.section--dark { position: relative; background: var(--dark); color: #fff; overflow: hidden; }
.section--dark::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 50% 80% at 50% 0%, #000, transparent 75%); mask-image: radial-gradient(ellipse 50% 80% at 50% 0%, #000, transparent 75%); }
.section--dark > .container { position: relative; }
.section--dark h2 { color: #fff; }

.section__head { display: grid; grid-template-columns: 1fr 1fr; gap: 0 64px; align-items: end; margin-bottom: 56px; }
.section__head .eyebrow { grid-column: 1 / -1; }
.section__head h2 { margin: 0; max-width: 16ch; }
.section__sub { margin: 0; color: var(--muted); font-size: 1.075rem; max-width: 460px; justify-self: end; }
.narrow .section__head { display: block; margin-bottom: 40px; }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--brand); font-weight: 600; text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; margin: 0 0 18px; }
.eyebrow::before { content: ""; width: 18px; height: 1.5px; background: currentColor; }
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: .9rem; text-transform: none; }
.eyebrow--light { color: var(--accent); }
.muted { color: var(--muted); font-size: 1.075rem; max-width: 520px; }
.muted-light { color: rgba(255,255,255,.66); font-size: 1.075rem; max-width: 520px; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.step { position: relative; padding: 32px 40px 0 0; border-top: 1px solid var(--line-strong); }
html[dir="rtl"] .step { padding: 32px 0 0 40px; }
.step::before { content: ""; position: absolute; top: -1px; inset-inline-start: 0; width: 48px; height: 2px; background: var(--brand); }
.step__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.step__n { font-family: var(--font-latin); font-size: .85rem; font-weight: 600; color: var(--muted); letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.step h3 { margin-bottom: .4em; }
.step p { color: var(--muted); margin: 0; max-width: 320px; }

/* Product tour */
.tour__grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 72px; align-items: center; }
.tour__list { display: grid; }
.tour__tab { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 0 20px; text-align: start; width: 100%; padding: 22px 0 24px; background: none; border: 0; border-top: 1px solid var(--line-strong); font: inherit; color: var(--muted); cursor: pointer; transition: color .2s; }
.tour__tab:last-child { border-bottom: 1px solid var(--line-strong); }
.tour__tab:hover, .tour__tab.is-active { color: var(--ink); }
.tour__n { font-family: var(--font-latin); font-size: .8rem; font-weight: 600; padding-top: 4px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tour__tab.is-active .tour__n { color: var(--brand); }
.tour__text strong { display: block; font-size: 1.125rem; font-weight: 600; line-height: 1.4; }
.tour__desc { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s ease; }
.tour__desc small { overflow: hidden; display: block; font-size: .975rem; color: var(--muted); line-height: 1.6; }
.tour__tab.is-active .tour__desc { grid-template-rows: 1fr; }
.tour__tab.is-active .tour__desc small { padding-top: 6px; }
.tour__bar { position: absolute; inset-inline: 0; top: -1px; height: 2px; overflow: hidden; }
.tour__bar i { display: block; width: 100%; height: 100%; background: var(--brand); transform: scaleX(0); transform-origin: left; }
html[dir="rtl"] .tour__bar i { transform-origin: right; }
.tour__tab.is-active .tour__bar i { animation: tour-progress 6s linear forwards; }
.tour:not(.in-view) .tour__bar i, .tour.is-paused .tour__bar i { animation-play-state: paused; }
@keyframes tour-progress { to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .tour__tab.is-active .tour__bar i { transform: scaleX(1); } }

.tour__stage { position: relative; aspect-ratio: 760 / 957; width: min(100%, 520px); justify-self: center; border-radius: 24px; overflow: hidden; background: var(--brand); box-shadow: 0 0 0 10px #fff, 0 0 0 11px var(--line), var(--shadow-lg); }
.tour__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s ease; }
.tour__img.is-active { opacity: 1; z-index: 1; }

/* Ecosystem bento */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.feature { background: #fff; padding: 36px; display: flex; flex-direction: column; min-height: 300px; }
.feature .icon-box { margin-bottom: 32px; }
.feature p { color: var(--muted); margin: 0 0 28px; }
.feature__link { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .925rem; color: var(--brand); align-self: flex-start; }
.feature__link .i { transition: transform .18s; }
.feature__link:hover .i { transform: translateX(3px); }
html[dir="rtl"] .feature__link:hover .i { transform: scaleX(-1) translateX(3px); }

/* Split + checks */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 88px; align-items: center; }
.split--rev > :first-child { order: 2; }
.split h2 { max-width: 15ch; }
.checks { list-style: none; padding: 0; margin: 32px 0 36px; display: grid; gap: 16px; }
.checks li { display: flex; align-items: center; gap: 14px; font-weight: 500; color: var(--ink-2); }
.checks__icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line); background: #fff; color: var(--brand); flex: none; }
.checks__icon .i { width: 17px; height: 17px; }
.checks--light li { color: rgba(255,255,255,.88); }
.checks--light .checks__icon { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.12); color: var(--accent); }

/* Product mockups */
.mock { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 0 0 10px var(--subtle), var(--shadow-lg); overflow: hidden; }
.mock__head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.mock__title { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: .95rem; }
.mock__title .i { color: var(--brand); width: 18px; height: 18px; }
.order { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.order__id { font-family: var(--font-latin); font-size: .78rem; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; direction: ltr; }
.order__info strong { display: block; font-size: .9rem; font-weight: 600; }
.order__info small { font-size: .78rem; color: var(--muted); }
.mock__foot { display: flex; align-items: center; gap: 10px; padding: 16px 22px; background: var(--subtle); color: var(--muted); font-size: .875rem; font-weight: 500; }
.mock__foot .i { color: var(--brand); }

.pill { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.pill--live, .pill--new { background: var(--brand-50); color: var(--brand-700); }
.pill--prep { background: #fff6e3; color: #9a6205; }
.pill--done { background: #f0f2f1; color: var(--ink-2); }
.pill--accent { background: rgba(255,180,32,.14); color: var(--accent); font-family: var(--font-latin); direction: ltr; }

.mock--dark { background: var(--dark-2); border-color: rgba(255,255,255,.08); box-shadow: 0 0 0 10px rgba(255,255,255,.03), 0 40px 80px -30px rgba(0,0,0,.6); color: #fff; }
.mock--dark .mock__head { border-color: rgba(255,255,255,.08); }
.mock--dark .mock__title .i { color: var(--accent); }
.route { padding: 22px; display: grid; }
.route__stop { display: flex; gap: 14px; align-items: center; }
.route__stop small { display: block; font-size: .72rem; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .08em; }
html[lang="ar"] .route__stop small { text-transform: none; letter-spacing: 0; font-size: .8rem; }
.route__stop strong { font-size: .95rem; font-weight: 600; }
.route__dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--accent); flex: none; }
.route__dot--end { background: var(--accent); }
.route__line { height: 28px; margin-inline-start: 5px; border-inline-start: 2px dashed rgba(255,255,255,.18); }
.mock__meta { display: flex; gap: 24px; padding: 16px 22px; border-top: 1px solid rgba(255,255,255,.08); color: rgba(255,255,255,.7); font-size: .85rem; }
.mock__meta > span { display: inline-flex; align-items: center; gap: 8px; }
.mock__meta .i { width: 16px; height: 16px; color: rgba(255,255,255,.5); }
.mock__btn { margin: 4px 22px 22px; background: var(--accent); color: var(--ink); text-align: center; padding: 13px; border-radius: 10px; font-weight: 700; font-size: .925rem; }

/* Coming soon */
.soon { display: flex; align-items: center; gap: 24px; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px 36px; background: linear-gradient(90deg, var(--subtle), #fff); }
html[dir="rtl"] .soon { background: linear-gradient(270deg, var(--subtle), #fff); }
.soon__body { display: grid; justify-items: start; }
.soon h3 { margin: 10px 0 .2em; font-size: 1.3rem; }
.soon p { margin: 0; color: var(--muted); }
.soon__tag { background: #fff6e3; color: #9a6205; font-weight: 600; padding: 3px 10px; border-radius: 999px; font-size: .75rem; }

/* FAQ */
.faq { border-bottom: 1px solid var(--line-strong); }
.faq:first-of-type { border-top: 1px solid var(--line-strong); }
.faq summary { cursor: pointer; padding: 24px 0; font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 30px; height: 30px; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--ink-2); background:
  linear-gradient(currentColor, currentColor) center / 11px 1.5px no-repeat,
  linear-gradient(currentColor, currentColor) center / 1.5px 11px no-repeat; transition: transform .2s, background-color .2s; }
.faq summary:hover::after { background-color: #fff; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { padding: 0 0 24px; margin: 0; color: var(--muted); max-width: 640px; }

/* CTA */
.cta { position: relative; overflow: hidden; display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; background: var(--dark); color: #fff; border-radius: 24px; padding: 64px; }
.cta::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(600px 300px at 100% 0%, rgba(5,151,106,.45), transparent 70%); }
html[dir="rtl"] .cta::before { background: radial-gradient(600px 300px at 0% 0%, rgba(5,151,106,.45), transparent 70%); }
.cta > * { position: relative; }
.cta h2 { color: #fff; margin: 0 0 .35em; }
.cta p { margin: 0; color: rgba(255,255,255,.66); font-size: 1.075rem; }
.cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Footer */
.footer { background: var(--dark); color: rgba(255,255,255,.62); padding: 72px 0 32px; font-size: .925rem; }
.footer p { margin: 0; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 48px; }
.footer__brand p { margin-top: 16px; max-width: 280px; }
.footer__col { display: grid; align-content: start; gap: 12px; }
.footer__col h4 { color: #fff; font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; margin: 0 0 6px; }
html[lang="ar"] .footer__col h4 { text-transform: none; letter-spacing: 0; font-size: .95rem; }
.footer__col a { transition: color .15s; justify-self: start; }
.footer__col a:hover { color: #fff; }
.footer__icon-link { display: inline-flex; align-items: center; gap: 8px; }
.footer__icon-link .i { color: rgba(255,255,255,.4); }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.08); font-size: .85rem; color: rgba(255,255,255,.45); }
/* Legacy footer markup (privacy page) */
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer__copy { font-size: .85rem; }
.footer__link { font-size: .9rem; text-decoration: underline; text-underline-offset: 3px; }
.footer__link:hover { color: #fff; }

/* Legal pages */
.legal { padding: 64px 0 112px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1.15; }
.legal h2 { font-size: 1.3rem; margin-top: 2.2em; letter-spacing: -.01em; }
.legal p, .legal li { color: var(--muted); }
.legal ul { padding-inline-start: 1.2em; }
.legal li { margin-bottom: .6em; }
.legal strong { color: var(--ink); }
.legal a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.legal__date { font-size: .9rem; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.legal h2[id] { scroll-margin-top: 96px; }
.legal__toc { margin: 32px 0 8px; padding: 24px 28px; border: 1px solid var(--line); border-radius: var(--r); background: var(--subtle); }
.legal__toc-title { margin: 0 0 12px; font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--ink) !important; }
.legal__toc ol { margin: 0; padding-inline-start: 1.3em; columns: 2; column-gap: 32px; }
.legal__toc li { margin-bottom: .45em; break-inside: avoid; font-size: .95rem; }
.legal__toc a { color: var(--ink-2); text-decoration: none; }
.legal__toc a:hover { color: var(--brand); text-decoration: underline; }
.legal__callout { margin: 24px 0; padding: 22px 26px; border: 1px solid #f3d9a4; border-inline-start: 4px solid var(--accent); border-radius: var(--r); background: #fffaf0; }
.legal__callout-title { margin: 0 0 8px; font-weight: 700; color: #7a4d00 !important; }
.legal__callout ul { margin: 12px 0 0; }
.legal__callout li:last-child { margin-bottom: 0; }
@media (max-width: 560px) { .legal__toc ol { columns: 1; } .legal__toc, .legal__callout { padding: 20px; } }

/* Reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Responsive */
@media (max-width: 1040px) {
  .nav__links { gap: 22px; }
  .split { gap: 56px; }
}
@media (max-width: 960px) {
  .section { padding: 88px 0; }
  .hero { padding: 48px 0 72px; }
  .hero__inner, .split { grid-template-columns: 1fr; gap: 48px; }
  .split--rev > :first-child { order: 0; }
  .values__grid { grid-template-columns: 1fr 1fr; }
  .value { padding: 24px 20px; border-inline-start: 0; }
  .value:nth-child(even) { border-inline-start: 1px solid var(--line); }
  .value:nth-child(n+3) { border-top: 1px solid var(--line); }
  .value:first-child { padding-inline-start: 20px; }
  .value:nth-child(odd) { padding-inline-start: 0; }
  .section__head { grid-template-columns: 1fr; gap: 16px; }
  .section__sub { justify-self: start; }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .step, html[dir="rtl"] .step { padding: 28px 0 0; }
  .grid3 { grid-template-columns: 1fr; }
  .feature { min-height: 0; }
  .tour__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__shot { width: min(100%, 440px); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .nav__links { position: fixed; inset: 68px 0 auto 0; flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 20px 20px; transform: translateY(-120%); transition: transform .3s; z-index: -1; box-shadow: var(--shadow); }
  .nav__links a { padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 1rem; }
  .nav__links.is-open { transform: none; }
  .burger { display: block; }
  .nav.menu-open .burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav.menu-open .burger span:nth-child(2) { opacity: 0; }
  .nav.menu-open .burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
}
@media (max-width: 560px) {
  .container, .narrow { width: calc(100% - 32px); }
  .section { padding: 72px 0; }
  .section--compact { padding: 56px 0; }
  .nav__actions .btn { display: none; }
  .values__grid { grid-template-columns: 1fr; }
  /* Tour becomes story-style segments with the active caption below */
  .tour__list { grid-template-columns: repeat(6, 1fr); gap: 6px; position: relative; padding-bottom: 92px; }
  .tour__tab, .tour__tab:last-child { position: static; padding: 14px 0 0; border: 0; display: flex; flex-direction: column; }
  .tour__tab::before { content: ""; order: -2; display: block; height: 3px; border-radius: 3px; background: var(--line-strong); }
  .tour__bar { position: relative; order: -1; display: block; margin-top: -3px; height: 3px; border-radius: 3px; }
  .tour__n { display: block; text-align: center; padding-top: 8px; font-size: .72rem; }
  .tour__text { display: none; }
  .tour__tab.is-active .tour__text { display: block; position: absolute; inset-inline: 0; top: 64px; text-align: start; }
  .hero__shot, .tour__stage { box-shadow: 0 0 0 6px #fff, 0 0 0 7px var(--line), var(--shadow); border-radius: 20px; }
  .value, .value:nth-child(odd), .value:nth-child(even) { padding: 20px 0; border-inline-start: 0; }
  .value + .value { border-top: 1px solid var(--line); }
  .store { flex: 1; min-width: 0; padding: 0 14px; }
  .feature { padding: 28px; }
  .mock { box-shadow: 0 0 0 6px var(--subtle), var(--shadow); }
  .mock--dark { box-shadow: 0 0 0 6px rgba(255,255,255,.03); }
  .order { padding: 14px 16px; gap: 12px; }
  .soon { flex-direction: column; align-items: flex-start; padding: 28px; }
  .cta { padding: 40px 28px; border-radius: 20px; }
  .cta__actions, .cta__actions .btn { width: 100%; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
}
