/* ─────────────────────────────────────────────────────────────────────
   FONTES: system stack de alta qualidade (0 KB, sem requests externos)
   Para activar fontes custom: descarregar WOFF2 para /fonts/ e
   descomentar os @font-face abaixo.
   ─────────────────────────────────────────────────────────────────────

@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('fonts/PlusJakartaSans-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('fonts/PlusJakartaSans-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('fonts/PlusJakartaSans-ExtraBold.woff2') format('woff2');
  font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'DM Mono';
  src: url('fonts/DMMono-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'DM Mono';
  src: url('fonts/DMMono-Medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
*/

:root {
  --green:         #2f8f78;
  --green-light:   #eaf7f3;
  --green-mid:     #4aab95;
  --green-dark:    #1d7a62;
  --navy:          #1c2b3a;
  --orange:        #b84a22;
  --orange-light:  #faeae4;
  --bg:            #f4f2ee;
  --bg-card:       #ffffff;
  --bg-alt:        #ede9e3;
  --text:          #1c2b3a;
  --text-muted:    #4a5568;
  --text-light:    #718096;
  --border:        rgba(28,43,58,0.08);
  --border-med:    rgba(28,43,58,0.14);
  --border-strong: rgba(28,43,58,0.22);
  --radius:        10px;
  --radius-sm:     6px;
  --mono:          'DM Mono', ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, monospace;
  --sans:          'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --serif:         Georgia, 'Times New Roman', serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

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

/* NAV */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(244,242,238,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-med);
  padding: 0 40px;
  display: flex; align-items: center; justify-content: space-between;
  height: 62px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.nav-logo svg { height: 32px; width: auto; }
.nav-wordmark {
  font-size: 15px; font-weight: 800; letter-spacing: -0.01em;
  color: var(--navy); line-height: 1;
}
.nav-wordmark span { color: var(--green); }
.nav-tagline {
  font-family: var(--mono); font-size: 8px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-light);
  display: block; margin-top: 2px;
}
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--text-muted); text-decoration: none; transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--green); }
.nav-cta {
  font-family: var(--sans); font-size: 13px; font-weight: 700;
  background: var(--navy); color: #fff; padding: 9px 20px;
  border-radius: var(--radius-sm); text-decoration: none; transition: background 0.2s;
}
.nav-cta:hover { background: var(--green-dark); }

/* LAYOUT */
.container        { max-width: 1000px; margin: 0 auto; padding: 0 40px; }
.container-narrow { max-width:  740px; margin: 0 auto; padding: 0 40px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: start; }

/* SECTIONS */
section     { padding: 80px 0; }
section.alt { background: var(--bg-alt); }

.section-label {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--green-dark); margin-bottom: 14px; display: block;
  font-weight: 500;
}

h1 { font-size: clamp(34px,5vw,54px); font-weight: 800; line-height: 1.08; letter-spacing: -0.025em; color: var(--navy); }
h2 { font-size: clamp(26px,3.5vw,38px); font-weight: 700; line-height: 1.18; letter-spacing: -0.02em; color: var(--navy); margin-bottom: 18px; }
h3 { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 8px; color: var(--navy); }

p { color: var(--text-muted); line-height: 1.78; margin-bottom: 16px; font-size: 15px; }
p:last-child { margin-bottom: 0; }
p.lead { font-size: 17px; line-height: 1.75; }

em.accent { font-style: normal; color: var(--green-dark); }
strong { color: var(--navy); font-weight: 700; }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-size: 14px; font-weight: 700;
  padding: 13px 28px; border-radius: var(--radius-sm);
  text-decoration: none; transition: all 0.2s; cursor: pointer; border: none;
}
.btn-primary       { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--green-dark); }
.btn-green         { background: var(--green); color: var(--navy); }
.btn-green:hover   { background: var(--green-dark); color: #fff; }
.btn-outline       { background: transparent; color: var(--navy); border: 1.5px solid var(--border-strong); }
.btn-outline:hover { background: var(--bg-card); }
.btn-group         { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 36px; }

/* CARDS */
.card { background: var(--bg-card); border: 1px solid var(--border-med); border-radius: var(--radius); padding: 26px; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 16px; }

/* BEFORE/AFTER */
.ba-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ba-card { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border-med); }
.ba-head { padding: 12px 20px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500; }
.ba-head.before { background: var(--orange-light); color: #8a3518; border-bottom: 1px solid #e8b09a; }
.ba-head.after  { background: var(--green-light);  color: var(--green-dark); border-bottom: 1px solid var(--green-mid); }
.ba-body { background: var(--bg-card); padding: 16px 20px; }
.ba-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.ba-row:last-child { border-bottom: none; }
.ba-key { color: var(--text-muted); }
.ba-val { font-family: var(--mono); font-weight: 500; font-size: 14px; }
.ba-val.bad  { color: var(--orange); }
.ba-val.good { color: var(--green-dark); }

/* CODE BLOCK */
.code-block {
  background: #141d26; border-radius: var(--radius); padding: 24px 28px;
  font-family: var(--mono); font-size: 12px; line-height: 1.9; overflow-x: auto; margin-top: 20px;
}
.code-block .tag     { color: #e8997a; }
.code-block .attr    { color: #3ab89a; }
.code-block .val     { color: #80b4e8; }
.code-block .comment { color: #4a6070; }
.code-block .text    { color: #c8c6c0; }
.code-block .hi-good { color: #3ab89a; }
.code-block .hi-bad  { color: #e8997a; }

/* METRIC CARD */
.metric-card { background: var(--bg-card); border: 1px solid var(--border-med); border-radius: var(--radius); padding: 22px 26px; display: flex; flex-direction: column; gap: 6px; }
.metric-label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-light); }
.metric-value { font-family: var(--mono); font-size: 30px; font-weight: 500; color: var(--navy); line-height: 1; }
.metric-value.good { color: var(--green-dark); }
.metric-value.bad  { color: var(--orange); }
.metric-desc { font-size: 13px; color: var(--text-muted); margin: 0; }

/* WEIGHT BAR */
.weight-bar-wrap { margin-bottom: 28px; }
.weight-bar-info { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.weight-bar-name { font-size: 14px; color: var(--text-muted); }
.weight-bar-val  { font-family: var(--mono); font-size: 22px; font-weight: 500; }
.weight-bar-track { height: 10px; background: var(--border-med); border-radius: 5px; overflow: hidden; }
.weight-bar-fill  { height: 100%; border-radius: 5px; }
.weight-bar-fill.good { background: var(--green); }
.weight-bar-fill.bad  { background: var(--orange); }
.weight-note { font-size: 12px; color: var(--text-light); margin-top: 6px; }

/* WORKFLOW */
.workflow { display: flex; flex-direction: column; }
.workflow-step { display: flex; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--border); }
.workflow-step:last-child { border-bottom: none; }
.step-num  { font-family: var(--mono); font-size: 11px; color: var(--green-dark); min-width: 28px; padding-top: 2px; font-weight: 500; }
.step-title { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 5px; color: var(--navy); }
.step-desc  { font-size: 14px; color: var(--text-muted); line-height: 1.65; margin: 0; }

/* PROBLEM LIST */
.problem-item { display: flex; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--border); }
.problem-item:last-child { border-bottom: none; }
.problem-icon { width: 40px; height: 40px; min-width: 40px; border-radius: var(--radius-sm); background: var(--orange-light); display: flex; align-items: center; justify-content: center; font-size: 18px; }
.problem-title { font-size: 15px; font-weight: 700; margin-bottom: 4px; color: var(--navy); }
.problem-desc  { font-size: 14px; color: var(--text-muted); line-height: 1.65; margin: 0; }

/* INSIGHT */
.insight { border-left: 3px solid var(--green); padding: 16px 22px; margin: 28px 0; background: var(--green-light); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.insight p { color: var(--green-dark); font-size: 15px; margin: 0; font-weight: 600; line-height: 1.6; }

/* NIVEL CARD — para abordagens */
.nivel-card {
  background: var(--bg-card);
  border: 1px solid var(--border-med);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
}
.nivel-card::before {
  content: attr(data-num);
  position: absolute;
  top: 20px; right: 24px;
  font-family: var(--mono);
  font-size: 48px;
  font-weight: 500;
  color: rgba(28,43,58,0.05);
  line-height: 1;
}
.nivel-badge {
  display: inline-block;
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase;
  font-weight: 500; padding: 4px 10px; border-radius: 100px; margin-bottom: 14px;
}
.nivel-badge.n1 { background: var(--green-light); color: var(--green-dark); }
.nivel-badge.n2 { background: #e8f0f8; color: #1a4a7a; }
.nivel-badge.n3 { background: #f5eef8; color: #6b3a8a; }
.nivel-badge.n4 { background: #fef4e8; color: #7a4a10; }

/* TAG PILL */
.tag-pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--green-dark); background: var(--green-light); border: 1px solid var(--green-mid);
  padding: 5px 13px; border-radius: 100px; margin-bottom: 28px; width: fit-content;
}
.tag-pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }

/* PAGE HERO */
.page-hero { padding: 88px 0 72px; border-bottom: 1px solid var(--border-med); position: relative; overflow: hidden; }
.page-hero .subtitle { font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--text-muted); max-width: 580px; line-height: 1.7; margin-top: 20px; }
.hero-bg-num { position: absolute; right: -10px; top: 50%; transform: translateY(-50%); font-size: clamp(90px,16vw,180px); font-weight: 800; color: rgba(28,43,58,0.035); line-height: 1; letter-spacing: -0.05em; pointer-events: none; user-select: none; white-space: nowrap; }

/* DATA TABLE */
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th { text-align: left; padding: 12px 16px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-light); border-bottom: 2px solid var(--border-strong); }
.data-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); color: var(--text-muted); }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:nth-child(even) td { background: var(--bg); }
.val-bad  { font-family: var(--mono); font-weight: 600; color: var(--orange) !important; }
.val-good { font-family: var(--mono); font-weight: 600; color: var(--green-dark) !important; }
.val-note { font-family: var(--mono); font-size: 12px; color: var(--text-muted) !important; }

/* CTA SECTION */
.cta-section { background: var(--navy); padding: 80px 0; text-align: center; }
.cta-section h2 { color: #fff; margin-bottom: 14px; }
.cta-section p  { color: rgba(255,255,255,0.7); margin-bottom: 36px; font-family: var(--serif); font-style: italic; font-size: 18px; }
.cta-section .btn-green { background: var(--green); color: var(--navy); font-weight: 800; }
.cta-section .btn-green:hover { background: var(--green-mid); }

/* VELOCITAS BRIDGE */
.velocitas-bridge {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 36px 40px;
  display: flex;
  gap: 40px;
  align-items: center;
  margin-top: 48px;
}
.velocitas-bridge-text h3 { color: #fff; margin-bottom: 10px; font-size: 20px; }
.velocitas-bridge-text p  { color: rgba(255,255,255,0.65); font-size: 14px; margin: 0; }
.velocitas-bridge-cta { flex-shrink: 0; }
.velocitas-bridge-cta a {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-size: 13px; font-weight: 700;
  background: var(--green); color: var(--navy);
  padding: 11px 22px; border-radius: var(--radius-sm); text-decoration: none;
  white-space: nowrap; transition: background 0.2s;
}
.velocitas-bridge-cta a:hover { background: var(--green-mid); }

/* FOOTER */
footer { background: var(--navy); padding: 48px 0 36px; }
footer .container { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 32px; }
.footer-brand {}
.footer-brand svg { height: 28px; width: auto; margin-bottom: 10px; }
.footer-tagline { font-family: var(--mono); font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.35); display: block; }
.footer-links { display: flex; gap: 32px; flex-wrap: wrap; align-items: center; }
.footer-links a { color: rgba(255,255,255,0.45); text-decoration: none; font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; transition: color 0.2s; }
.footer-links a:hover { color: var(--green); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); margin-top: 36px; padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-copy { font-family: var(--mono); font-size: 10px; color: rgba(255,255,255,0.3); }
.footer-copy a { color: var(--green); text-decoration: none; }

/* RESPONSIVE */
@media (max-width: 680px) {
  nav { padding: 0 20px; height: 56px; }
  .nav-links { display: none; }
  .nav-tagline { display: none; }
  .container, .container-narrow { padding: 0 20px; }
  section { padding: 56px 0; }
  .ba-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr !important; }
  footer .container { flex-direction: column; }
  .velocitas-bridge { flex-direction: column; gap: 24px; padding: 28px; }
}

/* NAV ACTIONS */
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-wa {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-muted); border: 1px solid var(--border-med);
  padding: 7px 14px; border-radius: var(--radius-sm); text-decoration: none;
  transition: all 0.2s;
}
.nav-wa:hover { color: #1a7a50; border-color: #1a7a50; background: var(--green-light); }
.nav-wa svg { opacity: 0.7; }
.nav-wa:hover svg { opacity: 1; }

/* WA BLOCK */
.wa-block {
  background: var(--bg-alt);
  border: 1px solid var(--border-med);
  border-radius: var(--radius);
  padding: 32px 36px;
  display: flex; gap: 32px; align-items: center; flex-wrap: wrap;
  margin-top: 48px;
}
.wa-block-text h3 { font-size: 18px; margin-bottom: 6px; }
.wa-block-text p  { font-size: 14px; color: var(--text-muted); margin: 0; }
.wa-block-actions { display: flex; gap: 12px; flex-wrap: wrap; flex-shrink: 0; }
.btn-wa {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-size: 13px; font-weight: 700;
  background: #1a8a5a; color: #fff;
  padding: 12px 22px; border-radius: var(--radius-sm); text-decoration: none;
  transition: background 0.2s;
}
.btn-wa:hover { background: #157048; }

@media (max-width: 680px) {
  .nav-wa span { display: none; }
  .wa-block { flex-direction: column; align-items: flex-start; padding: 24px; }
}

/* NAV ACTIONS */
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-wa {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-muted); border: 1px solid var(--border-med);
  padding: 7px 14px; border-radius: var(--radius-sm); text-decoration: none;
  transition: all 0.2s;
}
.nav-wa:hover { color: #1a7a50; border-color: #1a7a50; background: var(--green-light); }
.nav-wa svg { opacity: 0.7; }
.nav-wa:hover svg { opacity: 1; }

/* WA BLOCK */
.wa-block {
  background: var(--bg-alt);
  border: 1px solid var(--border-med);
  border-radius: var(--radius);
  padding: 32px 36px;
  display: flex; gap: 32px; align-items: center; flex-wrap: wrap;
  margin-top: 48px;
}
.wa-block-text h3 { font-size: 18px; margin-bottom: 6px; }
.wa-block-text p  { font-size: 14px; color: var(--text-muted); margin: 0; }
.wa-block-actions { display: flex; gap: 12px; flex-wrap: wrap; flex-shrink: 0; }
.btn-wa {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-size: 13px; font-weight: 700;
  background: #1a8a5a; color: #fff;
  padding: 12px 22px; border-radius: var(--radius-sm); text-decoration: none;
  transition: background 0.2s;
}
.btn-wa:hover { background: #157048; }

@media (max-width: 680px) {
  .nav-wa span { display: none; }
  .wa-block { flex-direction: column; align-items: flex-start; padding: 24px; }
}

/* NAV ACTIONS */
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-wa {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-muted); border: 1px solid var(--border-med);
  padding: 7px 14px; border-radius: var(--radius-sm); text-decoration: none;
  transition: all 0.2s;
}
.nav-wa:hover { color: #1a7a50; border-color: #1a7a50; background: var(--green-light); }
.nav-wa svg { opacity: 0.7; }
.nav-wa:hover svg { opacity: 1; }

/* WA BLOCK */
.wa-block {
  background: var(--bg-alt);
  border: 1px solid var(--border-med);
  border-radius: var(--radius);
  padding: 32px 36px;
  display: flex; gap: 32px; align-items: center; flex-wrap: wrap;
  margin-top: 48px;
}
.wa-block-text h3 { font-size: 18px; margin-bottom: 6px; }
.wa-block-text p  { font-size: 14px; color: var(--text-muted); margin: 0; }
.wa-block-actions { display: flex; gap: 12px; flex-wrap: wrap; flex-shrink: 0; }
.btn-wa {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-size: 13px; font-weight: 700;
  background: #1a8a5a; color: #fff;
  padding: 12px 22px; border-radius: var(--radius-sm); text-decoration: none;
  transition: background 0.2s;
}
.btn-wa:hover { background: #157048; }

@media (max-width: 680px) {
  .nav-wa span { display: none; }
  .wa-block { flex-direction: column; align-items: flex-start; padding: 24px; }
}

/* ── YOUTUBE FAÇADE (lazy load) ──────────────────────────────────────── */
.yt-facade {
  position: relative;
  padding-bottom: 56.25%;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: #000;
}
.yt-facade img {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity 0.2s;
}
.yt-facade:hover img { opacity: 0.85; }
.yt-play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 68px; height: 48px;
  background: #ff0000;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s, background 0.2s;
  box-shadow: 0 4px 24px rgba(0,0,0,0.5);
}
.yt-facade:hover .yt-play-btn {
  transform: translate(-50%,-50%) scale(1.08);
  background: #cc0000;
}
.yt-play-btn svg { width: 24px; height: 24px; fill: #fff; margin-left: 4px; }
.yt-facade iframe {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}
.yt-label {
  font-size: 12px;
  color: var(--text-light);
  font-family: var(--mono);
  margin-top: 10px;
  text-align: center;
  display: block;
}
