/* =====================================================================
   Sar-kitab v2 page layer (prototype) — "opening the book"
   Decoration only: every ornament is CSS, SVG, canvas or aria-hidden JS.
   ===================================================================== */
html.zp {
  --zp-bg: #07051a; --zp-bg-2: #0e0a26; --zp-ink: #f4efe2; --zp-muted: #c9bfe6; --zp-soft: #9d93bd;
  --zp-gold: #f2c46d; --zp-gold-2: #e0a63e; --zp-gold-3: #fff0c4; --zp-lapis: #3b5bdb; --zp-violet: #8b5cf6; --zp-rose: #f472b6; --zp-teal: #2dd4bf;
  --zp-card: linear-gradient(165deg, rgba(30, 22, 64, .78), rgba(14, 10, 34, .72));
  --zp-card-brd: rgba(242, 196, 109, .22); --zp-card-brd-hi: rgba(242, 196, 109, .55);
  --zp-page: linear-gradient(170deg, #fbf3df 0%, #f3e4c2 100%); --zp-page-ink: #2a1a08; --zp-page-muted: #6b5634;
  --zp-shadow: 0 30px 80px -40px rgba(0, 0, 0, .85), 0 1px 0 rgba(255, 255, 255, .06) inset;
  --zp-head: linear-gradient(100deg, #fff0c4 0%, #f2c46d 35%, #e9b8ff 70%, #a5b4fc 100%);
  --zp-glyph: rgba(242, 196, 109, .13);
  --zp-r: 26px; --zp-ease: cubic-bezier(.2, .7, .2, 1);
}
html.zp[data-theme="light"] {
  --zp-bg: #f6eedb; --zp-bg-2: #efe2c4; --zp-ink: #24160a; --zp-muted: #5b4528; --zp-soft: #85704f;
  --zp-gold: #a8741a; --zp-gold-2: #8a5a10; --zp-gold-3: #c99a3e; --zp-lapis: #1e3a8a; --zp-violet: #6d28d9; --zp-rose: #be185d; --zp-teal: #0f766e;
  --zp-card: linear-gradient(165deg, rgba(255, 252, 244, .93), rgba(250, 242, 224, .9));
  --zp-card-brd: rgba(150, 104, 30, .22); --zp-card-brd-hi: rgba(150, 104, 30, .5);
  --zp-shadow: 0 30px 70px -42px rgba(110, 70, 20, .55), 0 1px 0 rgba(255, 255, 255, .9) inset;
  --zp-head: linear-gradient(100deg, #1e2a78 0%, #3b1e8a 45%, #8a5a10 100%);
  --zp-glyph: rgba(150, 104, 30, .14);
}
html.zp, html.zp body { background: var(--zp-bg); color: var(--zp-ink); }
html.zp body { font-family: Vazirmatn, "Segoe UI", Tahoma, sans-serif; overflow-x: clip; }
html.zp main, html.zp .tl-page { background: transparent; position: relative; z-index: 1; }
html.zp .tl-page { overflow-x: clip; }

/* ---------- sky (fixed, behind everything) ---------- */
.zpsk-sky { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.zpsk-sky canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.zpsk-sky::before { content: ""; position: absolute; inset: -20%; background:
  radial-gradient(40% 32% at 18% 22%, rgba(139, 92, 246, .22), transparent 70%),
  radial-gradient(36% 30% at 85% 55%, rgba(59, 91, 219, .18), transparent 70%),
  radial-gradient(30% 26% at 40% 90%, rgba(242, 196, 109, .10), transparent 70%);
  animation: zpNeb 60s ease-in-out infinite alternate; }
html.zp[data-theme="light"] .zpsk-sky::before { background:
  radial-gradient(40% 32% at 18% 22%, rgba(201, 154, 62, .18), transparent 70%),
  radial-gradient(36% 30% at 85% 55%, rgba(59, 91, 219, .08), transparent 70%),
  radial-gradient(30% 26% at 40% 90%, rgba(190, 24, 93, .06), transparent 70%); }
html.zp[data-theme="light"] .zpsk-sky::after { content: ""; position: absolute; inset: 0; opacity: .5; background-image:
  radial-gradient(rgba(138, 90, 16, .10) 1px, transparent 1.4px); background-size: 7px 7px; mix-blend-mode: multiply; }
@keyframes zpNeb { to { transform: translate3d(3%, -2%, 0) scale(1.06); } }

/* floating abjad glyphs (aria-hidden layer injected per section) */
.zpsk-glyphs { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.zpsk-glyphs span { position: absolute; font-weight: 800; color: var(--zp-glyph); font-size: var(--s, 40px); line-height: 1; animation: zpFloat var(--d, 22s) ease-in-out infinite alternate; }
.zpsk-glyphs span small { display: block; font-size: .32em; text-align: center; font-weight: 600; opacity: .9; }
@keyframes zpFloat { from { transform: translate3d(0, 0, 0) rotate(-4deg); } to { transform: translate3d(10px, -26px, 0) rotate(5deg); } }

/* ---------- seamless sections ---------- */
html.zp .tl-page > .section, html.zp .tl-page > section { position: relative; isolation: isolate; background: none !important; border: 0 !important; box-shadow: none !important; }
html.zp .tl-page > .section::before, html.zp .tl-page > .section::after { content: none; }
html.zp .tl-page .section { padding-block: clamp(44px, 5.5vw, 84px); }
html.zp .tl-page .container { max-width: 1200px; padding-inline: clamp(16px, 4vw, 40px); position: relative; z-index: 1; }
html.zp .section__head { text-align: center; max-width: 760px; margin: 0 auto clamp(28px, 4vw, 48px); position: relative; }
html.zp .section__head::before { content: ""; position: absolute; left: 50%; top: 50%; width: 300px; height: 300px; transform: translate(-50%, -50%); z-index: -1; opacity: .16;
  background: var(--zp-gold); -webkit-mask: var(--v2-seal) center / contain no-repeat; mask: var(--v2-seal) center / contain no-repeat; animation: zpSpin 120s linear infinite; }
@keyframes zpSpin { to { transform: translate(-50%, -50%) rotate(360deg); } }
html.zp .section__head h2, html.zp .tool-seo h2, html.zp .tl-join h2 { font-size: clamp(1.6rem, 3.1vw, 2.45rem); line-height: 1.5; font-weight: 900; margin: .4rem 0 .5rem;
  background: var(--zp-head); -webkit-background-clip: text; background-clip: text; color: transparent; }
html.zp .section__head p { color: var(--zp-muted); margin: 0; }
html.zp .section__head::after { content: ""; display: block; width: 220px; height: 16px; margin: 14px auto 0; background: center / contain no-repeat
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 16'%3E%3Cg fill='none' stroke='%23e0a63e' stroke-width='1'%3E%3Cpath d='M0 8h84M136 8h84'/%3E%3Cpath d='M110 1l7 7-7 7-7-7z'/%3E%3Ccircle cx='92' cy='8' r='2'/%3E%3Ccircle cx='128' cy='8' r='2'/%3E%3C/g%3E%3Ccircle cx='110' cy='8' r='2.2' fill='%23f2c46d'/%3E%3C/svg%3E"); }
html.zp .eyebrow { display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .9rem; border-radius: 999px; font-size: .82rem; font-weight: 700; color: var(--zp-gold);
  background: color-mix(in srgb, var(--zp-gold) 10%, transparent); border: 1px solid var(--zp-card-brd); }
html.zp .eyebrow .ico { width: 1.05em; height: 1.05em; }

/* generic card */
html.zp .tl-page .card { background: var(--zp-card); border: 1px solid var(--zp-card-brd); border-radius: var(--zp-r); box-shadow: var(--zp-shadow); color: var(--zp-ink);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
html.zp .tl-page .btn-primary { background: linear-gradient(120deg, #f6d38a 0%, #f2c46d 30%, #e9a3ff 75%, #a78bfa 100%); color: #1d0f2e; border: 0; font-weight: 800;
  box-shadow: 0 14px 34px -14px rgba(242, 196, 109, .8), 0 1px 0 rgba(255, 255, 255, .5) inset; }
html.zp[data-theme="light"] .tl-page .btn-primary { background: linear-gradient(120deg, #c99a3e 0%, #a8741a 40%, #6d28d9 100%); color: #fff; box-shadow: 0 14px 30px -14px rgba(110, 70, 20, .7); }
html.zp .tl-page .btn-ghost { color: var(--zp-ink); background: color-mix(in srgb, var(--zp-ink) 6%, transparent); border: 1px solid var(--zp-card-brd); }
html.zp .tl-page .btn-ghost:hover { border-color: var(--zp-card-brd-hi); }
html.zp .tl-page .btn { border-radius: 14px; transition: transform .25s var(--zp-ease), box-shadow .25s, border-color .25s; }
html.zp .tl-page .btn:hover { transform: translateY(-2px); }

/* ---------- 1. HERO: the open book ---------- */
html.zp .tl-hero-banner { min-height: clamp(460px, 66vh, 660px) !important; align-items: center; margin-bottom: 0; overflow: hidden; }
html.zp .tl-hero-banner__img { object-position: center 38% !important; transform: scale(1.04); animation: zpKen 40s ease-in-out infinite alternate; }
@keyframes zpKen { to { transform: scale(1.12) translate3d(-1.5%, -1%, 0); } }
html.zp .tl-hero-banner__shade { background:
  radial-gradient(70% 60% at 50% 46%, rgba(7, 5, 26, .55), rgba(7, 5, 26, .2) 60%, transparent 80%),
  linear-gradient(180deg, rgba(7, 5, 26, .25) 0%, rgba(7, 5, 26, .1) 40%, var(--zp-bg) 98%) !important; z-index: 1; }
html.zp[data-theme="light"] .tl-hero-banner__shade { background:
  radial-gradient(70% 60% at 50% 46%, rgba(246, 238, 219, .82), rgba(246, 238, 219, .45) 62%, rgba(246, 238, 219, .15) 85%),
  linear-gradient(180deg, rgba(246, 238, 219, .2) 0%, transparent 40%, var(--zp-bg) 98%) !important; }
html.zp .tl-hero-banner__content { z-index: 3; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; padding-block: 72px 96px !important; min-height: 0 !important; }
html.zp .tl-hero-banner__img { min-height: 0 !important; }
html.zp .tl-page--journey > #try { padding-top: 8px; }
html.zp #try .section__head { margin-bottom: 22px; }
html.zp #try .section__head::before { width: 160px; height: 160px; }
body.shot .cookie-bar, body.shot .skip-link { display: none !important; }
html.zp .tl-hero__badge { display: inline-flex; align-items: center; gap: .5rem; padding: .45rem 1rem; border-radius: 999px; font-weight: 700; font-size: .9rem; color: var(--zp-gold-3);
  background: rgba(14, 10, 34, .55); border: 1px solid rgba(242, 196, 109, .45); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
html.zp[data-theme="light"] .tl-hero__badge { color: var(--zp-gold-2); background: rgba(255, 250, 238, .8); }
html.zp .tl-hero-banner h1 { font-size: clamp(2rem, 4.6vw, 3.6rem); line-height: 1.45; font-weight: 900; max-width: 15ch; margin: 1rem auto .7rem; text-wrap: balance;
  background: linear-gradient(100deg, #fff7dd 0%, #f2c46d 40%, #f0c6ff 80%, #c4b5fd 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 24px rgba(7, 5, 26, .7)); }
html.zp[data-theme="light"] .tl-hero-banner h1 { background: linear-gradient(100deg, #1e2a78, #4c1d95 50%, #8a5a10); -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 2px 14px rgba(255, 250, 238, .9)); }
html.zp .tl-hero__lead { font-size: clamp(1rem, 1.6vw, 1.2rem); color: #f1e9ff; max-width: 40ch; margin: 0 auto 1.4rem; text-shadow: 0 2px 14px rgba(0, 0, 0, .7); }
html.zp[data-theme="light"] .tl-hero__lead { color: #3a2a12; text-shadow: 0 1px 10px rgba(255, 250, 238, .9); }
html.zp .tl-page:not(.tl-page--journey) .tl-hero__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
html.zp .tl-hero__actions .btn { min-height: 52px; padding-inline: 1.6rem; }
html.zp .tl-trial-pill { margin-top: 1rem; display: inline-block; padding: .3rem .9rem; border-radius: 999px; font-size: .82rem; color: #d1fae5; background: rgba(16, 185, 129, .16); border: 1px solid rgba(52, 211, 153, .35); }
html.zp[data-theme="light"] .tl-trial-pill { color: #065f46; background: rgba(16, 185, 129, .12); }
/* injected hero decor: tazhib arch + 28 mansions ring + candles */
.zpsk-hero-decor { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.zpsk-ring { position: absolute; left: 50%; top: 50%; width: min(860px, 96vw); aspect-ratio: 1; transform: translate(-50%, -50%); opacity: .55; }
.zpsk-ring svg { width: 100%; height: 100%; animation: zpRot 180s linear infinite; }
.zpsk-ring text { font: 700 15px Vazirmatn, sans-serif; fill: var(--zp-gold); }
@keyframes zpRot { to { transform: rotate(360deg); } }
html.zp[data-theme="light"] .zpsk-ring { opacity: .45; }
.zpsk-candle { position: absolute; bottom: 9%; width: 14px; height: 70px; border-radius: 4px; background: linear-gradient(90deg, #e9dcc0, #fff8e6 45%, #d8c7a2); box-shadow: 0 0 30px rgba(255, 190, 90, .25); }
.zpsk-candle::before { content: ""; position: absolute; left: 50%; top: -24px; width: 12px; height: 24px; margin-left: -6px; border-radius: 50% 50% 45% 45% / 65% 65% 35% 35%;
  background: radial-gradient(circle at 50% 70%, #fff 0 18%, #ffd36b 40%, #ff8a2b 75%, transparent 78%); filter: blur(.3px); transform-origin: 50% 100%; animation: zpFlame 1.6s ease-in-out infinite alternate; }
.zpsk-candle::after { content: ""; position: absolute; left: 50%; top: -60px; width: 120px; height: 120px; margin-left: -60px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 200, 110, .35), transparent 65%); animation: zpGlow 2.4s ease-in-out infinite alternate; }
@keyframes zpFlame { 0% { transform: scale(1, 1) rotate(-2deg); } 50% { transform: scale(.92, 1.08) rotate(2deg); } 100% { transform: scale(1.04, .95) rotate(-1deg); } }
@keyframes zpGlow { from { opacity: .7; } to { opacity: 1; transform: scale(1.08); } }
.zpsk-candle--a { right: 7%; } .zpsk-candle--b { right: calc(7% + 26px); height: 50px; } .zpsk-candle--c { left: 7%; height: 60px; }
.zpsk-scroll-cue { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border-radius: 14px; border: 1.5px solid var(--zp-card-brd-hi); }
.zpsk-scroll-cue::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--zp-gold); animation: zpCue 1.8s ease-in-out infinite; }
@keyframes zpCue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- 2. intro: an illuminated manuscript page ---------- */
html.zp .tool-seo__intro.card { position: relative; max-width: 980px; margin: 0 auto; padding: clamp(28px, 5vw, 64px) clamp(22px, 6vw, 80px); background: var(--zp-page); color: var(--zp-page-ink);
  border: 0; border-radius: 10px; box-shadow: 0 40px 90px -45px rgba(0, 0, 0, .9), 0 0 0 1px rgba(168, 116, 26, .35), 0 0 0 10px rgba(242, 196, 109, .07); -webkit-backdrop-filter: none; backdrop-filter: none; }
html.zp .tool-seo__intro.card::before { content: ""; position: absolute; inset: 14px; border: 2px solid rgba(168, 116, 26, .55); border-radius: 6px; pointer-events: none;
  box-shadow: inset 0 0 0 4px rgba(251, 243, 223, 1), inset 0 0 0 5px rgba(30, 58, 138, .45); }
html.zp .tool-seo__intro.card::after { content: ""; position: absolute; inset: 6px; pointer-events: none; background:
  var(--zp-corner) top right / 86px no-repeat, var(--zp-corner) top left / 86px no-repeat, var(--zp-corner) bottom right / 86px no-repeat, var(--zp-corner) bottom left / 86px no-repeat; }
html.zp .tool-seo__intro.card { --zp-corner: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 86 86'%3E%3Cg fill='none' stroke='%23a8741a' stroke-width='1.2'%3E%3Ccircle cx='43' cy='43' r='16'/%3E%3Ccircle cx='43' cy='43' r='9' stroke='%231e3a8a'/%3E%3Cpath d='M43 13l6 14 14-6-6 14 14 6-14 6 6 14-14-6-6 14-6-14-14 6 6-14-14-6 14-6-6-14 14 6z'/%3E%3C/g%3E%3Ccircle cx='43' cy='43' r='3.5' fill='%23c99a3e'/%3E%3C/svg%3E"); }
html.zp .tool-seo__badge { position: relative; z-index: 1; display: table; margin: 0 auto 6px; padding: .3rem .9rem; border-radius: 999px; font-size: .82rem; font-weight: 700; color: #7a4f0e; background: rgba(168, 116, 26, .1); border: 1px solid rgba(168, 116, 26, .35); }
html.zp .tool-seo__intro-body { position: relative; z-index: 1; }
html.zp .tool-seo__intro-body h2 { text-align: center; background: linear-gradient(100deg, #1e2a78, #4c1d95 55%, #8a5a10); -webkit-background-clip: text; background-clip: text; color: transparent; }
html.zp .tool-seo__intro-body p { color: #3b2a12; font-size: 1.04rem; line-height: 2.2; text-align: justify; }
html.zp .tool-seo__intro-body p:first-of-type::first-letter { float: right; font-size: 3.6em; line-height: .9; font-weight: 900; color: #1e3a8a; margin: .18em 0 0 .3em; padding: .1em .22em; border-radius: 10px;
  background: radial-gradient(circle, rgba(242, 196, 109, .35), rgba(242, 196, 109, .08)); box-shadow: 0 0 0 1px rgba(168, 116, 26, .45); }
html.zp .tool-seo__intro-body a { color: #1e3a8a; text-decoration-color: rgba(168, 116, 26, .6); text-underline-offset: 5px; }
.zpsk-margin { position: absolute; top: 50%; transform: translateY(-50%); width: 34px; display: flex; flex-direction: column; align-items: center; gap: 14px; color: rgba(168, 116, 26, .6); font-weight: 800; font-size: 14px; z-index: 1; }
.zpsk-margin--r { right: -54px; } .zpsk-margin--l { left: -54px; }
.zpsk-margin i { width: 8px; height: 8px; transform: rotate(45deg); background: rgba(168, 116, 26, .45); }
@media (max-width: 1120px) { .zpsk-margin { display: none; } }

/* four-sentence summary: a sealed scroll */
html.zp .tool-opening { max-width: 980px; padding: 28px clamp(16px, 4vw, 40px) 0 !important; margin: 0 auto; }
html.zp .tool-opening .faq-item { border-radius: 18px; background: var(--zp-card); border: 1px solid var(--zp-card-brd); box-shadow: var(--zp-shadow); overflow: hidden; }
html.zp .tool-opening summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 16px 20px; font-weight: 800; color: var(--zp-ink); }
html.zp .tool-opening summary::-webkit-details-marker { display: none; }
html.zp .tool-opening summary::before { content: ""; width: 34px; height: 34px; flex: none; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffd98f, #b8741a 60%, #7a4a0c); box-shadow: 0 0 0 3px rgba(242, 196, 109, .2), 0 6px 14px -6px rgba(0, 0, 0, .6); }
html.zp .tool-opening summary::after { content: "+"; margin-inline-start: auto; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: var(--zp-gold); border: 1px solid var(--zp-card-brd); transition: transform .3s; }
html.zp .tool-opening details[open] summary::after { transform: rotate(45deg); }
html.zp .tool-opening details p { margin: 0; padding: 0 20px 12px 20px; padding-inline-start: 66px; color: var(--zp-muted); line-height: 2; }
html.zp .tool-opening details p b { color: var(--zp-gold); }
html.zp .tool-opening details[open] p:last-child { padding-bottom: 20px; }

/* ---------- 3. TRY: the ritual ---------- */
  background: none; border: 0; box-shadow: none; padding: 0; }
html.zp .tool-trial__locked:not([hidden]) { display: grid; justify-items: center; gap: 12px; text-align: center; padding: 28px; border-radius: 22px; background: var(--zp-card); border: 1px solid var(--zp-card-brd-hi); margin-top: 20px; }
html.zp .tool-trial__locked p { margin: 0; color: var(--zp-ink); font-weight: 700; }
html.zp .jrn-trust { display: inline-block; margin-top: 6px !important; color: var(--zp-teal) !important; font-weight: 700; font-size: .9rem; }
html.zp .tool-trial__form { position: relative; display: grid; gap: 16px; padding: clamp(22px, 3vw, 34px); border-radius: var(--zp-r); background: var(--zp-card); border: 1px solid var(--zp-card-brd);
  box-shadow: var(--zp-shadow); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
html.zp .tool-trial__form::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(242, 196, 109, .7), transparent 35%, transparent 65%, rgba(167, 139, 250, .6)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
html.zp .tool-trial__form .form-field { display: grid; gap: 8px; margin: 0; }
html.zp .tool-trial__form .form-field > span { font-weight: 700; color: var(--zp-ink); font-size: .95rem; display: flex; align-items: center; gap: 8px; }
html.zp .tool-trial__form .form-field > span::before { content: attr(data-sk-n); display: none; }
html.zp .tool-trial__form input[type="text"], html.zp .tool-trial__form select { width: 100%; min-height: 54px; padding: 0 16px; border-radius: 14px; font: inherit; font-size: 1.05rem; color: var(--zp-ink);
  background: color-mix(in srgb, var(--zp-bg) 70%, transparent); border: 1px solid var(--zp-card-brd); transition: border-color .2s, box-shadow .2s; }
html.zp[data-theme="light"] .tool-trial__form input[type="text"], html.zp[data-theme="light"] .tool-trial__form select { background: #fffdf7; }
html.zp .tool-trial__form input[type="text"]:focus, html.zp .tool-trial__form select:focus { outline: none; border-color: var(--zp-gold); box-shadow: 0 0 0 4px color-mix(in srgb, var(--zp-gold) 22%, transparent); }
html.zp .tool-trial__form input::placeholder { color: var(--zp-soft); }
html.zp .tool-trial__form .form-field--check { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px dashed var(--zp-card-brd); }
html.zp .tool-trial__form .form-field--check > span { font-weight: 600; color: var(--zp-muted); }
html.zp .tool-trial__form .form-field--check input { width: 22px; height: 22px; accent-color: var(--zp-gold-2); }
html.zp .tool-trial__foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
html.zp .tool-trial__foot .btn { min-height: 56px; min-width: 200px; font-size: 1.08rem; }
html.zp .tool-trial__quota { font-size: .85rem; color: var(--zp-soft); }
html.zp .zm-result-notes { margin-top: 0; }
html.zp .zm-result-note--disclaimer { font-size: .82rem; color: var(--zp-soft); text-align: center; margin: 4px 0 0; }
/* injected: ritual stepper + niyyat */
.zpsk-steps { display: flex; gap: 6px; margin: 0 0 4px; padding: 0; list-style: none; counter-reset: zps; }
.zpsk-steps li { flex: 1; position: relative; text-align: center; font-size: .74rem; font-weight: 700; color: var(--zp-soft); padding-top: 30px; transition: color .3s; }
.zpsk-steps li::before { counter-increment: zps; content: attr(data-a); position: absolute; top: 0; left: 50%; width: 26px; height: 26px; margin-left: -13px; border-radius: 50%; display: grid; place-items: center;
  font-size: .8rem; color: var(--zp-soft); border: 1px solid var(--zp-card-brd); background: var(--zp-bg); transition: .3s; z-index: 1; }
/* connector: from this circle's edge to the previous (right-hand, RTL) circle's edge — never through a circle, never past the card */
.zpsk-steps li::after { content: ""; position: absolute; z-index: 0; top: 12.5px; left: calc(50% + 17px); width: calc(100% + 6px - 34px); height: 1.5px; border-radius: 2px; background: var(--zp-card-brd); transition: background .3s; }
[dir="ltr"] .zpsk-steps li::after { left: auto; right: calc(50% + 17px); }
.zpsk-steps li:first-child::after { display: none; }
.zpsk-steps li.is-on { color: var(--zp-ink); }
.zpsk-steps li.is-on::before { color: #1d0f2e; background: var(--zp-gold); border-color: var(--zp-gold); box-shadow: 0 0 16px color-mix(in srgb, var(--zp-gold) 60%, transparent); }
.zpsk-steps li.is-on::after { background: var(--zp-gold); }
.zpsk-niyyat { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 16px; background: color-mix(in srgb, var(--zp-gold) 7%, transparent); border: 1px solid var(--zp-card-brd); }
.zpsk-niyyat__candle { position: relative; flex: none; width: 34px; height: 46px; border: 0; padding: 0; background: none; cursor: pointer; }
.zpsk-niyyat__candle i { position: absolute; bottom: 0; left: 50%; width: 12px; height: 28px; margin-left: -6px; border-radius: 3px; background: linear-gradient(90deg, #e9dcc0, #fff8e6 45%, #d8c7a2); }
.zpsk-niyyat__candle b { position: absolute; left: 50%; bottom: 28px; width: 10px; height: 16px; margin-left: -5px; border-radius: 50% 50% 45% 45% / 65% 65% 35% 35%; opacity: 0; transform: scale(.3); transform-origin: 50% 100%;
  background: radial-gradient(circle at 50% 70%, #fff 0 18%, #ffd36b 40%, #ff8a2b 75%, transparent 78%); transition: .5s; }
.zpsk-niyyat.is-lit .zpsk-niyyat__candle b { opacity: 1; transform: none; animation: zpFlame 1.6s ease-in-out infinite alternate; }
.zpsk-niyyat.is-lit { box-shadow: 0 0 40px -10px rgba(255, 190, 90, .5); }
.zpsk-niyyat__txt { flex: 1; min-width: 0; font-size: .86rem; line-height: 1.8; color: var(--zp-muted); }
.zpsk-niyyat__txt strong { display: block; color: var(--zp-ink); font-size: .95rem; }
.zpsk-niyyat__btn { flex: none; font: inherit; font-size: .82rem; font-weight: 700; padding: .5rem .9rem; border-radius: 12px; cursor: pointer; color: var(--zp-gold); background: transparent; border: 1px solid var(--zp-card-brd-hi); }
.zpsk-niyyat.is-lit .zpsk-niyyat__btn { color: var(--zp-teal); border-color: color-mix(in srgb, var(--zp-teal) 50%, transparent); }
.zpsk-beads { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; max-width: 100%; }
.zpsk-beads i { width: 6px; height: 6px; border-radius: 50%; background: color-mix(in srgb, var(--zp-gold) 25%, transparent); transition: background .2s, box-shadow .2s; }
.zpsk-beads i.on { background: var(--zp-gold); box-shadow: 0 0 8px var(--zp-gold); }
.zpsk-namecard { font-size: .84rem; color: var(--zp-soft); text-align: center; min-height: 1.6em; }
.zpsk-namecard b { color: var(--zp-gold); font-weight: 800; }
.zpsk-err { color: #fb7185; font-size: .85rem; font-weight: 700; }
html.zp[data-theme="light"] .zpsk-err { color: #be123c; }

/* injected: the stage (book / letters / wheel) */
.zpsk-stage { position: relative; aspect-ratio: 1 / 1.02; border-radius: 30px; overflow: hidden; isolation: isolate;
  background: radial-gradient(80% 70% at 50% 40%, rgba(59, 41, 140, .55), rgba(14, 10, 34, .9) 70%), #0b0820; border: 1px solid var(--zp-card-brd); box-shadow: var(--zp-shadow); }
html.zp[data-theme="light"] .zpsk-stage { background: radial-gradient(80% 70% at 50% 40%, rgba(255, 246, 222, 1), rgba(240, 225, 190, 1) 75%); }
.zpsk-stage__ring { position: absolute; inset: 4%; opacity: .9; }
.zpsk-stage__ring svg { width: 100%; height: 100%; }
.zpsk-stage__ring .zpsk-wheel { transform-origin: 50% 50%; transition: transform 2.2s cubic-bezier(.15, .8, .2, 1); }
.zpsk-stage__ring .zpsk-l28 { animation: zpRot 200s linear infinite; transform-origin: 50% 50%; }
.zpsk-stage__ring text { font: 700 13px Vazirmatn, sans-serif; fill: var(--zp-gold); }
.zpsk-stage__ring .zpsk-seg { fill: transparent; stroke: rgba(242, 196, 109, .25); transition: fill .3s; }
.zpsk-stage__ring .zpsk-seg.on { fill: rgba(242, 196, 109, .22); }
.zpsk-stage__ring .zpsk-seg.hit { fill: rgba(242, 196, 109, .5); }
.zpsk-stage__ring image { opacity: .85; }
.zpsk-pointer { position: absolute; top: 2.5%; left: 50%; width: 22px; height: 30px; margin-left: -11px; z-index: 3;
  background: linear-gradient(#fff0c4, #e0a63e); clip-path: polygon(50% 100%, 0 0, 100% 0); filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .5)); }
.zpsk-stage__core { position: absolute; inset: 24%; border-radius: 50%; display: grid; place-items: center; text-align: center; z-index: 2;
  background: radial-gradient(circle, rgba(20, 14, 48, .95), rgba(20, 14, 48, .78) 70%, transparent 72%); }
html.zp[data-theme="light"] .zpsk-stage__core { background: radial-gradient(circle, rgba(255, 251, 240, .97), rgba(255, 251, 240, .85) 70%, transparent 72%); }
.zpsk-book { width: 78%; }
.zpsk-book svg { width: 100%; height: auto; overflow: visible; }
.zpsk-book .pg { transform-origin: 50% 100%; }
.zpsk-stage[data-phase="idle"] .zpsk-book .glow { animation: zpGlow 2.4s ease-in-out infinite alternate; }
.zpsk-calc { position: absolute; inset: 0; z-index: 4; display: none; flex-direction: column; justify-content: center; align-items: center; gap: 12px; padding: 7%; text-align: center; }
.zpsk-stage[data-phase="letters"] .zpsk-calc { display: flex; background: radial-gradient(circle at 50% 50%, rgba(20, 14, 48, .97), rgba(7, 5, 26, .95)); }
.zpsk-stage[data-phase="letters"] .zpsk-stage__core { opacity: 0; }
html.zp[data-theme="light"] .zpsk-stage[data-phase="letters"] .zpsk-calc { background: radial-gradient(circle at 50% 50%, rgba(255, 251, 240, .98), rgba(246, 236, 212, .96)); }
.zpsk-calc__who { font-size: .9rem; color: var(--zp-muted); font-weight: 700; }
.zpsk-calc__who b { color: var(--zp-gold); }
.zpsk-tiles { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; direction: rtl; }
.zpsk-tile { width: 54px; height: 66px; border-radius: 12px; display: grid; grid-template-rows: 1fr auto; place-items: center; padding: 6px 0; perspective: 400px;
  background: linear-gradient(170deg, rgba(242, 196, 109, .16), rgba(242, 196, 109, .04)); border: 1px solid rgba(242, 196, 109, .35); opacity: .25; transform: translateY(8px); transition: .35s var(--zp-ease); }
.zpsk-tile b { font-size: 1.6rem; line-height: 1; color: var(--zp-ink); }
.zpsk-tile small { font-size: .8rem; font-weight: 800; color: var(--zp-gold); }
.zpsk-tile.on { opacity: 1; transform: none; box-shadow: 0 0 22px -6px var(--zp-gold); }
.zpsk-sum { font-size: clamp(1.3rem, 2.6vw, 1.8rem); font-weight: 900; color: var(--zp-gold); font-variant-numeric: tabular-nums; }
.zpsk-sum small { display: block; font-size: .8rem; font-weight: 600; color: var(--zp-soft); }
.zpsk-calc__eq { font-size: .95rem; color: var(--zp-muted); min-height: 1.8em; }
.zpsk-skip { position: absolute; top: 14px; left: 14px; z-index: 6; font: inherit; font-size: .78rem; padding: .35rem .8rem; border-radius: 10px; cursor: pointer; color: var(--zp-muted); background: transparent; border: 1px solid var(--zp-card-brd); display: none; }
.zpsk-stage[data-phase="letters"] .zpsk-skip, .zpsk-stage[data-phase="wheel"] .zpsk-skip { display: block; }
@media (max-width: 640px) { .zpsk-skip { top: 8px; left: 8px; font-size: .7rem; padding: .25rem .6rem; background: color-mix(in srgb, var(--zp-card, #120f26) 88%, transparent); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); } }
.zpsk-core-num { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 900; color: var(--zp-gold); line-height: 1.2; }
.zpsk-core-cap { font-size: .8rem; color: var(--zp-muted); line-height: 1.7; max-width: 15ch; margin-inline: auto; }
.zpsk-core-glyph { display: grid; place-items: center; width: 46%; aspect-ratio: 1; margin: 0 auto; border-radius: 50%; color: #f7d58c; background: radial-gradient(circle at 34% 28%, #3b318f, #140f45 70%); box-shadow: 0 0 0 3px rgba(242, 196, 109, .6), 0 0 40px rgba(242, 196, 109, .4); }
.zpsk-core-glyph svg { width: 62%; height: 62%; }
html.zp[data-theme="light"] .zpsk-core-glyph { color: #1e3a8a; background: radial-gradient(circle at 34% 28%, #fffdf6, #f1dcaa); box-shadow: 0 0 0 3px #a8741a, 0 10px 30px -10px rgba(110, 70, 20, .5); }
.zpsk-core-eq { display: grid; gap: 6px; justify-items: center; }
.zpsk-core-eq .zpsk-core-num { white-space: nowrap; unicode-bidi: isolate; }
.zpsk-core-eq .zpsk-core-num span { opacity: .8; margin-inline: .1em; }
.zpsk-core-eq .zpsk-core-res { font-size: clamp(1.05rem, 2.2vw, 1.4rem); font-weight: 800; color: var(--zp-ink); white-space: nowrap; line-height: 1.3; }
.zpsk-core-eq .zpsk-core-cap { max-width: none; font-size: .9rem; line-height: 1.8; white-space: nowrap; }
.zpsk-nw { white-space: nowrap; }
.zpsk-core-eq b { color: var(--zp-gold); font-size: 1.15em; }
.zpsk-wglyph { color: rgba(242, 196, 109, .85); }
html.zp[data-theme="light"] .zpsk-wglyph { color: #8a5a10; }
.zpsk-stage[data-phase="done"] .zpsk-stage__core { animation: zpPop .8s var(--zp-ease); }
@keyframes zpPop { 0% { transform: scale(.7); opacity: 0; } 100% { transform: none; opacity: 1; } }
.zpsk-stage__cap { position: absolute; bottom: 0; inset-inline: 0; z-index: 3; text-align: center; padding: 14px 16px 16px; font-size: .82rem; color: var(--zp-muted);
  background: linear-gradient(transparent, rgba(7, 5, 26, .7)); }
html.zp[data-theme="light"] .zpsk-stage__cap { background: linear-gradient(transparent, rgba(246, 238, 219, .9)); }

/* ---------- result: the opened page ---------- */
html.zp .tool-trial__result { margin-top: clamp(24px, 4vw, 44px); }
.zpsk-res { position: relative; border-radius: 22px; overflow: hidden; animation: zpOpen 1s var(--zp-ease) both; transform-origin: 50% 0; }
@keyframes zpOpen { from { opacity: 0; transform: perspective(1400px) rotateX(-14deg) translateY(30px); } to { opacity: 1; transform: none; } }
.zpsk-res__top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: clamp(16px, 3vw, 36px); align-items: center; padding: clamp(22px, 3.4vw, 40px);
  background: var(--zp-card); border: 1px solid var(--zp-card-brd); border-radius: 22px 22px 0 0; }
.zpsk-medal { position: relative; width: clamp(120px, 15vw, 168px); aspect-ratio: 1; flex: none; }
.zpsk-medal__ring { position: absolute; inset: 0; pointer-events: none; }
.zpsk-medal__ring svg { position: absolute; left: -14%; top: -14%; width: 128%; height: 128%; max-width: none; transform-origin: 50% 50%; animation: zpRot 90s linear infinite; }
.zpsk-medal__disc { position: absolute; inset: 8%; border-radius: 50%; display: grid; place-items: center; color: #f7d58c;
  background: radial-gradient(circle at 34% 28%, #3b318f 0%, #1b1456 55%, #0b0826 100%);
  box-shadow: 0 0 0 2px rgba(242, 196, 109, .9), 0 0 0 7px rgba(242, 196, 109, .12), 0 0 44px rgba(242, 196, 109, .32), inset 0 0 28px rgba(0, 0, 0, .55); }
.zpsk-medal__glyph { width: 64%; height: 64%; overflow: visible; filter: drop-shadow(0 0 8px rgba(247, 213, 140, .55)); }
.zpsk-medal__disc small { position: absolute; bottom: 7%; font-size: .68rem; font-weight: 800; letter-spacing: .05em; color: rgba(247, 213, 140, .75); }
html.zp[data-theme="light"] .zpsk-medal__disc { color: #1e3a8a; background: radial-gradient(circle at 34% 28%, #fffdf6 0%, #f6e7c2 60%, #e8cf96 100%);
  box-shadow: 0 0 0 2px #a8741a, 0 0 0 7px rgba(168, 116, 26, .12), 0 14px 36px -12px rgba(110, 70, 20, .45), inset 0 0 20px rgba(168, 116, 26, .2); }
html.zp[data-theme="light"] .zpsk-medal__glyph { filter: none; }
html.zp[data-theme="light"] .zpsk-medal__disc small { color: #8a5a10; }
.zpsk-res__eyebrow { color: var(--zp-gold); font-weight: 800; font-size: .86rem; }
.zpsk-res__sign { margin: .2rem 0; font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 900; line-height: 1.4; background: var(--zp-head); -webkit-background-clip: text; background-clip: text; color: transparent; }
.zpsk-res__sign small { font-size: .55em; color: var(--zp-muted); -webkit-text-fill-color: var(--zp-muted); }
.zpsk-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.zpsk-chip { display: inline-flex; align-items: center; gap: 6px; padding: .3rem .75rem; border-radius: 999px; font-size: .82rem; font-weight: 700; color: var(--zp-ink); background: color-mix(in srgb, var(--zp-ink) 6%, transparent); border: 1px solid var(--zp-card-brd); }
.zpsk-chip img { width: 20px; height: 20px; border-radius: 50%; }
.zpsk-chip--el-fire { border-color: rgba(251, 113, 133, .5); } .zpsk-chip--el-water { border-color: rgba(56, 189, 248, .5); } .zpsk-chip--el-air { border-color: rgba(167, 139, 250, .55); } .zpsk-chip--el-earth { border-color: rgba(52, 211, 153, .5); }
.zpsk-res__num { text-align: center; padding: 12px 18px; border-radius: 18px; border: 1px solid var(--zp-card-brd); min-width: 120px; }
.zpsk-res__num b { display: block; font-size: 2rem; color: var(--zp-gold); line-height: 1.2; font-variant-numeric: tabular-nums; }
.zpsk-res__num span { font-size: .78rem; color: var(--zp-soft); }
.zpsk-formula { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; padding: 16px; font-weight: 800; font-variant-numeric: tabular-nums;
  background: color-mix(in srgb, var(--zp-gold) 9%, var(--zp-bg)); border-inline: 1px solid var(--zp-card-brd); color: var(--zp-ink); }
.zpsk-formula span { display: inline-flex; flex-direction: column; align-items: center; line-height: 1.5; }
.zpsk-formula span small { font-size: .7rem; font-weight: 600; color: var(--zp-soft); }
.zpsk-formula em { font-style: normal; color: var(--zp-gold); font-size: 1.2rem; }
.zpsk-res__body { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(18px, 3vw, 32px); padding: clamp(20px, 3.4vw, 40px);
  background: var(--zp-card); border: 1px solid var(--zp-card-brd); border-top: 0; border-radius: 0 0 22px 22px; }
.zpsk-res__plain { font-size: 1.06rem; line-height: 2.15; margin: 0 0 14px; color: var(--zp-ink); }
.zpsk-keys { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.zpsk-keys span { padding: .3rem .85rem; border-radius: 999px; font-size: .84rem; font-weight: 700; color: var(--zp-gold); border: 1px solid var(--zp-card-brd-hi); background: color-mix(in srgb, var(--zp-gold) 8%, transparent); }
.zpsk-folio { position: relative; padding: clamp(26px, 4vw, 44px) clamp(20px, 3.4vw, 40px); border-radius: 8px; background: var(--zp-page); color: var(--zp-page-ink);
  box-shadow: 0 0 0 1px rgba(168, 116, 26, .4), 0 30px 60px -36px rgba(0, 0, 0, .8); }
.zpsk-folio::before { content: ""; position: absolute; inset: 10px; border: 1.5px solid rgba(168, 116, 26, .5); border-radius: 4px; box-shadow: inset 0 0 0 3px #fbf3df, inset 0 0 0 4px rgba(30, 58, 138, .35); pointer-events: none; }
.zpsk-folio__bism { text-align: center; font-size: 1.15rem; font-weight: 800; color: #1e3a8a; margin: 0 0 4px; letter-spacing: .02em; }
.zpsk-folio__title { text-align: center; font-size: 1.05rem; font-weight: 900; margin: 0 0 14px; color: #7a4f0e; }
.zpsk-folio__title small { display: block; font-size: .78rem; font-weight: 600; color: #8a7350; }
.zpsk-folio p { position: relative; margin: 0 0 12px; line-height: 2.2; text-align: justify; color: #34240c; font-size: 1rem; }
.zpsk-folio p:nth-of-type(2)::first-letter { float: right; font-size: 2.6em; line-height: .95; font-weight: 900; color: #1e3a8a; margin: .12em 0 0 .25em; }
.zpsk-folio__sep { display: block; width: 120px; height: 12px; margin: 6px auto 14px; background: center / contain no-repeat
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12'%3E%3Cpath d='M0 6h46M74 6h46' stroke='%23a8741a'/%3E%3Cpath d='M60 1l5 5-5 5-5-5z' fill='%231e3a8a'/%3E%3C/svg%3E"); }
.zpsk-side { display: grid; gap: 14px; align-content: start; }
.zpsk-panel { padding: 18px; border-radius: 18px; border: 1px solid var(--zp-card-brd); background: color-mix(in srgb, var(--zp-ink) 3%, transparent); }
.zpsk-panel h4 { margin: 0 0 10px; font-size: .98rem; color: var(--zp-gold); display: flex; align-items: center; gap: 8px; }
.zpsk-letters { width: 100%; border-collapse: collapse; font-size: .86rem; }
.zpsk-letters td { padding: 5px 4px; border-bottom: 1px dashed var(--zp-card-brd); text-align: center; }
.zpsk-letters td:first-child { text-align: right; font-weight: 800; color: var(--zp-muted); }
.zpsk-letters b { color: var(--zp-gold); }
.zpsk-lock { position: relative; overflow: hidden; }
.zpsk-lock__blur { display: grid; gap: 9px; filter: blur(3px); opacity: .6; margin-bottom: 12px; }
.zpsk-lock__blur i { height: 10px; border-radius: 6px; background: color-mix(in srgb, var(--zp-ink) 22%, transparent); }
.zpsk-lock__blur i:nth-child(2n) { width: 80%; } .zpsk-lock__blur i:nth-child(3n) { width: 62%; }
.zpsk-lock p { margin: 0 0 10px; font-size: .86rem; color: var(--zp-muted); line-height: 1.9; }
.zpsk-lock .btn { width: 100%; }
.zpsk-depth { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.zpsk-depth a { display: block; padding: 10px 12px; border-radius: 12px; font-size: .8rem; font-weight: 700; color: var(--zp-ink); text-decoration: none; border: 1px solid var(--zp-card-brd); background: color-mix(in srgb, var(--zp-gold) 6%, transparent); line-height: 1.6; }
.zpsk-depth a:hover { border-color: var(--zp-card-brd-hi); }
.zpsk-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.zpsk-actions .btn { flex: 1 1 auto; min-height: 46px; font-size: .9rem; }
.zpsk-how { margin-top: 14px; border-radius: 16px; border: 1px solid var(--zp-card-brd); }
.zpsk-how summary { cursor: pointer; padding: 12px 16px; font-weight: 800; list-style: none; color: var(--zp-ink); }
.zpsk-how summary::-webkit-details-marker { display: none; }
.zpsk-how summary::after { content: "▾"; float: left; color: var(--zp-gold); }
.zpsk-how p { margin: 0; padding: 0 16px 14px; color: var(--zp-muted); line-height: 2; font-size: .92rem; }
.zpsk-disc { margin: 14px 0 0; font-size: .8rem; color: var(--zp-soft); line-height: 1.9; }
.zpsk-toast { position: fixed; z-index: 500; left: 50%; bottom: 90px; transform: translate(-50%, 20px); opacity: 0; padding: .7rem 1.1rem; border-radius: 14px; font-size: .9rem; font-weight: 700;
  background: #1d1540; color: #fff; border: 1px solid rgba(242, 196, 109, .5); box-shadow: 0 16px 40px rgba(0, 0, 0, .45); transition: .3s; pointer-events: none; max-width: 90vw; text-align: center; }
.zpsk-toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 4. film: the chest under a mihrab arch ---------- */
html.zp .tl-film-below { padding-block: clamp(24px, 4vw, 56px) !important; }
html.zp .tl-film-below figure { position: relative; max-width: 940px !important; padding-top: clamp(56px, 8vw, 96px); }
html.zp .tl-film-below video { position: relative; z-index: 1; border-radius: 18px !important; aspect-ratio: 16 / 9; width: 100% !important; height: auto !important; object-fit: cover; background: #0b0820;
  box-shadow: 0 0 0 1px rgba(242, 196, 109, .65), 0 0 0 9px rgba(242, 196, 109, .08), 0 50px 100px -50px rgba(0, 0, 0, .95), 0 0 90px -30px rgba(242, 196, 109, .4); }
.zpsk-film-arch { position: absolute; top: 0; left: -2%; right: -2%; height: calc(clamp(56px, 8vw, 96px) + 40px); pointer-events: none; z-index: 0; }
.zpsk-film-arch svg { width: 100%; height: 100%; display: block; }
.zpsk-film-arch path { vector-effect: non-scaling-stroke; }
.zpsk-film-arch i { position: absolute; top: -10px; left: 50%; width: 20px; height: 20px; margin-left: -10px; background: var(--zp-gold); -webkit-mask: var(--v2-star8) center / contain no-repeat; mask: var(--v2-star8) center / contain no-repeat;
  filter: drop-shadow(0 0 8px var(--zp-gold)); animation: zpGlow 2.4s ease-in-out infinite alternate; }
.zpsk-lamp { position: absolute; top: 18px; left: 50%; width: 2px; height: clamp(20px, 4vw, 46px); margin-left: -1px; background: linear-gradient(var(--zp-gold), rgba(242, 196, 109, .3)); z-index: 2; pointer-events: none; }
.zpsk-lamp::after { content: ""; position: absolute; left: 50%; bottom: -16px; width: 16px; height: 18px; margin-left: -8px; border-radius: 40% 40% 50% 50%; background: radial-gradient(circle at 50% 60%, #fff3c9, #f2c46d 45%, #b8741a 80%);
  box-shadow: 0 0 24px 6px rgba(255, 200, 110, .45); animation: zpGlow 2.4s ease-in-out infinite alternate; }
.zpsk-film-frame { position: absolute; z-index: 2; left: 12px; right: 12px; bottom: 12px; top: calc(clamp(56px, 8vw, 96px) + 12px); border-radius: 10px; border: 1px solid rgba(255, 240, 196, .35); pointer-events: none; }
.zpsk-film-cap { position: absolute; z-index: 3; bottom: clamp(20px, 3vw, 34px); left: 50%; transform: translateX(-50%); padding: .4rem 1rem; border-radius: 999px; font-size: .82rem; font-weight: 700; color: #fff0c4;
  background: rgba(7, 5, 26, .6); border: 1px solid rgba(242, 196, 109, .45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); white-space: nowrap; }
.zpsk-film-play { position: absolute; z-index: 3; left: 50%; top: calc(50% + clamp(28px, 4vw, 48px)); width: 74px; height: 74px; margin: -37px 0 0 -37px; border-radius: 50%; border: 1px solid rgba(255, 240, 196, .7); cursor: pointer;
  background: rgba(7, 5, 26, .55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6l9 6-9 6z' fill='%23fff0c4'/%3E%3C/svg%3E") 55% 50% / 30px no-repeat;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.zpsk-film-play[hidden] { display: none; }
.zpsk-film-candles { position: absolute; inset: auto 0 0 0; height: 0; pointer-events: none; z-index: 3; }
.zpsk-film-candles .zpsk-candle { bottom: 0; } .zpsk-film-candles .zpsk-candle--a { right: -38px; } .zpsk-film-candles .zpsk-candle--b { right: -64px; } .zpsk-film-candles .zpsk-candle--c { left: -42px; }
@media (max-width: 1120px) { .zpsk-film-candles { display: none; } }

/* ---------- 5. features: three folios with abjad numerals ---------- */
html.zp .grid--3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
html.zp .grid--3 > .card { position: relative; padding: 30px 26px 26px; text-align: center; overflow: hidden; transition: transform .35s var(--zp-ease), border-color .35s; counter-increment: zpf; }
html.zp .grid--3 { counter-reset: zpf; }
html.zp .grid--3 > .card:hover { transform: translateY(-6px); border-color: var(--zp-card-brd-hi); }
html.zp .grid--3 > .card::after { content: attr(data-zp-l); position: absolute; top: -18px; left: 14px; font-size: 7rem; font-weight: 900; line-height: 1; color: var(--zp-glyph); pointer-events: none; }
html.zp .grid--3 .card__icon, html.zp .grid--4 .card__icon { width: 64px; height: 64px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 50%; color: var(--zp-gold);
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--zp-gold) 30%, transparent), transparent 70%); box-shadow: 0 0 0 1px var(--zp-card-brd-hi), 0 0 0 7px color-mix(in srgb, var(--zp-gold) 6%, transparent); }
html.zp .grid--3 .card__icon .ico, html.zp .grid--4 .card__icon .ico { width: 28px; height: 28px; }
html.zp .grid--3 h3 { margin: 0 0 6px; font-size: 1.2rem; color: var(--zp-ink); }
html.zp .grid--3 p { margin: 0; color: var(--zp-muted); line-height: 2; }
html.zp .tool-benefits { list-style: none; padding: 0; margin: clamp(22px, 3vw, 34px) auto 0; max-width: 900px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; }
html.zp .tool-benefits li { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px; color: var(--zp-ink); background: color-mix(in srgb, var(--zp-ink) 4%, transparent); border: 1px solid var(--zp-card-brd); }
html.zp .tool-benefits li .ico { color: var(--zp-teal); flex: none; width: 20px; height: 20px; }

/* ---------- 6. join: lantern card ---------- */
html.zp .tl-join__card { position: relative; overflow: hidden; border-radius: 32px; padding: clamp(26px, 4vw, 52px); border: 1px solid var(--zp-card-brd-hi);
  background: radial-gradient(70% 90% at 85% 10%, rgba(242, 196, 109, .2), transparent 60%), radial-gradient(70% 90% at 10% 100%, rgba(139, 92, 246, .3), transparent 60%), var(--zp-card); box-shadow: var(--zp-shadow); }
html.zp .tl-join__aurora { opacity: .5; }
html.zp .tl-join__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; align-items: center; }
html.zp .tl-join h2 { margin-top: 0; text-align: start; }
html.zp .tl-join__perks { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
html.zp .tl-join__perks li { display: flex; align-items: center; gap: 10px; color: var(--zp-ink); }
html.zp .tl-join__perks li .ico { color: var(--zp-gold); width: 20px; height: 20px; flex: none; }
html.zp .tl-join__panel { background: none; border: 0; box-shadow: none; padding: 0; }
html.zp .tl-join__panel-inner { display: grid; gap: 12px; padding: 22px; border-radius: 22px; border: 1px solid var(--zp-card-brd); background: color-mix(in srgb, var(--zp-bg) 55%, transparent); }
html.zp .tl-join__panel .btn { width: 100%; justify-content: center; min-height: 52px; }

/* ---------- 7. three steps on a prayer-bead string ---------- */
html.zp .steps { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 3vw, 40px); max-width: 1000px; margin: 0 auto; counter-reset: zpst; }
html.zp .steps::before { content: ""; position: absolute; top: 44px; right: 16%; left: 16%; height: 2px;
  background: radial-gradient(circle, var(--zp-gold) 2.2px, transparent 2.8px) 0 50% / 16px 8px repeat-x; opacity: .7; }
html.zp .step { position: relative; counter-increment: zpst; text-align: center; padding: 104px 18px 22px; border-radius: 22px; background: var(--zp-card); border: 1px solid var(--zp-card-brd); box-shadow: var(--zp-shadow); }
html.zp .step::before { content: counter(zpst, persian); position: absolute; top: 14px; left: 50%; right: auto; width: 60px; height: 60px; margin-left: -30px; border-radius: 50%; display: grid; place-items: center;
  font-size: 1.5rem; font-weight: 900; color: #1d0f2e; background: radial-gradient(circle at 35% 30%, #fff0c4, #f2c46d 45%, #b8741a); box-shadow: 0 0 0 6px color-mix(in srgb, var(--zp-gold) 14%, transparent), 0 0 34px -4px var(--zp-gold); }
html.zp .step::after { content: attr(data-zp-l); position: absolute; bottom: 6px; left: 14px; font-size: 3.4rem; font-weight: 900; color: var(--zp-glyph); line-height: 1; }
html.zp .step p { margin: 0; font-weight: 700; color: var(--zp-ink); line-height: 1.9; text-align: center; width: 100%; font-size: 1rem; }

/* ---------- 8. FAQ ---------- */
html.zp .faq-list { max-width: 900px; margin: 0 auto; display: grid; gap: 10px; counter-reset: zpq; }
html.zp .faq-list .faq-item { counter-increment: zpq; border-radius: 18px; background: var(--zp-card); border: 1px solid var(--zp-card-brd); transition: border-color .25s; overflow: hidden; }
html.zp .faq-list .faq-item[open] { border-color: var(--zp-card-brd-hi); }
html.zp .faq-list summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px; padding: 16px 18px; font-weight: 800; color: var(--zp-ink); line-height: 1.8; }
html.zp .faq-list summary::-webkit-details-marker { display: none; }
html.zp .faq-list summary::before { content: counter(zpq, persian); flex: none; width: 36px; height: 36px; display: grid; place-items: center; font-size: .9rem; color: var(--zp-gold);
  background: var(--v2-seal, none) center / 140% no-repeat; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--zp-card-brd-hi); }
html.zp .faq-list summary::after { content: "+"; margin-inline-start: auto; flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: var(--zp-gold); border: 1px solid var(--zp-card-brd); transition: transform .3s; }
html.zp .faq-list .faq-item[open] summary::after { transform: rotate(45deg); }
html.zp .faq-list .faq-item > *:not(summary) { margin: 0; padding: 0 18px 18px; padding-inline-start: 68px; color: var(--zp-muted); line-height: 2.05; }
html.zp .faq-list a { color: var(--zp-gold); }

/* ---------- 9. community Q&A: marginalia ---------- */
/* Q&A: ZamamQA component (src/zq.css) — page skin only maps its tokens */
html.zp .zq { --zq-accent: var(--zp-gold); --zq-ink: var(--zp-ink); --zq-muted: var(--zp-muted); --zq-soft: var(--zp-soft); --zq-brd: var(--zp-card-brd); --zq-brd-hi: var(--zp-card-brd-hi); }
html.zp .tool-qa__toast { padding: 10px 14px; border-radius: 12px; margin-bottom: 12px; background: color-mix(in srgb, var(--zp-teal) 14%, transparent); color: var(--zp-ink); border: 1px solid color-mix(in srgb, var(--zp-teal) 40%, transparent); }
html.zp .tool-qa [hidden] { display: none !important; }

/* ---------- 10. explore ---------- */
html.zp .daily-tool-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
html.zp .daily-tool-links__item { display: grid; gap: 2px; padding: 14px 16px; border-radius: 16px; text-decoration: none; background: var(--zp-card); border: 1px solid var(--zp-card-brd); transition: border-color .25s, transform .25s; }
html.zp .daily-tool-links__item:hover { border-color: var(--zp-card-brd-hi); transform: translateY(-3px); }
html.zp .daily-tool-links__item strong { color: var(--zp-ink); }
html.zp .daily-tool-links__item span { color: var(--zp-soft); font-size: .82rem; }
html.zp .grid--4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
html.zp .grid--4 .card { text-align: center; padding: 24px 16px; text-decoration: none; transition: transform .3s var(--zp-ease), border-color .3s; }
html.zp .grid--4 .card:hover { transform: translateY(-5px); border-color: var(--zp-card-brd-hi); }
html.zp .grid--4 h3 { font-size: 1rem; margin: 0 0 8px; color: var(--zp-ink); }
html.zp .card__more { color: var(--zp-gold); font-size: .85rem; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
html.zp .card__more .ico { width: 14px; height: 14px; }

/* reveal (below the fold only; JS adds .zpsk-rv) */
.zpsk-rv { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--zp-ease), transform .8s var(--zp-ease); }
.zpsk-rv.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .zpsk-res__body { grid-template-columns: 1fr; }
  html.zp .tl-join__grid { grid-template-columns: 1fr; }
  html.zp .daily-tool-links, html.zp .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  html.zp .tl-hero-banner { min-height: 440px !important; }
  html.zp .tl-hero-banner__content { padding-block: 48px 72px !important; padding-inline: 20px !important; }
  html.zp .tl-hero__lead { font-size: .95rem; }
  .zpsk-niyyat { flex-wrap: wrap; }
  .zpsk-niyyat__txt { flex-basis: calc(100% - 50px); }
  .zpsk-niyyat__btn { width: 100%; }
  html.zp .tool-seo__intro.card { --zp-cs: 48px; padding: 44px 22px 40px; }
  html.zp .tool-seo__intro.card::after { background-size: 48px; }
  .zpsk-steps li { font-size: .66rem; }
  html.zp .tl-hero__actions .btn { flex: 1 1 100%; }
  .zpsk-candle--b, .zpsk-candle--c { display: none; } .zpsk-candle--a { right: 5%; height: 54px; }
  html.zp .grid--3, html.zp .steps, html.zp .tool-benefits { grid-template-columns: 1fr; }
  html.zp .steps::before { top: 30px; bottom: 30px; right: 50%; left: auto; width: 2px; height: auto; background: radial-gradient(circle, var(--zp-gold) 2.2px, transparent 2.8px) 50% 0 / 8px 16px repeat-y; }
  html.zp .step { padding: 22px 18px 22px; padding-inline-start: 88px; text-align: start; min-height: 96px; display: flex; align-items: center; }
  html.zp .step::before { top: 50%; left: auto; right: 16px; margin: -28px 0 0; width: 56px; height: 56px; }
  .zpsk-res__top { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .zpsk-res__top .zpsk-chips { justify-content: center; }
  .zpsk-tile { width: 44px; height: 56px; } .zpsk-tile b { font-size: 1.3rem; }
  .zpsk-stage__cap { font-size: .72rem; padding: 10px 12px 12px; }
  html.zp .faq-list .faq-item > *:not(summary) { padding-inline-start: 18px; }
  html.zp .tool-opening details p { padding-inline-start: 20px; }
  html.zp .tool-qa__item-head { flex-direction: column; }
  .zpsk-depth { grid-template-columns: 1fr; }
  html.zp .tool-seo__intro-body p { text-align: start; }
  .zpsk-film-cap { font-size: .72rem; white-space: normal; width: max-content; max-width: 80%; text-align: center; }
}
@media (max-width: 420px) { html.zp .daily-tool-links, html.zp .grid--4 { grid-template-columns: 1fr 1fr; } html.zp .grid--4 .card { padding: 18px 10px; } }
@media (prefers-reduced-motion: reduce) {
  html.zp *, html.zp *::before, html.zp *::after { animation: none !important; transition: none !important; }
  .zpsk-rv { opacity: 1; transform: none; }
}

/* ---------- v2: personalized reading ---------- */
.zpsk-personal { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0; }
.zpsk-personal__title { grid-column: 1 / -1; margin: 6px 0 0; font-size: 1.12rem; font-weight: 900; color: var(--zp-ink); }
.zpsk-personal__title small { display: block; margin-top: 2px; font-size: .8rem; font-weight: 600; color: var(--zp-soft); }
.zpsk-pr { min-width: 0; padding: 16px 18px; border-radius: 18px; background: var(--zp-card); border: 1px solid var(--zp-card-brd); }
.zpsk-pr--personality, .zpsk-pr--mansion { grid-column: 1 / -1; }
.zpsk-pr h5 { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-size: 1rem; font-weight: 900; color: var(--zp-gold); }
.zpsk-pr h5 i { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: .95rem; color: var(--zp-gold); border: 1px solid var(--zp-card-brd-hi); background: color-mix(in srgb, var(--zp-gold) 8%, transparent); }
.zpsk-pr p { margin: 0 0 8px; line-height: 2.1; color: var(--zp-ink); font-size: .96rem; }
.zpsk-pr p:last-child { margin-bottom: 0; }
.zpsk-pr ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.zpsk-pr li { position: relative; padding-inline-start: 20px; line-height: 2; color: var(--zp-ink); font-size: .94rem; }
.zpsk-pr li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .85em; width: 8px; height: 8px; transform: rotate(45deg); background: var(--zp-gold); opacity: .8; }
.zpsk-pr--cautions li::before { background: var(--zp-rose); }
.zpsk-elbar { display: flex; gap: 3px; height: 26px; margin: 2px 0 12px; border-radius: 999px; overflow: hidden; }
.zpsk-elbar i { display: grid; place-items: center; min-width: 54px; font-style: normal; font-size: .72rem; font-weight: 800; color: #fff; }
.zpsk-elbar span { white-space: nowrap; }
.zpsk-el--fire { background: linear-gradient(90deg, #f97316, #e0a63e); } .zpsk-el--air { background: linear-gradient(90deg, #ec4899, #a855f7); }
.zpsk-el--water { background: linear-gradient(90deg, #0ea5e9, #3b5bdb); } .zpsk-el--earth { background: linear-gradient(90deg, #65a30d, #78552b); }
.zpsk-lucky { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.zpsk-lucky span { display: grid; gap: 2px; padding: 10px; border-radius: 12px; text-align: center; border: 1px solid var(--zp-card-brd); background: color-mix(in srgb, var(--zp-gold) 6%, transparent); }
.zpsk-lucky small { font-size: .72rem; color: var(--zp-soft); } .zpsk-lucky b { font-size: .92rem; color: var(--zp-ink); } .zpsk-lucky em { font-style: normal; font-size: .7rem; color: var(--zp-muted); }
.zpsk-src { margin: 0; padding: 0 16px 6px; list-style: none; display: grid; gap: 10px; }
.zpsk-src li { padding: 10px 12px; border-radius: 12px; border: 1px solid var(--zp-card-brd); font-size: .86rem; line-height: 1.9; color: var(--zp-muted); }
.zpsk-src li b { color: var(--zp-ink); } .zpsk-src__v { color: var(--zp-gold); font-weight: 700; }
.zpsk-src__r, .zpsk-src__s { font-size: .8rem; } .zpsk-src__s { color: var(--zp-soft); }
.zpsk-how .zpsk-src__note { font-size: .8rem; }
@media (max-width: 760px) {
  .zpsk-personal { grid-template-columns: 1fr; }
  .zpsk-pr { padding: 14px; }
  .zpsk-lucky { grid-template-columns: 1fr; }
  .zpsk-elbar i { min-width: 44px; font-size: .66rem; }
}

/* v2 hero art already paints candles: keep only the 28-letter ring + scroll cue */
.zpsk-hero-decor .zpsk-candle { display: none; }
