/* Revvium — site de apresentação.
   Paleta e tipografia iguais às do sistema (src/Frontend/autop-profit-web/src/index.css). */
:root {
  --graphite: #121416;
  --graphite-2: #1d2024;
  --graphite-3: #2a2e33;
  --copper: #a8693f;
  --copper-light: #bd7c50;
  --page: #f5f3ee;
  --tint: #ece9e2;
  --surface: #ffffff;
  --border: #e4e0d7;
  --ink: #1c1b19;
  --ink-2: #4a4740;
  --ink-3: #6e6a61;
  --on-dark: #f5f3ee;
  --on-dark-2: #b9b4aa;
  --positive: #0e9370;

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Inter Tight", "Inter", system-ui, sans-serif;
  --font-logo: "Instrument Sans", "Inter", system-ui, sans-serif;

  --radius: 14px;
  --shadow: 0 1px 2px rgba(18, 20, 22, 0.04), 0 12px 32px -12px rgba(18, 20, 22, 0.18);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0;
}

h1 {
  font-size: clamp(2.3rem, 5.4vw, 3.9rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 700;
}

h3 {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

.wrap {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 720px) {
  .wrap {
    padding: 0 32px;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  padding: 8px 14px;
  background: var(--graphite);
  color: var(--on-dark);
  border-radius: 8px;
}

.skip:focus {
  top: 12px;
}

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

.muted {
  color: var(--ink-3);
}

.muted--light {
  color: var(--on-dark-2);
  margin-top: 20px;
  font-size: 0.92rem;
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 14px;
}

.eyebrow--light {
  color: var(--copper-light);
}

.lead {
  font-size: 1.12rem;
  color: var(--ink-2);
  max-width: 34em;
}

.lead--light {
  color: var(--on-dark-2);
  margin-top: 18px;
}

/* ---------- Wordmark (pingo do "i" é um quadrado cobre, como no sistema) ---------- */
.wordmark {
  font-family: var(--font-logo);
  font-weight: 600;
  font-size: 1.45rem;
  letter-spacing: -0.035em;
  line-height: normal;
  color: var(--graphite);
}

.wordmark--light {
  color: var(--on-dark);
}

.wordmark__i {
  position: relative;
  display: inline-block;
}

.wordmark__i::after {
  content: "";
  position: absolute;
  top: 0.25em;
  left: 50%;
  width: 0.16em;
  height: 0.16em;
  transform: translateX(-50%);
  background: var(--copper);
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.97rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
}

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

.btn--sm {
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.92rem;
}

.btn--lg {
  min-height: 54px;
  padding: 0 30px;
  font-size: 1.05rem;
}

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

.btn--primary:hover {
  background: #955a33;
}

.btn--ghost {
  color: var(--ink);
  border-color: var(--border);
  background: transparent;
}

.btn--ghost:hover {
  border-color: var(--ink-3);
}

.btn--outline {
  border-color: var(--graphite);
  color: var(--graphite);
}

.btn--outline:hover {
  background: var(--graphite);
  color: var(--on-dark);
}

.btn--light {
  background: var(--on-dark);
  color: var(--graphite);
}

.btn--light:hover {
  background: #fff;
}

/* ---------- Topo ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 243, 238, 0.86);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.topbar.is-scrolled {
  border-bottom-color: var(--border);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.menu {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.95rem;
  font-weight: 500;
}

.menu a:not(.btn) {
  text-decoration: none;
  color: var(--ink-2);
}

.menu a:not(.btn):hover {
  color: var(--ink);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.menu-toggle__bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--graphite);
  transition: transform 0.2s;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:first-of-type {
  transform: translateY(4px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:last-of-type {
  transform: translateY(-4px) rotate(-45deg);
}

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-flex;
  }

  .menu {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px 20px;
    background: var(--page);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 16px 24px -16px rgba(18, 20, 22, 0.2);
  }

  .menu.is-open {
    display: flex;
  }

  .menu a:not(.btn) {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }

  .menu .btn {
    margin-top: 16px;
    min-height: 48px;
  }
}

/* ---------- Hero ---------- */
.hero {
  padding: 56px 0 72px;
}

.hero__grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 960px) {
  .hero {
    padding: 88px 0 104px;
  }

  .hero__grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 64px;
  }
}

.hero h1 {
  margin-bottom: 22px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero__note {
  margin-top: 18px;
  font-size: 0.88rem;
  color: var(--ink-3);
}

@media (max-width: 480px) {
  .hero__actions .btn {
    flex: 1 1 100%;
  }
}

/* Cartão ilustrativo */
.mock-card {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow);
  position: relative;
}

.mock-card::before {
  content: "";
  position: absolute;
  inset: -14px 14px auto -14px;
  height: 100%;
  border-radius: 18px;
  background: var(--graphite);
  z-index: -1;
  transform: rotate(-2.2deg);
  opacity: 0.94;
}

.mock-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.mock-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
}

.mock-card__meta {
  font-size: 0.86rem;
  color: var(--ink-3);
}

.pill {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.pill--ok {
  background: #e6f6f0;
  color: #0b7a5c;
}

.mock-card__rows {
  margin: 12px 0 0;
}

.mock-card__rows div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  font-size: 0.94rem;
}

.mock-card__rows dt {
  color: var(--ink-3);
}

.mock-card__rows dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

.mock-card__rows .is-total {
  border-top: 1px dashed var(--border);
  margin-top: 4px;
  padding-top: 11px;
}

.mock-card__rows .is-total dt,
.mock-card__rows .is-total dd {
  color: var(--ink);
  font-weight: 600;
}

.mock-card__kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.mock-card__kpis div {
  background: var(--page);
  border-radius: 10px;
  padding: 10px 12px;
  min-width: 0;
}

.mock-card__kpis span {
  display: block;
  font-size: 0.74rem;
  color: var(--ink-3);
}

.mock-card__kpis strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.is-pos {
  color: var(--positive);
}

.mock-card figcaption,
.chat figcaption {
  margin-top: 14px;
  font-size: 0.74rem;
  color: var(--ink-3);
  text-align: right;
}

/* ---------- Fórmula ---------- */
.formula {
  background: var(--graphite);
  color: var(--on-dark);
  padding: 64px 0;
}

.formula__inner {
  max-width: 900px;
  text-align: center;
}

.formula__text {
  margin: 24px auto 20px;
  padding: 18px 20px;
  border: 1px solid var(--graphite-3);
  border-radius: 12px;
  background: var(--graphite-2);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: clamp(0.84rem, 1.7vw, 1rem);
  line-height: 1.7;
  color: var(--on-dark-2);
}

.formula__text span {
  color: var(--copper-light);
  font-weight: 600;
}

.formula .muted {
  color: var(--on-dark-2);
  max-width: 40em;
  margin: 0 auto;
}

/* ---------- Seções ---------- */
.section {
  padding: 80px 0;
}

@media (min-width: 960px) {
  .section {
    padding: 112px 0;
  }
}

.section--dark {
  background: var(--graphite);
  color: var(--on-dark);
}

.section--tint {
  background: var(--tint);
}

.section__head {
  max-width: 640px;
  margin-bottom: 48px;
}

.section__head .muted {
  margin-top: 16px;
}

/* Recursos */
.features {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
}

.feature h3 {
  margin: 18px 0 8px;
}

.feature p {
  color: var(--ink-2);
  font-size: 0.95rem;
}

.feature__icon {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--graphite);
}

.feature__icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--copper-light);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* WhatsApp */
.split {
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 960px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
  }
}

.checks {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 10px;
}

.checks li {
  position: relative;
  padding-left: 28px;
}

.checks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.5em;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--copper);
  border-bottom: 2px solid var(--copper);
  transform: rotate(-45deg);
}

.checks--light li {
  color: var(--on-dark);
}

.checks--light li::before {
  border-color: var(--copper-light);
}

.chat {
  margin: 0;
  background: #0b0c0d;
  border: 1px solid var(--graphite-3);
  border-radius: 20px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 440px;
  width: 100%;
  justify-self: center;
}

.chat__bubble {
  align-self: flex-start;
  max-width: 88%;
  padding: 10px 14px;
  border-radius: 14px 14px 14px 4px;
  background: var(--graphite-3);
  color: var(--on-dark);
  font-size: 0.94rem;
  line-height: 1.5;
}

.chat__bubble--me {
  align-self: flex-end;
  border-radius: 14px 14px 4px 14px;
  background: #1f5c47;
}

.chat figcaption {
  color: var(--on-dark-2);
}

/* Como funciona */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  counter-reset: none;
}

.steps li {
  padding: 28px 24px;
  border-top: 2px solid var(--graphite);
  background: var(--surface);
  border-radius: 0 0 var(--radius) var(--radius);
}

.steps h3 {
  margin: 14px 0 6px;
}

.steps p {
  color: var(--ink-2);
  font-size: 0.95rem;
}

.steps__n {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--copper);
}

/* Planos */
.plans {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  align-items: stretch;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px 24px;
}

.plan .checks {
  margin: 20px 0 28px;
  flex: 1;
  font-size: 0.95rem;
}

.plan .btn {
  width: 100%;
}

.plan__price {
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.plan__price span {
  font-size: 1rem;
  font-weight: 600;
  vertical-align: 1.1em;
  margin-right: 3px;
}

.plan__price small {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-3);
  letter-spacing: 0;
}

.plan__price--text {
  font-size: 1.9rem;
}

.plan--featured {
  border: 2px solid var(--copper);
  box-shadow: var(--shadow);
}

.plan__tag {
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--copper);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}

.plan--dark {
  background: var(--graphite);
  border-color: var(--graphite);
  color: var(--on-dark);
}

/* Perguntas */
.faq {
  display: grid;
  gap: 0;
}

@media (min-width: 960px) {
  .faq {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 64px;
  }
}

.faq__list details {
  border-bottom: 1px solid var(--border);
}

.faq__list details:first-child {
  border-top: 1px solid var(--border);
}

.faq__list summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  font-weight: 600;
}

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

.faq__list summary::after {
  content: "+";
  flex: none;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--copper);
  line-height: 1;
  transition: transform 0.2s;
}

.faq__list details[open] summary::after {
  transform: rotate(45deg);
}

.faq__list details p {
  padding: 0 0 22px;
  color: var(--ink-2);
  max-width: 40em;
}

/* CTA final */
.cta {
  padding: 0 0 96px;
}

.cta__inner {
  text-align: center;
}

.cta__inner > * {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.cta p {
  margin: 14px auto 30px;
  color: var(--ink-3);
}

/* Rodapé */
.footer {
  background: var(--graphite);
  color: var(--on-dark-2);
  padding: 48px 0 40px;
  font-size: 0.92rem;
}

.footer__inner {
  display: grid;
  gap: 28px;
}

@media (min-width: 720px) {
  .footer__inner {
    grid-template-columns: 1fr auto;
    align-items: start;
  }

  .footer__copy {
    grid-column: 1 / -1;
  }
}

.footer__brand p {
  margin-top: 6px;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.footer__links a {
  text-decoration: none;
  color: var(--on-dark);
}

.footer__links a:hover {
  color: var(--copper-light);
}

.footer__copy {
  padding-top: 24px;
  border-top: 1px solid var(--graphite-3);
  font-size: 0.84rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}
