/* ═══════════════════════════════════════════════════════════════════════
   Rádios Lusófonas — folha de estilo única.

   A paleta é a mesma da aplicação Android (ui/theme/Theme.kt): o cobalto do
   azulejo, o âmbar da lâmpada do mostrador, o vermelho reservado a estado.
   Quem chega pela pesquisa e depois instala a aplicação tem de reconhecer
   o mesmo produto.

   Sem webfonts, de propósito: uma ligação a fonts.googleapis.com bloqueia a
   renderização e custa LCP, que é exatamente o que estamos aqui a tentar ganhar.
   ═══════════════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; }

:root {
  /* Azulejo */
  --azul:        #123A8C;
  --azul-mid:    #1B4FB5;
  --azul-deep:   #081C46;
  --azul-abyss:  #050F27;
  --porcelana:   #EEF3FB;
  --dial:        #F5A524;
  --dial-hot:    #FFC163;
  --sinal:       #E5484D;
  --oceano:      #0E7490;
  --ink-on-dial: #3A2400;

  /* Papéis — tema claro */
  --bg:          var(--porcelana);
  --bg-elev:     #FFFFFF;
  --bg-sunken:   #E2EAF7;
  --text:        var(--azul-deep);
  --text-2:      #3A5590;
  --text-dim:    #6B80AE;
  --line:        #C3D2EA;
  --accent:      var(--azul);
  --on-accent:   #FFFFFF;
  --brand-ink:   var(--azul);

  --radius:      14px;
  --radius-sm:   10px;
  --shadow:      0 1px 2px rgba(8,28,70,.06), 0 8px 24px -12px rgba(8,28,70,.24);
  --shadow-lg:   0 2px 4px rgba(8,28,70,.08), 0 24px 48px -20px rgba(8,28,70,.35);

  --display: system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --tech: ui-monospace, "SF Mono", "Cascadia Mono", "Segoe UI Mono", Menlo, Consolas, monospace;

  --wrap: 1140px;
  --player-h: 76px;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:        var(--azul-abyss);
    --bg-elev:   #0A1934;
    --bg-sunken: #081C46;
    --text:      var(--porcelana);
    --text-2:    #A9BFE6;
    --text-dim:  #7089B8;
    --line:      #1C3260;
    --accent:    var(--dial);
    --on-accent: var(--ink-on-dial);
    --brand-ink: var(--dial);
    --shadow:    0 1px 2px rgba(0,0,0,.4), 0 8px 24px -12px rgba(0,0,0,.7);
    --shadow-lg: 0 2px 4px rgba(0,0,0,.5), 0 24px 48px -20px rgba(0,0,0,.8);
  }
}

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--display);
  font-size: 16px;
  line-height: 1.6;
  padding-bottom: calc(var(--player-h) + env(safe-area-inset-bottom));
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }

/* ── Tipografia ──────────────────────────────────────────────────────── */
/* Display carregado e apertado — sinalética de emissão. Os números vivem em
   monospace, porque uma frequência é leitura de instrumento, não prosa. */

h1, h2, h3 { font-weight: 900; letter-spacing: -.03em; line-height: 1.1; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.1rem); }
h2 { font-size: clamp(1.4rem, 1.1rem + 1.1vw, 1.9rem); }
h3 { font-size: 1.15rem; letter-spacing: -.02em; }
p  { margin: 0 0 1em; }

.eyebrow {
  font-family: var(--tech);
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 .6em;
}
.lede { font-size: 1.08rem; color: var(--text-2); max-width: 62ch; }
.muted { color: var(--text-dim); }
.num { font-family: var(--tech); font-variant-numeric: tabular-nums; }

/* ── Motivo azulejo ──────────────────────────────────────────────────── */
/* O mesmo desenho que a aplicação pinta em Canvas: círculo em cada canto (para
   que as rosetas se formem onde quatro ladrilhos se encontram), círculo ao
   centro, losango a ligar os meios das arestas, ponto no centro.
   Vai como máscara e não como imagem, para poder tomar a cor de cada país. */

.azulejo {
  position: absolute;
  inset: 0;
  background: currentColor;
  opacity: .34;
  pointer-events: none;
  --tile: 48px;
  -webkit-mask-image: var(--azulejo-svg);
          mask-image: var(--azulejo-svg);
  -webkit-mask-size: var(--tile) var(--tile);
          mask-size: var(--tile) var(--tile);
  -webkit-mask-repeat: repeat;
          mask-repeat: repeat;
}

/* ── Cabeçalho ───────────────────────────────────────────────────────── */

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header__in {
  display: flex; align-items: center; gap: 18px;
  min-height: 62px;
}
.brand {
  display: inline-flex; align-items: center; gap: 9px;
  text-decoration: none; font-weight: 900; letter-spacing: -.03em;
  font-size: 1.02rem; color: var(--text); white-space: nowrap;
}
/* O aro do mostrador segue a cor do texto, como na aplicação (`onSurface`);
   o âmbar vive dentro do SVG e não muda com o tema. */
.brand__mark { width: 32px; height: 32px; flex: none; color: var(--text); }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  text-decoration: none; font-size: .9rem; font-weight: 600;
  padding: 7px 11px; border-radius: 8px; color: var(--text-2);
}
.nav a:hover { background: var(--bg-sunken); color: var(--text); }
.nav a[aria-current] { color: var(--text); background: var(--bg-sunken); }

.btn-play {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--dial), var(--dial-hot));
  color: var(--ink-on-dial);
  font-weight: 800; font-size: .88rem; letter-spacing: -.01em;
  padding: 9px 15px; border-radius: 999px; text-decoration: none;
  border: 0; cursor: pointer; white-space: nowrap;
  box-shadow: 0 2px 12px -2px rgba(245,165,36,.5);
}
.btn-play:hover { filter: brightness(1.06); }
.btn-play svg { width: 17px; height: 17px; flex: none; }

/* Sélecteur de langue. Il n'apparaît que sur les pages qui existent
   ailleurs — les fiches station sont en portugais seulement, et un sélecteur
   qui renverrait à l'accueil d'une autre langue serait pire que rien. */
.lang-switch {
  display: inline-flex; align-items: center; gap: 2px;
  margin-inline: 4px; padding-inline: 8px;
  border-left: 1px solid var(--line); border-right: 1px solid var(--line);
}
.lang-switch a {
  font-family: var(--tech); font-size: .7rem; font-weight: 500;
  letter-spacing: .06em; padding: 6px 8px; border-radius: 7px;
  color: var(--text-dim); text-decoration: none; white-space: nowrap;
}
.lang-switch a:hover { background: var(--bg-sunken); color: var(--text); }

.nav-toggle {
  display: none; margin-left: auto;
  background: none; border: 1px solid var(--line); border-radius: 9px;
  width: 40px; height: 38px; cursor: pointer; color: var(--text);
  align-items: center; justify-content: center;
}

@media (max-width: 860px) {
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--bg-elev); border-bottom: 1px solid var(--line);
    padding: 10px 20px 16px; box-shadow: var(--shadow);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 11px 12px; }
  .nav .btn-play { justify-content: center; margin-top: 6px; }
  .lang-switch {
    margin: 6px 0 2px; padding: 8px 0 0;
    border-left: 0; border-right: 0; border-top: 1px solid var(--line);
  }
  .lang-switch a { padding: 9px 10px; }
  .nav-toggle { display: inline-flex; }
  /* Marca e menu na primeira linha, pesquisa a toda a largura na segunda —
     senão o campo fica reduzido a «Pesq». */
  .site-header__in { position: relative; flex-wrap: wrap; gap: 10px; padding-block: 9px; }
  .brand { order: 1; }
  .nav-toggle { order: 2; }
}

/* ── Pesquisa ────────────────────────────────────────────────────────── */

.search { position: relative; flex: 1 1 260px; max-width: 380px; }
.search input {
  width: 100%; font: inherit; font-size: .92rem;
  padding: 9px 13px 9px 36px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--bg-elev); color: var(--text);
}
.search input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.search svg {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: var(--text-dim); pointer-events: none;
}
.search__out {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  max-height: 340px; overflow-y: auto; z-index: 50; display: none;
  padding: 5px;
}
.search__out.open { display: block; }
.search__out a {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 9px; border-radius: 9px; text-decoration: none; color: var(--text);
}
.search__out a:hover, .search__out a.hl { background: var(--bg-sunken); }
.search__out img { width: 34px; height: 34px; border-radius: 7px; object-fit: cover; flex: none; }
.search__out b { display: block; font-size: .9rem; font-weight: 700; }
.search__out span { font-size: .76rem; color: var(--text-dim); }
@media (max-width: 860px) { .search { order: 3; flex-basis: 100%; max-width: none; margin-bottom: 10px; } }

/* ── Herói ───────────────────────────────────────────────────────────── */

.hero {
  position: relative; overflow: hidden;
  border-radius: 20px; margin: 22px 0 34px;
  background: linear-gradient(135deg, var(--azul-mid), var(--azul-deep));
  color: #fff; padding: clamp(28px, 4vw, 52px);
  isolation: isolate;
}
.hero .azulejo { color: #8FB4F5; opacity: .26; --tile: 52px; }
.hero > * { position: relative; }
.hero h1 { color: #fff; max-width: 16ch; }
.hero .lede { color: #C9D9F5; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; align-items: center; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 30px; }
.hero__stat b { display: block; font-family: var(--tech); font-size: 1.7rem; font-weight: 700; color: var(--dial-hot); }
.hero__stat span { font-family: var(--tech); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: #92AEE0; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 17px; border-radius: 999px; text-decoration: none;
  font-weight: 700; font-size: .88rem;
  border: 1px solid rgba(255,255,255,.34); color: #fff;
}
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-ghost svg { width: 15px; height: 15px; flex: none; }

/* ── Secções ─────────────────────────────────────────────────────────── */

.section { margin: 0 0 44px; }
.section__head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.section__head h2 { margin: 0; }
.section__head a { margin-left: auto; font-size: .86rem; font-weight: 700; color: var(--accent); text-decoration: none; }
.section__head a:hover { text-decoration: underline; }

/* ── Mosaico de países ───────────────────────────────────────────────── */

.countries { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 12px; }
.country-tile {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--radius); padding: 18px 16px 15px;
  text-decoration: none; color: #fff; min-height: 132px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 3px;
  box-shadow: var(--shadow);
  text-shadow: 0 1px 3px rgba(0,0,0,.45);
}
.country-tile::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(160deg, rgba(0,0,0,.06), rgba(0,0,0,.52));
}
.country-tile .azulejo { z-index: -2; opacity: .5; }
.country-tile b { font-size: 1.12rem; font-weight: 900; letter-spacing: -.03em; line-height: 1.15; }
.country-tile span { font-family: var(--tech); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; opacity: .88; }
.country-tile:hover { transform: translateY(-2px); transition: transform .16s; }

/* ── Grelha de estações ──────────────────────────────────────────────── */

.stations { display: grid; grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); gap: 10px; }

.station {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 12px 9px 9px;
  background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: var(--radius-sm); text-decoration: none; color: var(--text);
  position: relative;
}
.station:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.station__art {
  width: 50px; height: 50px; flex: none; border-radius: 9px;
  object-fit: cover; background: var(--bg-sunken);
}
.station__txt { min-width: 0; flex: 1; }
/* O nome é a ligação a sério — o Google segue-a. O ::after estica-a por cima do
   cartão inteiro, para o clique funcionar em qualquer sítio sem aninhar um
   <button> dentro de um <a>, que seria HTML inválido. */
.station__name {
  display: block; text-decoration: none; color: inherit;
  font-weight: 700; font-size: .94rem; letter-spacing: -.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.station__name::after { content: ""; position: absolute; inset: 0; }
.station__name:focus-visible::after { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--radius-sm); }
.station__meta {
  font-family: var(--tech); font-size: .68rem; letter-spacing: .06em;
  color: var(--text-dim); text-transform: uppercase;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.station__go {
  position: relative; z-index: 1;          /* acima da ligação esticada */
  width: 34px; height: 34px; flex: none; border-radius: 50%;
  border: 0; cursor: pointer; padding: 0;
  display: grid; place-items: center;
  background: var(--bg-sunken); color: var(--accent);
}
.station:hover .station__go { background: var(--accent); color: var(--on-accent); }
.station__go svg { width: 14px; height: 14px; }
.station.is-playing { border-color: var(--accent); }
.station.is-playing .station__go { background: var(--accent); color: var(--on-accent); }

/* ── Página de estação ───────────────────────────────────────────────── */

.st-hero {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: 20px; padding: clamp(22px, 3vw, 34px);
  color: #fff; margin: 22px 0 30px;
  display: flex; gap: 22px; align-items: center; flex-wrap: wrap;
}
.st-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(150deg, rgba(5,15,39,.34), rgba(5,15,39,.8));
}
.st-hero .azulejo { z-index: -2; opacity: .46; }
.st-hero__art {
  width: 124px; height: 124px; flex: none; border-radius: 16px;
  object-fit: cover; background: rgba(255,255,255,.1);
  box-shadow: 0 12px 32px -12px rgba(0,0,0,.7);
}
.st-hero__txt { min-width: 240px; flex: 1; }
.st-hero h1 { color: #fff; margin-bottom: .25em; }
.st-hero__sub { font-family: var(--tech); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: #C9D9F5; }
.st-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

.btn-listen {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 22px; border-radius: 999px; border: 0; cursor: pointer;
  font: inherit; font-weight: 800; font-size: .95rem; letter-spacing: -.01em;
  background: linear-gradient(135deg, var(--dial), var(--dial-hot));
  color: var(--ink-on-dial);
  box-shadow: 0 4px 18px -4px rgba(245,165,36,.6);
}
.btn-listen:hover { filter: brightness(1.06); }
.btn-listen svg { width: 18px; height: 18px; }
.btn-listen[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; }

/* Separadores por borda, não por «gap» sobre um fundo colorido: quando a última
   linha não enche, uma célula vazia deixaria ver o fundo do contentor. */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; margin: 0 0 28px; }
.facts div { padding: 13px 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts dt { font-family: var(--tech); font-size: .64rem; letter-spacing: .13em; text-transform: uppercase; color: var(--text-dim); }
.facts dd { margin: 3px 0 0; font-weight: 700; font-size: .95rem; }
.facts dd a { color: var(--accent); }

.prose { max-width: 68ch; }
.prose h2 { margin-top: 1.6em; }

.tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 26px; padding: 0; list-style: none; }
.tags a {
  display: inline-block; padding: 5px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg-elev);
  font-size: .8rem; font-weight: 600; text-decoration: none; color: var(--text-2);
}
.tags a:hover { border-color: var(--accent); color: var(--accent); }

.notice {
  display: flex; gap: 12px; align-items: flex-start;
  border-left: 3px solid var(--dial);
  background: color-mix(in srgb, var(--dial) 11%, var(--bg-elev));
  padding: 14px 16px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 0 0 26px; font-size: .93rem;
}
.notice svg { width: 20px; height: 20px; flex: none; color: var(--dial); margin-top: 2px; }
.notice p:last-child { margin-bottom: 0; }

/* ── Bloco de conversão ──────────────────────────────────────────────── */

.appcta {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: 20px; padding: clamp(24px, 3.4vw, 40px);
  background: linear-gradient(135deg, var(--azul-mid), var(--azul-deep));
  color: #fff; margin: 0 0 44px;
}
.appcta .azulejo { color: #8FB4F5; opacity: .22; --tile: 46px; }
.appcta > * { position: relative; }
.appcta h2 { color: #fff; }
.appcta p { color: #C9D9F5; max-width: 56ch; }
/* A grelha serve tanto o painel azul como a página de aplicação, que tem fundo
   claro. As cores claras ficam presas ao painel; fora dele herda o texto normal. */
.appcta__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(232px, 1fr)); gap: 18px 26px; margin: 24px 0 26px; }
.appcta__grid h3 { font-size: .98rem; margin-bottom: .3em; }
.appcta__grid p { color: var(--text-2); font-size: .88rem; margin: 0; }
.appcta .appcta__grid h3 { color: #fff; }
.appcta .appcta__grid p { color: #A9BFE6; }

.badge-play {
  display: inline-flex; align-items: center; gap: 11px;
  background: #fff; color: #0B1220;
  padding: 11px 20px 11px 16px; border-radius: 12px;
  text-decoration: none; font-weight: 800;
  box-shadow: 0 8px 24px -10px rgba(0,0,0,.7);
}
.badge-play svg { width: 26px; height: 26px; flex: none; }
.badge-play small { display: block; font-size: .62rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; opacity: .6; }
.badge-play b { display: block; font-size: 1rem; letter-spacing: -.02em; line-height: 1.1; }

/* ── Trilho / migalhas ───────────────────────────────────────────────── */

.crumbs { font-size: .82rem; color: var(--text-dim); margin: 18px 0 0; }
.crumbs a { color: var(--text-dim); text-decoration: none; }
.crumbs a:hover { color: var(--accent); text-decoration: underline; }
.crumbs span { margin: 0 6px; opacity: .5; }

/* ── Estado vazio ────────────────────────────────────────────────────── */

.empty {
  border: 1px dashed var(--line); border-radius: var(--radius);
  padding: 40px 24px; text-align: center; color: var(--text-dim);
  background: var(--bg-elev);
}

/* ── Rodapé ──────────────────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 56px; padding: 36px 0 30px;
  font-size: .88rem; color: var(--text-dim);
  background: var(--bg-elev);
}
.site-footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 26px; margin-bottom: 28px; }
.site-footer h3 { font-size: .68rem; font-family: var(--tech); letter-spacing: .14em; text-transform: uppercase; color: var(--text-dim); font-weight: 500; margin-bottom: .9em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--text-2); text-decoration: none; }
.site-footer a:hover { color: var(--accent); text-decoration: underline; }
.site-footer__legal { border-top: 1px solid var(--line); padding-top: 20px; max-width: 76ch; }

/* ── Leitor fixo ─────────────────────────────────────────────────────── */

.player {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  min-height: var(--player-h);
  padding: 10px 20px calc(10px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg-elev) 94%, transparent);
  backdrop-filter: saturate(1.6) blur(16px);
  border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 14px;
  transform: translateY(105%); transition: transform .22s ease;
}
.player.up { transform: none; }
.player__art { width: 46px; height: 46px; flex: none; border-radius: 9px; object-fit: cover; background: var(--bg-sunken); }
.player__txt { min-width: 0; flex: 1; }
.player__name { font-weight: 800; font-size: .94rem; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player__state { display: flex; align-items: center; gap: 6px; font-family: var(--tech); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); }
.player__btn {
  width: 46px; height: 46px; flex: none; border: 0; border-radius: 50%; cursor: pointer;
  background: linear-gradient(135deg, var(--dial), var(--dial-hot)); color: var(--ink-on-dial);
  display: grid; place-items: center;
}
.player__btn svg { width: 19px; height: 19px; }
.player__close {
  width: 34px; height: 34px; flex: none; border: 1px solid var(--line); border-radius: 50%;
  background: none; color: var(--text-dim); cursor: pointer; display: grid; place-items: center;
}
.player__close svg { width: 14px; height: 14px; }
.player__vol { width: 96px; flex: none; accent-color: var(--accent); }
@media (max-width: 700px) { .player__vol { display: none; } }

.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sinal); flex: none; }
.is-live .live-dot { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .25; } }

.spinner {
  width: 17px; height: 17px; border-radius: 50%;
  border: 2px solid rgba(58,36,0,.28); border-top-color: var(--ink-on-dial);
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ── Formulário ──────────────────────────────────────────────────────── */

.form { max-width: 46rem; display: grid; gap: 15px; }
.form label { display: grid; gap: 5px; font-size: .86rem; font-weight: 700; }
.form input, .form textarea {
  font: inherit; padding: 10px 13px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--bg-elev); color: var(--text);
}
.form input:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.form textarea { min-height: 130px; resize: vertical; }
.form button { justify-self: start; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
