/* Opivoty sales asset shared theme. Aligned with ~/Claude/opivoty/DESIGN.md (light-mode only). */

:root {
  --orange: #f66f00;
  --orange-dark: #d45c00;
  --orange-light: #f5a623;
  --purple: #6f2cf2;
  --purple-dark: #5a1fd6;
  --dark: #0d0d1a;          /* texto de heading apenas, nunca background */
  --white: #ffffff;
  --gray: #f7f7f7;
  --gray-2: #ececef;
  --text: #333333;
  --muted: #666666;
  --green: #10b981;
  --border: #ebebeb;         /* DESIGN.md canonical */
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  font-family: 'Ubuntu', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--orange); text-decoration: none; }
a:hover { color: var(--orange-dark); text-decoration: underline; }

.page { max-width: 1140px; margin: 0 auto; padding: 48px 32px; }
.page-narrow { max-width: 880px; margin: 0 auto; padding: 48px 32px; }

:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

/* Header bar (light, com border bottom) */
.brand-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 32px; background: var(--white); color: var(--text);
  border-bottom: 1px solid var(--border);
}
.brand-bar .logo { height: 28px; }
.brand-bar .meta { font-size: 13px; color: var(--muted); font-weight: 500; letter-spacing: .5px; }

/* Hero (light-mode, branco dominante) */
.hero {
  padding: 64px 32px 56px;
  background: var(--white);
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.hero .eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--orange); margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700; line-height: 1.15; margin-bottom: 16px;
  max-width: 22ch; color: var(--dark);
}
.hero .lede {
  font-size: 18px; font-weight: 400; color: var(--muted);
  max-width: 60ch; line-height: 1.55;
}
.hero .meta-row {
  margin-top: 24px; display: flex; gap: 24px; flex-wrap: wrap;
  font-size: 13px; color: var(--muted); font-weight: 500;
}

/* Section */
.section { padding: 64px 32px; }
.section.alt { background: var(--gray); }
.section h2 {
  font-size: clamp(22px, 2.8vw, 32px); font-weight: 700;
  margin-bottom: 8px; color: var(--dark); line-height: 1.25;
}
.section .section-lede {
  font-size: 18px; color: var(--muted); margin-bottom: 32px; max-width: 64ch; line-height: 1.7;
}

/* 3-column flow */
.flow {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px;
  margin-top: 32px;
}
.flow-card {
  background: var(--white); padding: 28px; border-radius: 12px;
  border: 1px solid var(--border);
}
.flow-card .label {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--white); background: var(--orange);
  padding: 5px 16px; border-radius: 20px; margin-bottom: 16px;
}
.flow-card.solution .label { background: var(--purple); }
.flow-card.results .label { background: var(--green); }
.flow-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 12px; line-height: 1.4; color: var(--dark); }
.flow-card p { font-size: 15px; color: var(--text); margin-bottom: 12px; }
.flow-card ul { margin: 12px 0 0 0; padding-left: 18px; }
.flow-card ul li { font-size: 15px; margin-bottom: 8px; }

/* Métricas */
.metric-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px;
  margin-top: 24px;
}
.metric {
  background: var(--white); border: 1px solid var(--border); border-radius: 12px;
  padding: 24px;
}
.metric .value {
  font-size: 40px; font-weight: 700; color: var(--purple); line-height: 1;
  font-variant-numeric: tabular-nums;
}
.metric .label {
  font-size: 14px; color: var(--muted); margin-top: 8px; font-weight: 500;
}
.metric.orange .value { color: var(--orange); }
.metric.green .value { color: var(--green); }
.metric.purple .value { color: var(--purple); }

/* Pulse feature block */
.pulse-features {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 32px;
}
.pulse-feature {
  padding: 24px; background: var(--white); border-radius: 12px;
  border: 1px solid var(--border); border-left: 4px solid var(--orange);
}
.pulse-feature h4 { font-size: 16px; font-weight: 700; margin-bottom: 8px; color: var(--dark); }
.pulse-feature p { font-size: 14px; color: var(--text); }

/* Tables */
table.data {
  width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px;
  background: var(--white); border-radius: 8px; overflow: hidden;
  border: 1px solid var(--border);
  font-variant-numeric: tabular-nums;
}
table.data th {
  background: var(--gray); color: var(--text); padding: 12px 14px;
  text-align: left; font-weight: 500; font-size: 14px;
  border-bottom: 1.5px solid var(--border);
}
table.data td { padding: 12px 14px; border-bottom: 1px solid var(--border); }
table.data tr:last-child td { border-bottom: none; }
table.data .delta-positive { color: var(--green); font-weight: 700; }
table.data .delta-negative { color: #c0392b; font-weight: 700; }

/* CTA block (laranja, não dark) */
.cta-block {
  background: var(--orange);
  color: var(--white); padding: 48px 32px; border-radius: 12px;
  margin: 48px 0; text-align: center;
}
.cta-block h2 { color: var(--white); }
.cta-block p { color: rgba(255,255,255,.92); margin: 12px auto 24px; max-width: 50ch; }
.cta-block .btn { background: var(--white); color: var(--orange); }
.cta-block .btn:hover { background: var(--gray); color: var(--orange-dark); }

/* Buttons */
.btn {
  display: inline-block; background: var(--orange); color: var(--white);
  padding: 13px 28px; border-radius: 8px; font-weight: 700; font-size: 15px;
  text-decoration: none; transition: background .2s, transform .1s;
  min-height: 44px;
}
.btn:hover { background: var(--orange-dark); color: var(--white); text-decoration: none; transform: translateY(-2px); }
.btn.secondary { background: transparent; color: var(--text); border: 1.5px solid var(--border); }
.btn.secondary:hover { background: var(--white); color: var(--orange); border-color: var(--orange); transform: translateY(-2px); }

/* Footer (gray, não dark, conforme DESIGN.md) */
footer.brand-footer {
  padding: 32px; background: var(--gray); color: var(--muted);
  font-size: 13px; text-align: center;
  border-top: 1px solid var(--border);
}
footer.brand-footer a { color: var(--orange); }
footer.brand-footer a:hover { color: var(--orange-dark); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Print */
@media print {
  .hero { padding: 32px; }
  .section { padding: 32px; page-break-inside: avoid; }
  .cta-block { display: none; }
  .brand-bar { padding: 12px 32px; }
}

/* Responsive */
@media (max-width: 768px) {
  .flow { grid-template-columns: 1fr; }
  .pulse-features { grid-template-columns: 1fr; }
  .hero { padding: 40px 24px; }
  .section { padding: 40px 24px; }
}
