:root {
  --ink: #1d2340;
  --ink-2: #3a4063;
  --muted: #6b6f80;
  --sand: #fbf6ee;
  --paper: #fffdf9;
  --line: #ece3d3;
  --coral: #e8604c;
  --coral-d: #cf4b38;
  --gold: #e9b44c;
  --teal: #2a9d8f;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(29, 35, 64, 0.08);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Nunito Sans", system-ui, -apple-system, Segoe UI, sans-serif;
  --font-ar: "Readex Pro", "Noto Naskh Arabic", Tahoma, sans-serif;
  --font-ar-story: "Noto Naskh Arabic", "Readex Pro", serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
html[lang="ar"] body, [lang="ar"] { font-family: var(--font-ar); }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.01em; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { font-family: var(--font-ar); font-weight: 700; letter-spacing: 0; line-height: 1.35; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--ink-2); }
.kicker { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; font-weight: 700; color: var(--coral); margin-bottom: 0.8em; }
html[lang="ar"] .kicker { letter-spacing: 0; text-transform: none; font-size: 0.95rem; }
.note { color: var(--muted); font-size: 0.95rem; }
.fine { color: var(--muted); font-size: 0.85rem; }
.error { color: var(--coral-d); font-weight: 600; }
.pill { display: inline-block; background: #f3ead9; color: var(--ink-2); border-radius: 999px; padding: 2px 12px; font-size: 0.85rem; font-weight: 600; }

/* header & footer */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px clamp(16px, 4vw, 48px); max-width: 1200px; margin: 0 auto; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark { width: 38px; height: 38px; flex: none; }
.brand-words { display: flex; flex-direction: column; line-height: 1.05; }
.brand-en { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; }
.brand-ar { font-family: var(--font-ar); font-size: 0.9rem; color: var(--coral); font-weight: 500; }
.nav { display: flex; align-items: center; gap: clamp(10px, 2.4vw, 28px); font-weight: 600; font-size: 0.98rem; }
.nav a { text-decoration: none; color: var(--ink-2); }
.nav a:hover { color: var(--coral); }
.lang-switch { border: 1.5px solid var(--line); border-radius: 999px; padding: 4px 14px; background: var(--paper); }
.site-footer { margin-top: 80px; border-top: 1px solid var(--line); background: var(--paper); }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 40px clamp(16px, 4vw, 48px); }
.footer-inner p { margin: 12px 0 0; color: var(--ink-2); }
.footer-links a { color: var(--ink-2); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; padding: 13px 26px; font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: inherit; transition: transform .15s ease, background .15s ease; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--coral); color: #fff; box-shadow: 0 8px 20px rgba(232, 96, 76, .28); }
.btn-primary:hover { background: var(--coral-d); }
.btn-ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-lg { padding: 16px 34px; font-size: 1.08rem; width: 100%; }
.btn[disabled] { opacity: .6; cursor: wait; }

/* sections */
main { max-width: 1200px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); }
.section { padding: clamp(48px, 8vw, 96px) 0 0; }
.section-sub { color: var(--muted); margin-top: -0.3em; }

/* hero */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; padding-top: clamp(24px, 5vw, 64px); }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 8px; }
.hero-books { position: relative; height: clamp(300px, 38vw, 460px); }
.hero-books .book { position: absolute; width: 56%; top: 8%; }
.hero-books .front { inset-inline-start: 22%; top: 0; z-index: 2; width: 60%; }
.hero-books .tilt-l { inset-inline-start: 0; transform: rotate(-8deg); top: 14%; }
.hero-books .tilt-r { inset-inline-end: 0; transform: rotate(7deg); top: 16%; }

/* the book cover */
.book { position: relative; aspect-ratio: 1; border-radius: 6px 14px 14px 6px; background: linear-gradient(170deg, var(--c1), var(--c2)); box-shadow: 0 18px 40px rgba(29,35,64,.25), inset 0 0 0 1px rgba(255,255,255,.08); overflow: hidden; }
html[dir="rtl"] .book { border-radius: 14px 6px 6px 14px; }
.book-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.book-title { position: absolute; inset-inline: 8%; top: 8%; color: #fff; font-family: var(--font-display); font-weight: 700; font-size: clamp(1rem, 2.1vw, 1.5rem); line-height: 1.15; text-shadow: 0 2px 10px rgba(0,0,0,.25); }
.book-title[lang="ar"] { font-family: var(--font-ar); line-height: 1.4; }
.book-spine { position: absolute; inset-block: 0; inset-inline-start: 0; width: 7%; background: linear-gradient(90deg, rgba(0,0,0,.22), rgba(255,255,255,.08) 60%, rgba(0,0,0,0)); }
html[dir="rtl"] .book-spine { background: linear-gradient(-90deg, rgba(0,0,0,.22), rgba(255,255,255,.08) 60%, rgba(0,0,0,0)); }
.book.small { width: 150px; flex: none; }
.book.small .book-title { font-size: 0.8rem; }

/* steps */
.steps { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--gold); font-weight: 700; margin-bottom: 12px; font-family: var(--font-body); }
.steps p { color: var(--ink-2); margin: 0; }

/* titles */
.titles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 28px; }
.title-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.title-card .book { width: 100%; }
.title-meta { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.title-meta h3 { margin: 4px 0 0; }
.title-meta p { color: var(--ink-2); margin: 0; flex: 1; }
.title-meta .pill { align-self: flex-start; }
.title-meta .btn { align-self: flex-start; margin-top: 8px; }

/* why */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 24px; }
.why-grid > div { border-top: 3px solid var(--gold); padding-top: 14px; }
.why-grid p { color: var(--ink-2); }

/* pricing */
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 24px; }
.tier { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.tier-featured { border: 2px solid var(--coral); box-shadow: var(--shadow); }
.tier .price { font-size: 1rem; color: var(--muted); margin: 0 0 8px; }
.tier .price span { font-size: 2rem; font-weight: 700; color: var(--ink); font-family: var(--font-display); }
.tier p:last-child { color: var(--ink-2); font-size: 0.95rem; margin: 0; }

.privacy-band { background: var(--ink); color: #f4efe6; border-radius: 28px; padding: clamp(28px, 5vw, 56px); margin-top: clamp(48px, 8vw, 96px); }
.privacy-band h2 { color: #fff; }
.privacy-band p { max-width: 760px; color: #d9d6e4; margin: 0; }

.faq { margin-top: 20px; display: grid; gap: 10px; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 14px 20px; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq details p { margin: 10px 0 0; color: var(--ink-2); }
.faq + .center { margin-top: 32px; }

/* forms */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 4vw, 36px); box-shadow: var(--shadow); }
.create { padding-top: 24px; max-width: 860px; margin: 0 auto; }
.create-head { display: flex; gap: 24px; align-items: center; margin-bottom: 24px; }
.create-head h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.create-head .lead { margin: 0; }
.form fieldset { border: 0; padding: 0; margin: 0 0 32px; }
.form legend { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
html[lang="ar"] .form legend { font-family: var(--font-ar); }
.form legend .num { margin: 0; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field > span { font-weight: 700; font-size: 0.95rem; }
.field small, .hint { color: var(--muted); font-size: 0.88rem; }
input[type="text"], input:not([type]), input[type="email"], input[type="tel"], select, textarea {
  font: inherit; color: inherit; background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(42,157,143,.15); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input, .swatch input, .mode input, .tier-pick input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; font-weight: 600; font-size: 0.95rem; }
.chip input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip input:focus-visible + span, .swatch input:focus-visible + span, .mode input:focus-visible + span { outline: 3px solid var(--teal); outline-offset: 2px; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch span { display: block; width: 40px; height: 40px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1.5px var(--line); cursor: pointer; }
.swatch input:checked + span { box-shadow: 0 0 0 3px var(--ink); }
.mode-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.mode span { display: flex; flex-direction: column; gap: 4px; border: 1.5px solid var(--line); border-radius: 14px; padding: 16px; background: #fff; cursor: pointer; height: 100%; }
.mode small { color: var(--muted); }
.mode input:checked + span { border-color: var(--coral); box-shadow: 0 0 0 2px var(--coral) inset; }
.upload { display: inline-flex; }
.upload input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.upload span { display: inline-block; border: 2px dashed var(--ink-2); border-radius: 14px; padding: 18px 28px; font-weight: 700; cursor: pointer; background: #fff; }
.upload input:focus-visible + span { outline: 3px solid var(--teal); }
.thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.thumb { position: relative; width: 92px; height: 92px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb button { position: absolute; top: 4px; inset-inline-end: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; cursor: pointer; font-size: 15px; line-height: 1; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 6px 0 14px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--coral); }
.consent span { font-size: 0.93rem; color: var(--ink-2); }

/* preview */
.preview { max-width: 860px; margin: 0 auto; padding-top: 24px; }
.preview-head { text-align: center; margin-bottom: 28px; }
.demo-badge { display: inline-block; background: #fff3cd; color: #6b5000; border-radius: 10px; padding: 6px 14px; font-size: 0.9rem; font-weight: 600; }
.preview-book { display: grid; gap: 32px; }
.art { position: relative; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); background: #eee; }
.art img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.wm { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; font-weight: 800; font-size: clamp(2rem, 9vw, 5rem); letter-spacing: .2em; color: rgba(255,255,255,.22); transform: rotate(-24deg); text-shadow: 0 1px 2px rgba(0,0,0,.08); }
.cover-big .art { border-radius: 8px 20px 20px 8px; }
.cover-title { position: absolute; inset-inline: 6%; top: 6%; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,.45); }
.cover-title span { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.6rem, 5vw, 3rem); line-height: 1.15; }
.cover-title span[lang="ar"] { font-family: var(--font-ar); line-height: 1.4; }
.cover-title .sub { font-size: clamp(1rem, 3vw, 1.6rem); opacity: .95; }
.spread { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: var(--paper); border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.spread .art { border-radius: 0; box-shadow: none; }
.story { padding: clamp(18px, 3vw, 36px); display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.story p { margin: 0; font-size: 1.15rem; line-height: 1.7; }
.story-ar { font-family: var(--font-ar-story); font-size: 1.3rem !important; line-height: 1.9 !important; text-align: right; }
.story-en { font-family: var(--font-display); }
.dedication { margin: 0; text-align: center; font-family: var(--font-display); font-style: italic; font-size: 1.2rem; color: var(--ink-2); padding: 12px 24px; }
.looks { margin-top: 32px; text-align: center; }
.looks form { margin-top: 12px; }
.reserve { margin-top: 24px; }
.tier-picks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.tier-pick span { display: flex; flex-direction: column; gap: 2px; border: 1.5px solid var(--line); border-radius: 14px; padding: 14px; background: #fff; cursor: pointer; height: 100%; }
.tier-pick em { font-style: normal; color: var(--muted); font-weight: 600; }
.tier-pick input:checked + span { border-color: var(--coral); box-shadow: 0 0 0 2px var(--coral) inset; }
.working { padding: 64px 24px; }
.spinner { display: inline-block; width: 72px; height: 72px; animation: spin 2.4s linear infinite; margin-bottom: 18px; }
.spinner .logo-mark { width: 72px; height: 72px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } html { scroll-behavior: auto; } }
.reserved-img { width: 240px; margin: 0 auto 24px; border-radius: 12px; box-shadow: var(--shadow); }

.prose { max-width: 760px; }
.prose p { color: var(--ink-2); }

/* admin */
.admin table { width: 100%; border-collapse: collapse; background: var(--paper); font-size: 0.92rem; }
.admin th, .admin td { text-align: start; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-wrap { overflow-x: auto; margin-bottom: 32px; }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.admin-card { display: grid; grid-template-columns: 110px 1fr; gap: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 10px; font-size: 0.9rem; }
.admin-card img, .admin-card .ph { width: 110px; height: 110px; object-fit: cover; border-radius: 8px; background: #eee; display: grid; place-items: center; }
.admin-photos { display: flex; gap: 4px; margin-top: 6px; }
.admin-photos img { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; }

/* responsive */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-books { height: 72vw; max-height: 420px; }
  .titles-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid, .tiers { grid-template-columns: repeat(2, 1fr); }
  .tier-picks { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav a:not(.lang-switch):not(.nav-account) { display: none; }
  .steps, .titles-grid, .why-grid, .row2, .mode-pick { grid-template-columns: 1fr; }
  .tiers { grid-template-columns: 1fr 1fr; }
  .spread { grid-template-columns: 1fr; }
  .create-head .book.small { width: 104px; }
  .create-head { gap: 16px; }
}

/* ---------- v0.2: orders, proof, gifts, admin ---------- */
.btn-sm { padding: 7px 14px; font-size: 0.88rem; }
.tier-pick small { color: var(--muted); font-size: 0.8rem; line-height: 1.35; margin-top: 4px; }
.tier-picks.two { grid-template-columns: repeat(2, 1fr); }
.total { font-size: 1.15rem; margin: 6px 0 16px; }
.flash { background: #e6f4f1; border: 1px solid #b8e0d8; color: #1f5f55; border-radius: 12px; padding: 10px 16px; font-weight: 600; }
.order-head { text-align: center; margin-bottom: 18px; }
.order-head h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin-bottom: 4px; }
.timeline { list-style: none; padding: 0; margin: 8px 0 28px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; font-size: 0.9rem; color: var(--muted); }
.timeline li { display: flex; align-items: center; gap: 6px; }
.timeline li span { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line); background: #fff; }
.timeline li.done { color: var(--ink-2); }
.timeline li.done span { background: var(--teal); border-color: var(--teal); }
.timeline li.now { color: var(--ink); font-weight: 700; }
.timeline li.now span { background: var(--coral); border-color: var(--coral); box-shadow: 0 0 0 4px rgba(232,96,76,.18); }
.pay-buttons { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 12px; }
.approve-box { margin-top: 28px; display: grid; gap: 24px; }
.approve-box .changes textarea { margin: 8px 0 10px; }
.voice-card { margin-top: 24px; }
.art { position: relative; }
.pageno { position: absolute; bottom: 10px; inset-inline-start: 10px; background: rgba(0,0,0,.45); color: #fff; font-size: .8rem; border-radius: 999px; padding: 2px 9px; }
.spread.listen audio { width: 100%; margin-top: 10px; }
.read-text { font-size: 1.15rem; line-height: 1.9; background: #fff; border: 1px dashed var(--line); border-radius: 12px; padding: 16px 18px; }
.rec-controls { display: flex; gap: 12px; align-items: center; margin: 14px 0; flex-wrap: wrap; }
#rec-play { width: 100%; margin: 6px 0 14px; }
.gift-band { background: linear-gradient(135deg, #fff1e6, #fde7d9); border-radius: 28px; padding: clamp(28px, 5vw, 56px); margin-top: clamp(48px, 8vw, 96px); }
.gift-band p { max-width: 680px; color: var(--ink-2); }
.gift-card-wrap { max-width: 640px; margin: 0 auto; }
.gift-card { background: linear-gradient(160deg, var(--ink), #3a4063); color: #fff; border-radius: 24px; padding: 40px 32px; box-shadow: var(--shadow); margin-bottom: 20px; }
.gift-card h1 { color: #fff; font-size: 1.9rem; }
.gc-brand { display: flex; gap: 10px; align-items: center; justify-content: center; font-weight: 700; margin-bottom: 18px; }
.gc-to { color: var(--gold); font-weight: 700; font-size: 1.2rem; }
.gc-msg { font-style: italic; color: #e7e5ef; }
.gc-code { font-family: ui-monospace, Menlo, monospace; font-size: 1.6rem; letter-spacing: .08em; background: rgba(255,255,255,.12); border-radius: 12px; padding: 10px 16px; display: inline-block; margin: 14px 0; }
.gift-card .note { color: #d9d6e4; }
.consent-bar { position: fixed; inset-inline: 16px; bottom: 16px; z-index: 50; max-width: 720px; margin: 0 auto; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 10px 40px rgba(0,0,0,.15); padding: 14px 18px; display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; font-size: .92rem; }
.consent-bar[hidden] { display: none; }
.consent-bar p { margin: 0; flex: 1 1 280px; }
.consent-bar div { display: flex; gap: 8px; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin: 16px 0 28px; }
.stats div { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; }
.stats b { font-size: 1.5rem; }
.stats span { color: var(--muted); font-size: .8rem; }
.admin-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 16px 0; }
.admin .card { margin-bottom: 16px; box-shadow: none; }
.admin .card h3 { margin-bottom: 8px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
form.inline { display: inline-flex; gap: 6px; align-items: center; }
.sm-input { width: 150px !important; padding: 6px 10px !important; font-size: .88rem; }
.admin-pages { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.admin-page { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.admin-page img, .admin-page .ph { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: #eee; display: grid; place-items: center; }
.sheet { white-space: pre-wrap; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px; font-size: .85rem; }
@media (max-width: 900px) { .admin-cols { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .tier-picks.two { grid-template-columns: 1fr; } }
@media print { .site-header, .site-footer, .consent-bar, .gift-card-wrap .btn { display: none !important; } }

/* ---------- v0.3: step-by-step journey ---------- */
.wiz-wrap { max-width: 640px; margin: 0 auto; padding: 8px 16px 40px; }
.wizard { position: relative; }
.wiz-top { display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 5; background: var(--sand); padding: 12px 0; }
.inline-wizard .wiz-top { position: static; background: transparent; padding-top: 0; }
.wiz-back { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; font-size: 1.15rem; cursor: pointer; color: var(--ink); flex: none; }
.wiz-progress { flex: 1; height: 8px; background: #efe5d4; border-radius: 999px; overflow: hidden; }
.wiz-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--coral), var(--gold)); border-radius: 999px; transition: width .45s cubic-bezier(.2,.8,.2,1); }
html[dir="rtl"] .wiz-progress span { background: linear-gradient(-90deg, var(--coral), var(--gold)); }
.wiz-count { direction: ltr; unicode-bidi: isolate; font-size: .85rem; color: var(--muted); min-width: 44px; text-align: end; font-variant-numeric: tabular-nums; }
.wiz-steps { position: relative; }
.step { display: none; padding-top: 10px; }
.step.active { display: block; }
.step.in-fwd { animation: wizInFwd .42s cubic-bezier(.2,.8,.2,1); }
.step.in-back { animation: wizInBack .42s cubic-bezier(.2,.8,.2,1); }
@keyframes wizInFwd { from { opacity: 0; transform: translateX(36px); } to { opacity: 1; transform: none; } }
@keyframes wizInBack { from { opacity: 0; transform: translateX(-36px); } to { opacity: 1; transform: none; } }
html[dir="rtl"] .step.in-fwd { animation-name: wizInBack; }
html[dir="rtl"] .step.in-back { animation-name: wizInFwd; }
@media (prefers-reduced-motion: reduce) { .step.in-fwd, .step.in-back { animation: none; } .wiz-progress span { transition: none; } }
.step h1 { font-size: clamp(1.7rem, 6vw, 2.4rem); margin: 6px 0 10px; }
.step h2 { margin: 6px 0 12px; }
.step .lead { margin-top: 0; }
.field.big input { font-size: 1.25rem; padding: 14px 16px; }
.wiz-nav { position: sticky; bottom: 0; padding: 14px 0 calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--sand) 70%, rgba(251,246,238,0)); z-index: 4; }
.inline-wizard .wiz-nav { position: static; background: none; padding-bottom: 0; }
.wiz-nav .btn { width: 100%; }
.wiz-nav .btn[hidden] { display: none; }
.wizard .wiz-nav .error { margin: 0 0 10px; background: #fff3f0; border-radius: 12px; padding: 10px 14px; }

.big-picks { display: grid; gap: 12px; margin-bottom: 18px; }
.big-picks.two { grid-template-columns: 1fr 1fr; }
.big-picks.three { grid-template-columns: repeat(3, 1fr); }
.big-pick input, .story-pick input, .style-pick input { position: absolute; opacity: 0; pointer-events: none; }
.big-pick span { display: flex; flex-direction: column; gap: 4px; border: 1.5px solid var(--line); border-radius: 16px; padding: 18px; background: #fff; cursor: pointer; height: 100%; transition: transform .15s, border-color .15s, box-shadow .15s; }
.big-pick i { font-style: normal; font-size: 1.8rem; line-height: 1; margin-bottom: 4px; }
.big-pick strong { font-size: 1.1rem; }
.big-pick small { color: var(--muted); }
.big-pick span:active, .story-pick:active, .style-pick:active { transform: scale(.98); }
.big-pick input:checked + span, .story-pick:has(input:checked), .style-pick:has(input:checked) { border-color: var(--coral); box-shadow: 0 0 0 2px var(--coral) inset; }
.big-pick input:focus-visible + span, .story-pick:has(input:focus-visible), .style-pick:has(input:focus-visible) { outline: 3px solid var(--teal); outline-offset: 2px; }

.story-grid { display: grid; gap: 12px; }
.story-pick { display: flex; gap: 14px; align-items: center; border: 1.5px solid var(--line); border-radius: 18px; padding: 12px; background: #fff; cursor: pointer; position: relative; transition: transform .15s; }
.story-pick .book.small { width: 92px; }
.story-pick .book.small .book-title { font-size: .55rem; }
.sp-meta { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sp-meta strong { font-size: 1.02rem; line-height: 1.3; }
.sp-meta small { color: var(--muted); font-size: .86rem; line-height: 1.4; }
.sp-meta .pill { align-self: flex-start; font-size: .75rem; }
.story-pick.own { background: linear-gradient(135deg, #fff, #fff6e3); }
.pill-gold { background: var(--gold); color: var(--ink); }

.style-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.style-pick { display: flex; flex-direction: column; border: 1.5px solid var(--line); border-radius: 18px; overflow: hidden; background: #fff; cursor: pointer; position: relative; transition: transform .15s; }
.style-pick .sp-img { aspect-ratio: 1; background: #f3ead9; display: block; }
.style-pick img { width: 100%; height: 100%; object-fit: cover; display: block; }
.style-pick .sp-meta { padding: 10px 12px 12px; }

.chat { display: flex; flex-direction: column; gap: 10px; min-height: 120px; margin: 8px 0 14px; }
.msg { max-width: 86%; padding: 12px 16px; border-radius: 18px; line-height: 1.5; white-space: pre-wrap; animation: msgIn .3s ease-out; }
.msg.ai { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-end-start-radius: 6px; }
.msg.me { align-self: flex-end; background: var(--ink); color: #fff; border-end-end-radius: 6px; }
.msg.typing { color: var(--muted); letter-spacing: .2em; animation: msgIn .3s ease-out, pulse 1.2s infinite; }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 50% { opacity: .45; } }
.chat-confirm { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.chat-confirm[hidden], .chat-input[hidden] { display: none; }
.chat-input { display: flex; gap: 8px; align-items: flex-end; background: #fff; border: 1.5px solid var(--line); border-radius: 24px; padding: 6px; position: sticky; bottom: calc(10px + env(safe-area-inset-bottom)); box-shadow: var(--shadow); }
.chat-input textarea { flex: 1; border: 0; resize: none; padding: 10px 12px; font: inherit; background: transparent; outline: none; min-height: 44px; }
.round { width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; flex: none; }
.round svg { width: 22px; height: 22px; }
html[dir="rtl"] .round.send svg { transform: scaleX(-1); }
.round.send { background: var(--coral); color: #fff; }
.round.mic { background: #f3ead9; color: var(--ink); }
.round.mic[hidden] { display: none; }
.round.mic.on { background: var(--coral); color: #fff; animation: pulse 1.2s infinite; }
.chat-status { color: var(--muted); font-size: .9rem; min-height: 1.2em; margin: 8px 0; }
.check.small { font-size: .88rem; color: var(--muted); }

.draft { display: grid; gap: 12px; }
.draft-page { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px 6px; }
.draft-page .field { margin-bottom: 10px; }
.draft-page .field > span { font-size: .8rem; color: var(--muted); font-weight: 600; }
.draft-page textarea { resize: none; overflow: hidden; font-size: 1rem; line-height: 1.55; }
.draft-page textarea[dir="rtl"] { font-family: var(--font-ar-story); font-size: 1.1rem; }
.draft-num { font-weight: 700; margin: 0 0 8px; color: var(--coral); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }
.draft-tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
.draft-tools .btn-sm { font-size: .8rem; padding: 6px 12px; }
.saved { color: var(--teal); font-weight: 600; }
.linklike { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; justify-self: center; padding: 8px; font: inherit; font-size: .9rem; }
.own-card .book { width: 100%; }
@media (max-width: 520px) {
  .big-picks.three { grid-template-columns: 1fr 1fr 1fr; }
  .big-pick span { padding: 14px; }
  .story-pick .book.small { width: 76px; }
  .style-grid { gap: 10px; }
}
.admin-chat { max-width: 760px; }
.admin-chat .msg { white-space: pre-wrap; }
.admin-chat .msg small { opacity: .7; }
.msg.note { align-self: center; background: transparent; color: var(--muted); font-size: .85rem; padding: 4px; }
.wa-float { position: fixed; inset-inline-end: 18px; bottom: 18px; z-index: 40; width: 54px; height: 54px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.wa-float svg { width: 30px; height: 30px; }
body:has(.wizard) .wa-float { display: none; }

/* ---------- customer account ---------- */
.account { max-width: 920px; margin: 0 auto; padding: 24px 16px 60px; }
.acc-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.acc-head h1 { margin: 4px 0; }
.account h2 { margin-top: 36px; }
.acc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.acc-book { display: flex; align-items: flex-start; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 12px; }
.acc-cover { width: 92px; flex: none; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #f3ead9; }
.acc-cover img, .acc-cover .ph { width: 100%; height: 100%; object-fit: cover; display: block; }
.acc-meta { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.acc-meta small { color: var(--muted); }
.acc-meta .pill { align-self: flex-start; font-size: .78rem; }
.acc-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.acc-form { max-width: 640px; }
.acc-foot { display: flex; gap: 16px; align-items: center; margin-top: 24px; flex-wrap: wrap; }
.flash { background: #e5f4e4; border-radius: 12px; padding: 10px 14px; }
.account-auth .card { margin-top: 18px; }
.code-input { font-size: 1.8rem !important; letter-spacing: .35em; text-align: center; font-variant-numeric: tabular-nums; }

/* ---------- back office ---------- */
body.bo { display: grid; grid-template-columns: 230px 1fr; min-height: 100vh; background: #f6f3ee; --bo-a: #c9c2b4; }
.bo-side { background: var(--ink); color: #fff; padding: 20px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 18px; }
.bo-brand { color: #fff; text-decoration: none; font-size: 1.15rem; padding: 0 8px; }
.bo-brand span { color: var(--gold); }
.bo-side nav { display: flex; flex-direction: column; gap: 2px; }
.bo-side nav a { color: #d9d6e4; text-decoration: none; padding: 9px 10px; border-radius: 10px; font-size: .95rem; display: flex; justify-content: space-between; }
.bo-side nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.bo-side nav a.on { background: rgba(255,255,255,.13); color: #fff; font-weight: 700; }
.bo-side nav i { font-style: normal; background: var(--coral); color: #fff; border-radius: 999px; padding: 0 8px; font-size: .8rem; }
.bo-me { margin-top: auto; padding: 0 8px; color: #b9b6c6; }
.bo-me .linklike { color: #fff; padding: 4px 0; }
.bo-main { padding: 26px clamp(16px, 3vw, 36px) 60px; min-width: 0; }
.bo-title { font-size: 1.7rem; margin: 0 0 18px; }
.bo-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; margin-bottom: 18px; }
.bo-card h2 { font-size: 1.15rem; margin: 0 0 8px; }
.bo-card table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.bo-card td, .bo-card th { padding: 8px 6px; border-bottom: 1px solid #f0ebe1; text-align: start; vertical-align: top; }
.bo-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-bottom: 18px; }
.bo-tile { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.bo-tile span { color: var(--muted); font-size: .82rem; }
.bo-tile b { font-size: 1.5rem; }
.bo-tile small { color: var(--muted); font-size: .8rem; }
.bo-two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.bo-flow { display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; }
.bo-stage { flex: 1 1 120px; background: #faf7f2; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; min-width: 120px; }
.bo-stage b { font-size: 1.6rem; line-height: 1.1; }
.bo-stage span { font-weight: 700; font-size: .88rem; }
.bo-stage small { color: var(--muted); font-size: .75rem; }
.bo-stage small i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-inline-end: 5px; }
.bo-arrow { align-self: center; color: var(--muted); }
.bo-chart svg { width: 100%; height: 160px; display: block; background: linear-gradient(#f0ebe1 1px, transparent 1px) 0 0 / 100% 25%; border-bottom: 1px solid #e3dccf; }
.bo-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: .82rem; margin-top: 8px; }
.bo-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-inline-end: 5px; vertical-align: -1px; }
.muted { color: var(--muted); }
.bo-status { display: flex; flex-wrap: wrap; gap: 6px; }
.bo-status span { border-radius: 999px; padding: 3px 10px; font-size: .8rem; background: #e5f4e4; }
.bo-status span.warn { background: #f9eeda; }
.bo-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.bo-tabs a { padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: .88rem; }
.bo-tabs a.on { background: var(--ink); color: #fff; }
.thumb-cell img { width: 46px; height: 46px; object-fit: cover; border-radius: 8px; }
.bo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 4px 18px; }
.bo-grid .field { margin-bottom: 12px; }
.bo-grid .field > span { font-size: .85rem; }
.src { font-style: normal; font-weight: 600; font-size: .7rem; border-radius: 999px; padding: 1px 7px; margin-inline-start: 4px; vertical-align: 1px; }
.src-admin { background: #e5f4e4; color: #1f6b3a; } .src-railway { background: #e7f1fb; color: #1d4f8a; } .src-default { background: #f0efec; color: #6b6f80; }
.bo-save { position: sticky; bottom: 0; padding: 12px 0; background: linear-gradient(to top, #f6f3ee 70%, rgba(246,243,238,0)); }
.bo-search { display: flex; gap: 8px; margin-bottom: 12px; max-width: 480px; }
.bo-search input { flex: 1; }
.bo-login { max-width: 420px; }
.bo .admin-grid { margin-top: 6px; }
@media (max-width: 860px) {
  body.bo { grid-template-columns: 1fr; }
  .bo-side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 10px 12px; gap: 10px; }
  .bo-side nav { flex-direction: row; overflow-x: auto; flex-wrap: nowrap; width: 100%; }
  .bo-side nav a { white-space: nowrap; }
  .bo-me { margin: 0; }
  .bo-two { grid-template-columns: 1fr; }
  .bo-arrow { display: none; }
}

/* ---------- family members ---------- */
.fam-add { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 16px; }
.fam-role { display: inline-flex; align-items: center; gap: 6px; border: 1.5px dashed var(--line); background: #fff; border-radius: 999px; padding: 9px 14px; font: inherit; font-weight: 700; cursor: pointer; color: var(--ink); }
.fam-role i { font-style: normal; }
.fam-role:hover { border-color: var(--coral); }
.fam-role:disabled { opacity: .4; cursor: default; }
.fam-list, .fam-looks { display: grid; gap: 10px; }
.fam-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; display: grid; gap: 10px; animation: msgIn .3s ease-out; }
.fam-card input:not([type=file]) { width: 100%; }
.fam-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fam-head strong { flex: 1; }
.fam-ic { font-size: 1.4rem; }
.fam-tabs { display: flex; gap: 6px; }
.chip-btn { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 12px; font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; color: var(--ink); }
.chip-btn.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.fam-card .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fam-card .swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.sw { width: 34px; height: 34px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1.5px var(--line); cursor: pointer; }
.sw.on { box-shadow: 0 0 0 3px var(--coral); }
.fam-lbl { color: var(--muted); font-weight: 700; font-size: .8rem; }
.upload.small span { padding: 10px 14px; font-size: .92rem; }

/* ---------- v0.5 home: photography ---------- */
.hero2 { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(28px, 5vw, 72px); align-items: center; padding-top: clamp(20px, 4vw, 56px); }
.hero2 h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); line-height: 1.04; letter-spacing: -.015em; }
.hero2 .lead { font-size: 1.15rem; max-width: 34ch; }
.hero2 .note { margin-top: 10px; color: var(--muted); }
.hero2-media { position: relative; padding: 0 0 40px; }
.hero2-photo { border-radius: 32px; overflow: hidden; aspect-ratio: 4 / 4.4; box-shadow: 0 30px 60px rgba(29,35,64,.18); }
.hero2-photo img { width: 100%; height: 100%; object-fit: cover; display: block; animation: kenburns 22s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.1) translate(-1.5%, -1%); } }
.hero2-book { position: absolute !important; width: 38% !important; inset-inline-start: -8%; bottom: 0; transform: rotate(-7deg); animation: floaty 6s ease-in-out infinite; }
html[dir="rtl"] .hero2-book { transform: rotate(7deg); }
@keyframes floaty { 50% { translate: 0 -10px; } }
.float-chip { position: absolute; background: rgba(255,253,249,.94); backdrop-filter: blur(8px); border-radius: 16px; padding: 10px 14px; box-shadow: 0 12px 30px rgba(29,35,64,.16); display: flex; flex-direction: column; line-height: 1.2; }
.float-chip b { font-size: 1.15rem; } .float-chip span { font-size: .8rem; color: var(--muted); }
.chip-a { top: 7%; inset-inline-end: -4%; animation: floaty 7s ease-in-out infinite .6s; }
.chip-b { top: 46%; inset-inline-end: -6%; animation: floaty 8s ease-in-out infinite 1.2s; }
.trust { list-style: none; padding: 18px; margin: clamp(32px, 6vw, 64px) 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 22px; }
.trust li { display: flex; flex-direction: column; padding: 6px 12px; border-inline-start: 3px solid var(--gold); }
.trust b { font-size: .98rem; } .trust span { color: var(--muted); font-size: .86rem; }
.center { text-align: center; }
.ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.way { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; text-decoration: none; color: var(--ink); transition: transform .25s, box-shadow .25s; }
.way:hover { transform: translateY(-4px); box-shadow: 0 22px 44px rgba(29,35,64,.12); }
.way-img { aspect-ratio: 4 / 3; overflow: hidden; }
.way-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; display: block; }
.way:hover .way-img img { transform: scale(1.05); }
.way-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.way-body h3 { margin: 0; font-size: 1.25rem; } .way-body p { margin: 0; color: var(--ink-2); flex: 1; }
.way-cta { color: var(--coral); font-weight: 700; margin-top: 8px; }
.steps4 { grid-template-columns: repeat(4, 1fr) !important; }
.styles-band { display: grid; grid-template-columns: .8fr 1.6fr; gap: 28px; align-items: center; }
.style-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.style-strip figure { margin: 0; } .style-strip img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 16px; display: block; box-shadow: var(--shadow); }
.style-strip figcaption { font-size: .82rem; font-weight: 700; margin-top: 6px; text-align: center; }
.photo-band, .final-cta { position: relative; border-radius: 32px; overflow: hidden; min-height: 420px; display: flex; align-items: flex-end; }
.pb-img, .fc-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-band::after, .final-cta::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(17,20,40,.85), rgba(17,20,40,.15) 65%); }
html:not([dir="rtl"]) .photo-band::after { background: linear-gradient(90deg, rgba(17,20,40,.88), rgba(17,20,40,.2) 70%); }
html[dir="rtl"] .photo-band::after { background: linear-gradient(-90deg, rgba(17,20,40,.88), rgba(17,20,40,.2) 70%); }
.pb-copy, .fc-copy { position: relative; z-index: 1; padding: clamp(28px, 5vw, 56px); color: #fff; max-width: 560px; }
.pb-copy h2, .fc-copy h2 { color: #fff; } .pb-copy p, .fc-copy p { color: #e9e6f2; }
.photo-band { align-items: center; }
.final-cta { justify-content: center; text-align: center; min-height: 380px; }
.final-cta .fc-copy { max-width: 680px; }
.why-split { display: grid; grid-template-columns: .9fr 1.4fr; gap: 32px; align-items: center; margin-top: 24px; }
.why-photo { border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 5; } .why-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.why-grid.two { grid-template-columns: 1fr 1fr !important; margin-top: 0; }
.gift-band2 { display: grid; grid-template-columns: 1fr 1.2fr; background: linear-gradient(135deg, #fff1e6, #fde7d9); border-radius: 32px; overflow: hidden; align-items: center; }
.gb-img { height: 100%; min-height: 300px; } .gb-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gb-copy { padding: clamp(24px, 5vw, 56px); } .gb-copy p { color: var(--ink-2); }
.tier { position: relative; } .tier-badge { position: absolute; top: -12px; inset-inline-start: 18px; background: var(--coral); color: #fff; font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .hero2-photo img, .hero2-book, .float-chip { animation: none; } }
@media (max-width: 900px) {
  .hero2 { grid-template-columns: 1fr; }
  .hero2-media { order: -1; margin-inline: 8px; }
  .trust { grid-template-columns: 1fr 1fr; }
  .ways { grid-template-columns: 1fr; }
  .steps4 { grid-template-columns: 1fr 1fr !important; }
  .styles-band, .why-split, .gift-band2 { grid-template-columns: 1fr; }
  .style-strip { grid-template-columns: repeat(5, 38%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
  .style-strip figure { scroll-snap-align: start; }
  .chip-a { inset-inline-end: 4px; } .chip-b { inset-inline-end: 4px; }
  .why-photo { aspect-ratio: 16 / 10; }
}
@media (max-width: 520px) { .steps4 { grid-template-columns: 1fr !important; } .trust { grid-template-columns: 1fr; } .why-grid.two { grid-template-columns: 1fr !important; } }
.hero2 .hero-actions .btn { width: auto; flex: 0 0 auto; }
.flash-bad { background: #fbebeb; color: #8a2c1f; }

/* =====================================================================
   Mabrook brand system v1 — warm, crafted, family. (Overrides above.)
   ===================================================================== */
:root {
  --ink: #1B2140; --ink-2: #424866; --muted: #6E6A7C; --sand: #F7F1E7; --paper: #FFFCF6; --line: #E6D9C3;
  --gold: #E9B44C; --gold-d: #B0802A; --coral: #C2662F; --coral-d: #A8521F; --terra: #C2662F; --teal: #2F7F8F; --cream: #FBF6EC;
  --font-display: "Fraunces", Georgia, serif; --font-ar-display: "Noto Naskh Arabic", "Readex Pro", serif;
  --radius: 22px; --shadow: 0 1px 2px rgba(27,33,64,.04), 0 12px 32px rgba(27,33,64,.08); --shadow-lg: 0 30px 70px rgba(27,33,64,.18);
  --ease: cubic-bezier(.2,.8,.2,1);
}
body { background-color: var(--sand); background-image: 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='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .4 0 0 0 0 .32 0 0 0 0 .22 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"); text-rendering: optimizeLegibility; }
h1, h2, h3 { font-variation-settings: "SOFT" 100, "WONK" 0; font-weight: 600; letter-spacing: -.018em; }
h1 { font-size: clamp(2.3rem, 5.6vw, 4rem); line-height: 1.04; }
h2 { font-size: clamp(1.8rem, 3.8vw, 2.7rem); line-height: 1.1; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { font-family: var(--font-ar-display); }
.kicker { color: var(--gold-d); letter-spacing: .2em; font-size: .74rem; }
.lead { color: var(--ink-2); font-size: clamp(1.05rem, 1.6vw, 1.2rem); line-height: 1.65; }
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.skip { position: fixed; inset-inline-start: 12px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; transform: translateY(-160%); transition: transform .2s; }
.skip:focus { transform: none; }

/* buttons */
.btn { border-radius: 999px; font-weight: 700; letter-spacing: .005em; transition: transform .2s var(--ease), background .2s, box-shadow .2s, color .2s; }
.btn-primary { background: var(--ink); color: var(--cream); box-shadow: 0 10px 24px rgba(27,33,64,.22); }
.btn-primary:hover { background: var(--terra); box-shadow: 0 12px 28px rgba(194,102,47,.32); transform: translateY(-1px); }
.btn-ghost { border: 1.5px solid rgba(27,33,64,.35); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.btn-light { background: var(--cream); color: var(--ink); }
.btn-light:hover { background: var(--gold); }
.btn-lg { width: auto; }
@media (max-width: 560px) { .hero-actions .btn-lg { width: 100%; } }

/* wordmark */
.wordmark { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.wordmark .mark { width: 40px; height: 40px; flex: none; }
.wm-words { display: flex; flex-direction: column; }
.wm-name { font-family: "Fraunces", Georgia, serif !important; font-variation-settings: "SOFT" 100, "opsz" 72; font-weight: 600; font-size: 1.55rem; letter-spacing: -.012em; line-height: 1; }
.wm-sub { display: flex; align-items: center; gap: .45em; font: 700 .56rem/1 "Nunito Sans", sans-serif; letter-spacing: .44em; color: var(--gold-d); margin-top: 4px; }
.wm-sub i { font-style: normal; letter-spacing: 0; }
.wordmark .wm-ar { font-family: "Aref Ruqaa", serif !important; font-weight: 700; letter-spacing: 0; font-size: 1rem; line-height: .5; color: var(--terra); }
.wordmark.on-dark { color: var(--cream); } .wordmark.on-dark .wm-sub { color: var(--gold); } .wordmark.on-dark .wm-ar { color: var(--gold); }
.mark-star { transform-origin: 46.6px 17.7px; animation: twinkle 4s ease-in-out infinite; }
.logo-mark { width: 48px; height: 48px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 40; max-width: none; margin: 0; padding: 12px clamp(16px, 4vw, 48px); background: rgba(247,241,231,.82); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(27,33,64,.05); }
.brand { text-decoration: none; }
.nav { gap: clamp(14px, 2vw, 30px); font-weight: 600; font-size: .96rem; }
.nav a:not(.btn) { position: relative; color: var(--ink-2); padding: 6px 0; }
.nav a:not(.btn)::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
html[dir="rtl"] .nav a:not(.btn)::after { transform-origin: right; }
.nav a:not(.btn):hover::after { transform: scaleX(1); }
.nav-sheet-cta { display: none; }
.nav-tools { display: flex; align-items: center; gap: 10px; }
.nav-tools .lang-switch { font-weight: 700; text-decoration: none; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); font-size: .9rem; }
.signin { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; padding: 7px 12px; border-radius: 999px; font-size: .92rem; }
.signin:hover { background: rgba(27,33,64,.06); }
.signin svg { width: 20px; height: 20px; }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); cursor: pointer; position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), top .3s var(--ease); }
.burger span:first-child { top: 17px; } .burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); } .burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }
@media (max-width: 980px) {
  .burger { display: inline-block; }
  .nav { position: fixed; inset: 64px 0 auto 0; display: flex !important; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 20px 24px; background: var(--sand); border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px rgba(27,33,64,.12); transform: translateY(-12px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .3s var(--ease); max-height: calc(100vh - 64px); overflow: auto; }
  .nav.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a:not(.btn) { display: block !important; font-family: var(--font-display); font-variation-settings: "SOFT" 100; font-size: 1.5rem; font-weight: 500; padding: 14px 4px; border-bottom: 1px solid var(--line); color: var(--ink); }
  html[lang="ar"] .nav a:not(.btn) { font-family: var(--font-ar-display); }
  .nav a:not(.btn)::after { display: none; }
  .nav-sheet-cta { display: flex; margin-top: 18px; }
  .nav-cta { display: none; }
  .signin span { display: none; }
  .nav-tools .lang-switch { padding: 6px 10px; }
  .wordmark .mark { width: 34px; height: 34px; } .wm-name { font-size: 1.3rem; }
}
@media (max-width: 380px) { .wm-sub { display: none; } }

/* 3D hardcover book */
.book3d { --ry: -24deg; --rx: 6deg; perspective: 1400px; aspect-ratio: 1; position: relative; }
.b3 { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateY(var(--ry)) rotateX(var(--rx)); transition: transform .8s var(--ease); }
html[dir="rtl"] .book3d { --ry: 24deg; }
.b3-front { position: absolute; inset: 0; border-radius: 3px 12px 12px 3px; overflow: hidden; transform: translateZ(12px); box-shadow: inset 4px 0 8px rgba(0,0,0,.25), inset -1px 0 0 rgba(255,255,255,.2); background: var(--ink); }
html[dir="rtl"] .b3-front { border-radius: 12px 3px 3px 12px; }
.b3-art, .b3-art svg, .b3-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.b3-front::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 5%; width: 2px; background: rgba(0,0,0,.18); box-shadow: 1px 0 0 rgba(255,255,255,.18); z-index: 2; }
.b3-shine { position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255,255,255,.22) 0%, rgba(255,255,255,0) 32%, rgba(255,255,255,0) 70%, rgba(255,255,255,.08) 100%); z-index: 2; pointer-events: none; }
.b3-title { position: absolute; inset-inline: 10% 8%; top: 8%; z-index: 3; color: var(--cover-ink, #fff); font-family: "Fraunces", Georgia, serif; font-variation-settings: "SOFT" 100, "opsz" 72; font-weight: 600; font-size: clamp(.8rem, 2.4cqi, 1.6rem); line-height: 1.12; text-wrap: balance; text-shadow: 0 1px 12px rgba(0,0,0,.18); }
.book3d { container-type: inline-size; }
.b3-title { font-size: 8.4cqi; }
.b3-title[lang="ar"] { font-family: var(--font-ar-display); line-height: 1.4; font-size: 8cqi; }
.b3-mark { position: absolute; z-index: 3; width: 13cqi; height: 13cqi; inset-inline-end: 6%; bottom: 5%; filter: drop-shadow(0 1px 3px rgba(0,0,0,.25)); }
.b3-pages { position: absolute; top: 2.5%; bottom: 2.5%; inset-inline-end: 0; width: 24px; transform-origin: 100% 50%; transform: translateZ(11px) rotateY(90deg); background: repeating-linear-gradient(90deg, #fbf7ee 0 1px, #e9dfcc 1px 2px); border-radius: 0 3px 3px 0; }
html[dir="rtl"] .b3-pages { transform-origin: 0 50%; transform: translateZ(11px) rotateY(-90deg); }
.b3-back { position: absolute; inset: 0; transform: translateZ(-12px); background: #141832; border-radius: 3px 12px 12px 3px; box-shadow: 18px 26px 40px rgba(27,33,64,.35); }
.book3d:hover .b3 { transform: rotateY(calc(var(--ry) * .4)) rotateX(2deg); }
.book3d.flat { --ry: 0deg; --rx: 0deg; }

/* hero */
.hero3 { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; padding-top: clamp(20px, 5vw, 64px); }
.hero3 h1 { font-size: clamp(2.7rem, 6.6vw, 5.4rem); line-height: 1; letter-spacing: -.025em; margin-bottom: .35em; }
html[lang="ar"] .hero3 h1 { line-height: 1.25; font-size: clamp(2.4rem, 6vw, 4.6rem); }
.hero3 h1 em { font-style: italic; font-variation-settings: "SOFT" 100, "WONK" 1; color: var(--terra); position: relative; white-space: nowrap; }
html[lang="ar"] .hero3 h1 em { font-style: normal; }
.hero3 h1 em::after { content: ""; position: absolute; inset-inline: -2% -4%; bottom: -.06em; height: .26em; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M3 14 C 50 4, 120 2, 197 9' stroke='%23E9B44C' stroke-width='5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%; animation: swash 1.4s var(--ease) .5s both; transform-origin: left; }
@keyframes swash { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.hero3 .lead { max-width: 38ch; }
.hero-proof { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--ink-2); font-size: .92rem; font-weight: 600; }
.hero-proof li::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); margin-inline-end: 8px; vertical-align: 2px; }
.hero3-media { position: relative; padding: 0 0 6% 10%; }
html[dir="rtl"] .hero3-media { padding: 0 10% 6% 0; }
.arch { position: relative; border-radius: 999px 999px 26px 26px; overflow: hidden; aspect-ratio: 4 / 4.8; box-shadow: var(--shadow-lg); }
.arch img { width: 100%; height: 100%; object-fit: cover; animation: kenburns 24s ease-in-out infinite alternate; }
.hero3-media::before { content: ""; position: absolute; inset: -14px -14px calc(6% - 14px) calc(10% - 14px); border: 1.5px solid rgba(176,128,42,.45); border-radius: 999px 999px 34px 34px; pointer-events: none; }
html[dir="rtl"] .hero3-media::before { inset: -14px calc(10% - 14px) calc(6% - 14px) -14px; }
.hero3-book { position: absolute !important; width: 46%; inset-inline-start: 0; bottom: 0; --ry: -28deg; animation: floaty 7s ease-in-out infinite; filter: drop-shadow(0 30px 30px rgba(27,33,64,.25)); }
html[dir="rtl"] .hero3-book { --ry: 28deg; }
.twinkle { position: absolute; inset: -6% -4% auto auto; width: 40%; pointer-events: none; }
.twinkle path { fill: var(--gold); transform-box: fill-box; transform-origin: center; animation: twinkle 3.6s ease-in-out infinite; animation-delay: var(--d); }
@keyframes twinkle { 0%, 100% { opacity: .25; transform: scale(.7); } 50% { opacity: 1; transform: scale(1); } }
@media (max-width: 900px) {
  .hero3 { grid-template-columns: 1fr; }
  .hero3-media { order: -1; padding: 0 0 12% 14%; max-width: 520px; margin-inline: auto; width: 100%; }
  html[dir="rtl"] .hero3-media { padding: 0 14% 12% 0; }
  .hero3-book { width: 44%; }
}

/* marquee */
.marquee { width: 100vw; margin-inline: calc(50% - 50vw); margin-top: clamp(40px, 7vw, 80px); border-block: 1px solid var(--line); background: var(--paper); overflow: hidden; padding: 16px 0; }
.mq-track { display: flex; align-items: center; gap: 28px; width: max-content; animation: marquee 60s linear infinite; }
html[dir="rtl"] .mq-track { animation-name: marquee-rtl; }
.mq-track span { font-family: var(--font-display); font-variation-settings: "SOFT" 100; font-style: italic; font-size: clamp(1.1rem, 2.2vw, 1.5rem); white-space: nowrap; color: var(--ink-2); }
html[lang="ar"] .mq-track span { font-family: var(--font-ar-display); font-style: normal; }
.mq-mark { width: 26px; height: 26px; flex: none; opacity: .85; }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes marquee-rtl { to { transform: translateX(50%); } }
.marquee:hover .mq-track { animation-play-state: paused; }

/* "watch a story come to life" */
.maker-head { text-align: center; max-width: 720px; margin: 0 auto 30px; }
.maker { max-width: 1040px; margin: 0 auto; }
.mk-desk { position: relative; border-radius: 30px; padding: clamp(18px, 4vw, 48px); background: radial-gradient(120% 90% at 50% 0%, #2a3160 0%, #1B2140 60%); box-shadow: var(--shadow-lg); overflow: hidden; min-height: clamp(360px, 52vw, 560px); display: grid; place-items: center; }
.mk-desk::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 50% at 50% 100%, rgba(233,180,76,.18), transparent 70%); pointer-events: none; }
.mk-book { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; width: min(100%, 860px); aspect-ratio: 2 / 1.08; background: #fbf7ee; border-radius: 8px; box-shadow: 0 30px 60px rgba(0,0,0,.35); transition: transform .9s var(--ease), opacity .6s; }
.mk-book::before { content: ""; position: absolute; inset-block: 0; left: 50%; width: 60px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, rgba(0,0,0,.12) 45%, rgba(0,0,0,.18) 50%, rgba(0,0,0,.12) 55%, transparent); z-index: 3; pointer-events: none; }
.mk-page { position: relative; overflow: hidden; }
.mk-left { border-radius: 8px 0 0 8px; } .mk-right { border-radius: 0 8px 8px 0; padding: clamp(14px, 4%, 40px); display: flex; flex-direction: column; justify-content: center; gap: 14px; }
html[dir="rtl"] .mk-book { direction: ltr; }
.mk-photo { position: absolute; z-index: 2; margin: 0; width: 58%; left: 21%; top: 12%; background: #fff; padding: 8px 8px 28px; box-shadow: 0 12px 26px rgba(0,0,0,.22); transform: rotate(-4deg); transition: all .9s var(--ease); }
.mk-photo img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.mk-photo figcaption { position: absolute; bottom: 6px; left: 0; right: 0; text-align: center; font: italic 600 .78rem var(--font-display); color: var(--ink-2); }
.mk-art { position: absolute; inset: 0; }
.mk-lines { position: absolute; inset: 0; background: #fbf6ec; opacity: 0; clip-path: inset(0 100% 0 0); }
.mk-lines > svg, .mk-lines > img { width: 100%; height: 100%; object-fit: cover; display: block; filter: url(#mk-sketch-f); }
.mk-color { position: absolute; inset: 0; clip-path: circle(0% at 45% 78%); }
.mk-color svg, img.mk-color { width: 100%; height: 100%; object-fit: cover; }
.mk-right p { margin: 0; min-height: 3.2em; color: var(--ink); }
.mk-ar { font-family: var(--font-ar-story); font-size: clamp(.9rem, 1.9vw, 1.35rem); line-height: 1.75; }
.mk-en { font-family: var(--font-display); font-variation-settings: "SOFT" 100; font-size: clamp(.82rem, 1.6vw, 1.12rem); line-height: 1.55; color: var(--ink-2) !important; }
.mk-right b { color: var(--terra); font-weight: 700; }
.mk-caret { display: inline-block; width: 2px; height: 1em; background: var(--terra); vertical-align: -2px; animation: caret 1s steps(1) infinite; margin-inline: 1px; }
@keyframes caret { 50% { opacity: 0; } }
.mk-folio { position: absolute; bottom: 12px; right: 16px; font: italic .8rem var(--font-display); color: var(--muted); }
.mk-closed { position: absolute; z-index: 2; inset: 0; display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity .6s .3s; }
.mk-cover { width: min(42%, 300px); --ry: -32deg; transform: scale(.85); transition: transform 1.1s var(--ease); }
.mk-tag { position: absolute; bottom: 9%; background: var(--gold); color: var(--ink); font-weight: 700; font-size: .85rem; padding: 6px 14px; border-radius: 999px; transform: translateY(20px); opacity: 0; transition: all .6s .9s var(--ease); }
/* step states */
.maker[data-step="1"] .mk-photo, .maker[data-step="2"] .mk-photo { width: 26%; left: 6%; top: 6%; transform: rotate(-9deg); opacity: .0; }
.maker[data-step="1"] .mk-lines, .maker[data-step="2"] .mk-lines { opacity: 1; }
.maker[data-step="1"] .mk-lines, .maker[data-step="2"] .mk-lines { clip-path: inset(0 0 0 0); transition: clip-path 2s cubic-bezier(.45,0,.4,1) .3s; }
.maker[data-step="1"] .mk-color, .maker[data-step="2"] .mk-color { clip-path: circle(100% at 45% 78%); transition: clip-path 2.4s cubic-bezier(.4,.1,.6,1) 2.3s; }
.maker[data-step="1"] .mk-photo { opacity: .95; transition: all .9s var(--ease), opacity .6s 1.6s; }
.maker[data-step="3"] .mk-book { transform: scale(.6) rotateY(30deg); opacity: 0; }
.maker[data-step="3"] .mk-closed { opacity: 1; }
.maker[data-step="3"] .mk-cover { transform: scale(1); }
.maker[data-step="3"] .mk-tag { transform: none; opacity: 1; }
.maker[data-step="0"] .mk-lines, .maker[data-step="3"] .mk-lines { transition: none; }
.mk-steps { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.mk-steps button { width: 100%; border: 0; background: transparent; text-align: start; cursor: pointer; padding: 10px 4px; font: inherit; color: var(--muted); display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; }
.mk-n { grid-row: span 2; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .85rem; border: 1.5px solid var(--line); }
.mk-t { font-weight: 700; font-size: .92rem; line-height: 1.3; }
.mk-bar { height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; align-self: end; }
.mk-bar i { display: block; height: 100%; width: 0; background: var(--terra); }
.mk-steps li.on button { color: var(--ink); } .mk-steps li.on .mk-n { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.mk-steps li.done .mk-bar i { width: 100%; }
.mk-steps li.on .mk-bar i { animation: fillbar var(--dur, 4.2s) linear forwards; }
.maker.paused .mk-steps li.on .mk-bar i { animation: none; width: 100%; }
@keyframes fillbar { to { width: 100%; } }
@media (max-width: 720px) {
  .mk-book { grid-template-columns: 1fr; aspect-ratio: auto; width: 100%; }
  .mk-book::before { display: none; }
  .mk-left { aspect-ratio: 1; border-radius: 8px 8px 0 0; } .mk-right { border-radius: 0 0 8px 8px; min-height: 210px; }
  .mk-steps { grid-template-columns: 1fr 1fr; }
  .mk-cover { width: 60%; }
}
@media (prefers-reduced-motion: reduce) { .mk-lines { clip-path: none; } .mk-color { clip-path: none; } .mk-photo { display: none; } .mk-lines { opacity: 0; } }

/* section heads, shelf */
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.sec-head h2 { margin-bottom: 0; }
.link-more { font-weight: 700; text-decoration: none; color: var(--terra); white-space: nowrap; }
.shelf { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 23%); gap: 26px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 12px 4px 26px; scrollbar-width: thin; }
.shelf-item { scroll-snap-align: start; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 8px; }
.shelf-book { width: 88%; margin: 0 auto 10px; }
.shelf-item strong { font-family: var(--font-display); font-variation-settings: "SOFT" 100; font-size: 1.12rem; line-height: 1.25; }
html[lang="ar"] .shelf-item strong { font-family: var(--font-ar-display); }
.shelf-item small { color: var(--muted); line-height: 1.45; }
.shelf-item .pill { align-self: flex-start; }
@media (max-width: 700px) { .shelf { grid-auto-columns: 68%; } }
.pill { background: #EFE5D3; color: var(--ink-2); }
.pill-gold { background: var(--gold); color: var(--ink); }

/* ways, styles, bands */
.way { border-radius: 26px; background: var(--paper); }
.way-img { aspect-ratio: 5 / 4; }
.styles-band .style-strip img { border-radius: 18px; }
.photo-band, .final-cta, .gift-band2 { border-radius: 34px; }
.care { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.care-photo { position: relative; border-radius: 999px 999px 28px 28px; overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow-lg); }
.care-photo img { width: 100%; height: 100%; object-fit: cover; }
.care-quote { position: absolute; inset-inline: 16px; bottom: 16px; background: rgba(251,246,236,.94); backdrop-filter: blur(6px); border-radius: 18px; padding: 14px 18px; display: flex; gap: 14px; align-items: center; }
.care-quote span { font-family: "Aref Ruqaa", serif !important; font-size: 2rem; color: var(--terra); line-height: 1; }
.care-quote small { color: var(--ink-2); line-height: 1.4; }
.promises { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 28px; margin-top: 20px; }
.promises h3 { font-size: 1.15rem; margin-bottom: .3em; } .promises p { color: var(--ink-2); margin: 0; font-size: .97rem; }
.pr-n { font: italic 600 .95rem var(--font-display); color: var(--gold-d); display: block; margin-bottom: 6px; }
@media (max-width: 860px) { .care { grid-template-columns: 1fr; } .care-photo { aspect-ratio: 4 / 4; } .promises { grid-template-columns: 1fr; } }
.privacy-band { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; background: var(--ink); border-radius: 34px; }
.privacy-band a { color: var(--gold); font-weight: 700; text-decoration: none; }
.pb-mark { width: 90px; height: 90px; }
@media (max-width: 640px) { .privacy-band { grid-template-columns: 1fr; } .pb-mark { width: 60px; height: 60px; } }
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: start; }
.faq details { background: var(--paper); border-radius: 18px; padding: 18px 22px; }
.faq summary { list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.5rem/1 var(--font-display); color: var(--terra); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
@media (max-width: 860px) { .faq-wrap { grid-template-columns: 1fr; gap: 10px; } }
.final-cta .fc-copy { display: flex; flex-direction: column; align-items: center; }
.fc-mark { width: 64px; height: 64px; margin-bottom: 10px; }
.tier { border-radius: 22px; background: var(--paper); }
.tier-featured { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.tier-featured p, .tier-featured h3 { color: var(--cream); }
.tier-badge { background: var(--gold); color: var(--ink); }

/* community */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; text-decoration: none; color: var(--ink); transition: transform .3s var(--ease), box-shadow .3s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pc-img { position: relative; aspect-ratio: 1; overflow: hidden; }
.pc-img svg, .pc-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pc-badge { position: absolute; top: 12px; inset-inline-start: 12px; background: rgba(251,246,236,.94); color: var(--ink); font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.pc-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.pc-body strong { font-family: var(--font-display); font-variation-settings: "SOFT" 100; font-size: 1.15rem; line-height: 1.25; }
html[lang="ar"] .pc-body strong { font-family: var(--font-ar-display); }
.pc-body small { color: var(--gold-d); font-weight: 700; } .pc-body p { color: var(--ink-2); font-size: .94rem; margin: 6px 0 0; }
.pc-hearts { color: var(--terra); font-weight: 700; font-size: .9rem; margin-top: 6px; }
@media (max-width: 900px) { .post-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .post-grid { grid-template-columns: 1fr; } }
.locked-panel { position: relative; border-radius: 30px; overflow: hidden; border: 1px solid var(--line); background: var(--paper); }
.lp-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 24px; filter: blur(9px) saturate(.8); opacity: .7; }
.post-card.ghost { pointer-events: none; }
.lp-copy { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; background: radial-gradient(60% 60% at 50% 50%, rgba(251,246,236,.96), rgba(251,246,236,.75)); }
.lp-copy p { max-width: 520px; color: var(--ink-2); }
.lp-mark { width: 64px; height: 64px; margin-bottom: 8px; }
@media (max-width: 640px) { .lp-cards { grid-template-columns: 1fr; } }
.heart.on { background: var(--terra); color: #fff; border-color: var(--terra); }

/* sub pages */
.page-hero { text-align: center; max-width: 820px; margin: 0 auto; padding-top: clamp(32px, 6vw, 72px); }
.page-hero .lead { margin-inline: auto; max-width: 62ch; }
.stories-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.story-tile { display: grid; grid-template-columns: 42% 1fr; gap: 24px; align-items: center; padding: 26px; background: var(--paper); border: 1px solid var(--line); border-radius: 28px; text-decoration: none; color: var(--ink); transition: transform .3s var(--ease), box-shadow .3s; }
.story-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.story-tile h2 { font-size: clamp(1.3rem, 2.3vw, 1.7rem); margin: 10px 0 8px; }
.story-tile p { color: var(--ink-2); }
@media (max-width: 860px) { .stories-grid { grid-template-columns: 1fr; } .story-tile { grid-template-columns: 38% 1fr; padding: 18px; gap: 16px; } }
.crumbs { display: flex; gap: 8px; font-size: .88rem; color: var(--muted); padding-top: 22px; flex-wrap: wrap; }
.crumbs a { color: var(--ink-2); }
.story-hero { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(28px, 5vw, 70px); align-items: center; padding-top: clamp(20px, 4vw, 48px); }
.sh-book { padding: 4% 8%; }
.sh-cover { --ry: -22deg; filter: drop-shadow(0 40px 40px rgba(27,33,64,.25)); }
.sh-facts { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; margin: 18px 0; color: var(--ink-2); font-weight: 600; font-size: .95rem; }
.sh-facts li::before { content: "✦"; color: var(--gold-d); margin-inline-end: 8px; }
.sh-price { font-size: 1.05rem; }
.sh-price b { font-size: 1.35rem; font-family: var(--font-display); }
@media (max-width: 860px) { .story-hero { grid-template-columns: 1fr; } .sh-book { max-width: 420px; margin: 0 auto; } .sh-facts { grid-template-columns: 1fr; } }
.spreads2 { display: grid; gap: 28px; margin-top: 20px; }
.spread2 { margin: 0; display: grid; grid-template-columns: 1fr 1fr; background: #fbf7ee; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-lg); position: relative; }
.spread2::before { content: ""; position: absolute; inset-block: 0; left: 50%; width: 50px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, rgba(0,0,0,.1) 50%, transparent); z-index: 2; }
html[dir="rtl"] .spread2 { direction: ltr; }
.sp-art { aspect-ratio: 1; position: relative; } .sp-art img, .sp-art svg, .sp-art-fallback, .sp-art-fallback svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.spread2 figcaption { padding: clamp(18px, 5%, 48px); display: flex; flex-direction: column; justify-content: center; gap: 14px; position: relative; }
.spread2 figcaption p { margin: 0; }
.spread2 figcaption [lang="ar"] { font-family: var(--font-ar-story); font-size: clamp(1rem, 1.8vw, 1.3rem); line-height: 1.8; }
.spread2 figcaption [lang="en"] { font-family: var(--font-display); font-variation-settings: "SOFT" 100; color: var(--ink-2); font-size: clamp(.95rem, 1.6vw, 1.12rem); }
@media (max-width: 700px) { .spread2 { grid-template-columns: 1fr; } .spread2::before { display: none; } }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 16px; }
.features > div { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 22px; }
.ft-mark { width: 34px; height: 34px; margin-bottom: 10px; }
.features p { color: var(--ink-2); margin: 0; }
@media (max-width: 860px) { .features { grid-template-columns: 1fr 1fr; } } @media (max-width: 560px) { .features { grid-template-columns: 1fr; } }
.about-split { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.about-photo { position: sticky; top: 100px; border-radius: 999px 999px 28px 28px; overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow-lg); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.prose h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); margin-top: 1.2em; }
.prose p { color: var(--ink-2); font-size: 1.05rem; line-height: 1.75; }
@media (max-width: 860px) { .about-split { grid-template-columns: 1fr; } .about-photo { position: static; aspect-ratio: 16 / 11; } }
.page-prose { max-width: 760px; margin: 0 auto; }
.post-cover { position: relative; aspect-ratio: 1; border-radius: 6px 14px 14px 6px; overflow: hidden; box-shadow: var(--shadow-lg); }
.post-cover svg, .post-cover img { width: 100%; height: 100%; object-fit: cover; }
.post-cover .b3-title { container-type: normal; font-size: clamp(1.1rem, 3vw, 1.8rem); color: #fff8ec; }
.share-card summary { cursor: pointer; display: flex; flex-direction: column; gap: 4px; list-style: none; }
.share-card summary span { font-weight: 700; font-size: 1.1rem; } .share-card summary small { color: var(--muted); }
.share-pages { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 8px; }
.share-pages label { position: relative; cursor: pointer; } .share-pages img { aspect-ratio: 1; object-fit: cover; border-radius: 10px; border: 3px solid transparent; }
.share-pages input { position: absolute; top: 6px; inset-inline-start: 6px; } .share-pages input:checked + img { border-color: var(--terra); }
.share-pages span { position: absolute; bottom: 4px; inset-inline-end: 8px; color: #fff; font-weight: 700; text-shadow: 0 1px 3px #000; }
.acc-posts { list-style: none; padding: 0; display: grid; gap: 8px; } .acc-posts li { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* footer */
.site-footer { background: var(--ink); color: #D9D6E4; margin-top: clamp(64px, 10vw, 120px); border-top: 0; padding: 0; }
.site-footer .footer-inner { max-width: 1200px; margin: 0 auto; padding: clamp(40px, 6vw, 72px) clamp(16px, 4vw, 48px) 32px; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; text-align: start; }
.f-brand p { color: #B9B6C9; max-width: 34ch; margin-top: 16px; }
.f-mabrook { font-family: "Aref Ruqaa", serif !important; font-size: 1.6rem; color: var(--gold) !important; }
.f-mabrook span { font-family: var(--font-body); font-size: .9rem; color: #B9B6C9; }
.f-col { display: flex; flex-direction: column; gap: 9px; }
.f-col h2 { font: 700 .74rem/1 var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin: 6px 0 8px; }
.f-col a { color: #E6E3EF; text-decoration: none; font-size: .95rem; } .f-col a:hover { color: #fff; text-decoration: underline; }
.footer-base { max-width: 1200px; margin: 0 auto; padding: 18px clamp(16px, 4vw, 48px) 30px; border-top: 1px solid rgba(255,255,255,.1); display: flex; gap: 18px; flex-wrap: wrap; justify-content: space-between; font-size: .85rem; color: #9C99AE; }
.footer-base a { color: #D9D6E4; }
.footer-base .lang-switch { border: 1px solid rgba(255,255,255,.2); padding: 4px 12px; border-radius: 999px; text-decoration: none; }
@media (max-width: 860px) { .site-footer .footer-inner { grid-template-columns: 1fr 1fr; } .f-brand { grid-column: 1 / -1; } }

/* reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .marquee .mq-track, .arch img, .hero3-book, .twinkle path, .mark-star { animation: none !important; } }
body.home .section:first-of-type { padding-top: 0; }
html, body { overflow-x: clip; }
.tier-featured .price, .tier-featured .price span, .tier-featured small, .tier-featured em { color: var(--cream) !important; }
.tier-featured .price span { color: var(--gold) !important; }
.book3d.small { width: 150px; flex: none; }
.story-pick .book3d { width: 84px; --ry: -18deg; }
.own-card .book3d, .title-card .book3d { width: 86%; margin: 0 auto 8px; }
.lab-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.lab-grid figure { margin: 0; } .lab-grid img, .lab-grid .ph { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: #eee; display: grid; place-items: center; text-align: center; padding: 8px; }
.lab-grid figcaption { font-size: .85rem; margin-top: 6px; }
.bo-post { display: grid; grid-template-columns: 220px 1fr; gap: 16px; } @media (max-width: 700px) { .bo-post { grid-template-columns: 1fr; } }
/* art styles everywhere */
.style-tag { color: var(--gold-d) !important; font-weight: 700; font-size: .8rem !important; letter-spacing: .02em; }
.style-stack { position: relative; }
.style-stack > .book3d:not(.on) { display: none; }
.style-stack > .book3d.on { animation: stylein .5s var(--ease); }
@keyframes stylein { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
.style-switch { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 18px; }
.style-switch button { border: 1.5px solid var(--line); background: var(--paper); border-radius: 999px; padding: 7px 13px; font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; color: var(--ink-2); }
.style-switch button[aria-pressed="true"] { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.mk-style { position: absolute; inset: 0; opacity: 0; transition: opacity .55s ease; }
.mk-style.on { opacity: 1; }
.mk-style svg, .mk-style img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mk-stylename { position: absolute; z-index: 3; bottom: 12px; left: 12px; background: rgba(251,246,236,.95); color: var(--ink); font-weight: 700; font-size: .8rem; padding: 5px 12px; border-radius: 999px; opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .4s; pointer-events: none; }
.maker[data-step="1"] .mk-stylename { opacity: 1; transform: none; transition-delay: 4.7s; }
.mk-stylename.pop { animation: pop .5s var(--ease); }
@keyframes pop { 0% { transform: scale(.85); } 60% { transform: scale(1.06); } 100% { transform: scale(1); } }
