/* ============================================================
   RESOLVER COM IA — Design System (Identidade v1)
   "Do emaranhado à clareza": papel quente, tinta escura,
   acento laranja único (#FF5A2C), tipografia geométrica.
   ============================================================ */

:root {
  /* — Cor (alinhada ao BRAND.md) — */
  --paper:      #F3EDE3;   /* fundo base, papel quente */
  --paper-2:    #E9E0D2;   /* faixa alternada */
  --cream:      #FBF6EC;   /* cartões claros */
  --ink:        #16110D;   /* tinta quase-preta, quente */
  --ink-2:      #211A14;   /* superfícies escuras elevadas */
  --ink-3:      #2C241C;   /* terceiro nível de superfície */
  --ink-soft:   #5A5147;   /* texto secundário */
  --ink-faint:  #7C7163;   /* legendas / mono labels */
  --line:       #D8CFBE;   /* bordas sobre papel */
  --line-soft:  #E6DCC9;

  /* Aliases para compatibilidade (faixas escuras) */
  --forest:     #16110D;
  --forest-2:   #211A14;
  --forest-line:#2C241C;
  --on-forest:  #F3EDE3;
  --on-forest-soft:#A99C8B;

  /* Acento único da marca (laranja) + tons de apoio */
  --accent:     #FF5A2C;   /* primário — check, selo IA, CTAs */
  --accent-2:   #FF7A4D;   /* hover */
  --accent-deep:#E64A1D;   /* pressionado / contraste em hover claro */
  --accent-soft:#FFD9C9;   /* fundos suaves */

  /* Aliases de compatibilidade com classes antigas */
  --clay:       var(--accent);
  --clay-deep:  var(--accent-deep);
  --clay-soft:  var(--accent-soft);
  --ochre:      #C68A2A;
  --ochre-soft: #EBD5A8;

  /* — Tipografia (BRAND.md) — */
  --font-display: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body:    "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;
  /* Aliases legados */
  --serif: var(--font-display);
  --sans:  var(--font-body);
  --mono:  var(--font-mono);

  /* — Medidas — */
  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 14px;
  --radius-lg: 18px;

  /* — Tweakáveis (via panel) — */
  --t-accent: var(--accent);
  --t-display: var(--font-display);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--accent); color: #fff; }

/* ---------- Tipo (Space Grotesk: tracking negativo nos títulos) ---------- */
h1, h2, h3, h4 {
  font-family: var(--t-display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
.display {
  font-size: clamp(2.6rem, 6.6vw, 6rem);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: -0.045em;
}
h2 { font-size: clamp(2rem, 4vw, 3.3rem); font-weight: 600; letter-spacing: -0.025em; }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 600; letter-spacing: -0.015em; }
h4 { font-size: 1.18rem; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0 0 1.1em; }
em { font-style: italic; }
strong { font-weight: 600; }

.lead {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.18rem, 1.9vw, 1.5rem);
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--ink-soft);
  text-wrap: pretty;
}

/* Eyebrow / kicker em mono (tracking aberto, caixa alta) */
.kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin: 0;
}
.kicker::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--t-accent);
  display: inline-block;
}
.kicker.no-rule::before { display: none; }

.serif-em { font-family: var(--t-display); font-style: normal; font-weight: 700; letter-spacing: -0.03em; }
.accent { color: var(--t-accent); }

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.wrap-wide { max-width: 1440px; margin: 0 auto; padding-inline: var(--gutter); }
section { position: relative; }
.section-pad { padding-block: clamp(64px, 10vw, 132px); }
.section-pad-sm { padding-block: clamp(48px, 7vw, 88px); }

.band-paper2 { background: var(--paper-2); }
.band-cream  { background: var(--cream); }
.band-forest { background: var(--forest); color: var(--on-forest); }
.band-forest h1, .band-forest h2, .band-forest h3, .band-forest h4 { color: var(--on-forest); }
.band-forest .lead { color: var(--on-forest-soft); }
.band-forest .kicker { color: var(--on-forest-soft); }

.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* Grid helpers */
.grid { display: grid; gap: clamp(20px, 3vw, 40px); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
  .cols-3.keep-2-tab { grid-template-columns: 1fr; }
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55em;
  font-family: var(--font-display); font-weight: 600; font-size: 0.98rem;
  letter-spacing: -0.01em;
  padding: 0.95em 1.6em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
  line-height: 1;
}
.btn .arr { transition: transform .2s ease; }
.btn:hover .arr { transform: translateX(3px); }
.btn-primary { background: var(--t-accent); color: #fff; }
.btn-primary:hover { background: var(--accent-2); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: #000; }
.btn-ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-on-forest { background: var(--on-forest); color: var(--ink); }
.btn-on-forest:hover { background: #fff; }
.btn-ghost-forest { border-color: var(--forest-line); color: var(--on-forest); }
.btn-ghost-forest:hover { background: rgba(255,255,255,.06); border-color: var(--on-forest-soft); }
.btn-lg { padding: 1.1em 1.95em; font-size: 1.05rem; }
.btn-sm { padding: 0.65em 1.1em; font-size: 0.88rem; border-radius: 10px; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* Link com seta */
.link-arrow {
  font-weight: 600; display: inline-flex; align-items: center; gap: 0.4em;
  color: var(--t-accent); border-bottom: 1.5px solid transparent; padding-bottom: 1px;
  transition: border-color .2s ease;
}
.link-arrow:hover { border-color: var(--t-accent); }
.link-arrow .arr { transition: transform .2s ease; }
.link-arrow:hover .arr { transform: translateX(3px); }

/* ---------- Cartões ---------- */
.card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 34px);
}
.band-forest .card { background: var(--forest-2); border-color: var(--forest-line); }
.card-hover { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.card-hover:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(24,19,13,.45); border-color: var(--ink-faint); }

/* Tag / chip */
.chip {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-soft); font-weight: 500;
  border: 1px solid var(--line); border-radius: 100px;
  padding: 0.4em 0.85em; display: inline-flex; align-items: center; gap: .4em;
  background: var(--paper);
}
.chip-clay { color: var(--accent-deep); border-color: var(--accent-soft); background: #FFEFE7; }
.chip-ochre { color: #8a6a1e; border-color: var(--ochre-soft); background: #f7efd9; }
.chip-forest { color: var(--ink); border-color: var(--line); background: var(--cream); }

/* Price */
.price { font-family: var(--t-display); font-weight: 500; letter-spacing: -0.02em; line-height: 1; }
.price-lg { font-size: clamp(2rem, 3.4vw, 2.8rem); }
.price .unit { font-family: var(--sans); font-size: 0.5em; font-weight: 500; color: var(--ink-faint); letter-spacing: 0; }

/* Numeral grande editorial */
.bignum {
  font-family: var(--t-display); font-weight: 500;
  font-size: clamp(2.4rem, 4vw, 3.4rem); line-height: 1;
  color: var(--t-accent); letter-spacing: -0.03em;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header.on-dark {
  background: color-mix(in srgb, var(--forest) 86%, transparent);
  border-bottom-color: var(--forest-line);
  color: var(--on-forest);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: clamp(16px, 2.4vw, 28px);
}
.nav-links { display: flex; align-items: center; gap: clamp(16px, 1.8vw, 26px); list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-size: 0.94rem; font-weight: 500; color: var(--ink-soft);
  position: relative; padding: 4px 0; transition: color .18s ease; white-space: nowrap;
}
.on-dark .nav-links a { color: var(--on-forest-soft); }
.nav-links a:hover { color: var(--ink); }
.on-dark .nav-links a:hover { color: var(--on-forest); }
.nav-links a.active { color: var(--ink); }
.on-dark .nav-links a.active { color: var(--on-forest); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--t-accent);
}
.nav-cta { display: flex; align-items: center; gap: 14px; }

/* Wordmark — lockup oficial (símbolo em app-tile + Resolver + com IA) */
.wordmark {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--ink); line-height: 1; white-space: nowrap;
  font-family: var(--font-display);
}
.on-dark .wordmark { color: var(--on-forest); }
.wordmark .mark {
  width: 42px; height: 42px; flex: none; display: inline-block;
}
.wordmark .mark svg { width: 100%; height: 100%; display: block; }
.wordmark .wm-word {
  display: inline-flex; flex-direction: column; align-items: flex-start; gap: 4px;
}
.wordmark .rc {
  font-family: var(--font-display); font-weight: 700; font-size: 1.45rem;
  letter-spacing: -0.04em; color: currentColor; line-height: 0.9;
}
.wordmark .sub {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 0.66rem; font-weight: 500;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-faint);
  line-height: 1;
}
.on-dark .wordmark .sub { color: var(--on-forest-soft); }
.wordmark .sub .com { padding-top: 1px; }
.wordmark .ia {
  font-family: var(--font-display); font-weight: 700; font-size: 0.82rem;
  letter-spacing: 0.04em; color: #fff; background: var(--accent);
  padding: .22em .42em; border-radius: 5px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
}
.wordmark.sm .mark { width: 34px; height: 34px; }
.wordmark.sm .rc { font-size: 1.2rem; }

.nav-toggle { display: none; background: none; border: 0; padding: 6px; color: inherit; }
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 880px) {
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: block; }
  .mobile-menu .btn { display: inline-flex; }
}

/* Mobile menu */
.mobile-menu {
  display: none; flex-direction: column; gap: 4px;
  padding: 12px var(--gutter) 28px; border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 12px 0; font-size: 1.15rem; font-weight: 500; border-bottom: 1px solid var(--line-soft); }
.mobile-menu .btn { margin-top: 14px; justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest-2); color: var(--on-forest); padding-block: clamp(56px, 8vw, 90px) 40px; }
.site-footer a { color: var(--on-forest-soft); transition: color .18s ease; }
.site-footer a:hover { color: var(--on-forest); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
.footer-col h5 { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--on-forest-soft); margin: 0 0 16px; font-weight: 500; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; font-size: .96rem; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--forest-line); font-size: .85rem; color: var(--on-forest-soft); }

/* ---------- Utilidades ---------- */
.tagline-quote {
  font-family: var(--t-display); font-style: italic; font-weight: 500;
  letter-spacing: -0.01em;
}
.eyebrow-num { font-family: var(--mono); font-size: .8rem; color: var(--ink-faint); letter-spacing: .05em; }
.stack-sm > * + * { margin-top: 12px; }
.stack > * + * { margin-top: 22px; }
.mw-60 { max-width: 60ch; }
.mw-720 { max-width: 720px; }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.muted { color: var(--ink-soft); }
.tnum { font-variant-numeric: tabular-nums; }

/* Entrada suave on-scroll */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Accordion */
.acc-item { border-top: 1px solid var(--line); }
.acc-item:last-child { border-bottom: 1px solid var(--line); }
.acc-head { width: 100%; background: none; border: 0; text-align: left; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; color: var(--ink); }
.acc-head h4 { font-family: var(--t-display); font-weight: 500; font-size: clamp(1.15rem,1.8vw,1.5rem); }
.acc-icon { flex: none; width: 26px; height: 26px; position: relative; }
.acc-icon::before, .acc-icon::after { content: ""; position: absolute; background: var(--t-accent); transition: transform .25s ease; }
.acc-icon::before { top: 12px; left: 4px; right: 4px; height: 2px; }
.acc-icon::after { left: 12px; top: 4px; bottom: 4px; width: 2px; }
.acc-item.open .acc-icon::after { transform: scaleY(0); }
.acc-body { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.acc-body-inner { padding-bottom: 24px; color: var(--ink-soft); max-width: 70ch; }
