/* Eventa landing page. Brand tokens from the app (lib/core/theme/app_colors.dart). */

@font-face { font-family: "Tajawal"; src: url("fonts/tajawal-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Tajawal"; src: url("fonts/tajawal-medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Tajawal"; src: url("fonts/tajawal-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Tajawal"; src: url("fonts/tajawal-extrabold.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Tajawal"; src: url("fonts/tajawal-black.woff2") format("woff2"); font-weight: 900; font-display: swap; }

:root {
    --ink: #0E0A2B;
    --ink-deep: #08061C;
    --surface: #17123A;
    --surface-2: #221B4A;
    --line: #332A63;
    --line-soft: rgba(240, 204, 255, 0.12);
    --text: #EEEBFF;
    --text-2: #B2AAD9;
    --text-3: #8E86BD;
    --lilac: #F0CCFF;
    --indigo: #311AFD;
    --violet: #6609FF;
    --purple: #9826FD;
    --primary-light: #B57BFF;
    --magenta: #FF32FD;
    --fuchsia: #F206ED;
    --success: #22C55E;
    --error: #FF7A8D;
    --brand-gradient: linear-gradient(90deg, #3A1FFD 0%, #7A1EFD 48%, #B517E8 100%);
    --radius-card: 24px;
    --radius-field: 14px;
    --nav-h: 68px;
    --gutter: clamp(16px, 4vw, 40px);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --font: "Tajawal", "Segoe UI", system-ui, sans-serif;
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-h) + 16px);
    scrollbar-color: var(--line) var(--ink-deep);
    background: var(--ink);
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--text);
    background: var(--ink);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    caret-color: var(--magenta);
    accent-color: var(--purple);
    overflow-x: clip;
}

[lang="en"] body, html[lang="en"] body { line-height: 1.65; }

::selection { background: var(--lilac); color: var(--ink); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--ink-deep); }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; border: 2px solid var(--ink-deep); }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.3em; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--lilac); outline-offset: 3px; border-radius: 6px; }

.ic { width: 1.15em; height: 1.15em; flex: none; }
[dir="rtl"] .ic--flip { transform: scaleX(-1); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }

.skip {
    position: fixed; inset-inline-start: 16px; top: -60px; z-index: 100;
    padding: 10px 18px; border-radius: 999px; background: var(--lilac); color: var(--ink); font-weight: 700; text-decoration: none;
    transition: top 0.2s;
}
.skip:focus { top: 12px; }

.preview-badge {
    position: fixed; inset-block-end: 16px; inset-inline-start: 50%; transform: translateX(-50%); z-index: 90;
    padding: 8px 16px; border-radius: 999px; background: #FFD66B; color: #241a00; font-weight: 700; font-size: 0.875rem; white-space: nowrap;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
[dir="rtl"] .preview-badge { transform: translateX(50%); }

/* ---------- Aurora: the onboarding light pools ---------- */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: var(--ink); }
.aurora__pool {
    position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; will-change: transform;
}
.aurora__pool--a { width: 62vmax; height: 62vmax; background: radial-gradient(circle, var(--indigo) 0%, transparent 68%); top: -30vmax; inset-inline-end: -14vmax; animation: drift-a 26s ease-in-out infinite alternate; }
.aurora__pool--b { width: 50vmax; height: 50vmax; background: radial-gradient(circle, var(--magenta) 0%, transparent 66%); top: -10vmax; inset-inline-start: -22vmax; opacity: 0.26; animation: drift-b 32s ease-in-out infinite alternate; }
.aurora__pool--c { width: 54vmax; height: 54vmax; background: radial-gradient(circle, var(--violet) 0%, transparent 66%); bottom: -34vmax; inset-inline-start: 20vw; opacity: 0.32; animation: drift-c 38s ease-in-out infinite alternate; }
.aurora__sparkles { position: absolute; inset: 0; width: 100%; height: 100%; }
@keyframes drift-a { to { transform: translate3d(-6vmax, 8vmax, 0) scale(1.08); } }
@keyframes drift-b { to { transform: translate3d(8vmax, 6vmax, 0) scale(0.92); } }
@keyframes drift-c { to { transform: translate3d(-10vmax, -8vmax, 0) scale(1.1); } }

/* ---------- Buttons ---------- */
.btn {
    --btn-bg: transparent;
    display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
    min-height: 52px; padding: 0 1.5em; border-radius: 999px; border: 1px solid transparent;
    font-weight: 700; font-size: 1rem; line-height: 1; white-space: nowrap; text-decoration: none; cursor: pointer;
    transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background-color 0.2s, border-color 0.2s;
}
.btn:active { transform: translateY(1px) scale(0.98); }
.btn--primary {
    color: #fff; background: var(--brand-gradient);
    box-shadow: 0 10px 28px -10px rgba(122, 30, 253, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.btn--primary:hover { box-shadow: 0 16px 36px -12px rgba(181, 23, 232, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.3); transform: translateY(-1px); }
.btn--ghost { color: var(--text); border-color: rgba(240, 204, 255, 0.28); background: rgba(240, 204, 255, 0.04); }
.btn--ghost:hover { border-color: rgba(240, 204, 255, 0.55); background: rgba(240, 204, 255, 0.08); }
.btn--sm { min-height: 42px; padding: 0 1.15em; font-size: 0.9375rem; }
.btn--wide { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; height: var(--nav-h); transition: background-color 0.3s, box-shadow 0.3s; }
.nav.is-solid { background: rgba(10, 7, 32, 0.78); box-shadow: 0 1px 0 var(--line-soft); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); }
.nav__inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.nav__brand img { width: 118px; height: auto; }
.nav__links { display: flex; align-items: center; gap: 4px; margin-inline-start: 8px; }
.nav__links a { padding: 8px 12px; border-radius: 999px; color: var(--text-2); font-weight: 500; text-decoration: none; transition: color 0.2s, background-color 0.2s; }
.nav__links a:hover { color: var(--text); background: rgba(240, 204, 255, 0.06); }
.nav__end { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }
.nav__lang { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; color: var(--text-2); font-weight: 500; text-decoration: none; }
.nav__lang:hover { color: var(--text); }
.nav__lang--menu { display: none; }
.nav__toggle { display: none; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line-soft); background: rgba(240, 204, 255, 0.05); align-items: center; justify-content: center; cursor: pointer; }
.nav__toggle .ic { width: 22px; height: 22px; }
.nav__toggle .ic--close { display: none; }
.nav__toggle[aria-expanded="true"] .ic--open { display: none; }
.nav__toggle[aria-expanded="true"] .ic--close { display: block; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(20px, 4vh, 48px) clamp(48px, 8vh, 96px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr); gap: clamp(28px, 4vw, 64px); align-items: center; min-height: calc(100dvh - var(--nav-h) - 40px); }
.hero__title { font-size: clamp(2.4rem, 4vw, 3.6rem); line-height: 1.12; font-weight: 900; letter-spacing: -0.02em; }
[lang="en"] .hero__title { line-height: 1.04; letter-spacing: -0.03em; }
.hero__sub { margin-top: 18px; max-width: 34rem; font-size: clamp(1.0625rem, 1.3vw, 1.1875rem); color: var(--text-2); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

/* Save the date card */
.std {
    position: relative; margin-top: 22px; padding: 18px 18px 16px; max-width: 37rem;
    border-radius: var(--radius-card); background: linear-gradient(180deg, rgba(34, 27, 74, 0.86), rgba(23, 18, 58, 0.86));
    border: 1px solid var(--line-soft);
    box-shadow: 0 24px 60px -24px rgba(4, 2, 18, 0.9), inset 0 1px 0 rgba(240, 204, 255, 0.08);
}
.std fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.std__legend { display: inline-flex; align-items: center; gap: 8px; padding: 0; margin-bottom: 12px; font-weight: 700; font-size: 0.9375rem; color: var(--lilac); }
.std__legend .ic { color: var(--magenta); }
.std__occasions { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
    display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border-radius: 999px;
    border: 1px solid var(--line); color: var(--text-2); font-size: 0.9375rem; font-weight: 500; cursor: pointer;
    transition: color 0.2s, background-color 0.2s, border-color 0.2s;
}
.chip span .ic { width: 1em; height: 1em; }
.chip:hover span { border-color: rgba(240, 204, 255, 0.4); color: var(--text); }
.chip input:checked + span { color: var(--ink); background: var(--lilac); border-color: var(--lilac); font-weight: 700; }
.chip input:focus-visible + span { outline: 2px solid var(--lilac); outline-offset: 2px; }

.std__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin-top: 14px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field__label { font-size: 0.8125rem; font-weight: 700; color: var(--text-2); }
.field__control {
    position: relative; display: flex; align-items: center; gap: 8px; min-height: 48px; padding-inline: 14px;
    border-radius: var(--radius-field); background: rgba(8, 6, 28, 0.55); border: 1px solid var(--line);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.field__control:focus-within { border-color: var(--primary-light); box-shadow: 0 0 0 3px rgba(181, 123, 255, 0.22); }
.field__control .ic { color: var(--text-3); }
.field__control input, .field__control select, .field__control textarea {
    flex: 1; min-width: 0; width: 100%; height: 46px; padding: 0; border: 0; outline: 0; background: transparent; font-size: 1rem;
}
.field__control input::placeholder, .field__control textarea::placeholder { color: var(--text-3); }
.field__control select { appearance: none; -webkit-appearance: none; cursor: pointer; }
.field__control select option { background: var(--surface); color: var(--text); }
.field__control .ic--caret { pointer-events: none; }
.field__control input[type="date"] { color-scheme: dark; }
.field__control input[type="date"]::-webkit-calendar-picker-indicator { opacity: 0.55; cursor: pointer; }
.field__control--area { align-items: stretch; padding-block: 10px; }
.field__control--area textarea { height: auto; min-height: 120px; resize: vertical; line-height: 1.6; }
.field__hint { font-size: 0.8125rem; color: var(--text-3); }
.field.is-invalid .field__control { border-color: var(--error); }
.field.is-invalid .field__label { color: var(--error); }

.std__count { display: flex; align-items: flex-end; gap: 14px; margin-top: 16px; padding-top: 14px; border-top: 1px dashed rgba(240, 204, 255, 0.16); min-height: 92px; }
.std__num {
    font-size: clamp(3.75rem, 6.6vw, 5.25rem); line-height: 0.86; font-weight: 900; letter-spacing: -0.04em;
    font-variant-numeric: tabular-nums; color: #fff; text-shadow: 0 0 40px rgba(255, 50, 253, 0.28);
}
.std__num:empty { display: none; }
.std__unit { display: grid; gap: 2px; padding-bottom: 4px; font-weight: 700; font-size: 1.125rem; line-height: 1.35; }
.std__what { color: var(--text-2); font-weight: 500; font-size: 1rem; }
.std__hint { margin-top: 6px; font-size: 0.8125rem; color: var(--text-3); }
.std.is-past .std__hint { color: var(--error); }

/* Stage: occasion photograph + the real phone */
.hero__stage { position: relative; height: min(74vh, 680px); min-height: 520px; }
.hero__photos {
    position: absolute; inset-block: 0 6%; inset-inline: 0 24%; border-radius: 32px; overflow: hidden;
    box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8);
}
.hero__photos::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(14, 10, 43, 0.05) 30%, rgba(14, 10, 43, 0.6) 100%), linear-gradient(90deg, rgba(49, 26, 253, 0.18), rgba(255, 50, 253, 0.12));
    mix-blend-mode: normal;
}
.hero__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 0.9s var(--ease-out), transform 2.4s var(--ease-out); }
.hero__photo.is-on { opacity: 1; transform: scale(1); }
.hero__stage .phone--hero { position: absolute; inset-inline-end: 0; bottom: 0; width: min(44%, 262px); }

/* ---------- Phone frame (screenshots are real; the frame is chrome) ---------- */
.phone {
    position: relative; margin: 0; aspect-ratio: 440 / 956; padding: 3.2%; border-radius: 15% / 7%;
    background: linear-gradient(145deg, #2a2440, #0a0816 40%, #1d1832);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.1),
        0 2px 0 1px rgba(255, 255, 255, 0.05) inset,
        0 50px 90px -30px rgba(3, 1, 15, 0.9),
        0 30px 60px -30px rgba(102, 9, 255, 0.45);
}
.phone > img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 12.2% / 5.7%; background: #fff; }

/* ---------- Categories marquee ---------- */
.cats { padding-block: clamp(56px, 9vw, 112px) clamp(40px, 6vw, 72px); }
.cats__title { font-size: clamp(1.75rem, 3vw, 2.5rem); max-width: 32ch; line-height: 1.25; }
.cats__track { margin-top: 32px; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.cats__list { display: flex; gap: 14px; width: max-content; padding-inline: var(--gutter); animation: marquee 60s linear infinite; }
[dir="rtl"] .cats__list { animation-name: marquee-rtl; }
.cats__track:hover .cats__list { animation-play-state: paused; }
.cat { position: relative; width: 210px; aspect-ratio: 4 / 5; border-radius: 20px; overflow: hidden; flex: none; background: var(--surface); }
.cat img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-out); }
.cat:hover img { transform: scale(1.05); }
.cat::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(8, 6, 28, 0.88)); }
.cat span { position: absolute; z-index: 1; inset-inline: 16px; bottom: 14px; font-weight: 700; font-size: 1.0625rem; line-height: 1.3; }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes marquee-rtl { to { transform: translateX(50%); } }

/* ---------- Plan ---------- */
.plan { padding-block: clamp(64px, 9vw, 128px); }
.plan__head { max-width: 44rem; }
.plan__head h2 { font-size: clamp(2rem, 3.8vw, 3.25rem); line-height: 1.18; }
.plan__head p { margin-top: 14px; color: var(--text-2); font-size: 1.125rem; }
.plan__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: clamp(32px, 6vw, 96px); margin-top: clamp(24px, 4vw, 56px); }
.plan__steps { counter-reset: none; }
.step { min-height: 66vh; display: flex; flex-direction: column; justify-content: center; padding-block: 32px; opacity: 0.32; transition: opacity 0.5s var(--ease-out); }
.step.is-active { opacity: 1; }
.step__when { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; color: var(--lilac); font-weight: 700; }
.step__when .ic { width: 22px; height: 22px; color: var(--magenta); }
.step__when time { padding: 3px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--text-2); font-weight: 500; font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.step__when time:empty { display: none; }
.step__title { margin-top: 14px; font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.2; }
.step__text { margin-top: 14px; max-width: 34rem; color: var(--text-2); font-size: 1.125rem; }
.step__points { display: grid; gap: 8px; margin-top: 20px; }
.step__points li { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.step__points .ic { width: 20px; height: 20px; padding: 3px; border-radius: 999px; background: rgba(34, 197, 94, 0.16); color: var(--success); }
.phone--inline { display: none; }
.plan__device { position: relative; }
.plan__sticky { position: sticky; top: calc(var(--nav-h) + 4vh); height: calc(100vh - var(--nav-h) - 8vh); display: flex; align-items: center; justify-content: center; gap: 22px; }
.phone--plan { width: min(320px, 26vw); max-height: 100%; }
.phone--plan > img { position: absolute; inset: 3.2%; width: 93.6%; height: 93.6%; opacity: 0; transform: translateY(14px) scale(0.985); transition: opacity 0.55s var(--ease-out), transform 0.7s var(--ease-out); }
.phone--plan > img.is-on { opacity: 1; transform: none; }
.plan__dots { display: grid; gap: 10px; }
.plan__dots { gap: 18px; }
.plan__dots li { width: 6px; height: 22px; border-radius: 999px; background: var(--line); transition: background-color 0.3s, transform 0.4s var(--ease-out); }
.plan__dots li.is-on { transform: scaleY(1.6); background: var(--brand-gradient); }
.plan__note { display: flex; align-items: center; gap: 8px; margin-top: 24px; color: var(--text-3); font-size: 0.875rem; }

/* ---------- Vendors bento ---------- */
.vendors { padding-block: clamp(64px, 9vw, 128px); }
.vendors__head { max-width: 46rem; }
.vendors__head h2 { font-size: clamp(2rem, 3.8vw, 3.25rem); line-height: 1.18; }
.vendors__head p { margin-top: 14px; color: var(--text-2); font-size: 1.125rem; }
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; margin-top: clamp(32px, 4vw, 56px); }
.bento__cell {
    position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 20px; align-items: end;
    min-height: 420px; padding: 28px 28px 0; border-radius: var(--radius-card); border: 1px solid var(--line-soft);
    background: var(--surface);
}
.bento__cell--today { grid-column: span 7; background: radial-gradient(120% 90% at 100% 0%, rgba(102, 9, 255, 0.55), transparent 60%), var(--surface); }
.bento__cell--calendar { grid-column: span 5; background: linear-gradient(180deg, var(--surface-2), var(--surface)); }
.bento__cell--analytics { grid-column: span 5; background: radial-gradient(110% 80% at 0% 100%, rgba(242, 6, 237, 0.32), transparent 60%), var(--surface); }
.bento__cell--wallet { grid-column: span 7; background: radial-gradient(120% 90% at 0% 0%, rgba(49, 26, 253, 0.5), transparent 62%), var(--surface); }
/* Wallet card hidden from the admin: the analytics card takes the whole row. */
.bento--three .bento__cell--analytics { grid-column: 1 / -1; }
.bento__copy { align-self: start; padding-bottom: 28px; }
.bento__icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: rgba(240, 204, 255, 0.08); border: 1px solid var(--line-soft); color: var(--lilac); }
.bento__icon .ic { width: 22px; height: 22px; }
.bento__copy h3 { margin-top: 18px; font-size: clamp(1.375rem, 2vw, 1.75rem); line-height: 1.25; }
.bento__copy p { margin-top: 10px; color: var(--text-2); }
.bento__shot { position: relative; margin: 0; align-self: end; height: 360px; overflow: hidden; }
.bento__shot img {
    width: 100%; max-width: 260px; margin-inline: auto; border-radius: 30px 30px 0 0; border: 6px solid #0a0816; border-bottom: 0;
    box-shadow: 0 -10px 40px -10px rgba(0, 0, 0, 0.6); background: #fff;
}
.bento__pin {
    position: absolute; top: 34%; inset-inline-start: -8px; display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 14px; border-radius: 999px; background: var(--lilac); color: var(--ink); font-weight: 700; font-size: 0.875rem;
    box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.6); white-space: nowrap;
}
.bento__pin time { font-variant-numeric: tabular-nums; }
.bento__pin span { padding-inline-start: 8px; border-inline-start: 1px solid rgba(14, 10, 43, 0.25); font-weight: 500; }

.join { display: grid; gap: 28px; justify-items: start; margin-top: clamp(56px, 7vw, 96px); }
.join__title { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.join__steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; width: 100%; }
.join__steps::before { content: ""; position: absolute; top: 9px; inset-inline: 0; height: 2px; background: linear-gradient(90deg, var(--line), var(--purple), var(--line)); opacity: 0.8; }
.join__steps li { position: relative; display: grid; gap: 6px; padding-top: 34px; }
.join__steps li::before { content: ""; position: absolute; top: 2px; inset-inline-start: 0; width: 16px; height: 16px; border-radius: 999px; background: var(--ink); border: 2px solid var(--lilac); }
.join__steps strong { font-size: 1.125rem; }
.join__steps span { color: var(--text-2); font-size: 0.9375rem; }

/* ---------- Trust ---------- */
.trust { position: relative; isolation: isolate; padding-block: clamp(80px, 11vw, 160px); overflow: hidden; }
.trust__photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.trust::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(14, 10, 43, 0.96) 0%, rgba(14, 10, 43, 0.86) 48%, rgba(14, 10, 43, 0.35) 100%), linear-gradient(180deg, var(--ink) 0%, transparent 18%, transparent 82%, var(--ink) 100%); }
[dir="rtl"] .trust::before { background: linear-gradient(270deg, rgba(14, 10, 43, 0.96) 0%, rgba(14, 10, 43, 0.86) 48%, rgba(14, 10, 43, 0.35) 100%), linear-gradient(180deg, var(--ink) 0%, transparent 18%, transparent 82%, var(--ink) 100%); }
.trust__inner > h2 { max-width: 16ch; font-size: clamp(2.25rem, 4.4vw, 3.75rem); line-height: 1.15; }
.trust__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 48px; max-width: 46rem; margin: 48px 0 0; }
.trust__item dt { display: flex; align-items: flex-start; gap: 12px; font-weight: 800; font-size: 1.25rem; line-height: 1.35; }
.trust__item dt .ic { width: 26px; height: 26px; margin-top: 1px; color: var(--lilac); }
.trust__item dd { margin: 10px 0 0; padding-inline-start: 38px; color: var(--text-2); }
.trust__pay { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 48px; }
.trust__pay > span { color: var(--text-3); font-size: 0.875rem; font-weight: 700; }
.trust__pay ul { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.trust__pay li { display: grid; place-items: center; height: 40px; padding: 0 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.94); }
.trust__pay li img { height: 24px; width: auto; }
.trust__pay .trust__pay-text { background: rgba(240, 204, 255, 0.08); border: 1px solid var(--line-soft); color: var(--text); font-weight: 700; font-size: 0.875rem; }

/* ---------- FAQ ---------- */
.faq { padding-block: clamp(64px, 9vw, 128px); }
.faq__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq__grid > h2 { position: sticky; top: calc(var(--nav-h) + 32px); font-size: clamp(2rem, 3.8vw, 3.25rem); line-height: 1.18; }
.faq__list { display: grid; gap: 10px; }
.qa { border-radius: 20px; background: rgba(23, 18, 58, 0.7); border: 1px solid var(--line-soft); transition: background-color 0.25s, border-color 0.25s; }
.qa[open] { background: var(--surface); border-color: rgba(240, 204, 255, 0.22); }
.qa summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; cursor: pointer; list-style: none; font-weight: 700; font-size: 1.125rem; line-height: 1.4; }
.qa summary::-webkit-details-marker { display: none; }
.qa__sign { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 999px; border: 1px solid var(--line); transition: transform 0.35s var(--ease-out), background-color 0.25s; }
.qa__sign .ic { width: 16px; height: 16px; }
.qa[open] .qa__sign { transform: rotate(45deg); background: var(--lilac); color: var(--ink); border-color: var(--lilac); }
.qa p { padding: 0 22px 22px; color: var(--text-2); max-width: 62ch; }

/* ---------- Download ---------- */
.download { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(96px, 13vw, 180px); text-align: center; }
.download__photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.download::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 70% at 50% 50%, rgba(14, 10, 43, 0.55), rgba(14, 10, 43, 0.94)), linear-gradient(180deg, var(--ink), transparent 25%, transparent 75%, var(--ink)); }
.download__inner { display: grid; justify-items: center; }
.download__mark { width: 72px; height: auto; filter: drop-shadow(0 10px 30px rgba(255, 50, 253, 0.45)); }
.download h2 { margin-top: 28px; font-size: clamp(2.25rem, 5vw, 4.25rem); line-height: 1.12; max-width: 18ch; font-variant-numeric: tabular-nums; }
.download p { margin-top: 16px; color: var(--text-2); font-size: 1.125rem; max-width: 40ch; }
.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
.store {
    display: inline-flex; align-items: center; gap: 12px; min-width: 196px; min-height: 60px; padding: 8px 20px 8px 18px;
    border-radius: 16px; background: #fff; color: #0b0920; text-decoration: none; text-align: start;
    transition: transform 0.25s var(--ease-out), box-shadow 0.25s;
}
.store:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -14px rgba(240, 204, 255, 0.55); }
.store .ic { width: 28px; height: 28px; }
.store span { display: grid; line-height: 1.15; }
.store small { font-size: 0.75rem; font-weight: 500; opacity: 0.75; }
.store strong { font-size: 1.1875rem; font-weight: 800; }
[lang="ar"] .store strong { direction: ltr; text-align: end; }
.store--soon { background: rgba(240, 204, 255, 0.07); color: var(--text-2); border: 1px dashed rgba(240, 204, 255, 0.3); cursor: default; }
.store--soon:hover { transform: none; box-shadow: none; }

/* ---------- Contact ---------- */
.contact { padding-block: clamp(64px, 9vw, 128px); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact__intro h2 { font-size: clamp(2rem, 3.8vw, 3.25rem); line-height: 1.18; }
.contact__intro > p { margin-top: 14px; color: var(--text-2); font-size: 1.125rem; max-width: 30rem; }
.channels { display: grid; gap: 10px; margin-top: 32px; }
.channels a { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 18px; border: 1px solid var(--line-soft); background: rgba(23, 18, 58, 0.6); text-decoration: none; transition: border-color 0.2s, background-color 0.2s; }
.channels a:hover { border-color: rgba(240, 204, 255, 0.3); background: var(--surface); }
.channels .ic { width: 24px; height: 24px; color: var(--lilac); }
.channels span { display: grid; line-height: 1.35; }
.channels small { color: var(--text-3); font-size: 0.8125rem; }
.channels bdi { font-weight: 700; }
.socials { margin-top: 28px; }
.socials > span { color: var(--text-3); font-size: 0.875rem; font-weight: 700; }
.socials ul { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.socials a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line); color: var(--text-2); transition: color 0.2s, border-color 0.2s, background-color 0.2s; }
.socials a:hover { color: var(--ink); background: var(--lilac); border-color: var(--lilac); }
.socials .ic { width: 20px; height: 20px; }

.contact__form-wrap { padding: clamp(20px, 3vw, 32px); border-radius: var(--radius-card); background: linear-gradient(180deg, rgba(34, 27, 74, 0.8), rgba(23, 18, 58, 0.8)); border: 1px solid var(--line-soft); }
.form { display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.form__trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.form__errors { padding: 14px 16px; border-radius: 16px; border: 1px solid rgba(255, 122, 141, 0.5); background: rgba(255, 122, 141, 0.08); color: #FFC2CB; }
.form__errors ul { margin-top: 6px; display: grid; gap: 2px; font-size: 0.9375rem; list-style: disc; padding-inline-start: 18px; }
.form > .field__hint { margin-top: -8px; }
.check { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; color: var(--text-2); font-size: 0.9375rem; line-height: 1.6; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check__box { display: grid; place-items: center; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 7px; border: 1.5px solid var(--line); background: rgba(8, 6, 28, 0.55); transition: background-color 0.2s, border-color 0.2s; }
.check__box .ic { width: 14px; height: 14px; opacity: 0; color: var(--ink); }
.check input:checked + .check__box { background: var(--lilac); border-color: var(--lilac); }
.check input:checked + .check__box .ic { opacity: 1; }
.check input:focus-visible + .check__box { outline: 2px solid var(--lilac); outline-offset: 2px; }
.check.is-invalid .check__box { border-color: var(--error); }
.sent { display: grid; justify-items: start; gap: 8px; padding: 12px 4px; }
.sent__icon .ic { width: 44px; height: 44px; color: var(--success); }
.sent strong { font-size: 1.5rem; }
.sent p { color: var(--text-2); }
.contact__closed { color: var(--text-2); }

/* ---------- Footer ---------- */
.footer { padding-block: 40px 48px; border-top: 1px solid var(--line-soft); background: rgba(8, 6, 28, 0.6); }
.footer__inner { display: grid; grid-template-columns: auto 1fr; gap: 24px 48px; align-items: center; }
.footer__brand { display: flex; align-items: center; gap: 18px; }
.footer__brand img { width: 104px; }
.footer__brand p { color: var(--text-3); font-size: 0.9375rem; }
.footer__links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 18px; }
.footer__links a { color: var(--text-2); text-decoration: none; font-size: 0.9375rem; }
.footer__links a:hover { color: var(--text); text-decoration: underline; }
.footer__copy { grid-column: 1 / -1; color: var(--text-3); font-size: 0.8125rem; }

/* ---------- Reveal (content is visible at rest; JS hides only what is off screen) ---------- */
.js-motion [data-reveal].is-pending { opacity: 0; transform: translateY(18px); }
.js-motion [data-reveal].is-shown { opacity: 1; transform: none; transition: opacity 0.8s var(--ease-out), transform 0.9s var(--ease-out); transition-delay: var(--d, 0s); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .nav__links { display: none; }
    .nav__toggle { display: inline-flex; }
    .nav__lang { display: none; }
    .nav__links.is-open {
        display: grid; position: fixed; inset: var(--nav-h) 0 auto 0; margin: 0; padding: 12px var(--gutter) 24px; gap: 2px;
        background: rgba(10, 7, 32, 0.97); border-bottom: 1px solid var(--line-soft); backdrop-filter: blur(18px);
    }
    .nav__links.is-open a { padding: 14px 4px; border-radius: 0; font-size: 1.125rem; border-bottom: 1px solid var(--line-soft); }
    .nav__links.is-open .nav__lang--menu { display: flex; border-bottom: 0; }
    .bento__cell { grid-template-columns: minmax(0, 1fr); padding: 24px 24px 0; }
    .bento__cell--today, .bento__cell--calendar, .bento__cell--analytics, .bento__cell--wallet { grid-column: span 6; }
    .bento__copy { padding-bottom: 0; }
    .bento__shot { height: 300px; }
}

@media (max-width: 900px) {
    .hero__grid { grid-template-columns: minmax(0, 1fr); min-height: 0; }
    .hero__stage { height: auto; min-height: 0; aspect-ratio: 4 / 4.2; margin-top: 8px; }
    .hero__photos { inset-inline: 0 18%; }
    .hero__stage .phone--hero { width: min(46vw, 230px); bottom: -4%; }
    .plan__grid { grid-template-columns: minmax(0, 1fr); }
    .plan__device { display: none; }
    .step { min-height: 0; opacity: 1; padding-block: 36px; border-top: 1px solid var(--line-soft); }
    .phone--inline { display: block; width: min(68vw, 290px); margin: 28px auto 0; }
    .trust__list { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .faq__grid, .contact__grid { grid-template-columns: minmax(0, 1fr); }
    .faq__grid > h2 { position: static; }
    .join__steps { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .footer__inner { grid-template-columns: minmax(0, 1fr); }
    .footer__links { justify-content: flex-start; }
}

@media (max-width: 640px) {
    .nav__inner { gap: 12px; }
    body { font-size: 1rem; }
    .nav__brand img { width: 100px; }
    .nav__end .btn--sm { min-height: 40px; padding: 0 1em; font-size: 0.875rem; }
    .hero__title { font-size: clamp(2.25rem, 10vw, 2.75rem); }
    .std { padding: 16px 14px 14px; }
    .std__occasions { flex-wrap: nowrap; overflow-x: auto; margin-inline: -14px; padding-inline: 14px; padding-bottom: 4px; scrollbar-width: none; scroll-snap-type: x proximity; }
    .std__occasions::-webkit-scrollbar { display: none; }
    .chip { flex: none; scroll-snap-align: start; }
    .std__row { gap: 8px; }
    .field__control { padding-inline: 12px; }
    .hero__ctas .btn { flex: 1 1 100%; }
    .bento__cell--today, .bento__cell--calendar, .bento__cell--analytics, .bento__cell--wallet { grid-column: 1 / -1; }
    .bento__cell { min-height: 0; }
    .join__steps { grid-template-columns: minmax(0, 1fr); }
    .join__steps::before { top: 0; bottom: 0; inset-inline-start: 7px; inset-inline-end: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--line), var(--purple), var(--line)); }
    .join__steps li { padding-top: 0; padding-inline-start: 34px; }
    .join__steps li::before { top: 6px; }
    .join .btn { width: 100%; }
    .form__row { grid-template-columns: minmax(0, 1fr); }
    .cat { width: 160px; }
    .store { flex: 1 1 100%; justify-content: center; }
    .trust::before, [dir="rtl"] .trust::before { background: linear-gradient(180deg, var(--ink) 0%, rgba(14, 10, 43, 0.9) 30%, rgba(14, 10, 43, 0.9) 70%, var(--ink) 100%); }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .aurora__pool, .cats__list { animation: none; }
    .cats__track { overflow-x: auto; scroll-snap-type: x mandatory; }
    .cat { scroll-snap-align: start; }
    .hero__photo, .phone--plan > img, .step { transition: none; }
    .js-motion [data-reveal].is-pending { opacity: 1; transform: none; }
}

/* ---------- «قريباً» ---------- */
.soon { min-height: 100dvh; display: grid; grid-template-rows: auto 1fr auto; }
.soon__top { display: flex; align-items: center; justify-content: space-between; padding-block: 20px; }
.soon__top img { width: 112px; }
.soon__lang { display: inline-flex; }
.soon__main { display: grid; justify-items: center; align-content: center; text-align: center; padding-block: 40px 64px; }
.soon__mark { width: 96px; filter: drop-shadow(0 16px 40px rgba(255, 50, 253, 0.45)); }
.soon h1 { margin-top: 32px; font-size: clamp(2.5rem, 7vw, 5rem); font-weight: 900; line-height: 1.08; letter-spacing: -0.02em; }
.soon__main > p { margin-top: 16px; max-width: 34ch; color: var(--text-2); font-size: 1.1875rem; }
.soon__socials { display: grid; justify-items: center; margin-top: 36px; }
.soon__mail { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; color: var(--text-2); text-decoration: none; }
.soon__mail:hover { color: var(--text); }
.soon__foot { padding-block: 24px; color: var(--text-3); font-size: 0.8125rem; text-align: center; }
@media (max-width: 1080px) { .soon__lang { display: inline-flex; } }
