/* Sar-kitab v2 page skin for /tools/sar-kitab ("opening the book"). Tokens and result/stage components live in
   sar-kitab-ui.css. Decoration only: every ornament is CSS, SVG, canvas or aria-hidden JS; no SEO markup changes. */
html.sk, html.sk body { background: var(--sk-bg); color: var(--sk-ink); }
html.sk body { font-family: Vazirmatn, "Segoe UI", Tahoma, sans-serif; overflow-x: clip; }
html.sk main, html.sk .tl-page { background: transparent; position: relative; z-index: 1; }
html.sk .tl-page { overflow-x: clip; }

/* ---------- sky (fixed, behind everything) ---------- */
.sk-sky { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.sk-sky canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.sk-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: skNeb 60s ease-in-out infinite alternate; }
html.sk[data-theme="light"] .sk-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.sk[data-theme="light"] .sk-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 skNeb { to { transform: translate3d(3%, -2%, 0) scale(1.06); } }

/* floating abjad glyphs (aria-hidden layer injected per section) */
.sk-glyphs { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.sk-glyphs span { position: absolute; font-weight: 800; color: var(--sk-glyph); font-size: var(--s, 40px); line-height: 1; animation: skFloat var(--d, 22s) ease-in-out infinite alternate; }
.sk-glyphs span small { display: block; font-size: .32em; text-align: center; font-weight: 600; opacity: .9; }
@keyframes skFloat { from { transform: translate3d(0, 0, 0) rotate(-4deg); } to { transform: translate3d(10px, -26px, 0) rotate(5deg); } }

/* ---------- seamless sections ---------- */
html.sk .tl-page > .section, html.sk .tl-page > section { position: relative; isolation: isolate; background: none !important; border: 0 !important; box-shadow: none !important; }
html.sk .tl-page > .section::before, html.sk .tl-page > .section::after { content: none; }
html.sk .tl-page .section { padding-block: clamp(44px, 5.5vw, 84px); }
html.sk .tl-page .container { max-width: 1200px; padding-inline: clamp(16px, 4vw, 40px); position: relative; z-index: 1; }
html.sk .section__head { text-align: center; max-width: 760px; margin: 0 auto clamp(28px, 4vw, 48px); position: relative; }
html.sk .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(--sk-gold); -webkit-mask: var(--v2-seal) center / contain no-repeat; mask: var(--v2-seal) center / contain no-repeat; animation: skSpin 120s linear infinite; }
@keyframes skSpin { to { transform: translate(-50%, -50%) rotate(360deg); } }
html.sk .section__head h2, html.sk .tool-seo h2, html.sk .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(--sk-head); -webkit-background-clip: text; background-clip: text; color: transparent; }
html.sk .section__head p { color: var(--sk-muted); margin: 0; }
html.sk .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.sk .eyebrow { display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .9rem; border-radius: 999px; font-size: .82rem; font-weight: 700; color: var(--sk-gold);
  background: color-mix(in srgb, var(--sk-gold) 10%, transparent); border: 1px solid var(--sk-card-brd); }
html.sk .eyebrow .ico { width: 1.05em; height: 1.05em; }

/* generic card */
html.sk .tl-page .card { background: var(--sk-card); border: 1px solid var(--sk-card-brd); border-radius: var(--sk-r); box-shadow: var(--sk-shadow); color: var(--sk-ink);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
html.sk .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.sk[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.sk .tl-page .btn-ghost { color: var(--sk-ink); background: color-mix(in srgb, var(--sk-ink) 6%, transparent); border: 1px solid var(--sk-card-brd); }
html.sk .tl-page .btn-ghost:hover { border-color: var(--sk-card-brd-hi); }
html.sk .tl-page .btn { border-radius: 14px; transition: transform .25s var(--sk-ease), box-shadow .25s, border-color .25s; }
html.sk .tl-page .btn:hover { transform: translateY(-2px); }

/* ---------- 1. HERO: the open book ---------- */
html.sk .tl-hero-banner { min-height: clamp(460px, 66vh, 660px) !important; align-items: center; margin-bottom: 0; overflow: hidden; }
html.sk .tl-hero-banner__img { object-position: center 38% !important; transform: scale(1.04); animation: skKen 40s ease-in-out infinite alternate; }
@keyframes skKen { to { transform: scale(1.12) translate3d(-1.5%, -1%, 0); } }
html.sk .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(--sk-bg) 98%) !important; z-index: 1; }
html.sk[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(--sk-bg) 98%) !important; }
html.sk .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.sk .tl-hero-banner__img { min-height: 0 !important; }
html.sk .tl-page--journey > #try { padding-top: 8px; }
html.sk #try .section__head { margin-bottom: 22px; }
html.sk #try .section__head::before { width: 160px; height: 160px; }
body.shot .cookie-bar, body.shot .skip-link { display: none !important; }
html.sk .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(--sk-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.sk[data-theme="light"] .tl-hero__badge { color: var(--sk-gold-2); background: rgba(255, 250, 238, .8); }
html.sk .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.sk[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.sk .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.sk[data-theme="light"] .tl-hero__lead { color: #3a2a12; text-shadow: 0 1px 10px rgba(255, 250, 238, .9); }
html.sk .tl-page:not(.tl-page--journey) .tl-hero__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
html.sk .tl-hero__actions .btn { min-height: 52px; padding-inline: 1.6rem; }
html.sk .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.sk[data-theme="light"] .tl-trial-pill { color: #065f46; background: rgba(16, 185, 129, .12); }
/* injected hero decor: tazhib arch + 28 mansions ring + candles */
.sk-hero-decor { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.sk-ring { position: absolute; left: 50%; top: 50%; width: min(860px, 96vw); aspect-ratio: 1; transform: translate(-50%, -50%); opacity: .55; }
.sk-ring svg { width: 100%; height: 100%; animation: skRot 180s linear infinite; }
.sk-ring text { font: 700 15px Vazirmatn, sans-serif; fill: var(--sk-gold); }
@keyframes skRot { to { transform: rotate(360deg); } }
html.sk[data-theme="light"] .sk-ring { opacity: .45; }
.sk-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); }
.sk-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: skFlame 1.6s ease-in-out infinite alternate; }
.sk-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: skGlow 2.4s ease-in-out infinite alternate; }
@keyframes skFlame { 0% { transform: scale(1, 1) rotate(-2deg); } 50% { transform: scale(.92, 1.08) rotate(2deg); } 100% { transform: scale(1.04, .95) rotate(-1deg); } }
@keyframes skGlow { from { opacity: .7; } to { opacity: 1; transform: scale(1.08); } }
.sk-candle--a { right: 7%; } .sk-candle--b { right: calc(7% + 26px); height: 50px; } .sk-candle--c { left: 7%; height: 60px; }
.sk-scroll-cue { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border-radius: 14px; border: 1.5px solid var(--sk-card-brd-hi); }
.sk-scroll-cue::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--sk-gold); animation: skCue 1.8s ease-in-out infinite; }
@keyframes skCue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- 2. intro: an illuminated manuscript page ---------- */
html.sk .tool-seo__intro.card { position: relative; max-width: 980px; margin: 0 auto; padding: clamp(28px, 5vw, 64px) clamp(22px, 6vw, 80px); background: var(--sk-page); color: var(--sk-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.sk .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.sk .tool-seo__intro.card::after { content: ""; position: absolute; inset: 6px; pointer-events: none; background:
  var(--sk-corner) top right / 86px no-repeat, var(--sk-corner) top left / 86px no-repeat, var(--sk-corner) bottom right / 86px no-repeat, var(--sk-corner) bottom left / 86px no-repeat; }
html.sk .tool-seo__intro.card { --sk-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.sk .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.sk .tool-seo__intro-body { position: relative; z-index: 1; }
html.sk .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.sk .tool-seo__intro-body p { color: #3b2a12; font-size: 1.04rem; line-height: 2.2; text-align: justify; }
html.sk .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.sk .tool-seo__intro-body a { color: #1e3a8a; text-decoration-color: rgba(168, 116, 26, .6); text-underline-offset: 5px; }
.sk-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; }
.sk-margin--r { right: -54px; } .sk-margin--l { left: -54px; }
.sk-margin i { width: 8px; height: 8px; transform: rotate(45deg); background: rgba(168, 116, 26, .45); }
@media (max-width: 1120px) { .sk-margin { display: none; } }

/* four-sentence summary: a sealed scroll */
html.sk .tool-opening { max-width: 980px; padding: 28px clamp(16px, 4vw, 40px) 0 !important; margin: 0 auto; }
html.sk .tool-opening .faq-item { border-radius: 18px; background: var(--sk-card); border: 1px solid var(--sk-card-brd); box-shadow: var(--sk-shadow); overflow: hidden; }
html.sk .tool-opening summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 16px 20px; font-weight: 800; color: var(--sk-ink); }
html.sk .tool-opening summary::-webkit-details-marker { display: none; }
html.sk .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.sk .tool-opening summary::after { content: "+"; margin-inline-start: auto; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: var(--sk-gold); border: 1px solid var(--sk-card-brd); transition: transform .3s; }
html.sk .tool-opening details[open] summary::after { transform: rotate(45deg); }
html.sk .tool-opening details p { margin: 0; padding: 0 20px 12px 20px; padding-inline-start: 66px; color: var(--sk-muted); line-height: 2; }
html.sk .tool-opening details p b { color: var(--sk-gold); }
html.sk .tool-opening details[open] p:last-child { padding-bottom: 20px; }

/* ---------- 3. TRY: the ritual ---------- */
html.sk #try .tool-trial { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(20px, 3vw, 36px); align-items: start; max-width: 1120px; margin: 0 auto;
  background: none; border: 0; box-shadow: none; padding: 0; }
html.sk #try .tool-trial > * { grid-column: 1; min-width: 0; }
html.sk #try .tool-trial > .tool-trial__form { grid-row: 1; }
html.sk #try .tool-trial > .zm-result-notes { grid-column: 1; grid-row: 2; }
html.sk #try .tool-trial > .sk-stage { grid-column: 2; grid-row: 1 / span 2; position: relative; align-self: start; }
html.sk #try .tool-trial > .tool-trial__result { grid-column: 1 / -1; grid-row: 3; }
html.sk #try .tool-trial > .tool-trial__locked { grid-column: 1 / -1; grid-row: 4; }
html.sk .tool-trial__locked:not([hidden]) { display: grid; justify-items: center; gap: 12px; text-align: center; padding: 28px; border-radius: 22px; background: var(--sk-card); border: 1px solid var(--sk-card-brd-hi); margin-top: 20px; }
html.sk .tool-trial__locked p { margin: 0; color: var(--sk-ink); font-weight: 700; }
html.sk .jrn-trust { display: inline-block; margin-top: 6px !important; color: var(--sk-teal) !important; font-weight: 700; font-size: .9rem; }
html.sk .tool-trial__form { position: relative; display: grid; gap: 16px; padding: clamp(22px, 3vw, 34px); border-radius: var(--sk-r); background: var(--sk-card); border: 1px solid var(--sk-card-brd);
  box-shadow: var(--sk-shadow); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
html.sk .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.sk .tool-trial__form .form-field { display: grid; gap: 8px; margin: 0; }
html.sk .tool-trial__form .form-field > span { font-weight: 700; color: var(--sk-ink); font-size: .95rem; display: flex; align-items: center; gap: 8px; }
html.sk .tool-trial__form .form-field > span::before { content: attr(data-sk-n); display: none; }
html.sk .tool-trial__form input[type="text"], html.sk .tool-trial__form select { width: 100%; min-height: 54px; padding: 0 16px; border-radius: 14px; font: inherit; font-size: 1.05rem; color: var(--sk-ink);
  background: color-mix(in srgb, var(--sk-bg) 70%, transparent); border: 1px solid var(--sk-card-brd); transition: border-color .2s, box-shadow .2s; }
html.sk[data-theme="light"] .tool-trial__form input[type="text"], html.sk[data-theme="light"] .tool-trial__form select { background: #fffdf7; }
html.sk .tool-trial__form input[type="text"]:focus, html.sk .tool-trial__form select:focus { outline: none; border-color: var(--sk-gold); box-shadow: 0 0 0 4px color-mix(in srgb, var(--sk-gold) 22%, transparent); }
html.sk .tool-trial__form input::placeholder { color: var(--sk-soft); }
html.sk .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(--sk-card-brd); }
html.sk .tool-trial__form .form-field--check > span { font-weight: 600; color: var(--sk-muted); }
html.sk .tool-trial__form .form-field--check input { width: 22px; height: 22px; accent-color: var(--sk-gold-2); }
html.sk .tool-trial__foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
html.sk .tool-trial__foot .btn { min-height: 56px; min-width: 200px; font-size: 1.08rem; }
html.sk .tool-trial__quota { font-size: .85rem; color: var(--sk-soft); }
html.sk .zm-result-notes { margin-top: 0; }
html.sk .zm-result-note--disclaimer { font-size: .82rem; color: var(--sk-soft); text-align: center; margin: 4px 0 0; }
/* injected: ritual stepper + niyyat */
.sk-steps { display: flex; gap: 6px; margin: 0 0 4px; padding: 0; list-style: none; counter-reset: sks; }
.sk-steps li { flex: 1; position: relative; text-align: center; font-size: .74rem; font-weight: 700; color: var(--sk-soft); padding-top: 30px; transition: color .3s; }
.sk-steps li::before { counter-increment: sks; 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(--sk-soft); border: 1px solid var(--sk-card-brd); background: var(--sk-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 */
.sk-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(--sk-card-brd); transition: background .3s; }
[dir="ltr"] .sk-steps li::after { left: auto; right: calc(50% + 17px); }
.sk-steps li:first-child::after { display: none; }
.sk-steps li.is-on { color: var(--sk-ink); }
.sk-steps li.is-on::before { color: #1d0f2e; background: var(--sk-gold); border-color: var(--sk-gold); box-shadow: 0 0 16px color-mix(in srgb, var(--sk-gold) 60%, transparent); }
.sk-steps li.is-on::after { background: var(--sk-gold); }
.sk-niyyat { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 16px; background: color-mix(in srgb, var(--sk-gold) 7%, transparent); border: 1px solid var(--sk-card-brd); }
.sk-niyyat__candle { position: relative; flex: none; width: 34px; height: 46px; border: 0; padding: 0; background: none; cursor: pointer; }
.sk-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); }
.sk-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; }
.sk-niyyat.is-lit .sk-niyyat__candle b { opacity: 1; transform: none; animation: skFlame 1.6s ease-in-out infinite alternate; }
.sk-niyyat.is-lit { box-shadow: 0 0 40px -10px rgba(255, 190, 90, .5); }
.sk-niyyat__txt { flex: 1; min-width: 0; font-size: .86rem; line-height: 1.8; color: var(--sk-muted); }
.sk-niyyat__txt strong { display: block; color: var(--sk-ink); font-size: .95rem; }
.sk-niyyat__btn { flex: none; font: inherit; font-size: .82rem; font-weight: 700; padding: .5rem .9rem; border-radius: 12px; cursor: pointer; color: var(--sk-gold); background: transparent; border: 1px solid var(--sk-card-brd-hi); }
.sk-niyyat.is-lit .sk-niyyat__btn { color: var(--sk-teal); border-color: color-mix(in srgb, var(--sk-teal) 50%, transparent); }
.sk-beads { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; max-width: 100%; }
.sk-beads i { width: 6px; height: 6px; border-radius: 50%; background: color-mix(in srgb, var(--sk-gold) 25%, transparent); transition: background .2s, box-shadow .2s; }
.sk-beads i.on { background: var(--sk-gold); box-shadow: 0 0 8px var(--sk-gold); }
.sk-namecard { font-size: .84rem; color: var(--sk-soft); text-align: center; min-height: 1.6em; }
.sk-namecard b { color: var(--sk-gold); font-weight: 800; }
.sk-err { color: #fb7185; font-size: .85rem; font-weight: 700; }
html.sk[data-theme="light"] .sk-err { color: #be123c; }

html.sk .tool-trial__result { margin-top: clamp(24px, 4vw, 44px); }

/* ---------- 4. film: the chest under a mihrab arch ---------- */
html.sk .tl-film-below { padding-block: clamp(24px, 4vw, 56px) !important; }
html.sk .tl-film-below figure { position: relative; max-width: 940px !important; padding-top: clamp(56px, 8vw, 96px); }
html.sk .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); }
.sk-film-arch { position: absolute; top: 0; left: -2%; right: -2%; height: calc(clamp(56px, 8vw, 96px) + 40px); pointer-events: none; z-index: 0; }
.sk-film-arch svg { width: 100%; height: 100%; display: block; }
.sk-film-arch path { vector-effect: non-scaling-stroke; }
.sk-film-arch i { position: absolute; top: -10px; left: 50%; width: 20px; height: 20px; margin-left: -10px; background: var(--sk-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(--sk-gold)); animation: skGlow 2.4s ease-in-out infinite alternate; }
.sk-lamp { position: absolute; top: 18px; left: 50%; width: 2px; height: clamp(20px, 4vw, 46px); margin-left: -1px; background: linear-gradient(var(--sk-gold), rgba(242, 196, 109, .3)); z-index: 2; pointer-events: none; }
.sk-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: skGlow 2.4s ease-in-out infinite alternate; }
.sk-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; }
.sk-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; }
.sk-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); }
.sk-film-play[hidden] { display: none; }
.sk-film-candles { position: absolute; inset: auto 0 0 0; height: 0; pointer-events: none; z-index: 3; }
.sk-film-candles .sk-candle { bottom: 0; } .sk-film-candles .sk-candle--a { right: -38px; } .sk-film-candles .sk-candle--b { right: -64px; } .sk-film-candles .sk-candle--c { left: -42px; }
@media (max-width: 1120px) { .sk-film-candles { display: none; } }

/* ---------- 5. features: three folios with abjad numerals ---------- */
html.sk .grid--3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
html.sk .grid--3 > .card { position: relative; padding: 30px 26px 26px; text-align: center; overflow: hidden; transition: transform .35s var(--sk-ease), border-color .35s; counter-increment: skf; }
html.sk .grid--3 { counter-reset: skf; }
html.sk .grid--3 > .card:hover { transform: translateY(-6px); border-color: var(--sk-card-brd-hi); }
html.sk .grid--3 > .card::after { content: attr(data-sk-l); position: absolute; top: -18px; left: 14px; font-size: 7rem; font-weight: 900; line-height: 1; color: var(--sk-glyph); pointer-events: none; }
html.sk .grid--3 .card__icon, html.sk .grid--4 .card__icon { width: 64px; height: 64px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 50%; color: var(--sk-gold);
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--sk-gold) 30%, transparent), transparent 70%); box-shadow: 0 0 0 1px var(--sk-card-brd-hi), 0 0 0 7px color-mix(in srgb, var(--sk-gold) 6%, transparent); }
html.sk .grid--3 .card__icon .ico, html.sk .grid--4 .card__icon .ico { width: 28px; height: 28px; }
html.sk .grid--3 h3 { margin: 0 0 6px; font-size: 1.2rem; color: var(--sk-ink); }
html.sk .grid--3 p { margin: 0; color: var(--sk-muted); line-height: 2; }
html.sk .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.sk .tool-benefits li { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px; color: var(--sk-ink); background: color-mix(in srgb, var(--sk-ink) 4%, transparent); border: 1px solid var(--sk-card-brd); }
html.sk .tool-benefits li .ico { color: var(--sk-teal); flex: none; width: 20px; height: 20px; }

/* ---------- 6. join: lantern card ---------- */
html.sk .tl-join__card { position: relative; overflow: hidden; border-radius: 32px; padding: clamp(26px, 4vw, 52px); border: 1px solid var(--sk-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(--sk-card); box-shadow: var(--sk-shadow); }
html.sk .tl-join__aurora { opacity: .5; }
html.sk .tl-join__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; align-items: center; }
html.sk .tl-join h2 { margin-top: 0; text-align: start; }
html.sk .tl-join__perks { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
html.sk .tl-join__perks li { display: flex; align-items: center; gap: 10px; color: var(--sk-ink); }
html.sk .tl-join__perks li .ico { color: var(--sk-gold); width: 20px; height: 20px; flex: none; }
html.sk .tl-join__panel { background: none; border: 0; box-shadow: none; padding: 0; }
html.sk .tl-join__panel-inner { display: grid; gap: 12px; padding: 22px; border-radius: 22px; border: 1px solid var(--sk-card-brd); background: color-mix(in srgb, var(--sk-bg) 55%, transparent); }
html.sk .tl-join__panel .btn { width: 100%; justify-content: center; min-height: 52px; }

/* ---------- 7. three steps on a prayer-bead string ---------- */
html.sk .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: skst; }
html.sk .steps::before { content: ""; position: absolute; top: 44px; right: 16%; left: 16%; height: 2px;
  background: radial-gradient(circle, var(--sk-gold) 2.2px, transparent 2.8px) 0 50% / 16px 8px repeat-x; opacity: .7; }
html.sk .step { position: relative; counter-increment: skst; text-align: center; padding: 104px 18px 22px; border-radius: 22px; background: var(--sk-card); border: 1px solid var(--sk-card-brd); box-shadow: var(--sk-shadow); }
html.sk .step::before { content: counter(skst, 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(--sk-gold) 14%, transparent), 0 0 34px -4px var(--sk-gold); }
html.sk .step::after { content: attr(data-sk-l); position: absolute; bottom: 6px; left: 14px; font-size: 3.4rem; font-weight: 900; color: var(--sk-glyph); line-height: 1; }
html.sk .step p { margin: 0; font-weight: 700; color: var(--sk-ink); line-height: 1.9; text-align: center; width: 100%; font-size: 1rem; }

/* ---------- 8. FAQ ---------- */
html.sk .faq-list { max-width: 900px; margin: 0 auto; display: grid; gap: 10px; counter-reset: skq; }
html.sk .faq-list .faq-item { counter-increment: skq; border-radius: 18px; background: var(--sk-card); border: 1px solid var(--sk-card-brd); transition: border-color .25s; overflow: hidden; }
html.sk .faq-list .faq-item[open] { border-color: var(--sk-card-brd-hi); }
html.sk .faq-list summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px; padding: 16px 18px; font-weight: 800; color: var(--sk-ink); line-height: 1.8; }
html.sk .faq-list summary::-webkit-details-marker { display: none; }
html.sk .faq-list summary::before { content: counter(skq, persian); flex: none; width: 36px; height: 36px; display: grid; place-items: center; font-size: .9rem; color: var(--sk-gold);
  background: var(--v2-seal, none) center / 140% no-repeat; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--sk-card-brd-hi); }
html.sk .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(--sk-gold); border: 1px solid var(--sk-card-brd); transition: transform .3s; }
html.sk .faq-list .faq-item[open] summary::after { transform: rotate(45deg); }
html.sk .faq-list .faq-item > *:not(summary) { margin: 0; padding: 0 18px 18px; padding-inline-start: 68px; color: var(--sk-muted); line-height: 2.05; }
html.sk .faq-list a { color: var(--sk-gold); }

/* ---------- 9. community Q&A: marginalia ---------- */
/* Q&A: ZamamQA component (static/site/zq.css) — page skin only maps its tokens */
html.sk .zq { --zq-accent: var(--sk-gold); --zq-ink: var(--sk-ink); --zq-muted: var(--sk-muted); --zq-soft: var(--sk-soft); --zq-brd: var(--sk-card-brd); --zq-brd-hi: var(--sk-card-brd-hi); }
html.sk .tool-qa__toast { padding: 10px 14px; border-radius: 12px; margin-bottom: 12px; background: color-mix(in srgb, var(--sk-teal) 14%, transparent); color: var(--sk-ink); border: 1px solid color-mix(in srgb, var(--sk-teal) 40%, transparent); }
html.sk .tool-qa [hidden] { display: none !important; }

/* ---------- 10. explore ---------- */
html.sk .daily-tool-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
html.sk .daily-tool-links__item { display: grid; gap: 2px; padding: 14px 16px; border-radius: 16px; text-decoration: none; background: var(--sk-card); border: 1px solid var(--sk-card-brd); transition: border-color .25s, transform .25s; }
html.sk .daily-tool-links__item:hover { border-color: var(--sk-card-brd-hi); transform: translateY(-3px); }
html.sk .daily-tool-links__item strong { color: var(--sk-ink); }
html.sk .daily-tool-links__item span { color: var(--sk-soft); font-size: .82rem; }
html.sk .grid--4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
html.sk .grid--4 .card { text-align: center; padding: 24px 16px; text-decoration: none; transition: transform .3s var(--sk-ease), border-color .3s; }
html.sk .grid--4 .card:hover { transform: translateY(-5px); border-color: var(--sk-card-brd-hi); }
html.sk .grid--4 h3 { font-size: 1rem; margin: 0 0 8px; color: var(--sk-ink); }
html.sk .card__more { color: var(--sk-gold); font-size: .85rem; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
html.sk .card__more .ico { width: 14px; height: 14px; }

/* reveal (below the fold only; JS adds .sk-rv) */
.sk-rv { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--sk-ease), transform .8s var(--sk-ease); }
.sk-rv.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  html.sk #try .tool-trial { grid-template-columns: minmax(0, 1fr); }
  html.sk #try .tool-trial > * { grid-column: 1 !important; grid-row: auto !important; }
  html.sk #try .tool-trial > .sk-stage { position: relative; top: auto; max-width: 480px; width: 100%; margin: 0 auto; }
  html.sk .tl-join__grid { grid-template-columns: 1fr; }
  html.sk .daily-tool-links, html.sk .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  html.sk .tl-hero-banner { min-height: 440px !important; }
  html.sk .tl-hero-banner__content { padding-block: 48px 72px !important; padding-inline: 20px !important; }
  html.sk .tl-hero__lead { font-size: .95rem; }
  .sk-niyyat { flex-wrap: wrap; }
  .sk-niyyat__txt { flex-basis: calc(100% - 50px); }
  .sk-niyyat__btn { width: 100%; }
  html.sk .tool-seo__intro.card { --sk-cs: 48px; padding: 44px 22px 40px; }
  html.sk .tool-seo__intro.card::after { background-size: 48px; }
  .sk-steps li { font-size: .66rem; }
  html.sk .tl-hero__actions .btn { flex: 1 1 100%; }
  .sk-candle--b, .sk-candle--c { display: none; } .sk-candle--a { right: 5%; height: 54px; }
  html.sk .grid--3, html.sk .steps, html.sk .tool-benefits { grid-template-columns: 1fr; }
  html.sk .steps::before { top: 30px; bottom: 30px; right: 50%; left: auto; width: 2px; height: auto; background: radial-gradient(circle, var(--sk-gold) 2.2px, transparent 2.8px) 50% 0 / 8px 16px repeat-y; }
  html.sk .step { padding: 22px 18px 22px; padding-inline-start: 88px; text-align: start; min-height: 96px; display: flex; align-items: center; }
  html.sk .step::before { top: 50%; left: auto; right: 16px; margin: -28px 0 0; width: 56px; height: 56px; }
  html.sk .faq-list .faq-item > *:not(summary) { padding-inline-start: 18px; }
  html.sk .tool-opening details p { padding-inline-start: 20px; }
  html.sk .tool-qa__item-head { flex-direction: column; }
  html.sk .tool-seo__intro-body p { text-align: start; }
  .sk-film-cap { font-size: .72rem; white-space: normal; width: max-content; max-width: 80%; text-align: center; }
}
@media (max-width: 420px) { html.sk .daily-tool-links, html.sk .grid--4 { grid-template-columns: 1fr 1fr; } html.sk .grid--4 .card { padding: 18px 10px; } }
@media (prefers-reduced-motion: reduce) {
  html.sk *, html.sk *::before, html.sk *::after { animation: none !important; transition: none !important; }
  .sk-rv { opacity: 1; transform: none; }
}


/* v2 hero art already paints candles: keep only the 28-letter ring + scroll cue */
.sk-hero-decor .sk-candle { display: none; }

/* production: result box waits hidden while the stage animates */
.tool-trial__result.sk-pending { display: none !important; }
.tool-trial__result:has(.jrn-depth) .sk-depth-panel { display: none; }
