/* e-choral.net: site styles. Palette and type carried over from the holding page. */

@font-face {
  font-family: "Jost";
  src: url("../fonts/jost-wght.woff2") format("woff2");
  font-weight: 300 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-wght.woff2") format("woff2");
  font-weight: 300 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-wght-italic.woff2") format("woff2");
  font-weight: 300 700; font-style: italic; font-display: swap;
}

:root {
  --wine: #1c1022;
  --wine-2: #2a1733;
  --plum: #5b2a6b;
  --ivory: #f7f2e8;
  --paper: #fffdf8;
  --ink: #231a26;
  --ink-soft: #5d5262;
  --line: #e6dccb;
  --muted-dark: #b9a9bd;
  --gold: #dcb55c;
  --gold-deep: #9a7420;      /* gold text on light backgrounds (contrast) */
  --rose: #c4667e;
  --display: "Cormorant Garamond", Garamond, "Times New Roman", serif;
  --body: "Jost", "Helvetica Neue", Arial, sans-serif;
  --radius: 14px;
  --wrap: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--ivory); color: var(--ink);
  font: 400 17px/1.65 var(--body);
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
a { color: var(--plum); text-underline-offset: .18em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.12; margin: 0 0 .5em; text-wrap: balance; }
h1 em, h2 em { font-style: italic; color: var(--gold); font-weight: 500; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.center { text-align: center; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--paper); padding: 8px 14px; }
.skip:focus { left: 8px; }

/* ------------------------------------------------------------------ buttons, badges */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .62em 1.25em; border-radius: 999px; border: 1.5px solid transparent;
  font: 500 16px/1.2 var(--body); text-decoration: none; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn-lg { font-size: 17px; padding: .8em 1.6em; }
.btn-gold { background: var(--gold); color: var(--wine); }
.btn-gold:hover { background: #e9c776; color: var(--wine); }
.btn-ghost { color: var(--ivory); border-color: rgba(247, 242, 232, .4); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-outline { color: var(--plum); border-color: var(--plum); }
.btn-outline:hover { background: var(--plum); color: var(--paper); }

.badge {
  display: inline-block; vertical-align: .12em; margin-left: .35em;
  font: 500 11px/1 var(--body); letter-spacing: .08em; text-transform: uppercase;
  padding: .42em .7em; border-radius: 999px; white-space: nowrap;
}
.badge-soon { background: #f3e3ea; color: #8a2f49; }
.badge-now { background: #e3efe2; color: #2c6a35; }

/* ------------------------------------------------------------------ header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(28, 16, 34, .94); backdrop-filter: blur(8px);
  color: var(--ivory); border-bottom: 1px solid rgba(220, 181, 92, .18);
}
.header-row { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; margin-right: auto; }
.brand:hover { color: var(--gold); }
.logo-mark { width: 34px; height: 40px; color: var(--gold); flex: none; }
.wordmark { font: 600 26px/1 var(--display); letter-spacing: .01em; }

.langs > summary { list-style: none; cursor: pointer; }
.langs > summary::-webkit-details-marker { display: none; }

.menu-toggle { display: none; }
.menu-panel { display: flex; align-items: center; gap: 28px; }
.nav { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nav a { color: var(--ivory); text-decoration: none; font-size: 15.5px; opacity: .88; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold); opacity: 1; }
.nav-actions { display: flex; align-items: center; gap: 16px; }
.link-login { color: var(--ivory); font-size: 15.5px; text-decoration: none; opacity: .88; }
.link-login:hover { color: var(--gold); }

.langs { position: relative; }
.langs > summary {
  font: 500 13px/1 var(--body); letter-spacing: .1em; padding: 8px 10px;
  border: 1px solid rgba(247, 242, 232, .3); border-radius: 8px; color: var(--ivory);
}
.langs > summary:hover { border-color: var(--gold); color: var(--gold); }
.langs-panel {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 170px;
  list-style: none; margin: 0; padding: 6px; border-radius: 10px;
  background: var(--paper); box-shadow: 0 12px 32px rgba(28, 16, 34, .25);
}
.langs-panel a { display: block; padding: 8px 12px; border-radius: 6px; color: var(--ink); text-decoration: none; }
.langs-panel a:hover { background: var(--ivory); }
.langs-panel a[aria-current] { font-weight: 600; color: var(--plum); }

@media (max-width: 960px) {
  .header-row { flex-wrap: wrap; }
  .menu { order: 3; }
  .menu-toggle[hidden] { display: none; }
  .menu-toggle:not([hidden]) {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 12px; cursor: pointer;
    min-height: 44px; min-width: 44px;
    background: none; border: 1px solid rgba(247, 242, 232, .3); border-radius: 8px; color: var(--ivory); font: 500 14px var(--body);
  }
  .burger, .burger::before, .burger::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; }
  .burger::before, .burger::after { content: ""; position: absolute; left: 0; }
  .burger::before { top: -6px; }
  .burger::after { top: 6px; }
  .menu-toggle[aria-expanded="true"] .burger { background: transparent; }
  .menu-toggle[aria-expanded="true"] .burger::before { top: 0; transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .burger::after { top: 0; transform: rotate(-45deg); }
  /* Without JavaScript: the menu is a full-width row under the logo. */
  .menu { flex-basis: 100%; }
  .menu-panel { flex-direction: column; align-items: stretch; gap: 8px; padding: 0 0 16px; }
  /* With JavaScript: a drop-down panel opened by the toggle. */
  .js .menu { flex-basis: auto; }
  .js .menu-panel {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--wine); padding: 12px 20px 24px; border-bottom: 1px solid rgba(220, 181, 92, .25);
  }
  .js .menu-panel.is-open { display: flex; }
  .nav { flex-direction: column; gap: 0; }
  .nav a { display: block; padding: 12px 0; font-size: 18px; border-bottom: 1px solid rgba(247, 242, 232, .1); }
  .nav-actions { flex-direction: column; align-items: stretch; gap: 12px; padding-top: 12px; }
  .link-login { padding: 8px 0; font-size: 17px; }
  .site-header .wrap { position: static; }
}
@media (max-width: 420px) {
  .menu-label { display: none; }
}

/* ------------------------------------------------------------------ language suggestion */
.lang-suggest { background: var(--gold); color: var(--wine); font-size: 15px; }
.lang-suggest .wrap { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 42px; }
.lang-suggest a { color: var(--wine); font-weight: 500; }
.lang-suggest button { background: none; border: 0; font-size: 22px; line-height: 1; cursor: pointer; color: var(--wine); padding: 4px 8px; }

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative; overflow: hidden; color: var(--ivory);
  background:
    radial-gradient(ellipse 70% 60% at 20% -10%, #4a2557 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 100% 100%, #3b1530 0%, transparent 70%),
    var(--wine);
  padding: 72px 0 0;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; padding-bottom: 40px; }
.eyebrow { font: 500 12.5px/1.4 var(--body); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.hero h1 { font-size: clamp(42px, 6.4vw, 76px); line-height: 1.02; letter-spacing: -.01em; }
.hero .lede { font-size: clamp(18px, 2vw, 20.5px); color: rgba(247, 242, 232, .86); max-width: 33em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 12px; }
.cta-note { font-size: 14px; opacity: .72; margin: 0; }

/* drawn phone */
.phone {
  justify-self: center; width: min(320px, 100%); aspect-ratio: 9 / 18.5;
  border-radius: 40px; padding: 12px; background: #0d0710;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45), inset 0 0 0 1.5px rgba(220, 181, 92, .35);
  transform: rotate(2deg);
}
.phone-screen {
  height: 100%; border-radius: 30px; background: var(--paper); color: var(--ink);
  overflow: hidden; display: flex; flex-direction: column; font-size: 13px; line-height: 1.35;
}
.ph-top { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px 10px; background: var(--wine-2); color: var(--ivory); }
.ph-choir { font: 600 16px/1 var(--display); }
.ph-dot { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, var(--rose), var(--gold)); }
.ph-show { padding: 12px 18px 12px; background: var(--wine-2); color: var(--ivory); display: grid; gap: 2px; }
.ph-show small { text-transform: uppercase; letter-spacing: .14em; font-size: 10px; color: var(--gold); }
.ph-show strong { font: 600 21px/1.1 var(--display); }
.ph-show span { font-size: 12px; opacity: .75; }
.ph-list { list-style: none; margin: 0; padding: 6px 12px; flex: 1; overflow: hidden; }
.ph-list li { display: grid; grid-template-columns: 22px 1fr; gap: 2px 8px; padding: 9px 4px; border-bottom: 1px solid var(--line); }
.ph-num { grid-row: span 2; font: 600 15px/1.2 var(--display); color: var(--gold-deep); }
.ph-work b { display: block; font-weight: 500; font-size: 13.5px; }
.ph-work i { font-style: normal; color: var(--ink-soft); font-size: 12px; }
.ph-files { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 3px; }
.ph-chip { font-size: 10.5px; padding: 2px 7px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-soft); }
.ph-audio { background: #f3e3ea; border-color: #f3e3ea; color: #8a2f49; }
.ph-player { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--wine); color: var(--ivory); }
.ph-play { width: 32px; height: 32px; border-radius: 50%; background: var(--gold); color: var(--wine); display: grid; place-items: center; font-size: 12px; flex: none; }
.ph-track { flex: 1; display: grid; gap: 6px; font-size: 12px; }
.ph-bar { height: 4px; border-radius: 4px; background: rgba(247, 242, 232, .2); overflow: hidden; }
.ph-bar span { display: block; height: 100%; width: 38%; background: linear-gradient(90deg, var(--rose), var(--gold)); animation: progress 14s linear infinite; }
@keyframes progress { from { width: 8%; } to { width: 92%; } }

/* staff band under the hero */
.staff-band { height: 120px; border-top: 1px solid rgba(220, 181, 92, .2); }
.staff-band svg { width: 100%; height: 100%; display: block; }
.staff-lines line { stroke: var(--ivory); stroke-opacity: .28; stroke-width: 1.1; }
.staff-notes ellipse { fill: var(--ivory); fill-opacity: .55; }
.staff-notes line { stroke: var(--ivory); stroke-opacity: .55; stroke-width: 1.4; }
.staff-notes .note { animation: glow 12s linear infinite; }
/* Each note lights 0.6 s after the previous one (no inline styles: the CSP forbids them). */
.staff-notes .note:nth-child(2) { animation-delay: .6s; }   .staff-notes .note:nth-child(3) { animation-delay: 1.2s; }
.staff-notes .note:nth-child(4) { animation-delay: 1.8s; }  .staff-notes .note:nth-child(5) { animation-delay: 2.4s; }
.staff-notes .note:nth-child(6) { animation-delay: 3s; }    .staff-notes .note:nth-child(7) { animation-delay: 3.6s; }
.staff-notes .note:nth-child(8) { animation-delay: 4.2s; }  .staff-notes .note:nth-child(9) { animation-delay: 4.8s; }
.staff-notes .note:nth-child(10) { animation-delay: 5.4s; } .staff-notes .note:nth-child(11) { animation-delay: 6s; }
.staff-notes .note:nth-child(12) { animation-delay: 6.6s; } .staff-notes .note:nth-child(13) { animation-delay: 7.2s; }
.staff-notes .note:nth-child(14) { animation-delay: 7.8s; } .staff-notes .note:nth-child(15) { animation-delay: 8.4s; }
.staff-notes .note:nth-child(16) { animation-delay: 9s; }   .staff-notes .note:nth-child(17) { animation-delay: 9.6s; }
.staff-notes .note:nth-child(18) { animation-delay: 10.2s; } .staff-notes .note:nth-child(19) { animation-delay: 10.8s; }
.staff-notes .note:nth-child(20) { animation-delay: 11.4s; }
@keyframes glow {
  0%, 9%, 100% { filter: none; }
  3% { filter: drop-shadow(0 0 6px var(--gold)); }
}

@media (max-width: 900px) {
  .hero { padding-top: 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .phone { width: min(290px, 86%); }
}

/* ------------------------------------------------------------------ sections */
section { padding: 84px 0; }
.hero, .staff-band { padding-bottom: 0; }
.section-title { font-size: clamp(32px, 4.2vw, 46px); text-align: center; max-width: 22em; margin: 0 auto .4em; }
.section-title em { color: var(--plum); }
.section-lede { text-align: center; max-width: 40em; margin: 0 auto 44px; color: var(--ink-soft); font-size: 18.5px; }

.grid-2, .grid-3, .grid-4 { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } section { padding: 60px 0; } }

/* pains */
.pains { background: var(--paper); }
.pains .section-title { margin-bottom: 44px; }
.pain { padding: 28px 26px; border-radius: var(--radius); background: var(--ivory); border: 1px solid var(--line); }
.pain-quote { font: italic 500 23px/1.3 var(--display); color: var(--plum); margin-bottom: .7em; }
.pain p:last-child { margin: 0; color: var(--ink-soft); }

/* audiences */
.audience { padding: 32px 30px 26px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); position: relative; overflow: hidden; }
.audience::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--rose), var(--gold)); }
.audience h3 { font-size: 30px; margin-bottom: .25em; }
.audience-lede { color: var(--ink-soft); }
.checks { list-style: none; margin: 0 0 4px; padding: 0; }
.checks li { position: relative; padding: 7px 0 7px 30px; border-top: 1px solid var(--line); }
.checks li::before { content: "♪"; position: absolute; left: 4px; top: 6px; color: var(--gold-deep); }
.checks li.is-soon { color: var(--ink-soft); }
.audiences .center { margin-top: 40px; }

/* trust */
.trust { background: var(--wine); color: var(--ivory); }
.trust .section-title { margin-bottom: 44px; }
.trust .section-title em { color: var(--gold); }
.trust-item { padding: 6px 4px; border-top: 1px solid rgba(220, 181, 92, .4); padding-top: 20px; }
.trust-item h3 { font-size: 24px; color: var(--gold); }
.trust-item p { color: rgba(247, 242, 232, .82); margin: 0; font-size: 16px; }
.trust-item a { color: var(--gold); }

/* call-to-action band */
.cta-band { text-align: center; background: linear-gradient(160deg, var(--wine-2), var(--wine)); color: var(--ivory); }
.cta-band h2 { font-size: clamp(32px, 4.4vw, 50px); }
.cta-band p { max-width: 36em; margin: 0 auto 26px; color: rgba(247, 242, 232, .85); }
.cta-band .cta-note { margin-top: 14px; }

/* page head (inner pages) */
.page-head { background: var(--wine); color: var(--ivory); padding: 72px 0 56px; }
.page-head h1 { font-size: clamp(40px, 5.6vw, 64px); }
.page-head .lede { font-size: 19.5px; max-width: 38em; color: rgba(247, 242, 232, .86); margin: 0; }
.legend { margin: 22px 0 0; font-size: 15px; color: rgba(247, 242, 232, .8); }
.legend .badge { margin-left: 0; }

/* features page */
.feature-group:nth-of-type(even) { background: var(--paper); }
.feature { padding: 26px 24px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.feature-group:nth-of-type(even) .feature { background: var(--ivory); }
.feature h3 { font-size: 25px; display: inline; margin-right: .2em; }
.feature .badge { margin-left: 0; }
.feature p { margin: .7em 0 0; color: var(--ink-soft); }
.feature.is-soon { border-style: dashed; }

/* prose pages */
.prose { max-width: 46em; }
.prose h2 { font-size: 32px; margin-top: 1.4em; }
.prose h3 { font-size: 24px; margin-top: 1.2em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .35em; }
.prose table { border-collapse: collapse; width: 100%; margin: 1em 0; }
.prose th, .prose td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }

/* FAQ */
.faq-list { max-width: 50em; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font: 400 30px/1 var(--display); color: var(--gold-deep); }
.faq-item[open] summary::after { content: "−"; }
.faq-item summary h2 { display: inline; font-size: 25px; margin: 0; }
.faq-item .prose { padding-bottom: 14px; color: var(--ink-soft); }

/* ------------------------------------------------------------------ footer */
.site-footer { background: #140b18; color: rgba(247, 242, 232, .78); padding: 56px 0 24px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-brand .brand { color: var(--ivory); margin-bottom: 14px; }
.footer-eu { color: var(--gold); }
.footer-links, .footer-langs { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { color: rgba(247, 242, 232, .85); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-langs a[aria-current] { color: var(--gold); }
.footer-legal { margin-top: 40px; padding-top: 18px; border-top: 1px solid rgba(247, 242, 232, .1); font-size: 13.5px; }
.footer-legal p { margin: 0; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ------------------------------------------------------------------ 404 */
.page-404 { background: var(--wine); color: var(--ivory); }
.notfound { min-height: 100vh; display: grid; place-items: center; padding: 40px 0; }
.notfound a { color: var(--gold); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
