/* moasy.tech — landing page. HTML + CSS puro, sem JS (ver CLAUDE.md).
   Paleta e tokens espelham src/index.css do n_front (Tailwind v4, @theme inline) — ver
   .spec/spec-frontend-landing.md, Seção 2, "Tema espelha o n_front". */

@font-face {
  font-family: 'Inter Variable';
  src: url('../fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'JetBrains Mono Variable';
  src: url('../fonts/jetbrains-mono-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;

  /* light — mesmos hex de src/index.css :root no n_front */
  --background: #f8fafc;
  --foreground: #0c1117;
  --card: #ffffff;
  --primary: #06b6d4;
  --primary-foreground: #082f39;
  --secondary: #e2e8f0;
  --muted: #eef2f6;
  --muted-foreground: #64748b;
  --accent: #e0f7fb;
  --destructive: #dc2626;
  --border: #e2e8f0;

  /* paleta categórica — mesmos hex nos dois temas (ver dataviz skill / index.css do n_front) */
  --chart-1: #0891b2;
  --chart-2: #7c3aed;
  --chart-3: #059669;
  --chart-4: #d97706;

  --radius: 0.75rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #0c1117;
    --foreground: #f1f5f9;
    --card: #0f172a;
    --primary: #06b6d4;
    --primary-foreground: #082f39;
    --secondary: #1e293b;
    --muted: #1e293b;
    --muted-foreground: #94a3b8;
    --accent: #14232c;
    --destructive: #f87171;
    --border: #1e293b;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: 'Inter Variable', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 0.5em;
}

p {
  margin: 0 0 1em;
  color: var(--muted-foreground);
}

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

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--background);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--foreground);
}

.logo-mark {
  height: 28px;
  width: 28px;
  flex-shrink: 0;
}

.logo-wordmark {
  font-weight: 600;
  font-size: 1rem;
}

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

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.main-nav a:not(.btn) {
  color: var(--muted-foreground);
  text-decoration: none;
  font-size: 0.95rem;
}

.main-nav a:not(.btn):hover {
  color: var(--foreground);
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
}

.lang-switch a {
  color: var(--muted-foreground);
  text-decoration: none;
}

.lang-switch a:hover {
  color: var(--foreground);
}

.lang-switch .current {
  color: var(--foreground);
  font-weight: 600;
}

.lang-switch .sep {
  color: var(--border);
}

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 32px;
  height: 32px;
  cursor: pointer;
}

.nav-burger span {
  display: block;
  height: 2px;
  background: var(--foreground);
  border-radius: 2px;
}

/* Buttons — mesma convenção de radius/estilo flat do button.tsx no n_front */

.btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
}

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--foreground);
}

.btn-large {
  padding: 0.85rem 1.75rem;
  font-size: 1.05rem;
}

/* Hero */

.hero {
  padding: 6rem 0 5rem;
  text-align: center;
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  max-width: 720px;
  margin: 0 auto 0.6em;
}

.hero-subtitle {
  max-width: 620px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
}

.hero-tagline {
  font-family: 'JetBrains Mono Variable', 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--muted-foreground);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

/* Sections */

.section {
  padding: 4.5rem 0;
  border-top: 1px solid var(--border);
}

.section h2 {
  font-size: 1.6rem;
  text-align: center;
}

.section-subtitle {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 2.5rem;
}

/* Produto — cada bloco é print + texto, alternando lado (ver index.html) */

.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  padding: 3rem 0;
}

.feature-block:not(:last-child) {
  border-bottom: 1px solid var(--border);
}

.feature-block.reverse .feature-text {
  order: 2;
}

.feature-block.reverse .feature-shot {
  order: 1;
}

.feature-text h3 {
  font-size: 1.3rem;
  color: var(--foreground);
}

.feature-shot img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: block;
}

.screenshot-caption {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  text-align: center;
  margin: 0.5rem 0 0;
}

/* Integrações — lista de providers */

.integrations-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1rem;
  margin: 1.5rem 0 0;
  list-style: none;
  padding: 0;
  color: var(--muted-foreground);
  font-size: 0.9rem;
}

.integrations-list li {
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 1.4);
}

/* Cards genéricos (preço) — mesma convenção "border-border rounded-lg border p-4" do n_front */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.card h3 {
  font-size: 1.1rem;
  color: var(--foreground);
}

/* Seção "no AI" — mesmo .card, só com um marcador de check antes do título */

.reason-mark {
  color: var(--primary);
  font-weight: 700;
  margin-right: 0.4em;
}

.reasons-note {
  text-align: center;
  max-width: 620px;
  margin: 2.5rem auto 0;
  font-size: 0.85rem;
}

/* Preços */

.precos-grid {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.price-card {
  text-align: center;
}

.price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.25em;
}

.price-period {
  font-size: 1rem;
  font-weight: 400;
  color: var(--muted-foreground);
}

/* Comparação — tabela dentro da seção "no AI" (ver index.html) */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.table-scroll {
  overflow-x: auto;
  margin-top: 2.5rem;
}

.compare-table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.compare-table th,
.compare-table td {
  padding: 0.85rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.compare-table thead th {
  color: var(--foreground);
  font-weight: 600;
}

.compare-table tbody th {
  color: var(--foreground);
  font-weight: 500;
  white-space: nowrap;
}

.compare-table tbody td {
  color: var(--muted-foreground);
}

.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
  border-bottom: none;
}

.check-mark {
  color: var(--primary);
  font-weight: 700;
  margin-right: 0.4em;
}

.x-mark {
  color: var(--muted-foreground);
  font-weight: 700;
  margin-right: 0.4em;
}

/* FAQ — accordion CSS-only via <details>/<summary> (ver princípio 2 do CLAUDE.md) */

.faq-list {
  max-width: 720px;
  margin: 2.5rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.25rem 1.25rem;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 1.75rem 1rem 0;
  position: relative;
  font-weight: 600;
  color: var(--foreground);
}

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

.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 1rem;
  color: var(--primary);
  font-weight: 700;
  transition: transform 0.15s ease;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item p {
  margin: 0 0 1rem;
}

/* CTA final */

.cta-final {
  text-align: center;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}

.footer-inner {
  color: var(--muted-foreground);
  font-size: 0.9rem;
}

/* Nav mobile */

@media (max-width: 640px) {
  .nav-burger {
    display: flex;
  }

  .main-nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--background);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease;
  }

  .main-nav a {
    padding: 0.85rem 0;
    width: 100%;
  }

  .btn-nav {
    margin: 0.75rem 0 1rem;
    text-align: center;
  }

  #nav-toggle:checked ~ .site-header .main-nav {
    max-height: 260px;
  }

  .feature-block,
  .feature-block.reverse {
    grid-template-columns: 1fr;
  }

  .feature-block .feature-text,
  .feature-block.reverse .feature-text {
    order: 1;
  }

  .feature-block .feature-shot,
  .feature-block.reverse .feature-shot {
    order: 2;
  }
}
