/* ============================================================
   Sukūn — c41-bis dark immersive charte
   Visual authority: sukun-mockup-accueil-v2.html
   Universal off-white text on immersive ambiances (dawn/sunset/night).
   ============================================================ */

:root {
  /* Universal text (off-white over all three ambiances) */
  --text-strong:#FCF8F0;
  --text-soft:rgba(252,248,240,0.78);
  --text-muted:rgba(252,248,240,0.55);
  --text-whisper:rgba(252,248,240,0.4);

  /* Calm content backgrounds */
  --content-bg:#1A1F30;
  --content-bg-soft:#232940;
  --content-bg-deeper:#0D1424;

  --border-fine:rgba(252,248,240,0.15);
  --border-subtle:rgba(252,248,240,0.08);

  /* Ambiance tokens */
  --sunset-sky-top:#2E1B3F; --sunset-sky-mid:#5A3458; --sunset-sky-bottom:#A75F4F; --sunset-sky-horizon:#E8A87C;
  --dawn-sky-top:#2A4A6E; --dawn-sky-mid:#4A6890; --dawn-sky-horizon:#B5AC92;
  --night-sky-top:#0A1428; --night-sky-mid:#1A2845; --night-sky-bottom:#2D3F60;

  --font-head:"Outfit",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  --font-body:"Lexend",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  --font-arabic:"Amiri","Noto Naskh Arabic",serif;
  --maxw:880px;
}

/* ── Global ambiance tokens (set by body.ambience-* ; sunset is the default) ── */
:root, body.ambience-sunset {
  --hero-gradient:linear-gradient(180deg,#2E1B3F 0%,#5A3458 50%,var(--content-bg) 100%);
  --hero-cloud-1:rgba(154,79,74,0.45); --hero-cloud-2:rgba(201,123,110,0.4);
}
body.ambience-dawn {
  --hero-gradient:linear-gradient(180deg,#2A4A6E 0%,#4A6890 50%,var(--content-bg) 100%);
  --hero-cloud-1:rgba(90,122,142,0.4); --hero-cloud-2:rgba(122,142,154,0.35);
}
body.ambience-night {
  --hero-gradient:linear-gradient(180deg,#0A1428 0%,#1A2845 50%,var(--content-bg) 100%);
  --hero-cloud-1:rgba(252,248,240,0.08); --hero-cloud-2:rgba(252,248,240,0.05);
}

html, body { background:var(--content-bg) !important; }
html { scroll-behavior:smooth; }
body {
  font-family:var(--font-body);
  color:var(--text-strong);
  line-height:1.7;
  font-weight:300;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

h1,h2,h3,h4,.wp-block-heading { font-family:var(--font-head); color:var(--text-strong); font-weight:300; letter-spacing:-0.02em; line-height:1.15; }
p,li { color:var(--text-soft); font-weight:300; }
a { color:var(--text-strong); text-decoration:none; }

/* ════════════════════ HOME (mockup classNames) ════════════════════ */

.sk-top-bar {
  position:fixed; top:0; left:0; right:0; padding:20px 32px;
  display:flex; justify-content:space-between; align-items:center; z-index:100;
  background:transparent !important; -webkit-backdrop-filter:none !important; backdrop-filter:none !important; border:0 !important;
}
.sk-brand { display:flex; align-items:center; gap:10px; color:var(--text-strong); text-decoration:none; transition:opacity .3s ease; }
.sk-brand:hover { opacity:.85; }
.sk-brand-icon { width:26px; height:26px; display:block; flex:none; }
.sk-brand-text { font-family:var(--font-head); font-size:18px; font-weight:400; letter-spacing:-0.01em; color:var(--text-strong); }
.sk-nav-controls { display:flex; gap:10px; align-items:center; }
.sk-ambience-group { display:flex; gap:4px; padding:4px; background:rgba(252,248,240,0.06); -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px); border:1px solid var(--border-fine); border-radius:100px; }
.sk-ambience-btn { background:transparent; border:none; color:var(--text-muted); padding:6px 14px; border-radius:100px; font-family:var(--font-body); font-size:11px; font-weight:400; cursor:pointer; transition:all .4s ease; letter-spacing:.5px; }
.sk-ambience-btn:hover { color:var(--text-soft); }
.sk-ambience-btn.active { background:rgba(252,248,240,0.15); color:var(--text-strong); }
.sk-lang { background:rgba(252,248,240,0.06); -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px); border:1px solid var(--border-fine); color:var(--text-soft); padding:8px 16px; border-radius:100px; font-family:var(--font-body); font-size:12px; cursor:pointer; transition:all .4s ease; letter-spacing:.4px; position:relative; }
.sk-lang:hover { background:rgba(252,248,240,0.12); color:var(--text-strong); border-color:rgba(252,248,240,0.3); }
.sk-lang ul { list-style:none; margin:0; padding:6px; position:absolute; top:calc(100% + 8px); right:0; background:var(--content-bg-soft); border:1px solid var(--border-fine); border-radius:14px; min-width:150px; display:none; flex-direction:column; gap:2px; box-shadow:0 12px 40px rgba(0,0,0,.4); }
.sk-lang:hover ul, .sk-lang:focus-within ul { display:flex; }
.sk-lang ul a { display:block; padding:8px 12px; border-radius:8px; color:var(--text-soft); font-size:13px; }
.sk-lang ul a:hover { background:rgba(252,248,240,0.08); color:var(--text-strong); }
.sk-lang ul li.current-lang a { color:var(--text-strong); }

.sk-hero { position:relative; min-height:100vh; display:flex; flex-direction:column; align-items:center; justify-content:center; padding:140px 24px 80px; text-align:center; overflow:hidden; }
.sk-ambience { position:absolute; inset:0; width:100%; height:100%; opacity:0; transition:opacity 2s ease; pointer-events:none; }
.sk-ambience.active { opacity:1; }
.sk-ambience svg { width:100%; height:100%; object-fit:cover; display:block; }
.sk-hero::after { content:''; position:absolute; bottom:0; left:0; right:0; height:200px; background:linear-gradient(180deg, transparent 0%, var(--content-bg) 100%); pointer-events:none; z-index:2; }
.sk-hero-content { position:relative; z-index:3; display:flex; flex-direction:column; align-items:center; max-width:720px; }
.sk-greeting { font-family:var(--font-arabic); font-size:24px; color:var(--text-soft); margin-bottom:8px; direction:rtl; opacity:0; animation:sk-fade 1.5s ease .2s forwards; }
.sk-label { font-family:var(--font-head); font-size:11px; letter-spacing:.4em; text-transform:uppercase; color:var(--text-soft); margin-bottom:40px; font-weight:500; opacity:0; animation:sk-fade 1.5s ease .4s forwards; }
.sk-title { font-family:var(--font-head); font-size:clamp(80px,14vw,168px); font-weight:300; letter-spacing:-0.04em; line-height:.95; color:var(--text-strong); margin-bottom:48px; opacity:0; animation:sk-fade 1.8s ease .6s forwards; }
.sk-tagline { font-family:var(--font-head); font-size:clamp(22px,3vw,30px); font-weight:300; color:var(--text-strong); margin-bottom:14px; letter-spacing:-0.015em; opacity:0; animation:sk-fade 1.5s ease .9s forwards; }
.sk-sub { font-family:var(--font-body); font-size:16px; color:var(--text-soft); margin-bottom:64px; font-weight:300; opacity:0; animation:sk-fade 1.5s ease 1.1s forwards; }
.sk-cta { display:inline-block; padding:18px 56px; background:rgba(252,248,240,0.08); -webkit-backdrop-filter:blur(14px); backdrop-filter:blur(14px); color:var(--text-strong); border:1px solid rgba(252,248,240,0.35); border-radius:100px; font-family:var(--font-body); font-size:15px; font-weight:400; letter-spacing:.5px; text-decoration:none; transition:all .5s ease; cursor:pointer; opacity:0; animation:sk-fade 1.5s ease 1.3s forwards; }
.sk-cta:hover { background:rgba(252,248,240,0.18); border-color:rgba(252,248,240,0.6); }
.sk-note { margin-top:20px; color:var(--text-muted); font-size:13px; font-weight:300; opacity:0; animation:sk-fade 1.5s ease 1.5s forwards; }
@keyframes sk-fade { from { opacity:0; transform:translateY(12px);} to { opacity:1; transform:none; } }
.sk-scroll { position:absolute; bottom:56px; left:50%; transform:translateX(-50%); color:var(--text-muted); font-size:10px; letter-spacing:.4em; text-transform:uppercase; font-family:var(--font-head); font-weight:500; animation:sk-pulse 4s ease-in-out infinite; z-index:3; }
@keyframes sk-pulse { 0%,100%{opacity:.35;} 50%{opacity:.75;} }

.sk-section { padding:140px 24px; max-width:var(--maxw); margin:0 auto; position:relative; }
.sk-sec-label { font-family:var(--font-head); font-size:11px; letter-spacing:.4em; text-transform:uppercase; color:var(--text-muted); text-align:center; margin-bottom:32px; font-weight:500; }
.sk-sec-title { font-family:var(--font-head); font-size:clamp(32px,5vw,56px); font-weight:300; text-align:center; letter-spacing:-0.025em; line-height:1.1; margin-bottom:64px; color:var(--text-strong); }
.sk-prose { font-family:var(--font-body); font-size:19px; line-height:1.8; color:var(--text-soft); font-weight:300; text-align:center; max-width:660px; margin:0 auto; }
.sk-prose + .sk-prose { margin-top:28px; }
.sk-prose em { font-style:italic; color:var(--text-strong); }
.sk-arabic-inline { font-family:var(--font-arabic); font-size:24px; color:var(--text-soft); direction:rtl; unicode-bidi:embed; margin:0 4px; }
.sk-divider { width:60px; height:1px; background:var(--border-fine); margin:0 auto; }
.sk-principles { display:grid; grid-template-columns:1fr; gap:64px; margin-top:80px; }
@media (min-width:720px){ .sk-principles { grid-template-columns:1fr 1fr; gap:80px 64px; } }
.sk-principle { text-align:center; padding:0 16px; }
.sk-principle-num { font-family:var(--font-head); font-size:13px; color:var(--text-muted); letter-spacing:.3em; margin-bottom:18px; font-weight:500; }
.sk-principle h3 { font-family:var(--font-head); font-size:24px; font-weight:400; margin-bottom:18px; color:var(--text-strong); letter-spacing:-0.01em; }
.sk-principle p { font-family:var(--font-body); font-size:16px; line-height:1.7; color:var(--text-soft); font-weight:300; }

.sk-hadith-section { position:relative; padding:200px 24px; text-align:center; overflow:hidden; }
.sk-hadith-bg { position:absolute; inset:0; opacity:.5; pointer-events:none; }
.sk-hadith-bg svg { width:100%; height:100%; object-fit:cover; }
.sk-hadith-content { position:relative; z-index:2; max-width:720px; margin:0 auto; }
.sk-hadith-arabic { font-family:var(--font-arabic); font-size:clamp(36px,6vw,56px); line-height:1.8; color:var(--text-strong); direction:rtl; margin-bottom:36px; font-weight:400; letter-spacing:1px; }
.sk-hadith-translit { font-family:var(--font-body); font-size:18px; color:var(--text-soft); font-style:italic; font-weight:300; margin-bottom:18px; }
.sk-hadith-translation { font-family:var(--font-body); font-size:16px; color:var(--text-muted); font-weight:300; }

.sk-community { padding:140px 24px 80px; max-width:var(--maxw); margin:0 auto; text-align:center; }
.sk-community-statement { font-family:var(--font-head); font-size:clamp(28px,4vw,40px); font-weight:300; letter-spacing:-0.02em; line-height:1.3; color:var(--text-strong); margin-bottom:32px; }
.sk-community-statement em { font-style:italic; color:var(--text-soft); }
.sk-community-detail { font-family:var(--font-body); font-size:17px; line-height:1.7; color:var(--text-soft); font-weight:300; max-width:600px; margin:0 auto 56px; }
.sk-community-actions { display:flex; flex-direction:column; align-items:center; gap:20px; }
.sk-community-cta { display:inline-block; padding:18px 56px; background:transparent; color:var(--text-strong); border:1px solid var(--border-fine); border-radius:100px; font-family:var(--font-body); font-size:15px; font-weight:400; letter-spacing:.5px; text-decoration:none; transition:all .5s ease; }
.sk-community-cta:hover { border-color:rgba(252,248,240,0.4); background:rgba(252,248,240,0.05); }
.sk-text-link { font-family:var(--font-body); font-size:14px; color:var(--text-muted); text-decoration:none; font-weight:400; border-bottom:1px solid var(--border-subtle); padding-bottom:4px; transition:all .3s ease; }
.sk-text-link:hover { color:var(--text-soft); border-color:var(--border-fine); }

.sk-footer { padding:100px 24px 60px; text-align:center; border-top:1px solid var(--border-subtle); margin-top:80px; }
.sk-footer-arabic { font-family:var(--font-arabic); font-size:26px; color:var(--text-muted); direction:rtl; margin-bottom:28px; }
.sk-footer-tagline { font-family:var(--font-body); font-size:13px; color:var(--text-muted); font-weight:300; letter-spacing:.3px; margin:0 auto 36px; max-width:520px; line-height:1.55; }
.sk-footer-links { display:flex; justify-content:center; gap:36px; flex-wrap:wrap; margin-bottom:28px; }
.sk-footer-links a { font-family:var(--font-body); font-size:14px; color:var(--text-soft); text-decoration:none; font-weight:300; transition:color .3s ease; letter-spacing:.3px; }
.sk-footer-links a:hover { color:var(--text-strong); }
.sk-footer-resources { margin-bottom:40px; gap:28px; }
.sk-footer-resources a { font-size:13px; color:var(--text-muted); }
.sk-footer-copy { font-family:var(--font-body); font-size:12px; color:var(--text-muted); font-weight:300; letter-spacing:.5px; }

/* ════════════════════ SECONDARY PAGES (Kadence + my c41 block classes) ════════════════════ */

/* Kadence header hidden everywhere — replaced by the unified transparent top-bar. */
.site-header, #masthead { display:none !important; }
body { padding-top:0 !important; }
.content-area, .content-bg, .entry, .entry-content, .entry-content-wrap, article.entry, .hentry,
#primary, .site-container, #inner-wrap, .site-content, .wp-site-blocks, #content, #wrapper {
  background:transparent !important; box-shadow:none !important;
}
.entry-content-wrap { padding:0 !important; }
.content-area { margin-top:0 !important; margin-bottom:0 !important; }

/* my c41 hero → transparent; the cross-fading layers below are the sole color source. */
.sukun-hero { position:relative; overflow:hidden; padding-block:180px 100px !important; text-align:center;
  background:transparent !important; }
.sukun-hero::before { content:''; position:absolute; top:22%; left:18%; width:200px; height:6px; background:var(--hero-cloud-1); border-radius:50%; filter:blur(2px); transition:background 2s ease; pointer-events:none; z-index:1; }
.sukun-hero::after  { content:''; position:absolute; top:38%; right:14%; width:180px; height:5px; background:var(--hero-cloud-2); border-radius:50%; filter:blur(2px); transition:background 2s ease; pointer-events:none; z-index:1; }
.sukun-hero > * { position:relative; z-index:2; }
/* Cross-fading gradient layers for the secondary hero (injected by JS). Driving the
   opacity off `body.ambience-*` rather than a `.active` class on the layer matches
   the home `.screen-bg` system and survives any cascade quirk on a given page. */
.sukun-hero-amb { position:absolute !important; inset:0 !important; opacity:0; transition:opacity 2s ease; pointer-events:none; z-index:0; }
.sukun-hero-amb[data-ambience="dawn"]   { background:linear-gradient(180deg,#2A4A6E 0%,#4A6890 50%,var(--content-bg) 100%); }
.sukun-hero-amb[data-ambience="sunset"] { background:linear-gradient(180deg,#2E1B3F 0%,#5A3458 50%,var(--content-bg) 100%); }
.sukun-hero-amb[data-ambience="night"]  { background:linear-gradient(180deg,#0A1428 0%,#1A2845 50%,var(--content-bg) 100%); }
body.ambience-sunset .sukun-hero-amb[data-ambience="sunset"] { opacity:1; }
body.ambience-dawn   .sukun-hero-amb[data-ambience="dawn"]   { opacity:1; }
body.ambience-night  .sukun-hero-amb[data-ambience="night"]  { opacity:1; }
/* Keep the legacy `.active` selector working too, for any path the JS still drives it. */
.sukun-hero-amb.active { opacity:1; }
.sukun-hero .sukun-kicker { font-family:var(--font-head); font-weight:300; font-size:clamp(40px,8vw,72px); letter-spacing:.04em; color:var(--text-strong); margin:0 0 .15em; text-shadow:none; }
.sukun-hero h1, .sukun-hero .wp-block-heading { color:var(--text-strong) !important; font-weight:300; font-size:clamp(30px,5vw,52px); letter-spacing:-0.02em; text-shadow:none; }
.sukun-hero .sukun-lede { color:var(--text-soft); font-size:19px; max-width:42ch; margin:0 auto 1.6em; text-shadow:none; }

/* content sections dark */
.sukun-section { padding:120px 24px !important; max-width:880px; margin-inline:auto; background:transparent !important; -webkit-backdrop-filter:none !important; backdrop-filter:none !important; }
.sukun-section--alt { background:var(--content-bg-deeper) !important; }
.sukun-section h2.wp-block-heading { font-size:clamp(28px,4vw,40px); font-weight:300; color:var(--text-strong); text-align:center; margin-bottom:.8em; }
.sukun-section p, .sukun-section li { color:var(--text-soft); font-size:18px; }
.sukun-section p strong, .sukun-section li strong { color:var(--text-strong); font-weight:500; }
.sukun-legal { max-width:760px; margin-inline:auto; }
.sukun-legal h2 { font-size:24px; color:var(--text-strong); margin-top:1.8em; }
.sukun-legal h3 { font-size:19px; color:var(--text-strong); }
.sukun-legal p, .sukun-legal li { color:var(--text-soft); }
.sukun-meta-date { color:var(--text-muted); }
.sukun-note { color:var(--text-muted); }

/* links in content */
.sukun-section a, .sukun-legal a { color:var(--text-strong); border-bottom:1px solid var(--border-subtle); }
.sukun-section a:hover { border-color:var(--border-fine); }

/* buttons → glass pill */
.wp-block-button__link {
  display:inline-block; font-family:var(--font-body); font-weight:400; font-size:15px; letter-spacing:.5px;
  border-radius:100px; padding:16px 44px; text-decoration:none; border:1px solid rgba(252,248,240,0.35);
  background:rgba(252,248,240,0.08); color:var(--text-strong) !important; -webkit-backdrop-filter:blur(14px); backdrop-filter:blur(14px); transition:all .4s ease;
}
.wp-block-button__link:hover { background:rgba(252,248,240,0.18); border-color:rgba(252,248,240,0.6); color:#fff !important; }
.wp-block-button.is-style-outline .wp-block-button__link { background:transparent; }

/* hadith block (secondary pages) */
.sukun-hadith { border-top:1px solid var(--border-fine); padding-top:2em; }
.sukun-arabic { font-family:var(--font-arabic); direction:rtl; font-size:clamp(30px,5vw,44px); line-height:1.9; color:var(--text-strong); }
.sukun-hadith .sukun-trans { color:var(--text-muted); font-style:italic; }

/* Kadence footer hidden — replaced by the unified .sk-footer on every page. */
.site-footer, #colophon { display:none !important; }

/* day/night toggle (legacy) — hide, ambiance system replaces it */
#sukun-theme-toggle { display:none !important; }

/* ════════════════════ scroll fade-up + page transition ════════════════════ */
.scroll-fade { opacity:0; transform:translateY(24px); transition:opacity 1.2s ease, transform 1.2s ease; }
.scroll-fade.visible { opacity:1; transform:translateY(0); }
.sk-principle:nth-child(2).scroll-fade { transition-delay:.12s; }
.sk-principle:nth-child(3).scroll-fade { transition-delay:.24s; }
.sk-principle:nth-child(4).scroll-fade { transition-delay:.36s; }
.sukun-section li.scroll-fade:nth-child(2) { transition-delay:.08s; }
.sukun-section li.scroll-fade:nth-child(3) { transition-delay:.16s; }
.sukun-section li.scroll-fade:nth-child(4) { transition-delay:.24s; }
@keyframes sukunPageFade { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:none; } }
body.sukun-pagefade { animation:sukunPageFade .6s ease; }

/* ════════════════════ APP MOMENTS (home, FR only — c41-quater) ════════════════════
   Inserted between Principes and Hadith. Four coded phone-screens (HTML/CSS, no PNG),
   each frame holds 3 stacked gradient layers whose opacity is cross-faded by the
   body.ambience-* class set by the shared JS in sukun-chrome.php. Internal layout
   uses container query units (cqw) so contents scale with the frame width.
   Class names mirror sukun-mockup-accueil-v3.html verbatim. */

.section-app { padding:120px 24px 60px; max-width:1280px; margin:0 auto; }
.section-app-header { text-align:center; max-width:760px; margin:0 auto 100px; }
.section-app .section-label { font-family:var(--font-head); font-size:11px; letter-spacing:.4em; text-transform:uppercase; color:var(--text-muted); margin-bottom:32px; font-weight:500; }
.section-app .section-title { font-family:var(--font-head); font-size:clamp(32px,5vw,56px); font-weight:300; letter-spacing:-0.025em; line-height:1.1; margin-bottom:32px; color:var(--text-strong); }
.section-app .section-prose { font-family:var(--font-body); font-size:18px; line-height:1.75; color:var(--text-soft); font-weight:300; max-width:660px; margin:0 auto; }

.app-moment { display:grid; grid-template-columns:1fr; gap:60px; align-items:center; padding:80px 0; }
@media (min-width:920px) {
  .app-moment { grid-template-columns:1fr 1fr; gap:100px; }
  .app-moment.flipped .app-moment-text { order:2; }
  .app-moment.flipped .app-moment-visual { order:1; }
}
.app-moment-text { max-width:480px; margin:0 auto; }
.app-moment-number { font-family:var(--font-head); font-size:12px; letter-spacing:.4em; text-transform:uppercase; color:var(--text-soft); margin-bottom:24px; font-weight:500; display:flex; align-items:center; gap:14px; }
.app-moment-number::before { content:''; width:24px; height:1px; background:var(--text-soft); opacity:.6; }
.app-moment-title { font-family:var(--font-head); font-size:clamp(28px,3.4vw,40px); font-weight:300; letter-spacing:-0.02em; line-height:1.15; color:var(--text-strong); margin-bottom:28px; }
.app-moment-title em { font-style:italic; color:var(--text-soft); }
.app-moment-body { font-family:var(--font-body); font-size:16px; line-height:1.75; color:var(--text-soft); font-weight:300; }
.app-moment-body + .app-moment-body { margin-top:16px; }
.app-moment-body strong { color:var(--text-strong); font-weight:400; }
.app-moment-body .arabic-mini, .section-app .arabic-mini { font-family:var(--font-arabic); direction:rtl; unicode-bidi:embed; color:var(--text-strong); font-size:1.1em; margin:0 3px; }
.app-moment-visual { display:flex; justify-content:center; align-items:center; }

/* ── SCREEN FRAME — phone-shaped, container-queried, 3-layer cross-fade bg ── */
.screen-frame {
  position:relative; width:100%; max-width:320px; aspect-ratio:9/19;
  border-radius:30px; overflow:hidden;
  container-type:inline-size; isolation:isolate;
  box-shadow:0 35px 70px -20px rgba(0,0,0,.55), 0 15px 35px -10px rgba(0,0,0,.35);
}
/* Gradients can't be CSS-transitioned, so we stack three opaque layers and
   animate their opacity instead — a 1.6s cross-fade, slightly snappier than
   the 2s hero so the screens read as more reactive objects. */
.screen-bg { position:absolute; inset:0; border-radius:inherit; pointer-events:none; opacity:0; transition:opacity 1.6s ease; z-index:0; }
.screen-bg--sunset {
  opacity:1;
  background:
    radial-gradient(ellipse 70% 30% at 50% 95%, rgba(232,168,124,0.45) 0%, transparent 70%),
    linear-gradient(180deg, #2E1B3F 0%, #3F2348 25%, #5A3458 50%, #874A52 72%, #A75F4F 88%, #C77F60 100%);
}
.screen-bg--dawn {
  background:
    radial-gradient(ellipse 50% 25% at 12% 95%, rgba(212,144,110,0.6) 0%, transparent 70%),
    linear-gradient(180deg, #2A4A6E 0%, #3A5A80 25%, #4A6890 50%, #7C8694 75%, #9AA098 90%, #B5AC92 100%);
}
.screen-bg--night {
  background:linear-gradient(180deg, #0A1428 0%, #121E36 30%, #1A2845 60%, #243553 80%, #2D3F60 100%);
}
body.ambience-sunset .screen-bg--sunset { opacity:1; }
body.ambience-sunset .screen-bg--dawn, body.ambience-sunset .screen-bg--night { opacity:0; }
body.ambience-dawn .screen-bg--dawn { opacity:1; }
body.ambience-dawn .screen-bg--sunset, body.ambience-dawn .screen-bg--night { opacity:0; }
body.ambience-night .screen-bg--night { opacity:1; }
body.ambience-night .screen-bg--sunset, body.ambience-night .screen-bg--dawn { opacity:0; }

/* ── Internal structure of an app screen ── */
.app-screen {
  position:absolute; inset:0; z-index:1;
  display:flex; flex-direction:column;
  color:var(--text-strong); font-family:var(--font-body);
  padding:4cqw 5.5cqw 4cqw;
}
.app-topbar { display:flex; justify-content:space-between; align-items:center; padding:1.5cqw 0 0; flex-shrink:0; gap:2cqw; }
.app-iconbtn { width:9cqw; height:9cqw; border-radius:50%; background:rgba(252,248,240,0.08); border:1px solid rgba(252,248,240,0.10); display:flex; align-items:center; justify-content:center; color:rgba(252,248,240,0.75); flex-shrink:0; transition:border-color 1.6s ease, color 1.6s ease, background 1.6s ease; }
.app-iconbtn svg { width:4cqw; height:4cqw; stroke:currentColor; fill:none; stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; }
.app-iconbtn--active { border-color:rgba(232,168,124,0.65); color:rgba(252,220,180,0.95); }
body.ambience-dawn .app-iconbtn--active { border-color:rgba(180,200,220,0.7); color:rgba(220,230,240,0.95); }
body.ambience-night .app-iconbtn--active { border-color:rgba(180,200,230,0.6); color:rgba(220,230,240,0.95); }
.app-headtitle { font-family:var(--font-head); font-size:5cqw; font-weight:400; letter-spacing:-0.005em; color:var(--text-strong); flex:1; text-align:center; }

/* ── Moment 01 — Le seuil ── */
.app-screen--seuil { align-items:center; text-align:center; }
.seuil-arabic-big { font-family:var(--font-arabic); font-size:17cqw; font-weight:400; color:var(--text-strong); direction:rtl; unicode-bidi:embed; line-height:1.2; margin-top:12cqw; text-shadow:0 0 30px rgba(252,240,220,0.45); }
.seuil-translit { font-family:var(--font-body); font-style:italic; font-size:4.2cqw; color:var(--text-soft); margin-top:11cqw; font-weight:300; }
.seuil-trans { font-family:var(--font-body); font-size:3.4cqw; color:var(--text-muted); margin-top:2cqw; line-height:1.4; max-width:78cqw; font-weight:300; }
.seuil-divider { width:18cqw; height:0.3cqw; background:rgba(252,248,240,0.18); border-radius:1cqw; margin:5.5cqw auto; }
.seuil-poetic { font-family:var(--font-body); font-size:3.6cqw; font-style:italic; color:var(--text-soft); line-height:1.5; max-width:70cqw; margin:0 auto; font-weight:300; }
.seuil-eyebrow { font-family:var(--font-head); font-size:2.6cqw; letter-spacing:.35em; text-transform:uppercase; color:var(--text-muted); margin-top:7cqw; font-weight:500; }
.seuil-context { font-family:var(--font-head); font-size:5.2cqw; font-weight:400; color:var(--text-strong); margin-top:1.5cqw; letter-spacing:-0.01em; }
.seuil-context-arabic { font-family:var(--font-arabic); font-size:4.2cqw; color:var(--text-soft); direction:rtl; unicode-bidi:embed; margin-top:1.5cqw; letter-spacing:.5px; }
.seuil-bottom { margin-top:auto; display:flex; flex-direction:column; align-items:center; padding-bottom:3cqw; }
.seuil-controls { display:flex; gap:4cqw; align-items:center; margin-bottom:3cqw; }
.seuil-controls .app-iconbtn { width:8cqw; height:8cqw; }
.seuil-controls .app-iconbtn svg { width:3.5cqw; height:3.5cqw; }
.seuil-hint { font-family:var(--font-body); font-size:3.2cqw; color:var(--text-muted); font-weight:300; }
.seuil-skip { font-family:var(--font-body); font-size:3cqw; color:var(--text-whisper); margin-top:1.5cqw; font-weight:300; }

/* ── Moment 02 — Le moment (compteur) ── */
.moment-section-eyebrow { font-family:var(--font-head); font-size:2.8cqw; letter-spacing:.35em; text-transform:uppercase; color:var(--text-soft); text-align:center; margin-top:5cqw; font-weight:500; }
.moment-progress { display:flex; gap:2cqw; margin-top:2.5cqw; padding:0 1cqw; }
.moment-progress-seg { flex:1; height:0.4cqw; background:rgba(252,248,240,0.15); border-radius:1cqw; overflow:hidden; position:relative; }
.moment-progress-seg.partial::before { content:''; position:absolute; inset:0; width:22%; background:rgba(232,168,124,0.85); border-radius:1cqw; transition:background 1.6s ease; }
body.ambience-dawn .moment-progress-seg.partial::before { background:rgba(220,210,180,0.9); }
body.ambience-night .moment-progress-seg.partial::before { background:rgba(200,220,240,0.85); }
.moment-center { flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; padding:0 2cqw; }
.moment-arabic-big { font-family:var(--font-arabic); font-size:17cqw; color:var(--text-strong); direction:rtl; unicode-bidi:embed; line-height:1.1; text-shadow:0 0 28px rgba(252,240,220,0.4); }
.moment-translit { font-family:var(--font-body); font-style:italic; font-size:4.5cqw; color:var(--text-soft); margin-top:5cqw; font-weight:300; }
.moment-trans { font-family:var(--font-body); font-size:3.4cqw; color:var(--text-muted); margin-top:1.5cqw; font-weight:300; }
.moment-side-controls { position:absolute; left:0; top:35%; transform:translateY(-50%); display:flex; flex-direction:column; gap:3.5cqw; }
.moment-side-controls .app-iconbtn { width:9cqw; height:9cqw; }
.moment-side-controls .app-iconbtn svg { width:4cqw; height:4cqw; }
.moment-counter { position:absolute; bottom:8cqw; left:50%; transform:translateX(-50%); width:50cqw; height:50cqw; }
.moment-counter svg { width:100%; height:100%; display:block; }
.moment-counter-num { position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); text-align:center; }
.moment-counter-num .num { font-family:var(--font-head); font-size:11cqw; font-weight:300; color:var(--text-strong); letter-spacing:-0.02em; line-height:1; }
.moment-counter-num .of { font-family:var(--font-body); font-size:3cqw; color:var(--text-muted); margin-top:1cqw; font-weight:300; }

/* ── Moment 03 — Les adhkâr (biblio) ── */
.app-screen--biblio { gap:0; }
.biblio-search { margin-top:4cqw; padding:3cqw 4cqw; background:rgba(252,248,240,0.06); border:1px solid rgba(252,248,240,0.12); border-radius:100px; display:flex; align-items:center; gap:2.5cqw; color:var(--text-muted); }
.biblio-search svg { width:3.5cqw; height:3.5cqw; stroke:currentColor; fill:none; stroke-width:1.5; flex-shrink:0; }
.biblio-search span { font-family:var(--font-body); font-size:3.3cqw; font-weight:300; }
.biblio-eyebrow { font-family:var(--font-head); font-size:2.8cqw; letter-spacing:.35em; text-transform:uppercase; color:var(--text-muted); margin-top:5cqw; font-weight:500; }
.biblio-list { margin-top:3cqw; display:flex; flex-direction:column; gap:3cqw; overflow:hidden; }
.biblio-card { background:rgba(252,248,240,0.045); border:1px solid rgba(252,248,240,0.07); border-radius:4cqw; padding:4cqw; }
.biblio-card-head { display:flex; align-items:center; justify-content:space-between; gap:3cqw; }
.biblio-card-name { font-family:var(--font-head); font-size:4.4cqw; font-weight:400; color:var(--text-strong); letter-spacing:-0.005em; }
.biblio-card-actions { display:flex; gap:2cqw; align-items:center; }
.biblio-card-actions svg { width:4cqw; height:4cqw; stroke:rgba(252,248,240,0.4); fill:none; stroke-width:1.5; }
.biblio-card-actions .app-iconbtn { width:6cqw; height:6cqw; }
.biblio-card-actions .app-iconbtn svg { width:3cqw; height:3cqw; }
.biblio-card-divider { height:1px; background:rgba(252,248,240,0.08); margin:2.5cqw 0; }
.biblio-card-arabic { font-family:var(--font-arabic); font-size:10cqw; color:var(--text-strong); direction:rtl; unicode-bidi:embed; text-align:right; line-height:1.3; margin:1cqw 0 0; text-shadow:0 0 12px rgba(252,240,220,0.18); }
.biblio-card-translit { font-family:var(--font-body); font-style:italic; font-size:3.3cqw; color:var(--text-soft); margin-top:2.5cqw; font-weight:300; }
.biblio-card-meaning { font-family:var(--font-body); font-size:3.1cqw; color:var(--text-muted); margin-top:0.8cqw; font-weight:300; }
.biblio-card-foot { display:flex; justify-content:space-between; align-items:center; margin-top:2.5cqw; font-family:var(--font-body); font-size:2.8cqw; color:var(--text-whisper); font-style:italic; font-weight:300; }
.biblio-card-foot .libre { font-style:normal; }
.biblio-fab { position:absolute; bottom:4cqw; right:5cqw; width:13cqw; height:13cqw; border-radius:50%; background:#FCF8F0; color:#1A1F30; display:flex; align-items:center; justify-content:center; box-shadow:0 4cqw 8cqw rgba(0,0,0,0.3); }
.biblio-fab svg { width:5cqw; height:5cqw; stroke:currentColor; stroke-width:1.8; fill:none; }

/* ── Moment 04 — La réflexion ── */
.reflexion-subtitle { font-family:var(--font-body); font-size:3.3cqw; color:var(--text-muted); text-align:center; margin-top:0.5cqw; font-weight:300; }
.reflexion-block { margin-top:5cqw; }
.reflexion-eyebrow { font-family:var(--font-head); font-size:2.8cqw; letter-spacing:.35em; text-transform:uppercase; color:var(--text-muted); font-weight:500; }
.reflexion-week { display:flex; gap:2.5cqw; margin-top:3.5cqw; align-items:flex-end; }
.reflexion-day { flex:1; display:flex; flex-direction:column; align-items:center; gap:1cqw; }
.reflexion-day-bar { width:2.5cqw; height:9cqw; background:rgba(252,248,240,0.18); border-radius:2cqw; transition:background 1.6s ease, box-shadow 1.6s ease; }
.reflexion-day.active .reflexion-day-bar { background:rgba(252,240,220,0.95); box-shadow:0 0 10cqw rgba(232,168,124,0.55), 0 0 2cqw rgba(252,240,220,0.7); }
body.ambience-dawn .reflexion-day.active .reflexion-day-bar { background:rgba(220,230,240,0.95); box-shadow:0 0 10cqw rgba(180,200,220,0.5), 0 0 2cqw rgba(252,240,220,0.5); }
body.ambience-night .reflexion-day.active .reflexion-day-bar { background:rgba(220,230,245,0.95); box-shadow:0 0 10cqw rgba(160,180,220,0.4), 0 0 2cqw rgba(220,230,245,0.5); }
.reflexion-day-label { font-family:var(--font-head); font-size:2.4cqw; color:var(--text-muted); letter-spacing:.1em; }
.reflexion-day.active .reflexion-day-label { color:var(--text-strong); }
.reflexion-day-dot { width:0.7cqw; height:0.7cqw; border-radius:50%; background:var(--text-strong); margin-top:0.3cqw; opacity:0; }
.reflexion-day.active .reflexion-day-dot { opacity:1; }
.reflexion-line { font-family:var(--font-body); font-size:3.5cqw; color:var(--text-soft); margin-top:3.5cqw; font-weight:300; }
.reflexion-line strong { color:var(--text-strong); font-weight:500; }
.reflexion-divider { height:1px; background:rgba(252,248,240,0.08); margin:4cqw 0; }
.reflexion-quote { font-family:var(--font-body); font-style:italic; font-size:3.6cqw; color:var(--text-strong); line-height:1.5; font-weight:300; }
.reflexion-quote-source { font-family:var(--font-body); font-size:2.9cqw; color:var(--text-muted); margin-top:1.5cqw; font-weight:300; }
.reflexion-big-num { font-family:var(--font-head); font-size:12cqw; font-weight:300; color:var(--text-strong); line-height:1; letter-spacing:-0.02em; margin:1.5cqw 0; }
.reflexion-caption { font-family:var(--font-body); font-size:3cqw; color:var(--text-muted); font-weight:300; }
.reflexion-today-inline { display:flex; align-items:baseline; gap:2cqw; margin:1.5cqw 0 1cqw; }
.reflexion-today-inline .reflexion-big-num { font-size:7cqw; margin:0; }
.reflexion-today-inline .lbl { font-family:var(--font-body); font-size:3cqw; color:var(--text-muted); font-weight:300; }
.reflexion-poetic { font-family:var(--font-body); font-style:italic; font-size:3.1cqw; color:var(--text-soft); line-height:1.5; margin-top:0.5cqw; font-weight:300; }
.reflexion-privacy { display:flex; align-items:flex-start; gap:1.8cqw; padding-top:4cqw; margin-top:auto; border-top:1px solid rgba(252,248,240,0.06); }
.reflexion-privacy svg { width:3cqw; height:3cqw; stroke:var(--text-muted); fill:none; stroke-width:1.5; flex-shrink:0; margin-top:0.5cqw; }
.reflexion-privacy span { font-family:var(--font-body); font-size:2.7cqw; color:var(--text-muted); line-height:1.45; font-weight:300; }

@media (max-width:720px) {
  .section-app { padding:80px 20px 40px; }
  .section-app-header { margin-bottom:60px; }
  .app-moment { padding:40px 0; gap:40px; }
}

/* ════════════════════ RTL ════════════════════ */
html[dir="rtl"] .sk-top-bar { flex-direction:row-reverse; }
html[dir="rtl"] .sk-lang ul { right:auto; left:0; }
html[dir="rtl"] .sukun-hero::before { left:auto; right:18%; }
html[dir="rtl"] .sukun-hero::after { right:auto; left:14%; }

/* App-moments section in RTL (AR). Flip the back-arrow on every coded screen
   topbar so it points the natural way (`>`), keep the .seuil-translit area
   readable when it holds Arabic instead of a Latin transliteration, and let the
   browser's natural flex reversal handle the week-bar order. */
html[dir="rtl"] .app-screen .app-topbar > .app-iconbtn:first-child svg { transform:scaleX(-1); }
html[dir="rtl"] .seuil-translit { font-family:var(--font-arabic); font-style:normal; direction:rtl; unicode-bidi:embed; font-size:5cqw; }
html[dir="rtl"] .moment-counter-num .num,
html[dir="rtl"] .moment-counter-num .of,
html[dir="rtl"] .reflexion-big-num { font-feature-settings:"ss01"; }
/* Side controls on the counter screen sit at left:0 in LTR; mirror to right:0 in RTL
   so they hug the readable edge of the device on the Arabic layout. */
html[dir="rtl"] .moment-side-controls { left:auto; right:0; }
/* Biblio cards in RTL: actions row stays at the start, name stays at the end —
   flex naturally inverts. The arabic line is already text-align:right (matches). */
html[dir="rtl"] .biblio-card-arabic { text-align:right; }
html[dir="rtl"] .biblio-fab { right:auto; left:5cqw; }

/* ════════════════════ reduce motion ════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; }
  .sk-scroll { animation:none; opacity:.5; }
  .sk-ambience { transition:opacity .3s ease; }
  .scroll-fade { opacity:1 !important; transform:none !important; }
  body.sukun-pagefade { animation:none; }
  html { scroll-behavior:auto; }
}

/* ════════════════════ responsive ════════════════════ */
@media (max-width:600px) {
  .sk-top-bar { padding:16px 18px; }
  .sk-ambience-group { padding:3px; }
  .sk-ambience-btn { padding:5px 10px; font-size:10px; }
  .sk-lang { padding:6px 12px; font-size:11px; }
  .sk-hero { padding:120px 20px 60px; }
  .sk-section, .sk-hadith-section, .sk-community { padding:100px 20px; }
  .sk-footer-links { gap:20px; }
  .sukun-section { padding:80px 20px !important; }
}

/* ════════════════════ SEO-AUDIT PAGES (guide / faq / 99 names) ════════════════════ */

/* Lede paragraph at top of articles */
.sk-lede { font-family:var(--font-body); font-size:19px; line-height:1.7; color:var(--text-soft); font-weight:300; max-width:680px; margin:0 auto 56px; padding:0 4px; }

/* Subtle scholar TODO marker — visible but not loud */
.sk-todo { display:inline-block; font-family:var(--font-body); font-size:11px; letter-spacing:.05em; color:var(--text-muted); opacity:.55; border:1px dashed var(--border-fine); padding:2px 8px; border-radius:4px; vertical-align:middle; }

/* Attribution footer paragraph */
.sk-attribution { font-family:var(--font-body); font-size:13px; color:var(--text-muted); font-weight:300; line-height:1.65; margin-top:48px; padding-top:24px; border-top:1px solid var(--border-subtle); max-width:680px; }

/* FAQ — accordion */
.sk-faq { max-width:760px; margin:0 auto; padding:8px 0 24px; }
.sk-faq-item { border-bottom:1px solid var(--border-subtle); padding:0; }
.sk-faq-item[open] { background:rgba(255,255,255,.012); }
.sk-faq-q { font-family:var(--font-head); font-size:17px; font-weight:300; color:var(--text-strong); padding:22px 8px 22px 0; cursor:pointer; list-style:none; position:relative; padding-right:36px; line-height:1.45; letter-spacing:.005em; }
.sk-faq-q::-webkit-details-marker { display:none; }
.sk-faq-q::after { content:'+'; position:absolute; right:8px; top:50%; transform:translateY(-50%); font-size:22px; font-weight:200; color:var(--text-muted); transition:transform .25s ease, color .25s ease; }
.sk-faq-item[open] .sk-faq-q::after { transform:translateY(-50%) rotate(45deg); color:var(--text-soft); }
.sk-faq-q:hover { color:var(--text-strong); }
.sk-faq-a { font-family:var(--font-body); font-size:15px; line-height:1.75; color:var(--text-soft); font-weight:300; padding:0 32px 28px 8px; max-width:680px; }
.sk-faq-a a { color:var(--text-soft); text-decoration:underline; text-decoration-thickness:1px; text-underline-offset:3px; }
.sk-faq-a a:hover { color:var(--text-strong); }

/* 99 names — table grid */
.sk-99-grid { margin:28px 0 56px; overflow-x:auto; }
.sk-99-table { width:100%; max-width:880px; margin:0 auto; border-collapse:collapse; font-family:var(--font-body); font-size:15px; }
.sk-99-table thead th { font-family:var(--font-head); font-size:12px; font-weight:400; text-transform:uppercase; letter-spacing:.15em; color:var(--text-muted); padding:12px 10px; text-align:left; border-bottom:1px solid var(--border-subtle); }
.sk-99-table tbody td { padding:14px 10px; border-bottom:1px solid var(--border-fine); vertical-align:middle; color:var(--text-soft); font-weight:300; line-height:1.5; }
.sk-99-table .sk-99-num { color:var(--text-muted); font-variant-numeric:tabular-nums; width:48px; text-align:right; padding-right:18px; font-size:13px; }
.sk-99-table .sk-99-ar { font-family:var(--font-arabic); font-size:22px; line-height:1.7; color:var(--text-strong); text-align:right; width:200px; padding-right:18px; }
.sk-99-table .sk-99-tr { color:var(--text-soft); width:200px; }
.sk-99-table .sk-99-tr em { font-style:italic; color:var(--text-strong); }
.sk-99-table .sk-99-mn { color:var(--text-soft); }
.sk-99-table tbody tr:hover td { background:rgba(255,255,255,.015); }

/* Block-level article rhythm on guide pages */
.entry-content > .wp-block-heading { font-family:var(--font-head); font-weight:300; color:var(--text-strong); letter-spacing:-.01em; margin-top:64px; margin-bottom:24px; }
.entry-content > h2.wp-block-heading { font-size:clamp(26px,3.5vw,34px); }
.entry-content > h3.wp-block-heading { font-size:clamp(20px,2.4vw,24px); }
.entry-content > .wp-block-quote { border-left:1px solid var(--border-subtle); padding:8px 0 8px 24px; margin:36px auto; max-width:680px; font-style:italic; color:var(--text-soft); }
.entry-content > .wp-block-quote cite { display:block; margin-top:12px; font-size:13px; color:var(--text-muted); font-style:normal; letter-spacing:.05em; }
.entry-content > .wp-block-list { max-width:680px; margin:0 auto 24px; font-family:var(--font-body); line-height:1.85; color:var(--text-soft); font-weight:300; padding-left:24px; }
.entry-content > .wp-block-list li { margin-bottom:10px; }

@media (max-width:720px) {
  .sk-lede { font-size:17px; }
  .sk-faq-q { font-size:15.5px; }
  .sk-faq-a { font-size:14.5px; padding-right:24px; }
  .sk-99-table .sk-99-ar { font-size:20px; width:auto; padding-right:12px; }
  .sk-99-table .sk-99-tr, .sk-99-table .sk-99-mn { font-size:14px; }
  .sk-99-table thead { display:none; }
  .sk-99-table tbody td.sk-99-num { display:inline-block; }
}
