/* Meatz — landing estática (Hostinger) */
/* Tokens: verde #22C55E, Inter */

:root {
  --color-primary: #22c55e;
  --color-primary-dark: #16a34a;
  --color-primary-soft: rgba(34, 197, 94, 0.12);
  --color-bg: #fafafa;
  --color-surface: #ffffff;
  --color-text: #171717;
  --color-muted: #525252;
  --color-border: #e5e5e5;
  --font-sans: "Inter", system-ui, sans-serif;
  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.08);
  --header-h: 4rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #0a0a0a;
    --color-surface: #141414;
    --color-text: #fafafa;
    --color-muted: #a3a3a3;
    --color-border: #262626;
    --color-primary-soft: rgba(34, 197, 94, 0.18);
    --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.35);
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--color-primary);
}

.container {
  width: min(1120px, 100% - 2rem);
  margin-inline: auto;
}

/* ——— Header ——— */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--color-bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
  width: min(1120px, 100% - 2rem);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: var(--color-text);
  text-decoration: none;
}

.logo span {
  color: var(--color-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Links de texto — não afeta .btn (contraste do CTA no topo) */
.nav-links a:not(.btn) {
  color: var(--color-muted);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
}

.nav-links a:not(.btn):hover {
  color: var(--color-text);
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
  background: var(--color-primary-dark);
  color: #fff;
}

.btn--ghost {
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn--ghost:hover {
  background: var(--color-primary-soft);
  border-color: transparent;
}

.btn--lg {
  padding: 0.9rem 1.5rem;
  font-size: 1rem;
}

.btn--sm {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
}

/* CTA do header: verde mais escuro + contorno para leitura sobre fundo claro ou blur do hero */
.site-header .btn--primary {
  background: #15803d;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.site-header .btn--primary:hover {
  background: #166534;
  color: #ffffff;
}

.site-header .btn--primary:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

@media (prefers-color-scheme: dark) {
  .site-header .btn--primary {
    background: #22c55e;
    color: #052e16;
    border-color: rgba(5, 46, 22, 0.35);
    box-shadow:
      0 1px 2px rgba(0, 0, 0, 0.35),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }

  .site-header .btn--primary:hover {
    background: #4ade80;
    color: #052e16;
  }

  .site-header .btn--primary:focus-visible {
    outline-color: #4ade80;
  }
}

/* ——— Hero ——— */
.hero {
  position: relative;
  margin-top: var(--header-h);
  min-height: min(88vh, 820px);
  display: flex;
  align-items: flex-end;
  width: 100%;
  overflow: hidden;
}

/* Imagem full width: camada de fundo cobrindo 100% da viewport */
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: #1a1a1a;
  background-image: url("https://images.unsplash.com/photo-1607623814075-e51df1bdc82f?auto=format&fit=crop&w=2000&q=80");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.82) 0%,
    rgba(0, 0, 0, 0.45) 45%,
    rgba(0, 0, 0, 0.25) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(1120px, 100% - 2rem);
  margin-inline: auto;
  padding: 3rem 0 4rem;
}

.hero__eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: #fff;
  max-width: 18ch;
}

.hero__lead {
  margin: 0 0 1.75rem;
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 42ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__actions .btn--primary {
  box-shadow: 0 4px 20px rgba(34, 197, 94, 0.35);
}

/* ——— Sections ——— */
section {
  padding: 4.5rem 0;
}

.section-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-lead {
  margin: 0 0 2.5rem;
  color: var(--color-muted);
  max-width: 52ch;
  font-size: 1.0625rem;
}

/* ——— Pain points ——— */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.pain-card {
  padding: 1.25rem 1.35rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.pain-card strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}

.pain-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-muted);
}

/* ——— Features ——— */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  padding: 1.75rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: border-color 0.2s ease;
}

.feature-card:hover {
  border-color: color-mix(in srgb, var(--color-primary) 35%, var(--color-border));
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--color-primary-soft);
  color: var(--color-primary-dark);
  margin-bottom: 1rem;
  font-size: 1.5rem;
  line-height: 1;
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
}

.feature-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--color-muted);
}

/* ——— Steps ——— */
.steps {
  counter-reset: step;
  display: grid;
  gap: 1.25rem;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.25rem 1.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  background: var(--color-primary);
  color: #fff;
  border-radius: 8px;
}

.step h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
}

.step p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--color-muted);
}

/* ——— Stats ——— */
.stats {
  background: var(--color-primary-soft);
  border-block: 1px solid var(--color-border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat strong {
  display: block;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  color: var(--color-primary-dark);
  letter-spacing: -0.03em;
}

.stat span {
  font-size: 0.9rem;
  color: var(--color-muted);
}

/* ——— CTA band ——— */
.cta-band {
  text-align: center;
  padding: 4rem 1.5rem;
  background: linear-gradient(135deg, #14532d 0%, #166534 50%, #15803d 100%);
  color: #fff;
}

.cta-band h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.cta-band p {
  margin: 0 auto 1.5rem;
  max-width: 40ch;
  opacity: 0.92;
}

.cta-band .btn--primary {
  background: #fff;
  color: #14532d;
}

.cta-band .btn--primary:hover {
  background: #f0fdf4;
  color: #14532d;
}

/* ——— FAQ ——— */
.faq details {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  background: var(--color-surface);
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq details[open] summary {
  margin-bottom: 0.5rem;
}

.faq p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--color-muted);
}

/* ——— Footer ——— */
.site-footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--color-border);
  font-size: 0.875rem;
  color: var(--color-muted);
}

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

.site-footer strong {
  color: var(--color-text);
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 999;
  padding: 0.5rem 1rem;
  background: var(--color-primary);
  color: #fff;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}
