:root {
  --navy-950: #071018;
  --navy-900: #0a1628;
  --navy-800: #132238;
  --green: #28a745;
  --green-dark: #1e7e34;
  --green-soft: #e8f5ec;
  --coral: #e63946;
  --coral-dark: #c1121f;
  --ink: #0a1628;
  --text: #2b3b57;
  --muted: #5a6a86;
  --line: #d8e0ee;
  --white: #ffffff;
  --surface: #f4f7fb;
  --focus: #3b73ff;
  --max: 1160px;
  --header-h: 4rem;
  --font-display: "Archivo", "Segoe UI", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--safe-top) + 0.5rem);
}

body {
  margin: 0;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  padding-bottom: var(--safe-bottom);
}

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

a {
  color: var(--green-dark);
}

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

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--white);
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 22, 40, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: var(--safe-top);
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo {
  height: 28px;
  width: auto;
  filter: brightness(0) invert(1);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 8px;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  margin-inline: auto;
  background: var(--white);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header.is-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header.is-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.site-header.is-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--header-h) + var(--safe-top));
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1rem 1.25rem;
  background: var(--navy-900);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.site-header.is-open .nav {
  display: flex;
}

.nav a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  font-weight: 500;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.nav-social {
  justify-content: flex-start;
  gap: 0.5rem;
}

.nav-social img {
  filter: brightness(0) invert(1);
}

.nav-cta {
  margin-top: 0.5rem;
  justify-content: center;
}

@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }

  .nav {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    gap: 0.15rem;
  }

  .nav a {
    padding: 0.5rem 0.65rem;
    font-size: 0.95rem;
  }

  .nav-cta {
    margin-top: 0;
    margin-left: 0.35rem;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
  min-height: 44px;
}

.btn:active {
  transform: scale(0.98);
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
}

.btn-primary {
  background: var(--coral);
  color: var(--white);
  border-color: var(--coral);
}

.btn-primary:hover {
  background: var(--coral-dark);
  border-color: var(--coral-dark);
  color: var(--white);
}

.btn-accent {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
  width: 100%;
}

.btn-accent:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--green-dark);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--green);
  color: var(--green-dark);
}

.btn-ghost-light {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  padding: 2.5rem 0 3rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 20% 0%, rgba(40, 167, 69, 0.22), transparent 55%),
    radial-gradient(ellipse 80% 60% at 100% 40%, rgba(230, 57, 70, 0.12), transparent 50%),
    linear-gradient(165deg, var(--navy-950) 0%, var(--navy-900) 45%, #0f2844 100%);
  z-index: 0;
}

.js:not(.reduce-motion) .hero-bg {
  animation: heroMesh 18s ease-in-out infinite alternate;
}

@keyframes heroMesh {
  0% {
    filter: hue-rotate(0deg);
  }
  100% {
    filter: hue-rotate(8deg);
  }
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2rem;
  align-items: center;
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 5vw, 2.75rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  font-weight: 800;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  margin: 0 0 0.75rem;
}

.lead {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 1.25rem;
  max-width: 36rem;
}

.chip {
  display: inline-block;
  margin: 0 0 1.5rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(40, 167, 69, 0.2);
  border: 1px solid rgba(40, 167, 69, 0.45);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.95);
}

.js:not(.reduce-motion) [data-pulse-chip] {
  animation: chipPulse 3s ease-in-out infinite;
}

@keyframes chipPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.35);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(40, 167, 69, 0);
  }
}

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

.hero .btn-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}

.hero .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.device-frame {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.08);
}

@media (min-width: 900px) {
  .hero {
    padding: 4rem 0 5rem;
  }

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

/* Trust strip */
.trust {
  background: var(--green-soft);
  border-block: 1px solid rgba(40, 167, 69, 0.15);
}

.trust-inner {
  padding: 1rem 0;
  text-align: center;
  font-size: 0.95rem;
  color: var(--text);
}

.trust-inner a {
  font-weight: 600;
}

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

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

.section-dark {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.9);
}

.section-dark a:not(.btn) {
  color: #8fd4a0;
}

.section-label {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--green-dark);
  margin: 0 0 0.5rem;
}

.section-label-light {
  color: rgba(143, 212, 160, 0.95);
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 0.75rem;
  font-weight: 800;
}

.section-dark h2 {
  color: var(--white);
}

.section-intro {
  margin: 0 0 2rem;
  color: var(--muted);
  max-width: 40rem;
}

.section-intro-light {
  color: rgba(255, 255, 255, 0.75);
}

/* Steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

.step-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(10, 22, 40, 0.06);
}

.step-head {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.step-num {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--green);
  line-height: 1;
  margin-top: 0.1rem;
}

.step-card h3 {
  font-family: var(--font-display);
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  color: var(--ink);
}

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

.step-media {
  margin: 0;
  align-self: stretch;
  width: 100%;
}

.step-media img {
  display: block;
  width: 100%;
  height: auto;
}

.step-media--phone {
  width: min(168px, 46vw);
  align-self: center;
  padding: 0.45rem;
  background: linear-gradient(160deg, var(--navy-900), #1a2f4a);
  border-radius: 22px;
  box-shadow:
    0 12px 28px rgba(10, 22, 40, 0.14),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.step-media--phone img {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.step-media--desktop {
  max-height: 8.75rem;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.step-media--desktop img {
  width: 100%;
  height: 8.75rem;
  object-fit: cover;
  object-position: top center;
}

.step-action {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.step-action-icon {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
}

.step-note {
  margin: 0;
  flex: 1;
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  color: var(--green-dark);
  background: var(--green-soft);
  border-radius: 10px;
  border: 1px solid rgba(40, 167, 69, 0.2);
}

@media (min-width: 900px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
  }

  .step-media--phone {
    width: min(156px, 100%);
  }

  .step-head {
    min-height: 7.5rem;
  }
}

/* Features */
.feature-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

.feature-card {
  padding: 1.25rem;
  background: var(--white);
  border-radius: 14px;
  border: 1px solid var(--line);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0 0 0.35rem;
  color: var(--ink);
}

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

.feature-card img {
  border-radius: 8px;
  border: 1px solid var(--line);
}

@media (min-width: 600px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .feature-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .feature-card:nth-child(-n + 3) {
    grid-column: span 1;
  }
}

@media (hover: hover) {
  .feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(10, 22, 40, 0.08);
  }
}

/* Quote spotlight */
.quote-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.quote-images {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.quote-images img {
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(10, 22, 40, 0.08);
  max-width: min(220px, 42vw);
}

.quote-images img:last-of-type {
  max-width: min(100%, 420px);
  max-height: 11rem;
  object-fit: cover;
  object-position: top;
}

.quote-arrow {
  font-size: 1.75rem;
  color: var(--green);
  transform: rotate(90deg);
}

@media (min-width: 800px) {
  .quote-grid {
    grid-template-columns: 1fr 1.1fr;
  }

  .quote-images {
    flex-direction: row;
  }

  .quote-arrow {
    transform: none;
  }
}

/* Plans */
.plan-grid {
  display: grid;
  gap: 1.5rem;
}

.plan-card {
  padding: 1.75rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.plan-card-featured {
  border-color: rgba(40, 167, 69, 0.45);
  background: rgba(40, 167, 69, 0.08);
}

.plan-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 0.35rem;
  color: var(--white);
}

.plan-tagline {
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 1rem;
  font-size: 0.95rem;
}

.plan-list {
  margin: 0 0 1.5rem;
  padding-left: 1.2rem;
  color: rgba(255, 255, 255, 0.88);
}

.plan-list li {
  margin-bottom: 0.45rem;
}

@media (min-width: 768px) {
  .plan-grid {
    grid-template-columns: 1.2fr 1fr;
    align-items: stretch;
  }
}

/* Contact */
.conversa-grid {
  display: grid;
  gap: 2rem;
}

.contact-form {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(10, 22, 40, 0.06);
}

.contact-form label span {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
  color: var(--ink);
}

.optional {
  font-weight: 400;
  color: var(--muted);
  font-style: normal;
  font-size: 0.82rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  font-size: 1rem;
  min-height: 48px;
}

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

.form-hint {
  margin: 0;
  color: var(--coral-dark);
  font-size: 0.9rem;
}

@media (min-width: 768px) {
  .conversa-grid {
    grid-template-columns: 1fr 1.1fr;
    align-items: start;
  }
}

/* About */
.about p {
  max-width: 42rem;
  margin: 0;
}

/* Footer */
.site-footer {
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.75);
  padding: 2rem 0 0;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  font-size: 0.85rem;
  text-transform: uppercase;
}

.footer-brand a {
  display: flex;
  align-items: center;
}

.footer-phbit img {
  height: 2.25rem;
  width: auto;
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.9rem;
}

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

.cookie-notice {
  margin: 0;
  text-align: center;
  font-size: 0.78rem;
  padding: 0.65rem;
  background: rgba(0, 0, 0, 0.25);
  color: rgba(255, 255, 255, 0.55);
}

/* WhatsApp FAB */
.whatsapp-fab {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right, 0px));
  bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  z-index: 90;
  line-height: 0;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.whatsapp-fab img {
  width: 56px;
  height: 56px;
}

.whatsapp-fab:hover {
  transform: scale(1.05);
}

.js:not(.reduce-motion) .whatsapp-fab {
  animation: fabPulse 4s ease-in-out infinite;
}

@keyframes fabPulse {
  0%,
  85%,
  100% {
    transform: scale(1);
  }
  90% {
    transform: scale(1.06);
  }
}

/* Reveal */
.js [data-reveal] > * {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease;
  transition-delay: calc(var(--i, 0) * 80ms);
}

.js [data-reveal].in > *,
.js [data-steps].in .step-card {
  opacity: 1;
  transform: translateY(0);
}

.js [data-steps] .step-card {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
  transition-delay: calc(var(--i, 0) * 100ms);
}

.js.reduce-motion [data-reveal] > *,
.js.reduce-motion [data-steps] .step-card {
  opacity: 1;
  transform: none;
  transition: none;
}
