/* OLLI-Q — Estratégia e transformação orientadas por dados
   Paleta da marca: azul #111336 · lavanda #707CB8 · dourado #B58F26
   Títulos em Poppins (a mesma geometria do logo), texto em Figtree */

:root {
  --ink: #111336;
  --ink-soft: #3d4170;
  --muted: #5d618a;
  --peri: #707cb8;
  --peri-deep: #4f5a9c;
  --peri-soft: #e1e4f4;
  --gold: #b58f26;
  --gold-text: #7d600c;
  --gold-soft: #f4ecd6;
  --paper: #f5f6fb;
  --line: #d9dcee;
  --line-dark: rgba(225, 228, 244, 0.14);

  --head: "Poppins", system-ui, sans-serif;
  --font: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(0.22, 0.8, 0.24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.62; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--head); margin: 0; font-weight: 600; letter-spacing: -0.025em; line-height: 1.12; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 4.5vw, 3.8rem); font-weight: 700; line-height: 1.07; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.85rem, 3.2vw, 2.7rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.015em; line-height: 1.25; }
p { margin: 0 0 1em; text-wrap: pretty; }
.lead { font-size: clamp(1.1rem, 1.45vw, 1.25rem); color: var(--ink-soft); max-width: 36em; line-height: 1.55; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.sec { padding-block: clamp(72px, 9vw, 128px); }
.sec.tight-top { padding-top: 0; }
.white { background: #fff; }
.dark { background: var(--ink); color: #fff; }
.dark .lead { color: #c5cae8; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: .95rem; font-weight: 600; color: var(--peri-deep); margin-bottom: 18px; }
.kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex: none; }
.dark .kicker { color: #aeb5e2; }
.head-row { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.head-row .lead { margin: 0; }

/* Marca: OLLI-Q + nome da solução */
.sb { font-family: var(--head); font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; }
.sb b { font-weight: 700; }
.dq { font-family: var(--head); font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; }
.dq::after { content: ""; display: inline-block; width: .3em; height: .3em; border-radius: 50%; background: var(--gold); margin-left: .12em; vertical-align: .6em; }

/* ---------- Botões ---------- */
.btn { --bg: var(--ink); --fg: #fff; display: inline-flex; align-items: center; gap: 12px; padding: 15px 24px; border-radius: 12px; background: var(--bg); color: var(--fg);
  font: 600 1rem/1.1 var(--head); letter-spacing: -0.01em; text-decoration: none; border: 0; cursor: pointer; position: relative; overflow: hidden; isolation: isolate; transition: transform .3s var(--ease); }
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--peri-deep); transform: translateY(101%); transition: transform .45s var(--ease); }
.btn:hover::after { transform: none; }
.btn:active { transform: scale(.98); }
.btn .bars { display: inline-flex; gap: 3px; align-items: flex-end; height: 14px; }
.btn .bars i { width: 3px; background: currentColor; border-radius: 1px; transition: height .4s var(--ease); }
.btn .bars i:nth-child(1) { height: 6px; } .btn .bars i:nth-child(2) { height: 10px; } .btn .bars i:nth-child(3) { height: 14px; background: var(--gold); }
.btn:hover .bars i:nth-child(1) { height: 14px; } .btn:hover .bars i:nth-child(3) { height: 6px; }
.btn.gold { --bg: var(--gold); --fg: var(--ink); }
.btn.gold::after { background: #cfa83a; }
.btn.gold .bars i:nth-child(3) { background: var(--ink); }
.btn.line { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.line::after { background: var(--peri-soft); }
.btn.light { --bg: #fff; --fg: var(--ink); }
.btn.light::after { background: var(--peri-soft); }
.link-line { font-family: var(--head); font-weight: 600; text-decoration: none; color: var(--ink); background: linear-gradient(var(--gold), var(--gold)) 0 100% / 100% 2px no-repeat; padding-bottom: 3px; transition: color .3s; }
.link-line:hover { color: var(--peri-deep); }
.dark .link-line { color: #fff; }
.dark .link-line:hover { color: #ffd98a; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 34px; }

/* ---------- Cabeçalho ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(245, 246, 251, .88); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); transition: box-shadow .3s; }
.header.scrolled { box-shadow: 0 1px 0 var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 84px; transition: height .35s var(--ease); }
.header.scrolled .nav { height: 70px; }
.brand img { height: 52px; width: auto; transition: height .35s var(--ease); }
.header.scrolled .brand img { height: 44px; }
.menu { display: flex; align-items: center; gap: 2px; }
.menu a:not(.btn) { text-decoration: none; font-weight: 500; font-size: .98rem; color: var(--ink-soft); padding: 8px 11px; position: relative; }
.menu a:not(.btn)::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: 2px; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.menu a:not(.btn):hover::after, .menu a[aria-current="page"]::after { transform: scaleX(1); }
.menu a[aria-current="page"] { color: var(--ink); }
.menu .btn { margin-left: 14px; padding: 12px 18px; font-size: .92rem; }
.menu-toggle { display: none; background: none; border: 0; width: 46px; height: 46px; cursor: pointer; position: relative; }
.menu-toggle span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); transition: transform .35s var(--ease), opacity .2s; }
.menu-toggle span:nth-child(1) { top: 16px; } .menu-toggle span:nth-child(2) { top: 22px; right: 18px; } .menu-toggle span:nth-child(3) { top: 28px; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(32px, 5vw, 72px); padding-bottom: clamp(120px, 11vw, 160px); }
.hero-grid { display: grid; grid-template-columns: 1.08fr 1fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.hero .kicker, .hero h1, .hero .lead, .hero .actions { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.hero h1 { transition-delay: .08s; } .hero .lead { transition-delay: .18s; margin-top: 26px; } .hero .actions { transition-delay: .28s; }
.is-loaded .hero .kicker, .is-loaded .hero h1, .is-loaded .hero .lead, .is-loaded .hero .actions { opacity: 1; transform: none; }

/* Prévia do Diagnosti-Q */
.app { position: relative; background: #fff; border-radius: 20px; box-shadow: 0 1px 0 var(--line), 0 40px 80px -40px rgba(17, 19, 54, .35); padding-bottom: 8px;
  opacity: 0; transform: translateY(24px) scale(.98); transition: opacity 1s var(--ease) .3s, transform 1s var(--ease) .3s; }
.is-loaded .app { opacity: 1; transform: none; }
.app-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.app-top .dq { font-size: 1.1rem; }
.app-top small { color: var(--muted); font-size: .85rem; }
.app-body { padding: 10px 24px 4px; }
.dim-row { display: grid; grid-template-columns: 112px 1fr 34px; gap: 14px; align-items: center; padding: 8px 0; font-size: .95rem; }
.dim-row span { color: var(--ink-soft); }
.dim-row b { font-family: var(--head); font-weight: 600; font-size: .9rem; text-align: right; font-variant-numeric: tabular-nums; }
.track { height: 8px; border-radius: 9px; background: var(--paper); overflow: hidden; }
.track i { display: block; height: 100%; width: var(--v); border-radius: 9px; background: var(--peri); transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease); }
.dim-row.low .track i { background: var(--gold); }
.dim-row.low span, .dim-row.low b { color: var(--ink); font-weight: 600; }
.is-loaded .app .track i, .in .track i { transform: none; }
.app-body .dim-row:nth-child(1) i { transition-delay: .7s; } .app-body .dim-row:nth-child(2) i { transition-delay: .78s; }
.app-body .dim-row:nth-child(3) i { transition-delay: .86s; } .app-body .dim-row:nth-child(4) i { transition-delay: .94s; }
.app-body .dim-row:nth-child(5) i { transition-delay: 1.02s; } .app-body .dim-row:nth-child(6) i { transition-delay: 1.1s; }
.app-body .dim-row:nth-child(7) i { transition-delay: 1.18s; } .app-body .dim-row:nth-child(8) i { transition-delay: 1.26s; }
.app-float { position: absolute; left: -28px; top: calc(100% - 22px); background: var(--ink); color: #fff; border-radius: 16px; padding: 16px 18px; width: min(290px, 80%);
  box-shadow: 0 24px 50px -24px rgba(17, 19, 54, .6); opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease) 1.7s, transform .8s var(--ease) 1.7s; }
.is-loaded .app-float { opacity: 1; transform: none; }
.app-float small { color: #aeb5e2; font-size: .82rem; display: block; margin-bottom: 8px; }
.app-float ol { margin: 0; padding: 0; list-style: none; counter-reset: pr; }
.app-float li { counter-increment: pr; display: flex; gap: 10px; align-items: baseline; font-size: .95rem; padding: 3px 0; }
.app-float li::before { content: counter(pr); font-family: var(--head); font-weight: 700; color: var(--gold); font-size: .85rem; }
.app-note { text-align: right; font-size: .8rem; color: var(--muted); padding: 10px 24px 4px; margin: 0; }

/* Assinatura: Diagnóstico. Processos. Tecnologia. Resultado. */
.signature { border-block: 1px solid var(--line); background: #fff; }
.signature ul { list-style: none; margin: 0; padding: 26px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.signature li { font-family: var(--head); font-weight: 600; font-size: clamp(1.2rem, 2.4vw, 1.9rem); letter-spacing: -0.02em; color: var(--line); transition: color .7s; }
.signature.in li { color: var(--ink-soft); }
.signature.in li:last-child { color: var(--ink); }
.signature li:nth-child(2) { transition-delay: .25s; } .signature li:nth-child(3) { transition-delay: .5s; } .signature li:nth-child(4) { transition-delay: .75s; }
.signature li::after { content: "."; color: var(--gold); }

/* ---------- Seção 2: onde está o problema ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.split p { color: var(--ink-soft); }
.statement { font-family: var(--head); font-weight: 600; font-size: clamp(1.2rem, 1.8vw, 1.45rem); line-height: 1.35; letter-spacing: -0.015em; padding-left: 20px; border-left: 3px solid var(--gold); margin: 28px 0; max-width: 24em; color: var(--ink) !important; }
.causes svg { width: 100%; height: auto; overflow: visible; }
.causes .wire { fill: none; stroke: var(--peri); stroke-width: 2; stroke-dasharray: 260; stroke-dashoffset: 260; transition: stroke-dashoffset 1.2s var(--ease); }
.causes.in .wire { stroke-dashoffset: 0; }
.causes .symptom rect { fill: var(--ink); }
.causes .symptom text { fill: #fff; font: 600 17px var(--head); }
.causes .symptom .s2 { fill: #aeb5e2; font: 500 13px var(--font); }
.causes .cause { opacity: 0; transition: opacity .6s; }
.causes.in .cause { opacity: 1; }
.causes .cause rect { fill: #fff; stroke: var(--line); stroke-width: 1.5; transition: fill .4s, stroke .4s; }
.causes .cause text { fill: var(--ink); font: 600 16px var(--head); }
.causes .cause circle { fill: var(--line); transition: fill .4s; }
.causes .cause.on rect { fill: var(--gold-soft); stroke: var(--gold); }
.causes .cause.on circle { fill: var(--gold); }

/* ---------- Filosofia ---------- */
.philo h2 { font-size: clamp(2.4rem, 6vw, 5rem); font-weight: 700; letter-spacing: -0.045em; line-height: 1.02; }
.philo h2 .l { display: block; overflow: hidden; padding-bottom: .08em; }
.philo h2 .l span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); }
.philo h2 .l:nth-child(2) span { transition-delay: .12s; color: #aeb5e2; }
.philo.in h2 .l span { transform: none; }
.philo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); margin-top: 52px; align-items: start; }
.philo .not { list-style: none; margin: 0; padding: 0; }
.philo .not li { padding: 13px 0; border-bottom: 1px solid var(--line-dark); color: #8f96c8; }
.philo .not li s { text-decoration-color: var(--gold); text-decoration-thickness: 2px; }
.philo .not-t { color: #c5cae8; font-weight: 600; margin-bottom: 6px; }
.philo .yes { font-family: var(--head); font-size: clamp(1.3rem, 2vw, 1.7rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.32; margin: 0 0 20px; }
.philo .yes em { font-style: normal; color: #ffd98a; }
.philo .yes + p { color: #c5cae8; }

/* ---------- Arquitetura: Diagnosti-Q + frentes ---------- */
.arch-top { display: flex; justify-content: center; }
.arch-entry { background: var(--ink); color: #fff; border-radius: 20px; padding: 26px 30px; width: min(100%, 600px); display: grid; grid-template-columns: 1fr auto; gap: 8px 24px; align-items: center; text-decoration: none; transition: transform .4s var(--ease); }
.arch-entry:hover { transform: translateY(-3px); }
.arch-entry .dq { font-size: 1.6rem; }
.arch-entry p { margin: 0; color: #c5cae8; grid-column: 1; }
.arch-entry .tag { grid-column: 2; grid-row: 1 / span 2; font-size: .82rem; font-weight: 600; color: var(--ink); background: var(--gold); padding: 6px 12px; border-radius: 99px; white-space: nowrap; }
.arch-lines { height: 64px; }
.arch-lines svg { width: 100%; height: 100%; }
.arch-lines path { fill: none; stroke: var(--peri); stroke-width: 2; stroke-dasharray: 200; stroke-dashoffset: 200; transition: stroke-dashoffset 1.2s var(--ease); }
.arch.in .arch-lines path { stroke-dashoffset: 0; }
.fronts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.front { background: #fff; border-radius: 18px; padding: 30px 26px 26px; box-shadow: 0 1px 0 var(--line); display: flex; flex-direction: column; position: relative; overflow: hidden;
  opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease), transform .8s var(--ease), box-shadow .3s; }
.arch.in .front { opacity: 1; transform: none; }
.arch.in .front:nth-child(1) { transition-delay: .5s; } .arch.in .front:nth-child(2) { transition-delay: .62s; } .arch.in .front:nth-child(3) { transition-delay: .74s; }
.front::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: var(--peri); }
.front:nth-child(2)::before { background: var(--peri-deep); } .front:nth-child(3)::before { background: var(--ink); }
.front .sb { font-size: .95rem; color: var(--peri-deep); margin-bottom: 16px; }
.front h3 { font-size: 1.4rem; margin-bottom: 10px; }
.front p { color: var(--ink-soft); margin-bottom: 22px; }
.front .link-line { margin-top: auto; align-self: flex-start; font-size: .95rem; }
.front:hover { box-shadow: 0 1px 0 var(--line), 0 26px 50px -30px rgba(17, 19, 54, .35); }

/* ---------- Método ---------- */
.method { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); position: relative; counter-reset: m; }
.method::before, .method::after { content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 2px; background: var(--line-dark); }
.method::after { background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 2s var(--ease); }
.method.in::after { transform: scaleX(1); }
.method li { counter-increment: m; padding-right: 22px; position: relative; }
.method li::before { content: "0" counter(m); display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--ink); box-shadow: inset 0 0 0 2px #3b4080;
  font: 600 .95rem var(--head); color: #aeb5e2; margin-bottom: 24px; position: relative; z-index: 1; transition: background .4s, color .4s, box-shadow .4s; }
.method.in li::before { background: var(--gold); color: var(--ink); box-shadow: none; }
.method.in li:nth-child(1)::before { transition-delay: .1s; } .method.in li:nth-child(2)::before { transition-delay: .5s; } .method.in li:nth-child(3)::before { transition-delay: .9s; }
.method.in li:nth-child(4)::before { transition-delay: 1.3s; } .method.in li:nth-child(5)::before { transition-delay: 1.7s; }
.method h3 { color: #fff; font-size: 1.3rem; margin-bottom: 8px; }
.method p { color: #c5cae8; margin: 0; font-size: 1rem; }

/* ---------- Cases ---------- */
.cases { border-top: 2px solid var(--ink); }
.case { display: grid; grid-template-columns: 230px repeat(3, 1fr); gap: 28px; padding: 32px 0; border-bottom: 1px solid var(--line); position: relative; }
.case::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.case:hover::after { transform: scaleX(1); }
.case h3 { font-size: 1.3rem; margin-bottom: 4px; }
.case .sector { color: var(--peri-deep); font-weight: 600; font-size: .95rem; }
.case .part small { display: block; font-family: var(--head); font-weight: 600; font-size: .85rem; color: var(--muted); margin-bottom: 6px; }
.case .part p { margin: 0; color: var(--ink-soft); font-size: 1rem; }
.case .part.res p { color: var(--ink); font-weight: 500; }
.case .part.res small { color: var(--gold-text); }

/* ---------- Para quem é ---------- */
.fit { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.fit li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 1.08rem; align-items: start; }
.fit svg { width: 26px; height: 26px; margin-top: 1px; }
.fit svg circle { fill: var(--peri-soft); }
.fit svg path { fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 20; stroke-dashoffset: 20; transition: stroke-dashoffset .5s var(--ease); }
.fit.in svg path { stroke-dashoffset: 0; }
.fit.in li:nth-child(2) path { transition-delay: .08s; } .fit.in li:nth-child(3) path { transition-delay: .16s; } .fit.in li:nth-child(4) path { transition-delay: .24s; }
.fit.in li:nth-child(5) path { transition-delay: .32s; } .fit.in li:nth-child(6) path { transition-delay: .4s; } .fit.in li:nth-child(7) path { transition-delay: .48s; } .fit.in li:nth-child(8) path { transition-delay: .56s; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); }
.boxed { background: #fff; border-radius: 20px; padding: clamp(24px, 3.4vw, 40px); box-shadow: 0 1px 0 var(--line); }
.boxed h3 { margin-bottom: 14px; }
.boxed ul { margin: 0; padding-left: 1.1em; color: var(--ink-soft); }
.boxed li { margin-bottom: 8px; }
.boxed.muted { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); }

/* ---------- Sobre ---------- */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.pillar { border-top: 3px solid var(--ink); padding-top: 22px; }
.pillar:nth-child(2) { border-color: var(--peri-deep); } .pillar:nth-child(3) { border-color: var(--peri); } .pillar:nth-child(4) { border-color: var(--gold); }
.pillar h3 { margin-bottom: 8px; }
.pillar p { color: var(--ink-soft); margin: 0; }
.tree { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.tree li { display: grid; grid-template-columns: 1fr 1.4fr; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: baseline; position: relative; }
.tree li.child { padding-left: 38px; }
.tree li.child::before { content: ""; position: absolute; left: 12px; top: -1px; height: calc(50% + 1px); width: 16px; border-left: 2px solid var(--peri); border-bottom: 2px solid var(--peri); border-bottom-left-radius: 6px; }
.tree li.child.sub { padding-left: 76px; }
.tree li.child.sub::before { left: 50px; }
.tree .name { font-family: var(--head); font-weight: 600; font-size: 1.2rem; }
.tree .name b { font-weight: 700; }
.tree li > span:last-child { color: var(--ink-soft); }
.tree li.root .name { font-size: 1.6rem; }

/* ---------- Páginas internas ---------- */
.page-hero { padding-top: clamp(40px, 6vw, 88px); padding-bottom: clamp(48px, 6vw, 88px); }
.page-hero h1 { max-width: 15em; }
.page-hero .lead { margin-top: 24px; }
.trail { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: .92rem; color: var(--muted); margin-bottom: 24px; }
.trail a { text-decoration: none; } .trail a:hover { color: var(--ink); }
.page-hero .trail, .page-hero h1, .page-hero .lead, .page-hero .actions, .page-hero .product { animation: rise .9s var(--ease) both; }
.page-hero h1 { animation-delay: .06s; } .page-hero .lead { animation-delay: .14s; } .page-hero .actions { animation-delay: .22s; }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } }
.product { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 20px; }
.product .dq { font-size: 1.6rem; }
.product small { font-size: .85rem; font-weight: 600; color: var(--gold-text); background: var(--gold-soft); padding: 4px 10px; border-radius: 99px; }

.sol { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(36px, 6vw, 88px); padding-block: clamp(56px, 7vw, 96px); border-top: 1px solid var(--line); align-items: start; }
.sol:first-child { border-top: 0; padding-top: 0; }
.sol > div > .sb { display: block; font-size: 1.05rem; color: var(--peri-deep); margin-bottom: 14px; }
.sol h2 { margin-bottom: 18px; }
.sol ul { list-style: none; padding: 0; margin: 24px 0 0; }
.sol li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.path-card { background: #fff; border-radius: 20px; padding: clamp(22px, 3vw, 34px); box-shadow: 0 1px 0 var(--line); }
.path-card h4 { font-size: 1rem; color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.path { list-style: none; margin: 0; padding: 0; position: relative; counter-reset: p; }
.path::before { content: ""; position: absolute; left: 19px; top: 34px; bottom: 34px; width: 2px; background: var(--line); }
.path::after { content: ""; position: absolute; left: 19px; top: 34px; width: 2px; height: calc(100% - 68px); background: var(--peri-deep); transform: scaleY(0); transform-origin: top; transition: transform 1.6s var(--ease); }
.in .path::after { transform: scaleY(1); }
.path li { display: grid; grid-template-columns: 40px 1fr; gap: 18px; padding: 14px 0; position: relative; z-index: 1; counter-increment: p; }
.path li::before { content: counter(p); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: inset 0 0 0 2px var(--line); font: 600 .95rem var(--head); color: var(--muted); transition: all .5s; }
.in .path li::before { box-shadow: inset 0 0 0 2px var(--peri-deep); color: var(--ink); }
.in .path li:last-child::before { background: var(--gold); box-shadow: none; }
.path li:nth-child(2)::before { transition-delay: .4s; } .path li:nth-child(3)::before { transition-delay: .8s; } .path li:nth-child(4)::before { transition-delay: 1.2s; }
.path strong { font-family: var(--head); font-weight: 600; display: block; font-size: 1.08rem; }
.path span { color: var(--ink-soft); font-size: .98rem; }

.dims { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.dim { background: #fff; padding: 22px 20px; }
.dim strong { font-family: var(--head); font-weight: 600; display: block; margin-bottom: 4px; }
.dim span { color: var(--muted); font-size: .93rem; line-height: 1.4; display: block; }

/* Formulário */
.form-wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(36px, 6vw, 88px); align-items: start; }
.form { background: #fff; border-radius: 22px; padding: clamp(24px, 3.4vw, 42px); box-shadow: 0 1px 0 var(--line), 0 30px 60px -34px rgba(17, 19, 54, .3); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 7px; }
.field label em { font-style: normal; color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea { width: 100%; font: 400 1rem/1.4 var(--font); color: var(--ink); background: var(--paper); border: 1.5px solid transparent; border-radius: 10px; padding: 13px 14px; transition: border-color .2s, background .2s; }
.field textarea { min-height: 104px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--peri-deep); background: #fff; }
.field input:user-invalid { border-color: #b3261e; }
.form .btn { width: 100%; justify-content: center; margin-top: 6px; }
.form-done { display: none; }
.form.sent .form-body { display: none; }
.form.sent .form-done { display: block; animation: rise .6s var(--ease) both; }
.form-done h3 { font-size: 1.5rem; margin: 18px 0 10px; }
.form-done p { color: var(--ink-soft); }
.check { width: 54px; height: 54px; }
.check circle { fill: var(--peri-soft); }
.check path { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; }
.form.sent .check path { animation: draw .6s var(--ease) .25s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.steps-mini { list-style: none; margin: 26px 0 0; padding: 0; }
.steps-mini li { padding: 12px 0; border-top: 1px solid var(--line); display: flex; gap: 14px; }
.steps-mini b { font-family: var(--head); color: var(--gold-text); min-width: 1.4em; }

/* Conteúdos */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filters button { font: 500 .95rem var(--font); color: var(--ink-soft); background: transparent; cursor: pointer; border: 1.5px solid var(--line); border-radius: 99px; padding: 8px 16px; transition: all .25s; }
.filters button:hover { border-color: var(--peri); color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.posts { border-top: 2px solid var(--ink); }
.post { display: grid; grid-template-columns: 160px 1fr auto; gap: 28px; align-items: center; padding: 28px 0; border-bottom: 1px solid var(--line); }
.post .cat { font-weight: 600; color: var(--peri-deep); font-size: .95rem; }
.post h3 { margin-bottom: 6px; }
.post p { margin: 0; color: var(--muted); }
.post .soon { font-size: .85rem; color: var(--muted); border: 1px solid var(--line); padding: 4px 12px; border-radius: 99px; white-space: nowrap; }
.post[hidden] { display: none; }

/* ---------- CTA ---------- */
.cta { background: var(--ink); color: #fff; border-radius: clamp(22px, 3vw, 32px); padding: clamp(40px, 6vw, 80px); display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: end; position: relative; overflow: hidden; }
.cta h2 { font-size: clamp(2rem, 4vw, 3.2rem); max-width: 12em; }
.cta p { color: #c5cae8; font-size: 1.15rem; margin: 18px 0 0; }
.cta .actions { margin-top: 0; justify-content: flex-end; }
/* ---------- Rodapé ---------- */
.footer { padding: 72px 0 32px; background: #fff; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1.2fr 1fr 1.3fr; gap: 40px; }
.footer img { height: 58px; width: auto; margin-bottom: 18px; }
.footer p { color: var(--muted); max-width: 22em; }
.footer h4 { font-size: .95rem; margin-bottom: 14px; }
.footer a { display: block; text-decoration: none; color: var(--ink-soft); padding: 5px 0; }
.footer a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.footer .place { color: var(--muted); font-size: .92rem; margin-top: 8px; }
.copy { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.copy a { display: inline; padding: 0; }


/* ---------- Painel da OLLI-Q (hero da home) ---------- */
.ov-brand { font-family: var(--head); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.02em; }
.ov-brand::after { content: ""; display: inline-block; width: .3em; height: .3em; border-radius: 50%; background: var(--gold); margin-left: .12em; vertical-align: .6em; }
.ov .app-body { padding: 6px 24px 18px; }
.ov-row { display: grid; grid-template-columns: 1fr 210px; gap: 20px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.ov-row .sb { display: block; font-size: 1rem; }
.ov-row small { color: var(--muted); font-size: .9rem; }
.spark { width: 100%; height: 48px; overflow: visible; }
.spark .base { stroke: var(--line); stroke-width: 1.5; }
.spark .ln { fill: none; stroke: var(--peri-deep); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 200; stroke-dashoffset: 200; transition: stroke-dashoffset 1.4s var(--ease) .8s; }
.spark circle { fill: var(--gold); transform-box: fill-box; transform-origin: center; transform: scale(0); transition: transform .5s cubic-bezier(.3, 1.6, .5, 1) 2.1s; }
.is-loaded .spark .ln { stroke-dashoffset: 0; }
.is-loaded .spark circle { transform: none; }
.steps5 { display: flex; align-items: center; gap: 0; }
.steps5 i { width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px var(--line); flex: none; transition: background .4s, box-shadow .4s; }
.steps5 i + i { margin-left: 22px; position: relative; }
.steps5 i + i::before { content: ""; position: absolute; right: 100%; top: 7px; width: 22px; height: 2px; background: var(--line); }
.is-loaded .steps5 i:nth-child(-n+4) { background: var(--peri-deep); box-shadow: none; }
.is-loaded .steps5 i:nth-child(4) { background: var(--gold); }
.steps5 i:nth-child(1) { transition-delay: 1s; } .steps5 i:nth-child(2) { transition-delay: 1.2s; } .steps5 i:nth-child(3) { transition-delay: 1.4s; } .steps5 i:nth-child(4) { transition-delay: 1.6s; }
.auto { display: flex; flex-wrap: wrap; gap: 6px; }
.auto span { font-size: .8rem; font-weight: 600; padding: 4px 9px; border-radius: 99px; background: var(--paper); color: var(--muted); transition: background .4s, color .4s; }
.is-loaded .auto span { background: var(--peri-soft); color: var(--ink); }
.auto span:nth-child(1) { transition-delay: 1.3s; } .auto span:nth-child(2) { transition-delay: 1.5s; } .auto span:nth-child(3) { transition-delay: 1.7s; }
.ov-result { display: flex; align-items: center; gap: 12px; padding-top: 18px; font-size: 1rem; color: var(--ink-soft); }
.ov-result b { font-family: var(--head); color: var(--ink); font-weight: 600; }
.ov-result svg { width: 26px; height: 26px; flex: none; }
.ov-result circle { fill: var(--gold-soft); }
.ov-result path { fill: none; stroke: var(--gold-text); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 20; stroke-dashoffset: 20; transition: stroke-dashoffset .6s var(--ease) 2.2s; }
.is-loaded .ov-result path { stroke-dashoffset: 0; }
.ov-float { width: min(250px, 80%); }
.ov-float span { font-size: .92rem; }
.ov-float b { color: #ffd98a; font-weight: 600; }
.m5 { display: flex; gap: 6px; margin-bottom: 10px; }
.m5 i { flex: 1; height: 5px; border-radius: 3px; background: #2e3270; }
.m5 i:nth-child(-n+3) { background: var(--peri); }
.m5 i.now { background: var(--gold); }

/* Diagnosti-Q como porta de entrada, abaixo das frentes */
.entry-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 20px; padding: 18px 24px; border-radius: 14px;
  box-shadow: inset 0 0 0 1.5px var(--line); text-decoration: none; color: var(--ink-soft); transition: background .3s, box-shadow .3s; }
.entry-strip b { font-weight: 500; color: var(--ink); }
.entry-strip .dq { font-size: 1.02rem; }
.entry-strip .link-line { margin-left: auto; font-size: .95rem; }
.entry-strip:hover { background: #fff; box-shadow: inset 0 0 0 1.5px var(--peri); }
.arch .arch-entry { cursor: default; }
.arch .arch-entry:hover { transform: none; }
.arch-entry .ov-brand { color: #fff; }
.cta .actions .link-line { color: #fff; }
@media (max-width: 640px) {
  .ov-row { grid-template-columns: 1fr; gap: 10px; }
  .spark { max-width: 200px; }
  .entry-strip .link-line { margin-left: 0; }
}


/* ---------- Hero azul-marinho com o símbolo do Q ---------- */
.hero-dark { background: var(--ink); color: #fff; padding-top: clamp(48px, 6vw, 88px); padding-bottom: 0; position: relative; overflow: hidden; }
.hero-dark::before { content: ""; position: absolute; right: -18vw; top: -30vw; width: 60vw; height: 60vw; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(112, 124, 184, .16), transparent); pointer-events: none; }
.hero-dark .hero-grid { grid-template-columns: 1fr; position: relative; }
.hero-dark .hero-grid > div:first-child { max-width: 720px; position: relative; z-index: 1; }
.hero-dark .kicker { color: #aeb5e2; }
.hero-dark h1 { color: #fff; }
.hero-dark .lead { color: #c5cae8; }
.btn.ghost-light { --bg: transparent; --fg: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .45); }
.btn.ghost-light::after { background: rgba(255, 255, 255, .1); }

/* Q como marca-d'água: grande, suave, sempre inteiro */
.qsym { position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: min(44vw, 560px); opacity: .14; pointer-events: none; z-index: 0; }
.qsym svg { width: 100%; height: auto; overflow: visible; }
.hero-dark + .signature { border-top: 0; }

@media (max-width: 980px) {
  .hero-dark .hero-grid { grid-template-columns: 1fr; }
  .qsym { top: 0; transform: none; right: 0; width: min(70vw, 420px); opacity: .08; }
}
@media (max-width: 640px) {
  .qsym { width: 78vw; top: 10px; }
}

/* Q da marca, vetorizado do logo original (forma inalterada) */
.qmark { width: 100%; height: auto; overflow: visible; }
.qmark .q-navy { fill: #111336; } .qmark .q-light { fill: #a7acc7; } .qmark .q-peri { fill: #707cb8; } .qmark .q-gold { fill: #b58f26; }
.hero-dark .qmark .q-navy { fill: #fff; }
.hero-dark .qmark path { transform-box: fill-box; transition: transform 1s var(--ease), opacity .8s var(--ease); opacity: 0; }
.hero-dark .qmark .q-navy { transform: scale(.94); transform-origin: center; transition-delay: .25s; }
.hero-dark .qmark .q-light, .hero-dark .qmark .q-peri { transform: scaleY(0); transform-origin: bottom; }
.hero-dark .qmark .q-light { transition-delay: .8s; } .hero-dark .qmark .q-peri { transition-delay: .95s; }
.hero-dark .qmark .q-gold { transform: translateY(-160%); transform-origin: center; transition: transform .9s cubic-bezier(.3, 1.5, .5, 1) 1.3s, opacity .3s 1.3s; }
.is-loaded .hero-dark .qmark path { transform: none; opacity: 1; }
.cta-mark { position: absolute; right: clamp(24px, 4vw, 56px); top: clamp(24px, 4vw, 48px); width: clamp(90px, 11vw, 150px); opacity: .14; pointer-events: none; }
.cta-mark .q-navy, .cta-mark .q-light, .cta-mark .q-peri { fill: #fff; }
.cta-mark .q-gold { fill: var(--gold); }



/* ---------- Primeira dobra: tudo cabe na tela ---------- */
.hero-dark { min-height: calc(100svh - 84px); display: flex; flex-direction: column; justify-content: space-between;
  padding-top: clamp(20px, 5vh, 64px); padding-bottom: clamp(18px, 3.5vh, 36px); }
.hero-dark > .hero-grid { flex: 1; align-content: center; }

/* Logo recortada rente ao desenho: mais presença no menu e no rodapé */
.brand img { height: 56px; }
.header.scrolled .brand img { height: 46px; }
.footer img { height: 64px; width: auto; }
@media (max-width: 640px) { .brand img { height: 46px; } .header.scrolled .brand img { height: 40px; } }

/* Página Diagnosti-Q: espaço para o cartão de prioridades que sai da prévia */
.page-hero.hero { padding-bottom: clamp(120px, 12vw, 160px); }
@media (max-width: 640px) { .page-hero.hero { padding-bottom: 64px; } }

/* Aviso de manutenção do Diagnosti-Q */
.manut-back { margin-top: 28px; position: relative; z-index: 1; }
.manut .hero-grid > div:first-child { max-width: 640px; }

.hero-dark .link-line { color: #fff; }
.hero-dark .link-line:hover { color: #ffd98a; }

/* Fale conosco */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-list li { align-items: baseline; }
.contact-list b { min-width: 6.5em; }
.contact-list a { color: var(--ink); font-weight: 500; }
.form-err { color: #b3261e; font-size: .92rem; margin: 0 0 12px; }
.form-err:empty { display: none; }
.form button[disabled] { opacity: .6; cursor: wait; }

/* Política de privacidade e consentimento */
.legal { max-width: 760px; }
.legal h2 { font-size: 1.35rem; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--ink-soft); }
.legal ul { padding-left: 1.2em; margin: 0 0 1em; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--ink); }
.consent { font-size: .85rem; color: var(--muted); margin: 0 0 14px; line-height: 1.45; }
.consent a { color: var(--ink); }
.copy-links { display: flex; gap: 20px; flex-wrap: wrap; }

/* Mensagens do formulário */
.field .hint, .field .err { display: block; font-size: .85rem; line-height: 1.35; margin-top: 6px; color: var(--muted); }
.field .err, .field .hint.err { color: #b3261e; }
.field .err:empty { display: none; }
.field input[aria-invalid] { border-color: #b3261e; background: #fff; }
.hero-dark .kicker { margin-bottom: clamp(10px, 2vh, 18px); }
.hero-dark h1 { font-size: clamp(2rem, min(4.4vw, 7vh), 3.9rem); }
.hero-dark .lead { margin-top: clamp(12px, 2.4vh, 24px); font-size: clamp(1rem, min(1.4vw, 2.3vh), 1.22rem); }
.hero-dark .actions { margin-top: clamp(16px, 3.2vh, 32px); }
.qsym { width: min(40vw, 62vh, 540px); }

/* Frentes da OLLI-Q em destaque */
.hero-fronts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: clamp(20px, 4vh, 44px); position: relative; z-index: 1; }
.fr { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto auto; column-gap: 16px; align-items: start;
  padding: clamp(16px, 2.4vh, 22px) 22px; border-radius: 16px; text-decoration: none; color: #c5cae8; overflow: hidden;
  background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
  transition: background .35s, transform .35s var(--ease), box-shadow .35s; opacity: 0; transform: translateY(14px); }
.fr::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: var(--c, var(--gold)); }
.fr-e { --c: #b9c0ec; } .fr-p { --c: #8b97d6; } .fr-s { --c: #d4ab3c; }
.fr-ic { grid-row: 1 / span 3; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: var(--c); }
.fr-ic svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fr-name { font-family: var(--head); font-weight: 600; font-size: clamp(1.25rem, 1.8vw, 1.55rem); letter-spacing: -0.02em; line-height: 1.1; color: #fff; }
.fr-name small { display: block; font-size: .78rem; font-weight: 700; letter-spacing: 0; color: var(--c); margin-bottom: 3px; }
.fr-desc { font-size: .95rem; line-height: 1.4; margin-top: 6px; }
.fr-go { font-family: var(--head); font-weight: 600; font-size: .9rem; color: #fff; margin-top: 10px; justify-self: start;
  background: linear-gradient(var(--c), var(--c)) 0 100% / 0 2px no-repeat; padding-bottom: 2px; transition: background-size .35s var(--ease); }
.fr:hover, .fr:focus-visible { background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .24); transform: translateY(-3px); }
.fr:hover .fr-go, .fr:focus-visible .fr-go { background-size: 100% 2px; }
.is-loaded .fr { opacity: 1; transform: none; transition: background .35s, box-shadow .35s, opacity .8s var(--ease), transform .8s var(--ease); }
.is-loaded .fr:nth-child(1) { transition-delay: 0s, 0s, .5s, .5s; }
.is-loaded .fr:nth-child(2) { transition-delay: 0s, 0s, .62s, .62s; }
.is-loaded .fr:nth-child(3) { transition-delay: 0s, 0s, .74s, .74s; }
.is-loaded .fr:hover { transform: translateY(-3px); transition-delay: 0s; }

@media (max-width: 980px) {
  .hero-dark { min-height: calc(100svh - 84px); }
  .hero-fronts { gap: 10px; }
  .fr { grid-template-columns: 1fr; padding: 14px; }
  .fr-ic { grid-row: auto; width: 36px; height: 36px; margin-bottom: 10px; }
  .fr-ic svg { width: 20px; height: 20px; }
}
@media (max-width: 640px) {
  .hero-dark { min-height: calc(100svh - 72px); padding-top: 18px; }
  .hero-dark h1 { font-size: clamp(1.75rem, 8.4vw, 2.3rem); }
  .hero-dark .lead { font-size: .98rem; line-height: 1.5; }
  .hero-dark .actions { gap: 10px; }
  .hero-dark .actions .btn { padding: 13px 18px; }
  .fr { padding: 12px 10px; border-radius: 12px; }
  .fr-name { font-size: 1rem; }
  .fr-name small { font-size: .7rem; }
  .fr-desc, .fr-go { display: none; }
  .fr-ic { width: 30px; height: 30px; border-radius: 9px; margin-bottom: 8px; }
  .fr-ic svg { width: 17px; height: 17px; }
}
@media (max-height: 700px) and (min-width: 981px) {
  .fr-desc { display: none; }
}

/* ---------- Revelação ---------- */
.rv { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.rv.in { opacity: 1; transform: none; }

/* ---------- Responsivo ---------- */
@media (max-width: 1240px) {
  .menu-toggle { display: block; }
  .menu { position: fixed; inset: 70px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); padding: 12px var(--gutter) 28px;
    box-shadow: 0 20px 40px -20px rgba(17, 19, 54, .3); clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .5s var(--ease), visibility 0s .5s; }
  .header:not(.scrolled) .menu { top: 84px; }
  .menu-open .menu { clip-path: inset(0); visibility: visible; transition: clip-path .5s var(--ease); }
  .menu a:not(.btn) { font-size: 1.25rem; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .menu a:not(.btn)::after { left: 0; right: auto; width: 40px; bottom: -1px; }
  .menu .btn { margin: 20px 0 0; justify-content: center; padding: 16px; }
}
@media (max-width: 980px) {
  .hero-grid, .split, .head-row, .philo-grid, .two-col, .form-wrap, .sol, .cta { grid-template-columns: 1fr; }
  .app { max-width: 560px; }
  .app-float { left: auto; right: 12px; }
  .hero { padding-bottom: 96px; }
  .fronts { grid-template-columns: 1fr; }
  .arch-lines { display: none; }
  .arch-top { margin-bottom: 20px; }
  .front { opacity: 1; transform: none; }
  .method { grid-template-columns: 1fr; gap: 0; }
  .method::before, .method::after { left: 23px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .method::after { transform: scaleY(0); transform-origin: top; }
  .method.in::after { transform: scaleY(1); }
  .method li { display: grid; grid-template-columns: 48px 1fr; column-gap: 20px; padding: 0 0 28px; }
  .method li::before { grid-row: span 2; margin: 0; }
  .case { grid-template-columns: 1fr; gap: 14px; }
  .pillars { grid-template-columns: 1fr 1fr; }
  .dims { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta .actions { justify-content: flex-start; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .nav { height: 72px; }
  .brand img { height: 44px; }
  .header:not(.scrolled) .menu { top: 72px; }
  .fit { grid-template-columns: 1fr; }
  .form .row { grid-template-columns: 1fr; }
  .footer-grid, .pillars, .dims { grid-template-columns: 1fr; }
  .post { grid-template-columns: 1fr; gap: 6px; }
  .post .soon { justify-self: start; margin-top: 8px; }
  .signature ul { justify-content: flex-start; gap: 6px 18px; }
  .dim-row { grid-template-columns: 92px 1fr 30px; gap: 10px; font-size: .9rem; }
  .app-top { padding: 16px 18px; } .app-body { padding: 8px 18px 4px; }
  .app-float { position: relative; left: 0; right: 0; bottom: 0; width: auto; margin: 16px 12px 0; }
  .hero { padding-bottom: 64px; }
  .arch-entry { grid-template-columns: 1fr; }
  .arch-entry .tag { grid-column: 1; grid-row: auto; justify-self: start; }
  .tree li { grid-template-columns: 1fr; gap: 4px; }
  .tree li.child.sub { padding-left: 60px; } .tree li.child.sub::before { left: 36px; }
  .actions .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  html { scroll-behavior: auto; }
}

.cta > *:not(.cta-mark) { position: relative; z-index: 1; }

/* Menu com altura fixa: antes ele encolhia ao rolar, a página se deslocava,
   ele voltava a crescer, e a logo ficava "tremendo" perto do topo. */
.nav, .header.scrolled .nav { height: 84px; transition: none; }
.brand img, .header.scrolled .brand img { height: 56px; transition: none; }
@media (max-width: 1240px) {
  .menu, .header:not(.scrolled) .menu { top: 84px; }
}
@media (max-width: 640px) {
  .nav, .header.scrolled .nav { height: 72px; }
  .brand img, .header.scrolled .brand img { height: 46px; }
  .menu, .header:not(.scrolled) .menu { top: 72px; }
}

/* Botão do WhatsApp (só na página Fale com a OLLI-Q) */
.wa { display: inline-flex; align-items: center; gap: 14px; margin-top: 28px; padding: 12px 22px 12px 12px; border-radius: 16px;
  background: #fff; box-shadow: 0 1px 0 var(--line), inset 0 0 0 1.5px var(--line); text-decoration: none; color: var(--ink);
  transition: box-shadow .3s, transform .3s var(--ease); }
.wa:hover, .wa:focus-visible { box-shadow: 0 1px 0 var(--line), inset 0 0 0 1.5px #25d366; transform: translateY(-2px); }
.wa-ic { width: 52px; height: 52px; border-radius: 50%; background: #25d366; display: grid; place-items: center; flex: none; }
.wa-ic svg { width: 30px; height: 30px; }
.wa strong { display: block; font-family: var(--head); font-weight: 600; font-size: 1.05rem; }
.wa small { color: var(--muted); font-size: .95rem; }

/* ---------- Blog de cases ---------- */
.bgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.bgrid.small { grid-template-columns: repeat(3, 1fr); }
.bcard { position: relative; background: #fff; border-radius: 18px; padding: 28px 28px 24px; box-shadow: 0 1px 0 var(--line), inset 0 0 0 1px var(--line);
  display: flex; flex-direction: column; overflow: hidden; transition: box-shadow .3s, transform .35s var(--ease); }
.bcard::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--c, var(--peri)); }
.bcard.fr-e { --c: #8b97d6; } .bcard.fr-p { --c: var(--peri-deep); } .bcard.fr-s { --c: var(--gold); }
.bcard:hover { transform: translateY(-3px); box-shadow: 0 1px 0 var(--line), 0 24px 48px -30px rgba(17, 19, 54, .35); }
.bcard h2 { font-size: 1.35rem; line-height: 1.25; margin: 14px 0 10px; }
.bgrid.small .bcard h2 { font-size: 1.1rem; }
.bcard h2 a { text-decoration: none; color: var(--ink); }
.bcard h2 a::after { content: ""; position: absolute; inset: 0; }
.bcard > p { color: var(--ink-soft); margin: 0 0 18px; }
.bgrid.small .bcard > p { display: none; }
.bfoot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: .9rem; color: var(--muted); }
.bfoot .link-line { position: relative; z-index: 1; font-size: .95rem; }
.bmeta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip { font-size: .8rem; font-weight: 600; padding: 4px 10px; border-radius: 99px; background: var(--paper); color: var(--ink-soft); }
.chip-f { background: var(--peri-soft); color: var(--ink); }
.chip-f.fr-s, .bcard.fr-s .chip-f { background: var(--gold-soft); color: var(--gold-text); }
.bread { font-size: .85rem; color: var(--muted); margin-left: 4px; }
.page-hero .bmeta { margin-bottom: 18px; animation: rise .9s var(--ease) both; }
.post-title { font-size: clamp(2rem, 4vw, 3.2rem); max-width: 18em; }
.case-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; margin-bottom: 40px; }
.case-sum > div { background: #fff; padding: 22px 22px 18px; }
.case-sum small { display: block; font-family: var(--head); font-weight: 600; font-size: .85rem; color: var(--muted); margin-bottom: 6px; }
.case-sum p { margin: 0; color: var(--ink-soft); }
.case-sum .res { background: var(--gold-soft); }
.case-sum .res small { color: var(--gold-text); }
.case-sum .res p { color: var(--ink); font-weight: 500; }
.post-body h2:first-child { margin-top: 0; }
.more { margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--line); }
.more > h2 { font-size: 1.6rem; margin-bottom: 22px; }
.case h3 a { color: var(--ink); text-decoration: none; background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 2px no-repeat; transition: background-size .35s var(--ease); }
.case h3 a:hover { background-size: 100% 2px; }
@media (max-width: 980px) { .bgrid, .bgrid.small, .case-sum { grid-template-columns: 1fr; } }
