/* شذرة — the website. Phone first, Arabic, white. Matches the brand board (Reem Kufi, black and white,
   grey tiles, black-glass icons). */
:root {
  --bg: #FFFFFF;
  --text: #0A0A0A;
  --muted: #6B6B6B;
  --dim: #8E8E93;
  --tile: #F2F1EF;
  --tile-2: #EAE9E6;
  --track: #E2E1DD;
  --danger: #C0392B;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font-family: "Reem Kufi", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font-family: inherit; color: inherit; }
button { cursor: pointer; }
img, video { display: block; }
a { color: var(--text); }
.app { position: relative; max-width: 480px; min-height: 100dvh; margin: 0 auto; overflow-x: hidden; display: flex; flex-direction: column; }
.screen { position: relative; flex: 1; display: flex; flex-direction: column; gap: 16px; padding: 12px 20px calc(28px + env(safe-area-inset-bottom)); }
.center { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; text-align: center; }
h1, h2, h3 { margin: 0; font-weight: 500; }
h1 { font-size: 26px; line-height: 1.35; }
h2 { font-size: 22px; line-height: 1.35; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.row { display: flex; align-items: center; gap: 12px; }
.between { justify-content: space-between; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* buttons */
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; padding: 0 22px; border: none; border-radius: 999px; font-size: 17px; font-weight: 500; text-decoration: none; cursor: pointer; }
.btn-dark { background: var(--text); color: #FFFFFF; }
.btn-dark:hover { background: #2A2A2A; color: #FFFFFF; }
.btn-dark:disabled { background: var(--track); color: var(--dim); cursor: default; }
.btn-soft { background: var(--tile); color: var(--text); }
.btn-soft:hover { background: var(--tile-2); }
.btn-link { background: none; min-height: 44px; font-size: 15px; text-decoration: underline; text-underline-offset: 4px; color: var(--text); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 15px; }
.icon-btn { width: 44px; height: 44px; flex: none; border: none; border-radius: 999px; background: var(--tile); display: flex; align-items: center; justify-content: center; color: var(--text); }
.icon-btn:hover { background: var(--tile-2); }
:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }

/* bits */
.tile { background: var(--tile); border-radius: 18px; }
.glass { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 999px; font-size: 12px; color: #FFFFFF;
  background: linear-gradient(180deg, rgba(70,70,72,.78) 0%, rgba(18,18,20,.86) 55%, rgba(40,40,42,.84) 100%);
  -webkit-backdrop-filter: blur(12px) saturate(1.3); backdrop-filter: blur(12px) saturate(1.3);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 0 0 1px rgba(0,0,0,.35), 0 4px 12px rgba(0,0,0,.2); }
.bar { height: 6px; border-radius: 999px; background: var(--track); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--text); border-radius: 999px; transition: width .4s ease; }
.spinner { width: 26px; height: 26px; border-radius: 50%; border: 2.5px solid var(--track); border-top-color: var(--text); animation: spin .8s linear infinite; flex: none; }
.spinner.light { border-color: rgba(255,255,255,.35); border-top-color: #FFFFFF; }
.field { display: flex; flex-direction: column; gap: 8px; }
.input { width: 100%; min-height: 52px; padding: 13px 16px; border: none; border-radius: 16px; background: var(--tile); font-size: 16px; color: var(--text); }
.input::placeholder { color: #9A9A9A; }
.input:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--text); }
textarea.input { line-height: 1.6; resize: none; }
.error { color: var(--danger); font-size: 14px; text-align: center; }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); max-width: 90%; padding: 12px 18px; border-radius: 999px; background: var(--text); color: #FFFFFF; font-size: 14px; z-index: 50; box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.logo-row { display: flex; align-items: center; gap: 8px; }
.logo-row img { width: 28px; height: 28px; }
.logo-row span { font-size: 21px; font-weight: 600; }
.top { display: flex; align-items: center; justify-content: space-between; min-height: 52px; }
.avatar { width: 44px; height: 44px; border: none; border-radius: 999px; background: var(--tile); font-size: 17px; font-weight: 600; display: flex; align-items: center; justify-content: center; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes scan { 0%, 100% { left: 14%; } 50% { left: 60%; } }

/* ---------- landing ---------- */
.landing { padding: 0; gap: 0; }
.landing section { padding: 44px 24px; }
.hero { position: relative; height: 720px; padding: 0 !important; overflow: hidden; }
.hero .credit { position: absolute; top: 26px; right: 24px; display: flex; align-items: center; gap: 6px; color: var(--dim); font-family: "Helvetica Neue", Arial, sans-serif; font-size: 10px; letter-spacing: 2px; direction: ltr; }
.hero .credit img { height: 13px; filter: invert(1) brightness(.55); }
.sound { position: absolute; top: 16px; left: 24px; z-index: 5; height: 36px; padding: 0 12px 0 10px; border: none; border-radius: 999px; background: rgba(120,120,128,.14);
  -webkit-backdrop-filter: blur(14px) saturate(1.6); backdrop-filter: blur(14px) saturate(1.6); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.6), 0 1px 3px rgba(0,0,0,.06);
  display: flex; align-items: center; gap: 8px; color: #6E6E73; }
.eq { display: flex; align-items: center; gap: 2.5px; height: 15px; }
.eq i { display: block; width: 2.5px; height: 15px; border-radius: 2px; background: #8E8E93; animation: flow 1.1s ease-in-out infinite; }
.eq i:nth-child(1) { animation-delay: -.9s; } .eq i:nth-child(2) { animation-delay: -.6s; } .eq i:nth-child(3) { animation-delay: -.3s; } .eq i:nth-child(4) { animation-delay: -.75s; } .eq i:nth-child(5) { animation-delay: -.45s; }
@keyframes flow { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }
.hero .waves { position: absolute; left: 0; right: 0; top: 300px; width: 100%; height: 150px; }
.hero .stack { position: absolute; top: 96px; left: 0; right: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.mark { position: relative; width: 132px; height: 132px; color: var(--text); }
.pc { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.word { font-size: 50px; font-weight: 600; line-height: 1.4; }
.hero .copy { position: absolute; right: 24px; left: 24px; top: 470px; display: flex; flex-direction: column; gap: 10px; text-align: center; }
.hero h1 { font-size: 32px; font-weight: 500; line-height: 1.3; }
.hero .buttons { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.play .waves path { stroke-dasharray: 520; stroke-dashoffset: 520; animation: draw 1.3s cubic-bezier(.65,0,.35,1) 1.9s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.play .mark { animation: settle .45s ease-out 1.55s both; }
@keyframes settle { 0% { transform: scale(1); } 45% { transform: scale(1.07); } 100% { transform: scale(1); } }
.play .p1 { animation: in1 .7s cubic-bezier(.16,1,.3,1) .25s both; }
.play .p2 { animation: in2 .7s cubic-bezier(.16,1,.3,1) .38s both; }
.play .p3 { animation: in3 .7s cubic-bezier(.16,1,.3,1) .51s both; }
.play .p4 { animation: in4 .6s cubic-bezier(.2,1.5,.4,1) .95s both; }
@keyframes in1 { 0% { transform: translate(-150px,-230px) rotate(-70deg); opacity: 0; } 40% { opacity: 1; } 100% { transform: none; opacity: 1; } }
@keyframes in2 { 0% { transform: translate(-190px,230px) rotate(55deg); opacity: 0; } 40% { opacity: 1; } 100% { transform: none; opacity: 1; } }
@keyframes in3 { 0% { transform: translate(210px,190px) rotate(85deg); opacity: 0; } 40% { opacity: 1; } 100% { transform: none; opacity: 1; } }
@keyframes in4 { 0% { transform: translate(170px,-270px) rotate(-130deg) scale(.6); opacity: 0; } 50% { opacity: 1; } 100% { transform: none; opacity: 1; } }
.play .word { animation: rise .6s cubic-bezier(.16,1,.3,1) 1.7s both; }
.play .up1 { animation: rise .6s cubic-bezier(.16,1,.3,1) 2.6s both; }
.play .up2 { animation: rise .6s cubic-bezier(.16,1,.3,1) 2.8s both; }
.play .up3 { animation: rise .6s cubic-bezier(.16,1,.3,1) 2.95s both; }
.play .credit { animation: fadein .8s ease 2.4s both; }
@media (prefers-reduced-motion: reduce) { .play * { animation: none !important; stroke-dashoffset: 0 !important; } }

.kicker { font-size: 14px; color: #7A7A7A; }
.sec-head { display: flex; flex-direction: column; gap: 6px; text-align: center; margin-bottom: 22px; }
.sec-head h2 { font-size: 30px; font-weight: 400; line-height: 1.3; }
.showcase { display: flex; gap: 10px; }
.showcase img { flex: 1 1 0; min-width: 0; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 16px; background: var(--tile); }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ftile { background: var(--tile); border-radius: 14px; min-height: 236px; padding: 0 12px 18px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.ftile img { width: 118px; height: 118px; object-fit: contain; margin: 22px 0 auto; }
.ftile b { font-size: 16px; font-weight: 500; line-height: 1.4; }
.ftile span { font-size: 13px; color: #7A7A7A; line-height: 1.6; }
.faq-photo { position: relative; height: 264px; border-radius: 14px; overflow: hidden; background: var(--tile); margin-bottom: 18px; }
.faq-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.faq-photo .glass { position: absolute; bottom: 12px; right: 12px; height: 34px; padding: 0 14px; font-size: 13px; }
.faq { display: flex; flex-direction: column; gap: 8px; }
.qa { background: var(--tile); border-radius: 22px; overflow: hidden; }
.qa summary { list-style: none; min-height: 48px; padding: 12px 16px; display: flex; align-items: center; gap: 10px; font-size: 15px; cursor: pointer; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { background: var(--tile-2); }
.qa summary svg.chev { margin-right: auto; transition: transform .2s; }
.qa[open] summary svg.chev { transform: rotate(180deg); }
.qa p { padding: 0 44px 16px 16px; font-size: 14px; line-height: 1.8; color: #5A5A5A; }
.price { background: var(--tile); border-radius: 22px; padding: 26px 22px; display: flex; flex-direction: column; gap: 14px; }
.price .amount { display: flex; align-items: baseline; gap: 8px; }
.price .amount b { font-size: 48px; font-weight: 400; direction: ltr; }
.plan { display: flex; flex-direction: column; margin-top: 12px; }
.plan div { display: flex; justify-content: space-between; padding: 10px 0; font-size: 16px; }
.cta { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; padding-bottom: 0 !important; }
.cta h2 { font-size: 36px; font-weight: 400; line-height: 1.3; }
.cta svg { width: calc(100% + 48px); margin: 0 -24px; height: 200px; transform: scaleX(-1); }
.foot { padding: 26px 24px calc(26px + env(safe-area-inset-bottom)); display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.foot a, .foot button { color: var(--muted); text-decoration: none; background: none; border: none; font-size: 13px; padding: 0; }

/* ---------- signed in ---------- */
.newclip { position: relative; padding: 20px; display: flex; flex-direction: column; gap: 14px; overflow: hidden; }
.newclip > img { position: absolute; left: 6px; top: 8px; width: 116px; height: 116px; object-fit: contain; }
.newclip .t { display: flex; flex-direction: column; gap: 4px; padding-left: 118px; min-height: 100px; }
.rowlink { height: 68px; padding: 0 12px 0 16px; display: flex; align-items: center; gap: 12px; text-decoration: none; border-radius: 999px; border: none; width: 100%; text-align: right; background: var(--tile); }
.rowlink:hover { background: var(--tile-2); }
.rowlink img { width: 46px; height: 46px; object-fit: contain; }
.rowlink span.t { flex: 1; display: flex; flex-direction: column; }
.clips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.clip { position: relative; aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden; background: var(--tile-2); }
.clip video, .clip img { width: 100%; height: 100%; object-fit: cover; }
.clip .glass { position: absolute; top: 8px; right: 8px; height: 24px; font-size: 11px; }
.clip .dl { position: absolute; bottom: 8px; left: 8px; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.9); display: flex; align-items: center; justify-content: center; color: var(--text); }
.clip .mid { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(10,10,10,.35); }
.empty { padding: 26px 20px; text-align: center; color: var(--muted); font-size: 14px; }

.prep-video { position: relative; height: 220px; border-radius: 20px; overflow: hidden; background: var(--tile-2); }
.prep-video video { width: 100%; height: 100%; object-fit: cover; }
.prep-video .box { position: absolute; top: 12px; bottom: 12px; width: 26%; border: 2px solid #FFFFFF; border-radius: 10px; box-shadow: 0 0 0 999px rgba(10,10,10,.38); animation: scan 3.2s ease-in-out infinite; }
.prep-video .glass { position: absolute; bottom: 12px; right: 12px; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.steps li { height: 56px; padding: 0 16px; border-radius: 999px; background: var(--tile); display: flex; align-items: center; gap: 12px; font-size: 15px; }
.steps li.wait { opacity: .55; }
.steps .dot { width: 22px; height: 22px; border-radius: 50%; background: var(--track); color: #7A7A7A; font-size: 12px; display: flex; align-items: center; justify-content: center; flex: none; }
.steps .done .dot { background: var(--text); color: #FFFFFF; }
.steps .spinner { width: 20px; height: 20px; border-width: 2px; margin: 0 1px; }

.tgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tcard { border: none; background: var(--tile); border-radius: 18px; padding: 10px 10px 14px; display: flex; flex-direction: column; gap: 4px; text-align: right; }
.tcard:hover { background: var(--tile-2); }
.tcard img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 12px; margin-bottom: 6px; background: var(--tile-2); }
.tcard b { font-size: 15px; font-weight: 500; }
.tcard small { font-size: 12px; color: #7A7A7A; line-height: 1.5; }

.editor { display: flex; flex-direction: column; min-height: 100dvh; }
.editor .bar-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 16px; }
.editor .preview { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0 0 14px; }
.editor .frame { height: min(34vh, 300px); aspect-ratio: 9 / 16; border-radius: 16px; overflow: hidden; background: var(--tile-2); box-shadow: 0 10px 30px rgba(0,0,0,.12); }
.editor .frame img { width: 100%; height: 100%; object-fit: cover; }
.sheet { flex: 1; background: #FFFFFF; border-radius: 28px 28px 0 0; box-shadow: 0 -10px 30px rgba(0,0,0,.07); padding: 10px 16px calc(24px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 6px; }
.sheet .grab { align-self: center; width: 40px; height: 5px; border-radius: 999px; background: var(--track); margin-bottom: 6px; }
.feat { background: var(--tile); border-radius: 20px; }
.feat.off { opacity: .6; }
.feat .head { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 8px 0 8px; }
.feat .name { flex: 1; display: flex; align-items: center; gap: 10px; min-height: 52px; border: none; background: none; padding: 0; text-align: right; color: var(--text); }
.feat .glyph { width: 34px; height: 34px; border-radius: 50%; background: #FFFFFF; display: flex; align-items: center; justify-content: center; font-family: Montserrat, sans-serif; font-size: 12px; flex: none; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.feat .name span { display: flex; flex-direction: column; line-height: 1.35; }
.feat .name b { font-size: 15px; font-weight: 500; }
.feat .name small { font-size: 11px; color: var(--dim); }
.switch { position: relative; width: 48px; height: 30px; flex: none; border: none; border-radius: 999px; background: #D6D5D1; padding: 0; transition: background .2s; }
.switch i { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 2px 4px rgba(0,0,0,.2); transition: transform .2s; }
.switch.on { background: var(--text); }
.switch.on i { transform: translateX(18px); }
.switch:disabled { opacity: .5; cursor: default; }
.panel { padding: 2px 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.panel .input { background: #FFFFFF; min-height: 46px; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tiles.two { grid-template-columns: 1fr 1fr; }
.opt { min-height: 64px; padding: 8px 4px; border: none; border-radius: 14px; background: #2A2A2C; color: #FFFFFF; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.opt small { font-size: 10px; color: #A1A1AA; }
.opt:not(.on) { opacity: .72; }
.opt.on { box-shadow: 0 0 0 2px var(--tile), 0 0 0 4px var(--text); opacity: 1; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch { width: 34px; height: 34px; border-radius: 50%; border: none; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.swatch.on { box-shadow: 0 0 0 2px var(--tile), 0 0 0 4px var(--text); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { min-height: 36px; padding: 0 14px; border: none; border-radius: 999px; background: #FFFFFF; font-size: 13px; color: var(--text); display: inline-flex; align-items: center; }
.chip.on { background: var(--text); color: #FFFFFF; }
.upload-btn { min-height: 48px; padding: 0 14px; border-radius: 999px; background: #FFFFFF; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; cursor: pointer; }

.render-card { position: relative; width: 220px; aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden; background: var(--tile-2); box-shadow: 0 16px 40px rgba(0,0,0,.16); }
.render-card img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.75); }
.render-card .glass { position: absolute; top: 12px; right: 12px; height: 32px; font-size: 14px; }
.render-card .bar { position: absolute; left: 14px; right: 14px; bottom: 14px; background: rgba(255,255,255,.3); }
.render-card .bar i { background: #FFFFFF; }
.done-card { width: min(260px, 70vw); aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden; background: var(--tile-2); box-shadow: 0 16px 40px rgba(0,0,0,.16); }
.done-card video { width: 100%; height: 100%; object-fit: cover; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; font-size: 12px; }
.tags span { padding: 6px 12px; border-radius: 999px; background: var(--tile); }
.brand-up { height: 200px; border-radius: 22px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; cursor: pointer; text-align: center; }
.brand-up img { width: 104px; height: 104px; object-fit: contain; }
.brand-up img.logo { width: 96px; height: 96px; mix-blend-mode: normal; background: #0A0A0A; border-radius: 18px; padding: 12px; object-fit: contain; }
