/* The public site's shared look (dunyazad.net: the landing page, the product,
   brand and category pages). Each page adds its own styles inline.
   The brand book: porcelain ground, rosewater, garnet ink, rose sparkles, plum night. */
@font-face { font-family: Foda; src: url(fonts/foda.woff2) format('woff2'); font-display: swap; }

/* Dunyazad is Shahrazad's sister: the page is framed in the arches of the Nights. */
:root {
    --garnet: #43262D; --garnet-2: #5A3740; --rose: #D08A98; --rose-2: #B86F80; --dried: #D8B2B8; --rosewater: #F2E4E6;
    --porcelain: #FBF7F6; --night: #1E1416; --night-2: #2C1C20; --night-ink: #F3E6E8; --musk: #8E7178; --line: rgba(67, 38, 45, .1);
    --display: Foda, 'IBM Plex Sans Arabic', sans-serif; --num: Fraunces, Georgia, serif;
    --ease: cubic-bezier(.2, .8, .2, 1); --ease-in-out: cubic-bezier(.65, 0, .35, 1);
}
[dir=ltr] { --display: 'Yeseva One', Georgia, serif; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
:focus-visible { outline: 2px solid var(--rose-2); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--garnet); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }
body { margin: 0; background: var(--porcelain); color: var(--garnet); font: 500 17px/1.75 'IBM Plex Sans Arabic', system-ui, -apple-system, 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased; overflow-x: clip; }
[dir=ltr] body { font-size: 16.5px; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 28px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }
.acc { color: var(--rose); }
.ic { width: 22px; height: 22px; flex: none; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; font-size: 14px; font-weight: 600; color: var(--rose-2); letter-spacing: 0; }
[dir=ltr] .eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 12.5px; }
.eyebrow::before { content: ''; width: 34px; height: 1px; background: currentColor; }
.center .eyebrow { justify-content: center; }
.h2 { font-size: clamp(38px, 5vw, 64px); line-height: 1.32; }
[dir=ltr] .h2 { line-height: 1.08; letter-spacing: -.01em; }
.h2 span { display: block; }
.sub { color: var(--musk); font-size: 18px; max-width: 32em; margin: 18px 0 0; }
.center { text-align: center; }
.center .sub { margin-inline: auto; }
.sp { position: absolute; display: block; color: var(--rose); pointer-events: none; }
.sp svg { width: 100%; height: 100%; display: block; }
.live .tw { animation: tw 4s ease-in-out infinite; }
@keyframes tw { 0%, 100% { opacity: 1; transform: scale(1) rotate(0); } 50% { opacity: .3; transform: scale(.6) rotate(25deg); } }

/* ---------- Arches: a rounded arch, lattice inside, a second line within ---------- */
.arch { position: absolute; border-radius: 999px 999px 0 0; overflow: hidden;
    background: repeating-linear-gradient(45deg, rgba(208, 138, 152, .16) 0 1px, transparent 1px 24px), repeating-linear-gradient(-45deg, rgba(208, 138, 152, .16) 0 1px, transparent 1px 24px), linear-gradient(180deg, #EBD2D7 0%, #F2E4E6 55%, rgba(242, 228, 230, 0) 100%); }
.arch::after { content: ''; position: absolute; inset: 12px 12px 0; border-radius: inherit; border: 1px solid rgba(208, 138, 152, .45); border-bottom: 0; }

/* ---------- Header ---------- */
.top { position: fixed; inset: 0 0 auto; z-index: 60; transition: background .35s, box-shadow .35s; }
.top.solid { background: rgba(251, 247, 246, .86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--line); }
.top .wrap { display: flex; align-items: center; gap: 30px; height: 74px; }
.logo { display: flex; flex-direction: column; align-items: center; direction: ltr; }
.logo img { height: 40px; width: auto; }
.logo span { font-family: 'Yeseva One', serif; font-size: 12px; letter-spacing: .34em; margin-inline-end: -.34em; line-height: 1; margin-top: 3px; }
.nav { display: flex; gap: 28px; margin-inline-start: auto; font-weight: 600; font-size: 15px; }
.nav a { color: var(--musk); position: relative; transition: color .2s; }
.nav a::after { content: ''; position: absolute; inset-inline: 0; bottom: -4px; height: 1px; background: var(--garnet); transform: scaleX(0); transition: transform .3s var(--ease); }
.nav a:hover { color: var(--garnet); }
.nav a:hover::after, .nav a.on::after { transform: scaleX(1); }
.nav a.on { color: var(--garnet); }
.lang { font-weight: 600; font-size: 14px; color: var(--musk); }
.lang:hover { color: var(--garnet); }
.get { background: var(--garnet); color: var(--night-ink); font-weight: 600; font-size: 14.5px; padding: 10px 20px; border-radius: 99px; transition: background .2s; }
.get:hover { background: var(--garnet-2); }
@media (max-width: 900px) { .nav { display: none; } .top .wrap { gap: 18px; } .lang { margin-inline-start: auto; } }
@media (max-width: 400px) { .logo img { height: 34px; } .get { padding: 9px 14px; font-size: 13.5px; } }

/* ---------- Phones (a real screen in a titanium frame) ---------- */
.phone { --pw: 280px; position: relative; width: var(--pw); flex: none; padding: calc(var(--pw) * .016); border-radius: calc(var(--pw) * .175);
    background: linear-gradient(135deg, #7a6b6e 0%, #352a2d 18%, #1f191b 50%, #352b2e 82%, #85777a 100%);
    box-shadow: 0 50px 90px -34px rgba(67, 38, 45, .6), 0 18px 36px -20px rgba(67, 38, 45, .4), inset 0 0 0 1px rgba(255, 255, 255, .14); }
.phone .bz { background: #050505; padding: calc(var(--pw) * .03); border-radius: calc(var(--pw) * .16); }
.phone .sc { position: relative; overflow: hidden; border-radius: calc(var(--pw) * .13); background: var(--porcelain); aspect-ratio: 440 / 956; isolation: isolate; }
.phone .sc img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.phone .sc::before { content: ''; position: absolute; z-index: 20; left: 50%; top: 1.15%; width: 28.6%; height: 3.9%; transform: translateX(-50%); border-radius: 99px; background: #000; }
.phone .sc::after { content: ''; position: absolute; inset: 0; z-index: 21; pointer-events: none; background: linear-gradient(115deg, rgba(255, 255, 255, .12) 0%, rgba(255, 255, 255, .02) 28%, transparent 42%); }
.crop { border-radius: 20px; background-color: #fff; background-repeat: no-repeat; box-shadow: 0 30px 60px -20px rgba(67, 38, 45, .4), 0 6px 16px rgba(67, 38, 45, .08), 0 0 0 1px rgba(67, 38, 45, .05); }

/* ---------- Store badges ---------- */
.badges { display: flex; flex-wrap: wrap; gap: 10px; }
.badge { display: inline-flex; align-items: center; gap: 11px; height: 56px; padding: 0 20px 0 17px; border-radius: 14px; background: var(--garnet); color: #fff; direction: ltr; text-align: left;
    transition: transform .25s var(--ease), background .2s, box-shadow .25s; box-shadow: 0 12px 26px -14px rgba(67, 38, 45, .8); }
.badge svg { width: 25px; height: 25px; flex: none; }
.badge small { display: block; font-size: 10.5px; line-height: 1.2; opacity: .78; font-weight: 500; }
[dir=rtl] .badge small { font-size: 11.5px; }
.badge b { display: block; font: 600 18px/1.2 'IBM Plex Sans Arabic', system-ui, sans-serif; letter-spacing: -.01em; }
a.badge:hover { transform: translateY(-2px); background: var(--garnet-2); }
.badge.soon { background: transparent; color: var(--musk); box-shadow: inset 0 0 0 1px rgba(67, 38, 45, .18); }
.on-dark .badge { background: #fff; color: var(--garnet); }
.on-dark .badge.soon { background: transparent; color: rgba(243, 230, 232, .65); box-shadow: inset 0 0 0 1px rgba(243, 230, 232, .25); }

/* ---------- Footer ---------- */
footer { padding: 80px 0 calc(30px + env(safe-area-inset-bottom)); color: var(--musk); font-size: 15px; }
/* The footer's lockup sits at the column's start, like the text under it. */
footer .logo { display: inline-flex; }
footer .logo img { height: 38px; }
footer .logo span { font-size: 11px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; font-weight: 600; }
footer nav a:hover { color: var(--garnet); }
.social { display: flex; gap: 8px; margin-inline-start: auto; }
.social a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: var(--garnet); box-shadow: inset 0 0 0 1px var(--line); transition: background .2s, color .2s; }
.social a:hover { background: var(--garnet); color: var(--night-ink); }
.social .ic { width: 20px; height: 20px; }
.copy { width: 100%; font-size: 13.5px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
@media (max-width: 640px) { .copy { justify-content: center; text-align: center; } }

/* ---------- Footer ---------- */
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding: 10px 0 40px; }
.foot h4 { margin: 0 0 14px; font-size: 13.5px; font-weight: 700; color: var(--garnet); }
[dir=ltr] .foot h4 { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot ul a { transition: color .2s; }
.foot ul a:hover { color: var(--garnet); }
.foot .about p { margin: 14px 0 18px; max-width: 24em; line-height: 1.7; font-size: 14.5px; }
.foot .soon-t { opacity: .6; }
@media (max-width: 900px) { .foot { grid-template-columns: 1fr 1fr; gap: 30px 20px; } .foot .about { grid-column: 1 / -1; } }

/* ---------- Mobile download bar ---------- */
.bar-dl { position: fixed; z-index: 70; inset-inline: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); display: none; align-items: center; gap: 12px; padding: 10px 10px 10px 12px; border-radius: 20px;
    background: rgba(255, 255, 255, .9); backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px); box-shadow: 0 20px 40px -16px rgba(67, 38, 45, .45), 0 0 0 1px rgba(67, 38, 45, .08);
    transform: translateY(140%); transition: transform .5s var(--ease); }
.bar-dl.show { transform: none; }
.bar-dl img { width: 44px; height: 44px; border-radius: 11px; }
.bar-dl b { display: block; font-size: 15px; line-height: 1.3; }
.bar-dl small { display: block; font-size: 12.5px; color: var(--musk); line-height: 1.3; }
.bar-dl a { margin-inline-start: auto; background: var(--garnet); color: var(--night-ink); font-weight: 600; font-size: 14.5px; padding: 11px 20px; border-radius: 14px; }
@media (max-width: 760px) { .bar-dl { display: flex; } footer { padding-bottom: calc(100px + env(safe-area-inset-bottom)); } }


/* ---------- Reveal on scroll ---------- */
.js .rv { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .js .rv { opacity: 1 !important; transform: none !important; transition: none !important; }
    .live .tw { animation: none !important; }
}

/* ---------- Get the app ---------- */
.cta { padding: 120px 0 70px; }
.door { position: relative; max-width: 920px; margin: 0 auto; border-radius: 999px 999px 40px 40px; overflow: hidden; color: var(--night-ink); text-align: center; padding: 170px 40px 70px;
    background: repeating-linear-gradient(45deg, rgba(243, 230, 232, .05) 0 1px, transparent 1px 26px), repeating-linear-gradient(-45deg, rgba(243, 230, 232, .05) 0 1px, transparent 1px 26px), radial-gradient(70% 60% at 50% 10%, #6E4450, transparent 70%), linear-gradient(170deg, #55343C 0%, #43262D 50%, #2A171C 100%); }
.door::after { content: ''; position: absolute; inset: 14px 14px 14px; border-radius: 999px 999px 28px 28px; border: 1px solid rgba(243, 230, 232, .16); pointer-events: none; }
.door .mark { width: 168px; margin: 0 auto 6px; }
.door h2 { font-size: clamp(48px, 7vw, 92px); line-height: 1.3; }
[dir=ltr] .door h2 { line-height: 1.06; }
.door p { color: #D3BDC2; font-size: 18px; margin: 14px auto 36px; max-width: 30em; }
.door .badges { justify-content: center; }
.door .qr { display: inline-flex; align-items: center; gap: 16px; margin-top: 34px; padding: 12px 18px 12px 12px; border-radius: 20px; background: rgba(243, 230, 232, .07); border: 1px solid rgba(243, 230, 232, .12); text-align: start; font-size: 14px; color: #D3BDC2; }
.door .qr img { width: 84px; height: 84px; background: #fff; padding: 8px; border-radius: 12px; }
.door .qr b { display: block; color: var(--night-ink); font-size: 15.5px; }
@media (hover: none), (max-width: 760px) { .door .qr { display: none; } }
@media (max-width: 640px) { .cta { padding: 70px 0 40px; } .door { padding: 130px 20px 50px; border-radius: 999px 999px 28px 28px; } .door::after { inset: 10px; border-radius: 999px 999px 20px 20px; } .door .mark { width: 130px; } }
