/* Sunna Planner — site vitrine
   Palette tirée de l'app et des paysages : nuit indigo, violet Sunna, lavande, or des fenêtres.
   Typo : Inter (titres en 500, serrés) + Gambarino pour les accents, comme vanta.framer.ai. */
:root {
  --night: #0d0a1c;
  --text: #f4f0ff;
  --muted: rgba(244, 240, 255, .62);
  --faint: rgba(244, 240, 255, .4);
  --violet: #7338fa;
  --lavender: #c6a6ff;
  --gold: #f7c96b;
  --line: rgba(255, 255, 255, .1);
  --serif: "Gambarino", "Iowan Old Style", Georgia, serif;
  --accent-serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius: 22px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--night); color: var(--text); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--violet); color: #fff; }

/* ---------- Type ---------- */
.h2, .hero-title { font-family: var(--sans); font-weight: 500; letter-spacing: -.035em; margin: 0; }
.h2 { font-size: clamp(34px, 4.6vw, 60px); line-height: 1.05; text-wrap: balance; }
.h2 em, .hero-title em { font-family: var(--accent-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.h2 em { color: var(--muted); }
.h2.big { font-size: clamp(40px, 6vw, 84px); }
.lead { color: var(--muted); font-size: 18px; max-width: 34em; margin: 20px 0 0; text-wrap: pretty; }
.section-head { max-width: 1180px; margin: 0 auto 56px; padding: 0 24px; }
.section-head.center { text-align: center; }
.section-head.center .lead { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 24px; border-radius: 999px; font: 500 15px/1 var(--sans); transition: transform .4s var(--ease), background .3s, box-shadow .4s; }
.btn svg { width: 19px; height: 19px; fill: currentColor; }
.btn:hover { transform: translateY(-2px); }
.btn-light { background: #fff; color: #120d26; box-shadow: 0 10px 30px -10px rgba(198, 166, 255, .6); }
.btn-glass { background: rgba(255, 255, 255, .12); color: #fff; border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.btn-glass:hover { background: rgba(255, 255, 255, .2); }
.store-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Nav (centred pill, like sunnaplanner.com) ---------- */
.nav { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 50; width: max-content; max-width: calc(100% - 24px); }
.nav-bar { display: flex; align-items: center; gap: 18px; padding: 8px 8px 8px 12px; border-radius: 28px; background: #fff; color: #120d26;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .03), 0 1px 1px .5px rgba(0, 0, 0, .04), 0 3px 3px 1.5px rgba(0, 0, 0, .04), 0 6px 6px -3px rgba(0, 0, 0, .05), 0 12px 24px -6px rgba(0, 0, 0, .25); }
.brand { display: inline-flex; align-items: center; }
.nav-sep { width: 1px; height: 28px; background: #dddde8; }
.nav-links { display: flex; gap: 26px; font-size: 15px; font-weight: 500; color: rgba(18, 13, 38, .7); }
.nav-links a:hover { color: #120d26; }
.nav-cta { display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border-radius: 999px; background: #120d26; color: #fff; font-size: 15px; font-weight: 500; white-space: nowrap; }
.nav-burger { display: none; width: 40px; height: 40px; border: 0; background: none; padding: 0; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 6px; }
.nav-burger span { width: 18px; height: 2px; border-radius: 2px; background: #8a8799; transition: transform .3s var(--ease); }
.nav.menu-open .nav-burger span:first-child { transform: translateY(4px) rotate(45deg); }
.nav.menu-open .nav-burger span:last-child { transform: translateY(-4px) rotate(-45deg); }
.nav-menu { display: none; margin-top: 8px; padding: 8px; border-radius: 24px; background: #fff; box-shadow: 0 12px 30px -8px rgba(0, 0, 0, .35); }
.nav-menu a { display: block; padding: 12px 16px; border-radius: 14px; color: #120d26; font-weight: 500; }
.nav-menu a:hover { background: #f2f2f7; }
.nav.menu-open .nav-menu { display: block; }

/* ---------- Hero ---------- */
.hero { position: relative; height: 100svh; min-height: 640px; overflow: hidden; display: grid; justify-items: center; align-items: start; }
.hero-media, .hero-shade { position: absolute; inset: 0; }
.hero-media { background: linear-gradient(180deg, color-mix(in srgb, var(--sky, #6d5bb5) 82%, #0d0a1c) 0%, var(--sky, #6d5bb5) 100%); }
.hero-video { width: 100%; height: 100%; object-fit: cover; }
.hero-video.tall { display: none; }
.hero-video.wide { position: absolute; left: 0; bottom: 0; height: auto; min-height: 62%; aspect-ratio: 2400 / 1029; object-position: 50% 100%;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 24%); mask-image: linear-gradient(180deg, transparent 0, #000 24%); }
.hero-shade { background: radial-gradient(55% 40% at 50% 30%, rgba(13, 10, 28, .3), transparent 70%), linear-gradient(180deg, rgba(13, 10, 28, .35) 0%, transparent 35%, transparent 75%, var(--night) 100%); }
.hero-content { position: relative; z-index: 1; text-align: center; padding: clamp(120px, 18vh, 180px) 24px 0; max-width: 1000px; }
.hero-title { font-size: clamp(42px, 6.4vw, 92px); line-height: 1.02; text-shadow: 0 2px 40px rgba(13, 10, 28, .3); }
.hero-title em { color: rgba(255, 255, 255, .86); }
.hero-sub { margin: 24px auto 34px; max-width: 30em; font-size: 18px; color: rgba(255, 255, 255, .88); text-shadow: 0 1px 20px rgba(13, 10, 28, .5); }
.scroll-hint { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .75); }
.scroll-hint span { width: 1px; height: 38px; background: linear-gradient(transparent, #fff); animation: drip 2.4s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); opacity: 0; } 40% { opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
.word { display: inline-block; opacity: 0; filter: blur(14px); transform: translateY(.25em); animation: wordIn 1.1s var(--ease) forwards; animation-delay: calc(.15s + var(--i) * .07s); }
@keyframes wordIn { to { opacity: 1; filter: blur(0); transform: none; } }
.reveal { opacity: 0; filter: blur(8px); transform: translateY(12px); animation: wordIn 1s var(--ease) forwards; animation-delay: var(--d, .1s); }
.reveal-up { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); transition-delay: var(--d, 0s); }
.reveal-up.in { opacity: 1; transform: none; }

/* ---------- Manifesto ---------- */
.manifesto { max-width: 1000px; margin: 0 auto; padding: 150px 24px 170px; text-align: center; }
.manifesto-text { margin: 0; font: 500 clamp(26px, 3.4vw, 44px)/1.25 var(--sans); letter-spacing: -.025em; text-wrap: balance; }
.manifesto-text .mw { color: rgba(244, 240, 255, .18); transition: color .35s; }
.manifesto-text .mw.lit { color: var(--text); }

/* ---------- Day (sticky, scroll-driven) ---------- */
.day { position: relative; height: 520vh; }
.day-sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.day-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; opacity: 0; transform: scale(1.06); transition: opacity 1.4s var(--ease), transform 6s linear; }
.day-bg img.is-on { opacity: 1; transform: scale(1); }
.day-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13, 10, 28, .82) 0%, rgba(13, 10, 28, .45) 45%, rgba(13, 10, 28, .1) 75%), linear-gradient(180deg, var(--night) 0%, transparent 12%, transparent 85%, var(--night) 100%); }
.day-inner { position: relative; height: 100%; max-width: 1180px; margin: 0 auto; padding: 90px 24px 24px; display: grid; grid-template-columns: 1fr minmax(0, 430px); align-items: center; gap: 60px; }
.day-steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 4px; }
.day-steps li { position: relative; padding: 10px 0 10px 22px; border-left: 1px solid rgba(255, 255, 255, .14); }
.day-steps li::before { content: ""; position: absolute; left: -1px; top: 0; bottom: 0; width: 2px; background: var(--lavender); transform: scaleY(0); transform-origin: top; transition: transform .6s var(--ease); }
.day-steps li.is-on::before { transform: scaleY(1); }
.step-name { display: block; font: 500 24px/1.2 var(--sans); letter-spacing: -.02em; color: rgba(255, 255, 255, .4); transition: color .5s; }
.step-text { display: block; max-height: 0; opacity: 0; overflow: hidden; color: var(--muted); max-width: 30em; transition: max-height .6s var(--ease), opacity .6s var(--ease), margin .6s var(--ease); }
.day-steps li.is-on .step-name { color: #fff; }
.day-steps li.is-on .step-text { max-height: 6em; opacity: 1; margin-top: 6px; }

/* ---------- Features bento ---------- */
.features { padding: 140px 0 120px; }
.bento { max-width: 1180px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.card { position: relative; overflow: hidden; border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .02)); border: 1px solid var(--line); }
.card::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; background: radial-gradient(400px 200px at var(--mx, 50%) var(--my, 0%), rgba(198, 166, 255, .12), transparent 70%); opacity: 0; transition: opacity .4s; }
.card:hover::after { opacity: 1; }
.card > h3 { margin: 22px 4px 6px; font: 500 22px/1.2 var(--sans); letter-spacing: -.02em; }
.card > p { margin: 0 4px; color: var(--muted); font-size: 15px; }
.card-art { position: relative; flex: 1; border-radius: 16px; padding: 16px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .06); }
.c-planner { grid-column: span 4; }
.c-ai { grid-column: span 2; }
.c-tasbih { grid-column: span 2; }
.c-adhkar { grid-column: span 4; }
.c-aya { grid-column: span 2; }
.c-projects { grid-column: span 2; }
.c-reminders { grid-column: span 2; }
.c-widgets { grid-column: span 6; }

/* ---------- Lotus ---------- */
.lotus { position: relative; height: 300vh; background: radial-gradient(80% 60% at 70% 55%, rgba(115, 56, 250, .18), transparent 70%); }
.lotus-sticky { position: sticky; top: 0; height: 100svh; max-width: 1180px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; }
.lotus-stage { position: relative; display: grid; place-items: center; height: 480px; }
.lotus-halo { position: absolute; width: 440px; height: 440px; border-radius: 50%; background: radial-gradient(circle, rgba(198, 166, 255, .35), rgba(115, 56, 250, .08) 50%, transparent 70%); filter: blur(10px); transform: scale(var(--grow, .6)); transition: transform 1s var(--ease); }
.lotus-frames { position: relative; width: 300px; height: 300px; }
.lotus-frames img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transform: scale(.94) translateY(8px); transition: opacity .7s var(--ease), transform .9s var(--ease); filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .45)); }
.lotus-frames img.is-on { opacity: 1; transform: none; animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* ---------- Reviews ---------- */
.reviews { padding: 120px 0 140px; overflow: hidden; }
.marquee { display: grid; gap: 16px; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 16px; width: max-content; animation: slide 60s linear infinite; }
.marquee-track.reverse { animation-direction: reverse; animation-duration: 70s; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.review { margin: 0; width: 380px; padding: 24px; border-radius: var(--radius); background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02)); border: 1px solid var(--line); }
.review p { margin: 0 0 16px; font: 400 22px/1.3 var(--accent-serif); }
.review cite { font-style: normal; font-size: 13px; color: var(--faint); }
.review cite::before { content: "★★★★★"; color: var(--gold); letter-spacing: 2px; margin-right: 10px; }

.free-note { margin: 14px 0 0; font-size: 13px; letter-spacing: .04em; color: rgba(255, 255, 255, .7); }

/* ---------- FAQ (simple stacked cards, no icon) ---------- */
.faq { padding: 60px 0 160px; }
.faq .section-head { margin-bottom: 40px; }
.faq .lead a { color: var(--text); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .3); text-underline-offset: 4px; }
.faq-list { max-width: 760px; margin: 0 auto; padding: 0 24px; display: grid; gap: 12px; }
.qa { border-radius: 20px; background: #16131f; border: 1px solid rgba(255, 255, 255, .06); transition: background .3s; }
.qa:hover { background: #1b1726; }
.qa-q { width: 100%; padding: 22px 26px; background: none; border: 0; color: var(--text); text-align: left; cursor: pointer; font: 500 17px/1.4 var(--sans); letter-spacing: -.01em; }
.qa-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.qa.open .qa-a { grid-template-rows: 1fr; }
.qa-inner { overflow: hidden; padding: 0 26px; color: var(--muted); font-size: 15.5px; line-height: 1.6; }
.qa-inner p { margin: 0 0 10px; }
.qa-inner > :last-child { margin-bottom: 22px; }
.qa-inner ol { margin: 0 0 10px; padding-left: 1.3em; }
.qa-inner li { margin-bottom: 6px; }
.qa-inner li::marker { color: var(--lavender); }
.qa-inner strong { color: var(--text); font-weight: 500; }
.qa-inner em { font-style: normal; color: var(--text); }
.qa-inner a { color: var(--text); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .3); text-underline-offset: 3px; }
@media (max-width: 640px) { .faq-list { padding: 0 16px; } .qa-q { padding: 20px 20px; font-size: 16px; } .qa-inner { padding: 0 20px; } }

/* ---------- CTA ---------- */
.cta { position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden; text-align: center; }
.cta-bg { position: absolute; inset: 0; }
.cta-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.cta-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--night) 0%, rgba(13, 10, 28, .35) 30%, rgba(13, 10, 28, .2) 60%, rgba(13, 10, 28, .7) 100%); }
.cta-content { position: relative; padding: 0 24px; margin-top: -10vh; }
.cta-lotus { margin: 0 auto 26px; width: 96px; filter: drop-shadow(0 0 30px rgba(198, 166, 255, .6)); animation: float 6s ease-in-out infinite; }
.cta .store-row { margin-top: 36px; }

/* ---------- Footer ---------- */
.footer { max-width: 1180px; margin: 0 auto; padding: 56px 24px 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; border-top: 1px solid var(--line); }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font-size: 15px; transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-copy { width: 100%; color: var(--faint); font-size: 13px; margin: 8px 0 0; }

/* ---------- iOS app UI (light appearance, as in the app), reproduced from the SwiftUI views ---------- */
.ios {
  --label: #000; --label2: rgba(60, 60, 67, .6); --label3: rgba(60, 60, 67, .3); --sep: rgba(60, 60, 67, .29);
  --grouped: #f2f2f7; --accent: rgb(115, 56, 250); --card: rgba(115, 56, 250, .08);
  --p-qiyam: #5856d6; --p-fajr: rgb(69, 140, 199); --p-shorok: rgb(184, 133, 31); --p-dhuhr: #ff9500; --p-asr: #af52de; --p-maghrib: #ff2d55; --p-isha: #5856d6; --p-ended: #8e8e93;
  --pr-red: #ff3b30; --pr-orange: #ff9500; --pr-blue: #007aff;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", sans-serif;
  color: var(--label);
}
.card-art.ios { background: var(--grouped); border-color: rgba(255, 255, 255, .5); }
.pi { display: inline-grid; width: 1.15em; height: 1.15em; }
.pi svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pi svg .f { fill: currentColor; stroke: none; }
.ck { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 1.6px solid var(--accent); display: grid; place-items: center; }
.done .ck { background: var(--accent); }
.done .ck::after { content: ""; width: 8px; height: 4.5px; border: solid #fff; border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg); }
.fl { display: inline-block; width: 11px; height: 11px; margin-right: 6px; vertical-align: -1px; background: var(--fc);
  clip-path: polygon(0 0, 100% 8%, 100% 64%, 14% 58%, 14% 100%, 0 100%); }

/* Timeline (PlannerTimelineView) */
.timeline-window {
  position: relative; justify-self: end; width: min(430px, 100%); height: min(600px, 74svh); overflow: hidden;
  border-radius: 34px; background: var(--grouped); box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .15);
}
.timeline-window::before, .timeline-window::after { content: ""; position: absolute; left: 0; right: 0; height: 40px; z-index: 5; pointer-events: none; }
.timeline-window::before { top: 0; background: linear-gradient(var(--grouped), transparent); }
.timeline-window::after { bottom: 0; background: linear-gradient(transparent, var(--grouped)); }
.timeline { position: relative; transition: transform 1.1s var(--ease); }
.tl-axis-line { position: absolute; left: 50px; width: 1px; top: 0; bottom: 0; background: rgba(142, 142, 147, .18); }
.tl-current { position: absolute; left: 49.5px; width: 2px; background: rgba(115, 56, 250, .5); transition: top 1.1s var(--ease), height 1.1s var(--ease); }
.tl-label { position: absolute; left: 16px; width: 68px; display: grid; justify-items: center; gap: 2px; padding: 4px 0; background: var(--grouped); color: var(--pc); font-size: 12px; transition: color .6s; }
.tl-label .pi { font-size: 21px; margin-bottom: 1px; }
.tl-label.ended { color: var(--p-ended); }
.tl-item { position: absolute; left: 100px; right: 16px; }
.tl-card { display: flex; align-items: flex-start; gap: 12px; height: 100%; padding: 10px 12px; border-radius: 9px; background: var(--card); }
.tl-card .ck { margin-top: 1px; transition: background .5s; }
.tl-card > div { min-width: 0; }
.tl-card b { display: block; font-weight: 400; font-size: 13px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-card small { display: block; font-size: 11.5px; color: var(--label2); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-card.done b, .tl-row.done b { color: var(--label2); }
.tl-card.life { background: rgba(52, 199, 89, .1); }
.tl-card.rel { background: rgba(175, 82, 222, .1); }
.tl-group { height: 100%; border-radius: 12px; background: var(--card); padding: 0 0 4px; }
.tl-group p { margin: 0; padding: 0 16px; height: 40px; display: flex; align-items: center; font-size: 12px; font-weight: 600; color: var(--label2); }
.tl-row { display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 12px 0 20px; position: relative; }
.tl-row + .tl-row::before { content: ""; position: absolute; top: 0; left: 56px; right: 16px; height: .5px; background: var(--sep); }
.tl-row b { display: block; font-weight: 400; font-size: 13px; }
.tl-row small { display: block; font-size: 11.5px; color: var(--label2); margin-top: 3px; }
.tl-free { height: 100%; padding: 10px 12px; border-radius: 9px; border: 1px dashed rgba(142, 142, 147, .4); font-size: 12.5px; color: var(--label2); }
.tl-free small { display: block; font-size: 11.5px; margin-top: 3px; }
.tl-now { position: absolute; left: 8px; right: 8px; z-index: 3; display: flex; align-items: center; transition: top 1.1s var(--ease); }
.tl-now span { padding: 4px 5px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }
.tl-now i { flex: 1; height: 1px; background: var(--accent); }
.mini-timeline { position: relative; height: 250px; margin: 6px -18px 0; overflow: hidden; }

/* Planner header */
.c-planner .card-art { padding: 18px 18px 0; }
.ios-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.ios-day { font: 700 34px/1.1 ui-serif, "New York", "Iowan Old Style", Georgia, serif; }
.ios-month { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; color: var(--label2); }
.ios-month svg { width: 10px; height: 7px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.ios-week { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; }
.ios-week span { display: grid; justify-items: center; gap: 5px; }
.ios-week small { font-size: 11px; font-weight: 500; color: var(--label2); }
.ios-week b { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; font-size: 17px; font-weight: 400; }
.ios-week i { width: 4px; height: 4px; border-radius: 50%; }
.ios-week .sel b { background: var(--accent); color: #fff; font-weight: 600; }
.ios-week .sel i { background: var(--accent); }

/* Tasbih reader */
.reader { position: relative; display: flex; padding: 0; overflow: hidden; min-height: 300px; }
.reader-items { flex: 1; padding: 22px 8px 22px 16px; text-align: center; display: grid; align-content: center; }
.dhikr p { margin: 0; }
.dhikr .ar { font: 400 34px/2 "Amiri", "Geeza Pro", serif; color: var(--label3); padding-top: 4px; }
.dhikr.on .ar { color: var(--accent); }
.dhikr .tr { font-size: 15px; color: var(--label2); margin-top: 6px; }
.dhikr .goal { margin-top: 14px; font-size: 15px; font-variant-numeric: tabular-nums; }
.dhikr .src { margin-top: 10px; font-size: 13px; font-style: italic; color: var(--label2); }
.dhikr + .dhikr { margin-top: 26px; }
.beads { --s: 44px; width: calc(var(--s) + 4px); height: 100%; overflow: hidden; position: relative; }
.beads-track { position: absolute; left: 2px; right: 2px; top: calc(var(--s) * -.55); display: grid; gap: 2px; }
.beads.small { --s: 28px; }
.bead { width: var(--s); height: var(--s); border-radius: 50%; position: relative;
  background: radial-gradient(circle at 30% 25%, rgb(110, 115, 125) 0%, rgb(31, 33, 41) 62%, rgb(5, 5, 8) 100%);
  box-shadow: -1px 2px 3px rgba(0, 0, 0, .1), inset 0 0 0 .7px rgba(255, 255, 255, .35); }
.bead::after { content: ""; position: absolute; width: 52%; height: 26%; left: 12%; top: 14%; border-radius: 50%; transform: rotate(-35deg);
  background: linear-gradient(rgba(255, 255, 255, .95), rgba(255, 255, 255, .06)); }

/* Aya of the day */
.aya-art { position: relative; display: flex; flex-direction: column; padding: 22px 18px 16px; min-height: 300px; color: #fff;
  background: linear-gradient(rgba(0, 0, 0, .45), rgba(0, 0, 0, .6)), url(assets/img/aya-wallpaper.webp) center / cover; border: 0; }
.aya-art .ar { margin: 0; text-align: right; font: 400 26px/1.7 "Amiri", "Geeza Pro", serif; }
.aya-art .tr { margin: 14px 0 18px; font: 400 15px/1.45 -apple-system, "Inter", sans-serif; }
.player { margin-top: auto; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 22px; background: rgba(40, 40, 40, .55); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid rgba(255, 255, 255, .12); font-family: -apple-system, "Inter", sans-serif; }
.player > div { flex: 1; }
.player b { display: block; font-size: 15px; font-weight: 600; }
.player small { font-size: 11px; color: rgba(255, 255, 255, .75); }
.player .ptrack { display: block; height: 5px; margin-top: 8px; border-radius: 5px; background: rgba(255, 255, 255, .18); position: relative; }
.player .ptrack i { position: absolute; left: 0; top: -4px; width: 26px; height: 13px; border-radius: 8px; background: #fff; }
.play { width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .92); display: grid; place-items: center; }
.play::after { content: ""; width: 0; height: 0; border-left: 12px solid #000; border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 3px; }

/* Adhkar */
.adhkar-art { position: relative; padding: 0; overflow: hidden; min-height: 300px; border: 0; }
.adhkar-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 6s var(--ease); }
.c-adhkar:hover .adhkar-art img { transform: scale(1.05); }
.adhkar-overlay { position: absolute; inset: auto 0 0; padding: 60px 20px 18px; background: linear-gradient(transparent, rgba(13, 10, 28, .85)); }
.adhkar-overlay b { font: 400 26px/1.1 var(--serif); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chips span { padding: 6px 12px; border-radius: 999px; font-size: 13px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

/* Project detail */
.project { padding: 18px 18px 14px; }
.proj-title { margin: 0 0 12px; display: flex; align-items: center; gap: 10px; font: 700 24px/1.15 ui-serif, "New York", Georgia, serif; }
.proj-title span { font-size: 22px; }
.proj-chips { display: flex; gap: 8px; margin-bottom: 12px; overflow: hidden; white-space: nowrap; }
.proj-chips span { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 999px; font-size: 13.5px; background: rgba(255, 255, 255, .7); border: 1px solid rgba(60, 60, 67, .12); }
.proj-chips svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.proj-chips i { width: 8px; height: 8px; border-radius: 50%; background: #34c759; }
.proj-page { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: .5px solid var(--sep); font-size: 16px; }
.proj-page svg { width: 16px; height: 16px; }
.proj-page svg .f { fill: #000; }
.proj-page em { margin-left: auto; font-style: normal; color: var(--label3); font-size: 22px; line-height: 1; }
.proj-todo { margin: 14px 0 8px; font-size: 15px; color: var(--label2); }
.proj-task { display: flex; align-items: flex-start; gap: 14px; padding: 12px 14px; border-radius: 14px; background: var(--card); }
.proj-task .ck { width: 22px; height: 22px; }
.proj-task b { display: block; font-weight: 400; font-size: 16px; }
.proj-task small { font-size: 12.5px; color: var(--label2); }

/* Reminders */
.reminders-art { display: grid; gap: 10px; align-content: center; background: linear-gradient(180deg, rgba(115, 56, 250, .2), rgba(13, 10, 28, .5)), url(assets/img/landscape-sunrise.webp) center 45% / cover; border: 0; padding: 18px; font-family: -apple-system, "Inter", sans-serif; }
.island { justify-self: center; display: flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border-radius: 999px; background: #000; color: #fff; font-size: 14px; font-weight: 600; min-width: 250px; }
.island img { width: 22px; height: 22px; }
.island span { flex: 1; }
.island b { font-variant-numeric: tabular-nums; font-weight: 600; }
.notif { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: 22px; color: #000;
  background: rgba(255, 255, 255, .78); backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%); }
.notif img { width: 36px; height: 36px; border-radius: 9px; background: #fff; padding: 3px; flex: none; }
.notif div { flex: 1; }
.notif b { display: block; font-weight: 600; font-size: 14.5px; }
.notif small { display: block; font-size: 14px; line-height: 1.3; }
.notif time { font-size: 12.5px; color: rgba(60, 60, 67, .6); }

/* Widgets (light) */
.card-art.widgets { display: flex; gap: 18px; align-items: center; justify-content: center; flex-wrap: wrap; padding: 28px; border: 0;
  background: linear-gradient(180deg, rgba(115, 56, 250, .15), rgba(13, 10, 28, .35)), url(assets/img/landscape-daylight.webp) center 55% / cover; }
.wg { background: #fff; border-radius: 22px; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .45); overflow: hidden; }
.wg-small { width: 158px; height: 158px; }
.wg-medium { width: 338px; height: 158px; padding: 14px 16px; }
.wg-prayer { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--pc); margin: 1px 0; }
.wg-prayer .pi { font-size: 11px; }
.wg-row { display: flex; align-items: center; gap: 6px; font-size: 16px; min-height: 24px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wg-row .ck { width: 17px; height: 17px; border-color: var(--label2); border-width: 1.4px; }
.wg-lotus { display: grid; place-items: center; }
.wg-lotus img { width: 104px; height: 104px; }
.wg-dhikr { display: flex; align-items: stretch; gap: 5px; padding-left: 10px; }
.wg-dhikr-text { flex: 1; display: grid; align-content: center; justify-items: start; gap: 6px; text-align: left; }
.wg-dhikr .ar { font: 400 23px/1.5 "SF Arabic", "Geeza Pro", "Noto Naskh Arabic", system-ui, sans-serif; white-space: nowrap; }
.wg-dhikr b { font: 600 28px/1 -apple-system, "Inter", sans-serif; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav-links, .nav-sep { display: none; }
  .nav-burger { display: inline-flex; }
  .nav-bar { gap: 12px; }
  .day-inner { grid-template-columns: 1fr; align-content: start; gap: 22px; padding-top: 96px; }
  .timeline-window { justify-self: stretch; width: 100%; height: auto; flex: 1; min-height: 0; }
  .day-inner { display: flex; flex-direction: column; align-items: stretch; }
  .day-shade { background: linear-gradient(180deg, var(--night) 0%, rgba(13, 10, 28, .72) 14%, rgba(13, 10, 28, .45) 50%, var(--night) 100%); }
  .day-steps { margin-top: 16px; }
  .day-steps li:not(.is-on) { display: none; }
  .day-steps li { border-left: 0; padding: 0; }
  .day-steps li::before { display: none; }
  .bento { grid-template-columns: 1fr 1fr; }
  .c-planner, .c-adhkar, .c-widgets, .c-reminders { grid-column: span 2; }
  .c-tasbih, .c-aya, .c-ai, .c-projects { grid-column: span 1; }
  .lotus { height: 240vh; }
  .lotus-sticky { grid-template-columns: 1fr; align-content: center; text-align: center; gap: 10px; }
  .lotus-sticky .lead { margin-inline: auto; }
  .lotus-stage { height: 340px; }
  .lotus-frames { width: 220px; height: 220px; }
  .lotus-halo { width: 300px; height: 300px; }
}
@media (max-width: 640px) {
  .hero-video.wide { display: none; }
  .hero-video.tall { display: block; object-position: 50% 30%; }
  .hero-media { background: none; }
  .hero-content { padding-top: 120px; }
  .hero-sub { font-size: 16px; }
  .btn { height: 48px; padding: 0 20px; }
  .manifesto { padding: 110px 22px 120px; }
  .day { height: 420vh; }
  .bento { grid-template-columns: 1fr; padding: 0 16px; }
  .c-tasbih, .c-aya, .c-planner, .c-adhkar, .c-projects, .c-reminders, .c-widgets, .c-ai { grid-column: auto; }
  .card { padding: 14px; }
  .review { width: 290px; }
  .review p { font-size: 20px; }
  .wg-medium { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .word, .reveal, .reveal-up { opacity: 1; filter: none; transform: none; }
  .hero-video { display: none !important; }
  .hero-media { background: url(assets/img/hero-wide-poster.jpg) center / cover; }
}

/* Dhikr widget, medium family (DhikrWidgetView: Arabic 34, count 31, beads at 0.78) */
.wg-medium.wg-dhikr { padding: 0 0 0 16px; gap: 12px; }
.wg-medium.wg-dhikr .ar { font-size: 34px; }
.wg-medium.wg-dhikr b { font-size: 31px; }
.wg-medium.wg-dhikr .beads.small { --s: 36px; }

/* ---------- Legal pages (French), inspired by khushuapp.netlify.app ---------- */
body.legal-page { background: #000; }
.legal-head { display: flex; justify-content: center; padding: 56px 24px 0; }
.legal-head img { filter: drop-shadow(0 6px 20px rgba(198, 166, 255, .3)); }
.legal { max-width: 640px; margin: 0 auto; padding: 40px 24px 80px; color: rgba(255, 255, 255, .56); font-size: 15px; line-height: 1.75; counter-reset: sec; }
.legal h1 { margin: 0 0 10px; text-align: center; font: 700 clamp(30px, 4vw, 38px)/1.2 var(--sans); letter-spacing: -.03em; color: #fafafa; text-wrap: balance; }
.legal-date { text-align: center; color: rgba(255, 255, 255, .32); font-size: 13px; margin: 0 0 40px; }
.legal-intro { margin: 0 0 48px; padding: 16px 20px; border-left: 2px solid #fafafa; border-radius: 0 12px 12px 0; background: #111; color: rgba(255, 255, 255, .82); font-size: 14.5px; }
.legal h2 { counter-increment: sec; margin: 56px 0 16px; font: 600 20px/1.4 var(--sans); letter-spacing: -.01em; color: #fafafa; scroll-margin-top: 40px; }
.legal h2.legal-part { counter-increment: none; counter-set: sec 0; margin: 72px 0 8px; padding-top: 40px; border-top: 1px solid rgba(255, 255, 255, .1); text-align: center; font-size: 26px; font-weight: 700; letter-spacing: -.025em; }
.legal h2.legal-part::before { content: none; }
.legal h2.legal-part:first-of-type { border-top: 0; padding-top: 0; margin-top: 48px; }
.legal h3 { margin: 28px 0 8px; font: 600 15px/1.5 var(--sans); color: rgba(255, 255, 255, .9); }
.legal p { margin: 0 0 14px; }
.legal ul { margin: 0 0 16px; padding-left: 1.1em; }
.legal li { margin: 0 0 10px; padding-left: .2em; }
.legal li::marker { color: #8d63ff; }
.legal li ul { margin: 8px 0 0; }
.legal strong { color: #fafafa; font-weight: 600; }
.legal a { color: #fafafa; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .3); text-underline-offset: 3px; }
.legal-toc { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.legal-toc a { padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .75); text-decoration: none; font-size: 13px; }
.legal-toc a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.legal-contact { margin: 64px 0 0; padding: 28px 24px; border-radius: 16px; background: #111; border: 1px solid rgba(255, 255, 255, .06); text-align: center; }
.legal-contact p { margin: 0 0 10px; font-size: 13px; color: rgba(255, 255, 255, .5); }
.legal-contact a { font-size: 17px; font-weight: 600; text-decoration: none; color: #fafafa; }
body.legal-page .footer { border-top-color: rgba(255, 255, 255, .08); }

/* Apple Intelligence card: real screenshot of the app, same card pattern as the others */
.card > p.card-note { margin-top: 8px; font-size: 13px; color: var(--faint); }
.ai-art { position: relative; min-height: 380px; padding: 0; border: 0;
  background: linear-gradient(180deg, rgba(13, 10, 28, .1), rgba(13, 10, 28, .55)), url(assets/img/landscape-night.webp) center 35% / cover; }
.ai-shot { position: absolute; left: 50%; top: 22px; width: min(240px, 84%); height: auto; transform: translateX(-50%); border-radius: 26px 26px 0 0;
  box-shadow: 0 24px 60px -16px rgba(0, 0, 0, .6); -webkit-mask-image: linear-gradient(#000 70%, transparent 98%); mask-image: linear-gradient(#000 70%, transparent 98%); }
@media (max-width: 640px) { .ai-art { min-height: 420px; } .ai-shot { width: min(250px, 80%); } }
