@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Source+Sans+3:wght@400;500;600;700&display=swap');

:root {
  --gold: #c9a227;
  --gold-light: #e8d48a;
  --gold-dark: #9a7b1a;
  --ink: #1a2332;
  --ink-soft: #2b3544;
  --muted: #6b7280;
  --bg: #f7f4ed;
  --bg-warm: #efe9dc;
  --card: #ffffff;
  --border: rgba(201, 162, 39, 0.22);
  --shadow: 0 20px 60px rgba(26, 35, 50, 0.08);
  --radius: 18px;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Source Sans 3', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--gold-dark); text-decoration: none; }
a:not(.btn):hover { color: var(--ink); }

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 244, 237, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
}

.site-brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.92rem;
  font-weight: 500;
}

.site-nav a:not(.btn) { color: var(--ink-soft); }
.site-nav a:not(.btn):hover { color: var(--gold-dark); }

.site-header > .site-nav__cta--mobile {
  display: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.5rem 1.05rem;
  border-radius: 5px;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  line-height: 1.25;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    color 0.2s ease,
    transform 0.15s ease;
  font-family: inherit;
}

a.btn,
a.btn:hover,
a.btn:focus-visible {
  text-decoration: none;
}

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

.btn--primary {
  background: linear-gradient(180deg, #d9b84a 0%, #b8941f 100%);
  color: #141414;
  border-color: rgba(120, 94, 18, 0.45);
  box-shadow:
    0 2px 10px rgba(154, 123, 26, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: linear-gradient(180deg, #dfc04e 0%, #9a7816 100%);
  color: #050505;
  border-color: rgba(80, 62, 10, 0.6);
  box-shadow:
    0 3px 12px rgba(154, 123, 26, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.site-nav .btn--primary {
  padding: 0.42rem 0.9rem;
  font-size: 0.8125rem;
}

.site-nav .btn--primary:hover,
.site-nav .btn--primary:focus-visible {
  color: #050505;
  background: linear-gradient(180deg, #e8ca58 0%, #927012 100%);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
  border-color: rgba(26, 35, 50, 0.2);
  box-shadow: 0 1px 4px rgba(26, 35, 50, 0.04);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: #fff;
  color: var(--ink);
  border-color: rgba(26, 35, 50, 0.32);
  box-shadow: 0 2px 10px rgba(26, 35, 50, 0.08);
}

.btn--dark {
  background: linear-gradient(180deg, #243044 0%, var(--ink) 100%);
  color: #fff;
  border-color: rgba(0, 0, 0, 0.25);
  box-shadow: 0 2px 10px rgba(26, 35, 50, 0.2);
}

.btn--dark:hover,
.btn--dark:focus-visible {
  background: linear-gradient(180deg, #2e3d52 0%, #151d28 100%);
  color: #fff;
  border-color: rgba(0, 0, 0, 0.35);
}

.btn--block { width: 100%; }

/* —— Hero —— */
.hero {
  padding: 4.5rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: -20% -10% auto;
  height: 70%;
  background: radial-gradient(ellipse at 30% 20%, rgba(201, 162, 39, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(201, 162, 39, 0.12);
  color: var(--gold-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.08;
  margin: 0 0 1rem;
  font-weight: 700;
  color: var(--ink);
}

.hero h1 em {
  font-style: normal;
  color: var(--gold-dark);
}

.hero__lead {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 34rem;
  margin: 0 0 1.75rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.hero__stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.65rem;
  color: var(--ink);
  line-height: 1.1;
}

.hero__stat span {
  font-size: 0.82rem;
  color: var(--muted);
}

.hero__visual {
  background: linear-gradient(165deg, var(--ink) 0%, #252018 100%);
  border-radius: calc(var(--radius) + 6px);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(201, 162, 39, 0.35);
}

.hero__mock {
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 380px;
}

.hero__mock-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  background: var(--ink);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  border-bottom: 2px solid var(--gold);
}

.hero__mock-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

.hero__mock-body { padding: 1.25rem; }

.mock-flow {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mock-step {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.85rem;
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(26, 35, 50, 0.06);
}

.mock-step__icon {
  flex: 0 0 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201, 162, 39, 0.14);
  color: var(--gold-dark);
  font-size: 1.1rem;
}

.mock-step strong { display: block; font-size: 0.88rem; margin-bottom: 0.15rem; }
.mock-step span { font-size: 0.78rem; color: var(--muted); }

/* —— Sections —— */
.section {
  padding: 4rem 0;
}

.section--alt { background: var(--bg-warm); }

.section__head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.75rem;
}

.section__head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  margin: 0 0 0.75rem;
  font-weight: 700;
}

.section__head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

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

.feature-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid rgba(26, 35, 50, 0.06);
  box-shadow: 0 8px 30px rgba(26, 35, 50, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.feature-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(26, 35, 50, 0.06) 0%, rgba(201, 162, 39, 0.12) 100%);
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.feature-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.feature-card .tag {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gold-dark);
}

/* —— Integrations —— */
.integrations {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.integration-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.35rem;
  border-left: 3px solid var(--gold);
}

.integration-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.integration-card .cost {
  font-size: 0.82rem;
  color: var(--gold-dark);
  font-weight: 600;
  margin-bottom: 0.65rem;
}

.integration-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

/* —— Pricing —— */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  align-items: stretch;
}

.plan-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
  border: 1.5px solid rgba(26, 35, 50, 0.08);
  display: flex;
  flex-direction: column;
  position: relative;
}

.plan-card--featured {
  border-color: var(--gold);
  box-shadow: 0 16px 48px rgba(201, 162, 39, 0.18);
  transform: scale(1.02);
}

.plan-card__badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: #1a1a1a;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  white-space: nowrap;
}

.plan-card h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin: 0 0 0.25rem;
}

.plan-card__desc {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0 0 1rem;
  min-height: 2.5rem;
}

.plan-card__price {
  margin-bottom: 1.25rem;
}

.plan-card__price strong {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--ink);
}

.plan-card__price span {
  font-size: 0.88rem;
  color: var(--muted);
}

.plan-card__limits {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  flex: 1;
  font-size: 0.86rem;
}

.plan-card__limits li {
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(26, 35, 50, 0.06);
  display: flex;
  gap: 0.5rem;
}

.plan-card__limits li::before {
  content: '✓';
  color: var(--gold-dark);
  font-weight: 700;
  flex-shrink: 0;
}

.plan-card__limits li.muted {
  color: var(--muted);
  font-size: 0.8rem;
}

.plan-card__limits li.muted::before { content: '·'; color: var(--muted); }

/* —— Cost breakdown —— */
.cost-table-wrap {
  overflow-x: auto;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid rgba(26, 35, 50, 0.06);
}

.cost-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.cost-table th,
.cost-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(26, 35, 50, 0.06);
}

.cost-table th {
  background: rgba(26, 35, 50, 0.04);
  font-weight: 600;
}

.cost-table td:last-child,
.cost-table th:last-child { text-align: right; }

.cost-note {
  margin-top: 1rem;
  font-size: 0.82rem;
  color: var(--muted);
}

/* —— FAQ —— */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  background: var(--card);
  border-radius: 12px;
  margin-bottom: 0.65rem;
  border: 1px solid rgba(26, 35, 50, 0.06);
  overflow: hidden;
}

.faq-item summary {
  padding: 1rem 1.15rem;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--gold-dark);
  flex-shrink: 0;
}

.faq-item[open] summary::after { content: '−'; }

.faq-item p {
  margin: 0;
  padding: 0 1.15rem 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

/* —— CTA —— */
.cta-band {
  background: linear-gradient(135deg, var(--ink) 0%, #252018 100%);
  color: #fff;
  border-radius: calc(var(--radius) + 4px);
  padding: 3rem 2rem;
  text-align: center;
  border-bottom: 3px solid var(--gold);
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin: 0 0 0.75rem;
}

.cta-band p {
  margin: 0 auto 1.5rem;
  max-width: 520px;
  color: rgba(255, 255, 255, 0.82);
}

/* —— Footer —— */
.site-footer {
  padding: 2.5rem 0 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--muted);
}

.site-footer__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: flex-start;
}

.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--gold-dark); }

/* —— Modal —— */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(15, 23, 42, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.is-open { display: flex; }

.modal {
  background: var(--card);
  border-radius: var(--radius);
  width: min(440px, 100%);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  position: relative;
}

.modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.85rem;
  border: none;
  background: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--muted);
  line-height: 1;
}

.modal h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin: 0 0 0.35rem;
}

.modal__plan {
  font-size: 0.88rem;
  color: var(--gold-dark);
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.modal label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin: 0.65rem 0 0.3rem;
  color: var(--ink-soft);
}

.modal input,
.modal textarea {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(26, 35, 50, 0.16);
  border-radius: 5px;
  font: inherit;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.modal input:focus,
.modal textarea:focus {
  outline: none;
  border-color: var(--gold-dark);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.15);
}

.form-field { margin-bottom: 0.15rem; }

.form-field.is-invalid input,
.form-field.is-invalid textarea {
  border-color: #b45309;
  background: #fffbf5;
}

.form-field__error {
  display: none;
  margin: 0.25rem 0 0;
  font-size: 0.75rem;
  color: #b45309;
  font-weight: 500;
}

.form-field.is-invalid .form-field__error {
  display: block;
}

.modal__actions {
  display: flex;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.btn.is-loading {
  opacity: 0.75;
  pointer-events: none;
}

/* —— Toast —— */
.site-toast-wrap {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-width: min(380px, calc(100vw - 2rem));
  pointer-events: none;
}

.site-toast {
  pointer-events: auto;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.85rem 1rem;
  border-radius: 5px;
  background: #fff;
  border: 1px solid rgba(26, 35, 50, 0.1);
  box-shadow: 0 12px 40px rgba(26, 35, 50, 0.14);
  animation: siteToastIn 0.35s ease;
}

.site-toast--success {
  border-left: 3px solid var(--gold-dark);
}

.site-toast--error {
  border-left: 3px solid #b45309;
}

.site-toast__icon {
  flex: 0 0 28px;
  height: 28px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  background: rgba(201, 162, 39, 0.14);
}

.site-toast--error .site-toast__icon {
  background: rgba(180, 83, 9, 0.12);
}

.site-toast__body strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.15rem;
  color: var(--ink);
}

.site-toast__body p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
}

.site-toast__close {
  border: none;
  background: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  padding: 0;
  margin-left: auto;
}

@keyframes siteToastIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* —— Voltar ao topo —— */
.site-back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(145deg, var(--ink) 0%, var(--ink-soft) 100%);
  box-shadow: 0 8px 28px rgba(26, 35, 50, 0.28);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(14px) scale(0.92);
  transition: opacity 0.28s ease, visibility 0.28s ease, transform 0.28s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.site-back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.site-back-to-top:hover,
.site-back-to-top:focus-visible {
  background: linear-gradient(145deg, var(--gold-dark) 0%, var(--gold) 100%);
  box-shadow: 0 10px 32px rgba(201, 162, 39, 0.38);
  outline: none;
}

.site-back-to-top:active {
  transform: translateY(0) scale(0.96);
}

/* —— Responsive —— */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { order: -1; max-width: 480px; margin: 0 auto; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .integrations { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .plan-card--featured { transform: none; }
}

@media (max-width: 640px) {
  .site-nav { display: none; }
  .site-header > .site-nav__cta--mobile { display: inline-flex; }
  .features-grid,
  .pricing-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 2.5rem; }
}
