/* Refinement of the institutional page. Demo interiors keep their own palettes. */
main > .section,
main > section > .section {
  padding-block:clamp(28px,4vw,56px);
}
#contato.section { padding-block:clamp(30px,5vw,65px); }
main > section + section { border-top:1px solid #223047; }
.hero-open {
  min-height:clamp(540px,77svh,700px);
  border-bottom:1px solid #223047;
}
.hero-open .hero-grid { padding-block:clamp(42px,7vw,72px); }
.hero-open .intro h1 { font-size:clamp(2.85rem,6.3vw,6rem); margin:12px 0 15px; }
.hero-open .actions { flex-wrap:wrap; gap:9px; }
.hero-open .actions .pr-contact { width:auto; }
.hero-context { margin:12px 0 0; color:#cedcf2; font-size:.84rem; }
.rationale,
.process-layout {
  display:grid;
  grid-template-columns:minmax(0,.8fr) minmax(0,1.25fr);
  align-items:start;
  gap:clamp(16px,5vw,80px);
}
.rationale h2 { max-width:15ch; }
.rationale .muted { max-width:43ch; }
.rationale .services {
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px clamp(12px,3vw,32px);
  margin:0;
}
#solucoes .services article { padding:10px 0 0; }
.rationale article h3,.rationale article p { margin:0 0 5px; }
.rationale article h3 { font-size:1.05rem; }
.rationale article p { font-size:.91rem; }
.routine { margin-top:14px; }
.routine p { font-size:.9rem; }
.process-layout .steps { margin-top:13px; }
.process-layout .muted { max-width:47ch; font-size:.94rem; }
.process-layout .steps p { margin-top:4px; }
.process-track > .step-lit::after { box-shadow:0 0 5px #79aaffa3; }
.process-track::after { box-shadow:0 0 5px #4f89fa88; }
.pricing-section {
  background:linear-gradient(148deg,#0e1a30,#0a101e 80%);
  overflow:visible;
}
.pricing-floor { display:none; }
.pricing-primary,.pricing-maintenance { align-items:start; }
.pricing-maintenance { margin-top:22px; }
.pricing-intro h2 { font-size:clamp(2rem,4vw,3.75rem); max-width:9ch; }
.pricing-price { margin:8px 0; }
.pricing-note { margin-top:16px; }
.pricing-option { border-color:#3d567b; background:#12213a; scroll-margin-top:1rem; }
.pricing-option:is(:hover,:focus-within,:target) {
  border-color:#bde3ff;
  background:#182f4c;
  box-shadow:0 4px 18px #4084bb2c;
}
.pricing-option:is(:hover,:focus-within,:target) ul li::marker { color:#bde3ff; }
.pricing-option:is(:hover,:focus-within,:target) .pricing-action {
  background:#225989;
  border-color:#bde3ff;
}
.pricing-example {
  color:#bde3ff;
  text-decoration:underline;
  text-underline-offset:.2em;
  font-size:.88rem;
  margin-top:10px;
}
.pricing-example:hover { color:#f4f9ff; }
#sobre {
  display:grid;
  grid-template-columns:minmax(0,1.55fr) minmax(0,.9fr);
  grid-template-areas:'texto detalhes';
  column-gap:clamp(28px,7vw,110px);
  row-gap:18px;
  align-items:center;
  background:radial-gradient(ellipse at 78% 52%, #102847 0%, transparent 62%),#0c1422;
}
#sobre.has-portrait {
  grid-template-columns:minmax(0,.9fr) minmax(0,1.15fr);
  grid-template-areas:'retrato texto' 'retrato detalhes';
  column-gap:clamp(24px,5vw,80px);
}
.founder-copy { grid-area:texto; }
#sobre .founder-photo {
  grid-area:retrato;
  display:block;
  min-width:0;
  min-height:auto;
  overflow:visible;
  background:radial-gradient(ellipse at 52% 48%,#36629988,transparent 69%);
}
#sobre .founder-photo[hidden] { display:none; }
.founder-photo-stage {
  position:relative;
  isolation:isolate;
  display:grid;
  place-items:center;
  perspective:900px;
}
.founder-photo-stage::after {
  content:'';
  position:absolute;
  z-index:-1;
  inset:auto 10% 1%;
  height:18%;
  background:radial-gradient(ellipse at center,#030b18b3,transparent 70%);
}
#sobre .founder-photo img {
  width:auto;
  max-width:100%;
  height:auto;
  max-height:clamp(340px,43vw,570px);
  object-fit:contain;
  filter:drop-shadow(0 12px 18px #030b1870);
}
#sobre .founder-photo figcaption { margin-top:10px; font-size:.88rem; }
#sobre h2 { margin:9px 0 16px; }
#sobre h2 span { display:inline-block; }
.founder-copy > p:not(.eyebrow) { margin:10px 0 0; color:#d0dced; line-height:1.58; }
.founder-details {
  grid-area:detalhes;
  display:grid;
  align-content:center;
  margin:0;
  padding:0 0 0 clamp(18px,3vw,40px);
  border-left:1px solid #416082;
  gap:18px;
}
.founder-details dt { color:#bde3ff; font-size:.91rem; font-weight:750; }
.founder-details dd { margin:3px 0 0; color:#d0dced; font-size:.93rem; line-height:1.45; }
#sobre.has-portrait .founder-details {
  grid-template-columns:repeat(2,minmax(0,1fr));
  padding:12px 0 0;
  border:0;
  border-top:1px solid #416082;
  gap:12px;
}
@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference) {
  html:not(.modo-leve) #sobre .founder-photo img {
    transform:translateZ(5px) rotateX(var(--portrait-rx,0deg)) rotateY(var(--portrait-ry,0deg));
    transition:transform .37s cubic-bezier(.2,.65,.3,1);
  }
}
#contato { align-items:start; }
#contato .contact-note { font-size:.86rem; color:var(--muted); margin:9px 0 14px; }
.contact-faq { margin-top:15px; }
.contact-faq h3 { margin:0 0 5px; }
.contact-faq details { margin:0; }
.contact-faq summary { padding-block:10px; }
.contact-faq .more-faq { margin-top:4px; }
.contact-faq .more-faq > details { margin-left:12px; }
.contact-faq p { margin-bottom:12px; font-size:.92rem; }
#lead { margin:0; padding-block:13px; }
#lead .formgrid { gap:9px 14px; }
.cursor-orb { display:none; }
@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference) {
  .cursor-orb {
    display:grid;
    position:fixed;
    z-index:6;
    inset:0 auto auto 0;
    width:56px;
    height:56px;
    place-items:center;
    pointer-events:none;
    opacity:0;
    will-change:transform;
    transition:opacity .22s ease;
  }
  .cursor-orb.is-visible { opacity:.86; }
  .cursor-orb.is-visible.is-action { opacity:.51; }
  .cursor-orb canvas {
    width:100%;
    height:100%;
    background:radial-gradient(circle,#345eac62 0%,#2556aa42 37%,transparent 68%);
    transition:transform .25s ease;
  }
  .cursor-orb.is-action canvas { transform:scale(.70); }
}
.float.pr-contact {
  z-index:8;
  right:max(12px,env(safe-area-inset-right));
  bottom:max(12px,env(safe-area-inset-bottom));
  width:auto;
  height:auto;
  gap:1px;
  flex-direction:column;
  background:#153d68;
  box-shadow:0 5px 17px #030b1a70;
  padding:7px 12px;
}
.float.pr-contact small { font-size:.72rem; font-weight:500; color:#d5eafa; }
@media(max-width:880px) {
  .rationale,.process-layout { grid-template-columns:1fr; gap:12px; }
  .rationale .muted { max-width:58ch; }
}
@media(max-width:650px) {
  .hero-open { min-height:0; }
  .hero-open .hero-grid { padding-top:155px; }
  .hero-open .intro h1 { font-size:clamp(2.55rem,11.5vw,4rem); }
  #contato .formgrid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  #contato .formgrid label { min-width:0; }
  #contato .formgrid :is(input,select) { width:100%; min-width:0; }
  #sobre,#sobre.has-portrait { grid-template-columns:minmax(0,1fr); }
  #sobre { grid-template-areas:'texto' 'detalhes'; }
  #sobre.has-portrait { grid-template-areas:'retrato' 'texto' 'detalhes'; }
  #sobre .founder-photo img { max-height:clamp(260px,105vw,470px); }
  .founder-details { padding:12px 0 0; border:0; border-top:1px solid #416082; gap:12px; }
  #sobre .founder-details { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:420px) {
  #contato .formgrid { grid-template-columns:1fr; }
}

@media (hover:none) {
  .pricing-option:active {
    border-color:#bde3ff;
    background:#182f4c;
  }
}
