/* ============ Ghadan site (same system as Madeby, Ghadan colours) ============ */
:root {
  --cream: #F6EFE3; --paper: #FBF7F0; --sand: #EFE5D3; --ink: #1E1B16; --night: #15120E;
  --sun: #F2B33D; --sun-deep: #C98A12; --muted: #6F675B; --line: rgba(30, 27, 22, .09);
  --ff: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif; --ar: "Cairo", "Inter Tight", sans-serif;
  --gutter: clamp(16px, 4vw, 56px); --ease: cubic-bezier(.16, 1, .3, 1); --sec: clamp(96px, 12vw, 170px);
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--cream); -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-padding-top: 80px; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--ff); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: clip; }
html[lang="ar"] body { font-family: var(--ar); }
img, svg { display: block; max-width: 100%; }
img.emo { display: inline-block; width: 1.15em; height: 1.15em; vertical-align: -.2em; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
::selection { background: var(--sun); color: var(--ink); }
:focus-visible { outline: 2px solid var(--sun-deep); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1280px, 100% - 2 * var(--gutter)); margin-inline: auto; position: relative; }

/* type */
.h2 { font-weight: 300; font-size: clamp(42px, 6vw, 92px); line-height: .98; letter-spacing: -.035em; text-wrap: balance; }
html[lang="ar"] .h2 { font-weight: 600; letter-spacing: 0; line-height: 1.2; font-size: clamp(38px, 5.2vw, 78px); }
.h2 em { font-style: normal; color: var(--sun-deep); }
.h2--light { color: var(--cream); }
.h2--light em { color: var(--sun); }
.lead { margin-top: 22px; color: var(--muted); font-size: clamp(16px, 1.3vw, 19px); max-width: 560px; }
.head { margin-bottom: clamp(44px, 6vw, 80px); }
.head--center { text-align: center; }
.head--center .h2, .head--center .lead { margin-inline: auto; }
.kick { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 20px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
html[lang="ar"] .kick { letter-spacing: 0; text-transform: none; font-size: 14px; }
.kick__n { display: inline-grid; place-items: center; min-width: 30px; height: 24px; padding: 0 8px; border-radius: 999px; background: var(--sun); color: var(--ink); font: 700 12px var(--ff); letter-spacing: .02em; }
.kick__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 0 rgba(242,179,61,.7); animation: dot 2s infinite; }
.kick--dark { color: var(--cream); }
.head--center .kick { justify-content: center; }
.kick--badge { padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.55); border: 1px solid rgba(30,27,22,.08); font-size: 12.5px; letter-spacing: .06em; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 24px; border-radius: 999px; font-weight: 600; font-size: 15px; white-space: nowrap; transition: transform .5s var(--ease), background .3s, box-shadow .5s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn--sm { height: 42px; padding: 0 18px; font-size: 14px; }
.btn--ink { background: var(--ink); color: var(--cream); box-shadow: 0 12px 30px -14px rgba(30,27,22,.6); }
.btn--ghost { border: 1px solid rgba(30,27,22,.2); }
.btn--ghost:hover { background: rgba(30,27,22,.05); }
.btn--sun { background: var(--sun); color: var(--ink); box-shadow: 0 18px 50px -18px rgba(242,179,61,.8); }
.btn--xl { height: 64px; padding: 0 30px; font-size: 17px; }
.btn svg { width: 22px; height: 22px; fill: currentColor; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 0 rgba(242,179,61,.7); animation: dot 2s infinite; flex: none; }
.dot--ink { background: var(--ink); box-shadow: none; animation: none; }
@keyframes dot { 70% { box-shadow: 0 0 0 8px rgba(242,179,61,0) } 100% { box-shadow: 0 0 0 0 rgba(242,179,61,0) } }

/* nav */
.nav { position: fixed; z-index: 800; top: 14px; left: 0; right: 0; margin: 0 auto; width: min(1180px, 100% - 24px); display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 10px 10px 18px; padding-inline: 18px 10px; border-radius: 999px; background: rgba(251,247,240,.74); border: 1px solid rgba(30,27,22,.07);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); transition: transform .6s var(--ease), box-shadow .4s; }
.nav.is-hidden { transform: translateY(-140%); }
.nav.is-scrolled { box-shadow: 0 10px 30px -18px rgba(30,27,22,.35); }
.logo { display: flex; align-items: center; gap: 8px; }
.logo svg { width: 32px; height: 32px; }
.wm { font: 700 22px var(--ff); letter-spacing: -.045em; direction: ltr; unicode-bidi: isolate; }
.wm i { font-style: normal; color: var(--sun); }
.nav__links { display: none; gap: 28px; font-size: 14px; font-weight: 500; }
.nav__links a { color: var(--muted); transition: color .3s; }
.nav__links a:hover { color: var(--ink); }
.nav__right { display: flex; align-items: center; gap: 8px; }
.lang { height: 42px; min-width: 52px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(30,27,22,.14); background: rgba(255,255,255,.5); font: 600 14px var(--ar); }
html[lang="ar"] .lang { font-family: var(--ff); }
@media (min-width: 960px) { .nav__links { display: flex; } }
@media (max-width: 520px) { .nav__cta { display: none; } }
.fcta { position: fixed; z-index: 790; inset-inline-end: 22px; bottom: calc(22px + env(safe-area-inset-bottom)); display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 24px; border-radius: 999px; background: var(--sun); color: var(--ink); font-weight: 600; font-size: 16px;
  box-shadow: 0 0 0 1px rgba(30,27,22,.06), 0 18px 40px -14px rgba(201,138,18,.9); opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity .4s, transform .5s var(--ease); }
.fcta.is-on { opacity: 1; transform: none; pointer-events: auto; }

/* ============ HERO ============ */
.hero { position: relative; min-height: 100svh; padding: 120px 0 0; overflow: hidden; display: flex; flex-direction: column; }
.hero__grid { position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 88px 88px; background-position: center -1px; -webkit-mask-image: radial-gradient(ellipse 80% 75% at 50% 40%, #000 30%, transparent 85%); mask-image: radial-gradient(ellipse 80% 75% at 50% 40%, #000 30%, transparent 85%); }
.hero__glow { position: absolute; width: 900px; height: 900px; inset-inline-end: -200px; top: -120px; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, rgba(242,179,61,.36), rgba(242,179,61,0) 62%); filter: blur(10px); animation: breathe 9s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.12) translate(-30px, 30px); } }
.hero__inner { position: relative; z-index: 2; flex: 1; width: min(1360px, 100% - 2 * var(--gutter)); margin-inline: auto; display: grid; gap: 40px; align-items: center; padding-bottom: 48px; }
.hero__title { font-weight: 300; font-size: clamp(56px, 6.6vw, 112px); line-height: .93; letter-spacing: -.045em; }
html[lang="ar"] .hero__title { font-weight: 700; letter-spacing: 0; line-height: 1.2; font-size: clamp(50px, 5.6vw, 92px); }
.hero__title .line { display: block; }
.hl { position: relative; font-weight: 400; white-space: nowrap; }
html[lang="ar"] .hl { font-weight: 800; }
.hl::before { content: ""; position: absolute; inset-inline: -.06em; bottom: .08em; height: .42em; z-index: -1; background: var(--sun); border-radius: 4px; transform-origin: 0 50%; transform: scaleX(var(--hl, 1)); }
html[dir="rtl"] .hl::before { transform-origin: 100% 50%; }
.hero__ar { margin-top: 22px; font-family: var(--ar); font-size: clamp(20px, 1.8vw, 26px); font-weight: 700; color: var(--sun-deep); text-align: start; }
html[lang="ar"] .hero__ar { display: none; }
.hero__sub { margin-top: 12px; max-width: 500px; color: var(--muted); font-size: clamp(16px, 1.25vw, 18px); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.hero__meta { margin-top: 18px; font-size: 14px; color: var(--muted); }
@media (min-width: 960px) { .hero__inner { grid-template-columns: minmax(360px, 1fr) minmax(0, 1fr); gap: 24px; } }

/* hero stage: live WhatsApp + dashboard card */
.stage { position: relative; perspective: 1600px; display: grid; place-items: center; min-height: 640px; }
.stage__tilt { position: relative; transform: rotateY(-8deg) rotateX(3deg); transform-style: preserve-3d; transition: transform 1.2s var(--ease); }
html[dir="rtl"] .stage__tilt { transform: rotateY(8deg) rotateX(3deg); }
.stage__phone { transform: scale(.8); transform-origin: center; margin: -80px 0; }
.stage__phone .wa-chat { justify-content: flex-end; }
.stage__phone .wa-row { animation: pop .5s var(--ease) both; }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.mini { position: absolute; inset-inline-start: -170px; bottom: 60px; width: 270px; padding: 18px; border-radius: 20px; background: var(--ink); color: var(--cream); transform: translateZ(80px);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.06); }
.mini__top { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; color: #b9b0a2; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
html[lang="ar"] .mini__top { text-transform: none; letter-spacing: 0; }
.mini__top b { color: var(--sun); text-transform: none; letter-spacing: 0; font-size: 13px; }
.mini ul { display: grid; gap: 2px; margin-top: 10px; }
.mini li { display: grid; grid-template-columns: 24px 1fr auto; gap: 8px; align-items: center; padding: 7px 0; border-top: 1px solid #332e27; font-size: 13.5px; }
.mini li:first-child { border-top: 0; }
.mini li b { font-size: 20px; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.mini li small { grid-column: 2 / 4; color: #9d9486; font-size: 11.5px; margin-top: -4px; }
.mini__foot { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 11.5px; color: #9d9486; }
.tapper { position: absolute; z-index: 5; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: rgba(30,27,22,.25); border: 2px solid rgba(255,255,255,.9); pointer-events: none; transition: transform .25s, opacity .3s; }
.tapper.tap { transform: scale(.7); }
@media (max-width: 1180px) { .mini { inset-inline-start: -90px; width: 240px; } }
@media (max-width: 959px) { .stage { min-height: 0; } .stage__tilt, html[dir="rtl"] .stage__tilt { transform: none; } .stage__phone { transform: scale(.78); margin: -88px 0 -88px; } .mini { position: relative; inset: auto; transform: none; margin: 0 auto; width: min(340px, 100%); } }

/* ticker */
.ticker { position: relative; z-index: 2; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); overflow: hidden; }
.ticker__track { display: flex; width: max-content; gap: 34px; padding: 18px 0; animation: tick 40s linear infinite; font-size: clamp(16px, 1.6vw, 22px); font-weight: 500; letter-spacing: -.01em; }
.ticker__track b { color: var(--sun-deep); font-weight: 400; }
html[lang="ar"] .ticker__track { font-family: var(--ar); letter-spacing: 0; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ============ PROBLEM ============ */
.problem { padding: var(--sec) 0 calc(var(--sec) * .6); }
.duo { display: grid; gap: 14px; }
@media (min-width: 800px) { .duo { grid-template-columns: 1fr 1fr; } }
.side { position: relative; overflow: hidden; padding: clamp(24px, 3vw, 40px); border-radius: 28px; background: var(--paper); border: 1px solid rgba(30,27,22,.07); }
.side--little { background: var(--ink); color: var(--cream); }
.side__lbl { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
html[lang="ar"] .side__lbl { letter-spacing: 0; text-transform: none; font-size: 15px; }
.side--little .side__lbl { color: #b9b0a2; }
.side__time { margin-top: 10px; font-weight: 300; font-size: clamp(64px, 8vw, 120px); line-height: .9; letter-spacing: -.05em; }
.side__time small { font-size: .3em; letter-spacing: 0; margin-inline-start: .15em; font-weight: 500; }
.side--little .side__time { color: var(--sun); }
.tray { display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px; margin: 28px 0 24px; max-width: 520px; }
.tray i { aspect-ratio: 1; border-radius: 50%; background: var(--sun); transition: transform .5s var(--ease), background .5s, opacity .5s; }
.side--much .tray i.gone { background: rgba(30,27,22,.08); }
.side--little .tray i.gone { background: #2d2922; }
.side--little .tray i.want { background: transparent; box-shadow: inset 0 0 0 2px #6b5a3b; }
.side__txt { font-size: clamp(17px, 1.5vw, 21px); max-width: 420px; }
.side--much .side__txt { color: #3d3830; }
.nema { display: flex; align-items: center; gap: 14px; margin-top: 14px; padding: 20px 24px; border-radius: 22px; background: var(--sand); font-size: clamp(15px, 1.25vw, 18px); }
.nema__ic { font-size: 26px; flex: none; }
.nema__ic .emo { width: 30px; height: 30px; }

/* ============ HOW ============ */
.how { padding: calc(var(--sec) * .6) 0 var(--sec); background: linear-gradient(var(--cream), var(--sand) 160px, var(--sand) calc(100% - 160px), var(--cream)); }
.steps { display: grid; gap: 14px; }
.step { position: relative; overflow: hidden; padding: 26px 24px 28px; border-radius: 24px; background: var(--paper); border: 1px solid rgba(30,27,22,.05); display: flex; flex-direction: column; box-shadow: 0 18px 40px -30px rgba(30,27,22,.35); transition: background .5s, color .5s, transform .6s var(--ease); }
.step__top { display: flex; align-items: center; gap: 12px; }
.step__n { font: 600 13px var(--ff); color: var(--sun-deep); }
.step__bar { flex: 1; height: 3px; border-radius: 3px; background: rgba(30,27,22,.08); overflow: hidden; }
.step__bar i { display: block; height: 100%; background: var(--sun); }
.step__ic { margin-top: 26px; font-size: 34px; line-height: 1; }
.step__ic .emo { width: 40px; height: 40px; }
.step h3 { margin-top: 16px; font-weight: 400; font-size: clamp(28px, 2.4vw, 38px); letter-spacing: -.03em; }
html[lang="ar"] .step h3 { font-weight: 700; letter-spacing: 0; }
.step p { margin-top: 8px; color: var(--muted); font-size: 15px; transition: color .5s; }
.step__get { display: grid; gap: 2px; margin-top: auto !important; padding-top: 18px; }
.step__get small { font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
html[lang="ar"] .step__get small { text-transform: none; letter-spacing: 0; font-size: 12.5px; }
.step__get span { color: var(--ink); font-weight: 600; font-size: 14.5px; transition: color .5s; }
.step:hover { background: var(--ink); color: var(--cream); transform: translateY(-6px); }
.step:hover p { color: #a8a093; }
.step:hover .step__get span { color: var(--sun); }
@media (min-width: 700px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); } .step { min-height: 380px; } }

/* ============ TRY ============ */
.try { padding: var(--sec) 0; position: relative; }
.try__grid { display: grid; gap: 28px; align-items: start; }
@media (min-width: 1000px) { .try__grid { grid-template-columns: 1fr 1.05fr; gap: 48px; } .result { position: sticky; top: 100px; } }
.ctl { display: grid; gap: 10px; margin-top: 30px; }
.ctl__lbl { margin-top: 16px; font-size: 13px; font-weight: 600; color: var(--muted); }
.chips--quick .chip { height: 36px; padding: 0 14px; font-size: 13.5px; }
.ctl__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fld { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.fld > span { display: flex; justify-content: space-between; align-items: baseline; }
.fld b { color: var(--ink); font-size: 15px; }
.fld select, .fld input[type="date"], .fld input[type="number"] { width: 100%; height: 48px; padding: 0 14px; border-radius: 14px; border: 1px solid rgba(30,27,22,.14); background: #fff; color: var(--ink); font: 500 15px var(--ff); min-width: 0; }
html[lang="ar"] .fld select, html[lang="ar"] .fld input { font-family: var(--ar); }
.fld select { appearance: none; -webkit-appearance: none; padding-inline-end: 38px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%231E1B16' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center / 18px; }
html[dir="rtl"] .fld select { background-position: left 12px center; }
.fld select:focus, .fld input:focus { outline: none; border-color: var(--sun-deep); box-shadow: 0 0 0 3px rgba(242,179,61,.25); }
.fld input[type="range"] { width: 100%; height: 48px; accent-color: var(--ink); margin: 0; }
.fld__row { display: grid; grid-template-columns: 1fr 84px; gap: 6px; }
.tick { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px; border-radius: 14px; border: 1px solid rgba(30,27,22,.14); background: #fff; font-size: 14px; font-weight: 500; cursor: pointer; transition: background .3s, border-color .3s, color .3s; }
.tick input { width: 18px; height: 18px; accent-color: var(--ink); margin: 0; }
.tick:has(input:checked) { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.tick:has(input:checked) input { accent-color: var(--sun); }
.fld.is-auto select, .fld.is-auto input { border-color: rgba(201,138,18,.5); }
@media (max-width: 520px) { .ctl__grid { grid-template-columns: 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(30,27,22,.14); background: #fff; font-size: 14px; font-weight: 500; transition: background .3s, border-color .3s, color .3s, transform .4s var(--ease); }
.chip:hover { border-color: rgba(30,27,22,.35); transform: translateY(-2px); }
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.result { position: relative; overflow: hidden; padding: clamp(22px, 2.6vw, 34px); border-radius: 28px; background: var(--ink); color: var(--cream); box-shadow: 0 50px 100px -50px rgba(30,27,22,.7); }
.result__sun { position: absolute; width: 380px; height: 380px; inset-inline-end: -110px; bottom: -130px; opacity: .07; pointer-events: none; }
.result__top { position: relative; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.result__top .kick { margin: 0; }
.result__day { font-size: clamp(22px, 2vw, 28px); font-weight: 600; letter-spacing: -.02em; }
.result__list { position: relative; margin-top: 14px; }
.ri { display: grid; grid-template-columns: 32px 1fr auto; gap: 2px 12px; align-items: center; padding: 13px 0; border-top: 1px solid #332e27; }
.ri:first-child { border-top: 0; }
.ri__e { font-size: 22px; } .ri__e .emo { width: 26px; height: 26px; }
.ri__n { font-weight: 600; font-size: 15.5px; }
.ri__q { font-size: clamp(28px, 2.6vw, 38px); font-weight: 600; letter-spacing: -.04em; font-variant-numeric: tabular-nums; line-height: 1; text-align: end; }
.ri__q small { font-size: 12px; font-weight: 500; color: #9d9486; letter-spacing: 0; margin-inline-start: 4px; }
.ri__r { grid-column: 2 / 4; color: #b3a998; font-size: 13px; line-height: 1.45; }
.ri__bar { grid-column: 2 / 4; height: 4px; border-radius: 4px; background: #2d2922; overflow: hidden; margin-top: 4px; }
.ri__bar i { display: block; height: 100%; border-radius: 4px; background: var(--sun); transition: width .7s var(--ease); }
.ri.up .ri__q { color: var(--sun); }
.result__foot { position: relative; margin-top: 12px; padding-top: 14px; border-top: 1px solid #332e27; font-size: 13px; color: #9d9486; }

/* ============ RESULTS ============ */
.results { padding: calc(var(--sec) * .5) 0 var(--sec); }
.story { position: relative; overflow: hidden; display: grid; gap: 28px; padding: clamp(26px, 3.6vw, 52px); border-radius: 28px; background: var(--night); color: var(--cream); }
.story::before { content: ""; position: absolute; inset-inline-end: -10%; top: -40%; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(242,179,61,.2), transparent 65%); pointer-events: none; }
.story__pill { position: relative; justify-self: start; padding: 6px 12px; border-radius: 99px; background: #2a251e; color: var(--sun); font-size: 13px; font-weight: 600; }
.story__num { position: relative; }
.story__big { display: block; font-weight: 300; font-size: clamp(96px, 15vw, 220px); line-height: .85; letter-spacing: -.06em; color: var(--sun); direction: ltr; unicode-bidi: isolate; text-align: start; }
.story__num p { margin-top: 16px; max-width: 560px; font-size: clamp(18px, 1.7vw, 24px); line-height: 1.35; color: #ddd5c8; }
.story__chart { position: relative; }
.story__chart svg { width: 100%; height: clamp(140px, 16vw, 210px); overflow: visible; }
.story__line { stroke-dasharray: 1; stroke-dashoffset: 1; }
.story.is-in .story__line { animation: draw 2.2s cubic-bezier(.65,0,.35,1) .2s forwards; }
.story__base { opacity: 0; transition: opacity 1s .1s; }
.story.is-in .story__base { opacity: 1; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.story__legend { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 12px; font-size: 13px; color: #9d9486; }
.story__legend > span { display: inline-flex; align-items: center; gap: 8px; }
.lg { width: 18px; height: 3px; border-radius: 3px; display: inline-block; }
.lg--g { background: var(--sun); } .lg--b { background: repeating-linear-gradient(90deg, #6F675B 0 5px, transparent 5px 9px); }
.story__stats { position: relative; display: grid; gap: 12px; padding-top: 24px; border-top: 1px solid #2a251e; }
@media (min-width: 700px) { .story__stats { grid-template-columns: repeat(3, 1fr); } }
.story__stats b { display: block; font-size: clamp(36px, 3.6vw, 52px); font-weight: 300; letter-spacing: -.04em; color: var(--cream); direction: ltr; text-align: start; }
.story__stats > div > span { color: #9d9486; font-size: 15px; }
.story__how { position: relative; border-top: 1px solid #2a251e; padding-top: 18px; }
.story__how summary { cursor: pointer; font-weight: 600; color: var(--sun); list-style: none; }
.story__how summary::-webkit-details-marker { display: none; }
.story__how summary::after { content: " +"; }
.story__how[open] summary::after { content: " ×"; }
.story__how p { margin-top: 12px; max-width: 820px; color: #b3a998; font-size: 15px; }
@media (min-width: 1000px) { .story { grid-template-columns: 1fr 1.2fr; align-items: end; } .story__pill, .story__stats, .story__how { grid-column: 1 / -1; } }

/* ============ PERSPECTIVE ============ */
.persp { position: relative; overflow: hidden; padding: calc(var(--sec) * .7) 0 var(--sec); background: linear-gradient(var(--cream), var(--paper) 30%, var(--paper) 70%, var(--cream)); text-align: center; }
.persp::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 88px 88px; opacity: .6; -webkit-mask-image: linear-gradient(transparent, #000 35%, #000 65%, transparent); mask-image: linear-gradient(transparent, #000 35%, #000 65%, transparent); }
.calc { position: relative; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: center; gap: 18px 34px; }
.calc__col { display: grid; justify-items: center; gap: 4px; }
.calc__tray { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin-bottom: 12px; font-size: 34px; }
.calc__tray .emo { width: 42px; height: 42px; }
.calc__big { font-size: clamp(32px, 3.6vw, 52px); font-weight: 700; letter-spacing: -.03em; }
.calc__lbl { color: var(--muted); font-size: 16px; text-transform: uppercase; letter-spacing: .04em; font-weight: 500; }
html[lang="ar"] .calc__lbl { text-transform: none; letter-spacing: 0; }
.calc__op { font-size: 34px; font-weight: 300; color: var(--muted); align-self: center; }
.calc__res { position: relative; margin-top: 46px; padding-top: 22px; border-top: 1px solid rgba(30,27,22,.15); display: inline-block; font-size: clamp(54px, 7vw, 104px); font-weight: 700; letter-spacing: -.045em; line-height: 1; }
.calc__end { position: relative; margin-top: 14px; font-size: clamp(20px, 2vw, 28px); font-weight: 300; letter-spacing: -.02em; }
.calc__note { position: relative; margin-top: 10px; color: var(--muted); font-size: 13px; }
.mark { background: linear-gradient(transparent 58%, var(--sun) 58%, var(--sun) 92%, transparent 92%); padding: 0 .1em; }

/* ============ PROTOTYPE ============ */
.proto { padding: var(--sec) 0; }
.proto__grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 1000px) { .proto__grid { grid-template-columns: 1.6fr 1fr; } }
.browser { position: relative; display: block; border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 50px 100px -40px rgba(30,27,22,.45), 0 0 0 1px rgba(30,27,22,.08); transition: transform .8s var(--ease); }
.browser:hover { transform: translateY(-6px); }
.browser__bar { display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; background: #F2ECE2; border-bottom: 1px solid rgba(30,27,22,.06); direction: ltr; }
.browser__bar > i { width: 11px; height: 11px; border-radius: 50%; }
.browser__bar > i:nth-child(1) { background: #FF6159; } .browser__bar > i:nth-child(2) { background: #FFBE2F; } .browser__bar > i:nth-child(3) { background: #2ACA44; }
.browser__url { flex: 1; max-width: 300px; margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: 6px; height: 26px; border-radius: 8px; background: #fff; font-size: 12px; color: #555; }
.lock { width: 8px; height: 9px; border-radius: 2px; background: #9a9a9a; position: relative; }
.lock::before { content: ""; position: absolute; left: 1px; top: -4px; width: 6px; height: 6px; border: 1.5px solid #9a9a9a; border-bottom: 0; border-radius: 4px 4px 0 0; }
.browser__screen { position: relative; aspect-ratio: 16 / 10.5; overflow: hidden; background: var(--cream); }
.browser__screen iframe { position: absolute; top: 0; left: 0; width: 1440px; height: 945px; border: 0; transform-origin: 0 0; pointer-events: none; }
.browser__open { position: absolute; z-index: 2; inset-inline-end: 18px; bottom: 18px; display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border-radius: 999px; background: var(--ink); color: var(--cream); font-size: 14px; font-weight: 600; }
.works { display: grid; gap: 2px; }
.works li { display: flex; align-items: baseline; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); font-size: clamp(17px, 1.4vw, 20px); }
.works li > span { font: 600 12px var(--ff); color: var(--sun-deep); }
.works li b { font-weight: 500; letter-spacing: -.01em; }
.works__cta { flex-wrap: wrap; gap: 10px !important; border-top: 0 !important; padding-top: 22px !important; }

/* ============ FAQ ============ */
.faq { padding: 0 0 var(--sec); }
.faq__grid { display: grid; gap: 10px; }
.faq__grid .head { margin-bottom: 30px; }
@media (min-width: 1000px) { .faq__grid { grid-template-columns: .8fr 1.2fr; gap: 60px; } }
.faq__list { display: grid; gap: 10px; align-content: start; }
.qa { border-radius: 20px; background: var(--paper); border: 1px solid rgba(30,27,22,.07); transition: background .4s, border-color .4s; }
.qa[open] { background: #fff; border-color: rgba(30,27,22,.12); }
.qa summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px; cursor: pointer; font-size: clamp(17px, 1.4vw, 20px); font-weight: 500; letter-spacing: -.01em; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary i { position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--cream); transition: background .3s, transform .5s var(--ease); }
.qa summary i::before, .qa summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.6px; margin: -.8px 0 0 -6px; background: var(--ink); transition: transform .5s var(--ease); }
.qa summary i::after { transform: rotate(90deg); }
.qa[open] summary i { background: var(--sun); transform: rotate(180deg); }
.qa[open] summary i::after { transform: rotate(0deg); }
.qa__a { padding: 0 24px 24px; }
.qa__a p { max-width: 640px; color: var(--muted); font-size: 16px; line-height: 1.65; }

/* ============ JOIN ============ */
.join { position: relative; background: var(--night); color: var(--cream); padding: var(--sec) 0; overflow: hidden; }
.join__sky { position: absolute; inset: 0; pointer-events: none; opacity: .7;
  background-image: radial-gradient(1px 1px at 10% 20%, #fff, transparent), radial-gradient(1px 1px at 30% 80%, #fff, transparent), radial-gradient(1.5px 1.5px at 70% 30%, #fff, transparent), radial-gradient(1px 1px at 85% 70%, #fff, transparent), radial-gradient(1px 1px at 50% 50%, #fff, transparent), radial-gradient(1px 1px at 20% 60%, #fff, transparent), radial-gradient(1.2px 1.2px at 92% 12%, #fff, transparent);
  background-size: 420px 420px; animation: twinkle 6s ease-in-out infinite alternate; }
@keyframes twinkle { from { opacity: .3 } to { opacity: .75 } }
.join__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1000px) { .join__grid { grid-template-columns: 1fr 1fr; gap: 60px; } }
.sunrise { position: relative; display: grid; justify-items: center; gap: 18px; }
.sunrise svg { width: min(520px, 100%); overflow: visible; }
.sunrise svg [data-sun] { transform: translateY(var(--rise, 0px)); }
.sunrise__t { font-size: clamp(20px, 2vw, 28px); font-weight: 300; color: #d9d0c2; letter-spacing: -.02em; }
.join__lead { margin-top: 20px; max-width: 480px; color: #b3a998; font-size: clamp(16px, 1.3vw, 19px); }
.wl { display: grid; gap: 22px; margin-top: 30px; }
.wl b { display: block; margin-bottom: 10px; font-weight: 500; font-size: 15px; color: #cfc6b8; }
.field { width: 100%; max-width: 420px; height: 52px; padding: 0 18px; border-radius: 14px; border: 1px solid #2d2922; background: #1d1a15; color: var(--cream); font: 500 16px var(--ff); }
html[lang="ar"] .field { font-family: var(--ar); }
.field::placeholder { color: #6b645a; }
.field:focus { outline: none; border-color: var(--sun); }
.join .chip { border-color: #2d2922; background: #1d1a15; color: #ece4d6; }
.join .chip.on { background: var(--sun); border-color: var(--sun); color: var(--ink); }
.wl .btn--sun { justify-self: start; }

/* footer */
.foot { position: relative; background: var(--night); color: #a8a093; padding: 40px 0 0; overflow: hidden; border-top: 1px solid #221e18; }
.foot__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 0; }
.foot__row--sm { color: #6d675d; border-top: 1px solid #221e18; font-size: 13px; }
.logo--light { color: var(--cream); }
.foot__ar { font: 700 20px var(--ar); color: var(--cream); padding-inline-start: 12px; margin-inline-start: 4px; border-inline-start: 1px solid #3a342b; }
.foot__links { display: flex; flex-wrap: wrap; gap: 22px; font-weight: 500; color: var(--cream); }
.foot__links a:hover { color: var(--sun); }
.foot__mark { font-weight: 700; font-size: clamp(90px, 24vw, 380px); line-height: .78; letter-spacing: -.06em; color: #1d1a15; text-align: center; margin-top: 20px; user-select: none; }

/* reveal + misc */
html.js [data-rv] { opacity: 0; transform: translateY(18px); }
body.lang-fade main { opacity: .2; transition: opacity .18s; }
@media (max-width: 640px) {
  .nav { top: 10px; padding-inline: 14px 8px; }
  .hero { padding-top: 100px; }
  .hero__ctas .btn { flex: 1 1 auto; justify-content: center; }
  .btn--xl { height: 60px; font-size: 16px; padding: 0 20px; }
  .wl .btn--sun { width: 100%; justify-content: center; }
  .tray { gap: 5px; }
  .calc__tray .emo { width: 30px; height: 30px; }
  .fcta { inset-inline-end: 14px; height: 50px; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html.js [data-rv] { opacity: 1; transform: none; }
}

/* fixes after first preview */
.hero { min-height: min(100svh, 980px); }
html[lang="ar"] .hl::before { bottom: .18em; height: .32em; }
html[lang="ar"] .hero__title { margin-bottom: 10px; }
.mini { inset-inline-start: -235px; bottom: 30px; }
.hero__ar { text-align: left; }
@media (max-width: 1180px) { .mini { inset-inline-start: -150px; } }
@media (max-width: 959px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr); }
  .stage { overflow: hidden; padding: 6px 0 24px; }
  .stage__phone { transform: none; zoom: .82; margin: 0; }
  .mini { position: relative; inset: auto; transform: none; margin: 18px auto 0; width: min(340px, 100%); }
}
@media (max-width: 420px) { .stage__phone { zoom: .76; } }
