/* Direção visual da home pública do Orga CRM. Os tokens da marca vêm de brand.css, compartilhado
   com o aplicativo: índigo de destaque, grafite azulado no texto e superfícies claras. */

:root {
  color-scheme: light;
  font: 16px/1.6 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--brand-ink);
  background: var(--brand-surface);
  --ink: var(--brand-ink);
  --muted: #555f77;
  --line: var(--brand-line);
  --accent: var(--brand-indigo);
  --accent-strong: var(--brand-indigo-strong);
  --accent-soft: var(--brand-indigo-soft);
  --white: var(--brand-white);
  --surface: var(--brand-surface);
  --focus: var(--brand-focus);
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px #24203e14;
  --shadow: 0 18px 48px #24203e1f;
  --content: 1120px;
  --reading: 720px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1100px 520px at 82% -10%, #e7e6fd 0%, var(--surface) 62%) no-repeat,
    var(--surface);
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.18; color: var(--brand-ink); margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.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;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 30;
  background: var(--accent); color: var(--white); font-weight: 700;
  padding: 10px 16px; border-radius: 10px; text-decoration: none;
  transition: top .18s ease;
}
.skip-link:focus { top: 12px; }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: #ffffffd9;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--content); margin: 0 auto;
  display: flex; align-items: center; gap: 16px;
  padding: 12px 24px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none;
  font-size: 19px; font-weight: 800; letter-spacing: -.5px;
  margin-right: auto; white-space: nowrap;
}
/* O ícone reaproveita o arquivo da marca (brand/orga-symbol.svg). */
.brand-icon { display: block; width: 42px; height: 28px; flex: 0 0 42px; }
.brand-text span { color: var(--brand-ink); }

.site-nav { display: flex; align-items: center; gap: 8px; }
.site-nav > a {
  color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px;
  padding: 9px 12px; border-radius: 10px;
}
.site-nav > a:hover { color: var(--accent); background: var(--accent-soft); }
.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: 12px; }

.menu-button {
  display: none; align-items: center; gap: 9px;
  padding: 9px 14px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--white); color: var(--ink); font-weight: 700; font-size: 14px;
}
.menu-lines, .menu-lines::before, .menu-lines::after {
  content: ""; display: block; width: 16px; height: 2px; border-radius: 2px; background: currentColor;
}
.menu-lines { position: relative; }
.menu-lines::before { position: absolute; top: -5px; }
.menu-lines::after { position: absolute; top: 5px; }

/* ---------- Botões ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 12px;
  font-weight: 700; font-size: 15px; text-decoration: none;
  border: 1px solid transparent; transition: transform .12s ease, background .12s ease;
}
.button.primary { background: var(--accent); color: var(--white); box-shadow: var(--shadow-sm); }
.button.primary:hover { background: var(--accent-strong); }
.button.secondary { background: var(--white); color: var(--accent); border-color: var(--brand-indigo-line); }
.button.secondary:hover { background: var(--accent-soft); }
.nav-actions .button { min-height: 44px; padding: 10px 18px; font-size: 14px; }

/* ---------- Estrutura das seções ---------- */
main { display: block; }
main > section { max-width: var(--content); margin: 0 auto; padding: 64px 24px; }
.section-lead { color: var(--muted); font-size: 17px; max-width: var(--reading); margin-top: 12px; }
.section-note {
  margin-top: 24px; padding: 16px 18px; border-radius: var(--radius);
  background: var(--accent-soft); color: var(--brand-ink); font-size: 14.5px;
  max-width: var(--reading); border: 1px solid var(--brand-indigo-line);
}
h2 { font-size: clamp(24px, 3vw, 32px); }

/* ---------- Primeira seção ---------- */
.hero { text-align: center; padding-top: 84px; padding-bottom: 40px; }
.eyebrow {
  display: inline-block; margin-bottom: 20px; padding: 7px 14px; border-radius: 999px;
  background: var(--white); border: 1px solid var(--brand-indigo-line); color: var(--accent);
  font-size: 12px; font-weight: 800; letter-spacing: .12em;
}
.hero h1 { font-size: clamp(32px, 5.4vw, 58px); max-width: 15ch; margin: 0 auto; }
.hero-text {
  color: var(--muted); font-size: clamp(17px, 2vw, 20px);
  max-width: var(--reading); margin: 22px auto 0;
}
.hero-actions {
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 32px;
}

/* ---------- Prévia do produto ---------- */
.preview { padding-top: 24px; }
.preview-figure { margin: 0; }
.preview-figure img {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); background: var(--white);
}
.preview-figure figcaption {
  margin-top: 14px; text-align: center; color: var(--muted); font-size: 14px;
}

/* ---------- Como funciona ---------- */
.step-list {
  list-style: none; margin: 36px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px;
}
.step-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px 24px; box-shadow: var(--shadow-sm);
}
.step-number {
  display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 16px;
  border-radius: 11px; background: var(--accent-soft); color: var(--accent);
  font-size: 18px; font-weight: 800;
}
.step-card h3 { font-size: 19px; margin-bottom: 10px; }
.step-card p { color: var(--muted); font-size: 15px; }

/* ---------- Recursos ---------- */
.feature-list {
  list-style: none; margin: 36px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px;
}
.feature-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 24px; box-shadow: var(--shadow-sm);
}
.feature-card h3 { font-size: 17px; margin-bottom: 8px; color: var(--accent); }
.feature-card p { color: var(--muted); font-size: 15px; }

/* ---------- Perguntas frequentes ---------- */
.faq-list { margin-top: 32px; display: grid; gap: 12px; max-width: var(--reading); }
.faq-item {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 4px 20px; box-shadow: var(--shadow-sm);
}
.faq-item summary {
  cursor: pointer; list-style: none; padding: 16px 0;
  font-weight: 700; font-size: 16.5px; display: flex; align-items: center; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; margin-left: auto; color: var(--accent); font-size: 22px; font-weight: 600; line-height: 1;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { color: var(--muted); font-size: 15.5px; padding: 0 0 18px; }

/* ---------- Encerramento ---------- */
.closing {
  text-align: center; margin-bottom: 48px;
  background: linear-gradient(180deg, var(--brand-white), var(--accent-soft));
  border: 1px solid var(--brand-indigo-line); border-radius: var(--radius-lg);
  padding: 56px 24px;
}
.closing h2 { max-width: 22ch; margin: 0 auto; }
.closing p { color: var(--muted); margin-top: 14px; font-size: 17px; }

/* ---------- Rodapé ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--white); }
.footer-inner {
  max-width: var(--content); margin: 0 auto; padding: 32px 24px;
  text-align: center; color: var(--muted); font-size: 14px;
}
.footer-inner strong { color: var(--ink); }
.footer-links { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }

/* ---------- Responsivo ---------- */
@media (max-width: 1024px) {
  .step-list, .feature-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  main > section { padding: 48px 20px; }
  .hero { padding-top: 56px; }

  .menu-button { display: inline-flex; }
  .site-nav {
    position: absolute; left: 16px; right: 16px; top: calc(100% + 8px);
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 12px; display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav > a { padding: 14px 12px; font-size: 16px; }
  .nav-actions { flex-direction: column; align-items: stretch; margin: 8px 0 0; border-top: 1px solid var(--line); padding-top: 12px; }
  .nav-actions .button { min-height: 48px; }
  .site-header { position: relative; }
  .header-inner { position: relative; }
}

@media (max-width: 720px) {
  .step-list, .feature-list { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 400px) {
  .header-inner { padding: 10px 16px; }
  .brand { font-size: 18px; }
  main > section { padding: 40px 16px; }
  .hero-actions .button { width: 100%; }
  .button { padding: 12px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .skip-link { transition: none; }
}
