/* The Adhan website: the hub's dusk sky, glass cards and gold for what matters. */
:root {
  --text: #f4f1ea;
  --muted: rgba(244, 241, 234, 0.72);
  --faint: rgba(244, 241, 234, 0.48);
  --gold: #e8c07d;
  --gold-deep: #e3b04b;
  --glass: rgba(255, 255, 255, 0.06);
  --glass-strong: rgba(255, 255, 255, 0.13);
  --border: rgba(255, 255, 255, 0.12);
  --radius: 24px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth; min-height: 100%;
  background: #120f2a linear-gradient(180deg, #0d0b22 0%, #1d1538 30%, #2b1c40 60%, #6a3a4c 100%) no-repeat;
}

body {
  margin: 0;
  font: 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: transparent;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

#sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 650; letter-spacing: -0.01em; }
p { margin: 0; }
.faint { color: var(--faint); font-size: 0.92rem; }
.lead { color: var(--muted); font-size: 1.12rem; max-width: 36em; }
.eyebrow {
  color: var(--gold); font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 10px;
}

/* Header */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: max(14px, env(safe-area-inset-top)) clamp(16px, 4vw, 40px) 14px;
  background: rgba(13, 11, 34, 0.6);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 650; font-size: 1.08rem; }
.brand img { border-radius: 9px; }
.top nav { display: flex; align-items: center; gap: clamp(10px, 2.4vw, 26px); font-size: 0.95rem; }
.top nav a { text-decoration: none; color: var(--muted); }
.top nav a:hover { color: var(--text); }
.top nav a.pill { color: #241838; background: var(--gold); padding: 7px 15px; border-radius: 999px; font-weight: 600; }
.top nav a.pill:hover { background: #f0cd92; }
.lang {
  font: inherit; font-size: 0.8rem; font-weight: 600; color: var(--muted); cursor: pointer;
  background: var(--glass); border: 1px solid var(--border); border-radius: 999px; padding: 5px 10px;
}
.lang:hover { color: var(--text); }
@media (max-width: 640px) {
  .top nav a:not(.pill) { display: none; }
}

main { max-width: 1080px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font-weight: 600; text-decoration: none;
  background: var(--glass-strong); border: 1px solid var(--border);
}
.button:hover { background: rgba(255, 255, 255, 0.2); }
.button.primary { background: var(--gold); color: #241838; border-color: transparent; }
.button.primary:hover { background: #f0cd92; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Hero */
.hero {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center;
  min-height: calc(100vh - 70px); padding: 48px 0 72px;
}
.hero h1 { font-size: clamp(2.2rem, 5.4vw, 3.7rem); line-height: 1.08; margin-bottom: 20px; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 36px; }
}

/* The player card: like the hub's Adhan screen */
.player {
  text-align: center; padding: 34px 28px 28px;
  border-radius: 32px; border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.player-prayer { color: var(--muted); font-size: 1rem; }
.player-prayer b { color: var(--gold); font-weight: 600; }
.player-time { font-size: clamp(3.4rem, 9vw, 5rem); font-weight: 300; letter-spacing: -0.03em; line-height: 1.1; margin: 4px 0 18px; font-variant-numeric: tabular-nums; }

.wave { display: flex; align-items: center; justify-content: center; gap: 4px; height: 56px; margin-bottom: 22px; }
.wave i {
  display: block; width: 5px; height: 10px; border-radius: 3px; background: var(--faint);
  transition: background 0.4s;
}
.player.playing .wave i { animation: wave 1.4s ease-in-out infinite; }
.player.audible .wave i { background: var(--gold); }
.wave i:nth-child(4n + 1) { animation-delay: -0.2s; }
.wave i:nth-child(4n + 2) { animation-delay: -0.7s; }
.wave i:nth-child(4n + 3) { animation-delay: -1.1s; }
.wave i:nth-child(5n) { animation-duration: 1.9s; }
.wave i:nth-child(3n) { animation-duration: 1.1s; }
@keyframes wave {
  0%, 100% { height: 8px; }
  50% { height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .player.playing .wave i { animation: none; height: 24px; }
}

.unmute {
  display: inline-flex; align-items: center; gap: 10px;
  font: inherit; font-weight: 600; color: #241838; cursor: pointer;
  background: var(--gold); border: 0; border-radius: 999px;
  min-height: 52px; padding: 0 24px 0 18px;
  box-shadow: 0 0 0 0 rgba(232, 192, 125, 0.5);
  animation: pulse 2.4s ease-out infinite;
}
.unmute:hover { background: #f0cd92; }
.player.audible .unmute { animation: none; background: var(--glass-strong); color: var(--text); }
.unmute svg { width: 22px; height: 22px; fill: currentColor; }
.unmute .stroke { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.unmute .ico-on, .player.audible .unmute .ico-off { display: none; }
.player.audible .unmute .ico-on { display: block; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(232, 192, 125, 0.45); }
  70%, 100% { box-shadow: 0 0 0 16px rgba(232, 192, 125, 0); }
}
@media (prefers-reduced-motion: reduce) { .unmute { animation: none; } }

.progress { height: 3px; border-radius: 2px; background: rgba(255, 255, 255, 0.1); margin: 24px 6px 16px; overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; background: var(--gold); transition: width 0.25s linear; }
.player-note { color: var(--faint); font-size: 0.88rem; max-width: 26em; margin: 0 auto; }

/* Sections */
.block { padding: 72px 0; border-top: 1px solid rgba(255, 255, 255, 0.07); }
.block h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); line-height: 1.15; margin-bottom: 34px; max-width: 22em; }
.block .lead + * { margin-top: 22px; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps li, .card {
  padding: 26px; border-radius: var(--radius);
  background: var(--glass); border: 1px solid var(--border);
}
.steps h3, .card h3 { font-size: 1.15rem; margin: 14px 0 8px; }
.steps p, .card p { color: var(--muted); font-size: 0.98rem; }
.num {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--gold); color: #241838; font-weight: 700;
}

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card .ico { font-size: 1.7rem; line-height: 1; }
@media (max-width: 860px) {
  .steps, .grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .steps, .grid { grid-template-columns: 1fr; }
}

.features {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px 40px;
}
.features li { color: var(--muted); padding: 16px 0 16px 26px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); position: relative; }
.features li::before {
  content: ""; position: absolute; left: 0; top: 25px; width: 9px; height: 9px; border-radius: 50%; background: var(--gold);
}
.features b { color: var(--text); font-weight: 600; }
@media (max-width: 720px) { .features { grid-template-columns: 1fr; } }

/* Premium */
.premium { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.premium h2 { margin-bottom: 18px; }
.ticks { list-style: none; padding: 0; margin: 22px 0; display: grid; gap: 12px; }
.ticks li { padding-left: 32px; position: relative; }
.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  font-size: 0.75rem; font-weight: 700; color: #241838; background: var(--gold);
}
.box-art { position: relative; height: 280px; display: grid; place-items: center; }
.box {
  width: 150px; height: 150px; border-radius: 34px; position: relative; z-index: 1;
  background: linear-gradient(160deg, #23324c, #10233a);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.box span {
  position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px;
  border-radius: 50%; background: var(--gold-deep); box-shadow: 0 0 18px var(--gold-deep);
}
.rings i {
  position: absolute; left: 50%; top: 50%; width: 150px; height: 150px; margin: -75px 0 0 -75px;
  border-radius: 50%; border: 1px solid rgba(232, 192, 125, 0.5);
  animation: ring 3.6s ease-out infinite; opacity: 0;
}
.rings i:nth-child(2) { animation-delay: 1.2s; }
.rings i:nth-child(3) { animation-delay: 2.4s; }
@keyframes ring {
  0% { transform: scale(0.9); opacity: 0.7; }
  100% { transform: scale(2); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .rings i { animation: none; } }
@media (max-width: 760px) {
  .premium { grid-template-columns: 1fr; }
  .box-art { height: 220px; }
}

/* Download */
.download { text-align: center; padding-bottom: 96px; }
.download h2 { margin: 0 auto 12px; }
.download .lead { margin: 0 auto; }
.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 34px 0 18px; }
.store {
  display: inline-flex; align-items: center; gap: 12px; text-decoration: none;
  min-width: 190px; height: 60px; padding: 0 22px 0 18px; border-radius: 14px;
  background: #000; border: 1px solid rgba(255, 255, 255, 0.3); text-align: left;
}
.store:hover { border-color: rgba(255, 255, 255, 0.6); }
.store svg { width: 28px; height: 28px; fill: #fff; flex: none; }
.store .stroke { fill: none; stroke: #fff; stroke-width: 1.6; }
.store span { display: flex; flex-direction: column; line-height: 1.15; }
.store small { font-size: 0.72rem; color: rgba(255, 255, 255, 0.85); }
.store b { font-size: 1.22rem; font-weight: 600; letter-spacing: -0.01em; }
.store.soon { opacity: 0.55; }

/* Footer */
.foot {
  max-width: 1080px; margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  padding: 28px clamp(16px, 4vw, 40px) max(28px, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.foot-brand { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.foot-brand img { border-radius: 7px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 22px; }
.foot nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.foot nav a:hover { color: var(--text); text-decoration: underline; }

/* Terms and privacy pages */
.legal { max-width: 760px; padding-top: 40px; padding-bottom: 80px; }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 8px; }
.legal h2 { font-size: 1.2rem; margin: 34px 0 10px; }
.legal p, .legal li { color: var(--muted); margin-bottom: 10px; }
.legal ul { padding-left: 22px; }
.legal .back { display: inline-block; margin-bottom: 28px; color: var(--gold); text-decoration: none; }
.legal .draft {
  margin: 18px 0 8px; padding: 12px 16px; border-radius: 14px;
  background: rgba(232, 192, 125, 0.1); border: 1px solid rgba(232, 192, 125, 0.35); color: var(--gold);
  font-size: 0.92rem;
}
[data-lang-only] { display: none; }
html[lang="en"] [data-lang-only="en"], html[lang="da"] [data-lang-only="da"] { display: block; }
