/* ==========================================================
   CMV Fácil — base, tokens e layout das seções
   ========================================================== */

:root {
  --green: #00b26b;
  --green-hover: #009a5c;
  --green-soft: #e3f5ec;
  --green-text: #0e8f58;
  --dark: #103b32;
  --text: #1f2a27;
  --muted: #6b7470;
  --muted-2: #8a928f;
  --bg: #f6f8f7;
  --white: #ffffff;
  --border: #e4e8e6;
  --red-soft: #fcecec;
  --red-text: #8c2f2f;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgba(16, 59, 50, .04), 0 8px 24px rgba(16, 59, 50, .06);

  /* Albert Sans — mesma fonte do sistema CMV Fácil */
  --font-head: "Albert Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Albert Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 980px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-head); color: var(--dark); margin: 0; }
p { margin: 0; }
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }

/* evita qualquer rolagem lateral em telas pequenas */
html, body { overflow-x: clip; }
body { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
a { color: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 max(20px, env(safe-area-inset-left)) 0 max(20px, env(safe-area-inset-right));
}
.container--narrow { max-width: 694px; }

.text-green { color: var(--green); }
.text-center { text-align: center; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

/* ---------- Hero ---------- */
.hero {
  padding: 52px 0 36px;
  border-bottom: 1px solid var(--border);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr 448px;
  gap: 48px;
  align-items: start;
}
.hero__copy { padding-top: 44px; }
.hero__title {
  font-size: 36px;
  line-height: 1.17;
  font-weight: 700;
  letter-spacing: -.02em;
  max-width: 480px;
}
.hero__lead {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 470px;
}

/* ---------- Seções ---------- */
.section { padding: 64px 0; }
.section--white {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.section--tight { padding: 28px 0; }

.section__header { text-align: center; margin-bottom: 36px; }
.section__header .section__lead { margin: 12px auto 0; max-width: 430px; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--green-text);
  margin-bottom: 8px;
}
.section__title {
  font-size: 28px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -.01em;
}
.section__lead {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- Diferencial ---------- */
.diff__grid {
  display: grid;
  grid-template-columns: 470px 1fr;
  gap: 60px;
  align-items: center;
}
.diff__copy .section__title { max-width: 440px; }
.diff__media { display: flex; justify-content: center; }
/* monitor ocupa a coluna inteira, sem passar do tamanho real da imagem (428px) */
.diff__img { width: 100%; max-width: 428px; }
.diff__placeholder {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--muted-2);
  font-size: 14px;
  background: var(--bg);
}

/* ---------- Funcionalidades ---------- */
#funcionalidades { padding-bottom: 36px; }

/* ---------- Footer ---------- */
.footer {
  padding: 56px 20px 36px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}
.footer a { text-decoration: none; }
.footer a:hover { color: var(--dark); text-decoration: underline; }

/* ==========================================================
   Responsivo
   - Monitores grandes (≥1600 / ≥2200): a página inteira é ampliada
     proporcionalmente com `zoom`, mantendo as proporções do Figma.
   - Notebook (961–1599): layout original do Figma.
   - Tablet (601–960): colunas empilhadas, calculadora centralizada.
   - Celular (≤600) e celular pequeno (≤380).
   ========================================================== */

.hero__grid > *,
.diff__grid > * { min-width: 0; }

/* Monitores grandes */
@media (min-width: 1600px) { body { zoom: 1.15; } }
@media (min-width: 2200px) { body { zoom: 1.4; } }

/* Notebooks pequenos (ex.: 1024–1180) — aperta o espaço entre colunas */
@media (max-width: 1180px) and (min-width: 961px) {
  .hero__grid { grid-template-columns: 1fr 430px; gap: 40px; }
  .diff__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

/* Tablets */
@media (max-width: 960px) {
  .hero { padding: 44px 0 40px; }
  .hero__grid,
  .diff__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__copy { padding-top: 0; }
  .hero__title,
  .hero__lead { max-width: 600px; }
  .calc { max-width: 560px; width: 100%; margin: 0 auto; }
  .diff__copy { max-width: 640px; margin: 0 auto; }
  .diff__placeholder { max-width: 428px; }
}

/* Celulares */
@media (max-width: 600px) {
  .hero { padding: 32px 0 36px; }
  .hero__title { font-size: 30px; }
  .hero__lead { font-size: 15px; }
  .section { padding: 48px 0; }
  .section--tight { padding: 24px 0; }
  .section__header { margin-bottom: 28px; }
  .section__title { font-size: 24px; }
  .section__lead { font-size: 15px; }
  .footer { padding: 40px 20px calc(28px + env(safe-area-inset-bottom)); }
}

/* Celulares pequenos */
@media (max-width: 380px) {
  .container { padding-left: 16px; padding-right: 16px; }
  .hero__title { font-size: 27px; }
  .section__title { font-size: 22px; }
}
