/* Between Prayers site. Tokens copied from the approved mockup (screens-v3.html). */
:root {
  color-scheme: dark light;
  --bg: #06282f; --bg2: #031c21; --card: rgba(104,192,200,.08); --line: rgba(104,192,200,.22);
  --fg: #eef8f8; --mut: #93b3b7; --gold: #7fd3d6; --goldfg: #032026; --bar: rgba(0,30,34,.94);
  --paper: #072c34 url(tex-teal.jpg) 0 0/512px 512px;
  --cr-a: #a0f4f4; --cr-b: #7fd3d6; --cr-c: #c8fafa; --cr-d: #5fb9bf; --cr-e: var(--bg); --cr-f: rgba(127,211,214,.12);
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f3f7f6; --bg2: #e6efee; --card: rgba(15,111,120,.06); --line: rgba(15,111,120,.20);
    --fg: #0b2a30; --mut: #5b7275; --gold: #0f6f78; --goldfg: #ffffff; --bar: rgba(243,247,246,.96);
    --paper: #f5f0e4 url(tex-ivory.jpg) 0 0/512px 512px;
    --cr-a: #0f6f78; --cr-b: #0f6f78; --cr-c: #3f9aa2; --cr-d: #3f9aa2; --cr-f: rgba(15,111,120,.12);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg2); }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg) linear-gradient(180deg, var(--bg), var(--bg2)); color: var(--fg);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
main { flex: 1; padding: 8px 16px 40px; }
a { color: var(--gold); text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
h1, h2 { line-height: 1.2; }
.sprite { position: absolute; }

/* Header and footer */
header, footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; padding: 14px 16px; max-width: 960px; width: 100%; margin-inline: auto; }
.wordmark { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--fg); text-decoration: none; }
.wordmark img { flex: none; }
header ul, footer ul { display: flex; flex-wrap: wrap; gap: 4px 18px; list-style: none; margin: 0; padding: 0; font-size: 14.5px; }
header a, footer a { color: var(--mut); text-decoration: none; }
header a:hover, footer a:hover, [aria-current="page"] { color: var(--fg); }
footer { border-top: 1px solid var(--line); margin-top: 24px; font-size: 13.5px; color: var(--mut); }
footer p { margin: 0; }

/* Icons: one set, one size. Tile and pill copied from the mockup. */
.i { width: 18px; height: 18px; flex: none; }
.ib { width: 30px; height: 30px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; background: var(--card); border: 1px solid var(--line); color: var(--gold); flex: none; }
.ib svg { width: 18px; height: 18px; }
.pill { border-radius: 999px; padding: 4px 10px; font-size: 12px; line-height: 1.3; background: var(--card); border: 1px solid var(--line); color: var(--mut); white-space: nowrap; }

/* Cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.card h2 { font-size: 18px; margin: 12px 0 4px; }
.card p { margin: 0; color: var(--mut); font-size: 15px; }

/* Prose column */
.col { max-width: 600px; margin-inline: auto; }

/* Home */
.home { max-width: 960px; margin-inline: auto; }
.crown { display: block; width: min(100%, 400px); height: auto; margin: 10px auto 0; }
.f-a { fill: var(--cr-a); } .f-b { fill: var(--cr-b); } .f-c { fill: var(--cr-c); }
.f-d { fill: var(--cr-d); } .f-e { fill: var(--cr-e); } .f-f { fill: var(--cr-f); }
.s-a { stroke: var(--cr-a); } .s-b { stroke: var(--cr-b); } .s-c { stroke: var(--cr-c); }
.s-d { stroke: var(--cr-d); } .s-e { stroke: var(--cr-e); } .s-f { stroke: var(--cr-f); }
.bism-panel { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 22px 20px; margin: 4px auto 0; max-width: 600px; }
.bism-panel img { display: block; width: min(100%, 420px); height: auto; margin-inline: auto; }

.hero-grid { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center; margin-top: 28px; }
.hero-text { text-align: center; }
.hero h1 { font-size: 36px; margin: 0 0 10px; letter-spacing: -.01em; }
.tagline { color: var(--mut); font-size: 17.5px; margin: 0 auto; max-width: 30em; }
.hero-cta { margin: 22px 0 0; }
.hero-sub { margin: 10px 0 0; color: var(--mut); font-size: 14px; }
@media (min-width: 840px) {
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 36px; }
  .hero-text { text-align: left; }
  .hero h1 { font-size: 44px; }
  .tagline { margin: 0; }
}

.btn { display: inline-block; font-weight: 600; padding: 11px 24px; border-radius: 999px; background: var(--gold); color: var(--goldfg); text-decoration: none; border: 1px solid var(--gold); }
.btn:hover { filter: brightness(1.06); }
.btn.ghost { background: transparent; color: var(--gold); }

/* The app's three rings (Fard, Sunnah, Nafl). Each arc is pathLength 100; its dashoffset is 100 minus its fill. */
:root { --fard: #ff2d6f; --sunnah: #ffb21e; --nafl: #9eefff; --ease: cubic-bezier(.2, .8, .2, 1); }
.rings { display: block; width: 100%; height: auto; }
.rings circle { fill: none; stroke-width: 26; stroke-linecap: round; }
.rings .track { stroke-opacity: .17; }
.rings .arc { stroke-dasharray: 100 100; }
.rings .r1 { stroke: var(--fard); } .rings .arc.r1 { stroke-dashoffset: 0; }
.rings .r2 { stroke: var(--sunnah); } .rings .arc.r2 { stroke-dashoffset: 22; }
.rings .r3 { stroke: var(--nafl); } .rings .arc.r3 { stroke-dashoffset: 36; }
@media (prefers-color-scheme: light) { .dot { box-shadow: 0 0 0 1px rgba(11, 42, 48, .25); } }
.dot.r1 { background: var(--fard); } .dot.r2 { background: var(--sunnah); } .dot.r3 { background: var(--nafl); }

/* Rings and phone sit on the app's own dark surface in both schemes, so the ring colours read the same. */
.hero-art { display: flex; align-items: center; justify-content: center; gap: 16px; }
.ring-tile { flex: none; width: 136px; padding: 13px; border-radius: 30px;
  background: linear-gradient(180deg, #0e434e, #083039); box-shadow: 0 14px 30px -12px rgba(0, 10, 12, .65), inset 0 1px 0 rgba(255, 255, 255, .13); }
.phone { border-radius: 30px; padding: 7px; background: #0a1c21; box-shadow: 0 0 0 1px rgba(127, 211, 214, .22), 0 18px 40px -16px rgba(0, 10, 12, .7); }
.phone .screen { position: relative; overflow: hidden; border-radius: 23px; aspect-ratio: 496 / 1072; background: #072c34; }
/* The shots are store graphics (caption above the screen); show only the screen area: x 111-607, y 183-1255 of 720x1280. */
.phone .screen img { display: block; width: 145.16%; max-width: none; height: auto; margin: -36.9% 0 0 -22.38%; }
.hero-art .phone { width: 188px; flex: none; }
@media (min-width: 840px) {
  .hero-art { gap: 24px; }
  .ring-tile { width: 180px; padding: 17px; border-radius: 36px; }
  /* Sized so the whole hero (crown, Bismillah, text, rings, phone) fits a 1280x800 window. */
  .hero-art .phone { width: 148px; border-radius: 26px; padding: 6px; }
  .hero-art .phone .screen { border-radius: 20px; }
}

/* Features */
.features { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 48px; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } .features .fitness { grid-column: 1 / -1; } }
.feature b { color: var(--fg); font-weight: 600; }
.fitness { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: center; }
.fit-art { width: 132px; padding: 11px; border-radius: 26px; background: linear-gradient(180deg, #0e434e, #083039); }
.fitness h2 { margin-top: 0; font-size: 21px; }
@media (min-width: 640px) { .fitness { grid-template-columns: 168px 1fr; gap: 24px; padding: 24px; } .fit-art { width: 168px; padding: 14px; border-radius: 32px; } }
.ring-key { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; font-size: 15px; color: var(--mut); }
.ring-key li { display: flex; gap: 10px; align-items: baseline; }
.ring-key .dot { flex: none; width: 10px; height: 10px; border-radius: 50%; transform: translateY(1px); }
.fitness .private { display: flex; gap: 8px; align-items: flex-start; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14.5px; }
.fitness .private .i { color: var(--gold); width: 16px; height: 16px; margin-top: 3px; }
.seg-mini { display: inline-flex; gap: 2px; padding: 3px; margin: 2px 0 8px !important; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: 12.5px !important; }
.seg-mini span { padding: 2px 12px; border-radius: 999px; }
.seg-mini span:first-child { background: var(--gold); color: var(--goldfg); font-weight: 600; }

.values { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 10px 20px; }
@media (min-width: 840px) { .values { grid-template-columns: repeat(3, 1fr); } }
.values li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 2px; color: var(--mut); font-size: 14.5px; }
.values b { display: block; color: var(--fg); font-size: 15.5px; }

.wide { margin-top: 32px; }
.platforms { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 0 28px; }
@media (min-width: 600px) { .platforms { grid-template-columns: repeat(2, 1fr); } }
.platforms li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.platforms li span:nth-child(2) { flex: 1; }
.platforms .i { color: var(--gold); }

/* Sources & credits */
.sources section { margin-top: 28px; }
.sources .card { margin-top: 12px; }
.sources .card h3 { font-size: 16px; margin: 0 0 8px; overflow-wrap: anywhere; }
.sources dl { margin: 10px 0 0; }
.sources dt { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--mut); margin-top: 10px; }
.sources dd { margin: 2px 0 0; font-size: 15px; overflow-wrap: anywhere; }
.sources .own { margin: 10px 0 0; padding-left: 18px; font-size: 14px; color: var(--mut); overflow-wrap: anywhere; }
.pill-warn { border-color: var(--gold); color: var(--gold); white-space: normal; }
.sources code { overflow-wrap: anywhere; }

/* Contact form */
form[hidden] { display: none; }
label { font-size: 14.5px; color: var(--mut); }
input[type="email"], textarea {
  width: 100%; margin-top: 4px; padding: 10px 12px; font: inherit; color: var(--fg);
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
}
textarea { resize: vertical; min-height: 120px; }
input[type="email"]:focus-visible, textarea:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
button[type="submit"], .land-go button { font: inherit; font-weight: 600; padding: 10px 22px; border: 0; border-radius: 999px; background: var(--gold); color: var(--goldfg); cursor: pointer; }
button[type="submit"]:disabled, .land-go button:disabled { opacity: .6; cursor: progress; }
[role="status"]:empty { display: none; }
[role="status"] { color: var(--fg); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Gallery */
.shots { margin-top: 44px; }
.shots h2 { font-size: 22px; margin: 0 0 4px; }
.shots-note { margin: 0 0 16px; color: var(--mut); font-size: 15px; }
.shots-row { list-style: none; margin: 0 -16px; display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x proximity; padding: 6px 16px 16px; -webkit-overflow-scrolling: touch; }
.shots li { flex: 0 0 auto; width: 176px; scroll-snap-align: center; }
.shots figure { width: 100%; margin: 0; }
.shots .phone { border-radius: 26px; padding: 6px; }
.shots .phone .screen { border-radius: 20px; }
.shots figcaption { margin-top: 10px; color: var(--mut); font-size: 14px; text-align: center; }
@media (min-width: 840px) {
  .shots-row { margin: 0; padding: 6px 0 4px; overflow: visible; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
  .shots li { width: auto; }
}

/* Waitlist */
.wl { margin: 32px auto 0; max-width: 600px; padding: 22px 16px; border-radius: 20px; border: 1px solid var(--line); background: var(--card); scroll-margin-top: 16px; }
@media (min-width: 640px) { .wl { padding: 28px; } }
.wl h2 { font-size: 24px; margin: 0 0 6px; }
.wl-lead { margin: 0 0 18px; color: var(--mut); }
.wl-field { margin: 0; }
.seg { border: 0; margin: 16px 0 0; padding: 0; min-width: 0; }
.seg legend { padding: 0; font-size: 14.5px; color: var(--mut); }
.seg-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 4px; padding: 4px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); }
.seg-opts input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.seg-opts label { text-align: center; padding: 8px 6px; border-radius: 9px; font-size: 15px; color: var(--fg); cursor: pointer; }
.seg-opts input:checked + label { background: var(--gold); color: var(--goldfg); font-weight: 600; }
.seg-opts input:focus-visible + label { outline: 2px solid var(--gold); outline-offset: 2px; }
.wl-go { margin: 18px 0 0; }
.wl-go button { width: 100%; padding: 12px 22px; }
.wl [role="status"] { margin: 12px 0 0; }
.wl-privacy { margin: 16px 0 0; font-size: 14px; color: var(--mut); }
.wl .js-note { color: var(--mut); }
.wl-done { text-align: center; padding: 8px 0 4px; }
.wl-done:focus { outline: none; }
.wl-done h3 { font-size: 20px; margin: 12px 0 6px; }
.wl-done p { margin: 0 auto; color: var(--mut); max-width: 28em; }
.tick-badge { display: block; width: 56px; height: 56px; margin: 0 auto; }
.tick-badge .tb-c { fill: var(--gold); }
.tick-badge .tb-t { fill: none; stroke: var(--goldfg); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 0; }

/* Waitlist landing pages (from the email links) */
.landing { text-align: center; padding-top: 40px; }
.land h1 { font-size: 30px; margin: 18px 0 10px; }
.land p { color: var(--mut); margin: 0 auto 10px; max-width: 30em; }
.land .land-go { margin-top: 24px; }
.land .land-go button { min-width: 160px; padding: 12px 28px; }
.land:focus { outline: none; }
.land [role="status"] { color: var(--fg); }
.land-note { color: var(--mut); font-size: 14.5px; }

/* Motion: the app's language (rise in, draw, pop, tick in). Nothing loops. Under reduced motion only a 120 ms fade. */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes draw { 0% { stroke-dashoffset: 100; opacity: 0; } 2% { opacity: 1; } }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.12); opacity: 1; } 100% { transform: none; opacity: 1; } }
@keyframes fill-in { from { fill: transparent; } }
@keyframes tick { from { stroke-dashoffset: 24; } }
.rise.pre, .rise-kids.pre > * { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .rise.pre, .rise-kids.pre > * { transform: translateY(14px); }
  .rise.in, .rise-kids.in > * { animation: rise .5s var(--ease) both; }
  .rise-kids.in > :nth-child(2) { animation-delay: 80ms; }
  .rise-kids.in > :nth-child(3) { animation-delay: 160ms; }
  .rise-kids.in > :nth-child(4) { animation-delay: 240ms; }
  .rise-kids.in > :nth-child(5) { animation-delay: 320ms; }
  .rise-kids.in > :nth-child(6) { animation-delay: 400ms; }
  .hero-text, .hero-art .phone { animation: rise .5s var(--ease) both; }
  .hero-art .phone { animation-delay: 120ms; }
  .ring-tile { animation: fade .4s ease-out both; }
  .hero .rings .arc, .fitness.in .rings .arc { animation: draw 1.5s var(--ease) both; }
  .hero .rings .arc.r1, .fitness.in .rings .arc.r1 { animation-delay: .2s; }
  .hero .rings .arc.r2, .fitness.in .rings .arc.r2 { animation-delay: .38s; }
  .hero .rings .arc.r3, .fitness.in .rings .arc.r3 { animation-delay: .56s; }
  .wl.in .wl-go button { animation: pop .45s cubic-bezier(.3, .7, .2, 1.2) .35s both; }
  .wl-done.in .tb-c, .land.in .tb-c { animation: fill-in .35s ease-out .1s both; }
  .wl-done.in .tb-t, .land.in .tb-t { animation: tick .4s ease-out .4s both; }
  .wl-done.in, .land.in { animation: rise .5s var(--ease) both; }
}
@media (prefers-reduced-motion: reduce) {
  .rise.in, .rise-kids.in > *, .wl-done.in, .hero-text, .hero-art, .land.in { animation: fade .12s linear both; }
}
@media print { .rise.pre, .rise-kids.pre > * { opacity: 1; } }
