/* Site público do LNME.AO. A identidade é verde-esmeralda e petróleo, com um quadrado menta como marca
   (o --spark). No escuro, verde-noite e o dourado. Títulos em Bricolage Grotesque e texto em Asap Sharp,
   servidas daqui (public/site/fonts), nunca de um serviço de terceiros. A gestão usa este ficheiro também,
   mas fica na fonte do sistema (admin.css). Os componentes do catálogo estão em lnme.css. */

@font-face {
    font-family: "Bricolage Grotesque"; font-style: normal; font-display: swap; font-weight: 200 800; font-stretch: 75% 100%;
    src: url("fonts/bricolage-grotesque-latin-standard-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Bricolage Grotesque"; font-style: normal; font-display: swap; font-weight: 200 800; font-stretch: 75% 100%;
    src: url("fonts/bricolage-grotesque-latin-ext-standard-normal.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Asap Sharp"; font-style: normal; font-display: swap; font-weight: 100 900;
    src: url("fonts/asap-sharp-latin-wght-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Asap Sharp"; font-style: normal; font-display: swap; font-weight: 100 900;
    src: url("fonts/asap-sharp-latin-ext-wght-normal.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Asap Sharp"; font-style: italic; font-display: swap; font-weight: 100 900;
    src: url("fonts/asap-sharp-latin-wght-italic.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Asap Sharp"; font-style: italic; font-display: swap; font-weight: 100 900;
    src: url("fonts/asap-sharp-latin-ext-wght-italic.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    --bg: #F4F8F5;
    --surface: #FFFFFF;
    --raised: #EAF1EC;
    --danger: #B3261E;
    --accent: #0B7A52;
    --on-accent: #FFFFFF;
    --text: #0C1F17;
    --text-2: #53655C;
    --line: #DDE8E1;
    --hero-top: #0E8A5F;
    --hero-bottom: #0A6B73;
    --spark: #3DDC97;
    --logo: linear-gradient(160deg, #0E8A5F 0%, #0A6B73 100%);
    /* A abertura no claro: o fundo da página com dois brilhos, azul e ciano, e a pauta em azul. */
    --hero-bg:
        radial-gradient(44rem 26rem at 88% 18%, rgba(61, 220, 151, 0.18), transparent 62%),
        radial-gradient(40rem 26rem at 6% 96%, rgba(14, 138, 95, 0.14), transparent 62%),
        linear-gradient(180deg, #F8FCF9 0%, #E6F3EC 100%);
    --hero-ink: #0C1F17;
    --hero-lead: #53655C;
    --hero-chord: #0A6B73;
    --hero-lines: rgba(14, 138, 95, 0.14);
    --on-hero: #FFFFFF;
    --hero-action: #FFFFFF;
    --on-hero-action: #08462F;
    --shadow: 0 6px 24px rgba(12, 31, 23, 0.08);
    --hero-shadow: 0 18px 40px rgba(8, 70, 47, 0.28);
    --frame: #D6E5DB;
    --phone-shadow: 0 30px 60px rgba(10, 107, 115, 0.22), 0 0 0 1px rgba(12, 31, 23, 0.07);
    --system: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    --body: "Asap Sharp", var(--system);
    --display: "Bricolage Grotesque", var(--system);
}

/*
 * Tema escuro. Quem nunca escolheu vê o do aparelho; o botão do tema grava `data-theme="light"` ou
 * `"dark"` no <html> (veja theme.js) e passa a valer a escolha. Os dois blocos têm de ficar iguais.
 */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #0E1114;
        --surface: #161A1E;
        --raised: #1F252A;
        --danger: #FF9A8F;
        --accent: #E9B54D;
        --on-accent: #1A1203;
        --text: #ECEFF2;
        --text-2: #9CA6AF;
        --line: #2A3137;
        --hero-top: #1F3A36;
        --hero-bottom: #1A3235;
        --spark: #3DDC97;
        --hero-bg:
            radial-gradient(44rem 26rem at 88% 18%, rgba(61, 220, 151, 0.06), transparent 62%),
            radial-gradient(40rem 26rem at 6% 96%, rgba(14, 138, 95, 0.10), transparent 62%),
            linear-gradient(180deg, #141A1E 0%, #0E1114 100%);
        --hero-ink: #ECEFF2;
        --hero-lead: rgba(236, 239, 242, 0.82);
        --hero-chord: #B5F5D6;
        --hero-lines: rgba(255, 255, 255, 0.11);
        --on-hero: #ECEFF2;
        --hero-action: #E9B54D;
        --on-hero-action: #1A1203;
        --shadow: 0 0 0 1px #2A3137;
        --hero-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
        --frame: #2F373D;
        --phone-shadow: 0 24px 50px rgba(0, 0, 0, 0.5);
    }
}
:root[data-theme="dark"] {
    --bg: #0E1114;
    --surface: #161A1E;
    --raised: #1F252A;
    --danger: #FF9A8F;
    --accent: #E9B54D;
    --on-accent: #1A1203;
    --text: #ECEFF2;
    --text-2: #9CA6AF;
    --line: #2A3137;
    --hero-top: #1F3A36;
    --hero-bottom: #1A3235;
    --spark: #3DDC97;
    --hero-bg:
        radial-gradient(44rem 26rem at 88% 18%, rgba(61, 220, 151, 0.06), transparent 62%),
        radial-gradient(40rem 26rem at 6% 96%, rgba(14, 138, 95, 0.10), transparent 62%),
        linear-gradient(180deg, #141A1E 0%, #0E1114 100%);
    --hero-ink: #ECEFF2;
    --hero-lead: rgba(236, 239, 242, 0.82);
    --hero-chord: #B5F5D6;
    --hero-lines: rgba(255, 255, 255, 0.11);
    --on-hero: #ECEFF2;
    --hero-action: #E9B54D;
    --on-hero-action: #1A1203;
    --shadow: 0 0 0 1px #2A3137;
    --hero-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    --frame: #2F373D;
    --phone-shadow: 0 24px 50px rgba(0, 0, 0, 0.5);
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

*, *::before, *::after { box-sizing: border-box; }

/* As âncoras param abaixo da barra do topo, que fica fixa. */
/* O fundo vai também no <html>: é o que o navegador do telemóvel mostra por trás da barra de estado e ao puxar a página. */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; background: var(--bg); }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 400 1.0625rem/1.6 var(--body);
}

/* Títulos: os grandes em Bricolage Grotesque (o eixo óptico acompanha o tamanho: quanto maior, mais
   apertado e com mais carácter), os pequenos em Asap Sharp bold, como o texto. */
h1, h2, h3, .brand, .sheet-title {
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.15;
    margin: 0;
}

h1, h2, .brand {
    font-family: var(--display);
    font-weight: 700;
    font-optical-sizing: auto;
    letter-spacing: -0.025em;
    line-height: 1.05;
}
.brand { font-weight: 700; letter-spacing: -0.01em; }

p, ul, ol, dl, dd { margin: 0; }
a { color: var(--accent); text-underline-offset: 0.18em; }
img { display: block; }

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

.wrap { width: min(100% - 2.5rem, 68rem); margin-inline: auto; }

.skip-link {
    position: absolute; left: 1rem; top: -4rem; z-index: 10;
    padding: 0.6rem 1rem; border-radius: 10px;
    background: var(--accent); color: var(--on-accent); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* Cabeçalho e rodapé */

.site-header {
    position: sticky; top: 0; z-index: 20;
    background: color-mix(in srgb, var(--bg) 86%, transparent);
    -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
    border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.header-row { display: flex; align-items: center; gap: 1.25rem; padding-block: 0.8rem; }
.brand { display: flex; align-items: center; gap: 0.65rem; color: var(--text); text-decoration: none; font-size: 1.15rem; margin-right: auto; }
.brand img { border-radius: 9px; }
.site-menu, .site-menu-settings { display: flex; align-items: center; gap: 1.25rem; }
.site-menu-settings { gap: 0.75rem; }
.site-nav { display: flex; align-items: center; gap: 1.25rem; }
.site-nav a { color: var(--text-2); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--text); }
/* "Entrar" é a ação do topo: o azul do logótipo, para se destacar dos outros links. */
.site-nav .nav-cta { padding: 0.45rem 1rem; border-radius: 999px; background: var(--logo); color: #FFFFFF; box-shadow: 0 6px 14px rgba(10, 107, 115, 0.25); }
.site-nav .nav-cta:hover { color: #FFFFFF; filter: brightness(1.08); }

/* O botão do tema: um só, com a lua no claro e o sol no escuro (o tema para onde passa). */
.theme-switch {
    display: grid; place-items: center; width: 2.4rem; height: 2.4rem; padding: 0; border: 0; border-radius: 999px;
    background: var(--raised); color: var(--text-2); cursor: pointer; transition: color 0.15s ease, background-color 0.15s ease;
}
.theme-switch:hover { color: var(--text); background: color-mix(in srgb, var(--accent) 12%, var(--raised)); }
.theme-switch svg { width: 1.1rem; height: 1.1rem; }
.theme-switch .theme-icon-sun { display: none; }
:root[data-theme="dark"] .theme-switch .theme-icon-sun { display: block; }
:root[data-theme="dark"] .theme-switch .theme-icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .theme-switch .theme-icon-sun { display: block; }
    :root:not([data-theme="light"]) .theme-switch .theme-icon-moon { display: none; }
}

.lang-switch { display: flex; padding: 3px; border-radius: 999px; background: var(--raised); }
.lang-switch a {
    padding: 0.3rem 0.7rem; border-radius: 999px;
    color: var(--text-2); text-decoration: none; font-size: 0.8rem; font-weight: 700;
}
.lang-switch a[aria-current] { background: var(--surface); color: var(--text); box-shadow: 0 1px 4px rgba(12, 31, 23, 0.12); }

/* O botão de três linhas: só aparece no telemóvel (veja "Telas estreitas" e menu.js). */
.menu-toggle {
    display: none; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0; border: 0; border-radius: 12px;
    background: var(--raised); color: var(--text); cursor: pointer;
}
.menu-toggle svg { width: 1.35rem; height: 1.35rem; }
.menu-toggle .menu-icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .menu-icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .menu-icon-close { display: inline; }

.site-footer { border-top: 1px solid var(--line); color: var(--text-2); font-size: 0.9rem; }
.footer-row { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; justify-content: space-between; padding-block: 1.75rem 2.5rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.site-footer a { color: var(--text-2); }

/* Faixas: cada seção ocupa a largura inteira, e os fundos alternam. */

.band { padding-block: 4.5rem; }
.band-alt { background: var(--raised); }
/* Na faixa mais escura, o que no resto da página usa esse mesmo tom passa ao fundo da página. */
.band-alt .sheet-controls button { background: var(--bg); }
.band-alt .feature-nav button:hover { background: var(--bg); }
.band-alt .feature-nav [aria-selected="true"] { background: var(--surface); }

/* Abertura */

/* A abertura: clara no tema claro, com os brilhos azul e ciano do logótipo, e no
   escuro em azul-noite com os mesmos brilhos; em baixo, as linhas de pauta do cartão da próxima escala do app. */
.band-hero {
    color: var(--hero-ink);
    background:
        repeating-linear-gradient(to bottom, transparent 0 13px, var(--hero-lines) 13px 14px) left 0 bottom 2.5rem / 100% 70px no-repeat,
        var(--hero-bg);
    padding-block: 4.5rem 5.5rem;
}
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 3.5rem; align-items: center; }
.lead { margin-top: 1.25rem; font-size: 1.2rem; color: var(--text-2); max-width: 34rem; }
.band-hero .lead { color: var(--hero-lead); }

/*
 * O título da abertura é uma linha de cifra: algumas palavras levam um acorde por cima, com o quadrado
 * ciano do logótipo. Os acordes entram um a um ao abrir a página: é o único movimento automático do site.
 * O `content` com "/ ''" tira o acorde do que os leitores de ecrã leem.
 */
.hero-title { font-size: clamp(2.4rem, 5.6vw, 4.3rem); line-height: 1.45; font-weight: 750; letter-spacing: -0.035em; }
.hw { position: relative; display: inline-block; }
.hw[data-chord]::before {
    content: attr(data-chord);
    content: attr(data-chord) / "";
    position: absolute; left: 0.04em; bottom: 88%;
    padding-left: 0.95em; white-space: nowrap;
    background: linear-gradient(var(--spark), var(--spark)) left 0.08em / 0.62em 0.62em no-repeat;
    color: var(--hero-chord); font: 700 0.36em/1 var(--body); letter-spacing: 0.01em;
    animation: chord-in 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) both;
    animation-delay: calc(var(--i, 0) * 70ms + 200ms);
}
@keyframes chord-in { from { opacity: 0; transform: translateY(0.45em); } }
.store-badges { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2rem; }
/* Os botões das lojas têm o azul do logótipo, nos dois temas, e as medidas dos do site da Bibliateca. */
.store-badge {
    display: inline-flex; align-items: center; gap: 12px;
    padding: 13px 22px; border-radius: 14px;
    background: var(--logo); color: #FFFFFF; text-decoration: none;
    box-shadow: 0 10px 24px rgba(10, 107, 115, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.store-badge svg { flex: none; }
/* Duas linhas: o rótulo pequeno e o nome da loja. */
.store-badge-text { display: flex; flex-direction: column; text-align: left; line-height: 1.1; white-space: nowrap; }
.store-badge-label { font-size: 11px; font-weight: 500; opacity: 0.8; }
.store-badge-store { font-size: 16px; font-weight: 700; margin-top: 2px; }
/* No telemóvel, as duas lojas continuam lado a lado, um pouco mais pequenas. */
@media (max-width: 430px) {
    .store-badges { gap: 10px; }
    .store-badge { gap: 9px; padding: 10px 15px; border-radius: 12px; }
    .store-badge-store { font-size: 14.5px; }
    .store-badge-label { font-size: 10px; }
}
.store-badge:hover { filter: brightness(1.06); transform: translateY(-2px); box-shadow: 0 14px 28px rgba(10, 107, 115, 0.34); }
.store-badge:focus-visible { outline-color: var(--spark); }

/* Capturas do app: a imagem numa moldura de telemóvel, só com cantos e contorno. */

.phone {
    display: block; overflow: hidden; border-radius: 2.1rem;
    border: 7px solid var(--frame); background: var(--frame);
    box-shadow: var(--phone-shadow);
}
.phone img { width: 100%; height: auto; border-radius: 1.6rem; }

/*
 * As duas capturas da abertura flutuam devagar, desencontradas, e seguem um pouco o rato (--px e --py,
 * de -0.5 a 0.5, postos pelo script da página). A inclinação e o deslocamento usam `rotate` e
 * `translate`, para não se misturarem com o `transform` da flutuação.
 */
.hero-shots { display: flex; justify-content: center; align-items: center; padding-block: 2rem; --px: 0; --py: 0; }
.hero-shots .phone { flex: 0 1 15.5rem; min-width: 0; transition: rotate 0.5s ease-out, translate 0.5s ease-out; animation: phone-float 7s ease-in-out infinite; }
.hero-shots .phone:first-child {
    z-index: 1;
    rotate: calc(-7deg + var(--px) * 4deg);
    translate: calc(var(--px) * -18px) calc(var(--py) * -12px);
}
.hero-shots .phone:last-child {
    margin-left: -3.5rem;
    rotate: calc(7deg + var(--px) * 3deg);
    translate: calc(var(--px) * 12px) calc(1.5rem + var(--py) * 10px);
    animation-delay: -3.5s;
}
@keyframes phone-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
/* As telas inclinadas passam um pouco da sua caixa: a página não ganha rolagem para o lado por isso. */
main { overflow-x: clip; }

/* O que faz: texto de um lado, a tela do outro, alternando. */

.section-head { max-width: 40rem; }
.section-head-center { margin-inline: auto; text-align: center; }
.section-head p, .transpose-copy p { margin-top: 0.8rem; color: var(--text-2); font-size: 1.1rem; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }

/*
 * As quatro áreas do app: uma lista de cartões, cada um com a pastilha do logótipo, e ao lado um palco
 * claro com a pauta, onde a captura da área escolhida entra a subir.
 */
.feature-tabs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: start; margin-top: 2.75rem; }
.feature-nav { display: grid; gap: 0.75rem; }
.feature-nav button {
    display: grid; grid-template-columns: 2.9rem minmax(0, 1fr); column-gap: 1rem; align-items: center;
    width: 100%; padding: 1rem 1.15rem; border: 1px solid transparent; border-radius: 20px;
    background: transparent; color: var(--text); font: inherit; text-align: left; cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.feature-nav button:hover { background: color-mix(in srgb, var(--surface) 60%, transparent); }
.feature-nav [aria-selected="true"] { background: var(--surface); border-color: color-mix(in srgb, var(--accent) 35%, transparent); box-shadow: var(--shadow); }
.feature-nav-icon {
    position: relative; display: grid; place-items: center; width: 2.9rem; height: 2.9rem; border-radius: 14px;
    background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent);
    transition: background 0.2s ease, color 0.2s ease;
}
.feature-nav [aria-selected="true"] .feature-nav-icon { background: var(--logo); color: #FFFFFF; }
.feature-nav [aria-selected="true"] .feature-nav-icon::after { content: ""; position: absolute; top: -3px; right: -3px; width: 0.6rem; height: 0.6rem; background: var(--spark); }
.feature-nav-title { font-family: var(--display); font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; }
.feature-nav-text, .feature-nav-detail { grid-column: 2; display: block; margin-top: 0.45rem; }
.feature-nav-detail { color: var(--text-2); font-size: 0.97rem; }
/* Com o script a funcionar, só o item escolhido mostra a descrição. */
.is-enhanced .feature-nav [aria-selected="false"] .feature-nav-text,
.is-enhanced .feature-nav [aria-selected="false"] .feature-nav-detail { display: none; }
.feature-stage {
    display: grid; gap: 2rem; justify-items: center; padding: 2.5rem 1.5rem; border-radius: 32px;
    background:
        linear-gradient(var(--spark), var(--spark)) right 1.5rem top 1.5rem / 0.9rem 0.9rem no-repeat,
        repeating-linear-gradient(to bottom, transparent 0 13px, var(--hero-lines) 13px 14px) left 0 bottom 3rem / 100% 70px no-repeat,
        var(--hero-bg);
}
.feature-shot { width: min(100%, 16rem); }
.feature-shot[hidden] { display: none; }
.is-enhanced .feature-stage { position: sticky; top: 5.5rem; }
.is-enhanced .feature-shot:not([hidden]) { animation: shot-in 0.45s cubic-bezier(0.2, 0.7, 0.2, 1); }
@keyframes shot-in { from { opacity: 0; transform: translateY(18px) scale(0.98); } }

/* O resto do que o app faz, em cartões */

.more-grid { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.more-grid li { padding: 1.4rem; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); }
.more-icon {
    position: relative; display: grid; place-items: center; width: 2.9rem; height: 2.9rem; margin-bottom: 1rem; border-radius: 14px;
    background: linear-gradient(160deg, var(--hero-top), var(--hero-bottom)); color: #FFFFFF;
}
/* O quadrado do logótipo, no canto de cada pastilha. */
.more-icon::after { content: ""; position: absolute; top: -3px; right: -3px; width: 0.6rem; height: 0.6rem; background: var(--spark); }
.more-grid h3 { font-size: 1.1rem; }
.more-grid p { margin-top: 0.5rem; color: var(--text-2); font-size: 0.98rem; }

/* Transposição */

.transpose { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 3rem; align-items: center; }
.sheet { padding: 1.5rem; border-radius: 22px; background: var(--surface); box-shadow: var(--shadow); }
.sheet-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.sheet-title { font-size: 1.15rem; }
.sheet-key { margin-top: 0.2rem; color: var(--text-2); font-weight: 600; }
.sheet-key output { color: var(--text); }
.sheet-controls { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.sheet-controls button {
    min-width: 2.9rem; height: 2.9rem; padding-inline: 0.9rem;
    border: 0; border-radius: 14px; background: var(--raised); color: var(--accent);
    font: 700 1.25rem/1 var(--body); cursor: pointer;
}
.sheet-controls button:hover { background: color-mix(in srgb, var(--accent) 16%, var(--raised)); }
.sheet-controls .sheet-reset { font-size: 0.9rem; }
.chord-line { display: flex; flex-wrap: wrap; align-items: flex-end; row-gap: 0.4rem; margin-top: 0.6rem; font-size: 1.2rem; }
.chord-piece { display: inline-flex; flex-direction: column; white-space: pre; }
.chord { min-height: 1.4em; padding-right: 0.5ch; color: var(--accent); font-weight: 700; font-size: 0.95em; }
.sheet-credit { margin-top: 1.5rem; color: var(--text-2); font-size: 0.85rem; }

/* Para quem é */

.who-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 3rem; margin-top: 2rem; }
.who h3 { font-size: 1.15rem; }
.who ul { margin-top: 0.9rem; padding-left: 1.1rem; }
.who li { padding-block: 0.3rem; }
.who li::marker { color: var(--accent); }

/* Planos: um cartão por plano. O gratuito é o ponto de partida e fica mais discreto. */

.plan-cards { list-style: none; margin: 2.25rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; align-items: stretch; }
.plan-card {
    position: relative; display: flex; flex-direction: column; padding: 1.6rem 1.5rem; border-radius: 24px;
    background: var(--surface); box-shadow: var(--shadow);
}
/* O gratuito é o ponto de partida: só o contorno. */
.plan-card-free { background: transparent; box-shadow: none; border: 1.5px dashed color-mix(in srgb, var(--text-2) 45%, transparent); }
/* O de uma igreja vai em destaque, com o azul do logótipo e o quadrado ciano no canto. */
.plan-card-featured { background: var(--logo); color: #FFFFFF; box-shadow: 0 22px 44px rgba(10, 107, 115, 0.3); }
.plan-card-featured::after { content: ""; position: absolute; top: 1.4rem; right: 1.4rem; width: 0.85rem; height: 0.85rem; background: var(--spark); }
.plan-card h3 { font-family: var(--display); font-size: 1.6rem; font-weight: 750; letter-spacing: -0.03em; }
.plan-for { margin-top: 0.4rem; color: var(--text-2); font-size: 0.95rem; min-height: 3.2em; }
.plan-price { margin-top: 1.1rem; padding-block: 1rem; border-block: 1px solid var(--line); font-weight: 700; }
.plan-card-free .plan-price { font-family: var(--display); font-size: 2rem; font-weight: 750; letter-spacing: -0.03em; }
.plan-amount { font-family: var(--display); font-size: 2rem; font-weight: 750; letter-spacing: -0.03em; }
.plan-yearly { display: block; margin-top: 0.35rem; color: var(--text-2); font-size: 0.9rem; font-weight: 600; }
.plan-saving { display: inline-block; margin-left: 0.25rem; padding: 0.05rem 0.5rem; border-radius: 999px; background: color-mix(in srgb, var(--spark) 22%, transparent); color: var(--text); font-weight: 700; white-space: nowrap; }
.plan-card ul { list-style: none; margin: 1.1rem 0 0; padding: 0; }
.plan-card li { position: relative; padding: 0.38rem 0 0.38rem 1.6rem; font-size: 0.97rem; }
.plan-card li::before {
    content: ""; position: absolute; left: 0.15rem; top: 0.75rem; width: 0.75rem; height: 0.4rem;
    border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg);
}
.plan-card-featured .plan-for, .plan-card-featured .plan-yearly { color: rgba(255, 255, 255, 0.84); }
.plan-card-featured .plan-price { border-color: rgba(255, 255, 255, 0.24); }
.plan-card-featured .plan-saving { background: rgba(255, 255, 255, 0.18); color: #FFFFFF; }
.plan-card-featured li::before { border-color: var(--spark); }
.plans-note { max-width: 46rem; margin: 1.75rem auto 0; color: var(--text-2); font-size: 0.95rem; text-align: center; }
.heading-center { text-align: center; }

.closing { display: flex; flex-direction: column; align-items: center; text-align: center; }
.closing img { border-radius: 18px; box-shadow: var(--shadow); }
.closing h2 { margin-top: 1.25rem; }
.closing .store-badges { margin-top: 1.5rem; justify-content: center; }
/* A versão web, ao lado das lojas: o mesmo formato, com contorno em vez do azul cheio. */
.store-badge-web { background: var(--surface); color: var(--accent); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 55%, transparent), var(--shadow); }
.store-badge-web:hover { box-shadow: inset 0 0 0 1.5px var(--accent), var(--shadow); }

/* Cabeça das páginas de conteúdo (blog, comunidade) */

/* A cabeça das páginas de conteúdo repete o fundo da abertura, com a pauta e o quadrado ciano. */
.page-band {
    margin-bottom: 2.5rem;
    background:
        linear-gradient(var(--spark), var(--spark)) right max(1.25rem, calc((100% - 68rem) / 2)) top 2.25rem / 0.9rem 0.9rem no-repeat,
        repeating-linear-gradient(to bottom, transparent 0 13px, var(--hero-lines) 13px 14px) left 0 bottom 1rem / 100% 70px no-repeat,
        var(--hero-bg);
    color: var(--hero-ink);
}
.page-head { padding-block: 4rem 4.5rem; }
.page-head h1 { max-width: 48rem; font-size: clamp(2.3rem, 5vw, 3.6rem); }
.page-head .lead { max-width: 40rem; color: var(--hero-lead); }
.page-meta { margin-top: 1rem; color: var(--hero-lead); font-size: 0.92rem; font-weight: 600; }
.empty-note { padding: 1.5rem 0 4rem; color: var(--text-2); }
.section-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 1.5rem; }
/* Botão secundário: contorno no azul do site, que se enche ao passar o rato. */
.button-outline {
    display: inline-flex; align-items: center; gap: 0.55rem;
    padding: 0.75rem 1.2rem; border-radius: 14px; border: 1.5px solid color-mix(in srgb, var(--accent) 55%, transparent);
    background: color-mix(in srgb, var(--accent) 6%, transparent); color: var(--accent);
    font-weight: 700; text-decoration: none; transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.button-outline:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.button-outline svg { flex: none; transition: transform 0.15s ease; }
.button-outline:hover svg:last-child { transform: translateX(3px); }
.section-row { align-items: center; }

/* Blog: lista de artigos e artigo */

.blog-list { padding-bottom: 4.5rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Pesquisa, categorias e etiquetas do blog */
.blog-tools { display: grid; gap: 1rem; }
.blog-search {
    display: flex; align-items: center; gap: 0.5rem; width: min(100%, 34rem);
    padding: 0.3rem 0.3rem 0.3rem 0.9rem; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); color: var(--text-2);
}
.blog-search:focus-within { box-shadow: 0 0 0 2px var(--accent), var(--shadow); }
.blog-search input { flex: 1; min-width: 0; padding: 0.55rem 0.25rem; border: 0; background: transparent; color: var(--text); font: inherit; outline: none; }
.blog-search button { padding: 0.6rem 1rem; border: 0; border-radius: 12px; background: var(--logo); color: #FFFFFF; font: inherit; font-weight: 700; cursor: pointer; }
.chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
    display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.45rem 0.9rem; border-radius: 999px;
    background: var(--raised); color: var(--text); font-size: 0.92rem; font-weight: 700; text-decoration: none;
}
.chip span { color: var(--text-2); font-weight: 600; }
.chip:hover { background: color-mix(in srgb, var(--accent) 14%, var(--raised)); }
.chip[aria-current] { background: var(--logo); color: #FFFFFF; }
.chip[aria-current] span { color: rgba(255, 255, 255, 0.8); }
.chip-small { padding: 0.25rem 0.7rem; font-size: 0.82rem; }
.tag { display: inline-block; padding: 0.2rem 0.6rem; border-radius: 8px; border: 1px solid var(--line); color: var(--text-2); font-size: 0.88rem; font-weight: 600; text-decoration: none; }
.tag:hover, .tag[aria-current] { border-color: var(--accent); color: var(--accent); }
.tag-cloud { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.tag-cloud h2 { font-size: 1.2rem; }
.tag-cloud p { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.9rem; }
.blog-status { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 1.5rem; margin-top: 1.75rem; padding: 0.9rem 1.1rem; border-radius: 14px; background: var(--raised); }
.blog-status a { font-weight: 700; }
.post-card-category { display: inline-block; margin-right: 0.5rem; padding: 0.1rem 0.55rem; border-radius: 999px; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); font-weight: 700; }
.post-grid { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 1.5rem; }
.post-card-link { display: flex; flex-direction: column; height: 100%; color: var(--text); text-decoration: none; }
.post-card-cover { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 18px; background: var(--raised); }
.post-card-cover-empty {
    display: block;
    background:
        linear-gradient(var(--spark), var(--spark)) right 1.1rem top 1.1rem / 0.9rem 0.9rem no-repeat,
        repeating-linear-gradient(to bottom, transparent 0 11px, rgba(255, 255, 255, 0.16) 11px 12px) left 0 bottom 1.25rem / 100% 60px no-repeat,
        linear-gradient(160deg, var(--hero-top), var(--hero-bottom));
}
.post-card-meta { margin-top: 1rem; color: var(--text-2); font-size: 0.88rem; font-weight: 600; }
.post-card h3 { margin-top: 0.35rem; font-family: var(--display); font-size: 1.4rem; font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
.post-card p { margin-top: 0.5rem; color: var(--text-2); font-size: 0.98rem; }
.post-card-link:hover h3 { color: var(--accent); }
.post-card-link:hover .post-card-cover { filter: saturate(1.15); }
.blog-pages { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; }

.article-head { padding-block: 3rem 2rem; }
.article-back { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; }
.article-back a { font-weight: 700; text-decoration: none; }
.article-head h1 { margin-top: 1rem; font-size: clamp(2.2rem, 5vw, 3.4rem); }
.article-meta { margin-top: 1.25rem; color: var(--text-2); font-size: 0.95rem; }
.article-cover { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 24px; }
/* A imagem da marca, num artigo sem capa, é mais baixa: não tem nada para mostrar além da identidade. */
.article-cover.post-card-cover-empty { aspect-ratio: 16 / 5; }
/* O texto do artigo: medida de leitura curta e entrelinha folgada. */
/* O texto e a coluna lateral: a medida de leitura fica igual, a coluna vem ao lado no computador. */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 18rem; gap: 3.5rem; align-items: start; }
.article { min-width: 0; }
.article-body { max-width: 44rem; padding-block: 2.5rem 4.5rem; font-size: 1.125rem; line-height: 1.75; }
.article-body h2 { scroll-margin-top: 5.5rem; }
.article-side { display: grid; align-content: start; gap: 1.25rem; padding-block: 3rem 4.5rem; position: sticky; top: 4.5rem; max-height: calc(100vh - 4.5rem); overflow-y: auto; }
.side-block { padding: 1.2rem 1.25rem; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); }
.side-block h2 { font-family: var(--body); font-size: 0.82rem; font-weight: 800; letter-spacing: 0.02em; color: var(--text-2); }
.side-block h2 + * { margin-top: 0.7rem; }
.side-block p + h2 { margin-top: 1.1rem; }
.side-toc { list-style: none; margin: 0; padding: 0 0 0 0.85rem; border-left: 2px solid var(--line); }
.side-toc li + li { margin-top: 0.5rem; }
.side-toc a { color: var(--text); font-size: 0.93rem; text-decoration: none; }
.side-toc a:hover { color: var(--accent); }
.side-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.side-posts { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.85rem; }
.side-posts a { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: 0.75rem; align-items: center; color: var(--text); text-decoration: none; }
.side-posts img, .side-posts .post-card-cover-empty { width: 4.5rem; height: 3.4rem; object-fit: cover; border-radius: 10px; }
/* A miniatura sem capa: a mesma imagem da marca, em ponto pequeno. */
.side-posts .post-card-cover-empty {
    background:
        linear-gradient(var(--spark), var(--spark)) right 0.4rem top 0.4rem / 0.45rem 0.45rem no-repeat,
        repeating-linear-gradient(to bottom, transparent 0 5px, rgba(255, 255, 255, 0.18) 5px 6px) left 0 bottom 0.35rem / 100% 30px no-repeat,
        linear-gradient(160deg, var(--hero-top), var(--hero-bottom));
}
.side-posts strong { display: block; font-size: 0.93rem; line-height: 1.3; }
.side-posts span span { display: block; margin-top: 0.15rem; color: var(--text-2); font-size: 0.8rem; }
.side-posts a:hover strong { color: var(--accent); }
.article-side .blog-search { width: 100%; }
.article-side .blog-search button { display: none; }
/* Sem capa, o texto vem logo a seguir à cabeça. */
.article-body > * + * { margin-top: 1.15em; }
.article-body h2 { margin-top: 2em; font-size: 1.75rem; }
.article-body h3 { margin-top: 1.75em; font-size: 1.2rem; }
.article-body ul, .article-body ol { padding-left: 1.3rem; }
.article-body li + li { margin-top: 0.4em; }
.article-body li::marker { color: var(--accent); }
.article-body blockquote {
    margin-inline: 0; padding: 0.2rem 0 0.2rem 1.25rem; border-left: 4px solid var(--spark);
    font-family: var(--display); font-size: 1.3rem; font-weight: 500; line-height: 1.45;
}
.article-body img { max-width: 100%; height: auto; border-radius: 16px; }
.article-body code { padding: 0.1em 0.35em; border-radius: 6px; background: var(--raised); font-size: 0.9em; }
.article-body pre { overflow-x: auto; padding: 1rem; border-radius: 14px; background: var(--raised); }
.article-body pre code { padding: 0; background: none; }
.article-body hr { border: 0; border-top: 1px solid var(--line); }

/*
 * Testemunhos: o primeiro em destaque, no azul do logótipo e com a letra maior; os outros em cartões
 * ao lado. Cada pessoa tem as iniciais num quadrado arredondado com o ponto ciano, como o logótipo.
 */
.voices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin-top: 2rem; }
.voice {
    position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem;
    margin: 0; padding: 1.75rem; border-radius: 24px; background: var(--surface); box-shadow: var(--shadow);
}
.voice::before {
    content: "\201C"; display: block; height: 0.55em; margin-bottom: -0.2rem;
    font: 800 4rem/1 var(--display); color: var(--accent);
}
.voice blockquote { margin: 0; flex: 1; font-family: var(--display); font-size: 1.2rem; font-weight: 500; line-height: 1.4; letter-spacing: -0.015em; }
.voice figcaption { display: flex; align-items: center; gap: 0.85rem; font-size: 0.95rem; }
.voice-avatar {
    position: relative; display: grid; place-items: center; flex: none; width: 2.75rem; height: 2.75rem; border-radius: 12px;
    background: var(--logo); color: #FFFFFF; font: 700 0.95rem/1 var(--display); letter-spacing: 0.02em;
}
.voice-avatar::after { content: ""; position: absolute; top: -3px; right: -3px; width: 0.6rem; height: 0.6rem; background: var(--spark); }
.voice-who span { display: block; color: var(--text-2); }
.voice:first-child { grid-column: span 2; grid-row: span 2; padding: 2.5rem;
    background: repeating-linear-gradient(to bottom, transparent 0 13px, rgba(255, 255, 255, 0.14) 13px 14px) left 0 bottom 6.5rem / 100% 70px no-repeat, var(--logo); color: #FFFFFF; box-shadow: 0 22px 44px rgba(10, 107, 115, 0.28); }
.voice:first-child::before { font-size: 6rem; color: var(--spark); }
.voice:first-child blockquote { font-size: clamp(1.6rem, 3.1vw, 2.55rem); line-height: 1.22; letter-spacing: -0.02em; }
.voice:first-child .voice-avatar { background: #FFFFFF; color: #0A6B73; }
.voice:first-child .voice-who span { color: rgba(255, 255, 255, 0.82); }
.voice:only-child { grid-column: 1 / -1; grid-row: auto; }

/* Comunidade */

.community-block { padding-bottom: 4rem; }
.community-block h2 { margin-top: 1rem; }
.channel-grid { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: 1rem; }
.channel {
    display: flex; align-items: center; gap: 1rem; height: 100%; padding: 1.1rem 1.25rem; border-radius: 18px;
    background: var(--surface); box-shadow: var(--shadow); color: var(--text); text-decoration: none;
}
.channel:hover { box-shadow: 0 0 0 2px var(--accent), var(--shadow); }
.channel-icon { display: grid; place-items: center; flex: none; width: 3rem; height: 3rem; border-radius: 14px; background: linear-gradient(160deg, var(--hero-top), var(--hero-bottom)); color: #FFFFFF; }
.channel-text strong { display: block; font-size: 1.05rem; }
.channel-text span { display: block; margin-top: 0.15rem; color: var(--text-2); font-size: 0.93rem; }
.contribute { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem 2rem; }
.contribute li { padding-top: 1rem; border-top: 3px solid var(--line); }
.contribute h3 { font-size: 1.1rem; }
.contribute p { margin-top: 0.45rem; color: var(--text-2); }
.contribute-action { margin-top: 2rem; }

/* Documentos (privacidade, termos, excluir conta): índice fixo à esquerda e o texto ao lado. */

.doc { display: grid; grid-template-columns: 15rem minmax(0, 42rem); gap: 3.5rem; justify-content: center; padding-bottom: 4.5rem; }
.doc-toc details { position: sticky; top: 5.5rem; }
.doc-toc summary { list-style: none; font-weight: 700; font-size: 0.92rem; color: var(--text-2); cursor: default; pointer-events: none; }
.doc-toc summary::-webkit-details-marker { display: none; }
.doc-toc ol { list-style: none; margin: 0.75rem 0 0; padding: 0 0 0 0.9rem; border-left: 2px solid var(--line); }
.doc-toc li + li { margin-top: 0.55rem; }
.doc-toc a { color: var(--text-2); font-size: 0.93rem; text-decoration: none; }
.doc-toc a:hover { color: var(--accent); }
.doc-body { padding-block: 0; }
.doc-body section { scroll-margin-top: 5.5rem; }
.doc-body section:first-child h2 { margin-top: 0; }
.doc-body h2 { padding-top: 0.2rem; }
.doc-body li::marker { color: var(--accent); }
.doc-cards { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.doc-card {
    display: block; height: 100%; padding: 1.3rem 1.4rem; border-radius: 20px;
    background: var(--surface); box-shadow: var(--shadow); color: var(--text); text-decoration: none;
    border-top: 3px solid var(--spark);
}
.doc-card strong { display: block; font-family: var(--display); font-size: 1.2rem; letter-spacing: -0.015em; }
.doc-card span { display: block; margin-top: 0.35rem; color: var(--text-2); font-size: 0.95rem; }
.doc-card:hover strong { color: var(--accent); }

/* Suporte: as perguntas em acordeão e, ao lado, o contacto em destaque. */

.support { display: grid; grid-template-columns: minmax(0, 1fr) 21rem; gap: 3rem; align-items: start; padding-bottom: 4.5rem; }
.faq { display: grid; gap: 0.75rem; margin-top: 1.25rem; }
.faq-item { border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
.faq-item summary {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 1.1rem 1.3rem; list-style: none; cursor: pointer; font-weight: 700; font-size: 1.05rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
/* A seta da pergunta vira ao abrir. */
.faq-item summary::after {
    content: ""; flex: none; width: 0.65rem; height: 0.65rem; margin-right: 0.2rem;
    border-right: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(45deg) translateY(-3px);
    transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq-item p { padding: 0 1.3rem 1.2rem; color: var(--text-2); }
.support-side { display: grid; gap: 1rem; position: sticky; top: 5.5rem; }
.contact-card { position: relative; padding: 1.75rem; border-radius: 24px; background: var(--logo); color: #FFFFFF; box-shadow: 0 22px 44px rgba(10, 107, 115, 0.28); }
.contact-card::after { content: ""; position: absolute; top: 1.4rem; right: 1.4rem; width: 0.8rem; height: 0.8rem; background: var(--spark); }
.contact-card h2 { font-size: 1.5rem; padding-right: 1.5rem; }
.contact-card p { margin-top: 0.6rem; color: rgba(255, 255, 255, 0.86); font-size: 0.97rem; }
.contact-button { display: inline-block; margin-top: 1.25rem; padding: 0.8rem 1.2rem; border-radius: 14px; background: #FFFFFF; color: #0B3F9E; font-weight: 700; text-decoration: none; }
.contact-button:hover { filter: brightness(0.96); }
.contact-card .contact-email { margin-top: 0.75rem; font-size: 0.9rem; overflow-wrap: anywhere; }
.side-link { display: block; padding: 1.2rem 1.3rem; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); color: var(--text); text-decoration: none; }
.side-link span { display: block; margin-top: 0.3rem; color: var(--text-2); font-size: 0.93rem; }
.side-link:hover strong { color: var(--accent); }

/* Texto corrido */

.prose { max-width: 44rem; padding-block: 3rem 5rem; }
.prose h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.prose h2 { font-size: 1.3rem; margin-top: 2.5rem; }
.prose h3 { font-size: 1.05rem; margin-top: 1.75rem; }
.prose p, .prose ul { margin-top: 0.9rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-top: 0.4rem; }
.prose-meta { color: var(--text-2); font-size: 0.9rem; }

/* O botão principal é o mesmo do "Pesquisar" do blog (.blog-search button): degradê do logótipo, texto branco, nos dois temas. */
.button {
    display: inline-block; padding: 0.6rem 1rem; border: 0; border-radius: 12px;
    background: var(--logo); color: #FFFFFF; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
}
.button:hover { filter: brightness(1.08); }
.button-quiet { background: var(--raised); color: var(--text); }

/* Convite e 404 */

.invite { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: start; padding-block: 3rem 5rem; }
.invite-card { padding: 2rem; border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); }
.invite-card:only-child { grid-column: 1 / -1; max-width: 32rem; margin-inline: auto; text-align: center; }
.invite-card h1 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); }
.invite-card p { margin-top: 1rem; }
.invite-kicker { margin-top: 0 !important; color: var(--text-2); font-weight: 600; }
.invite-kicker + h1 { margin-top: 0.3rem; }
.invite-code-label { color: var(--text-2); font-size: 0.9rem; }
.invite-code {
    margin-top: 0.3rem !important; padding: 0.9rem 1rem; border-radius: 14px; background: var(--raised);
    font: 700 1.9rem/1.2 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: 0.18em; text-align: center;
    overflow-wrap: anywhere;
}
.reset-form { display: grid; gap: 0.5rem; margin-top: 1.5rem; text-align: left; }
.reset-form label { margin-top: 0.5rem; font-weight: 600; font-size: 0.95rem; }
.reset-form input {
    width: 100%; padding: 0.8rem 1rem; border: 1px solid var(--line); border-radius: 12px;
    background: var(--raised); color: var(--text); font: inherit;
}
.reset-form .button { margin-top: 1rem; border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.form-error { margin-top: 0 !important; padding: 0.7rem 1rem; border-radius: 12px; border: 1px solid currentColor; color: var(--danger); font-weight: 600; }
.invite-expires { color: var(--text-2); font-size: 0.9rem; }
.invite-steps h2 { font-size: 1.3rem; }
.invite-steps ol { margin-top: 1rem; padding-left: 1.3rem; }
.invite-steps li { padding-block: 0.4rem; }

/* Telas estreitas */

@media (max-width: 64rem) {
    .plan-cards, .more-grid, .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 52rem) {
    /* Cabeçalho do telemóvel: o logótipo e o botão do menu; o resto num painel que se abre por baixo. */
    .header-row { flex-wrap: wrap; gap: 0.75rem; }
    .site-menu { width: 100%; flex-direction: column; align-items: stretch; gap: 0.25rem; }
    .site-nav { flex-direction: column; gap: 0; }
    .site-nav a { display: flex; align-items: center; min-height: 2.75rem; padding: 0 0.25rem; font-size: 1.05rem; }
    .site-nav .nav-cta { justify-content: center; margin: 0.4rem 0; padding: 0 1rem; }
    .site-menu-settings { justify-content: space-between; padding: 0.6rem 0.25rem 0.2rem; border-top: 1px solid var(--line); }
    .has-menu .menu-toggle { display: grid; }
    .has-menu .site-menu {
        display: none; position: absolute; left: 0; right: 0; top: 100%;
        padding: 0.5rem 1.25rem 1rem; background: var(--surface);
        border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px rgba(12, 31, 23, 0.12);
    }
    .has-menu .site-menu.is-open { display: flex; animation: menu-in 0.16s ease-out; }
    .hero, .transpose, .invite, .feature-tabs { grid-template-columns: 1fr; }
    .band { padding-block: 3.25rem; }
    .hero { gap: 2.5rem; }
    .hero-shots .phone { flex-basis: 11.5rem; }
    .hero-shots .phone:last-child { margin-left: -2.5rem; }
    .feature-tabs { gap: 2rem; }
    .is-enhanced .feature-stage { position: static; }
    .who-columns { grid-template-columns: 1fr; }
    .contribute { grid-template-columns: 1fr; }
    .article-layout { grid-template-columns: 1fr; gap: 0; }
    .article-side { position: static; max-height: none; overflow: visible; padding-top: 0; }
    .doc, .support { grid-template-columns: 1fr; gap: 1.75rem; }
    .doc-toc details { position: static; padding: 1rem 1.2rem; border-radius: 16px; background: var(--raised); }
    .doc-toc summary { pointer-events: auto; cursor: pointer; }
    .support-side { position: static; }
    .doc-cards { grid-template-columns: 1fr; }
    .page-head { padding-block: 2.75rem 3.25rem; }
    .voices { grid-template-columns: 1fr; }
    .voice:first-child { grid-column: auto; grid-row: auto; padding: 1.9rem; background: var(--logo); }
    .band-hero { padding-block: 3rem 4rem; }
    .article-head { padding-top: 2.25rem; }
}

@media (max-width: 36rem) {
    .plan-cards, .more-grid, .post-grid, .contribute { grid-template-columns: 1fr; }
    .plan-for { min-height: 0; }
}

@keyframes menu-in { from { opacity: 0; transform: translateY(-6px); } }

@media (max-width: 30rem) {
    .chord-line { font-size: 1.05rem; }
}

@media (prefers-reduced-motion: reduce) {
    .has-menu .site-menu.is-open, .hw[data-chord]::before, .hero-shots .phone, .is-enhanced .feature-shot:not([hidden]) { animation: none; }
    .hero-shots .phone, .store-badge, .feature-nav button, .button-outline, .button-outline svg, .faq-item summary::after { transition: none; }
    html { scroll-behavior: auto; }
}