/* Nog Agency — landing de servicios
   Paleta de loja.agencynog.com.br / imágenes de WhatsApp Business */

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-variable.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/playfair-display-variable.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --green: #1f7a4d;
  --green-hover: #165c3a;
  --green-deep: #1d4631;
  --green-accent: #a8d5ba;
  --green-tint: #e8f3ec;
  --black: #111111;
  --surface: #232825;
  --surface-alt: #262626;
  --secondary: #3d4a44;
  --white: #ffffff;
  --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Playfair Display", "Times New Roman", serif;
  --radius-card: 1.15rem;
  --radius-badge: 1rem;
  --radius-btn: 999px;
  --shadow-badge: 0 0 28px rgb(31 122 77 / 0.45);
  --space: 1.25rem;
  --content: 42rem;
  --focus: 0 0 0 3px var(--black), 0 0 0 5px var(--green-accent);
}

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

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--white);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 20;
  background: var(--green);
  color: var(--white);
  padding: 0.6rem 1rem;
  border-radius: 0.4rem;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 0.75rem;
  outline: none;
  box-shadow: var(--focus);
}

/* Fixed branded backdrop (same slashes as the WhatsApp creatives) */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: var(--black);
  overflow: hidden;
}

.backdrop-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: calc(6px + env(safe-area-inset-top, 0px));
  background: var(--green);
  z-index: 1;
}

.backdrop-bands {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.page {
  position: relative;
  z-index: 1;
  width: min(100%, var(--content));
  margin: 0 auto;
  padding:
    2.25rem
    max(1.35rem, env(safe-area-inset-right))
    max(2.5rem, env(safe-area-inset-bottom))
    max(1.35rem, env(safe-area-inset-left));
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.25rem 0 2.5rem;
}

.logo {
  width: min(10.5rem, 52vw);
  height: auto;
  margin-bottom: 1.75rem;
}

.hero h1 {
  font-size: clamp(1.85rem, 1.2rem + 3.4vw, 2.85rem);
  font-weight: 500;
  line-height: 1.18;
  max-width: 100%;
}

.lead {
  margin-top: 1.15rem;
  max-width: 44ch;
  color: var(--green-accent);
  font-size: 1.02rem;
  line-height: 1.55;
  text-wrap: pretty;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  text-decoration: none;
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  border-radius: var(--radius-btn);
  transition: background-color 0.15s ease, transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn-icon {
  flex: 0 0 auto;
  width: 1.25em;
  height: 1.25em;
}

.btn-primary {
  margin-top: 1.75rem;
  background: var(--green);
  color: var(--white);
  padding: 0.95rem 1.5rem;
  min-height: 3.15rem;
  font-size: 1.02rem;
  width: 100%;
  max-width: 22rem;
  box-shadow: 0 8px 24px rgb(31 122 77 / 0.28);
}

.btn-primary:hover {
  background: var(--green-hover);
}

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

.btn:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.section {
  padding: 1.75rem 0 0.5rem;
}

.section h2 {
  text-align: center;
  font-size: clamp(1.55rem, 1.2rem + 1.6vw, 2rem);
  margin-bottom: 1.35rem;
}

.section h2::after {
  content: "";
  display: block;
  width: 2.25rem;
  height: 3px;
  margin: 0.7rem auto 0;
  background: var(--green);
  border-radius: 2px;
}

.cards {
  display: grid;
  gap: 0.85rem;
}

.card {
  display: flex;
  align-items: flex-start;
  gap: 0.95rem;
  height: 100%;
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: 1.05rem 1.05rem 1.1rem;
  border: 1px solid rgb(168 213 186 / 0.06);
}

.card-badge {
  flex: 0 0 auto;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: var(--radius-badge);
  background: var(--green);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-badge);
}

.card-badge img {
  width: 2.05rem;
  height: 2.05rem;
}

.card-body {
  flex: 1 1 auto;
  min-width: 0;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
}

.card-body h3 {
  font-size: 1.22rem;
  font-weight: 500;
  line-height: 1.25;
}

.card-body p {
  color: var(--green-accent);
  font-size: 0.95rem;
  line-height: 1.45;
}

.btn-card {
  margin-top: auto;
  background: var(--green);
  color: var(--white);
  padding: 0.55rem 1rem;
  min-height: 2.5rem;
  font-size: 0.92rem;
}

.btn-card:hover {
  background: var(--green-hover);
}

.how {
  padding-top: 2.5rem;
}

.steps {
  display: grid;
  gap: 0.85rem;
  counter-reset: none;
}

.steps li {
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: 1.15rem 1.15rem 1.25rem;
  text-align: center;
  border: 1px solid rgb(168 213 186 / 0.06);
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  margin: 0 auto 0.65rem;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.2rem;
  line-height: 1;
  box-shadow: var(--shadow-badge);
}

.steps h3 {
  font-size: 1.2rem;
  margin-bottom: 0.35rem;
}

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

.cta-final {
  padding: 2.75rem 0 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-final h2 {
  max-width: 20ch;
  text-wrap: balance;
  margin-bottom: 0.25rem;
}

.cta-final h2::after {
  margin-bottom: 0.25rem;
}

.cta-final .btn-primary {
  margin-top: 1.35rem;
}

.footer {
  margin-top: 2.25rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgb(168 213 186 / 0.12);
  text-align: center;
}

.footer-copy {
  font-weight: 600;
  font-size: 0.95rem;
}

.footer-privacy {
  margin-top: 0.35rem;
  color: var(--green-accent);
  font-size: 0.82rem;
  line-height: 1.45;
  max-width: 36ch;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 640px) {
  :root {
    --content: 46rem;
  }

  .page {
    padding-top: 2.75rem;
    padding-left: max(2rem, env(safe-area-inset-left));
    padding-right: max(2rem, env(safe-area-inset-right));
  }

  .logo {
    width: 11.5rem;
  }

  .card {
    padding: 1.2rem 1.25rem;
    gap: 1.15rem;
  }

  .card-badge {
    width: 3.75rem;
    height: 3.75rem;
  }

  .card-badge img {
    width: 2.2rem;
    height: 2.2rem;
  }

  .card-body h3 {
    font-size: 1.32rem;
  }

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

  .steps li {
    padding: 1.25rem 1rem 1.4rem;
  }
}

@media (min-width: 900px) {
  :root {
    --content: 58rem;
  }

  .hero {
    padding: 2rem 0 3rem;
  }

  .cards {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .cards .card:last-child {
    grid-column: 1 / -1;
    max-width: calc(50% - 0.5rem);
    justify-self: center;
    width: 100%;
  }

  .btn-primary {
    width: auto;
    min-width: 18rem;
    padding-left: 1.75rem;
    padding-right: 1.75rem;
  }
}

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

  .btn,
  .btn-primary,
  .btn-card {
    transition: none;
  }
}
