/* Mashhud marketing site — keyframes, interactive states, and scroll-system
   hooks. Layout/visual values live inline in index.html, ported verbatim from
   the reference design (Mashhud Website.dc.html). Tokens in tokens.css. */

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { overflow-x: hidden; }
a { color: var(--color-accent-2); }
a:hover { color: var(--color-text); }

/* — keyframes (verbatim from the reference) — */
@keyframes mwTwinkle { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes mwPulse { 0% { transform: scale(.55); opacity: .5; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes mwDrop { from { transform: scale(.2); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes mwFade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes mwDrift { to { transform: translateY(-36px); } }
@keyframes mwFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes mwBreathe { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes mwPulse2 { 0% { transform: translate(-50%, -50%) scale(.6); opacity: .6; } 100% { transform: translate(-50%, -50%) scale(2.2); opacity: 0; } }
@keyframes mwSweep { 0% { left: -16%; opacity: 0; } 12% { opacity: .9; } 88% { opacity: .9; } 100% { left: 102%; opacity: 0; } }
@keyframes mwScan { 0%, 100% { top: 16%; } 50% { top: 80%; } }

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: .01s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01s !important;
  }
}

/* — screen-reader-only text (landmark headings) — */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* — details rows (FAQ + science bullets): native disclosure, no marker — */
summary { list-style: none; }
summary::-webkit-details-marker { display: none; }

/* — rizq tooltip: hover + focus + tap-toggle — */
.rizq { position: relative; display: inline-block; cursor: help; outline: none; }
.rizq:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; border-radius: 6px; }
.rizq:hover > .mw-tip,
.rizq:focus > .mw-tip,
.rizq.tip-open > .mw-tip { opacity: 1; transform: translateX(-50%) translateY(0); }

/* — hover/active states ported from the reference's style-hover attrs — */
.hv-a12:hover { background: rgba(224, 179, 82, .12); }
.hv-a16:hover { background: rgba(224, 179, 82, .16); }
.hv-w07:hover { background: rgba(243, 251, 255, .07); }
.hv-w06:hover { background: rgba(243, 251, 255, .06); }
.hv-d95:hover { background: rgba(17, 32, 74, .95); }
.hv-d70:hover { background: rgba(17, 32, 74, .7); }
.act-a300:active { border-color: var(--color-accent-300); }

.hv-card { transition: transform .25s ease, box-shadow .25s ease; }
.hv-card:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--color-accent-800), 0 16px 36px rgba(0, 0, 0, .35); }

.flink { text-decoration: none; color: var(--color-neutral-400); }
.flink:hover { color: var(--color-accent-2); }
/* the nav's About link steps aside below 360px, where it would push "Get the
   app" off the screen; the footer still links /about */
@media (max-width: 359px) { .nav-about { display: none; } }
.cite { color: var(--color-neutral-500); text-decoration: underline; text-decoration-color: var(--color-neutral-800); text-underline-offset: 3px; }
.cite:hover { color: var(--color-accent-2); }
.cite-in { color: var(--color-accent-2); text-decoration: underline; text-decoration-color: rgba(189, 238, 255, .3); text-underline-offset: 3px; display: inline-block; padding: 12px 0; margin: -12px 0; }
.cite-in:hover { color: var(--color-text); }

/* — phone state machines —
   Stage panes swap via a data-stage attribute on the phone/demo container.
   display:contents lets the active pane's children participate directly in
   the container's flex layout, matching the reference's conditional markup
   (and re-triggering entrance animations on each swap). */
.stage { display: none; }
[data-stage="ring"] > .stage-ring,
[data-stage="scan"] > .stage-scan,
[data-stage="done"] > .stage-done,
[data-stage="idle"] > .stage-idle { display: contents; }
/* the hero demo's own control: under the phone, not drawn inside the app's
   screen, and only once the demo has reached Witnessed */
.hero-replay { display: none; position: absolute; left: 0; right: 0; top: 100%; margin-top: 16px; justify-content: center; }
#hero-phone[data-stage="done"] + .hero-replay { display: flex; }

/* — the new look ("Witnessed at Fajr", 14 Nov 2026) — */
/* the one lit button on a page: gold, dark ink */
.btn-lit { display: inline-block; color: var(--color-ink-on-gold); background: var(--color-accent); border: 1px solid var(--color-accent); font-family: var(--font-heading); font-weight: 500; }
.btn-lit:hover, .btn-lit:focus-visible { color: var(--color-ink-on-gold); background: var(--color-accent-400); border-color: var(--color-accent-400); }
.btn-lit:active { background: var(--color-accent-300); border-color: var(--color-accent-300); }
/* Apple's own "Download on the App Store" badge, used as Apple provides it (MAS-62):
   at least 40 px tall, clear space of a quarter of its height, and no shadow, hover
   change or motion of its own. The focus ring follows its corners. It sits above
   the fixed dawn wash (z 30), so the wash never tints Apple's artwork, and below
   the nav (60) and the night clock (70), which main.js hides near a badge. */
.store-badge { display: inline-block; line-height: 0; border-radius: 8px; position: relative; z-index: 31; }
.store-badge img { display: block; width: auto; height: 44px; }
.store-badge-lg img { height: 48px; }
/* one thread of first light per page, low; the ground below it darkens */
.thread { height: 2px; background: linear-gradient(90deg, rgba(239, 253, 255, 0) 0%, rgba(239, 253, 255, .24) 12%, rgba(239, 253, 255, .48) 25%, rgba(239, 253, 255, .95) 50%, rgba(239, 253, 255, .48) 75%, rgba(239, 253, 255, .24) 88%, rgba(239, 253, 255, 0) 100%); }
/* the illuminated panel: lapis, a gold border and a gold hairline inside it.
   Only the words of revelation and of the Prophet, peace be upon him, sit in it. */
.plate { background: linear-gradient(var(--color-section-glow), var(--color-accent-800)); border: 2px solid var(--color-accent-600); border-radius: 16px; }
.plate::after { content: ""; position: absolute; inset: 4px; border: 1px solid rgba(227, 192, 106, .7); border-radius: 10px; pointer-events: none; }
footer { background: var(--color-foot); }
