/* Shams site: the app's "Grenade" palette (theme/palettes.json) and its rounded type. Every
   color comes from the palette (or the app's golden hour, theme/colors.ts): Mélik, 21 October. */
/* Fonts served from the site itself (OFL, Latin subsets): no request to a third party. */
@font-face {
  font-family: "Nunito";
  src: url("/fonts/nunito.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
}
/* Fraunces fixed at the app's settings (assets/fonts/Fraunces-Shams.ttf), for the name only. */
@font-face {
  font-family: "Fraunces Shams";
  src: url("/fonts/fraunces-shams.woff2") format("woff2");
  font-display: swap;
}

:root {
  color-scheme: light;
  --background: #FBF4EE;
  --background-deep: #F4E5DB;
  --surface: #FFFAF6;
  --line: #EEDDD3;
  --text: #2E1620;
  --text-soft: #765060;
  --text-faint: #9C7F89;
  --primary: #E66A3C;
  --primary-deep: #C4532A;
  --anchor: #A8324E;
  --anchor-soft: #F5E2E2;
  --secondary: #6B2E4A;
  --soft: #E89AA6;
  --sun-light: #FFE3A6;
  --sun: #FFC457;
  --sun-deep: #F29A4A;
  /* The app's golden hour, behind its sun (GoldenBackground). */
  --golden: #FFF4E0;
  --radius: 26px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--background);
  font: 500 17px/1.6 "Nunito", ui-rounded, -apple-system, system-ui, sans-serif;
  overflow-x: hidden;
}
a { color: var(--primary-deep); text-underline-offset: 3px; }
img { max-width: 100%; display: block; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; margin-left: auto; margin-right: auto; }

/* Top bar */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 400 27px/1 "Fraunces Shams", Georgia, serif; color: var(--text); text-decoration: none; }
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.top nav { display: flex; gap: 26px; font-weight: 700; font-size: 16px; }
.top nav a { color: var(--text-soft); text-decoration: none; }
.top nav a:hover { color: var(--text); }
@media (max-width: 760px) { .top nav { display: none; } }

.pill { display: inline-flex; align-items: center; justify-content: center; padding: 13px 26px; border-radius: 999px; font-weight: 800; font-size: 16px; text-decoration: none; transition: transform .15s ease, background .15s ease; }
.pill.dark { background: var(--text); color: #fff; }
.pill.dark:hover { background: var(--anchor); transform: translateY(-1px); }

/* Ornaments */
.deco { position: absolute; pointer-events: none; }
.deco.spark { width: 28px; height: 28px; color: var(--primary); }
.deco.moon { width: 46px; height: 46px; color: var(--sun); }

/* Arches: a colored arch, the app screen rising from the bottom */
.arch { position: relative; overflow: hidden; border-radius: 999px 999px 40px 40px; }
.arch img { position: absolute; left: 50%; bottom: -34%; width: 72%; height: auto; transform: translateX(-50%) rotate(-4deg);
  border-radius: 26px; border: 6px solid #160A0F; box-shadow: 0 24px 50px rgba(46,22,32,.3); }
.arch.orange { background: linear-gradient(180deg, var(--sun-deep), var(--primary)); }
.arch.grenade { background: linear-gradient(180deg, var(--anchor), var(--secondary)); }
.arch.grenade img { transform: translateX(-50%) rotate(4deg); }
/* Dawn behind the mosque: from the night's plum to the sun at the horizon. */
.arch.dawn { background: linear-gradient(180deg, var(--secondary) 0%, var(--anchor) 34%, var(--primary) 64%, var(--sun) 100%); }
.arch.dawn svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Hero */
.hero { position: relative; display: grid; grid-template-columns: 0.9fr 1.6fr 0.9fr; gap: 32px; align-items: end; padding: 36px 0 24px; }
.hero .lead { font-size: 18px; color: var(--text-soft); margin: 0 0 26px; max-width: 290px; }
.hero-left .arch { height: 380px; }
.hero-right .arch { height: 500px; }
.hero-mid { text-align: center; padding-bottom: 40px; }
.hero h1 { font-size: clamp(42px, 5.6vw, 76px); line-height: 1.04; letter-spacing: -2px; font-weight: 600; margin: 0 0 30px; }
.round { display: inline-grid; place-items: center; width: 88px; height: 88px; border-radius: 50%; background: var(--text); color: #fff; transition: transform .2s ease, background .2s ease; }
.round:hover { background: var(--anchor); transform: translateY(2px); }
.round svg { width: 34px; height: 34px; }
.get { margin: 16px 0 2px; font-weight: 800; font-size: 17px; }
.get a { color: var(--text); text-decoration: none; }
.get span { margin-left: 4px; padding: 2px 9px; border-radius: 999px; background: var(--sun-light); font-size: 13px; color: var(--primary-deep); }
.soon { margin: 0; font-size: 14px; font-weight: 700; color: var(--text-faint); }
.s1 { top: 8px; left: 0; }
.m1 { top: 0; right: 30%; }
.s2 { bottom: 140px; left: 31%; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr 1fr; grid-template-areas: "mid mid" "left right"; gap: 18px; align-items: end; padding-top: 18px; }
  .hero-mid { grid-area: mid; padding-bottom: 10px; }
  .hero-left { grid-area: left; }
  .hero-right { grid-area: right; }
  .hero .lead { display: none; }
  .hero-left .arch { height: 300px; }
  .hero-right .arch { height: 360px; }
  .s2 { display: none; }
  .m1 { right: 4px; top: -6px; width: 34px; height: 34px; }
}

/* Prayer times band */
.times { position: relative; margin-top: 48px; padding: 34px 28px 30px; border-radius: 120px; text-align: center; color: #fff;
  background: linear-gradient(135deg, var(--anchor) 0%, var(--secondary) 100%); }
.times-title { margin: 0; font-weight: 800; font-size: 19px; }
.times-sub { margin: 2px 0 20px; font-size: 14px; color: var(--anchor-soft); }
.prayers { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.prayers li { display: flex; align-items: center; gap: 14px; padding: 10px 18px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.4); font-size: 15px; }
.prayers li b { font-variant-numeric: tabular-nums; }
.prayers li.done { background: #fff; color: var(--text); border-color: #fff; }
.prayers li.done span::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 8px; border-radius: 50%; background: var(--primary); vertical-align: 1px; }
.prayers li.next { border-color: var(--sun); box-shadow: 0 0 0 2px var(--sun) inset; }
.m2 { top: 18px; left: 9%; width: 34px; height: 34px; }
.s3 { top: 22px; right: 9%; color: #fff; width: 22px; height: 22px; }
@media (max-width: 700px) {
  .times { border-radius: 40px; padding: 28px 16px 24px; }
  .prayers li { padding: 8px 14px; gap: 10px; }
  .m2, .s3 { display: none; }
}

/* Sections */
section { padding: 72px 0 0; }
h2 { font-size: clamp(30px, 4.6vw, 48px); line-height: 1.08; margin: 0 0 18px; font-weight: 700; letter-spacing: -1px; }

.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.split p { color: var(--text-soft); font-size: 18px; max-width: 440px; margin: 0 0 30px; }
.split-art { position: relative; min-height: 420px; }
.split-art .arch { width: 58%; height: 400px; }
.blob { position: absolute; right: 0; bottom: 0; width: 52%; padding: 34px 20px; border-radius: 90px; background: var(--sun); text-align: center; }
.blob small { display: block; font-size: 15px; font-weight: 700; color: var(--secondary); }
.blob strong { display: block; font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; line-height: 1.2; }
.tags { position: absolute; top: 0; right: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.tags span { padding: 6px 18px; border-radius: 999px; border: 1.5px solid var(--text); font-weight: 700; font-size: 15px; }
.s4 { left: 62%; top: 46%; }
@media (max-width: 800px) {
  .split { grid-template-columns: 1fr; }
  .split-art { min-height: 360px; }
  .split-art .arch { height: 350px; }
}

/* Apprendre: a panel of its own, the two screens rising from its bottom edge */
.learn { margin-top: 72px; padding: 56px 56px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end;
  border-radius: 56px; background: linear-gradient(180deg, var(--golden) 0%, var(--surface) 100%); border: 1px solid var(--line); overflow: hidden; }
.learn-text { padding-bottom: 56px; }
.kicker { margin: 0 0 10px; font-size: 14px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: var(--primary-deep); }
.learn-text > p { color: var(--text-soft); font-size: 18px; max-width: 470px; margin: 0 0 22px; }
.modules { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; max-width: 500px; }
.modules li { padding: 7px 16px; border-radius: 999px; background: #fff; border: 1.5px solid var(--line); font-weight: 700; font-size: 15px; }
.learn-text > p.source { font-size: 14px; color: var(--text-faint); margin-bottom: 26px; }
.learn-art { position: relative; height: 500px; }
.learn-art .arch { position: absolute; bottom: 0; border-radius: 999px 999px 0 0; }
.learn-art .arch.grenade { left: 0; width: 54%; height: 470px; }
.learn-art .arch.orange { right: 0; width: 46%; height: 380px; }
.learn-art .arch img { width: 78%; bottom: auto; top: 16%; }
.learn-art .arch.orange img { top: 18%; }
.s5 { top: 10px; right: 10%; }
@media (max-width: 860px) {
  .learn { grid-template-columns: 1fr; gap: 8px; padding: 36px 24px 0; border-radius: 40px; }
  .learn-text { padding-bottom: 8px; }
  .learn-art { height: 400px; }
  .learn-art .arch.grenade { height: 380px; }
  .learn-art .arch.orange { height: 300px; }
}

.features h2 { text-align: center; }
.circles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; margin-top: 30px; text-align: center; }
.circles h3 { margin: 14px 0 4px; font-size: 17px; font-weight: 800; }
.circles p { margin: 0; color: var(--text-soft); font-size: 14px; line-height: 1.45; }
.disc { width: 104px; height: 104px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; }
.disc svg { width: 40px; height: 40px; }
.disc.orange { background: var(--sun-light); color: var(--primary-deep); }
.disc.grenade { background: var(--anchor-soft); color: var(--anchor); }
.disc.sand { background: var(--background-deep); color: var(--secondary); }
@media (max-width: 960px) { .circles { grid-template-columns: repeat(3, 1fr); row-gap: 34px; } }
@media (max-width: 520px) { .circles { grid-template-columns: repeat(2, 1fr); } .disc { width: 88px; height: 88px; } }

.quote { position: relative; }
blockquote { margin: 0 auto; max-width: 660px; text-align: center; font-size: clamp(22px, 3vw, 30px); line-height: 1.3; font-weight: 600; }
blockquote cite { display: block; margin-top: 12px; font-size: 14px; font-style: normal; font-weight: 700; color: var(--text-faint); }
.m3 { top: 52px; left: 6%; }
.promise { margin-top: 56px; border-radius: 120px; padding: 40px 30px; text-align: center; background: var(--sun); }
.promise h2 { font-size: clamp(26px, 3.6vw, 36px); margin-bottom: 10px; }
.promise p { margin: 0 auto; max-width: 560px; color: var(--secondary); font-size: 17px; }
@media (max-width: 700px) { .promise { border-radius: 40px; padding: 32px 22px; } .m3 { display: none; } }

/* Cards, FAQ, contact */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { margin: 0 0 6px; font-size: 19px; font-weight: 900; }
.card p { margin: 0; color: var(--text-soft); font-size: 16px; }

.faq { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 22px; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq details:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; font-weight: 800; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--primary); font-weight: 900; font-size: 20px; line-height: 1.2; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 10px 0 0; color: var(--text-soft); }

.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .contact { grid-template-columns: 1fr; } }
.contact a { font-weight: 800; }

/* Footers: the dark one on the home page, the light line on the legal page */
.site-foot { margin-top: 90px; padding: 46px 0 36px; background: var(--text); color: var(--anchor-soft); }
.site-foot .wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px 40px; }
.site-foot .brand.light { color: #fff; font-size: 30px; }
.site-foot .foot-brand p { margin: 10px 0 0; font-size: 15px; }
.site-foot nav { display: flex; flex-direction: column; gap: 8px; font-weight: 700; }
.site-foot a { color: #fff; text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }
.site-foot .fine { grid-column: 1 / -1; margin: 10px 0 0; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.14); font-size: 13px; color: var(--soft); }
@media (max-width: 600px) { .site-foot .wrap { grid-template-columns: 1fr; } }

footer:not(.site-foot) { margin-top: 64px; padding: 26px 0 40px; border-top: 1px solid var(--line); color: var(--text-faint); font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; }
footer:not(.site-foot) a { color: var(--text-soft); }

/* Legal page */
.legal h1 { font-size: clamp(32px, 6vw, 44px); line-height: 1.1; margin: 24px 0 6px; font-weight: 900; letter-spacing: -.5px; }
.legal h2 { font-size: 22px; margin: 38px 0 8px; letter-spacing: 0; font-weight: 900; }
.legal .updated { color: var(--text-faint); margin: 0 0 24px; }
.legal .summary { background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--primary); border-radius: 18px; padding: 18px 20px; }
.table { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.legal table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.legal tr:last-child td { border-bottom: 0; }
.legal th { color: var(--text-soft); font-weight: 800; background: var(--background-deep); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
