/* Mattic public site. The Google Business landing page defines the visual reference. */
@font-face {
  font-family: Manrope;
  src: url("../websites/manrope-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --m-ink: #171819;
  --m-muted: #54585c;
  --m-accent: #224fc5;
  --m-line: #dce3ec;
  --m-paper: #fff;
  --m-card-radius: 14px;
  --m-button-radius: 8px;
  --m-copy: 13px;
  --m-content: 65rem;
  --m-section-space: clamp(4rem, 8vw, 8rem);
  --m-card-fill: linear-gradient(135deg, #fff 30%, #fafafa 39%, #f1f1f1 46%, #f7f7f7 53%, #fff 63%);
  --m-shadow: 0 12px 28px #16191d10;
  --m-graphite: linear-gradient(90deg,#171819,#353639 24%,#74777d 50%,#353639 76%,#171819);
  --m-silver: linear-gradient(90deg,#818184,#e0e0e2 25%,#f9f8fa 44%,#f8f8fa 74%,#8a898d);
  --m-dark-band: linear-gradient(135deg, transparent 27%, #12388538 37%, #245cdb68 46%, #10368438 55%, transparent 66%),
                 radial-gradient(ellipse at 78% 0%, #122044, transparent 58%), #08090d;
  --m-title: var(--m-graphite);
}

.mattic-site body {
  --ink: var(--m-ink);
  --muted: var(--m-muted);
  --paper: var(--m-paper);
  --brand: var(--m-accent);
  font-family: Manrope, Arial, sans-serif;
  font-size: var(--m-copy);
  color: var(--m-ink);
  background-color: var(--m-paper);
}

.mattic-skip-link {
  position: fixed;
  inset: .75rem auto auto .75rem;
  z-index: 110;
  padding: .65rem 1rem;
  border-radius: var(--m-button-radius);
  background: var(--m-ink);
  color: #fff;
  transform: translateY(calc(-100% - 1rem));
}
.mattic-skip-link:focus { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .mattic-site:not([data-mattic-motion]) [data-site-text-reveal="pending"] { opacity: 1; }
  .mattic-site:not([data-mattic-motion]) :is(.reveal,[data-reveal],.links-card) {
    animation: none;
    transition: none;
  }
}

/* Inverse surfaces also set the palette for their titles and calls to action. */
.mattic-site :is(.web-hero, .webapp-scroll-hero) {
  border-radius: 0 0 clamp(14px, 2vw, 24px) clamp(14px, 2vw, 24px);
}

.mattic-site :is(.m-dark,.web-hero,.webapp-scroll-hero,.social-posts-section,
  .process-section,.projects-cta,.project-info,.growth-section,.orbit-cta,.deliverables,.app-features,
  .final-cta,.policy-banner,.theme-dark,.feature-card,.closing) {
  --m-title: var(--m-silver);
  --m-subtitle-logo: url("../assets/logo-mattic-branca-isolada.avif");
  --m-cta-fill: linear-gradient(90deg,#fff,#e2e5eb);
  --m-cta-ink: #171819;
  --m-cta-line: #cfd4de;
  --m-cta-beam-color: #ffffffb3;
}
.mattic-site main :is(.m-dark,.process-section,.projects-cta,.growth-section,.orbit-cta,
  .deliverables,.app-features,.final-cta,.policy-banner,.feature-card) {
  background: var(--m-dark-band);
  color: #f7f8fb;
}
.mattic-site .orbit-cta::before { background: none; }
.mattic-site .orbit-cta-copy > :is(p,small), .mattic-site .orbit-cta .motion-toggle { color: #d4def0; }
.mattic-site .orbit-cta .motion-toggle { background: #171819; }

/* Use the same column width and section rhythm as the local-profile page. */
.mattic-site :is(.service-main > .problem-layout,.service-main > .faq-layout,.offer-section,
  .portfolio-section,.method-section,.web-faq,.clients-heading,.projects-section) {
  max-width: var(--m-content);
  margin-inline: auto;
}
.mattic-site :is(.problem-layout,.faq-layout,.web-faq,.portfolio-section) { padding-block: var(--m-section-space); }
.mattic-site .service-main > .deliverables {
  width: 100vw;
  margin-inline: calc(50% - 50vw);
  padding: var(--m-section-space) max(1rem, calc((100vw - var(--m-content)) / 2));
  border: 0;
  border-radius: 0;
}
.mattic-site .deliverable-grid {
  gap: 1rem;
  border: 0;
  border-radius: 0;
  background: transparent;
}
@media (min-width: 800px) {
  .mattic-site .deliverables .section-heading { max-width: none; display: grid; grid-template-columns: 1.25fr .85fr; gap: .65rem 7%; align-items: end; }
  .mattic-site .deliverables .section-heading > .eyebrow { grid-column: 1 / -1; }
  .mattic-site .deliverables .section-heading > p:last-child { margin: 0 0 .2rem; }
}

/* Cards retain the local media, hover behavior and responsive grid of each page. */
.mattic-site main :is(.m-card,.advantage-card,.deliverable-card,.benefit-card,.testimonial-card,
  .proof-grid article,.offer-grid article,.opportunity-card,.links-card,.contact-box,.component,.service-card) {
  --m-title: var(--m-graphite);
  color: var(--m-ink);
  background: var(--m-card-fill);
  border: 1px solid var(--m-line);
  border-radius: var(--m-card-radius);
  box-shadow: var(--m-shadow);
}
.mattic-site main .deliverable-card :is(p,span) { color: var(--m-muted); }
.mattic-site main .deliverable-card > span { color: var(--m-accent); }
.mattic-site .deliverable-card h3 { font-size: clamp(1.1rem,1.6vw,1.35rem); margin: 1.5rem 0 .5rem; }
.mattic-site :is(.app-feature,.project-card,.case-placeholder,.project-image) { border-radius: var(--m-card-radius); }

/* Editorial headings only. Mockup screens and the animated Google word keep their own typesetting. */
.mattic-site body main :is(.hero, .web-hero, .webapp-scroll-hero, .social-hero, .service-hero) h1 {
  font-size: clamp(1.45rem, 7.15vw, 4rem);
}
.mattic-site main :is(.m-heading,.hero h1,.section-heading h2,.section-intro h2,.service-hero-copy h1,
  .webapp-scroll-copy h1,.hero-intro h1,.social-hero h1,.social-orbit-copy h2,
  .growth-copy h2,.orbit-cta h2,.final-cta h2,.projects-cta h2,.faq-intro h2,
  .policy-banner h1,.document h2,.document h3,.links-card h1,.error-content h1,
  .feature-copy h3,.advantage-card h3,.deliverable-card h3,.benefit-copy h3,.offer-grid h3,
  .social-posts-intro h2,.clients-intro h2,.projects-heading h2,.section-heading h1,
  .proof-grid h3,.service-card-copy h3,.case-meta h3,.project-caption h3,
  .process-step h3,.process-steps h3,.theme-intro h1,.heading h2) {
  font-family: Manrope, Arial, sans-serif;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.048em;
  text-wrap: balance;
  background-image: var(--m-title);
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.mattic-site main :is(.hero,.section-heading,.section-intro,.hero-intro,.social-hero,.webapp-scroll-copy,
  .social-posts-intro,.clients-intro,.projects-heading,.growth-copy,.orbit-cta,.faq-intro,.service-hero-copy) :is(h1,h2) > :is(em,span) {
  background: none;
  -webkit-text-fill-color: inherit;
  font-style: normal;
}

/* Leave room around glyphs and accents when headings use clipped gradients. */
.mattic-site.mattic-site main :is(h1, h2, h3) {
  padding: .08em .08em;
  line-height: 1.2;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.mattic-site main :is(.section-heading,.section-intro) h2 { font-size: clamp(2.1rem,3.7vw,3rem); }

/* Shared FAQ rows across the home and service pages. */
.mattic-site main :is(.faq-panel, .faq-list, .faq-questions, .questions) details {
  margin: 0 0 .25rem;
  padding: 0;
  border: 0;
  border-radius: .65rem;
  background: transparent;
  transition: background-color .18s ease;
}
.mattic-site main :is(.faq-panel, .faq-list, .faq-questions, .questions) details[open] {
  background: #f5f5f6;
}
.mattic-site main :is(.faq-panel, .faq-list, .faq-questions, .questions) summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.25rem;
  padding: .85rem 1rem;
  border-radius: inherit;
  color: var(--m-ink);
  font-weight: 600;
}
@media (hover: hover) {
  .mattic-site main :is(.faq-panel, .faq-list, .faq-questions, .questions) details:not([open]):hover {
    background-color: #f5f5f6;
  }
}
.mattic-site main .faq-questions summary > span { display: none; }
.mattic-site main :is(.faq-panel, .faq-list, .faq-questions, .questions) summary::after {
  content: "";
  position: static;
  flex: 0 0 1rem;
  width: 1rem;
  height: 1rem;
  border: 0;
  background: linear-gradient(currentColor,currentColor) center / 8px 1px no-repeat,
              linear-gradient(currentColor,currentColor) center / 1px 8px no-repeat;
  color: #55585d;
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1;
  text-align: center;
  transform: none;
  transition: none;
}
.mattic-site main :is(.faq-panel, .faq-list, .faq-questions, .questions) details[open] summary::after {
  background-size: 10px 1px, 1px 0;
}
.mattic-site[data-mattic-motion] main :is(.faq-panel, .faq-list, .faq-questions, .questions) summary::after {
  transition: background-size .36s cubic-bezier(.35, 0, .25, 1);
}
@supports (interpolate-size: allow-keywords) and selector(details::details-content) {
  .mattic-site[data-mattic-motion] main :is(.faq-panel, .faq-list, .faq-questions, .questions) details::details-content {
    interpolate-size: allow-keywords;
    block-size: 0;
    overflow: clip;
    opacity: 0;
    transition: block-size .36s cubic-bezier(.35, 0, .25, 1), opacity .28s ease,
                content-visibility .36s allow-discrete;
  }
  .mattic-site[data-mattic-motion] main :is(.faq-panel, .faq-list, .faq-questions, .questions) details[open]::details-content {
    block-size: auto;
    opacity: 1;
  }
}
.mattic-site main :is(.faq-panel, .faq-list, .faq-questions, .questions) details > p {
  margin: 0;
  padding: 0 2.5rem 1rem 1rem;
  color: var(--m-muted);
}

/* Body copy uses its own scale so the typography inside demo screens stays legible at mockup size. */
.mattic-site main :is(.m-copy,.hero-copy,.hero-description,.service-lead,.social-hero-lead,.banner-copy,
  .section-heading > p:last-child,.section-intro > p:not(.web-eyebrow),.benefit-copy p,.offer-grid p,
  .proof-grid p,.advantage-card p,.deliverable-card p,.feature-copy p,.process-step p,.process-steps p,
  .social-orbit-copy p,.faq-list details p,.faq-questions details p,.faq-panel p,.document :is(p,li),
  .projects-cta-content > p:not(.eyebrow),.final-cta-content > p:not(.eyebrow),
  .orbit-cta-copy > p:not(.web-eyebrow),.growth-copy > p:not(.web-eyebrow),.examples-note,.error-copy,
  .intro-copy > p:not(.eyebrow),.band-head p,.cards article p,.steps p,.story-copy > p:not(.story-channel),
  .social-posts-intro > p:not(.eyebrow),.clients-intro > p:not(.eyebrow),.projects-heading > p:not(.eyebrow),
  .faq-intro > p:not(.eyebrow),.section-heading > p:not(.eyebrow),.service-card-copy p,.problem-statement blockquote,
  .profile-features-head p,.profile-feature p,.questions details p,.closing p,.profile p) {
  font-size: var(--m-copy);
  line-height: 1.65;
}

/* Primary calls to action */
.mattic-site body :is(.m-action,.contact,.web-button,.whatsapp-cta,.social-primary-cta,.primary-cta,
  .faq-contact,.error-cta,.link-button.whatsapp,.primary-button,.light-button) {
  --m-cta-shine: var(--m-cta-beam-color,#a8b0bb85);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 48px;
  padding: .8rem 1.15rem;
  gap: .7rem;
  border: 1px solid var(--m-cta-line,#080809);
  border-radius: var(--m-button-radius);
  box-shadow: none;
  background: var(--m-cta-fill,linear-gradient(90deg,#242528,#000));
  color: var(--m-cta-ink,#fff);
  font: 700 .87rem/1.25 Manrope, Arial, sans-serif;
  text-shadow: 0 0 5px #ffffff52;
  text-decoration: none;
  transition: border-color .25s ease, transform .2s ease;
}
.mattic-site body :is(.m-action,.contact,.web-button,.whatsapp-cta,.social-primary-cta,.primary-cta,
  .faq-contact,.error-cta,.link-button.whatsapp,.primary-button,.light-button):is(:hover,:focus-visible) {
  --m-cta-shine: #8bceffba;
  --m-cta-hover-end: #2044a2;
  background: linear-gradient(90deg,#3474df,var(--m-cta-hover-end));
  border-color: var(--m-cta-hover-end);
  color: #fff;
}
.mattic-site body :is(.m-action,.contact,.web-button,.whatsapp-cta,.social-primary-cta,.primary-cta,
  .faq-contact,.error-cta,.link-button.whatsapp,.primary-button,.light-button)::before {
  position: absolute;
  inset: -50% auto -50% 0;
  z-index: -1;
  width: 45%;
  background: linear-gradient(90deg,transparent,var(--m-cta-shine),transparent);
  transform: translateX(65%) skewX(-30deg);
  animation: var(--m-cta-beam-animation, none);
  pointer-events: none;
  content: "";
}
.mattic-site body :is(.m-action,.contact,.web-button,.whatsapp-cta,.social-primary-cta,.primary-cta,
  .faq-contact,.error-cta,.link-button.whatsapp,.primary-button,.light-button,.header-cta,.mattic-header-cta)::after {
  position: absolute;
  inset: 0;
  padding: 1.5px;
  border-radius: inherit;
  background: conic-gradient(from var(--m-cta-edge-angle),transparent,
    #dce1ea30 5%,#dce1eabd 10%,#edf0f5 14%,#dce1eabd 18%,#dce1ea30 23%,transparent 28%);
  mask: linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: var(--m-cta-edge-animation, none);
  pointer-events: none;
  content: "";
}
@property --m-cta-edge-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
@keyframes mattic-cta-edge { to { --m-cta-edge-angle: 360deg; } }
@keyframes mattic-cta-beam {
  0%,14% { transform: translateX(-155%) skewX(-30deg); }
  72%,100% { transform: translateX(300%) skewX(-30deg); }
}
@media (prefers-reduced-motion: no-preference) {
  .mattic-site {
    --m-cta-beam-animation: mattic-cta-beam 2.4s ease-in-out infinite;
    --m-cta-edge-animation: mattic-cta-edge 3.6s linear infinite;
  }
}
.mattic-site[data-mattic-motion] {
  --m-cta-beam-animation: mattic-cta-beam 2.4s ease-in-out infinite;
  --m-cta-edge-animation: mattic-cta-edge 3.6s linear infinite;
}
.mattic-site body :is(.header-cta,.mattic-header-cta):any-link {
  position: relative;
  min-height: 38px;
  padding: .43rem .68rem;
  gap: .45rem;
  border: 0;
  border-radius: 7px;
  background: linear-gradient(90deg,#2466d2,#183d9a);
  color: #fff;
  box-shadow: none;
  font: 700 .75rem/1.2 Manrope, Arial, sans-serif;
  text-shadow: 0 0 5px #ffffff52;
  text-decoration: none;
  transition: filter .2s ease, scale .2s cubic-bezier(.22,.75,.3,1);
}
.mattic-site body :is(.header-cta,.mattic-header-cta):any-link:is(:hover,:focus-visible) { filter: brightness(1.12); }
@media (hover: hover) {
  .mattic-site body :is(.header-cta,.mattic-header-cta):any-link:hover { scale: 1.04; }
}
.mattic-site body :is(.header-cta,.mattic-header-cta) > .mattic-ui-icon { width: .9rem; height: .9rem; flex: 0 0 .9rem; }
.mattic-site body :is(.primary-cta,.whatsapp-cta,.error-cta) > :is(i,span[aria-hidden="true"]) {
  width: auto; height: auto; background: none; color: inherit;
}
.mattic-site :is(.hero-content,.service-hero-copy,.webapp-scroll-copy,.social-hero-copy) > :is(.eyebrow,.social-hero-kicker),
.mattic-site .web-hero .service-label {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .28rem .65rem;
  border: 1px solid var(--m-line);
  border-radius: 2rem;
  background: white;
  color: var(--m-muted);
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}
.mattic-site main :is(.eyebrow, .web-eyebrow, .social-hero-kicker),
.mattic-site main .web-hero .service-label > span {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.mattic-site main :is(.eyebrow, .web-eyebrow, .social-hero-kicker)::before,
.mattic-site main .web-hero .service-label > span::before {
  content: "";
  display: block;
  width: .82rem;
  height: .82rem;
  flex: 0 0 .82rem;
  margin: 0;
  border-radius: 0;
  background: center / contain no-repeat var(--m-subtitle-logo, url("../assets/logo-mattic-preta-isolada.avif"));
  box-shadow: none;
}
.mattic-site main :is(.m-dark,.web-hero,.webapp-scroll-hero,.social-posts-section,
  .process-section,.projects-cta,.growth-section,.orbit-cta,.deliverables,.app-features,.final-cta,
  .theme-dark,.closing) :is(.eyebrow,.web-eyebrow,.social-hero-kicker,a.service-label) {
  background: transparent;
  border: 1px solid #ffffff40;
  border-radius: 99px;
  color: #f2f4f8;
  padding: .28rem .65rem;
}
.mattic-site .hero-content > .eyebrow > span:empty { display:none; }
.mattic-site .theme-dark :is(.component,.service-card) {
  --m-title: var(--m-silver);
  color: var(--ink);
  background: var(--surface);
  border-color: var(--line);
}
.mattic-site body :is(.secondary-cta,.hero-secondary,.web-text-link,.social-hero-more) {
  padding: .4rem 0;
  min-height: 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  background: none;
  color: inherit;
  font-size: .83rem;
  font-weight: 700;
}
@media (forced-colors: active) {
  .mattic-site main :is(h1,h2,h3,em,span) { -webkit-text-fill-color: currentColor; }
}

body:not(.animations-paused) [data-site-text-reveal="pending"] { opacity:0; }
[data-site-text-reveal] mattic-word { display:inline-block; }
[data-site-text-reveal] mattic-word[style*="background-image"] {
  padding:.08em;
  margin:-.08em;
  background-clip:text;
  background-repeat:no-repeat;
  -webkit-text-fill-color:transparent;
}
body:not(.animations-paused) [data-site-text-reveal="running"] :is(mattic-word,[data-site-text-reveal-part]) {
  animation:site-text-word-in var(--text-unit-duration) cubic-bezier(.22,1,.36,1) var(--text-unit-delay) both;
}
@keyframes site-text-word-in {
  from { opacity:0; translate:0 24px; filter:blur(10px); }
  to { opacity:1; translate:0 0; filter:blur(0); }
}
