:root {
  --brand: #224fc5;
  --brand-bright: #0a9af5;
  --brand-deep: #173ca0;
  --brand-soft: #eaf1ff;
  --ink: #0d1726;
  --muted: #637086;
  --paper: #ffffff;
  --surface: #ffffff;
  --line: #dfe4e9;
  --dark: #07101e;
  --success: #187f5d;
  --shadow: 0 24px 64px rgba(22, 47, 83, 0.12);
  --shell: 72rem;
  color-scheme: light;
  font-family: "Manrope", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { max-width: 100%; overflow-x: hidden; scroll-behavior: smooth; }
body { max-width: 100%; margin: 0; overflow-x: hidden; background: var(--paper); color: var(--ink); font-family: "Manrope", Arial, sans-serif; }
body::before { content: none; }
a { color: inherit; }
img { max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid rgba(34,79,197,.4); outline-offset: 3px; }

.service-page { --mattic-shell-width: var(--shell); overflow: clip; }
.service-main { width: min(calc(100% - 2rem), var(--shell)); min-width: 0; margin: 0 auto; }
.service-section { position: relative; padding: clamp(4.5rem, 9vw, 8rem) 0; }
.service-section + .service-section { border-top: 1px solid var(--line); }
.eyebrow { margin: 0 0 1rem; display: flex; align-items: center; gap: .65rem; color: var(--brand); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.eyebrow::before { width: 1.8rem; height: 2px; background: var(--brand); content: ""; }
.section-heading { max-width: 46rem; }
.section-heading h2 { margin: 0; font-size: clamp(2.15rem, 5.2vw, 4rem); font-weight: 800; letter-spacing: -.055em; line-height: 1.03; }
.section-heading h2 em { color: var(--brand); font-style: normal; }
.section-heading > p:last-child { max-width: 39rem; margin: 1.25rem 0 0; color: var(--muted); font-size: clamp(1rem, 1.7vw, 1.12rem); line-height: 1.7; }

.service-hero { min-height: min(54rem, calc(100vh - 5.5rem)); padding: clamp(4.5rem, 9vw, 8rem) 0 clamp(3.5rem, 7vw, 6rem); display: grid; grid-template-columns: minmax(0, 1fr) minmax(23rem, .82fr); align-items: center; gap: clamp(2.5rem, 7vw, 6rem); }
.service-hero-copy { position: relative; z-index: 2; min-width: 0; }
.service-breadcrumb { margin-bottom: 2rem; display: flex; align-items: center; gap: .55rem; color: var(--muted); font-size: .72rem; font-weight: 700; }
.service-breadcrumb a { text-decoration: none; }
.service-breadcrumb a:hover { color: var(--brand); }
.service-hero h1 { max-width: 49rem; margin: 0; font-size: clamp(3.2rem, 6.8vw, 6.7rem); font-weight: 800; letter-spacing: -.072em; line-height: .92; }
.service-hero h1 em { display: block; color: var(--brand); font-style: normal; }
.service-lead { max-width: 42rem; margin: 1.65rem 0 0; color: var(--muted); font-size: clamp(1.05rem, 1.8vw, 1.22rem); line-height: 1.65; }
.service-actions { margin-top: 2rem; display: flex; align-items: center; flex-wrap: wrap; gap: .8rem; }
.whatsapp-cta, .secondary-cta { min-height: 3.25rem; padding: .55rem .6rem .55rem 1.25rem; display: inline-flex; align-items: center; gap: .85rem; border-radius: 999px; font-size: .78rem; font-weight: 800; text-decoration: none; transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease; }
.whatsapp-cta { background: linear-gradient(125deg, var(--brand), var(--brand-bright)); box-shadow: 0 12px 28px rgba(34,79,197,.24); color: #fff; }
.whatsapp-cta span:last-child { width: 2.15rem; height: 2.15rem; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.18); font-size: 1rem; }
.secondary-cta { padding-right: 1.25rem; border: 1px solid var(--line); background: rgba(255,255,255,.75); color: var(--ink); }
.whatsapp-cta:hover, .secondary-cta:hover { transform: translateY(-2px); }
.whatsapp-cta:hover { box-shadow: 0 16px 32px rgba(34,79,197,.31); }
.service-microcopy { margin: .75rem 0 0; color: var(--muted); font-size: .72rem; font-weight: 600; }

.hero-demo { position: relative; min-height: 31rem; display: grid; place-items: center; }
.hero-demo::before { position: absolute; inset: 4% 2% 0 6%; border: 1px solid rgba(34,79,197,.16); border-radius: 50%; background: repeating-radial-gradient(circle at center, transparent 0 2.5rem, rgba(34,79,197,.055) 2.55rem 2.6rem); content: ""; transform: rotate(-8deg); }
.demo-window { position: relative; width: min(100%, 30rem); overflow: hidden; border: 1px solid rgba(34,79,197,.17); border-radius: 1rem; background: rgba(255,255,255,.94); box-shadow: var(--shadow); transform: rotate(2deg); }
.demo-toolbar { height: 2.6rem; padding: 0 1rem; display: flex; align-items: center; gap: .35rem; border-bottom: 1px solid var(--line); }
.demo-toolbar i { width: .48rem; height: .48rem; border-radius: 50%; background: #cad3df; }
.demo-toolbar span { height: .72rem; margin-left: .55rem; flex: 1; border-radius: 99px; background: #eef2f7; }
.demo-canvas { min-height: 22rem; padding: 1.8rem; display: grid; align-content: center; gap: 1rem; background: linear-gradient(145deg,#fff,#f3f7ff); }
.demo-label { width: max-content; padding: .4rem .65rem; border-radius: 99px; background: var(--brand-soft); color: var(--brand); font-size: .62rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.demo-title { width: 80%; display: grid; gap: .55rem; }
.demo-title i { height: 1.05rem; border-radius: .3rem; background: var(--ink); }
.demo-title i:nth-child(2) { width: 72%; }
.demo-copy { width: 68%; display: grid; gap: .38rem; }
.demo-copy i { height: .38rem; border-radius: 99px; background: #c7d0dd; }
.demo-button { width: 7.8rem; height: 2.35rem; border-radius: 99px; background: linear-gradient(125deg,var(--brand),var(--brand-bright)); box-shadow: 0 8px 18px rgba(34,79,197,.2); }
.demo-float { position: absolute; z-index: 2; padding: .75rem .9rem; display: flex; align-items: center; gap: .65rem; border: 1px solid rgba(255,255,255,.85); border-radius: .8rem; background: rgba(255,255,255,.9); box-shadow: 0 12px 30px rgba(22,47,83,.13); backdrop-filter: blur(18px); color: var(--ink); font-size: .68rem; font-weight: 800; }
.demo-float::before { width: .55rem; height: .55rem; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 .28rem rgba(24,127,93,.12); content: ""; }
.demo-float-top { top: 4%; right: -2%; }
.demo-float-bottom { bottom: 5%; left: 0; }

.proof-rail { position: relative; min-height: 5.3rem; padding: 1rem 1.2rem; display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; border: 1px solid var(--line); border-radius: .9rem; background: rgba(255,255,255,.78); }
.proof-rail::before { position: absolute; top: 50%; right: 8%; left: 8%; height: 2px; z-index: 0; background: linear-gradient(90deg,var(--brand),var(--brand-bright)); content: ""; transform: translateY(-50%); }
.proof-item { position: relative; z-index: 1; display: grid; justify-items: center; gap: .32rem; text-align: center; }
.proof-item::before { width: .75rem; height: .75rem; border: 3px solid var(--surface); border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 1px var(--brand); content: ""; }
.proof-item strong { padding: .2rem .55rem; background: var(--surface); color: var(--ink); font-size: .78rem; }

.problem-layout { display: grid; grid-template-columns: .78fr 1.22fr; gap: clamp(3rem, 8vw, 8rem); align-items: start; }
.problem-statement { position: sticky; top: 7rem; }
.problem-statement blockquote { margin: 2rem 0 0; padding-left: 1.4rem; border-left: 3px solid var(--brand); color: var(--ink); font-size: clamp(1.25rem, 2.4vw, 1.8rem); font-weight: 700; line-height: 1.35; }
.advantage-list { display: grid; gap: .8rem; }
.advantage-card { padding: 1.5rem; display: grid; grid-template-columns: 3.25rem 1fr; gap: 1rem; border: 1px solid var(--line); border-radius: .75rem; background: var(--surface); transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease; }
.advantage-card:hover { border-color: rgba(34,79,197,.4); box-shadow: 0 14px 34px rgba(22,47,83,.08); transform: translateX(4px); }
.advantage-icon { width: 3.25rem; height: 3.25rem; display: grid; place-items: center; border-radius: .7rem; background: var(--brand-soft); color: var(--brand); font-size: 1rem; font-weight: 800; }
.advantage-card h3 { margin: 0; font-size: 1.08rem; }
.advantage-card p { margin: .45rem 0 0; color: var(--muted); font-size: .9rem; line-height: 1.6; }

.deliverables { padding-right: clamp(1rem, 4vw, 2.5rem); padding-left: clamp(1rem, 4vw, 2.5rem); border: 1px solid #1c2b40; border-radius: 1rem; background: var(--dark); color: #f7fbff; }
.deliverables .eyebrow { color: #77b8ff; }
.deliverables .eyebrow::before { background: #77b8ff; }
.deliverables .section-heading > p:last-child { color: #9aacc0; }
.deliverable-grid { margin-top: 3rem; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1px; overflow: hidden; border: 1px solid #263950; border-radius: .8rem; background: #263950; }
.deliverable-card { min-height: 12rem; padding: 1.4rem; background: #0a111c; }
.deliverable-card span { color: #77b8ff; font-size: .66rem; font-weight: 800; letter-spacing: .09em; }
.deliverable-card h3 { margin: 2rem 0 .55rem; font-size: 1rem; }
.deliverable-card p { margin: 0; color: #9aacc0; font-size: .82rem; line-height: 1.6; }

.examples-heading { display: flex; justify-content: space-between; align-items: end; gap: 2rem; }
.examples-note { max-width: 18rem; margin: 0; color: var(--muted); font-size: .8rem; line-height: 1.55; }
.example-grid { margin-top: 2.5rem; display: grid; grid-template-columns: 1.2fr .8fr; gap: 1rem; }
.case-placeholder { min-height: 27rem; padding: 1.25rem; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; border: 1px solid var(--line); border-radius: .8rem; background: var(--surface); }
.case-placeholder:nth-child(2) { min-height: 22rem; margin-top: 5rem; }
.case-visual { min-height: 18rem; display: grid; place-items: center; overflow: hidden; border-radius: .62rem; background: linear-gradient(145deg,var(--brand-soft),#f7faff); }
.case-placeholder:nth-child(2) .case-visual { min-height: 13rem; }
.case-visual span { position: relative; padding: .7rem 1rem; border: 1px dashed rgba(34,79,197,.42); border-radius: 99px; color: var(--brand); font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.case-meta { padding-top: 1.15rem; display: flex; justify-content: space-between; gap: 1rem; }
.case-meta h3 { margin: 0; font-size: 1rem; }
.case-meta p { max-width: 15rem; margin: .32rem 0 0; color: var(--muted); font-size: .76rem; line-height: 1.5; }
.case-meta > span { color: var(--brand); font-size: 1.1rem; }

.process-grid { margin-top: 3rem; display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; }
.process-step { position: relative; padding-top: 1.25rem; border-top: 2px solid var(--line); }
.process-step::before { position: absolute; top: -.38rem; left: 0; width: .65rem; height: .65rem; border-radius: 50%; background: var(--brand); content: ""; }
.process-step span { color: var(--brand); font-size: .68rem; font-weight: 800; }
.process-step h3 { margin: 1rem 0 .5rem; font-size: 1rem; }
.process-step p { margin: 0; color: var(--muted); font-size: .8rem; line-height: 1.6; }

.faq-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(3rem,8vw,8rem); }
.faq-list { display: grid; }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { min-height: 4.6rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; cursor: pointer; color: var(--ink); font-size: .9rem; font-weight: 800; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { width: 1.8rem; height: 1.8rem; display: grid; place-items: center; border-radius: 50%; background: var(--surface); color: var(--brand); content: "+"; font-size: 1.15rem; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { margin: -.25rem 3rem 1.35rem 0; color: var(--muted); font-size: .86rem; line-height: 1.7; }

.final-cta { margin-bottom: clamp(2rem,5vw,4rem); padding: clamp(2rem,6vw,5rem); overflow: hidden; border-radius: 1rem; background: linear-gradient(135deg,#163995,var(--brand) 58%,#0a82df); color: #fff; text-align: center; }
.final-cta::before { position: absolute; width: 34rem; height: 34rem; top: -24rem; left: 50%; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; box-shadow: 0 0 0 5rem rgba(255,255,255,.035),0 0 0 10rem rgba(255,255,255,.025); content: ""; transform: translateX(-50%); }
.final-cta-content { position: relative; z-index: 1; max-width: 52rem; margin: auto; }
.final-cta .eyebrow { justify-content: center; color: #fff; }
.final-cta .eyebrow::before { background: #fff; }
.final-cta h2 { margin: 0; font-size: clamp(2.2rem,5vw,4.5rem); letter-spacing: -.06em; line-height: 1; }
.final-cta p { max-width: 37rem; margin: 1.2rem auto 1.6rem; color: rgba(255,255,255,.8); line-height: 1.65; }
.final-cta .whatsapp-cta { background: #fff; box-shadow: 0 12px 30px rgba(5,15,40,.2); color: var(--brand); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 600ms ease, transform 600ms ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* Variações visuais: cada serviço demonstra o próprio universo sem imagens finais. */
[data-service="social"] .demo-window { transform: rotate(-2deg); }
[data-service="social"] .demo-canvas { grid-template-columns: repeat(2,1fr); align-content: stretch; }
[data-service="social"] .demo-canvas::before, [data-service="social"] .demo-canvas::after { border-radius: .75rem; background: linear-gradient(145deg,#6b86db,#224fc5 55%,#0d1726); content: ""; }
[data-service="social"] .demo-canvas::after { background: linear-gradient(145deg,#fff,#dbe6ff 55%,#7897e9); transform: translateY(1.7rem); }
[data-service="social"] .demo-canvas > * { display: none; }
[data-service="google"] .demo-canvas { align-content: start; }
[data-service="google"] .demo-map { height: 10rem; position: relative; overflow: hidden; border-radius: .7rem; background: linear-gradient(30deg,#dce9d5 12%,#eef2e9 12% 30%,#d7e5cf 30% 44%,#e7eee2 44%); }
[data-service="google"] .demo-map::before, [data-service="google"] .demo-map::after { position: absolute; width: 140%; height: .8rem; top: 48%; left: -20%; background: #fff; box-shadow: 0 0 0 1px #ccd6df; content: ""; transform: rotate(-18deg); }
[data-service="google"] .demo-map::after { transform: rotate(48deg); }
[data-service="google"] .demo-pin { width: 2.3rem; height: 2.3rem; position: absolute; top: 35%; left: 52%; z-index: 2; display: grid; place-items: center; border: .35rem solid #fff; border-radius: 50% 50% 50% 0; background: var(--brand); box-shadow: 0 8px 16px rgba(13,23,38,.22); color: #fff; font-size: .65rem; font-style: normal; transform: rotate(-45deg); }
[data-service="google"] .demo-pin span { transform: rotate(45deg); }
[data-service="webapp"] .demo-canvas { grid-template-columns: 4rem 1fr; grid-template-rows: repeat(3,1fr); align-content: stretch; }
[data-service="webapp"] .demo-canvas::before { grid-row: 1/-1; border-radius: .6rem; background: var(--dark); content: ""; }
[data-service="webapp"] .demo-panel { border: 1px solid var(--line); border-radius: .6rem; background: #fff; }
[data-service="webapp"] .demo-panel:first-of-type { grid-row: span 2; background: linear-gradient(135deg,#fff,var(--brand-soft)); }
[data-service="ai"] .demo-canvas { align-content: end; background: linear-gradient(145deg,#f8faff,#edf3ff); }
.demo-chat { display: grid; gap: .7rem; }
.demo-bubble { width: 78%; padding: .75rem .9rem; border-radius: .8rem .8rem .8rem .2rem; background: #fff; box-shadow: 0 5px 14px rgba(22,47,83,.08); color: var(--muted); font-size: .65rem; line-height: 1.5; }
.demo-bubble:nth-child(2) { margin-left: auto; border-radius: .8rem .8rem .2rem .8rem; background: var(--brand); color: #fff; }
.demo-bubble:nth-child(3) { width: 90%; }
.demo-input { height: 2.5rem; margin-top: .5rem; border: 1px solid var(--line); border-radius: 99px; background: #fff; }

@media (max-width: 900px) {
  .service-hero { min-height: auto; grid-template-columns: minmax(0,1fr); }
  .service-hero > * { min-width: 0; }
  .hero-demo { min-height: 26rem; }
  .problem-layout, .faq-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .problem-statement { position: static; }
  .deliverable-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .process-grid { grid-template-columns: repeat(2,1fr); gap: 2rem 1rem; }
}

@media (max-width: 640px) {
  .service-main { width: min(calc(100% - 1rem),var(--shell)); }
  .service-hero { padding-top: 3.5rem; }
  .service-hero h1 { font-size: clamp(2.75rem,13vw,3.65rem); overflow-wrap: anywhere; }
  .service-actions { align-items: stretch; flex-direction: column; }
  .whatsapp-cta, .secondary-cta { width: 100%; min-width: 0; justify-content: space-between; }
  .hero-demo { min-height: 22rem; }
  .demo-window { width: 88%; }
  .demo-canvas { min-height: 16rem; padding: 1.25rem; }
  .demo-float-top { right: 0; }
  .proof-rail { grid-template-columns: 1fr; gap: 1.2rem; padding: 1.5rem; }
  .proof-rail::before { top: 12%; bottom: 12%; left: 50%; width: 2px; height: auto; transform: translateX(-50%); }
  .proof-item strong { font-size: .7rem; }
  .advantage-card { grid-template-columns: 2.75rem 1fr; padding: 1.15rem; }
  .advantage-icon { width: 2.75rem; height: 2.75rem; }
  .deliverables { padding-right: 1rem; padding-left: 1rem; }
  .deliverable-grid { grid-template-columns: 1fr; }
  .examples-heading { align-items: start; flex-direction: column; }
  .example-grid { grid-template-columns: 1fr; }
  .case-placeholder, .case-placeholder:nth-child(2) { min-height: 22rem; margin-top: 0; }
  .process-grid { grid-template-columns: 1fr; }
  .final-cta { border-radius: .8rem; }
}

/* Keep every service-page heading in the same Manrope weight as the hero. */
.service-page :is(h1, h2, h3) { font-family: "Manrope", Arial, sans-serif; font-weight: 600; }

/* Google Business hero mirrors the social page's headline scale and gradient. */
.service-page[data-service="google"] .service-hero h1 {
  font-family: "Manrope", Arial, sans-serif;
  font-size: clamp(48px, 5.1vw, 64px);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -.055em;
}
.service-page[data-service="google"] .service-hero h1 em {
  background: linear-gradient(135deg, #1679df 0%, #1ba9d1 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.service-page :is(h1, h2, h3) {
  line-height: 1.18;
  overflow: visible;
}
.service-page :is(h1, h2, h3) em {
  padding-inline: .045em;
  margin-inline: -.045em;
  font-style: normal;
  background: linear-gradient(135deg, #1679df 0%, #1ba9d1 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
@media (max-width: 1215px) {
  .service-page[data-service="google"] .service-hero h1 { font-size: clamp(42px, 5.1vw, 58px); }
}
@media (max-width: 900px) {
  .service-page[data-service="google"] .service-hero h1 { font-size: clamp(42px, 5.8vw, 56px); }
}
@media (max-width: 480px) {
  .service-page[data-service="google"] .service-hero h1 { font-size: clamp(35px, 11.1vw, 46px); line-height: 1.18; letter-spacing: -.05em; }
}
