/* ================================================
   Financezy — Production Styles
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;500;600;700&family=Nunito+Sans:ital,opsz,wght@0,6..12,400;0,6..12,600;0,6..12,700;1,6..12,400&display=swap');

/* ── Variables ─────────────────────────────────── */
:root {
  --color-navy:     #0A2E52;
  --color-blue:     #1459A8;
  --color-green:    #00856F;
  --color-green-lt: #E6F4F1;
  --color-gray:     #8C8C88;
  --color-gray-lt:  #F5F5F4;
  --color-body:     #3A3A3A;
  --color-red:      #D63B3B;
  --color-yellow:   #E8A020;
  --color-white:    #FFFFFF;
  --color-bg:       #F8F9FB;

  --font-display: 'Quicksand', sans-serif;
  --font-body:    'Nunito Sans', sans-serif;

  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;

  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-full: 9999px;

  --shadow-sm:  0 1px 3px rgba(10,46,82,.07);
  --shadow-md:  0 4px 16px rgba(10,46,82,.11);
  --shadow-lg:  0 12px 40px rgba(10,46,82,.15);
  --shadow-xl:  0 24px 64px rgba(10,46,82,.18);

  --ease-out:   cubic-bezier(0.22, 1, 0.36, 1);
  --transition: 0.2s ease;
}

/* ── Reset ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-body);
  background: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; }

/* ── Skip link (acessibilidade) ────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--color-navy);
  color: white;
  padding: 8px 16px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: 600;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ── Focus visible ─────────────────────────────── */
:focus-visible {
  outline: 3px solid var(--color-green);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Layout ────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Compensar navbar (72px) + ticker (40px) */
main { padding-top: 40px; }
@media (max-width: 768px) { main { padding-top: 36px; } }

.section { padding: 88px 0; }
.section--gray  { background: var(--color-bg); }
.section--navy  { background: var(--color-navy); }
.section--green { background: var(--color-green); }

/* ── Typography ────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--color-navy);
}
h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }

p { line-height: 1.65; }

.section-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-green);
  margin-bottom: 12px;
  display: block;
}
.section-title {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: var(--text-lg);
  color: var(--color-gray);
  max-width: 560px;
  line-height: 1.75;
}

/* ── Buttons ───────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s var(--ease-out), box-shadow 0.2s;
  white-space: nowrap;
  text-decoration: none;
}
.btn:active { transform: translateY(0) scale(0.98); }

.btn-primary {
  background: var(--color-green);
  color: var(--color-white);
}
.btn-primary:hover {
  background: #006D5A;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,133,111,0.35);
}

.btn-secondary {
  background: var(--color-white);
  color: var(--color-navy);
  border: 2px solid var(--color-navy);
}
.btn-secondary:hover {
  background: var(--color-navy);
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn-outline-white {
  background: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255,255,255,0.45);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: white;
  transform: translateY(-2px);
}

.btn-lg { padding: 18px 36px; font-size: var(--text-base); }
.btn-full { width: 100%; justify-content: center; }

/* ── Cards ─────────────────────────────────────── */
.card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(10,46,82,.07);
  transition: box-shadow 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }

/* ── Badge ─────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--radius-full);
}
.badge-green { background: var(--color-green-lt); color: var(--color-green); }
.badge-blue  { background: #EBF1FA; color: var(--color-blue); }
.badge-navy  { background: #E8EEF5; color: var(--color-navy); }

/* ── Grids ─────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ── Layout helpers ─────────────────────────────── */
.layout-split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.hero-section { padding: 160px 0 100px; }
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 28px; }

/* ── Product card ──────────────────────────────── */
.product-card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(10,46,82,.08);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.product-card:hover { box-shadow: var(--shadow-xl); transform: translateY(-6px); }
.product-card--featured {
  border-color: var(--color-green);
  box-shadow: 0 0 0 2px var(--color-green), var(--shadow-md);
}
.product-card__header { padding: 32px 32px 24px; border-bottom: 1px solid rgba(10,46,82,.06); }
.product-card__icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  margin-bottom: 20px;
}
.product-card__body { padding: 24px 32px; flex: 1; }
.product-card__footer { padding: 24px 32px; border-top: 1px solid rgba(10,46,82,.06); }
.product-card__price {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-navy);
  font-variant-numeric: tabular-nums;
  margin-bottom: 4px;
}
.product-card__price-note { font-size: var(--text-xs); color: var(--color-gray); margin-bottom: 20px; }
.product-card__features { display: flex; flex-direction: column; gap: 10px; }
.product-card__feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: var(--text-sm);
  color: var(--color-body);
  line-height: 1.5;
}
.product-card__feature::before {
  content: '';
  width: 18px; height: 18px;
  background: var(--color-green);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 1px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6l3 3 5-5' stroke='white' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: center;
}

/* ── Stat ──────────────────────────────────────── */
.stat-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  border: 1px solid rgba(10,46,82,.07);
  transition: box-shadow 0.2s, transform 0.2s var(--ease-out);
}
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.stat-card__value {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--color-green);
  letter-spacing: -0.03em;
  display: block;
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}
.stat-card__label { font-size: var(--text-sm); color: var(--color-gray); }

/* ── Testimonial ───────────────────────────────── */
.testimonial {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid rgba(10,46,82,.07);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.testimonial:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.testimonial__stars { color: var(--color-yellow); font-size: var(--text-lg); margin-bottom: 16px; letter-spacing: 2px; }
.testimonial__text { color: var(--color-body); line-height: 1.75; margin-bottom: 20px; font-style: italic; }
.testimonial__author { font-weight: 700; color: var(--color-navy); font-size: var(--text-sm); }
.testimonial__role { color: var(--color-gray); font-size: var(--text-xs); margin-top: 2px; }

/* ── Blog card ─────────────────────────────────── */
.blog-card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(10,46,82,.07);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.blog-card__image {
  height: 190px;
  background: linear-gradient(135deg, var(--color-bg), #e8eef5);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-gray);
  font-size: var(--text-sm);
  overflow: hidden;
}
.blog-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease-out); }
.blog-card:hover .blog-card__image img { transform: scale(1.04); }
.blog-card__body { padding: 24px; }
.blog-card__category {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-green);
  margin-bottom: 10px;
}
.blog-card__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 10px;
  line-height: 1.35;
  transition: color 0.2s;
}
.blog-card:hover .blog-card__title { color: var(--color-green); }
.blog-card__excerpt { font-size: var(--text-sm); color: var(--color-gray); line-height: 1.65; margin-bottom: 16px; }
.blog-card__meta { font-size: var(--text-xs); color: var(--color-gray); display: flex; align-items: center; justify-content: space-between; }
.blog-card__read { font-size: var(--text-sm); font-weight: 600; color: var(--color-green); }

/* ── Diff item ─────────────────────────────────── */
.diff-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px;
  border-radius: var(--radius-md);
  transition: background 0.2s;
}
.diff-item:hover { background: white; box-shadow: var(--shadow-sm); }
.diff-item__icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  background: var(--color-green-lt);
  color: var(--color-green);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.2s var(--ease-out);
}
.diff-item:hover .diff-item__icon { background: var(--color-green); transform: scale(1.08); }
.diff-item__content h4 { font-size: var(--text-lg); margin-bottom: 6px; }
.diff-item__content p { font-size: var(--text-sm); color: var(--color-gray); line-height: 1.65; }

/* ── Steps ─────────────────────────────────────── */
.steps { display: flex; flex-direction: column; }
.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid rgba(10,46,82,.07);
}
.step:last-child { border-bottom: none; }
.step__number {
  width: 48px; height: 48px;
  border-radius: var(--radius-full);
  background: var(--color-green);
  color: white;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-xl);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s;
}
.step:hover .step__number { transform: scale(1.1); box-shadow: 0 4px 16px rgba(0,133,111,0.35); }
.step__content h4 { margin-bottom: 6px; }
.step__content p { color: var(--color-gray); font-size: var(--text-sm); }

/* ── Disclaimer ────────────────────────────────── */
.disclaimer {
  background: #FFF8EC;
  border: 1px solid rgba(232,160,32,0.4);
  border-left: 4px solid var(--color-yellow);
  border-radius: var(--radius-md);
  padding: 24px 28px;
}
.disclaimer__title {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  color: #7A4800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.disclaimer__text { font-size: var(--text-sm); color: #5C3800; line-height: 1.8; }
.disclaimer__text strong { color: #3D2600; }

/* ── Page header ───────────────────────────────── */
.page-header {
  background: linear-gradient(135deg, var(--color-navy) 0%, #0F3D6E 100%);
  padding: 144px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 40%, rgba(0,133,111,0.12) 0%, transparent 65%);
  pointer-events: none;
}
.page-header h1 { color: white; margin-bottom: 16px; position: relative; }
.page-header p { color: rgba(255,255,255,0.7); font-size: var(--text-lg); max-width: 560px; margin: 0 auto; position: relative; }

/* ── Scroll animations ─────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Divider ───────────────────────────────────── */
.divider { height: 1px; background: rgba(10,46,82,.07); }

/* ── Hero visual (coluna direita) ──────────────── */
.hero-visual {
  position: absolute;
  right: 0;
  top: calc(50% - 190px);
  transform: translateY(-50%);
  height: 420px;
  width: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.hero-chart {
  background: rgba(255,255,255,0.97);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  width: 320px;
  box-shadow: 0 32px 80px rgba(10,46,82,0.35);
  position: relative;
  z-index: 2;
}
.hero-indicator {
  position: absolute;
  background: rgba(255,255,255,0.97);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  box-shadow: 0 12px 36px rgba(10,46,82,0.22);
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 3;
}
.hero-indicator__label {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--color-gray);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.hero-indicator__value {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-navy);
  font-size: 1rem;
}
.hero-indicator__value--up { color: var(--color-green); }
.hero-indicator--1 { top: 4%; right: 2%; animation: heroFloat 4s ease-in-out infinite; }
.hero-indicator--2 { bottom: 8%; right: 0; animation: heroFloat 4s ease-in-out infinite 1.4s; }
.hero-indicator--3 { bottom: 28%; left: -32px; animation: heroFloat 4s ease-in-out infinite 0.7s; }
@keyframes heroFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

/* ── Mock analysis card (Como funciona) ────────── */
.mock-analysis-card { padding: 36px; }

/* ── Article layout (artigos do blog) ──────────── */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 72px;
  max-width: 1080px;
  align-items: start;
}

/* ── Blog featured article ──────────────────────── */
.blog-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(10,46,82,.07);
}
.blog-featured__image {
  min-height: 300px;
  overflow: hidden;
}
.blog-featured__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 300px;
}
.blog-featured__content {
  padding: 48px;
}

/* ── Responsive ────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .layout-split { grid-template-columns: 1fr; gap: 40px; }
  .layout-split--mock-first > :first-child { order: 2; }
  .layout-split--mock-first > :last-child { order: 1; }
  .hero-visual { display: none; }
}

@media (max-width: 768px) {
  h1 { font-size: var(--text-4xl); }
  h2 { font-size: var(--text-3xl); }
  .section-title { font-size: var(--text-3xl); }
  .section { padding: 64px 0; }
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .page-header { padding: 116px 0 64px; }
  .page-header h1 { font-size: var(--text-4xl); }
  .layout-split { grid-template-columns: 1fr; gap: 40px; }
  .layout-split--mock-first > :first-child { order: 2; }
  .layout-split--mock-first > :last-child { order: 1; }
  .hero-section { padding: 100px 0 64px; }
  .hero-divider { display: none; }
  .stat-card__value { font-size: var(--text-3xl); }
  .pricing-grid { grid-template-columns: 1fr; }
  .blog-featured { grid-template-columns: 1fr; }
  .blog-featured__image { min-height: 220px; }
  .blog-featured__content { padding: 32px; }
  .article-layout { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 640px) {
  .btn-lg { white-space: normal; text-align: center; }
  .btn { white-space: normal; }
}

@media (max-width: 480px) {
  h1 { font-size: var(--text-3xl); }
  .container { padding: 0 16px; }
  .btn-lg { padding: 16px 24px; font-size: var(--text-sm); }
  .layout-split { gap: 24px; }
  .hero-section { padding: 84px 0 48px; }
  .mock-analysis-card { padding: 20px; }
  .stat-card__value { font-size: var(--text-2xl); }
  .page-header { padding: 88px 0 48px; }
  .blog-featured__content { padding: 24px 20px; }
  .blog-featured__image { min-height: 180px; }
}

/* ── Print ─────────────────────────────────────── */
@media print {
  .navbar, .btn, footer { display: none; }
  body { font-size: 12pt; color: black; }
}
