/* ============================================================
   LOUVOR · ACAMP UPA — estilo
   teal profundo + laranja de palco, tipografia chunky,
   tons e cifras em mono, cantos de "adesivo" (14/14/14/4)
   ============================================================ */

:root {
  --ink: #0c2b2e;
  --ink-soft: #3d5a5c;
  --bg: #eef4f2;
  --card: #ffffff;
  --teal: #0f7b72;
  --teal-deep: #0b5a54;
  --orange: #ff5a1f;
  --orange-soft: #ffe9df;
  --line: #d5e2de;
  --chip-ink: #f6fbf9;

  --r-sticker: 16px 16px 16px 5px;
  --r-card: 18px;

  --font-display: "Bricolage Grotesque", "Instrument Sans", sans-serif;
  --font-body: "Instrument Sans", system-ui, sans-serif;
  --font-mono: "Spline Sans Mono", ui-monospace, monospace;

  --sp-1: 6px;
  --sp-2: 12px;
  --sp-3: 18px;
  --sp-4: 26px;
  --sp-5: 40px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background:
    radial-gradient(1100px 480px at 85% -10%, rgba(15, 123, 114, 0.10), transparent 60%),
    radial-gradient(900px 420px at -10% 8%, rgba(255, 90, 31, 0.07), transparent 55%),
    var(--bg);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.mono { font-family: var(--font-mono); }

/* ---------- acessibilidade ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 12px 0;
  z-index: 50;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------- topo ---------- */
.topbar {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 14px clamp(16px, 4vw, 28px);
  padding-top: calc(14px + env(safe-area-inset-top));
  max-width: 640px;
  width: 100%;
  margin: 0 auto;
}

.topbar__back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--line);
  background: var(--card);
  color: var(--ink);
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}
.topbar__back:hover { background: var(--orange-soft); transform: translateX(-2px); }

.topbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  min-height: 44px;
}

.brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--ink);
  color: var(--orange);
  border-radius: 12px 12px 12px 4px;
}

.brand__text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  line-height: 1.05;
  display: flex;
  flex-direction: column;
}
.brand__text em {
  font-style: normal;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
}

.topbar__tag {
  margin-left: auto;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  border: 1.5px solid var(--line);
  background: var(--card);
  padding: 6px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ---------- miolo ---------- */
.app {
  flex: 1;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: var(--sp-2) clamp(16px, 4vw, 28px) var(--sp-5);
}

.view { animation: rise 0.35s ease both; }

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.stagger > * { animation: rise 0.4s ease both; }
.stagger > *:nth-child(1) { animation-delay: 0.03s; }
.stagger > *:nth-child(2) { animation-delay: 0.08s; }
.stagger > *:nth-child(3) { animation-delay: 0.13s; }
.stagger > *:nth-child(4) { animation-delay: 0.18s; }
.stagger > *:nth-child(5) { animation-delay: 0.23s; }
.stagger > *:nth-child(6) { animation-delay: 0.28s; }
.stagger > *:nth-child(7) { animation-delay: 0.33s; }
.stagger > *:nth-child(8) { animation-delay: 0.38s; }

/* ---------- títulos ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: var(--sp-1);
}

.title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 7vw, 2.6rem);
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin-bottom: var(--sp-2);
}
.title .hl { color: var(--orange); }

.lead {
  color: var(--ink-soft);
  font-size: 1rem;
  max-width: 42ch;
  margin-bottom: var(--sp-4);
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 10px;
  margin: var(--sp-4) 0 var(--sp-2);
}
.section-label::after {
  content: "";
  flex: 1;
  height: 1.5px;
  background: var(--line);
}

/* ---------- home: grade de nomes ---------- */
.people {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-2);
}
@media (min-width: 460px) {
  .people { grid-template-columns: 1fr 1fr; }
}

.person-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 18px;
  min-height: 64px;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--r-sticker);
  cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.person-btn:hover {
  transform: translateY(-2px);
  border-color: var(--teal);
  box-shadow: 0 8px 22px rgba(12, 43, 46, 0.10);
}

.person-btn__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 12px 12px 12px 4px;
  background: var(--teal);
  color: var(--chip-ink);
  font-size: 1rem;
  font-weight: 800;
}
.person-btn__go {
  margin-left: auto;
  color: var(--orange);
  display: inline-flex;
}

/* ---------- cards de momento ---------- */
.cards {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.moment-card {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 16px 18px;
  min-height: 76px;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--r-card);
  text-decoration: none;
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.moment-card:hover {
  transform: translateY(-2px);
  border-color: var(--teal);
  box-shadow: 0 8px 22px rgba(12, 43, 46, 0.10);
}

.moment-card__when {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border-radius: 14px 14px 14px 5px;
  background: var(--ink);
  color: var(--chip-ink);
  font-family: var(--font-mono);
  line-height: 1.15;
}
.moment-card__when strong { font-size: 1.05rem; font-weight: 700; }
.moment-card__when span { font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; color: #9fc6c0; }

.moment-card__info { min-width: 0; }
.moment-card__title, .moment-card__meta { display: block; }
.moment-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}
.moment-card__meta {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 2px;
}

.moment-card__role {
  margin-left: auto;
  flex: none;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--orange-soft);
  color: #b23a0a;
  padding: 7px 11px;
  border-radius: 999px;
}
.moment-card__go { margin-left: auto; color: var(--orange); flex: none; display: inline-flex; }
.moment-card__role + .moment-card__go { margin-left: 0; }

/* ---------- escala do momento ---------- */
.lineup {
  list-style: none;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
}
.lineup li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  min-height: 52px;
}
.lineup li + li { border-top: 1.5px solid var(--line); }
.lineup__name { font-weight: 600; }
.lineup__inst {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-deep);
  background: #e3f0ed;
  padding: 6px 10px;
  border-radius: 999px;
}
.lineup__dot {
  width: 8px; height: 8px; flex: none;
  border-radius: 50%;
  background: var(--orange);
}

/* ---------- setlist ---------- */
.setlist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  counter-reset: song;
}

.song-row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 16px;
  min-height: 72px;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--r-card);
  text-decoration: none;
  color: var(--ink);
  cursor: pointer;
  counter-increment: song;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.song-row:hover {
  transform: translateY(-2px);
  border-color: var(--orange);
  box-shadow: 0 8px 22px rgba(12, 43, 46, 0.10);
}
.song-row::before {
  content: counter(song, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-soft);
  flex: none;
  width: 24px;
}

.song-row__info { min-width: 0; }
.song-row__name, .song-row__meta { display: block; }
.song-row__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.song-row__meta { font-size: 0.82rem; color: var(--ink-soft); margin-top: 2px; }

.keychip {
  margin-left: auto;
  flex: none;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 13px 13px 13px 4px;
  background: var(--ink);
  color: var(--orange);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1;
}
.keychip small {
  font-size: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: #9fc6c0;
  margin-top: 2px;
  text-transform: uppercase;
}

/* ---------- página da música ---------- */
.song-head { margin-bottom: var(--sp-3); }

.song-facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1);
  margin: var(--sp-3) 0;
}
.fact {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  background: var(--card);
  border: 1.5px solid var(--line);
  padding: 8px 12px;
  border-radius: 999px;
}
.fact strong { color: var(--ink); font-weight: 700; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 18px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  border: 1.5px solid transparent;
  border-radius: 14px 14px 14px 5px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn--spotify { background: var(--orange); color: #fff; }
.btn--spotify:hover { background: #e84a12; }

.btn--youtube { background: var(--ink); color: var(--chip-ink); }
.btn--youtube:hover { background: #08211f; }

.btn--cifra {
  background: var(--card);
  color: var(--teal-deep);
  border-color: var(--line);
}
.btn--cifra:hover { border-color: var(--teal); background: #e3f0ed; }

/* faixa do tema, abaixo do topo */
.theme-strip {
  max-width: 640px;
  width: 100%;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 28px) 6px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.theme-strip strong { color: var(--orange); font-weight: 600; }
.theme-strip span { color: var(--ink-soft); font-weight: 400; }

/* versículo do tema, na home */
.verse {
  margin-top: var(--sp-5);
  padding: var(--sp-3) var(--sp-3) var(--sp-3) calc(var(--sp-3) + 6px);
  border-left: 4px solid var(--orange);
  background: var(--card);
  border-radius: 6px var(--r-card) var(--r-card) 6px;
}
.verse p {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.4;
  color: var(--ink);
}
.verse cite {
  display: block;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
}

/* seletor de capotraste: violão com capo lê uma coisa,
   teclado e baixo leem outra. Errar aqui é um tom de diferença. */
.capo-switch {
  background: var(--card);
  border: 1.5px solid var(--teal);
  border-radius: var(--r-card);
  padding: 13px 14px;
  margin-top: var(--sp-3);
}
.capo-switch__q {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin-bottom: 9px;
}
.capo-switch__btns { display: grid; gap: 8px; }
@media (min-width: 460px) { .capo-switch__btns { grid-template-columns: 1fr 1fr; } }

.capo-switch__btns button {
  display: block;
  text-align: left;
  padding: 11px 13px;
  min-height: 56px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.capo-switch__btns button strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.94rem;
  color: var(--ink);
}
.capo-switch__btns button span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--ink-soft);
  margin-top: 2px;
}
.capo-switch__btns button:hover { border-color: var(--teal); }
.capo-switch__btns button[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
}
.capo-switch__btns button[aria-pressed="true"] strong { color: var(--chip-ink); }
.capo-switch__btns button[aria-pressed="true"] span { color: var(--orange); }

/* transpositor */
.transpose {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--ink);
  color: var(--chip-ink);
  border-radius: var(--r-sticker);
  padding: 12px 16px;
  margin: var(--sp-3) 0;
}
.transpose__label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9fc6c0;
}
.transpose__key {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--orange);
  min-width: 3ch;
  text-align: center;
}
.transpose__controls { margin-left: auto; display: flex; gap: 8px; }
.transpose button {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1.5px solid rgba(246, 251, 249, 0.25);
  background: transparent;
  color: var(--chip-ink);
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s ease;
}
.transpose button:hover { background: rgba(246, 251, 249, 0.12); }
.transpose__reset { font-size: 0.72rem !important; }

/* abas letra/cifra */
.tabs {
  display: flex;
  gap: 6px;
  background: #dde9e5;
  padding: 5px;
  border-radius: 14px;
  margin-bottom: var(--sp-2);
}
.tabs button {
  flex: 1;
  min-height: 44px;
  border: none;
  border-radius: 10px;
  background: transparent;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}
.tabs button[aria-selected="true"] {
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(12, 43, 46, 0.10);
}

.sheet {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--r-card);
  padding: var(--sp-3);
  overflow-x: auto;
}
.sheet pre {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.75;
  white-space: pre;
}
/* acorde: só cor e peso — nada de padding/fundo, senão o
   alinhamento monoespaçado sobre a sílaba se perde.
   É <button>, então precisa zerar o estilo nativo. */
.sheet .ch {
  color: var(--orange);
  font-weight: 700;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  border-bottom: 1.5px dotted rgba(255, 90, 31, 0.45);
}
.sheet .ch:hover { color: #c93c0a; border-bottom-color: currentColor; }

/* ---------- popup da forma do acorde ---------- */
.sheet-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(12, 43, 46, 0.55);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  animation: fade 0.18s ease both;
}
@media (min-width: 620px) { .sheet-modal { align-items: center; } }

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.sheet-modal__box {
  background: var(--bg);
  border-radius: var(--r-card);
  padding: var(--sp-3);
  width: 100%;
  max-width: 480px;
  max-height: 88dvh;
  overflow-y: auto;
  animation: rise 0.24s ease both;
  box-shadow: 0 18px 50px rgba(12, 43, 46, 0.3);
}

.sheet-modal__head { display: flex; align-items: center; gap: 12px; }
.sheet-modal__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.7rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.sheet-modal__x {
  margin-left: auto;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: var(--card);
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.sheet-modal__x:hover { background: var(--orange-soft); }

.sheet-modal__notas {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--teal-deep);
  margin-top: 2px;
}

.sheet-modal__grid {
  display: grid;
  gap: var(--sp-2);
  margin-top: var(--sp-3);
  grid-template-columns: auto 1fr;
  align-items: start;
}

.diag {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  text-align: center;
}
.diag__t {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.diag__vazio { font-size: 0.78rem; color: var(--ink-soft); line-height: 1.45; padding: 8px 0; }
.diag__leg {
  display: block;
  margin-top: 7px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}

.sheet-modal__nota {
  margin-top: var(--sp-2);
  font-size: 0.76rem;
  color: var(--ink-soft);
  line-height: 1.45;
}

/* dica de que dá pra tocar no acorde */
.tip {
  font-size: 0.76rem;
  color: var(--ink-soft);
  margin-bottom: var(--sp-1);
}

/* aviso de cifra não conferida */
.warn {
  background: var(--orange-soft);
  border: 1.5px solid #ffc7ae;
  border-radius: var(--r-card);
  padding: 13px 16px;
  margin-bottom: var(--sp-2);
  font-size: 0.86rem;
  line-height: 1.5;
  color: #8a2f08;
}
.warn strong { display: block; color: #7a2a07; margin-bottom: 2px; }
.warn a { color: #8a2f08; font-weight: 600; }

/* selo na lista de músicas */
.tag {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.tag--ok { color: var(--teal-deep); }
.tag--warn { color: #b23a0a; }

/* crédito da fonte da cifra */
.credit {
  margin-top: var(--sp-2);
  font-size: 0.74rem;
  line-height: 1.5;
  color: var(--ink-soft);
}
.credit a { color: var(--teal-deep); }

/* ---------- vazio ---------- */
.empty {
  border: 1.5px dashed var(--line);
  border-radius: var(--r-card);
  padding: var(--sp-4);
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.empty strong { color: var(--ink); }

/* ---------- rodapé ---------- */
.foot {
  text-align: center;
  padding: var(--sp-3) var(--sp-3) calc(var(--sp-3) + env(safe-area-inset-bottom));
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  .view, .stagger > * { animation: none; }
  * { transition-duration: 0.01ms !important; }
}
