/* AyatFlow website
   One idea: the page is a night sky of Islamic geometry, and the visitor's cursor is a lantern that lights it.
   Dark ("night") and light ("dawn") themes share one set of tokens. */

@font-face { font-family: "Roboto"; font-weight: 400; font-display: swap; src: url("../assets/fonts/roboto-regular.woff") format("woff"); }
@font-face { font-family: "Roboto"; font-weight: 500; font-display: swap; src: url("../assets/fonts/roboto-medium.woff") format("woff"); }
@font-face { font-family: "Roboto"; font-weight: 700; font-display: swap; src: url("../assets/fonts/roboto-bold.woff") format("woff"); }
@font-face { font-family: "Roboto"; font-weight: 900; font-display: swap; src: url("../assets/fonts/roboto-black.woff") format("woff"); }
@font-face { font-family: "Amiri Quran"; font-weight: 400; font-display: swap; src: url("../assets/fonts/amiri-quran.woff") format("woff"); }

:root {
  --night: #050f26;
  --deep: #0b2150;
  --lumen: #4aa3ff;
  --brand: #1976d2;
  --dawn: #f2f8ff;
  --dawn-2: #e1eefd;
  --lantern: #ffd9a0;
  --mint: #2fcb98;

  --font-sans: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-arabic: "Amiri Quran", "Noto Naskh Arabic", "Traditional Arabic", serif;

  --radius-s: 12px;
  --radius-m: 22px;
  --radius-l: 36px;
  --page: min(1180px, 100% - 48px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

:root,
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: var(--night);
  --bg-2: #081a3d;
  --text: #eaf3ff;
  --muted: #9db6d6;
  --line: rgba(157, 190, 235, .18);
  --glass: rgba(14, 36, 78, .55);
  --glass-line: rgba(160, 200, 255, .22);
  --accent: var(--lumen);
  --lit: 255, 217, 160;           /* lattice lit by the lantern (gold) */
  --base-lattice: .07;
  --glow-a: rgba(74, 163, 255, .22);
  --glow-b: rgba(255, 217, 160, .14);
  --phone-shadow: rgba(40, 120, 255, .45);
  --ink-on-accent: #04122e;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: var(--dawn);
  --bg-2: var(--dawn-2);
  --text: #0a1b3d;
  --muted: #4b6286;
  --line: rgba(10, 27, 61, .14);
  --glass: rgba(255, 255, 255, .62);
  --glass-line: rgba(25, 118, 210, .22);
  --accent: var(--brand);
  --lit: 25, 118, 210;
  --base-lattice: .08;
  --glow-a: rgba(74, 163, 255, .28);
  --glow-b: rgba(255, 217, 160, .35);
  --phone-shadow: rgba(25, 80, 170, .35);
  --ink-on-accent: #fff;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    color-scheme: light;
    --bg: var(--dawn); --bg-2: var(--dawn-2); --text: #0a1b3d; --muted: #4b6286;
    --line: rgba(10, 27, 61, .14); --glass: rgba(255, 255, 255, .62); --glass-line: rgba(25, 118, 210, .22);
    --accent: var(--brand); --lit: 25, 118, 210; --base-lattice: .08;
    --glow-a: rgba(74, 163, 255, .28); --glow-b: rgba(255, 217, 160, .35);
    --phone-shadow: rgba(25, 80, 170, .35); --ink-on-accent: #fff;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 clamp(16px, 1.05vw + 10px, 19px)/1.6 var(--font-sans);
  overflow-x: hidden;
  transition: background-color .5s var(--ease), color .5s var(--ease);
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--ink-on-accent); padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- the lantern: lattice, glow, ring ---------- */
.lattice, .lantern-glow { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.lattice {
  --tile: 112px;
  background-image: var(--lattice-img);
  background-size: var(--tile) var(--tile);
  background-position: center;
}
.lattice--base { opacity: var(--base-lattice); }
.lattice--lit {
  opacity: .62;
  -webkit-mask-image: radial-gradient(circle 330px at var(--lx, 60%) var(--ly, 30%), #000 0, rgba(0, 0, 0, .55) 150px, transparent 100%);
          mask-image: radial-gradient(circle 330px at var(--lx, 60%) var(--ly, 30%), #000 0, rgba(0, 0, 0, .55) 150px, transparent 100%);
}
.lantern-glow {
  background:
    radial-gradient(circle 460px at var(--lx, 60%) var(--ly, 30%), var(--glow-b), transparent 70%),
    radial-gradient(circle 900px at 82% -10%, var(--glow-a), transparent 70%);
}
.cursor-ring {
  position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none;
  width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%;
  border: 1.5px solid rgba(var(--lit), .8);
  box-shadow: 0 0 18px rgba(var(--lit), .35);
  opacity: 0; transition: opacity .3s, width .25s var(--ease), height .25s var(--ease), margin .25s var(--ease), background-color .25s;
  will-change: transform;
}
.cursor-ring.is-on { opacity: 1; }
.cursor-ring.is-hot { width: 62px; height: 62px; margin: -31px 0 0 -31px; background: rgba(var(--lit), .12); }
@media (hover: none), (pointer: coarse) { .cursor-ring { display: none; } }

main, .site-header, .site-footer { position: relative; z-index: 1; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(var(--bg), color-mix(in srgb, var(--bg) 70%, transparent));
  backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { width: var(--page); margin: 0 auto; display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 900; font-size: 1.25rem; letter-spacing: -.02em; }
.brand img { width: 36px; height: 36px; border-radius: 10px; box-shadow: 0 6px 18px rgba(25, 118, 210, .35); }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { white-space: nowrap; text-decoration: none; padding: 8px 14px; border-radius: 999px; color: var(--muted); font-weight: 500; font-size: .95rem; transition: color .2s, background-color .2s; }
.nav a:hover { color: var(--text); background: var(--glass); }
.theme-toggle {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--glass-line); background: var(--glass); cursor: pointer;
  display: grid; place-items: center; transition: transform .3s var(--ease), background-color .2s;
}
.theme-toggle:hover { transform: rotate(18deg) scale(1.06); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="light"] .theme-toggle .i-sun { display: block; }
:root[data-theme="light"] .theme-toggle .i-moon { display: none; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .theme-toggle .i-sun { display: block; }
  :root:not([data-theme]) .theme-toggle .i-moon { display: none; }
}
@media (max-width: 720px) { .nav a:not(.nav__cta) { display: none; } .nav { gap: 10px; } }
.nav__cta { background: var(--accent); color: var(--ink-on-accent) !important; font-weight: 700 !important; }
.nav__cta:hover { background: var(--accent) !important; filter: brightness(1.08); }

.progress { position: fixed; left: 0; top: 0; height: 3px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); z-index: 60; background: linear-gradient(90deg, var(--lumen), rgb(var(--lit))); }

/* ---------- buttons ---------- */
.btn {
  --pad: 16px 26px;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: var(--pad); border-radius: 999px;
  border: 1.5px solid transparent; font-weight: 700; text-decoration: none; cursor: pointer; will-change: transform;
  transition: background-color .25s, border-color .25s, color .25s, box-shadow .3s;
}
.btn--primary { background: var(--accent); color: var(--ink-on-accent); box-shadow: 0 10px 30px -8px var(--phone-shadow); }
.btn--primary:hover { box-shadow: 0 14px 40px -6px var(--phone-shadow); }
.btn--ghost { border-color: var(--glass-line); background: var(--glass); }
.btn--ghost:hover { border-color: var(--accent); }
.btn svg { width: 20px; height: 20px; flex: none; }

.store {
  display: inline-flex; align-items: center; gap: 14px; text-decoration: none; will-change: transform;
  background: #000; color: #fff; border: 1.5px solid #6a6f78; border-radius: 14px; padding: 10px 22px 10px 16px;
  transition: border-color .25s, box-shadow .3s;
}
.store:hover { border-color: #fff; box-shadow: 0 12px 34px -10px rgba(74, 163, 255, .6); }
.store svg { width: 34px; height: 34px; flex: none; }
.store small { display: block; font-size: .7rem; letter-spacing: .04em; line-height: 1.1; opacity: .85; }
.store strong { white-space: nowrap; display: block; font-size: 1.4rem; line-height: 1.1; font-weight: 500; letter-spacing: -.01em; }
.store.is-soon { opacity: .96; }
.store__tag { margin-left: 8px; padding: 3px 10px; border-radius: 999px; background: rgb(var(--lit)); color: #04122e; font-size: .72rem; font-weight: 700; }

/* ---------- hero ---------- */
.hero { width: var(--page); margin: 0 auto; min-height: calc(100svh - 68px); display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 24px; padding: 40px 0 64px; }
.hero__bismillah { text-align: left; font: 400 clamp(1.5rem, 2.4vw, 2.2rem)/1.6 var(--font-arabic); color: rgb(var(--lit)); margin-bottom: 14px; }
.hero__title { font-weight: 900; font-size: clamp(3.2rem, 8.4vw, 7.6rem); line-height: .94; letter-spacing: -.045em; }
.hero__title span { display: block; }
.hero__title span:nth-child(2) { padding-left: .55em; }
.hero__title span:nth-child(3) { padding-left: 1.1em; }
.hero__sub { margin-top: 28px; max-width: 34em; font-size: clamp(1.05rem, 1.4vw, 1.3rem); color: var(--muted); }
.hero__sub strong { color: var(--text); font-weight: 500; }
.hero__cta { margin-top: 34px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; }
.hero__note { margin-top: 18px; font-size: .95rem; color: var(--muted); }
.hero__note a { color: var(--accent); }
.hero__stage { position: relative; display: grid; place-items: center; min-height: 560px; perspective: 1400px; }
@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 24px; }
  .hero__stage { min-height: 520px; margin-top: 12px; }
  .hero__title span:nth-child(n) { padding-left: 0; }
}

/* hero entrance: one orchestrated moment */
.intro .hero__bismillah, .intro .hero__title span, .intro .hero__sub, .intro .hero__cta, .intro .hero__note { opacity: 0; transform: translateY(26px); }
.intro .phone-wrap { opacity: 0; transform: translateY(60px) scale(.96); }
.intro-go .hero__bismillah, .intro-go .hero__title span, .intro-go .hero__sub, .intro-go .hero__cta, .intro-go .hero__note {
  opacity: 1; transform: none; transition: opacity .9s var(--ease), transform 1s var(--ease);
}
.intro-go .hero__bismillah { transition-delay: .05s; }
.intro-go .hero__title span:nth-child(1) { transition-delay: .18s; }
.intro-go .hero__title span:nth-child(2) { transition-delay: .32s; }
.intro-go .hero__title span:nth-child(3) { transition-delay: .46s; }
.intro-go .hero__sub { transition-delay: .62s; }
.intro-go .hero__cta { transition-delay: .76s; }
.intro-go .hero__note { transition-delay: .9s; }
.intro-go .phone-wrap { opacity: 1; transform: none; transition: opacity 1.1s var(--ease) .3s, transform 1.4s var(--ease) .3s; }

/* ---------- the phone ---------- */
.phone-wrap { position: relative; width: var(--pw, clamp(230px, 27vw, 330px)); perspective: 1400px; }
.phone { position: relative; transform-style: preserve-3d; will-change: transform; }
.phone__body {
  position: relative; border-radius: 15% / 7.3%; padding: 3.1%;
  background: linear-gradient(145deg, #2a3a5c, #0a1020 38%, #0a1020 62%, #2b3b60);
  box-shadow:
    0 0 0 1.5px rgba(160, 190, 235, .28) inset,
    0 40px 90px -20px var(--phone-shadow),
    0 18px 40px -18px rgba(0, 0, 0, .7);
}
.phone__screen { position: relative; border-radius: 12.4% / 6.1%; overflow: hidden; background: #fff; aspect-ratio: 720 / 1382; }
.phone__screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .7s var(--ease); }
.phone__screen img.is-on { opacity: 1; }
.phone__cam { position: absolute; left: 50%; top: 1.15%; width: 2.5%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle at 35% 35%, #35508a, #060b18 70%); z-index: 3; }
.phone__glare { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 4; mix-blend-mode: soft-light; opacity: .9;
  background: radial-gradient(circle 60% at var(--gx, 30%) var(--gy, 20%), rgba(255, 255, 255, .55), transparent 70%); }
.phone__shadow { position: absolute; left: 10%; right: 10%; bottom: -26px; height: 40px; background: radial-gradient(closest-side, rgba(0, 0, 0, .5), transparent); filter: blur(10px); }

.chip {
  position: absolute; z-index: 5; display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--glass-line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  font-weight: 700; font-size: .95rem; white-space: nowrap; box-shadow: 0 16px 40px -16px rgba(0, 0, 0, .5); will-change: transform;
}
.chip i { font-style: normal; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(var(--lit), .2); color: rgb(var(--lit)); }
.chip--a { left: -18%; top: 16%; }
.chip--b { right: -16%; top: 42%; }
.chip--c { left: -10%; bottom: 14%; }
.chip__text { color: var(--muted); font-weight: 500; }
@media (max-width: 560px) { .chip--a { left: -4%; } .chip--b { right: -4%; } .chip--c { left: -2%; } }

/* ---------- sections ---------- */
.section { width: var(--page); margin: 0 auto; padding: clamp(72px, 11vw, 150px) 0; }
.section__head { max-width: 40rem; }
.h2 { font-weight: 900; font-size: clamp(2.2rem, 5vw, 4.2rem); line-height: 1.02; letter-spacing: -.035em; }
.lead { margin-top: 18px; color: var(--muted); font-size: clamp(1.05rem, 1.3vw, 1.25rem); max-width: 36em; }

/* film */
.film { margin-top: 44px; position: relative; border-radius: var(--radius-l); overflow: hidden; border: 1px solid var(--glass-line); background: #020816;
  box-shadow: 0 50px 120px -40px var(--phone-shadow); aspect-ratio: 16 / 9; }
.film video, .film__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film__play { position: absolute; inset: 0; border: 0; background: linear-gradient(transparent 55%, rgba(2, 8, 22, .72)); cursor: pointer; display: flex; align-items: flex-end; justify-content: flex-start; padding: clamp(18px, 3vw, 40px); }
.film__play span { display: inline-flex; align-items: center; gap: 14px; padding: 10px 24px 10px 10px; border-radius: 999px; background: rgba(255, 255, 255, .95); color: #04122e; font-weight: 700; box-shadow: 0 0 0 0 rgba(var(--lit), .6); animation: pulse 2.6s infinite; transition: transform .3s var(--ease); }
.film__play:hover span, .film__play:focus-visible span { transform: scale(1.05); }
.film__play i { display: grid; place-items: center; width: clamp(44px, 5vw, 60px); aspect-ratio: 1; border-radius: 50%; background: var(--brand); color: #fff; }
.film__play svg { width: 44%; margin-left: 6%; }
.film__play small { font-weight: 400; opacity: .7; }
.film__label { display: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 22px rgba(var(--lit), 0); } 100% { box-shadow: 0 0 0 0 rgba(var(--lit), 0); } }

/* a day with AyatFlow: sticky phone, scrolling story */
.day { display: grid; grid-template-columns: 1fr minmax(260px, 380px); gap: clamp(32px, 7vw, 110px); margin-top: 24px; }
.day__steps { padding-bottom: 12vh; }
.step { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; padding: 8vh 0; opacity: .38; transition: opacity .5s var(--ease); }
.step.is-active { opacity: 1; }
.step h3 { font-weight: 900; font-size: clamp(1.8rem, 3.6vw, 3rem); line-height: 1.05; letter-spacing: -.03em; max-width: 14em; }
.step p { margin-top: 18px; max-width: 30em; color: var(--muted); }
.step__phone { display: none; margin-top: 28px; }
.day__stick { position: sticky; top: calc(50vh - min(34vh, 280px)); align-self: start; height: min(68vh, 560px); display: grid; place-items: center; }
.day__stick .phone-wrap { --pw: min(300px, 32vh); }
@media (max-width: 860px) {
  .day { grid-template-columns: 1fr; }
  .day__stick { display: none; }
  .step { min-height: 0; opacity: 1; padding: 36px 0; }
  .step__phone { display: block; }
  .step__phone .phone-wrap { --pw: min(240px, 62vw); }
}

/* day and night comparison */
.compare { margin-top: 56px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); gap: clamp(32px, 6vw, 90px); align-items: center; }
.compare__copy .h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
.compare__tabs { display: flex; gap: 8px; margin-top: 26px; flex-wrap: wrap; }
.tab { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--glass-line); background: var(--glass); cursor: pointer; font-weight: 500; transition: background-color .2s, color .2s, border-color .2s; }
.tab[aria-selected="true"] { background: var(--accent); color: var(--ink-on-accent); border-color: transparent; font-weight: 700; }
.compare__hint { margin-top: 16px; color: var(--muted); font-size: .95rem; }
.slider { position: absolute; inset: 0; touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: ew-resize; }
.slider__layer { position: absolute; inset: 0; }
.slider__layer img { position: static; opacity: 1; width: 100%; height: 100%; object-fit: cover; }
.slider__top { clip-path: inset(0 calc(100% - var(--cut, 50%)) 0 0); }
.slider__handle { position: absolute; top: 0; bottom: 0; left: var(--cut, 50%); width: 3px; margin-left: -1.5px; background: rgb(var(--lit)); box-shadow: 0 0 18px rgba(var(--lit), .9); z-index: 6; }
.slider__handle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px; border-radius: 50%; background: #fff; box-shadow: 0 6px 24px rgba(0, 0, 0, .4);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 46 46'%3E%3Cpath d='M19 15l-8 8 8 8M27 15l8 8-8 8' fill='none' stroke='%2304122e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.slider__label { position: absolute; bottom: 5%; z-index: 7; padding: 5px 12px; border-radius: 999px; background: rgba(5, 15, 38, .75); color: #fff; font-size: .8rem; font-weight: 700; backdrop-filter: blur(8px); }
.slider__label--l { left: 6%; } .slider__label--r { right: 6%; }
@media (max-width: 860px) { .compare { grid-template-columns: 1fr; } .compare .phone-wrap { --pw: min(280px, 70vw); margin: 0 auto; } }

/* privacy */
.privacy { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 6vw, 90px); align-items: center; }
.voice { position: relative; border-radius: var(--radius-l); border: 1px solid var(--glass-line); background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding: clamp(24px, 4vw, 48px); overflow: hidden; }
.voice canvas { width: 100%; height: 190px; display: block; }
.voice__row { margin-top: 18px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-weight: 700; }
.voice__phone { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: rgba(47, 203, 152, .16); color: var(--mint); }
.voice__row small { font-weight: 400; color: var(--muted); font-size: .95rem; }
.facts { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 18px; }
.facts li { padding-left: 34px; position: relative; max-width: 30em; }
.facts li::before { content: ""; position: absolute; left: 0; top: .3em; width: 20px; height: 20px; border-radius: 50%; background: var(--mint);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%2306251c' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.facts strong { font-weight: 700; }
.facts span { color: var(--muted); }
@media (max-width: 860px) { .privacy { grid-template-columns: 1fr; } }

/* everything inside: a type index with a preview that follows the cursor */
.index { margin-top: 48px; border-top: 1px solid var(--line); }
.row { display: block; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); padding: clamp(16px, 2.4vw, 28px) 4px; cursor: pointer; position: relative; }
.row__title { display: block; font-weight: 900; font-size: clamp(1.7rem, 4.6vw, 3.6rem); line-height: 1.05; letter-spacing: -.035em; transition: transform .45s var(--ease), color .3s; }
.row__text { display: block; margin-top: 6px; color: var(--muted); max-width: 34em; transition: color .3s; }
.row:hover .row__title, .row:focus-visible .row__title, .row.is-open .row__title { color: var(--accent); transform: translateX(16px); }
.row:hover .row__text, .row:focus-visible .row__text { color: var(--text); }
.row__inline { display: none; }
.peek { position: fixed; left: 0; top: 0; z-index: 70; width: 190px; pointer-events: none; opacity: 0; transform: translate3d(-999px, -999px, 0); will-change: transform; transition: opacity .25s; }
.peek.is-on { opacity: 1; }
.peek .phone-wrap { --pw: 190px; }
@media (hover: none), (pointer: coarse), (max-width: 860px) {
  .peek { display: none; }
  .row__inline { display: none; margin-top: 18px; }
  .row.is-open .row__inline { display: block; }
  .row__inline .phone-wrap { --pw: min(230px, 60vw); }
}

/* download */
.get { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 44px; }
.panel { border-radius: var(--radius-l); border: 1px solid var(--glass-line); background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding: clamp(24px, 3.4vw, 44px); }
.panel h3 { font-weight: 900; font-size: clamp(1.5rem, 2.6vw, 2.2rem); letter-spacing: -.025em; }
.panel p { margin-top: 12px; color: var(--muted); max-width: 28em; }
.panel .btn, .panel .store { margin-top: 24px; }
.panel--accent { background: linear-gradient(150deg, rgba(74, 163, 255, .22), var(--glass)); }
.panel__links { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.panel__links a { color: var(--accent); font-weight: 500; }
@media (max-width: 800px) { .get { grid-template-columns: 1fr; } }
[hidden] { display: none !important; }

/* faq */
.faq { margin-top: 40px; border-top: 1px solid var(--line); max-width: 52rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 44px 22px 0; font-weight: 700; font-size: 1.12rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -10px; border-right: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(45deg); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq details p { padding: 0 0 24px; color: var(--muted); max-width: 40em; }
.faq details a { color: var(--accent); }

/* footer */
.site-footer { border-top: 1px solid var(--line); background: color-mix(in srgb, var(--bg-2) 85%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.site-footer__inner { width: var(--page); margin: 0 auto; padding: 56px 0 40px; display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 36px; }
.site-footer h4 { margin: 0 0 12px; font-size: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--accent); text-decoration: underline; }
.site-footer p { color: var(--muted); font-size: .92rem; max-width: 30em; }
.site-footer__credits { width: var(--page); margin: 0 auto; padding: 0 0 48px; color: var(--muted); font-size: .82rem; line-height: 1.6; }
.site-footer__credits a { text-decoration: underline; }
@media (max-width: 800px) { .site-footer__inner { grid-template-columns: 1fr; } }

/* article pages (privacy, iPhone guide) */
.doc { width: min(780px, 100% - 48px); margin: 0 auto; padding: clamp(48px, 8vw, 100px) 0 clamp(64px, 10vw, 120px); }
.doc h1 { font-weight: 900; font-size: clamp(2.4rem, 6vw, 4.2rem); letter-spacing: -.04em; line-height: 1; }
.doc h2 { margin-top: 2.2em; font-weight: 900; font-size: 1.6rem; letter-spacing: -.02em; }
.doc h3 { margin-top: 1.6em; font-weight: 700; font-size: 1.15rem; }
.doc p, .doc li { color: var(--muted); max-width: 40em; }
.doc p { margin-top: 1em; }
.doc ul, .doc ol { margin: 1em 0 0; padding-left: 1.3em; display: grid; gap: .5em; }
.doc strong { color: var(--text); }
.doc a { color: var(--accent); }
.doc .callout { margin-top: 1.6em; padding: 18px 22px; border-radius: var(--radius-m); border: 1px solid var(--glass-line); background: var(--glass); }
.doc .callout p { margin: 0; color: var(--text); }
.doc code { background: var(--glass); border: 1px solid var(--line); padding: 1px 7px; border-radius: 6px; font-size: .92em; }
.doc table { margin-top: 1.4em; border-collapse: collapse; width: 100%; font-size: .95rem; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--muted); }
.doc th { color: var(--text); }

/* motion preferences */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .intro .hero__bismillah, .intro .hero__title span, .intro .hero__sub, .intro .hero__cta, .intro .hero__note, .intro .phone-wrap { opacity: 1; transform: none; }
}

/* lattice artwork: eight-pointed star tile; base is faint, lit is revealed under the cursor */
.lattice--base { --lattice-img: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27112%27%20height%3D%27112%27%20viewBox%3D%270%200%20112%20112%27%3E%3Cg%20fill%3D%27none%27%20stroke%3D%27%23a8c8ff%27%20stroke-width%3D%271.3%27%20stroke-linejoin%3D%27round%27%20stroke-linecap%3D%27round%27%3E%3Cpath%20d%3D%27M96%2056L56%2096L16%2056L56%2016Z%27%2F%3E%3Cpath%20d%3D%27M84.28%2027.72V84.28H27.72V27.72Z%27%2F%3E%3Cpath%20d%3D%27M56%2041L71%2056L56%2071L41%2056Z%27%2F%3E%3Cpath%20d%3D%27M96%2056H112M0%2056H16M56%2096V112M56%200V16%27%2F%3E%3Cpath%20d%3D%27M0%2010L10%200M102%200L112%2010M0%20102L10%20112M102%20112L112%20102%27%2F%3E%3Cpath%20d%3D%27M84.28%2084.28L107%20107M27.72%2084.28L5%20107M84.28%2027.72L107%205M27.72%2027.72L5%205%27%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"); }
.lattice--lit  { --lattice-img: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27112%27%20height%3D%27112%27%20viewBox%3D%270%200%20112%20112%27%3E%3Cg%20fill%3D%27none%27%20stroke%3D%27%23ffd9a0%27%20stroke-width%3D%271.3%27%20stroke-linejoin%3D%27round%27%20stroke-linecap%3D%27round%27%3E%3Cpath%20d%3D%27M96%2056L56%2096L16%2056L56%2016Z%27%2F%3E%3Cpath%20d%3D%27M84.28%2027.72V84.28H27.72V27.72Z%27%2F%3E%3Cpath%20d%3D%27M56%2041L71%2056L56%2071L41%2056Z%27%2F%3E%3Cpath%20d%3D%27M96%2056H112M0%2056H16M56%2096V112M56%200V16%27%2F%3E%3Cpath%20d%3D%27M0%2010L10%200M102%200L112%2010M0%20102L10%20112M102%20112L112%20102%27%2F%3E%3Cpath%20d%3D%27M84.28%2084.28L107%20107M27.72%2084.28L5%20107M84.28%2027.72L107%205M27.72%2027.72L5%205%27%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"); }
:root[data-theme="light"] .lattice--base { --lattice-img: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27112%27%20height%3D%27112%27%20viewBox%3D%270%200%20112%20112%27%3E%3Cg%20fill%3D%27none%27%20stroke%3D%27%231976d2%27%20stroke-width%3D%271.3%27%20stroke-linejoin%3D%27round%27%20stroke-linecap%3D%27round%27%3E%3Cpath%20d%3D%27M96%2056L56%2096L16%2056L56%2016Z%27%2F%3E%3Cpath%20d%3D%27M84.28%2027.72V84.28H27.72V27.72Z%27%2F%3E%3Cpath%20d%3D%27M56%2041L71%2056L56%2071L41%2056Z%27%2F%3E%3Cpath%20d%3D%27M96%2056H112M0%2056H16M56%2096V112M56%200V16%27%2F%3E%3Cpath%20d%3D%27M0%2010L10%200M102%200L112%2010M0%20102L10%20112M102%20112L112%20102%27%2F%3E%3Cpath%20d%3D%27M84.28%2084.28L107%20107M27.72%2084.28L5%20107M84.28%2027.72L107%205M27.72%2027.72L5%205%27%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"); }
:root[data-theme="light"] .lattice--lit  { --lattice-img: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27112%27%20height%3D%27112%27%20viewBox%3D%270%200%20112%20112%27%3E%3Cg%20fill%3D%27none%27%20stroke%3D%27%231976d2%27%20stroke-width%3D%271.3%27%20stroke-linejoin%3D%27round%27%20stroke-linecap%3D%27round%27%3E%3Cpath%20d%3D%27M96%2056L56%2096L16%2056L56%2016Z%27%2F%3E%3Cpath%20d%3D%27M84.28%2027.72V84.28H27.72V27.72Z%27%2F%3E%3Cpath%20d%3D%27M56%2041L71%2056L56%2071L41%2056Z%27%2F%3E%3Cpath%20d%3D%27M96%2056H112M0%2056H16M56%2096V112M56%200V16%27%2F%3E%3Cpath%20d%3D%27M0%2010L10%200M102%200L112%2010M0%20102L10%20112M102%20112L112%20102%27%2F%3E%3Cpath%20d%3D%27M84.28%2084.28L107%20107M27.72%2084.28L5%20107M84.28%2027.72L107%205M27.72%2027.72L5%205%27%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"); }

/* small screens: finer lattice, gentler lantern so text stays easy to read */
@media (max-width: 720px) {
  .lattice { --tile: 84px; }
  .lattice--lit { opacity: .4; }
  .lattice--base { opacity: calc(var(--base-lattice) * .8); }
  .hero__title { font-size: clamp(3rem, 15vw, 4.6rem); }
  .store { padding: 10px 16px 10px 12px; }
  .store strong { font-size: 1.25rem; }
}
