/* capyb.app — estilos da landing. Tokens e contrastes: SPEC-v3 §5. */

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/outfit-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/outfit-latin-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/inter-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/inter-latin-600-normal.woff2') format('woff2');
}

:root {
  --bg: #ffffff;
  --surface: #f3e7d3;
  --text: #2b1d14;
  --text-muted: #6b5442;
  --link: #2b6e31;
  --accent: #4ca655;
  --accent-hover: #5dbb63;
  --on-accent: #2b1d14;
  --brand: #a8774d;
  --brand-strong: #7a5233;
  --border: #e3d3b9;
  --shadow: 0 1px 2px rgb(43 29 20 / 0.06), 0 8px 24px rgb(43 29 20 / 0.08);

  --font-display: 'Outfit', ui-rounded, system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --radius: 18px;
  --gutter: 16px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1410;
    --surface: #2b1d14;
    --text: #f3e7d3;
    --text-muted: #cdbba3;
    --link: #5dbb63;
    --accent: #5dbb63;
    --accent-hover: #4ca655;
    --on-accent: #1c1410;
    --brand: #c99a6e;
    --brand-strong: #c99a6e;
    --border: #45301f;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 24px rgb(0 0 0 / 0.25);
  }
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

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

img,
svg {
  max-width: 100%;
  display: block;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em;
}
h2 {
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  color: var(--brand-strong);
}
h3 {
  font-size: 1.2rem;
  font-weight: 600;
}
p {
  margin: 0 0 1em;
}

a {
  color: var(--link);
}
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--link);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
@media (min-width: 768px) {
  :root {
    --gutter: 32px;
  }
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  background: var(--text);
  color: var(--bg);
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 10;
}
.skip:focus {
  top: 8px;
}

/* ---------------------------------------------------------- banner idioma */
.lang-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 8px var(--gutter);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.lang-banner[hidden] {
  display: none;
}
.lang-banner p {
  margin: 0;
}
.lang-banner-close {
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 1.4rem;
  line-height: 1;
  min-width: 44px;
  min-height: 44px;
  cursor: pointer;
}

/* ---------------------------------------------------------------- header */
.site-header {
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  text-decoration: none;
  font: 700 1.5rem/1 var(--font-display);
  letter-spacing: -0.01em;
}
.nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav > a {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  padding: 10px 0;
}
.nav > a:hover {
  color: var(--link);
}
.lang-switch {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 2px;
  border: 1px solid var(--border);
  border-radius: 999px;
}
.lang-switch a {
  display: block;
  min-width: 44px;
  padding: 8px 10px;
  border-radius: 999px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
}
.lang-switch a[aria-current='page'] {
  background: var(--surface);
  color: var(--text);
}

/* ------------------------------------------------------------------ hero */
.hero {
  padding: 40px 0 56px;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  gap: 24px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.4rem, 8vw, 4.25rem);
  letter-spacing: -0.02em;
  max-width: 12ch;
}
.lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 36ch;
  margin-bottom: 1.5em;
}
.hero-art {
  position: relative;
  justify-self: center;
  width: min(100%, 360px);
}
/* Faceta poligonal atrás do mascote, ecoando o low-poly. */
.hero-art::before {
  content: '';
  position: absolute;
  inset: 4% 2% 2%;
  background: var(--surface);
  clip-path: polygon(50% 0, 96% 22%, 100% 70%, 62% 100%, 14% 92%, 0 40%);
}
.hero-art img {
  position: relative;
  width: 100%;
  height: auto;
}
@media (min-width: 768px) {
  .hero {
    padding: 72px 0 88px;
  }
  .hero-inner {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
  }
  .hero-art {
    width: min(100%, 440px);
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.btn:hover {
  background: var(--accent-hover);
}
.btn:active {
  transform: translateY(1px);
}
.text-link {
  font-weight: 600;
  text-underline-offset: 3px;
}

/* -------------------------------------------------------------- seções */
.section {
  padding: 56px 0;
}
.section-alt {
  background: var(--surface);
}
@media (min-width: 768px) {
  .section {
    padding: 80px 0;
  }
}

/* --------------------------------------------------------------- cards */
.cards {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
@media (min-width: 768px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}
@media (min-width: 1200px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}
.card {
  position: relative;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:has(.card-link):hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.card-icon {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 14px;
}
.card-title {
  margin-bottom: 4px;
}
.card-link {
  color: var(--text);
  text-decoration: none;
}
/* O card inteiro é clicável pelo link do título. */
.card-link::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
}
.card-link:focus-visible {
  outline: none;
}
.card-link:focus-visible::after {
  outline: 3px solid var(--link);
  outline-offset: 3px;
}
.card-desc {
  color: var(--text-muted);
  margin-bottom: 12px;
}
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.card-url {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--link);
}
.card-soon {
  opacity: 0.85;
}
.card-more {
  background: transparent;
  border: 2px dashed var(--border);
}
.card-more p:last-child {
  margin: 0;
}

.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.6;
  border: 1px solid transparent;
}
.badge-live {
  background: var(--accent);
  color: var(--on-accent);
}
.badge-beta {
  border-color: var(--brand-strong);
  color: var(--brand-strong);
}
.badge-coming-soon,
.badge-lang {
  border-color: var(--text-muted);
  color: var(--text-muted);
}

/* ------------------------------------------------------------ filosofia */
.pillars {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 24px;
}
@media (min-width: 768px) {
  .pillars {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
}
.pillars li {
  padding-top: 20px;
  border-top: 4px solid var(--brand);
}
.pillars p {
  color: var(--text-muted);
  margin: 0;
}

/* -------------------------------------------------------------- novidades */
.notify {
  max-width: 640px;
  text-align: center;
}
.notify > p:first-of-type {
  color: var(--text-muted);
}

/* --------------------------------------------------------------- contato */
.contacts {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 24px;
}
@media (min-width: 768px) {
  .contacts {
    grid-template-columns: repeat(2, 1fr);
  }
}
.contact {
  display: flex;
  align-items: center;
  gap: 20px;
}
.contact h3 {
  margin-bottom: 2px;
}
.contact p {
  margin: 0;
  overflow-wrap: anywhere;
}
.qr {
  flex: none;
  width: 112px;
  height: 112px;
  border-radius: 10px;
}
.hint {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---------------------------------------------------------------- footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}
.footer-inner p {
  margin: 0;
}

/* ------------------------------------------------------------------ 404 */
.not-found {
  padding: 64px var(--gutter);
  text-align: center;
  max-width: 560px;
}
.not-found img {
  margin: 0 auto 16px;
}
.not-found h2 {
  font-size: 1.5rem;
  margin-top: 32px;
}
