/* ==========================================================================
   TechSaaS, sistema visual compartilhado do site guarda-chuva
   Base clara (branco/slate-50) com blocos escuros slate-950 para drama.
   Acao = indigo. Acento de crescimento = emerald. Restraint keynote-Apple.
   Uso: <link rel="stylesheet" href="styles.css"> em toda pagina.
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Fontes self-hospedadas (Geist + Geist Mono, OFL)
   Antes vinha por @import de fonts.googleapis.com dentro do CSS, o pior padrao
   de render-blocking (serializa HTML -> CSS -> googleapis -> gstatic). Agora os
   .woff2 sao locais em /gc/assets/fonts, com font-display:swap. Geist e Geist Mono
   sao variaveis: o mesmo arquivo cobre 400-700, so muda o unicode-range (latin x
   latin-ext) para o navegador baixar so o subset que a pagina usa.
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/gc/assets/fonts/geist-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/gc/assets/fonts/geist-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('/gc/assets/fonts/geistmono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('/gc/assets/fonts/geistmono-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Cor, papeis semanticos */
  --brand: #4f46e5;            /* indigo, acao primaria */
  --brand-hover: #4338ca;
  --brand-subtle: #eef2ff;     /* fundo suave de destaque em superficie clara */
  --brand-ink: #3730a3;        /* texto/brand sobre subtle */
  --brand-bright: #818cf8;     /* indigo legivel sobre bloco escuro */

  --grow: #059669;             /* emerald, crescimento/sucesso */
  --grow-bright: #34d399;      /* emerald sobre bloco escuro */
  --grow-subtle: #ecfdf5;

  --warn: #d97706;             /* amber, alerta */
  --grow-ink: #047857;         /* emerald escuro, texto de badge com AA sobre grow-subtle */
  --warn-ink: #b45309;         /* amber escuro, texto de badge com AA sobre fundo amber claro */

  /* Texto */
  --ink: #0f172a;              /* primario */
  --ink-2: #475569;            /* secundario */
  --ink-3: #94a3b8;            /* terciario, so decorativo (nao clear AA em texto legivel) */
  --ink-caption: #64748b;      /* menor texto AINDA legivel, clear AA em branco (4.76:1) */

  /* Superficies claras */
  --surface: #ffffff;          /* card, nav */
  --sunken: #f8fafc;           /* faixa levemente afundada */
  --ground: #f1f5f9;           /* fundo de secao alternada */
  --border: #e2e8f0;

  /* Blocos escuros dramaticos */
  --dark: #020617;             /* slate-950 */
  --dark-2: #0f172a;           /* slate-900, card dentro do escuro */
  --dark-ink: #e2e8f0;         /* texto claro sobre escuro */
  --dark-ink-2: #94a3b8;       /* secundario sobre escuro */
  --dark-border: #1e293b;

  /* Raios */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-full: 9999px;

  /* Sombras, discretas (nao roxa difusa) */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, .06);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, .08);

  /* Ritmo e medida */
  --container: 1120px;
  --gutter: 24px;
  --section-y: clamp(64px, 9vw, 128px);   /* respiro vertical generoso */

  /* Tipografia */
  --font-sans: 'Geist', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* --------------------------------------------------------------------------
   2. Reset e base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;   /* compensa nav sticky ao ancorar */
}

body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'ss01';
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

::selection { background: var(--brand); color: #fff; }

/* --------------------------------------------------------------------------
   3. Tipografia, escala intencional
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  font-weight: 700;
  letter-spacing: -0.035em;
}
h2 {
  font-size: clamp(1.9rem, 4vw, 2.85rem);
  letter-spacing: -0.03em;
}
h3 {
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
h4 {
  font-size: 1.05rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

p { color: var(--ink-2); text-wrap: pretty; }
p.lead {
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 60ch;
}

strong { color: var(--ink); font-weight: 600; }
small { font-size: 0.875rem; color: var(--ink-caption); }

/* Eyebrow, o elemento-assinatura. Geist Mono, uppercase, com tick-indice. */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-ink);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: .5;
}
/* variante em bloco escuro */
.dark-section .eyebrow { color: var(--grow-bright); }

/* --------------------------------------------------------------------------
   4. Layout, container e secoes
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-y);
}
.section--tight { padding-block: clamp(40px, 6vw, 72px); }
.section--sunken { background: var(--sunken); }
.section--ground { background: var(--ground); }

/* Cabecalho de secao com medida controlada */
.section-head { max-width: 62ch; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head p { margin-top: 16px; }

/* --------------------------------------------------------------------------
   5. Grid responsivo
   -------------------------------------------------------------------------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* Split (texto de um lado, visual do outro) */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   6. Botoes
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.85em 1.4em;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  border-radius: var(--r-full);
  border: 1px solid transparent;
  transition: background-color .18s var(--ease), border-color .18s var(--ease),
              transform .18s var(--ease), color .18s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

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

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}
.btn-secondary:hover { border-color: var(--ink-3); background: var(--sunken); }

.btn-ghost {
  background: transparent;
  color: var(--brand-ink);
  padding-inline: 0.5em;
}
.btn-ghost:hover { color: var(--brand-hover); }

/* Botoes dentro de bloco escuro */
.dark-section .btn-secondary {
  color: var(--dark-ink);
  border-color: var(--dark-border);
}
.dark-section .btn-secondary:hover { border-color: var(--dark-ink-2); background: var(--dark-2); }
.dark-section .btn-ghost { color: var(--grow-bright); }

/* --------------------------------------------------------------------------
   7. Cards
   -------------------------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.card:hover {
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.98rem; }

/* Marcador de indice do card, Geist Mono (sequencia real, nao enfeite) */
.card-index {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-caption);
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

/* Card em bloco escuro */
.dark-section .card {
  background: var(--dark-2);
  border-color: var(--dark-border);
  color: var(--dark-ink);
}
.dark-section .card:hover { border-color: #334155; box-shadow: none; }
.dark-section .card h3 { color: #fff; }
.dark-section .card p { color: var(--dark-ink-2); }
.dark-section .card-index { color: var(--grow-bright); }

/* --------------------------------------------------------------------------
   8. Badges e pills
   -------------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.4em 0.85em;
  border-radius: var(--r-full);
  background: var(--brand-subtle);
  color: var(--brand-ink);
}
.badge-grow { background: var(--grow-subtle); color: var(--grow-ink); }
.badge-warn { background: #fffbeb; color: var(--warn-ink); }
.badge-dot::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: var(--r-full);
  background: currentColor;
}
.dark-section .badge {
  background: rgba(129, 140, 248, .12);
  color: var(--brand-bright);
}
.dark-section .badge-grow {
  background: rgba(52, 211, 153, .12);
  color: var(--grow-bright);
}

/* --------------------------------------------------------------------------
   9. Bloco escuro dramatico
   -------------------------------------------------------------------------- */
.dark-section {
  background: var(--dark);
  color: var(--dark-ink);
  padding-block: var(--section-y);
}
.dark-section h1, .dark-section h2, .dark-section h3, .dark-section h4 { color: #fff; }
.dark-section p { color: var(--dark-ink-2); }
.dark-section strong { color: #fff; }
.dark-section .accent-grow { color: var(--grow-bright); }
.dark-section .accent-brand { color: var(--brand-bright); }

/* --------------------------------------------------------------------------
   10. Nav sticky clara
   -------------------------------------------------------------------------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-nav__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  gap: 24px;
}
.site-nav__logo { flex-shrink: 0; }
.site-nav__logo img { height: 28px; width: auto; }
.site-nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}
.site-nav__link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-2);
  transition: color .16s var(--ease);
}
.site-nav__link:hover { color: var(--ink); }
.site-nav__cta { margin-left: 4px; }

@media (max-width: 720px) {
  .site-nav__inner { padding-inline: 16px; gap: 12px; }
  .site-nav__links { gap: 12px; }
  .site-nav__link--hide-sm { display: none; }   /* colapsa ancoras, mantem CTA */
  .site-nav__logo img { height: 24px; }
  .site-nav__cta { margin-left: 0; }
  .site-nav__cta.btn { padding: 0.55em 0.9em; font-size: 0.82rem; }
}

/* --------------------------------------------------------------------------
   11. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--dark);
  color: var(--dark-ink-2);
  padding-block: clamp(48px, 7vw, 80px) 40px;
}
.site-footer__grid {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
}
.site-footer__brand .wordmark { margin-bottom: 16px; }
.site-footer__brand p { color: var(--dark-ink-2); font-size: 0.95rem; max-width: 38ch; }
.site-footer__guarantee {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--grow-bright);
  border: 1px solid var(--dark-border);
  border-radius: var(--r-full);
  padding: 0.5em 1em;
}
.site-footer__col h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--dark-ink-2);
  margin-bottom: 16px;
}
.site-footer__col ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.site-footer__col a {
  font-size: 0.95rem;
  color: var(--dark-ink);
  transition: color .16s var(--ease);
}
.site-footer__col a:hover { color: #fff; }
.site-footer__legal {
  max-width: var(--container);
  margin: 40px auto 0;
  padding: 24px var(--gutter) 0;
  border-top: 1px solid var(--dark-border);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--dark-ink-2);
}

/* Wordmark texto (usado em bloco escuro e no footer, nunca sobre o png) */
.wordmark {
  font-family: var(--font-sans);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
}
.wordmark span { color: var(--brand-bright); }

@media (max-width: 720px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 460px) {
  .site-footer__grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   12. Utilitarios curtos
   -------------------------------------------------------------------------- */
.stack-sm > * + * { margin-top: 12px; }
.stack   > * + * { margin-top: 20px; }
.stack-lg > * + * { margin-top: 32px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.text-grow { color: var(--grow); }
.text-brand { color: var(--brand); }
.divider { height: 1px; background: var(--border); border: 0; }

/* --------------------------------------------------------------------------
   14. Passos numerados (operacao operada, secao #como-funciona)
   -------------------------------------------------------------------------- */
.steps { display: grid; gap: 14px; margin-top: clamp(28px, 4vw, 40px); }
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: start;
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: border-color .2s var(--ease);
}
.step:hover { border-color: #cbd5e1; }
.step__num {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--brand);
  letter-spacing: 0.05em;
  padding-top: 2px;
}
.step__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 6px; }
.step__eta {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--grow-ink);
  background: var(--grow-subtle);
  padding: 0.28em 0.7em;
  border-radius: var(--r-full);
}
.step__body p { font-size: 0.98rem; }

/* --------------------------------------------------------------------------
   15. FAQ acordeao (disclosure nativo, sem JS)
   -------------------------------------------------------------------------- */
.faq { display: grid; gap: 12px; margin-top: clamp(28px, 4vw, 40px); max-width: 820px; }
.faq__item {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
}
.faq__item[open] { border-color: #cbd5e1; box-shadow: var(--shadow-sm); }
.faq__q {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--ink);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.45rem;
  line-height: 1;
  color: var(--brand);
  transition: transform .2s var(--ease);
  flex-shrink: 0;
}
.faq__item[open] .faq__q::after { transform: rotate(45deg); }
.faq__a { padding: 0 24px 22px; }
.faq__a p { font-size: 0.98rem; }

/* --------------------------------------------------------------------------
   16. Contato visivel (linha em bloco escuro, CTA final)
   -------------------------------------------------------------------------- */
.contact-inline {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  margin-top: 28px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: var(--dark-ink-2);
}
.contact-inline a { color: var(--dark-ink); transition: color .16s var(--ease); }
.contact-inline a:hover { color: #fff; }

/* --------------------------------------------------------------------------
   13. Movimento reduzido
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
