/* Emaan Track website. Tokens mirror EmaanTrack_Branding_Pack/03_Design_Tokens
   and the app theme (lib/src/app/theme.dart). */

@font-face { font-family: Inter; font-weight: 400; font-display: swap; src: url(../fonts/Inter-Regular.woff2) format('woff2'); }
@font-face { font-family: Inter; font-weight: 500; font-display: swap; src: url(../fonts/Inter-Medium.woff2) format('woff2'); }
@font-face { font-family: Inter; font-weight: 600; font-display: swap; src: url(../fonts/Inter-SemiBold.woff2) format('woff2'); }
@font-face { font-family: Inter; font-weight: 700; font-display: swap; src: url(../fonts/Inter-Bold.woff2) format('woff2'); }
@font-face { font-family: Lora; font-weight: 500; font-display: swap; src: url(../fonts/Lora-Medium.woff2) format('woff2'); }
@font-face { font-family: Lora; font-weight: 600; font-display: swap; src: url(../fonts/Lora-SemiBold.woff2) format('woff2'); }
@font-face { font-family: Lora; font-weight: 700; font-display: swap; src: url(../fonts/Lora-Bold.woff2) format('woff2'); }

:root {
  --navy: #071D3C;
  --teal: #007F78;
  --teal-deep: #00635E;
  --mint: #66D6BE;
  --gold: #F5D37B;
  --cream: #FAF8F3;
  --ink: #152029;
  --muted: #5B6677;
  --surface: #FFFFFF;
  --soft: #F1F5F4;
  --line: #E3E7E9;
  --tint: #D3F3EC;

  /* Time-of-day colours of the five prayers (prayer_style.dart). */
  --fajr: linear-gradient(135deg, #203D81, #6D4C9E);
  --dhuhr: linear-gradient(135deg, #006E68, #0A9A8C);
  --asr: linear-gradient(135deg, #9A5B12, #D08A2A);
  --maghrib: linear-gradient(135deg, #992F4A, #CC5F43);
  --isha: linear-gradient(135deg, #071D3C, #203D81);
  --focus: linear-gradient(180deg, #102C66, #5B4F91);
  --teal-card: linear-gradient(135deg, #0B5E66, #0E3B5C);

  --body: Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: Lora, Inter, 'Iowan Old Style', Georgia, serif;

  --radius: 20px;
  --shadow-sm: 0 1px 2px rgba(7, 29, 60, .04), 0 6px 18px -8px rgba(7, 29, 60, .1);
  --shadow: 0 2px 4px rgba(7, 29, 60, .04), 0 18px 40px -18px rgba(7, 29, 60, .22);
  --gutter: clamp(20px, 5vw, 40px);
  --header: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 1.0625rem/1.6 var(--body);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ul, ol, blockquote, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
.on-dark :focus-visible, .on-dark:focus-visible { outline-color: var(--mint); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 12px; background: var(--navy); color: #fff; transition: top .15s; }
.skip:focus { top: 12px; }
.wrap { width: min(100%, 1180px + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

/* ------------------------------------------------------------ type --- */

.display { font-family: var(--display); font-weight: 700; letter-spacing: -.02em; line-height: 1.12; color: var(--navy); text-wrap: balance; }
h2.display { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 2.75rem); }
.eyebrow { display: block; margin-bottom: 14px; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); }
.lead { margin-top: 16px; font-size: 1.1rem; color: var(--muted); max-width: 34em; text-wrap: pretty; }
.on-dark .display { color: #fff; }
.on-dark .eyebrow { color: var(--mint); }
.on-dark .lead { color: rgba(255, 255, 255, .82); }

/* --------------------------------------------------------- buttons --- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 16px;
  font-weight: 600; font-size: 1rem; color: #fff; background: var(--teal);
  box-shadow: 0 10px 24px -12px rgba(0, 127, 120, .8);
  transition: background .2s, transform .2s, box-shadow .2s;
}
.btn:hover { background: var(--teal-deep); transform: translateY(-1px); }
.btn--sm { min-height: 44px; padding: 0 20px; border-radius: 14px; font-size: .95rem; }
.btn--quiet { color: var(--teal-deep); background: var(--soft); box-shadow: none; }
.btn--quiet:hover { background: var(--tint); }
.btn--block { width: 100%; }

.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 12px; min-height: 58px; padding: 8px 22px 8px 18px;
  border-radius: 16px; color: #fff; background: #0B1220; border: 1px solid rgba(255, 255, 255, .16);
  line-height: 1.15; font-weight: 600; font-size: 1.06rem; transition: transform .2s, filter .2s;
}
.store--play { background: var(--teal); border-color: transparent; }
.store svg { width: 26px; height: 26px; flex: none; }
.store small { display: block; font-size: .72rem; font-weight: 500; letter-spacing: .02em; }
a.store[href]:hover { transform: translateY(-2px); filter: brightness(1.1); }
.store:not([href]) { cursor: default; }

/* ---------------------------------------------------------- header --- */

.header { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header); color: #fff; transition: background .25s, color .25s, box-shadow .25s; }
.header .wrap { display: flex; align-items: center; gap: 28px; height: 100%; }
.header.is-solid { color: var(--ink); background: rgba(250, 248, 243, .88); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 1.22rem; letter-spacing: -.01em; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.nav { display: flex; gap: 4px; margin-inline: auto; }
.nav a { padding: 8px 14px; border-radius: 10px; font-size: .95rem; font-weight: 500; opacity: .9; transition: background .2s, opacity .2s; }
.nav a:hover { opacity: 1; background: rgba(255, 255, 255, .14); }
.nav a[aria-current] { opacity: 1; font-weight: 600; }
.header.is-solid .nav a:hover { background: var(--soft); }
.menu { display: none; width: 44px; height: 44px; margin-left: auto; border-radius: 12px; place-items: center; }
.menu .icon { width: 24px; height: 24px; }

@media (max-width: 900px) {
  .menu { display: grid; }
  .header .btn { display: none; }
  .nav {
    position: absolute; inset: calc(var(--header) - 4px) var(--gutter) auto; flex-direction: column; gap: 2px; padding: 10px;
    border-radius: 18px; background: #fff; color: var(--ink); box-shadow: var(--shadow); border: 1px solid var(--line);
    opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav a { padding: 13px 14px; font-size: 1rem; }
  .nav a:hover { background: var(--soft); }
  .header.is-open .nav { opacity: 1; visibility: visible; transform: none; }
}

/* ------------------------------------------------------------ hero --- */

.hero {
  position: relative; z-index: 1; color: #fff;
  padding: calc(var(--header) + clamp(36px, 7vw, 84px)) 0 0;
  background: linear-gradient(180deg, #081A45 0%, #1C2C74 34%, #4C4494 62%, #8C5F98 82%, #C8808F 100%);
}
.hero__sky { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero__scene { position: absolute; inset: auto 0 0; height: min(56%, 440px); background: url(../img/scene-hero.svg) 30% 100% / cover no-repeat; }
.hero__sky::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6, 18, 52, .58), rgba(6, 18, 52, .3) 38%, rgba(6, 18, 52, 0) 62%), radial-gradient(70% 62% at 20% 40%, rgba(6, 18, 52, .5), rgba(6, 18, 52, 0) 72%); }
.hero__moon { position: absolute; left: 47%; top: clamp(110px, 17vw, 190px); width: clamp(34px, 4vw, 54px); filter: drop-shadow(0 0 22px rgba(245, 226, 168, .55)); }
.hero__stars { position: absolute; inset: 0; width: 100%; height: 60%; fill: #F5E2A8; }
.hero__stars path { animation: twinkle 5s ease-in-out infinite; }
.hero__stars path:nth-child(2n) { animation-delay: -2s; }
.hero__stars path:nth-child(3n) { animation-delay: -3.4s; }
@keyframes twinkle { 50% { opacity: .35; } }

.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 32px; align-items: start; }
.hero__copy { padding: clamp(8px, 3vw, 44px) 0 clamp(48px, 5vw, 64px); }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 99px; font-size: .85rem; font-weight: 600; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .2); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hero h1 { margin-top: 22px; font: 700 clamp(2.5rem, 1.5rem + 3.9vw, 4.1rem)/1.06 var(--display); letter-spacing: -.025em; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero__lead { margin-top: 22px; max-width: 30em; font-size: clamp(1.06rem, 1rem + .3vw, 1.2rem); color: rgba(255, 255, 255, .88); text-wrap: pretty; }
.hero .stores { margin-top: 32px; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 30px; font-size: .94rem; font-weight: 500; color: #fff; text-shadow: 0 1px 10px rgba(6, 18, 52, .7); }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust .icon { color: var(--mint); }

.hero__phones { position: relative; justify-self: end; align-self: end; width: min(100%, 500px); aspect-ratio: 500 / 580; margin-bottom: -72px; }
.hero__phones .phone { position: absolute; top: 0; left: 0; --phone-w: 55%; z-index: 2; }
.hero__phones .phone + .phone { top: 6%; left: auto; right: 0; --phone-w: 50%; z-index: 1; }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 0; }
  .hero__copy { padding-bottom: 44px; }
  .hero__phones { justify-self: center; width: min(100%, 420px); }
  .hero__scene { background-position-x: 23%; height: min(46%, 420px); }
  .hero__moon { left: auto; right: 9%; top: 96px; }
  .hero__sky::after { background: linear-gradient(180deg, rgba(6, 18, 52, .35), rgba(6, 18, 52, 0) 60%); }
}

/* -------------------------------------------------------- sections --- */

.section { padding: clamp(72px, 9vw, 120px) 0; }
.section--after-hero { padding-top: clamp(128px, 12vw, 150px); }
.section--white { background: var(--surface); }
.section__head { max-width: 40em; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .lead { margin-inline: auto; }

.split { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.4fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 1000px) { .split { grid-template-columns: 1fr; } }

.cards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 48px; }
@media (max-width: 860px) { .cards--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.card { padding: 26px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card h3 { margin-top: 18px; font-size: 1.08rem; font-weight: 600; color: var(--navy); }
.card p { margin-top: 8px; font-size: .96rem; line-height: 1.55; color: var(--muted); }
.section--white .card { background: var(--cream); }
.tile { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; color: #fff; background: var(--dhuhr); box-shadow: 0 10px 20px -10px rgba(7, 29, 60, .5); }
.tile .icon { width: 26px; height: 26px; }
.tile--fajr { background: var(--fajr); }
.tile--asr { background: var(--asr); }
.tile--maghrib { background: var(--maghrib); }
.tile--isha { background: var(--isha); }
@media (max-width: 560px) {
  .cards--3, .cards--4 { grid-template-columns: 1fr; gap: 12px; }
  .cards--3 { margin-top: 36px; }
  .card { display: grid; grid-template-columns: 48px 1fr; column-gap: 16px; padding: 20px; }
  .card .tile { grid-row: span 2; width: 48px; height: 48px; border-radius: 15px; }
  .card h3 { margin-top: 2px; }
  .card p { margin-top: 4px; }
}

/* ----------------------------------------------------------- steps --- */

.steps { margin-top: 36px; display: grid; gap: 26px; counter-reset: step; }
.steps li { position: relative; display: grid; grid-template-columns: 46px 1fr; gap: 18px; counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; font-weight: 700; color: #fff; background: var(--dhuhr); z-index: 1; }
.steps li:nth-child(2)::before { background: var(--isha); }
.steps li:nth-child(3)::before { background: var(--fajr); }
.steps li:not(:last-child)::after { content: ''; position: absolute; left: 22px; top: 46px; bottom: -26px; width: 2px; background: var(--line); }
.steps h3 { font-size: 1.1rem; font-weight: 600; color: var(--navy); }
.steps p { margin-top: 4px; font-size: .98rem; color: var(--muted); }
.steps-cta { margin-top: 36px; }

.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2.4vw, 30px); align-items: start; }
.shots--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.8vw, 24px); }
.shots--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(10px, 1.5vw, 22px); }
.gallery .shots--5 { max-width: 1240px; }
@media (max-width: 1100px) and (min-width: 721px) { .shots--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 820px; row-gap: 40px; } }
.gallery .shots--4 { max-width: 1120px; }
@media (max-width: 980px) and (min-width: 721px) { .shots--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 600px; row-gap: 40px; } }
.shot { display: grid; justify-items: center; gap: 18px; text-align: center; }
.shot .phone { --phone-w: 100%; max-width: 270px; }
.shot figcaption b { display: block; font-weight: 600; color: var(--navy); }
.shot figcaption span { font-size: .92rem; color: var(--muted); }
@media (max-width: 720px) {
  .shots { display: flex; gap: 18px; margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 22px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .shots::-webkit-scrollbar { display: none; }
  .shot { flex: none; width: min(68vw, 250px); scroll-snap-align: center; }
}

/* ----------------------------------------------------- salah focus --- */

.focus { position: relative; overflow: hidden; color: #fff; background: linear-gradient(135deg, #0B2259 0%, #2A2F7C 52%, #5B4F91 100%); }
.focus::before { content: ''; position: absolute; inset: 0; background: url(../img/lattice-light.svg); opacity: .028; }
.focus .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.focus .pill { margin-bottom: 20px; }
.checks { margin-top: 28px; display: grid; gap: 14px; }
.checks li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; font-size: 1.02rem; color: rgba(255, 255, 255, .92); }
.checks .icon { width: 26px; height: 26px; padding: 5px; border-radius: 50%; color: var(--navy); background: var(--mint); stroke-width: 2.4; }
.modes { margin-top: 34px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.mode { padding: 18px 20px; border-radius: 18px; background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.mode b { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.mode b .icon { color: var(--gold); }
.mode p { margin-top: 6px; font-size: .93rem; line-height: 1.5; color: rgba(255, 255, 255, .8); }
.focus__phone { position: relative; justify-self: center; width: min(100%, 300px); }
.focus__phone::before { content: ''; position: absolute; inset: -12% -22%; border-radius: 50%; background: radial-gradient(closest-side, rgba(180, 160, 255, .38), transparent); }
.focus__phone .phone { position: relative; --phone-w: 100%; }
@media (max-width: 900px) {
  .focus .wrap { grid-template-columns: 1fr; }
  .focus__phone { width: min(74%, 280px); }
}
@media (max-width: 520px) { .modes { grid-template-columns: 1fr; } }

/* --------------------------------------------------------- gallery --- */

.gallery { position: relative; overflow: hidden; }
.gallery::after { content: ''; position: absolute; inset: auto 0 0; height: 320px; background: url(../img/scene-backdrop.svg) 50% 100% / auto 100% no-repeat; pointer-events: none; }
.gallery .wrap { position: relative; z-index: 1; }
.gallery .shots { margin-top: 52px; max-width: 920px; margin-inline: auto; }
@media (max-width: 720px) { .gallery .shots { margin-inline: calc(-1 * var(--gutter)); } }

/* --------------------------------------------------------- pricing --- */

.pricing { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.6fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 28px 24px 24px; border-radius: 24px; background: var(--cream); border: 1px solid var(--line); }
.plan--best { background: var(--surface); border: 2px solid var(--teal); box-shadow: 0 24px 50px -24px rgba(0, 127, 120, .5); }
.plan__flag { position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%); padding: 5px 14px; border-radius: 99px; font-size: .76rem; font-weight: 700; letter-spacing: .03em; white-space: nowrap; color: #fff; background: var(--teal); }
.plan h3 { font-size: 1.02rem; font-weight: 600; color: var(--navy); }
.plan__price { margin-top: 10px; font: 700 2.3rem/1 var(--display); letter-spacing: -.02em; color: var(--navy); }
.plan__price small { font: 500 .95rem var(--body); letter-spacing: 0; color: var(--muted); }
.plan__note { margin-top: 8px; min-height: 2.9em; font-size: .9rem; line-height: 1.45; color: var(--muted); }
.plan ul { margin: 20px 0 26px; display: grid; gap: 11px; font-size: .94rem; line-height: 1.45; }
.plan li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; }
.plan li .icon { width: 18px; height: 18px; margin-top: 2px; color: var(--teal); stroke-width: 2.2; }
.plan .btn { margin-top: auto; }
.fine { margin-top: 22px; font-size: .88rem; color: var(--muted); }
@media (max-width: 1000px) { .pricing { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; max-width: 420px; gap: 26px; } .plan__note { min-height: 0; } }

/* ------------------------------------------------------------- faq --- */

.faq { max-width: 800px; margin: 44px auto 0; display: grid; gap: 12px; }
.faq details { border-radius: 18px; background: var(--surface); border: 1px solid var(--line); transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; font-weight: 600; color: var(--navy); cursor: pointer; list-style: none; border-radius: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--teal); transition: transform .25s; }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details > div { padding: 0 22px 22px; color: var(--muted); font-size: 1rem; }
.faq details > div p + p { margin-top: 10px; }
.faq b { font-weight: 600; color: var(--ink); }

/* ------------------------------------------------- download + foot --- */

.download { position: relative; overflow: hidden; margin: 0 var(--gutter); border-radius: 32px; color: #fff; text-align: center; background: linear-gradient(135deg, #071D3C, #203D81 55%, #6D4C9E); }
.download::before { content: ''; position: absolute; inset: 0; background: url(../img/lattice-light.svg); opacity: .035; }
.download .wrap { position: relative; padding-block: clamp(56px, 8vw, 92px); display: grid; justify-items: center; }
.download img { width: 76px; height: 76px; border-radius: 20px; box-shadow: 0 18px 36px -14px rgba(0, 0, 0, .6); }
.download h2 { margin-top: 26px; }
.download .stores { margin-top: 30px; justify-content: center; }
.platforms { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-top: 26px; font-size: .92rem; color: rgba(255, 255, 255, .8); }
.platforms li { display: inline-flex; align-items: center; gap: 7px; }

.footer { padding: 64px 0 36px; }
.footer .wrap { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr)); gap: 36px; }
.footer .brand { color: var(--navy); }
.footer p { margin-top: 12px; max-width: 26em; font-size: .95rem; color: var(--muted); }
.footer h3 { font-size: .85rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--navy); }
.footer ul { margin-top: 14px; display: grid; gap: 9px; font-size: .96rem; color: var(--muted); }
.footer li a:hover { color: var(--teal); }
.footer__end { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 26px; border-top: 1px solid var(--line); font-size: .88rem; color: var(--muted); }
.footer__end q { font-family: var(--display); font-style: italic; }
@media (max-width: 720px) { .footer .wrap { grid-template-columns: 1fr 1fr; } .footer .wrap > :first-child { grid-column: 1 / -1; } }

/* --------------------------------------------------------- support --- */

.more { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-weight: 600; color: var(--teal); }
.more .icon { transition: transform .2s; }
.more:hover .icon { transform: translateX(3px); }

.support { position: relative; overflow: hidden; color: #fff; background: linear-gradient(135deg, #7E2540, #B94E36); }
.support::before { content: ''; position: absolute; inset: 0; background: url(../img/lattice-light.svg); opacity: .04; }
.support .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.support .pill { margin-bottom: 20px; }
.support .lead { color: rgba(255, 255, 255, .92); }
.goes { margin-top: 30px; display: grid; gap: 18px; }
.goes li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; font-size: .96rem; color: rgba(255, 255, 255, .9); }
.goes .icon { width: 44px; height: 44px; padding: 11px; border-radius: 14px; color: var(--gold); background: rgba(255, 255, 255, .14); }
.goes b { display: block; font-weight: 600; color: #fff; }
.give { padding: clamp(22px, 3vw, 32px); border-radius: 28px; color: var(--ink); background: var(--surface); box-shadow: 0 30px 60px -28px rgba(40, 8, 20, .7); }
.give fieldset { margin: 0 0 18px; padding: 0; border: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.give legend { padding: 0; margin-bottom: 14px; font-weight: 600; color: var(--navy); }
.amount { position: relative; cursor: pointer; }
.amount input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.amount span { display: block; height: 100%; padding: 14px 16px; border-radius: 16px; font-size: .88rem; line-height: 1.35; color: var(--muted); background: var(--cream); border: 2px solid var(--line); transition: border-color .2s, background .2s; }
.amount b { display: block; font: 700 1.5rem/1.2 var(--display); color: var(--navy); }
.amount:hover span { border-color: #9FD9CE; }
.amount input:checked + span { border-color: var(--teal); background: #E6F5F2; color: var(--teal-deep); }
.amount input:focus-visible + span { outline: 2px solid var(--teal); outline-offset: 3px; }
.btn:disabled { color: var(--muted); background: var(--soft); box-shadow: none; cursor: default; transform: none; }
.give .fine { margin-top: 14px; }
@media (max-width: 900px) { .support .wrap { grid-template-columns: 1fr; } }

/* --------------------------------------------------------- compare --- */

.page-hero { position: relative; overflow: hidden; color: #fff; text-align: center; padding: calc(var(--header) + clamp(48px, 8vw, 96px)) 0 clamp(64px, 9vw, 110px); background: linear-gradient(160deg, #081A45 0%, #24327A 55%, #5B4F91 100%); }
.page-hero::before { content: ''; position: absolute; inset: 0; background: url(../img/lattice-light.svg); opacity: .03; }
.page-hero .wrap { position: relative; z-index: 1; display: grid; justify-items: center; }
.page-hero h1 { margin-top: 22px; max-width: 16em; font: 700 clamp(2.3rem, 1.4rem + 3.6vw, 3.7rem)/1.08 var(--display); letter-spacing: -.025em; text-wrap: balance; }
.page-hero h1 em { font-style: normal; color: var(--gold); }
.page-hero .lead { max-width: 36em; font-size: clamp(1.06rem, 1rem + .3vw, 1.2rem); }
.page-hero .btn { margin-top: 32px; }

.versus { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 48px; }
.versus article { padding: clamp(24px, 3vw, 36px); border-radius: 24px; background: var(--cream); border: 1px solid var(--line); }
.versus article + article { color: #fff; border: 0; background: var(--teal-card); box-shadow: 0 30px 60px -30px rgba(11, 94, 102, .8); }
.versus .tile { background: #E3E7E9; color: var(--muted); box-shadow: none; }
.versus article + article .tile { background: rgba(255, 255, 255, .16); color: var(--gold); }
.versus h3 { margin-top: 20px; font: 700 1.5rem/1.2 var(--display); color: var(--navy); }
.versus article + article h3 { color: #fff; }
.versus p { margin-top: 10px; color: var(--muted); }
.versus article + article p { color: rgba(255, 255, 255, .9); }
@media (max-width: 760px) { .versus { grid-template-columns: 1fr; } }

.table { width: 100%; max-width: 900px; margin: 48px auto 0; border-collapse: separate; border-spacing: 0; border-radius: 24px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.table th, .table td { padding: 16px clamp(10px, 2.4vw, 24px); text-align: center; border-top: 1px solid var(--line); font-size: .98rem; }
.table thead th { border-top: 0; padding-block: 20px; font-size: .86rem; font-weight: 600; line-height: 1.3; color: var(--muted); vertical-align: bottom; }
.table thead th:last-child { color: var(--teal-deep); font-weight: 700; }
.table tbody th { text-align: left; font-weight: 500; color: var(--ink); }
.table th:last-child, .table td:last-child { background: #EEF8F6; }
.table td { width: clamp(84px, 20%, 170px); color: var(--muted); font-size: .9rem; }
.mark { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: #98A2B3; background: var(--soft); }
.mark .icon { width: 15px; height: 15px; stroke-width: 2.4; }
.mark--yes { color: #fff; background: var(--teal); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.note { max-width: 900px; margin: 20px auto 0; font-size: .9rem; color: var(--muted); }

.timeline { margin-top: 48px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: step; }
.timeline li { position: relative; padding: 26px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); counter-increment: step; }
.timeline li::before { content: counter(step); display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 16px; border-radius: 50%; font-weight: 700; color: #fff; background: var(--fajr); }
.timeline li:nth-child(2)::before { background: var(--dhuhr); }
.timeline li:nth-child(3)::before { background: var(--asr); }
.timeline li:nth-child(4)::before { background: var(--maghrib); }
.timeline small { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); }
.timeline h3 { margin-top: 6px; font-size: 1.08rem; font-weight: 600; color: var(--navy); }
.timeline p { margin-top: 8px; font-size: .95rem; line-height: 1.55; color: var(--muted); }
@media (max-width: 960px) { .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .timeline { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------- pay --- */

.pay { display: grid; justify-items: center; gap: 0; max-width: 520px; margin: clamp(-72px, -6vw, -48px) auto 0; padding: clamp(28px, 4vw, 44px); border-radius: 28px; text-align: center; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); position: relative; z-index: 1; }
.pay .tile { width: 64px; height: 64px; border-radius: 20px; margin-bottom: 22px; }
.pay .tile .icon { width: 30px; height: 30px; }
.pay h2 { font: 700 1.6rem/1.2 var(--display); color: var(--navy); }
.pay p { margin-top: 10px; color: var(--muted); }
.pay .btn { margin-top: 24px; }
.pay > div { display: none; }
.pay[data-pay="opening"] > .is-opening, .pay[data-pay="done"] > .is-done, .pay[data-pay="closed"] > .is-closed,
.pay[data-pay="failed"] > .is-closed, .pay[data-pay="cancelled"] > .is-closed, .pay[data-pay="none"] > .is-none { display: grid; justify-items: center; }
.pay[data-pay="cancelled"] [data-retry] { display: none; }

/* The buy page: account, then review, then the provider's checkout. */
.pay[data-buy] { text-align: left; justify-items: stretch; }
.pay[data-buy] > div, .pay[data-buy] > form { display: none; }
.pay[data-buy="account"] > .is-account, .pay[data-buy="confirm"] > .is-confirm, .pay[data-buy="review"] > .is-review,
.pay[data-buy="unavailable"] > .is-unavailable { display: grid; }
.pay[data-buy] .btn { width: 100%; }

/* The delete-account page: the same card, with its own steps. */
.pay[data-leave] { text-align: left; justify-items: stretch; }
.pay[data-leave] > div, .pay[data-leave] > form { display: none; }
.pay[data-leave="account"] > .is-account, .pay[data-leave="ask"] > .is-ask, .pay[data-leave="pending"] > .is-pending,
.pay[data-leave="kept"] > .is-kept, .pay[data-leave="unavailable"] > .is-unavailable { display: grid; }
.pay[data-leave] .btn { width: 100%; }
.btn--danger { background: #A63245; box-shadow: none; }
.btn--danger:hover { background: #8A2738; }
.leave-facts { max-width: 920px; margin: 48px auto 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 40px; }
.leave-facts h3 { font-size: 1.02rem; font-weight: 600; color: var(--navy); }
.leave-facts p { margin-top: 6px; font-size: .95rem; color: var(--muted); }
@media (max-width: 760px) { .leave-facts { grid-template-columns: 1fr; gap: 20px; } }
.input { display: grid; gap: 6px; margin-top: 16px; font-size: .9rem; font-weight: 600; color: var(--navy); }
.input input { width: 100%; min-height: 52px; padding: 0 16px; border-radius: 14px; border: 2px solid transparent; background: var(--soft); font: 400 1rem var(--body); color: var(--ink); transition: border-color .2s, background .2s; }
.input input::placeholder { color: #98A2B3; }
.input input:focus { outline: none; border-color: var(--teal); background: var(--surface); }
.input small { font-weight: 400; color: var(--muted); }
.names { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.names[hidden] { display: none; }
.linkish { margin-top: 16px; justify-self: center; font-weight: 600; color: var(--teal); }
.linkish:hover { color: var(--teal-deep); }
.pay .alert { margin-top: 16px; padding: 12px 16px; border-radius: 14px; font-size: .94rem; color: #7A1F33; background: #FBEAEE; }
.pay .alert[hidden] { display: none; }
.summary { margin-top: 20px; padding: 18px 20px; border-radius: 18px; background: var(--cream); border: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.summary b { font-weight: 600; color: var(--navy); }
.summary span { font: 700 1.35rem var(--display); color: var(--navy); white-space: nowrap; }
.pay .fine { margin-top: 14px; font-size: .88rem; }

/* ---------------------------------------------------------- reveal --- */

.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--delay, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hero__stars path { animation: none; }
  .btn, .card, .store { transition: none; }
}

/* =========================================================== phone ===
   App screens drawn in CSS. Every size is in --u, 1/300 of the phone's
   width, so a phone scales as one piece wherever it is placed. */

.phone { container-type: inline-size; width: var(--phone-w, 280px); }
.phone__body {
  --u: calc(100cqw / 300);
  position: relative; aspect-ratio: 300 / 620; padding: calc(9 * var(--u)); border-radius: calc(46 * var(--u));
  background: linear-gradient(145deg, #2B3550, #0A0F1C 38%, #141B2C);
  box-shadow: inset 0 0 0 calc(1.2 * var(--u)) rgba(255, 255, 255, .16), 0 calc(34 * var(--u)) calc(60 * var(--u)) calc(-24 * var(--u)) rgba(7, 20, 50, .6), 0 calc(10 * var(--u)) calc(22 * var(--u)) calc(-10 * var(--u)) rgba(7, 20, 50, .4);
}
.phone__body::after { content: ''; position: absolute; top: calc(18 * var(--u)); left: 50%; width: calc(76 * var(--u)); height: calc(21 * var(--u)); border-radius: 99px; background: #05070D; transform: translateX(-50%); }
.screen { position: relative; height: 100%; display: flex; flex-direction: column; overflow: hidden; border-radius: calc(37 * var(--u)); background: var(--cream) url(../img/scene-backdrop.svg) 50% 100% / 150% auto no-repeat; color: var(--ink); font: 400 calc(11 * var(--u)) / 1.35 var(--body); text-align: left; }
.screen .icon { width: calc(16 * var(--u)); height: calc(16 * var(--u)); stroke-width: 1.7; }
.screen b { font-weight: 600; }
.screen small { font-size: calc(9.5 * var(--u)); color: var(--muted); }

.sb { display: flex; justify-content: space-between; align-items: center; flex: none; height: calc(44 * var(--u)); padding: calc(6 * var(--u)) calc(26 * var(--u)) 0; font-weight: 600; font-size: calc(11.5 * var(--u)); }
.sb svg { width: calc(46 * var(--u)); height: calc(11 * var(--u)); fill: currentColor; }
.s-body { flex: 1; min-height: 0; padding: calc(6 * var(--u)) calc(16 * var(--u)) 0; }
.s-bar { display: flex; align-items: center; justify-content: space-between; height: calc(30 * var(--u)); font-weight: 600; font-size: calc(12.5 * var(--u)); }
.s-bar .icon { width: calc(18 * var(--u)); height: calc(18 * var(--u)); }
.s-title { display: block; font: 700 calc(21 * var(--u)) / 1.15 var(--display); letter-spacing: -.015em; color: var(--navy); }
.s-text { margin-top: calc(6 * var(--u)); font-size: calc(10.5 * var(--u)); color: var(--muted); }
.s-label { margin: calc(14 * var(--u)) 0 calc(6 * var(--u)); font-size: calc(10 * var(--u)); font-weight: 600; color: var(--teal); }
.s-card { margin-top: calc(10 * var(--u)); border-radius: calc(16 * var(--u)); background: #fff; border: calc(1 * var(--u)) solid var(--line); }
.s-btn { display: flex; align-items: center; justify-content: center; gap: calc(6 * var(--u)); height: calc(40 * var(--u)); margin-top: calc(12 * var(--u)); border-radius: calc(13 * var(--u)); font-weight: 600; font-size: calc(12 * var(--u)); color: #fff; background: var(--teal); }
.s-btn--line { color: var(--teal); background: #fff; border: calc(1 * var(--u)) solid #B9C2C8; }
.s-btn--tint { color: var(--teal-deep); background: #E6F5F2; border: calc(1 * var(--u)) solid #9FD9CE; font-size: calc(10.5 * var(--u)); }
.s-link { margin-top: calc(14 * var(--u)); text-align: center; font-weight: 600; font-size: calc(10.5 * var(--u)); color: var(--teal); }
.s-steps { display: flex; justify-content: center; gap: calc(4 * var(--u)); margin: calc(4 * var(--u)) 0 calc(16 * var(--u)); }
.s-steps i { width: calc(26 * var(--u)); height: calc(3.5 * var(--u)); border-radius: 9px; background: #E3E7E9; }
.s-steps i.on { background: var(--teal); }

.badge { display: grid; place-items: center; flex: none; width: calc(28 * var(--u)); height: calc(28 * var(--u)); border-radius: calc(9 * var(--u)); color: #fff; background: var(--dhuhr); }
.badge .icon { width: calc(15 * var(--u)); height: calc(15 * var(--u)); }
.badge--fajr { background: var(--fajr); }
.badge--asr { background: var(--asr); }
.badge--maghrib { background: var(--maghrib); }
.badge--isha { background: var(--isha); }
.badge--plain { color: var(--navy); background: none; }
.rows li { display: flex; align-items: center; gap: calc(10 * var(--u)); padding: calc(7 * var(--u)) calc(12 * var(--u)); }
.rows li + li { border-top: calc(1 * var(--u)) solid #EEF1F2; }
.rows li > div { flex: 1; min-width: 0; }
.rows b { display: block; font-size: calc(11.5 * var(--u)); }
.rows time { font-weight: 500; font-size: calc(10.5 * var(--u)); color: var(--ink); }
.rows .icon { color: #98A2B3; width: calc(13 * var(--u)); height: calc(13 * var(--u)); }
.rows .badge .icon { color: inherit; width: calc(15 * var(--u)); height: calc(15 * var(--u)); }
.rows .tick { display: grid; place-items: center; width: calc(15 * var(--u)); height: calc(15 * var(--u)); border-radius: 50%; background: var(--teal); }
.rows .tick .icon { color: #fff; width: calc(9 * var(--u)); height: calc(9 * var(--u)); stroke-width: 3; }

/* The app's floating bar: the open tab rises out of it in a teal bubble. */
.tabs { position: relative; z-index: 1; display: flex; flex: none; height: calc(50 * var(--u)); margin: 0 calc(12 * var(--u)) calc(12 * var(--u)); padding: calc(8 * var(--u)) calc(6 * var(--u)) 0; border-radius: calc(22 * var(--u)); background: #fff; border: calc(1 * var(--u)) solid var(--line); box-shadow: 0 calc(5 * var(--u)) 0 calc(-1 * var(--u)) #DDE3E1, 0 calc(10 * var(--u)) calc(22 * var(--u)) calc(-10 * var(--u)) rgba(7, 29, 60, .35); }
.tabs span { flex: 1; display: grid; justify-items: center; align-content: start; gap: calc(3 * var(--u)); font-size: calc(8.5 * var(--u)); font-weight: 500; color: var(--muted); }
.tabs .icon { width: calc(18 * var(--u)); height: calc(18 * var(--u)); }
.tabs .on { color: var(--teal); font-weight: 700; }
.tabs .on .icon { box-sizing: border-box; width: calc(34 * var(--u)); height: calc(34 * var(--u)); margin-top: calc(-22 * var(--u)); padding: calc(8 * var(--u)); border-radius: 50%; color: #fff; background: var(--teal); box-shadow: 0 0 0 calc(3 * var(--u)) #fff, 0 calc(5 * var(--u)) 0 calc(1 * var(--u)) #9FD9CE; }

/* Home */
.hello { margin: 0 calc(-4 * var(--u)); padding: calc(11 * var(--u)) calc(10 * var(--u)) calc(9 * var(--u)); border-radius: calc(20 * var(--u)); background: linear-gradient(135deg, #FFF0D9, #FBE2D3); }
.hello .greet { padding: 0 calc(4 * var(--u)); }
.dates { display: flex; gap: calc(5 * var(--u)); margin-top: calc(9 * var(--u)); }
.dates span { display: flex; align-items: center; gap: calc(4 * var(--u)); padding: calc(4 * var(--u)) calc(8 * var(--u)); border-radius: 99px; background: rgba(255, 255, 255, .8); font-weight: 600; font-size: calc(8.5 * var(--u)); color: var(--navy); white-space: nowrap; }
.dates .icon { width: calc(10 * var(--u)); height: calc(10 * var(--u)); color: var(--teal); }
.qib { display: flex; align-items: center; gap: calc(9 * var(--u)); margin-top: calc(8 * var(--u)); padding: calc(7 * var(--u)) calc(9 * var(--u)) calc(7 * var(--u)) calc(7 * var(--u)); border-radius: calc(15 * var(--u)); background: rgba(255, 255, 255, .94); }
.qib > div { flex: 1; min-width: 0; }
.qib b { display: block; font-size: calc(11.5 * var(--u)); }
.qib small { display: block; line-height: 1.3; }
.qib__dial { flex: none; width: calc(32 * var(--u)); height: calc(32 * var(--u)); }
.qib__go { display: grid; place-items: center; flex: none; width: calc(27 * var(--u)); height: calc(27 * var(--u)); border-radius: 50%; color: #fff; background: var(--teal); }
.qib__go .icon { width: calc(13 * var(--u)); height: calc(13 * var(--u)); stroke-width: 2; }
.qib--found { margin-top: calc(9 * var(--u)); padding: calc(10 * var(--u)); border-color: var(--teal); background: #D3F3EC; }
.qib--found .badge { background: var(--teal); }
/* Home has more on it now: its lower cards sit a little closer. */
.hello ~ .next { margin-top: calc(9 * var(--u)); padding-block: calc(11 * var(--u)); }
.hello ~ .next .next__time { margin-top: calc(10 * var(--u)); }
.hello ~ .s-card { margin-top: calc(8 * var(--u)); }
.hello ~ .s-card .rows li { padding-block: calc(5 * var(--u)); }
/* A screen shown as the app itself draws it. */
.screen--shot { background: #EDE6D6; }
.screen--shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.screen--shot .sb { position: relative; z-index: 1; }
.hz { display: block; width: 100%; height: auto; margin-top: calc(4 * var(--u)); border-radius: calc(20 * var(--u)); }
.greet { display: flex; justify-content: space-between; align-items: flex-start; }
.greet small { display: block; }
.greet b { font: 700 calc(19 * var(--u)) / 1.2 var(--display); color: var(--navy); }
.greet .icon { width: calc(19 * var(--u)); height: calc(19 * var(--u)); color: var(--navy); margin-top: calc(6 * var(--u)); }
.next { position: relative; overflow: hidden; margin-top: calc(12 * var(--u)); padding: calc(13 * var(--u)) calc(14 * var(--u)); border-radius: calc(18 * var(--u)); color: #fff; background: url(../img/scene-teal-night.svg) 100% 100% / 78% auto no-repeat, var(--teal-card); }
.next__top { display: flex; align-items: center; gap: calc(9 * var(--u)); }
.next__top span { display: grid; place-items: center; width: calc(32 * var(--u)); height: calc(32 * var(--u)); border-radius: 50%; color: var(--gold); background: rgba(255, 255, 255, .14); }
.next small { display: block; color: rgba(255, 255, 255, .8); }
.next__top b { font: 700 calc(17 * var(--u)) / 1.1 var(--display); }
.next__time { display: block; margin-top: calc(16 * var(--u)); font-weight: 600; font-size: calc(22 * var(--u)); letter-spacing: -.01em; line-height: 1.1; }
.next__go { position: absolute; right: calc(12 * var(--u)); bottom: calc(12 * var(--u)); display: grid; place-items: center; width: calc(28 * var(--u)); height: calc(28 * var(--u)); border-radius: 50%; background: var(--mint); color: var(--navy); }
.s-card__head { display: flex; justify-content: space-between; align-items: baseline; padding: calc(11 * var(--u)) calc(12 * var(--u)) calc(4 * var(--u)); }

/* Salah Focus */
.screen--focus { color: #fff; text-align: center; background: url(../img/scene-focus.svg) 50% calc(100% - 30 * var(--u)) / 135% auto no-repeat, linear-gradient(0deg, #1E2154 calc(31 * var(--u)), transparent 0), var(--focus); }
.screen--focus::before { content: ''; position: absolute; inset: 0 0 calc(120 * var(--u)); background: url(../img/lattice-light.svg) 0 0 / calc(56 * var(--u)); opacity: .03; }
.screen--focus > * { position: relative; }
.f-top { display: flex; justify-content: space-between; align-items: center; padding: calc(8 * var(--u)) calc(16 * var(--u)) 0; }
.chip { padding: calc(5 * var(--u)) calc(11 * var(--u)); border-radius: 99px; font-size: calc(9 * var(--u)); font-weight: 700; letter-spacing: .08em; background: rgba(255, 255, 255, .14); border: calc(1 * var(--u)) solid rgba(255, 255, 255, .2); }
.f-x { display: grid; place-items: center; width: calc(26 * var(--u)); height: calc(26 * var(--u)); border-radius: 50%; background: rgba(255, 255, 255, .14); }
.f-x .icon { width: calc(13 * var(--u)); height: calc(13 * var(--u)); }
.screen .f-icon { width: calc(34 * var(--u)); height: calc(34 * var(--u)); margin: calc(20 * var(--u)) auto 0; color: var(--gold); }
.f-title { display: block; margin-top: calc(8 * var(--u)); font: 700 calc(27 * var(--u)) / 1.15 var(--display); letter-spacing: -.015em; }
.f-sub { margin: calc(6 * var(--u)) auto 0; max-width: 19em; font-size: calc(11.5 * var(--u)); color: rgba(255, 255, 255, .85); }
.ring { position: relative; width: calc(138 * var(--u)); height: calc(138 * var(--u)); margin: calc(22 * var(--u)) auto 0; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); fill: rgba(16, 30, 84, .36); stroke-width: 5; }
.ring circle { stroke: rgba(255, 255, 255, .18); }
.ring circle + circle { fill: none; stroke: #fff; stroke-linecap: round; stroke-dasharray: 339.3; stroke-dashoffset: 1; transition: stroke-dashoffset 1s linear; }
.ring div { position: absolute; inset: 0; display: grid; place-content: center; }
.ring b { font-size: calc(34 * var(--u)); font-weight: 700; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.ring small { margin-top: calc(4 * var(--u)); color: rgba(255, 255, 255, .8); }
.f-quote { position: absolute; inset: auto calc(18 * var(--u)) calc(16 * var(--u)); font: 500 italic calc(10.5 * var(--u)) / 1.45 var(--display); color: rgba(255, 255, 255, .95); text-shadow: 0 1px 8px rgba(16, 24, 70, .8); }
.f-quote cite { display: block; margin-top: calc(5 * var(--u)); font: 500 calc(9.5 * var(--u)) var(--body); color: rgba(255, 255, 255, .8); }
.screen--focus > .f-quote { position: absolute; }

/* Onboarding */
.field { display: flex; align-items: center; gap: calc(10 * var(--u)); height: calc(46 * var(--u)); margin-top: calc(10 * var(--u)); padding: 0 calc(13 * var(--u)); border-radius: calc(13 * var(--u)); background: var(--soft); color: var(--muted); }
.field div { flex: 1; }
.field b { display: block; font-size: calc(10 * var(--u)); color: var(--ink); }
.field .icon { color: var(--ink); }
.brandmark { display: block; width: calc(52 * var(--u)); height: calc(52 * var(--u)); margin: calc(4 * var(--u)) 0 calc(14 * var(--u)); border-radius: calc(14 * var(--u)); }
.hint { margin-top: calc(6 * var(--u)); font-size: calc(9.5 * var(--u)); color: var(--muted); }

/* Device setup */
.notice { display: flex; gap: calc(10 * var(--u)); padding: calc(12 * var(--u)); }
.notice .icon { width: calc(20 * var(--u)); height: calc(20 * var(--u)); color: var(--teal); }
.notice b { display: block; font-size: calc(11.5 * var(--u)); }
.tag { flex: none; display: inline-flex; align-items: center; gap: calc(3 * var(--u)); padding: calc(5 * var(--u)) calc(9 * var(--u)); border-radius: calc(9 * var(--u)); font-size: calc(9.5 * var(--u)); font-weight: 600; color: var(--teal-deep); background: #E6F5F2; }
.tag--ok { color: #0A6B4F; background: #DDF6EC; }
.rows .tag .icon { color: inherit; width: calc(10 * var(--u)); height: calc(10 * var(--u)); stroke-width: 2.6; }
.rows--tall li { padding-block: calc(9 * var(--u)); align-items: flex-start; }
.rows--tall small { display: block; line-height: 1.3; }

/* Prayers */
.seg { display: grid; grid-template-columns: 1fr 1fr; margin: calc(4 * var(--u)) calc(12 * var(--u)) calc(11 * var(--u)); padding: calc(3 * var(--u)); border-radius: calc(13 * var(--u)); background: var(--soft); text-align: center; }
.seg span { padding: calc(5 * var(--u)) 0; border-radius: calc(10 * var(--u)); font-weight: 600; font-size: calc(10.5 * var(--u)); color: var(--muted); }
.seg span.on { color: var(--ink); background: #fff; box-shadow: 0 calc(1 * var(--u)) calc(4 * var(--u)) rgba(7, 29, 60, .14); }
.seg small { display: block; font-weight: 400; font-size: calc(8.5 * var(--u)); }
.seg--3 { grid-template-columns: repeat(3, 1fr); margin: 0; width: calc(132 * var(--u)); }

/* Confirmation */
.screen--confirm { text-align: center; background: #fff; }
.screen--confirm .chip { color: var(--navy); background: var(--soft); border-color: var(--line); }
.screen--confirm .f-x { background: var(--soft); }
.screen--confirm .f-icon { color: #6D4C9E; margin-top: calc(14 * var(--u)); }
.screen--confirm .f-title { color: var(--navy); }
.c-scene { height: calc(134 * var(--u)); margin-top: calc(10 * var(--u)); background: url(../img/scene-cream.svg) 50% 100% / 100% auto no-repeat; }
.c-ask { display: block; margin-top: calc(6 * var(--u)); font: 700 calc(22 * var(--u)) / 1.15 var(--display); color: var(--navy); letter-spacing: -.015em; }

/* Insights */
.week { display: flex; justify-content: space-between; padding: calc(4 * var(--u)) calc(12 * var(--u)) calc(12 * var(--u)); text-align: center; font-size: calc(9 * var(--u)); color: var(--muted); }
.week i { display: grid; place-items: center; width: calc(20 * var(--u)); height: calc(20 * var(--u)); margin-bottom: calc(4 * var(--u)); border-radius: 50%; border: calc(1.6 * var(--u)) solid #C9D1D6; }
.week i.on { border-color: var(--teal); background: var(--teal); }
.week i .icon { width: calc(11 * var(--u)); height: calc(11 * var(--u)); color: #fff; stroke-width: 3; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); padding: calc(10 * var(--u)) 0; text-align: center; border-top: calc(1 * var(--u)) solid #EEF1F2; }
.stats div + div { border-left: calc(1 * var(--u)) solid #EEF1F2; }
.stats b { display: block; font-size: calc(17 * var(--u)); font-weight: 700; color: var(--navy); }
.bars li { display: flex; align-items: center; gap: calc(9 * var(--u)); padding: calc(6 * var(--u)) calc(12 * var(--u)); font-size: calc(10.5 * var(--u)); }
.bars .badge { width: calc(22 * var(--u)); height: calc(22 * var(--u)); border-radius: 50%; }
.bars .badge .icon { width: calc(12 * var(--u)); height: calc(12 * var(--u)); }
.bars b { width: calc(48 * var(--u)); font-weight: 500; }
.bars i { flex: 1; height: calc(5 * var(--u)); border-radius: 9px; background: linear-gradient(90deg, var(--bar, var(--teal)) var(--v), #E8EDEC var(--v)); }
.bars span { width: calc(20 * var(--u)); text-align: right; color: var(--muted); font-size: calc(9.5 * var(--u)); }

/* ----------------------------------------------------------- legal --- */

.legal { max-width: 760px; }
.legal h2 { margin: 44px 0 12px; font: 700 1.5rem / 1.2 var(--display); letter-spacing: -.01em; color: var(--navy); }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--ink); line-height: 1.65; }
.legal p + p { margin-top: 12px; }
.legal ul { margin: 0; padding-left: 1.2em; list-style: disc; }
.legal li + li { margin-top: 8px; }
.legal li::marker { color: var(--teal); }
.legal a { color: var(--teal-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
