/* NextSend public site — aligned with docs/BRANDING.md */
:root {
  --forest: #1f2f27;
  --sage: #6b7c59;
  --terracotta: #c8643a;
  --cream: #f2e8d9;
  --off-white: #f5f3eb;
  --text-muted: #5c6654;
  --card: #ffffff;
  --max-width: 42rem;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--forest);
  background: var(--off-white);
}

a {
  color: var(--terracotta);
}

a:hover {
  text-decoration: none;
}

.site-header,
.site-footer {
  padding: 1.25rem 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--forest);
  text-decoration: none;
}

.brand-logo {
  display: block;
  height: 1.75rem;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  color: var(--forest);
  font-weight: 600;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: 0.15rem;
  padding-left: 0.85rem;
  border-left: 1px solid color-mix(in srgb, var(--sage) 28%, transparent);
}

.lang-switch button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1;
  padding: 0;
  cursor: pointer;
}

.lang-switch button.is-active {
  color: var(--terracotta);
  font-weight: 600;
}

.lang-switch button:hover {
  color: var(--forest);
}

.lang-switch button:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 3px;
  border-radius: 2px;
}

.lang-switch-sep {
  color: color-mix(in srgb, var(--sage) 45%, transparent);
  font-size: 0.75rem;
  user-select: none;
  pointer-events: none;
}

[data-lang][hidden] {
  display: none !important;
}

/* Prefer html[lang] so first paint can match before buttons hydrate. */
html[lang="pt"] [data-lang="en"],
html[lang="en"] [data-lang="pt"] {
  display: none !important;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

.card {
  background: var(--card);
  border-radius: 1.25rem;
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(31, 47, 39, 0.06);
}

h1 {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  line-height: 1.25;
}

h2 {
  margin: 1.75rem 0 0.5rem;
  font-size: 1.125rem;
  line-height: 1.3;
}

h2:first-of-type {
  margin-top: 0;
}

.card p,
.card ul {
  margin: 0 0 1rem;
}

.card ul {
  padding-left: 1.25rem;
}

.card li {
  margin-bottom: 0.35rem;
}

.lead {
  color: var(--text-muted);
  margin: 0 0 1.5rem;
}

.meta {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.placeholder {
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--sage);
  background: color-mix(in srgb, var(--cream) 55%, white);
  border-radius: 0 0.5rem 0.5rem 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.site-footer {
  font-size: 0.8125rem;
  color: var(--text-muted);
  border-top: 1px solid color-mix(in srgb, var(--sage) 20%, transparent);
  margin-top: 2rem;
}
