/*
 * Site público do Lembretes. Cores espelham src/theme/tokens.css (BoardUI carmim):
 * claro em :root, escuro por prefers-color-scheme. Peso máximo 600.
 */
:root {
  --bg-canvas: #fbf8f4;
  --bg-panel: #ffffff;
  --border-subtle: #e7dfd4;
  --text-primary: #211c18;
  --text-secondary: #5c5248;
  --fita-viva: #e0314b;
  --botao-bg: #b91f3b;
  --botao-bg-hover: #b91933;
  --botao-texto: #ffffff;
  --link: #b91933;
  --foco: #211c18;
  --shadow-card: 0 2px 8px rgba(33, 28, 24, 0.06), 0 1px 2px rgba(33, 28, 24, 0.05);
  --foto-fundo: #f3e6dc;
  --foto-fundo-claro: #f9dfe1;
  --demo-bg: #67283a;
  --demo-fg: #fff8f3;
  --demo-paper: #fff8ed;
  --demo-ink: #39251e;
  --demo-fita: #a22246;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-canvas: #161311;
    --bg-panel: #201c19;
    --border-subtle: #38302b;
    --text-primary: #f6f1eb;
    --text-secondary: #c5b9ad;
    --fita-viva: #ff5c74;
    --botao-bg: #b91f3b;
    --botao-bg-hover: #b91933;
    --link: #fda1ac;
    --foco: #f6f1eb;
    --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.3);
    --foto-fundo: #332621;
    --foto-fundo-claro: #49272c;
  }
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg-canvas);
  color: var(--text-primary);
  font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

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

.pular {
  position: absolute;
  inset-inline-start: 16px;
  inset-block-start: -48px;
  padding: 8px 12px;
  background: var(--bg-panel);
  color: var(--text-primary);
  border-radius: 8px;
}
.pular:focus { inset-block-start: 12px; }

.topo, main, .rodape {
  width: min(100% - 3rem, 77rem);
  margin-inline: auto;
}

.topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 16px;
  min-height: 4.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.marca {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.0625rem;
}

.topo nav { display: flex; gap: 20px; }
.topo nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
}
.topo nav a:hover { color: var(--text-primary); }

.lacinho {
  stroke: var(--fita-viva);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.heroi {
  padding-block: clamp(3.25rem, 5vw, 5rem) clamp(3.5rem, 7vw, 6rem);
}

.heroi-texto { text-align: center; margin-inline: auto; }

h1, h2, h3 { font-weight: 600; line-height: 1.2; margin: 0; letter-spacing: -0.01em; }

h1 {
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: .98;
  letter-spacing: -.064em;
}

h1 span {
  color: var(--link);
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.065em;
}

.lead {
  max-width: 43ch;
  margin: 1.625rem auto 0;
  color: var(--text-secondary);
  font-size: 1.125rem;
  text-wrap: pretty;
}

.acoes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-block-start: 32px;
}

.botao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding-inline: 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition-property: background-color, transform;
  transition-duration: 150ms;
}
.botao:active { transform: scale(0.96); }
@media (prefers-reduced-motion: reduce) { .botao { transition: none; } .botao:active { transform: none; } }

.botao-primario { background: var(--botao-bg); color: var(--botao-texto); }
.botao-primario:hover { background: var(--botao-bg-hover); }

.botao-secundario {
  background: var(--bg-panel);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.nota {
  margin-block-start: 16px;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.captura {
  max-width: 69rem;
  margin: clamp(2.25rem, 4vw, 3.75rem) auto 0;
  padding: clamp(.75rem, 4vw, 3.25rem) clamp(.75rem, 5vw, 4.25rem) 1rem;
  background:
    radial-gradient(circle at 20% 0%, var(--foto-fundo-claro), transparent 70%),
    var(--foto-fundo);
  border-radius: clamp(1rem, 2vw, 1.75rem);
}

.captura figcaption {
  text-align: center;
  margin-top: .875rem;
  color: var(--text-secondary);
  font-size: .875rem;
}

.captura img, .captura-compositor img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: .75rem;
  box-shadow: 0 .65rem 2rem rgba(37, 23, 13, .14);
}

.secao {
  border-top: 1px solid var(--border-subtle);
  padding-block: clamp(3rem, 6vw, 5.25rem);
}

.secao h2 {
  font-size: clamp(1.85rem, 4vw, 3.25rem);
  letter-spacing: -.045em;
}

.secao-recursos {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.captura-compositor { margin: 0; }
.captura-compositor figcaption { margin-block-start: .75rem; color: var(--text-secondary); font-size: .875rem; }

.recursos {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.recursos li {
  border-bottom: 1px solid var(--border-subtle);
  padding-block: .875rem;
}

.recursos li:last-child { border-bottom: 0; }

.versao {
  background: var(--bg-panel);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  padding: 20px;
}

.recursos h3 { font-size: 1.0625rem; }
.recursos p { margin: 8px 0 0; color: var(--text-secondary); font-size: 0.9375rem; }
.secao-experimento {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  margin-block: 1rem clamp(3rem, 6vw, 5rem);
  border-top: 0;
  border-radius: 1.75rem;
  padding: clamp(1.5rem, 6vw, 5.25rem);
  background: var(--demo-bg);
  color: var(--demo-fg);
}

.secao-experimento p { max-width: 37ch; }
.demonstracao { min-width: 0; }

.demo-cartao {
  position: relative;
  min-height: 10rem;
  padding: 1.5rem 4rem 1.25rem 1.5rem;
  border-radius: 1rem;
  background: var(--demo-paper);
  color: var(--demo-ink);
}

.demo-laco {
  position: absolute;
  right: .65rem;
  top: .65rem;
  stroke: var(--demo-fita);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .34s ease, opacity .28s ease;
}

.demo-desfeito .demo-laco { transform: translate(.4rem, .8rem) rotate(-22deg) scale(.7); opacity: 0; }
.demo-desfeito h3 { text-decoration: line-through; }
.demo-acoes { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-top: 1rem; }
#demo-acao { background: var(--demo-fg); color: var(--demo-bg); border: 0; cursor: pointer; font-family: inherit; }
#demo-acao:hover { background: var(--demo-paper); }
#demo-acao:focus-visible { outline-color: var(--demo-fg); }
#demo-acao[hidden] { display: none; }
#demo-estado { font-size: .92rem; }

.faixa-download {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  margin-bottom: clamp(3rem, 6vw, 5rem);
  padding: clamp(1.5rem, 4vw, 3rem);
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: 1.25rem;
}

.faixa-download h2 { font-size: clamp(1.65rem, 3vw, 2.5rem); letter-spacing: -.04em; }
.faixa-download p { margin: .5rem 0 0; color: var(--text-secondary); }
.historico { margin-top: 1rem; }
.historico summary { cursor: pointer; color: var(--link); width: fit-content; padding-block: .625rem; }

.versoes { display: grid; gap: 16px; margin-block-start: 24px; }

.versao h3 { font-size: 1.125rem; }
.versao h3 time { font-weight: 400; color: var(--text-secondary); font-size: 0.9375rem; margin-inline-start: 8px; }
.versao h4 {
  margin: 16px 0 4px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.versao ul { margin: 0; padding-inline-start: 20px; }
.versao li { margin-block: 6px; color: var(--text-secondary); }
.versao li strong { color: var(--text-primary); font-weight: 600; }
.versao code {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.875em;
}

.rodape {
  border-top: 1px solid var(--border-subtle);
  padding-block: 32px 48px;
  color: var(--text-secondary);
  font-size: 0.875rem;
  text-align: center;
}

@media (max-width: 52rem) {
  .secao-recursos, .secao-experimento { grid-template-columns: 1fr; }
}

@media (max-width: 34rem) {
  .topo, main, .rodape { width: calc(100% - 2rem); }
  .topo nav { gap: .875rem; }
  .topo nav a { font-size: .875rem; }
}

@media (prefers-reduced-motion: reduce) {
  .demo-laco { transition: none; }
}
