/*
 * Estilo do site.
 *
 * As cores são as mesmas do produto — a fonte da verdade é
 * `packages/design/src/tokens.ts`, e os valores estão copiados aqui de
 * propósito: um site estático de seis páginas não justifica arrastar o pacote
 * de design e um passo de build junto. Se um tom mudar lá, mude aqui à mão.
 */

:root {
  --accent-200: #e7e5fe;
  --accent-300: #d2cefd;
  --accent-400: #b5abfc;
  --accent-500: #968ae0;
  --accent-700: #5d5294;
  --accent-900: #2b2741;

  --surface-background: #161826;
  --surface-raised: #1b1d2b;
  --surface-surface: #232532;

  --text-primary: #e9e9ed;
  --text-secondary: #b2b6ca;
  --text-tertiary: #9397ab;
  --text-faint: #75798c;

  --neutral-700: #595d6c;

  --measure: 34rem;
}

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

html {
  /* Sem isto, o salto para uma âncora esconde o título atrás do topo. */
  scroll-padding-top: 2rem;
}

body {
  margin: 0;
  padding: 0 1.25rem 5rem;
  background: var(--surface-background);
  color: var(--text-secondary);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

main,
header,
footer {
  max-width: var(--measure);
  margin: 0 auto;
}

/* ——— topo ——— */

header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 2rem 0 1rem;
}

header img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

header a {
  color: var(--text-primary);
  font-weight: 600;
  text-decoration: none;
  letter-spacing: -0.01em;
}

header nav {
  margin-left: auto;
  display: flex;
  gap: 1rem;
  font-size: 15px;
}

header nav a {
  color: var(--text-tertiary);
  text-decoration: none;
}

header nav a:hover {
  color: var(--accent-300);
}

/* ——— texto ——— */

h1 {
  color: var(--text-primary);
  font-size: clamp(2rem, 7vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 2rem 0 0.75rem;
}

h2 {
  color: var(--text-primary);
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  margin: 2.5rem 0 0.5rem;
}

h3 {
  color: var(--text-primary);
  font-size: 1rem;
  margin: 1.75rem 0 0.25rem;
}

p {
  margin: 0 0 1rem;
}

.lead {
  font-size: 1.15rem;
  color: var(--text-secondary);
}

a {
  color: var(--accent-300);
}

strong {
  color: var(--text-primary);
  font-weight: 600;
}

ul {
  padding-left: 1.1rem;
}

li {
  margin-bottom: 0.5rem;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  color: var(--accent-200);
}

/* ——— peças ——— */

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 2rem 0 0.75rem;
}

/*
 * O botão de baixar herda o "vidro com brilho" do app: mesma família de roxo,
 * degradê de cima para baixo, borda acesa e um halo. Reconhecer o botão antes
 * de ler o rótulo é o ponto.
 */
.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: 14px;
  border: 1px solid var(--accent-500);
  background: linear-gradient(180deg, rgba(181, 171, 252, 0.42), rgba(93, 82, 148, 0.32));
  box-shadow: 0 8px 28px rgba(181, 171, 252, 0.28);
  color: #f5f4ff;
  font-weight: 600;
  text-decoration: none;
}

.button:hover {
  box-shadow: 0 8px 34px rgba(181, 171, 252, 0.42);
}

.button--ghost {
  background: none;
  border-color: var(--neutral-700);
  box-shadow: none;
  color: var(--text-secondary);
}

.card {
  background: var(--surface-raised);
  border: 1px solid #2a2d3d;
  border-radius: 16px;
  padding: 1.25rem 1.4rem;
  margin: 1.5rem 0;
}

.card p:last-child {
  margin-bottom: 0;
}

.note {
  color: var(--text-faint);
  font-size: 15px;
}

.meta {
  color: var(--text-faint);
  font-size: 14px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 15px;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.6rem 0.75rem 0.6rem 0;
  border-bottom: 1px solid #2a2d3d;
}

th {
  color: var(--text-primary);
  font-weight: 600;
}

footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid #2a2d3d;
  color: var(--text-faint);
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

footer a {
  color: var(--text-tertiary);
  text-decoration: none;
}

footer a:hover {
  color: var(--accent-300);
}
