/* Shefaa landing page — shared base. Colours, fonts and shapes follow DESIGN_SPEC.md (docs/MVP plan/...). */

@font-face { font-family: "DM Sans"; src: url("fonts/DMSans-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("fonts/DMSans-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("fonts/DMSans-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("fonts/DMSans-Bold.ttf") format("truetype"); font-weight: 700 800; font-display: swap; }
@font-face { font-family: "Plex Arabic"; src: url("fonts/IBMPlexSansArabic-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Arabic"; src: url("fonts/IBMPlexSansArabic-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plex Arabic"; src: url("fonts/IBMPlexSansArabic-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plex Arabic"; src: url("fonts/IBMPlexSansArabic-Bold.ttf") format("truetype"); font-weight: 700 800; font-display: swap; }

:root {
  --primary: #3A6B57;
  --deep: #2E5646;
  --deeper: #223F33;
  --band-text: #DCE7DF;
  --band-border: #6E9483;
  --ground: #F6F7F5;
  --surface: #FFFFFF;
  --tint: #EAF1EC;
  --ink: #16231D;
  --muted: #56635C;
  --border: #E1E7E3;
  --gold-soft: #E9D8A6;
  --gold: #7A6428;
  --note-bg: #F3F1E8;
  --info: #1F4470;
  --info-bg: #E8EEF6;
  --radius-card: 14px;
  --radius-btn: 10px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: "DM Sans", "Plex Arabic", system-ui, sans-serif;
}
html[lang="ar"] { --font: "Plex Arabic", "DM Sans", system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--ground); line-height: 1.7; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0; font-weight: 700; letter-spacing: -0.01em; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { letter-spacing: 0; line-height: 1.35; }
p { margin: 0; }
.tabular { font-variant-numeric: tabular-nums; }
.container { width: min(1160px, 100% - 40px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Language: show the matching logo only */
html[lang="ar"] .only-en, html[lang="en"] .only-ar { display: none !important; }

/* Buttons (radius 10, height 52) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: var(--radius-btn); font: 700 16px/1 var(--font); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .25s var(--ease), background .25s, color .25s, box-shadow .25s; }
.btn:focus-visible, .lang-btn:focus-visible, a:focus-visible { outline: 3px solid var(--gold-soft); outline-offset: 3px; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--deep); transform: translateY(-2px); }
.btn-outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--tint); }
.btn-light { background: #fff; color: var(--deep); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.btn-ghost-light { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); }

.lang-btn { min-width: 44px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid currentColor; background: transparent; color: inherit; font: 600 14px/1 var(--font); cursor: pointer; }
html[lang="en"] .lang-btn { font-family: "Plex Arabic", sans-serif; }
html[lang="ar"] .lang-btn { font-family: "DM Sans", sans-serif; }

/* "Your turn" pill — the only pill in the design system */
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--gold-soft); color: #3D3210; font-size: 13px; font-weight: 600; }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #3D3210; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .35 } }

/* Phone frame around the real MVP screenshots */
.phone { position: relative; width: 280px; aspect-ratio: 560 / 1217; border-radius: 42px; padding: 10px; background: #0f1a15; box-shadow: 0 40px 80px -30px rgba(22,35,29,.55), 0 0 0 1px rgba(255,255,255,.06) inset; }
.phone .screen { position: relative; width: 100%; height: 100%; border-radius: 33px; overflow: hidden; background: var(--ground); }
.phone .screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: opacity .6s var(--ease), transform .8s var(--ease); }
.phone .screen img:not(.on) { opacity: 0; transform: scale(1.03); }
.phone .screen img.on { opacity: 1; transform: none; }
.screen-note { font-size: 12px; color: var(--muted); text-align: center; margin-top: 14px; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* Honest status band — shown on every preview */
.status-note { font-size: 13px; color: var(--muted); }

/* Preview label (only for choosing; remove before going live) */
.preview-tag { position: fixed; inset-block-end: 16px; inset-inline-start: 16px; z-index: 99; background: var(--ink); color: #fff; font: 600 12px/1 "DM Sans", sans-serif; padding: 10px 14px; border-radius: 8px; text-decoration: none; opacity: .88; }
.preview-tag:hover { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---- Landing page (from preview D) ---- */

  body { background: var(--surface); }
  .d-sec { padding-block: clamp(80px, 10vw, 140px); }
  .d-kicker { font-size: 14px; font-weight: 700; color: var(--primary); display: flex; align-items: center; gap: 12px; }
  .d-kicker::before { content: ""; width: 34px; height: 2px; background: currentColor; }
  .d-h2 { font-size: clamp(34px, 5vw, 62px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.04; margin-top: 18px; max-width: 18ch; }
  html[lang="ar"] .d-h2 { line-height: 1.3; letter-spacing: 0; }
  .d-sub { color: var(--muted); font-size: 18px; margin-top: 16px; max-width: 58ch; }

  /* ---------- Nav (B: sticky white) ---------- */
  .d-nav { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
  .d-nav .container { display: flex; justify-content: space-between; align-items: center; height: 72px; gap: 16px; }
  .d-nav img { height: 30px; width: auto; }
  html[lang="ar"] .d-nav img.only-ar { height: 38px; }
  .d-nav .right { display: flex; gap: 24px; align-items: center; font-size: 15px; font-weight: 500; }
  .d-nav .right a { text-decoration: none; opacity: .8; }
  .d-nav .right a:hover { opacity: 1; color: var(--primary); }
  @media (max-width: 760px) { .d-nav .right a { display: none; } }

  /* ---------- Hero (B type + A phone) ---------- */
  .d-hero { overflow: hidden; padding-block: clamp(40px, 5vw, 70px) 40px; }
  /* Only the first row is two columns (the 0% band below has its own full-width container) */
  .d-hero .d-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 30px; align-items: center; }
  .d-hero .pill { margin-bottom: 26px; }
  .d-hero h1 { font-size: clamp(46px, 6.6vw, 100px); line-height: .94; font-weight: 800; letter-spacing: -0.045em; }
  html[lang="ar"] .d-hero h1 { line-height: 1.18; letter-spacing: 0; font-size: clamp(36px, 4.8vw, 74px); }
  .d-hero h1 .line { display: block; overflow: hidden; padding-bottom: .05em; }
  .d-hero h1 .line > span { display: inline-block; transform: translateY(105%); animation: d-rise 1.1s var(--ease) forwards; }
  .d-hero h1 .line:nth-child(2) > span { animation-delay: .15s; color: var(--primary); }
  @keyframes d-rise { to { transform: none; } }
  .d-hero .lead { font-size: clamp(18px, 1.7vw, 21px); color: var(--muted); margin-top: 28px; max-width: 46ch; opacity: 0; animation: d-fade 1s .5s forwards; }
  .d-hero .lead b { color: var(--ink); font-weight: 600; }
  @keyframes d-fade { to { opacity: 1; } }
  .d-iam { margin-top: 30px; opacity: 0; animation: d-fade 1s .7s forwards; }
  .d-iam > span { display: block; font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
  .d-iam .btns { display: flex; flex-wrap: wrap; gap: 10px; }
  .d-iam .btn { min-height: 48px; font-size: 15px; padding: 0 20px; }
  .d-iam .btn svg { flex: none; }

  /* 3D phone: perspective stage, a device with a metal edge, thickness, glass glare, dynamic island,
     a second phone behind it, a glow and a floor shadow. Tilts a little with the mouse. */
  .d-stage { position: relative; width: 100%; max-width: 480px; justify-self: center; padding: 30px 0 50px; perspective: 1600px; --ry: -20deg; --rx: 8deg; }
  html[dir="rtl"] .d-stage { --ry: 20deg; }
  .d-stage::before { content: ""; position: absolute; inset: 8% 6% 14%; border-radius: 50%; background: radial-gradient(circle at 50% 45%, rgba(58,107,87,.35), rgba(58,107,87,.08) 55%, transparent 72%); filter: blur(10px); z-index: 0; }
  .d-floor { position: absolute; left: 50%; bottom: 18px; width: 300px; height: 46px; margin-left: -150px; border-radius: 50%; background: radial-gradient(ellipse at center, rgba(22,35,29,.38), transparent 70%); filter: blur(6px); animation: d-floor 7s ease-in-out infinite; }
  @keyframes d-floor { 50% { transform: scale(.86); opacity: .7; } }
  .d-float { position: relative; z-index: 1; transform-style: preserve-3d; animation: d-float 7s ease-in-out infinite; }
  @keyframes d-float { 50% { translate: 0 -16px; } }
  .d-tilt { position: relative; width: 280px; margin-inline: auto; transform-style: preserve-3d; transform: rotateY(var(--ry)) rotateX(var(--rx)) rotateZ(1deg); transition: transform .6s var(--ease); }
  .d-device { position: relative; width: 100%; aspect-ratio: 560 / 1217; border-radius: 46px; padding: 11px; transform-style: preserve-3d;
    background: linear-gradient(145deg, #4a5d54 0%, #17231d 18%, #0b120f 55%, #26352e 85%, #55695f 100%);
    box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.16), inset 0 0 0 4px #0b120f,
      1px 1px 0 #0d1612, 2px 2px 0 #0f1a15, 3px 3px 0 #111d17, 4px 4px 0 #13201a, 5px 5px 0 #15231c, 6px 6px 0 #17251e, 7px 7px 0 #192820,
      40px 60px 80px -30px rgba(22,35,29,.6), 10px 20px 30px -10px rgba(22,35,29,.35); }
  html[dir="rtl"] .d-device { box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.16), inset 0 0 0 4px #0b120f,
      -1px 1px 0 #0d1612, -2px 2px 0 #0f1a15, -3px 3px 0 #111d17, -4px 4px 0 #13201a, -5px 5px 0 #15231c, -6px 6px 0 #17251e, -7px 7px 0 #192820,
      -40px 60px 80px -30px rgba(22,35,29,.6), -10px 20px 30px -10px rgba(22,35,29,.35); }
  .d-device .btn-side { position: absolute; width: 4px; border-radius: 2px; background: linear-gradient(90deg, #0b120f, #3d4f46); inset-inline-end: -3px; }
  .d-device .btn-side.b1 { top: 22%; height: 64px; } .d-device .btn-side.b2 { top: 14%; height: 30px; inset-inline-start: -3px; inset-inline-end: auto; } .d-device .btn-side.b3 { top: 21%; height: 46px; inset-inline-start: -3px; inset-inline-end: auto; }
  .d-device .screen { position: relative; width: 100%; height: 100%; border-radius: 36px; overflow: hidden; background: var(--ground); }
  .d-device .screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: opacity .7s var(--ease), transform .9s var(--ease); }
  .d-device .screen img:not(.on) { opacity: 0; transform: scale(1.04); }
  .d-device .island { position: absolute; z-index: 3; top: 9px; left: 50%; width: 82px; height: 22px; margin-left: -41px; border-radius: 12px; background: #050807; }
  .d-device .glare { position: absolute; inset: 0; z-index: 4; border-radius: 36px; pointer-events: none; background: linear-gradient(115deg, rgba(255,255,255,.28) 0%, rgba(255,255,255,.06) 28%, transparent 42%, transparent 70%, rgba(255,255,255,.07) 100%); mix-blend-mode: screen; }
  .d-back { position: absolute; z-index: 0; top: 7%; inset-inline-end: -4%; width: 220px; opacity: .9; transform: rotateY(var(--ry)) rotateX(var(--rx)) translateZ(-140px) rotateZ(5deg); filter: saturate(.85) blur(.4px); }
  html[dir="rtl"] .d-back { transform: rotateY(var(--ry)) rotateX(var(--rx)) translateZ(-140px) rotateZ(-5deg); }
  .d-back .d-device { box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.12), 20px 40px 60px -30px rgba(22,35,29,.5); border-radius: 38px; padding: 9px; }
  .d-back .d-device .screen { border-radius: 30px; }
  .d-chip { position: absolute; z-index: 5; display: flex; align-items: center; gap: 10px; background: #fff; color: var(--ink); border: 1px solid var(--border); border-radius: 12px; padding: 11px 15px; font-size: 14px; font-weight: 600; box-shadow: 0 20px 40px -18px rgba(22,35,29,.4); white-space: nowrap; animation: d-float 6s ease-in-out infinite; }
  .d-chip .ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; flex: none; }
  .d-chip small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; line-height: 1.3; }
  .d-chip.c1 { top: 16%; inset-inline-start: 0; animation-delay: -2s; }
  .d-chip.c2 { top: 50%; inset-inline-end: 0; animation-delay: -4s; }
  .d-chip.c3 { bottom: 14%; inset-inline-start: 2%; }
  .ic.pt { background: var(--tint); color: var(--primary); }
  .ic.hs { background: var(--info-bg); color: var(--info); }
  .ic.bk { background: var(--note-bg); color: var(--gold); }
  @media (max-width: 980px) { .d-hero .d-hero-grid { grid-template-columns: 1fr; } }
  @media (max-width: 520px) { .d-tilt { width: 220px; } .d-back { width: 170px; inset-inline-end: 0; } .d-floor { width: 230px; margin-left: -115px; } .d-chip { font-size: 12px; padding: 8px 11px; } .d-chip .ic { width: 24px; height: 24px; } .d-chip.c3 { display: none; } }

  /* ---------- 0% band (B) ---------- */
  .d-zero { margin-top: clamp(30px, 5vw, 60px); border-radius: 28px; background: linear-gradient(160deg, var(--primary), var(--deep) 60%, var(--deeper)); color: #fff; overflow: hidden; display: grid; grid-template-columns: auto 1fr; gap: clamp(30px, 5vw, 80px); align-items: center; padding: clamp(36px, 5vw, 64px) clamp(24px, 5vw, 64px); }
  .d-zero .big { font-size: clamp(110px, 18vw, 260px); font-weight: 800; line-height: .8; letter-spacing: -0.06em; background: linear-gradient(90deg, #fff 0%, #fff 45%, var(--band-border) 50%, #fff 55%, #fff 100%); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: d-shine 6s linear infinite; direction: ltr; padding: .04em .1em .04em .02em; }
  @keyframes d-shine { from { background-position: 100% 0; } to { background-position: -200% 0; } }
  .d-zero h2 { font-size: clamp(26px, 3vw, 40px); font-weight: 800; }
  .d-zero p { color: var(--band-text); font-size: 18px; margin-top: 12px; max-width: 46ch; }
  .d-zero .facts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
  .d-zero .facts span { border: 1px solid rgba(255,255,255,.3); border-radius: 10px; padding: 8px 14px; font-size: 14px; font-weight: 600; }
  .d-zero > div:last-child { min-width: 0; }
  @media (max-width: 900px) { .d-zero { grid-template-columns: 1fr; gap: 20px; } .d-zero .big { font-size: clamp(110px, 30vw, 200px); } }

  /* ---------- One minute: lit words (B) ---------- */
  .d-minute { background: var(--deep); color: #fff; margin-top: clamp(60px, 8vw, 100px); }
  .d-minute .d-kicker { color: var(--gold-soft); }
  .words { margin-top: 30px; font-size: clamp(24px, 3vw, 42px); font-weight: 700; line-height: 1.24; letter-spacing: -0.02em; max-width: 34ch; }
  html[lang="ar"] .words { line-height: 1.6; letter-spacing: 0; }
  .words .w { color: rgba(255,255,255,.18); transition: color .35s; }
  .words .w.lit { color: #fff; }
  .words .w.hl.lit { color: var(--gold-soft); }

  /* ---------- Problem numbers (B) ---------- */
  .d-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 64px; border-top: 1px solid var(--ink); }
  .d-stat { padding: 34px 30px 0 0; border-inline-end: 1px solid var(--border); }
  html[dir="rtl"] .d-stat { padding: 34px 0 0 30px; }
  .d-stat + .d-stat { padding-inline-start: 30px; }
  .d-stat:last-child { border-inline-end: 0; }
  .d-stat .n { font-size: clamp(60px, 7.5vw, 112px); font-weight: 800; letter-spacing: -0.05em; line-height: 1; direction: ltr; unicode-bidi: isolate; display: inline-block; }
  .d-stat.us .n { color: var(--primary); }
  .d-stat p { margin-top: 16px; font-size: 17px; color: var(--muted); max-width: 28ch; }
  .d-source { margin-top: 40px; font-size: 12px; color: var(--muted); }
  @media (max-width: 860px) { .d-stats { grid-template-columns: 1fr; } .d-stat, html[dir="rtl"] .d-stat, .d-stat + .d-stat { padding: 30px 0; border-inline-end: 0; border-bottom: 1px solid var(--border); } }

  /* ---------- For each side (new: same questions for all three) ---------- */
  .d-sides { background: var(--ground); border-block: 1px solid var(--border); }
  .d-sides-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
  .d-side { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; scroll-margin-top: 90px; transition: transform .35s var(--ease), box-shadow .35s; }
  .d-side:hover { transform: translateY(-5px); box-shadow: 0 30px 60px -40px rgba(46,86,70,.55); }
  .d-side .top { padding: 28px 28px 24px; border-top: 6px solid var(--primary); }
  .d-side.hs .top { border-top-color: var(--info); }
  .d-side.bk .top { border-top-color: var(--gold); }
  .d-side .ic { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; }
  .d-side .who { font-size: 14px; font-weight: 700; margin-top: 18px; color: var(--primary); }
  .d-side.hs .who { color: var(--info); }
  .d-side.bk .who { color: var(--gold); }
  .d-side h3 { font-size: clamp(24px, 2.3vw, 30px); font-weight: 800; letter-spacing: -0.02em; margin-top: 6px; }
  html[lang="ar"] .d-side h3 { letter-spacing: 0; }
  .d-side dl { margin: 0; padding: 0 28px 28px; display: grid; gap: 0; }
  .d-side dt { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; padding-top: 18px; border-top: 1px solid var(--border); }
  html[lang="ar"] .d-side dt { text-transform: none; letter-spacing: 0; font-size: 14px; }
  .d-side dd { margin: 6px 0 18px; font-size: 16px; }
  .d-side dd.not { color: var(--muted); }
  @media (max-width: 960px) { .d-sides-grid { grid-template-columns: 1fr; } }

  /* ---------- Journey: sticky phone + steps (A) ---------- */
  .d-journey .grid { display: grid; grid-template-columns: 1fr 360px; gap: 60px; margin-top: 50px; }
  .d-journey .sticky { position: sticky; top: 110px; align-self: start; display: grid; justify-items: center; }
  .d-journey .phone { width: 290px; }
  .d-journey .phone img.fit, .d-step .phone img.fit { object-fit: contain; background: #fff; }
  .d-steps { display: grid; gap: 22vh; padding-block: 8vh 20vh; }
  .d-step { position: relative; padding-inline-start: 84px; opacity: .35; transition: opacity .5s var(--ease); }
  .d-step.active { opacity: 1; }
  .d-step .num { position: absolute; inset-inline-start: 0; top: 0; width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; font-weight: 800; background: var(--tint); color: var(--primary); transition: background .4s, color .4s, transform .4s var(--ease); }
  .d-step.active .num { background: var(--gold-soft); color: #3D3210; transform: scale(1.08); }
  .d-step h3 { font-size: clamp(24px, 2.6vw, 34px); font-weight: 800; }
  .d-step p { margin-top: 12px; font-size: 18px; color: var(--muted); max-width: 44ch; }
  .d-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
  .d-tag { font-size: 13px; font-weight: 600; padding: 4px 12px; border-radius: 8px; background: var(--tint); color: var(--primary); }
  .d-tag.hs { background: var(--info-bg); color: var(--info); }
  .d-tag.bk { background: var(--note-bg); color: var(--gold); }
  .d-step .mobile-shot { display: none; }
  @media (max-width: 900px) {
    .d-journey .grid { grid-template-columns: 1fr; }
    .d-journey .sticky { display: none; }
    .d-steps { gap: 64px; padding-block: 0; }
    .d-step { opacity: 1; }
    .d-step .mobile-shot { display: block; margin-top: 24px; }
    .d-step .mobile-shot .phone { width: 220px; }
  }

  /* ---------- Safety net (A, compact) ---------- */
  .d-net { background: var(--ground); border-block: 1px solid var(--border); }
  .d-net .container { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; align-items: center; }
  .d-net .phone { width: 260px; justify-self: center; }
  .d-net-flow { margin-top: 32px; display: grid; gap: 12px; }
  .d-net-flow div { display: flex; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 15px 18px; font-weight: 500; }
  .d-net-flow span { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--tint); color: var(--primary); font-weight: 800; }
  @media (max-width: 900px) { .d-net .container { grid-template-columns: 1fr; } .d-net .phone { order: 2; } }

  /* ---------- Promises (B rows) ---------- */
  .d-rows { margin-top: 56px; border-top: 1px solid var(--ink); }
  .d-row { display: grid; grid-template-columns: 70px 1fr 1fr; gap: 24px; padding-block: 28px; border-bottom: 1px solid var(--border); align-items: baseline; transition: background .3s, padding .3s var(--ease); }
  .d-row:hover { background: var(--ground); padding-inline: 16px; }
  .d-row .i { font-size: 14px; font-weight: 700; color: var(--primary); }
  .d-row h3 { font-size: clamp(22px, 2.4vw, 32px); font-weight: 800; letter-spacing: -0.02em; }
  html[lang="ar"] .d-row h3 { letter-spacing: 0; }
  .d-row p { color: var(--muted); font-size: 17px; }
  @media (max-width: 760px) { .d-row { grid-template-columns: 1fr; gap: 8px; } }

  /* ---------- Where we are (A road) ---------- */
  .d-road { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 56px; }
  .d-road::before { content: ""; position: absolute; top: 11px; inset-inline: 0; height: 2px; background: var(--border); }
  .d-road .bar { position: absolute; top: 11px; inset-inline-start: 0; height: 2px; width: 0; background: var(--primary); transition: width 2s var(--ease); }
  .d-road.in .bar { width: 14%; }
  .d-road-item { position: relative; padding-top: 40px; }
  .d-road-item::before { content: ""; position: absolute; top: 4px; inset-inline-start: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 2px solid var(--band-border); }
  .d-road-item.done::before { background: var(--primary); border-color: var(--primary); }
  .d-road-item b { font-size: 14px; color: var(--primary); }
  .d-road-item h4 { font-size: 19px; margin-top: 6px; }
  .d-road-item p { color: var(--muted); font-size: 15px; margin-top: 6px; }
  @media (max-width: 800px) { .d-road { grid-template-columns: 1fr 1fr; row-gap: 36px; } .d-road::before, .d-road .bar { display: none; } }

  /* ---------- End (B) + footer ---------- */
  .d-end { background: var(--ground); text-align: center; border-top: 1px solid var(--border); }
  .d-end .logo-ar { height: clamp(90px, 13vw, 160px); width: auto; margin-inline: auto; }
  .d-end h2 { font-size: clamp(34px, 5vw, 62px); font-weight: 800; letter-spacing: -0.03em; margin-top: 28px; }
  html[lang="ar"] .d-end h2 { letter-spacing: 0; }
  .d-end p { color: var(--muted); font-size: 19px; margin: 14px auto 0; max-width: 50ch; }
  .d-end .actions { margin-top: 32px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
  .owner-note { display: inline-block; margin-top: 18px; font-size: 13px; color: var(--gold); background: var(--note-bg); border: 1.5px dashed var(--gold); border-radius: 8px; padding: 6px 12px; }
  footer { padding-block: 40px 70px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); }
  footer .container { display: grid; gap: 18px; }
  footer .top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; align-items: center; }
  footer img { height: 30px; width: auto; }
  .d-mail { display: block; width: 100%; margin-top: 12px; color: var(--muted); font-size: 15px; }

/* 404 page */
.nf { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 24px; }
.nf-box { display: grid; gap: 14px; justify-items: center; }
.nf-box img { height: 54px; width: auto; }
.nf-box h1 { font-size: 34px; margin-top: 16px; }
.nf-small { color: var(--muted); font-size: 14px; }
