/* ==========================================================================
   Job 42 · Decisões Lucrativas — folha de estilo (versão 2, várias páginas)
   CSS nativo moderno: nesting, :has(), container queries, light-dark(),
   view transitions entre páginas, animações ligadas à rolagem.
   ========================================================================== */

@font-face {
  font-family: "Bricolage";
  src: url("../fonts/bricolage.woff2") format("woff2");
  font-weight: 500 700;
  font-display: swap;
}
@font-face {
  font-family: "Instrument";
  src: url("../fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 650;
  font-display: swap;
}
/* fonte reserva com métricas próximas, para o texto não "pular" quando a fonte carregar */
@font-face {
  font-family: "Instrument Reserva";
  src: local("Arial"), local("Helvetica"), local("Roboto");
  size-adjust: 97%;
  ascent-override: 94%;
  descent-override: 24%;
}

:root {
  color-scheme: light dark;

  --forest: #0c2a1e;
  --forest-2: #133a2b;
  --forest-line: #24493a;
  --signal: #18d26e;
  --signal-press: #12b35c;
  --whats: #25d366;
  --on-dark: #e6f2ea;
  --on-dark-muted: #a9c4b5;

  --paper: light-dark(#f2f6f3, #0a1f16);
  --surface: light-dark(#ffffff, #10291f);
  --ink: light-dark(#0c2a1e, #e4f0e8);
  --muted: light-dark(#476154, #9db8aa);
  --line: light-dark(#cfddd4, #24463a);
  --accent-text: light-dark(#0a7a3f, #4be38e);
  --danger: light-dark(#b42318, #ff8a7a);
  --shadow: light-dark(rgb(12 42 30 / 0.14), rgb(0 0 0 / 0.45));

  --font-display: "Bricolage", "Instrument", "Instrument Reserva", system-ui, sans-serif;
  --font-body: "Instrument", "Instrument Reserva", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Escala tipográfica média */
  --step--1: 0.875rem;
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --step-1: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  --step-2: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --step-3: clamp(1.6rem, 1.35rem + 1.1vw, 2.25rem);
  --step-4: clamp(2rem, 1.55rem + 2vw, 3rem);

  --wrap: 1160px;
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --section: clamp(3.5rem, 2.5rem + 4vw, 6.5rem);
  --radius-lg: 20px;
  --radius: 12px;
  --radius-sm: 8px;
  --header-h: 92px;

  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  interpolate-size: allow-keywords;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--step-0)/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img, svg, picture { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--signal); color: var(--forest); }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--signal); color: var(--forest); padding: 0.75rem 1rem;
  border-radius: var(--radius-sm); font-weight: 600; text-decoration: none;
  &:focus { top: 1rem; }
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Botões (microinterações) ---------- */
.btn {
  --btn-bg: var(--signal);
  --btn-fg: var(--forest);
  --btn-glow: color-mix(in srgb, var(--signal) 55%, transparent);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  min-height: 46px; padding: 0.65em 1.3em;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 2px solid var(--btn-bg); border-radius: 999px;
  font-weight: 600; font-size: 0.97rem; line-height: 1.2; text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, transform .25s var(--ease-out), box-shadow .25s var(--ease-out);
  & svg { width: 1.2em; height: 1.2em; flex: none; transition: translate .25s var(--ease-out), rotate .3s var(--ease-spring); }
  &:hover { --btn-bg: var(--signal-press); transform: translateY(-2px); box-shadow: 0 10px 22px -10px var(--btn-glow); }
  &:hover .i-arrow { translate: 3px 0; }
  &:hover svg:not(.i-arrow) { rotate: -8deg; }
  &:active { transform: translateY(0) scale(.97); box-shadow: none; transition-duration: .08s; }
}
.btn--ghost {
  --btn-bg: transparent; --btn-fg: currentColor; --btn-glow: transparent;
  border-color: currentColor;
  &:hover { --btn-bg: transparent; border-color: var(--signal); color: var(--accent-text); }
}
.on-dark .btn--ghost:hover, .hero .btn--ghost:hover, .page-hero .btn--ghost:hover, .band .btn--ghost:hover { color: var(--signal); }
.btn--whats { --btn-bg: var(--whats); --btn-fg: #06331a; --btn-glow: rgb(37 211 102 / .6); &:hover { --btn-bg: #1fbd5b; } }
.btn--lg { min-height: 52px; font-size: 1rem; padding-inline: 1.5em; }
/* botão "Iniciar sessão" (acesso à plataforma do CRM) */
.btn--login {
  --btn-bg: transparent; --btn-fg: var(--on-dark); --btn-glow: rgb(24 210 110 / .45);
  border-color: color-mix(in srgb, var(--on-dark) 45%, transparent);
  & .i-login path:not(:first-child) { transition: translate .25s var(--ease-out); }
  &:hover { --btn-bg: var(--signal); --btn-fg: var(--forest); border-color: var(--signal); }
  &:hover .i-login { rotate: 0deg; }
  &:hover .i-login path:not(:first-child) { translate: 2px 0; }
}
.mobile-menu .btn--login { margin-top: 0.75rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* estado "enviando" */
.btn.is-loading { pointer-events: none; }
.btn.is-loading .btn__label { opacity: .0; }
.btn.is-loading::after {
  content: ""; position: absolute; width: 1.15em; height: 1.15em; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { rotate: 1turn; } }

/* link "Ver mais" com seta */
.more {
  display: inline-flex; align-items: center; gap: 0.4em;
  font-weight: 600; color: var(--accent-text); text-decoration: none;
  background: linear-gradient(currentColor 0 0) left bottom / 0 1.5px no-repeat;
  transition: background-size .3s var(--ease-out);
  & .i-arrow { width: 1em; height: 1em; transition: translate .25s var(--ease-out); }
  &:hover { background-size: 100% 1.5px; }
  &:hover .i-arrow { translate: 4px 0; }
}

/* ---------- Barra de progresso de leitura ---------- */
.progress { display: none; }
@supports (animation-timeline: scroll()) {
  .progress {
    display: block; position: fixed; inset: 0 0 auto; height: 3px; z-index: 70;
    background: var(--signal); transform-origin: 0 50%; scale: 0 1;
    animation: progress linear both; animation-timeline: scroll(root);
    pointer-events: none;
  }
  @keyframes progress { to { scale: 1 1; } }
}

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--forest); color: var(--on-dark);
  border-bottom: 1px solid transparent;
  view-transition-name: site-header;
}
@supports (animation-timeline: scroll()) {
  .site-header { animation: header-solid linear both; animation-timeline: scroll(root); animation-range: 0 120px; }
  @keyframes header-solid { to { border-bottom-color: var(--forest-line); background: rgb(12 42 30 / 0.92); backdrop-filter: blur(12px); } }
}
.site-header .wrap { display: flex; align-items: center; gap: 1.25rem; min-height: var(--header-h); }
.brand {
  display: inline-flex; text-decoration: none; margin-right: auto; line-height: 1;
  transition: opacity .2s;
  &:hover { opacity: .85; }
}
.brand__logo { height: 60px; width: auto; }
@media (max-width: 560px) {
  :root { --header-h: 76px; }
  .brand__logo { height: 48px; }
}

.nav { display: flex; align-items: center; }
.nav__list { display: flex; list-style: none; gap: 0.15rem; align-items: center; }
.nav__link {
  position: relative;
  display: inline-flex; align-items: center; gap: 0.35em;
  min-height: 44px; padding: 0.4rem 0.85rem; border-radius: 999px;
  color: var(--on-dark); text-decoration: none; font-weight: 500; font-size: 0.95rem;
  background: none; border: 0; cursor: pointer;
  transition: background-color .2s, color .2s;
  &::after {
    content: ""; position: absolute; left: 0.85rem; right: 0.85rem; bottom: 6px; height: 2px; border-radius: 2px;
    background: var(--signal); scale: 0 1; transition: scale .3s var(--ease-out);
  }
  &:hover { background: var(--forest-2); }
  &:hover::after, &[aria-current="page"]::after { scale: 1 1; }
  & svg { width: 14px; height: 14px; transition: rotate .25s var(--ease-out); }
}
.nav__link--solucoes::after { right: 1.9rem; }
[aria-expanded="true"] > svg { rotate: 180deg; }

.submenu {
  margin: 0; padding: 0.5rem; border: 1px solid var(--forest-line); border-radius: var(--radius);
  background: var(--forest); color: var(--on-dark);
  width: min(360px, calc(100vw - 2rem));
  box-shadow: 0 24px 48px -16px rgb(0 0 0 / 0.45);
  position: fixed; inset: auto; top: calc(var(--header-h) - 6px); right: var(--gutter);
  opacity: 0; translate: 0 -8px; scale: .98; transform-origin: top left;
  transition: opacity .2s var(--ease-out), translate .2s var(--ease-out), scale .2s var(--ease-out), display .2s allow-discrete, overlay .2s allow-discrete;
  &:popover-open { opacity: 1; translate: 0 0; scale: 1; @starting-style { opacity: 0; translate: 0 -8px; scale: .98; } }
  & ul { list-style: none; }
  & a {
    display: grid; gap: 0.1rem; padding: 0.7rem 0.9rem; border-radius: var(--radius-sm);
    text-decoration: none; color: var(--on-dark);
    transition: background-color .15s, translate .2s var(--ease-out);
    &:hover, &:focus-visible { background: var(--forest-2); translate: 3px 0; }
  }
  & strong { font-weight: 600; font-size: 0.97rem; }
  & span { font-size: 0.85rem; color: var(--on-dark-muted); line-height: 1.45; }
}
.submenu__all { border-top: 1px solid var(--forest-line); margin-top: 0.35rem; padding-top: 0.35rem; }
.submenu__all strong { color: var(--signal); }
@supports (anchor-name: --a) {
  .nav__link--solucoes { anchor-name: --solucoes; }
  .submenu { position-anchor: --solucoes; top: anchor(bottom); left: anchor(left); right: auto; margin-top: 8px; position-try-fallbacks: flip-inline; }
}

.menu-toggle { display: none; }
.mobile-menu {
  margin: 0; border: 0; padding: calc(var(--header-h) + 0.5rem) var(--gutter) 2rem;
  width: 100%; height: 100dvh; max-width: none; max-height: none; overflow-y: auto;
  background: var(--forest); color: var(--on-dark);
  opacity: 0; transition: opacity .25s, display .25s allow-discrete, overlay .25s allow-discrete;
  &:popover-open { opacity: 1; @starting-style { opacity: 0; } }
  & ul { list-style: none; display: grid; }
  & > nav > ul > li {
    transition: opacity .35s var(--ease-out), translate .35s var(--ease-out);
    @starting-style { opacity: 0; translate: 0 14px; }
  }
  & > nav > ul > li:nth-child(2) { transition-delay: .04s; }
  & > nav > ul > li:nth-child(3) { transition-delay: .08s; }
  & > nav > ul > li:nth-child(4) { transition-delay: .12s; }
  & > nav > ul > li:nth-child(5) { transition-delay: .16s; }
  & a:not(.btn) {
    display: block; padding: 0.8rem 0; border-bottom: 1px solid var(--forest-line);
    font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; text-decoration: none;
  }
  & .mobile-menu__sub a:not(.btn) { font-family: var(--font-body); font-size: 1rem; font-weight: 500; padding: 0.65rem 0 0.65rem 1rem; color: var(--on-dark-muted); }
  & .btn { margin-top: 1.5rem; width: 100%; }
}
.mobile-menu__close {
  position: absolute; top: 14px; right: var(--gutter);
  width: 44px; height: 44px; display: grid; place-items: center;
  background: var(--forest-2); color: var(--on-dark); border: 0; border-radius: 50%; cursor: pointer;
  transition: rotate .3s var(--ease-out), background-color .2s;
  &:hover { rotate: 90deg; background: var(--forest-line); }
  & svg { width: 20px; height: 20px; }
}
@media (max-width: 960px) {
  .nav, .header-cta { display: none; }
  .menu-toggle {
    display: inline-grid; place-items: center; width: 46px; height: 46px;
    background: var(--forest-2); color: var(--on-dark); border: 0; border-radius: 50%; cursor: pointer;
    transition: scale .2s var(--ease-spring);
    &:active { scale: .92; }
    & svg { width: 22px; height: 22px; }
  }
}
@media (min-width: 961px) { .mobile-menu { display: none !important; } }

/* ---------- Hero (início) ---------- */
.hero {
  background: var(--forest); color: var(--on-dark);
  padding-block: clamp(2rem, 0.5rem + 3vw, 3rem) clamp(3rem, 1.5rem + 4vw, 5rem);
  overflow: clip;
}
.hero .wrap { display: grid; gap: clamp(2rem, 4vw, 4rem); grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; }
.hero h1 { font-size: var(--step-4); font-weight: 650; line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 1.25rem; max-width: 18ch; }
.hero__lead { font-size: var(--step-1); line-height: 1.55; color: var(--on-dark-muted); max-width: 46ch; margin-bottom: 1.75rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
/* entrada orquestrada do topo (um único momento de animação ao carregar) */
.hero__text > *, .page-hero__text > * { animation: rise-in .7s var(--ease-out) both; }
.hero__text > :nth-child(2), .page-hero__text > :nth-child(2) { animation-delay: .07s; }
.hero__text > :nth-child(3), .page-hero__text > :nth-child(3) { animation-delay: .14s; }
.hero__text > :nth-child(4), .page-hero__text > :nth-child(4) { animation-delay: .21s; }
@keyframes rise-in { from { opacity: 0; translate: 0 14px; } }

.chart {
  margin: 0; position: relative;
  border: 1px solid var(--forest-line); border-radius: var(--radius-lg);
  background: linear-gradient(var(--forest-line) 1px, transparent 1px) 0 0 / 100% 25%, var(--forest-2);
  padding: 1.25rem 1.25rem 1rem;
  container-type: inline-size;
  animation: rise-in .8s .1s var(--ease-out) both;
}
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart__area { fill: url(#chart-fill); opacity: 0; animation: fade-in .9s 1.1s ease-out forwards; }
.chart__line {
  fill: none; stroke: var(--signal); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: draw 1.6s .3s cubic-bezier(.65,.05,.36,1) forwards;
}
.chart__base { stroke: var(--forest-line); stroke-width: 1; }
.chart__dot { fill: var(--forest); stroke: var(--signal); stroke-width: 3; transition: r .2s var(--ease-spring), fill .2s; }
.chart__point { opacity: 0; animation: pop .45s var(--ease-out) forwards; }
.chart__point:hover .chart__dot { r: 11; fill: var(--signal); }
.chart__point:nth-of-type(1) { animation-delay: .55s; }
.chart__point:nth-of-type(2) { animation-delay: .9s; }
.chart__point:nth-of-type(3) { animation-delay: 1.25s; }
.chart__point:nth-of-type(4) { animation-delay: 1.6s; }
.chart__label { fill: var(--on-dark); font: 600 19px var(--font-body); }
.chart__sub { fill: var(--on-dark-muted); font: 500 15px var(--font-body); }
@container (max-width: 420px) { .chart__label { font-size: 26px; } .chart__sub { display: none; } }
.chart__legend {
  display: flex; justify-content: space-between; gap: 1rem; margin-top: 0.75rem; padding-top: 0.75rem;
  border-top: 1px solid var(--forest-line); font-size: var(--step--1); color: var(--on-dark-muted);
}
.chart__runner { opacity: 0; animation: fade-in .4s 2.2s forwards; fill-opacity: 0; }
.chart__spark { fill: #eafff3; }
.chart__glow { fill: var(--signal); opacity: .35; filter: blur(4px); }
.chart__pulse { fill: none; stroke: var(--signal); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; animation: pulse 4.8s ease-out infinite; }
.chart__pulse:nth-child(1) { animation-delay: 2.6s; }
.chart__pulse:nth-child(2) { animation-delay: 3.6s; }
.chart__pulse:nth-child(3) { animation-delay: 4.6s; }
.chart__pulse:nth-child(4) { animation-delay: 5.6s; }
@keyframes pulse { 0% { opacity: .9; transform: scale(1); } 30% { opacity: 0; transform: scale(2.8); } 100% { opacity: 0; transform: scale(2.8); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { to { opacity: 1; } }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } }

/* ---------- Topo das páginas internas ---------- */
.page-hero { background: var(--forest); color: var(--on-dark); padding-block: clamp(2rem, 1rem + 3.5vw, 4rem); }
.page-hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.page-hero--text .wrap { grid-template-columns: minmax(0, 1fr); }
.page-hero h1 { font-size: var(--step-4); font-weight: 650; letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 1rem; max-width: 22ch; }
.page-hero__lead { color: var(--on-dark-muted); font-size: var(--step-1); line-height: 1.55; max-width: 56ch; margin-bottom: 1.5rem; }
.page-hero--text .page-hero__lead { margin-bottom: 0; }
.page-hero__media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; animation: rise-in .8s .1s var(--ease-out) both; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.crumbs { font-size: var(--step--1); color: var(--on-dark-muted); margin-bottom: 1.25rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.crumbs li + li::before { content: "/"; margin-right: 0.5rem; opacity: .6; }
.crumbs a { color: var(--on-dark); text-decoration-color: var(--forest-line); transition: text-decoration-color .2s; &:hover { text-decoration-color: var(--signal); } }
@media (max-width: 860px) { .page-hero .wrap { grid-template-columns: 1fr; } }
/* Quadro de destaques no topo da página de Contato */
.hero-aside {
  margin: 0; padding: clamp(1.25rem, 2.5vw, 1.75rem);
  background: var(--forest-2); border: 1px solid var(--forest-line); border-radius: var(--radius-lg);
  animation: rise-in .8s .1s var(--ease-out) both;
}
.hero-aside__head, .hero-aside li { display: grid; grid-template-columns: 2.75rem 1fr; gap: 0 1rem; align-items: start; }
.hero-aside__head { margin-bottom: 1.5rem; }
.hero-aside ul { list-style: none; display: grid; gap: 1.1rem; }
.hero-aside__icon {
  width: 2.75rem; height: 2.75rem; border-radius: 10px; display: grid; place-items: center;
  background: rgb(24 210 110 / .1); border: 1px solid var(--forest-line); color: var(--signal);
  transition: background-color .25s, transform .3s var(--ease-spring);
  & svg { width: 22px; height: 22px; }
}
.hero-aside li:hover .hero-aside__icon, .hero-aside__head:hover .hero-aside__icon { background: rgb(24 210 110 / .2); transform: translateY(-2px) rotate(-4deg); }
.hero-aside strong { display: block; font: 650 1.08rem/1.3 var(--font-display); color: var(--on-dark); margin-bottom: 0.2rem; }
.hero-aside p { margin: 0; color: var(--on-dark-muted); font-size: 0.93rem; line-height: 1.5; }
.hero-aside li { opacity: 1; }
.hero-aside li:nth-child(1) { animation: rise-in .6s .25s var(--ease-out) both; }
.hero-aside li:nth-child(2) { animation: rise-in .6s .35s var(--ease-out) both; }
.hero-aside li:nth-child(3) { animation: rise-in .6s .45s var(--ease-out) both; }

/* ---------- Seções ---------- */
.section { padding-block: var(--section); }
.section--surface { background: var(--surface); border-block: 1px solid var(--line); }
.section__head { max-width: 60ch; margin-bottom: clamp(1.75rem, 3.5vw, 3rem); }
.section__head h2 { font-size: var(--step-3); }
.section__head p { color: var(--muted); font-size: var(--step-1); line-height: 1.55; margin: 0; }
.section__head--split { max-width: none; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem 2rem; }
.section__head--split > div { max-width: 60ch; }

/* Cartões de soluções */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 1100px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } }
.card {
  display: flex; flex-direction: column; text-decoration: none; height: 100%;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .25s;
  &:hover { transform: translateY(-5px); box-shadow: 0 22px 40px -22px var(--shadow); border-color: color-mix(in srgb, var(--accent-text) 45%, var(--line)); }
  &:active { transform: translateY(-2px) scale(.99); }
}
.card__media { aspect-ratio: 16 / 10; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; scale: 1.02; transition: scale .6s var(--ease-out); }
.card:hover .card__media img { scale: 1.08; }
.card__body { display: grid; gap: 0.4rem; padding: 1.1rem 1.25rem 1.3rem; flex: 1; align-content: start; }
.card__title { font: 650 var(--step-2)/1.2 var(--font-display); letter-spacing: -0.01em; }
.card__text { color: var(--muted); font-size: 0.95rem; line-height: 1.55; }
.more--inline { margin-top: 0.35rem; font-size: 0.92rem; }
.card:hover .more--inline { background-size: 100% 1.5px; }
.card:hover .more--inline .i-arrow { translate: 4px 0; }

/* Linhas imagem + texto */
.features { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); }
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.75rem, 5vw, 4rem); align-items: center; }
.feature:nth-child(even) .feature__media { order: 2; }
.feature__media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 10; }
.feature__media img { width: 100%; height: 100%; object-fit: cover; scale: 1.08; }
.feature h2, .feature h3 { font-size: var(--step-2); }
.feature p { color: var(--muted); max-width: 54ch; }
.feature .btn { margin-top: 0.25rem; }
@media (max-width: 760px) { .feature { grid-template-columns: 1fr; } .feature:nth-child(even) .feature__media { order: 0; } }

.also { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.also li {
  padding: 1.25rem 1.35rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper);
  border-left: 3px solid var(--signal);
  & strong { display: block; font: 650 1.1rem var(--font-display); margin-bottom: 0.3rem; }
  & span { color: var(--muted); font-size: 0.95rem; }
}

/* Processo: sequência real */
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
.steps li { counter-increment: step; position: relative; padding-top: 3.25rem; }
.steps li::before {
  content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 2.4rem; height: 2.4rem; display: grid; place-items: center;
  border-radius: 50%; background: var(--forest); color: var(--signal);
  font: 650 1rem var(--font-display);
}
.steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 1.2rem; left: 3.1rem; right: -1.25rem; height: 2px;
  background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px);
}
.steps h3 { font-size: var(--step-1); margin-bottom: 0.35rem; }
.steps p { color: var(--muted); margin: 0; font-size: 0.97rem; }
.steps--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) {
  .steps, .steps--3 { grid-template-columns: 1fr; gap: 0; }
  .steps li { padding: 0 0 1.75rem 3.6rem; }
  .steps li:not(:last-child)::after { top: 2.8rem; bottom: 0.4rem; left: 1.15rem; right: auto; width: 2px; height: auto;
    background: repeating-linear-gradient(180deg, var(--line) 0 8px, transparent 8px 14px); }
}

/* Portfólio */
.gallery { display: grid; gap: 1.25rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .gallery:not(.gallery--tall) { grid-template-columns: 1fr; } }
.gallery[hidden] { display: none; }
.gallery.is-entering .work { animation: rise-in .45s var(--ease-out) both; }
.gallery.is-entering .work:nth-child(2) { animation-delay: .06s; }
.gallery.is-entering .work:nth-child(3) { animation-delay: .12s; }
.work { margin: 0; }
.work picture, .work__open {
  display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface);
}
.work__open {
  width: 100%; padding: 0; cursor: zoom-in;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
  & picture { border: 0; border-radius: 0; }
  & img { transition: scale .6s var(--ease-out); }
  &:hover { transform: translateY(-4px); box-shadow: 0 20px 36px -22px var(--shadow); }
  &:hover img { scale: 1.04; }
  &:active { transform: scale(.98); }
}
.work figcaption { padding-top: 0.7rem; }
.work figcaption strong { display: block; font-weight: 600; }
.work figcaption span { color: var(--muted); font-size: var(--step--1); }

.tabs { position: relative; display: inline-flex; flex-wrap: wrap; gap: 0.25rem; padding: 0.3rem; margin-bottom: 1.75rem; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; }
.tabs button {
  position: relative; z-index: 1; min-height: 42px; padding: 0.45rem 1.1rem; border-radius: 999px; cursor: pointer;
  border: 0; background: transparent; font-weight: 600; color: var(--muted); transition: color .25s;
  &[aria-selected="true"] { color: var(--on-dark); }
  &:hover:not([aria-selected="true"]) { color: var(--ink); }
}
.tabs__indicator {
  position: absolute; z-index: 0; top: 0.3rem; bottom: 0.3rem; left: 0; width: 0;
  border-radius: 999px; background: var(--forest);
  translate: var(--x, 0.3rem) 0; width: var(--w, 0);
  transition: translate .35s var(--ease-out), width .35s var(--ease-out);
}
html:not(.js) .tabs button[aria-selected="true"] { background: var(--forest); }

/* Visualizador de imagem (dialog nativo) */
.zoom {
  border: 0; padding: 0; background: transparent; max-width: min(1100px, 94vw); max-height: 92vh; overflow: visible;
  opacity: 0; scale: .96;
  transition: opacity .25s var(--ease-out), scale .25s var(--ease-out), display .25s allow-discrete, overlay .25s allow-discrete;
  &[open] { opacity: 1; scale: 1; @starting-style { opacity: 0; scale: .96; } }
  &::backdrop { background: rgb(6 20 14 / 0); backdrop-filter: blur(0); transition: background-color .25s, backdrop-filter .25s, display .25s allow-discrete, overlay .25s allow-discrete; }
  &[open]::backdrop { background: rgb(6 20 14 / .82); backdrop-filter: blur(4px); @starting-style { background: rgb(6 20 14 / 0); } }
  & img { max-height: 80vh; width: auto; margin-inline: auto; border-radius: var(--radius); }
  & .zoom__caption { color: #fff; text-align: center; margin: 0.75rem 0 0; font-weight: 600; }
}
.zoom__close {
  position: absolute; top: -14px; right: -14px; width: 44px; height: 44px; border-radius: 50%; border: 0;
  display: grid; place-items: center; background: #fff; color: var(--forest); cursor: pointer;
  box-shadow: 0 6px 16px rgb(0 0 0 / .3); transition: rotate .3s var(--ease-out);
  &:hover { rotate: 90deg; }
  & svg { width: 20px; height: 20px; }
}

/* Sobre */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.about h2 { font-size: var(--step-3); }
.about p { color: var(--muted); }
.pillars { display: grid; gap: 1.5rem; margin: 0; }
.pillars div { border-left: 3px solid var(--signal); padding-left: 1.1rem; }
.pillars dt { font: 650 var(--step-2) var(--font-display); margin-bottom: 0.25rem; }
.pillars dd { margin: 0; color: var(--muted); }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }

/* Faixa de chamada no fim das páginas */
.section--cta { padding-block: 0 var(--section); }
.section--surface + .section--cta, .page-hero + .section--cta { padding-top: var(--section); }
.band {
  background: var(--forest); color: var(--on-dark);
  border-radius: var(--radius-lg); padding: clamp(1.75rem, 4.5vw, 3.25rem);
  display: grid; grid-template-columns: minmax(0, 1.2fr) auto; gap: 1.75rem; align-items: center;
  position: relative; overflow: hidden;
  &::before {
    content: ""; position: absolute; inset: auto -10% -60% auto; width: 420px; aspect-ratio: 1; border-radius: 50%;
    background: radial-gradient(closest-side, rgb(24 210 110 / .22), transparent);
    pointer-events: none;
  }
  & > * { position: relative; }
  & h2 { font-size: var(--step-3); margin-bottom: 0.4rem; }
  & p { color: var(--on-dark-muted); margin: 0; max-width: 52ch; }
}
@media (max-width: 820px) { .band { grid-template-columns: 1fr; } }

.related { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; }
.related a {
  display: grid; gap: 0.35rem; height: 100%; padding: 1.35rem; text-decoration: none;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  transition: border-color .25s, transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
  &:hover { border-color: var(--accent-text); transform: translateY(-3px); box-shadow: 0 16px 30px -20px var(--shadow); }
  &:hover .more--inline { background-size: 100% 1.5px; }
  &:hover .more--inline .i-arrow { translate: 4px 0; }
  & strong { font: 650 1.1rem var(--font-display); }
  & > span:not(.more) { color: var(--muted); font-size: 0.93rem; }
}

/* ---------- Contato ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 4.5rem); align-items: start; }
.contact h2 { font-size: var(--step-3); }
.contact__intro { color: var(--muted); font-size: var(--step-1); line-height: 1.55; }
.contact__list { list-style: none; display: grid; gap: 1rem; margin-top: 2rem; }
.contact__list li { display: grid; grid-template-columns: 2.5rem 1fr auto; gap: 0.75rem; align-items: center; }
.contact__list svg { width: 22px; height: 22px; color: var(--accent-text); justify-self: center; }
.contact__list small { display: block; color: var(--muted); font-size: 0.85rem; }
.contact__list a { font-weight: 600; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

.copy {
  min-height: 36px; padding: 0.35rem 0.85rem; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); font-size: 0.85rem; font-weight: 600;
  transition: background-color .2s, border-color .2s, color .2s, scale .2s var(--ease-spring);
  &:hover { border-color: var(--accent-text); }
  &:active { scale: .94; }
  &.is-copied { background: var(--signal); border-color: var(--signal); color: var(--forest); }
}

.form {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 2.25rem);
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.05rem 1rem;
}
.form__title { grid-column: span 2; font-size: var(--step-2); margin: 0 0 0.25rem; }
.field { display: grid; gap: 0.35rem; grid-column: span 2; }
.field--half { grid-column: span 1; }
@media (max-width: 560px) { .field--half { grid-column: span 2; } }
.field label { font-weight: 600; font-size: 0.93rem; transition: color .2s; }
.field label small { font-weight: 400; color: var(--muted); }
.field:focus-within label { color: var(--accent-text); }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: 0.7rem 0.9rem;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color .2s, box-shadow .25s var(--ease-out), background-color .2s;
  &:hover { border-color: color-mix(in srgb, var(--ink) 35%, var(--line)); }
  &:focus { outline: none; background: var(--surface); border-color: var(--accent-text); box-shadow: 0 0 0 4px color-mix(in srgb, var(--signal) 28%, transparent); }
}
.field textarea { min-height: 8rem; resize: vertical; field-sizing: content; max-height: 24rem; }
.field:has(:user-invalid) input, .field:has(:user-invalid) textarea { border-color: var(--danger); animation: shake .35s; }
.field__error { display: none; color: var(--danger); font-size: 0.85rem; }
.field:has(:user-invalid) .field__error { display: block; animation: rise-in .25s var(--ease-out); }
@keyframes shake { 25% { translate: -4px 0; } 50% { translate: 4px 0; } 75% { translate: -2px 0; } }
.consent { grid-column: span 2; display: grid; grid-template-columns: auto 1fr; gap: 0.6rem; align-items: start; font-size: 0.9rem; color: var(--muted); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin-top: 0.15rem; accent-color: var(--signal-press); cursor: pointer; }
.consent input:checked { animation: tick .3s var(--ease-spring); }
@keyframes tick { 50% { scale: 1.25; } }
.form__footer { grid-column: span 2; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.form__status { margin: 0; font-weight: 600; display: flex; align-items: center; gap: 0.5rem; }
.form__status:empty { display: none; }
.form__status[data-state="ok"] { color: var(--accent-text); }
.form__status[data-state="ok"]::before {
  content: "✓"; flex: none; width: 1.6rem; height: 1.6rem; display: grid; place-items: center; border-radius: 50%;
  background: var(--signal); color: var(--forest); font-size: 0.9rem; animation: pop-check .45s var(--ease-spring);
}
.form__status[data-state="error"] { color: var(--danger); animation: rise-in .25s var(--ease-out); }
@keyframes pop-check { from { scale: 0; } }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--forest); color: var(--on-dark); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.site-footer .brand { margin-bottom: 1.1rem; }
.site-footer .brand__logo { height: 50px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.4fr; gap: 2.5rem; }
.site-footer h2 { font: 600 1rem var(--font-body); letter-spacing: 0; margin-bottom: 0.9rem; }
.site-footer p, .site-footer li { color: var(--on-dark-muted); font-size: 0.95rem; }
.site-footer ul { list-style: none; display: grid; gap: 0.5rem; }
.site-footer ul a { color: var(--on-dark); text-decoration: none; background: linear-gradient(var(--signal) 0 0) left bottom / 0 1px no-repeat; transition: background-size .3s var(--ease-out), color .2s; }
.site-footer ul a:hover { background-size: 100% 1px; color: #fff; }
.social { display: flex; gap: 0.5rem; margin-top: 1.25rem; }
.social a {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  background: var(--forest-2); color: var(--on-dark);
  transition: background-color .2s, color .2s, transform .3s var(--ease-spring);
  &:hover { background: var(--signal); color: var(--forest); transform: translateY(-3px) rotate(-6deg); }
  & svg { width: 20px; height: 20px; }
}
.newsletter { display: flex; gap: 0.5rem; margin-top: 0.75rem; flex-wrap: wrap; }
.newsletter input[type="email"] {
  flex: 1 1 180px; min-height: 46px; padding: 0.6rem 0.9rem; border-radius: 999px;
  border: 1px solid var(--forest-line); background: var(--forest-2); color: var(--on-dark);
  transition: border-color .2s, box-shadow .25s;
  &::placeholder { color: var(--on-dark-muted); }
  &:focus { outline: none; border-color: var(--signal); box-shadow: 0 0 0 4px rgb(24 210 110 / .2); }
}
.newsletter .form__status { flex-basis: 100%; font-size: 0.9rem; }
.newsletter .form__status[data-state="ok"] { color: var(--signal); }
.footer-bottom {
  margin-top: 2.75rem; padding-top: 1.5rem; border-top: 1px solid var(--forest-line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: 0.88rem; color: var(--on-dark-muted);
}
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Botão flutuante do WhatsApp ---------- */
.wa-float {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 60;
  display: inline-flex; align-items: center; gap: 0;
  height: 58px; min-width: 58px; padding: 0 15px;
  border-radius: 999px; background: #128c4a; color: #fff; text-decoration: none;
  box-shadow: 0 10px 28px -8px rgb(6 51 26 / 0.55), 0 2px 6px rgb(0 0 0 / 0.15);
  view-transition-name: wa-float;
  transition: gap .3s var(--ease-out), padding .3s var(--ease-out), background-color .2s, scale .2s var(--ease-spring);
  animation: wa-in .5s .6s var(--ease-spring) both, wa-nudge 1s 5s ease-in-out 1;
  & svg { width: 28px; height: 28px; flex: none; }
  & span { max-width: 0; overflow: hidden; white-space: nowrap; font-weight: 600; transition: max-width .35s var(--ease-out); }
  &:hover, &:focus-visible { gap: 0.6rem; padding-inline: 15px 20px; background: #108040; }
  &:hover span, &:focus-visible span { max-width: 14rem; }
  &:active { scale: .95; }
}
@keyframes wa-in { from { opacity: 0; scale: .4; } }
@keyframes wa-nudge { 0%, 100% { rotate: 0deg; } 20% { rotate: -10deg; } 40% { rotate: 8deg; } 60% { rotate: -5deg; } 80% { rotate: 3deg; } }

/* ---------- 404 ---------- */
.notfound { min-height: 55vh; display: grid; place-content: center; text-align: center; gap: 1rem; padding: 4rem var(--gutter); }
.notfound h1 { font-size: var(--step-4); margin: 0; }
.notfound p { color: var(--muted); }
.notfound .btn-row { justify-content: center; }

/* ==========================================================================
   Animações no scroll
   1) Navegadores com scroll-driven animations: tudo em CSS, sem JavaScript.
   2) Demais navegadores: o script adiciona html.io e usa IntersectionObserver.
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 70%;
    }
    .cards .reveal:nth-child(2), .gallery .reveal:nth-child(3n+2), .steps .reveal:nth-child(2), .related .reveal:nth-child(2), .pillars .reveal:nth-child(2), .also .reveal:nth-child(2) { animation-range: entry 8% entry 78%; }
    .cards .reveal:nth-child(3), .gallery .reveal:nth-child(3n), .steps .reveal:nth-child(3), .related .reveal:nth-child(3), .pillars .reveal:nth-child(3), .also .reveal:nth-child(3) { animation-range: entry 16% entry 86%; }
    .cards .reveal:nth-child(4), .steps .reveal:nth-child(4) { animation-range: entry 24% entry 94%; }
    @keyframes reveal { from { opacity: 0; translate: 0 28px; } }

    /* leve efeito de profundidade nas fotos */
    .feature__media img, .page-hero__media img {
      animation: drift linear both;
      animation-timeline: view();
    }
    @keyframes drift { from { translate: 0 -3.5%; } to { translate: 0 3.5%; } }
    .page-hero__media img { scale: 1.08; animation-range: cover 0% cover 100%; }

    /* número da etapa acende ao passar por ele */
    .steps li::before { animation: step-on linear both; animation-timeline: view(); animation-range: entry 60% cover 45%; }
    @keyframes step-on { to { background: var(--signal); color: var(--forest); } }
  }

  html.io .reveal { transition: opacity .7s var(--ease-out), translate .7s var(--ease-out); }
  html.io .reveal.is-pending { opacity: 0; translate: 0 28px; }
}

/* ---------- Transições entre páginas ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .18s ease-in both; }
::view-transition-new(root) { animation: vt-in .38s var(--ease-out) both; }
::view-transition-group(site-header), ::view-transition-group(wa-float) { animation-duration: 0s; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; translate: 0 12px; } }

/* ---------- Menos movimento para quem prefere ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0ms !important; transition-duration: 0.01ms !important; }
  .chart__line { stroke-dashoffset: 0; }
  .chart__point, .chart__area { opacity: 1; }
  .chart__runner, .chart__pulses { display: none; }
  @view-transition { navigation: none; }
}

@media print {
  .site-header, .wa-float, .site-footer, .form, .hero__actions, .progress, .section--cta { display: none !important; }
  body { background: #fff; color: #000; }
}