/* SYNC v1.37.0 — final shared quality convergence.
 * Route-specific systems remain authoritative; this layer governs the shared
 * typography, interaction, contrast and utility-product details between them.
 */
:root{
  --sync-converge-ease:cubic-bezier(.22,.72,.22,1);
  --sync-converge-shadow:0 1px 2px rgba(22,14,83,.03),0 12px 30px rgba(78,34,208,.065);
  --sync-converge-shadow-raised:0 2px 4px rgba(22,14,83,.035),0 18px 42px rgba(78,34,208,.085)
}

/* Shared breathing-room corrections for established section systems. */
:is(.work35,.case35,.about35,.services-v2,.service-detail,.contact-v2,.tools35,.tool-page,.academy-shell) :is(.section-head,.about35-section-head,.work35-section-head,.case35-section-head){margin-bottom:clamp(30px,4vw,56px)}
:is(.work35,.case35,.about35,.services-v2,.service-detail,.contact-v2,.tools35,.tool-page,.academy-shell) :is(p,li){text-wrap:pretty}
.about35-person{padding-block:clamp(44px,5vw,68px)!important}
.about35-person>div{padding-block:clamp(20px,3vw,34px)!important}
.about35-person>div>p{max-width:62ch}

/* Inner-page heroes share a hierarchy without becoming one repeated layout. */
body:not(.home) :is(
  .sv2-hero h1,.sd-hero h1,.service-detail-hero h1,
  .work35-hero h1,.workx-hero h1,.case35-hero h1,.casex-hero h1,
  .about35-hero h1,.av2-hero h1,.fv1-hero h1,
  .academy-hero h1,.academy-track-hero h1,.academy-lesson-hero h1,.academy-simple-hero h1,
  .contact-v2-hero h1,.tools35-hero h1,.tool-hero h1,.article-hero h1,.inner-hero h1
){
  max-width:min(16ch,100%)!important;
  font-size:var(--sync-type-display)!important;
  font-weight:var(--sync-weight-display)!important;
  line-height:.96!important;
  letter-spacing:-.055em!important;
  text-wrap:pretty;
  overflow-wrap:anywhere
}
body:not(.home) :is(.sv2-hero,.sd-hero,.service-detail-hero,.contact-v2-hero,.tool-hero,.academy-hero,.academy-track-hero,.academy-lesson-hero,.academy-simple-hero,.article-hero) h1{font-size:var(--sync-type-h1)!important}
body:not(.home) :is(
  .sv2-hero,.sd-hero,.service-detail-hero,.work35-hero,.workx-hero,.case35-hero,.casex-hero,
  .about35-hero,.av2-hero,.fv1-hero,.academy-hero,.academy-track-hero,.academy-lesson-hero,
  .academy-simple-hero,.contact-v2-hero,.tools35-hero,.tool-hero,.article-hero,.inner-hero
) :is(p,li,small){opacity:1}

/* A quiet shared reveal grammar; homepage keeps its dedicated motion system. */
body:not(.home) .reveal{
  transform:translateY(16px);
  transition:opacity .68s var(--sync-converge-ease),transform .68s var(--sync-converge-ease)
}
body:not(.home) .reveal.is-visible{transform:none}

/* Content actions are designed objects with one consistent response. */
main :is(a.button,button.button){
  min-height:44px;
  transition:transform .32s var(--sync-converge-ease),border-color .28s ease,background-color .28s ease,color .28s ease,box-shadow .32s var(--sync-converge-ease)
}
main :is(a.button,button.button):hover{transform:translateY(-2px)}
main :is(a.button,button.button):active{transform:translateY(0) scale(.985)}
main :is(a.button,button.button):focus-visible{outline:3px solid #ff7800!important;outline-offset:3px}

/* Light elevation never falls back to the legacy black fog. */
:is(.section--light,.editorial-content,.legal-content,.academy-resource-sheet) :is(.card,article),
.fv1-work-card,.academy-track-card,.academy-guide-grid>a,.academy-resource-grid>a{
  box-shadow:var(--sync-converge-shadow)
}

/* Legal, Founder and 404 pages use the same controlled scale and readable measure. */
.article-hero>p,.inner-hero-foot p,.fv1-intro,.fv1-position{max-width:62ch}
.error-page .inner-hero h1 br{display:none}
.error-page .inner-hero h1 em{white-space:normal}

/* Shared utility-product contrast and compactness. */
.tool-page .tool-hero>p:not(.eyebrow){color:#e9e8f3!important}
.tool-page .tool-hero>a{color:#d4d2e6!important}
.tool-page :is(.tool-inputs,.tool-result){min-height:0!important}
.tool-page .tool-result{align-content:start}
.tool-page :is(.image-result-card,.pdf-result-card,.bulk-result-card,.file-tray-item){
  border-color:#d4d2e6!important;
  background:#fff!important;
  color:#160e53!important
}
.tool-page :is(.image-result-card,.pdf-result-card,.bulk-result-card,.file-tray-item) :is(strong,span){color:#160e53!important}
.tool-page :is(.image-result-card,.pdf-result-card,.bulk-result-card,.file-tray-item) small,
.tool-page .result-toolbar small{color:#676096!important}
.tool-page :is(.copy-button,.download-button,.result-toolbar button,.bulk-result-card button){
  min-height:40px;
  padding:.68rem .9rem;
  border:1px solid #261c6a!important;
  border-radius:10px;
  background:#160e53!important;
  color:#fff!important;
  font:600 .78rem/1 var(--font-sans);
  cursor:pointer;
  transition:transform .25s var(--sync-converge-ease),background-color .25s ease,border-color .25s ease
}
.tool-page :is(.copy-button,.download-button,.result-toolbar button,.bulk-result-card button):hover{
  border-color:#ff7800!important;
  background:#ff7800!important;
  color:#160e53!important;
  transform:translateY(-1px)
}
.tool-page :is([data-download-all],[data-download-zip]){
  border-color:#ff7800!important;
  background:#ff7800!important;
  color:#160e53!important
}
.tool-page :is([data-download-all],[data-download-zip]):hover{border-color:#261c6a!important;background:#f4f3fa!important;color:#160e53!important}
.tool-page :is(.copy-button,.download-button,.result-toolbar button,.bulk-result-card button):focus-visible{
  outline:3px solid #ff7800!important;
  outline-offset:3px
}
.tool-page :is(.result-text,.writing-metrics div,.analysis-list li,.seo-checks p){
  border-color:#d4d2e6!important;
  background:#f8f8fc!important;
  color:#160e53!important
}
.tool-page :is(.result-meta span,.analysis-list li,.calc-explain,.formula){color:#676096!important}
.tool-page .writing-metrics b,.tool-page .calc-value{color:#4e22d0!important}
.tool-page .readiness li{color:#261c6a!important}
.tool-page .file-tray-summary{color:#160e53!important}
.tool-page :is(.file-tray-summary span,.file-status){color:#4e22d0!important}
.tool-page :is(button,[role="button"],a.button):focus-visible{outline:3px solid #ff7800!important;outline-offset:3px}
.tool-page :is(button,[role="button"],a.button):disabled{opacity:.55;cursor:not-allowed;transform:none!important}

@media(max-width:700px){
  body:not(.home) :is(
    .sv2-hero h1,.sd-hero h1,.service-detail-hero h1,
    .work35-hero h1,.workx-hero h1,.case35-hero h1,.casex-hero h1,
    .about35-hero h1,.av2-hero h1,.fv1-hero h1,
    .academy-hero h1,.academy-track-hero h1,.academy-lesson-hero h1,.academy-simple-hero h1,
    .contact-v2-hero h1,.tools35-hero h1,.tool-hero h1,.article-hero h1,.inner-hero h1
  ){
    max-width:100%!important;
    font-size:var(--sync-type-h1)!important;
    line-height:.99!important;
    letter-spacing:-.047em!important
  }
  .tool-page .tool-workspace{margin-block:36px 72px!important}
  .tool-page :is(.tool-inputs,.tool-result){padding:24px!important}
  .tool-page .tool-result{min-height:280px!important}
  .tool-page :is(.image-result-card,.pdf-result-card){grid-template-columns:64px minmax(0,1fr)!important}
  .tool-page :is(.image-result-card,.pdf-result-card) .download-button{grid-column:2;justify-self:start}
  .about35-person{padding-block:34px!important}
  .about35-person>div{padding-block:16px 24px!important}
}

@media(prefers-reduced-motion:reduce){
  body:not(.home) .reveal{opacity:1!important;transform:none!important;transition:none!important}
  main :is(a.button,button.button),.tool-page :is(.copy-button,.download-button,.result-toolbar button,.bulk-result-card button){transition:none!important;transform:none!important}
}
