/* ==========================================================================
   Monery | styles.css
   ========================================================================== */

:root {
  --monery-green-primary: #009C19;
  --monery-green-accent: #6BC62A;

  --background-primary: #030504;
  --background-secondary: #080C09;
  --surface-primary: #0E1410;
  --surface-secondary: #121A14;
  --text-primary: #F4F7F4;
  --text-secondary: #AAB4AC;
  --text-tertiary: #7E8A81;
  --border-subtle: rgba(255, 255, 255, 0.10);
  --border-control: rgba(255, 255, 255, 0.14);
  --border-control-strong: rgba(255, 255, 255, 0.38);
  --danger: #FF8B7B;

  --font: "Plus Jakarta Sans", Inter, Arial, sans-serif;

  --container: 1240px;
  --gutter: clamp(20px, 5vw, 48px);
  --header-h: 76px;
  --section-pad: clamp(96px, 12vw, 176px);

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-pill: 999px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---------- Reset e base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  color-scheme: dark;
  scroll-padding-top: calc(var(--header-h) + 8px);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--background-primary);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-x: clip;
}

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

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: inherit; text-decoration: none; }

button,
input,
select,
textarea { font: inherit; color: inherit; }

button { cursor: pointer; }

::selection { background: rgba(107, 198, 42, 0.35); color: var(--text-primary); }

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--monery-green-accent);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  background: var(--monery-green-accent);
  color: var(--background-primary);
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease-out);
}
.skip-link:focus-visible { transform: translateY(0); }

/* Palavras de destaque nos títulos. */
.accent {
  color: var(--monery-green-accent);
  white-space: nowrap;
}

.text-link {
  color: var(--monery-green-accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  text-decoration-color: rgba(107, 198, 42, 0.45);
  transition: text-decoration-color 0.2s ease;
}
.text-link:hover { text-decoration-color: currentColor; }

/* ---------- Botões ---------- */

.btn {
  --btn-h: 52px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--btn-h);
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    transform 0.25s var(--ease-out),
    box-shadow 0.35s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.98); }

/* Texto escuro sobre #009C19: contraste ≈ 5,6:1 (WCAG 2.2, 1.4.3 AA). Branco ficaria em ≈ 3,6:1. */
.btn--primary {
  background: var(--monery-green-primary);
  color: var(--background-primary);
  box-shadow: 0 0 0 0 rgba(0, 156, 25, 0);
}
.btn--primary:hover {
  background: #0BAA24;
  box-shadow: 0 10px 40px -12px rgba(0, 156, 25, 0.7);
}

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--text-primary);
  background: rgba(3, 5, 4, 0.2);
}
.btn--ghost:hover {
  border-color: var(--monery-green-accent);
  background: rgba(107, 198, 42, 0.06);
}

.btn--sm {
  --btn-h: 42px;
  padding: 0 18px;
  font-size: 0.9375rem;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
}

/* O fundo fica em um pseudo-elemento para que o backdrop-filter não vire bloco de contenção do menu mobile. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(3, 5, 4, 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--border-subtle);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.site-header.is-scrolled::before { opacity: 1; }

.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 100%;
}

.site-header__brand {
  position: relative;
  z-index: 3;
  flex-shrink: 0;
  border-radius: 6px;
}
.site-header__brand img { width: auto; height: 34px; }

.site-header__panel {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 44px);
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 34px);
}

.site-nav__link {
  position: relative;
  display: inline-block;
  padding: 8px 0;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  font-weight: 400;
  transition: color 0.2s ease;
}
.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  margin-inline: auto;
  width: 16px;
  border-radius: 2px;
  background: var(--monery-green-accent);
  transform: scaleX(0);
  transition: transform 0.35s var(--ease-out);
}
.site-nav__link:hover,
.site-nav__link.is-active { color: var(--text-primary); }
.site-nav__link.is-active::after { transform: scaleX(1); }

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
}
.lang-switch__btn {
  min-width: 40px;
  min-height: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: background-color 0.25s ease, color 0.25s ease;
}
.lang-switch__btn:hover { color: var(--text-primary); }
.lang-switch__btn[aria-pressed="true"] {
  background: var(--surface-secondary);
  color: var(--text-primary);
}

.no-js .lang-switch { display: none; }

.menu-toggle {
  position: relative;
  z-index: 3;
  display: none;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  border: 0;
  border-radius: 50%;
  background: transparent;
}
.menu-toggle__bar {
  position: absolute;
  left: 12px;
  width: 20px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--text-primary);
  transition: transform 0.35s var(--ease-out);
}
.menu-toggle__bar:first-child { top: 18px; }
.menu-toggle__bar:last-child { top: 25px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:last-child { transform: translateY(-3.5px) rotate(-45deg); }

@media (max-width: 1079px) {
  .js .menu-toggle { display: block; }

  .js .site-header__panel {
    position: fixed;
    inset: 0;
    z-index: 2;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    gap: 40px;
    padding: calc(var(--header-h) + 32px) var(--gutter) calc(32px + env(safe-area-inset-bottom));
    background: var(--background-primary);
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.35s ease, transform 0.45s var(--ease-out), visibility 0s linear 0.45s;
  }
  .js .site-header.is-open .site-header__panel {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 0.35s ease, transform 0.45s var(--ease-out), visibility 0s;
  }
  .js .site-nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .js .site-nav__link {
    padding: 10px 0;
    font-size: clamp(1.75rem, 7vw, 2.25rem);
    font-weight: 600;
    letter-spacing: -0.025em;
    color: var(--text-primary);
  }
  .js .site-nav__link::after { display: none; }
  .js .site-nav__link.is-active { color: var(--monery-green-accent); }
  .js .site-header__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }
  .js .site-header__actions .btn { --btn-h: 54px; font-size: 1rem; }
  .js .site-header__actions .lang-switch { align-self: flex-start; }

  /* Sem JS: a navegação continua acessível em linha. */
  .no-js .site-header { position: relative; height: auto; }
  .no-js .hero { padding-top: 32px; }
  .no-js .site-header__inner { flex-wrap: wrap; padding-block: 16px; }
  .no-js .site-header__panel { width: 100%; flex-wrap: wrap; gap: 12px; }
  .no-js .site-nav__list { flex-wrap: wrap; gap: 4px 18px; }
}

html.menu-open { overflow: hidden; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: calc(var(--header-h) + clamp(24px, 4vw, 48px));
  padding-bottom: clamp(48px, 6vw, 80px);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.hero__picture,
.hero__picture-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero__picture-img {
  object-fit: cover;
  object-position: 70% 50%;
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  will-change: transform, opacity;
}
.hero__glow--a {
  width: min(78vw, 1100px);
  aspect-ratio: 1;
  right: -14vw;
  top: 50%;
  margin-top: max(-39vw, -550px);
  background: radial-gradient(closest-side, rgba(0, 156, 25, 0.30), rgba(0, 156, 25, 0.10) 50%, rgba(0, 156, 25, 0) 100%);
  animation: glow-drift-a 26s var(--ease-in-out) infinite alternate;
}
.hero__glow--b {
  width: min(46vw, 640px);
  aspect-ratio: 1;
  right: 4vw;
  top: -12vw;
  background: radial-gradient(closest-side, rgba(107, 198, 42, 0.16), rgba(107, 198, 42, 0) 100%);
  animation: glow-drift-b 34s var(--ease-in-out) infinite alternate;
}

@keyframes glow-drift-a {
  0%   { transform: translate3d(0, 0, 0) scale(1); opacity: 0.85; }
  100% { transform: translate3d(-4vw, 3vh, 0) scale(1.08); opacity: 1; }
}
@keyframes glow-drift-b {
  0%   { transform: translate3d(0, 0, 0); opacity: 0.6; }
  100% { transform: translate3d(-6vw, 4vh, 0); opacity: 1; }
}

.hero__layer {
  position: absolute;
  inset: -12px;
  will-change: transform;
}

.hero__links {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  animation: links-drift 40s var(--ease-in-out) infinite alternate;
}
.hero__links--tall { display: none; }

@keyframes links-drift {
  0%   { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-14px, 10px, 0); }
}

.elo-base {
  fill: none;
  stroke-width: 1.15;
  opacity: 0.42;
  vector-effect: non-scaling-stroke;
}
.elo-base--faint { opacity: 0.2; }

/* Luz que percorre o contorno do elo. pathLength="1000" normaliza o traço em qualquer tamanho. */
.elo-light {
  fill: none;
  stroke: var(--monery-green-accent);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 64 936;
  vector-effect: non-scaling-stroke;
  animation: elo-travel 24s linear infinite;
}
.elo-light--halo {
  stroke: var(--monery-green-primary);
  stroke-width: 9;
  opacity: 0.16;
}
.elo-light--2 { animation-duration: 31s; animation-delay: -11s; }
.elo-light--3 { animation-duration: 38s; animation-delay: -20s; opacity: 0.5; }

@keyframes elo-travel {
  from { stroke-dashoffset: 0; }
  to   { stroke-dashoffset: -1000; }
}

/* Reflexo diagonal muito lento sobre os elos. */
.hero__sheen {
  position: absolute;
  inset: -20% -40%;
  background: linear-gradient(115deg, rgba(107, 198, 42, 0) 42%, rgba(107, 198, 42, 0.055) 50%, rgba(107, 198, 42, 0) 58%);
  transform: translate3d(-30%, 0, 0);
  animation: sheen-pass 18s var(--ease-in-out) infinite;
}
@keyframes sheen-pass {
  0%   { transform: translate3d(-30%, 0, 0); opacity: 0; }
  20%  { opacity: 1; }
  60%  { transform: translate3d(30%, 0, 0); opacity: 0; }
  100% { transform: translate3d(30%, 0, 0); opacity: 0; }
}

/* Overlay discreto: garante leitura do texto e funde o hero com a seção seguinte. */
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 5, 4, 0.88) 0%, rgba(3, 5, 4, 0.6) 34%, rgba(3, 5, 4, 0) 62%),
    linear-gradient(180deg, rgba(3, 5, 4, 0) 72%, var(--background-primary) 100%);
}

.hero.is-paused .anim,
.hero.is-paused .elo-light,
[data-anim-scope].is-paused .anim,
.is-page-hidden .anim,
.is-page-hidden .elo-light { animation-play-state: paused; }

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
}

.hero__content { max-width: 720px; }

.hero__eyebrow {
  margin-bottom: clamp(20px, 2.4vw, 28px);
  text-wrap: balance;
  color: var(--monery-green-accent);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero__title {
  font-size: clamp(2.25rem, 1rem + 3.5vw, 4.5rem);
  line-height: 1.03;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.hero__title-strong,
.hero__title-light { display: block; }
.hero__title-strong { font-weight: 700; }
.hero__title-light {
  margin-top: 0.12em;
  font-size: 0.8em;
  line-height: 1.08;
  font-weight: 300;
  color: rgba(244, 247, 244, 0.86);
}

.hero__lead {
  max-width: 54ch;
  margin-top: clamp(22px, 2.6vw, 32px);
  color: var(--text-secondary);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: clamp(30px, 3.4vw, 44px);
}

.hero__signature {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: clamp(36px, 4.4vw, 60px);
  color: var(--text-secondary);
  font-size: 0.9375rem;
}
.hero__signature-line {
  width: 32px;
  height: 1px;
  background: linear-gradient(90deg, var(--monery-green-primary), var(--monery-green-accent));
}

.hero__device {
  position: relative;
  justify-self: center;
  width: clamp(300px, 34vw, 500px);
  will-change: transform;
}
.hero__device::before {
  content: "";
  position: absolute;
  left: 22%; right: 22%;
  top: 22%; bottom: 18%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 156, 25, 0.38), rgba(0, 156, 25, 0));
  filter: blur(10px);
}
.hero__device::after {
  content: "";
  position: absolute;
  left: 30%; right: 30%;
  bottom: 6%;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
  animation: phone-shadow 8s var(--ease-in-out) infinite;
}
.hero__device-float {
  position: relative;
  z-index: 1;
  transform-origin: 50% 60%;
  animation: phone-float 8s var(--ease-in-out) infinite;
}
.hero__phone { width: 100%; }

@keyframes phone-float {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50%      { transform: translate3d(0, -10px, 0) rotate(-0.7deg); }
}
@keyframes phone-shadow {
  0%, 100% { transform: scaleX(1); opacity: 1; }
  50%      { transform: scaleX(0.9); opacity: 0.7; }
}

/* Entrada orquestrada do hero, só com CSS: funciona sem JS e não pisca. */
@media (prefers-reduced-motion: no-preference) {
  .hero__eyebrow,
  .hero__title-strong,
  .hero__title-light,
  .hero__lead,
  .hero__actions,
  .hero__signature {
    animation: rise-in 1.1s var(--ease-out) both;
  }
  .hero__title-strong { animation-delay: 0.1s; }
  .hero__title-light  { animation-delay: 0.24s; }
  .hero__lead         { animation-delay: 0.4s; }
  .hero__actions      { animation-delay: 0.52s; }
  .hero__signature    { animation-delay: 0.66s; }
  .hero__device       { animation: device-in 1.6s var(--ease-out) 0.3s both; }
  .hero__links        { animation: links-in 2.4s var(--ease-out) both, links-drift 40s var(--ease-in-out) 2.4s infinite alternate; }
}
@keyframes rise-in {
  from { opacity: 0; transform: translate3d(0, 22px, 0); }
  to   { opacity: 1; transform: none; }
}
@keyframes device-in {
  from { opacity: 0; transform: translate3d(0, 40px, 0) scale(0.97); }
  to   { opacity: 1; transform: none; }
}
@keyframes links-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ---------- Seções: base ---------- */

.section {
  position: relative;
  padding-block: var(--section-pad);
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(56px, 7vw, 96px);
}

.section-title {
  max-width: 20ch;
  font-size: clamp(2rem, 1.2rem + 3vw, 3.5rem);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.section-lead {
  max-width: 56ch;
  margin-top: clamp(18px, 2vw, 26px);
  color: var(--text-secondary);
  font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  line-height: 1.6;
}

/* Revelação na rolagem: só ativa com JS e sem redução de movimento. */
@media (prefers-reduced-motion: no-preference) {
  .js-ready [data-reveal] {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
    transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out);
  }
  .js-ready [data-reveal="media"] {
    transform: translate3d(0, 48px, 0) scale(0.97);
    transition: opacity 1.4s var(--ease-out), transform 1.6s var(--ease-out);
  }
  .js-ready [data-reveal].is-revealed {
    opacity: 1;
    transform: none;
  }
  .js-ready [data-reveal-delay="1"] { transition-delay: 0.12s; }
  .js-ready [data-reveal-delay="2"] { transition-delay: 0.24s; }
  .js-ready [data-reveal-delay="3"] { transition-delay: 0.36s; }
}

/* ---------- Dor ---------- */

.problem { background: var(--background-primary); }

.problem__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 7vw, 120px);
  align-items: start;
}

.problem__intro {
  position: sticky;
  top: calc(var(--header-h) + 48px);
}

.pix-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(200px, 22vw, 300px);
  aspect-ratio: 1;
  margin-top: clamp(40px, 5vw, 64px);
}
.pix-mark::before {
  content: "";
  position: absolute;
  inset: 16%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 156, 25, 0.24), rgba(0, 156, 25, 0));
}
.pix-mark__elo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.pix-mark__logo {
  position: relative;
  width: 30%;
  height: auto;
  aspect-ratio: 1;
  fill: var(--monery-green-accent);
}
.elo-light--pix { animation-duration: 16s; }

.problem__item {
  position: relative;
  padding-block: clamp(26px, 3vw, 36px);
  border-top: 1px solid var(--border-subtle);
}
.problem__item:last-child { border-bottom: 1px solid var(--border-subtle); }
.problem__item::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 40px; height: 1px;
  background: var(--monery-green-accent);
  transform-origin: left;
}
.js-ready .problem__item::before { transform: scaleX(0); transition: transform 1.2s var(--ease-out) 0.3s; }
.js-ready .problem__item.is-revealed::before { transform: scaleX(1); }

.problem__item-title {
  max-width: 34ch;
  font-size: clamp(1.1875rem, 1.05rem + 0.5vw, 1.4375rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
}
.problem__item p {
  max-width: 52ch;
  margin-top: 10px;
  color: var(--text-secondary);
}

.problem__closing {
  grid-column: 2;
  max-width: 34ch;
  font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem);
  font-weight: 300;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

/* ---------- O que entrega ---------- */

.solutions {
  background:
    radial-gradient(60% 50% at 0% 0%, rgba(0, 156, 25, 0.07), rgba(0, 156, 25, 0) 70%),
    var(--background-secondary);
}

.pillar__icon {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: var(--monery-green-accent);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pillar__title {
  margin-top: 22px;
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
}
.pillar__text {
  margin-top: 10px;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
}

.pillars-featured {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--border-subtle);
}
.pillar--featured {
  padding: clamp(36px, 4.5vw, 64px) clamp(0px, 4vw, 64px) clamp(44px, 5vw, 72px) 0;
}
.pillar--featured + .pillar--featured {
  padding-left: clamp(28px, 4vw, 64px);
  border-left: 1px solid var(--border-subtle);
}
/* Marca Pix em verde #6BC62A, a pedido (cor oficial do arquivo: #4BB8A9). */
.pillar__icon.pillar__icon--pix { fill: var(--monery-green-accent); stroke: none; }
.pillar--featured .pillar__icon { width: 44px; height: 44px; stroke-width: 1.25; }
.pillar--featured .pillar__title {
  margin-top: 28px;
  font-size: clamp(1.625rem, 1.2rem + 1.4vw, 2.25rem);
  letter-spacing: -0.03em;
  line-height: 1.12;
}
.pillar--featured .pillar__text {
  max-width: 44ch;
  margin-top: 16px;
  font-size: clamp(1.0625rem, 1rem + 0.2vw, 1.15rem);
}

.pillars-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(28px, 3vw, 48px);
  padding-top: clamp(36px, 4vw, 56px);
  border-top: 1px solid var(--border-subtle);
}
.pillars-list .pillar__text { max-width: 32ch; }

/* ---------- Como funciona ---------- */

.how { background: var(--background-primary); }

.steps { position: relative; }

.steps__link {
  position: absolute;
  display: none;
  border: 1px solid rgba(0, 156, 25, 0.55);
  border-radius: var(--radius-pill);
  pointer-events: none;
}
.js-ready .steps__link.is-ready { display: block; }

@media (prefers-reduced-motion: no-preference) {
  .js-ready .steps__link {
    clip-path: inset(0 100% 0 0 round var(--radius-pill));
    transition: clip-path 2s var(--ease-out);
  }
  .js-ready .steps__link[data-orient="v"] { clip-path: inset(0 0 100% 0 round var(--radius-pill)); }
  .js-ready .steps.is-drawn .steps__link { clip-path: inset(0 0 0 0 round var(--radius-pill)); }
}

.steps__list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 48px);
}

.step__node {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 8px 0 0 8px;
  border: 1px solid rgba(107, 198, 42, 0.35);
  border-radius: 50%;
  background: var(--background-primary);
  color: var(--monery-green-accent);
  font-size: 0.9375rem;
  font-weight: 600;
  transition: background-color 0.6s ease, border-color 0.6s ease, color 0.6s ease;
}
.steps.is-drawn .step__node {
  background: rgba(0, 156, 25, 0.16);
  border-color: rgba(107, 198, 42, 0.7);
}
.steps.is-drawn .step:nth-child(2) .step__node { transition-delay: 0.45s; }
.steps.is-drawn .step:nth-child(3) .step__node { transition-delay: 0.9s; }
.steps.is-drawn .step:nth-child(4) .step__node { transition-delay: 1.35s; }

.step__title {
  margin-top: clamp(32px, 3.4vw, 44px);
  font-size: clamp(1.1875rem, 1.05rem + 0.45vw, 1.375rem);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.015em;
}
.step__text {
  max-width: 32ch;
  margin-top: 12px;
  color: var(--text-secondary);
  font-size: 1rem;
}

@media (prefers-reduced-motion: no-preference) {
  .js-ready .step__title,
  .js-ready .step__text {
    opacity: 0;
    transform: translate3d(0, 16px, 0);
    transition: opacity 0.9s var(--ease-out), transform 1s var(--ease-out);
  }
  .js-ready .steps.is-drawn .step__title,
  .js-ready .steps.is-drawn .step__text { opacity: 1; transform: none; }
  .js-ready .steps.is-drawn .step:nth-child(2) :is(.step__title, .step__text) { transition-delay: 0.45s; }
  .js-ready .steps.is-drawn .step:nth-child(3) :is(.step__title, .step__text) { transition-delay: 0.9s; }
  .js-ready .steps.is-drawn .step:nth-child(4) :is(.step__title, .step__text) { transition-delay: 1.35s; }
}

/* ---------- Para quem ---------- */

.audience {
  background: var(--background-secondary);
  border-top: 1px solid var(--border-subtle);
}

.audience__groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: auto auto 1fr;
}

.audience__group {
  display: grid;
  grid-row: span 3;
  grid-template-rows: subgrid;
  align-content: start;
  padding: 8px clamp(24px, 3.4vw, 52px) 8px;
  border-left: 1px solid var(--border-subtle);
}
.audience__group:first-child { padding-left: 0; border-left: 0; }
.audience__group:last-child { padding-right: 0; }

.audience__title {
  max-width: 18ch;
  font-size: clamp(1.4375rem, 1.15rem + 0.9vw, 1.875rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.audience__text {
  max-width: 36ch;
  margin-top: 16px;
  color: var(--text-secondary);
  font-size: 1rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 8px;
  margin-top: 28px;
}
.tags li {
  padding: 7px 14px;
  border: 1px solid rgba(107, 198, 42, 0.28);
  border-radius: var(--radius-pill);
  color: var(--text-primary);
  font-size: 0.875rem;
  line-height: 1.3;
}

.audience__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
  margin-top: clamp(64px, 8vw, 112px);
  padding-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--border-subtle);
}
.audience__cta-text {
  max-width: 30ch;
  font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.75rem);
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

/* ---------- Produto ---------- */

.product {
  background: var(--background-primary);
  overflow: hidden;
}

.product__head {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  align-items: end;
  gap: 20px clamp(40px, 6vw, 96px);
}
.product__head .section-lead { margin-top: 0; }

.product__media {
  position: relative;
  isolation: isolate;
  margin-top: clamp(16px, 3vw, 40px);
}
.product__media::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 12%; right: 12%;
  top: 22%; bottom: 6%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 156, 25, 0.30), rgba(0, 156, 25, 0));
  filter: blur(24px);
}
/* O arquivo tem margens transparentes (sombra) ao redor dos aparelhos: a imagem passa um pouco da largura
   do container para que notebook e celular fiquem maiores, e a margem negativa compensa o vazio do topo. */
.product__media img {
  --img-w: min(100%, 1000px);
  position: relative;
  left: 50%;
  width: var(--img-w);
  max-width: none;
  margin: calc(var(--img-w) * -0.09) 0 -1%;
  transform: translateX(-50%);
}

.product__points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px clamp(24px, 3vw, 48px);
  margin-top: clamp(24px, 3vw, 40px);
}
.product__point {
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}
.product__point dt {
  font-weight: 600;
  color: var(--text-primary);
}
.product__point dd {
  max-width: 34ch;
  margin-top: 6px;
  color: var(--text-secondary);
  font-size: 1rem;
}

/* ---------- Grupo Phoebus ---------- */

.about {
  overflow: hidden;
  text-align: center;
  background: var(--background-secondary);
}

.about__elo {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(120vw, 1500px);
  height: min(36vw, 440px);
  border: 1px solid rgba(0, 156, 25, 0.16);
  border-radius: var(--radius-pill);
  transform: translate(-50%, -50%) rotate(-12deg);
  pointer-events: none;
}
.about__elo::after {
  content: "";
  position: absolute;
  inset: 18%  -6%;
  border: 1px solid rgba(107, 198, 42, 0.08);
  border-radius: inherit;
}

.about__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about__statement {
  max-width: 26ch;
  font-size: clamp(1.75rem, 1.05rem + 2.6vw, 3.25rem);
  font-weight: 300;
  line-height: 1.18;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.about__rule {
  display: block;
  width: min(280px, 50vw);
  height: 1px;
  margin-top: clamp(36px, 4vw, 52px);
  background: linear-gradient(90deg, rgba(0, 156, 25, 0), var(--monery-green-primary) 30%, var(--monery-green-accent) 70%, rgba(107, 198, 42, 0));
}

.about__group {
  margin-top: 22px;
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* ---------- Contato ---------- */

.contact {
  background:
    radial-gradient(50% 60% at 100% 0%, rgba(0, 156, 25, 0.08), rgba(0, 156, 25, 0) 70%),
    var(--background-primary);
  border-top: 1px solid var(--border-subtle);
}

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 104px);
  align-items: start;
}

.contact__intro {
  position: sticky;
  top: calc(var(--header-h) + 48px);
}
.contact__intro .section-title {
  max-width: none;
  font-size: clamp(2rem, 1.2rem + 2.3vw, 3rem);
}

.lead-form { position: relative; }
.lead-form__noscript {
  margin-bottom: 24px;
  padding: 14px 16px;
  border-left: 2px solid var(--monery-green-accent);
  border-radius: var(--radius-sm);
  background: var(--surface-primary);
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.lead-form__trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.lead-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 20px;
}

.field { min-width: 0; }
.field--full { grid-column: 1 / -1; }

.field__label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-primary);
  font-size: 0.9375rem;
  font-weight: 600;
}
.field__optional {
  color: var(--text-tertiary);
  font-weight: 400;
}
.field__label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.field__counter {
  margin-bottom: 8px;
  color: var(--text-tertiary);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
}

.field__control {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 13px 16px;
  border: 1px solid var(--border-control);
  border-bottom-color: var(--border-control-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-primary);
  color: var(--text-primary);
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}
.field__control::placeholder { color: var(--text-tertiary); opacity: 1; }
.field__control:hover { border-color: rgba(255, 255, 255, 0.22); border-bottom-color: rgba(255, 255, 255, 0.48); }
.field__control:focus,
.field__control:focus-visible {
  outline: none;
  border-color: var(--monery-green-accent);
  background: var(--surface-secondary);
  box-shadow: 0 0 0 3px rgba(107, 198, 42, 0.22);
}
.field__control--area {
  min-height: 148px;
  resize: vertical;
}

.field__select { position: relative; }
.field__select::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--text-secondary);
  border-bottom: 1.5px solid var(--text-secondary);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.field__select .field__control { padding-right: 44px; cursor: pointer; }
.field__select option { background: var(--surface-primary); color: var(--text-primary); }

.field__control[aria-invalid="true"] {
  border-color: rgba(255, 139, 123, 0.7);
  border-bottom-color: var(--danger);
}
.field__control[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(255, 139, 123, 0.2); }

.field__error {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  color: var(--danger);
  font-size: 0.875rem;
  line-height: 1.45;
}
.field__error::before {
  content: "";
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  margin-top: 0.5em;
  border-radius: 50%;
  background: currentColor;
}
.field__error[hidden] { display: none; }

.field--check {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  column-gap: 14px;
  align-items: start;
  padding-top: 4px;
}
.field--check .field__error { grid-column: 2; }

.field__checkbox {
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  border: 1px solid var(--border-control-strong);
  border-radius: 6px;
  background: var(--surface-primary);
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.field__checkbox:checked {
  border-color: var(--monery-green-primary);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23030504' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat,
    var(--monery-green-primary);
}
.field__checkbox:focus-visible { outline: 2px solid var(--monery-green-accent); outline-offset: 3px; }
.field__checkbox[aria-invalid="true"] { border-color: var(--danger); }

.field__check-label {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.55;
  cursor: pointer;
}

.lead-form__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 32px;
}
.lead-form__note {
  color: var(--text-tertiary);
  font-size: 0.875rem;
}

.btn--submit { --btn-h: 56px; padding-inline: 32px; min-width: 220px; }
.btn--submit[disabled] { cursor: progress; opacity: 0.85; }
.btn--submit[disabled]:hover { background: var(--monery-green-primary); box-shadow: none; }

.btn__spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(3, 5, 4, 0.3);
  border-top-color: var(--background-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.btn--submit.is-loading .btn__spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.lead-form__status:empty { display: none; }
.lead-form__status {
  display: flex;
  gap: 14px;
  margin-top: 24px;
  padding: 16px 18px;
  border: 1px solid var(--border-subtle);
  border-left-width: 2px;
  border-radius: var(--radius-sm);
  background: var(--surface-primary);
  color: var(--text-primary);
  font-size: 0.9375rem;
  line-height: 1.55;
}
.lead-form__status[data-state="success"] { border-left-color: var(--monery-green-accent); }
.lead-form__status[data-state="error"],
.lead-form__status[data-state="invalid"] { border-left-color: var(--danger); }
.lead-form__status[data-state="sending"] { border-left-color: var(--text-tertiary); color: var(--text-secondary); }

/* ---------- Footer ---------- */

.site-footer {
  padding-top: clamp(64px, 8vw, 104px);
  padding-bottom: calc(32px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border-subtle);
  background: var(--background-primary);
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr));
  gap: 40px clamp(24px, 4vw, 64px);
}

.site-footer__logo { width: 112px; }
.site-footer__tagline { margin-top: 28px; color: var(--text-primary); }
.site-footer__group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 8px;
  margin-top: 6px;
}
.site-footer__group span:empty { display: none; }
/* O wordmark ocupa ~20% da altura do arquivo; 38px deixa "PHOEBUS" legível sem pesar na linha. */
.site-footer__phoebus {
  width: auto;
  height: 38px;
  margin-block: -8px;
}

.site-footer__heading {
  margin-bottom: 16px;
  color: var(--text-tertiary);
  font-size: 0.875rem;
  font-weight: 400;
}
.site-footer__list { display: grid; gap: 10px; }
.site-footer__list a { transition: color 0.2s ease; }
.site-footer__list a:hover { color: var(--text-primary); }

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  margin-top: clamp(56px, 7vw, 88px);
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-tertiary);
  font-size: 0.875rem;
}
.site-footer__legal-id { display: grid; gap: 4px; }
.site-footer__address { font-style: normal; }
.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 8px 24px;
}
.site-footer__legal a:hover { color: var(--text-primary); }

/* ---------- Troca de idioma ---------- */

.js [data-i18n],
.js [data-i18n-rich] { transition: opacity 0.18s ease; }
.is-lang-switching [data-i18n],
.is-lang-switching [data-i18n-rich] { opacity: 0; }

/* ==========================================================================
   Responsividade
   ========================================================================== */

@media (max-width: 1199px) {
  .pillars-list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 44px; }
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 959px) {
  .hero { align-items: flex-start; }
  .hero__inner { grid-template-columns: 1fr; gap: 0; }
  .hero__content { max-width: 640px; }
  .hero__device {
    width: min(76vw, 400px);
    margin-top: clamp(4px, 2vw, 24px);
    margin-bottom: -10%;
  }
  .hero__scrim {
    background:
      linear-gradient(180deg, rgba(3, 5, 4, 0.82) 0%, rgba(3, 5, 4, 0.55) 42%, rgba(3, 5, 4, 0) 70%),
      linear-gradient(180deg, rgba(3, 5, 4, 0) 82%, var(--background-primary) 100%);
  }
  .hero__glow--a { right: -30vw; top: auto; bottom: -20vw; margin-top: 0; width: 120vw; }
  .hero__glow--b { display: none; }

  .problem__grid { grid-template-columns: 1fr; }
  .problem__intro { position: static; }
  .problem__closing { grid-column: 1; }

  .steps__list { grid-template-columns: 1fr; gap: 36px; }
  .step {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    column-gap: 20px;
  }
  .step__node { grid-row: 1 / span 2; }
  .step__title { margin-top: 18px; }
  .step__text { grid-column: 2; max-width: 48ch; }

  .audience__groups { grid-template-columns: 1fr; grid-template-rows: none; }
  .audience__group { display: block; grid-row: auto; }
  .audience__group,
  .audience__group:first-child,
  .audience__group:last-child {
    padding: 36px 0;
    border-left: 0;
    border-top: 1px solid var(--border-subtle);
  }
  .audience__group:first-child { padding-top: 0; border-top: 0; }
  .audience__title { max-width: none; }

  .product__head { grid-template-columns: 1fr; }
  .product__media img { --img-w: 112%; }

  .contact__grid { grid-template-columns: 1fr; }
  .contact__intro { position: static; }
}

@media (max-width: 767px) {
  :root { --header-h: 68px; }

  .site-header__brand img { height: 30px; }

  .hero__links--wide { display: none; }
  .hero__links--tall { display: block; }
  .hero__sheen { display: none; }
  .hero__picture-img { object-position: 50% 100%; }

  .hero { padding-bottom: 16px; }
  .hero__eyebrow { font-size: 0.75rem; letter-spacing: 0.12em; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__signature { margin-top: 28px; }
  .hero__device { margin-bottom: -16%; }

  .pillars-featured { grid-template-columns: 1fr; }
  .pillar--featured,
  .pillar--featured + .pillar--featured {
    padding: 40px 0;
    border-left: 0;
  }
  .pillar--featured + .pillar--featured { border-top: 1px solid var(--border-subtle); }
  .pillars-list { grid-template-columns: 1fr; gap: 36px; }

  .product__media img { --img-w: 122%; }
  .product__points { grid-template-columns: 1fr; gap: 0; }
  .product__point { padding-block: 18px; }
  .pix-mark { width: 220px; }

  .audience__cta .btn { flex: 1 1 100%; }

  .lead-form__grid { grid-template-columns: 1fr; }
  .btn--submit { flex: 1 1 100%; }

  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 400px) {
  .hero__title { font-size: 2.125rem; }
  .site-footer__grid { grid-template-columns: 1fr; }
}

/* Movimento mais leve no mobile. */
@media (max-width: 767px) and (prefers-reduced-motion: no-preference) {
  .elo-light { animation-duration: 30s; }
  .hero__glow--a { animation-duration: 34s; }
}

/* Redução de movimento: apenas o fundo estático permanece. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .elo-light,
  .hero__sheen { display: none; }
  .hero__layer,
  .hero__device { transform: none !important; }
}

/* Telas muito baixas em paisagem: o hero não precisa ocupar a altura toda. */
@media (max-height: 560px) and (orientation: landscape) {
  .hero { min-height: auto; }
}
