/* getsafi.me home, Safi 2.0 (brand guidelines v2.3). The page is framed like the app: a dark
   green-black frame, light canvases set into it with 24px corners, emerald as the brand, and every
   cost in its own fixed hue. The legal pages keep styles.css. Logical properties only. */

:root {
  --frame: #0c110f;
  --frame-2: #17201c;
  --frame-3: #223029;
  --f-ink: #eef6f2;
  --f-ink-2: #9eada6;
  --f-line: rgb(238 246 242 / 0.08);
  --f-line-strong: rgb(238 246 242 / 0.4);
  --canvas: #fafcfb;
  --surface: #eef3f0;
  --surface-2: #e2e9e5;
  --elevated: #ffffff;
  --ink: #0f1512;
  --ink-2: #4a5550;
  --ink-3: #808a85;
  --line: rgb(15 21 18 / 0.09);
  --line-strong: rgb(15 21 18 / 0.48);
  --brand: #1fae6a;
  --brand-lt: #5fe0a0;
  --focus: #0a7d44;
  --profit: #08793d;
  --loss: #c62d2a;
  --c-goods: #3730c0;
  --c-fees: #8452c8;
  --c-shipping: #f5b83d;
  --c-refunds: #e0609f;
  --c-ads: #f0602a;
  --c-fixed: #2f4246;
  --c-net: #1fae6a;
  --settle: cubic-bezier(0.16, 1, 0.3, 1);
  --r-canvas: clamp(20px, 2.4vw, 32px);
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1200px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--frame);
  color: var(--f-ink);
  font-family: "Inter", "Noto Sans Arabic", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
html[lang="ar"] body { font-family: "Noto Sans Arabic", "Inter", system-ui, sans-serif; line-height: 1.75; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
.num { font-variant-numeric: tabular-nums lining-nums; direction: ltr; unicode-bidi: isolate; }
.visually-hidden {
  position: absolute !important; inline-size: 1px; block-size: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
:focus-visible { outline: 2px solid var(--brand-lt); outline-offset: 3px; border-radius: 6px; }
.canvas :focus-visible { outline-color: var(--focus); }

.wrap { inline-size: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

/* ---------- The mark ---------- */
.mark {
  --s: 32px;
  inline-size: var(--s); block-size: var(--s); border-radius: 30%;
  display: inline-grid; place-items: center; position: relative; flex: none;
  background: var(--f-ink); color: var(--frame);
  font-family: "Noto Sans Arabic", sans-serif; font-weight: 700; font-size: calc(var(--s) * 0.5); line-height: 1;
  padding-block-end: calc(var(--s) * 0.08);
}
.mark::after {
  content: ""; position: absolute; inset-block-end: 16%; inset-inline: 30%;
  block-size: 2px; border-radius: 2px; background: var(--brand);
}
.canvas .mark, .mark.ink { background: var(--ink); color: var(--canvas); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-block-size: 44px; padding-inline: 20px; border-radius: 999px; border: 0;
  font: inherit; font-weight: 600; font-size: 0.9375rem; text-decoration: none; cursor: pointer;
  transition: transform 160ms var(--settle), background-color 160ms var(--settle), box-shadow 160ms var(--settle);
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-light { background: var(--f-ink); color: var(--frame); box-shadow: inset 0 -2px 0 rgb(15 21 18 / 0.18); }
.btn-light:hover { background: #ffffff; }
.btn-brand {
  background: var(--brand); color: #04140b;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.25), inset 0 -2px 0 rgb(0 0 0 / 0.15), 0 8px 24px -8px rgb(31 174 106 / 0.6);
}
.btn-brand:hover { background: #26c078; }
.btn-ghost { background: transparent; color: var(--f-ink-2); padding-inline: 12px; }
.btn-ghost:hover { color: var(--f-ink); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* ---------- Header ---------- */
.head {
  position: sticky; inset-block-start: 0; z-index: 50;
  background: rgb(12 17 15 / 0); border-block-end: 1px solid transparent;
  transition: background-color 240ms var(--settle), border-color 240ms var(--settle);
}
.head.is-stuck { background: rgb(12 17 15 / 0.92); border-block-end-color: var(--f-line); }
@supports (backdrop-filter: blur(1px)) { .head.is-stuck { backdrop-filter: saturate(1.4) blur(12px); } }
.head .wrap { display: flex; align-items: center; gap: 24px; min-block-size: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 1.1875rem; letter-spacing: -0.01em; }
html[lang="ar"] .brand { letter-spacing: 0; }
.head nav { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.head nav .links { display: flex; gap: 4px; margin-inline-end: 12px; }
.head nav .links a, .head .lang {
  color: var(--f-ink-2); text-decoration: none; font-size: 0.9375rem; padding: 10px 12px; border-radius: 999px;
  transition: color 160ms, background-color 160ms;
}
.head nav .links a:hover, .head .lang:hover { color: var(--f-ink); background: var(--frame-2); }
@media (max-width: 860px) { .head nav .links { display: none; } }
@media (max-width: 420px) { .head .btn { padding-inline: 14px; font-size: 0.875rem; } .head .wrap { gap: 8px; } }

/* ---------- Hero ---------- */
.hero { position: relative; z-index: 2; padding-block: clamp(40px, 7vw, 88px) 0; isolation: isolate; }
.hero::before {
  /* the emerald light behind the canvas, drifting slowly */
  content: ""; position: absolute; z-index: -1; inset-inline: -10%; inset-block-start: 30%; block-size: 70%;
  background:
    radial-gradient(40% 50% at 30% 60%, rgb(31 174 106 / 0.28), transparent 70%),
    radial-gradient(35% 45% at 75% 40%, rgb(95 224 160 / 0.14), transparent 70%);
  filter: blur(20px);
  animation: drift 18s var(--settle) infinite alternate;
}
@keyframes drift { from { transform: translate3d(-3%, 0, 0) scale(1); } to { transform: translate3d(3%, -4%, 0) scale(1.08); } }
.hero-copy { max-inline-size: 760px; }
.eyebrow-pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 8px; border-radius: 999px;
  background: var(--frame-2); border: 1px solid var(--f-line); color: var(--f-ink-2); font-size: 0.875rem;
}
html[dir="rtl"] .eyebrow-pill { padding: 6px 8px 6px 14px; }
.eyebrow-pill img { block-size: 18px; inline-size: auto; filter: brightness(0) invert(1); opacity: 0.9; }
.eyebrow-pill .sep { inline-size: 1px; block-size: 14px; background: var(--f-line-strong); opacity: 0.5; }
.eyebrow-pill .live { inline-size: 7px; block-size: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 0 rgb(31 174 106 / 0.6); animation: ping 2.4s ease-out infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgb(31 174 106 / 0.55); } 70%, 100% { box-shadow: 0 0 0 8px rgb(31 174 106 / 0); } }

.hero h1 {
  margin-block: 24px 20px;
  font-size: clamp(3.25rem, 9.4vw, 8.25rem); line-height: 0.95; font-weight: 800; letter-spacing: -0.045em;
  text-wrap: balance;
}
html[lang="ar"] .hero h1 { letter-spacing: 0; line-height: 1.12; font-size: clamp(3.4rem, 10vw, 8.75rem); }
.hero h1 .word { display: inline-block; }
.hero h1 .accent { color: var(--brand-lt); }
.lead { font-size: clamp(1.0625rem, 1.6vw, 1.3125rem); color: var(--f-ink-2); max-inline-size: 38ch; text-wrap: pretty; }
html[lang="ar"] .lead { max-inline-size: 42ch; }

/* ---------- Waitlist form ---------- */
.wl { margin-block-start: 32px; }
.wl fieldset { border: 0; padding: 0; margin: 0; display: contents; }
.wl-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 6px;
  background: var(--frame-2); border: 1px solid var(--f-line); border-radius: 999px; max-inline-size: 640px;
  transition: border-color 200ms var(--settle), box-shadow 200ms var(--settle);
}
.wl-row:focus-within { border-color: rgb(95 224 160 / 0.45); box-shadow: 0 0 0 4px rgb(31 174 106 / 0.14); }
.seg { display: inline-flex; padding: 3px; background: var(--frame); border-radius: 999px; }
.seg-opt { position: relative; }
.seg-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg-opt span {
  display: inline-flex; align-items: center; gap: 6px; min-block-size: 38px; padding-inline: 14px; border-radius: 999px;
  font-size: 0.875rem; font-weight: 600; color: var(--f-ink-2); transition: background-color 180ms var(--settle), color 180ms;
}
.seg-opt span img { block-size: 16px; inline-size: auto; filter: brightness(0) invert(1); opacity: 0.75; }
.seg-opt input:checked + span { background: var(--frame-3); color: var(--f-ink); }
.seg-opt input:focus-visible + span { outline: 2px solid var(--brand-lt); outline-offset: 2px; }
.wl input[type="tel"] {
  flex: 1 1 200px; min-inline-size: 0; min-block-size: 44px; border: 0; background: transparent; color: var(--f-ink);
  font: inherit; font-size: 1rem; padding-inline: 12px; outline: none;
}
.wl input[type="tel"]::placeholder { color: var(--f-ink-2); opacity: 0.8; }
html[dir="rtl"] .wl input[type="tel"] { text-align: right; }
.wl .btn { flex: none; }
.wl-note { margin-block-start: 14px; color: var(--f-ink-2); font-size: 0.875rem; max-inline-size: 60ch; }
.wl-msg { margin-block-start: 12px; font-size: 0.9375rem; min-block-size: 1.5em; }
.wl-msg.is-ok { color: var(--brand-lt); }
.wl-msg.is-err { color: #ff9b97; }
.hp { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 560px) {
  .wl-row { border-radius: 24px; padding: 8px; }
  .seg { inline-size: 100%; } .seg-opt { flex: 1; } .seg-opt span { justify-content: center; inline-size: 100%; }
  .wl input[type="tel"] { flex-basis: 100%; }
  .wl .btn { inline-size: 100%; }
}

/* ---------- The hero product shot: a real capture of the app ---------- */
.stage { perspective: 1800px; margin-block-start: clamp(36px, 5vw, 64px); }
.app {
  --tilt: 1;
  position: relative; z-index: 2; overflow: hidden;
  border-radius: clamp(14px, 1.8vw, 24px);
  background: var(--frame);
  box-shadow: 0 60px 120px -40px rgb(0 0 0 / 0.8), 0 0 0 1px rgb(238 246 242 / 0.08), 0 0 140px -30px rgb(31 174 106 / 0.35);
  transform-origin: 50% 0;
  transform: rotateX(calc(var(--tilt) * 14deg)) translateY(calc(var(--tilt) * 12px)) scale(calc(1 - var(--tilt) * 0.04));
  will-change: transform;
  margin-block-end: calc(-1 * clamp(80px, 12vw, 180px));
}
.app img { inline-size: 100%; block-size: auto; }
.js .app img { opacity: 0; transform: translateY(16px); transition: opacity 900ms var(--settle) 200ms, transform 1100ms var(--settle) 200ms; }
.js .app.in img { opacity: 1; transform: none; }
@media (max-width: 560px) {
  .app { transform: none; margin-block-end: -56px; border-radius: 18px; }
}

/* ---------- Canvases set into the frame ---------- */
.canvas {
  background: var(--canvas); color: var(--ink); color-scheme: light;
  border-radius: var(--r-canvas); margin-inline: 8px; position: relative;
}
@media (min-width: 1300px) { .canvas { margin-inline: 12px; } }
.canvas.first { padding-block-start: clamp(130px, 16vw, 240px); z-index: 1; }
.section { padding-block: clamp(72px, 10vw, 140px); }
.eyebrow { font-size: 0.875rem; font-weight: 600; color: var(--profit); display: inline-flex; align-items: center; gap: 8px; }
.eyebrow::before { content: ""; inline-size: 18px; block-size: 2px; border-radius: 2px; background: currentColor; }
.on-frame .eyebrow { color: var(--brand-lt); }
h2.title {
  margin-block: 14px 18px; font-size: clamp(2.125rem, 5vw, 4rem); font-weight: 800; line-height: 1.04; letter-spacing: -0.035em;
  text-wrap: balance; max-inline-size: 18ch;
}
html[lang="ar"] h2.title { letter-spacing: 0; line-height: 1.25; max-inline-size: 20ch; }
.sub { color: var(--ink-2); font-size: clamp(1rem, 1.4vw, 1.1875rem); max-inline-size: 56ch; text-wrap: pretty; }
.on-frame .sub { color: var(--f-ink-2); }

/* the platforms */
.sources { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; padding-block: 8px 0; }
.sources p { color: var(--ink-2); font-size: 0.9375rem; }
.sources ul { display: flex; flex-wrap: wrap; align-items: center; gap: 12px clamp(20px, 3.4vw, 44px); list-style: none; margin: 0; padding: 0; }
.sources li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 0.9375rem; color: var(--ink); }
.sources img { block-size: 24px; inline-size: auto; }
.sources img.wide { block-size: 22px; }

/* ---------- The number assembles (pinned scroll) ---------- */
.assemble { position: relative; }
.assemble .track { block-size: 520vh; position: relative; }
.assemble .pin { position: sticky; inset-block-start: 0; block-size: 100vh; block-size: 100svh; display: grid; align-content: center; padding-block: 88px 32px; }
.asm-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.steps { position: relative; min-block-size: 9.5em; }
.step {
  position: absolute; inset: 0; opacity: 0; transform: translateY(-8px); visibility: hidden;
  transition: opacity 140ms linear, transform 140ms linear, visibility 0s linear 140ms;
}
.step.on {
  opacity: 1; transform: none; visibility: visible;
  transition: opacity 420ms var(--settle) 150ms, transform 520ms var(--settle) 150ms, visibility 0s linear 150ms;
}
.js .step:not(.on) { transform: translateY(14px); }
.step .k { font-size: 0.875rem; font-weight: 600; display: flex; align-items: center; gap: 8px; color: var(--ink-2); }
.step .k .dot { inline-size: 10px; block-size: 10px; border-radius: 50%; background: var(--c); }
.step p { margin-block-start: 10px; font-size: clamp(1.25rem, 2.2vw, 1.75rem); line-height: 1.35; font-weight: 600; letter-spacing: -0.015em; text-wrap: balance; }
html[lang="ar"] .step p { letter-spacing: 0; line-height: 1.6; }
.step .logos { display: flex; gap: 10px; margin-block-start: 14px; }
.step .logos img { block-size: 22px; inline-size: auto; }
.progress { display: flex; gap: 6px; margin-block-start: 28px; }
.progress i { block-size: 4px; flex: 1; border-radius: 4px; background: var(--surface-2); overflow: hidden; position: relative; }
.progress i::after { content: ""; position: absolute; inset: 0; background: var(--c, var(--ink)); transform: scaleX(var(--p, 0)); transform-origin: 0 50%; }
html[dir="rtl"] .progress i::after { transform-origin: 100% 50%; }

.ledger { background: var(--elevated); border-radius: 24px; padding: clamp(20px, 3vw, 36px); box-shadow: 0 1px 2px rgb(15 21 18 / 0.06), 0 30px 60px -30px rgb(15 21 18 / 0.25); }
.ledger .cap { display: flex; justify-content: space-between; align-items: center; color: var(--ink-2); font-size: 0.9375rem; }
.figure {
  position: relative; display: flex; align-items: baseline; gap: 0.18em; flex-wrap: wrap;
  font-weight: 700; letter-spacing: -0.04em; line-height: 1.05;
}
.figure::before {
  content: ""; position: absolute; z-index: -1; inset: -40% -10% -30%;
  background: radial-gradient(50% 50% at 30% 55%, rgb(31 174 106 / 0.22), transparent 70%);
  opacity: 0; transition: opacity 900ms var(--settle);
}
html[dir="rtl"] .figure::before { background: radial-gradient(50% 50% at 70% 55%, rgb(31 174 106 / 0.22), transparent 70%); }
.figure.lit::before { opacity: 1; }
.figure .frac { font-size: 0.42em; color: var(--ink-2); letter-spacing: -0.02em; }
.figure .cur { font-size: max(0.8125rem, 0.28em); font-weight: 600; color: var(--ink-2); letter-spacing: 0; align-self: center; }
.ledger { isolation: isolate; }
.ledger .figure { font-size: clamp(2.75rem, 6.4vw, 5.5rem); margin-block: 6px 22px; transition: color 600ms var(--settle); }
.ledger .figure.net { color: var(--profit); }
.bar { display: flex; gap: 3px; block-size: 22px; }
.bar i {
  inline-size: var(--w); background: var(--surface-2); block-size: 100%;
  transition: background-color 500ms var(--settle), transform 600ms var(--settle), opacity 500ms var(--settle);
}
.bar i:first-child { border-start-start-radius: 99px; border-end-start-radius: 99px; }
.bar i:last-child { border-start-end-radius: 99px; border-end-end-radius: 99px; }
.bar i.on { background: var(--c); }
.bar i.net.on { box-shadow: 0 0 0 4px rgb(31 174 106 / 0.18); }
.rows { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 2px; }
.rows li {
  display: flex; align-items: center; gap: 12px; padding: 9px 0; border-block-end: 1px solid var(--line);
  font-size: 0.9375rem; color: var(--ink-2);
  opacity: 0.32; transition: opacity 400ms var(--settle), color 400ms var(--settle);
}
.rows li:last-child { border: 0; }
.rows li .dot { inline-size: 10px; block-size: 10px; border-radius: 50%; background: var(--c); flex: none; transform: scale(0.6); transition: transform 500ms var(--settle); }
.rows li b { margin-inline-start: auto; font-weight: 600; color: var(--ink); }
.rows li.on { opacity: 1; color: var(--ink); }
.rows li.on .dot { transform: scale(1); }
.rows li.total { font-weight: 700; color: var(--ink); padding-block-start: 14px; }
.rows li.total b { color: var(--profit); font-size: 1.125rem; }
@media (max-width: 900px) {
  .asm-grid { grid-template-columns: 1fr; gap: 20px; }
  .steps { min-block-size: 7.5em; }
  .assemble .pin { padding-block: 76px 16px; align-content: start; }
  .ledger { padding: 18px; }
  .ledger .figure { margin-block: 2px 14px; }
  .rows { margin-block-start: 12px; }
  .rows li { padding-block: 6px; font-size: 0.875rem; }
}
@media (max-height: 760px) and (max-width: 900px) { .rows li:not(.total) { padding-block: 4px; } .steps p { font-size: 1.125rem; } }
/* without the pin, the assembled state stands on its own */
.no-pin .assemble .track { block-size: auto; }
.no-pin .assemble .pin { position: static; block-size: auto; padding-block: 0; }
.no-pin .steps { min-block-size: 0; }
.no-pin .step { position: static; opacity: 1; transform: none; display: none; }
.no-pin .step:last-child { display: block; }

/* ---------- Safi Today on WhatsApp ---------- */
.morning { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(40px, 7vw, 120px); align-items: center; }
.morning .checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.morning .checks li { display: flex; gap: 12px; align-items: baseline; color: var(--f-ink); }
.morning .checks li::before { content: ""; flex: none; inline-size: 8px; block-size: 8px; border-radius: 50%; background: var(--brand); transform: translateY(-2px); }
.clock { display: inline-flex; align-items: baseline; gap: 6px; font-weight: 800; font-size: clamp(4rem, 10vw, 8rem); letter-spacing: -0.05em; line-height: 1; color: var(--f-ink); margin-block-start: 24px; }
.clock small { font-size: 0.24em; font-weight: 600; letter-spacing: 0; color: var(--f-ink-2); }
.phone {
  inline-size: min(340px, 82vw); aspect-ratio: 9 / 18.5; border-radius: 48px; padding: 10px;
  background: linear-gradient(160deg, #2a3530, #0b0f0d 60%); position: relative;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.06) inset, 0 50px 100px -30px rgb(0 0 0 / 0.9), 0 0 120px -20px rgb(31 174 106 / 0.25);
  transform: rotate(-3deg); transition: transform 900ms var(--settle);
}
html[dir="rtl"] .phone { transform: rotate(3deg); }
.phone.in { transform: rotate(0deg); }
.screen { block-size: 100%; border-radius: 39px; overflow: hidden; display: flex; flex-direction: column; background: #efe7de; color: #111b21; font-size: 0.9375rem; }
.wa-top { background: #f0f2f5; padding: 44px 14px 10px; display: flex; align-items: center; gap: 10px; border-block-end: 1px solid rgb(0 0 0 / 0.06); position: relative; }
.wa-top::before { content: ""; position: absolute; inset-block-start: 12px; inset-inline-start: 50%; translate: -50% 0; inline-size: 96px; block-size: 26px; border-radius: 20px; background: #0b0f0d; }
html[dir="rtl"] .wa-top::before { translate: 50% 0; }
.wa-top .mark { --s: 36px; background: var(--ink); color: var(--canvas); }
.wa-top b { display: block; font-size: 1rem; line-height: 1.2; }
.wa-top small { color: #667781; font-size: 0.8125rem; }
.wa-top .verified { display: inline-block; inline-size: 14px; block-size: 14px; border-radius: 50%; background: #25d366; vertical-align: -2px; margin-inline-start: 4px; }
.wa-body {
  flex: 1; padding: 16px 12px; display: flex; flex-direction: column; gap: 8px; justify-content: flex-end;
  background-color: #efe7de;
  background-image: radial-gradient(rgb(0 0 0 / 0.035) 1px, transparent 1px);
  background-size: 14px 14px;
}
.wa-day { align-self: center; background: #fff; color: #54656f; font-size: 0.8125rem; padding: 4px 10px; border-radius: 8px; box-shadow: 0 1px 1px rgb(0 0 0 / 0.08); }
.bubble {
  align-self: flex-start; max-inline-size: 88%; background: #fff; border-radius: 10px; border-start-start-radius: 2px;
  padding: 8px 10px 6px; box-shadow: 0 1px 1px rgb(0 0 0 / 0.1); line-height: 1.55;
}
.bubble .line { display: block; }
.bubble .line.first { font-weight: 600; }
.bubble .t { display: block; text-align: end; color: #667781; font-size: 0.8125rem; margin-block-start: 2px; }
.typing { align-self: flex-start; background: #fff; border-radius: 10px; border-start-start-radius: 2px; padding: 12px 14px; display: inline-flex; gap: 4px; box-shadow: 0 1px 1px rgb(0 0 0 / 0.1); }
.typing i { inline-size: 7px; block-size: 7px; border-radius: 50%; background: #8696a0; animation: blink 1.2s infinite both; }
.typing i:nth-child(2) { animation-delay: 0.18s; } .typing i:nth-child(3) { animation-delay: 0.36s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.35; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.js .phone:not(.played) .bubble.today { display: none; }
.js .phone.played .typing { display: none; }
.no-anim .typing { display: none; }
.bubble.today { animation: pop 520ms var(--settle) both; transform-origin: 0 100%; }
html[dir="rtl"] .bubble.today { transform-origin: 100% 100%; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(0.94); } to { opacity: 1; transform: none; } }
.wa-foot { background: #f0f2f5; padding: 8px 10px 22px; display: flex; gap: 8px; align-items: center; }
.wa-foot span { flex: 1; background: #fff; border-radius: 20px; padding: 8px 14px; color: #8696a0; font-size: 0.875rem; }
.wa-foot i { inline-size: 36px; block-size: 36px; border-radius: 50%; background: #00a884; flex: none; }
.up { color: var(--profit); }
@media (max-width: 860px) { .morning { grid-template-columns: 1fr; justify-items: center; } .morning .copy { justify-self: stretch; } }

/* ---------- Product moments ---------- */
.moments { display: grid; gap: clamp(88px, 12vw, 160px); }
.moment { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.moment.flip .copy { order: 2; }
.moment h3 { font-size: clamp(1.75rem, 3.4vw, 2.75rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; margin-block: 12px 16px; text-wrap: balance; }
html[lang="ar"] .moment h3 { letter-spacing: 0; line-height: 1.35; }
.moment .copy p { color: var(--ink-2); font-size: 1.0625rem; max-inline-size: 46ch; }
.shot {
  background: var(--elevated); border-radius: 24px; padding: clamp(18px, 2.6vw, 28px);
  box-shadow: 0 1px 2px rgb(15 21 18 / 0.06), 0 40px 80px -40px rgb(15 21 18 / 0.3);
  border: 1px solid var(--line); min-inline-size: 0;
}
.shot-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-block-end: 16px; }
.shot-head b { font-size: 1.125rem; }
.shot-head span { color: var(--ink-2); font-size: 0.875rem; }
.tbl { inline-size: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.tbl th { text-align: start; font-weight: 500; color: var(--ink-2); font-size: 0.8125rem; padding: 0 0 10px; }
.tbl td { padding: 11px 0; border-block-start: 1px solid var(--line); }
.tbl .r { text-align: end; }
.tbl .pname { display: flex; align-items: center; gap: 10px; }
.tbl .thumb { inline-size: 30px; block-size: 30px; border-radius: 8px; background: linear-gradient(140deg, var(--t1), var(--t2)); flex: none; }
.tbl .neg { color: var(--loss); font-weight: 600; }
.tbl .pos { color: var(--profit); font-weight: 600; }
.tbl tr.flag td { background: #fdf1f0; }
.tbl tr.flag td:first-child { border-start-start-radius: 10px; border-end-start-radius: 10px; }
.tbl tr.flag td:last-child { border-start-end-radius: 10px; border-end-end-radius: 10px; }
.tbl tr.flag td { padding-inline: 8px; }
.est { color: var(--ink-3); }
.channels { display: grid; gap: 14px; }
.ch { display: grid; grid-template-columns: 112px 1fr auto; align-items: center; gap: 14px; font-size: 0.9375rem; }
.ch .n { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.ch .n img { block-size: 18px; inline-size: 18px; object-fit: contain; }
.ch .track { block-size: 10px; border-radius: 99px; background: var(--surface); overflow: hidden; }
.ch .track i { display: block; block-size: 100%; inline-size: var(--w); border-radius: 99px; background: var(--c-ads); transform-origin: 0 50%; }
html[dir="rtl"] .ch .track i { transform-origin: 100% 50%; }
.ratio { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-block-end: 20px; }
.ratio div { background: var(--surface); border-radius: 16px; padding: 14px 16px; }
.ratio span { display: block; color: var(--ink-2); font-size: 0.8125rem; }
.ratio b { font-size: 1.75rem; letter-spacing: -0.02em; }
.ratio b small { font-size: 0.55em; color: var(--ink-2); margin-inline-start: 2px; }
.asks { display: grid; gap: 10px; }
.ask { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--canvas); }
.ask .ic { inline-size: 36px; block-size: 36px; border-radius: 12px; background: #fff3d6; display: grid; place-items: center; flex: none; }
.ask .ic::after { content: ""; inline-size: 12px; block-size: 12px; border-radius: 50%; border: 2px solid #b07800; }
.ask .ic.c::after { border-radius: 3px; }
.ask div { min-inline-size: 0; flex: 1; }
.ask b { display: block; font-size: 0.9375rem; }
.ask span { color: var(--ink-2); font-size: 0.8125rem; }
.ask em { font-style: normal; font-weight: 700; font-size: 1.0625rem; white-space: nowrap; }
.ask em small { font-weight: 500; color: var(--ink-2); font-size: 0.8125rem; margin-inline-start: 3px; }
.ask:first-child { border-color: rgb(176 120 0 / 0.35); background: #fffaf0; }
@media (max-width: 900px) {
  .moment, .moment.flip { grid-template-columns: 1fr; }
  .moment.flip .copy { order: 0; }
  .ch { grid-template-columns: 96px 1fr auto; }
}

/* ---------- Trust ---------- */
.trust { display: grid; gap: 0; margin-block-start: clamp(40px, 6vw, 72px); border-block-start: 1px solid var(--f-line); }
.trust li { display: grid; grid-template-columns: minmax(120px, 0.6fr) minmax(0, 1.4fr); gap: clamp(20px, 5vw, 80px); padding-block: clamp(28px, 4vw, 48px); border-block-end: 1px solid var(--f-line); align-items: baseline; }
.trust .big { font-size: clamp(3.5rem, 8vw, 6.5rem); font-weight: 800; letter-spacing: -0.05em; line-height: 0.9; color: var(--f-ink); }
.trust .big.brand { color: var(--brand-lt); }
.trust h3 { font-size: clamp(1.25rem, 2vw, 1.625rem); font-weight: 700; margin-block-end: 10px; letter-spacing: -0.015em; }
html[lang="ar"] .trust h3 { letter-spacing: 0; }
.trust p { color: var(--f-ink-2); max-inline-size: 60ch; }
.trust { list-style: none; padding: 0; }
@media (max-width: 640px) { .trust li { grid-template-columns: 1fr; gap: 10px; } }

/* ---------- Final call ---------- */
.final { text-align: center; padding-block: clamp(96px, 14vw, 180px); position: relative; isolation: isolate; }
.final::before {
  content: ""; position: absolute; z-index: -1; inset-inline: 10%; inset-block: 10%;
  background: radial-gradient(50% 50% at 50% 50%, rgb(31 174 106 / 0.22), transparent 70%); filter: blur(30px);
}
.final .mark { --s: clamp(72px, 9vw, 104px); border-radius: 30%; box-shadow: 0 30px 60px -20px rgb(31 174 106 / 0.5), 0 0 0 1px rgb(255 255 255 / 0.1) inset; }
.final .mark::after { block-size: 4px; }
.final h2 { font-size: clamp(3rem, 9vw, 7.5rem); font-weight: 800; letter-spacing: -0.045em; line-height: 1; margin-block: 32px 16px; }
html[lang="ar"] .final h2 { letter-spacing: 0; line-height: 1.2; }
.final .sub { margin-inline: auto; }
.final .wl-row { margin-inline: auto; }
.final .wl-note { margin-inline: auto; }

/* ---------- Footer ---------- */
.foot { padding-block: 40px 56px; border-block-start: 1px solid var(--f-line); color: var(--f-ink-2); font-size: 0.875rem; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-inline-start: auto; }
.foot nav a { text-decoration: none; padding-block: 10px; }
.foot nav a:hover { color: var(--f-ink); }
.foot p { flex-basis: 100%; }

/* ---------- Reveal on scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 800ms var(--settle), transform 900ms var(--settle); transition-delay: calc(var(--i, 0) * 70ms); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js .grow-x { transform: scaleX(0); transition: transform 1100ms var(--settle); transition-delay: calc(var(--i, 0) * 80ms); }
.js .in .grow-x, .js .grow-x.in { transform: scaleX(1); }
.js .rise { --grow: 0; }
.js .in .rise { --grow: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
  .js [data-reveal] { transform: none; transition: opacity 400ms linear; }
  .js .grow-x, .js .rise { transform: none !important; --grow: 1; transition: none; }
  .app { transform: none !important; }
  .phone, html[dir="rtl"] .phone { transform: none; }
}

/* the pinned section has a viewport to share: its heading steps down */
.assemble h2.title { font-size: clamp(1.875rem, 3.4vw, 3rem); margin-block-end: 28px; }
.final .sub { color: var(--f-ink-2); }
@media (max-width: 900px) {
  /* a phone has room for the figure, the bar and the total; the caption names each cost */
  .js:not(.no-pin) .rows li:not(.total) {
    position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; padding: 0; border: 0;
  }
  .js:not(.no-pin) .rows li.total { border: 0; }
  .steps { min-block-size: 6em; }
  .progress { margin-block-start: 14px; }
  .assemble h2.title { margin-block-end: 16px; }
}
.tbl td.r { white-space: nowrap; padding-inline-start: 12px; }
@media (max-width: 560px) {
  .tbl { font-size: 0.875rem; }
  .tbl .thumb { inline-size: 24px; block-size: 24px; border-radius: 7px; }
  .ch { grid-template-columns: 92px 1fr auto; gap: 10px; font-size: 0.875rem; }
}

/* the sticky header covers the top 68px of whatever an anchor scrolls to */
section[id] { scroll-margin-block-start: 68px; }

/* ---------- The promo video: nothing loads until it is asked for ---------- */
.watch { padding-block: clamp(64px, 9vw, 120px) 0; }
.watch-head { display: block; }
.watch h2.title { margin-block-end: 28px; }
.player {
  position: relative; border-radius: clamp(16px, 2vw, 28px); overflow: hidden; background: var(--frame);
  aspect-ratio: 16 / 9; box-shadow: 0 1px 2px rgb(15 21 18 / 0.06), 0 50px 100px -40px rgb(15 21 18 / 0.45);
}
.player video { display: block; inline-size: 100%; block-size: 100%; object-fit: cover; background: var(--frame); }
.player .play {
  position: absolute; inset-block-end: clamp(14px, 2.4vw, 28px); inset-inline-start: clamp(14px, 2.4vw, 28px);
  display: inline-flex; align-items: center; gap: 12px; padding: 14px 22px 14px 16px; border: 0; border-radius: 999px; cursor: pointer;
  background: rgb(12 17 15 / 0.82); color: var(--f-ink); font: inherit; font-weight: 600; font-size: 1rem;
  box-shadow: 0 0 0 1px rgb(238 246 242 / 0.12), 0 20px 50px -10px rgb(0 0 0 / 0.6);
  transition: transform 200ms var(--settle), background-color 200ms var(--settle);
}
@supports (backdrop-filter: blur(1px)) { .player .play { backdrop-filter: blur(8px); } }
html[dir="rtl"] .player .play { padding: 14px 16px 14px 22px; }
.player .play svg { inline-size: 40px; block-size: 40px; padding: 10px; border-radius: 50%; background: var(--brand); fill: #04140b; }
.player .play:hover { transform: scale(1.04); background: rgb(12 17 15 / 0.92); }
.player .play:focus-visible { outline: 2px solid var(--brand-lt); outline-offset: 4px; }
.player.playing .play { display: none; }
@media (max-width: 640px) {
  .player.tall { aspect-ratio: 9 / 16; max-inline-size: 420px; margin-inline: auto; }
}
