/* The homepage (/ and /ar/): concept B, "the living mall", chosen by the owner on 2026-11-22.
   Palette: lapis and gold on marble. The hero is a live floor plan of the sample mall; a click on a shop
   opens its own small set of books. Then one lease is followed through the books as you scroll, the
   tenant app, the same screen in both languages, the numbers and the rules, and how to start.
   Motion lives in assets/js/home.js and is skipped entirely under reduced motion. */

.home {
  --marble: #F6F7FB; --surface: #FFFFFF;
  --ink: #0F1433; --ink-2: #1A2150; --body: #4A5072; --soft: #7E84A3; --line: #E1E4EF;
  --lapis: #3049D6; --lapis-2: #5A6FF0; --lapis-tint: #E3E8FF; --lapis-wash: #F0F3FF;
  --gold: #D6A043; --gold-soft: #FAF0DB; --coral: #E9806E;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  background: var(--marble);
}
.home .site-header { background: rgba(246, 247, 251, 0.9); }

.lp-wrap { width: 100%; max-width: calc(1312px + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.lp-sec { padding-block: clamp(80px, 9vw, 132px); }
.lp-sec.is-white { background: var(--surface); }
.lp-sec.is-wash { background: var(--lapis-wash); }
.lp-sec.is-ink { background: var(--ink); color: #EEF0FA; }
.lp-h2 { margin: 0; font-size: clamp(32px, 3.6vw, 52px); line-height: 1.06; font-weight: 600; letter-spacing: -0.035em; text-wrap: balance; }
html[lang="ar"] .lp-h2 { line-height: 1.35; letter-spacing: 0; }
.lp-lead { max-width: 600px; margin: 18px 0 0; font-size: clamp(17px, 1.3vw, 19px); line-height: 1.65; color: var(--body); text-wrap: pretty; }
html[lang="ar"] .lp-lead { line-height: 1.9; }
.is-ink .lp-lead { color: #AEB5D8; }
.lp-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.lp-head.is-center { margin-inline: auto; text-align: center; }
.lp-head.is-center .lp-lead { margin-inline: auto; }

.home .btn { border-radius: 14px; transition: transform .2s var(--ease), box-shadow .2s, background .2s, border-color .2s, color .2s; }
.btn-lapis { background: var(--lapis); color: #fff; box-shadow: 0 8px 24px rgba(48, 73, 214, 0.28); }
.btn-lapis:hover { background: #2639B8; color: #fff; transform: translateY(-2px); box-shadow: 0 14px 32px rgba(48, 73, 214, 0.34); }
.btn-plain { background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
.btn-plain:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #E2B25C; color: var(--ink); transform: translateY(-2px); }
.btn-outline-light { border: 1px solid rgba(238, 240, 250, 0.35); color: #fff; }
.btn-outline-light:hover { border-color: #fff; color: #fff; }

/* ---------- Hero: the living mall ---------- */

.lp-hero { position: relative; overflow: hidden; padding-block: clamp(40px, 5vw, 72px) clamp(64px, 7vw, 104px); }
.lp-hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 1000px; max-height: 1000px; border-radius: 50%; background: radial-gradient(closest-side, rgba(90, 111, 240, 0.14), rgba(90, 111, 240, 0)); pointer-events: none; }
[dir="rtl"] .lp-hero::before { inset: -20% auto auto -10%; }
.lp-hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 4vw, 64px); align-items: center; }
.lp-hero h1 { margin: 0; font-size: clamp(42px, 4.8vw, 74px); line-height: 1.0; font-weight: 600; letter-spacing: -0.045em; text-wrap: balance; }
html[lang="ar"] .lp-hero h1 { font-size: clamp(38px, 4.2vw, 64px); line-height: 1.3; letter-spacing: 0; }
.lp-hero .lp-lead { margin-top: 22px; }
.lp-hero .button-row { margin-top: 32px; }
.lp-note { margin: 12px 0 0; font-size: 14px; color: var(--soft); }
html[lang="ar"] .lp-note { font-size: 15px; }
.lp-first { display: flex; align-items: center; gap: 10px; margin: 28px 0 0; font-size: 15px; color: var(--body); }
.lp-first i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); }

.map-card { position: relative; padding: 18px; border-radius: 28px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 2px 4px rgba(15, 20, 51, 0.04), 0 40px 90px rgba(15, 20, 51, 0.12); transform-style: preserve-3d; will-change: transform; }
.map-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.lenses { display: inline-flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--marble); }
.lenses button { padding: 9px 15px; border: 0; border-radius: 10px; background: transparent; color: var(--body); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; transition: background .25s, color .25s; }
.lenses button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.flip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; }
.flip:hover { border-color: var(--ink); }
.flip:lang(ar) { font-family: var(--font-ar); }
.stage { position: relative; perspective: 1600px; }
.plan { display: block; width: 100%; height: auto; transition: transform .9s var(--ease); }
.flipping .plan { transform: rotateY(180deg) scale(0.92) !important; }
.u { fill: #EEF0F7; stroke: #CBD1E6; stroke-width: 1.5; cursor: pointer; transition: fill .6s var(--ease), stroke .3s, opacity .6s; }
.u:hover, .u:focus { stroke: var(--ink); stroke-width: 2.5; outline: none; }
.u.occ { fill: var(--lapis-tint); stroke: #A9B8F5; }
.u.vac { fill: #fff; stroke-dasharray: 6 5; }
.u.notice { fill: var(--gold-soft); stroke: #E8C27A; }
.u.dim { opacity: 0.22; }
.u.me { fill: var(--lapis); stroke: var(--ink); }
.u.pulse { fill: var(--gold) !important; }
.u.sel { stroke: var(--ink); stroke-width: 3; }
.corr { fill: #F8F9FC; }
.atrium { fill: #fff; stroke: #CBD1E6; stroke-width: 1.5; }
.legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 10px; font-size: 13px; color: var(--body); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 14px; height: 14px; border-radius: 4px; border: 1px solid #CBD1E6; }
.hint { position: absolute; inset-block-start: 14px; inset-inline-start: 50%; translate: -50% 0; padding: 6px 12px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 500; pointer-events: none; animation: hint 2.4s var(--ease) 2.2s both; }
[dir="rtl"] .hint { translate: 50% 0; }
@keyframes hint { 0% { opacity: 0; transform: translateY(6px); } 15%, 80% { opacity: 1; transform: none; } 100% { opacity: 0; } }

.tip { position: absolute; z-index: 6; min-width: 190px; padding: 11px 13px; border-radius: 13px; background: var(--ink); color: #fff; font-size: 13px; pointer-events: none; opacity: 0; transform: translate(-50%, calc(-100% - 12px)); transition: opacity .15s; }
.tip.on { opacity: 1; }
.tip b { display: block; margin-bottom: 3px; font-size: 15px; }
.tip span { color: #AEB5D8; }
.event { position: absolute; z-index: 5; padding: 7px 11px; border-radius: 11px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(15, 20, 51, 0.16); font-size: 12.5px; font-weight: 500; white-space: nowrap; transform: translate(-50%, -100%); animation: pop 2.6s var(--ease) forwards; pointer-events: none; }
.event em { font-style: normal; color: var(--lapis); font-weight: 600; }
@keyframes pop { 0% { opacity: 0; transform: translate(-50%, -70%) scale(0.85); } 12% { opacity: 1; transform: translate(-50%, -100%) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -130%); } }
.side { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-top: 10px; padding: 12px 16px; border-radius: 14px; background: var(--marble); border: 1px solid var(--line); }
.side small { font-size: 13px; color: var(--soft); }
.side b { font-size: 20px; font-variant-numeric: tabular-nums; }
.side p { flex-basis: 100%; margin: 0; font-size: 13px; line-height: 1.5; color: var(--body); }

/* A shop's own books, opened from the map */
.drawer { position: absolute; z-index: 8; inset-block: 12px; inset-inline-end: 12px; width: min(340px, 86%); padding: 20px; overflow: auto; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(15, 20, 51, 0.25); transform: translateX(calc(100% + 24px)); visibility: hidden; transition: transform .55s var(--ease), visibility 0s linear .55s; }
[dir="rtl"] .drawer { transform: translateX(calc(-100% - 24px)); }
.drawer.open { transform: none !important; visibility: visible; transition: transform .55s var(--ease), visibility 0s; }
.drawer-x { position: absolute; inset-block-start: 14px; inset-inline-end: 14px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--marble); color: var(--ink); font-size: 18px; cursor: pointer; }
.drawer small { display: block; font-size: 12px; color: var(--soft); }
.drawer h3 { margin: 2px 0 0; font-size: 22px; letter-spacing: -0.02em; }
.drawer dl { display: grid; grid-template-columns: 1fr auto; gap: 8px 14px; margin: 16px 0 0; padding: 14px 0; border-block: 1px solid var(--line); font-size: 13.5px; }
.drawer dt { color: var(--soft); }
.drawer dd { margin: 0; text-align: end; font-weight: 500; font-variant-numeric: tabular-nums; }
.drawer h4 { margin: 16px 0 8px; font-size: 13px; color: var(--body); }
.cheques { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; }
.cheques i { height: 22px; border-radius: 5px; background: var(--lapis-tint); }
.cheques i.done { background: var(--lapis); }
.cheques i.next { background: var(--gold); }
.inv { display: grid; gap: 6px; }
.inv div { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; border-radius: 10px; background: var(--marble); font-size: 13px; font-variant-numeric: tabular-nums; }
.chip { padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; }
.chip.paid { background: var(--lapis-tint); color: var(--lapis); }
.chip.due { background: var(--gold-soft); color: #8A5A00; }
.chip.late { background: #FCE6E1; color: #A6402E; }
.drawer .owe { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: var(--ink); color: #fff; }
.drawer .owe b { font-size: 20px; color: var(--gold); font-variant-numeric: tabular-nums; }
.drawer .btn { width: 100%; margin-top: 12px; min-height: 44px; font-size: 14px; }

/* ---------- Follow one lease: a pinned story ---------- */

.story { position: relative; padding-block: clamp(80px, 9vw, 120px); }
.story-live .story { height: 520vh; padding: 0; }
.story-pin { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.story-live .story-pin { position: sticky; top: 0; height: 100vh; }
.steps-box { position: relative; padding-inline-start: 36px; }
.lsteps { margin: 0; padding: 0; list-style: none; }
.steps-box .rail { position: absolute; inset-block: 8px; inset-inline-start: 0; width: 2px; background: var(--line); }
.steps-box .rail b { position: absolute; inset: 0 0 auto; height: 0; background: var(--lapis); }
.lsteps li { padding-block: 14px; opacity: 0.35; transition: opacity .4s var(--ease); }
.lsteps li.on { opacity: 1; }
.lsteps small { display: block; font-size: 13px; font-weight: 600; color: var(--lapis); }
.lsteps h3 { margin: 4px 0 0; font-size: clamp(22px, 2vw, 28px); line-height: 1.2; letter-spacing: -0.02em; }
html[lang="ar"] .lsteps h3 { line-height: 1.5; letter-spacing: 0; }
.lsteps p { max-height: 0; margin: 0; overflow: hidden; font-size: 16.5px; line-height: 1.6; color: var(--body); transition: max-height .5s var(--ease), margin .5s var(--ease); }
html[lang="ar"] .lsteps p { line-height: 1.85; }
.lsteps li.on p { max-height: 140px; margin-top: 8px; }
.docs { position: relative; display: grid; gap: 20px; justify-items: center; perspective: 1400px; }
.story-live .docs { display: block; height: 540px; }
.doc { position: relative; width: min(460px, 100%); height: max-content; padding: 26px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 40px 90px rgba(15, 20, 51, 0.16); }
.doc-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.doc-h b { font-size: 19px; }
.tag { padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--lapis-tint); color: var(--lapis); }
.tag.gold { background: var(--gold-soft); color: #8A5A00; }
.rows { display: grid; grid-template-columns: 1fr auto; gap: 12px 20px; margin: 16px 0 0; font-size: 15px; }
.rows dt { color: var(--soft); }
.rows dd { margin: 0; text-align: end; font-weight: 500; font-variant-numeric: tabular-nums; }
.total { display: flex; justify-content: space-between; margin-top: 18px; padding-top: 14px; border-top: 2px solid var(--ink); font-size: 21px; font-weight: 600; font-variant-numeric: tabular-nums; }
.doc.cheque { background: linear-gradient(135deg, #FBFCFF, #E9EDFF); border-color: #D3DAFB; }
.cheque .line { display: flex; justify-content: space-between; align-items: end; margin-top: 16px; padding-bottom: 6px; border-bottom: 1px dashed #AEB8E8; font-size: 15px; }
.cheque .amt { font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; }
.cheque .micr { margin-top: 20px; font-family: var(--mono); font-size: 13px; letter-spacing: 0.18em; color: var(--soft); direction: ltr; }
.stamp { position: absolute; inset-block-end: 16px; inset-inline-end: 24px; padding: 6px 14px; border: 3px solid var(--lapis); border-radius: 10px; color: var(--lapis); font-weight: 600; font-size: 20px; letter-spacing: 0.08em; rotate: -10deg; }
.story-live .stamp { opacity: 0; }
.taccts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.tacct { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.tacct h4 { margin: 0; padding: 9px 12px; font-size: 12.5px; background: var(--marble); color: var(--body); }
.tacct div { display: grid; grid-template-columns: 1fr 1fr; min-height: 74px; }
.tacct div > span { padding: 9px 12px; font-size: 14px; font-variant-numeric: tabular-nums; }
.tacct div > span + span { border-inline-start: 1px solid var(--line); text-align: end; }
.story-live .doc { position: absolute; inset: 0; margin: auto; }
.story-live .entry { opacity: 0; }
.doc .owe { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; padding: 14px 16px; border-radius: 14px; background: var(--ink); color: #fff; }
.doc .owe b { font-size: 22px; color: var(--gold); font-variant-numeric: tabular-nums; }
.bars { display: grid; gap: 12px; margin-top: 18px; }
.bar-row { display: grid; grid-template-columns: 140px 1fr auto; gap: 12px; align-items: center; font-size: 14px; }
.bar-row i { display: block; height: 12px; border-radius: 6px; background: var(--lapis); transform-origin: left; }
[dir="rtl"] .bar-row i { transform-origin: right; }
.bar-row i.out { background: var(--coral); }
.bar-row span:last-child { font-weight: 500; font-variant-numeric: tabular-nums; }

/* ---------- The tenant app ---------- */

.lp-app { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.lp-phones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 26px); align-items: start; padding-top: 40px; }
.lp-phones figure { margin: 0; will-change: transform; }
.lp-phones figure:nth-child(2) { margin-top: -40px; }
.lp-phone { padding: 8px; border-radius: 36px; background: #0E1230; box-shadow: inset 0 0 0 2px #2A3166, 0 30px 70px rgba(15, 20, 51, 0.22); }
.lp-phone img { width: 100%; border-radius: 28px; }
.lp-phones figcaption { margin-top: 14px; font-size: 15px; font-weight: 600; text-align: center; color: var(--body); }

/* ---------- One screen, two languages ---------- */

.compare { position: relative; overflow: hidden; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: 0 40px 100px rgba(15, 20, 51, 0.14); cursor: ew-resize; user-select: none; touch-action: pan-y; }
.compare img { display: block; width: 100%; height: auto; pointer-events: none; }
.compare .c-ar { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--x, 50%)); }
.compare .handle { position: absolute; inset-block: 0; left: var(--x, 50%); width: 2px; background: var(--lapis); }
.compare .handle b { position: absolute; top: 50%; left: 50%; translate: -50% -50%; display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: var(--lapis); color: #fff; font-size: 18px; box-shadow: 0 10px 30px rgba(48, 73, 214, 0.35); }
.compare .lbl { position: absolute; top: 16px; padding: 6px 12px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 500; }
.compare .lbl.l { left: 16px; } .compare .lbl.r { right: 16px; font-family: var(--font-ar); }

/* ---------- Numbers and rules (navy) ---------- */

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.stat { padding: 26px; border-radius: 22px; background: var(--ink-2); border: 1px solid rgba(238, 240, 250, 0.08); }
.stat small { font-size: 14px; color: #AEB5D8; }
.stat b { display: block; margin-top: 8px; font-size: clamp(32px, 3.2vw, 48px); font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; direction: ltr; text-align: start; }
[dir="rtl"] .stat b { text-align: right; }
.meter { height: 6px; margin-top: 16px; border-radius: 3px; background: rgba(238, 240, 250, 0.1); overflow: hidden; }
.meter i { display: block; width: 0; height: 100%; border-radius: 3px; background: #8FA2FF; transition: width 1.6s var(--ease); }
.stat.warn .meter i { background: var(--gold); }
.stat-note { margin: 14px 0 0; font-size: 13px; color: #AEB5D8; }
.rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 56px); margin: clamp(56px, 6vw, 88px) 0 0; padding: 0; list-style: none; }
.rules li { padding-block: 24px; border-top: 1px solid rgba(238, 240, 250, 0.12); }
.rules svg { width: 26px; height: 26px; fill: none; stroke: #8FA2FF; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rules h3 { margin: 14px 0 0; font-size: 18px; font-weight: 600; color: #fff; }
.rules p { margin: 6px 0 0; font-size: 15.5px; line-height: 1.65; color: #AEB5D8; }
html[lang="ar"] .rules p { font-size: 16.5px; line-height: 1.85; }

/* ---------- Getting started (a real sequence) ---------- */

.lp-steps-box { position: relative; }
.lp-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); margin: 0; padding: 0; list-style: none; counter-reset: s; }
.lp-steps-box::before { content: ""; position: absolute; inset-block-start: 21px; inset-inline: 22px; height: 2px; background: var(--line); }
.lp-steps-box .draw { position: absolute; inset-block-start: 21px; inset-inline-start: 22px; height: 2px; width: calc(100% - 44px); background: var(--lapis); transform: scaleX(0); transform-origin: left; }
[dir="rtl"] .lp-steps-box .draw { transform-origin: right; }
.lp-steps li { position: relative; padding-top: 64px; counter-increment: s; }
.lp-steps li::before { content: counter(s); position: absolute; inset-block-start: 0; inset-inline-start: 0; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--surface); border: 2px solid var(--lapis); color: var(--lapis); font-weight: 600; }
.lp-steps h3 { margin: 0; font-size: 19px; line-height: 1.35; }
.lp-steps p { margin: 8px 0 0; font-size: 16px; line-height: 1.65; color: var(--body); }
html[lang="ar"] .lp-steps p { line-height: 1.85; }

/* ---------- Also from TriTech ---------- */

.lp-also { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 40px); }
.lp-also > div { padding: clamp(28px, 3.5vw, 44px); border-radius: 24px; background: var(--surface); border: 1px solid var(--line); }
.lp-also h3 { margin: 0; font-size: 24px; letter-spacing: -0.01em; }
.lp-also p { margin: 12px 0 0; font-size: 16px; line-height: 1.7; color: var(--body); }
html[lang="ar"] .lp-also p { font-size: 17px; line-height: 1.9; }
.lp-also small { display: block; margin-top: 12px; font-size: 13.5px; color: var(--soft); }
.lp-also .btn { margin-top: 22px; }
.lp-links { margin: 18px 0 0; padding: 0; list-style: none; }
.lp-links a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 14px; border-top: 1px solid var(--line); color: var(--ink); font-weight: 500; }
.lp-links li:last-child a { border-bottom: 1px solid var(--line); }
.lp-links a:hover { color: var(--lapis); }
.lp-links svg { width: 16px; height: 16px; color: var(--lapis); }
[dir="rtl"] .lp-links svg { transform: scaleX(-1); }

/* ---------- Contact ---------- */

.lp-contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
.lp-contact .lp-h2 { color: #fff; }
.lp-channels { margin: 32px 0 0; padding: 0; list-style: none; }
.lp-channels li { display: flex; justify-content: space-between; gap: 16px; padding-block: 14px; border-top: 1px solid rgba(238, 240, 250, 0.12); color: #AEB5D8; }
.lp-channels li:last-child { border-bottom: 1px solid rgba(238, 240, 250, 0.12); }
.lp-channels a { color: #fff; }
.lp-channels a:hover { color: #B9C4FF; }
.lp-form { padding: clamp(24px, 3vw, 40px); border-radius: 24px; background: var(--surface); color: var(--ink); }

/* ---------- Narrow screens ---------- */

@media (max-width: 1023px) {
  .lp-hero-grid, .lp-app, .lp-contact { grid-template-columns: minmax(0, 1fr); }
  .story { height: auto; }
  .story-pin { position: static; height: auto; grid-template-columns: minmax(0, 1fr); }
  .steps-box { display: none; }
  .docs { height: auto; display: grid; gap: 20px; padding-block: 24px; }
  .doc { position: static; }
  .entry, .stamp { opacity: 1; }
  .stats, .rules { grid-template-columns: minmax(0, 1fr); }
  .lp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .lp-steps-box::before, .lp-steps-box .draw { display: none; }
}
@media (max-width: 720px) {
  .drawer { position: fixed; inset: auto 10px 10px 10px; width: auto; max-height: 78vh; transform: translateY(110%) !important; }
  .drawer.open { transform: none !important; visibility: visible; transition: transform .55s var(--ease), visibility 0s; }
  .lp-phones { gap: 8px; } .lp-phone { padding: 4px; border-radius: 18px; } .lp-phone img { border-radius: 14px; } .lp-phones figcaption { font-size: 12px; }
  .lp-phones figure:nth-child(2) { margin-top: 0; }
  .lp-steps, .lp-also { grid-template-columns: minmax(0, 1fr); }
  .lp-hero .button-row .btn { flex: 1 1 100%; }
  .lp-hero h1 { font-size: 38px; } html[lang="ar"] .lp-hero h1 { font-size: 34px; }
  .bar-row { grid-template-columns: 100px 1fr auto; }
  .wa-float { width: 46px; height: 46px; } .wa-float svg { width: 25px; height: 25px; }
}
@media (prefers-reduced-motion: reduce) {
  .home .btn, .plan, .u, .drawer, .meter i { transition: none; }
  .hint, .event { display: none; }
  .story { height: auto; } .story-pin { position: static; height: auto; }
  .docs { height: auto; display: grid; gap: 20px; } .doc { position: static; }
  .entry, .stamp { opacity: 1; }
}

/* ---------- One price for every unit, with a calculator ---------- */

.price-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.price-ticks { display: grid; gap: 12px; margin: 28px 0 0; padding: 0; list-style: none; }
.price-ticks li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; font-size: 16.5px; line-height: 1.55; }
html[lang="ar"] .price-ticks li { font-size: 17.5px; line-height: 1.8; }
.price-ticks .tick { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; margin-top: 2px; border-radius: 50%; background: var(--lapis-tint); color: var(--lapis); font-size: 13px; font-weight: 700; }
.price-vat { margin: 20px 0 0; font-size: 14px; color: var(--soft); }
.price-card { padding: clamp(24px, 3vw, 36px); border-radius: 28px; background: linear-gradient(160deg, #FFFFFF 0%, var(--lapis-wash) 100%); border: 1px solid var(--line); box-shadow: 0 40px 90px rgba(15, 20, 51, 0.12); }
.price-big { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin: 0; direction: ltr; }
[dir="rtl"] .price-big { justify-content: flex-end; }
.price-big .cur { font-size: 22px; font-weight: 600; color: var(--soft); }
.price-big b { font-size: clamp(64px, 7vw, 96px); line-height: 1; font-weight: 600; letter-spacing: -0.04em; color: var(--lapis); }
.price-big .per { font-size: 16px; color: var(--body); direction: auto; }
.price-calc { display: block; margin-top: 24px; font-size: 15px; font-weight: 600; }
.price-row { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.price-row input[type="range"] { flex: 1; accent-color: var(--lapis); }
.price-units { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; color: var(--body); white-space: nowrap; }
.price-units input { width: 84px; min-height: 40px; padding: 6px 10px; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; color: var(--ink); font: inherit; font-size: 16px; font-weight: 600; text-align: center; }
.price-units input:focus { outline: none; border-color: var(--lapis); box-shadow: 0 0 0 3px rgba(48, 73, 214, 0.18); }
.price-out { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px 0 0; }
.price-out div { padding: 14px 16px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.price-out dt { font-size: 13px; color: var(--soft); }
.price-out dd { margin: 4px 0 0; font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; direction: ltr; text-align: start; }
[dir="rtl"] .price-out dd { text-align: right; }
.price-min { margin: 8px 0 0; font-size: 13px; color: #8A5A00; }
.price-found { margin: 16px 0 0; padding: 12px 14px; border-radius: 14px; background: var(--gold-soft); color: #6B4A10; font-size: 14px; line-height: 1.55; }
.price-card .button-row { margin-top: 20px; }
@media (max-width: 1023px) { .price-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .price-out { grid-template-columns: minmax(0, 1fr); } .price-card .button-row .btn { flex: 1 1 100%; } }
