/* =========================================================
   Poupança Segura — folha de estilos do site
   Direção: "Type and nothing else" (taste-skill), cores da marca.
   Transições: transitions.dev (t-dropdown, t-modal, t-toast,
   t-acc, t-learn, t-digit). Movimento de scroll: GSAP (js/main.js).
   ========================================================= */

@font-face { font-family: "Epilogue"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/epilogue-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Epilogue"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/epilogue-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Epilogue"; font-style: normal; font-weight: 900; font-display: swap;
  src: url("../fonts/epilogue-latin-900-normal.woff2") format("woff2"); }

:root {
  /* Cor — marca Poupança Segura (verde do logótipo + laranja dos botões) */
  --green: #17832e;          /* verde do logótipo */
  --green-deep: #0f5a22;
  --ink: #0c2414;            /* tinta */
  --ink-soft: #3d5a45;
  --paper: #ffffff;
  --paper-2: #e9f3eb;        /* um degrau de tom */
  --accent: #f4a520;         /* laranja da marca — só na ação */
  --accent-strong: #ffb73d;
  --accent-on-dark: #ffd27a;
  --mint: #c9e8d0;
  --hl-green: #bfe5c8;
  --hl-orange: #fbd99a;
  --hl-white: #ffffff;

  /* Tipo — Epilogue, cinco degraus */
  --font: "Epilogue", system-ui, -apple-system, "Segoe UI", sans-serif;
  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.2rem + 2.4vw, 3rem);
  --step-big: clamp(3.5rem, 9vw, 9.5rem);
  --step-display: clamp(5.25rem, 15vw, 14.5rem);

  /* Espaço */
  --m: clamp(16px, 2.8vw, 40px);       /* margem exterior, igual dos dois lados */
  --gap: clamp(16px, 2.2vw, 32px);
  --section: clamp(80px, 9vw, 150px);
  --bar: 72px;
  --radius-btn: 999px;

  /* Movimento — tokens taste-skill */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;

  /* transitions.dev — variáveis das transições usadas */
  --dropdown-open-dur: 250ms;
  --dropdown-close-dur: 150ms;
  --dropdown-pre-scale: 0.97;
  --dropdown-closing-scale: 0.99;
  --dropdown-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --modal-open-dur: 250ms;
  --modal-close-dur: 150ms;
  --modal-scale: 0.96;
  --modal-scale-close: 0.96;
  --modal-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --toast-open: 350ms;
  --toast-close: 250ms;
  --toast-distance: 16px;
  --toast-blur: 2px;
  --toast-scale: 0.97;
  --toast-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --acc-expand: 250ms;
  --acc-collapse: 250ms;
  --acc-chevron: 250ms;
  --acc-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --learn-shift: 2px;
  --learn-spread: 8deg;
  --learn-in: 350ms;
  --learn-out: 350ms;
  --learn-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --digit-dur: 500ms;
  --digit-distance: 8px;
  --digit-dir-x: 0;
  --digit-dir-y: 1;
  --digit-blur: 2px;
  --digit-stagger: 40ms;
  --digit-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--bar) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-body);
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: var(--m); top: -60px; z-index: 10001; background: var(--accent); color: var(--ink); padding: 10px 16px; border-radius: var(--radius-btn); font-weight: 500; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { padding-inline: var(--m); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }

/* ---------- Componentes partilhados ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px;
  border: 0; border-radius: var(--radius-btn);
  background: var(--accent); color: var(--ink);
  font-weight: 500; font-size: var(--step-body); line-height: 1.1; text-decoration: none; text-align: center;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease;
}
.button:active { transform: scale(0.97); }
.button--ink { background: var(--ink); color: var(--paper); }
.button--paper { background: var(--paper); color: var(--ink); }
.button--line { background: transparent; color: inherit; border: 2px solid currentColor; }
@media (hover: hover) and (pointer: fine) {
  .button:hover { background: var(--accent-strong); }
  .button--ink:hover { background: var(--green-deep); }
  .button--paper:hover { background: var(--mint); }
  .button--line:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
}

.link {
  text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 0.07em;
  text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
  transition: text-decoration-color var(--t-hover) ease;
}
@media (hover: hover) and (pointer: fine) { .link:hover { text-decoration-color: currentColor; } }

/* transitions.dev — Learn more hover (24) */
.t-learn { display: inline-flex; align-items: center; gap: 6px; }
.t-learn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.t-learn-chevron {
  display: inline-flex;
  transform: translateX(0);
  transition: transform var(--learn-out) var(--learn-ease);
}
.t-learn-arm {
  transform-box: view-box;
  transform-origin: 10px 8px;
  vector-effect: non-scaling-stroke;
  transition: transform var(--learn-out) var(--learn-ease);
}
.t-learn:hover .t-learn-chevron { transform: translateX(var(--learn-shift)); transition-duration: var(--learn-in); }
.t-learn:hover .t-learn-arm { transition-duration: var(--learn-in); }
.t-learn:hover .t-learn-arm-top { transform: rotate(var(--learn-spread)); }
.t-learn:hover .t-learn-arm-bot { transform: rotate(calc(var(--learn-spread) * -1)); }
@media (prefers-reduced-motion: reduce) {
  .t-learn-chevron, .t-learn-arm { transition: none !important; }
}

/* ---------- Barra de navegação ---------- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 9000;
  height: var(--bar);
  background: var(--green);
  color: var(--paper);
  transition: background-color var(--t-ui) ease, transform 320ms var(--ease-out);
}
.bar.is-hidden { transform: translateY(-100%); }
.bar.is-scrolled { background: var(--green-deep); }
.bar__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-inline: var(--m); }
.bar__logo { display: block; flex-shrink: 0; }
.bar__logo img { height: 44px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav__item { position: relative; }
.nav__trigger, .nav__plain {
  display: inline-flex; align-items: center; gap: 6px;
  height: 44px; padding: 0 14px;
  background: none; border: 0; border-radius: var(--radius-btn);
  font-size: 1rem; font-weight: 500; color: var(--paper); text-decoration: none; white-space: nowrap;
  transition: background-color var(--t-hover) ease;
}
@media (hover: hover) and (pointer: fine) {
  .nav__trigger:hover, .nav__plain:hover, .nav__item.is-active .nav__trigger { background: rgba(255,255,255,0.14); }
}
.nav__chev { display: inline-flex; transition: transform var(--acc-chevron) var(--acc-ease); }
.nav__chev svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nav__chev path { vector-effect: non-scaling-stroke; }
.nav__trigger[aria-expanded="true"] .nav__chev { transform: scaleY(-1); }
.nav__cta { margin-left: 12px; min-height: 44px; padding: 0 22px; font-size: 1rem; }

.menu {
  position: absolute; top: calc(100% + 10px); left: 0;
  min-width: 260px; padding: 8px;
  background: var(--paper); color: var(--ink);
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(12, 36, 20, 0.28); /* taste-skill-ignore: menu flutuante */
}
.menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; } /* ponte para o rato */
.menu a {
  display: block; padding: 11px 14px; border-radius: 9px;
  font-size: 1rem; font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: background-color var(--t-hover) ease;
}
.menu a:hover, .menu a:focus-visible { background: var(--paper-2); }
.menu .menu__ext { color: var(--ink-soft); font-weight: 400; }

/* transitions.dev — Menu dropdown (05) */
.t-dropdown {
  transform-origin: top left;
  transform: scale(var(--dropdown-pre-scale));
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition:
    transform var(--dropdown-open-dur) var(--dropdown-ease),
    opacity   var(--dropdown-open-dur) var(--dropdown-ease),
    visibility 0s linear var(--dropdown-open-dur);
  will-change: transform, opacity;
}
.t-dropdown[data-origin="top-right"]     { transform-origin: top right; }
.t-dropdown[data-origin="top-center"]    { transform-origin: top center; }
.t-dropdown.is-open {
  transform: scale(1);
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transition:
    transform var(--dropdown-open-dur) var(--dropdown-ease),
    opacity   var(--dropdown-open-dur) var(--dropdown-ease),
    visibility 0s;
}
.t-dropdown.is-closing {
  transform: scale(var(--dropdown-closing-scale));
  opacity: 0;
  pointer-events: none;
  visibility: visible;
  transition:
    transform var(--dropdown-close-dur) var(--dropdown-ease),
    opacity   var(--dropdown-close-dur) var(--dropdown-ease);
}
@media (prefers-reduced-motion: reduce) {
  .t-dropdown { transition: none !important; }
  .t-dropdown:not(.is-open):not(.is-closing) { display: none; }
}

.burger { display: none; width: 48px; height: 48px; margin-right: -8px; background: none; border: 0; color: var(--paper); align-items: center; justify-content: center; }
.burger svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.burger .burger__x { display: none; }
.burger[aria-expanded="true"] .burger__x { display: block; }
.burger[aria-expanded="true"] .burger__lines { display: none; }

.sheet {
  position: fixed; inset: var(--bar) 0 0 0; z-index: 8990;
  background: var(--green-deep); color: var(--paper);
  overflow-y: auto; overscroll-behavior: contain;
  padding: 24px var(--m) 48px;
}
.sheet[hidden] { display: none; }
.sheet__group + .sheet__group { margin-top: 28px; }
.sheet__title { font-size: var(--step-small); font-weight: 500; color: var(--mint); margin-bottom: 6px; }
.sheet a { display: flex; align-items: center; min-height: 48px; font-size: 1.25rem; font-weight: 500; text-decoration: none; }
.sheet .button { margin-top: 32px; width: 100%; }

@media (max-width: 1100px) {
  .nav { display: none; }
  .burger { display: inline-flex; }
}

/* ---------- Hero — "Stacked name, two inks" ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  background: var(--green); color: var(--paper);
  padding: calc(var(--bar) + 9vh) var(--m) 40px;
  display: grid; grid-template-rows: auto 1fr auto;
}
.hero__name {
  font-size: var(--step-display);
  font-weight: 900; letter-spacing: -0.045em; line-height: 0.84;
  margin-left: -0.04em;
}
.lines .line { display: block; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.lines [data-line] { display: block; }
.hero__name .ink-dark { color: var(--ink); }
.hero__foot {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap);
  align-items: end; margin-top: 48px;
}
.hero__facts { grid-column: 1 / span 5; font-size: var(--step-body); line-height: 1.55; }
.hero__facts li { display: flex; gap: 10px; align-items: baseline; }
.hero__facts li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex-shrink: 0; transform: translateY(-1px); }
.hero__say { grid-column: 7 / span 6; justify-self: end; text-align: right; max-width: 34ch; }
.hero__lead { font-size: var(--step-lead); line-height: 1.3; }
.hero__actions { margin-top: 28px; display: flex; gap: 12px 20px; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.hero__actions .link { font-weight: 500; }

@media (max-width: 760px) {
  .hero { padding-top: calc(var(--bar) + 10vh); }
  .hero__name { font-size: 16.5vw; }
  .hero__foot { display: flex; flex-direction: column; margin-top: 32px; }
  .hero__foot { align-items: stretch; }
  .hero__say { order: 1; }
  .hero__facts { order: 2; }
  .hero__say { text-align: left; max-width: none; }
  .hero__lead { font-size: 1.25rem; }
  .hero__actions { justify-content: flex-start; }
  .hero__actions .button { width: 100%; }
  .hero__facts { margin-top: 28px; }
}

/* ---------- Vantagens — "Statements on colour fields" ---------- */
.field {
  position: relative;
  min-height: 74svh;
  padding: 40px var(--m) 32px;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap);
  grid-template-rows: auto 1fr auto;
}
.field--ink { background: var(--ink); color: var(--paper); }
.field--pale { background: var(--paper-2); color: var(--ink); }
.field--accent { background: var(--accent); color: var(--ink); }
.field__text { grid-column: 8 / span 4; grid-row: 1; font-size: var(--step-lead); line-height: 1.35; max-width: 30ch; }
.field__phrase {
  grid-column: 1 / span 11; grid-row: 3;
  font-size: var(--step-big); font-weight: 900; letter-spacing: -0.04em; line-height: 0.9;
}
.field--mirror .field__text { grid-column: 2 / span 4; }
.field--mirror .field__phrase { grid-column: 2 / span 11; text-align: right; }
@media (max-width: 760px) {
  .field { min-height: 64svh; padding-top: 32px; display: flex; flex-direction: column; justify-content: space-between; gap: 48px; }
  .field__text { font-size: 1.125rem; max-width: 30ch; }
  .field--mirror .field__text { align-self: flex-end; text-align: right; }
  .field__phrase, .field--mirror .field__phrase { font-size: 13vw; text-align: left; }
}

/* ---------- Simulador — "Two giant figures compared" ---------- */
.calc { background: var(--paper); padding: var(--section) var(--m); }
.calc__top { align-items: start; }
.calc__title { grid-column: 1 / span 6; font-size: var(--step-head); font-weight: 900; letter-spacing: -0.035em; line-height: 1; }
.calc__intro { grid-column: 7 / span 6; font-size: var(--step-body); max-width: 56ch; }
.calc__intro p + p { margin-top: 12px; }
.calc__sims { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.calc__pair { margin-top: clamp(56px, 10vh, 120px); row-gap: 40px; }
.spec { grid-column: span 6; min-width: 0; }
.spec label { display: block; font-size: var(--step-lead); font-weight: 500; margin-top: 12px; }
.spec__field { display: flex; align-items: baseline; gap: 0.12em; padding-bottom: 6px; border-bottom: 4px solid transparent; transition: border-color var(--t-hover) ease; }
.spec__field input {
  width: 1.4ch; min-width: 0; max-width: 100%;
  border: 0; border-radius: 0; background: transparent; padding: 0;
  font-size: clamp(5rem, 15vw, 15rem); font-weight: 900; letter-spacing: -0.045em; line-height: 0.95;
  color: var(--ink); caret-color: var(--accent);
  -moz-appearance: textfield;
}
.spec__field input::placeholder { color: color-mix(in srgb, var(--ink) 22%, transparent); }
.spec__field input:focus { outline: none; }
.spec__field:focus-within { border-bottom-color: var(--accent); }
.spec__unit { font-size: clamp(2.5rem, 7vw, 7rem); font-weight: 500; line-height: 1; color: var(--ink-soft); }
.spec__hint { margin-top: 10px; font-size: var(--step-small); color: var(--ink-soft); }
.spec--b .spec__field input { color: var(--green); }

.calc__result {
  margin-top: clamp(48px, 7vw, 96px);
  background: var(--paper-2);
  border-radius: 0;
  padding: clamp(24px, 3vw, 40px);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 28px; align-items: end;
}
.calc__years { grid-column: span 3; display: flex; flex-direction: column-reverse; }
.calc__years label { display: block; font-weight: 500; margin-top: 8px; }
.calc__years input {
  width: 100%; height: 64px; padding: 0 18px;
  background: var(--paper); border: 2px solid var(--ink); border-radius: 10px;
  font-size: var(--step-lead); font-weight: 500;
}
.calc__years input:focus { outline: 3px solid var(--accent); outline-offset: 0; border-color: var(--green); }
.calc__out { grid-column: span 3; display: flex; flex-direction: column-reverse; }
.calc__out dt { font-weight: 500; }
.calc__out dd { margin: 0 0 4px; font-size: var(--step-lead); font-weight: 900; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; min-height: 1.3em; }
.calc__out--total dd { font-size: var(--step-head); color: var(--green-deep); }
.calc__note { grid-column: 1 / -1; font-size: var(--step-small); color: var(--ink-soft); }
@media (max-width: 1100px) {
  .field { min-height: 52svh; }
  .field__text { grid-column: 7 / span 6; }
  .field--mirror .field__text { grid-column: 1 / span 6; }
  .calc__years { grid-column: 1 / -1; }
  .calc__out { grid-column: span 4; }
  .spec__field input { font-size: clamp(4rem, 13vw, 9rem); }
  .calc__title, .calc__intro, .lineup__title, .lineup__sub { grid-column: 1 / -1; }
  .calc__intro, .lineup__sub { margin-top: 20px; }
}
@media (max-width: 760px) {
  .spec { grid-column: 1 / -1; }
  .spec__field input { font-size: 24vw; }
  .spec__unit { font-size: 12vw; }
  .calc__title, .calc__intro { grid-column: 1 / -1; }
  .calc__intro { margin-top: 20px; }
  .calc__years { grid-column: 1 / -1; }
  .calc__out { grid-column: span 6; }
  .calc__out--total { grid-column: 1 / -1; }
  .spec--b { background: var(--ink); color: var(--paper); margin-inline: calc(var(--m) * -1); padding: 24px var(--m) 28px; }
  .spec--b .spec__field input { color: var(--paper); }
  .spec--b .spec__unit, .spec--b .spec__hint { color: var(--mint); }
  .spec--b .spec__field input::placeholder { color: rgba(255,255,255,0.3); }
}

/* transitions.dev — Number pop-in (02) */
@keyframes t-digit-pop-in {
  0%   {
    transform: translate(
      calc(var(--digit-distance) * var(--digit-dir-x)),
      calc(var(--digit-distance) * var(--digit-dir-y))
    );
    opacity: 0;
    filter: blur(var(--digit-blur));
  }
  100% { transform: translate(0, 0); opacity: 1; filter: blur(0); }
}
.t-digit-group { display: inline-flex; align-items: baseline; white-space: pre; }
.t-digit { display: inline-block; will-change: transform, opacity, filter; }
.t-digit-group.is-animating .t-digit { animation: t-digit-pop-in var(--digit-dur) var(--digit-ease) both; }
.t-digit-group.is-animating .t-digit[data-stagger="1"] { animation-delay: var(--digit-stagger); }
.t-digit-group.is-animating .t-digit[data-stagger="2"] { animation-delay: calc(var(--digit-stagger) * 2); }
.t-digit-group.is-animating .t-digit[data-same] { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .t-digit-group .t-digit { animation: none !important; }
}

/* ---------- Seguros — "Line-up at one type size" ---------- */
.lineup { background: var(--green-deep); color: var(--paper); padding: var(--section) var(--m); }
.lineup__head { align-items: end; }
.lineup__title { grid-column: 1 / span 8; font-size: var(--step-head); font-weight: 900; letter-spacing: -0.035em; line-height: 1; }
.lineup__sub { grid-column: 9 / span 4; font-size: var(--step-body); color: var(--mint); }
.lineup__group {
  margin-top: 72px; padding: 14px 0 12px;
  font-size: var(--step-lead); font-weight: 500; color: var(--accent-on-dark);
}
.lineup__note { font-size: var(--step-body); color: var(--mint); max-width: 62ch; margin: 4px 0 18px; }
.lineup__list { font-size: var(--step-lead); line-height: 1.25; }

/* linha (acordeão) */
.row-head {
  width: 100%;
  display: grid; grid-template-columns: 40% 1fr auto; column-gap: var(--gap); align-items: baseline;
  padding: 18px 0; background: none; border: 0; color: inherit; text-align: left;
  font-size: inherit; line-height: inherit; text-decoration: none;
}
.row-head__name { font-weight: 500; }
.row-head__fact { color: var(--mint); }
.row-head__end { display: inline-flex; align-items: center; gap: 10px; font-size: var(--step-body); font-weight: 500; white-space: nowrap; }
.row-head__end svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) and (pointer: fine) {
  .row-head .row-head__name { transition: color var(--t-hover) ease; }
  .row-head:hover .row-head__name { color: var(--accent-on-dark); }
}

/* transitions.dev — Accordion expand (21) */
.t-acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--acc-collapse) var(--acc-ease);
}
.t-acc[data-open="true"] .t-acc-panel {
  grid-template-rows: 1fr;
  transition: grid-template-rows var(--acc-expand) var(--acc-ease);
}
.t-acc-panel-inner {
  overflow: hidden;
  opacity: 0;
  filter: blur(2px);
  transition:
    opacity var(--acc-collapse) var(--acc-ease),
    filter var(--acc-collapse) var(--acc-ease);
}
.t-acc[data-open="true"] .t-acc-panel-inner {
  opacity: 1;
  filter: blur(0);
  transition:
    opacity var(--acc-expand) var(--acc-ease),
    filter var(--acc-expand) var(--acc-ease);
}
.t-acc-chevron {
  display: inline-flex;
  transform: scaleY(1);
  transform-origin: center;
  transition: transform var(--acc-chevron) var(--acc-ease);
}
.t-acc-chevron path { vector-effect: non-scaling-stroke; }
.t-acc[data-open="true"] .t-acc-chevron {
  transform: scaleY(-1);
}
@media (prefers-reduced-motion: reduce) {
  .t-acc-panel, .t-acc-panel-inner, .t-acc-chevron {
    transition: none !important;
  }
}
/* sem JS, os painéis ficam abertos */
html:not(.js) .t-acc-panel { grid-template-rows: 1fr; }
html:not(.js) .t-acc-panel-inner { opacity: 1; filter: none; }

.prod {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 28px;
  padding: 8px 0 48px;
  font-size: var(--step-body); line-height: 1.55;
}
.prod__text { grid-column: 1 / span 6; max-width: 62ch; }
.prod__text p + p { margin-top: 12px; }
.prod__text strong { font-weight: 500; color: var(--accent-on-dark); }
.prod__list { margin-top: 12px; }
.prod__list li { padding-left: 18px; position: relative; }
.prod__list li + li { margin-top: 4px; }
.prod__list li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-on-dark); }
.prod__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.prod__media { grid-column: 8 / span 5; margin: 0; overflow: hidden; background: var(--ink); aspect-ratio: 3 / 2; }
.prod__media img, .prod__media video { width: 100%; height: 100%; object-fit: cover; }
.prod__media--square { aspect-ratio: 1 / 1; }

/* linhas de empresas (links externos) */
.row-link { display: grid; grid-template-columns: 40% 1fr auto; column-gap: var(--gap); align-items: baseline; padding: 18px 0; text-decoration: none; }
.row-link .row-head__end { color: var(--accent-on-dark); }
@media (hover: hover) and (pointer: fine) { .row-link:hover .row-head__name { color: var(--accent-on-dark); } }

@media (max-width: 760px) {
  .lineup__title, .lineup__sub { grid-column: 1 / -1; }
  .lineup__sub { margin-top: 18px; }
  .row-head, .row-link { grid-template-columns: 1fr auto; row-gap: 4px; padding: 16px 0; }
  .row-head__name { grid-column: 1; grid-row: 1; }
  .row-head__fact { grid-column: 1; grid-row: 2; font-size: 1rem; }
  .row-head__end { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .row-head__end .row-head__label { display: none; }
  .prod__text, .prod__media { grid-column: 1 / -1; }
  .prod__media { order: -1; }
}

/* ---------- Faixa de fotografia ---------- */
.band { position: relative; height: 82svh; min-height: 420px; overflow: hidden; background: #cfd8d2; margin: 0; }
.band img { position: absolute; inset: 0; width: 100%; height: 118%; object-fit: cover; object-position: 50% 30%; will-change: transform; }

/* ---------- Condomínio — "Two-ended rows" ---------- */
.condo { padding: var(--section) var(--m); background: var(--paper); }
.condo__title { grid-column: 1 / span 7; font-size: var(--step-head); font-weight: 900; letter-spacing: -0.035em; line-height: 1; }
.condo__sub { grid-column: 9 / span 4; align-self: end; }
.condo__cols { margin-top: clamp(56px, 7vw, 96px); row-gap: 72px; }
.condo__col { grid-column: span 6; min-width: 0; }
.condo__col h3 { font-size: var(--step-lead); font-weight: 500; letter-spacing: -0.01em; line-height: 1.15; margin-bottom: 24px; }
.condo__lead { color: var(--ink-soft); margin: -12px 0 24px; max-width: 52ch; }

.ins { display: grid; grid-template-columns: 96px 1fr auto; column-gap: 20px; align-items: start; padding: 20px 0; }
.ins__logo { width: 96px; height: 48px; display: flex; align-items: center; justify-content: flex-start; }
.ins__logo img { max-width: 96px; max-height: 44px; width: auto; height: auto; object-fit: contain; }
.ins__name { font-weight: 500; text-decoration: none; }
.ins__name:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.ins__desc { margin-top: 4px; color: var(--ink-soft); font-size: var(--step-body); line-height: 1.45; }
.ins__cov { margin-top: 6px; font-size: var(--step-small); color: var(--ink); font-weight: 500; }
.ins__go { white-space: nowrap; font-weight: 500; font-size: var(--step-body); background: none; border: 0; padding: 4px 0; color: var(--green-deep); }

.lib__row {
  width: 100%; display: flex; justify-content: space-between; align-items: baseline; gap: 20px;
  min-height: 56px; padding: 14px 0;
  background: none; border: 0; text-align: left; text-decoration: none; color: var(--ink); font-size: var(--step-body);
}
.lib__name { font-weight: 500; }
.lib__val { flex-shrink: 0; font-size: var(--step-small); color: var(--ink-soft); font-variant-numeric: tabular-nums; }
@media (hover: hover) and (pointer: fine) {
  .lib__row:not([aria-disabled="true"]):hover .lib__name { color: var(--green); }
}
.lib__row[aria-disabled="true"] { cursor: default; }
.lib__row[aria-disabled="true"] .lib__name { color: var(--ink-soft); }
.lib__tag { display: inline-block; background: var(--hl-orange); color: var(--ink); padding: 0 6px; }

@media (max-width: 900px) {
  .condo__title, .condo__sub, .condo__col { grid-column: 1 / -1; }
  .condo__sub { margin-top: 18px; }
}
@media (max-width: 520px) {
  .ins { grid-template-columns: 72px 1fr; }
  .ins__logo { width: 72px; }
  .ins__logo img { max-width: 72px; }
  .ins__go { grid-column: 2; justify-self: start; margin-top: 10px; }
}

/* ---------- Junte-se a nós — "Two columns, highlighted words" ---------- */
.join { background: var(--paper-2); padding: var(--section) var(--m); }
.join__title { font-size: var(--step-head); font-weight: 900; letter-spacing: -0.035em; line-height: 1; grid-column: 1 / -1; }
.join__intro { grid-column: 1 / span 8; margin-top: 28px; font-size: var(--step-lead); line-height: 1.3; }
.join__cols { margin-top: clamp(48px, 6vw, 88px); row-gap: 56px; }
.join__col { grid-column: span 6; font-size: var(--step-lead); line-height: 1.3; color: var(--ink-soft); hyphens: auto; }
.join__col h3 { font-size: inherit; font-weight: 500; color: var(--ink); margin-bottom: 10px; }
.join__col p + p { margin-top: 0.7em; }
.join__col ul { margin-top: 0.6em; }
.join__col li + li { margin-top: 0.15em; }
.hl { color: var(--ink); padding: 0 0.1em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hl--g { background: var(--hl-green); }
.hl--o { background: var(--hl-orange); }
.hl--w { background: var(--hl-white); }
.join__cta { margin-top: 1.1em; display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; font-size: var(--step-body); }
.join__ask {
  display: inline; padding: 0 0.12em; border: 0; background: var(--accent); color: var(--ink);
  font-size: var(--step-lead); font-weight: 500; line-height: 1.3; text-align: left;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  transition: background-color var(--t-hover) ease;
}
@media (hover: hover) and (pointer: fine) { .join__ask:hover { background: var(--accent-strong); } }
@media (max-width: 760px) {
  .join__intro, .join__col { grid-column: 1 / -1; }
  .join__col { hyphens: manual; }
  .join__ask { display: block; width: 100%; padding: 14px 16px; }
}

/* ---------- Rodapé — "Contact as the headline" ---------- */
.foot { background: var(--green); color: var(--paper); padding: 40px var(--m) 28px; min-height: 90svh; display: flex; flex-direction: column; }
.foot__top { align-items: start; row-gap: 24px; font-size: var(--step-body); }
.foot__logo { grid-column: 1 / span 3; }
.foot__logo img { height: 52px; width: auto; }
.foot__note { grid-column: span 3; }
.foot__note strong { display: block; font-weight: 500; }
.foot__note a { text-decoration-color: rgba(255,255,255,0.5); }
.foot__top-link { grid-column: 12 / span 1; justify-self: end; font-weight: 500; white-space: nowrap; }
.foot__call { margin-top: auto; padding-top: 96px; }
.foot__ask { font-size: var(--step-lead); margin-bottom: 8px; }
.foot__tel {
  display: inline-block; text-decoration: none; white-space: nowrap;
  font-size: var(--step-big); font-weight: 900; letter-spacing: -0.045em; line-height: 0.92;
  margin-left: -0.05em;
  transition: color var(--t-hover) ease;
}
@media (hover: hover) and (pointer: fine) { .foot__tel:hover { color: var(--accent-on-dark); } }
.foot__tel-note { margin-top: 10px; font-size: var(--step-small); color: var(--paper); }
.foot__btns { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.foot__legal { margin-top: 56px; font-size: var(--step-small); line-height: 1.55; color: var(--paper); max-width: 75ch; }
.foot__legal p + p { margin-top: 8px; }
.foot__legal a { color: inherit; }
.foot__meta { margin-top: 28px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: end; font-size: var(--step-small); }
.foot__links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot__links a { text-decoration-color: rgba(255,255,255,0.45); }
.foot__dev { text-align: center; }
.foot__year { text-align: right; }
@media (max-width: 760px) {
  .foot__logo, .foot__note { grid-column: 1 / -1; }
  .foot__top-link { grid-column: 1 / -1; justify-self: start; }
  .foot__tel { font-size: 11.5vw; }
  .foot { min-height: 0; }
  .foot__call { padding-top: 64px; }
  .foot__meta { grid-template-columns: 1fr; }
  .foot__dev, .foot__year { text-align: left; }
}

/* ---------- WhatsApp flutuante ---------- */
.wa {
  position: fixed; right: var(--m); bottom: 20px; z-index: 8000;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 4px; border-radius: var(--radius-btn);
  background: var(--ink); color: var(--paper); text-decoration: none; font-size: 1rem; font-weight: 500;
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity var(--t-ui) var(--ease-out), transform var(--t-ui) var(--ease-out), background-color var(--t-hover) ease;
}
.wa.is-shown { opacity: 1; transform: none; pointer-events: auto; }
.wa { outline: 2px solid var(--paper); outline-offset: 0; }
.wa img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; object-position: 40% 30%; }
@media (hover: hover) and (pointer: fine) { .wa:hover { background: var(--green-deep); } }
.wa__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wa img { width: 52px; height: 52px; }
html:not(.js) .wa { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- Diálogos ---------- */
.dlg {
  width: min(640px, calc(100vw - 32px));
  max-height: min(88vh, 920px);
  padding: 0; border: 0; border-radius: 18px;
  background: var(--paper); color: var(--ink);
  box-shadow: 0 30px 80px rgba(12, 36, 20, 0.35); /* taste-skill-ignore: diálogo */
  overflow: auto; overscroll-behavior: contain;
}
.dlg--wide { width: min(780px, calc(100vw - 32px)); }
.dlg::backdrop { background: rgba(12, 36, 20, 0.62); opacity: 0; transition: opacity var(--modal-open-dur) var(--modal-ease); }
.dlg.is-open::backdrop { opacity: 1; }
.dlg.is-closing::backdrop { opacity: 0; transition-duration: var(--modal-close-dur); }
.dlg__inner { padding: clamp(24px, 4vw, 44px); }
.dlg__close {
  position: sticky; top: 0; float: right; margin: 12px 12px 0 0; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--paper-2); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.dlg__close:hover { background: var(--mint); }
.dlg__close:active { transform: scale(0.94); }
.dlg__close svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; fill: none; }
.dlg h2 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.125rem); font-weight: 900; letter-spacing: -0.03em; line-height: 1.05; padding-right: 48px; }
.dlg .dlg__sub { margin-top: 12px; color: var(--ink-soft); }
.dlg h3 { margin-top: 28px; font-size: 1.1875rem; font-weight: 500; line-height: 1.25; }
.dlg p { margin-top: 12px; }
.dlg ul { margin-top: 12px; }
.dlg ul li { position: relative; padding-left: 18px; }
.dlg ul li + li { margin-top: 8px; }
.dlg ul li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.dlg strong { font-weight: 500; }
.dlg a { color: var(--green-deep); }
.dlg .info { margin-top: 20px; padding: 18px 20px; background: var(--paper-2); }
.dlg .src { margin-top: 24px; font-size: var(--step-small); color: var(--ink-soft); }

/* transitions.dev — Modal open / close (06) */
.t-modal {
  transform-origin: center;
  transform: scale(var(--modal-scale));
  opacity: 0;
  pointer-events: none;
  transition:
    transform var(--modal-open-dur) var(--modal-ease),
    opacity   var(--modal-open-dur) var(--modal-ease);
  will-change: transform, opacity;
}
.t-modal.is-open {
  transform: scale(1);
  opacity: 1;
  pointer-events: auto;
}
.t-modal.is-closing {
  transform: scale(var(--modal-scale-close));
  opacity: 0;
  pointer-events: none;
  transition:
    transform var(--modal-close-dur) var(--modal-ease),
    opacity   var(--modal-close-dur) var(--modal-ease);
}
@media (prefers-reduced-motion: reduce) {
  .t-modal { transition: none !important; }
}

/* formulários */
.form { margin-top: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.form .full { grid-column: 1 / -1; }
.f label, .f legend { display: block; font-size: 1rem; font-weight: 500; margin-bottom: 6px; padding: 0; }
.f input, .f select, .f textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  background: var(--paper); border: 2px solid #b9cfbf; border-radius: 10px;
  font-size: 1rem; line-height: 1.3;
  transition: border-color var(--t-hover) ease, box-shadow var(--t-hover) ease;
}
.f textarea { resize: vertical; min-height: 104px; }
.f input:focus, .f select:focus, .f textarea:focus { outline: 3px solid rgba(23, 131, 46, 0.3); outline-offset: 0; border-color: var(--green); }
.f .req { color: #b3261e; }
.f fieldset, fieldset.f { border: 0; margin: 0; padding: 0; min-width: 0; }
.checks { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.check { display: inline-flex; align-items: flex-start; gap: 10px; font-size: 1rem; font-weight: 400; cursor: pointer; }
.check input { width: 22px; height: 22px; min-height: 0; margin: 1px 0 0; accent-color: var(--green); flex-shrink: 0; }
.form .button { width: 100%; margin-top: 6px; }
.form__alt { margin-top: 24px; padding: 18px 20px 20px; background: var(--paper-2); border-radius: 12px; }
.form__alt p { margin: 0 0 12px; color: var(--ink-soft); font-size: 1rem; }
.form__alt .button { width: 100%; }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }
.button[disabled] { opacity: 0.6; pointer-events: none; }

/* ---------- Toast — transitions.dev (22) ---------- */
.toast-wrap { position: fixed; left: 0; right: 0; bottom: 24px; z-index: 10000; display: flex; justify-content: center; pointer-events: none; padding: 0 16px; }
.toast {
  display: flex; align-items: center; gap: 12px; max-width: 560px;
  padding: 14px 20px; border-radius: 14px;
  background: var(--ink); color: var(--paper); font-weight: 500;
  box-shadow: 0 16px 40px rgba(12, 36, 20, 0.35); /* taste-skill-ignore: toast */
}
.toast__icon { width: 26px; height: 26px; border-radius: 50%; background: var(--green); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.toast__icon svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.toast.is-error .toast__icon { background: #c0392b; }
.t-toast {
  opacity: 0;
  transform: translateY(var(--toast-distance)) scale(var(--toast-scale));
  filter: blur(var(--toast-blur));
  will-change: transform, opacity, filter;
  visibility: hidden;
  transition:
    opacity var(--toast-close) var(--toast-ease),
    transform var(--toast-close) var(--toast-ease),
    filter var(--toast-close) var(--toast-ease),
    visibility 0s linear var(--toast-close);
}
.t-toast.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
  visibility: visible;
  transition:
    opacity var(--toast-open) var(--toast-ease),
    transform var(--toast-open) var(--toast-ease),
    filter var(--toast-open) var(--toast-ease),
    visibility 0s;
}
@media (prefers-reduced-motion: reduce) {
  .t-toast { transition: none !important; }
}

/* ---------- Páginas legais ---------- */
.legal { padding: 0 0 var(--section); }
.legal__head { background: var(--green); color: var(--paper); padding: calc(var(--bar) + clamp(56px, 9vw, 140px)) var(--m) clamp(40px, 5vw, 72px); }
.legal__title { font-size: clamp(2.75rem, 8vw, 8rem); font-weight: 900; letter-spacing: -0.045em; line-height: 0.92; }
.legal__lead { margin-top: 20px; font-size: var(--step-lead); max-width: 40ch; }
.legal__body { padding-inline: var(--m); margin-top: clamp(40px, 5vw, 72px); max-width: 68ch; margin-left: auto; margin-right: 8%; }
.legal__body p + p, .legal__body p + ul, .legal__body ul + p { margin-top: 14px; }
.legal__body h2 { margin-top: 40px; margin-bottom: 10px; font-size: var(--step-lead); font-weight: 500; line-height: 1.2; }
.legal__body ul li { position: relative; padding-left: 18px; }
.legal__body ul li + li { margin-top: 6px; }
.legal__body ul li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.legal__nav { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 760px) { .legal__body { margin-right: 0; } }

/* ---------- Movimento: estado inicial só com JS e sem "reduce" ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .hero [data-line] { transform: translateY(105%); animation: line-up 900ms var(--ease-expo) forwards; animation-delay: calc(var(--i) * 110ms + 150ms); }
  .js .hero [data-load] { opacity: 0; transform: translateY(12px); animation: load-rise 500ms var(--ease-out) forwards; animation-delay: var(--d); }
  .js .legal__title [data-line] { transform: translateY(105%); animation: line-up 900ms var(--ease-expo) 120ms forwards; }
}
@keyframes line-up { to { transform: none; } }
@keyframes load-rise { to { opacity: 1; transform: none; } }

@media (max-width: 520px) {
  :root { --step-head: 1.5rem; }
}
