/* SolatTime site — deep emerald night, warm gold, cream paper (the app's Quran look). Deliberately single-theme. */
:root {
  --ink: #04140f;
  --em: #06211a;
  --em2: #0a3329;
  --em3: #0f4537;
  --gold: #e2b65c;
  --gold2: #f3dca0;
  --cream: #f7f0e1;
  --paper: #efe4cc;
  --text: #eaf2ee;
  --muted: #a8c2b8;
  --line: rgba(226, 182, 92, .22);
  --serif: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--em); color: var(--text); font: 400 18px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
h2 { font: 800 clamp(32px, 4.2vw, 52px)/1.1 var(--serif); letter-spacing: -.03em; }
h3 { font: 700 20px/1.3 var(--sans); }
p { margin: 0; }
.wrap { width: min(1180px, 100%); margin: 0 auto; padding-inline: 20px; }
.narrow { width: min(860px, 100%); }
.center { text-align: center; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; background: var(--gold); color: var(--ink); padding: 8px 14px; border-radius: 8px; }
.kicker { font: 800 14px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 62ch; margin-top: 18px; }
.sec-head { margin-bottom: 48px; }
.note { color: var(--muted); font-size: 16px; margin-top: 18px; }
section { padding-block: clamp(72px, 10vw, 128px); position: relative; }

/* header */
.top { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; gap: 22px; padding: calc(12px + env(safe-area-inset-top, 0px)) 20px 12px; transition: background .3s, box-shadow .3s; }
.top.solid { background: rgba(4, 20, 15, .86); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 22px var(--serif); }
.brand img { border-radius: 10px; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 600; font-size: 16px; color: var(--muted); }
.nav a:hover { color: var(--gold2); }
.langs { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.langs a { text-decoration: none; font: 700 13px var(--sans); padding: 6px 10px; border-radius: 999px; color: var(--muted); }
.langs a[aria-current] { background: var(--gold); color: var(--ink); }
.btn-dl { text-decoration: none; background: var(--gold); color: var(--ink); font-weight: 800; font-size: 15px; padding: 10px 18px; border-radius: 999px; }
@media (max-width: 1020px) { .nav { display: none; } .langs { margin-left: auto; } }
@media (max-width: 480px) { .btn-dl { display: none; } .brand span { font-size: 20px; } }

/* hero */
.hero { min-height: 100svh; display: flex; align-items: center; padding-block: 120px 60px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: center/cover no-repeat; }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4, 20, 15, .92) 0%, rgba(4, 20, 15, .62) 48%, rgba(4, 20, 15, .1) 100%), linear-gradient(0deg, var(--em) 0%, transparent 28%); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 24px; align-items: center; }
.eyebrow { display: inline-block; font: 700 14px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--gold2); border: 1px solid var(--line); padding: 9px 14px; border-radius: 999px; background: rgba(4, 20, 15, .4); }
.hero h1 { font: 800 clamp(38px, 5vw, 68px)/1.05 var(--serif); letter-spacing: -.035em; margin-top: 22px; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero-sub { font: 600 clamp(21px, 2.1vw, 28px)/1.3 var(--serif); letter-spacing: -.01em; color: var(--gold2); margin-top: 18px; }
.hero-p { color: var(--muted); max-width: 56ch; margin-top: 16px; font-size: 18px; }
.hero-cta { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 28px; }
.play img { height: 64px; width: auto; }
.more { font-weight: 700; color: var(--gold2); text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.hero-3d { position: relative; height: min(78vh, 720px); min-height: 460px; }
.hero-3d canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.hero-fallback { position: absolute; inset: 0; display: grid; place-items: center; transition: opacity .6s; }
.hero-3d.is-3d .hero-fallback { opacity: 0; pointer-events: none; }
.hero-fallback .phone { width: 46%; max-width: 280px; transform: rotate(-6deg); }
.fb-watch { position: absolute; width: 30%; max-width: 170px; right: 12%; bottom: 14%; border-radius: 50%; box-shadow: 0 0 0 10px #222, 0 30px 60px rgba(0, 0, 0, .5); }
@media (max-width: 900px) {
  .hero { padding-top: 100px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-3d { height: 62vh; min-height: 400px; order: -1; margin: -10px 0 -30px; }
}

/* phone frame used by fallback and the Quran fan */
.phone { margin: 0; position: relative; border-radius: 34px; padding: 9px; background: linear-gradient(145deg, #3a4341, #121716 45%, #2b3331); box-shadow: 0 0 0 1px #000, 0 40px 80px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(255, 255, 255, .08); }
.phone img { border-radius: 26px; width: 100%; }

/* stats */
.stats { padding-block: 34px; background: var(--ink) var(--pattern) center/360px repeat; border-block: 1px solid var(--line); }
.stats ul { list-style: none; margin: 0 auto; display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; }
.stats li { text-align: center; padding: 10px 8px; border-left: 1px solid var(--line); }
.stats li:first-child { border-left: 0; }
.stats b { display: block; font: 700 clamp(34px, 3.6vw, 48px)/1 var(--serif); color: var(--gold); }
.stats span { display: block; font-size: 15px; color: var(--muted); margin-top: 8px; line-height: 1.3; }
@media (max-width: 860px) { .stats ul { grid-template-columns: repeat(3, 1fr); row-gap: 18px; } .stats li:nth-child(4) { border-left: 0; } }

/* musafir */
.musafir { background: radial-gradient(1200px 600px at 70% 0%, var(--em2), var(--em) 70%); }
.map { position: relative; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); margin-bottom: 56px; }
.map > img { width: 100%; opacity: .95; }
.pin { position: absolute; transform: translate(-50%, -50%); }
.pin i { display: block; width: 14px; height: 14px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(226, 182, 92, .6); animation: ping 2.4s var(--d, 0s) infinite; }
.pin-sm i { width: 9px; height: 9px; opacity: .7; }
.pin em { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); white-space: nowrap; font: 700 14px var(--sans); font-style: normal; color: var(--ink); background: var(--gold2); padding: 5px 10px; border-radius: 8px; box-shadow: 0 8px 20px rgba(0, 0, 0, .35); }
.pin em::after { content: ''; position: absolute; left: 50%; top: 100%; border: 6px solid transparent; border-top-color: var(--gold2); transform: translateX(-50%); }
.mus-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.photo { margin: 0; border-radius: 22px; overflow: hidden; box-shadow: 0 30px 70px rgba(0, 0, 0, .4); }

/* azan */
.azan { background: var(--ink); }
.skies { display: flex; gap: 12px; height: clamp(320px, 42vw, 520px); }
.skies figure { margin: 0; flex: 1; border-radius: 20px; background: center/cover no-repeat; position: relative; overflow: hidden; transition: flex .6s cubic-bezier(.2, .8, .2, 1); }
.skies figure:hover, .skies figure.on { flex: 2.4; }
.skies figure::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, .7), transparent 50%); }
.skies figcaption { position: absolute; left: 18px; bottom: 16px; z-index: 1; font: 700 clamp(18px, 2vw, 30px) var(--serif); }
.ticks { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 32px; }
.ticks li { padding-left: 34px; position: relative; font-size: 18px; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 5px; width: 20px; height: 20px; border-radius: 50%; background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%2304140f' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
@media (max-width: 700px) { .ticks { grid-template-columns: 1fr; } .skies { height: 300px; gap: 6px; } .skies figcaption { writing-mode: vertical-rl; transform: rotate(180deg); left: 10px; } .skies figure.on figcaption { writing-mode: horizontal-tb; transform: none; } }

/* wear */
.wear { background: radial-gradient(900px 600px at 20% 50%, #1a2a22, var(--em) 70%); overflow: hidden; }
.wear-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.watch-stage { position: relative; border-radius: 26px; overflow: hidden; box-shadow: 0 40px 90px rgba(0, 0, 0, .5); }
.watch-screen { position: absolute; left: 35.22%; top: 27.99%; width: 28.59%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: #000; }
.watch-screen img { position: absolute; inset: 1.5%; width: 97%; height: 97%; border-radius: 50%; opacity: 0; transition: opacity .6s; }
.watch-screen img.on { opacity: 1; }
.watch-screen::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: linear-gradient(135deg, rgba(255, 255, 255, .14), transparent 40%); pointer-events: none; }
.faces { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 30px; }
.faces button { all: unset; cursor: pointer; text-align: center; font: 600 13px/1.25 var(--sans); color: var(--muted); }
.faces img { width: 100%; max-width: 84px; margin: 0 auto 6px; border-radius: 50%; box-shadow: 0 0 0 3px #1b2120; transition: box-shadow .25s, transform .25s; }
.faces button[aria-selected] img, .faces button:hover img { box-shadow: 0 0 0 3px var(--gold); transform: translateY(-3px); }
.faces button[aria-selected] { color: var(--gold2); }
.faces button:focus-visible img { outline: 3px solid var(--gold2); outline-offset: 3px; }
@media (max-width: 900px) { .wear-grid { grid-template-columns: 1fr; } }
/* Install on the watch (#pasang-jam) */
.install { margin-top: clamp(64px, 8vw, 104px); scroll-margin-top: 90px; }
.install h3 { font: 800 clamp(28px, 3vw, 38px)/1.2 var(--sans); color: #fff; }
.inst-steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; counter-reset: s; }
.inst-steps li { min-width: 0; }
.inst-shot { display: block; width: 100%; max-width: 220px; aspect-ratio: 1; height: auto; border-radius: 50%; background: #000; box-shadow: 0 0 0 10px #17211d, 0 0 0 11px rgba(255, 255, 255, .08), 0 24px 40px -18px rgba(0, 0, 0, .8); margin: 11px 0 26px 11px; }
.inst-play { display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #145a43, #062019 75%); text-decoration: none; }
.inst-play img { width: 72%; height: auto; }
.inst-k { font: 800 15px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.inst-steps h4 { font: 700 22px/1.3 var(--sans); color: #fff; margin: 10px 0 8px; }
.inst-steps p, .inst-more p { color: var(--muted); font-size: 18px; margin: 0; }
.inst-more { display: flex; gap: 36px; align-items: center; margin-top: 48px; max-width: 900px; }
.inst-more .inst-shot { flex: 0 0 150px; max-width: 150px; margin: 11px; }
.inst-more > div { min-width: 0; display: grid; gap: 14px; }
.inst-more b { color: var(--gold2); }
@media (max-width: 900px) { .inst-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .inst-steps { grid-template-columns: 1fr; } .inst-shot { max-width: 200px; } .inst-more { flex-direction: column; align-items: flex-start; } }


/* quran */
.quran { background: var(--paper) var(--paper-img) center/720px; color: #23241d; }
.quran .kicker { color: #8a6418; }
.quran .lead, .quran dd { color: #4f4a3b; }
.quran-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; align-items: center; }
.qpoints { margin: 30px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 28px; }
.qpoints div { border-top: 2px solid #c9a24f; padding-top: 12px; }
.qpoints dt { font: 700 20px/1.25 var(--serif); color: #1d4d3c; }
.qpoints dd { margin: 6px 0 0; font-size: 17px; }
.fan { position: relative; height: clamp(440px, 52vw, 640px); }
.fan .phone { position: absolute; width: 44%; top: 50%; left: 50%; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.fan .f0 { transform: translate(-50%, -50%) rotate(-3deg); z-index: 3; }
.fan .f1 { transform: translate(-112%, -46%) rotate(-11deg); z-index: 2; }
.fan .f2 { transform: translate(12%, -46%) rotate(9deg); z-index: 1; }
.fan:hover .f1 { transform: translate(-122%, -48%) rotate(-14deg); }
.fan:hover .f2 { transform: translate(22%, -48%) rotate(12deg); }
.fan figcaption { position: absolute; left: 50%; bottom: -38px; transform: translateX(-50%); font: 700 15px var(--sans); color: #1d4d3c; background: #fff8e8; border: 1px solid #d8c08a; padding: 4px 12px; border-radius: 999px; white-space: nowrap; }
@media (max-width: 900px) { .quran-grid { grid-template-columns: 1fr; } .qpoints { grid-template-columns: 1fr; } .fan .phone { width: 48%; } }

/* qibla */
.qibla { background: var(--em); }
.qibla-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.qibla-photo { position: relative; overflow: visible; }
.qibla-photo > img:first-child { border-radius: 22px; }
.compass { position: absolute; width: 30%; right: -6%; bottom: -8%; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .5)); animation: sway 7s ease-in-out infinite; }
@keyframes sway { 0%, 100% { transform: rotate(-14deg); } 50% { transform: rotate(10deg); } }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 16px; }
.steps li { counter-increment: s; display: flex; gap: 16px; align-items: center; font-size: 19px; font-weight: 600; }
.steps li::before { content: counter(s); flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--em3); border: 1px solid var(--gold); color: var(--gold2); font: 700 20px var(--serif); }
@media (max-width: 900px) { .qibla-grid { grid-template-columns: 1fr; } .compass { right: 2%; } }

/* widgets */
.widgets { background: linear-gradient(180deg, var(--em), #1d1638 55%, #2a1f45); overflow: hidden; }
.wall { columns: 4 230px; column-gap: 16px; }
.wall img { width: 100%; margin-bottom: 16px; break-inside: avoid; border-radius: 22px; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .35)); }

/* tasbih */
.tasbih { background: var(--ink); }
.tasbih-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.tasbih-pad { all: unset; cursor: pointer; position: relative; display: block; height: 560px; border-radius: 28px; overflow: hidden; background: radial-gradient(400px 400px at 50% 40%, #12392d, #061710); border: 1px solid var(--line); -webkit-tap-highlight-color: transparent; user-select: none; }
.tasbih-pad:focus-visible { outline: 3px solid var(--gold2); outline-offset: 4px; }
.t-count { position: absolute; left: 32px; top: 26px; font: 700 96px/1 var(--serif); color: var(--gold2); font-variant-numeric: tabular-nums; }
.t-count::after { content: ' / 33'; font-size: 26px; color: var(--muted); }
.t-dhikr { position: absolute; left: 34px; top: 130px; font: 700 26px var(--serif); }
.t-hint { position: absolute; left: 0; right: 0; bottom: 22px; text-align: center; font-weight: 700; color: var(--gold); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; } }
.t-string { position: absolute; right: 22%; top: -10px; bottom: -10px; width: 4px; background: linear-gradient(#3b2a12, #6b4a1f, #3b2a12); border-radius: 2px; }
.t-bead { position: absolute; left: 50%; width: 46px; height: 46px; margin-left: -23px; background: var(--bead) center/contain no-repeat; transition: top .32s cubic-bezier(.3, 1.4, .5, 1); filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .5)); }
@media (max-width: 900px) { .tasbih-grid { grid-template-columns: 1fr; } .tasbih-pad { height: 480px; } .t-count { font-size: 76px; } }

/* more */
.more { background: var(--em); }
.more h2 { margin-bottom: 48px; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { background: var(--em2); border-radius: 22px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .06); }
.card-img { aspect-ratio: 4 / 5; overflow: hidden; background: var(--ink); }
.card-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s; }
.card:hover .card-img img { transform: scale(1.04); }
.card h3 { padding: 18px 20px 0; }
.card p { padding: 6px 20px 22px; color: var(--muted); font-size: 16px; }
@media (max-width: 980px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .cards { grid-template-columns: 1fr; } }

/* rails (onboarding, screenshots) */
.onb { background: linear-gradient(180deg, var(--em), var(--ink)); }
.rail { list-style: none; margin: 0; padding: 4px max(20px, calc((100vw - 1140px) / 2)) 24px; display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--em3) transparent; }
.rail > * { scroll-snap-align: start; flex: none; }
.onb .rail li { width: 280px; border-radius: 22px; overflow: hidden; background: var(--em2); }
.onb .rail img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.onb .rail div { padding: 16px 18px 22px; }
.onb .rail b { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--gold); color: var(--ink); font: 700 17px var(--serif); margin-bottom: 10px; }
.onb .rail p { color: var(--muted); font-size: 16px; margin-top: 4px; }
.shots { background: var(--ink); }
.shots h2 { margin-bottom: 34px; }
.rail-shots a { width: 250px; border-radius: 20px; overflow: hidden; box-shadow: 0 20px 40px rgba(0, 0, 0, .4); }

/* reviews */
.reviews { background: var(--em) var(--pattern, none); }
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
blockquote { margin: 0; background: var(--cream); color: #23241d; border-radius: 20px; padding: 26px 26px 22px; position: relative; }
blockquote::before { content: '“'; position: absolute; right: 18px; top: -6px; font: 700 90px/1 var(--serif); color: #d8c08a; }
blockquote p { font: 500 19px/1.5 var(--sans); }
blockquote footer { margin-top: 14px; font-size: 15px; font-weight: 700; color: #6b6450; }
@media (max-width: 900px) { .quotes { grid-template-columns: 1fr; } }

/* changelog */
.changelog { background: var(--ink); }
.timeline { list-style: none; margin: 0; padding: 0 0 0 28px; border-left: 2px solid var(--line); }
.timeline > li { position: relative; padding: 0 0 36px 18px; }
.timeline > li::before { content: ''; position: absolute; left: -38px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 5px var(--ink); }
.ver { display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; }
.ver b { font: 700 22px var(--serif); color: var(--gold2); }
.ver time { color: var(--muted); font-size: 15px; }
.timeline ul { margin: 10px 0 0; padding-left: 20px; color: var(--text); }
.timeline ul li { margin-top: 6px; }
.link { color: var(--gold2); font-weight: 700; }

/* faq */
.faq { background: var(--em); }
.faq h2 { margin-bottom: 36px; }
details { border-bottom: 1px solid var(--line); padding: 20px 0; }
summary { cursor: pointer; list-style: none; font: 700 20px/1.35 var(--sans); display: flex; justify-content: space-between; gap: 18px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font: 400 30px/0.8 var(--sans); color: var(--gold); transition: transform .3s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); margin-top: 12px; max-width: 70ch; }

/* cta */
.cta { background: center/cover no-repeat; }
.cta::before { content: ''; position: absolute; inset: 0; background: rgba(4, 20, 15, .72); }
.cta .wrap { position: relative; display: flex; flex-direction: column; align-items: center; }
.cta img:first-child { border-radius: 22px; margin-bottom: 22px; }
.cta .lead { margin: 14px auto 26px; }
.cta .play img { height: 76px; }

/* footer (same structure as masjidtaiping.mysolat.my) */
.foot { background: #1d3931; color: #bed0c8; font-size: 16px; padding: 52px 0 20px; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 55px; }
.foot h3 { font: 700 17px var(--sans); color: #fff; margin: 0 0 15px; letter-spacing: .02em; }
.foot a { display: block; color: #bed0c8; text-decoration: none; margin-bottom: 9px; }
.foot a:hover { color: #fff; }
.foot-logo { border-radius: 16px; margin-bottom: 16px; }
.foot-play { margin-top: 16px; }
.foot-play img { height: 50px; width: auto; }
.foot-langs { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; }
.foot-langs a { margin: 0; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px; } .foot-grid > div:first-child { grid-column: 1 / -1; } }
.powered { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 10px; background: #1d3931; color: rgba(255, 255, 255, .85); border-top: 1px solid rgba(255, 255, 255, .12); padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px)); font: 14px/20px system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
.powered span { opacity: .8; }
.powered i { font-style: normal; opacity: .6; }
.powered a { color: inherit; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.powered img { width: auto; height: 20px; }
.powered img.r5 { border-radius: 5px; }

/* reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease var(--d, 0s), transform .8s cubic-bezier(.2, .8, .2, 1) var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .pin i, .compass, .t-hint { animation: none; }
}
.watch-stage { cursor: pointer; }

/* hero live line */
.live { margin-top: 26px; font-size: 17px; color: var(--muted); min-height: 1.6em; }
.live b { color: var(--gold2); font-weight: 700; }

/* map labels, placed per city so they never cover each other */
.pin-sg em { left: 16px; bottom: auto; top: 6px; transform: none; }
.pin-sg em::after { display: none; }
.pin-jkt em { left: auto; right: 16px; bottom: auto; top: 2px; transform: none; }
.pin-jkt em::after { display: none; }
.pin-kl em { left: 16px; bottom: 6px; transform: none; }
.pin-kl em::after { display: none; }
@media (max-width: 700px) { .pin em { font-size: 11px; padding: 3px 7px; } }

/* today's times */
.today-wrap { overflow-x: auto; margin-bottom: 64px; }
.today { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; min-width: 640px; }
.today caption { text-align: left; font: 700 22px/1.3 var(--sans); margin-bottom: 14px; caption-side: top; }
.today th, .today td { padding: 14px 12px; text-align: left; border-bottom: 1px solid var(--line); }
.today thead th { font-size: 14px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.today tbody th { font-weight: 700; font-size: 18px; }
.today tbody th small { display: block; font-weight: 500; font-size: 14px; color: var(--muted); }
.today td { font-size: 19px; }
.today td.on { color: var(--gold); font-weight: 800; box-shadow: inset 0 -3px 0 var(--gold); }
.today td.nx { font-size: 15px; color: var(--gold2); white-space: nowrap; }

/* two phones + photo */
.mus-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.duo figure { margin: 0; }
.duo figure:last-child { margin-top: 48px; }
.duo figcaption { margin-top: 14px; font-size: 16px; font-weight: 600; color: var(--gold2); text-align: center; }
.points { margin-top: 28px; }
.points h3 { margin-top: 18px; }
.points p { color: var(--muted); font-size: 17px; margin-top: 4px; }
@media (max-width: 900px) { .mus-grid { grid-template-columns: 1fr; } }

/* footer bottom bar */
.foot-bottom { border-top: 1px solid #ffffff20; margin-top: 34px; padding-top: 18px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 32px; font-size: 14px; }
.foot-bottom p { max-width: 70ch; color: #93ada3; line-height: 1.55; }
.foot-bottom .copy { color: #fff; font-weight: 600; white-space: nowrap; }
.today-h { font: 700 22px/1.3 var(--sans); margin-bottom: 14px; }
html, body { overflow-x: clip; }

/* Desktop: rails become one row, no sideways scrolling. Phones keep the swipe. */
@media (min-width: 900px) {
  .rail { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; overflow: visible; width: min(1180px, 100%); margin: 0 auto; padding: 4px 20px 0; gap: 14px; }
  .onb .rail li, .rail-shots a { width: auto; }
  .onb .rail div { padding: 14px 14px 18px; }
  .onb .rail h3 { font-size: 17px; }
  .onb .rail p { font-size: 15px; }
}
@media (max-width: 600px) { .wall { columns: 2; column-gap: 10px; } .wall img { margin-bottom: 10px; border-radius: 14px; } }

/* azan: the real full-screen azan screen + sound */
.azan-grid { display: grid; grid-template-columns: .8fr 1fr; gap: 56px; align-items: center; }
.azan-phone { width: min(340px, 100%); margin: 0 auto; display: grid; gap: 18px; justify-items: center; }
.azan-phone .phone { position: relative; width: 100%; }
.azan-phone .phone img { transition: opacity .7s; opacity: 0; }
.azan-phone .phone img:not(:first-child) { position: absolute; top: 9px; left: 9px; width: calc(100% - 18px); }
.azan-phone .phone img.on { opacity: 1; }
.azan-stop { all: unset; position: absolute; left: 12%; right: 12%; top: 80%; height: 7.5%; border-radius: 999px; cursor: pointer; }
.azan-stop:focus-visible { outline: 3px solid var(--gold2); }
.azan-play { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; background: #12b07c; color: #fff; font: 800 19px var(--sans); padding: 15px 30px; border-radius: 999px; box-shadow: 0 10px 30px rgba(18, 176, 124, .35); }
.azan-play:focus-visible { outline: 3px solid var(--gold2); outline-offset: 3px; }
.azan-play.playing { background: #0d8a61; animation: azpulse 1.6s ease-in-out infinite; }
@keyframes azpulse { 50% { box-shadow: 0 0 0 12px rgba(18, 176, 124, .12); } }
@media (max-width: 900px) { .azan-grid { grid-template-columns: 1fr; } .azan-grid > div:last-child { order: -1; } }
@media (prefers-reduced-motion: reduce) { .azan-play.playing { animation: none; } }
.azan-pick { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 28px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.azan-pick button { all: unset; cursor: pointer; display: grid; gap: 2px; padding: 12px 8px; text-align: center; border-left: 1px solid var(--line); transition: background .25s; }
.azan-pick button:first-child { border-left: 0; }
.azan-pick b { font: 700 16px var(--sans); color: var(--text); }
.azan-pick span { font: 500 15px var(--sans); color: var(--muted); font-variant-numeric: tabular-nums; }
.azan-pick button:hover { background: rgba(226, 182, 92, .08); }
.azan-pick button[aria-selected] { background: var(--gold); }
.azan-pick button[aria-selected] b, .azan-pick button[aria-selected] span { color: var(--ink); }
.azan-pick button:focus-visible { outline: 3px solid var(--gold2); outline-offset: -3px; }
@media (max-width: 420px) { .azan-pick b { font-size: 14px; } .azan-pick span { font-size: 13px; } }
