/* M2 Pagamentos Pro — navy + âmbar, clean e confiável */
:root {
  --navy: #0a1f3d;
  --navy-deep: #061428;
  --navy-soft: #1c3a5f;
  --accent: #c4a35a;
  --accent-strong: #a8873f;
  --accent-soft: #f3ead4;
  --ink: #1a2633;
  --ink-muted: #5a6b7a;
  --paper: #f7f8fb;
  --paper-warm: #eef1f6;
  --white: #ffffff;
  --line: rgba(10, 31, 61, 0.1);
  --line-strong: rgba(10, 31, 61, 0.18);
  --radius: 10px;
  --radius-sm: 6px;
  --radius-xs: 4px;
  --shadow: 0 1px 2px rgba(10, 31, 61, 0.04), 0 8px 24px rgba(10, 31, 61, 0.06);
  --font-display: "Outfit", "Plus Jakarta Sans", sans-serif;
  --font-body: "Plus Jakarta Sans", "DM Sans", sans-serif;
  --max: 1080px;
  --nav-h: 64px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --space-section: 3.75rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: -0.011em;
  color: var(--ink);
  background:
    radial-gradient(ellipse 90% 50% at 100% 0%, rgba(196, 163, 90, 0.08), transparent 55%),
    linear-gradient(180deg, #e8edf4 0%, var(--paper) 22%, var(--paper-warm) 100%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

a {
  color: var(--navy-soft);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--navy);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin: 0 0 0.5em;
  color: var(--navy);
}

p {
  margin: 0 0 0.95em;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  backdrop-filter: blur(14px);
  background: rgba(247, 248, 251, 0.92);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100% - 2.5rem, var(--max));
}

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 0.1rem;
  text-decoration: none;
  color: var(--navy);
}

.brand-mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.brand-mark span {
  color: var(--accent-strong);
  font-weight: 650;
}

.brand-tag {
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 600;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.nav a {
  text-decoration: none;
  color: var(--ink-muted);
  font-weight: 560;
  font-size: 0.93rem;
  transition: color 0.25s var(--ease);
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--navy);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.58rem 1.05rem;
  background: var(--navy);
  color: #fff !important;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 650;
  font-size: 0.88rem;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}

.nav-cta:hover {
  background: var(--navy-deep);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line-strong);
  background: var(--white);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 17px;
  height: 2px;
  background: var(--navy);
  border-radius: 1px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.35rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 650;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--navy);
  color: #fff;
}

.btn-primary:hover {
  background: var(--navy-deep);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--line-strong);
}

.btn-secondary:hover {
  border-color: var(--navy-soft);
  background: rgba(10, 31, 61, 0.04);
  color: var(--navy-deep);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.78);
  color: var(--navy);
  border-color: rgba(10, 31, 61, 0.12);
}

.btn-ghost:hover {
  background: #fff;
  color: var(--navy-deep);
  border-color: rgba(10, 31, 61, 0.22);
}

.btn-accent {
  background: var(--accent);
  color: var(--navy-deep);
}

.btn-accent:hover {
  background: var(--accent-strong);
  color: #fff;
}

/* Hero — full-bleed compacto (~55vh) */
.hero {
  position: relative;
  min-height: clamp(320px, 52vh, 520px);
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(105deg, rgba(232, 237, 244, 0.96) 0%, rgba(232, 237, 244, 0.84) 42%, rgba(232, 237, 244, 0.32) 70%, rgba(10, 31, 61, 0.22) 100%),
    linear-gradient(180deg, transparent 45%, rgba(247, 248, 251, 0.95) 100%);
}

.hero-content {
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  padding: 2.5rem 0 2.75rem;
  max-width: 36rem;
  animation: rise-in 0.85s var(--ease) both;
}

.hero-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 5.5vw, 3.35rem);
  letter-spacing: -0.045em;
  line-height: 0.98;
  margin-bottom: 0.85rem;
  color: var(--navy);
}

.hero-brand em {
  font-style: normal;
  color: var(--navy-soft);
  display: block;
  font-weight: 650;
}

.hero-brand .accent {
  color: var(--accent-strong);
  font-weight: 650;
}

.hero-lead {
  font-size: clamp(1rem, 1.8vw, 1.12rem);
  line-height: 1.6;
  color: var(--ink-muted);
  max-width: 30rem;
  margin-bottom: 1.35rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

/* Sections */
.section {
  padding: var(--space-section) 0;
}

.section-tight {
  padding-top: 0;
}

.section-band {
  background: rgba(255, 255, 255, 0.55);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1.85rem;
  max-width: 40rem;
}

.section-head h2 {
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  margin: 0;
}

.section-head p {
  color: var(--ink-muted);
  margin: 0;
  line-height: 1.6;
}

.eyebrow {
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin: 0;
}

/* Benefits */
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem 1.5rem;
}

.benefit {
  padding: 0.15rem 0;
}

.benefit h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.benefit p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.benefit-icon {
  display: block;
  width: 2rem;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin-bottom: 0.85rem;
}

/* Trust strip */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.trust-strip li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.2rem;
}

.trust-strip strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 0.3rem;
}

.trust-strip span {
  display: block;
  color: var(--ink-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Differentials */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.diff-item h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.diff-item p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.93rem;
  line-height: 1.55;
}

/* Stack chips */
.stack-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.stack-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--navy);
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 1.05rem 0;
}

.faq-item h3 {
  font-size: 1.05rem;
  margin: 0 0 0.4rem;
}

.faq-item p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.94rem;
  line-height: 1.55;
  max-width: 48rem;
}

/* Product grid — cards only for interaction */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  box-shadow: none;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
  opacity: 0;
  transform: translateY(14px);
}

.product-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: rgba(196, 163, 90, 0.45);
  box-shadow: var(--shadow);
}

.product-card:nth-child(1) { transition-delay: 0.04s; }
.product-card:nth-child(2) { transition-delay: 0.1s; }
.product-card:nth-child(3) { transition-delay: 0.16s; }
.product-card:nth-child(4) { transition-delay: 0.22s; }
.product-card:nth-child(5) { transition-delay: 0.28s; }
.product-card:nth-child(6) { transition-delay: 0.34s; }

.product-card-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--accent-soft);
}

.product-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease);
}

.product-card:hover .product-card-media img {
  transform: scale(1.03);
}

.product-card-body {
  padding: 1.15rem 1.2rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}

.product-card-body h3 {
  font-size: 1.1rem;
  margin: 0;
  color: var(--navy);
}

.product-card-body p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.9rem;
  line-height: 1.55;
  flex: 1;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.85rem;
  align-items: center;
  margin-top: 0.35rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

.stack {
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.price {
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--navy);
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  margin-left: auto;
}

/* Page hero (inner pages) */
.page-hero {
  padding: 2.75rem 0 1.5rem;
  position: relative;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(160deg, rgba(196, 163, 90, 0.09), transparent 52%),
    linear-gradient(180deg, rgba(10, 31, 61, 0.03), transparent);
  pointer-events: none;
}

.page-hero .container {
  position: relative;
}

.page-hero h1 {
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  max-width: 18ch;
  margin-bottom: 0.55rem;
}

.page-hero p {
  max-width: 38rem;
  color: var(--ink-muted);
  margin: 0;
  line-height: 1.6;
}

/* Steps / about */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  counter-reset: step;
}

.steps-3 {
  grid-template-columns: repeat(3, 1fr);
}

.step {
  padding: 0.1rem 0;
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--accent-strong);
  margin-bottom: 0.55rem;
  letter-spacing: -0.03em;
  opacity: 0.9;
}

.step h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.step p {
  color: var(--ink-muted);
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
}

.split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.25rem;
  align-items: start;
}

.panel {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.45rem;
}

.panel h3 {
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
}

.panel ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--ink-muted);
  line-height: 1.55;
  font-size: 0.94rem;
}

.panel li + li {
  margin-top: 0.45rem;
}

/* Product detail */
.product-detail {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.25rem;
  align-items: start;
  padding-bottom: 3.5rem;
}

.product-detail-media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--accent-soft);
}

.product-detail-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.product-detail-copy h1 {
  font-size: clamp(1.75rem, 3.2vw, 2.3rem);
}

.deliverables {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0;
}

.deliverables li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--ink-muted);
  line-height: 1.5;
  font-size: 0.95rem;
}

.deliverables li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.45rem;
  height: 0.45rem;
  background: var(--accent);
  border-radius: var(--radius-xs);
}

.price-block {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.65rem 1.15rem;
  margin: 1.2rem 0 1.35rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.price-block .price {
  font-size: 1.45rem;
  margin-left: 0;
}

.price-note {
  color: var(--ink-muted);
  font-size: 0.88rem;
}

/* Contact form */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 2rem;
  align-items: start;
}

.form {
  display: grid;
  gap: 0.95rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.45rem;
}

.form label {
  display: grid;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--navy);
}

.form input,
.form select,
.form textarea {
  font: inherit;
  padding: 0.78rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fbfcfe;
  color: var(--ink);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(196, 163, 90, 0.2);
}

.form textarea {
  min-height: 130px;
  resize: vertical;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
}

.form-hint {
  font-size: 0.84rem;
  color: var(--ink-muted);
  margin: 0;
}

/* CTA band */
.cta-band {
  margin: 0.25rem 0 3.25rem;
  padding: 2.15rem 2.35rem;
  border-radius: var(--radius);
  background: linear-gradient(125deg, var(--navy-deep) 0%, var(--navy) 50%, #16365a 100%);
  color: #fff;
  display: grid;
  gap: 1.1rem;
  align-items: center;
  grid-template-columns: 1.45fr auto;
}

.cta-band h2 {
  color: #fff;
  margin: 0 0 0.35rem;
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  font-weight: 650;
}

.cta-band p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.55;
  font-size: 0.96rem;
}

.cta-band .btn-primary {
  background: var(--accent);
  color: var(--navy-deep);
}

.cta-band .btn-primary:hover {
  background: #fff;
  color: var(--navy-deep);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.25rem 0 1.85rem;
  background: rgba(255, 255, 255, 0.6);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-grid p {
  color: var(--ink-muted);
  margin: 0.45rem 0 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.25rem;
}

.footer-links a {
  text-decoration: none;
  font-weight: 600;
  color: var(--ink-muted);
}

.footer-links a:hover {
  color: var(--navy);
}

.footer-copy {
  margin-top: 1.65rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--ink-muted);
}

/* Filters (catalog) */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.5rem;
}

.filter-btn {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink-muted);
  font: inherit;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.48rem 0.9rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.filter-btn:hover,
.filter-btn.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.product-card.is-hidden {
  display: none;
}

/* Animations */
@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 960px) {
  .product-grid,
  .benefit-grid,
  .diff-grid,
  .trust-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps,
  .steps-3,
  .split,
  .product-detail,
  .contact-grid,
  .cta-band {
    grid-template-columns: 1fr;
  }

  .steps {
    gap: 1.35rem;
  }
}

@media (max-width: 720px) {
  :root {
    --space-section: 2.85rem;
  }

  .container,
  .site-header .container,
  .hero-content {
    width: min(100% - 1.6rem, var(--max));
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    background: rgba(247, 248, 251, 0.98);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.25rem;
    gap: 0.3rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav a {
    padding: 0.65rem 0.25rem;
  }

  .nav-cta {
    margin-top: 0.3rem;
    text-align: center;
  }

  .product-grid,
  .benefit-grid,
  .diff-grid,
  .trust-strip {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: clamp(280px, 48vh, 420px);
  }

  .hero-content {
    padding: 2rem 0 2.25rem;
  }

  .cta-band {
    padding: 1.65rem;
  }

  .page-hero {
    padding: 2.15rem 0 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
