/* v3 "Night studio" tokens: see DESIGN.md */
@property --spin { syntax: "<angle>"; initial-value: 0deg; inherits: false; }

:root {
  --bg: #0b0b0c;
  --bg-2: #101012;
  --surface: #141416;
  --surface-2: #1b1b1e;
  --ink: #f3efe7;
  --ink-2: #d4cfc5;
  --muted: #9a958b;
  --line: rgba(243, 239, 231, .09);
  --line-2: rgba(243, 239, 231, .16);
  --gold: #d9b26f;
  --gold-dim: rgba(217, 178, 111, .14);
  --green: #3ecf8e;

  --font-display: "Alexandria", "IBM Plex Sans Arabic", sans-serif;
  --font-body: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, monospace;
  --leading-body: 1.85;
  --leading-head: 1.4;

  --gutter: 20px;
  --section: 112px;
  --content: 1180px;
  --radius: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
html[lang="en"] {
  --font-display: "Geist", "IBM Plex Sans Arabic", sans-serif;
  --font-body: "Geist", "IBM Plex Sans Arabic", sans-serif;
  --leading-body: 1.65;
  --leading-head: 1.08;
}
@media (min-width: 900px) { :root { --gutter: 32px; --section: 168px; } }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 17px; line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
html[lang="ar"] body { font-size: 18px; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: var(--gold); color: #0b0b0c; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: calc(var(--content) + 2 * var(--gutter)); margin: 0 auto; padding-inline: var(--gutter); }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: var(--leading-head); margin: 0; text-wrap: balance; }
h1 { font-size: clamp(36px, 6vw, 64px); }
h2 { font-size: clamp(30px, 4.6vw, 52px); }
h3 { font-size: 22px; font-weight: 500; }
html[lang="en"] h1, html[lang="en"] h2 { font-weight: 600; letter-spacing: -0.03em; }
p { margin: 0; }

/* ---------- Header ---------- */
header {
  position: fixed; inset: 0 0 auto; z-index: 30;
  background: rgba(11, 11, 12, .72); backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.progress { position: absolute; inset-inline-start: 0; bottom: -1px; height: 1px; width: 100%; background: var(--gold); transform: scaleX(var(--p, 0)); transform-origin: var(--origin, left); }
html[dir="rtl"] .progress { --origin: right; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; text-decoration: none; }
.brand svg { width: 28px; height: 32px; flex: none; }
.brand svg path { stroke-dasharray: 80; stroke-dashoffset: 80; animation: draw 1.6s var(--ease) .2s forwards; }
.brand svg path + path { animation-delay: .55s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.brand b { font-family: var(--font-display); font-size: 22px; font-weight: 700; line-height: 1; }
nav { display: flex; gap: 6px; }
nav a { text-decoration: none; color: var(--muted); font-size: 15px; padding: 8px 12px; border-radius: 999px; transition: color .2s, background .2s; }
nav a:hover { color: var(--ink); background: var(--surface-2); }
.head-end { display: flex; align-items: center; gap: 8px; }
.lang { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; font-size: 15px; color: var(--ink-2); text-decoration: none; border-radius: 999px; }
.lang:hover { background: var(--surface-2); }
@media (max-width: 980px) { nav { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px; border-radius: 999px;
  font-family: var(--font-body); font-weight: 600; font-size: 17px; text-decoration: none;
  transition: transform .25s var(--ease), background .2s, box-shadow .3s;
  will-change: transform;
}
.btn svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.btn-primary { background: var(--ink); color: #0b0b0c; box-shadow: 0 0 0 0 rgba(217,178,111,0); }
.btn-primary:hover { box-shadow: 0 10px 40px -8px rgba(217,178,111,.45); }
.btn-ghost { color: var(--ink); border: 1px solid var(--line-2); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-small { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn .arrow { display: inline-block; transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
html[dir="rtl"] .btn:hover .arrow { transform: translateX(-4px); }

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: 132px 72px; overflow: hidden; isolation: isolate; }
@media (min-width: 980px) { .hero { padding-block: 176px 120px; min-height: 100svh; display: flex; align-items: center; } }
.grid-floor {
  position: absolute; inset: auto -20% 0; height: 70%; z-index: -2; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(700px) rotateX(62deg); transform-origin: bottom;
  mask-image: linear-gradient(to top, #000 10%, transparent 85%);
  animation: floor 9s linear infinite;
}
@keyframes floor { to { background-position: 0 64px, 0 0; } }
.glow {
  position: absolute; z-index: -1; inset: 0; pointer-events: none;
  background: radial-gradient(520px circle at var(--gx, 70%) var(--gy, 30%), rgba(217,178,111,.13), transparent 60%);
  transition: background .2s;
}
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 64px; width: 100%; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px; } }
.status {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 12px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(20,20,22,.7); font-size: 15px; color: var(--ink-2);
}
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(62,207,142,.6); animation: ping 2.2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgba(62,207,142,0); } 100% { box-shadow: 0 0 0 0 rgba(62,207,142,0); } }
.hero h1 { margin-top: 28px; max-width: 17ch; }
html[lang="en"] .hero h1 { max-width: 13ch; }
.hero h1 .w { display: inline-block; opacity: 0; transform: translateY(.5em); filter: blur(8px); animation: word .9s var(--ease) forwards; animation-delay: calc(.15s + var(--i) * .07s); }
@keyframes word { to { opacity: 1; transform: none; filter: none; } }
.hero h1 em { font-style: normal; color: var(--gold); }
.lead { font-size: clamp(18px, 2vw, 20px); color: var(--ink-2); max-width: 52ch; margin-top: 24px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 36px 0 0; padding: 0; list-style: none; }
.facts li { font-size: 15px; color: var(--ink-2); padding: 6px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }

/* Phone that cycles real work */
.stage { position: relative; display: flex; justify-content: center; padding-block: 24px; }
.phone {
  position: relative; width: min(64vw, 290px); aspect-ratio: 560 / 1212;
  border-radius: 44px; padding: 9px; background: linear-gradient(160deg, #2a2a2e, #0f0f11 40%, #1d1d20);
  box-shadow: 0 0 0 1px var(--line-2), 0 50px 120px -30px rgba(217,178,111,.28), 0 30px 60px -20px #000;
  transform-style: preserve-3d; transition: transform .5s var(--ease);
}
.phone .screen { position: relative; width: 100%; height: 100%; border-radius: 36px; overflow: hidden; background: #000; }
.phone .screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transform: scale(1.04); transition: opacity .9s var(--ease), transform 1.4s var(--ease); }
.phone .screen img.on { opacity: 1; transform: none; }
.phone .notch { position: absolute; top: 18px; left: 50%; width: 30%; height: 22px; margin-left: -15%; border-radius: 999px; background: #000; z-index: 2; }
.chip {
  position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 12px; font-size: 14px; line-height: 1.3; white-space: nowrap;
  background: rgba(27,27,30,.82); backdrop-filter: blur(10px); border: 1px solid var(--line-2);
  box-shadow: 0 20px 40px -16px #000; animation: float 6s ease-in-out infinite;
}
.chip b { color: var(--gold); font-weight: 500; }
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.device { position: relative; }
.chip.c1 { top: 12%; inset-inline-end: -22%; }
.chip.c2 { top: 46%; inset-inline-start: -20%; animation-delay: -2s; }
.chip.c3 { bottom: 14%; inset-inline-end: -26%; animation-delay: -4s; }
@media (max-width: 520px) { .chip.c1 { inset-inline-end: -14%; } .chip.c2 { inset-inline-start: -12%; } .chip.c3 { display: none; } }
@keyframes float { 50% { transform: translateY(-10px); } }
.screen-label { position: absolute; bottom: -8px; inset-inline: 0; text-align: center; font-size: 14px; color: var(--muted); }
.screen-label span { transition: opacity .4s; }

/* ---------- Marquee (moves on its own, can be swiped or dragged) ---------- */
.marquee {
  border-block: 1px solid var(--line); background: var(--bg-2);
  overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain; cursor: grab; user-select: none; -webkit-user-select: none;
  touch-action: pan-x pan-y;
}
.marquee::-webkit-scrollbar { display: none; }
.marquee.dragging { cursor: grabbing; }
.marquee .track { display: flex; gap: 48px; width: max-content; padding: 22px 24px; }
.marquee span { display: inline-flex; align-items: center; gap: 48px; font-size: 16px; color: var(--ink-2); white-space: nowrap; pointer-events: none; }
.marquee span::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

/* ---------- Sections ---------- */
section { padding-block: var(--section) 0; }
.kicker { display: inline-flex; align-items: center; gap: 12px; font-size: 14px; color: var(--gold); margin-bottom: 20px; }
.kicker .mono { color: var(--muted); }
.sub { color: var(--ink-2); max-width: 60ch; margin-top: 18px; }
.split { display: grid; grid-template-columns: 1fr; gap: 56px; }
@media (min-width: 980px) { .split { grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; } }

/* Hero intro on load */
.intro { animation: intro 1s var(--ease) both; animation-delay: calc(var(--d, 0) * 110ms); }
@keyframes intro { from { opacity: 0; transform: translateY(24px); } }
html[lang="ar"] output.mono { font-family: var(--font-body); }

/* Reveal on scroll */
.rv { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.rv.in { opacity: 1; transform: none; }

/* ---------- REGA simulator ---------- */
.feature-list { margin: 32px 0 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.feature-list li { display: flex; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); color: var(--ink-2); }
.feature-list .mono { color: var(--gold); flex: none; font-size: 14px; padding-top: 3px; }
.sim { position: relative; border-radius: 22px; padding: 22px; background: linear-gradient(180deg, var(--surface), var(--bg-2)); border: 1px solid var(--line); }
@media (min-width: 600px) { .sim { padding: 32px; } }
.sim-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.sim-head .live { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); }
.sim-head .live i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: ping 2.2s infinite; }
.slot { position: relative; min-height: 330px; }
.listing {
  border-radius: 16px; padding: 24px; background: var(--ink); color: #121214;
  transition: opacity .6s var(--ease), transform .6s var(--ease), filter .6s;
}
.listing .row1 { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: #5d5950; }
.listing .row1 b { color: #1d6b48; }
.listing h3 { font-size: 24px; font-weight: 700; margin-top: 12px; color: #121214; }
.listing .specs { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 15px; color: #5d5950; margin-top: 6px; }
.listing .price { font-family: var(--font-mono); font-size: 28px; font-weight: 500; margin-top: 14px; }
.listing .price small { font-family: var(--font-body); font-size: 15px; color: #5d5950; }
.lic { display: flex; gap: 14px; align-items: center; margin-top: 16px; padding-top: 16px; border-top: 1px dashed #d8d1c3; font-size: 14px; line-height: 1.7; color: #2f2c25; }
.qr { width: 62px; height: 62px; flex: none; border-radius: 6px; }
.meter { height: 6px; border-radius: 999px; background: #e6dfd2; margin-top: 16px; overflow: hidden; }
.meter i { display: block; height: 100%; width: var(--left, 100%); background: #1d6b48; border-radius: inherit; transition: width .3s var(--ease), background .3s; margin-inline-start: 0; }
.sim[data-state="soon"] .meter i { background: #b7791f; }
.left { font-size: 14px; color: #5d5950; margin-top: 8px; }
.gone {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px;
  border-radius: 16px; border: 1px dashed var(--line-2); color: var(--ink-2);
  opacity: 0; transform: scale(.98); transition: opacity .5s var(--ease) .15s, transform .5s var(--ease) .15s; pointer-events: none;
}
.gone b { display: block; font-family: var(--font-display); font-size: 20px; color: var(--ink); margin-bottom: 6px; }
.sim[data-state="expired"] .listing { opacity: 0; transform: translateY(-12px) scale(.96); filter: blur(6px); }
.sim[data-state="expired"] .gone { opacity: 1; transform: none; }
.control { margin-top: 24px; }
.control label { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; color: var(--ink-2); }
.control output { color: var(--gold); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; margin: 6px 0 0; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 999px; background: linear-gradient(to var(--fill-dir, right), var(--gold) var(--fill, 0%), var(--line-2) var(--fill, 0%)); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 999px; background: var(--line-2); }
input[type="range"]::-moz-range-progress { height: 4px; border-radius: 999px; background: var(--gold); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -11px; border-radius: 50%; background: var(--ink); border: 0; box-shadow: 0 0 0 6px var(--gold-dim); }
input[type="range"]::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); border: 0; box-shadow: 0 0 0 6px var(--gold-dim); }
html[dir="rtl"] input[type="range"] { --fill-dir: left; }
.sim-note { font-size: 14px; color: var(--muted); margin-top: 12px; }

/* ---------- Work ---------- */
.works { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 56px; }
@media (min-width: 980px) { .works { grid-template-columns: 1.4fr 1fr; } }
.work {
  position: relative; border-radius: 22px; overflow: hidden; padding: 28px; background: var(--surface); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 24px; text-decoration: none;
}
.work .media { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); transition: transform .6s var(--ease); }
.work:hover .media { transform: scale(1.015); }
.work.tall .media { align-self: center; width: min(62%, 240px); border-radius: 26px; border: 6px solid #1f1f22; }
.work .meta { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-top: auto; }
.work .kind { font-size: 14px; color: var(--gold); }
.work h3 { margin-top: 4px; }
.work p { color: var(--ink-2); font-size: 16px; margin-top: 6px; max-width: 44ch; }
.work .go { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2); transition: background .25s, color .25s, transform .35s var(--ease); }
.work:hover .go { background: var(--ink); color: #0b0b0c; transform: rotate(-45deg); }
html[dir="rtl"] .work:hover .go { transform: rotate(45deg); }
.work .soon { font-size: 14px; color: var(--muted); }
.browser-bar { display: flex; gap: 6px; padding: 10px 12px; background: #1f1f22; }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: #3a3a3f; }
.next-up { margin-top: 20px; padding: 20px 24px; border-radius: 16px; border: 1px dashed var(--line-2); color: var(--muted); font-size: 16px; }
.next-up b { color: var(--ink); font-weight: 500; }

/* Spotlight border on hover (pointer devices) */
.spot { --mx: 50%; --my: 50%; }
.spot::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: radial-gradient(360px circle at var(--mx) var(--my), rgba(217,178,111,.55), transparent 55%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .3s;
}
.spot::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(217,178,111,.06), transparent 60%);
  opacity: 0; transition: opacity .3s;
}
@media (hover: hover) { .spot:hover::before, .spot:hover::after { opacity: 1; } }

/* ---------- Packages ---------- */
.plans { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 56px; }
@media (min-width: 980px) { .plans { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }
.plan { position: relative; border-radius: 22px; padding: 30px 26px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; }
.plan.main { background: var(--surface-2); border-color: transparent; }
.plan.main .ring {
  position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--spin), transparent 0 65%, var(--gold) 80%, transparent 95%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin 6s linear infinite;
}
.plan.main .ring::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 1px solid var(--line-2); }
@keyframes spin { to { --spin: 360deg; } }
@media (max-width: 979px) { .plan.main { order: -1; } }
.plan .tag { display: inline-flex; align-self: flex-start; font-size: 13px; color: #0b0b0c; background: var(--gold); padding: 3px 12px; border-radius: 999px; margin-bottom: 14px; }
.plan h3 { font-size: 26px; font-weight: 700; }
.plan .for { color: var(--muted); font-size: 15px; margin-top: 4px; line-height: 1.6; }
.amount { margin-top: 24px; font-size: 15px; color: var(--muted); }
.amount b { display: block; font-family: var(--font-mono); font-weight: 500; font-size: 42px; line-height: 1.15; color: var(--ink); letter-spacing: -0.02em; }
.amount b small { font-family: var(--font-body); font-size: 17px; color: var(--ink-2); letter-spacing: 0; }
.time { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); margin-top: 8px; }
.time::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.plan ul { list-style: none; margin: 24px 0 28px; padding: 20px 0 0; border-top: 1px solid var(--line); flex: 1; }
.plan li { display: flex; gap: 10px; padding: 6px 0; font-size: 16px; color: var(--ink-2); line-height: 1.6; }
.plan li::before { content: ""; flex: none; width: 14px; height: 14px; margin-top: 6px; border-radius: 50%; border: 1.5px solid var(--gold); background: radial-gradient(circle, var(--gold) 0 2.5px, transparent 3px); }
.plan .btn { width: 100%; }
.fine { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 20px; }
@media (min-width: 980px) { .fine { grid-template-columns: 1fr 1fr; } }
.fine p { padding: 16px 20px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); color: var(--ink-2); font-size: 16px; }
.fine b { color: var(--gold); font-weight: 500; }

/* ---------- Process ---------- */
.process { position: relative; margin-top: 56px; display: grid; grid-template-columns: 1fr; gap: 0; padding: 0; list-style: none; counter-reset: s; }
@media (min-width: 980px) { .process { grid-template-columns: repeat(4, 1fr); gap: 28px; padding-top: 40px; } }
.process::before, .process::after { content: ""; position: absolute; inset-inline-start: 19px; top: 0; width: 1px; }
.process::before { bottom: 0; background: var(--line-2); }
.process::after { height: calc(var(--fill, 0) * 100%); background: var(--gold); box-shadow: 0 0 12px var(--gold); }
@media (min-width: 980px) {
  .process::before, .process::after { inset-inline: 0 auto; top: 0; height: 1px; }
  .process::before { width: 100%; }
  .process::after { width: calc(var(--fill, 0) * 100%); height: 1px; }
}
.process li { position: relative; counter-increment: s; padding: 0 0 36px; padding-inline-start: 60px; }
@media (min-width: 980px) { .process li { padding: 0; } }
.process li::before {
  content: counter(s, decimal-leading-zero); position: absolute; inset-inline-start: 0; top: 0;
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  font-family: var(--font-mono); font-size: 14px; color: var(--ink); background: var(--bg); border: 1px solid var(--line-2);
  transition: border-color .4s, color .4s, box-shadow .4s;
}
@media (min-width: 980px) { .process li::before { position: static; margin-top: -60px; margin-bottom: 20px; } }
.process li.lit::before { border-color: var(--gold); color: var(--gold); box-shadow: 0 0 0 6px var(--gold-dim); }
.process b { display: block; font-family: var(--font-display); font-weight: 500; font-size: 19px; line-height: 1.5; }
.process span { display: block; color: var(--muted); font-size: 16px; margin-top: 6px; line-height: 1.7; }

/* ---------- Founder ---------- */
.founder { border-radius: 28px; padding: 36px 24px; background: radial-gradient(600px circle at 85% 0%, rgba(217,178,111,.10), transparent 60%), var(--surface); border: 1px solid var(--line); display: grid; gap: 28px; }
@media (min-width: 980px) { .founder { grid-template-columns: auto 1fr; gap: 56px; padding: 64px; align-items: center; } }
.avatar { position: relative; width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-size: 48px; font-weight: 700; background: var(--bg); }
.avatar::before { content: ""; position: absolute; inset: -3px; border-radius: 50%; padding: 2px; background: conic-gradient(from var(--spin), var(--gold), transparent 40%, var(--gold)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: spin 8s linear infinite; }
@media (min-width: 980px) { .avatar { width: 168px; height: 168px; font-size: 64px; } }
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.founder blockquote { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: clamp(24px, 3.2vw, 36px); line-height: 1.5; max-width: 28ch; }
html[lang="en"] .founder blockquote { line-height: 1.25; letter-spacing: -0.02em; }
.founder .who { margin-top: 18px; color: var(--muted); font-size: 16px; }
.founder .who b { color: var(--ink); font-weight: 500; }

/* ---------- FAQ ---------- */
.faq { margin-top: 48px; max-width: 860px; }
details { border-top: 1px solid var(--line); }
details:last-child { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; font-size: 18px; font-weight: 500; min-height: 44px; }
summary::-webkit-details-marker { display: none; }
summary .pm { position: relative; flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-2); transition: transform .4s var(--ease), background .3s; }
summary .pm::before, summary .pm::after { content: ""; position: absolute; top: 50%; left: 50%; width: 12px; height: 1.5px; margin: -.75px 0 0 -6px; background: var(--ink); }
summary .pm::after { transform: rotate(90deg); transition: transform .4s var(--ease); }
details[open] summary .pm { transform: rotate(180deg); background: var(--surface-2); }
details[open] summary .pm::after { transform: rotate(0deg); }
details p { color: var(--ink-2); padding-bottom: 22px; max-width: 64ch; }
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  details::details-content { height: 0; overflow: clip; transition: height .45s var(--ease), content-visibility .45s allow-discrete; }
  details[open]::details-content { height: auto; }
}

/* ---------- Final call ---------- */
.cta { position: relative; overflow: hidden; isolation: isolate; margin-top: var(--section); padding-block: 120px; border-top: 1px solid var(--line); text-align: center; }
@media (min-width: 980px) { .cta { padding-block: 176px; } }
.cta::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 100%; width: 1100px; height: 1100px; margin: -550px 0 0 -550px; border-radius: 50%; background: radial-gradient(circle, rgba(217,178,111,.22), transparent 62%); animation: breathe 7s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.08); opacity: .8; } }
.cta h2 { font-size: clamp(36px, 6.4vw, 72px); max-width: 16ch; margin-inline: auto; }
.cta .sub { margin-inline: auto; }
.cta .btn { margin-top: 36px; }

footer { border-top: 1px solid var(--line); padding-block: 28px 104px; color: var(--muted); font-size: 16px; }
@media (min-width: 980px) { footer { padding-bottom: 32px; } }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
footer b { color: var(--ink); font-family: var(--font-display); font-weight: 700; }

/* Floating WhatsApp (phones) */
.float-wa { position: fixed; bottom: 18px; inset-inline-start: 18px; z-index: 25; width: 58px; height: 58px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.float-wa svg { width: 28px; height: 28px; fill: #0b0b0c; }
@media (min-width: 980px) { .float-wa { display: none; } }

@media (max-width: 560px) {
  .head-end .btn-small { display: none; }
  .actions .btn { flex: 1 1 100%; }
}

/* Motion off for people who ask for it */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv, .hero h1 .w { opacity: 1 !important; transform: none !important; filter: none !important; }
  .brand svg path { stroke-dashoffset: 0; }
}

/* =====================================================================
   v5: business picker, glyph art, sample booking app, order + booking demos
   ===================================================================== */
[hidden] { display: none !important; }

/* Business picker */
.pick { display: none; margin-top: 32px; }
.js .pick { display: block; }
.pick-l { font-size: 15px; color: var(--muted); margin-bottom: 12px; }
.pick-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pk {
  font: inherit; font-size: 15px; display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  border-radius: 999px; border: 1px solid var(--line-2); background: rgba(20,20,22,.6); color: var(--ink-2);
  cursor: pointer; text-decoration: none; transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.pk:hover { border-color: rgba(243,239,231,.32); color: var(--ink); }
.pk:active { transform: scale(.97); }
.pk[aria-pressed="true"] { background: var(--ink); color: #0b0b0c; border-color: var(--ink); }
.pk-other { border-style: dashed; color: var(--gold); }
.leads { margin-top: 24px; }
.leads .lead { margin-top: 0; animation: lead-in .5s var(--ease); }
@keyframes lead-in { from { opacity: 0; transform: translateY(6px); } }

/* Glyph art: Arabic letters that rebuild into each business's shape */
.hero .glyph {
  position: absolute; z-index: 0; top: 0; left: -14%; width: 128%; height: 100%; pointer-events: none;
  opacity: 0; transition: opacity 1.2s var(--ease);
  -webkit-mask-image: radial-gradient(ellipse 62% 70% at 50% 58%, #000 62%, transparent 100%);
          mask-image: radial-gradient(ellipse 62% 70% at 50% 58%, #000 62%, transparent 100%);
}
.hero .glyph.glyph-ready { opacity: 1; }
.stage .device { z-index: 1; }
.phone { width: min(56vw, 290px); }
@media (max-width: 979px) { .hero .glyph { left: -6%; width: 112%; } }

/* Sample booking app inside the phone (salon, clinic) */
.phone .screen .app {
  position: absolute; inset: 0; padding: 46px 16px 18px; background: #f3efe7; color: #121214;
  display: flex; flex-direction: column; gap: 8px; font-size: 13px; line-height: 1.5;
  opacity: 0; visibility: hidden; transform: scale(1.04);
  transition: opacity .9s var(--ease), transform 1.4s var(--ease), visibility 0s .9s;
}
.phone .screen .app.on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.app small { font-size: 12px; }
.app-bar { display: flex; justify-content: space-between; align-items: center; padding-bottom: 10px; border-bottom: 1px solid #ddd5c6; }
.app-bar b { font-family: var(--font-display); font-size: 15px; }
.app-bar span { font-size: 12px; color: #5d5950; }
.app-h { font-family: var(--font-display); font-weight: 700; font-size: 20px; margin: 6px 0 2px; }
.app-row { display: flex; justify-content: space-between; padding: 9px 11px; border-radius: 10px; background: #fff; border: 1px solid #e4ddcf; }
.app-row.on { border-color: #121214; box-shadow: inset 0 0 0 1px #121214; }
.app-row small { color: #5d5950; font-family: var(--font-body); }
.app-lbl { font-size: 12px; color: #5d5950; margin-top: 6px; }
.app-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.app-slots span { text-align: center; padding: 7px 0; border-radius: 8px; background: #fff; border: 1px solid #e4ddcf; font-family: var(--font-mono); font-size: 12px; }
.app-slots .off { color: #b3ab9c; text-decoration: line-through; background: transparent; }
.app-slots .on { background: #121214; color: #f3efe7; border-color: #121214; }
.app-btn { margin-top: auto; text-align: center; padding: 11px 0; border-radius: 999px; background: #121214; color: #f3efe7; font-weight: 500; }

/* Order demo: menu → kitchen screen */
.od-grid { display: grid; gap: 14px; }
@media (min-width: 600px) { .od-grid { grid-template-columns: 1fr 1fr; } }
.od-menu { border-radius: 16px; padding: 18px; background: var(--ink); color: #121214; display: flex; flex-direction: column; gap: 8px; }
.od-t { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); margin-bottom: 4px; }
.od-menu .od-t { color: #5d5950; }
.od-item {
  font: inherit; display: grid; grid-template-columns: 1fr auto 36px; align-items: center; gap: 10px; min-height: 48px; padding: 0 6px 0 14px;
  border-radius: 12px; border: 1px solid #ddd5c6; background: #fff; color: #121214; cursor: pointer; text-align: start;
  transition: border-color .2s, transform .2s var(--ease);
}
html[dir="rtl"] .od-item { padding: 0 14px 0 6px; }
.od-item:active { transform: scale(.98); }
.od-item .nm { font-size: 15px; }
.od-item .pr { font-size: 14px; color: #5d5950; }
.od-item .pr small { font-family: var(--font-body); }
.od-item .q { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #efe9de; font-family: var(--font-mono); font-size: 14px; }
.od-item.has { border-color: #121214; }
.od-item.has .q { background: #121214; color: var(--ink); }
.od-send { width: 100%; margin-top: 6px; background: #121214; color: var(--ink); }
.od-send:disabled { opacity: .45; cursor: default; box-shadow: none; }
.od-kds { border-radius: 16px; padding: 18px; background: #0d0d0f; border: 1px solid var(--line-2); min-height: 260px; }
.od-kds .od-t [data-n] { color: var(--gold); }
.od-tickets { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.od-tickets .empty { color: var(--muted); font-size: 15px; padding: 32px 8px; text-align: center; border: 1px dashed var(--line-2); border-radius: 12px; }
.tk { border-radius: 12px; padding: 12px 14px; background: var(--surface-2); border: 1px solid var(--line-2); border-inline-start: 3px solid var(--gold); cursor: pointer; animation: tk-in .5s var(--ease); }
@keyframes tk-in { from { opacity: 0; transform: translateY(-10px) scale(.97); } }
.tk-h { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--ink-2); }
.tk-h b { color: var(--ink); }
.tk-t { margin-inline-start: auto; color: var(--muted); }
.tk ul { list-style: none; margin: 8px 0; padding: 0; font-size: 15px; color: var(--ink); }
.tk ul .mono { color: var(--gold); }
.tk-f { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; }
.tk .st { padding: 2px 10px; border-radius: 999px; background: var(--gold-dim); color: var(--gold); }
.tk[data-st="1"] { border-inline-start-color: #e0a04f; }
.tk[data-st="1"] .st { background: rgba(224,160,79,.14); color: #e9b26b; }
.tk[data-st="2"] { border-inline-start-color: var(--green); }
.tk[data-st="2"] .st { background: rgba(62,207,142,.14); color: var(--green); }
.tk-note { color: var(--muted); }

/* Booking demo: pick a time → WhatsApp confirmation */
.bk-card { border-radius: 16px; padding: 20px; background: var(--ink); color: #121214; }
.bk-name { font-family: var(--font-display); font-weight: 700; font-size: 20px; }
.bk-svc { font-size: 15px; color: #5d5950; margin-top: 2px; }
.bk-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.bk-slot {
  font: inherit; font-family: var(--font-mono); font-size: 15px; min-height: 48px; border-radius: 12px;
  border: 1px solid #ddd5c6; background: #fff; color: #121214; cursor: pointer; transition: background .2s, color .2s, transform .2s var(--ease);
}
.bk-slot:active { transform: scale(.97); }
.bk-slot:disabled { cursor: not-allowed; background: transparent; color: #8a8375; text-decoration: line-through; }
.bk-slot.mine { background: #121214; color: var(--ink); border-color: #121214; }
.bk-left { font-size: 14px; color: #5d5950; margin-top: 12px; }
.bk-wa { margin-top: 14px; max-width: 92%; border-radius: 14px; border-start-start-radius: 4px; padding: 12px 14px; background: #10372a; border: 1px solid rgba(62,207,142,.25); color: #e6f4ec; }
.bk-wa.pop { animation: tk-in .5s var(--ease); }
.bk-from { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #9fd8bd; margin-bottom: 4px; }
.bk-from svg { width: 16px; height: 16px; fill: currentColor; }
.bk-from .mono { margin-inline-start: auto; opacity: .8; }
.bk-wa p { font-size: 15px; line-height: 1.7; }
.app-note { display: flex; gap: 8px; align-items: center; margin-top: 10px; padding: 10px 11px; border-radius: 10px; background: #e3efe7; color: #1d4d36; font-size: 12px; line-height: 1.5; }
.app-note svg { width: 16px; height: 16px; flex: none; fill: currentColor; }
@media (max-width: 520px) {
  .chip.c1 { top: -5%; }
  .chip.c2 { display: none; }
  .phone .screen .app { padding-top: 38px; gap: 6px; }
  .app-note { display: none; }
}

/* Freelance Document card (added 2026-11-27) */
.lic-card { margin-top: 20px; border-radius: 22px; padding: 28px 24px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 28px; }
@media (min-width: 980px) { .lic-card { grid-template-columns: 1fr auto; gap: 56px; padding: 48px 64px; align-items: center; } }
.lic-k { display: flex; align-items: center; gap: 10px; color: var(--gold); font-size: 15px; margin: 0 0 8px; }
.lic-k .dot { width: 8px; height: 8px; border-radius: 50%; background: #3ecf8e; box-shadow: 0 0 0 4px rgba(62,207,142,.15); }
.lic-card h3 { font-family: var(--font-display); font-size: clamp(24px, 3vw, 32px); margin: 0 0 12px; }
.lic-card .lic-text > p { color: var(--ink-2); font-size: 16px; line-height: 1.8; margin: 0 0 20px; max-width: 60ch; }
.lic-card dl { display: grid; gap: 1px; margin: 0 0 24px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--line); }
@media (min-width: 640px) { .lic-card dl { grid-template-columns: auto 1fr auto; } }
.lic-card dl div { background: var(--bg-2); padding: 14px 18px; }
.lic-card dt { color: var(--muted); font-size: 14px; margin-bottom: 4px; }
.lic-card dd { margin: 0; font-size: 16px; color: var(--ink); }
.lic-card dd.mono { font-family: var(--font-mono, "Geist Mono", monospace); letter-spacing: .02em; }
.lic-card .btn svg { width: 18px; height: 18px; }
.lic-qr { margin: 0; display: grid; justify-items: center; gap: 10px; }
.lic-qr img { width: 164px; height: 164px; border-radius: 12px; background: #fff; padding: 8px; }
.lic-qr figcaption { color: var(--muted); font-size: 14px; text-align: center; max-width: 180px; }
footer #doc-number a { color: inherit; text-decoration: underline; text-decoration-color: var(--line-2, rgba(243,239,231,.16)); text-underline-offset: 4px; }

/* "I have an idea" demo + phone screen (added 2026-11-27) */
.idb .od-t { margin: 18px 0 10px; }
.id-types { display: flex; flex-wrap: wrap; gap: 8px; }
.id-lbl { display: block; margin: 20px 0 8px; color: var(--ink-2); font-size: 16px; }
.idb textarea { width: 100%; box-sizing: border-box; min-height: 104px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--bg); color: var(--ink); font: inherit; font-size: 16px; line-height: 1.7; resize: vertical; }
.idb textarea::placeholder { color: var(--muted); }
.idb textarea:focus { outline: 2px solid var(--gold); outline-offset: 2px; }
.idb .id-send { margin-top: 16px; width: 100%; justify-content: center; }
.app-idea { padding: 10px 11px; border-radius: 10px; background: #fff; border: 1px dashed #c9bfae; font-size: 13px; line-height: 1.6; }
