/* =============================================================================
   ZIKRAYATI — SITE DESIGN SYSTEM (home page and checkout)
   Brand guidelines v1.0: Cream paper and Memory Ink do most of the work,
   Lavender is ours, Coral is the dot and one main moment per layout, one
   occasion pastel at a time. Fredoka / Baloo Bhaijaan 2 for display, Readex Pro
   for text and interface. Shared brand tokens, logo pieces and Zizo live in
   brand.css / brand.js. Class names are short and component-scoped.
   ============================================================================= */

/* ---------------------------------------------------------------------------
   1. Tokens (mapped onto the brand palette in brand.css)
   --------------------------------------------------------------------------- */
:root {
  --ink: #383336; --ink-2: #5C5560; --ink-3: #6B6470; --line: rgba(56, 51, 54, .1); --line-2: rgba(56, 51, 54, .18);
  --bg: #FFFCF5; --bg-2: #FBF5E5; --bg-3: #F1E8CF;
  --night: #383336; --night-2: #2C282A; --night-3: #4A4448;   /* Memory Ink panels */
  --sun: #FBE7A1; --sun-2: #FDF0C4; --peach: #FFD3C2; --sky: #C7DEF5;
  --lav: #B9AEF0; --mist: #DAD5F7; --blush: #F8CFDA; --butter: #FBE7A1;
  --n-line: rgba(251, 245, 229, .18); --n-text: #FBF5E5; --n-text-2: rgba(251, 245, 229, .8); --n-text-3: rgba(251, 245, 229, .6);
  --accent: #5B4BC4; --accent-2: #4A3BAE; --accent-soft: rgba(91, 75, 196, .1); --accent-ink: #4A3BAE;
  --ok: #2F7D5A; --ok-soft: rgba(198, 234, 214, .75); --warn: #8A5D00; --warn-soft: rgba(251, 231, 161, .7); --err: #C63F3C; --err-soft: rgba(248, 207, 218, .55);
  --r-xs: 8px; --r-sm: 12px; --r: 16px; --r-lg: 22px; --r-xl: 28px;
  --sh-1: 0 0 0 1.5px rgba(56, 51, 54, .08);
  --sh-2: 0 14px 30px -16px rgba(56, 51, 54, .3), 0 0 0 1.5px rgba(56, 51, 54, .07);
  --sh-3: 0 40px 90px -30px rgba(44, 40, 42, .45), 0 0 0 1.5px rgba(56, 51, 54, .08);
  --press: 0 4px 0 var(--ink);
  --ease: cubic-bezier(.22, .7, .2, 1); --ease-out: cubic-bezier(.16, 1, .3, 1); --ease-io: cubic-bezier(.65, 0, .35, 1); --spring: cubic-bezier(.34, 1.4, .64, 1);
  --latin: "Readex Pro", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --arabic: "Readex Pro", system-ui, sans-serif;
  --display: "Fredoka", "Baloo Bhaijaan 2", ui-rounded, system-ui, sans-serif;
  --hand: "Caveat", "Aref Ruqaa", cursive;
  --font: var(--latin); --mono: var(--latin);
  --nav-h: 68px; --gutter: clamp(16px, 4vw, 40px); --maxw: 1240px;
  --sec: clamp(88px, 11vw, 150px);
}
html[lang="ar"] { --font: var(--arabic); --mono: var(--arabic); --display: "Baloo Bhaijaan 2", "Fredoka", system-ui, sans-serif; --hand: "Aref Ruqaa", "Caveat", serif; }

/* ---------------------------------------------------------------------------
   2. Base
   --------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: var(--nav-h); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; overflow-x: clip; }
html[lang="ar"] body, html[lang="ar"] * { letter-spacing: 0 !important; }
html.is-locked { overflow: hidden; }
h1, h2, h3, h4, p, dl, dd, ol, ul, figure { margin: 0; padding: 0; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--lav); color: var(--ink); }
[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.ic-sm { width: 16px; height: 16px; } .ic-xs { width: 12px; height: 12px; stroke-width: 2.2; }
html[dir="rtl"] .flip, html[dir="rtl"] .flip-r { transform: scaleX(-1); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
.cur { position: fixed; left: 0; top: 0; z-index: 70; pointer-events: none; margin: 16px 0 0 16px; padding: 7px 12px; border-radius: 999px; background: var(--accent); color: #fff; font: 500 12px/1 var(--font); white-space: nowrap;
  opacity: 0; scale: .6; transition: opacity .2s, scale .35s var(--spring); box-shadow: 0 8px 20px -8px rgba(91, 75, 196, .7); }
.cur.is-on { opacity: 1; scale: 1; }
.skip { position: fixed; top: 10px; inset-inline-start: 10px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: #fff; transform: translateY(-160%); transition: transform .3s; }
.skip:focus { transform: none; }

.wrap { width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.night { background: var(--night); color: var(--n-text); }
.tint { background: var(--bg-2); }

/* Auth-dependent visibility (html[data-auth] is set by site-app.js) */
html[data-auth="loading"] .if-in, html[data-auth="loading"] .if-out,
html[data-auth="in"] .if-out, html[data-auth="in"] .if-loading,
html[data-auth="out"] .if-in, html[data-auth="out"] .if-loading { display: none !important; }
html:not([data-admin]) .if-admin { display: none !important; }

/* ---------------------------------------------------------------------------
   3. Type
   --------------------------------------------------------------------------- */
/* Display: Fredoka 700, line height 1.0, tracking −2% (Arabic: Baloo Bhaijaan 2, 1.15, no tracking) */
.display { font: 700 clamp(46px, 7vw, 108px)/1 var(--display); letter-spacing: -.02em; }
.h2 { font: 600 clamp(34px, 4.6vw, 62px)/1.06 var(--display); letter-spacing: -.02em; text-wrap: balance; }
html[lang="ar"] .display { line-height: 1.15; font-weight: 800; font-size: clamp(42px, 6.4vw, 100px); }
html[lang="ar"] .h2 { line-height: 1.25; font-weight: 700; }
.dim { color: var(--ink-3); }
.night .dim { color: var(--lav); }
.night .eyebrow::before { background: var(--lav); }
.lead { font-size: clamp(17px, 1.3vw, 19px); font-weight: 300; line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }
html[lang="ar"] .lead { line-height: 1.85; }
.night .lead { color: var(--n-text-2); }
/* Labels: sentence case, never all-caps or letter-spaced */
.eyebrow { display: inline-flex; align-items: center; gap: 9px; font: 600 14px/1.2 var(--font); color: var(--ink-2); }
.eyebrow::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--lav); flex: none; }
.night .eyebrow, .eyebrow-light { color: var(--n-text-2); }
html[lang="ar"] .eyebrow { font-size: 14.5px; }
.mono-tag { display: inline-flex; align-items: center; gap: 6px; font: 500 12.5px/1 var(--font); font-variant-numeric: tabular-nums; color: var(--ink-2); padding: 6px 10px; border: 1.5px solid var(--line-2); border-radius: 999px; white-space: nowrap; }
.mono-light { color: var(--n-text-3); border-color: var(--n-line); }

.sec-head { display: grid; gap: 20px; max-width: 760px; }
.sec-head-split { max-width: none; grid-template-columns: 1.2fr 1fr; align-items: end; gap: 40px; }
.sec-head-split .lead { padding-bottom: 6px; }
.sec-head-center { margin-inline: auto; justify-items: center; text-align: center; }
.sec-head-center .lead { max-width: 620px; }
.sec-head .h2 { margin-top: -2px; }
.sec-head-split > div { display: grid; gap: 20px; }

/* ---------------------------------------------------------------------------
   4. Controls
   --------------------------------------------------------------------------- */
/* Buttons: chunky, rounded and pressable, like stickers you can push. A solid
   shadow (ink, or lavender under ink buttons) lifts 2px on hover and collapses
   when pressed. 46px default touch target, Readex Pro 600, sentence case. */
.btn { --sh: var(--ink); position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 46px; padding: 0 22px; border-radius: 999px; border: 2px solid var(--ink);
  font: 600 15px/1 var(--font); white-space: nowrap; user-select: none; box-shadow: 0 4px 0 var(--sh); margin-bottom: 4px;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease), opacity .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--sh); }
.btn:active { transform: translateY(4px); box-shadow: 0 0 0 var(--sh); transition-duration: .08s; }
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 999px; }
.btn .ic { transition: transform .35s var(--ease-out); }
.btn:hover .ic { transform: translateX(3px); }
html[dir="rtl"] .btn:hover .ic.flip { transform: scaleX(-1) translateX(3px); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; gap: 8px; box-shadow: 0 3px 0 var(--sh); }
.btn-sm:hover { box-shadow: 0 5px 0 var(--sh); }
.btn-lg { height: 56px; padding: 0 28px; font-size: 16.5px; }
.btn-block { width: 100%; }
.btn-primary { --sh: var(--lav); background: var(--ink); color: var(--bg-2); }
.btn-light { background: var(--bg-2); color: var(--ink); }
.btn-lav { background: var(--lav); color: var(--ink); }
.btn-outline { color: var(--ink); background: var(--bg); }
.btn-outline:hover { background: #fff; }
.btn-quiet { border-color: transparent; box-shadow: none; color: var(--ink-2); }
.btn-quiet:hover { background: var(--bg-2); color: var(--ink); box-shadow: none; transform: none; }
.btn-quiet:active { transform: none; }
.btn-ghost-light { --sh: var(--lav); border-color: var(--n-text); color: var(--n-text); background: transparent; }
.btn-ghost-light:hover { background: rgba(251, 245, 229, .08); }
/* The "rec" dot: the coral moment on the one main action of a layout */
.btn-rec::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--zk-coral, #FF6A64); flex: none; }
.btn[disabled], .btn.is-disabled { background: var(--bg-3); color: var(--ink-3); border-color: transparent; box-shadow: none; transform: none; pointer-events: none; }
.btn-primary[disabled], .btn-primary.is-disabled { background: var(--bg-3); color: var(--ink-3); }
.btn .spin { position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; opacity: 0; animation: spin .7s linear infinite; }
.btn.is-loading { pointer-events: none; }
.btn.is-loading .btn-label, .btn.is-loading .ic { opacity: 0; }
.btn.is-loading .spin { opacity: 1; }
@keyframes spin { to { transform: rotate(360deg); } }

.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: var(--ink-2); transition: background .2s, color .2s; flex: none; }
.icon-btn:hover { background: var(--bg-2); color: var(--ink); }
.round-btn { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--ink); background: var(--bg); color: var(--ink); box-shadow: 0 3px 0 var(--ink); transition: background .25s, color .25s, transform .2s var(--ease), box-shadow .2s var(--ease), opacity .25s; }
.round-btn:hover { background: var(--lav); transform: translateY(-2px); box-shadow: 0 5px 0 var(--ink); }
.round-btn:active { transform: translateY(3px); box-shadow: 0 0 0 var(--ink); }
.round-btn[disabled] { opacity: .3; pointer-events: none; }
.link-btn { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font: 600 14.5px/1.3 var(--font); }
.link-btn:hover { color: var(--accent-2); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.link-btn[disabled] { color: var(--ink-3); pointer-events: none; }
.link-sm { font-size: 13px; }
/* Chips: 2px edges, selected = Lavender */
.chip { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 999px; border: 2px solid var(--line-2); background: var(--bg); font: 500 13px/1 var(--font); color: var(--ink-2); transition: all .2s var(--ease); }
.chip:hover { color: var(--ink); border-color: var(--ink); }
.chip.is-on { background: var(--lav); border-color: var(--ink); color: var(--ink); }
.chip-note { font: 500 13px/1 var(--font); color: var(--ink-3); }
.badge { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font: 600 12px/1 var(--font); background: var(--bg-3); color: var(--ink-2); white-space: nowrap; vertical-align: middle; }
.badge-accent { background: var(--mist); color: var(--ink); }
.badge-light { background: rgba(251, 245, 229, .16); color: var(--n-text); }

/* Segmented control with a sliding indicator (positioned by site.js via --x / --w) */
.seg { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px; border-radius: 13px; background: var(--bg-2); }
.seg > button { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; border-radius: 9px; font: 500 14px/1 var(--font); color: var(--ink-3); transition: color .25s; }
.seg > button[aria-selected="true"], .seg > button[aria-checked="true"] { color: var(--ink); }
.seg em { font: 500 11px/1 var(--mono); font-style: normal; padding: 3px 6px; border-radius: 999px; background: rgba(56, 51, 54, .07); color: var(--ink-3); }
.seg-ind { position: absolute; top: 4px; bottom: 4px; left: 0; width: var(--w, 50%); transform: translateX(var(--x, 4px)); border-radius: 9px; background: #fff; box-shadow: 0 1px 3px rgba(56, 51, 54, .12), 0 0 0 1px rgba(56, 51, 54, .04); transition: transform .45s var(--ease-out), width .45s var(--ease-out); }
.seg-sm > button { height: 32px; font-size: 13px; }

/* Range */
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; --fill: 50%; }
.range::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(var(--ink), var(--ink)) 0 0 / var(--fill) 100% no-repeat, var(--bg-3); }
.range::-moz-range-track { height: 4px; border-radius: 4px; background: var(--bg-3); }
.range::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--ink); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -10px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 1px rgba(56, 51, 54, .14), 0 3px 10px rgba(56, 51, 54, .22); transition: transform .2s var(--spring); }
.range::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 1px rgba(56, 51, 54, .14), 0 3px 10px rgba(56, 51, 54, .22); }
.range:active::-webkit-slider-thumb { transform: scale(1.15); }
html[dir="rtl"] .range::-webkit-slider-runnable-track { background-position: 100% 0; }

/* Switch (demo) and toggle (admin) */
.switch { display: inline-flex; align-items: center; gap: 10px; font: 500 14px/1 var(--font); color: var(--ink-2); }
.switch-dot { position: relative; width: 38px; height: 22px; border-radius: 11px; background: var(--bg-3); transition: background .25s; flex: none; }
.switch-dot::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .35s var(--spring); }
.switch.is-on .switch-dot { background: var(--accent); }
.switch.is-on .switch-dot::after { transform: translateX(16px); }
html[dir="rtl"] .switch.is-on .switch-dot::after { transform: translateX(-16px); }
.toggle { -webkit-appearance: none; appearance: none; position: relative; width: 44px; height: 26px; border-radius: 13px; background: var(--bg-3); cursor: pointer; transition: background .25s; flex: none; margin: 0; }
.toggle::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.22); transition: transform .35s var(--spring); }
.toggle:checked { background: var(--ok); }
.toggle:checked::after { transform: translateX(18px); }
html[dir="rtl"] .toggle:checked::after { transform: translateX(-18px); }
.select { -webkit-appearance: none; appearance: none; width: 100%; height: 48px; padding: 0 40px 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236B6470' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E") right 14px center no-repeat; font-size: 15px; }
html[dir="rtl"] .select { padding: 0 14px 0 40px; background-position: left 14px center; }
.select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }

/* Ticked list */
.ticks { list-style: none; display: grid; gap: 11px; }
.ticks li { position: relative; padding-inline-start: 30px; font-size: 15.5px; line-height: 1.45; color: var(--ink-2); }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent-soft); }
.ticks li::after { content: ""; position: absolute; inset-inline-start: 5px; top: 6px; width: 10px; height: 10px; background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 12.5 5 5L20 6.5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 12.5 5 5L20 6.5'/%3E%3C/svg%3E") center / contain no-repeat; }

/* Photos used inside pages and demos */
.ph { background: #E8E1CC center / cover no-repeat; }
/* Real-looking sample photos (assets/photos): a trip, a birthday, Teta, friends. Second picks (…2) add variety */
.ph-petra { background-image: url("assets/photos/petra-2.jpg"); background-position: 50% 60%; }
.ph-petra2 { background-image: url("assets/photos/petra-3.jpg"); background-position: 50% 60%; }
.ph-cake { background-image: url("assets/photos/birthday-2.jpg"); background-position: 22% 55%; }
.ph-cake.ph-right { background-position: 85% 45%; }
.ph-cake2 { background-image: url("assets/photos/birthday-4.jpg"); background-position: 60% 50%; }
.ph-flowers { background-image: url("assets/photos/teta-2.jpg"); background-position: 55% 55%; }
.ph-flowers2 { background-image: url("assets/photos/teta-1.jpg"); background-position: 40% 60%; }
.ph-albums { background-image: url("assets/photos/friends-3.jpg"); background-position: 55% 60%; }
.ph-albums.ph-right { background-position: 80% 60%; }
.ph-albums2 { background-image: url("assets/photos/friends-1.jpg"); background-position: 60% 60%; }

/* ---------------------------------------------------------------------------
   5. Navigation
   --------------------------------------------------------------------------- */
.nv { position: fixed; inset: 0 0 auto; z-index: 60; height: var(--nav-h); color: var(--n-text); transition: background-color .35s var(--ease), box-shadow .35s var(--ease), color .35s var(--ease), transform .45s var(--ease); }
.nv[data-tone="light"] { color: var(--ink); }
.nv.is-solid { background: rgba(255, 255, 255, .1); box-shadow: 0 1px 0 var(--n-line); -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px); }
.nv.is-solid[data-tone="light"] { background: rgba(255, 252, 245, .82); box-shadow: 0 1px 0 var(--line); }
.nv-in { height: 100%; display: flex; align-items: center; gap: 20px; }
.nv-logo { position: relative; display: block; flex: none; }
.nv-logo img { height: 30px; width: auto; }
.nv-logo .for-dark { position: absolute; inset: 0; }
.nv-logo img { transition: opacity .35s; }
.nv[data-tone="dark"] .for-light, .nv[data-tone="light"] .for-dark { opacity: 0; }
.nv-links { position: relative; display: flex; gap: 2px; margin-inline: auto; }
.nv-links a { position: relative; z-index: 1; padding: 9px 14px; border-radius: 999px; font: 500 14px/1 var(--font); opacity: .72; transition: opacity .2s; }
.nv-links a:hover, .nv-links a.is-active { opacity: 1; }
.nv-ind { position: absolute; top: 0; bottom: 0; left: 0; width: var(--w, 0); transform: translateX(var(--x, 0)); border-radius: 999px; background: currentColor; opacity: 0; transition: transform .45s var(--ease-out), width .45s var(--ease-out), opacity .3s; pointer-events: none; }
.nv-links.has-ind .nv-ind { opacity: .08; }
.nv-end { display: flex; align-items: center; gap: 8px; }
.nv[data-tone="dark"] .nv-cta { background: #fff; color: var(--ink); }
.nv[data-tone="dark"] .nv-cta:hover { background: var(--accent); color: #fff; }
.nv-text { height: 38px; padding: 0 12px; border-radius: 999px; font: 500 14px/1 var(--font); opacity: .82; transition: opacity .2s, background .2s; }
.nv-text:hover { opacity: 1; background: color-mix(in srgb, currentColor 8%, transparent); }
.nv-skel { width: 92px; height: 34px; border-radius: 999px; background: linear-gradient(90deg, rgba(128,128,128,.12), rgba(128,128,128,.24), rgba(128,128,128,.12)) 0 0 / 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
/* Language switch: the active letter sits on a filled pill in the text colour, its letter inverted */
.lang-btn { --on: #fff; display: inline-flex; align-items: center; height: 34px; padding: 3px; border-radius: 999px; border: 1px solid color-mix(in srgb, currentColor 18%, transparent); font: 600 12px/1 var(--latin); }
.nv[data-tone="dark"] .lang-btn, .night .lang-btn { --on: var(--night); }
html.sheet-open .nv .lang-btn { --on: #fff; }
.lang-btn span { display: grid; place-items: center; min-width: 26px; height: 26px; border-radius: 999px; opacity: .55; transition: background-color .25s, opacity .25s; }
.lang-btn .lang-ar { font: 600 14px/1 var(--arabic); padding-bottom: 2px; }
html[lang="en"] .lang-btn .lang-en, html[lang="ar"] .lang-btn .lang-ar { opacity: 1; background: currentColor; -webkit-text-fill-color: var(--on); }

.acct-wrap { position: relative; }
.nv-acct { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 10px 0 3px; border-radius: 999px; border: 1px solid color-mix(in srgb, currentColor 16%, transparent); font: 500 14px/1 var(--font); transition: background .2s; }
html[dir="rtl"] .nv-acct { padding: 0 3px 0 10px; }
.nv-acct:hover, .nv-acct[aria-expanded="true"] { background: color-mix(in srgb, currentColor 8%, transparent); }
.nv-acct .ic { opacity: .6; transition: transform .3s var(--ease); }
.nv-acct[aria-expanded="true"] .ic { transform: rotate(180deg); }
.nv-acct-name { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.av { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; flex: none; background: var(--accent); color: #fff; font: 600 12.5px/1 var(--latin); letter-spacing: .02em; text-transform: uppercase; }
.av-lg { width: 44px; height: 44px; font-size: 16px; }
.nv-burger { display: none; position: relative; width: 40px; height: 40px; border-radius: 12px; }
.nv-burger span { position: absolute; left: 11px; right: 11px; height: 1.6px; border-radius: 2px; background: currentColor; transition: transform .45s var(--ease-out), top .45s var(--ease-out); }
.nv-burger span:first-child { top: 15px; } .nv-burger span:last-child { top: 23px; }
.nv-burger[aria-expanded="true"] span:first-child { top: 19px; transform: rotate(45deg); }
.nv-burger[aria-expanded="true"] span:last-child { top: 19px; transform: rotate(-45deg); }

/* Popover base (account menu) */
.pop { opacity: 0; transform: translateY(-8px) scale(.98); transition: opacity .22s var(--ease), transform .35s var(--ease-out); }
.pop.is-open { opacity: 1; transform: none; }

/* Account panel */
.acct { position: absolute; top: calc(100% + 12px); inset-inline-end: 0; width: 404px; max-height: min(660px, calc(100vh - var(--nav-h) - 24px)); display: flex; flex-direction: column;
  background: #fff; color: var(--ink); border-radius: 22px; box-shadow: var(--sh-3); overflow: hidden; transform-origin: top right; z-index: 2; }
html[dir="rtl"] .acct { transform-origin: top left; }
.acct-head { display: flex; align-items: center; gap: 12px; padding: 18px 18px 16px; }
.acct-who { min-width: 0; flex: 1; }
.acct-name { font: 600 15.5px/1.25 var(--font); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-mail { font-size: 13px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct .seg { margin-inline: 16px; }
.acct-body { flex: 1; min-height: 240px; overflow: auto; overscroll-behavior: contain; padding: 10px; }
.acct-list { display: grid; gap: 2px; align-content: start; }
.acct-foot { display: flex; justify-content: space-between; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line); background: #FBF5E5; }

/* Project / order card */
.pc { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 14px; width: 100%; padding: 10px; border-radius: 14px; text-align: start; transition: background .2s; animation: pcIn .5s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 40ms); }
.pc:hover, .pc:focus-visible { background: var(--bg-2); }
@keyframes pcIn { from { opacity: 0; transform: translateY(6px); } }
.pc-wrap { position: relative; }
.pc-main { display: grid; min-width: 0; }
.pc-thumb { width: 52px; height: 52px; display: grid; place-items: center; }
.pc-book { position: relative; height: 52px; aspect-ratio: 1 / 1.414; border-radius: 2px 5px 5px 2px; background: var(--bg-3) center / cover no-repeat; box-shadow: 0 6px 14px -6px rgba(56, 51, 54, .45), 0 0 0 1px rgba(56, 51, 54, .06); overflow: hidden; }
.pc-book[data-o="landscape"] { height: auto; width: 52px; aspect-ratio: 1.414 / 1; }
.pc-book[data-o="square"] { height: 44px; aspect-ratio: 1; }
.pc-book::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 14%; background: linear-gradient(90deg, rgba(0,0,0,.25), transparent); }
.pc-book.is-mono { display: grid; place-items: center; background: linear-gradient(150deg, #4A4448, var(--ink)); color: #fff; font: 600 17px/1 var(--font); }
.pc-title { font: 600 14.5px/1.3 var(--font); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-meta { margin-top: 3px; font-size: 12.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-side { display: flex; align-items: center; gap: 6px; color: var(--ink-3); }
.pc:hover .pc-side > .ic { color: var(--ink); transform: translateX(2px); }
.pc-side > .ic { transition: transform .3s var(--ease-out), color .2s; }
html[dir="rtl"] .pc-side > .ic { transform: scaleX(-1); }
.st { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 999px; font: 500 11.5px/1 var(--font); white-space: nowrap; background: var(--bg-2); color: var(--ink-2); }
.st::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .9; }
.st-draft { background: var(--bg-2); color: var(--ink-3); }
.st-prod { background: var(--warn-soft); color: var(--warn); }
.st-pack, .st-ready { background: var(--accent-soft); color: var(--accent-ink); }
.st-out { background: var(--accent); color: #fff; }
.st-done { background: var(--ok-soft); color: var(--ok); }
.st-unpaid { background: var(--err-soft); color: var(--err); }
.pc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.pc-skel { display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: center; padding: 10px; }
.pc-skel i, .pc-skel b, .pc-skel s { display: block; border-radius: 6px; background: linear-gradient(90deg, var(--bg-2), var(--bg-3), var(--bg-2)) 0 0 / 200% 100%; animation: shimmer 1.4s linear infinite; }
.pc-skel i { width: 37px; height: 52px; margin-inline: auto; border-radius: 3px; }
.pc-skel b { height: 12px; width: 70%; } .pc-skel s { height: 10px; width: 45%; margin-top: 8px; }
.list-head { display: flex; justify-content: space-between; align-items: center; padding: 6px 10px 8px; font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
html[lang="ar"] .list-head { font-family: var(--arabic); font-size: 12.5px; text-transform: none; }
.empty { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 26px 18px 22px; }
.empty-art { position: relative; width: 92px; height: 74px; margin-bottom: 6px; }
.empty-art i { position: absolute; bottom: 0; width: 46px; height: 64px; border-radius: 2px 5px 5px 2px; background: var(--bg-3); box-shadow: 0 8px 16px -8px rgba(56,51,54,.3); }
.empty-art i:nth-child(1) { left: 6px; transform: rotate(-10deg); }
.empty-art i:nth-child(2) { right: 6px; transform: rotate(9deg); background: #DAD5F7; }
.empty-art i:nth-child(3) { left: 23px; bottom: 4px; background: var(--ink); display: grid; place-items: center; color: #fff; }
.empty-art i:nth-child(3)::after { content: "+"; font: 400 24px/1 var(--latin); }
.empty h4 { font: 600 15px/1.3 var(--font); }
.empty p { font-size: 13.5px; color: var(--ink-3); max-width: 30ch; }
.empty .btn { margin-top: 6px; }

/* Phone / tablet sheet */
.sheet { position: fixed; inset: 0; z-index: 55; background: var(--bg); color: var(--ink); overflow-y: auto; overscroll-behavior: contain; opacity: 0; transition: opacity .3s var(--ease); }
.sheet.is-open { opacity: 1; }
.sheet-in { min-height: 100%; display: flex; flex-direction: column; padding: calc(var(--nav-h) + 8px) var(--gutter) 0; max-width: 640px; margin-inline: auto; }
.sheet-nav { display: grid; }
.sheet-nav a { display: flex; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font: 600 clamp(26px, 7vw, 34px)/1.1 var(--font); letter-spacing: -.035em;
  opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease-out), transform .6s var(--ease-out); transition-delay: calc(var(--i, 0) * 45ms + 60ms); }
.sheet-nav a i { font: 500 12px/1 var(--mono); font-style: normal; color: var(--ink-3); letter-spacing: 0; }
.sheet.is-open .sheet-nav a { opacity: 1; transform: none; }
.sheet-acct { margin-top: 28px; padding: 14px; border-radius: 22px; background: var(--bg-2); display: grid; gap: 12px; }
.sheet-acct .acct-head { padding: 4px 4px 0; }
.sheet-acct .seg { background: var(--bg-3); }
.sheet-acct .acct-list { background: #fff; border-radius: 16px; padding: 6px; }
.sheet-auth { margin-top: 28px; display: grid; gap: 14px; }
.sheet-auth-t { font-size: 15px; color: var(--ink-3); }
.sheet-auth-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sheet-foot { position: sticky; bottom: 0; margin-top: auto; display: flex; gap: 10px; align-items: center; padding: 20px 0 calc(16px + env(safe-area-inset-bottom)); background: linear-gradient(rgba(255,255,255,0), #fff 32%); }
.sheet-foot .btn-primary { flex: 1; height: 52px; }
.sheet-foot .lang-btn { height: 44px; padding: 4px; }
.sheet-foot .lang-btn span { min-width: 34px; height: 34px; }
html.sheet-open .nv { color: var(--ink); background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
html.sheet-open .nv .for-dark { opacity: 0; } html.sheet-open .nv .for-light { opacity: 1; }
html.sheet-open .nv .nv-cta { opacity: 0; pointer-events: none; }

/* ---------------------------------------------------------------------------
   6. 3D BOOK
   Faces: back cover, spine, page-block edges, last page, optional turning
   leaves, and a hinged front cover. --open and --turn are animatable angles.
   --------------------------------------------------------------------------- */
@property --open { syntax: "<angle>"; inherits: true; initial-value: 0deg; }
.book-host { position: relative; display: grid; place-items: center; perspective: 2400px; direction: ltr; user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.bk-float { position: relative; transform-style: preserve-3d; transition: transform 1s var(--ease); }
.bk-sway { transform-style: preserve-3d; animation: bkSway 10s ease-in-out infinite; }
.bk { --w: 240px; --h: 339px; --t: 18px; --i: 5px; --c: 2.4px; --lx: 50%; --cover-bg: #EFE7D2; --paper: #fcfbf8; --rad: 2px 5px 5px 2px; --leaves: 0;
  position: relative; width: var(--w); height: var(--h); transform-style: preserve-3d; transition: --open 1.1s var(--ease), width .8s var(--ease), height .8s var(--ease); }
.bk-rot { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform 1.4s var(--ease); }
.is-grabbing .bk-rot { transition: none; }
.bk-f { position: absolute; transition: width .8s var(--ease), height .8s var(--ease), left .8s var(--ease), top .8s var(--ease), transform .8s var(--ease); }
.bk.is-scrub, .bk.is-scrub .bk-rot, .bk.is-scrub .bk-f, .bk.is-scrub .ph { transition: none !important; }
.bk-back { left: 0; top: 0; width: var(--w); height: var(--h); border-radius: var(--rad); overflow: hidden; transform: translateZ(calc(var(--t) / -2)) rotateY(180deg); background: var(--cover-bg); }
.bk-back-art { position: absolute; inset: 0; background: center / cover no-repeat; }
.bk-back::after { content: ""; position: absolute; inset: 0; background: linear-gradient(270deg, rgba(0,0,0,.24), transparent 12%); }
.bk-spine { left: calc(var(--t) / -2); top: 0; width: var(--t); height: var(--h); transform: rotateY(-90deg); display: grid; place-items: center; overflow: hidden; border-radius: 2px;
  background: linear-gradient(90deg, rgba(0,0,0,.28), rgba(255,255,255,.16) 45%, rgba(0,0,0,.22)), var(--cover-bg); }
.bk-spine span { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; font: 500 clamp(6px, calc(var(--t) * .42), 11px)/1 var(--latin); letter-spacing: .16em; text-transform: uppercase; color: rgba(56, 51, 54, .55); }
.bk-edge-r { top: var(--i); height: calc(var(--h) - 2 * var(--i)); width: calc(var(--t) - 2 * var(--c)); left: calc(var(--w) - var(--i) - (var(--t) - 2 * var(--c)) / 2); transform: rotateY(90deg);
  background: repeating-linear-gradient(90deg, #fdfcfa 0 1.2px, #e2e0dc 1.2px 2px); }
.bk-edge-t, .bk-edge-b { left: 0; width: calc(var(--w) - var(--i)); height: calc(var(--t) - 2 * var(--c)); background: repeating-linear-gradient(0deg, #fdfcfa 0 1.2px, #e2e0dc 1.2px 2px); }
.bk-edge-t { top: calc(var(--i) - (var(--t) - 2 * var(--c)) / 2); transform: rotateX(90deg); }
.bk-edge-b { top: calc(var(--h) - var(--i) - (var(--t) - 2 * var(--c)) / 2); transform: rotateX(-90deg); }
.bk-page { left: 0; top: var(--i); width: calc(var(--w) - var(--i)); height: calc(var(--h) - 2 * var(--i)); transform: translateZ(calc(var(--t) / 2 - var(--c) - 1px - var(--leaves) * .8px - .8px));
  background: var(--paper); overflow: hidden; box-shadow: inset 16px 0 18px -14px rgba(0,0,0,.26); font-size: calc(var(--w) / 22); }
.bk-leaf { left: 0; top: var(--i); width: calc(var(--w) - var(--i)); height: calc(var(--h) - 2 * var(--i)); transform-origin: 0 50%; transform-style: preserve-3d;
  transform: translateZ(calc(var(--t) / 2 - var(--c) - 1px - var(--k) * .8px)) rotateY(calc(0deg - var(--turn, 0deg))); font-size: calc(var(--w) / 22); }
.bk-leaf > div { position: absolute; inset: 0; background: var(--paper); overflow: hidden; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.bk-leaf-front { box-shadow: inset 16px 0 18px -14px rgba(0,0,0,.26); }
.bk-leaf-back { transform: rotateY(180deg); box-shadow: inset -16px 0 18px -14px rgba(0,0,0,.26); }
.bk-leaf > div::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(0,0,0,.3), rgba(0,0,0,.04) 70%); opacity: var(--sh, 0); }
.bk-cover { left: 0; top: 0; width: var(--w); height: var(--h); transform-origin: 0 50%; transform-style: preserve-3d; transform: translateZ(calc(var(--t) / 2)) rotateY(calc(0deg - var(--open))); }
.bk-out, .bk-in { position: absolute; inset: 0; border-radius: var(--rad); overflow: hidden; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.bk-out { background: var(--cover-bg); box-shadow: inset 0 0 0 1px rgba(0,0,0,.07); }
.bk-in { transform: rotateY(180deg); background: #F3EEDF; box-shadow: inset -14px 0 18px -14px rgba(0,0,0,.25); display: grid; place-items: center; text-align: center; }
.bk-in-mark { display: grid; justify-items: center; gap: .5em; }
.bk-in-mark span { font: 700 calc(var(--w) / 8)/1.1 var(--arabic); color: var(--ink); }
.bk-in-mark small { font: 500 calc(var(--w) / 26)/1 var(--mono); letter-spacing: .3em; color: var(--ink-3); text-transform: uppercase; }
.bk-art { position: absolute; inset: 0; background: center / cover no-repeat; transition: opacity .35s var(--ease); }
.bk.is-swap .bk-art { opacity: 0; }
/* Plain cover (no theme): a photograph and a set title */
.bk-plain { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 12% 12% 12%; font-size: calc(var(--w) / 11); background: #FBF5E5; }
.bk-plain .ph { position: absolute; top: 12%; left: 12%; right: 12%; height: 52%; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.bk-plain-title { font: 600 .9em/1 var(--latin); letter-spacing: -.03em; color: var(--ink); }
.bk-plain-sub { margin-top: .6em; font: 500 .28em/1 var(--mono); letter-spacing: .28em; color: var(--ink-3); }
.bk[data-format="a4l"] .bk-plain, .bk[data-format="a5l"] .bk-plain { padding: 12% 8% 12% 55%; }
.bk[data-format="a4l"] .bk-plain .ph, .bk[data-format="a5l"] .bk-plain .ph { top: 12%; bottom: 12%; left: 8%; right: 50%; height: auto; }
.bk-spineshade { position: absolute; inset: 0 auto 0 0; width: 9%; background: linear-gradient(90deg, rgba(0,0,0,.22), transparent); pointer-events: none; }
.bk-hinge { position: absolute; top: 0; bottom: 0; left: 6.5%; width: 7px; opacity: 0; transition: opacity .5s; background: linear-gradient(90deg, rgba(0,0,0,.18), rgba(255,255,255,.32) 55%, rgba(0,0,0,.06)); }
.bk-score { position: absolute; top: 0; bottom: 0; left: 3%; width: 1px; background: rgba(0,0,0,.15); opacity: 0; transition: opacity .5s; }
.bk[data-cover="hardcover"] .bk-hinge { opacity: 1; }
.bk[data-cover="hardcover"] .bk-out { box-shadow: inset 0 0 0 1px rgba(0,0,0,.09), inset -3px 0 4px -2px rgba(0,0,0,.22), inset 0 -3px 4px -2px rgba(0,0,0,.16); }
.bk[data-cover="softcover"] { --rad: 1px 2px 2px 1px; }
.bk[data-cover="softcover"] .bk-score { opacity: 1; }
.bk-grain { position: absolute; inset: 0; opacity: 0; transition: opacity .5s; mix-blend-mode: multiply; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.bk-sheen { position: absolute; inset: 0; opacity: 0; transition: opacity .5s; pointer-events: none; mix-blend-mode: screen;
  background: linear-gradient(112deg, transparent 32%, rgba(255,255,255,.72) 46%, rgba(255,255,255,.18) 51%, transparent 64%); background-size: 260% 100%; background-position: var(--lx) 0; }
.bk[data-finish="matte"] .bk-grain { opacity: .4; }
.bk[data-finish="glossy"] .bk-sheen { opacity: 1; }
.bk[data-finish="glossy"] .bk-art { filter: saturate(1.1) contrast(1.04); }
.bk-shadow { position: absolute; left: 50%; bottom: -34px; width: calc(var(--sw, 240px) * 1.1); height: 34px; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(closest-side, rgba(56, 51, 54, .32), transparent); filter: blur(6px); transition: width .8s var(--ease); }
.night .bk-shadow { background: radial-gradient(closest-side, rgba(44, 40, 42, .6), transparent); }
.bk.is-flex { animation: bkFlex 1.1s var(--ease); }
.bk.is-flex .bk-out { animation: bkCurl 1.1s var(--ease); transform-origin: 0 50%; }
.bk.is-knock { animation: bkKnock .45s ease; }
@keyframes bkFlex { 0% { --open: 0deg; } 38% { --open: 38deg; } 62% { --open: 6deg; } 78% { --open: 14deg; } 100% { --open: 0deg; } }
@keyframes bkCurl { 38% { transform: skewY(-5deg) scaleX(.96); } 62% { transform: skewY(1deg); } }
@keyframes bkKnock { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-5px); } 45% { transform: translateX(4px); } 70% { transform: translateX(-2px); } }
@keyframes bkSway { 0%, 100% { transform: rotateY(-3deg) translateY(0); } 50% { transform: rotateY(3deg) translateY(-8px); } }
/* Page layouts inside the book */
.pg { position: absolute; inset: 0; display: grid; gap: 4%; padding: 8% 8% 8% 11%; }
.bk-leaf-back .pg, .pg.pg-l { padding: 8% 11% 8% 8%; }
.pg .ph { border-radius: 1px; transition: transform .6s var(--ease-out), opacity .5s; }
.pg-3 { grid-template-columns: 1.25fr 1fr; grid-template-rows: 1fr 1fr auto; }
.pg-3 .ph:first-child { grid-row: span 2; }
.pg-3 .pg-cap { grid-column: 1 / -1; }
.pg-full { padding: 0; }
.pg-full .ph { position: absolute; inset: 0; }
.pg-full .pg-cap { position: absolute; left: 10%; right: 10%; bottom: 7%; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.4); }
.pg-2 { grid-template-rows: 1fr 1fr auto; }
.pg-4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr auto; }
.pg-4 .pg-cap { grid-column: 1 / -1; }
.pg-title { align-content: center; justify-items: center; text-align: center; gap: 6%; padding: 14%; }
.pg-title .ph { width: 58%; aspect-ratio: 3 / 4; }
.pg-cap { font: 500 1.05em/1.1 var(--latin); letter-spacing: -.01em; color: var(--ink); }
.pg-cap small { display: block; margin-top: .45em; font: 500 .55em/1 var(--mono); letter-spacing: .22em; color: var(--ink-3); text-transform: uppercase; }
.pg-end { place-items: center; text-align: center; }
.pg-end span { font: 700 2.4em/1.1 var(--arabic); color: var(--ink); }
.pg-end small { display: block; font: 500 .6em/1 var(--mono); letter-spacing: .24em; color: var(--ink-3); margin-top: .8em; }
.pg-fill .ph { opacity: var(--f, 1); transform: scale(calc(.82 + var(--f, 1) * .18)); }
.pg-fill .slot { position: relative; }
.pg-fill .slot::before { content: ""; position: absolute; inset: 0; border: 1px dashed rgba(56, 51, 54, .28); border-radius: 2px; }
.pg-fill .slot > .ph { position: absolute; inset: 0; }

/* ---------------------------------------------------------------------------
   7. Hero
   --------------------------------------------------------------------------- */
.hero { position: relative; min-height: max(700px, 100svh); display: flex; flex-direction: column; padding-top: var(--nav-h); overflow: hidden; isolation: isolate; --hp: 0; --mx: 0; --my: 0; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-glow { position: absolute; width: 1100px; height: 1100px; right: -260px; top: 50%; margin-top: -560px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(185, 174, 240, .62), rgba(185, 174, 240, .2) 45%, transparent 72%);
  transform: translate(calc(var(--mx) * 30px), calc(var(--my) * 30px)); transition: transform 1.2s var(--ease-out); }
html[dir="rtl"] .hero-glow { right: auto; left: -260px; }
/* Sunlit paper: soft drifting colour light (sky, peach) and a fine paper grain */
.sun { background: var(--bg); color: var(--ink); }
.hero-lines { position: absolute; inset: -10%; animation: drift 22s ease-in-out infinite alternate;
  background: radial-gradient(32% 38% at 14% 20%, rgba(199, 222, 245, .9), transparent 70%),
              radial-gradient(28% 34% at 46% 92%, rgba(255, 211, 194, .75), transparent 70%),
              radial-gradient(20% 26% at 92% 10%, rgba(251, 231, 161, .55), transparent 70%); }
.hero-bg::after { content: ""; position: absolute; inset: 0; opacity: .35; mix-blend-mode: multiply;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .45 0 0 0 0 .35 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
@keyframes drift { from { transform: translate(-2%, -1%) scale(1); } to { transform: translate(2%, 2%) scale(1.06); } }
.hero .hero-line.dim { color: var(--accent); }
.hero .lead { color: var(--ink-2); }
.hero-grid { flex: 1; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); align-items: center; gap: 32px; padding-block: clamp(32px, 5vh, 64px); }
.hero-copy { transform: translateY(calc(var(--hp) * -70px)); opacity: calc(1 - var(--hp) * 1.25); will-change: transform, opacity; }
.hero-title { margin-top: 26px; }
.hero-line { display: block; }
.hero-sub { max-width: 500px; margin-top: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }
.hero-facts { display: flex; gap: clamp(24px, 3.5vw, 48px); margin-top: clamp(40px, 6vh, 64px); padding-top: 22px; border-top: 1px solid var(--line-2); max-width: 520px; }
.hero-facts dt { font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
html[lang="ar"] .hero-facts dt { font-family: var(--arabic); font-size: 12.5px; }
.hero-facts dd { margin-top: 10px; font: 500 17px/1 var(--font); color: var(--ink); }
.hero-facts b { font-weight: 650; font-size: 20px; }
.hero-stage { position: relative; height: min(70vh, 640px); min-height: 420px; transform: translateY(calc(var(--hp) * 36px)) scale(calc(1 - var(--hp) * .06)); will-change: transform; }
.hero-stage .book-host { position: absolute; inset: 0 0 40px; cursor: grab; }
.hero-stage .book-host.is-grabbing { cursor: grabbing; }
.hero-cap { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; gap: 14px; font: 500 12px/1 var(--mono); color: var(--ink-3); letter-spacing: .04em; }
html[lang="ar"] .hero-cap { font-family: var(--arabic); }
.hero-cap-name { color: var(--ink-2); transition: opacity .3s; }
.hero-cap-name::after { content: "·"; margin-inline-start: 14px; color: var(--ink-3); }
.ticker { position: relative; overflow: hidden; border-top: 1px solid var(--line-2); padding: 18px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker-row { display: flex; align-items: center; gap: 28px; width: max-content; animation: ticker 48s linear infinite; padding-inline-start: 28px; }
html[dir="rtl"] .ticker-row { animation-name: tickerR; }
.ticker-row span { font: 500 14px/1 var(--font); color: var(--ink-2); white-space: nowrap; }
.ticker-row i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
.ticker-row i:nth-of-type(3n+2) { background: var(--sun); } .ticker-row i:nth-of-type(3n) { background: #FFD3C2; }
@keyframes ticker { to { transform: translateX(-50%); } }
@keyframes tickerR { to { transform: translateX(50%); } }
/* Entrance */
.js .hero-copy > * { animation: rise 1s var(--ease-out) both; }
.js .hero-copy > :nth-child(1) { animation-delay: .05s; } .js .hero-copy > :nth-child(3) { animation-delay: .38s; } .js .hero-copy > :nth-child(4) { animation-delay: .5s; } .js .hero-copy > :nth-child(5) { animation-delay: .62s; }
.js .hero-title { animation: none !important; }
.js .hero-line { animation: riseLine 1.1s var(--ease-out) both; }
.js .hero-line:nth-child(1) { animation-delay: .12s; } .js .hero-line:nth-child(2) { animation-delay: .24s; }
.js .hero-stage { animation: fadeIn 1.4s var(--ease-out) .2s both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes riseLine { from { opacity: 0; transform: translateY(40%); filter: blur(10px); } }
@keyframes fadeIn { from { opacity: 0; } }

/* ---------------------------------------------------------------------------
   8. Story (pinned, scroll-driven)
   --------------------------------------------------------------------------- */
.story { padding-top: var(--sec); --sp: 0; }
.story-track { position: relative; height: 420vh; margin-top: -8vh; }
.story-stage { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; overflow: hidden; }
.story-grid { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: 40px; align-items: center; height: 100%; padding-top: var(--nav-h); }
.story-steps { position: relative; list-style: none; display: grid; gap: 2px; padding-inline-start: 34px; }
.story-steps::before { content: ""; position: absolute; inset-inline-start: 6px; top: 26px; bottom: 26px; width: 2px; border-radius: 2px;
  background: linear-gradient(var(--accent), var(--accent)) 0 0 / 100% calc(var(--sp) * 100%) no-repeat, var(--line); }
.story-steps li { position: relative; padding: 18px 0; opacity: .38; transition: opacity .5s var(--ease); }
.story-steps li::before { content: ""; position: absolute; inset-inline-start: -33px; top: 22px; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px var(--line-2); transition: box-shadow .4s, background .4s, transform .4s var(--spring); }
.story-steps li.is-past { opacity: .55; }
.story-steps li.is-past::before { background: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }
.story-steps li.is-on { opacity: 1; }
.story-steps li.is-on::before { background: #fff; box-shadow: inset 0 0 0 4px var(--accent), 0 0 0 6px var(--accent-soft); transform: scale(1.1); }
.story-n { font: 500 12px/1 var(--mono); color: var(--accent); letter-spacing: .06em; }
.story-steps h3 { margin-top: 10px; font: 620 clamp(22px, 2.2vw, 30px)/1.12 var(--font); letter-spacing: -.03em; }
.story-steps p { max-width: 38ch; color: var(--ink-2); font-size: 16px; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .6s var(--ease-out), opacity .5s, margin .5s; }
.story-steps li.is-on p { max-height: 140px; opacity: 1; margin-top: 10px; }
.story-visual { position: relative; height: min(78vh, 720px); }
.story-visual .book-host { position: absolute; inset: 0; }
.story-track-list { position: absolute; left: 50%; bottom: 2%; transform: translateX(-50%); list-style: none; display: flex; gap: 6px; padding: 6px; border-radius: 999px; background: #fff; box-shadow: var(--sh-2);
  opacity: var(--ship, 0); translate: 0 calc((1 - var(--ship, 0)) * 16px); transition: none; }
.story-track-list li { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 999px; font: 500 13px/1 var(--font); color: var(--ink-3); transition: background .4s, color .4s; white-space: nowrap; }
.story-track-list i { width: 8px; height: 8px; border-radius: 50%; background: var(--bg-3); transition: background .4s; }
.story-track-list li.is-on { color: var(--ink); }
.story-track-list li.is-on i { background: var(--ok); }
.story-track-list li.is-now { background: var(--bg-2); }
.story-progress { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 28px; height: 2px; border-radius: 2px; background: var(--line); overflow: hidden; display: none; }
.story-progress span { display: block; height: 100%; background: var(--ink); transform-origin: 0 50%; transform: scaleX(var(--sp)); }
html[dir="rtl"] .story-progress span { transform-origin: 100% 50%; }

/* ---------------------------------------------------------------------------
   9. Build (configurator)
   --------------------------------------------------------------------------- */
.build { padding-block: var(--sec); }
.cfg { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 20px; align-items: start; margin-top: clamp(40px, 5vw, 64px); }
.cfg-stage { position: sticky; top: calc(var(--nav-h) + 20px); height: calc(100vh - var(--nav-h) - 40px); min-height: 580px; max-height: 820px; display: flex; flex-direction: column; padding: 20px 24px 22px;
  border-radius: var(--r-xl); background: radial-gradient(ellipse 60% 38% at 50% 78%, rgba(56, 51, 54, .07), transparent 70%), #fff; box-shadow: var(--sh-1); overflow: hidden; }
.cfg-stage .book-host { flex: 1; min-height: 0; cursor: grab; }
.cfg-stage.is-grabbing .book-host { cursor: grabbing; }
.cfg-stage-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; position: relative; z-index: 2; }
.cfg-stage-btns { display: flex; gap: 6px; }
.cfg-note { position: absolute; top: 66px; left: 50%; z-index: 3; transform: translate(-50%, -6px); max-width: calc(100% - 48px); padding: 10px 16px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 13.5px; text-align: center; opacity: 0; transition: opacity .3s, transform .45s var(--ease-out); pointer-events: none; }
.cfg-note.is-on { opacity: 1; transform: translate(-50%, 0); }
.cfg-stage-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding-top: 16px; border-top: 1px solid var(--line); position: relative; z-index: 2; }
.cfg-name { font: 600 18px/1.2 var(--font); letter-spacing: -.02em; }
.cfg-sub { margin-top: 4px; font-size: 14px; color: var(--ink-3); }
.cfg-panel { display: grid; gap: 12px; min-width: 0; }
.cfg-group { min-width: 0; margin: 0; padding: 22px; border: 0; border-radius: var(--r-lg); background: #fff; box-shadow: var(--sh-1); }
.cfg-group legend { float: left; width: 100%; padding: 0; margin-bottom: 14px; font: 600 15px/1.2 var(--font); }
.cfg-group legend + * { clear: both; }
.legend-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.cfg-theme-name { font: 500 13.5px/1 var(--font); color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.opts { display: grid; gap: 10px; }
.opts-2 { grid-template-columns: 1fr 1fr; }
.opts-4 { grid-template-columns: repeat(4, 1fr); }
.opt { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px; border-radius: 14px; border: 1px solid var(--line-2); background: #fff; text-align: start; transition: border-color .2s, box-shadow .25s, background .2s; }
.opt:hover { border-color: var(--ink-3); }
.opt b { font: 600 15px/1.2 var(--font); }
.opt small { font-size: 12.5px; color: var(--ink-3); }
.opt.is-on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.opt.is-on::after { content: ""; position: absolute; top: 10px; inset-inline-end: 10px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 11px no-repeat; animation: pop .35s var(--spring); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.opt-sm { align-items: center; text-align: center; padding: 14px 6px 12px; }
.opt-sm b { font-size: 13px; font-weight: 550; }
.opt-sm.is-on::after { top: 6px; inset-inline-end: 6px; width: 16px; height: 16px; background-size: 10px; }
.opt.is-soon { color: var(--ink-3); }
.opt.is-soon small { font: 500 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
html[lang="ar"] .opt.is-soon small { font-family: var(--arabic); font-size: 11.5px; }
.shape { width: var(--sw); height: var(--sh); border: 1.6px solid currentColor; border-radius: 2px; margin: 4px 0 8px; opacity: .8; }
.opt-ico { position: relative; width: 44px; height: 32px; margin-bottom: 8px; }
.ico-hard::before, .ico-soft::before { content: ""; position: absolute; left: 8px; top: 0; width: 26px; height: 32px; border-radius: 1px 4px 4px 1px; background: var(--ink); box-shadow: 3px 3px 0 -1px #DAD5F7; }
.ico-hard::after { content: ""; position: absolute; left: 8px; top: 0; width: 4px; height: 32px; background: rgba(255,255,255,.22); }
.ico-soft::before { background: #DAD5F7; box-shadow: 2px 2px 0 -1px #EDE9FB; width: 24px; height: 30px; top: 1px; transform: skewY(-4deg); }
.ico-matte, .ico-glossy { border-radius: 8px; width: 44px; height: 32px; background: linear-gradient(135deg, #8F84DD, #5B4BC4); overflow: hidden; }
.ico-matte::after { content: ""; position: absolute; inset: 0; opacity: .55; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.ico-glossy::after { content: ""; position: absolute; inset: -10px; background: linear-gradient(115deg, transparent 38%, rgba(255,255,255,.75) 48%, transparent 58%); animation: gloss 3.2s var(--ease-io) infinite; }
@keyframes gloss { 0% { transform: translateX(-40px); } 60%, 100% { transform: translateX(40px); } }
.pages-ctl { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.pages-out { font: 620 42px/1 var(--font); letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.step-btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); transition: border-color .2s, background .2s; }
.step-btn:hover { border-color: var(--ink); }
.step-btn:active { background: var(--bg-2); }
.thumbs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 9px; }
.thumbs > button { position: relative; aspect-ratio: 1 / 1.414; border-radius: 2px 5px 5px 2px; background: var(--bg-2) center / cover no-repeat; box-shadow: 0 0 0 1px var(--line); transition: transform .3s var(--ease-out), box-shadow .25s; }
.thumbs > button:hover { transform: translateY(-3px); box-shadow: 0 10px 18px -10px rgba(56,51,54,.45), 0 0 0 1px var(--line); }
.thumbs > button.is-on { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--accent); }
.thumbs > button.is-hidden { display: none; }
.thumbs .thumb-plain { display: grid; place-items: center; font: 500 11px/1.2 var(--font); color: var(--ink-3); background: repeating-linear-gradient(135deg, var(--bg-2) 0 6px, #fff 6px 12px); }
#cfgMore { margin-top: 14px; }
#cfgMore .ic { transition: transform .3s; }
#cfgMore[aria-expanded="true"] .ic { transform: rotate(180deg); }
/* Price + call to action live in the sticky stage, so they stay beside the book */
.cfg-sum { position: relative; z-index: 2; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 20px; margin-top: 14px; padding: 14px 14px 14px 20px; border-radius: 18px; background: var(--ink); color: #fff; }
html[dir="rtl"] .cfg-sum { padding: 14px 20px 14px 14px; }
.cfg-sum-l { font: 500 10.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--n-text-3); }
html[lang="ar"] .cfg-sum-l { font-family: var(--arabic); font-size: 12px; }
.cfg-price { margin-top: 6px; font: 500 14px/1 var(--font); color: var(--n-text-2); white-space: nowrap; }
.cfg-price b { font: 620 34px/1 var(--font); letter-spacing: -.045em; color: #fff; font-variant-numeric: tabular-nums; }
.cfg-break { font: 400 11.5px/1.55 var(--mono); color: var(--n-text-2); }
html[lang="ar"] .cfg-break { font-family: var(--arabic); font-size: 12px; }
.cfg-sum .btn { height: 48px; }
.cfg-sum .btn:hover { background: var(--accent); color: #fff; box-shadow: none; }
.cfg-sum .btn[disabled] { opacity: .5; }

/* ---------------------------------------------------------------------------
   10. Covers rail
   --------------------------------------------------------------------------- */
.covers { padding-block: var(--sec) clamp(72px, 9vw, 120px); overflow: hidden; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.tab { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--n-line); color: var(--n-text-2); font: 500 14px/1 var(--font); transition: all .25s var(--ease); }
.tab:hover { color: #fff; border-color: rgba(255,255,255,.3); }
.tab sup { font: 500 11px/1 var(--mono); opacity: .6; top: 0; }
.tab.is-on { background: #fff; color: var(--ink); border-color: #fff; }
.rail { --pad: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter))); display: flex; gap: clamp(18px, 2.2vw, 32px); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad);
  padding: 56px var(--pad) 28px; scrollbar-width: none; cursor: grab; outline-offset: -4px; }
.rail::-webkit-scrollbar { display: none; }
.rail.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.rail.is-dragging .cv { pointer-events: none; }
.cv { flex: none; width: clamp(220px, 21vw, 290px); scroll-snap-align: start; perspective: 1400px; animation: cvIn .7s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 50ms); }
@keyframes cvIn { from { opacity: 0; transform: translateY(24px); } }
.cv-tilt { transform: rotateY(var(--tilt, 0deg)) translateZ(var(--z, 0px)); transform-style: preserve-3d; transition: transform .25s linear; }
.cv-3d { position: relative; aspect-ratio: 1 / 1.414; transform-style: preserve-3d; transition: transform .9s var(--ease-out); }
.cv:hover .cv-3d, .cv.is-flipped .cv-3d { transform: rotateY(-180deg); }
html[dir="rtl"] .cv:hover .cv-3d, html[dir="rtl"] .cv.is-flipped .cv-3d { transform: rotateY(180deg); }
.cv-face { position: absolute; inset: 0; border-radius: 2px 7px 7px 2px; background: var(--night-3) center / cover no-repeat; -webkit-backface-visibility: hidden; backface-visibility: hidden;
  box-shadow: 0 40px 60px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255,255,255,.06); }
.cv-face::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 7%; background: linear-gradient(90deg, rgba(0,0,0,.35), rgba(255,255,255,.1) 60%, transparent); border-radius: 2px 0 0 2px; }
.cv-face.is-back { transform: rotateY(180deg); border-radius: 7px 2px 2px 7px; }
.cv-face.is-back::before { inset: 0 0 0 auto; transform: scaleX(-1); }
.cv-meta { display: grid; gap: 6px; padding-top: 20px; }
.cv-cat { font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--n-text-3); }
html[lang="ar"] .cv-cat { font-family: var(--arabic); font-size: 12.5px; }
.cv h3 { font: 600 17px/1.25 var(--font); letter-spacing: -.02em; }
.cv-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .4s var(--ease-out); }
.cv:hover .cv-actions, .cv:focus-within .cv-actions, .cv.is-flipped .cv-actions { opacity: 1; transform: none; }
.cv-actions .btn { height: 34px; padding: 0 14px; font-size: 13px; }
.rail-foot { display: flex; align-items: center; gap: 24px; }
.rail-progress { flex: 1; height: 2px; border-radius: 2px; background: var(--n-line); overflow: hidden; }
.rail-progress span { display: block; height: 100%; width: var(--rw, 20%); background: #fff; border-radius: 2px; transform: translateX(var(--rx, 0)); }
.rail-btns { display: flex; gap: 10px; }

/* ---------------------------------------------------------------------------
   11. Compare
   --------------------------------------------------------------------------- */
.compare { padding-block: var(--sec); }
.cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: clamp(40px, 5vw, 64px); }
.cmp-col { display: flex; flex-direction: column; gap: 18px; padding: clamp(20px, 2.6vw, 32px); border-radius: var(--r-xl); background: var(--bg-2); }
.cmp-stage { position: relative; height: clamp(280px, 30vw, 400px); border-radius: var(--r-lg); background: radial-gradient(ellipse 55% 30% at 50% 82%, rgba(56, 51, 54, .1), transparent 70%), #fff; cursor: pointer; overflow: hidden; }
.cmp-stage .book-host { position: absolute; inset: 0; }
.cmp-bubble { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); padding: 8px 14px; border-radius: 999px; background: var(--bg-2); font: 500 12.5px/1 var(--font); color: var(--ink-2); white-space: nowrap; transition: background .3s, color .3s; }
.cmp-bubble.is-said { background: var(--ink); color: #fff; }
.cmp-head { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.cmp-head h3 { font: 620 clamp(24px, 2.4vw, 30px)/1.1 var(--font); letter-spacing: -.03em; }
.cmp-price { font-size: 15px; color: var(--ink-3); }
.cmp-price b { font: 620 28px/1 var(--font); letter-spacing: -.03em; color: var(--ink); }
.cmp-col .btn { align-self: flex-start; margin-top: auto; }
.cmp-table { margin-top: 20px; border-radius: var(--r-lg); border: 1px solid var(--line); overflow: hidden; }
.cmp-row { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 16px; padding: 16px 24px; border-top: 1px solid var(--line); font-size: 15px; }
.cmp-row-h { border-top: 0; background: var(--bg-2); font-weight: 600; }
.cmp-row [role="rowheader"] { color: var(--ink-3); }

/* ---------------------------------------------------------------------------
   12. Finish lab
   --------------------------------------------------------------------------- */
.finish { padding-block: var(--sec); }
.lab { --mx: 30%; --my: 30%; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 3vw, 44px); max-width: 700px; margin: clamp(40px, 5vw, 64px) auto 0; touch-action: pan-y; }
.lab-panel { margin: 0; }
.lab-cover { position: relative; aspect-ratio: 1 / 1.414; border-radius: 2px 8px 8px 2px; overflow: hidden; background: var(--night-3) center / cover no-repeat; box-shadow: 0 50px 70px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255,255,255,.06); }
.lab-cover::before { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(90deg, rgba(0,0,0,.3), transparent 8%); }
.lab-light { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.lab-panel[data-finish="glossy"] .lab-cover { filter: saturate(1.12) contrast(1.05); }
.lab-panel[data-finish="glossy"] .lab-light { mix-blend-mode: screen; background:
  radial-gradient(circle at var(--mx) var(--my), rgba(255,255,255,.95) 0, rgba(255,255,255,.5) 4%, rgba(255,255,255,.1) 12%, transparent 22%),
  linear-gradient(118deg, transparent calc(var(--mx) - 12%), rgba(255,255,255,.26) var(--mx), transparent calc(var(--mx) + 10%)); }
.lab-panel[data-finish="matte"] .lab-cover { filter: saturate(.9) contrast(.95) brightness(1.03); }
.lab-panel[data-finish="matte"] .lab-light { background: radial-gradient(circle at var(--mx) var(--my), rgba(255,255,255,.22), transparent 55%); }
.lab-panel[data-finish="matte"] .lab-cover::after { content: ""; position: absolute; inset: 0; z-index: 2; opacity: .5; mix-blend-mode: multiply;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.lab-panel figcaption { display: grid; gap: 6px; margin-top: 22px; }
.lab-panel figcaption b { font: 600 20px/1.2 var(--font); letter-spacing: -.02em; }
.lab-panel figcaption span { font-size: 14.5px; color: var(--n-text-2); max-width: 34ch; }
.lab-chips { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 36px; }
.lab-chips button { height: 36px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--n-line); color: var(--n-text-2); font: 500 13px/1 var(--font); transition: all .25s; }
.lab-chips button:hover { color: #fff; border-color: rgba(255,255,255,.3); }
.lab-chips button.is-on { background: #fff; color: var(--ink); border-color: #fff; }

/* ---------------------------------------------------------------------------
   13. Studio: live editor window + bento
   --------------------------------------------------------------------------- */
.studio { padding-block: var(--sec); }
.win { margin-top: clamp(40px, 5vw, 64px); border-radius: 22px; overflow: hidden; background: var(--bg-2); box-shadow: var(--sh-3); }
.win-bar { display: flex; align-items: center; gap: 7px; height: 44px; padding-inline: 16px; background: #fff; border-bottom: 1px solid var(--line); }
.win-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--bg-3); }
.win-url { margin-inline: auto; padding: 6px 14px; border-radius: 8px; background: var(--bg-2); font: 500 12px/1 var(--mono); color: var(--ink-3); }
.win-saved { display: inline-flex; align-items: center; gap: 6px; font: 500 12px/1 var(--font); color: var(--ok); }
.win-body { display: grid; grid-template-columns: minmax(0, 1fr) 260px; }
.win-desk { padding: clamp(24px, 5vw, 64px); display: grid; place-items: center; background: radial-gradient(circle at 1px 1px, rgba(56,51,54,.09) 1px, transparent 0) 0 0 / 22px 22px, var(--bg-2); }
.spread { width: 100%; max-width: 760px; aspect-ratio: 2 / 1.38; display: grid; grid-template-columns: 1fr 1fr; border-radius: 3px; overflow: hidden; box-shadow: 0 34px 60px -30px rgba(56, 51, 54, .55), 0 2px 4px rgba(56, 51, 54, .12); }
.sp-page { position: relative; display: grid; gap: 4.5%; padding: 7.5%; background: #fff; transition: background-color .5s var(--ease); }
.sp-page:first-child { box-shadow: inset -26px 0 26px -24px rgba(0,0,0,.35); }
.sp-page:last-child { box-shadow: inset 26px 0 26px -24px rgba(0,0,0,.35); }
.sp-page[data-layout="1"] { grid-template-columns: 1fr; }
.sp-page[data-layout="2"] { grid-template-columns: 1fr 1fr; }
.sp-page[data-layout="3"] { grid-template-columns: 1fr 1fr; grid-template-rows: 1.25fr 1fr; padding-bottom: 14%; }
.sp-page[data-layout="3"] > .ph:first-child { grid-column: 1 / -1; }
.sp-page[data-layout="4"] { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; padding-bottom: 14%; }
.sp-page .ph { animation: phIn .55s var(--ease-out) both; }
@keyframes phIn { from { opacity: 0; transform: scale(.92); } }
.sp-title { align-content: center; justify-items: center; text-align: center; gap: 0; padding: 12% 14%; }
.sp-title .ph { width: 44%; aspect-ratio: 138 / 270; margin-bottom: 9%; }
.sp-title-t { font: 620 clamp(18px, 2.6vw, 34px)/1 var(--latin); letter-spacing: -.04em; color: var(--ink); transition: color .5s; }
html[lang="ar"] .sp-title-t { font-family: var(--arabic); }
.sp-title-s { margin-top: .7em; font: 500 clamp(8px, .9vw, 11px)/1 var(--mono); letter-spacing: .26em; text-transform: uppercase; color: var(--ink-3); transition: color .5s; }
.sp-cap { position: absolute; inset-inline: 0; bottom: 4.5%; text-align: center; font: 500 clamp(11px, 1.3vw, 15px)/1 var(--font); color: var(--ink-2); transition: opacity .35s, color .5s; }
.sp-page[data-layout="1"] .sp-cap, .sp-page[data-layout="2"] .sp-cap { display: none; }
.sp-page.is-dark .sp-title-t, .sp-page.is-dark .sp-cap { color: #fff; }
.sp-page.is-dark .sp-title-s { color: rgba(255,255,255,.55); }
.win-side { display: grid; align-content: start; gap: 12px; padding: 24px; background: #fff; border-inline-start: 1px solid var(--line); }
.win-label { font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-top: 8px; }
html[lang="ar"] .win-label { font-family: var(--arabic); font-size: 12.5px; }
.win-label:first-child { margin-top: 0; }
.lay-btns { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.lay-btns button { height: 46px; border-radius: 12px; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--ink-3); transition: all .2s; }
.lay-btns button:hover { color: var(--ink); border-color: var(--ink-3); }
.lay-btns button.is-on { color: #fff; background: var(--ink); border-color: var(--ink); }
.lay { display: grid; gap: 2px; width: 18px; height: 14px; }
.lay i { display: block; background: currentColor; border-radius: 1px; }
.lay-2 { grid-template-columns: 1fr 1fr; } .lay-3 { grid-template-columns: 1fr 1fr; grid-template-rows: 1.2fr 1fr; } .lay-3 i:first-child { grid-column: 1 / -1; } .lay-4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatches button { width: 30px; height: 30px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(56,51,54,.14); transition: box-shadow .2s, transform .3s var(--spring); }
.swatches button:hover { transform: scale(1.1); }
.swatches button.is-on { box-shadow: inset 0 0 0 1px rgba(56,51,54,.14), 0 0 0 2px #fff, 0 0 0 4px var(--accent); }
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.bn { position: relative; display: flex; flex-direction: column; gap: 10px; min-height: 360px; padding: 28px; border-radius: var(--r-xl); background: var(--bg-2); overflow: hidden; transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out); }
.bn:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.bn-wide { grid-column: span 2; }
.bn-full { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: 1fr auto auto 1fr; column-gap: 48px; row-gap: 10px; min-height: 300px; }
.bn-full .bn-vis { grid-row: 1 / -1; grid-column: 1; }
.bn-full h3 { grid-row: 2; grid-column: 2; margin-top: 0; font-size: 24px; }
.bn-full p { grid-row: 3; grid-column: 2; }
.bn h3 { margin-top: auto; font: 600 20px/1.2 var(--font); letter-spacing: -.02em; }
.bn p { font-size: 15px; color: var(--ink-2); max-width: 46ch; }
.bn-vis { position: relative; flex: 1; min-height: 170px; display: grid; place-items: center; }
/* layouts */
.ml { position: relative; width: 250px; height: 168px; }
.ml i { position: absolute; border-radius: 3px; background: #c9d2e3 center / cover no-repeat; box-shadow: 0 1px 2px rgba(56,51,54,.12); animation: ml 9s var(--ease-io) infinite; }
.ml::before { content: ""; position: absolute; inset: -12px; border-radius: 6px; background: #fff; box-shadow: var(--sh-2); }
.ml i:nth-child(1) { background-image: url("assets/photos/sm/friends-2.jpg"); --a: 0 0 0 0; --b: 0 50% 0 0; --c: 0 0 48% 0; }
.ml i:nth-child(2) { background-image: url("assets/photos/sm/birthday-1.jpg"); --a: 0 0 100% 100%; --b: 0 0 0 52%; --c: 54% 52% 0 0; }
.ml i:nth-child(3) { background-image: url("assets/photos/sm/teta-3.jpg"); --a: 100% 0 0 100%; --b: 0 0 52% 52%; --c: 54% 0 0 50%; }
.ml i:nth-child(4), .ml i:nth-child(5) { display: none; }
.ml i { inset: var(--a); }
@keyframes ml { 0%, 28% { inset: var(--a); } 34%, 62% { inset: var(--b); } 68%, 94% { inset: var(--c); } 100% { inset: var(--a); } }
/* image editor */
.vis-edit { gap: 14px; grid-template-columns: auto auto; }
.ve-photo { width: 150px; aspect-ratio: 4 / 5; border-radius: 6px; background: url("assets/photos/sm/petra-1.jpg") 50% 55% / cover; box-shadow: var(--sh-2); animation: veF 6s var(--ease-io) infinite; }
@keyframes veF { 0%, 100% { filter: none; border-radius: 6px; } 33% { filter: brightness(1.15) saturate(1.3); } 66% { filter: grayscale(1) contrast(1.15); border-radius: 50%; } }
.ve-sl { display: grid; gap: 18px; width: 120px; }
.ve-sl i { position: relative; height: 4px; border-radius: 4px; background: var(--bg-3); }
.ve-sl i::before { content: ""; position: absolute; inset: 0 auto 0 0; width: calc(var(--v) * 100%); border-radius: 4px; background: var(--ink); animation: veS 6s var(--ease-io) infinite; }
.ve-sl i::after { content: ""; position: absolute; top: 50%; left: calc(var(--v) * 100%); width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(56,51,54,.35); animation: veK 6s var(--ease-io) infinite; }
.ve-sl i:nth-child(2)::before, .ve-sl i:nth-child(2)::after { animation-delay: -2s; }
.ve-sl i:nth-child(3)::before, .ve-sl i:nth-child(3)::after { animation-delay: -4s; }
@keyframes veS { 50% { width: calc((1 - var(--v)) * 100%); } }
@keyframes veK { 50% { left: calc((1 - var(--v)) * 100%); } }
/* phone to album */
.vis-phone { grid-template-columns: auto auto auto; gap: 16px; }
.vp-qr { width: 92px; height: 92px; border-radius: 10px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 21 21' shape-rendering='crispEdges'%3E%3Cpath fill='%23383336' d='M0 0h7v7H0zM14 0h7v7h-7zM0 14h7v7H0z'/%3E%3Cpath fill='%23fff' d='M1 1h5v5H1zM15 1h5v5h-5zM1 15h5v5H1z'/%3E%3Cpath fill='%23383336' d='M2 2h3v3H2zM16 2h3v3h-3zM2 16h3v3H2zM8 0h1v1H8zM10 1h2v1h-2zM9 3h1v2H9zM11 4h2v1h-2zM8 6h1v2H8zM10 7h3v1h-3zM0 8h2v1H0zM3 9h2v1H3zM6 8h1v3H6zM8 9h2v2H8zM12 9h1v3h-1zM14 8h2v1h-2zM17 9h3v1h-3zM15 11h1v2h-1zM18 11h2v1h-2zM1 11h2v2H1zM4 12h2v1H4zM8 12h3v1H8zM9 14h1v2H9zM11 15h2v1h-2zM8 17h2v1H8zM12 17h1v3h-1zM10 19h1v2h-1zM14 14h3v1h-3zM18 14h1v2h-1zM15 16h2v2h-2zM19 17h2v1h-2zM14 19h3v1h-3zM18 19h1v2h-1z'/%3E%3C/svg%3E") center / 76px no-repeat; box-shadow: var(--sh-2); }
.vp-arrow { position: relative; width: 56px; height: 2px; background: repeating-linear-gradient(90deg, var(--ink-3) 0 4px, transparent 4px 8px); }
.vp-arrow::after { content: ""; position: absolute; top: -4px; left: 0; width: 10px; height: 10px; border-radius: 2px; background: var(--accent); animation: vpGo 2.2s var(--ease-io) infinite; }
@keyframes vpGo { 0% { left: 0; opacity: 0; } 20% { opacity: 1; } 80% { opacity: 1; } 100% { left: calc(100% - 10px); opacity: 0; } }
html[dir="rtl"] .vp-arrow { transform: scaleX(-1); }
.vp-phone { width: 74px; height: 140px; padding: 14px 7px; border-radius: 16px; background: var(--ink); display: grid; grid-template-columns: 1fr 1fr; align-content: start; gap: 4px; box-shadow: var(--sh-2); }
.vp-phone i { aspect-ratio: 1; border-radius: 3px; background: url("assets/photos/sm/friends-4.jpg") center / cover; animation: vpIn 4.4s var(--ease-out) infinite; }
.vp-phone i:nth-child(2) { background-image: url("assets/photos/sm/birthday-3.jpg"); animation-delay: .25s; } .vp-phone i:nth-child(3) { background-image: url("assets/photos/sm/teta-2.jpg"); animation-delay: .5s; } .vp-phone i:nth-child(4) { background-image: url("assets/photos/sm/petra-4.jpg"); animation-delay: .75s; }
@keyframes vpIn { 0%, 10% { opacity: 0; transform: scale(.6); } 25%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; } }
/* sync */
.vis-sync { grid-template-columns: auto auto auto; gap: 14px; }
.vs-dev { display: block; background: #fff; box-shadow: var(--sh-2); position: relative; }
.vs-lap { width: 140px; height: 92px; border-radius: 8px 8px 2px 2px; border: 6px solid var(--ink); border-bottom-width: 10px; }
.vs-lap::after { content: ""; position: absolute; left: -22px; right: -22px; bottom: -16px; height: 6px; border-radius: 0 0 6px 6px; background: var(--ink-2); }
.vs-ph { width: 52px; height: 96px; border-radius: 12px; border: 5px solid var(--ink); }
.vs-lap::before, .vs-ph::before { content: ""; position: absolute; inset: 8px; border-radius: 3px; background: url("assets/photos/sm/friends-3.jpg") center / cover; animation: vsP 3s ease-in-out infinite; }
@keyframes vsP { 50% { opacity: .65; } }
.vs-dots { display: flex; gap: 6px; }
.vs-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: vsD 1.5s ease-in-out infinite; }
.vs-dots i:nth-child(2) { animation-delay: .2s; } .vs-dots i:nth-child(3) { animation-delay: .4s; }
@keyframes vsD { 0%, 100% { opacity: .2; transform: scale(.7); } 50% { opacity: 1; transform: none; } }
/* type */
.vis-type { grid-auto-flow: column; gap: 22px; align-items: baseline; }
.vt-ar { font: 700 64px/1 var(--arabic); color: var(--ink); }
.vt-en { font: 600 64px/1 var(--latin); letter-spacing: -.04em; color: var(--accent); }
/* flip */
.vf-book { position: relative; width: 120px; height: 160px; perspective: 600px; transform-style: preserve-3d; }
.vf-book::before { content: ""; position: absolute; inset: 0; border-radius: 2px 6px 6px 2px; background: #fff; box-shadow: var(--sh-2); }
.vf-book i { position: absolute; inset: 0; border-radius: 2px 6px 6px 2px; background: #fff url("assets/photos/sm/birthday-2.jpg") 25% 50% / cover no-repeat; transform-origin: 0 50%; box-shadow: inset 8px 0 10px -8px rgba(0,0,0,.3); animation: vfT 6s var(--ease-io) infinite; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.vf-book i:nth-child(2) { background-image: url("assets/photos/sm/petra-2.jpg"); animation-delay: -2s; }
.vf-book i:nth-child(3) { background-image: url("assets/photos/sm/teta-1.jpg"); animation-delay: -4s; }
@keyframes vfT { 0%, 30% { transform: rotateY(0); } 50%, 100% { transform: rotateY(-180deg); } }

/* ---------------------------------------------------------------------------
   14. Specs
   --------------------------------------------------------------------------- */
.specs { padding-block: var(--sec); }
.specs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.sizes { display: flex; align-items: flex-end; gap: clamp(18px, 2.4vw, 32px); margin-top: 24px; }
.sizes figure { display: grid; justify-items: start; gap: 12px; }
.sizes figure > span { display: block; width: var(--w); height: var(--h); border-radius: 2px 5px 5px 2px; background: #fff; box-shadow: 0 0 0 1.5px var(--ink), 7px 7px 0 -1px var(--bg-3); transition: transform .5s var(--ease-out); }
.sizes figure:hover > span { transform: translateY(-6px); }
.sizes .is-soon > span { box-shadow: none; border: 1.5px dashed var(--ink-3); background: transparent; }
.sizes figcaption { display: grid; gap: 4px; font-size: 13.5px; color: var(--ink-2); }
.sizes figcaption em { font: 500 11.5px/1 var(--mono); font-style: normal; color: var(--ink-3); }
.spec-list { display: grid; }
.spec-list > div { display: grid; grid-template-columns: 150px 1fr; gap: 24px; padding: 22px 0; border-top: 1px solid var(--line-2); }
.spec-list > div:last-child { border-bottom: 1px solid var(--line-2); }
.spec-list dt { font: 600 15px/1.4 var(--font); }
.spec-list dd { font-size: 15.5px; color: var(--ink-2); }

/* ---------------------------------------------------------------------------
   15. Pricing
   --------------------------------------------------------------------------- */
.pricing { padding-block: var(--sec); }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: clamp(40px, 5vw, 64px); }
.plan { position: relative; display: flex; flex-direction: column; gap: 20px; padding: clamp(24px, 2.6vw, 34px); border-radius: var(--r-xl); background: var(--bg-2); overflow: hidden; }
.plan h3 { display: flex; align-items: center; gap: 10px; font: 620 24px/1.15 var(--font); letter-spacing: -.03em; }
.plan header p { margin-top: 6px; font-size: 15px; color: var(--ink-3); }
.plan-price { display: flex; align-items: baseline; gap: 8px; }
.plan-price b { font: 620 72px/.9 var(--font); letter-spacing: -.055em; }
.plan-price span { font-size: 16px; color: var(--ink-3); }
.plan-note { font: 400 12.5px/1.5 var(--mono); color: var(--ink-3); }
html[lang="ar"] .plan-note { font-family: var(--arabic); font-size: 13.5px; }
.plan .btn { margin-top: auto; }
.plan-featured { background: var(--night); color: #fff; }
.plan-featured::before { content: ""; position: absolute; width: 380px; height: 380px; top: -200px; right: -140px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, .28), transparent); pointer-events: none; }
html[dir="rtl"] .plan-featured::before { right: auto; left: -140px; }
.plan-featured > * { position: relative; }
.plan-featured header p, .plan-featured .plan-price span, .plan-featured .plan-note { color: var(--n-text-2); }
.plan-featured .ticks li { color: var(--n-text-2); }
.plan-featured .ticks li::before { background: rgba(255,255,255,.12); }
.plan-featured .ticks li::after { background: #fff; }
.plan-calc { background: #fff; box-shadow: inset 0 0 0 1px var(--line-2); gap: 18px; }
.calc-pages { display: grid; gap: 6px; font: 500 14px/1.3 var(--font); }
.calc-pages > span { display: flex; justify-content: space-between; }
.calc-pages output { font: 500 14px/1 var(--mono); }
.calc-lines { display: grid; gap: 9px; font-size: 14px; }
.calc-lines > div { display: flex; justify-content: space-between; gap: 12px; }
.calc-lines dt { color: var(--ink-3); }
.calc-lines dd { font: 500 13.5px/1.4 var(--mono); }
.calc-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 16px; border-top: 1px solid var(--line); font: 600 15px/1 var(--font); }
.calc-total b { font: 620 32px/1 var(--font); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.soon-row { display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 28px; font-size: 14.5px; color: var(--ink-3); text-align: center; }

/* ---------------------------------------------------------------------------
   16. FAQ
   --------------------------------------------------------------------------- */
/* Real stories (reviews.js → initReviews in site.js).
   One featured story on a warm card, the others as the messages they were (chat bubbles with a heart reaction).
   Phone: the featured story, then a swipeable row of bubbles. */
.reviews { position: relative; padding-block: var(--sec); overflow: hidden; }
[data-rv-link][hidden] { display: none !important; }   /* links to Reviews wait until reviews.js has entries */
.reviews .h2 > span { position: relative; z-index: 0; }
.reviews mark { position: relative; background: none; color: inherit; white-space: nowrap; }
.reviews mark::after { content: ""; position: absolute; z-index: -1; left: -.04em; right: -.04em; bottom: .06em; height: .3em; border-radius: .08em; background: var(--sun); transform: rotate(-1.2deg); }
.rv-side { display: grid; gap: 16px; }
.rv-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.rv-count { font: 500 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.rv-sources { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.rv-sources span { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 999px; background: rgba(255, 255, 255, .75); box-shadow: var(--sh-1); font: 500 12.5px/1 var(--font); color: var(--ink-2); }

.rv-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(20px, 2.4vw, 32px); align-items: center; margin-top: clamp(36px, 5vw, 60px); }
.rv-layout:has(.rv-wall.is-empty) { grid-template-columns: minmax(0, 720px); justify-content: center; }

/* Featured story */
.rv-feature { position: relative; display: grid; gap: 18px; padding: clamp(26px, 3vw, 44px); border-radius: var(--r-xl); overflow: hidden;
  background: radial-gradient(70% 60% at 100% 0%, rgba(255, 211, 194, .9), transparent 70%), linear-gradient(160deg, #fff6d9, #fff0e3); box-shadow: var(--sh-2); }
.rv-feat-tag { justify-self: start; display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 12px; border-radius: 999px; background: #fff; box-shadow: var(--sh-1);
  font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.rv-feat-tag .ic { fill: #FF6A64; stroke: none; }
.rv-ftext { margin: 0; font: 600 clamp(22px, 2.1vw, 30px)/1.35 var(--font); letter-spacing: -.015em; color: var(--ink); text-wrap: pretty; }
.rv-ftext::before { content: "“"; display: block; height: 44px; margin-bottom: 4px; font: 700 92px/1 Georgia, serif; color: #FF6A64; }
.rv-ftext[dir="rtl"]::before { content: "”"; }
.rv-ftext[lang="ar"] { font-family: var(--arabic); line-height: 1.7; letter-spacing: 0; }
.rv-feature .rv-photo { margin: 0; border-radius: var(--r); overflow: hidden; background: #fff; transform: rotate(-1.5deg); box-shadow: var(--sh-2); border: 6px solid #fff; }
.rv-feature .rv-who { padding: 4px 0 0; }
.rv-feature .rv-av { width: 44px; height: 44px; font-size: 17px; box-shadow: 0 0 0 3px #fff; }
.rv-feat-spark { position: absolute; top: 18px; inset-inline-end: 18px; width: 56px; height: 56px; fill: var(--sun); stroke: none; transform: rotate(12deg); opacity: .95; pointer-events: none; }

/* Message bubbles */
.rv-wall { columns: 2 260px; column-gap: 18px; }
.rv-card { break-inside: avoid; margin-bottom: 22px; }
.rv-bubble { position: relative; display: grid; gap: 10px; padding: 18px 20px 20px; border-radius: 22px; border-end-start-radius: 6px; background: #fff; box-shadow: var(--sh-1);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.rv-card:nth-child(odd) .rv-bubble { transform: rotate(-.7deg); }
.rv-card:nth-child(even) .rv-bubble { transform: rotate(.6deg); }
.rv-card:hover .rv-bubble { transform: none; box-shadow: var(--sh-2); }
.rv-bubble .rv-photo { margin: -6px -8px 2px; border-radius: 14px; overflow: hidden; background: var(--bg-2); }
.rv-photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.rv-text { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--ink); text-wrap: pretty; }
.rv-text[lang="ar"] { font-family: var(--arabic); font-size: 16.5px; line-height: 1.75; }
.rv-heart { position: absolute; bottom: -11px; inset-inline-end: 16px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: 0 4px 10px -4px rgba(56, 51, 54, .35), 0 0 0 1px rgba(56, 51, 54, .05); }
.rv-heart .ic { width: 14px; height: 14px; fill: #EE7C98; stroke: none; }
.rv-card .rv-who { padding: 12px 6px 0; }

/* Shared bits */
.rv-stars { display: flex; gap: 2px; }
.rv-stars .ic { width: 16px; height: 16px; fill: var(--line-2); stroke: none; }
.rv-stars .ic.is-on { fill: var(--sun); }
.rv-tr { padding-inline-start: 12px; border-inline-start: 2px solid var(--line-2); font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }
.rv-tr[lang="ar"] { font-family: var(--arabic); }
.rv-tr-label { display: block; margin-bottom: 3px; font: 500 10.5px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }

/* Carousel (more than four other stories): a gliding row, arrows below */
.rv-wall.is-carousel { columns: auto; display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 10px 6px 18px; margin: -10px -6px 0; overscroll-behavior-x: contain; }
.rv-wall.is-carousel::-webkit-scrollbar { display: none; }
.rv-wall.is-carousel .rv-card { flex: 0 0 calc((100% - 18px) / 2); margin: 0; scroll-snap-align: start; display: flex; flex-direction: column; }
.rv-wall.is-carousel .rv-bubble { flex: 1; }
.rv-nav { display: inline-flex; gap: 8px; }
.rv-nav[hidden] { display: none; }
.rv-arrow { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--ink); box-shadow: var(--sh-1); transition: box-shadow .2s, transform .2s var(--ease); }
.rv-arrow:hover { box-shadow: var(--sh-2); transform: translateY(-1px); }
@media (max-width: 1079px) and (min-width: 720px) { .rv-wall.is-carousel .rv-card { flex-basis: calc((100% - 36px) / 3); } }
.rv-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.rv-tags span { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; background: var(--bg-2); font: 500 12px/1 var(--font); color: var(--ink-2); }
.rv-feature .rv-tags span { background: rgba(255, 255, 255, .8); }
.rv-who { display: flex; align-items: center; gap: 11px; }
.rv-av { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; font: 600 14px/1 var(--font); color: var(--ink); }
.rv-name { display: grid; gap: 3px; min-width: 0; }
.rv-name b { font: 600 14.5px/1.2 var(--font); }
.rv-name small { font-size: 12.5px; color: var(--ink-3); }
.rv-src { display: inline-flex; align-items: center; gap: 6px; margin-inline-start: auto; flex: none; font: 500 12px/1 var(--font); color: var(--ink-3); transition: color .2s; }
a.rv-src:hover { color: var(--accent-ink); }
.rv-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }

/* Hero: "Don't take our word for it. Hear it from our customers →" */
.hero-proof { display: inline-flex; align-items: center; gap: 12px; margin-top: 22px; padding: 8px 18px 8px 8px; border-radius: 999px; background: rgba(255, 255, 255, .72); box-shadow: var(--sh-1);
  color: var(--ink); text-decoration: none; transition: background .25s, box-shadow .25s; }
.hero-proof:hover { background: #fff; box-shadow: var(--sh-2); }
.hp-faces { display: flex; flex: none; }
.hp-faces i { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 2px solid #fff; font: 600 13px/1 var(--font); font-style: normal; color: var(--ink); }
.hp-faces i + i { margin-inline-start: -11px; }
.hp-txt { display: grid; gap: 3px; font-size: 14px; line-height: 1.2; }
.hp-txt b { font-weight: 600; }
.hp-go { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-ink); font-weight: 500; }
.hp-go .ic { transition: transform .25s var(--ease); }
.hero-proof:hover .hp-go .ic { transform: translateX(3px); }
html[dir="rtl"] .hero-proof:hover .hp-go .ic { transform: translateX(-3px) scaleX(-1); }
/* The customers' own words take turns in one grid cell, so the pill never changes size */
.hp-qs { display: grid; min-width: 0; }
.hp-q { grid-area: 1 / 1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; min-width: 0;
  opacity: 0; transform: translateY(-5px); transition: opacity .4s var(--ease), transform .6s var(--ease-out); }
.hp-q.is-on { opacity: 1; transform: none; transition-delay: .12s; }
.hp-q q { font-weight: 600; quotes: "\201C" "\201D"; }
.hp-q q:lang(ar) { quotes: "\00AB" "\00BB"; font-family: var(--arabic); }
.hp-q small { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }
.hp-q small::before { content: "\2014\00A0"; }
.hp-faces i { position: relative; transition: transform .45s var(--zk-spring, var(--spring)), box-shadow .3s; }
.hp-faces i.is-on { z-index: 1; transform: translateY(-3px); box-shadow: 0 0 0 2px var(--accent), 0 6px 10px -4px rgba(56, 51, 54, .35); }
@media (prefers-reduced-motion: reduce) { .hp-q, .hp-faces i { transition: none; } }
.hero-proof:not([hidden]) + .hero-facts { margin-top: clamp(28px, 4vh, 44px); }

@media (max-width: 1079px) {
  .rv-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 719px) {
  .rv-layout { gap: 14px; }
  .rv-feature { padding: 24px 22px; border-radius: var(--r-lg); }
  .rv-ftext { font-size: 21px; }
  .rv-ftext::before { height: 34px; font-size: 72px; }
  .rv-feat-spark { width: 40px; height: 40px; top: 14px; }
  .rv-wall { columns: auto; display: flex; gap: 12px; margin-inline: calc(-1 * var(--gutter)); padding: 8px var(--gutter) 6px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .rv-wall::-webkit-scrollbar { display: none; }
  .rv-card { flex: 0 0 min(80%, 320px); margin: 0; scroll-snap-align: start; display: flex; flex-direction: column; }
  .rv-card .rv-bubble { flex: 1; }
  .rv-wall.is-carousel { gap: 12px; margin: 0 calc(-1 * var(--gutter)); padding: 8px var(--gutter) 14px; scroll-padding-inline: var(--gutter); }
  .rv-wall.is-carousel .rv-card { flex-basis: min(80%, 320px); }
  .hero-proof { margin-top: 18px; }
}

.faq-sec { padding-block: var(--sec); }
.faq-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.faq-grid > .sec-head { position: sticky; top: calc(var(--nav-h) + 32px); }
.trust { display: grid; gap: 12px; margin-top: 20px; }
.trust-i { display: flex; gap: 14px; padding: 18px; border-radius: var(--r-lg); background: #fff; box-shadow: var(--sh-1); }
.trust-i > .ic { color: var(--accent); margin-top: 2px; }
.trust-i h3 { font: 600 15px/1.3 var(--font); }
.trust-i p { margin-top: 4px; font-size: 14px; color: var(--ink-2); }
.faq { border-top: 1px solid var(--line-2); }
.qa { border-bottom: 1px solid var(--line-2); }
.qa summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; list-style: none; cursor: pointer; font: 550 clamp(17px, 1.5vw, 19px)/1.35 var(--font); letter-spacing: -.015em; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary i { position: relative; width: 32px; height: 32px; border-radius: 50%; flex: none; background: #fff; box-shadow: var(--sh-1); transition: background .3s, transform .45s var(--ease-out); }
.qa summary i::before, .qa summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.6px; margin: -.8px 0 0 -6px; border-radius: 2px; background: var(--ink); transition: transform .45s var(--ease-out), background .3s; }
.qa summary i::after { transform: rotate(90deg); }
.qa[open] summary i { background: var(--ink); transform: rotate(180deg); }
.qa[open] summary i::before, .qa[open] summary i::after { background: #fff; }
.qa[open] summary i::after { transform: rotate(0); }
.qa summary:hover i { box-shadow: 0 0 0 1px var(--ink-3); }
.qa-a { overflow: hidden; }
.qa-a p { padding-bottom: 26px; max-width: 62ch; font-size: 16px; color: var(--ink-2); }

/* ---------------------------------------------------------------------------
   17. Closing + footer
   --------------------------------------------------------------------------- */
.closing { position: relative; overflow: hidden; padding-block: clamp(96px, 12vw, 160px) clamp(96px, 12vw, 150px); text-align: center; --fan: 0; isolation: isolate; }
.closing::before { content: ""; position: absolute; left: 50%; top: 0; width: 1200px; height: 700px; margin-left: -600px; z-index: -1; background: radial-gradient(closest-side, rgba(255, 255, 255, .2), transparent); }
.closing-fan { position: relative; height: clamp(190px, 22vw, 280px); width: 1px; margin: 0 auto clamp(32px, 4vw, 48px); }
.closing-fan img { position: absolute; left: 0; bottom: 0; max-width: none; width: clamp(110px, 11.5vw, 168px); aspect-ratio: 1 / 1.414; object-fit: cover; border-radius: 2px 7px 7px 2px; box-shadow: 0 30px 50px -24px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.06);
  transform-origin: 50% 120%; transform: translateX(-50%) translateX(calc(var(--k) * var(--fan) * clamp(56px, 7vw, 100px))) translateY(calc(var(--ka) * var(--fan) * 18px)) rotate(calc(var(--k) * var(--fan) * 9deg)); transition: transform .2s linear; }
.closing-fan img:nth-child(1) { --k: -2; --ka: 2; z-index: 1; } .closing-fan img:nth-child(2) { --k: -1; --ka: .6; z-index: 2; } .closing-fan img:nth-child(3) { --k: 0; --ka: 0; z-index: 3; } .closing-fan img:nth-child(4) { --k: 1; --ka: .6; z-index: 2; } .closing-fan img:nth-child(5) { --k: 2; --ka: 2; z-index: 1; }
.closing-ar { font: 700 18px/1 var(--arabic); color: var(--sun); }
.closing-title { max-width: 15ch; margin: 18px auto 0; font-size: clamp(40px, 6.2vw, 92px); text-wrap: balance; }
.closing-cta { display: grid; justify-items: center; gap: 18px; margin-top: 40px; }
.closing-cta p { font-size: 15px; color: var(--n-text-2); }
.foot { padding-top: 72px; overflow: hidden; background: var(--ink); --n-line: rgba(255, 255, 255, .1); --n-text-2: rgba(243, 245, 248, .66); --n-text-3: rgba(243, 245, 248, .44); }
.foot-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.foot-brand img { height: 36px; width: auto; }
.foot-brand p { margin-top: 18px; max-width: 34ch; font-size: 14.5px; color: var(--n-text-2); }
.foot-col { display: grid; gap: 12px; align-content: start; }
.foot-col > p { font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--n-text-3); margin-bottom: 4px; }
html[lang="ar"] .foot-col > p { font-family: var(--arabic); font-size: 12.5px; }
.foot-col a { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--n-text-2); transition: color .2s; width: fit-content; }
.foot-col a:hover { color: #fff; }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 64px; padding-block: 20px; border-top: 1px solid var(--n-line); font-size: 13px; color: var(--n-text-3); }
.foot .lang-btn { color: var(--n-text); }
.foot-word { margin-top: 8px; font: 700 clamp(96px, 24vw, 340px)/.78 var(--arabic); text-align: center; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .09); user-select: none; transform: translateY(18%); }
.mcta { display: none; }

/* ---------------------------------------------------------------------------
   18. Dialogs
   --------------------------------------------------------------------------- */
dialog.dlg { padding: 0; border: 0; margin: auto; max-width: none; max-height: none; color: var(--ink); background: transparent; overflow: visible;
  opacity: 0; transform: translateY(14px) scale(.985); transition: opacity .25s var(--ease), transform .5s var(--ease-out); }
dialog.dlg.is-in { opacity: 1; transform: none; }
dialog.dlg::backdrop { background: rgba(56, 51, 54, .42); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .3s var(--ease); }
dialog.dlg.is-in::backdrop { opacity: 1; }
dialog.dlg:focus { outline: none; }

/* Wizard */
.wiz { width: min(1120px, calc(100vw - 32px)); height: min(740px, calc(100vh - 32px)); }
.wiz-shell { display: grid; grid-template-columns: 400px minmax(0, 1fr); height: 100%; border-radius: 28px; overflow: hidden; background: var(--night); box-shadow: var(--sh-3); }
.wiz[data-locked] [data-close] { visibility: hidden; }
.wiz-preview { position: relative; display: flex; flex-direction: column; padding: 24px; background: radial-gradient(ellipse 80% 45% at 50% 62%, rgba(255, 255, 255, .24), transparent 70%), var(--night); overflow: hidden; }
.wiz-preview-top { display: flex; justify-content: space-between; align-items: center; }
.wiz-preview-top img { height: 26px; width: auto; }
.wiz-preview .book-host { flex: 1; min-height: 0; }
.wiz-sum { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding-top: 18px; border-top: 1px solid var(--n-line); }
.wiz-sum-t { font: 600 16px/1.25 var(--font); }
.wiz-sum-s { margin-top: 4px; font-size: 13px; color: var(--n-text-2); }
.wiz-price { display: grid; justify-items: end; text-align: end; font-size: 14px; color: var(--n-text-2); white-space: nowrap; }
.wiz-price b { font: 620 34px/1 var(--font); letter-spacing: -.04em; color: #fff; font-variant-numeric: tabular-nums; }
.wiz-price small { font: 400 11.5px/1.4 var(--mono); color: var(--n-text-3); margin-top: 4px; }
html[lang="ar"] .wiz-price small { font-family: var(--arabic); font-size: 12px; }
.wiz-main { display: flex; flex-direction: column; min-height: 0; min-width: 0; background: #fff; }
.wiz-stepper { transition: box-shadow .25s; padding-bottom: 14px !important; }
.wiz-main.is-scrolled .wiz-stepper { box-shadow: 0 1px 0 var(--line); }
.wiz-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 28px 32px 0; }
.wiz-title { margin-top: 12px; font: 620 30px/1.1 var(--font); letter-spacing: -.035em; }
.wiz-stepper { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; padding: 22px 32px 0; list-style: none; }
.wiz-stepper button { width: 100%; display: grid; gap: 9px; text-align: start; font: 500 12.5px/1.2 var(--font); color: var(--ink-3); transition: color .25s; }
.wiz-stepper button i { position: relative; display: block; height: 3px; border-radius: 3px; background: var(--bg-3); overflow: hidden; }
.wiz-stepper button i::after { content: ""; position: absolute; inset: 0; transform: scaleX(0); transform-origin: 0 50%; border-radius: 3px; background: var(--ink); transition: transform .5s var(--ease-out), background .3s; }
html[dir="rtl"] .wiz-stepper button i::after { transform-origin: 100% 50%; }
.wiz-stepper .is-done button { color: var(--ink-2); }
.wiz-stepper .is-done i::after { transform: none; }
.wiz-stepper .is-on button { color: var(--ink); }
.wiz-stepper .is-on i::after { transform: none; background: var(--accent); }
.wiz-stepper button[disabled] { cursor: default; }
.wiz-body { position: relative; flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 14px 32px 32px; }
.wz-pane { animation: wzIn .5s var(--ease-out) both; }
.wz-pane.is-back { animation-name: wzInB; }
@keyframes wzIn { from { opacity: 0; transform: translateX(24px); } }
@keyframes wzInB { from { opacity: 0; transform: translateX(-24px); } }
html[dir="rtl"] .wz-pane { animation-name: wzInB; } html[dir="rtl"] .wz-pane.is-back { animation-name: wzIn; }
.wiz-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 32px; border-top: 1px solid var(--line); background: #fff; }
.wz-intro { color: var(--ink-3); font-size: 15px; margin-top: -10px; margin-bottom: 20px; }
.wz-label { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 30px 0 12px; font: 500 11.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
html[lang="ar"] .wz-label { font-family: var(--arabic); font-size: 12.5px; text-transform: none; }
.wz-label:first-child { margin-top: 0; }
.wz-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.wz-card { position: relative; display: grid; gap: 4px; padding: 14px; border-radius: 18px; border: 1px solid var(--line-2); background: #fff; text-align: start; transition: border-color .2s, box-shadow .25s, transform .3s var(--ease-out); }
.wz-card:hover { border-color: var(--ink-3); }
.wz-card.is-on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.wz-card.is-on::after { content: ""; position: absolute; top: 12px; inset-inline-end: 12px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat; animation: pop .35s var(--spring); }
.wz-card[disabled] { opacity: .5; cursor: not-allowed; }
.wz-vis { position: relative; height: 104px; margin-bottom: 10px; border-radius: 12px; background: var(--bg-2); display: grid; place-items: center; overflow: hidden; }
.wz-card b { font: 600 16px/1.2 var(--font); }
.wz-card small { font-size: 13px; color: var(--ink-3); }
.wz-card .wz-price-tag { margin-top: 8px; font: 500 12.5px/1 var(--mono); color: var(--ink-2); }
.wz-soon { position: absolute; top: 10px; inset-inline-start: 10px; }
/* card visuals */
.wv-book { position: relative; width: 52px; height: 70px; border-radius: 2px 5px 5px 2px; background: var(--ink); box-shadow: 5px 5px 0 -1px #DAD5F7, 0 12px 20px -10px rgba(56,51,54,.6); }
.wv-book::before { content: ""; position: absolute; inset: 0 auto 0 4px; width: 4px; background: rgba(255,255,255,.2); }
.wv-soft { background: #DAD5F7; border-radius: 1px 2px 2px 1px; box-shadow: 3px 3px 0 -1px #EDE9FB, 0 10px 18px -10px rgba(56,51,54,.5); transform: skewY(-4deg); }
.wv-soft::before { left: 2px; width: 1px; background: rgba(56,51,54,.2); }
.wv-fin { width: 100%; height: 100%; background: linear-gradient(135deg, #8F84DD, #5B4BC4); }
.wv-fin.is-matte::after { content: ""; position: absolute; inset: 0; opacity: .5; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.wv-fin.is-glossy::after { content: ""; position: absolute; inset: -20px; background: linear-gradient(115deg, transparent 38%, rgba(255,255,255,.7) 48%, transparent 58%); animation: glossW 3.2s var(--ease-io) infinite; }
@keyframes glossW { 0% { transform: translateX(-140px); } 60%, 100% { transform: translateX(140px); } }
.wv-shape { border: 2px solid var(--ink); border-radius: 3px; background: #fff; box-shadow: 5px 5px 0 -2px var(--bg-3); }
.wv-a4 { font: 600 15px/1 var(--latin); display: grid; place-items: center; }
.wz-cats { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-bottom: 14px; padding-bottom: 2px; }
.wz-cats::-webkit-scrollbar { display: none; }
.wz-cats button { flex: none; height: 32px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--line-2); font: 500 13px/1 var(--font); color: var(--ink-2); transition: all .2s; }
.wz-cats button:hover { color: var(--ink); border-color: var(--ink-3); }
.wz-cats button.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.wz-themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 14px 12px; }
.wz-theme { display: grid; gap: 8px; text-align: center; min-width: 0; }
.wz-theme-img { position: relative; aspect-ratio: 1 / 1.414; perspective: 600px; }
.wz-theme-flip { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .7s var(--ease-out); }
.wz-theme:hover .wz-theme-flip { transform: rotateY(-180deg); }
.wz-theme-flip > span { position: absolute; inset: 0; border-radius: 2px 5px 5px 2px; background: var(--bg-2) center / cover no-repeat; -webkit-backface-visibility: hidden; backface-visibility: hidden; box-shadow: 0 0 0 1px var(--line), 0 8px 14px -10px rgba(56,51,54,.5); }
.wz-theme-flip > span + span { transform: rotateY(180deg); }
.wz-theme.is-on .wz-theme-flip > span { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--accent); }
.wz-theme.is-on .wz-theme-img::after { content: ""; position: absolute; top: -6px; inset-inline-end: -6px; z-index: 2; width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat; box-shadow: 0 0 0 2px #fff; animation: pop .35s var(--spring); }
.wz-theme small { font: 500 11.5px/1.25 var(--font); color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wz-theme.is-on small { color: var(--ink); font-weight: 600; }
.wz-none .wz-theme-flip > span { display: grid; place-items: center; background: repeating-linear-gradient(135deg, var(--bg-2) 0 6px, #fff 6px 12px); font: 500 11px/1.2 var(--font); color: var(--ink-3); padding: 6px; }
.wz-pages { display: grid; justify-items: center; text-align: center; padding: 8px 0 4px; }
.wz-pages-ctl { display: flex; align-items: center; gap: 28px; }
.wz-pages-n { font: 620 clamp(64px, 8vw, 96px)/1 var(--font); letter-spacing: -.06em; font-variant-numeric: tabular-nums; min-width: 2.2ch; }
.wz-pages-l { margin-top: 6px; font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
html[lang="ar"] .wz-pages-l { font-family: var(--arabic); font-size: 13px; }
.wz-pages .range { margin-top: 28px; max-width: 520px; }
.wz-ticks { display: flex; justify-content: space-between; width: 100%; max-width: 520px; margin-top: 4px; font: 500 11px/1 var(--mono); color: var(--ink-3); }
.wz-hint { margin-top: 22px; font-size: 15px; color: var(--ink-2); min-height: 1.5em; }
.note { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: var(--bg-2); font-size: 13.5px; line-height: 1.5; color: var(--ink-2); text-align: start; }
.note > .ic { color: var(--accent); margin-top: 1px; }
.note-center { max-width: 520px; margin-top: 20px; }
.wz-title-in { width: 100%; height: 64px; padding: 0 18px; border-radius: 16px; border: 1px solid var(--line-2); font: 500 22px/1 var(--font); letter-spacing: -.02em; transition: border-color .2s, box-shadow .2s; }
.wz-title-in:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.wz-count { display: block; margin-top: 8px; text-align: end; font: 400 12px/1 var(--mono); color: var(--ink-3); }
.wz-review { display: grid; margin-top: 8px; border-top: 1px solid var(--line); }
.wz-review > div { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.wz-review dt { color: var(--ink-3); }
.wz-review dd { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wz-review .link-btn { font-size: 13px; }
.wz-terms { margin-top: 16px; font-size: 13px; color: var(--ink-3); }
.wz-gate, .wz-done { display: grid; justify-items: center; align-content: center; text-align: center; gap: 12px; min-height: 100%; padding: 20px 0; animation: wzIn .5s var(--ease-out) both; }
.wz-gate h3, .wz-done h3 { font: 620 26px/1.15 var(--font); letter-spacing: -.03em; margin-top: 8px; }
.wz-gate p, .wz-done p { max-width: 40ch; color: var(--ink-2); font-size: 15px; }
.wz-gate-btns { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; justify-content: center; }
.ok-ring { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); flex: none; }
.ok-ring-lg { width: 80px; height: 80px; background: var(--accent); color: #fff; box-shadow: 0 0 0 10px var(--accent-soft); animation: pop .6s var(--spring); }
.ok-ring-lg .ic { width: 36px; height: 36px; stroke-width: 2.4; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .6s var(--ease-out) .25s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.lock-ring { background: var(--bg-2); color: var(--ink); }
.bar { width: min(280px, 80%); height: 4px; margin-top: 18px; border-radius: 4px; background: var(--bg-3); overflow: hidden; position: relative; }
.bar::after { content: ""; position: absolute; inset: 0; width: 40%; border-radius: 4px; background: var(--accent); animation: barGo 1.2s var(--ease-io) infinite; }
@keyframes barGo { from { transform: translateX(-100%); } to { transform: translateX(260%); } }

/* Auth */
.auth { width: min(980px, calc(100vw - 32px)); }
.auth-shell { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); min-height: min(640px, calc(100vh - 32px)); max-height: calc(100vh - 32px); border-radius: 28px; overflow: hidden; background: var(--night); box-shadow: var(--sh-3); }
.auth-art { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 32px; overflow: hidden; background: radial-gradient(ellipse 80% 50% at 50% 55%, rgba(255, 255, 255, .26), transparent 70%), var(--night); }
.auth-logo { height: 28px; width: auto; }
.auth-fan { position: relative; flex: 1; }
.auth-fan img { position: absolute; left: 50%; top: 50%; width: 42%; aspect-ratio: 1 / 1.414; object-fit: cover; border-radius: 2px 6px 6px 2px; box-shadow: 0 30px 50px -20px rgba(0,0,0,.9); transform-origin: 50% 130%; animation: fanIn 1.1s var(--ease-out) both; }
.auth-fan img:nth-child(1) { transform: translate(-50%, -50%) rotate(-14deg) translateX(-30%); animation-delay: .1s; }
.auth-fan img:nth-child(2) { transform: translate(-50%, -50%) rotate(12deg) translateX(30%); animation-delay: .2s; }
.auth-fan img:nth-child(3) { transform: translate(-50%, -54%); animation-delay: .3s; }
@keyframes fanIn { from { opacity: 0; translate: 0 30px; } }
.auth-quote { font: 550 21px/1.35 var(--font); letter-spacing: -.02em; max-width: 24ch; color: var(--n-text); }
.auth-main { position: relative; background: #fff; padding: 56px 52px 40px; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; justify-content: center; }
.auth-close { position: absolute; top: 16px; inset-inline-end: 16px; }
.auth-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; margin-bottom: 22px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); font-size: 13.5px; line-height: 1.45; }
.auth-note .ic { margin-top: 1px; }
.auth-view { animation: wzIn .45s var(--ease-out) both; }
.auth-title { font: 620 30px/1.1 var(--font); letter-spacing: -.035em; }
.auth-sub { margin: 10px 0 28px; font-size: 15px; color: var(--ink-3); }
.auth-sub b { color: var(--ink); font-weight: 600; }
.auth-back { margin-bottom: 20px; }
.auth-switch { margin-top: 26px; text-align: center; font-size: 14px; color: var(--ink-3); }
.form { display: grid; gap: 16px; }
.fld { display: grid; gap: 8px; min-width: 0; }
.fld-l { font: 500 13px/1.2 var(--font); color: var(--ink-2); }
.fld-l-row { display: flex; justify-content: space-between; align-items: center; }
.fld input, .phone { width: 100%; height: 50px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: #fff; font-size: 16px; transition: border-color .2s, box-shadow .2s; }
.fld input::placeholder { color: #9C94A0; }
.fld input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.fld.is-bad input, .fld.is-bad .phone { border-color: var(--err); box-shadow: 0 0 0 4px var(--err-soft); }
.fld-wrap { position: relative; display: block; }
.fld-wrap input { padding-inline-end: 50px; }
.fld-eye { position: absolute; top: 50%; inset-inline-end: 6px; transform: translateY(-50%); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; color: var(--ink-3); }
.fld-eye:hover { background: var(--bg-2); color: var(--ink); }
.fld-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.phone { position: relative; display: flex; align-items: stretch; padding: 0; }
.phone:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.phone-cc { display: flex; align-items: center; gap: 8px; padding: 0 12px; border-inline-end: 1px solid var(--line); font: 500 15px/1 var(--font); border-radius: 12px 0 0 12px; }
.phone-cc:hover { background: var(--bg-2); }
.phone-cc img { width: 20px; height: 15px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0,0,0,.06); }
.phone-cc .ic { opacity: .5; }
.phone input { flex: 1; min-width: 0; height: 100%; border: 0; border-radius: 0 12px 12px 0; box-shadow: none !important; }
.cc-pop { position: absolute; top: calc(100% + 8px); left: 0; z-index: 5; width: min(340px, 100%); border-radius: 16px; background: #fff; box-shadow: var(--sh-3); overflow: hidden; animation: pop .25s var(--ease-out); }
.cc-search { display: flex; align-items: center; gap: 8px; padding: 0 12px; border-bottom: 1px solid var(--line); color: var(--ink-3); }
.cc-search input { flex: 1; height: 46px; border: 0; outline: none; font-size: 15px; color: var(--ink); background: transparent; }
.cc-list { max-height: 248px; overflow-y: auto; padding: 6px; overscroll-behavior: contain; }
.cc-opt { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto 16px; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 10px; font-size: 14px; text-align: start; }
.cc-opt:hover, .cc-opt.is-active { background: var(--bg-2); }
.cc-opt img { width: 22px; height: 16px; border-radius: 3px; object-fit: cover; }
.cc-opt span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-opt em { font: 500 12.5px/1 var(--mono); font-style: normal; color: var(--ink-3); }
.cc-opt .ic { color: var(--accent); opacity: 0; }
.cc-opt.is-sel .ic { opacity: 1; }
.cc-empty { padding: 18px; text-align: center; font-size: 14px; color: var(--ink-3); }
.form-err { font-size: 13.5px; line-height: 1.45; color: var(--err); }
.form-err:empty { display: none; }
.form-fine { font-size: 13px; color: var(--ink-3); }
.form-fine.center { text-align: center; }
.otp { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.otp input { width: 100%; height: 62px; padding: 0; text-align: center; border-radius: 12px; border: 1px solid var(--line-2); font: 600 24px/1 var(--mono); transition: border-color .2s, box-shadow .2s, transform .2s; }
.otp input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.otp input.is-filled { border-color: var(--ink); }
.otp.is-bad input { border-color: var(--err); animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
.auth-ok { display: flex; gap: 14px; align-items: center; padding: 16px; margin-top: 18px; border-radius: 16px; background: var(--ok-soft); font-size: 14px; color: var(--ink-2); animation: wzIn .4s var(--ease-out) both; }
.auth-ok .ok-ring { width: 44px; height: 44px; background: #fff; color: var(--ok); }
.auth-done { display: grid; justify-items: center; text-align: center; gap: 8px; }
.auth-done .auth-title { margin-top: 20px; }

/* Admin + legal */
dialog.adm { width: min(540px, calc(100vw - 32px)); max-height: calc(100vh - 32px); background: #fff; border-radius: 26px; box-shadow: var(--sh-3); overflow: auto; }
.adm-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 26px 26px 0; }
.adm-title { margin: 10px 0 8px; font: 620 24px/1.15 var(--font); letter-spacing: -.03em; }
.adm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 20px 26px 0; border-radius: 16px; overflow: hidden; background: var(--line); box-shadow: 0 0 0 1px var(--line); }
.adm-grid > div { padding: 12px 14px; background: #fff; min-width: 0; }
.adm-grid > div.full { grid-column: 1 / -1; }
.adm-grid dt { font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.adm-grid dd { margin-top: 6px; font: 500 14px/1.35 var(--font); overflow-wrap: anywhere; }
.adm-ctl { display: grid; gap: 10px; padding: 20px 26px; }
.adm-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 16px; border-radius: 14px; background: var(--bg-2); cursor: pointer; }
.adm-row > span { display: grid; gap: 3px; }
.adm-row b { font: 600 14.5px/1.2 var(--font); }
.adm-row small { font-size: 12.5px; color: var(--ink-3); }
.adm-row-col { flex-direction: column; align-items: stretch; cursor: default; }
.adm-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 16px 26px 22px; border-top: 1px solid var(--line); }
dialog.legal { width: min(640px, calc(100vw - 32px)); max-height: min(82vh, 780px); background: #fff; border-radius: 26px; box-shadow: var(--sh-3); overflow: hidden; }
.legal[open] { display: flex; flex-direction: column; }
.legal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 24px 26px 18px; border-bottom: 1px solid var(--line); }
.legal-title { margin-top: 10px; font: 620 24px/1.15 var(--font); letter-spacing: -.03em; }
.legal-body { flex: 1; overflow-y: auto; padding: 22px 26px; display: grid; gap: 22px; }
.legal-intro { padding: 14px 16px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-ink); font-size: 14px; }
.legal-body h3 { font: 600 15.5px/1.3 var(--font); }
.legal-body p { margin-top: 6px; font-size: 14.5px; color: var(--ink-2); }
.legal-foot { display: flex; justify-content: flex-end; padding: 16px 26px; border-top: 1px solid var(--line); }

/* Toasts */
.toasts { position: fixed; inset: auto; margin: 0; padding: 0; border: 0; background: transparent; overflow: visible; color: inherit; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 2147483000; display: grid; gap: 8px; justify-items: center; transform: translateX(-50%); pointer-events: none; width: max-content; max-width: calc(100vw - 32px); }
.toast { display: flex; align-items: center; gap: 10px; padding: 12px 18px 12px 14px; border-radius: 14px; background: var(--ink); color: #fff; font: 500 14px/1.35 var(--font); box-shadow: 0 20px 40px -16px rgba(44, 40, 42, .6); animation: toastIn .45s var(--ease-out) both; pointer-events: auto; }
.toast.is-out { animation: toastOut .3s var(--ease) forwards; }
.toast .ic { color: #B9AEF0; }
.toast.is-ok .ic { color: #C6EAD6; } .toast.is-err .ic { color: #F8CFDA; }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px) scale(.96); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(8px) scale(.97); } }

/* ---------------------------------------------------------------------------
   19. Reveal on scroll
   --------------------------------------------------------------------------- */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease-out) var(--d, 0s), transform 1.1s var(--ease-out) var(--d, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js .h2[data-reveal] { transform: translateY(32px); filter: blur(6px); transition: opacity .9s var(--ease-out) var(--d, 0s), transform 1.1s var(--ease-out) var(--d, 0s), filter .9s var(--ease-out) var(--d, 0s); }
.js .h2[data-reveal].in { filter: none; transform: none; }   /* the rule above outranks [data-reveal].in, so headings stayed 32px low */

/* ---------------------------------------------------------------------------
   20. Responsive
   --------------------------------------------------------------------------- */
@media (max-width: 1179px) {
  .wiz-shell { grid-template-columns: 340px minmax(0, 1fr); }
  .bn { min-height: 330px; }
}
@media (max-width: 1079px) {
  .nv-links, .acct-wrap, .nv-text { display: none !important; }
  .nv-burger { display: block; }
  .nv-end { margin-inline-start: auto; }
  .hero-grid { gap: 8px; }
  .cfg { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .thumbs { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .plans { grid-template-columns: 1fr 1fr; }
  .plan-calc { grid-column: 1 / -1; }
  .foot-top { grid-template-columns: 1fr 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 959px) {
  :root { --nav-h: 60px; }
  .sec-head-split { grid-template-columns: 1fr; gap: 20px; }
  .hero { min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; padding-block: 40px 16px; }
  .hero-copy { text-align: start; }
  .hero-stage { height: min(58vh, 520px); min-height: 360px; margin-top: 8px; }
  .story-track { height: 400vh; margin-top: 0; }
  .story-grid { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; gap: 0; padding-top: calc(var(--nav-h) + 8px); padding-bottom: 64px; }
  .story-visual { height: auto; min-height: 0; order: -1; align-self: stretch; }
  .story-steps { padding-inline-start: 0; min-height: 168px; }
  .story-steps::before { display: none; }
  .story-steps li { position: absolute; inset: 0 0 auto; padding: 0; opacity: 0; transform: translateY(10px); transition: opacity .45s, transform .55s var(--ease-out); pointer-events: none; }
  .story-steps li::before { display: none; }
  .story-steps li.is-on { opacity: 1; transform: none; pointer-events: auto; }
  .story-steps li.is-past { opacity: 0; transform: translateY(-10px); }
  .story-steps li p { max-height: none; opacity: 1; margin-top: 8px; }
  .story-progress { display: block; top: calc(var(--nav-h) + 12px); bottom: auto; }
  .story-track-list { bottom: 0; }
  .cfg { grid-template-columns: 1fr; gap: 12px; }
  .cfg-stage { top: var(--nav-h); z-index: 4; height: 50vh; min-height: 360px; max-height: 480px; padding: 12px 16px 14px; border-radius: 0 0 var(--r-xl) var(--r-xl); margin-inline: calc(var(--gutter) * -1); box-shadow: 0 12px 30px -20px rgba(56,51,54,.35); }
  .cfg-stage-foot { display: none; }
  .cfg-note { top: 54px; }
  .cfg-sum { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; margin-top: 10px; padding: 10px 10px 10px 16px; border-radius: 16px; }
  html[dir="rtl"] .cfg-sum { padding: 10px 16px 10px 10px; }
  .cfg-break { display: none; }
  .cfg-price b { font-size: 28px; }
  .cfg-sum .btn { height: 44px; padding: 0 18px; font-size: 14px; }
  .cmp { grid-template-columns: 1fr; }
  .cmp-row { padding: 14px 16px; font-size: 14px; }
  .bento { grid-template-columns: 1fr 1fr; }
  .bn-wide { grid-column: 1 / -1; }
  .win-body { grid-template-columns: 1fr; }
  .win-side { border-inline-start: 0; border-top: 1px solid var(--line); grid-template-columns: auto 1fr; align-items: center; gap: 14px 18px; }
  .win-label { margin-top: 0; }
  .specs-grid, .faq-grid { grid-template-columns: 1fr; }
  .faq-grid > .sec-head { position: static; }
  .mcta { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .82); -webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px); box-shadow: 0 -1px 0 var(--line);
    transform: translateY(110%); transition: transform .5s var(--ease-out); }
  .mcta.is-on { transform: none; }
  .mcta .btn { height: 52px; }
  /* Wizard: full screen, preview becomes a band at the top */
  .wiz { width: 100vw; height: 100vh; height: 100dvh; margin: 0; max-height: none; }
  dialog.wiz { transform: translateY(32px); }
  dialog.wiz.is-in { transform: none; }
  .wiz-shell { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); border-radius: 0; }
  .wiz-preview { flex-direction: row; align-items: center; gap: 12px; height: 172px; padding: 12px 16px; padding-top: calc(12px + env(safe-area-inset-top)); }
  .wiz-preview-top { display: none; }
  .wiz-preview .book-host { flex: 0 0 150px; height: 100%; }
  .wiz-sum { flex: 1; flex-direction: column; align-items: flex-start; border-top: 0; padding-top: 0; gap: 10px; }
  .wiz-price { justify-items: start; text-align: start; }
  .wiz-head { padding: 18px 20px 0; }
  .wiz-title { font-size: 24px; margin-top: 8px; }
  .wiz-stepper { padding: 16px 20px 0; }
  .wiz-stepper button span { display: none; }
  .wiz-body { padding: 22px 20px 24px; }
  .wiz-foot { padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); }
  .wiz-foot .btn { height: 50px; }
  #wizNext { flex: 1; max-width: 260px; }
  /* Auth: full screen, no art */
  .auth { width: 100vw; height: 100vh; height: 100dvh; margin: 0; }
  .auth-shell { grid-template-columns: 1fr; min-height: 100%; max-height: none; height: 100%; border-radius: 0; }
  .auth-art { display: none; }
  .auth-main { padding: 72px 22px 32px; justify-content: flex-start; }
}
@media (max-width: 719px) {
  .hero-cta .btn { flex: 1 1 auto; }
  .hero-facts { gap: 22px; }
  .hero-facts dd { font-size: 15px; } .hero-facts b { font-size: 17px; }
  .nv-cta { display: none; }
  .opts-4 { grid-template-columns: 1fr 1fr; }
  .thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: none; }
  .cv { width: 64vw; }
  .rail { padding-top: 40px; }
  .rail-btns { display: none; }
  .bento { grid-template-columns: 1fr; }
  .bn { min-height: 300px; padding: 22px; }
  .bn-full { display: flex; }
  .bn-full h3 { font-size: 20px; margin-top: auto; }
  .plans { grid-template-columns: 1fr; }
  .plan-price b { font-size: 60px; }
  .spec-list > div { grid-template-columns: 1fr; gap: 6px; padding: 18px 0; }
  .sizes { gap: 16px; }
  .sizes span { width: calc(var(--w) * .8); height: calc(var(--h) * .8); }
  .foot-top { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .foot-bottom { flex-direction: column-reverse; align-items: flex-start; }
  .cmp-row { grid-template-columns: 1fr 1fr 1fr; gap: 10px; font-size: 13.5px; }
  .fld-2 { grid-template-columns: 1fr; }
  .wz-cards { gap: 10px; }
  .wz-vis { height: 84px; }
  .wz-review > div { grid-template-columns: 96px minmax(0, 1fr) auto; }
  .wz-themes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lab { gap: 14px; }
  .lab-panel figcaption b { font-size: 17px; }
  .lab-panel figcaption span { font-size: 13px; }
  .closing-fan img { width: 96px; }
  .acct { width: calc(100vw - 32px); }
}
@media (max-width: 400px) {
  .lang-btn span { min-width: 24px; }
  .hero-facts > div:nth-child(3) { display: none; }
}
@media (hover: none) {
  .cv-actions { opacity: 1; transform: none; }
  .cv:hover .cv-3d { transform: none; }
  .cv.is-flipped .cv-3d { transform: rotateY(-180deg); }
  .wz-theme:hover .wz-theme-flip { transform: none; }
  .bn:hover { transform: none; box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .story-track { height: auto; }
  .story-stage { position: relative; height: auto; padding-block: 40px; }
  .ticker-row { animation: none; }
  .js [data-reveal] { opacity: 1; transform: none; filter: none; }
}

/* ===========================================================================
   21. Brand layer (guidelines v1.0): section fields, hero, accents.
   Proportion: Cream/Paper most of the page, Lavender as the brand field
   (covers, closing, wizard and sign-in art), Ink for the footer, pastels for
   tiles. Coral stays on the dot: the hero CTA, the logo and Zizo.
   =========================================================================== */
:root { --coral: #FF6A64; --coral-ink: #C94440; --mint: #C6EAD6; --t-sky: #E3EEFA; --t-butter: #FDF3CF; --t-mint: #E2F4EA; --t-peach: #FFE8DE; --t-sand: #F6EFDC; --t-lav: #EEEBFC; --t-blush: #FCE8EE;
  /* cream "memory dots" scattered on Lavender fields, as on the guide's cover */
  --dots: radial-gradient(circle at 8% 14%, var(--bg-2) 0 7px, transparent 7.5px), radial-gradient(circle at 93% 22%, var(--bg-2) 0 11px, transparent 11.5px),
          radial-gradient(circle at 88% 78%, var(--bg-2) 0 6px, transparent 6.5px), radial-gradient(circle at 16% 88%, var(--bg-2) 0 9px, transparent 9.5px),
          radial-gradient(circle at 52% 6%, var(--bg-2) 0 4px, transparent 4.5px); }

/* Light sections: ink text on a field */
.bright { color: var(--ink); --n-line: var(--line-2); --n-text: var(--ink); --n-text-2: var(--ink-2); --n-text-3: var(--ink-3); }
/* wide sections keep their dots at the edges, clear of the text */
.lavender, .pop-sky, .pop-sun, .wiz-preview.bright, .auth-art.bright { --dots: radial-gradient(circle at 2.5% 7%, var(--bg-2) 0 7px, transparent 7.5px), radial-gradient(circle at 97.5% 5%, var(--bg-2) 0 11px, transparent 11.5px), radial-gradient(circle at 98% 62%, var(--bg-2) 0 6px, transparent 6.5px), radial-gradient(circle at 2% 95%, var(--bg-2) 0 9px, transparent 9.5px); }
.lavender, .pop-sky, .pop-sun { background: var(--dots), var(--lav); --ink-2: #463F49; --ink-3: #4F4852; --line: rgba(56, 51, 54, .14); --line-2: rgba(56, 51, 54, .24); }
.pop-butter { background: var(--bg-2); }
.reviews.pop-sky { background: var(--t-lav); }
.bright .lead { color: var(--ink-2); }
.bright .btn-light { --sh: var(--lav); background: var(--ink); color: var(--bg-2); }
.lavender .btn-light, .pop-sky .btn-light, .pop-sun .btn-light { --sh: var(--bg-2); }
.bright .btn-ghost-light { --sh: var(--ink); border-color: var(--ink); color: var(--ink); background: var(--bg-2); }
.bright .btn-ghost-light:hover { background: #fff; }
.tab, .lab-chips button { border: 2px solid var(--ink); }
.bright .tab, .bright .lab-chips button { background: var(--bg-2); color: var(--ink); border-color: var(--ink); }
.bright .tab:hover, .bright .lab-chips button:hover { background: #fff; color: var(--ink); }
.bright .tab.is-on, .bright .lab-chips button.is-on { background: var(--ink); color: var(--bg-2); border-color: var(--ink); }
.bright .rail-progress { background: rgba(56, 51, 54, .16); }
.bright .rail-progress span { background: var(--ink); }
.bright .cv-face { box-shadow: 0 30px 44px -26px rgba(56, 51, 54, .6), 0 0 0 1px rgba(56, 51, 54, .08); }
.bright .lab-cover { box-shadow: 0 44px 60px -36px rgba(56, 51, 54, .6), 0 0 0 1px rgba(56, 51, 54, .06); }
.bright .closing-fan img { box-shadow: 0 30px 46px -24px rgba(56, 51, 54, .6), 0 0 0 1px rgba(56, 51, 54, .06); }
.bright .bk-shadow { background: radial-gradient(closest-side, rgba(56, 51, 54, .32), transparent); }
.closing.bright::before { display: none; }
.closing-ar { font-family: var(--zk-display-ar, "Baloo Bhaijaan 2"); font-size: 22px; color: var(--ink); }
.wiz-shell, .auth-shell { background: #fff; }
.wiz-preview.bright, .auth-art.bright { background: var(--dots), var(--lav); }
.wiz-price b { color: var(--ink); }
.auth-quote { color: var(--ink); font: 600 23px/1.3 var(--display); letter-spacing: 0; }

/* Second headline lines in Deep Lavender; Ink on Lavender fields (contrast) */
.dim, .night .dim { color: var(--accent); }
.lavender .dim, .pop-sky .dim, .pop-sun .dim { color: var(--ink); }
.reviews.pop-sky .dim { color: var(--accent); }
.lavender .eyebrow::before, .pop-sky .eyebrow::before, .pop-sun .eyebrow::before { background: var(--bg-2); box-shadow: 0 0 0 2px var(--ink); }
/* Tiles take the occasion pastels */
.bento .bn:nth-child(1) { background: var(--t-sky); }
.bento .bn:nth-child(2) { background: var(--t-butter); }
.bento .bn:nth-child(3) { background: var(--t-mint); }
.bento .bn:nth-child(4) { background: var(--t-peach); }
.bento .bn:nth-child(5) { background: var(--t-blush); }
.bento .bn:nth-child(6) { background: var(--t-lav); }
.cmp-col:nth-child(1) { background: var(--t-lav); }
.cmp-col:nth-child(2) { background: var(--t-butter); }
.plan:not(.plan-featured):not(.plan-calc) { background: var(--bg-2); }

/* Hero: Paper on the left, a Lavender stage with cream dots on the right */
.sun { background: var(--bg); color: var(--ink); }
.hero-glow, .hero-lines, .hero-bg::after { display: none; }
.hero-stage::before { content: ""; position: absolute; z-index: -1; inset: 1% -2% 52px 3%; border-radius: 36px; background: var(--dots), var(--lav); }
html[dir="rtl"] .hero-stage::before { inset: 1% 3% 52px -2%; }
.hero-title { margin-top: 22px; }
.hero .hero-line.dim { color: var(--accent); }
/* "kept." framed by crop marks: choosing which photo makes the page */
.hero-line { position: relative; z-index: 0; }
.hero mark { position: relative; display: inline-block; padding: 0 .14em .02em; margin-inline-start: -.06em; background: none; color: inherit; white-space: nowrap; }
.hero mark::before, .hero mark::after { content: ""; position: absolute; inset: .1em -.02em -.02em; pointer-events: none; color: var(--ink); animation: cropIn .55s var(--zk-spring, var(--spring)) 1s both;
  background: linear-gradient(currentColor, currentColor) 0 0 / .26em .065em no-repeat, linear-gradient(currentColor, currentColor) 0 0 / .065em .26em no-repeat,
              linear-gradient(currentColor, currentColor) 100% 0 / .26em .065em no-repeat, linear-gradient(currentColor, currentColor) 100% 0 / .065em .26em no-repeat; }
.hero mark::after { background: linear-gradient(currentColor, currentColor) 0 100% / .26em .065em no-repeat, linear-gradient(currentColor, currentColor) 0 100% / .065em .26em no-repeat,
              linear-gradient(currentColor, currentColor) 100% 100% / .26em .065em no-repeat, linear-gradient(currentColor, currentColor) 100% 100% / .065em .26em no-repeat; }
@keyframes cropIn { from { opacity: 0; transform: scale(1.18); } }
/* Price as a badge burst: Butter, Ink edge, a solid sticker shadow */
.hero-badge { position: absolute; z-index: 3; top: 2%; right: 4%; width: 128px; height: 128px; display: grid; place-items: center; color: var(--ink); border-radius: 0; box-shadow: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpolygon points='50.0,1.5 58.9,11.0 71.0,6.3 74.9,18.7 87.9,19.8 86.0,32.6 97.3,39.2 90.0,50.0 97.3,60.8 86.0,67.4 87.9,80.2 74.9,81.3 71.0,93.7 58.9,89.0 50.0,98.5 41.1,89.0 29.0,93.7 25.1,81.3 12.1,80.2 14.0,67.4 2.7,60.8 10.0,50.0 2.7,39.2 14.0,32.6 12.1,19.8 25.1,18.7 29.0,6.3 41.1,11.0' fill='%23FBE7A1' stroke='%23383336' stroke-width='2.6' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  filter: drop-shadow(0 4px 0 var(--ink)); transform: rotate(-8deg) translate(calc(var(--mx) * -16px), calc(var(--my) * -16px)); transition: transform 1s var(--ease-out); animation: fadeIn .6s 1.2s both; }
html[dir="rtl"] .hero-badge { right: auto; left: 4%; transform: rotate(8deg) translate(calc(var(--mx) * -16px), calc(var(--my) * -16px)); }
.hero-badge-ring, html[lang="ar"] .hero-badge::before { display: none; }
.hero-badge-in { position: relative; display: grid; justify-items: center; line-height: 1; }
.hero-badge-in small { font: 600 12px/1.1 var(--font); }
.hero-badge-in b { margin: 1px 0 0; font: 700 38px/1 var(--display); letter-spacing: -.02em; }
/* Loose prints: cream instant prints, tilt ±4°, captions in the strip */
.hero-prints { position: absolute; inset: 0; pointer-events: none; }
.print { position: absolute; width: clamp(92px, 9.4vw, 134px); padding: 7px 7px 30px; border-radius: 5px; background: var(--bg-2);
  box-shadow: 0 18px 30px -16px rgba(56, 51, 54, .5), 0 0 0 1px rgba(56, 51, 54, .06);
  transform: rotate(var(--r)) translate(calc(var(--mx) * var(--d)), calc(var(--my) * var(--d))); transition: transform 1.2s var(--ease-out); animation: printIn .6s var(--zk-spring, var(--spring)) backwards; }
.print i { display: block; aspect-ratio: 4 / 5; border-radius: 1px; }
.print::after { content: attr(data-cap); position: absolute; left: 0; right: 0; bottom: 6px; text-align: center; font: 700 15px/1 var(--hand); color: var(--ink); white-space: nowrap; }
.print-a { left: 0; top: 16%; --r: -4deg; --d: 26px; animation-delay: .5s; }
.print-b { right: 0; bottom: 16%; --r: 4deg; --d: -22px; animation-delay: .7s; }
.print-b i { aspect-ratio: 5 / 4; }
/* Photos land with a small overshoot (−12° → +2°) */
@keyframes printIn { 0% { opacity: 0; transform: rotate(-12deg) translateY(26px); } 70% { opacity: 1; transform: rotate(calc(var(--r) + 2deg)); } 100% { transform: rotate(var(--r)); } }
.ticker-row i { background: var(--lav); }
.ticker-row i:nth-of-type(3n+2) { background: var(--sun); } .ticker-row i:nth-of-type(3n) { background: var(--peach); }

@media (max-width: 959px) {
  .story-track { height: 330vh; }
}
@media (max-width: 719px) {
  .hero-badge { width: 94px; height: 94px; top: 0; right: 1%; }
  html[dir="rtl"] .hero-badge { left: 1%; }
  .hero-badge-in b { font-size: 22px; }
  .hero-badge-in small { font-size: 8px; }
  .print { width: 76px; padding: 4px 4px 14px; }
  .print-a { top: 10%; } .print-b { bottom: 20%; }

  /* Wizard: options become compact rows, so a whole step fits on screen */
  .wiz-preview { height: 124px; padding-block: 8px; }
  .wiz-preview .book-host { flex-basis: 110px; }
  .wiz-price b { font-size: 26px; }
  .wiz-sum { gap: 6px; }
  .wiz-sum-t { font-size: 14px; }
  .wiz-sum-s { font-size: 12px; }
  .wiz-head { padding-top: 14px; }
  .wiz-title { font-size: 22px; margin-top: 6px; }
  .wiz-stepper { padding-top: 12px; }
  .wiz-body { padding-top: 12px; }
  .wz-intro { font-size: 14px; margin: 0 0 14px; }
  .wz-label { margin: 22px 0 10px; }
  .wz-cards { grid-template-columns: 1fr; gap: 8px; }
  .wz-card { grid-template-columns: 58px minmax(0, 1fr); column-gap: 14px; row-gap: 2px; align-items: center; align-content: center; padding: 9px 44px 9px 9px; border-radius: 14px; }
  html[dir="rtl"] .wz-card { padding: 9px 9px 9px 44px; }
  .wz-card > * { grid-column: 2; }
  .wz-card > .wz-vis { grid-column: 1; grid-row: 1 / span 3; height: 58px; margin: 0; border-radius: 10px; }
  .wz-card b { font-size: 15px; }
  .wz-card small { font-size: 12.5px; }
  .wz-card .wz-price-tag { margin-top: 3px; font-size: 11.5px; }
  .wz-card .wv-book { transform: scale(.6); }
  .wz-card .wv-shape { transform: scale(.66); }
  .wz-card.is-on::after { top: 50%; margin-top: -11px; }
  .wz-card .wz-soon { top: auto; bottom: 6px; inset-inline-start: auto; inset-inline-end: 40px; }
  .wz-row { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; margin-inline: -20px; padding: 6px 20px 8px; }
  .wz-row::-webkit-scrollbar { display: none; }
  .wz-row .wz-theme { flex: 0 0 78px; }

  /* Configurator: a smaller stage and compact option cards */
  .cfg-stage { height: 40vh; min-height: 300px; max-height: 380px; }
  .cfg-group { padding: 16px; border-radius: 18px; }
  .cfg-group legend { margin-bottom: 10px; }
  .opt { padding: 12px; border-radius: 12px; }
  .opt-ico { transform: scale(.8); transform-origin: 0 50%; margin-bottom: 2px; }
  html[dir="rtl"] .opt-ico { transform-origin: 100% 50%; }
  .opts-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .opt-sm { padding: 10px 2px 8px; }
  .opt-sm b { font-size: 11px; }
  .opt-sm .shape { margin: 2px 0 6px; }
  .opt-sm.is-on::after { width: 14px; height: 14px; top: 4px; inset-inline-end: 4px; background-size: 8px; }
  .thumbs:not(.is-all) > :nth-child(n+9) { display: none; }
  .pages-out { font-size: 34px; }
}

/* Phone clean-up pass */
.ticker { z-index: 1; background: color-mix(in srgb, var(--bg) 55%, transparent); }
.plan-featured { background: linear-gradient(160deg, #dde7ff 0%, #eef3ff 55%, #fff3d3 100%); color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.plan-featured::before { background: radial-gradient(closest-side, rgba(251, 231, 161, .7), transparent); }
.plan-featured header p, .plan-featured .plan-price span, .plan-featured .plan-note, .plan-featured .ticks li { color: var(--ink-2); }
.plan-featured .ticks li::before { background: rgba(91, 75, 196, .14); }
.plan-featured .ticks li::after { background: var(--accent); }
.plan-featured .badge-light { background: var(--sun); color: var(--ink); }
.plan-featured .btn-light { background: var(--ink); color: #fff; }
.plan-featured .btn-light:hover { background: var(--accent); }
.sizes figcaption em { white-space: nowrap; }
@media (max-width: 959px) {
  .hero-stage { transform: none; }
  .story-steps { margin-top: 18px; }
  .story-track-list { bottom: 6px; }
}
@media (max-width: 719px) {
  .sizes { gap: 10px; justify-content: space-between; }
  .sizes figcaption { font-size: 12.5px; }
  .sizes figcaption em { font-size: 10px; }
  .story-track-list { gap: 2px; padding: 4px; }
  .story-track-list li { padding: 0 9px; height: 30px; font-size: 12px; }
}
/* Account lists: lazy covers, "Show more" */
.pc-book img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pc-book::before { z-index: 1; }
.list-more { display: flex; justify-content: center; align-items: center; width: 100%; height: 44px; margin-top: 6px; border-radius: 12px; font: 500 14px/1 var(--font); color: var(--accent); background: var(--t-sky, #e9f0ff); transition: background .2s; }
.list-more:hover { background: #CFE3F7; }
/* The thumbnail shows the binding and finish: hardcover = boards with a spine
   and page edges, softcover = thin flush cover, glossy = a light sheen */
.pc-book:not(.is-soft) { box-shadow: 2px 2px 0 -.5px #e7e3dc, 0 6px 14px -6px rgba(56, 51, 54, .45), 0 0 0 1px rgba(56, 51, 54, .06); }
.pc-book.is-soft { border-radius: 1px 2px 2px 1px; }
.pc-book.is-soft::before { width: 6%; background: linear-gradient(90deg, rgba(0,0,0,.12), transparent); }
.pc-book.is-glossy::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.55) 45%, rgba(255,255,255,.1) 52%, transparent 64%); }
.pc-when { margin-top: 1px; font-size: 12px; }
.adm-grid > div:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* Basket: nav button with a count, a toggle on every project card, and the basket dialog */
.nv-bag { position: relative; display: inline-grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 50%; border: 1px solid color-mix(in srgb, currentColor 16%, transparent); transition: background .2s; }
.nv-bag:hover { background: color-mix(in srgb, currentColor 8%, transparent); }
.nv-bag em { position: absolute; top: -5px; inset-inline-end: -5px; display: grid; place-items: center; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--coral, #FF6A64); color: #fff; font: 700 11px/1 var(--latin); font-style: normal; box-shadow: 0 0 0 2px var(--bg, #FFFCF5); }
.nv-bag.is-bump { animation: bagBump .5s var(--ease-out); }
@keyframes bagBump { 30% { transform: scale(1.18); } 60% { transform: scale(.95); } }
.pc-bag { position: absolute; z-index: 1; top: 50%; inset-inline-end: 52px; transform: translateY(-50%); width: 38px; height: 38px; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.pc-bag:hover, .pc-bag:focus-visible { background: var(--t-sky, #e9f0ff); color: var(--accent); box-shadow: inset 0 0 0 1px rgba(91, 75, 196, .3); }
.pc-bag.is-on { background: var(--accent); color: #fff; box-shadow: none; }
.pc-bag.is-on:hover { background: var(--accent-2, #4A3BAE); color: #fff; }
.pc-inbag { font-weight: 600; color: var(--accent); }
/* (named "bag": .bk and .bk-* belong to the 3D book) */
dialog.bag { width: min(520px, calc(100vw - 32px)); max-height: min(calc(100vh - 32px), 760px); background: #fff; border-radius: 26px; box-shadow: var(--sh-3); overflow: hidden; }
.bag[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }   /* as tall as its albums; the list scrolls only when the screen runs out */
.bag-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 24px 24px 14px; }
.bag-title { margin-top: 10px; font: 620 24px/1.15 var(--font); letter-spacing: -.03em; }
.bag-body { min-height: 0; overflow-y: auto; padding: 0 14px 6px; }
.bag-list { display: grid; gap: 2px; }
.bag-row { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto 38px; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; animation: pcIn .4s var(--ease-out) both; }
.bag-row .pc-main { display: grid; min-width: 0; }
.bag-price { font: 500 13.5px/1 var(--mono); white-space: nowrap; color: var(--ink); }
.bag-x { width: 34px; height: 34px; justify-self: end; color: var(--ink-3); }
.bag-x:hover { background: var(--err-soft); color: var(--err); }
.bag-more { margin-top: 10px; padding: 10px 0 4px; border-top: 1px dashed var(--line-2); }
.bag-more .bag-row { grid-template-columns: 52px minmax(0, 1fr) auto auto; }
.bag-add { height: 32px; padding: 0 14px; background: var(--ink); color: #fff; font-weight: 600; font-size: 13px; }
.bag-add:hover { background: var(--accent); }
.bag-empty { padding: 6px 10px 16px; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.bag-foot { padding: 14px 24px 20px; border-top: 1px solid var(--line); background: #FBF5E5; }
.bag-lines > div { display: flex; justify-content: space-between; gap: 14px; padding: 4px 0; font-size: 14px; color: var(--ink-2); }
.bag-lines dd { font: 500 13.5px/1.5 var(--mono); color: var(--ink); white-space: nowrap; }
.bag-lines small { font-size: 12.5px; color: var(--ink-3); }
.bag-save { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 9px 12px; border-radius: 12px; background: var(--ok-soft); color: var(--ok); font-size: 13px; font-weight: 500; }
.bag-warn { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; white-space: normal; color: var(--warn); }
.bag-warn .ic { width: 14px; height: 14px; flex: none; }
.bag-warn a { color: var(--accent); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.bag-save-warn { background: var(--warn-soft); color: #7a5200; align-items: flex-start; }
.bag-save-warn .ic { margin-top: 2px; flex: none; }
.bag-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.bag-actions .btn-label { display: inline-flex; align-items: baseline; gap: 10px; }
.bag-actions .btn-label b { font: 500 13.5px/1 var(--mono); opacity: .8; }
.bag-actions .btn-label b:empty { display: none; }
@media (max-width: 520px) {
  .bag-head { padding: 20px 18px 12px; }
  .bag-body { padding: 0 8px 6px; }
  .bag-foot { padding: 12px 18px 18px; }
  .bag-row { gap: 10px; padding: 9px 8px; }
  .bag-actions { flex-direction: column-reverse; }
  .bag-actions .btn { width: 100%; justify-content: center; }
}

/* Delete album: a trash button on every project card, then a confirmation */
.pc-wrap.has-del .pc { padding-inline-end: 98px; }
.pc-wrap.has-del .pc-side { display: none; }
.pc-del { position: absolute; z-index: 1; top: 50%; inset-inline-end: 8px; transform: translateY(-50%); width: 38px; height: 38px; color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line); }
.pc-del:hover, .pc-del:focus-visible { background: var(--err-soft); color: var(--err); box-shadow: inset 0 0 0 1px rgba(198, 63, 60, .3); }
.btn-danger { background: var(--err); color: #fff; }
.btn-danger:hover { background: #A9302E; box-shadow: 0 10px 28px -12px rgba(198, 63, 60, .75); }
dialog.rm { width: min(420px, calc(100vw - 32px)); max-height: calc(100vh - 32px); background: #fff; border-radius: 26px; box-shadow: var(--sh-3); overflow: auto; }
.rm-body { display: grid; justify-items: center; text-align: center; padding: 30px 26px 0; }
/* The album's own cover, with a small red "remove" mark on its corner */
.rm-cover { display: grid; place-items: center; width: 100%; height: 132px; border-radius: 18px; background: var(--bg-2); }
.rm-book { position: relative; display: block; }
.rm-cover .pc-book { display: block; height: 92px; }
.rm-cover .pc-book[data-o="landscape"] { height: auto; width: 116px; }
.rm-cover .pc-book[data-o="square"] { height: 84px; }
.rm-cover .pc-book.is-mono { display: grid; font-size: 26px; }
.rm-mark { position: absolute; z-index: 3; top: -9px; inset-inline-end: -9px; width: 24px; height: 24px; border-radius: 50%; background: var(--err); box-shadow: 0 0 0 3px var(--bg-2), 0 4px 10px -3px rgba(198, 63, 60, .6); }
.rm-mark::before { content: ""; position: absolute; left: 7px; right: 7px; top: 50%; height: 2px; margin-top: -1px; border-radius: 2px; background: #fff; }
.rm-title { margin-top: 20px; font: 620 22px/1.2 var(--font); letter-spacing: -.03em; overflow-wrap: anywhere; }
.rm-meta { margin-top: 6px; font-size: 13px; color: var(--ink-3); }
.rm-text { max-width: 34ch; margin-top: 14px; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.rm-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; padding: 16px 26px 22px; border-top: 1px solid var(--line); }
@media (max-width: 520px) {
  .rm-foot { flex-direction: column-reverse; }
  .rm-foot .btn { width: 100%; }
}

/* Looping animations hold while their section is off screen (site.js: initOffscreenPause) */
.is-paused-offscreen, .is-paused-offscreen *, .is-paused-offscreen *::before, .is-paused-offscreen *::after { animation-play-state: paused !important; }

/* ===========================================================================
   22. Brand interface (guidelines v1.0, section 10)
   Radius 12 inputs · 22 cards · 999 buttons and chips. 2px Memory Ink on
   interactive edges. Focus: 3px Deep Lavender ring. Labels in sentence case.
   =========================================================================== */
/* Labels that used to be letter-spaced mono capitals */
.list-head, .hero-facts dt, .cfg-sum-l, .opt.is-soon small, .cv-cat, .win-label, .plan-note, .rv-count, .rv-feat-tag, .rv-tr-label, .foot-col > p, .adm-grid dt, .wz-label, .wz-pages-l, .hero-cap, .story-n, .tab sup, .cfg-break, .calc-pages output, .calc-lines dd, .bag-price, .bag-lines dd, .bag-actions .btn-label b, .wz-price-tag, .wz-count, .wz-ticks, .sheet-nav a i, .cc-opt em, .win-url, .sizes figcaption em, .wiz-price small, .seg em {
  font-family: var(--font); text-transform: none; letter-spacing: 0; }
.list-head, .wz-label, .foot-col > p, .cv-cat, .win-label, .adm-grid dt, .rv-count, .hero-facts dt { font-size: 13px; font-weight: 600; }
.hero-facts dt { color: var(--ink-3); }
.hero-facts dd { font: 600 18px/1 var(--display); }
.hero-facts b { font: 700 24px/1 var(--display); }
.story-n { font-size: 13px; font-weight: 600; }
.cfg-sum-l, .wz-pages-l { font-size: 13px; font-weight: 500; }
.rv-feat-tag { font-size: 12.5px; font-weight: 600; }
.opt.is-soon small { font-size: 11.5px; font-weight: 600; }
.calc-pages output, .calc-lines dd, .bag-price, .bag-lines dd, .wz-ticks, .cc-opt em, .wz-price-tag, .wz-count { font-variant-numeric: tabular-nums; }
.hero-cap { font-size: 13px; }
.hero-cap-name { font: 700 18px/1 var(--hand); color: var(--ink); }

/* Big numbers and titles in the display face */
.pages-out, .wz-pages-n, .plan-price b, .cfg-price b, .calc-total b, .wiz-price b, .cmp-price b { font-family: var(--display); font-weight: 700; letter-spacing: -.02em; }
.wiz-title, .auth-title, .bag-title, .adm-title, .legal-title, .rm-title, .wz-gate h3, .wz-done h3, .cmp-head h3, .plan h3, .story-steps h3, .bn h3, .cfg-name, .acct-name, .closing-title { font-family: var(--display); font-weight: 600; letter-spacing: -.01em; }
.closing-title { font-weight: 700; }
html[lang="ar"] .pages-out, html[lang="ar"] .plan-price b, html[lang="ar"] .wiz-title, html[lang="ar"] .auth-title, html[lang="ar"] .story-steps h3, html[lang="ar"] .bn h3 { letter-spacing: 0; }

/* Inputs: Cream fill, 12px radius, ink edge on focus */
.fld input, .phone, .select, .wz-title-in, .otp input { background-color: var(--bg-2); border: 2px solid var(--line-2); border-radius: var(--r-sm); color: var(--ink); }
.fld input:hover, .phone:hover, .select:hover, .wz-title-in:hover { border-color: rgba(56, 51, 54, .34); }
.fld input:focus, .select:focus, .wz-title-in:focus, .otp input:focus, .phone:focus-within { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px rgba(91, 75, 196, .55); background-color: #fff; }
.phone input { background: transparent; border: 0; }
.fld-l { font-weight: 600; color: var(--ink); }
.otp input { font: 600 24px/1 var(--display); }
.otp input.is-filled { border-color: var(--ink); background-color: #fff; }
.fld input::placeholder, .wz-title-in::placeholder { color: #9C94A0; }

/* Segmented control: ink outline, Lavender for the chosen one */
.seg { padding: 3px; border-radius: 999px; background: var(--bg); box-shadow: inset 0 0 0 2px var(--ink); }
.seg > button { border-radius: 999px; color: var(--ink-2); font-weight: 600; }
.seg-ind { border-radius: 999px; background: var(--lav); box-shadow: none; top: 5px; bottom: 5px; }
.seg em { background: rgba(56, 51, 54, .08); color: var(--ink-2); }
.sheet-acct .seg { background: var(--bg); }

/* Range: ink track, Lavender knob with an ink edge */
.range::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(var(--ink), var(--ink)) 0 0 / var(--fill) 100% no-repeat, var(--bg-3); }
.range::-moz-range-track { height: 6px; border-radius: 6px; background: var(--bg-3); }
.range::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--ink); }
.range::-webkit-slider-thumb { width: 26px; height: 26px; margin-top: -10px; background: var(--lav); border: 2.5px solid var(--ink); box-shadow: 0 3px 0 var(--ink); }
.range::-moz-range-thumb { width: 22px; height: 22px; background: var(--lav); border: 2.5px solid var(--ink); box-shadow: 0 3px 0 var(--ink); }

/* Toggles: ink outline, Lavender when on, ink knob */
.switch-dot, .toggle { background: var(--bg); box-shadow: inset 0 0 0 2px var(--ink); }
.switch-dot::after, .toggle::after { background: var(--ink); box-shadow: none; }
.switch.is-on .switch-dot, .toggle:checked { background: var(--lav); }

/* Option cards and wizard cards: Lavender tint + ink edge when chosen */
.opt, .wz-card { border: 2px solid var(--line-2); background: var(--bg); }
.opt:hover, .wz-card:hover { border-color: var(--ink); }
.opt.is-on, .wz-card.is-on { background: var(--t-lav); border-color: var(--ink); box-shadow: 0 3px 0 var(--ink); }
.opt.is-on::after, .wz-card.is-on::after, .wz-theme.is-on .wz-theme-img::after { background-color: var(--ink); }
.thumbs > button.is-on, .wz-theme.is-on .wz-theme-flip > span { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4.5px var(--ink); }
.step-btn { border: 2px solid var(--ink); background: var(--bg); box-shadow: 0 3px 0 var(--ink); transition: transform .15s var(--ease), box-shadow .15s var(--ease), background .2s; }
.step-btn:hover { background: var(--lav); border-color: var(--ink); }
.step-btn:active { transform: translateY(3px); box-shadow: none; background: var(--lav); }
.wz-cats button, .lay-btns button { border: 2px solid var(--line-2); }
.wz-cats button.is-on, .lay-btns button.is-on { background: var(--lav); border-color: var(--ink); color: var(--ink); }
.wz-stepper button i { height: 5px; }
.wz-stepper button i::after { background: var(--ink); }
.wz-stepper .is-on i::after { background: var(--lav); }
.ico-hard::before { background: var(--lav); box-shadow: 3px 3px 0 -1px var(--ink); }
.wv-book { background: var(--lav); box-shadow: 5px 5px 0 -1px var(--ink), 0 12px 20px -10px rgba(56, 51, 54, .5); }
.wv-shape { box-shadow: 4px 4px 0 -1px var(--lav); }

/* Cards: white on cream, hairline edge */
.cfg-stage, .cfg-group, .trust-i, .plan-calc { box-shadow: 0 0 0 1.5px var(--line); }
.cfg-sum { background: var(--ink); color: var(--bg-2); border-radius: 22px; }
.cfg-sum .btn { --sh: var(--lav); background: var(--bg-2); color: var(--ink); border-color: var(--bg-2); }
.cfg-sum .btn:hover { background: #fff; color: var(--ink); box-shadow: 0 6px 0 var(--sh); }
.cfg-price b { color: var(--bg-2); }
.cfg-note { background: var(--ink); color: var(--bg-2); }
.cmp-bubble { background: var(--bg-2); border: 2px solid var(--ink); color: var(--ink); font-weight: 600; }
.cmp-bubble.is-said { background: var(--lav); color: var(--ink); }
.qa summary { font-family: var(--display); font-weight: 600; letter-spacing: 0; }
.qa summary i { background: var(--bg); box-shadow: inset 0 0 0 2px var(--ink); }
.qa[open] summary i { background: var(--lav); }
.qa[open] summary i::before, .qa[open] summary i::after { background: var(--ink); }
.ticks li::before { background: var(--mist); }
.ticks li::after { background: var(--ink); }
.trust-i > .ic { color: var(--ink); }
.note { background: var(--bg-2); box-shadow: inset 0 0 0 1.5px var(--line); }
.note > .ic { color: var(--accent); }
.ok-ring { background: var(--t-mint); color: var(--ok); }
.ok-ring-lg { background: var(--ink); color: var(--bg-2); box-shadow: 0 0 0 10px var(--lav); }
.bar { height: 6px; background: var(--bg-3); }
.bar::after { background: var(--lav); }

/* Pricing: the featured plan is the brand field */
.plan-featured { background: var(--lav); color: var(--ink); box-shadow: inset 0 0 0 2.5px var(--ink); }
.plan-featured::before { display: none; }
.plan-featured header p, .plan-featured .plan-price span, .plan-featured .plan-note, .plan-featured .ticks li { color: #463F49; }
.plan-featured .ticks li::before { background: var(--bg-2); }
.plan-featured .ticks li::after { background: var(--ink); }
.plan-featured .badge-light { background: var(--bg-2); color: var(--ink); box-shadow: 0 0 0 2px var(--ink); }
.plan-featured .btn-light { --sh: var(--bg-2); background: var(--ink); color: var(--bg-2); }

/* Story: ink rail, Lavender for the current step */
.story-steps::before { background: linear-gradient(var(--ink), var(--ink)) 0 0 / 100% calc(var(--sp) * 100%) no-repeat, var(--line-2); width: 3px; }
.story-steps li::before { background: var(--bg); box-shadow: inset 0 0 0 2.5px var(--line-2); }
.story-steps li.is-past::before { background: var(--ink); box-shadow: inset 0 0 0 2.5px var(--ink); }
.story-steps li.is-on::before { background: var(--lav); box-shadow: inset 0 0 0 2.5px var(--ink), 0 0 0 5px var(--mist); }
.story-n { color: var(--accent); }
.story-track-list { box-shadow: 0 0 0 2px var(--ink), 0 4px 0 var(--ink); background: var(--bg); }
.story-track-list li.is-on i { background: var(--lav); box-shadow: 0 0 0 1.5px var(--ink); }
.story-progress span { background: var(--lav); }

/* Navigation: the bilingual lockup, paper bar when scrolled */
.nv-logo img { height: 46px; }
.nv.is-solid[data-tone="light"] { background: rgba(255, 252, 245, .92); box-shadow: 0 1.5px 0 var(--line); }
.lang-btn { border: 2px solid currentColor; height: 36px; }
.av { background: var(--lav); color: var(--ink); font: 700 13px/1 var(--display); }
.nv-bag { border: 2px solid currentColor; }
.nv-bag em { background: var(--coral); color: var(--ink); font-family: var(--display); }
.nv-acct { border: 2px solid color-mix(in srgb, currentColor 22%, transparent); }
.acct, dialog.bag, dialog.rm, dialog.adm, dialog.legal { border-radius: var(--r-lg); box-shadow: 0 0 0 2px var(--ink), 0 6px 0 var(--ink), 0 40px 80px -30px rgba(44, 40, 42, .4); }
.acct-foot, .bag-foot { background: var(--bg-2); }
.sheet-nav a { font-family: var(--display); font-weight: 600; letter-spacing: -.01em; }
.sheet-foot { background: linear-gradient(rgba(255, 252, 245, 0), var(--bg) 32%); }
.list-more { background: var(--t-lav); color: var(--ink); font-weight: 600; }
.list-more:hover { background: var(--mist); }
.pc-bag:hover, .pc-bag:focus-visible { background: var(--t-lav); color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.pc-bag.is-on { background: var(--lav); color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.pc-bag.is-on:hover { background: var(--mist); color: var(--ink); }
.pc-inbag { color: var(--accent); }
.bag-add { --sh: var(--lav); }
.bag-add:hover { background: var(--ink); }
.pc-book.is-mono { background: linear-gradient(150deg, var(--lav), #9D90E6); color: var(--ink); font-family: var(--display); }
.st-out { background: var(--lav); color: var(--ink); }
.st-pack, .st-ready { background: var(--t-lav); color: var(--accent-ink); }

/* Empty states: Zizo takes the stage (one per layout) */
.empty .zz-host { width: 104px; margin-bottom: 2px; }
.empty h4 { font: 600 17px/1.3 var(--display); }
.bag-empty { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 4px 10px 18px; }
.bag-empty .zz-host { width: 96px; }
.bag-empty b { font: 600 17px/1.3 var(--display); color: var(--ink); }

/* Toasts: feedback cards with an ink edge and a sticker shadow */
.toast { background: var(--bg-2); color: var(--ink); border: 2px solid var(--ink); border-radius: 18px; box-shadow: 0 4px 0 var(--ink); font-weight: 500; }
.toast .ic { color: var(--accent); }
.toast.is-ok .ic { color: var(--ok); } .toast.is-err .ic { color: var(--err); }

/* Footer: Memory Ink, reverse lockup, cream type */
.foot { background: var(--ink); color: var(--bg-2); }
.foot-brand img { height: 56px; }
.foot-col a:hover { color: var(--bg-2); }
.foot-word { font-family: var(--display); -webkit-text-stroke: 1.5px rgba(185, 174, 240, .22); }
.foot-brand .foot-tag { margin-top: 18px; font: 700 28px/1.2 var(--hand); color: var(--lav); }

/* Wizard + sign-in art on the Lavender field */
.wiz-preview-top img, .auth-logo { height: 40px; }
.wz-done .zz-host, .wz-gate .zz-host { width: 120px; }

/* Mobile CTA bar */
.mcta { background: rgba(255, 252, 245, .92); box-shadow: 0 -1.5px 0 var(--line); }

/* Legal note, admin rows, danger */
.legal-intro { background: var(--t-lav); color: var(--ink); }
.btn-danger { --sh: var(--ink); background: var(--err); color: #fff; border-color: var(--ink); }
.btn-danger:hover { background: #A9302E; }

/* Small brand placements */
img.closing-ar { display: block; height: 52px; width: auto; margin: 0 auto; }
.closing-title { max-width: 16ch; font-size: clamp(40px, 5.2vw, 78px); }
.hero-title.display { font-size: clamp(46px, 5.6vw, 92px); }
html[lang="ar"] .hero-title.display { font-size: clamp(44px, 5.8vw, 92px); }
.wz-done .zk-dots { margin-top: 14px; }
.zz-host { display: block; line-height: 0; }
@media (max-width: 959px) { .hero-stage::before, html[dir="rtl"] .hero-stage::before { inset: 0 0 48px; border-radius: 28px; } }

/* ===========================================================================
   23. Memory Book (loyalty.js) + family deal
   Slot styles live in brand.css (.mb-slots / .mb-slot), shared with checkout.
   =========================================================================== */
/* Account menu row: the card at a glance, opens "How it works" */
.mb-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; width: calc(100% - 32px); margin: 0 16px 14px; padding: 12px 12px 18px 14px; border-radius: 16px; background: var(--t-lav); text-align: start; transition: background .2s; }
.sheet-acct .mb-row { width: 100%; margin: 0; background: #fff; }
.mb-row:hover { background: var(--mist); }
.mb-row.is-ready { background: var(--t-butter); box-shadow: inset 0 0 0 2px var(--ink); }
.mb-row .mb-slots { gap: 5px; }
.mb-row .mb-slot { width: 24px; height: 29px; padding: 3px 3px 8px; border-width: 1.5px; }
.mb-row .mb-slot.is-on { padding: 3px 3px 9px; box-shadow: 0 0 0 1.5px var(--ink), 0 2px 0 1.5px var(--ink); }
.mb-row .mb-slot em { min-width: 16px; height: 13px; padding: 0 3px; bottom: -8px; font-size: 7.5px; }
.mb-row .mb-slot em svg { width: 9px; height: 9px; }
.mb-row-txt { display: grid; gap: 2px; min-width: 0; font-size: 12.5px; line-height: 1.35; color: var(--ink-2); }
.mb-row-txt b { font: 600 14px/1.2 var(--display); color: var(--ink); }
.mb-row-txt b small { white-space: nowrap; margin-inline-start: 4px; font: 500 12px/1 var(--font); color: var(--ink-3); }
.mb-row-sub { color: var(--accent-ink); }
.mb-row > .ic { color: var(--ink-3); }
@media (max-width: 400px) { .mb-row { grid-template-columns: minmax(0, 1fr) auto; } .mb-row .mb-slots { grid-column: 1 / -1; } }

/* Pricing: Memory Book card + family deal */
.mb-band { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; margin-top: 16px; }
.mb-band-card, .mb-band-deal { border-radius: var(--r-xl); padding: clamp(22px, 2.6vw, 32px); }
.mb-band-card { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: clamp(20px, 3vw, 40px); background: var(--t-lav); }
.mb-band-card h3, .mb-band-deal h3 { margin-top: 8px; font: 600 26px/1.15 var(--display); }
.mb-band-card p:not(.eyebrow), .mb-band-deal > p { margin-top: 8px; font-size: 15px; color: var(--ink-2); max-width: 46ch; }
.mb-band-card .link-btn { margin-top: 12px; }
.mb-band-slots { padding: 6px 4px 14px; }
.mb-band-deal { background: var(--t-butter); }
.mb-band-deal dl { display: grid; gap: 8px; margin-top: 16px; }
.mb-band-deal dl > div { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1.5px var(--line); }
.mb-band-deal dt { font-weight: 500; }
.mb-band-deal dd { font: 700 19px/1 var(--display); }
@media (max-width: 959px) { .mb-band { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .mb-band-card { grid-template-columns: 1fr; } }

/* "How it works" dialog */
dialog.mbd { width: min(480px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; background: #fff; border-radius: var(--r-lg); box-shadow: 0 0 0 2px var(--ink), 0 6px 0 var(--ink), 0 40px 80px -30px rgba(44, 40, 42, .4); }
.mbd-x { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 1; }
.mbd-top { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 26px 26px 22px; background: var(--t-lav); }
.mbd-zizo { width: 92px; margin-bottom: 2px; }
.mbd-title { font: 600 26px/1.15 var(--display); }
.mbd-sub { font-size: 14.5px; color: var(--ink-2); }
.mbd-slots { margin-top: 14px; padding-bottom: 10px; }
.mbd-status { margin-top: 6px; font: 600 13.5px/1.4 var(--font); color: var(--ink); }
.mbd-steps { list-style: none; counter-reset: mb; display: grid; gap: 12px; padding: 22px 26px 6px; }
.mbd-steps li { position: relative; padding-inline-start: 40px; font-size: 15px; line-height: 1.5; color: var(--ink); counter-increment: mb; }
.mbd-steps li::before { content: counter(mb); position: absolute; inset-inline-start: 0; top: -2px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--lav); box-shadow: inset 0 0 0 2px var(--ink); font: 700 13px/1 var(--display); }
.mbd-deal { display: grid; gap: 4px; margin: 14px 26px 0; padding: 14px 16px; border-radius: 14px; background: var(--t-butter); font-size: 14px; color: var(--ink-2); }
.mbd-deal b { font: 600 15.5px/1.3 var(--display); color: var(--ink); }
.mbd-fine { padding: 14px 26px 0; font-size: 12.5px; line-height: 1.55; color: var(--ink-3); }
.mbd-foot { display: flex; justify-content: center; padding: 18px 26px 24px; }

/* Basket lines: the discount, the free delivery, the nudge to the next tier */
.bag-lines .bag-off dt, .bag-lines .bag-off dd { color: var(--ok); }
.bag-lines .bag-off s { color: var(--ink-3); }
.bag-nudge { background: var(--t-butter); color: var(--ink); }
/* Admin: the order's discount, checked */
.adm-grid > div.is-ok dd { color: var(--ok); }
.adm-grid > div.is-warn dd { color: var(--warn); font-weight: 600; }

/* ===========================================================================
   24. Home page, short version (index.html): the same parts as index_long.html, a shorter scroll
   =========================================================================== */
.sp-how { padding-block: clamp(72px, 9vw, 120px) clamp(56px, 7vw, 96px); }
.sp-steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: clamp(32px, 4vw, 52px); }
.sp-steps li { position: relative; display: grid; align-content: start; gap: 8px; padding: 24px 22px 26px; border-radius: var(--r-lg); background: var(--t-lav); }
.sp-steps li:nth-child(2) { background: var(--t-sky); }
.sp-steps li:nth-child(3) { background: var(--t-butter); }
.sp-steps li:nth-child(4) { background: var(--t-mint); }
.sp-ic { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 8px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 2px var(--ink), 0 3px 0 2px var(--ink); transform: rotate(-4deg); }
.sp-steps li:nth-child(even) .sp-ic { transform: rotate(3deg); }
.sp-steps b { position: absolute; top: 18px; inset-inline-end: 20px; font: 700 34px/1 var(--display); color: rgba(56, 51, 54, .14); }
.sp-steps h3 { font: 600 19px/1.2 var(--display); }
.sp-steps p { font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.sp-pricing { padding-block: clamp(56px, 7vw, 96px); }
.plans-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 900px; margin-inline: auto; }
.sp-pricing .mb-band { max-width: 900px; margin-inline: auto; grid-template-columns: 1fr; }
.sp-pricing .mb-band-deal dl { grid-template-columns: 1fr 1fr; }
.sp-covers { padding-block: clamp(64px, 8vw, 110px) clamp(56px, 7vw, 96px); }
.sp-faq { grid-template-columns: minmax(0, 760px); justify-content: center; }
.sp-faq > .sec-head { position: static; text-align: center; justify-items: center; margin-inline: auto; }
@media (max-width: 1079px) { .sp-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 719px) {
  .plans-2 { grid-template-columns: 1fr; }
  .sp-steps { grid-template-columns: 1fr; gap: 10px; }
  .sp-steps li { grid-template-columns: auto minmax(0, 1fr); column-gap: 16px; row-gap: 4px; padding: 18px; }
  .sp-steps li > .sp-ic { grid-row: span 2; margin: 0; }
  .sp-steps b { font-size: 26px; }
  .sp-pricing .mb-band-deal dl { grid-template-columns: 1fr; }
}

/* ===========================================================================
   25. Swipe rows on phones ([data-swipe], dots from site.js initSwipe)
   Long stacks (prices, compare, studio tiles, steps, Memory Book + deal)
   become one sideways row: a card in view, the next one peeking in.
   =========================================================================== */
.swipe-dots { display: none; }
@media (max-width: 719px) {
  [data-swipe][data-swipe] { display: flex; grid-template-columns: none; gap: 12px; max-width: none; margin-inline: calc(var(--gutter) * -1); padding: 6px var(--gutter) 10px;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  [data-swipe][data-swipe]::-webkit-scrollbar { display: none; }
  [data-swipe][data-swipe] > * { flex: 0 0 86%; min-width: 0; scroll-snap-align: start; }
  .sp-steps[data-swipe] > * { flex-basis: 74%; }
  .mb-band[data-swipe] > * { flex-basis: 88%; }
  .bento[data-swipe] .bn { min-height: 340px; }
  .bento[data-swipe] .bn:hover { transform: none; }
  .cmp[data-swipe] .cmp-col { gap: 14px; }
  /* steps: back to stacked card content inside each slide */
  .sp-steps[data-swipe] li { display: grid; grid-template-columns: none; align-content: start; padding: 22px 20px 24px; }
  .sp-steps[data-swipe] li > .sp-ic { grid-row: auto; margin-bottom: 8px; }
  .swipe-dots { display: flex; justify-content: center; gap: 7px; margin-top: 10px; }
  .swipe-dots i { width: 8px; height: 8px; border-radius: 999px; background: var(--line-2); cursor: pointer; transition: width .3s var(--ease-out), background .3s; }
  .swipe-dots i.is-on { width: 22px; background: var(--ink); }
  .pop-sky .swipe-dots i:not(.is-on), .lavender .swipe-dots i:not(.is-on) { background: rgba(56, 51, 54, .25); }
}

/* ===========================================================================
   26. Phone menu when signed in: the account comes first (projects, orders,
   Memory Book); the page links shrink to a row of pills under "Explore";
   one full-width call to action (the header already has the language switch)
   =========================================================================== */
.sheet-nav-h { display: none; }
html[data-auth="in"] .sheet-in { padding-top: calc(var(--nav-h) + 4px); }
html[data-auth="in"] .sheet-acct { order: -1; margin-top: 0; padding: 0; background: none; gap: 14px; }
html[data-auth="in"] .sheet-acct .acct-head { padding: 6px 2px 0; }
html[data-auth="in"] .sheet-acct .acct-name { font-size: 18px; }
html[data-auth="in"] .sheet-acct .mb-row { background: var(--t-lav); }
html[data-auth="in"] .sheet-acct .mb-row.is-ready { background: var(--t-butter); }
html[data-auth="in"] .sheet-acct .seg { background: var(--bg); }
html[data-auth="in"] .sheet-acct .acct-list { padding: 4px; border-radius: 18px; background: #fff; box-shadow: 0 0 0 1.5px var(--line); }
html[data-auth="in"] .sheet-acct .acct-list .empty { padding-block: 18px 16px; }
html[data-auth="in"] .sheet-nav { order: 1; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; padding-top: 18px; border-top: 1.5px solid var(--line); }
html[data-auth="in"] .sheet-nav-h { display: block; flex: 0 0 100%; margin-bottom: 2px; font: 600 13px/1 var(--font); color: var(--ink-3); }
html[data-auth="in"] .sheet-nav a { display: inline-flex; align-items: center; height: 38px; padding: 0 15px; border: 2px solid var(--line-2); border-radius: 999px; background: var(--bg);
  font: 600 14px/1 var(--font); letter-spacing: 0; transition-delay: 0s; }
html[data-auth="in"] .sheet-nav a[hidden] { display: none; }
html[data-auth="in"] .sheet-nav a i { display: none; }
html[data-auth="in"] .sheet-nav a:active { background: var(--lav); border-color: var(--ink); }
html[data-auth="in"] .sheet-foot { order: 2; }
html[data-auth="in"] .sheet-foot .lang-btn { display: none; }

/* Open book: it turns about its spine (centred on the stage), not the closed book's middle,
   so a 360° spin stays inside the frame. The pivot glides across as the cover opens. */
.bk-rot { transition: transform 1.4s var(--ease), transform-origin 1.1s var(--ease); }
.bk.is-open .bk-rot { transform-origin: 0 50%; }
.is-grabbing .bk-rot { transition: none; }

/* ===========================================================================
   27. Zizo around the site (brand.js: data-live moves only while on screen,
   data-peek rises in once, every Zizo hops when touched). One per screen.
   =========================================================================== */
.mb-band-card { position: relative; }
.mb-zizo { position: absolute; bottom: 10px; inset-inline-end: 22px; width: 84px; z-index: 2; }   /* stands in the card's corner */
@media (min-width: 720px) { .mb-band-card { padding-inline-end: 120px; } }
.faq-zizo { display: inline-flex; align-items: flex-end; gap: 6px; margin-top: 6px; color: var(--ink); text-decoration: none; }
.faq-zizo-zz { width: 84px; flex: none; }
.zz-bubble { position: relative; display: grid; gap: 2px; margin-bottom: 34px; padding: 10px 14px; border-radius: 16px 16px 16px 4px; background: #fff; box-shadow: 0 0 0 2px var(--ink), 0 3px 0 2px var(--ink); font-size: 13.5px; line-height: 1.3; transition: transform .25s var(--spring); }
html[dir="rtl"] .zz-bubble { border-radius: 16px 16px 4px 16px; }
.zz-bubble b { font: 600 15px/1.2 var(--display); }
.zz-bubble span { color: var(--accent-ink); font-weight: 600; }
.faq-zizo:hover .zz-bubble { transform: translateY(-2px) rotate(-1deg); }
.sp-faq .faq-zizo { justify-self: center; }
.closing { position: relative; }
.closing-zizo { position: absolute; bottom: 0; inset-inline-end: max(4%, calc((100% - var(--maxw)) / 2)); width: clamp(92px, 9vw, 130px); }
@media (max-width: 719px) {
  .mb-zizo { width: 60px; top: 10px; bottom: auto; inset-inline-end: 10px; }   /* top corner, beside the slots */
  .faq-zizo-zz { width: 70px; }
  .closing-zizo { width: 80px; inset-inline-end: 12px; }
}

/* ===========================================================================
   28. Pricing switch (index.html): compare the books, or build & price
   one with the configurator. Laptops only; phones keep the price cards.
   =========================================================================== */
.pr-switch-wrap { display: flex; justify-content: center; margin-top: clamp(28px, 4vw, 44px); }
.pr-switch { width: min(520px, 100%); }
.pr-switch > button { height: 42px; font-size: 14.5px; }
.pr-switch > button .ic { margin-inline-end: 2px; }
.sp-pricing .plans { margin-top: 22px; }
.pr-build .cfg { margin-top: 22px; }
.pr-pane.is-in { animation: prIn .45s var(--ease-out) both; }
@keyframes prIn { from { opacity: 0; transform: translateY(10px); } }
.pr-custom { margin-top: 10px; align-self: center; }
.plan-featured .pr-custom { color: var(--ink); }
@media (max-width: 1079px) {
  .pr-switch-wrap, .pr-custom, .pr-build { display: none !important; }
  [data-pane="plans"] { display: block !important; }
}

/* Home hero: the headline now opens the column (the "first in Jordan" pill was removed),
   so it needs no top margin, and the entrance delays follow the new child order */
.hero-copy > .hero-title:first-child { margin-top: 0; }
.js .hero-copy > :nth-child(2) { animation-delay: .2s; }
.js .hero-copy > :nth-child(3) { animation-delay: .32s; }
.js .hero-copy > :nth-child(4) { animation-delay: .44s; }
.js .hero-copy > :nth-child(5) { animation-delay: .56s; }

/* Reviews: keep the line breaks of chat messages (\n in reviews.js) */
.rv-text p, .rv-ftext p, .rv-tr { white-space: pre-line; }
/* equal-height carousel cards: the message sits at the top, spare space below it */
.rv-bubble { align-content: start; }

/* Account list: labelled basket buttons. In the basket: "In basket" (opens the basket, where
   removing happens) and no delete. Otherwise: "Add" and delete. */
.pc-pill { position: absolute; z-index: 1; top: 50%; inset-inline-end: 52px; transform: translateY(-50%); display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 13px 0 11px; border-radius: 999px; border: 0;
  background: var(--paper, #FFFCF5); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); font: 600 13px/1 var(--display); white-space: nowrap; cursor: pointer; transition: background .2s, box-shadow .2s; }
.pc-pill:hover, .pc-pill:focus-visible { background: var(--t-lav); box-shadow: inset 0 0 0 2px var(--ink); }
.pc-pill.is-on { inset-inline-end: 8px; background: var(--lav); box-shadow: inset 0 0 0 2px var(--ink); }
.pc-pill.is-on:hover, .pc-pill.is-on:focus-visible { background: var(--mist); }
.pc-wrap.has-del .pc { padding-inline-end: 140px; }
.pc-wrap.has-inbag .pc { padding-inline-end: 128px; }
.pc-wrap.has-inbag .pc-side { display: none; }


/* ===========================================================================
   26. Polish (Nov 2026)
   Calmer section furniture, the "worth keeping" section, and how-it-works as
   one ruled list in place of four coloured cards.
   =========================================================================== */
/* Section labels are plain text: no bullet before them */
.eyebrow.eyebrow::before { display: none; }
.eyebrow { color: var(--ink-3); }
/* Lavender sections are a flat field: no scattered dots */
.lavender, .pop-sky, .pop-sun { --dots: none; }

/* --- Worth keeping: the reason for an album, and memory prompts that start one --- */
.keep { padding-block: clamp(64px, 8vw, 112px); }
.keep-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.keep-copy { display: grid; gap: 22px; }
.keep-copy .lead { max-width: 54ch; }
.keep-q { margin-bottom: 20px; font: 600 15px/1.3 var(--font); color: var(--ink-2); }
.keep-notes ul { list-style: none; display: flex; flex-wrap: wrap; gap: 16px 14px; }
.keep-notes button { padding: 13px 20px 15px; border: 0; border-radius: 4px; background: var(--bg); color: var(--ink); font: 700 26px/1 var(--hand); cursor: pointer;
  box-shadow: 0 0 0 1px rgba(56, 51, 54, .07), 0 12px 18px -14px rgba(56, 51, 54, .45); transform: rotate(var(--r, -1.5deg)); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.keep-notes li:nth-child(2n) button { --r: 1.2deg; }
.keep-notes li:nth-child(3n) button { --r: -.6deg; background: var(--t-butter); }
.keep-notes li:nth-child(4) button { background: var(--t-lav); }
.keep-notes button:hover, .keep-notes button:focus-visible { transform: rotate(0deg) translateY(-2px); box-shadow: 0 0 0 2px var(--ink), 0 4px 0 2px var(--ink); outline: none; }
.keep-notes button:active { transform: rotate(0deg) translateY(2px); box-shadow: 0 0 0 2px var(--ink); }
html[lang="ar"] .keep-notes button { font-size: 21px; padding-block: 12px 14px; }
@media (max-width: 899px) {
  .keep-grid { grid-template-columns: 1fr; gap: 36px; }
  .keep-notes button { font-size: 23px; padding: 11px 16px 13px; }
  html[lang="ar"] .keep-notes button { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) { .keep-notes button { transition: none; } }

/* --- How it works: four numbered columns under one rule --- */
.sp-how .sp-steps { gap: 0; border-top: 2px solid var(--ink); }
.sp-how .sp-steps li:nth-child(n) { gap: 10px; padding: 26px 0 6px; padding-inline-end: 28px; border-radius: 0; background: none; }
.sp-how .sp-steps li:nth-child(n + 2) { padding-inline-start: 28px; border-inline-start: 1px solid var(--line-2); }
.sp-how .sp-ic { display: none; }
.sp-how .sp-steps b { position: static; font: 700 44px/1 var(--display); color: var(--accent); }
.sp-how .sp-steps h3 { font-size: 20px; }
.sp-how .sp-steps p { font-size: 15px; line-height: 1.55; }
@media (max-width: 1079px) {
  .sp-how .sp-steps li:nth-child(2n + 1) { padding-inline-start: 0; border-inline-start: 0; }
  .sp-how .sp-steps li:nth-child(n + 3) { margin-top: 20px; border-top: 1px solid var(--line-2); }
}
@media (max-width: 719px) {
  .sp-how .sp-steps { gap: 0; }
  .sp-how .sp-steps li:nth-child(n) { grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; row-gap: 4px; margin-top: 0; padding: 18px 0; border-inline-start: 0; }
  .sp-how .sp-steps li + li { border-top: 1px solid var(--line-2); }
  .sp-how .sp-steps b { grid-row: span 2; font-size: 34px; }
  .sp-how .sp-steps h3 { font-size: 18px; align-self: end; }
}


/* ===========================================================================
   27. Touch and small print (Nov 2026)
   Links and buttons a thumb can hit (44 px), and no label under 12 px.
   =========================================================================== */
.rv-tr-label { font-size: 12px; letter-spacing: .06em; }
.foot-col > p { font-size: 12px; }
@media (hover: none), (max-width: 1023px) {
  .foot-col { gap: 2px; }
  .foot-col > p { margin-bottom: 8px; }
  .foot-col a { min-height: 44px; }
  .cv-actions .btn { height: 44px; padding: 0 16px; font-size: 14px; }
}

/* Reviews: each message keeps its own height, like a chat bubble, instead of every card
   stretching to the longest one and leaving empty boxes */
.rv-wall.is-carousel, .rv-wall { align-items: flex-start; }
.rv-wall.is-carousel .rv-bubble, .rv-card .rv-bubble { flex: none; }

/* Tablets show the header's "Start your album": the floating bar is for phones only */
@media (min-width: 720px) { .mcta { display: none; } }

/* ===========================================================================
   28. HERO STAGE (Nov 2026)
   The lavender panel is a small photo studio: a soft light behind the book
   that takes each cover's colour, ‹ name › to browse the covers by hand, and a
   one-time entrance (panel settles, prints land, price is stamped on).
   Phones and tablets: the book comes straight after the pitch, the facts
   follow it, and the prints sit inside the panel.
   =========================================================================== */
.hero-stage::before { background: var(--lav); }
.js .hero-stage::before { animation: hsPanel 1s var(--ease-out) .1s both; }
@keyframes hsPanel { from { opacity: 0; transform: scale(.94); } }
.hs-light { position: absolute; z-index: -1; left: 50%; top: calc(50% - 26px); width: min(84%, 520px); aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; pointer-events: none;
  background-color: #fff; background-color: color-mix(in srgb, var(--tone, #fff) 68%, #fff);
  -webkit-mask: radial-gradient(closest-side, #000 15%, transparent); mask: radial-gradient(closest-side, #000 15%, transparent);
  opacity: .8; transition: background-color 1.1s var(--ease); }
.js .hs-light { animation: fadeIn 1.6s var(--ease-out) .7s both; }
/* The price is stamped on, after the prints land (scale, so the pointer parallax keeps its transform) */
.js .hero-badge { animation: hsStamp .55s var(--zk-spring, var(--spring)) 1.15s both; }
@keyframes hsStamp { from { opacity: 0; scale: 1.45; } }

/* ‹ Sanad Baba ›  ·  Drag to turn · tap to open */
.hero-cap { align-items: center; gap: 12px; }
.hero-cap-name::after { content: none; }
.hs-pick { display: inline-flex; align-items: center; gap: 2px; padding: 2px; border-radius: 999px; background: var(--bg-2); box-shadow: 0 0 0 1px var(--line), var(--sh-1); }
.hs-pick .hero-cap-name { min-width: 7.5em; padding-inline: 4px; text-align: center; white-space: nowrap; }
.hs-arr { position: relative; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); transition: background .2s, transform .2s; }
.hs-arr::before { content: ""; position: absolute; inset: -4px; }   /* a 44 px target around a 36 px circle */
.hs-arr:hover { background: var(--t-lav); }
.hs-arr:active { transform: scale(.92); }
.hs-arr:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.hs-arr[data-hs="-1"] .ic, html[dir="rtl"] .hs-arr[data-hs="1"] .ic { transform: scaleX(-1); }
html[dir="rtl"] .hs-arr[data-hs="-1"] .ic { transform: none; }

@media (max-width: 959px) {
  /* Pitch → buttons → reviews → the book → the facts: the book shows on the first screen */
  .hero-grid { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .hero-copy { display: contents; }
  .hero-stage { order: 1; width: 100%; margin-top: 30px; height: clamp(400px, 62vw, 500px); min-height: 0; }
  .hero-facts { order: 2; margin-top: 20px !important; max-width: none; }
  /* Prints sit inside the panel */
  .print-a { left: 4%; }
  .print-b { right: 4%; }
}
@media (max-width: 719px) {
  .hero-stage { height: clamp(390px, 108vw, 450px); margin-top: 26px; }
  .hs-light { width: 96%; }
  .print { padding: 4px 4px 18px; }
  .print::after { font-size: 11px; bottom: 4px; }
  .print-a { top: 7%; }
  .print-b { bottom: 23%; }
  .hero-cap { flex-direction: column; gap: 6px; }
  /* Reviews pill: only the face of the customer being quoted, so their words fit on one line */
  .hero-proof { display: flex; }
  .hp-faces.has-q i:not(.is-on) { display: none; }
  .hp-faces.has-q i.is-on { transform: none; box-shadow: none; animation: hpFace .45s var(--ease-out) both; }
  @keyframes hpFace { from { opacity: 0; scale: .7; } }
  .hero-stage::before, html[dir="rtl"] .hero-stage::before { inset: 0 0 74px; }
  .hero-stage .book-host { inset: 0 0 66px; }
}
/* Arabic: the prints swap sides so the price stamp never covers one; the cover names and
   print captions are written in Latin letters, so they keep the Latin handwriting */
html[dir="rtl"] .print-a { left: auto; right: 0; --r: 4deg; }
html[dir="rtl"] .print-b { right: auto; left: 0; --r: -4deg; }
html[lang="ar"] .hero-cap-name, html[lang="ar"] .print::after { font-family: "Caveat", cursive; }
@media (max-width: 959px) {
  .hero-proof { align-self: flex-start; }
  html[dir="rtl"] .print-a { right: 4%; }
  html[dir="rtl"] .print-b { left: 4%; }
}
@media (max-width: 719px) { .hero-proof { align-self: stretch; } }

/* New album wizard: A4, A5 and square side by side (phones keep one card per row) */
@media (min-width: 720px) {
  .wz-cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wz-cards-3 .wz-card { padding: 12px; }
  .wz-cards-3 .wz-card small { font-size: 12.5px; }
}
.wz-cards-3 + .wz-label + .note { margin-top: 0; }

/* ===========================================================================
   29. ORDERS (Nov 2026)
   The Orders tab is one card per purchase (read from orders), opening the order
   view: where it is, the albums in it, what was paid and where it goes. The admin
   gets the same view with the status controls under it.
   =========================================================================== */
button.pc { border: 0; background: none; font: inherit; color: inherit; cursor: pointer; }
.pc-order .pc-thumb { position: relative; }
.pc-count { position: absolute; top: -4px; inset-inline-end: -2px; z-index: 3; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
  display: grid; place-items: center; background: var(--ink); color: #fff; font: 600 11.5px/1 var(--font); font-style: normal; box-shadow: 0 0 0 2px #fff; }

/* Order view */
#adm:not(.is-admin) .adm-ctl, #adm:not(.is-admin) .for-admin, #adm.is-admin .for-customer { display: none; }
.ord-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 22px 26px 0; padding: 0; list-style: none; }
.ord-steps li { position: relative; display: grid; justify-items: center; gap: 8px; text-align: center; font-size: 12px; line-height: 1.25; color: var(--ink-3); }
.ord-steps li::before { content: ""; position: absolute; top: 6px; inset-inline-end: 50%; width: 100%; height: 2px; background: var(--line-2); }
.ord-steps li:first-child::before { display: none; }
.ord-steps li.is-done::before, .ord-steps li.is-now::before { background: var(--accent); }
.ord-steps i { position: relative; z-index: 1; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px var(--line-2); }
.ord-steps li.is-done i { background: var(--accent); box-shadow: none; }
.ord-steps li.is-now i { background: #fff; box-shadow: inset 0 0 0 4px var(--accent), 0 0 0 4px var(--accent-soft); }
.ord-steps li.is-now { color: var(--ink); font-weight: 600; }
.ord-h { margin: 24px 26px 8px; font: 600 13px/1 var(--font); color: var(--ink-3); }
.ord-items { display: grid; gap: 2px; margin: 0 16px; }
.ord-row { color: inherit; text-decoration: none; transition: background .2s; }
a.ord-row:hover, a.ord-row:focus-visible { background: var(--bg-2); }
.ord-row > .ic { color: var(--ink-3); justify-self: center; }
html[dir="rtl"] .ord-row > .ic { transform: scaleX(-1); }
.ord-lines { margin: 10px 26px 0; padding-top: 12px; border-top: 1px solid var(--line); }
.ord-lines .ord-total { margin-top: 6px; padding-top: 10px; border-top: 1px dashed var(--line-2); }
.ord-lines .ord-total dt, .ord-lines .ord-total dd { font-weight: 650; font-size: 15.5px; color: var(--ink); }
.ord-lines .ord-pay dt, .ord-lines .ord-pay dd { font-size: 13px; color: var(--ink-3); }
.ord-lines .ord-pay dd { font-family: var(--font); white-space: normal; text-align: end; }
#adm .adm-grid { margin-top: 0; }
#adm:not(.is-admin) .adm-foot { border-top: 0; padding-top: 22px; }
@media (max-width: 559px) {
  .ord-steps { margin-inline: 18px; }
  .ord-steps li { font-size: 11.5px; }
  .ord-h, .ord-lines { margin-inline: 18px; }
  .ord-items { margin-inline: 8px; }
  #adm .adm-grid { margin-inline: 18px; }
}
/* Each album in an order opens read-only: a visible "View" on its row */
.ord-row { grid-template-columns: 52px minmax(0, 1fr) auto auto; }
.ord-view { display: inline-flex; align-items: center; gap: 2px; height: 30px; padding: 0 8px 0 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); font: 600 12.5px/1 var(--font); color: var(--ink); white-space: nowrap; transition: background .2s, color .2s; }
html[dir="rtl"] .ord-view { padding: 0 12px 0 8px; }
html[dir="rtl"] .ord-view .ic { transform: scaleX(-1); }
a.ord-row:hover .ord-view, a.ord-row:focus-visible .ord-view { background: var(--ink); color: #fff; box-shadow: none; }
@media (max-width: 559px) { .ord-row .bag-price { display: none; } }

/* Gift credit in the account menu (gift cards; opens gift.html) */
.gc-row { background: var(--t-butter); color: inherit; text-decoration: none; padding: 12px; }
.gc-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #fff; color: var(--ink); box-shadow: 0 0 0 1.5px var(--ink); }
.gc-row:hover, .gc-row:focus-visible { background: #F8DF8A; }
.ord-lines .bag-gift dt, .ord-lines .bag-gift dd { color: var(--accent-ink); }
.ord-lines .ord-due dt, .ord-lines .ord-due dd { font-weight: 600; color: var(--ink); }

/* ---------------------------------------------------------------------------
   32. The passport collection (destination covers, destinations.js)
   A postcard per country: its cover in front, city covers fanned behind, a passport
   stamp; the open country's "visa page" lists every cover. No looping animation.
   --------------------------------------------------------------------------- */
.passport { position: relative; padding-block: clamp(72px, 9vw, 120px); background: var(--bg-2); overflow: hidden; }
.passport::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background-image: radial-gradient(var(--line-2) 1.2px, transparent 1.5px); background-size: 22px 22px;
  -webkit-mask: linear-gradient(transparent, #000 18%, #000 82%, transparent); mask: linear-gradient(transparent, #000 18%, #000 82%, transparent); }
.passport .wrap { position: relative; }
.ps-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin: 30px 0 24px; }
.ps-search { display: flex; align-items: center; gap: 10px; flex: 1 1 300px; max-width: 460px; height: 52px; padding: 0 18px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; box-shadow: 0 4px 0 var(--lav); transition: box-shadow .2s; }
.ps-search:focus-within { box-shadow: 0 4px 0 var(--accent); }
.ps-search .ic { flex: none; width: 20px; height: 20px; color: var(--ink-3); }
.ps-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 500 15px/1.2 var(--font); color: var(--ink); }
.ps-search input::placeholder { color: var(--ink-3); }
.ps-count { margin: 0; font: 600 13px/1 var(--font); color: var(--ink-3); }

.ps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 22px; }
.ps-grid.is-results { display: block; }
.ps-card { position: relative; min-width: 0; }
.ps-pick { box-sizing: border-box; display: block; width: 100%; height: 100%; margin: 0; padding: 24px 16px 18px; border: 1.5px dashed var(--line-2); border-radius: 22px; background: #fff; color: inherit; font: inherit; text-align: center; cursor: pointer;
  transition: transform .3s var(--ease-out), box-shadow .3s, border-color .3s; }
.ps-pick:hover, .ps-card.is-open .ps-pick { transform: translateY(-4px); border: 1.5px solid var(--ink); box-shadow: 0 6px 0 var(--lav); }
.ps-pick:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.ps-fan { position: relative; display: block; height: 228px; }
.ps-fan img { position: absolute; left: 50%; bottom: 0; width: 138px; height: auto; aspect-ratio: 1414 / 2000; border-radius: 3px 8px 8px 3px; box-shadow: 0 10px 22px rgba(56, 51, 54, .2); transform-origin: 50% 100%; transition: transform .35s var(--ease-out); }
.ps-front { z-index: 3; transform: translateX(-50%); }
.ps-fan-0 { z-index: 2; transform: translateX(-50%) translateX(-24px) rotate(-9deg); }
.ps-fan-1 { z-index: 1; transform: translateX(-50%) translateX(24px) rotate(8deg); }
.ps-fan-2 { z-index: 0; transform: translateX(-50%) translateY(-12px) rotate(-2deg); }
.ps-pick:hover .ps-front { transform: translateX(-50%) translateY(-6px); }
.ps-pick:hover .ps-fan-0 { transform: translateX(-50%) translateX(-46px) rotate(-15deg); }
.ps-pick:hover .ps-fan-1 { transform: translateX(-50%) translateX(46px) rotate(14deg); }
.ps-pick:hover .ps-fan-2 { transform: translateX(-50%) translateY(-26px) rotate(-1deg); }

/* The passport stamp: double ring, country code, number of cities */
.ps-stamp { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 5; display: grid; place-content: center; width: 72px; height: 72px; border: 2px dashed var(--accent); border-radius: 50%; background: rgba(255, 255, 255, .9); color: var(--accent); text-align: center; transform: rotate(-12deg); }
.ps-stamp::before { content: ""; position: absolute; inset: 4px; border: 1.5px solid var(--accent); border-radius: 50%; opacity: .55; }
.ps-stamp b { font: 700 18px/1 var(--display); letter-spacing: .06em; }
.ps-stamp small { margin-top: 3px; font: 600 9px/1.15 var(--font); letter-spacing: .06em; text-transform: uppercase; }
html[lang="ar"] .ps-stamp small { text-transform: none; letter-spacing: 0; font-size: 10px; }
.ps-new { position: absolute; top: 16px; inset-inline-start: 16px; z-index: 5; padding: 5px 10px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--butter); color: var(--ink); font: 700 11px/1 var(--font); letter-spacing: .04em; text-transform: uppercase; transform: rotate(-4deg); }
html[lang="ar"] .ps-new { text-transform: none; letter-spacing: 0; font-size: 12px; }
.ps-meta { display: block; margin-top: 16px; }
.ps-name { display: block; font: 700 24px/1.1 var(--display); color: var(--ink); }
.ps-cities { display: block; margin-top: 5px; font: 500 13px/1.45 var(--font); color: var(--ink-3); }

/* "Next stop?" */
.ps-next-in { box-sizing: border-box; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; height: 100%; min-height: 340px; padding: 28px 20px; border: 2px dashed var(--ink-3); border-radius: 22px; text-align: center; }
.ps-next-stamp { display: grid; place-items: center; width: 56px; height: 56px; border: 2px dashed var(--ink-3); border-radius: 50%; color: var(--ink-3); transform: rotate(-12deg); }
.ps-next h3 { margin: 0; font: 700 22px/1.1 var(--display); }
.ps-next p { max-width: 24ch; margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); }

/* The open country (visa page) and search results */
.ps-visa { margin-top: 26px; padding: 24px; border: 2px solid var(--ink); border-radius: 26px; background: #fff; box-shadow: 0 6px 0 var(--lav); }
.ps-visa-head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.ps-visa-head h3 { flex: 1; min-width: 0; margin: 0; font: 700 clamp(26px, 3vw, 36px)/1 var(--display); }
.ps-stamp.is-flat { position: relative; top: auto; inset-inline-end: auto; flex: none; transform: rotate(-8deg); }
.ps-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 20px 18px; margin: 0; padding: 0; list-style: none; }
.ps-tile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 9px; min-width: 0; text-align: center; }
.ps-tile img { width: 100%; max-width: 160px; height: auto; aspect-ratio: 1414 / 2000; border-radius: 3px 8px 8px 3px; box-shadow: 0 8px 18px rgba(56, 51, 54, .16); }
.ps-tile-name { font: 700 17px/1.15 var(--display); }
.ps-tile-tag { margin-top: -4px; padding: 3px 9px; border-radius: 999px; background: var(--ink); color: var(--bg-2); font: 600 11px/1 var(--font); white-space: nowrap; }
.ps-tile .btn { width: 100%; max-width: 160px; margin-top: auto; }
.ps-empty { display: grid; justify-items: start; gap: 16px; }
.ps-empty > p { margin: 0; font: 700 22px/1.2 var(--display); }
.ps-empty .ps-next { width: 100%; max-width: 320px; }

@media (max-width: 560px) {
  .ps-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .ps-pick { padding: 18px 8px 14px; }
  .ps-fan { height: 168px; }
  .ps-fan img { width: 98px; }
  .ps-fan-0 { transform: translateX(-50%) translateX(-16px) rotate(-9deg); }
  .ps-fan-1 { transform: translateX(-50%) translateX(16px) rotate(8deg); }
  .ps-stamp { top: 8px; inset-inline-end: 8px; width: 56px; height: 56px; }
  .ps-stamp b { font-size: 14px; }
  .ps-stamp small { font-size: 7.5px; }
  .ps-new { top: 10px; inset-inline-start: 10px; }
  .ps-name { font-size: 19px; }
  .ps-cities { font-size: 12px; }
  .ps-next-in { min-height: 250px; padding: 20px 12px; }
  .ps-visa { padding: 18px 14px; }
  .ps-tiles { grid-template-columns: 1fr 1fr; gap: 18px 12px; }
}
@media (prefers-reduced-motion: reduce) { .ps-pick, .ps-fan img { transition: none; } }

/* 33. Launch switches (launches.js): features not launched yet ----------------------------- */
.no-readyMade [data-launch="readyMade"], .no-giftCards [data-launch="giftCards"] { display: none !important; }
/* A5 / square before their launch: shown, greyed, not selectable */
.opt.is-soon, .wz-card.is-soon { opacity: .55; cursor: not-allowed; background: var(--bg-2, #FBF5E5); }
.opt.is-soon:hover, .wz-card.is-soon:hover { border-color: var(--line-2); }
.soon-tag { position: absolute; top: 8px; inset-inline-end: 8px; padding: 2px 7px; border-radius: 99px; background: var(--mist); color: var(--ink);
  font: 600 10.5px/1.4 var(--font); letter-spacing: .02em; font-style: normal; }
