/* Muzică Creștină - public website (home, legal pages, account deletion, new password).
   The app's Aurora design (design/Aurora.dc.html): #0B0D14 with a faint blue-violet light, glass cards,
   white pill buttons, the logo's blue (#4580FF) accent, Urbanist. The font is the app's own file, served from /static (OFL). */

@font-face {
  font-family: "Urbanist"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("fonts/urbanist.89a45c8a07a3.woff2") format("woff2");
}

:root {
  --bg: #0B0D14;
  --text: #F4F6FB;
  --text-2: rgba(244, 246, 251, 0.7);
  --text-3: rgba(244, 246, 251, 0.52);
  --accent: #4580FF;
  --glass: rgba(255, 255, 255, 0.07);
  --glass-ring: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  --on-image-glass: rgba(255, 255, 255, 0.14);
  --divider: rgba(255, 255, 255, 0.08);
  --max: 1180px;
  --gutter: clamp(18px, 4vw, 40px);
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  position: relative;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Urbanist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* the Aurora light: three faint glows at the top of the page */
body::before {
  content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: 0; height: 1100px; pointer-events: none;
  background:
    radial-gradient(circle at 10% 0%, rgba(84, 112, 255, 0.26), transparent 48%),
    radial-gradient(circle at 100% 22%, rgba(140, 112, 255, 0.18), transparent 44%),
    radial-gradient(circle at 25% 80%, rgba(56, 170, 200, 0.1), transparent 45%);
  -webkit-mask-image: linear-gradient(#000 55%, transparent);
  mask-image: linear-gradient(#000 55%, transparent);
}

a { color: var(--accent); text-decoration: none; font-weight: 700; }
a:hover { text-decoration: underline; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { font-weight: 800; letter-spacing: -0.02em; margin: 0; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.glass { background: var(--glass); box-shadow: var(--glass-ring); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); }

/* Header */

.top .wrap { display: flex; align-items: center; gap: 20px; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); font-size: 19px; font-weight: 800; letter-spacing: -0.01em; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand .mark { width: 34px; height: 34px; flex: none; }

.top nav { margin-left: auto; display: flex; align-items: center; gap: 26px; font-size: 15px; }
.top nav a { color: var(--text-2); font-weight: 700; }
.top nav a:hover { color: var(--text); text-decoration: none; }
.top nav .lang {
  height: 36px; padding: 0 14px; border-radius: 18px; display: flex; align-items: center;
  color: var(--text); font-size: 13px; font-weight: 800;
  background: var(--glass); box-shadow: var(--glass-ring);
}
.top nav .get {
  height: 36px; padding: 0 16px; border-radius: 18px; display: flex; align-items: center;
  background: #fff; color: var(--bg); font-size: 14px; font-weight: 800;
}
.top nav .get:hover { background: #E4E8F5; color: var(--bg); }
@media (max-width: 760px) { .top nav { gap: 10px; } .top nav .optional { display: none; } }

/* Store buttons: Google Play and the App Store */

.stores { display: flex; flex-wrap: wrap; gap: 10px; }
.store {
  height: 58px; padding: 0 22px 0 18px; border-radius: 29px; display: inline-flex; align-items: center; gap: 12px;
  background: #fff; color: var(--bg); line-height: 1.1; white-space: nowrap;
}
.store:hover { background: #E4E8F5; text-decoration: none; }
.store svg { width: 26px; height: 26px; fill: currentColor; flex: none; }
.store span { display: flex; flex-direction: column; font-size: 18px; font-weight: 800; letter-spacing: -0.01em; }
.store small { font-size: 12px; font-weight: 600; letter-spacing: 0; opacity: 0.72; }
@media (max-width: 420px) {
  .store { height: 54px; padding: 0 14px 0 12px; gap: 9px; }
  .store svg { width: 22px; height: 22px; }
  .store span { font-size: 16px; }
  .store small { font-size: 11px; }
}
.aside { margin: 20px 0 0; font-size: 15px; color: var(--text-2); }

/* Hero */

.hero { padding: clamp(24px, 5vw, 64px) 0 clamp(64px, 8vw, 110px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(40px, 6vw, 96px); align-items: center; }
.hero h1 { font-size: clamp(42px, 5.6vw, 72px); line-height: 1.04; text-wrap: balance; }
.hero .lead { margin: 22px 0 30px; max-width: 30em; font-size: clamp(17px, 1.5vw, 19px); line-height: 1.5; color: var(--text-2); text-wrap: pretty; }

/* The phone: the app's “Pentru tine” screen with a real song */
.phone {
  position: relative; flex: none; width: 320px; height: 693px; border-radius: 44px; overflow: hidden;
  background: var(--bg); color: #fff;
  box-shadow: 0 0 0 6px #0F1115, 0 0 0 7px rgba(255, 255, 255, 0.08), 0 30px 80px rgba(0, 0, 0, 0.5);
}
.phone > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.phone::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11, 13, 20, 0.55), rgba(11, 13, 20, 0.05) 14%, rgba(11, 13, 20, 0.42) 30%, rgba(11, 13, 20, 0.5) 58%, rgba(11, 13, 20, 0.9) 88%);
}
.phone > * { z-index: 1; }
/* the song's overlay opacity, set by the publisher so the lines stay readable on light covers */
.phone .shade { position: absolute; inset: 0; background: var(--bg); opacity: 0; }
.phone .s1 { opacity: 0.1; }
.phone .s2 { opacity: 0.2; }
.phone .s3 { opacity: 0.3; }
.phone .s4 { opacity: 0.4; }
.phone .s5 { opacity: 0.5; }
.phone .s6 { opacity: 0.6; }
.phone .s7 { opacity: 0.7; }
.phone .s8 { opacity: 0.8; }
.phone .s9 { opacity: 0.9; }
.p-lyrics { position: absolute; left: 22px; right: 22px; top: 160px; text-shadow: 0 1px 14px rgba(0, 0, 0, 0.55); display: flex; flex-direction: column; gap: 12px; text-align: center; }
.p-lyrics .prev { font-size: 15px; font-weight: 600; line-height: 22px; color: rgba(255, 255, 255, 0.55); }
.p-lyrics .now {
  font-size: 26px; font-weight: 800; line-height: 33px; letter-spacing: -0.02em;
  background: linear-gradient(90deg, #fff 0 50%, rgba(255, 255, 255, 0.4) 50% 100%);
  background-size: 200% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: none; filter: drop-shadow(0 1px 10px rgba(0, 0, 0, 0.55));
  animation: sing 5.5s linear 0.6s infinite;
}
/* playing: the script moves the fill with the song */
.phone.is-playing .p-lyrics .now { animation: none; }
.p-lyrics .next { font-size: 15px; font-weight: 600; line-height: 22px; color: rgba(255, 255, 255, 0.78); }
@keyframes sing {
  0% { background-position: 100% 0; }
  75%, 100% { background-position: 0 0; }
}
.p-actions { position: absolute; right: 12px; bottom: 110px; display: flex; flex-direction: column; gap: 16px; }
.p-actions span { display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; line-height: 1; }
.p-actions b {
  width: 52px; height: 52px; border-radius: 26px; display: grid; place-items: center;
  background: var(--on-image-glass); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
}
.p-actions b.white { background: #fff; color: var(--bg); box-shadow: none; }
.p-actions svg { width: 25px; height: 25px; fill: currentColor; }
.p-info { position: absolute; left: 18px; right: 88px; bottom: 110px; display: flex; flex-direction: column; gap: 10px; }
.p-title { font-size: 21px; font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; }
.p-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.p-pills span {
  height: 30px; padding: 0 12px; border-radius: 15px; display: flex; align-items: center;
  background: var(--on-image-glass); font-size: 12.5px; font-weight: 700; line-height: 1;
}
.p-wave { position: absolute; left: 12px; right: 18px; bottom: 56px; display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.p-play {
  flex: none; width: 44px; height: 44px; border: 0; border-radius: 22px; padding: 0; cursor: pointer;
  display: grid; place-items: center; background: #fff; color: var(--bg);
}
.p-play:hover { background: #E4E8F5; }
.p-play svg { width: 22px; height: 22px; fill: currentColor; grid-area: 1 / 1; }
.i-pause, .is-playing > .i-play, .is-playing .play .i-play { display: none; }
.is-playing > .i-pause, .is-playing .play .i-pause { display: block; }
.p-play:focus-visible, .cover:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.p-wave .bars { flex: 1; display: flex; align-items: center; gap: 2px; height: 32px; }
.p-wave .bars i { flex: 1; border-radius: 2px; height: 30%; background: #fff; }
.p-wave .bars i:nth-child(n + 15), .phone.is-playing .p-wave .bars i { background: rgba(255, 255, 255, 0.35); }
.phone.is-playing .p-wave .bars i.done { background: #fff; }
.p-wave .bars i:nth-child(5n + 1) { height: 45%; }
.p-wave .bars i:nth-child(5n + 2) { height: 80%; }
.p-wave .bars i:nth-child(5n + 3) { height: 25%; }
.p-wave .bars i:nth-child(7n) { height: 95%; }
.p-wave .bars i:nth-child(3n) { height: 55%; }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .phone { justify-self: center; }
}
/* the phone a little smaller where it would not fit: a short desktop window, or a phone where it would fill the screen */
@media (min-width: 901px) and (max-height: 860px) { .phone { zoom: 0.86; } }
@media (max-width: 600px) { .phone { zoom: 0.8; } }

/* Sections */

section.block { padding: 0 0 clamp(64px, 8vw, 104px); }
.head { margin: 0 0 22px; }
.head h2 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.1; }
.head p { margin: 6px 0 0; color: var(--text-2); font-size: 16px; }

/* New songs: square covers with the title under them (content, not buttons: no card around them) */
.songs-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px 16px; }
.cover { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 20px; background: none; color: inherit; font: inherit; }
button.cover { cursor: pointer; }
.cover .play {
  position: absolute; right: 8px; bottom: 8px; width: 40px; height: 40px; border-radius: 20px; display: grid; place-items: center;
  background: rgba(11, 13, 20, 0.62); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.cover .play svg { width: 20px; height: 20px; fill: currentColor; grid-area: 1 / 1; }
button.cover:hover .play { transform: scale(1.08); }
.cover.is-playing .play { background: #fff; color: var(--bg); }
.song img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 50% 30%; border-radius: 20px; background: var(--glass); box-shadow: var(--glass-ring); }
.song .title {
  margin: 12px 2px 0; font-size: 15px; font-weight: 700; line-height: 19px; height: 38px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.song .theme { margin: 3px 2px 0; font-size: 13px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1000px) { .songs-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .songs-grid {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 44%;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); scroll-padding: 0 var(--gutter);
  }
  .songs-grid::-webkit-scrollbar { display: none; }
  .song { scroll-snap-align: start; }
}

/* Themes: the motif (drawn white, so the motifs read as one set) and the name, as a list */
.themes-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 20px; }
.tile { display: flex; align-items: center; gap: 14px; min-width: 0; }
.tile img { width: 40px; height: 40px; object-fit: contain; flex: none; filter: brightness(0) invert(1); opacity: 0.88; }
.tile b { min-width: 0; font-size: 16px; font-weight: 700; line-height: 1.25; text-wrap: balance; }
@media (max-width: 900px) { .themes-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* What the app does: grouped glass lists, like the app's Profil */
.groups { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.group { border-radius: 26px; padding: 3px 0; }
.group h3 { padding: 18px 20px 14px; font-size: 18px; line-height: 1.25; }
.row { display: flex; gap: 14px; padding: 16px 20px; border-top: 1px solid var(--divider); }
.row svg { width: 22px; height: 22px; fill: var(--text-2); flex: none; margin-top: 1px; }
.row b { display: block; font-size: 16px; font-weight: 700; line-height: 1.3; }
.row span { display: block; margin-top: 3px; font-size: 14.5px; line-height: 1.45; color: var(--text-2); }
.group .foot { padding: 14px 20px 16px; border-top: 1px solid var(--divider); font-size: 14px; color: var(--text-3); }
@media (max-width: 800px) { .groups { grid-template-columns: 1fr; } }

/* FAQ: one grouped glass list */
.faq-list { border-radius: 26px; padding: 3px 0; }
@media (min-width: 900px) { .faq .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 40px; align-items: start; } }
.faq-list details + details { border-top: 1px solid var(--divider); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 60px; padding: 14px 18px 14px 20px; font-size: 16px; font-weight: 700; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 22px; height: 22px; opacity: 0.44; transition: transform 0.2s;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23F4F6FB' d='M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.faq details[open] summary::after { transform: rotate(180deg); }
.faq details > :not(summary) { margin: 0; padding: 0 20px 18px; max-width: 44em; font-size: 15px; color: var(--text-2); }
.faq-more { margin: 18px 4px 0; font-size: 15px; color: var(--text-2); }

/* Closing: the app's sign-in screen, as a call to write */
.cta { text-align: center; border-radius: 32px; padding: clamp(40px, 6vw, 72px) 24px; }
.cta .mark { width: 88px; height: 88px; margin: 0 auto 22px; }
.cta h2 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.15; }
.cta p { margin: 12px auto 26px; max-width: 30em; color: var(--text-2); }
.cta .stores { justify-content: center; }
.cta .aside { margin: 22px auto 0; font-size: 15px; }

/* Documents (terms, privacy, account deletion, 404) */

.doc { padding: clamp(24px, 5vw, 56px) 0 clamp(72px, 9vw, 120px); }
.doc .wrap { max-width: 820px; }
.doc h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.08; margin: 0 0 14px; text-wrap: balance; }
.doc .updated { color: var(--text-3); font-size: 15px; margin: 0 0 36px; }
.doc h2 { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.2; margin: 48px 0 12px; }
.doc h3 { font-size: 18px; line-height: 1.3; margin: 28px 0 8px; }
.doc p, .doc li { color: var(--text-2); max-width: 54ch; } /* ~75 characters: Urbanist's 0 is wide */
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 8px 0; }
.doc li::marker { color: var(--accent); }
.doc strong { color: var(--text); }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 16px; color: var(--text-2); }
.doc tr + tr td { border-top: 1px solid var(--divider); }
.doc th { color: var(--text); font-weight: 800; border-bottom: 1px solid var(--divider); }
.table-scroll { overflow-x: auto; margin: 18px 0; border-radius: 20px; background: var(--glass); box-shadow: var(--glass-ring); }

.callout { border-radius: 24px; padding: 18px 22px; margin: 26px 0; background: var(--glass); box-shadow: var(--glass-ring); }
.callout p { color: var(--text); }
.callout p:first-child { margin-top: 0; }
.callout p:last-child { margin-bottom: 0; }

.button {
  height: 50px; padding: 0 24px; border-radius: 25px; display: inline-flex; align-items: center;
  background: #fff; color: var(--bg); font-size: 15px; font-weight: 800;
}
.button:hover { text-decoration: none; background: #E4E8F5; }

.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; padding: 0; list-style: none; }
.toc a { display: inline-flex; height: 34px; align-items: center; padding: 0 14px; border-radius: 17px; background: var(--glass); box-shadow: var(--glass-ring); color: var(--text); font-size: 14px; }

/* Footer */

footer { padding: 28px 0 44px; border-top: 1px solid var(--divider); color: var(--text-3); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 0 22px; }
footer nav a { display: inline-flex; align-items: center; min-height: 32px; color: var(--text-2); }
footer nav a:hover { color: var(--text); text-decoration: none; }
footer .copy { margin-left: auto; }
@media (max-width: 760px) { footer .copy { margin-left: 0; width: 100%; } }

@media (prefers-reduced-motion: reduce) {
  .p-lyrics .now { animation: none; background: none; color: #fff; }
  .faq summary::after, .cover .play { transition: none; }
}

/* Inside the app's WebView (?app=1): content only; the app shows its own top bar. */
.in-app::before { display: none; }
.in-app .top,
.in-app footer { display: none; }
.in-app .doc { padding: 16px 0 32px; }
/* the app's top bar already shows the title */
.in-app .doc h1 { display: none; }
.in-app .doc .updated { margin-bottom: 20px; }

.icons { position: absolute; width: 0; height: 0; overflow: hidden; }

/* In the app with its light theme (?app=1&theme=light): the app's light Aurora colors (designsystem LightAurora). */
.in-app-light {
  --bg: #F3F5F9;
  --text: #10131C;
  --text-2: #5A6274;
  --text-3: #626A7B;
  --accent: #1F4BFF;
  --glass: rgba(16, 19, 28, 0.05);
  --glass-ring: inset 0 0 0 1px rgba(16, 19, 28, 0.08);
  --divider: rgba(16, 19, 28, 0.1);
  color-scheme: light;
}
