/* Piezio landing — "Salvage Marketplace" design system.
   Every colour, radius and font is a token below; no hex values elsewhere. */

@font-face { font-family: "Archivo"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/archivo-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Archivo"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/archivo-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Archivo"; font-weight: 800; font-style: normal; font-display: swap; src: url("fonts/archivo-latin-800-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/ibm-plex-mono-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cairo"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/cairo-arabic-400-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Cairo"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/cairo-arabic-600-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Cairo"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/cairo-arabic-700-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Cairo"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/cairo-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cairo"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/cairo-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cairo"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/cairo-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  /* Neutrals — warm concrete */
  --c-ground: #F3F1EC;
  --c-sunken: #E9E6DF;
  --c-line: #D8D4CB;
  --c-field-border: #B9B4A8;
  --c-field: #EFECE6;
  --c-tray: #F6F4EF;
  --c-surface: #FFFFFF;
  --c-ink: #181A1D;
  --c-text-2: #4A4D52;
  --c-muted: #62656A;
  --c-dark: #181A1D;
  --c-dark-2: #25282B;
  --c-dark-3: #34373B;
  --c-on-dark-muted: #CFCBC1;

  /* Action — ember / rust */
  --c-ember: #FF7A3D;
  --c-ember-press: #E8601F;
  --c-rust: #C2410C;
  --c-rust-press: #9A3412;
  --c-rust-tint: #FCE9DD;
  --c-rust-tint-border: #F2C4A8;
  --c-best: #FFF1E8;
  --c-best-soft: #FFFAF6;
  --c-ember-tint: #FFE8DA;

  /* Secondary — steel (Garage Ledger, info, focus) */
  --c-steel: #1E5F85;
  --c-steel-tint: #DCEBF4;
  --c-steel-border: #9CC1D8;
  --c-steel-wash: #F2F8FB;

  /* Rare accents + status */
  --c-amber: #F59E0B;
  --c-violet: #5B4B8A;
  --c-success: #1F6B3A;
  --c-success-tint: #E3F3E7;
  --c-warning-tint: #FDF0D2;
  --c-error: #B3261E;
  --c-error-tint: #FBE5E3;

  /* Shape */
  --r-xs: 6px;
  --r-sm: 8px;
  --r-btn: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-pill: 999px;

  /* Spacing — 4/8px grid */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;

  /* Type */
  --font-head: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --fs-hero: clamp(2.25rem, 1.35rem + 3.9vw, 4rem);
  --fs-display: clamp(1.625rem, 1.15rem + 2.1vw, 2.75rem);
  --fs-mega: clamp(2.75rem, 1.6rem + 5.2vw, 5rem);
  --fs-h3: 1.125rem;
  --fs-lead: 1.125rem;
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-caption: 0.75rem;

  --shadow-float: 0 10px 28px rgb(24 26 29 / 0.16);
  --shadow-soft: 0 1px 2px rgb(24 26 29 / 0.06);
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --container: 1180px;
  --gutter: 16px;
  --header-offset: 96px;
}

:root:lang(ar) {
  --font-head: "Cairo", "Segoe UI", Tahoma, sans-serif;
  --font-body: "Cairo", "Segoe UI", Tahoma, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-offset);
}

body {
  margin: 0;
  background: var(--c-ground);
  color: var(--c-ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

:lang(ar) body { line-height: 1.8; }

img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--c-rust); text-underline-offset: 3px; }
a:hover { color: var(--c-rust-press); }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--c-steel); outline-offset: 2px; border-radius: var(--r-xs); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  inset-inline-start: var(--s-4);
  inset-block-start: -80px;
  z-index: 100;
  padding: var(--s-3) var(--s-4);
  background: var(--c-ink);
  color: var(--c-surface);
  border-radius: var(--r-btn);
}
.skip-link:focus { inset-block-start: var(--s-3); color: var(--c-surface); }

.icon { width: 1.5rem; height: 1.5rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon--sm { width: 1.125rem; height: 1.125rem; }
[dir="rtl"] .icon--flip { scale: -1 1; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }

h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.12; letter-spacing: -0.015em; text-wrap: balance; }
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3 { letter-spacing: 0; line-height: 1.4; }
h3 { font-size: var(--fs-h3); }
p { text-wrap: pretty; }

.mono, .m-price { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-weight: 600; }
.m-price { white-space: nowrap; direction: ltr; unicode-bidi: isolate; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 52px;
  padding: 0 var(--s-5);
  border: 0;
  border-radius: var(--r-btn);
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s ease;
}
.btn--primary { background: var(--c-ember); color: var(--c-ink); }
.btn--primary:hover { background: var(--c-ember-press); color: var(--c-ink); }
.btn--small { min-height: 40px; padding: 0 var(--s-4); font-size: var(--fs-small); }

/* ---------- Chips, tags, badges ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  min-width: 44px;
  padding: 0 var(--s-3);
  border: 0;
  border-radius: var(--r-pill);
  background: var(--c-field);
  color: var(--c-ink);
  font-size: var(--fs-small);
  font-weight: 600;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.chip--light { background: var(--c-surface); }
.chip[aria-pressed="true"] { background: var(--c-dark); color: var(--c-surface); }
.on-dark .chip { background: var(--c-dark-2); color: var(--c-surface); }
.on-dark .chip[aria-pressed="true"] { background: var(--c-ember); color: var(--c-ink); }

.tag {
  display: inline-block;
  padding: 2px var(--s-2);
  border-radius: var(--r-xs);
  background: var(--c-field);
  color: var(--c-text-2);
  font-size: var(--fs-caption);
  font-weight: 600;
  white-space: nowrap;
}
.tag--steel { background: var(--c-steel-tint); color: var(--c-steel); }
.tag--rust { background: var(--c-rust-tint); color: var(--c-rust-press); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  min-height: 28px;
  padding-inline: var(--s-2) var(--s-3);
  border-radius: var(--r-pill);
  font-size: var(--fs-caption);
  font-weight: 600;
  white-space: nowrap;
}
.badge--pending { background: var(--c-warning-tint); color: var(--c-ink); }
.badge--ok { background: var(--c-success-tint); color: var(--c-success); }
.badge--partial { background: var(--c-steel-tint); color: var(--c-steel); }
.badge--bad { background: var(--c-error-tint); color: var(--c-error); }
.badge--muted { background: var(--c-field); color: var(--c-text-2); }
.badge--best { background: var(--c-rust); color: var(--c-surface); }

.icon-tile {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  background: var(--c-rust-tint);
  color: var(--c-rust);
}
.icon-tile--steel { background: var(--c-steel-tint); color: var(--c-steel); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: var(--s-3); z-index: 50; margin-block-start: var(--s-3); }
.site-header__bar {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 64px;
  padding: var(--s-2);
  padding-inline: var(--s-4) var(--s-2);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-float);
}
.logo { display: inline-flex; align-items: center; gap: var(--s-2); flex: none; direction: ltr; }
.logo__mark { width: auto; height: 30px; }
.logo__word { width: auto; height: 20px; }
@media (max-width: 379px) { .logo__word { display: none; } }
.site-nav { display: none; margin-inline-start: auto; }
.site-nav ul { display: flex; gap: var(--s-1); }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s-3); border-radius: var(--r-btn); color: var(--c-text-2); font-weight: 500; text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="true"] { color: var(--c-rust); background: var(--c-rust-tint); }
.lang-switch { display: flex; gap: var(--s-1); margin-inline-start: auto; }
.header-cta { display: none; }
.menu-toggle { display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none; border: 0; border-radius: var(--r-btn); background: var(--c-field); }
.menu-toggle .icon--close { display: none; }
.menu-toggle[aria-expanded="true"] .icon--open { display: none; }
.menu-toggle[aria-expanded="true"] .icon--close { display: block; }
.mobile-menu {
  margin-block-start: var(--s-2);
  padding: var(--s-3);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-float);
}
.mobile-menu ul { display: grid; }
.mobile-menu a { display: flex; align-items: center; min-height: 48px; padding: 0 var(--s-3); border-radius: var(--r-btn); color: var(--c-ink); font-weight: 500; text-decoration: none; }
.mobile-menu a:hover { background: var(--c-field); }
.mobile-menu .btn { justify-content: center; margin-block-start: var(--s-2); }

/* ---------- Hero ---------- */
.hero { padding-block: var(--s-6) var(--s-7); }
.hero__grid { display: grid; gap: var(--s-6); align-items: center; }
.hero__copy { display: grid; gap: var(--s-5); justify-items: start; min-width: 0; }
.hero h1 { font-size: var(--fs-hero); font-weight: 800; line-height: 1.02; letter-spacing: -0.03em; }
:lang(ar) .hero h1 { line-height: 1.35; letter-spacing: 0; }
.hero__sub { font-size: var(--fs-lead); color: var(--c-text-2); max-width: 34rem; }
.hero__points { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); font-size: var(--fs-small); font-weight: 500; }
.hero__points li { display: inline-flex; align-items: center; gap: var(--s-2); }
.hero__points .icon { color: var(--c-success); stroke-width: 2.4; }
.hero__seller { font-weight: 600; }

.store-row { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.store {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  min-height: 60px;
  padding-inline: var(--s-3) var(--s-4);
  border-radius: var(--r-btn);
  background: var(--c-dark);
  color: var(--c-surface);
  text-decoration: none;
  line-height: 1.15;
  transition: background-color 0.15s ease;
}
.store:hover { background: var(--c-dark-3); color: var(--c-surface); }
.store .icon { width: 1.75rem; height: 1.75rem; color: var(--c-ember); }
.store small { display: block; font-size: var(--fs-caption); color: var(--c-on-dark-muted); }
.store strong { display: block; font-family: var(--font-head); font-size: 1.125rem; font-weight: 700; }
:lang(ar) .store { line-height: 1.4; }

/* The stage: a flat ember slab the phone sits on. */
.stage {
  display: grid;
  gap: var(--s-4);
  justify-items: center;
  padding: var(--s-5) var(--s-4);
  background: var(--c-ember);
  border-radius: var(--r-lg);
  min-width: 0;
}
.picker { display: none; gap: var(--s-2); justify-items: center; }
.js .picker { display: grid; }
.picker__label { font-size: var(--fs-small); font-weight: 600; }
.picker__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-2); }
.stage__phone { position: relative; width: min(100%, 300px); }
.stage__note { font-size: var(--fs-caption); font-weight: 500; }

.toast {
  position: absolute;
  z-index: 2;
  inset-block-start: 48px;
  inset-inline-start: -10px;
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 40px;
  padding: 0 var(--s-3);
  background: var(--c-surface);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-float);
  font-size: var(--fs-small);
  font-weight: 600;
}
.toast .icon { color: var(--c-rust); }

/* ---------- Phone mockups ---------- */
.phone {
  position: relative;
  width: min(100%, 300px);
  min-height: 560px;
  margin-inline: auto;
  padding: var(--s-2) var(--s-3) 104px;
  background: var(--c-ground);
  border: 8px solid var(--c-ink);
  border-radius: 40px;
  overflow: hidden;
  display: grid;
  gap: var(--s-3);
  align-content: start;
  text-align: start;
}
.phone__status { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; font-size: var(--fs-caption); padding-inline: var(--s-2); }
.phone__notch { width: 72px; height: 20px; border-radius: var(--r-pill); background: var(--c-ink); }
.phone__signal { justify-self: end; width: 18px; height: 10px; border-radius: 3px; border: 2px solid var(--c-ink); }
.phone__title { font-family: var(--font-head); font-weight: 700; font-size: 1.125rem; line-height: 1.2; }
.phone__head { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: var(--s-2); padding-block: var(--s-2); }
.phone__head img { width: 32px; height: 32px; border-radius: var(--r-sm); }
.phone__round { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--c-surface); color: var(--c-rust); }
.phone__round--me { background: var(--c-ember); color: var(--c-ink); font-size: 0.6875rem; font-weight: 600; }
.phone__bar { display: grid; grid-template-columns: 24px 1fr 24px; align-items: center; gap: var(--s-2); padding-block: var(--s-2); }
.phone__bar .phone__title { text-align: center; font-size: 0.9375rem; white-space: nowrap; }
.phone__head .phone__title { font-size: 1rem; }
.phone__vehicle { display: flex; align-items: center; gap: var(--s-2); font-size: var(--fs-small); font-weight: 600; }
.phone__tile { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: var(--r-btn); background: var(--c-rust-tint); color: var(--c-rust); }
.pill-year { margin-inline-start: auto; padding: 2px var(--s-3); border-radius: var(--r-pill); background: var(--c-rust-tint); color: var(--c-rust-press); font-family: var(--font-mono); font-size: var(--fs-caption); font-weight: 600; }
.phone__count { display: inline-flex; align-items: center; gap: var(--s-2); font-size: var(--fs-small); font-weight: 600; color: var(--c-rust-press); }
.phone__gap { font-size: var(--fs-small); color: var(--c-text-2); text-align: center; }
.phone__gap .m-price { color: var(--c-ink); }
.demo-set { display: grid; gap: var(--s-2); align-content: start; }
.stage .demo-set { padding-block-start: 44px; }
.offers { display: grid; gap: var(--s-2); margin-block: var(--s-1); }
.phone__nav {
  position: absolute;
  inset-inline: var(--s-3);
  inset-block-end: var(--s-3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 56px;
  padding-inline: var(--s-2);
  background: var(--c-surface);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-float);
  color: var(--c-text-2);
}
.phone__tab { display: grid; place-items: center; width: 48px; height: 40px; border-radius: var(--r-pill); }
.phone__tab.is-active { background: var(--c-rust-tint); color: var(--c-rust); }
.phone__plus { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--c-ember); color: var(--c-ink); translate: 0 -18px; box-shadow: 0 0 0 6px var(--c-ground); }

.m-card { position: relative; display: grid; gap: var(--s-1); padding: var(--s-3); background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 18px; box-shadow: var(--shadow-soft); }
.m-card--best { background: var(--c-best); border-color: var(--c-rust-tint-border); padding-block-start: var(--s-5); margin-block-start: var(--s-3); }
.offer__flag { position: absolute; inset-block-start: -14px; inset-inline-start: var(--s-3); }
.m-card__row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); }
.m-card__name { font-size: var(--fs-small); font-weight: 600; }
.m-card__meta { font-size: var(--fs-caption); color: var(--c-muted); }
.m-card .m-price { font-size: 1.0625rem; }
.m-card > .btn { margin-block-start: var(--s-2); }
.m-photo { aspect-ratio: 1; border-radius: var(--r-sm); background: var(--c-sunken); display: grid; place-items: center; align-content: center; gap: 2px; color: var(--c-muted); font-size: var(--fs-caption); font-weight: 600; }
.m-photo--dashed { background: transparent; border: 2px dashed var(--c-field-border); color: var(--c-text-2); }
.m-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-2); }

.m-ledger { padding: var(--s-4); background: var(--c-steel-wash); border: 2px solid var(--c-steel); border-radius: var(--r-md); display: grid; gap: var(--s-2); }
.m-ledger__label { font-size: var(--fs-caption); font-weight: 600; color: var(--c-steel); display: inline-flex; align-items: center; gap: var(--s-2); }
.m-ledger__bal { font-family: var(--font-mono); font-weight: 600; font-size: 1.625rem; font-variant-numeric: tabular-nums; white-space: nowrap; direction: ltr; unicode-bidi: isolate; justify-self: start; }
.m-tx { display: flex; justify-content: space-between; align-items: center; gap: var(--s-2); font-size: var(--fs-small); padding-block: var(--s-2); border-block-end: 1px solid var(--c-line); }
.m-tx:last-child { border: 0; }
.m-tx .neg { color: var(--c-error); }
.m-tx .pos { color: var(--c-success); }

/* ---------- Flow rail ---------- */
.rail { background: var(--c-dark); color: var(--c-surface); padding-block: var(--s-5); }
.rail__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-4) var(--s-3); counter-reset: rail; }
.rail__list li {
  position: relative;
  display: grid;
  gap: var(--s-2);
  padding-block-start: var(--s-4);
  border-block-start: 2px solid var(--c-dark-3);
  font-size: var(--fs-small);
  font-weight: 600;
}
.rail__list li::before {
  counter-increment: rail;
  content: counter(rail);
  position: absolute;
  inset-block-start: -13px;
  inset-inline-start: 0;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: var(--r-xs);
  background: var(--c-ember);
  color: var(--c-ink);
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
}
.rail__list .icon { color: var(--c-ember); }

/* ---------- Sections ---------- */
.section { padding-block: var(--s-8); }
.section--tray { background: var(--c-tray); border-block: 1px solid var(--c-line); }
.section__head { display: grid; gap: var(--s-3); margin-block-end: var(--s-6); max-width: 44rem; }
.section__head h2 { font-size: var(--fs-display); font-weight: 800; letter-spacing: -0.025em; }
:lang(ar) .section__head h2 { letter-spacing: 0; }
.section__head p { color: var(--c-text-2); font-size: var(--fs-lead); }

/* Before / with Piezio */
.versus { display: grid; gap: var(--s-3); }
.versus__side { display: grid; gap: var(--s-3); align-content: start; padding: var(--s-5); border-radius: var(--r-lg); }
.versus__side--old { background: var(--c-sunken); color: var(--c-text-2); }
.versus__side--new { background: var(--c-ember); color: var(--c-ink); }
.versus__label { font-size: var(--fs-small); font-weight: 600; }
.versus__big { font-family: var(--font-head); font-weight: 800; font-size: var(--fs-mega); line-height: 0.95; letter-spacing: -0.04em; margin-block-end: var(--s-3); }
:lang(ar) .versus__big { line-height: 1.3; letter-spacing: 0; }
.versus__side--old .versus__big { color: var(--c-muted); text-decoration: line-through; text-decoration-thickness: 0.07em; }
.versus__side li { display: flex; gap: var(--s-3); align-items: flex-start; padding-block: var(--s-2); font-weight: 500; }
.versus__side li .icon { margin-block-start: 1px; }
.versus__side--old li .icon { color: var(--c-error); }

/* How it works */
.how { display: grid; gap: var(--s-6); counter-reset: how; }
.how__item { display: grid; gap: var(--s-2); align-content: start; }
.how__item h3 { display: flex; align-items: center; gap: var(--s-3); font-size: 1.375rem; margin-block-start: var(--s-3); }
.how__item h3::before {
  counter-increment: how;
  content: counter(how);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: var(--r-sm);
  background: var(--c-dark);
  color: var(--c-surface);
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  letter-spacing: 0;
}
.how__item p { color: var(--c-text-2); }
.how__visual { display: grid; gap: var(--s-2); align-content: center; min-height: 216px; padding: var(--s-4); background: var(--c-sunken); border: 1px solid var(--c-line); border-radius: var(--r-lg); }
.v-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); min-height: 44px; padding: var(--s-2) var(--s-3); background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-btn); font-size: var(--fs-small); font-weight: 600; }
.v-row--best { background: var(--c-best); border-color: var(--c-rust-tint-border); }
.v-row .mono { font-size: var(--fs-small); }
.v-track { display: grid; gap: var(--s-1); padding: var(--s-3) var(--s-4); background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-md); }
.v-track li { display: flex; align-items: center; gap: var(--s-3); min-height: 30px; font-size: var(--fs-small); color: var(--c-text-2); }
.v-track .is-done .icon { color: var(--c-success); }
.v-track .is-current { font-weight: 600; color: var(--c-ink); }
.v-track .is-current .icon { color: var(--c-rust); }

/* Role tabs */
.tabs { display: flex; gap: var(--s-1); padding: var(--s-1); background: var(--c-sunken); border-radius: var(--r-md); width: fit-content; max-width: 100%; overflow-x: auto; }
.tab { min-height: 48px; padding: 0 var(--s-5); border: 0; border-radius: var(--r-btn); background: transparent; color: var(--c-text-2); font-weight: 600; white-space: nowrap; transition: background-color 0.15s ease, color 0.15s ease; }
.tab:hover { color: var(--c-ink); }
.tab[aria-selected="true"] { background: var(--c-dark); color: var(--c-surface); }
.tabpanel { margin-block-start: var(--s-6); display: grid; gap: var(--s-6); align-items: start; }
.tabpanel__cta { margin-block-start: var(--s-5); }

.steps { display: grid; counter-reset: step; }
.step { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: var(--s-4); padding-block-end: var(--s-5); }
.step::before { counter-increment: step; content: counter(step); position: relative; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-btn); background: var(--c-surface); border: 2px solid var(--c-ink); font-family: var(--font-mono); font-weight: 600; }
.step:not(:last-child)::after { content: ""; position: absolute; inset-block: 40px 0; inset-inline-start: 19px; width: 2px; background: var(--c-line); }
.step h3 { padding-block-start: var(--s-2); }
.step p { color: var(--c-text-2); margin-block-start: var(--s-1); max-width: 34rem; }
.status-groups { display: grid; gap: var(--s-4); padding: var(--s-4); background: var(--c-tray); border: 1px solid var(--c-line); border-radius: var(--r-md); }
.status-group { display: grid; gap: var(--s-2); }
.status-group__label { font-size: var(--fs-small); font-weight: 600; color: var(--c-text-2); }
.status-group ul { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.phone-wrap { display: grid; place-items: center; padding: var(--s-5) var(--s-4); background: var(--c-sunken); border-radius: var(--r-lg); }

/* Features */
.features { display: grid; gap: var(--s-6) var(--s-5); }
.feature { display: grid; gap: var(--s-3); align-content: start; padding-block-start: var(--s-4); border-block-start: 2px solid var(--c-ink); }
.feature p { color: var(--c-text-2); }
.feature--ledger { border-color: var(--c-steel); }

/* Payments */
.pay { display: grid; gap: var(--s-4); }
.pay__card { display: grid; gap: var(--s-4); padding: var(--s-5); background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg); align-content: start; }
.pay__card--ledger { background: var(--c-steel-wash); border: 2px solid var(--c-steel); }
.pay__head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); }
.pay__head h3 { font-size: 1.375rem; }
.pay__fig { color: var(--c-text-2); font-size: var(--fs-small); }
.pay__fig .m-price { display: block; width: fit-content; font-size: clamp(2rem, 1.4rem + 2.4vw, 2.75rem); line-height: 1.1; color: var(--c-ink); }
.pay__card--ledger .pay__fig .m-price { color: var(--c-steel); }
.pay__card li { display: flex; gap: var(--s-3); padding-block: var(--s-2); align-items: flex-start; }
.pay__card li .icon { color: var(--c-success); margin-block-start: 1px; }
.pay__card--ledger li .icon { color: var(--c-steel); }

/* Trust band */
.band { background: var(--c-dark); color: var(--c-surface); padding-block: var(--s-7); }
.band h2 { font-size: var(--fs-display); font-weight: 800; margin-block-end: var(--s-5); }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-5); }
.stat { display: grid; gap: var(--s-1); padding-block-start: var(--s-3); border-block-start: 2px solid var(--c-dark-3); }
.stat__n { font-family: var(--font-mono); font-weight: 600; font-size: clamp(2rem, 1.3rem + 2.6vw, 3rem); color: var(--c-ember); font-variant-numeric: tabular-nums; line-height: 1.1; unicode-bidi: isolate; }
.stat__l { color: var(--c-on-dark-muted); font-size: var(--fs-small); }

/* FAQ */
.faq-layout { display: grid; gap: var(--s-2); align-items: start; }
.faq { display: grid; }
.faq details { border-block-start: 1px solid var(--c-line); }
.faq details:last-child { border-block-end: 1px solid var(--c-line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); min-height: 64px; padding-block: var(--s-3); font-family: var(--font-head); font-size: var(--fs-h3); font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: rotate 0.2s ease; color: var(--c-rust); }
.faq details[open] summary .icon { rotate: 180deg; }
.faq details p { padding-block-end: var(--s-5); color: var(--c-text-2); max-width: 40rem; }

/* Final CTA */
.cta { padding-block: var(--s-4) var(--s-8); }
.cta__block { display: grid; gap: var(--s-6); padding: var(--s-6) var(--s-5); background: var(--c-ember); color: var(--c-ink); border-radius: var(--r-lg); align-items: center; }
.cta__copy { display: grid; gap: var(--s-4); justify-items: start; }
.app-icon { width: 88px; height: 88px; border-radius: var(--r-lg); box-shadow: var(--shadow-float); }
.cta__copy h2 { font-size: var(--fs-hero); font-weight: 800; line-height: 1.02; letter-spacing: -0.03em; }
:lang(ar) .app-icon { width: 88px; height: 88px; border-radius: var(--r-lg); box-shadow: var(--shadow-float); }
.cta__copy h2 { line-height: 1.35; letter-spacing: 0; }
.cta__copy p { font-size: var(--fs-lead); max-width: 32rem; }
.cta__plus { display: flex; align-items: center; gap: var(--s-4); font-weight: 600; max-width: 22rem; }
.plus-tile { display: grid; place-items: center; flex: none; width: 96px; height: 96px; border-radius: var(--r-lg); background: var(--c-dark); color: var(--c-ember); box-shadow: var(--shadow-float); }
.plus-tile .icon { width: 56%; height: 56%; stroke-width: 2.4; }
.cta__seller { display: grid; gap: var(--s-4); margin-block-start: var(--s-3); padding: var(--s-5); background: var(--c-dark); color: var(--c-surface); border-radius: var(--r-lg); align-items: center; }
.cta__seller h3 { font-size: 1.375rem; }
.cta__seller p { color: var(--c-on-dark-muted); margin-block-start: var(--s-1); }
.cta__seller .btn { justify-self: start; }

/* Footer */
.site-footer { background: var(--c-dark); color: var(--c-surface); padding-block: var(--s-7) calc(var(--s-9) + env(safe-area-inset-bottom)); }
.site-footer a { color: var(--c-surface); }
.site-footer a:hover { color: var(--c-ember); }
.footer__grid { display: grid; gap: var(--s-6); }
.footer__tag { color: var(--c-on-dark-muted); margin-block-start: var(--s-3); max-width: 22rem; }
.footer__title { font-family: var(--font-body); font-size: var(--fs-small); font-weight: 600; letter-spacing: 0; color: var(--c-on-dark-muted); margin-block: 0 var(--s-3); }
.footer__list + .footer__title { margin-block-start: var(--s-5); }
.footer__list { display: grid; gap: var(--s-2); }
.footer__list a { display: inline-flex; min-height: 32px; align-items: center; }
.site-footer .lang-switch { margin-inline-start: 0; }
.footer__bottom { margin-block-start: var(--s-6); padding-block-start: var(--s-4); border-block-start: 1px solid var(--c-dark-3); color: var(--c-on-dark-muted); font-size: var(--fs-small); }
.site-footer .logo__mark { height: 40px; }
.site-footer .logo__word { height: 28px; }

/* ---------- Mobile install bar ---------- */
.install-bar {
  position: fixed;
  z-index: 60;
  inset-inline: var(--s-3);
  inset-block-end: calc(var(--s-3) + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-2);
  padding-inline-start: var(--s-3);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-float);
  translate: 0 160%;
  visibility: hidden;
}
.install-bar[data-visible="true"] { translate: 0 0; visibility: visible; }
.install-bar__logo { width: 44px; height: 44px; flex: none; border-radius: var(--r-btn); }
.install-bar p { display: grid; line-height: 1.25; margin-inline-end: auto; min-width: 0; }
.install-bar strong { font-family: var(--font-head); font-weight: 800; }
.install-bar p span { font-size: var(--fs-caption); color: var(--c-text-2); }
.install-bar .btn { min-height: 44px; padding: 0 var(--s-5); }

/* ---------- Motion: one sequence, the offers arriving in the hero ---------- */
@media (prefers-reduced-motion: no-preference) {
  .install-bar { transition: translate 0.3s var(--ease-out), visibility 0.3s; }

  .tabpanel:not([hidden]) { animation: rise 0.3s var(--ease-out) both; }

  .stage .toast { animation: drop 0.5s var(--ease-out) 0.25s both; }
  .stage .demo-set:not([hidden]) .phone__count { animation: rise 0.4s var(--ease-out) 0.5s both; }
  .stage .demo-set:not([hidden]) .offer { animation: rise 0.5s var(--ease-out) both; }
  .stage .demo-set:not([hidden]) .offer:nth-child(1) { animation-delay: 0.75s; }
  .stage .demo-set:not([hidden]) .offer:nth-child(2) { animation-delay: 1.05s; }
  .stage .demo-set:not([hidden]) .offer:nth-child(3) { animation-delay: 1.35s; }
  .stage .demo-set:not([hidden]) .offer__flag { animation: stamp 0.35s var(--ease-out) 1.9s both; }
  .stage .demo-set:not([hidden]) .phone__gap { animation: rise 0.4s var(--ease-out) 2.2s both; }
}

@keyframes rise { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }
@keyframes drop { from { opacity: 0; translate: 0 -12px; } to { opacity: 1; translate: 0 0; } }
@keyframes stamp { from { opacity: 0; scale: 1.25; } to { opacity: 1; scale: 1; } }

/* ---------- Breakpoints ---------- */
@media (min-width: 640px) {
  :root { --gutter: 24px; }
  .header-cta { display: inline-flex; }
  .logo__mark { height: 34px; }
  .logo__word { height: 23px; }
  .store-row { gap: var(--s-3); }
  .store { padding-inline: var(--s-4) var(--s-5); }
  .stage { padding: var(--s-6); }
  .toast { inset-inline-start: -40px; }
  .rail__list { grid-template-columns: repeat(3, 1fr); }
  .versus { grid-template-columns: repeat(2, 1fr); }
  .versus__side { padding: var(--s-6); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .pay { grid-template-columns: repeat(2, 1fr); }
  .pay__card { padding: var(--s-6); }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .cta__block { padding: var(--s-7); }
  .cta__seller { grid-template-columns: 1fr auto; padding: var(--s-6) var(--s-7); }
  .footer__grid { grid-template-columns: 2fr 1fr 1fr; }
}

@media (min-width: 1024px) {
  .section { padding-block: var(--s-9); }
  .site-nav { display: block; }
  .lang-switch { margin-inline-start: var(--s-2); }
  .site-header__bar { gap: var(--s-3); }
  .menu-toggle, .mobile-menu, .install-bar { display: none; }
  .hero { padding-block: var(--s-7) var(--s-8); }
  .hero__grid { grid-template-columns: 1.15fr 0.85fr; gap: var(--s-7); }
  .rail { padding-block: var(--s-6); }
  .rail__list { grid-template-columns: repeat(6, 1fr); gap: 0; }
  .rail__list li { padding-inline-end: var(--s-4); }
  .how { grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
  .how__visual { min-height: 248px; }
  .tabpanel { grid-template-columns: 1.15fr 0.85fr; gap: var(--s-8); }
  .phone-wrap { position: sticky; top: var(--header-offset); padding-block: var(--s-6); }
  .features { grid-template-columns: repeat(3, 1fr); gap: var(--s-7) var(--s-6); }
  .faq-layout { grid-template-columns: 0.8fr 1.2fr; gap: var(--s-7); }
  .faq-layout .section__head { position: sticky; top: var(--header-offset); margin-block-end: 0; }
  .cta__block { grid-template-columns: 1.4fr 0.6fr; padding: var(--s-8); }
  .cta__plus { flex-direction: column; align-items: flex-start; }
  .plus-tile { width: 160px; height: 160px; border-radius: 36px; }
  .site-footer { padding-block-end: var(--s-5); }
}

@media (min-width: 1280px) {
  :root { --gutter: 32px; }
}

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