/* Supporting chapters share the editorial scale without overriding the scenes. */
:is(#inicio,#servicos,#projetos,#resultados,#processo,#investimento,#contato) {
  --chapter-title: clamp(28px, 2.65vw, 38px);
}
:is(#servicos,#projetos,#resultados,#processo,#investimento,#contato) h2 {
  font-size: var(--chapter-title);
  line-height: 1.14;
  letter-spacing: -.025em;
  font-weight: 750;
  max-width: 26ch;
  text-wrap: balance;
}
:is(#servicos,#projetos,#resultados,#processo,#investimento,#contato) h3 {
  font-family: var(--font-sans);
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: -.015em;
  font-weight: 700;
}
:is(#servicos,#projetos,#resultados,#processo,#investimento) .section-heading {
  margin-bottom: 32px;
}
:is(#servicos,#projetos,#resultados,#processo,#investimento) .section-heading > p {
  font-size: 16px;
  line-height: 1.55;
  max-width: 58ch;
  margin-top: 16px;
}
:is(#inicio,#servicos,#projetos,#resultados,#processo,#investimento,#contato) .eyebrow {
  font-size: 11px;
  letter-spacing: .09em;
  line-height: 1.4;
}

/* Diorama and its copy retain their relationship at the intermediate widths. */
#inicio .hero-copy h1 { letter-spacing: -.03em; line-height: 1.055; text-wrap: balance; }
#inicio .hero-lede { font-size: 16px; line-height: 1.55; }
#inicio .hero-benefits { font-size: 13px; }
@media (min-width: 1101px) {
  #inicio .hero-copy h1 { font-size: clamp(48px,3.7vw,54px); }
}
@media (min-width: 961px) and (max-width: 1100px) {
  #inicio .hero-stage__copy-wrapper { width: 48%; }
  #inicio .hero-stage__art-wrapper { width: 66%; }
  #inicio .hero-copy h1 { font-size: 44px; }
}
@media (min-width: 641px) and (max-width: 960px) {
  #inicio .hero-stage__art-wrapper { max-width: 620px; width: 100%; margin-inline: auto; }
  #inicio .hero-art { aspect-ratio: 1.35; }
}

/* Services: one illustrated scene and one primary reading column. */
#servicos .capability-system { grid-template-columns: minmax(0,1.12fr) minmax(0,1fr); align-items: center; gap: 36px; }
#servicos .system-flow { padding: 0; margin: 0; background: transparent; border: 0; box-shadow: none; overflow: visible; }
#servicos .flow-canvas { display: block; height: 450px; padding: 0; background: transparent; border-radius: 0; overflow: visible; }
#servicos .services-scene { position: absolute; inset: 80px -12px 64px; width: calc(100% + 24px); height: 306px; object-fit: contain; }
#servicos .flow-node { position: absolute; inset: auto; width: 46%; max-width: none; height: auto; padding: 8px 0; gap: 6px; border: 0; border-radius: 0; background: transparent; box-shadow: none; transform: none; transition: color 180ms ease; }
#servicos .flow-node.flow-node::after { display: none; }
#servicos .flow-node::before { content: none; }
#servicos .flow-node--input { top: 0; left: 0; }
#servicos .flow-node--capture { top: 0; right: 0; }
#servicos .flow-node--route { bottom: 0; left: 0; }
#servicos .flow-node--done { bottom: 0; right: 0; }
#servicos .flow-node:hover { border: 0; box-shadow: none; transform: none; }
#servicos .flow-node__badge { font: 700 11px/1.4 var(--font-sans); letter-spacing: .025em; color: #655f57; transition: color 180ms ease; }
#servicos .flow-node__title { font: 700 14px/1.3 var(--font-sans); }
#servicos .flow-node__meta { font: 400 12px/1.4 var(--font-sans); color: #655f57; }
#servicos .flow-node__body { gap: 8px; align-items: start; }
#servicos .flow-node__icon-box { flex: 0 0 22px; width: 22px; }
#servicos .flow-node__text { min-width: 0; }
#servicos .flow-status { position: relative; inset: auto; width: auto; min-height: 28px; padding: 14px 0 0; margin-top: 14px; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; backdrop-filter: none; box-shadow: none; font-size: 11px; line-height: 1.4; flex-wrap: wrap; gap: 4px 10px; justify-content: space-between; }
#servicos .system-topline { font-size: 11px; margin-bottom: 8px; }
html.motion-ready #servicos .capability-system[data-reveal]:not(.is-visible) { transform: translateY(12px); }
#servicos .capability-system[data-reveal] { transition-duration: 520ms; }
#servicos .capability-list { gap: 0; }
#servicos .capability { display: grid; grid-template-columns: 18px minmax(0,1fr); padding: 22px 0; gap: 6px 12px; align-items: start; transform: none; transition: border-color 180ms ease; }
#servicos .capability p { font: 400 15px/1.5 var(--font-sans); margin-top: 6px; }
#servicos .capability > b { grid-column: 2; font-size: 11px; line-height: 1.4; max-width: none; letter-spacing: .045em; color: #655f57; }
#servicos .capability:focus-visible { outline: 2px solid #B62839; outline-offset: 5px; }
#servicos [data-flow-active="presence"] [data-flow-node="presence"] .flow-node__badge,
#servicos [data-flow-active="experience"] [data-flow-node="experience"] .flow-node__badge,
#servicos [data-flow-active="service"] [data-flow-node="service"] .flow-node__badge,
#servicos [data-flow-active="operation"] [data-flow-node="operation"] .flow-node__badge { color: #B62839; }

/* Examples and their explanation sit on one common baseline. */
#projetos .projects-grid { gap: 32px; grid-template-columns: minmax(0,1.25fr) minmax(0,.8fr); align-items: stretch; }
#projetos .demo-stack { padding-top: 0; }
#projetos .demo-label { font-size: 12px; letter-spacing: .065em; }
#projetos :is(.booking-ui,.demo-confirm,.order-ui,.automation-ui) { border-radius: 10px; min-height: 88px; }
#projetos :is(.booking-ui,.demo-confirm,.order-ui) small { font-size: 12px; line-height: 1.4; }
#projetos :is(.booking-ui,.demo-confirm,.order-ui) b { font-size: 15px; line-height: 1.35; }
#projetos .feedback-head { min-height: 44px; align-items: center; }
#projetos .feedback-head > span { font-size: 11px; }
#projetos .feedback-slide strong { font-size: clamp(21px,1.8vw,25px); line-height: 1.3; letter-spacing: -.02em; }
#projetos .feedback-slide p { font-size: 15px; line-height: 1.55; }
#projetos .feedback-slide small { font-size: 12px; }
#projetos .feedback-disclosure { font-size: 12px; line-height: 1.5; }

/* The quote stays dominant; footer and navigation form one quiet base. */
#resultados .testimonials-wrap { max-width: 1120px; }
#resultados .testimonial-card { padding: 32px 0; }
#resultados .testimonial-quote { font-size: clamp(20px,1.9vw,27px); line-height: 1.4; letter-spacing: -.015em; max-width: 48ch; margin-block: 28px; }
#resultados :is(.testimonial-business,.testimonial-verified,.service-badge) { font-size: 12px; line-height: 1.45; }
#resultados .testimonial-author { font: 650 15px/1.4 var(--font-sans); }
#resultados .testimonial-footer { gap: 20px; align-items: end; }
#resultados .testimonials-controls { margin-top: 20px; }

/* The process artifact belongs to its list rather than a second empty stage. */
#processo .process-grid { align-items: center; gap: 40px; grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
#processo .process-steps li button { padding: 18px 0; }
#processo .process-steps p { font-size: 15px; line-height: 1.5; margin-top: 5px; }
#processo .process-steps small { font-size: 11px; }
#processo .machine-stage { min-height: 170px; height: auto; aspect-ratio: auto; padding: 24px 12px; gap: 18px; }
#processo .machine-stage svg { width: min(100%,320px); height: 70px; flex: 0 1 320px; }
#processo .artifact { padding: 18px; min-width: min(240px,58%); border-radius: 8px; }
#processo .artifact b { font-size: 15px; line-height: 1.4; }
#processo .process-machine figcaption { font-size: 13px; line-height: 1.5; margin-top: 16px; }

/* Scope comparison and form controls use the same restrained functional scale. */
#investimento .price-card { padding: 28px 24px; display: flex; flex-direction: column; }
#investimento .price-card h3 { margin-block: 14px 10px; }
#investimento .price-card :is(p,li) { font-size: 15px; line-height: 1.55; }
#investimento .price-card > small { font-size: 11px; }
#investimento .price-card ul { margin-bottom: 28px; }
#investimento .price-card > a { margin-top: auto; min-height: 44px; display: inline-flex; align-items: center; }
#investimento .inline-faq { margin-top: 36px; }
#investimento .inline-faq summary { font-size: 15px; line-height: 1.5; padding-block: 18px; }
#investimento .inline-faq details p { font-size: 15px; line-height: 1.6; }
#contato .contact-copy h2 { max-width: 18ch; }
#contato .contact-copy > p { font-size: 16px; line-height: 1.6; max-width: 45ch; margin-top: 18px; }
#contato .contact-form { border-radius: 14px; padding: 24px; }
#contato .contact-grid { gap: 48px; align-items: start; }
#contato label, #contato .fields label > span { font-size: 13px; line-height: 1.4; }
#contato :is(input,select,textarea) { font: 400 16px/1.5 var(--font-sans); min-height: 48px; border-radius: 7px; padding: 11px 13px; }
#contato .contact-form input::placeholder,#contato .contact-form textarea::placeholder { color: #b4bcc7; opacity: 1; }
#contato .contact-form .form-actions small { font-size: 12px; line-height: 1.5; color: #aab4c2; }
#contato .contact-note { font-size: 13px; line-height: 1.5; border-radius: 12px; }
:is(#inicio,#projetos,#resultados,#investimento,#contato) :is(a,button) { transition: color 160ms ease,background-color 160ms ease,border-color 160ms ease; }

@media (min-width: 1001px) {
  :is(#servicos,#projetos,#processo,#investimento) .section-heading {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr);
    gap: 40px;
    align-items: end;
  }
  :is(#servicos,#projetos,#processo,#investimento) .section-heading > p {
    margin: 0;
    max-width: 52ch;
  }
}

@media (max-width: 1000px) {
  #servicos .capability-system { grid-template-columns: 1fr; gap: 24px; }
  #servicos .system-flow { max-width: 760px; width: 100%; margin-inline: auto; }
  #servicos .flow-canvas { height: 430px; }
  #servicos .services-scene { inset: 82px 0 82px; width: 100%; height: 266px; }
  #projetos .projects-grid { grid-template-columns: 1fr; gap: 24px; }
  #processo .process-grid { grid-template-columns: 1fr; gap: 24px; }
  #processo .machine-stage { min-height: 150px; }
}
@media (max-width: 700px) {
  :is(#servicos,#projetos,#resultados,#processo,#investimento) .section-heading { margin-bottom: 24px; }
  :is(#servicos,#projetos,#resultados,#processo,#investimento,#contato) h2 { font-size: clamp(28px,7.4vw,32px); }
  :is(#servicos,#projetos,#resultados,#processo,#investimento,#contato) h3 { font-size: 18px; }
  #inicio .hero-copy h1 { font-size: clamp(32px,9.2vw,38px); }
  #servicos .flow-canvas { height: auto; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px 12px; }
  #servicos .services-scene { position: static; grid-column: 1 / -1; width: 100%; height: 240px; }
  #servicos .flow-node { position: relative; inset: auto; width: 100%; padding: 12px 0 0; border-top: 1px solid var(--line-strong); }
  #servicos .flow-node::before { display: none; }
  #servicos .flow-node { max-width: none; }
  #servicos .capability > b { grid-column: 2; max-width: none; margin-top: 4px; }
  #servicos .capability { grid-template-columns: 22px minmax(0,1fr); }
  #projetos .demo-screen { gap: 14px; }
  #projetos .feedback-slide strong { font-size: 22px; }
  #resultados .testimonial-card { padding-block: 24px; }
  #resultados .testimonial-footer { flex-wrap: wrap; align-items: start; }
  #investimento .price-card { padding: 24px 20px; }
  #contato .contact-grid { gap: 28px; }
}
@media (max-width: 430px) {
  #servicos .flow-canvas { padding: 0; }
  #servicos .flow-node { padding: 12px 0 0; }
  #servicos .flow-node::after { display: none; }
  #servicos .flow-status { align-self: start; text-align: left; justify-content: start; }
  #processo .machine-stage { flex-direction: column; gap: 20px; }
  #processo .machine-stage svg { flex: none; }
  #processo .artifact { width: 100%; min-width: 0; text-align: center; }
}
