/* ==========================================================
   The Prayer Windows phone, same mockup as simplemaf.com's
   showcase. Interior laid out at a fixed 290x688 design size,
   scaled to its slot via --phone-scale (set by JS). Always the
   app's dark palette, as in the App Store screenshots.
   ========================================================== */
.phone-slot {
  position: relative; justify-self: end;
  width: calc(290px * var(--phone-scale, 1));
  height: calc(688px * var(--phone-scale, 1));
}
.phone {
  width: 290px; height: 688px; position: absolute; top: 0; left: 0;
  transform: scale(var(--phone-scale, 1)) rotate(1.2deg);
  transform-origin: top left;
  background: var(--ink); border-radius: 42px; padding: 10px;
  box-shadow: var(--shadow-lift);
}
.phone-notch {
  position: absolute; top: 22px; left: 50%; transform: translateX(-50%);
  width: 84px; height: 24px; border-radius: 999px; background: #0F0F12; z-index: 3;
}
.phone-screen {
  --pw-paper: #0F0F12; --pw-card: #1B1A1F; --pw-ink: #F6F3EE;
  --pw-ink2: #9C9899; --pw-hair: #2C2A30; --pw-rust: #D48169;
  --pw-gold: #D9AB57; --pw-olive: #9FA789; --pw-twilight: #84A6C2;
  position: relative; width: 100%; height: 100%; overflow: hidden;
  border-radius: 33px; background: var(--pw-paper); color: var(--pw-ink);
  display: flex; flex-direction: column; padding: 44px 0 8px;
}
.phone-screen > * { flex: none; }

.pw-top {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 0 12px 5px;
}
.pw-top b { font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
.pw-top span { font-size: 5.6px; letter-spacing: .16em; color: var(--pw-ink2); white-space: nowrap; }
.pw-datebar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 12px 8px; border-bottom: 1px solid var(--pw-hair); text-align: center;
}
.pw-datebar b { display: block; font-size: 10px; font-weight: 400; }
.pw-datebar span { font-size: 7.5px; color: var(--pw-ink2); }
.pw-nav {
  width: 19px; height: 19px; border: 1px solid var(--pw-hair); border-radius: 6px;
  display: grid; place-items: center; font-size: 10px; color: var(--pw-ink2); font-style: normal;
}

.pw-hero {
  margin: 8px 10px; background: var(--pw-card); border: 1px solid var(--pw-hair);
  border-radius: 15px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  padding: 11px 10px 9px;
}
.pw-active {
  font-size: 6.6px; font-weight: 700; letter-spacing: .17em; color: var(--pw-rust);
  display: inline-flex; align-items: center; gap: 4px;
}
.pw-active i {
  width: 4px; height: 4px; border-radius: 50%; background: var(--pw-rust);
  animation: breathe 4s ease-in-out infinite;
}
.pw-count { font-size: 33px; font-weight: 500; line-height: 1.15; letter-spacing: -.01em; }
.pw-ends { font-size: 8.6px; color: var(--pw-ink2); margin-bottom: 5px; }
.pw-barrow { display: flex; align-items: center; gap: 7px; width: 100%; }
.pw-barrow span { font-size: 7.4px; color: var(--pw-ink2); }
.pw-bar { position: relative; flex: 1; height: 4.5px; border-radius: 999px; background: #3A3840; }
.pw-bar-fill {
  position: absolute; inset: 0; border-radius: 999px; background: var(--pw-rust);
  transform-origin: left center; transform: scaleX(var(--fill, .62));
  transition: transform 1s linear;
}
.pw-bar-knob {
  position: absolute; top: 50%; left: calc(var(--fill, .62) * 100%);
  width: 9.5px; height: 9.5px; border-radius: 50%; background: var(--pw-rust);
  transform: translate(-50%, -50%); transition: left 1s linear;
  box-shadow: 0 0 8px 2px color-mix(in srgb, var(--pw-rust) 5.5%, transparent);
}
.pw-barcap { font-size: 5.8px; letter-spacing: .16em; color: var(--pw-ink2); margin-top: 4px; }

.pw-chart { position: relative; padding: 0 10px; margin: 6px 0 2px; }
.pw-chart svg { width: 100%; height: 60px; display: block; overflow: visible; }
.pw-chart-keys, .pw-chart-times { position: relative; height: 8px; }
.pw-chart-keys span, .pw-chart-times span {
  position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap;
}
.pw-chart-keys span { font-size: 5.6px; font-weight: 700; letter-spacing: .13em; }
.pw-chart-times span { font-size: 6.4px; color: var(--pw-ink2); }
.pw-grid { stroke: var(--pw-hair); stroke-width: .7; }
.pw-horizon { stroke: var(--pw-hair); stroke-width: .7; }
.pw-curve { fill: none; stroke: var(--pw-ink); stroke-width: 1.5; stroke-linecap: round; }
.pw-curve-alt { fill: none; stroke: var(--pw-ink2); stroke-width: .8; stroke-dasharray: 2.5 3; opacity: .5; }
.pw-isha-line { stroke: var(--pw-rust); stroke-width: .9; stroke-dasharray: 2 2.5; }
.pw-dot { fill: var(--pw-ink); }
.pw-moon { fill: var(--pw-rust); }
.pw-legend {
  display: flex; align-items: center; gap: 9px; margin-top: 5px;
  font-size: 6.2px; color: var(--pw-ink2);
}
.pw-legend span { display: inline-flex; align-items: center; gap: 3px; }
.pw-key-solid { width: 8px; height: 1.4px; background: var(--pw-ink); }
.pw-key-dash { width: 8px; height: 0; border-top: 1.2px dashed var(--pw-ink2); }
.pw-legend b { margin-left: auto; color: var(--pw-rust); letter-spacing: .1em; font-size: 6.4px; font-weight: 700; }

.pw-rows { display: flex; flex-direction: column; position: relative; z-index: 2; }
.pw-row {
  display: flex; align-items: center; gap: 6px; padding: 6px 10px;
  border-top: 1px solid var(--pw-hair);
}
.pw-row-active { background: #17161B; }
.pw-pdot { width: 4.5px; height: 4.5px; border-radius: 50%; background: var(--c, var(--pw-ink2)); flex-shrink: 0; }
.pw-name { min-width: 0; }
.pw-name .serif { font-size: 12px; display: block; }
.pw-vary { display: block; font-size: 5.6px; color: var(--pw-ink2); font-style: normal; }
.pw-t { margin-left: auto; text-align: right; line-height: 1.2; }
.pw-t b { display: block; font-size: 11px; font-weight: 500; }
.pw-t span { font-size: 6.6px; color: var(--pw-ink2); }

.pw-sun-facts {
  display: flex; justify-content: space-between; gap: 4px;
  padding: 7px 10px 3px; border-top: 1px solid var(--pw-hair);
  font-size: 6.2px; color: var(--pw-ink2);
}
.pw-hanafi { padding: 0 10px; font-size: 6.2px; color: var(--pw-ink2); }
.pw-hanafi b { color: var(--pw-ink); font-weight: 600; }

.pw-tabbar {
  margin: auto 8px 0; display: flex; justify-content: space-between;
  background: var(--pw-card); border: 1px solid var(--pw-hair); border-radius: 999px;
  padding: 6px 10px 5px; font-size: 5.8px; color: var(--pw-ink2);
}
.pw-tabbar span { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.pw-tabbar svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.pw-tabbar .on { color: var(--pw-rust); font-weight: 700; }

.pw-notif {
  position: absolute; top: 9px; left: 9px; right: 9px; z-index: 4;
  display: flex; gap: 8px; align-items: center;
  background: color-mix(in srgb, var(--pw-card) 95%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--pw-hair); border-radius: 13px; padding: 7px 9px;
  box-shadow: 0 14px 30px rgba(0,0,0,.5);
  transform: translateY(-76px); opacity: 0;
  transition: transform .6s cubic-bezier(.2,.9,.3,1.1), opacity .4s ease;
}
.pw-notif img { border-radius: 6px; }
.pw-notif b { display: block; font-size: 9.6px; color: var(--pw-ink); }
.pw-notif span { font-size: 7.8px; color: var(--pw-ink2); }
html.js .phone-slot.in .pw-notif, html:not(.js) .pw-notif { transform: none; opacity: 1; }
html.js .phone-slot.in .pw-notif { transition-delay: 1.1s, 1.1s; }

/* hero layout: text left, phone right; stacked and centered on small screens */
.hero-grid {
  display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center;
}
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .hero-grid h1 { margin-left: auto; margin-right: auto; }
  .hero-grid .lede { margin: 0 auto; }
  .hero-grid .btn-row, .hero-grid .hero-note { justify-content: center; }
  .phone-slot { justify-self: center; }
}
