/* ==========================================================================
   TRADEVA WAITLIST. Visual system taken from the style reference (fundingfactory.ai),
   read from its live page: big headline scale, off white page #f9f9f9,
   near black navy text, 22px radius, hairline borders, a floating pill nav at 10px from the top,
   a centred hero on a deep navy gradient with a soft glow, one big white card overlapping the
   hero edge, pill buttons, generous section spacing (96px desktop), gutter clamp(20px,4vw,56px).
   Tradeva brand (Ben's brief): navy #141C37, gold #EBA911, white. Gold takes the place of the
   reference's cobalt blue; light gold takes the place of its periwinkle highlight.
   Fonts are Tradeva's approved ones only, the same as tradeva.io and the design system: Rubik (Latin) with Cairo (Arabic).
   Mobile first. Logical properties throughout, so Arabic (RTL) mirrors itself.
   CSP-safe: no inline style or script.
   ========================================================================== */
@import '/fonts.css';
@import '/tokens/colors.css';
@import '/tokens/spacing.css';
@import '/tokens/typography.css';

:root {
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --page: #f9f9f9;
  --surface: #ffffff;
  --navy: #141c37;
  --text: #141c37;
  --body: #333640;
  --muted: #646873;
  --soft: #a6a9b3;
  --line: rgba(20, 28, 55, 0.1);
  --gold: #eba911;
  --gold-hi: #f6cf6b;          /* the reference's periwinkle highlight, in gold */
  --gold-ice: #fdf6e3;         /* its pale "ice" tint, in gold */
  --gold-deep: #9a6a12;
  --radius: 22px;
  --gutter: clamp(20px, 4vw, 56px);
  --content: 1240px;
  --sec-y: 72px;
  --head-gap: 36px;
  --nav-top: 10px;
  --font-display: 'Rubik', 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;   /* approved fonts only */
  --font-body: 'Rubik', 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --shadow: 0 1px 2px rgba(20, 28, 55, 0.04), 0 14px 34px -14px rgba(20, 28, 55, 0.16);
  --shadow-lg: 0 2px 4px rgba(20, 28, 55, 0.06), 0 40px 80px -24px rgba(8, 12, 30, 0.55);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-block-start: 84px; }
body { margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.6; color: var(--body); background: var(--page); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
h1, h2, h3, p, figure, dl, dd, blockquote { margin: 0; }
button, input, select, textarea { font-family: inherit; }
button { font: inherit; color: inherit; }
a { color: inherit; }
img, svg { max-width: 100%; }
.wrap { width: 100%; max-width: var(--content); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 760px; }
.center { display: flex; justify-content: center; margin-block-start: var(--head-gap); }
.tcenter { text-align: center; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.mobile-only { display: block; }
.small { font-size: 13px; color: var(--muted); margin-block: 16px 20px; }
.small.light { color: rgba(255, 255, 255, 0.55); margin-block-end: 0; }

/* Display type: Rubik (approved brand font), semibold, tight tracking for the big headline look */
.h2, h1, .summary, .strip p, .stop h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.03em; }
[lang='ar'] .h2, [lang='ar'] h1, [lang='ar'] .summary, [lang='ar'] .strip p, [lang='ar'] .stop h3 { font-family: 'Cairo', var(--font-body); font-weight: 700; letter-spacing: 0; }

/* Buttons: pills. Filled gold (the reference's filled cobalt), ghost outline, white on the dark nav. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 26px; border: 1px solid transparent; border-radius: 999px; font-weight: 500; font-size: 15px; letter-spacing: -0.005em; text-decoration: none; cursor: pointer; transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease); }
.btn:focus-visible, .lang button:focus-visible, .burger:focus-visible, .acard:focus-visible, .role-btns button:focus-visible, .cmp-switch button:focus-visible, .fa-switch button:focus-visible, summary:focus-visible, .bar-links a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.btn-gold { background: var(--gold); color: var(--navy); font-weight: 600; box-shadow: 0 8px 24px -8px rgba(235, 169, 17, 0.6); }
.btn-gold:hover { background: #f4b829; transform: translateY(-1px); }
.btn-white { background: #fff; color: var(--navy); font-weight: 600; }
.btn-white:hover { background: #f1f1f1; }
.btn-navy { background: var(--navy); color: #fff; font-weight: 600; }
.btn-navy:hover { background: #1e2a52; }
.btn-lg { min-height: 52px; padding-inline: 32px; font-size: 16px; }
.btn-sm { min-height: 38px; padding-inline: 18px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: wait; transform: none; }

/* 1 Top bar: the floating pill */
.bar { position: fixed; inset-block-start: var(--nav-top); inset-inline: 10px; z-index: 50; max-width: 760px; margin-inline: auto; height: 52px; display: flex; align-items: center; gap: 6px; padding-inline: 14px 7px; background: rgba(20, 28, 55, 0.55); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 999px; color: #fff; box-shadow: 0 10px 30px -12px rgba(5, 8, 20, 0.5); }
.bar-brand { display: flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.bar-links { display: flex; gap: 2px; margin-inline: auto; }
.bar-links a { color: rgba(255, 255, 255, 0.72); text-decoration: none; font-weight: 400; font-size: 14px; padding: 7px 14px; border-radius: 999px; transition: background 0.25s var(--ease), color 0.25s var(--ease); }
.bar-links a:hover { color: #fff; }
.bar-links a.on { background: rgba(255, 255, 255, 0.14); color: #fff; }
.bar-right { display: flex; align-items: center; gap: 6px; margin-inline-start: auto; }
.lang { display: flex; }
.lang button { border: 0; background: transparent; color: rgba(255, 255, 255, 0.6); padding: 6px 8px; font-size: 13px; font-weight: 400; cursor: pointer; min-height: 32px; border-radius: 999px; }
.lang button[aria-pressed='true'] { color: #fff; font-weight: 600; }
.burger { display: none; width: 38px; height: 38px; border: 0; background: transparent; border-radius: 999px; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.burger span { width: 17px; height: 1.5px; background: #fff; border-radius: 2px; }

/* 2 Hero: centred, deep navy, soft glow, the card overlaps the edge */
.hero { position: relative; padding: calc(var(--nav-top) + 52px + 56px) 0 0; color: #fff; text-align: center; background: radial-gradient(900px 520px at 78% 108%, rgba(235, 169, 17, 0.28), transparent 62%), radial-gradient(700px 420px at 12% -10%, rgba(120, 140, 255, 0.16), transparent 60%), linear-gradient(180deg, #0f1530 0%, var(--navy) 55%, #1a2347 100%); }
.hero-in { display: flex; flex-direction: column; align-items: center; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 500; letter-spacing: 0.04em; color: rgba(255, 255, 255, 0.78); padding: 7px 14px; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 999px; background: rgba(255, 255, 255, 0.05); margin-block-end: 22px; }
.hero h1 { font-size: clamp(2.3rem, 10.5vw, 4.7rem); line-height: 1.06; max-width: 14ch; color: #fff; }
.hero h1 .hl { color: var(--gold-hi); display: block; }
.hero-tag { margin-block: 18px 14px; font-family: var(--font-display); font-weight: 500; font-size: clamp(1.1rem, 4vw, 1.5rem); letter-spacing: -0.015em; color: rgba(255, 255, 255, 0.92); }
[lang='ar'] .hero-tag { font-family: 'Cairo', var(--font-body); font-weight: 600; }
.hero-sub { color: rgba(255, 255, 255, 0.66); max-width: 52ch; margin-block-end: 28px; font-size: 16px; }
.hero-note { margin-block-start: 14px; font-size: 13px; color: rgba(255, 255, 255, 0.5); }
.deal-wrap { margin-block-start: 44px; margin-block-end: -96px; position: relative; z-index: 2; }

/* The big white card (the reference's composer): tags, track, steps */
.dealcard { background: var(--surface); color: var(--text); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-lg); max-width: 720px; margin-inline: auto; text-align: start; }
.dc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-block-end: 20px; }
.tag { display: inline-block; padding: 5px 12px; border-radius: 8px; background: var(--gold-ice); color: var(--gold-deep); font-size: 13px; font-weight: 500; }
.tag-soft { background: #f1f2f5; color: var(--muted); }
.dc-track { position: relative; height: 34px; display: flex; justify-content: space-between; align-items: center; margin-block-end: 18px; padding-inline: 4px; }
.dc-line { position: absolute; inset-inline: 10px; top: 50%; height: 3px; margin-top: -1.5px; border-radius: 3px; background: #e9eaef; overflow: hidden; }
.dc-line i { display: block; height: 100%; width: 0; background: var(--gold); transition: width 0.9s var(--ease); }
.dc-dot { position: relative; z-index: 1; width: 13px; height: 13px; border-radius: 50%; background: #fff; border: 3px solid #dcdee5; transition: border-color 0.3s, background 0.3s; }
.dc-dot.on { border-color: var(--gold); background: var(--gold); }
.dc-box { position: absolute; z-index: 2; top: -3px; left: 0; width: 34px; height: 34px; border-radius: 10px; background: var(--navy); color: var(--gold); display: grid; place-items: center; transition: left 0.9s var(--ease); }
.dc-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dc-steps li { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: #f5f6f8; color: var(--soft); font-size: 14px; font-weight: 400; transition: background 0.4s var(--ease), color 0.4s var(--ease); }
.dc-steps .tick { width: 22px; height: 22px; flex: none; border-radius: 50%; background: #dcdee5; color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 700; transition: background 0.4s; }
.dc-steps li.done { color: var(--text); background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.dc-steps li.done .tick { background: var(--tv-success); }
.dc-steps li.on { color: var(--text); background: var(--gold-ice); font-weight: 500; box-shadow: inset 0 0 0 1px rgba(235, 169, 17, 0.35); }
.dc-steps li.on .tick { background: var(--gold); color: var(--navy); }

/* 3 Numbers */
.numbers { padding-block: 132px 8px; }
#problem { padding-block-start: 150px; }
.numbers-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.numbers b { display: block; font-family: var(--font-display); font-weight: 600; font-size: clamp(2.1rem, 9vw, 3.6rem); line-height: 1.1; color: var(--text); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.numbers span { display: block; margin-block-start: 6px; font-size: 13px; color: var(--muted); }

/* sections */
.sec { padding-block: var(--sec-y); }
.sec-white { background: var(--surface); border-block: 1px solid var(--line); }
.h2 { font-size: clamp(2rem, 7.4vw, 3.4rem); line-height: 1.08; color: var(--text); text-align: center; margin-inline: auto; max-width: 20ch; text-wrap: balance; }
.lead { margin: 16px auto var(--head-gap); font-size: 17px; color: var(--muted); max-width: 58ch; text-align: center; }
.fin .h2, .join .h2 { color: #fff; }

/* 4 Problem */
.cards3 { display: grid; gap: 14px; }
.card { background: var(--surface); border-radius: var(--radius); padding: 14px 14px 26px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.card h3, .tile h3, .acard h3, .tcard h3, .fcard h3, .cmp-row h3 { font-weight: 500; letter-spacing: -0.01em; }
.card h3 { font-size: 20px; margin-block: 22px 8px; color: var(--text); padding-inline: 12px; }
.card p { color: var(--muted); padding-inline: 12px; font-size: 15px; }
.bridge { margin: var(--head-gap) auto 0; text-align: center; font-family: var(--font-display); font-size: clamp(1.35rem, 5vw, 2rem); font-weight: 600; letter-spacing: -0.02em; color: var(--text); max-width: 26ch; line-height: 1.2; }
[lang='ar'] .bridge { font-family: 'Cairo', var(--font-body); font-weight: 600; }

/* screens: light mockups of the product (replaced by real screenshots when img/screens/<name>.webp exists) */
.shot { background: linear-gradient(160deg, #f1f2f6, #f8f8fa); border-radius: 16px; padding: 14px; min-height: 214px; display: grid; align-content: center; direction: ltr; text-align: start; }
[lang='ar'] .shot { direction: rtl; }
.shot > img { width: 100%; height: auto; border-radius: 10px; display: block; }
.ui { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 13px; line-height: 1.4; color: var(--text); }
.ui + .ui { margin-block-start: 8px; }
.ui-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-weight: 600; }
.ui small { color: var(--muted); font-size: 12px; }
.ui-row { display: flex; justify-content: space-between; gap: 10px; padding-block: 6px; border-block-end: 1px solid #f0f1f4; }
.ui-row:last-child { border-block-end: 0; }
.ui-row.total { font-weight: 700; font-size: 15px; border-block-start: 1.5px solid var(--navy); border-block-end: 0; margin-block-start: 4px; }
.ui-row.red { color: var(--tv-danger); background: var(--tv-danger-bg); margin-inline: -8px; padding-inline: 8px; border-radius: 6px; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.pill.ok { background: var(--tv-success-bg); color: var(--tv-success); }
.pill.wait { background: var(--gold-ice); color: var(--gold-deep); }
.pill.red { background: var(--tv-danger-bg); color: var(--tv-danger); }
.notif { display: flex; gap: 10px; align-items: center; }
.notif i { width: 26px; height: 26px; border-radius: 8px; flex: none; display: grid; place-items: center; font-style: normal; font-size: 13px; color: #fff; font-weight: 700; }
.n-wa { background: #25d366; } .n-wa svg { display: block; } .n-em { background: var(--tv-sky-500); } .n-xl { background: var(--tv-success); } .n-fw { background: var(--tv-danger); }
.badge-n { margin-inline-start: auto; background: var(--tv-danger); color: #fff; border-radius: 999px; font-size: 11px; font-weight: 600; padding: 1px 7px; }
.sup { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; }
.sup b { font-size: 13px; }
.ui-cap { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 10px 2px 6px; }
.ui-cap:first-child { margin-top: 0; }
.vbadge { justify-self: end; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--tv-success-bg); color: var(--tv-success); white-space: nowrap; }
.vbadge::before { content: '\2713  '; }
.vbadge-wait { background: var(--gold-ice); color: var(--gold-deep); }
.vbadge-wait::before { content: ''; }
.sup-own { border-style: dashed; }
.sup-add { border-style: dashed; text-align: center; font-weight: 600; color: var(--gold-deep); background: transparent; }
.sup .price { font-weight: 700; font-size: 14px; }
.chk { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center; padding-block: 7px; border-block-end: 1px solid #f0f1f4; }
.chk:last-child { border-block-end: 0; }
.chk .t { width: 22px; height: 22px; border-radius: 50%; background: var(--tv-success); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.search-bar { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border: 1px solid #dcdee5; border-radius: 10px; background: #fff; margin-block-end: 8px; font-size: 13px; }
/* The tradeva.io calculator (its own page, embed mode) */
.calc-frame { max-width: 860px; margin-inline: auto; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.calc-frame iframe { display: block; width: 100%; height: 720px; border: 0; }

/* Product screens in the Tradeva UI kit style (Figma: Transaction Detail): app bar, deal header, stepper, cards */
.shot-app { padding: 0; align-content: start; overflow: hidden; background: #f6f7f9; border: 1px solid var(--line); min-height: 0; }
.app { display: flex; flex-direction: column; min-height: 100%; font-size: 13px; line-height: 1.4; color: #1b2130; }
.app-bar { display: flex; align-items: center; gap: 10px; height: 48px; padding-inline: 14px; background: var(--navy); color: #fff; flex: none; }
.app-bar img { display: block; }
.app-tab { align-self: stretch; display: flex; align-items: center; font-size: 12.5px; font-weight: 600; box-shadow: inset 0 -2px 0 var(--gold); }
.app-bell { margin-inline-start: auto; display: grid; color: rgba(255, 255, 255, 0.85); }
.app-av { width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(135deg, #c9a46a, #6b5233); box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25); }
.app-head { background: #fff; padding: 12px 14px 12px; border-block-end: 1px solid #e7e9ee; flex: none; }
.app-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.app-title > b { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.app-sub { margin-block-start: 3px; font-size: 11.5px; color: #525866; }
.app-body { padding: 10px; display: grid; gap: 8px; align-content: start; }
.app-card { background: #fff; border: 1px solid #e7e9ee; border-radius: 8px; padding: 12px; box-shadow: 0 1px 2px rgba(20, 28, 55, 0.04); }
.app-card-h { font-size: 14px; font-weight: 600; margin-block-end: 6px; }
.kv { display: flex; justify-content: space-between; gap: 10px; padding-block: 7px; border-block-end: 1px solid #eef0f3; color: #525866; }
.kv > :last-child { color: #1b2130; }
.kv:last-child { border-block-end: 0; }
.kv.total { color: #1b2130; font-weight: 600; font-size: 14px; padding-block-start: 9px; }
.kv-l { font-size: 11.5px; color: #525866; }
.kv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-block-start: 10px; padding-block-start: 10px; border-block-start: 1px solid #eef0f3; }
.kv-grid p:last-child { font-weight: 500; }
.app-big { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; color: var(--navy); line-height: 1.2; }
.app-note { font-size: 12px; color: #525866; padding-block-end: 4px; }
.app-note b { color: #1b2130; font-weight: 600; }
.doc { display: grid; grid-template-columns: 26px 1fr auto; gap: 8px; align-items: center; padding: 9px 10px; border-radius: 6px; background: #f8f9fb; box-shadow: 0 0 0 1px #eef0f3; }
.doc + .doc { margin-block-start: 6px; }
.doc > i { display: grid; place-items: center; color: #525866; }
.doc b { display: block; font-size: 12.5px; font-weight: 500; }
.doc small { display: block; font-size: 11px; color: #6b7280; }
.pill.solid.ok { background: #2e7d46; color: #fff; }
.pill.grey { background: #eef0f3; color: #1b2130; }
.app-btn { border: 1px solid var(--navy); color: var(--navy); background: #fff; border-radius: 6px; padding: 9px; text-align: center; font-weight: 600; font-size: 12.5px; }
.app-map { position: relative; height: 96px; border-radius: 8px; border: 1px solid #e7e9ee; background: radial-gradient(circle at 22% 40%, #e6eaf4 0 16%, transparent 17%), radial-gradient(circle at 76% 55%, #e6eaf4 0 20%, transparent 21%), #f1f3f9; overflow: hidden; }
.app-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.app-map span { position: absolute; top: 74px; font-size: 10.5px; font-weight: 500; background: #fff; border-radius: 999px; padding: 1px 7px; box-shadow: 0 1px 4px rgba(20, 28, 55, 0.15); }
.app-map .m-a { left: 8px; } .app-map .m-b { right: 8px; top: 66px; }
.app-step { background: #fff; border: 1px solid #e7e9ee; border-radius: 8px; padding: 16px 6px 10px; }
.st-bar { position: relative; height: 4px; margin-inline: 12.5%; border-radius: 4px; background: #d5dbe6; }
.st-fill { position: absolute; inset-block: 0; inset-inline-start: 0; border-radius: 4px; background: #b08a12; }
.st-node { position: absolute; top: 50%; width: 26px; height: 26px; margin-block-start: -13px; margin-inline-start: -13px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; }
.at-0 .st-fill { width: 0; } .at-0 .st-node { inset-inline-start: 0; }
.at-1 .st-fill { width: 33.33%; } .at-1 .st-node { inset-inline-start: 33.33%; }
.at-2 .st-fill { width: 66.66%; } .at-2 .st-node { inset-inline-start: 66.66%; }
.at-3 .st-fill { width: 100%; } .at-3 .st-node { inset-inline-start: 100%; }
.app-step ol { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; font-size: 10.5px; color: #9aa0ac; }
.app-step li.done { color: #525866; }
.app-step li.on { color: #1b2130; font-weight: 600; }

/* 5 Five stops */
.stops { display: grid; gap: 26px; }
.stop-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.stop { padding: 22px 14px 14px; background: var(--page); border: 1px solid var(--line); border-radius: var(--radius); }
.stop-k { font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-deep); margin-block-end: 8px; padding-inline: 8px; }
.stop h3 { font-size: clamp(1.45rem, 5.6vw, 2.1rem); line-height: 1.15; color: var(--text); margin-block-end: 8px; padding-inline: 8px; }
.stop > p:not(.stop-k) { color: var(--muted); font-size: 15px; padding-inline: 8px; }
.stop .shot { margin-block-start: 18px; }
.try { display: inline-flex; align-items: center; gap: 6px; margin-block-start: 12px; padding-inline: 8px; font-weight: 600; font-size: 15px; color: var(--gold-deep); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.try::after { content: '\2192'; text-decoration: none; }
[dir='rtl'] .try::after { content: '\2190'; }
.try:hover { color: var(--text); }
.phone-col { display: none; }
.phone { width: 300px; height: 560px; border-radius: 44px; background: var(--navy); padding: 11px; box-shadow: var(--shadow-lg); position: relative; }
.phone-notch { position: absolute; inset-block-start: 13px; inset-inline-start: 50%; width: 90px; height: 22px; margin-inline-start: -45px; border-radius: 0 0 14px 14px; background: var(--navy); z-index: 2; }
.phone-screen { width: 100%; height: 100%; border-radius: 34px; background: #f6f7f9; overflow: hidden; position: relative; direction: ltr; }
.phone-screen > .shot { position: absolute; inset: 0; padding: 0; background: transparent; min-height: 0; border: 0; border-radius: 0; opacity: 0; transform: translateY(10px); transition: opacity 0.4s var(--ease), transform 0.4s var(--ease); pointer-events: none; }
.phone-screen > .shot.on { opacity: 1; transform: none; }
.phone-screen .app-bar { height: 76px; padding-block-start: 28px; } /* the bar runs under the notch, as in the app */
.phone-dots { display: flex; gap: 8px; justify-content: center; margin-block-start: 20px; }
.phone-dots i { width: 7px; height: 7px; border-radius: 50%; background: #d3d5dd; transition: background 0.3s, width 0.3s; }
.phone-dots i.on { background: var(--gold); width: 22px; border-radius: 6px; }

/* 6 Toolbox: two columns on mobile */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 16px 22px; box-shadow: var(--shadow); transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.tile:hover { transform: translateY(-3px); }
.tile h3 { font-size: 16px; line-height: 1.3; margin-block: 14px 4px; color: var(--text); }
.tile p { font-size: 14px; color: var(--muted); line-height: 1.5; }
.ti { width: 42px; height: 42px; border-radius: 14px; background: var(--gold-ice); color: var(--gold-deep); display: grid; place-items: center; }
.ti svg { width: 21px; height: 21px; }

/* 7 Financing: navy band with a soft gold glow */
.fin { color: #fff; background: radial-gradient(800px 460px at 85% 0, rgba(235, 169, 17, 0.2), transparent 60%), radial-gradient(600px 400px at 0 100%, rgba(120, 140, 255, 0.14), transparent 60%), linear-gradient(180deg, #121a38, var(--navy)); }
.fin .h2 { text-align: start; margin-inline: 0; max-width: 16ch; }
.fin .lead { text-align: start; margin-inline: 0; color: rgba(255, 255, 255, 0.68); }
.fin-grid { display: grid; gap: 36px; align-items: start; }
.fin-cards { display: grid; gap: 10px; margin-block-end: 10px; }
.fcard { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 18px; padding: 18px; }
.fcard h3 { font-size: 17px; margin-block-end: 4px; }
.fcard p { color: rgba(255, 255, 255, 0.66); font-size: 15px; }
.fcard-gold { background: var(--gold); border-color: var(--gold); color: var(--navy); margin-block-end: 6px; }
.fcard-gold p { color: var(--navy); }
.chips { display: flex; gap: 8px; margin-block-start: 14px; flex-wrap: wrap; }
.chip { background: var(--navy); color: #fff; border-radius: 999px; padding: 5px 14px; font-size: 13px; font-weight: 500; }
.fin .small { color: rgba(255, 255, 255, 0.5); }
.finapp { background: var(--surface); color: var(--text); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-lg); max-width: 460px; width: 100%; justify-self: center; }
.fa-head { display: flex; justify-content: space-between; align-items: center; margin-block-end: 16px; font-size: 16px; }
.fa-ex { font-size: 11px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); background: #f1f2f5; padding: 4px 10px; border-radius: 999px; }
.fa-switch { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; background: #f1f2f5; border-radius: 999px; margin-block-end: 16px; }
.fa-switch button { border: 0; background: transparent; border-radius: 999px; min-height: 42px; font-weight: 500; font-size: 14px; color: var(--muted); cursor: pointer; transition: background 0.25s var(--ease), color 0.25s var(--ease); }
.fa-switch button.on { background: var(--navy); color: #fff; }
.fa-switch button[data-track='sharia'].on { background: var(--gold); color: var(--navy); font-weight: 600; }
.fa-rows { display: grid; font-size: 14px; }
.fa-rows > div { display: flex; justify-content: space-between; gap: 12px; padding-block: 11px; border-block-end: 1px solid #f0f1f4; }
.fa-rows dt { color: var(--muted); }
.fa-rows dd { font-weight: 500; text-align: end; }
.fa-structs { margin-block-start: 14px; padding: 14px; background: var(--gold-ice); border-radius: 16px; }
.fa-structs[hidden] { display: none; }
.fa-structs p { font-size: 13px; font-weight: 500; margin-block-end: 8px; }
.fa-structs small { display: block; margin-block-start: 8px; color: var(--gold-deep); font-weight: 500; }
.fa-opts { display: flex; gap: 8px; }
.opt { flex: 1; text-align: center; padding: 10px; background: #fff; border: 1.5px solid var(--gold); border-radius: 12px; font-weight: 600; font-size: 14px; }
.fa-note { margin-block-start: 14px; font-size: 13px; color: var(--muted); text-align: center; }

/* 8 Before and after */
.cmp-switch { display: grid; grid-template-columns: 1fr 1fr; width: fit-content; margin: 0 auto 22px; padding: 4px; background: #eceef2; border-radius: 999px; }
.cmp-switch button { border: 0; background: transparent; padding: 0 26px; min-height: 42px; border-radius: 999px; font-weight: 500; color: var(--muted); cursor: pointer; transition: background 0.25s var(--ease), color 0.25s var(--ease); }
.cmp-switch button.on { background: var(--navy); color: #fff; }
.cmp-switch button[data-side='tv'].on { background: var(--gold); color: var(--navy); font-weight: 600; }
.cmp { display: grid; gap: 10px; }
.cmp-head { display: none; }
.cmp-row { display: grid; gap: 6px; padding: 18px 18px 20px; border-radius: 18px; background: var(--page); border: 1px solid var(--line); }
.cmp-row h3 { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.cmp-row p { font-size: 17px; line-height: 1.45; }
.cmp[data-side='today'] .c-tv, .cmp[data-side='tv'] .c-today { display: none; }
.cmp[data-side='today'] .c-today { color: var(--muted); }
.cmp[data-side='tv'] .cmp-row { background: var(--gold-ice); border-color: rgba(235, 169, 17, 0.4); }
.cmp[data-side='tv'] .c-tv { color: var(--text); font-weight: 500; }
.summary { margin-block-start: var(--head-gap); text-align: center; font-size: clamp(1.7rem, 6.4vw, 2.8rem); color: var(--text); line-height: 1.15; }

/* 9 Who it's for: two per row on mobile */
.aud { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.acard { text-align: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 16px 20px; cursor: pointer; box-shadow: var(--shadow); transition: transform 0.3s var(--ease), border-color 0.3s var(--ease); }
.acard:hover { transform: translateY(-3px); border-color: var(--gold); }
.acard h3 { font-size: 17px; line-height: 1.25; margin-block: 14px 6px; color: var(--text); }
.acard p { font-size: 14px; color: var(--muted); line-height: 1.5; }
.closing { margin-block-start: 28px; text-align: center; font-size: 17px; color: var(--muted); }

/* 10 Trust */
.trust-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; align-items: stretch; }
.tcard { background: var(--page); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 16px 22px; }
.tcard h3 { font-size: 17px; margin-block: 14px 6px; color: var(--text); }
.tcard p { font-size: 14px; color: var(--muted); line-height: 1.5; }
.stamp { grid-column: 1 / -1; order: -1; display: grid; place-items: center; padding-block: 6px 10px; }

/* 11 Founder */
.founder { display: grid; gap: 26px; align-items: center; justify-items: center; text-align: center; }
.f-photo { width: 150px; height: 150px; border-radius: 50%; background: var(--navy); color: var(--gold-hi); display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: 46px; overflow: hidden; }
.f-photo img { width: 100%; height: 100%; object-fit: cover; }
.founder .h2 { text-align: inherit; margin-inline: 0; }
.f-name { margin-block: 10px 14px; font-weight: 500; color: var(--gold-deep); }
.founder p:not(.f-name) { color: var(--muted); font-size: 16px; max-width: 56ch; }
blockquote { margin: 22px 0 0; padding-inline-start: 18px; border-inline-start: 3px solid var(--gold); font-family: var(--font-display); font-weight: 500; font-size: 20px; color: var(--text); line-height: 1.45; text-align: start; letter-spacing: -0.01em; }
[lang='ar'] blockquote { font-family: 'Cairo', var(--font-body); font-weight: 600; }

/* 12 Gold strip */
.strip { background: var(--gold); color: var(--navy); }
.strip-in { display: grid; gap: 20px; justify-items: center; text-align: center; padding-block: 56px; align-items: center; }
.strip p { font-size: clamp(1.6rem, 6vw, 2.6rem); line-height: 1.15; max-width: 22ch; }

/* 13 FAQ */
details { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; margin-block-start: 10px; box-shadow: var(--shadow); }
summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 58px; padding: 14px 20px; font-weight: 500; font-size: 16px; border-radius: 18px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-size: 24px; line-height: 1; font-weight: 300; color: var(--muted); transition: transform 0.3s var(--ease); }
details[open] summary::after { content: '\2212'; }
details p { padding: 0 20px 20px; color: var(--muted); }

/* 14 Form */
.join { color: #fff; padding-block: var(--sec-y) 110px; background: radial-gradient(800px 420px at 50% 110%, rgba(235, 169, 17, 0.24), transparent 62%), radial-gradient(600px 360px at 90% 0, rgba(120, 140, 255, 0.14), transparent 60%), linear-gradient(180deg, #121a38, var(--navy)); }
.join .lead { color: rgba(255, 255, 255, 0.68); margin-block-end: 30px; }
.form { text-align: start; background: var(--surface); color: var(--text); border-radius: var(--radius); padding: 24px 20px; display: grid; gap: 16px; box-shadow: var(--shadow-lg); }
.fld { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.fld > span, legend { font-size: 14px; font-weight: 500; color: var(--body); padding: 0; }
.fld input, .fld select { width: 100%; min-height: 52px; padding: 0 16px; border: 1px solid #d9dbe2; border-radius: 14px; background: #fff; font: inherit; font-size: 16px; color: var(--text); transition: border-color 0.2s, box-shadow 0.2s; }
.fld input:focus, .fld select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(235, 169, 17, 0.2); }
.fld.bad input, .fld.bad select { border-color: var(--tv-danger); }
.role-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-block-start: 6px; }
.role-btns button { min-height: 46px; padding: 0 16px; border-radius: 999px; border: 1px solid #d9dbe2; background: #fff; font-weight: 500; font-size: 14px; cursor: pointer; transition: background 0.2s, border-color 0.2s, color 0.2s; }
.role-btns button[aria-pressed='true'] { background: var(--navy); border-color: var(--navy); color: #fff; }
.fld.bad .role-btns button { border-color: var(--tv-danger); }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.msg { padding: 12px 14px; border-radius: 12px; font-size: 14px; font-weight: 500; background: var(--tv-danger-bg); color: var(--tv-danger); }
.msg::before { content: '✕ '; font-weight: 700; }
.msg.info { background: var(--gold-ice); color: var(--gold-deep); }
.msg.info::before { content: ''; }
.form .small { text-align: center; color: var(--muted); margin-block: 0; }

/* 15 Footer */
.foot { background: #0d1226; color: rgba(255, 255, 255, 0.62); padding-block: 48px 120px; }
.foot-grid { display: grid; gap: 26px; }
.foot-brand { display: flex; gap: 12px; align-items: center; color: #fff; }
.foot-brand strong { display: block; font-size: 18px; font-weight: 600; }
.foot-brand span { font-size: 13px; color: var(--gold-hi); }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot-links a, .foot-contact a { color: rgba(255, 255, 255, 0.7); text-decoration: none; }
.foot-links a:hover, .foot-contact a:hover { color: var(--gold-hi); }
.foot-contact { font-size: 14px; line-height: 1.9; }
.foot-legal { margin-block-start: 28px; font-size: 12px; line-height: 1.65; color: rgba(255, 255, 255, 0.45); max-width: 90ch; }
.foot-legal + .foot-legal { margin-block-start: 8px; }

/* Sticky mobile button: hides when the form is on screen */
.sticky { position: fixed; inset-inline: 0; inset-block-end: 0; z-index: 40; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(249, 249, 249, 0), rgba(249, 249, 249, 0.96) 38%); transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }
.sticky.hide { transform: translateY(110%); opacity: 0; pointer-events: none; }
.cookiebar { z-index: 60; }

/* Thank you page and unsubscribe page */
body.ty { background: radial-gradient(800px 460px at 50% 105%, rgba(235, 169, 17, 0.26), transparent 62%), linear-gradient(180deg, #0f1530, var(--navy)); min-height: 100vh; }
.ty-wrap { min-height: 100vh; display: grid; place-items: center; padding: 28px 16px; }
.ty-card { background: var(--surface); border-radius: 28px; padding: 36px 24px 26px; max-width: 520px; width: 100%; text-align: center; box-shadow: var(--shadow-lg); }
.ty-tick { width: 84px; height: 84px; border-radius: 50%; background: var(--gold); color: var(--navy); display: inline-grid; place-items: center; font-size: 44px; font-weight: 700; margin-block-end: 20px; box-shadow: 0 14px 34px -10px rgba(235, 169, 17, 0.7); }
.ty-card h1 { font-size: clamp(1.7rem, 6.2vw, 2.2rem); line-height: 1.15; color: var(--text); }
.ty-p { margin-block: 14px 20px; color: var(--muted); }
.ty-list { list-style: none; margin: 0 0 22px; padding: 14px 16px; background: var(--page); border: 1px solid var(--line); border-radius: 18px; display: grid; gap: 10px; text-align: start; }
.ty-list li { display: flex; gap: 12px; align-items: center; font-weight: 400; color: var(--text); }
.ty-list li span:first-child { font-size: 20px; width: 26px; text-align: center; }
.ty-note { margin-block-start: 16px; font-size: 13px; color: var(--muted); }
.thanks-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.thanks-card { background: var(--surface); color: var(--text); border-radius: 24px; padding: 30px 24px; max-width: 460px; width: 100%; text-align: center; box-shadow: var(--shadow); border: 1px solid var(--line); display: grid; gap: 16px; justify-items: center; }
.thanks-title { font-family: var(--font-display); font-weight: 600; font-size: 24px; color: var(--text); }
body.plain { background: var(--page); }

/* Give Arabic letterforms room in multiline headings and translated examples. */
[lang='ar'] .hero h1, [lang='ar'] .h2, [lang='ar'] .stop h3,
[lang='ar'] .bridge, [lang='ar'] .summary, [lang='ar'] .ty-card h1 { line-height: 1.4; }
[lang='ar'] .hero-tag, [lang='ar'] .eyebrow, [lang='ar'] .stop-k,
[lang='ar'] .fa-ex, [lang='ar'] .cmp-head b { letter-spacing: 0; }
[lang='ar'] .ui-h { flex-wrap: wrap; }
[lang='ar'] .ui-row .ltr { flex-shrink: 0; }

/* Reveal motion */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
  .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .dc-line i, .dc-box, .tile, .acard, .phone-screen > .shot { transition: none; } }

/* Tablet and up */
@media (min-width: 760px) {
  :root { --sec-y: 96px; --head-gap: 48px; }
  .mobile-only { display: none; }
  .hero { padding-block-start: calc(var(--nav-top) + 52px + 88px); }
  .hero-sub { font-size: 17px; }
  .deal-wrap { margin-block-end: -120px; }
  .dealcard { padding: 28px; }
  .dc-steps { grid-template-columns: 1fr 1fr; }
  .dc-steps li:last-child { grid-column: 1 / -1; }
  .numbers { padding-block-start: 170px; }
  #problem { padding-block-start: 190px; }
  .cards3 { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .tiles { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .aud { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .fin-grid { grid-template-columns: 1.1fr 0.9fr; gap: 64px; }
  .fin-cards { grid-template-columns: 1fr 1fr; }
  .finapp { position: sticky; inset-block-start: 100px; padding: 24px; }
  .cmp-switch { display: none; }
  .cmp { gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
  .cmp-head, .cmp-row { display: grid; grid-template-columns: 190px 1fr 1fr; gap: 0; }
  .cmp-head b { padding: 18px 24px; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500; }
  .cmp-head .c-today { background: #f1f2f5; color: var(--muted); }
  .cmp-head .c-tv { background: var(--gold); color: var(--navy); font-weight: 600; }
  .cmp .cmp-row { border: 0; border-block-start: 1px solid var(--line); border-radius: 0; background: #fff; padding: 0; }
  .cmp .cmp-row > * { padding: 20px 24px; }
  .cmp .cmp-row h3 { align-self: center; }
  .cmp[data-side] .c-today, .cmp[data-side] .c-tv { display: block; }
  .cmp .cmp-row .c-today { background: var(--page); color: var(--muted); }
  .cmp .cmp-row .c-tv { background: var(--gold-ice); color: var(--text); font-weight: 500; }
  .trust-grid { grid-template-columns: 1fr 1fr 150px 1fr 1fr; }
  .stamp { grid-column: auto; order: 0; }
  .founder { grid-template-columns: 200px 1fr; gap: 56px; justify-items: start; text-align: start; }
  .f-photo { width: 200px; height: 200px; font-size: 60px; }
  .strip-in { grid-template-columns: 1fr auto; justify-items: start; text-align: start; padding-block: 64px; }
  .strip .btn { justify-self: end; }
  .foot-grid { grid-template-columns: 1fr 2fr 1.2fr; align-items: start; }
  .form { padding: 36px 34px; }
  .sticky { display: none; }
  .foot { padding-block-end: 48px; }
}
/* Desktop: one phone stays in place while the stops scroll past */
@media (min-width: 980px) {
  .stops { grid-template-columns: 1fr 340px; gap: 72px; align-items: start; }
  .stop-list { gap: 0; }
  .stop { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; background: transparent; border-color: transparent; opacity: 0.35; transition: opacity 0.4s var(--ease); }
  .stop.on { opacity: 1; }
  .phone-col { display: block; position: sticky; inset-block-start: 110px; justify-self: center; }
  .phone { margin-inline: auto; }
}
/* Mobile bar: logo, language, button, menu */
@media (max-width: 759px) {
  .bar { inset-inline: 10px; gap: 4px; height: 50px; padding-inline: 12px 6px; }
  .bar-brand span { display: none; }
  .burger { display: flex; }
  .bar-links { position: absolute; inset-inline: 0; inset-block-start: calc(100% + 8px); flex-direction: column; margin: 0; padding: 8px; background: rgba(20, 28, 55, 0.96); border-radius: 22px; border: 1px solid rgba(255, 255, 255, 0.12); display: none; }
  .bar-links.open { display: flex; }
  .bar-links a { padding: 14px 16px; font-size: 16px; }
  .btn-sm { padding-inline: 12px; font-size: 12.5px; min-height: 36px; white-space: nowrap; }
  .lang button { padding-inline: 6px; font-size: 12.5px; }
}
@media (max-width: 340px) { .bar .btn-sm { display: none; } }
